@gitkraken/gitkraken-components 11.0.0-vnext.3 → 11.0.1

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/index.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{var e={396:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},182:(e,t,o)=>{var r=o(394);e.exports=function(e,t,o){e&&r(function(){e.apply(o||null,t||[])})}},130:(e,t,o)=>{var r=o(396),i=o(182);e.exports=function(e,t){var o=t||{},n={};return void 0===e&&(e={}),e.on=function(t,o){return n[t]?n[t].push(o):n[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var r=arguments.length;if(1===r)delete n[t];else if(0===r)n={};else{var i=n[t];if(!i)return e;i.splice(i.indexOf(o),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(n[t]||[]).slice(0);return function(){var n=r(arguments),l=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===n.length?n[0]:n;return s.forEach(function(r){o.async?i(r,n,l):r.apply(l,n),r._once&&e.off(t,r)}),e}},e}},46:(e,t,o)=>{var r=o(47),i=o(371),n=o.g.document,s=function(e,t,o,r){return e.addEventListener(t,o,r)},l=function(e,t,o,r){return e.removeEventListener(t,o,r)},a=[];function h(e,t,o){var r=function(e,t,o){var r,i;for(r=0;r<a.length;r++)if((i=a[r]).element===e&&i.type===t&&i.fn===o)return r}(e,t,o);if(r){var i=a[r].wrapper;return a.splice(r,1),i}}o.g.addEventListener||(s=function(e,t,r){var i,n,s,l;return e.attachEvent("on"+t,(l=h(i=e,n=t,s=r)||function(e){var t=e||o.g.event;t.target=t.target||t.srcElement,t.preventDefault=t.preventDefault||function(){t.returnValue=!1},t.stopPropagation=t.stopPropagation||function(){t.cancelBubble=!0},t.which=t.which||t.keyCode,s.call(i,t)},a.push({wrapper:l,element:i,type:n,fn:s}),l))},l=function(e,t,o){var r=h(e,t,o);if(r)return e.detachEvent("on"+t,r)}),e.exports={add:s,remove:l,fabricate:function(e,t,o){var s,l=-1===i.indexOf(t)?new r(t,{detail:o}):(n.createEvent?(s=n.createEvent("Event")).initEvent(t,!0,!0):n.createEventObject&&(s=n.createEventObject()),s);e.dispatchEvent?e.dispatchEvent(l):e.fireEvent("on"+t,l)}}},371:(e,t,o)=>{var r=[],i="",n=/^on/;for(i in o.g)n.test(i)&&r.push(i.slice(2));e.exports=r},47:(e,t,o)=>{var r=o.g.CustomEvent;e.exports=!function(){try{var e=new r("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?"function"==typeof document.createEvent?function(e,t){var o=document.createEvent("CustomEvent");return t?o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):o.initCustomEvent(e,!1,!1,void 0),o}:function(e,t){var o=document.createEventObject();return o.type=e,t?(o.bubbles=!!t.bubbles,o.cancelable=!!t.cancelable,o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}:r},541:e=>{var t={};function o(e){var o=t[e];return o?o.lastIndex=0:t[e]=o=RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),o}e.exports={add:function(e,t){var r=e.className;r.length?o(t).test(r)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(o(t)," ").trim()}}},427:(e,t,o)=>{var r=o(130),i=o(46),n=o(541),s=document,l=s.documentElement;function a(e,t,r,n){o.g.navigator.pointerEnabled?i[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[r],n):o.g.navigator.msPointerEnabled?i[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[r],n):(i[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[r],n),i[t](e,r,n))}function h(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;if(void 0!==t)return 1&t?1:2&t?3:4&t?2:0}function c(e,t){return void 0!==o.g[t]?o.g[t]:l.clientHeight?l[e]:s.body[e]}function d(e,t,o){var r,i=e||{},n=i.className;return i.className+=" gu-hide",r=s.elementFromPoint(t,o),i.className=n,r}function u(){return!1}function p(){return!0}function f(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===s?null:e.parentNode}function _(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(g(t)))}(e)}function v(e){return e.nextElementSibling||function(){var t=e;do t=t.nextSibling;while(t&&1!==t.nodeType)return t}()}function S(e,t){var o=t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in o)&&r[e]in o&&(e=r[e]),o[e]}e.exports=function(e,t){var o,y,R,C,T,w,b,E,O,I,M,x,N=arguments.length;1===N&&!1===Array.isArray(e)&&(t=e,e=[]);var D=null,A=t||{};void 0===A.moves&&(A.moves=p),void 0===A.accepts&&(A.accepts=p),void 0===A.invalid&&(A.invalid=function(){return!1}),void 0===A.containers&&(A.containers=e||[]),void 0===A.isContainer&&(A.isContainer=u),void 0===A.copy&&(A.copy=!1),void 0===A.copySortSource&&(A.copySortSource=!1),void 0===A.revertOnSpill&&(A.revertOnSpill=!1),void 0===A.removeOnSpill&&(A.removeOnSpill=!1),void 0===A.direction&&(A.direction="vertical"),void 0===A.ignoreInputTextSelection&&(A.ignoreInputTextSelection=!0),void 0===A.mirrorContainer&&(A.mirrorContainer=s.body);var H=r({containers:A.containers,start:function(e){var t=B(e);t&&Z(t)},end:U,cancel:K,remove:Y,destroy:function(){z(!0),$({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===A.removeOnSpill&&H.on("over",function(e){n.rm(e,"gu-hide")}).on("out",function(e){H.dragging&&n.add(e,"gu-hide")}),z(),H;function G(e){return -1!==H.containers.indexOf(e)||A.isContainer(e)}function z(e){var t=e?"remove":"add";a(l,t,"mousedown",P),a(l,t,"mouseup",$)}function W(e){a(l,e?"remove":"add","mousemove",F)}function k(e){var t=e?"remove":"add";i[t](l,"selectstart",L),i[t](l,"click",L)}function L(e){x&&e.preventDefault()}function P(e){if(w=e.clientX,b=e.clientY,1===h(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,o=B(t);o&&(x=o,W(),"mousedown"===e.type&&(_(t)?t.focus():e.preventDefault()))}}function F(e){if(x){if(0===h(e)){$({});return}if(void 0===e.clientX||e.clientX!==w||void 0===e.clientY||e.clientY!==b){if(A.ignoreInputTextSelection){var t,r=S("clientX",e),i=S("clientY",e);if(_(s.elementFromPoint(r,i)))return}var d=x;W(!0),k(),U(),Z(d);var u={left:(t=R.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:t.top+c("scrollTop","pageYOffset")};C=S("pageX",e)-u.left,T=S("pageY",e)-u.top,n.add(I||R,"gu-transit"),function(){if(!o){var e=R.getBoundingClientRect();(o=R.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",n.rm(o,"gu-transit"),n.add(o,"gu-mirror"),A.mirrorContainer.appendChild(o),a(l,"add","mousemove",J),n.add(A.mirrorContainer,"gu-unselectable"),H.emit("cloned",o,R,"mirror")}}(),J(e)}}}function B(e){if(!(H.dragging&&o||G(e))){for(var t=e;g(e)&&!1===G(g(e));)if(A.invalid(e,t)||!(e=g(e)))return;var r=g(e);if(!(!r||A.invalid(e,t))&&A.moves(e,r,t,v(e)))return{item:e,source:r}}}function Z(e){var t,o;t=e.item,o=e.source,("boolean"==typeof A.copy?A.copy:A.copy(t,o))&&(I=e.item.cloneNode(!0),H.emit("cloned",I,e.item,"copy")),y=e.source,R=e.item,E=O=v(e.item),H.dragging=!0,H.emit("drag",R,y)}function U(){if(H.dragging){var e=I||R;V(e,g(e))}}function j(){x=!1,W(!0),k(!0)}function $(e){if(j(),H.dragging){var t=I||R,r=S("clientX",e),i=S("clientY",e),n=Q(d(o,r,i),r,i);n&&(I&&A.copySortSource||!I||n!==y)?V(t,n):A.removeOnSpill?Y():K()}}function V(e,t){var o=g(e);I&&A.copySortSource&&t===y&&o.removeChild(R),X(t)?H.emit("cancel",e,y,y):H.emit("drop",e,t,y,O),q()}function Y(){if(H.dragging){var e=I||R,t=g(e);t&&t.removeChild(e),H.emit(I?"cancel":"remove",e,t,y),q()}}function K(e){if(H.dragging){var t=arguments.length>0?e:A.revertOnSpill,o=I||R,r=g(o),i=X(r);!1===i&&t&&(I?r&&r.removeChild(I):y.insertBefore(o,E)),i||t?H.emit("cancel",o,y,y):H.emit("drop",o,r,y,O),q()}}function q(){var e=I||R;j(),o&&(n.rm(A.mirrorContainer,"gu-unselectable"),a(l,"remove","mousemove",J),g(o).removeChild(o),o=null),e&&n.rm(e,"gu-transit"),M&&clearTimeout(M),H.dragging=!1,D&&H.emit("out",e,D,y),H.emit("dragend",e),y=R=I=E=O=M=D=null}function X(e,t){var r;return r=void 0!==t?t:o?O:v(I||R),e===y&&r===E}function Q(e,t,o){for(var r=e;r&&!function(){if(!1===G(r))return!1;var i=ee(r,e),n=et(r,i,t,o);return!!X(r,n)||A.accepts(R,r,y,n)}();)r=g(r);return r}function J(e){if(o){e.preventDefault();var t,r=S("clientX",e),i=S("clientY",e),n=r-C,s=i-T;o.style.left=n+"px",o.style.top=s+"px";var l=I||R,a=d(o,r,i),h=Q(a,r,i),c=null!==h&&h!==D;(c||null===h)&&(D&&f("out"),D=h,c&&f("over"));var u=g(l);if(h===y&&I&&!A.copySortSource){u&&u.removeChild(l);return}var p=ee(h,a);if(null!==p)t=et(h,p,r,i);else if(!0!==A.revertOnSpill||I){I&&u&&u.removeChild(l);return}else t=E,h=y;(null===t&&c||t!==l&&t!==v(l))&&(O=t,h.insertBefore(l,t),H.emit("shadow",l,h,y))}function f(e){H.emit(e,l,D,y)}}function ee(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===l?null:o}function et(e,t,o,r){var i,n="horizontal"===A.direction;return t!==e?(i=t.getBoundingClientRect(),n?o>i.left+f(i)/2?v(t):t:r>i.top+m(i)/2?v(t):t):function(){var t,i,s,l=e.children.length;for(t=0;t<l;t++)if(s=(i=e.children[t]).getBoundingClientRect(),n&&s.left+s.width/2>o||!n&&s.top+s.height/2>r)return i;return null}()}}},280:(e,t,o)=>{o.d(t,{A:()=>m});var r=o(942),i=o.n(r),n=o(15),s=o.n(n);class l{name;notify;constructor(e,t){this.name=e,this.notify=t}}class a{observer;unsubscribeCallback;constructor(e,t){this.observer=e,this.unsubscribeCallback=t}unsubscribe(){this.unsubscribeCallback(this.observer)}}let h=new class{observers;constructor(){this.observers=new Set}broadcast(e){this.observers&&this.observers.forEach(t=>{e.name===t.name&&t.notify(e)})}subscribe(e,t){let o=new l(e,t);return this.observers.add(o),new a(o,e=>{this.observers.delete(e)})}unsubscribe(e){e&&e.unsubscribe()}},c="ON_DRAG_START",d="ON_DRAG_END",u=null,p=new Map;class f extends s().Component{dndComponentRef=s().createRef();mounted=!1;onDragStartSubscription;onDragEndSubscription;constructor(e){super(e),this.onDragStartSubscription=h.subscribe(c,e=>{let t=null!==e.content&&p.get(e.content);this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData)})}),this.onDragEndSubscription=h.subscribe(d,()=>{this.mounted&&this.setState({isDroppable:!1})}),this.state={isDragging:!1,isDroppable:!1,isOver:!1}}componentDidMount(){if(this.mounted=!0,null!==u){let e=p.get(u);this.setState({isDroppable:this.canDrop(void 0,e,this.props.dndData)})}}componentWillUnmount(){this.mounted=!1,this.onDragStartSubscription.unsubscribe(),this.onDragEndSubscription.unsubscribe()}canDrop(e,t,o){let{canDrop:r}=this.props;return r&&("boolean"==typeof r||r(e,t,o))}addDragEndEventListenerOnce(){let e=this.dndComponentRef?.current;e&&(e.removeEventListener("dragend",this.onDragEnd),e.addEventListener("dragend",this.onDragEnd,{once:!0}))}isDraggable(){let{canDrag:e,dndData:t}=this.props;return!!e&&("boolean"==typeof e||e(t))}onDragEnter(e){if(e.stopPropagation(),this.setState({isOver:!0}),this.props.onDragEnter){let t=p.get(u);this.props.onDragEnter(e,t,this.props.dndData)}}onDragLeave(e){e.stopPropagation();let t=p.get(u);this.props.onDragLeave&&this.props.onDragLeave(e,t,this.props.dndData),this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData),isOver:!1})}onDrag(e){e.stopPropagation()}onDragOver(e){e.stopPropagation();let t=p.get(u);this.canDrop(e,t,this.props.dndData)&&(e.preventDefault(),this.setState({isOver:!0}))}onDragStart(e){e.stopPropagation();let{dndData:t,dndId:o,onBeginDrag:r}=this.props;u=o,p.set(u,t),this.addDragEndEventListenerOnce(),h.broadcast({name:c,content:u}),r&&r(e,t),this.setState({isDragging:!0})}onDragEnd=e=>{e.stopPropagation();let{dndData:t,onEndDrag:o}=this.props;o&&o(e,p.get(u),t),h.broadcast({name:d,content:u}),p.delete(u),u=null,this.mounted&&this.setState({isDragging:!1})};onDrop(e){e.stopPropagation();let{dndData:t,onDrop:o}=this.props;o&&(o(e,p.get(u),t),this.setState({isOver:!1}))}cloneChildrenWithShallowMergedProps(e,t){if(e)return s().Children.map(e,e=>s().isValidElement(e)?s().cloneElement(e,t):e)}render(){let{children:e,className:t,forwardDndPropsToChildren:o,style:r}=this.props,{isDragging:n,isDroppable:l,isOver:a}=this.state,h=this.isDraggable(),c=i()("dnd-component",t,{draggable:h,dragging:n,droppable:l,hovering:a});return s().createElement("div",{className:c,draggable:h,onDrag:e=>this.onDrag(e),onDragEnter:e=>this.onDragEnter(e),onDragLeave:e=>this.onDragLeave(e),onDragOver:e=>this.onDragOver(e),onDragStart:e=>this.onDragStart(e),onDrop:e=>this.onDrop(e),ref:this.dndComponentRef,style:r},o?this.cloneChildrenWithShallowMergedProps(e,{isDraggable:h,isDragging:n,isDroppable:l,isOver:a}):e)}}var m=f},462:(e,t,o)=>{let r;o.d(t,{A:()=>sr});var i,n,s,l,a,h,c,d,u,p,f,m,g,_,v,S,y,R,C,T,w,b,E,O,I=o(942),M=o.n(I),x=o(15),N=o.n(x),D=((i=D||{})[i.Hash=35]="Hash",i[i.Slash=47]="Slash",i[i.Digit0=48]="Digit0",i[i.Digit1=49]="Digit1",i[i.Digit2=50]="Digit2",i[i.Digit3=51]="Digit3",i[i.Digit4=52]="Digit4",i[i.Digit5=53]="Digit5",i[i.Digit6=54]="Digit6",i[i.Digit7=55]="Digit7",i[i.Digit8=56]="Digit8",i[i.Digit9=57]="Digit9",i[i.Backslash=92]="Backslash",i[i.A=65]="A",i[i.B=66]="B",i[i.C=67]="C",i[i.D=68]="D",i[i.E=69]="E",i[i.F=70]="F",i[i.Z=90]="Z",i[i.a=97]="a",i[i.b=98]="b",i[i.c=99]="c",i[i.d=100]="d",i[i.e=101]="e",i[i.f=102]="f",i[i.z=122]="z",i);function A(e){switch(e){case 48:break;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}function H(e,t,o){return(o<0&&(o+=1),o>1&&(o-=1),o<1/6)?e+(t-e)*6*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function G(e){let t,o,r;let i=e.h/360,{s:n,l:s,a:l}=e;if(0===n)t=o=r=s;else{let e=s<.5?s*(1+n):s+n-s*n,l=2*s-e;t=H(l,e,i+1/3),o=H(l,e,i),r=H(l,e,i-1/3)}return{type:"rgba",r:Math.round(255*t),g:Math.round(255*o),b:Math.round(255*r),a:l}}let z=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function W(e){let t;if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){let t=(e=e.trim()).length;if(0===t||35!==e.charCodeAt(0))return null;if(7===t)return{type:"rgba",r:16*A(e.charCodeAt(1))+A(e.charCodeAt(2)),g:16*A(e.charCodeAt(3))+A(e.charCodeAt(4)),b:16*A(e.charCodeAt(5))+A(e.charCodeAt(6)),a:1};if(9===t){let t=16*A(e.charCodeAt(1))+A(e.charCodeAt(2));return{type:"rgba",r:t,g:16*A(e.charCodeAt(3))+A(e.charCodeAt(4)),b:16*A(e.charCodeAt(5))+A(e.charCodeAt(6)),a:(16*A(e.charCodeAt(7))+A(e.charCodeAt(8)))/255}}if(4===t){let t=A(e.charCodeAt(1)),o=A(e.charCodeAt(2)),r=A(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*r+r,a:1}}if(5===t){let t=A(e.charCodeAt(1)),o=A(e.charCodeAt(2)),r=A(e.charCodeAt(3)),i=A(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*r+r,a:(16*i+i)/255}}return null}(e);let o=z.exec(e);if(null==o)return null;let r=o[1];switch(r){case"rgb":case"hsl":t=[parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),1];break;case"rgba":case"hsla":t=[parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),parseFloat(o[5])];break;default:return null}return"hsl"===r||"hsla"===r?G({h:t[0],s:t[1],l:t[2],a:t[3]}):{type:"rgba",r:t[0],g:t[1],b:t[2],a:t[3]}}let k=e=>{var t;return("hsla"===(t=W(e)).type&&(t=G(t)),(299*t.r+587*t.g+114*t.b)/1e3<128)?"#FFFFFF":"#000000"};var L=o(298),P=o(214);let F=e=>!(e===L.oB||e===L.t$),B=(e,t=P.wT)=>e?e.substring(0,t):"",Z=/^.*(:?\n){0,2}/m;function U(e,t="\n"){return e.replace("\n"===t?Z:RegExp(`^.*(:?${t}){0,2}`,"m"),"")}let j=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;function $(e){let t=[];for(let o=j.exec(e);null!==o;o=j.exec(e)){let[,e,r]=o;t.push({name:e,email:r})}return t}var V=o(522),Y=o(686);let K=/(?<literal>\[.*?\])|(?<year>YYYY|YY)|(?<month>M{1,4})|(?<day>Do|DD?)|(?<weekday>d{2,4})|(?<hour>HH?|hh?)|(?<minute>mm?)|(?<second>ss?)|(?<fractionalSecond>SSS)|(?<dayPeriod>A|a)|(?<timeZoneName>ZZ?)/g,q=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,X=new Map,Q=["th","st","nd","rd"],J={};function ee(e,t,o,r){let i=`${e}${r?"_compact":""}`,n=J[e];return n||(n=o+e*t+t/2,J[i]=n),n}let et={d:"d",fill:"fill","shape-rendering":"shapeRendering","stroke-linejoin":"strokeLinejoin","stroke-width":"strokeWidth","stroke-dasharray":"strokeDasharray",stroke:"stroke",x1:"x1",x2:"x2",y1:"y1",y2:"y2"};function eo(e,t){let o="";for(let[e,r]of Object.entries(et)){let i=t[r];i&&(o+=` ${e}="${i}"`)}return`<${e}${o} />`}function er(e){return eo("line",e)}function ei(e,t,o,r){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:o,strokeDasharray:F(e)?r?1:2:0,stroke:t}}function en(e,t,o,r){return`${e}_${t}_${o||"+"}${r?"_compact":""}`}function es(e,t,o){return`${e}_${t||"+"}${o?"_compact":""}`}var el=o(210),ea=o(66),eh=o(406),ec=o(635),ed=o(852);let eu=e=>({cellCache:t,cellRenderer:o,columnSizeAndPositionManager:r,columnStartIndex:i,columnStopIndex:n,deferredMeasurementCache:s,horizontalOffsetAdjustment:l,isScrolling:a,parent:h,rowSizeAndPositionManager:c,rowStartIndex:d,rowStopIndex:u,styleCache:p,verticalOffsetAdjustment:f,visibleColumnIndices:m,visibleRowIndices:g})=>{let _=[],v=r.areOffsetsAdjusted()||c.areOffsetsAdjusted(),S=!a&&!v;for(let v=d;v<=u;v+=1){let d=c.getSizeAndPositionOfCell(v);for(let c=i;c<=n;c+=1){let i,n;let u=r.getSizeAndPositionOfCell(c),y=c>=m.start&&c<=m.stop&&v>=g.start&&v<=g.stop,R=`${v}-${c}`;S&&p[R]?i=p[R]:s&&!s.has(v,c)?i={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(i={height:d.size,left:u.offset+l,position:"absolute",top:d.offset+f,width:u.size},p[R]=i);let C={columnIndex:c,isScrolling:a,isVisible:y,key:R,parent:h,rowIndex:v,style:i};if(!a||l||f)n=o(C);else{let r=e(v,c);t[R]&&t[R].realKeyForCell===r||(t[R]={realKeyForCell:r,cell:o(C)}),n=t[R].cell}null!=n&&_.push(n)}}return _};var ep=o(666),ef=o(126);let em={0:1,90:0,180:-1,270:0},eg={0:0,90:1,180:0,270:-1},e_=P.nf-P.Oe,ev=` A ${e_} ${e_} 0 0 0 `;function eS(e,t,o){let r=em[o],i=eg[o];return{x:e-P.nf*r,xOffset:-(r*P.Oe),y:t+P.nf*i,yOffset:i*P.Oe}}let ey={};var eR=function(e,t,o,r,i,n,s,l){let a=ei(r,e,s,l);return a.d=function(e,t,o,r){let i=`${e}_${t}_${o}_${r}`,n=ey[i];if(n)return n;let s=eS(e,t,r),l=eS(e,t,o);return n=`M ${s.x} ${s.y}${l.xOffset?` H ${s.x+l.xOffset}`:` V ${s.y+l.yOffset}`}${ev}${l.x+s.xOffset} ${l.y+s.yOffset}${s.xOffset?` H ${l.x}`:` V ${l.y}`}`,ey[i]=n,n}(i,n,o,t),eo("path",a)};let eC={},eT={},ew={},eb={};function eE(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eO(e){return(eO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eI(e){var t=function(e,t){if("object"!=eO(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=eO(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eO(t)?t:t+""}function eM(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eI(r.key),r)}}function ex(e,t,o){return t&&eM(e.prototype,t),o&&eM(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function eN(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eD(e,t){if(t&&("object"==eO(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return eN(e)}function eA(e){return(eA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eH(e,t){return(eH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eG(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eH(e,t)}function ez(e,t,o){return(t=eI(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function eW(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function ek(e){this.setState((function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}).bind(this))}function eL(e,t){try{var o=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,r)}finally{this.props=o,this.state=r}}function eP(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var o=null,r=null,i=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==o||null!==r||null!==i)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=eW,t.componentWillReceiveProps=ek),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=eL;var n=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;n.call(this,e,t,r)}}return e}function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(null,arguments)}eW.__suppressDeprecationWarning=!0,ek.__suppressDeprecationWarning=!0,eL.__suppressDeprecationWarning=!0;let eB=function(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=function e(t){var o,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(o=0;o<t.length;o++)t[o]&&(r=e(t[o]))&&(i&&(i+=" "),i+=r);else for(o in t)t[o]&&(i&&(i+=" "),i+=o)}return i}(e))&&(r&&(r+=" "),r+=t);return r};function eZ(e){var t=e.cellCount,o=e.cellSize,r=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,n=e.nextCellsCount,s=e.nextCellSize,l=e.nextScrollToIndex,a=e.scrollToIndex,h=e.updateScrollOffsetForScrollToIndex;(t!==n||("number"==typeof o||"number"==typeof s)&&o!==s)&&(r(i),a>=0&&a===l&&h())}function eU(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}function ej(e,t){if(null==e)return{};var o,r,i=eU(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],t.includes(o)||({}).propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var e$=function(){function e(t){var o=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;eE(this,e),ez(this,"_cellSizeAndPositionData",{}),ez(this,"_lastMeasuredIndex",-1),ez(this,"_lastBatchedIndex",-1),ez(this,"_cellCount",void 0),ez(this,"_cellSizeGetter",void 0),ez(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=o,this._estimatedCellSize=i}return ex(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter({index:r});if(void 0===i||isNaN(i))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(i));null===i?(this._cellSizeAndPositionData[r]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:o,size:i},o+=i,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t,o=e.align,r=e.containerSize,i=e.currentOffset,n=e.targetIndex;if(r<=0)return 0;var s=this.getSizeAndPositionOfCell(n),l=s.offset,a=l-r+s.size;switch(void 0===o?"auto":o){case"start":t=l;break;case"end":t=a;break;case"center":t=l-(r-s.size)/2;break;default:t=Math.max(a,Math.min(l,i))}return Math.max(0,Math.min(this.getTotalSize()-r,t))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var r=o+t,i=this._findNearestCell(o),n=this.getSizeAndPositionOfCell(i);o=n.offset+n.size;for(var s=i;o<r&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:i,stop:s}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var r=t+Math.floor((e-t)/2),i=this.getSizeAndPositionOfCell(r).offset;if(i===o)return r;i<o?t=r+1:i>o&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),eV=function(){function e(t){var o=t.maxScrollSize,r=void 0===o?"undefined"!=typeof window&&window.chrome?16777100:15e5:o,i=ej(t,["maxScrollSize"]);eE(this,e),ez(this,"_cellSizeAndPositionManager",void 0),ez(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new e$(i),this._maxScrollSize=r}return ex(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i})*(i-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:o,offset:r});var n=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:void 0===t?"auto":t,containerSize:o,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:o,offset:n})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,r=e.totalSize;return r<=t?0:o/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return r===i?o:Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r})*(i-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return r===i?o:Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i})*(r-t))}}]),e}();function eY(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t={};return function(o){var r=o.callback,i=o.indices,n=Object.keys(i),s=!e||n.every(function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0}),l=n.length!==Object.keys(t).length||n.some(function(e){var o=t[e],r=i[e];return Array.isArray(r)?o.join(",")!==r.join(","):o!==r});t=i,s&&l&&r(i)}}function eK(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,n=e.previousScrollToAlignment,s=e.previousScrollToIndex,l=e.previousSize,a=e.scrollOffset,h=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=c>=0&&c<f;m&&(d!==l||u||!i||"number"==typeof t&&t!==i||h!==n||c!==s)?p(c):!m&&f>0&&(d<l||f<r)&&a>o.getTotalSize()-d&&p(f-1)}let eq=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function eX(e){if((!u&&0!==u||e)&&eq){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),u=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return u}"undefined"!=typeof window?p=window:"undefined"!=typeof self?p=self:p={};var eQ=p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame||function(e){return p.setTimeout(e,1e3/60)},eJ=p.cancelAnimationFrame||p.webkitCancelAnimationFrame||p.mozCancelAnimationFrame||p.oCancelAnimationFrame||p.msCancelAnimationFrame||function(e){p.clearTimeout(e)},e0=function(e){return eJ(e.id)},e1=function(e,t){Promise.resolve().then(function(){o=Date.now()});var o,r={id:eQ(function i(){Date.now()-o>=t?e.call():r.id=eQ(i)})};return r};function e2(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function e5(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e2(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):e2(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var e6={OBSERVED:"observed",REQUESTED:"requested"},e3=(m=f=function(e){function t(e){eE(this,t),ez(eN(o=eD(this,eA(t).call(this,e))),"_onGridRenderedMemoizer",eY()),ez(eN(o),"_onScrollMemoizer",eY(!1)),ez(eN(o),"_deferredInvalidateColumnIndex",null),ez(eN(o),"_deferredInvalidateRowIndex",null),ez(eN(o),"_recomputeScrollLeftFlag",!1),ez(eN(o),"_recomputeScrollTopFlag",!1),ez(eN(o),"_horizontalScrollBarSize",0),ez(eN(o),"_verticalScrollBarSize",0),ez(eN(o),"_scrollbarPresenceChanged",!1),ez(eN(o),"_scrollingContainer",void 0),ez(eN(o),"_childrenToDisplay",void 0),ez(eN(o),"_columnStartIndex",void 0),ez(eN(o),"_columnStopIndex",void 0),ez(eN(o),"_rowStartIndex",void 0),ez(eN(o),"_rowStopIndex",void 0),ez(eN(o),"_renderedColumnStartIndex",0),ez(eN(o),"_renderedColumnStopIndex",0),ez(eN(o),"_renderedRowStartIndex",0),ez(eN(o),"_renderedRowStopIndex",0),ez(eN(o),"_initialScrollTop",void 0),ez(eN(o),"_initialScrollLeft",void 0),ez(eN(o),"_disablePointerEventsTimeoutId",void 0),ez(eN(o),"_styleCache",{}),ez(eN(o),"_cellCache",{}),ez(eN(o),"_debounceScrollEndedCallback",function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})}),ez(eN(o),"_invokeOnGridRenderedHelper",function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})}),ez(eN(o),"_onWheel",function(e){var t=e.deltaX,r=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:r})}),ez(eN(o),"_setScrollingContainerRef",function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e}),ez(eN(o),"_onScroll",function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)});var o,r=new eV({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),i=new eV({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:i,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return eG(t,e),ex(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,i=void 0===r?this.props.scrollToColumn:r,n=e.rowIndex,s=void 0===n?this.props.scrollToRow:n,l=e5({},this.props,{scrollToAlignment:o,scrollToColumn:i,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=e.scrollTop,r=void 0===o?0:o;if(!(r<0)){this._debounceScrollEnded();var i=this.props,n=i.autoHeight,s=i.autoWidth,l=i.height,a=i.width,h=this.state.instanceProps,c=h.scrollbarSize,d=h.rowSizeAndPositionManager.getTotalSize(),u=h.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,u-a+c),void 0===t?0:t),f=Math.min(Math.max(0,d-l+c),r);if(this.state.scrollLeft!==p||this.state.scrollTop!==f){var m={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:f!==this.state.scrollTop?f>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:e6.OBSERVED};n||(m.scrollTop=f),s||(m.scrollLeft=p),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:f,totalColumnsWidth:u,totalRowsHeight:d})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var r=this.props,i=r.autoHeight,n=r.autoWidth,s=r.height,l=r.width,a=this.state.instanceProps.scrollbarSize,h=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),c=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,c-l+a),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,h-s+a),Math.max(0,this._scrollingContainer.scrollTop+o));if(this.state.scrollLeft!==d||this.state.scrollTop!==u){var p={isScrolling:!0,scrollDirectionHorizontal:d!==this.state.scrollLeft?d>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:e6.REQUESTED};i||(p.scrollTop=u),n||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:c,totalRowsHeight:h})}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,n=this.props,s=n.scrollToColumn,l=n.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=s>=0&&(1===this.state.scrollDirectionHorizontal?o<=s:o>=s),this._recomputeScrollTopFlag=l>=0&&(1===this.state.scrollDirectionVertical?i<=l:i>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,r=this.props,i=r.columnCount,n=r.onScrollToTargetCausedUpdate,s=this.state,l=s.scrollLeft,a=s.scrollTop,h=this.props,c=this.state,d=void 0,u=void 0;if(i>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(e5({},h,{scrollToColumn:t}),c,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(e5({},h,{scrollToRow:o}),c,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(n&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:l,g="number"!=typeof u?u:a;n({clientHeight:h.height,clientWidth:h.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,r=e.height,i=e.scrollLeft,n=e.scrollToColumn,s=e.scrollTop,l=e.scrollToRow,a=e.width,h=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),h.scrollbarSizeMeasured||this.setState(function(e){var t=e5({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t}),"number"==typeof i&&i>=0||"number"==typeof s&&s>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:s});c&&(c.needToResetStyleCache=!1,this.setState(c))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&a>0;n>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:s||0,totalColumnsWidth:h.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:h.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,n=r.autoWidth,s=r.columnCount,l=r.height,a=r.rowCount,h=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,u=r.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,_=p.instanceProps;this._handleInvalidatedGridSize();var v=s>0&&0===e.columnCount||a>0&&0===e.rowCount;m===e6.REQUESTED&&(!n&&f>=0&&(f!==this._scrollingContainer.scrollLeft||v)&&(this._scrollingContainer.scrollLeft=f),!i&&g>=0&&(g!==this._scrollingContainer.scrollTop||v)&&(this._scrollingContainer.scrollTop=g));var S=(0===e.width||0===e.height)&&l>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):eK({cellSizeAndPositionManager:_.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:h,scrollToIndex:c,size:u,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):eK({cellSizeAndPositionManager:_.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:h,scrollToIndex:d,size:l,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var y=_.rowSizeAndPositionManager.getTotalSize(),R=_.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:R,totalRowsHeight:y})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&e0(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,r=e.autoWidth,i=e.className,n=e.containerProps,s=e.containerRole,l=e.containerStyle,a=e.height,h=e.id,c=e.noContentRenderer,d=e.role,u=e.style,p=e.tabIndex,f=e.width,m=this.state,g=m.instanceProps,_=m.needToResetStyleCache,v=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",width:r?"auto":f,WebkitOverflowScrolling:"touch",willChange:"transform"};_&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var y=g.columnSizeAndPositionManager.getTotalSize(),R=g.rowSizeAndPositionManager.getTotalSize(),C=R>a?g.scrollbarSize:0,T=y>f?g.scrollbarSize:0;(T!==this._horizontalScrollBarSize||C!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=C,this._scrollbarPresenceChanged=!0),S.overflowX=y+C<=f?"hidden":"auto",S.overflowY=R+T<=a?"hidden":"auto";var w=this._childrenToDisplay,b=0===w.length&&a>0&&f>0;return x.createElement("div",eF({ref:this._setScrollingContainerRef},n,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:eB("ReactVirtualized__Grid",i),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:d,style:e5({},S,{},u),tabIndex:p}),w.length>0&&x.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:e5({width:t?"auto":y,height:R,maxWidth:y,maxHeight:R,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"},l)},w),b&&c())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=e.cellRenderer,r=e.cellRangeRenderer,i=e.columnCount,n=e.deferredMeasurementCache,s=e.height,l=e.overscanColumnCount,a=e.overscanIndicesGetter,h=e.overscanRowCount,c=e.rowCount,d=e.width,u=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,f=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,_=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,v=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var S=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:_}),y=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),R=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:_}),C=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=y.start,this._renderedRowStopIndex=y.stop;var T=a({direction:"horizontal",cellCount:i,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),w=a({direction:"vertical",cellCount:c,overscanCellsCount:h,scrollDirection:f,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),b=T.overscanStartIndex,E=T.overscanStopIndex,O=w.overscanStartIndex,I=w.overscanStopIndex;if(n){if(!n.hasFixedHeight()){for(var M=O;M<=I;M++)if(!n.has(M,0)){b=0,E=i-1;break}}if(!n.hasFixedWidth()){for(var x=b;x<=E;x++)if(!n.has(0,x)){O=0,I=c-1;break}}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:b,columnStopIndex:E,deferredMeasurementCache:n,horizontalOffsetAdjustment:R,isScrolling:v,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:O,rowStopIndex:I,scrollLeft:_,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:S,visibleRowIndices:y}),this._columnStartIndex=b,this._columnStopIndex=E,this._rowStartIndex=O,this._rowStopIndex=I}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&e0(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=e1(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,r=e.scrollTop,i=e.totalColumnsWidth,n=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:n,scrollLeft:o,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?!!e.isScrolling:!!t.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var o=e.scrollLeft,r=e.scrollTop,i=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:r});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(i)return i.needToResetStyleCache=!1,this.setState(i),e.onScrollToTargetCausedUpdate&&!r&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),i}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var n="".concat(r,"-").concat(i);this._styleCache[n]=e[n],o&&(this._cellCache[n]=t[n])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t._getScrollTopForScrollToRowStateUpdate(e,o);if(i)return i.needToResetStyleCache=!1,this.setState(i),e.onScrollToTargetCausedUpdate&&!r&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),i}}],[{key:"getDerivedStateFromProps",value:function(e,o){var r,i,n={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var s=o.instanceProps;return n.needToResetStyleCache=!1,(e.columnWidth!==s.prevColumnWidth||e.rowHeight!==s.prevRowHeight)&&(n.needToResetStyleCache=!0),s.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),s.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),(0===s.prevColumnCount||0===s.prevRowCount)&&(s.prevColumnCount=0,s.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===s.prevIsScrolling&&Object.assign(n,{isScrolling:!1}),eZ({cellCount:s.prevColumnCount,cellSize:"number"==typeof s.prevColumnWidth?s.prevColumnWidth:null,computeMetadataCallback:function(){return s.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:s.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),eZ({cellCount:s.prevRowCount,cellSize:"number"==typeof s.prevRowHeight?s.prevRowHeight:null,computeMetadataCallback:function(){return s.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:s.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),s.prevColumnCount=e.columnCount,s.prevColumnWidth=e.columnWidth,s.prevIsScrolling=!0===e.isScrolling,s.prevRowCount=e.rowCount,s.prevRowHeight=e.rowHeight,s.prevScrollToColumn=e.scrollToColumn,s.prevScrollToRow=e.scrollToRow,s.scrollbarSize=e.getScrollbarSize(),void 0===s.scrollbarSize?(s.scrollbarSizeMeasured=!1,s.scrollbarSize=0):s.scrollbarSizeMeasured=!0,n.instanceProps=s,e5({},n,{},r,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,r=e.scrollTop,i={scrollPositionChangeReason:e6.REQUESTED};return("number"==typeof o&&o>=0&&(i.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,i.scrollLeft=o),"number"==typeof r&&r>=0&&(i.scrollDirectionVertical=r>t.scrollTop?1:-1,i.scrollTop=r),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop)?i:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,r=e.height,i=e.scrollToAlignment,n=e.scrollToColumn,s=e.width,l=t.scrollLeft,a=t.instanceProps;if(o>0){var h=o-1,c=a.rowSizeAndPositionManager.getTotalSize(),d=a.scrollbarSizeMeasured&&c>r?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:s-d,currentOffset:l,targetIndex:n<0?h:Math.min(h,n)})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var r=o.scrollLeft,i=t._getCalculatedScrollLeft(e,o);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:i,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,r=e.rowCount,i=e.scrollToAlignment,n=e.scrollToRow,s=e.width,l=t.scrollTop,a=t.instanceProps;if(r>0){var h=r-1,c=a.columnSizeAndPositionManager.getTotalSize(),d=a.scrollbarSizeMeasured&&c>s?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:o-d,currentOffset:l,targetIndex:n<0?h:Math.min(h,n)})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var r=o.scrollTop,i=t._getCalculatedScrollTop(e,o);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:i}):{}}}]),t}(x.PureComponent),ez(f,"propTypes",null),m);function e4(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,n=e.stopIndex;return(o=Math.max(1,o),1===r)?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,n+o)}:{overscanStartIndex:Math.max(0,i-o),overscanStopIndex:Math.min(t-1,n+1)}}function e9(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}ez(e3,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,n=e.columnStopIndex,s=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,a=e.isScrolling,h=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,_=e.visibleRowIndices,v=[],S=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),y=!a&&!S,R=u;R<=p;R++)for(var C=d.getSizeAndPositionOfCell(R),T=i;T<=n;T++){var w=r.getSizeAndPositionOfCell(T),b=T>=g.start&&T<=g.stop&&R>=_.start&&R<=_.stop,E="".concat(R,"-").concat(T),O=void 0;y&&f[E]?O=f[E]:s&&!s.has(R,T)?O={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(O={height:C.size,left:w.offset+l,position:"absolute",top:C.offset+m,width:w.size},f[E]=O);var I={columnIndex:T,isScrolling:a,isVisible:b,key:E,parent:c,rowIndex:R,style:O},M=void 0;(h||a)&&!l&&!m?(t[E]||(t[E]=o(I)),M=t[E]):M=o(I),null!=M&&!1!==M&&v.push(M)}return v},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:eX,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,n=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,n+o)}:{overscanStartIndex:Math.max(0,i-o),overscanStopIndex:Math.min(t-1,n)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),eP(e3);var e7=(_=g=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),ez(eN(o),"_columnStartIndex",0),ez(eN(o),"_columnStopIndex",0),ez(eN(o),"_rowStartIndex",0),ez(eN(o),"_rowStopIndex",0),ez(eN(o),"_onKeyDown",function(e){var t=o.props,r=t.columnCount,i=t.disabled,n=t.mode,s=t.rowCount;if(!i){var l=o._getScrollState(),a=l.scrollToColumn,h=l.scrollToRow,c=o._getScrollState(),d=c.scrollToColumn,u=c.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===n?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===n?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===n?Math.min(d+1,r-1):Math.min(o._columnStopIndex+1,r-1);break;case"ArrowUp":u="cells"===n?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}(d!==a||u!==h)&&(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}}),ez(eN(o),"_onSectionRendered",function(e){var t=e.columnStartIndex,r=e.columnStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=r,o._rowStartIndex=i,o._rowStopIndex=n}),o}return eG(t,e),ex(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,r=this._getScrollState(),i=r.scrollToColumn,n=r.scrollToRow;return x.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:n}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,r=this.props,i=r.isControlled,n=r.onScrollToChange;"function"==typeof n&&n({scrollToColumn:t,scrollToRow:o}),i||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e9(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):e9(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(x.PureComponent),ez(g,"propTypes",null),_);function e8(e,t){void 0!==t?r=t:"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:r=o.g;var r,i=void 0!==r.document&&r.document.attachEvent;if(!i){var n,s,l=(n=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)},function(e){return n(e)}),a=(s=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout,function(e){return s(e)}),h=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,r=t.lastElementChild,i=o.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=o.offsetWidth+1+"px",i.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},c=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&0>e.target.className.indexOf("contract-trigger")&&0>e.target.className.indexOf("expand-trigger"))){var t=this;h(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=l(function(){(t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(o){o.call(t,e)}))})}},d=!1,u="",p="animationstart",f="Webkit Moz O ms".split(" "),m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=r.document.createElement("fakeelement");if(void 0!==g.style.animationName&&(d=!0),!1===d){for(var _=0;_<f.length;_++)if(void 0!==g.style[f[_]+"AnimationName"]){u="-"+(0,f[_]).toLowerCase()+"-",p=m[_],d=!0;break}}var v="resizeanim",S="@"+u+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",y=u+"animation: 1ms "+v+"; "}var R=function(t){if(!t.getElementById("detectElementResize")){var o=(S||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=o:i.appendChild(t.createTextNode(o)),r.appendChild(i)}};return{addResizeListener:function(e,t){if(i)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,n=r.getComputedStyle(e);n&&"static"==n.position&&(e.style.position="relative"),R(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var s='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var l=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return s}});e.__resizeTriggers__.innerHTML=l.createHTML("")}else e.__resizeTriggers__.innerHTML=s;e.appendChild(e.__resizeTriggers__),h(e),e.addEventListener("scroll",c,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&h(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function te(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}ez(e7,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),eP(e7);var tt=(S=v=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),ez(eN(o),"_parentNode",void 0),ez(eN(o),"_autoSizer",void 0),ez(eN(o),"_window",void 0),ez(eN(o),"_detectElementResize",void 0),ez(eN(o),"_onResize",function(){var e=o.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(o._parentNode){var n=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,l=(o._window||window).getComputedStyle(o._parentNode)||{},a=parseInt(l.paddingLeft,10)||0,h=parseInt(l.paddingRight,10)||0,c=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,u=n-c-d,p=s-a-h;(t||o.state.height===u)&&(r||o.state.width===p)||(o.setState({height:n-c-d,width:s-a-h}),i({height:n,width:s}))}}),ez(eN(o),"_setRef",function(e){o._autoSizer=e}),o}return eG(t,e),ex(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=e8(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.className,r=e.disableHeight,i=e.disableWidth,n=e.style,s=this.state,l=s.height,a=s.width,h={overflow:"visible"},c={};return r||(h.height=0,c.height=l),i||(h.width=0,c.width=a),x.createElement("div",{className:o,ref:this._setRef,style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?te(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):te(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},h,{},n)},t(c))}}]),t}(x.Component),ez(v,"propTypes",null),S);ez(tt,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});let to=require("react-dom");var tr=o.n(to),ti=(R=y=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"_child",void 0),ez(eN(o),"_measure",function(){var e=o.props,t=e.cache,r=e.columnIndex,i=void 0===r?0:r,n=e.parent,s=e.rowIndex,l=void 0===s?o.props.index||0:s,a=o._getCellMeasurements(),h=a.height,c=a.width;(h!==t.getHeight(l,i)||c!==t.getWidth(l,i))&&(t.set(l,i,c,h),n&&"function"==typeof n.recomputeGridSize&&n.recomputeGridSize({columnIndex:i,rowIndex:l}))}),ez(eN(o),"_registerChild",function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()}),o}return eG(t,e),ex(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,to.findDOMNode)(this);if(!t||!t.ownerDocument||!t.ownerDocument.defaultView||!(t instanceof t.ownerDocument.defaultView.HTMLElement))return{height:0,width:0};var o=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var i=Math.ceil(t.offsetHeight),n=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),r&&(t.style.height=r),{height:i,width:n}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,r=void 0===o?0:o,i=e.parent,n=e.rowIndex,s=void 0===n?this.props.index||0:n;if(!t.has(s,r)){var l=this._getCellMeasurements(),a=l.height,h=l.width;t.set(s,r,h,a),i&&"function"==typeof i.invalidateCellSizeAfterRender&&i.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:s})}}}]),t}(x.PureComponent),ez(y,"propTypes",null),R);function tn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}ez(ti,"__internalCellMeasurerFlag",!1);var ts={OBSERVED:"observed",REQUESTED:"requested"},tl=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),ez(eN(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),ez(eN(o),"_onSectionRenderedMemoizer",eY()),ez(eN(o),"_onScrollMemoizer",eY(!1)),ez(eN(o),"_invokeOnSectionRenderedHelper",function(){var e=o.props,t=e.cellLayoutManager,r=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})}),ez(eN(o),"_setScrollingContainerRef",function(e){o._scrollingContainer=e}),ez(eN(o),"_updateScrollPositionForScrollToCell",function(){var e=o.props,t=e.cellLayoutManager,r=e.height,i=e.scrollToAlignment,n=e.scrollToCell,s=e.width,l=o.state,a=l.scrollLeft,h=l.scrollTop;if(n>=0){var c=t.getScrollPositionForCell({align:i,cellIndex:n,height:r,scrollLeft:a,scrollTop:h,width:s});(c.scrollLeft!==a||c.scrollTop!==h)&&o._setScrollPosition(c)}}),ez(eN(o),"_onScroll",function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,r=t.cellLayoutManager,i=t.height,n=t.isScrollingChange,s=t.width,l=o._scrollbarSize,a=r.getTotalSize(),h=a.height,c=a.width,d=Math.max(0,Math.min(c-s+l,e.target.scrollLeft)),u=Math.max(0,Math.min(h-i+l,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?ts.OBSERVED:ts.REQUESTED;o.state.isScrolling||n(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:c,totalHeight:h})}}),o._scrollbarSize=eX(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return eG(t,e),ex(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,r=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=eX(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(o>=0||i>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:i}),this._invokeOnSectionRenderedHelper();var n=t.getTotalSize(),s=n.height,l=n.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:i||0,totalHeight:s,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,r=o.height,i=o.scrollToAlignment,n=o.scrollToCell,s=o.width,l=this.state,a=l.scrollLeft,h=l.scrollPositionChangeReason,c=l.scrollTop;h===ts.REQUESTED&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),(r!==e.height||i!==e.scrollToAlignment||n!==e.scrollToCell||s!==e.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,r=e.cellLayoutManager,i=e.className,n=e.height,s=e.horizontalOverscanSize,l=e.id,a=e.noContentRenderer,h=e.style,c=e.verticalOverscanSize,d=e.width,u=this.state,p=u.isScrolling,f=u.scrollLeft,m=u.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var g=r.getTotalSize(),_=g.height,v=g.width,S=Math.max(0,f-s),y=Math.max(0,m-c),R=Math.min(v,f+d+s),C=Math.min(_,m+n+c),T=n>0&&d>0?r.cellRenderers({height:C-y,isScrolling:p,width:R-S,x:S,y:y}):[],w={boxSizing:"border-box",direction:"ltr",height:t?"auto":n,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},b=_>n?this._scrollbarSize:0,E=v>d?this._scrollbarSize:0;return w.overflowX=v+b<=d?"hidden":"auto",w.overflowY=_+E<=n?"hidden":"auto",x.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:eB("ReactVirtualized__Collection",i),id:l,onScroll:this._onScroll,role:"grid",style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tn(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tn(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},w,{},h),tabIndex:0},o>0&&x.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:_,maxHeight:_,maxWidth:v,overflow:"hidden",pointerEvents:p?"none":"",width:v}},T),0===o&&a())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,r=e.scrollTop,i=e.totalHeight,n=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:r,scrollWidth:n})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,r={scrollPositionChangeReason:ts.REQUESTED};t>=0&&(r.scrollLeft=t),o>=0&&(r.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0===e.cellCount&&(0!==t.scrollLeft||0!==t.scrollTop)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ts.REQUESTED}:e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:ts.REQUESTED}:null}}]),t}(x.PureComponent);ez(tl,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),tl.propTypes={},eP(tl);var ta=function(){function e(t){var o=t.height,r=t.width,i=t.x,n=t.y;eE(this,e),this.height=o,this.width=r,this.x=i,this.y=n,this._indexMap={},this._indices=[]}return ex(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),th=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;eE(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return ex(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,r=e.x,i=e.y,n={};return this.getSections({height:t,width:o,x:r,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){n[e]=e})}),Object.keys(n).map(function(e){return n[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,r=e.x,i=e.y,n=Math.floor(r/this._sectionSize),s=Math.floor((r+o-1)/this._sectionSize),l=Math.floor(i/this._sectionSize),a=Math.floor((i+t-1)/this._sectionSize),h=[],c=n;c<=s;c++)for(var d=l;d<=a;d++){var u="".concat(c,".").concat(d);this._sections[u]||(this._sections[u]=new ta({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),h.push(this._sections[u])}return h}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:o})})}}]),e}();function tc(e){var t=e.align,o=e.cellOffset,r=e.cellSize,i=e.containerSize,n=e.currentOffset,s=o-i+r;switch(void 0===t?"auto":t){case"start":return o;case"end":return s;case"center":return o-(i-r)/2;default:return Math.max(s,Math.min(o,n))}}var td=function(e){function t(e,o){var r;return eE(this,t),(r=eD(this,eA(t).call(this,e,o)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(eN(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(eN(r)),r}return eG(t,e),ex(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=eF({},this.props);return x.createElement(tl,eF({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,r=e.sectionSize,i=[],n=new th(r),s=0,l=0,a=0;a<t;a++){var h=o({index:a});if(null==h.height||isNaN(h.height)||null==h.width||isNaN(h.width)||null==h.x||isNaN(h.x)||null==h.y||isNaN(h.y))throw Error("Invalid metadata returned for cell ".concat(a,":\n x:").concat(h.x,", y:").concat(h.y,", width:").concat(h.width,", height:").concat(h.height));s=Math.max(s,h.y+h.height),l=Math.max(l,h.x+h.width),i[a]=h,n.registerCell({cellMetadatum:h,index:a})}return{cellMetadata:i,height:s,sectionManager:n,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,r=e.height,i=e.scrollLeft,n=e.scrollTop,s=e.width,l=this.props.cellCount;if(o>=0&&o<l){var a=this._cellMetadata[o];i=tc({align:t,cellOffset:a.x,cellSize:a.width,containerSize:s,currentOffset:i,targetIndex:o}),n=tc({align:t,cellOffset:a.y,cellSize:a.height,containerSize:r,currentOffset:n,targetIndex:o})}return{scrollLeft:i,scrollTop:n}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,r=e.isScrolling,i=e.width,n=e.x,s=e.y,l=this.props,a=l.cellGroupRenderer,h=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:i,x:n,y:s}),a({cellCache:this._cellCache,cellRenderer:h,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(x.PureComponent);function tu(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function tp(e,t){if(e){if("string"==typeof e)return tu(e,t);var o=({}).toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?tu(e,t):void 0}}ez(td,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,r=e.cellSizeAndPositionGetter,i=e.indices,n=e.isScrolling;return i.map(function(e){var i=r({index:e}),s={index:e,isScrolling:n,key:e,style:{height:i.height,left:i.x,position:"absolute",top:i.y,width:i.width}};return n?(e in t||(t[e]=o(s)),t[e]):o(s)}).filter(function(e){return!!e})}}),td.propTypes={},function(e){function t(e,o){var r;return eE(this,t),(r=eD(this,eA(t).call(this,e,o)))._registerChild=r._registerChild.bind(eN(r)),r}return eG(t,e),ex(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,r=t.columnMinWidth,i=t.columnCount,n=t.width;(o!==e.columnMaxWidth||r!==e.columnMinWidth||i!==e.columnCount||n!==e.width)&&this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,r=e.columnMinWidth,i=e.columnCount,n=e.width,s=n/i;return s=Math.floor(s=Math.min(o?Math.min(o,n):n,s=Math.max(r||1,s))),t({adjustedWidth:Math.min(n,s*i),columnWidth:s,getColumnWidth:function(){return s},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(x.PureComponent).propTypes={};var tf=function(e){function t(e,o){var r;return eE(this,t),(r=eD(this,eA(t).call(this,e,o)))._loadMoreRowsMemoizer=eY(),r._onRowsRendered=r._onRowsRendered.bind(eN(r)),r._registerChild=r._registerChild.bind(eN(r)),r}return eG(t,e),ex(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=eY(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach(function(e){var r=o(e);r&&r.then(function(){var o,r,i,n,s;r=(o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).lastRenderedStartIndex,i=o.lastRenderedStopIndex,n=o.startIndex,s=o.stopIndex,!(n>i||s<r)&&t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,r,i=this,n=this.props,s=n.isRowLoaded,l=n.minimumBatchSize,a=n.rowCount,h=n.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,r=e.rowCount,i=e.startIndex,n=e.stopIndex,s=[],l=null,a=null,h=i;h<=n;h++)t({index:h})?null!==a&&(s.push({startIndex:l,stopIndex:a}),l=a=null):(a=h,null===l&&(l=h));if(null!==a){for(var c=Math.min(Math.max(a,l+o-1),r-1),d=a+1;d<=c&&!t({index:d});d++)a=d;s.push({startIndex:l,stopIndex:a})}if(s.length)for(var u=s[0];u.stopIndex-u.startIndex+1<o&&u.startIndex>0;){var p=u.startIndex-1;if(t({index:p}))break;u.startIndex=p}return s}({isRowLoaded:s,minimumBatchSize:l,rowCount:a,startIndex:Math.max(0,e-h),stopIndex:Math.min(a-1,t+h)}),d=(r=[]).concat.apply(r,function(e){if(Array.isArray(e))return tu(e)}(o=c.map(function(e){return[e.startIndex,e.stopIndex]}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||tp(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(x.PureComponent);ez(tf,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),tf.propTypes={};var tm=(T=C=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"Grid",void 0),ez(eN(o),"_cellRenderer",function(e){var t=e.parent,r=e.rowIndex,i=e.style,n=e.isScrolling,s=e.isVisible,l=e.key,a=o.props.rowRenderer,h=Object.getOwnPropertyDescriptor(i,"width");return h&&h.writable&&(i.width="100%"),a({index:r,style:i,isScrolling:n,isVisible:s,key:l,parent:t})}),ez(eN(o),"_setRef",function(e){o.Grid=e}),ez(eN(o),"_onScroll",function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:i})}),ez(eN(o),"_onScrollToRowCausedUpdate",function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:r,scrollTop:i})}),ez(eN(o),"_onSectionRendered",function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:i,stopIndex:n})}),o}return eG(t,e),ex(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.recomputeGridSize({rowIndex:void 0===o?0:o,columnIndex:void 0===t?0:t})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.noRowsRenderer,r=e.scrollToIndex,i=e.width,n=eB("ReactVirtualized__List",t);return x.createElement(e3,eF({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:n,columnWidth:i,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(x.PureComponent),ez(C,"propTypes",null),T);ez(tm,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:e4,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});let tg={ge:function(e,t,o,r,i){return"function"==typeof o?function(e,t,o,r,i){for(var n=o+1;t<=o;){var s=t+o>>>1;i(e[s],r)>=0?(n=s,o=s-1):t=s+1}return n}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,o):function(e,t,o,r){for(var i=o+1;t<=o;){var n=t+o>>>1;e[n]>=r?(i=n,o=n-1):t=n+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t)}};function t_(e,t,o,r,i){this.mid=e,this.left=t,this.right=o,this.leftPoints=r,this.rightPoints=i,this.count=(t?t.count:0)+(o?o.count:0)+r.length}var tv=t_.prototype;function tS(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function ty(e,t){var o=tM(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function tR(e,t){var o=e.intervals([]);o.push(t),ty(e,o)}function tC(e,t){var o=e.intervals([]),r=o.indexOf(t);return r<0?0:(o.splice(r,1),ty(e,o),1)}function tT(e,t,o){for(var r=0;r<e.length&&e[r][0]<=t;++r){var i=o(e[r]);if(i)return i}}function tw(e,t,o){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var i=o(e[r]);if(i)return i}}function tb(e,t){for(var o=0;o<e.length;++o){var r=t(e[o]);if(r)return r}}function tE(e,t){return e-t}function tO(e,t){return e[0]-t[0]||e[1]-t[1]}function tI(e,t){return e[1]-t[1]||e[0]-t[0]}function tM(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(tE);for(var r=t[t.length>>1],i=[],n=[],s=[],o=0;o<e.length;++o){var l=e[o];l[1]<r?i.push(l):r<l[0]?n.push(l):s.push(l)}var a=s.slice();return s.sort(tO),a.sort(tI),new t_(r,tM(i),tM(n),s,a)}function tx(e){this.root=e}tv.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},tv.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?tR(this,e):this.left.insert(e):this.left=tM([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?tR(this,e):this.right.insert(e):this.right=tM([e]);else{var o=tg.ge(this.leftPoints,e,tO),r=tg.ge(this.rightPoints,e,tI);this.leftPoints.splice(o,0,e),this.rightPoints.splice(r,0,e)}},tv.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return 0;if(4*(this.right?this.right.count:0)>3*(t-1))return tC(this,e);var o=this.left.remove(e);return 2===o?(this.left=null,this.count-=1,1):(1===o&&(this.count-=1),o)}if(e[0]>this.mid){if(!this.right)return 0;if(4*(this.left?this.left.count:0)>3*(t-1))return tC(this,e);var o=this.right.remove(e);return 2===o?(this.right=null,this.count-=1,1):(1===o&&(this.count-=1),o)}if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var n=this.left,o=this.right;r.count-=i.count,r.right=i.left,i.left=n,i.right=o}tS(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?tS(this,this.left):tS(this,this.right);return 1}for(var n=tg.ge(this.leftPoints,e,tO);n<this.leftPoints.length&&this.leftPoints[n][0]===e[0];++n)if(this.leftPoints[n]===e){this.count-=1,this.leftPoints.splice(n,1);for(var o=tg.ge(this.rightPoints,e,tI);o<this.rightPoints.length&&this.rightPoints[o][1]===e[1];++o)if(this.rightPoints[o]===e)return this.rightPoints.splice(o,1),1}return 0},tv.queryPoint=function(e,t){if(e<this.mid){if(this.left){var o=this.left.queryPoint(e,t);if(o)return o}return tT(this.leftPoints,e,t)}if(!(e>this.mid))return tb(this.leftPoints,t);if(this.right){var o=this.right.queryPoint(e,t);if(o)return o}return tw(this.rightPoints,e,t)},tv.queryInterval=function(e,t,o){if(e<this.mid&&this.left){var r=this.left.queryInterval(e,t,o);if(r)return r}if(t>this.mid&&this.right){var r=this.right.queryInterval(e,t,o);if(r)return r}return t<this.mid?tT(this.leftPoints,t,o):e>this.mid?tw(this.rightPoints,e,o):tb(this.leftPoints,o)};var tN=tx.prototype;tN.insert=function(e){this.root?this.root.insert(e):this.root=new t_(e[0],null,null,[e],[e])},tN.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},tN.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},tN.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(tN,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(tN,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var tD=function(){function e(){eE(this,e),ez(this,"_columnSizeMap",{}),ez(this,"_intervalTree",new tx(null)),ez(this,"_leftMap",{})}return ex(e,[{key:"estimateTotalHeight",value:function(e,t,o){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*o}},{key:"range",value:function(e,t,o){var r=this;this._intervalTree.queryInterval(e,e+t,function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r,i,n,s,l=[],a=!0,h=!1;try{for(n=(o=o.call(e)).next;!(a=(r=n.call(o)).done)&&(l.push(r.value),3!==l.length);a=!0);}catch(e){h=!0,i=e}finally{try{if(!a&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(h)throw i}}return l}}(e,3)||tp(e,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=t[0],n=(t[1],t[2]);return o(n,r._leftMap[n],i)})}},{key:"setPosition",value:function(e,t,o,r){this._intervalTree.insert([o,o+r,e]),this._leftMap[e]=t;var i=this._columnSizeMap,n=i[t];void 0===n?i[t]=o+r:i[t]=Math.max(n,o+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var r=e[o];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e)t=Math.max(t,e[o]);return t}}]),e}();function tA(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}var tH=(b=w=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollTop:0}),ez(eN(o),"_debounceResetIsScrollingId",void 0),ez(eN(o),"_invalidateOnUpdateStartIndex",null),ez(eN(o),"_invalidateOnUpdateStopIndex",null),ez(eN(o),"_positionCache",new tD),ez(eN(o),"_startIndex",null),ez(eN(o),"_startIndexMemoized",null),ez(eN(o),"_stopIndex",null),ez(eN(o),"_stopIndexMemoized",null),ez(eN(o),"_debounceResetIsScrollingCallback",function(){o.setState({isScrolling:!1})}),ez(eN(o),"_setScrollingContainerRef",function(e){o._scrollingContainer=e}),ez(eN(o),"_onScroll",function(e){var t=o.props.height,r=e.currentTarget.scrollTop,i=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),r);r===i&&(o._debounceResetIsScrolling(),o.state.scrollTop!==i&&o.setState({isScrolling:!0,scrollTop:i}))}),o}return eG(t,e),ex(t,[{key:"clearCellPositions",value:function(){this._positionCache=new tD,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new tD,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&e0(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,r=o.autoHeight,i=o.cellCount,n=o.cellMeasurerCache,s=o.cellRenderer,l=o.className,a=o.height,h=o.id,c=o.keyMapper,d=o.overscanByPixels,u=o.role,p=o.style,f=o.tabIndex,m=o.width,g=o.rowDirection,_=this.state,v=_.isScrolling,S=_.scrollTop,y=[],R=this._getEstimatedTotalHeight(),C=this._positionCache.shortestColumnSize,T=this._positionCache.count,w=0;if(this._positionCache.range(Math.max(0,S-d),a+2*d,function(o,r,i){var l;void 0===e?(w=o,e=o):(w=Math.min(w,o),e=Math.max(e,o)),y.push(s({index:o,isScrolling:v,key:c(o),parent:t,style:(ez(l={height:n.getHeight(o)},"ltr"===g?"left":"right",r),ez(l,"position","absolute"),ez(l,"top",i),ez(l,"width",n.getWidth(o)),l)}))}),C<S+a+d&&T<i)for(var b=Math.min(i-T,Math.ceil((S+a+d-C)/n.defaultHeight*m/n.defaultWidth)),E=T;E<T+b;E++)e=E,y.push(s({index:E,isScrolling:v,key:c(E),parent:this,style:{width:n.getWidth(E)}}));return this._startIndex=w,this._stopIndex=e,x.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:eB("ReactVirtualized__Masonry",l),id:h,onScroll:this._onScroll,role:u,style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tA(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tA(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({boxSizing:"border-box",direction:"ltr",height:r?"auto":a,overflowX:"hidden",overflowY:R<a?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:f},x.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:R,maxWidth:"100%",maxHeight:R,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"}},y))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&e0(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=e1(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,r=Math.max(1,Math.floor(e.width/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){(this._startIndexMemoized!==this._startIndex||this._stopIndexMemoized!==this._stopIndex)&&((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,r=o.cellMeasurerCache,i=o.cellPositioner,n=e;n<=t;n++){var s=i(n),l=s.left,a=s.top;this._positionCache.setPosition(n,l,a,r.getHeight(n))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(x.PureComponent),ez(w,"propTypes",null),b);function tG(){}ez(tH,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:tG,onScroll:tG,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),eP(tH);var tz=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eE(this,e),ez(this,"_cellMeasurerCache",void 0),ez(this,"_columnIndexOffset",void 0),ez(this,"_rowIndexOffset",void 0),ez(this,"columnWidth",function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})}),ez(this,"rowHeight",function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})});var r=o.cellMeasurerCache,i=o.columnIndexOffset,n=o.rowIndexOffset;this._cellMeasurerCache=r,this._columnIndexOffset=void 0===i?0:i,this._rowIndexOffset=void 0===n?0:n}return ex(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function tW(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function tk(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tW(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tW(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var tL=function(e){function t(e,o){eE(this,t),ez(eN(r=eD(this,eA(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),ez(eN(r),"_deferredInvalidateColumnIndex",null),ez(eN(r),"_deferredInvalidateRowIndex",null),ez(eN(r),"_bottomLeftGridRef",function(e){r._bottomLeftGrid=e}),ez(eN(r),"_bottomRightGridRef",function(e){r._bottomRightGrid=e}),ez(eN(r),"_cellRendererBottomLeftGrid",function(e){var t=e.rowIndex,o=ej(e,["rowIndex"]),i=r.props,n=i.cellRenderer,s=i.fixedRowCount;return t===i.rowCount-s?x.createElement("div",{key:o.key,style:tk({},o.style,{height:20})}):n(tk({},o,{parent:eN(r),rowIndex:t+s}))}),ez(eN(r),"_cellRendererBottomRightGrid",function(e){var t=e.columnIndex,o=e.rowIndex,i=ej(e,["columnIndex","rowIndex"]),n=r.props,s=n.cellRenderer,l=n.fixedColumnCount,a=n.fixedRowCount;return s(tk({},i,{columnIndex:t+l,parent:eN(r),rowIndex:o+a}))}),ez(eN(r),"_cellRendererTopRightGrid",function(e){var t=e.columnIndex,o=ej(e,["columnIndex"]),i=r.props,n=i.cellRenderer,s=i.columnCount,l=i.fixedColumnCount;return t===s-l?x.createElement("div",{key:o.key,style:tk({},o.style,{width:20})}):n(tk({},o,{columnIndex:t+l,parent:eN(r)}))}),ez(eN(r),"_columnWidthRightGrid",function(e){var t=e.index,o=r.props,i=o.columnCount,n=o.fixedColumnCount,s=o.columnWidth,l=r.state,a=l.scrollbarSize;return l.showHorizontalScrollbar&&t===i-n?a:"function"==typeof s?s({index:t+n}):s}),ez(eN(r),"_onScroll",function(e){var t=e.scrollLeft,o=e.scrollTop;r.setState({scrollLeft:t,scrollTop:o});var i=r.props.onScroll;i&&i(e)}),ez(eN(r),"_onScrollbarPresenceChange",function(e){var t=e.horizontal,o=e.size,i=e.vertical,n=r.state,s=n.showHorizontalScrollbar,l=n.showVerticalScrollbar;if(t!==s||i!==l){r.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:i});var a=r.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:i})}}),ez(eN(r),"_onScrollLeft",function(e){var t=e.scrollLeft;r._onScroll({scrollLeft:t,scrollTop:r.state.scrollTop})}),ez(eN(r),"_onScrollTop",function(e){var t=e.scrollTop;r._onScroll({scrollTop:t,scrollLeft:r.state.scrollLeft})}),ez(eN(r),"_rowHeightBottomGrid",function(e){var t=e.index,o=r.props,i=o.fixedRowCount,n=o.rowCount,s=o.rowHeight,l=r.state,a=l.scrollbarSize;return l.showVerticalScrollbar&&t===n-i?a:"function"==typeof s?s({index:t+i}):s}),ez(eN(r),"_topLeftGridRef",function(e){r._topLeftGrid=e}),ez(eN(r),"_topRightGridRef",function(e){r._topRightGrid=e});var r,i=e.deferredMeasurementCache,n=e.fixedColumnCount,s=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),i&&(r._deferredMeasurementCacheBottomLeftGrid=s>0?new tz({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,r._deferredMeasurementCacheBottomRightGrid=n>0||s>0?new tz({cellMeasurerCache:i,columnIndexOffset:n,rowIndexOffset:s}):i,r._deferredMeasurementCacheTopRightGrid=n>0?new tz({cellMeasurerCache:i,columnIndexOffset:n,rowIndexOffset:0}):i),r}return eG(t,e),ex(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,n=this.props,s=n.fixedColumnCount,l=n.fixedRowCount,a=Math.max(0,o-s),h=Math.max(0,i-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:h}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:h}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:i}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var r={};t>0&&(r.scrollLeft=t),o>0&&(r.scrollTop=o),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),n=ej(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var s=this.state,l=s.scrollLeft,a=s.scrollTop;return x.createElement("div",{style:this._containerOuterStyle},x.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(n),this._renderTopRightGrid(tk({},n,{onScroll:t,scrollLeft:l}))),x.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(tk({},n,{onScroll:t,scrollTop:a})),this._renderBottomRightGrid(tk({},n,{onScroll:t,onSectionRendered:o,scrollLeft:l,scrollToColumn:r,scrollToRow:i,scrollTop:a}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth){if("function"==typeof o){for(var r=0,i=0;i<t;i++)r+=o({index:i});this._leftGridWidth=r}else this._leftGridWidth=o*t}return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight){if("function"==typeof o){for(var r=0,i=0;i<t;i++)r+=o({index:i});this._topGridHeight=r}else this._topGridHeight=o*t}return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,r=t.enableFixedColumnScroll,i=t.enableFixedRowScroll,n=t.height,s=t.fixedColumnCount,l=t.fixedRowCount,a=t.rowHeight,h=t.style,c=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||n!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,_=e||l!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||m||h!==this._lastRenderedStyle)&&(this._containerOuterStyle=tk({height:n,overflow:"visible",width:f},h)),(e||m||_)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:n-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||c!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=tk({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},c)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=tk({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=tk({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=tk({left:this._getLeftGridWidth(this.props),overflowX:i?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=n,this._lastRenderedRowHeight=a,this._lastRenderedStyle=h,this._lastRenderedStyleBottomLeftGrid=c,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=f}},{key:"_prepareForRender",value:function(){(this._lastRenderedColumnWidth!==this.props.columnWidth||this._lastRenderedFixedColumnCount!==this.props.fixedColumnCount)&&(this._leftGridWidth=null),(this._lastRenderedFixedRowCount!==this.props.fixedRowCount||this._lastRenderedRowHeight!==this.props.rowHeight)&&(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,n=e.hideBottomLeftGridScrollbar,s=this.state.showVerticalScrollbar;if(!o)return null;var l=this._getBottomGridHeight(e),a=this._getLeftGridWidth(e),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,c=x.createElement(e3,eF({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:l,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-r)+(s?1:0),rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:n?a+h:a}));return n?x.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:tk({},this._bottomLeftGridStyle,{height:l,width:a,overflowY:"hidden"})},c):c}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,n=e.scrollToColumn,s=e.scrollToRow;return x.createElement(e3,eF({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:n-o,scrollToRow:s-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?x.createElement(e3,eF({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,r=e.fixedColumnCount,i=e.fixedRowCount,n=e.scrollLeft,s=e.hideTopRightGridScrollbar,l=this.state,a=l.showHorizontalScrollbar,h=l.scrollbarSize;if(!i)return null;var c=this._getTopGridHeight(e),d=this._getRightGridWidth(e),u=c,p=this._topRightGridStyle;s&&(u=c+(a?h:0),p=tk({},this._topRightGridStyle,{left:0}));var f=x.createElement(e3,eF({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+(a?1:0),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:u,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:n,style:p,tabIndex:null,width:d}));return s?x.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:tk({},this._topRightGridStyle,{height:c,width:d,overflowX:"hidden"})},f):f}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(x.PureComponent);function tP(e){var t=e.className,o=e.columns,r=e.style;return x.createElement("div",{className:t,role:"row",style:r},o)}ez(tL,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),tL.propTypes={},eP(tL),function(e){function t(e,o){var r;return eE(this,t),(r=eD(this,eA(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(eN(r)),r}return eG(t,e),ex(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,r=t.clientWidth,i=t.scrollHeight,n=t.scrollLeft,s=t.scrollTop,l=t.scrollWidth;return e({clientHeight:o,clientWidth:r,onScroll:this._onScroll,scrollHeight:i,scrollLeft:n,scrollTop:s,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,r=e.scrollHeight,i=e.scrollLeft,n=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:r,scrollLeft:i,scrollTop:n,scrollWidth:s})}}]),t}(x.PureComponent).propTypes={},tP.propTypes=null;let tF={ASC:"ASC",DESC:"DESC"};function tB(e){var t=e.sortDirection,o=eB("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===tF.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===tF.DESC});return x.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===tF.ASC?x.createElement("path",{d:"M7 14l5-5 5 5z"}):x.createElement("path",{d:"M7 10l5 5 5-5z"}),x.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function tZ(e){var t=e.dataKey,o=e.label,r=e.sortBy,i=e.sortDirection,n=[x.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return r===t&&n.push(x.createElement(tB,{key:"SortIndicator",sortDirection:i})),n}function tU(e){var t=e.className,o=e.columns,r=e.index,i=e.key,n=e.onRowClick,s=e.onRowDoubleClick,l=e.onRowMouseOut,a=e.onRowMouseOver,h=e.onRowRightClick,c=e.rowData,d=e.style,u={"aria-rowindex":r+1};return(n||s||l||a||h)&&(u["aria-label"]="row",u.tabIndex=0,n&&(u.onClick=function(e){return n({event:e,index:r,rowData:c})}),s&&(u.onDoubleClick=function(e){return s({event:e,index:r,rowData:c})}),l&&(u.onMouseOut=function(e){return l({event:e,index:r,rowData:c})}),a&&(u.onMouseOver=function(e){return a({event:e,index:r,rowData:c})}),h&&(u.onContextMenu=function(e){return h({event:e,index:r,rowData:c})})),x.createElement("div",eF({},u,{className:t,key:i,role:"row",style:d}),o)}tB.propTypes={},tZ.propTypes=null,tU.propTypes=null;var tj=function(e){function t(){return eE(this,t),eD(this,eA(t).apply(this,arguments))}return eG(t,e),t}(x.Component);function t$(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function tV(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?t$(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t$(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}ez(tj,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:tF.ASC,flexGrow:0,flexShrink:1,headerRenderer:tZ,style:{}}),tj.propTypes={};var tY=function(e){function t(e){var o;return eE(this,t),(o=eD(this,eA(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(eN(o)),o._createRow=o._createRow.bind(eN(o)),o._onScroll=o._onScroll.bind(eN(o)),o._onSectionRendered=o._onSectionRendered.bind(eN(o)),o._setRef=o._setRef.bind(eN(o)),o}return eG(t,e),ex(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.recomputeGridSize({rowIndex:void 0===o?0:o,columnIndex:void 0===t?0:t})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,to.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,r=t.className,i=t.disableHeader,n=t.gridClassName,s=t.gridStyle,l=t.headerHeight,a=t.headerRowRenderer,h=t.height,c=t.id,d=t.noRowsRenderer,u=t.rowClassName,p=t.rowStyle,f=t.scrollToIndex,m=t.style,g=t.width,_=this.state.scrollbarWidth,v="function"==typeof u?u({index:-1}):u,S="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],x.Children.toArray(o).forEach(function(t,o){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=tV({overflow:"hidden"},r)}),x.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":x.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:eB("ReactVirtualized__Table",r),id:c,role:"grid",style:m},!i&&a({className:eB("ReactVirtualized__Table__headerRow",v),columns:this._getHeaderColumns(),style:tV({height:l,overflow:"hidden",paddingRight:_,width:g},S)}),x.createElement(e3,eF({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:eB("ReactVirtualized__Table__Grid",n),cellRenderer:this._createRow,columnWidth:g,columnCount:1,height:i?h:h-l,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:_,scrollToRow:f,style:tV({},s,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,r=e.isScrolling,i=e.parent,n=e.rowData,s=e.rowIndex,l=this.props.onColumnClick,a=t.props,h=a.cellDataGetter,c=a.cellRenderer,d=a.className,u=a.columnData,p=a.dataKey,f=a.id,m=c({cellData:h({columnData:u,dataKey:p,rowData:n}),columnData:u,columnIndex:o,dataKey:p,isScrolling:r,parent:i,rowData:n,rowIndex:s}),g=this._cachedColumnStyles[o],_="string"==typeof m?m:null;return x.createElement("div",{"aria-colindex":o+1,"aria-describedby":f,className:eB("ReactVirtualized__Table__rowColumn",d),key:"Row"+s+"-Col"+o,onClick:function(e){l&&l({columnData:u,dataKey:p,event:e})},role:"gridcell",style:g,title:_},m)}},{key:"_createHeader",value:function(e){var t,o,r,i,n,s=e.column,l=e.index,a=this.props,h=a.headerClassName,c=a.headerStyle,d=a.onHeaderClick,u=a.sort,p=a.sortBy,f=a.sortDirection,m=s.props,g=m.columnData,_=m.dataKey,v=m.defaultSortDirection,S=m.disableSort,y=m.headerRenderer,R=m.id,C=m.label,T=!S&&u,w=eB("ReactVirtualized__Table__headerColumn",h,s.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:T}),b=this._getFlexStyleForColumn(s,tV({},c,{},s.props.headerStyle)),E=y({columnData:g,dataKey:_,disableSort:S,label:C,sortBy:p,sortDirection:f});if(T||d){var O=p!==_?v:f===tF.DESC?tF.ASC:tF.DESC,I=function(e){T&&u({defaultSortDirection:v,event:e,sortBy:_,sortDirection:O}),d&&d({columnData:g,dataKey:_,event:e})};n=s.props["aria-label"]||C||_,i="none",r=0,t=I,o=function(e){("Enter"===e.key||" "===e.key)&&I(e)}}return p===_&&(i=f===tF.ASC?"ascending":"descending"),x.createElement("div",{"aria-label":n,"aria-sort":i,className:w,id:R,key:"Header-Col"+l,onClick:t,onKeyDown:o,role:"columnheader",style:b,tabIndex:r},E)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,r=e.isScrolling,i=e.key,n=e.parent,s=e.style,l=this.props,a=l.children,h=l.onRowClick,c=l.onRowDoubleClick,d=l.onRowRightClick,u=l.onRowMouseOver,p=l.onRowMouseOut,f=l.rowClassName,m=l.rowGetter,g=l.rowRenderer,_=l.rowStyle,v=this.state.scrollbarWidth,S="function"==typeof f?f({index:o}):f,y="function"==typeof _?_({index:o}):_,R=m({index:o}),C=x.Children.toArray(a).map(function(e,i){return t._createColumn({column:e,columnIndex:i,isScrolling:r,parent:n,rowData:R,rowIndex:o,scrollbarWidth:v})}),T=eB("ReactVirtualized__Table__row",S),w=tV({},s,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:v},y);return g({className:T,columns:C,index:o,isScrolling:r,key:i,onRowClick:h,onRowDoubleClick:c,onRowRightClick:d,onRowMouseOver:u,onRowMouseOut:p,rowData:R,style:w})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=tV({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:x.Children.toArray(o)).map(function(t,o){return e._createHeader({column:t,index:o})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:r,stopIndex:i})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(x.PureComponent);ez(tY,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:e4,overscanRowCount:10,rowRenderer:tU,headerRowRenderer:tP,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),tY.propTypes={};var tK=[],tq=null,tX=null;function tQ(){tX&&(tX=null,document.body&&null!=tq&&(document.body.style.pointerEvents=tq),tq=null)}function tJ(){tQ(),tK.forEach(function(e){return e.__resetIsScrolling()})}function t0(e){var t;e.currentTarget===window&&null==tq&&document.body&&(tq=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),tX&&e0(tX),t=0,tK.forEach(function(e){t=Math.max(t,e.props.scrollingResetTimeInterval)}),tX=e1(tJ,t),tK.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function t1(e,t){tK.some(function(e){return e.props.scrollElement===t})||t.addEventListener("scroll",t0),tK.push(e)}function t2(e,t){!(tK=tK.filter(function(t){return t!==e})).length&&(t.removeEventListener("scroll",t0),tX&&(e0(tX),tQ()))}var t5=function(e){return e===window},t6=function(e){return e.getBoundingClientRect()};function t3(e,t){if(!e)return{height:t.serverHeight,width:t.serverWidth};if(!t5(e))return t6(e);var o=window,r=o.innerHeight,i=o.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof i?i:0}}function t4(e){return t5(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function t9(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}var t7=function(){return"undefined"!=typeof window?window:void 0},t8=(O=E=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"_window",t7()),ez(eN(o),"_isMounted",!1),ez(eN(o),"_positionFromTop",0),ez(eN(o),"_positionFromLeft",0),ez(eN(o),"_detectElementResize",void 0),ez(eN(o),"_child",void 0),ez(eN(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?t9(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t9(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},t3(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),ez(eN(o),"_registerChild",function(e){e&&Element,o._child=e,o.updatePosition()}),ez(eN(o),"_onChildScroll",function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var r=o.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,t+o._positionFromTop):r.scrollTop=t+o._positionFromTop)}}),ez(eN(o),"_registerResizeListener",function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)}),ez(eN(o),"_unregisterResizeListener",function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)}),ez(eN(o),"_onResize",function(){o.updatePosition()}),ez(eN(o),"__handleWindowScrollEvent",function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var r=t4(t),i=Math.max(0,r.left-o._positionFromLeft),n=Math.max(0,r.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:i,scrollTop:n}),e({scrollLeft:i,scrollTop:n})}}}),ez(eN(o),"__resetIsScrolling",function(){o.setState({isScrolling:!1})}),o}return eG(t,e),ex(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,r=o.height,i=o.width,n=this._child||to.findDOMNode(this);if(n instanceof Element&&e){var s=function(e,t){if(t5(t)&&document.documentElement){var o=document.documentElement,r=t6(e),i=t6(o);return{top:r.top-i.top,left:r.left-i.left}}var n=t4(t),s=t6(e),l=t6(t);return{top:s.top+n.top-l.top,left:s.left+n.left-l.left}}(n,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var l=t3(e,this.props);(r!==l.height||i!==l.width)&&(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=e8(),this.updatePosition(e),e&&(t1(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,r=e.scrollElement;r!==o&&null!=r&&null!=o&&(this.updatePosition(o),t2(this,r),t1(this,o),this._unregisterResizeListener(r),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(t2(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,r=t.scrollTop,i=t.scrollLeft,n=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:n,isScrolling:o,scrollLeft:i,scrollTop:r,width:s})}}]),t}(x.PureComponent),ez(E,"propTypes",null),O);ez(t8,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:t7(),serverHeight:0,serverWidth:0});var oe=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),ot=function(){return(ot=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},oo={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},or={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},oi={width:"20px",height:"20px",position:"absolute"},on={top:ot(ot({},oo),{top:"-5px"}),right:ot(ot({},or),{left:void 0,right:"-5px"}),bottom:ot(ot({},oo),{top:void 0,bottom:"-5px"}),left:ot(ot({},or),{left:"-5px"}),topRight:ot(ot({},oi),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:ot(ot({},oi),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:ot(ot({},oi),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:ot(ot({},oi),{left:"-10px",top:"-10px",cursor:"nw-resize"})},os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return oe(t,e),t.prototype.render=function(){return x.createElement("div",{className:this.props.className||"",style:ot(ot({position:"absolute",userSelect:"none"},on[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(x.PureComponent),ol=(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),oa=function(){return(oa=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},oh={width:"auto",height:"auto"},oc=function(e,t,o){return Math.max(Math.min(e,o),t)},od=function(e,t,o){var r=Math.round(e/t);return r*t+o*(r-1)},ou=function(e,t){return RegExp(e,"i").test(t)},op=function(e){return!!(e.touches&&e.touches.length)},of=function(e,t,o){void 0===o&&(o=0);var r=t.reduce(function(o,r,i){return Math.abs(r-e)<Math.abs(t[o]-e)?i:o},0),i=Math.abs(t[r]-e);return 0===o||i<o?t[r]:e},om=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},og=function(e,t,o,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return o*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},o_=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],ov="__resizable_base__",oS=function(e){function t(t){var o,r,i,n,s=e.call(this,t)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.appendBase=function(){if(!s.resizable||!s.window)return null;var e=s.parentNode;if(!e)return null;var t=s.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(ov):t.className+=ov,e.appendChild(t),t},s.removeBase=function(e){var t=s.parentNode;t&&t.removeChild(e)},s.state={isResizing:!1,width:null!==(r=null===(o=s.propsSize)||void 0===o?void 0:o.width)&&void 0!==r?r:"auto",height:null!==(n=null===(i=s.propsSize)||void 0===i?void 0:i.height)&&void 0!==n?n:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return ol(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||oh},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,r=this.resizable.offsetHeight,i=this.resizable.style.position;"relative"!==i&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=i}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,o=function(t){var o;if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&(null===(o=e.propsSize[t])||void 0===o?void 0:o.toString().endsWith("%"))){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return om(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?om(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?om(t.height):o("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var o=this.propsSize&&this.propsSize[t];return"auto"===this.state[t]&&this.state.original[t]===e&&(void 0===o||"auto"===o)?"auto":e},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,r,i=this.props.boundsByDirection,n=this.state.direction,s=i&&ou("left",n),l=i&&ou("top",n);if("parent"===this.props.bounds){var a=this.parentNode;a&&(o=s?this.resizableRight-this.parentLeft:a.offsetWidth+(this.parentLeft-this.resizableLeft),r=l?this.resizableBottom-this.parentTop:a.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o,r=this.props.scale||1,i=Array.isArray(o=this.props.resizeRatio||1)?o:[o,o],n=i[0],s=i[1],l=this.state,a=l.direction,h=l.original,c=this.props,d=c.lockAspectRatio,u=c.lockAspectRatioExtraHeight,p=c.lockAspectRatioExtraWidth,f=h.width,m=h.height,g=u||0,_=p||0;return ou("right",a)&&(f=h.width+(e-h.x)*n/r,d&&(m=(f-_)/this.ratio+g)),ou("left",a)&&(f=h.width-(e-h.x)*n/r,d&&(m=(f-_)/this.ratio+g)),ou("bottom",a)&&(m=h.height+(t-h.y)*s/r,d&&(f=(m-g)*this.ratio+_)),ou("top",a)&&(m=h.height-(t-h.y)*s/r,d&&(f=(m-g)*this.ratio+_)),{newWidth:f,newHeight:m}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,r){var i=this.props,n=i.lockAspectRatio,s=i.lockAspectRatioExtraHeight,l=i.lockAspectRatioExtraWidth,a=void 0===r.width?10:r.width,h=void 0===o.width||o.width<0?e:o.width,c=void 0===r.height?10:r.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=l||0;if(n){var f=(c-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(a-p)/this.ratio+u,_=(h-p)/this.ratio+u;e=oc(e,Math.max(a,f),Math.min(h,m)),t=oc(t,Math.max(c,g),Math.min(d,_))}else e=oc(e,a,h),t=oc(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){var e=1/(this.props.scale||1);if("parent"===this.props.bounds){var t=this.parentNode;if(t){var o=t.getBoundingClientRect();this.parentLeft=o.left*e,this.parentTop=o.top*e}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left*e,this.targetTop=r.top*e}if(this.resizable){var i=this.resizable.getBoundingClientRect(),n=i.left,s=i.top,l=i.right,a=i.bottom;this.resizableLeft=n*e,this.resizableRight=l*e,this.resizableTop=s*e,this.resizableBottom=a*e}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,r,i=0,n=0;if(e.nativeEvent&&((o=e.nativeEvent).clientX||0===o.clientX)&&(o.clientY||0===o.clientY)?(i=e.nativeEvent.clientX,n=e.nativeEvent.clientY):e.nativeEvent&&op(e.nativeEvent)&&(i=e.nativeEvent.touches[0].clientX,n=e.nativeEvent.touches[0].clientY),!this.props.onResizeStart||!this.resizable||!1!==this.props.onResizeStart(e,t,this.resizable)){this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var s=this.window.getComputedStyle(this.resizable);if("auto"!==s.flexBasis){var l=this.parentNode;if(l){var a=this.window.getComputedStyle(l).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",r=s.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:i,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:oa(oa({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:r};this.setState(h)}}},t.prototype.onMouseMove=function(e){var t,o,r,i,n,s,l=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&op(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var a=this.props,h=a.maxWidth,c=a.maxHeight,d=a.minWidth,u=a.minHeight,p=op(e)?e.touches[0].clientX:e.clientX,f=op(e)?e.touches[0].clientY:e.clientY,m=this.state,g=m.direction,_=m.original,v=m.width,S=m.height,y=this.getParentSize(),R=(t=this.window.innerWidth,o=this.window.innerHeight,r=h,i=c,n=d,s=u,r=og(r,y.width,t,o),i=og(i,y.height,t,o),n=og(n,y.width,t,o),s=og(s,y.height,t,o),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===i?void 0:Number(i),minWidth:void 0===n?void 0:Number(n),minHeight:void 0===s?void 0:Number(s)});h=R.maxWidth,c=R.maxHeight,d=R.minWidth,u=R.minHeight;var C=this.calculateNewSizeFromDirection(p,f),T=C.newHeight,w=C.newWidth,b=this.calculateNewMaxFromBoundary(h,c);this.props.snap&&this.props.snap.x&&(w=of(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(T=of(T,this.props.snap.y,this.props.snapGap));var E=this.calculateNewSizeFromAspectRatio(w,T,{width:b.maxWidth,height:b.maxHeight},{width:d,height:u});if(w=E.newWidth,T=E.newHeight,this.props.grid){var O=od(w,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),I=od(T,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),M=this.props.snapGap||0,x=0===M||Math.abs(O-w)<=M?O:w,N=0===M||Math.abs(I-T)<=M?I:T;w=x,T=N}var D={width:w-_.width,height:T-_.height};if(v&&"string"==typeof v){if(v.endsWith("%")){var A=w/y.width*100;w=A+"%"}else if(v.endsWith("vw")){var H=w/this.window.innerWidth*100;w=H+"vw"}else if(v.endsWith("vh")){var G=w/this.window.innerHeight*100;w=G+"vh"}}if(S&&"string"==typeof S){if(S.endsWith("%")){var A=T/y.height*100;T=A+"%"}else if(S.endsWith("vw")){var H=T/this.window.innerWidth*100;T=H+"vw"}else if(S.endsWith("vh")){var G=T/this.window.innerHeight*100;T=G+"vh"}}var z={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(T,"height")};"row"===this.flexDir?z.flexBasis=z.width:"column"===this.flexDir&&(z.flexBasis=z.height);var W=this.state.width!==z.width,k=this.state.height!==z.height,L=this.state.flexBasis!==z.flexBasis,P=W||k||L;P&&(0,to.flushSync)(function(){l.setState(z)}),this.props.onResize&&P&&this.props.onResize(e,g,this.resizable,D)}},t.prototype.onMouseUp=function(e){var t,o,r=this.state,i=r.isResizing,n=r.direction,s=r.original;if(i&&this.resizable){var l={width:this.size.width-s.width,height:this.size.height-s.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,l),this.props.size&&this.setState({width:null!==(t=this.props.size.width)&&void 0!==t?t:"auto",height:null!==(o=this.props.size.height)&&void 0!==o?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:oa(oa({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){var t,o;this.setState({width:null!==(t=e.width)&&void 0!==t?t:"auto",height:null!==(o=e.height)&&void 0!==o?o:"auto"})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,r=t.handleStyles,i=t.handleClasses,n=t.handleWrapperStyle,s=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var a=Object.keys(o).map(function(t){return!1!==o[t]?x.createElement(os,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:i&&i[t]},l&&l[t]?l[t]:null):null});return x.createElement("div",{className:s,style:n},a)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce(function(t,o){return -1!==o_.indexOf(o)||(t[o]=e.props[o]),t},{}),o=oa(oa(oa({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return x.createElement(r,oa({style:o,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)}}),this.state.isResizing&&x.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(x.PureComponent);let oy={bottom:"bottom",left:"left",right:"right",top:"top"},oR={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},oC={min:0,max:1/0},oT=({height:e,heightConstraints:t,width:o,widthConstraints:r})=>({height:(0,ef.q)(e,t.min,t.max),width:(0,ef.q)(o,r.min,r.max)}),ow=({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:r},{initialHeight:i,initialWidth:n})=>oT({height:i+t,heightConstraints:o,width:n+e,widthConstraints:r}),ob=({enable:e,height:t,heightConstraints:o,resizeEdge:r,width:i=0,widthConstraints:n})=>({...oT({height:t,widthConstraints:n,heightConstraints:o,width:i}),enable:void 0===e||e,horizontal:r===oy.left||r===oy.right,initialHeight:t,initialWidth:i,resizing:!1,isMouseWheeling:!1,vertical:r===oy.top||r===oy.bottom});class oE extends N().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:oC,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:oC};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=ob(e)}static getDerivedStateFromProps(e,t){return t.resizing?t:ob(e)}componentDidUpdate(e){let{onResizeFromPropChange:t}=this.props,{height:o,resizing:r,width:i}=this.state,{onResizeFromPropChange:n}=e;if(r)return;let{height:s,width:l}=this.state,a=n||t;a&&(s!==o||l!==i)&&a({height:s,width:l,originalHeight:o,originalWidth:i})}_onResize=(e,t,o,{height:r,width:i})=>{let{onResize:n}=this.props,{height:s,horizontal:l,vertical:a,width:h}=this.state,{height:c,width:d}=ow({deltaWidth:i,deltaHeight:r},this.props,this.state),u=l&&d!==h,p=a&&c!==s;(u||p)&&(this.setState({height:p?c:s,width:u?d:h,isMouseWheeling:!1}),n&&n({height:p?c:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();let{onResizeStart:t}=this.props,{height:o,horizontal:r,vertical:i,width:n}=this.state;this.setState({resizing:!0}),t&&t({height:i?o:void 0,width:r?n:void 0})};_onResizeEnd=()=>{let{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:r,width:i,initialWidth:n,initialHeight:s}=this.state;this.setState({initialWidth:i,initialHeight:t,resizing:!1}),(n!==i||s!==t)&&e&&e({width:o?i:void 0,height:r?t:void 0})};_onWheel=()=>{this.isMouseWheeling||(this.isMouseWheeling=!0,this.setState({isMouseWheeling:!0})),clearTimeout(this.onWheelTimeOut),this.onWheelTimeOut=setTimeout(()=>{this.isMouseWheeling=!1,this.setState({isMouseWheeling:!1})},50)};render(){let{children:e,className:t,handleStyles:o,id:r,resizeContentClassName:i,resizeEdge:n,resizeHandleClassName:s,style:l,translate:a,heightConstraints:h,wrapChildrenInDivContainer:c,widthConstraints:d}=this.props,{enable:u,height:p,horizontal:f,resizing:m,vertical:g,width:_,isMouseWheeling:v}=this.state,{display:S,...y}=l,{min:R,max:C}=d,{min:T,max:w}=h,b={...this.props.wrapperStyle};f&&(b.width=_,b.minWidth=_),g&&(b.height=p,b.minHeight=p);let E=M()("resizable",t,{resizing:m}),O=M()("contents",i,`resize-edge-${n}`,{horizontal:f,vertical:g}),I=M()(n,s,"resizable-handle",{horizontal:f,vertical:g}),x=N().createElement("span",{title:a("ResizePanel")});return N().createElement("div",{"data-testid":`resizable-${r||""}`,onWheel:this._onWheel,style:{...b,display:S}},N().createElement(oS,{className:E,"data-testid":`resizable-core-${r||""}`,enable:{...oR,[n]:!v&&u},handleClasses:{[n]:I},handleComponent:{[n]:x},handleStyles:o,maxHeight:g?w:void 0,maxWidth:f?C:void 0,minHeight:g?T:void 0,minWidth:f?R:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:g?p:"100%",width:f?_:"100%"},style:y},c?N().createElement("div",{className:O,style:{userSelect:"none"}},e):e))}}var oO=o(468);class oI extends N().PureComponent{canvas;componentDidMount(){this.updateCanvas()}componentDidUpdate(e){(e.branchUpstreamRowIndices!==this.props.branchUpstreamRowIndices||e.markerRowIndices!==this.props.markerRowIndices||e.totalRows!==this.props.totalRows||e.viewportHeight!==this.props.viewportHeight||e.viewportWidth!==this.props.viewportWidth||e.markerColors!==this.props.markerColors||e.enabledScrollMarkerTypes!==this.props.enabledScrollMarkerTypes||e.scrollWidth!==this.props.scrollWidth)&&this.updateCanvas()}updateCanvas(e){let{branchUpstreamRowIndices:t,enabledScrollMarkerTypes:o,viewportHeight:r,markerRowIndices:i,markerColors:n,scrollWidth:s,totalRows:l}=e||this.props,a=this.canvas.getContext("2d");a.canvas.width=s,a.canvas.height=r;let h=s/P.Yx;for(let[e,s]of(a.clearRect(0,0,a.canvas.width,a.canvas.height),Object.entries(P.wx))){if(!o.includes(e)&&!("remoteBranches"===e&&o.includes("localBranches")))continue;let c="remoteBranches"!==e||o.includes("remoteBranches")?i[e]||[]:t,d=n[e],u=s.lanes;d&&c.length&&(a.fillStyle=d,c.forEach(t=>{let{height:o,offset:i}=function(e,t,o){let r=t*P.yB,{shape:i}=P.wx[e],n=P.j[i];if(!n)return{height:0,offset:0};let{baseHeight:s,minHeight:l,maxHeight:a}=n,h=o/r*s;void 0!==l&&h<l&&(h=l),void 0!==a&&h>a&&(h=a);let c=P.yB*(o/r),d=h>=c?0:(c-h)/2;return{height:h,offset:d}}(e,l,r);u.length&&a.fillRect(u[0]*h,function(e,t,o){let r=o*P.yB;return e*P.yB/r*t}(t,r,l)+i-.5*o,h*u.length,o)}))}}render(){return N().createElement("canvas",{className:"graph-scroll-markers",ref:e=>{this.canvas=e}})}}var oM=function({children:e,className:t,height:o,heightAdjustment:r,graphZoneType:i,scrollTop:n,style:s}){let l=P.W[i].listId,a=document.getElementById(l),h=a?.scrollHeight||0,c=o-28;void 0!==n&&(c=Number(s.top)-n,a&&h-o-n<0&&(c=o-r-28));let d={top:c,zIndex:2},u=N().createElement("span",{className:"absolute",style:d},e);return N().createElement("div",{className:t,style:s},a?tr().createPortal(u,document.getElementById("graph-container")):u)};function ox({inline:e,getExternalIcon:t,message:o,size:r=100,useSimpleSpinner:i}){let n=M()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),s=M()("spinner","mr1",{"inline-block":e}),l={height:r,width:r},a=M()("message",{"inline-block":e,mx2:e}),h=i?N().createElement("span",{className:s,style:l},t("loading")):N().createElement("div",{className:s,style:l},N().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:l}),N().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:l}),N().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:l}));return N().createElement("div",{className:n},h,o&&N().createElement("div",{className:a},o))}class oN extends N().Component{render(){let{currentCommits:e,customFooterRow:t,graphZoneType:o,hasMoreCommits:r,height:i,horizontalScrollHeight:n,getExternalIcon:s,isLoadingRows:l,scrollTop:a,style:h,translate:c}=this.props,d=N().createElement(ox,{className:"loading-spinner",getExternalIcon:s,size:20,useSimpleSpinner:!0}),u=N().createElement("div",{className:"flex items-center"},N().createElement("span",{style:{paddingRight:"5px"}},d)),p=0!==(e>0?e:0)||r?t:N().createElement(N().Fragment,null,c("Graph-NoCommits")),f=N().createElement("div",{className:"graph-adjust-commit-count p1"},l?u:p);return N().createElement(oM,{graphZoneType:o,height:i,heightAdjustment:n,scrollTop:a,style:h},f)}}function oD({branchUpstreamRowIndices:e,rowCount:t,cellRenderersByIds:o,columnIndex:r,customFooterRow:i,enabledScrollMarkerTypes:n,enableResizer:s,getExternalIcon:l,getKeyForCell:a,graphHeight:h,graphWidth:c,graphZoneType:d,graphZones:u,hasMoreCommits:p,horizontalScrollHeight:f,isLoadingRows:m,markerColors:g,markerRowIndices:_,onResize:v,onResizeEnd:S,onResizeFromPropChange:y,onScroll:R,onScrollToRowCausedUpdate:C,onZoneEnter:T,scrollLeft:w,scrollToAlignment:b,scrollToIndex:E,scrollTop:O,smartCellRangeRenderer:I,translate:x,verticalScrollWidth:D}){let A=(0,ea.Et)(d,u);if(!A)return null;let H=document.getElementById(A.listId),G=(0,ea.z)(d,u),z=(0,ea.Yy)(t,p,m),W=(0,ea.yJ)(t,p,m),k=(0,ea.U0)(A,t),L=(0,ea.Ve)(t,p,m),F=D>0,B=n.length>0,Z=M()("graph-panel","react-virtualized-list","pad-for-horizontal-scrollbar",d===P.ui?"z3":null,{"pad-for-vertical-scrollbar":F}),U=d===P.md?{...!G&&{position:"static"},...G&&{width:A.currentWidth>k?A.currentWidth:k,maxWidth:"none"}}:void 0,j=(e,t)=>{e.scrollTop>t&&H&&(0,ea.br)(H)||R(d,e,c,h,p)},$=(e,t)=>{let o=t+e.deltaY;(o=o>=0?o:0)>t&&H&&(0,ea.br)(H)||R(d,{clientHeight:L,clientWidth:k,scrollHeight:f,scrollLeft:0,scrollTop:o>=0?o:0,scrollWidth:D},c,h,p)},V=(e,t,o)=>N().createElement("span",{"data-column-name":t,"data-row-idx":o.rowIndex,key:`gk-row-${o.key}`,style:{top:o.style.top}},e),Y=(e,n)=>{if(n.rowIndex>t-1)return z&&0===r?N().createElement(oN,{currentCommits:t-1,customFooterRow:i,getExternalIcon:l,graphZoneType:d,hasMoreCommits:p,height:h,horizontalScrollHeight:f,isLoadingRows:m,key:a(n.rowIndex),scrollTop:O,style:n.style,translate:x}):void 0;let s={...n,style:{...n.style}};P.OU===e&&(s.style.top=Number(n.style.top)-O);let c=o[e];return c?V(c(s),e,n):void 0},K=(e,t,o,r,i,n,s,l)=>N().createElement(e3,{autoContainerWidth:!0,cellRangeRenderer:I,cellRenderer:t=>Y(e,t),className:o,columnCount:1,columnWidth:l,containerStyle:r,height:s,id:t,isScrolling:!1,key:t,onScrollToTargetCausedUpdate:C?e=>C(d,e,c,h,p):void 0,overscanRowCount:0,rowCount:W,rowHeight:P.yB,scrollLeft:w,scrollToAlignment:b,scrollTop:O,scrollToRow:E,style:i,tabIndex:null,width:n}),q=K(A.type,A.listId,Z,U,{position:"absolute"},A.currentWidth,h,k),X=G?N().createElement("div",{className:"timeline-column-container",onWheelCapture:e=>$(e,O)},K(P.OU,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3,maxHeight:L},{position:"absolute",right:0,zIndex:3,maxHeight:h},1,h,1)):void 0,Q=q&&N().createElement(N().Fragment,null,X,B&&G?N().createElement(oI,{branchUpstreamRowIndices:e,enabledScrollMarkerTypes:n,markerColors:g,markerRowIndices:_,scrollWidth:D,totalRows:W,viewportHeight:h<L?h:L,viewportWidth:A.currentWidth}):null,N().createElement(oO.A,{contentHeight:L,contentWidth:k,displayHorizontalScrollbar:A.type===P.md,displayVerticalScrollbar:G,forceOnVerticalWheel:!G,forceVerticalScrollbar:G&&B,height:h,onScroll:e=>j(e,O),scrollLeft:w,scrollTop:O,width:A.currentWidth},q)),J=N().createElement("div",{onMouseEnter:T},Q);return G?J:N().createElement(oE,{enable:s,height:h,id:`${d}Column`,key:`${d}Column`,onResize:v?e=>v(A,e):void 0,onResizeEnd:S?e=>S(A,e):void 0,onResizeFromPropChange:y?e=>y(A,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:A.currentWidth,widthConstraints:(0,ea.qC)(d,u,c)},J)}var oA=o(547),oH=o.n(oA);let oG="dnd-container";class oz extends N().PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}componentDidUpdate(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,r)=>{if(this.props.onDrop&&e.id){let t=this.sanitizeId(e.id),o=r?.id?this.sanitizeId(r.id):null,i=this.childReactElementsById[t],n=o?this.childReactElementsById[o]:null;i&&this.props.onDrop(i,n)}};isContainerCallback=e=>!!e?.classList.contains(oG);movesCallback=e=>!!e?.id&&this.isDraggable(e.id);acceptsCallback=(e,t,o,r)=>!!e?.id&&this.isDroppable(e.id,r?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){let t={isContainer:this.isContainerCallback,mirrorContainer:this.props.mirrorContainer,moves:this.movesCallback,accepts:this.acceptsCallback,invalid:this.invalidCallBack,direction:this.props.direction||"horizontal",copy:!1,copySortSource:!1,revertOnSpill:!1,removeOnSpill:!1,ignoreInputTextSelection:!0};this.dndDrake=oH()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach(e=>{N().isValidElement(e)&&this.addChildReactElement(e)}):N().isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){let t=e.props.id;t&&(this.childReactElementsById[this.sanitizeId(t)]=e)}sanitizeId(e){return e.trim().toLowerCase().replace(/-/g,"").replace(/_/g,"")}isDraggable(e){if(this.props.isDraggable){let t=this.sanitizeId(e),o=this.childReactElementsById[t];return!!o&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){let o=this.sanitizeId(e),r=t?this.sanitizeId(t):null,i=this.childReactElementsById[o],n=r?this.childReactElementsById[r]:null;if(i)return this.props.isDroppable(i,n)}return!1}render(){let{children:e,className:t}=this.props,o=M()(oG,t);return N().createElement("div",{className:o,ref:this.dndDecorator},e)}}function oW(){return(0,x.useState)(null)}let ok=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,oL=function(e,t){return(0,x.useMemo)(()=>(function(e,t){let o=ok(e),r=ok(t);return e=>{o&&o(e),r&&r(e)}})(e,t),[e,t])};var oP=Object.prototype.hasOwnProperty;function oF(e,t,o){for(o of e.keys())if(oB(o,t))return o}function oB(e,t){var o,r,i;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((r=e.length)===t.length)for(;r--&&oB(e[r],t[r]););return -1===r}if(o===Set){if(e.size!==t.size)return!1;for(r of e)if((i=r)&&"object"==typeof i&&!(i=oF(t,i))||!t.has(i))return!1;return!0}if(o===Map){if(e.size!==t.size)return!1;for(r of e)if((i=r[0])&&"object"==typeof i&&!(i=oF(t,i))||!oB(r[1],t.get(i)))return!1;return!0}if(o===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(o===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!o||"object"==typeof e){for(o in r=0,e)if(oP.call(e,o)&&++r&&!oP.call(t,o)||!(o in t)||!oB(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}let oZ=function(e){let t=function(){let e=(0,x.useRef)(!0),t=(0,x.useRef)(()=>e.current);return(0,x.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}();return[e[0],(0,x.useCallback)(o=>{if(t())return e[1](o)},[t,e[1]])]};function oU(e){return e.split("-")[0]}function oj(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o$(e){var t=oj(e).Element;return e instanceof t||e instanceof Element}function oV(e){var t=oj(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function oY(e){if("undefined"==typeof ShadowRoot)return!1;var t=oj(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var oK=Math.max,oq=Math.min,oX=Math.round;function oQ(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function oJ(){return!/^((?!chrome|android).)*safari/i.test(oQ())}function o0(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),i=1,n=1;t&&oV(e)&&(i=e.offsetWidth>0&&oX(r.width)/e.offsetWidth||1,n=e.offsetHeight>0&&oX(r.height)/e.offsetHeight||1);var s=(o$(e)?oj(e):window).visualViewport,l=!oJ()&&o,a=(r.left+(l&&s?s.offsetLeft:0))/i,h=(r.top+(l&&s?s.offsetTop:0))/n,c=r.width/i,d=r.height/n;return{width:c,height:d,top:h,right:a+c,bottom:h+d,left:a,x:a,y:h}}function o1(e){var t=o0(e),o=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-o)&&(o=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function o2(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&oY(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function o5(e){return e?(e.nodeName||"").toLowerCase():null}function o6(e){return oj(e).getComputedStyle(e)}function o3(e){return((o$(e)?e.ownerDocument:e.document)||window.document).documentElement}function o4(e){return"html"===o5(e)?e:e.assignedSlot||e.parentNode||(oY(e)?e.host:null)||o3(e)}function o9(e){return oV(e)&&"fixed"!==o6(e).position?e.offsetParent:null}function o7(e){for(var t=oj(e),o=o9(e);o&&["table","td","th"].indexOf(o5(o))>=0&&"static"===o6(o).position;)o=o9(o);return o&&("html"===o5(o)||"body"===o5(o)&&"static"===o6(o).position)?t:o||function(e){var t=/firefox/i.test(oQ());if(/Trident/i.test(oQ())&&oV(e)&&"fixed"===o6(e).position)return null;var o=o4(e);for(oY(o)&&(o=o.host);oV(o)&&0>["html","body"].indexOf(o5(o));){var r=o6(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||t}function o8(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function re(e,t,o){return oK(e,oq(t,o))}function rt(){return{top:0,right:0,bottom:0,left:0}}function ro(e){return Object.assign({},rt(),e)}function rr(e,t){return t.reduce(function(t,o){return t[o]=e,t},{})}var ri="bottom",rn="right",rs="left",rl="auto",ra=["top",ri,rn,rs],rh="start",rc="viewport",rd="popper",ru=ra.reduce(function(e,t){return e.concat([t+"-"+rh,t+"-end"])},[]),rp=[].concat(ra,[rl]).reduce(function(e,t){return e.concat([t,t+"-"+rh,t+"-end"])},[]),rf=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function rm(e){return e.split("-")[1]}var rg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function r_(e){var t,o,r,i,n,s,l,a=e.popper,h=e.popperRect,c=e.placement,d=e.variation,u=e.offsets,p=e.position,f=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,_=e.isFixed,v=u.x,S=void 0===v?0:v,y=u.y,R=void 0===y?0:y,C="function"==typeof g?g({x:S,y:R}):{x:S,y:R};S=C.x,R=C.y;var T=u.hasOwnProperty("x"),w=u.hasOwnProperty("y"),b=rs,E="top",O=window;if(m){var I=o7(a),M="clientHeight",x="clientWidth";I===oj(a)&&"static"!==o6(I=o3(a)).position&&"absolute"===p&&(M="scrollHeight",x="scrollWidth"),("top"===c||(c===rs||c===rn)&&"end"===d)&&(E=ri,R-=(_&&I===O&&O.visualViewport?O.visualViewport.height:I[M])-h.height,R*=f?1:-1),(c===rs||("top"===c||c===ri)&&"end"===d)&&(b=rn,S-=(_&&I===O&&O.visualViewport?O.visualViewport.width:I[x])-h.width,S*=f?1:-1)}var N=Object.assign({position:p},m&&rg),D=!0===g?(t={x:S,y:R},o=oj(a),r=t.x,i=t.y,{x:oX(r*(n=o.devicePixelRatio||1))/n||0,y:oX(i*n)/n||0}):{x:S,y:R};return(S=D.x,R=D.y,f)?Object.assign({},N,((l={})[E]=w?"0":"",l[b]=T?"0":"",l.transform=1>=(O.devicePixelRatio||1)?"translate("+S+"px, "+R+"px)":"translate3d("+S+"px, "+R+"px, 0)",l)):Object.assign({},N,((s={})[E]=w?R+"px":"",s[b]=T?S+"px":"",s.transform="",s))}var rv={passive:!0},rS={left:"right",right:"left",bottom:"top",top:"bottom"};function ry(e){return e.replace(/left|right|bottom|top/g,function(e){return rS[e]})}var rR={start:"end",end:"start"};function rC(e){return e.replace(/start|end/g,function(e){return rR[e]})}function rT(e){var t=oj(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rw(e){return o0(o3(e)).left+rT(e).scrollLeft}function rb(e){var t=o6(e),o=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+i+r)}function rE(e,t){void 0===t&&(t=[]);var o,r=function e(t){return["html","body","#document"].indexOf(o5(t))>=0?t.ownerDocument.body:oV(t)&&rb(t)?t:e(o4(t))}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),n=oj(r),s=i?[n].concat(n.visualViewport||[],rb(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(rE(o4(s)))}function rO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rI(e,t,o){var r,i,n,s,l,a,h,c,d,u;return t===rc?rO(function(e,t){var o=oj(e),r=o3(e),i=o.visualViewport,n=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){n=i.width,s=i.height;var h=oJ();(h||!h&&"fixed"===t)&&(l=i.offsetLeft,a=i.offsetTop)}return{width:n,height:s,x:l+rw(e),y:a}}(e,o)):o$(t)?((r=o0(t,!1,"fixed"===o)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):rO((i=o3(e),s=o3(i),l=rT(i),a=null==(n=i.ownerDocument)?void 0:n.body,h=oK(s.scrollWidth,s.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=oK(s.scrollHeight,s.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-l.scrollLeft+rw(i),u=-l.scrollTop,"rtl"===o6(a||s).direction&&(d+=oK(s.clientWidth,a?a.clientWidth:0)-h),{width:h,height:c,x:d,y:u}))}function rM(e){var t,o=e.reference,r=e.element,i=e.placement,n=i?oU(i):null,s=i?rm(i):null,l=o.x+o.width/2-r.width/2,a=o.y+o.height/2-r.height/2;switch(n){case"top":t={x:l,y:o.y-r.height};break;case ri:t={x:l,y:o.y+o.height};break;case rn:t={x:o.x+o.width,y:a};break;case rs:t={x:o.x-r.width,y:a};break;default:t={x:o.x,y:o.y}}var h=n?o8(n):null;if(null!=h){var c="y"===h?"height":"width";switch(s){case rh:t[h]=t[h]-(o[c]/2-r[c]/2);break;case"end":t[h]=t[h]+(o[c]/2-r[c]/2)}}return t}function rx(e,t){void 0===t&&(t={});var o,r,i,n,s,l,a,h,c=t,d=c.placement,u=void 0===d?e.placement:d,p=c.strategy,f=void 0===p?e.strategy:p,m=c.boundary,g=c.rootBoundary,_=c.elementContext,v=void 0===_?rd:_,S=c.altBoundary,y=c.padding,R=void 0===y?0:y,C=ro("number"!=typeof R?R:rr(R,ra)),T=e.rects.popper,w=e.elements[void 0!==S&&S?v===rd?"reference":rd:v],b=(o=o$(w)?w:w.contextElement||o3(e.elements.popper),r=void 0===m?"clippingParents":m,i=void 0===g?rc:g,a=(l=[].concat("clippingParents"===r?(n=rE(o4(o)),o$(s=["absolute","fixed"].indexOf(o6(o).position)>=0&&oV(o)?o7(o):o)?n.filter(function(e){return o$(e)&&o2(e,s)&&"body"!==o5(e)}):[]):[].concat(r),[i]))[0],(h=l.reduce(function(e,t){var r=rI(o,t,f);return e.top=oK(r.top,e.top),e.right=oq(r.right,e.right),e.bottom=oq(r.bottom,e.bottom),e.left=oK(r.left,e.left),e},rI(o,a,f))).width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h),E=o0(e.elements.reference),O=rM({reference:E,element:T,strategy:"absolute",placement:u}),I=rO(Object.assign({},T,O)),M=v===rd?I:E,x={top:b.top-M.top+C.top,bottom:M.bottom-b.bottom+C.bottom,left:b.left-M.left+C.left,right:M.right-b.right+C.right},N=e.modifiersData.offset;if(v===rd&&N){var D=N[u];Object.keys(x).forEach(function(e){var t=[rn,ri].indexOf(e)>=0?1:-1,o=["top",ri].indexOf(e)>=0?"y":"x";x[e]+=D[o]*t})}return x}function rN(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function rD(e){return["top",rn,ri,rs].some(function(t){return e[t]>=0})}var rA={placement:"bottom",modifiers:[],strategy:"absolute"};function rH(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}let rG=(h=void 0===(a=(l={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,r=t.rects.reference,i=t.rects.popper,n=t.modifiersData.preventOverflow,s=rx(t,{elementContext:"reference"}),l=rx(t,{altBoundary:!0}),a=rN(s,r),h=rN(l,i,n),c=rD(a),d=rD(h);t.modifiersData[o]={referenceClippingOffsets:a,popperEscapeOffsets:h,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=rM({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,r=o.gpuAcceleration,i=o.adaptive,n=o.roundOffsets,s=void 0===n||n,l={placement:oU(t.placement),variation:rm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,r_(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,r_(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,r=e.options,i=r.scroll,n=void 0===i||i,s=r.resize,l=void 0===s||s,a=oj(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&h.forEach(function(e){e.addEventListener("scroll",o.update,rv)}),l&&a.addEventListener("resize",o.update,rv),function(){n&&h.forEach(function(e){e.removeEventListener("scroll",o.update,rv)}),l&&a.removeEventListener("resize",o.update,rv)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,r=e.name,i=o.offset,n=void 0===i?[0,0]:i,s=rp.reduce(function(e,o){var r,i,s,l,a,h;return e[o]=(r=t.rects,s=[rs,"top"].indexOf(i=oU(o))>=0?-1:1,a=(l="function"==typeof n?n(Object.assign({},r,{placement:o})):n)[0],h=l[1],a=a||0,h=(h||0)*s,[rs,rn].indexOf(i)>=0?{x:h,y:a}:{x:a,y:h}),e},{}),l=s[t.placement],a=l.x,h=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=h),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=o.mainAxis,n=void 0===i||i,s=o.altAxis,l=void 0===s||s,a=o.fallbackPlacements,h=o.padding,c=o.boundary,d=o.rootBoundary,u=o.altBoundary,p=o.flipVariations,f=void 0===p||p,m=o.allowedAutoPlacements,g=t.options.placement,_=oU(g)===g,v=a||(_||!f?[ry(g)]:function(e){if(oU(e)===rl)return[];var t=ry(e);return[rC(e),t,rC(t)]}(g)),S=[g].concat(v).reduce(function(e,o){var r,i,n,s,l,a,u,p,g,_,v,S;return e.concat(oU(o)===rl?(i=(r={placement:o,boundary:c,rootBoundary:d,padding:h,flipVariations:f,allowedAutoPlacements:m}).placement,n=r.boundary,s=r.rootBoundary,l=r.padding,a=r.flipVariations,p=void 0===(u=r.allowedAutoPlacements)?rp:u,0===(v=(_=(g=rm(i))?a?ru:ru.filter(function(e){return rm(e)===g}):ra).filter(function(e){return p.indexOf(e)>=0})).length&&(v=_),Object.keys(S=v.reduce(function(e,o){return e[o]=rx(t,{placement:o,boundary:n,rootBoundary:s,padding:l})[oU(o)],e},{})).sort(function(e,t){return S[e]-S[t]})):o)},[]),y=t.rects.reference,R=t.rects.popper,C=new Map,T=!0,w=S[0],b=0;b<S.length;b++){var E=S[b],O=oU(E),I=rm(E)===rh,M=["top",ri].indexOf(O)>=0,x=M?"width":"height",N=rx(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:u,padding:h}),D=M?I?rn:rs:I?ri:"top";y[x]>R[x]&&(D=ry(D));var A=ry(D),H=[];if(n&&H.push(N[O]<=0),l&&H.push(N[D]<=0,N[A]<=0),H.every(function(e){return e})){w=E,T=!1;break}C.set(E,H)}if(T)for(var G=f?3:1,z=function(e){var t=S.find(function(t){var o=C.get(t);if(o)return o.slice(0,e).every(function(e){return e})});if(t)return w=t,"break"},W=G;W>0&&"break"!==z(W);W--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name,i=o.mainAxis,n=o.altAxis,s=o.boundary,l=o.rootBoundary,a=o.altBoundary,h=o.padding,c=o.tether,d=void 0===c||c,u=o.tetherOffset,p=void 0===u?0:u,f=rx(t,{boundary:s,rootBoundary:l,padding:h,altBoundary:a}),m=oU(t.placement),g=rm(t.placement),_=!g,v=o8(m),S="x"===v?"y":"x",y=t.modifiersData.popperOffsets,R=t.rects.reference,C=t.rects.popper,T="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,w="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(y){if(void 0===i||i){var O,I="y"===v?"top":rs,M="y"===v?ri:rn,x="y"===v?"height":"width",N=y[v],D=N+f[I],A=N-f[M],H=d?-C[x]/2:0,G=g===rh?R[x]:C[x],z=g===rh?-C[x]:-R[x],W=t.elements.arrow,k=d&&W?o1(W):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rt(),P=L[I],F=L[M],B=re(0,R[x],k[x]),Z=_?R[x]/2-H-B-P-w.mainAxis:G-B-P-w.mainAxis,U=_?-R[x]/2+H+B+F+w.mainAxis:z+B+F+w.mainAxis,j=t.elements.arrow&&o7(t.elements.arrow),$=j?"y"===v?j.clientTop||0:j.clientLeft||0:0,V=null!=(O=null==b?void 0:b[v])?O:0,Y=re(d?oq(D,N+Z-V-$):D,N,d?oK(A,N+U-V):A);y[v]=Y,E[v]=Y-N}if(void 0!==n&&n){var K,q,X="x"===v?"top":rs,Q="x"===v?ri:rn,J=y[S],ee="y"===S?"height":"width",et=J+f[X],eo=J-f[Q],er=-1!==["top",rs].indexOf(m),ei=null!=(q=null==b?void 0:b[S])?q:0,en=er?et:J-R[ee]-C[ee]-ei+w.altAxis,es=er?J+R[ee]+C[ee]-ei-w.altAxis:eo,el=d&&er?(K=re(en,J,es))>es?es:K:re(d?en:et,J,d?es:eo);y[S]=el,E[S]=el-J}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o,r=e.state,i=e.name,n=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,a=oU(r.placement),h=o8(a),c=[rs,rn].indexOf(a)>=0?"height":"width";if(s&&l){var d=ro("number"!=typeof(t="function"==typeof(t=n.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:rr(t,ra)),u=o1(s),p="y"===h?"top":rs,f="y"===h?ri:rn,m=r.rects.reference[c]+r.rects.reference[h]-l[h]-r.rects.popper[c],g=l[h]-r.rects.reference[h],_=o7(s),v=_?"y"===h?_.clientHeight||0:_.clientWidth||0:0,S=d[p],y=v-u[c]-d[f],R=v/2-u[c]/2+(m/2-g/2),C=re(S,R,y);r.modifiersData[i]=((o={})[h]=C,o.centerOffset=C-R,o)}},effect:function(e){var t=e.state,o=e.options.element,r=void 0===o?"[data-popper-arrow]":o;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&o2(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:a,d=void 0===(c=l.defaultOptions)?rA:c,function(e,t,o){void 0===o&&(o=d);var r,i,n={placement:"bottom",orderedModifiers:[],options:Object.assign({},rA,d),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,a={state:n,setOptions:function(o){var r,i,l,u,p,f="function"==typeof o?o(n.options):o;c(),n.options=Object.assign({},d,n.options,f),n.scrollParents={reference:o$(e)?rE(e):e.contextElement?rE(e.contextElement):[],popper:rE(t)};var m=(i=Object.keys(r=[].concat(h,n.options.modifiers).reduce(function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e},{})).map(function(e){return r[e]}),l=new Map,u=new Set,p=[],i.forEach(function(e){l.set(e.name,e)}),i.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var o=l.get(t);o&&e(o)}}),p.push(t)}(e)}),rf.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return n.orderedModifiers=m.filter(function(e){return e.enabled}),n.orderedModifiers.forEach(function(e){var t=e.name,o=e.options,r=e.effect;if("function"==typeof r){var i=r({state:n,name:t,instance:a,options:void 0===o?{}:o});s.push(i||function(){})}}),a.update()},forceUpdate:function(){if(!l){var e,t,o,r,i,s,h,c,d,u,p,f,m=n.elements,g=m.reference,_=m.popper;if(rH(g,_)){n.rects={reference:(t=o7(_),o="fixed"===n.options.strategy,r=oV(t),c=oV(t)&&(s=oX((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,h=oX(i.height)/t.offsetHeight||1,1!==s||1!==h),d=o3(t),u=o0(g,c,o),p={scrollLeft:0,scrollTop:0},f={x:0,y:0},(r||!r&&!o)&&(("body"!==o5(t)||rb(d))&&(p=(e=t)!==oj(e)&&oV(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:rT(e)),oV(t)?(f=o0(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):d&&(f.x=rw(d))),{x:u.left+p.scrollLeft-f.x,y:u.top+p.scrollTop-f.y,width:u.width,height:u.height}),popper:o1(_)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(e){return n.modifiersData[e.name]=Object.assign({},e.data)});for(var v=0;v<n.orderedModifiers.length;v++){if(!0===n.reset){n.reset=!1,v=-1;continue}var S=n.orderedModifiers[v],y=S.fn,R=S.options,C=void 0===R?{}:R,T=S.name;"function"==typeof y&&(n=y({state:n,options:C,name:T,instance:a})||n)}}}},update:(r=function(){return new Promise(function(e){a.forceUpdate(),e(n)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){c(),l=!0}};if(!rH(e,t))return a;function c(){s.forEach(function(e){return e()}),s=[]}return a.setOptions(o).then(function(e){!l&&o.onFirstUpdate&&o.onFirstUpdate(e)}),a}),rz=["enabled","placement","strategy","modifiers"],rW={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>void 0},rk={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:o}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==o.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:o,reference:r}=e.elements,i=null==(t=o.getAttribute("role"))?void 0:t.toLowerCase();if(o.id&&"tooltip"===i&&"setAttribute"in r){let e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(o.id))return;r.setAttribute("aria-describedby",e?`${e},${o.id}`:o.id)}}},rL=[],rP=function(e,t,o={}){let{enabled:r=!0,placement:i="bottom",strategy:n="absolute",modifiers:s=rL}=o,l=function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(o,rz),a=(0,x.useRef)(s),h=(0,x.useRef)(),c=(0,x.useCallback)(()=>{var e;null==(e=h.current)||e.update()},[]),d=(0,x.useCallback)(()=>{var e;null==(e=h.current)||e.forceUpdate()},[]),[u,p]=oZ((0,x.useState)({placement:i,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),f=(0,x.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},o={};Object.keys(e.elements).forEach(r=>{t[r]=e.styles[r],o[r]=e.attributes[r]}),p({state:e,styles:t,attributes:o,update:c,forceUpdate:d,placement:e.placement})}}),[c,d,p]),m=(0,x.useMemo)(()=>(oB(a.current,s)||(a.current=s),a.current),[s]);return(0,x.useEffect)(()=>{h.current&&r&&h.current.setOptions({placement:i,strategy:n,modifiers:[...m,f,rW]})},[n,i,f,r,m]),(0,x.useEffect)(()=>{if(r&&null!=e&&null!=t)return h.current=rG(e,t,Object.assign({},l,{placement:i,strategy:n,modifiers:[...m,rk,f]})),()=>{null!=h.current&&(h.current.destroy(),h.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),u};var rF=!1,rB=!1;try{var rZ={get passive(){return rF=!0},get once(){return rB=rF=!0}};eq&&(window.addEventListener("test",rZ,rZ),window.removeEventListener("test",rZ,!0))}catch(e){}let rU=function(e,t,o,r){if(r&&"boolean"!=typeof r&&!rB){var i=r.once,n=r.capture,s=o;!rB&&i&&(s=o.__once||function e(r){this.removeEventListener(t,e,n),o.call(this,r)},o.__once=s),e.addEventListener(t,s,rF?r:n)}e.addEventListener(t,o,r)},rj=function(e,t,o,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,o,i),o.__once&&e.removeEventListener(t,o.__once,i)},r$=function(e,t,o,r){return rU(e,t,o,r),function(){rj(e,t,o,r)}};function rV(e){return e&&e.ownerDocument||document}let rY=function(e){let t=(0,x.useRef)(e);return(0,x.useEffect)(()=>{t.current=e},[e]),t};function rK(e){let t=rY(e);return(0,x.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}function rq(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var rX=o(771),rQ=o.n(rX);let rJ=()=>{},r0=e=>e&&("current"in e?e.current:e),r1={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},r2=function(e,t=rJ,{disabled:o,clickTrigger:r="click"}={}){let i=(0,x.useRef)(!1),n=(0,x.useRef)(!1),s=(0,x.useCallback)(t=>{let o=r0(e);rQ()(!!o,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!o||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!rq(o,t.target)||n.current,n.current=!1},[e]),l=rK(t=>{let o=r0(e);o&&rq(o,t.target)?n.current=!0:n.current=!1}),a=rK(e=>{i.current||t(e)});(0,x.useEffect)(()=>{var t,i;if(o||null==e)return;let n=rV(r0(e)),h=n.defaultView||window,c=null!=(t=h.event)?t:null==(i=h.parent)?void 0:i.event,d=null;r1[r]&&(d=r$(n,r1[r],l,!0));let u=r$(n,r,s,!0),p=r$(n,r,e=>{if(e===c){c=void 0;return}a(e)}),f=[];return"ontouchstart"in n.documentElement&&(f=[].slice.call(n.body.children).map(e=>r$(e,"mousemove",rJ))),()=>{null==d||d(),u(),p(),f.forEach(e=>e())}},[e,o,r,s,l,a])};function r5(e){if(!e||"function"==typeof e)return null;let{major:t}=function(){let e=x.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}();return t>=19?e.props.ref:e.ref}let r6=()=>{},r3=function(e,t,{disabled:o,clickTrigger:r}={}){let i=t||r6;r2(e,i,{disabled:o,clickTrigger:r});let n=rK(e=>{("Escape"===e.code||27===e.keyCode)&&i(e)});(0,x.useEffect)(()=>{if(o||null==e)return;let t=rV(r0(e)),r=(t.defaultView||window).event,i=r$(t,"keyup",e=>{if(e===r){r=void 0;return}n(e)});return()=>{i()}},[e,o,n])},r4=(0,x.createContext)(eq?window:void 0);r4.Provider;let r9=(e,t)=>eq?null==e?(t||rV()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function r7(e,t){let o=(0,x.useContext)(r4),[r,i]=(0,x.useState)(()=>r9(e,null==o?void 0:o.document));if(!r){let t=r9(e);t&&i(t)}return(0,x.useEffect)(()=>{t&&r&&t(r)},[t,r]),(0,x.useEffect)(()=>{let t=r9(e);t!==r&&i(t)},[e,r]),r}let r8=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product,ie="undefined"!=typeof document||r8?x.useLayoutEffect:x.useEffect,it=function({children:e,in:t,onExited:o,mountOnEnter:r,unmountOnExit:i}){let n=(0,x.useRef)(null),s=(0,x.useRef)(t),l=rK(o);(0,x.useEffect)(()=>{t?s.current=!0:l(n.current)},[t,l]);let a=oL(n,e.ref),h=(0,x.cloneElement)(e,{ref:a});return t?h:i||!s.current&&r?null:h},io=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];var ir=o(848);let ii=["component"],is=x.forwardRef((e,t)=>{let{component:o}=e,r=function(e){let{onEnter:t,onEntering:o,onEntered:r,onExit:i,onExiting:n,onExited:s,addEndListener:l,children:a}=e,h=function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,io),c=(0,x.useRef)(null),d=oL(c,r5(a)),u=e=>t=>{e&&c.current&&e(c.current,t)},p=(0,x.useCallback)(u(t),[t]),f=(0,x.useCallback)(u(o),[o]),m=(0,x.useCallback)(u(r),[r]),g=(0,x.useCallback)(u(i),[i]),_=(0,x.useCallback)(u(n),[n]),v=(0,x.useCallback)(u(s),[s]),S=(0,x.useCallback)(u(l),[l]);return Object.assign({},h,{nodeRef:c},t&&{onEnter:p},o&&{onEntering:f},r&&{onEntered:m},i&&{onExit:g},n&&{onExiting:_},s&&{onExited:v},l&&{addEndListener:S},{children:"function"==typeof a?(e,t)=>a(e,Object.assign({},t,{ref:d})):(0,x.cloneElement)(a,{ref:d})})}(function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,ii));return(0,ir.jsx)(o,Object.assign({ref:t},r))});function il({children:e,in:t,onExited:o,onEntered:r,transition:i}){let[n,s]=(0,x.useState)(!t);t&&n&&s(!1);let l=oL(function({in:e,onTransition:t}){let o=(0,x.useRef)(null),r=(0,x.useRef)(!0),i=rK(t);return ie(()=>{if(!o.current)return;let t=!1;return i({in:e,element:o.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,i]),ie(()=>(r.current=!1,()=>{r.current=!0}),[]),o}({in:!!t,onTransition:e=>{Promise.resolve(i(e)).then(()=>{e.isStale()||(e.in?null==r||r(e.element,e.initial):(s(!0),null==o||o(e.element)))},t=>{throw e.in||s(!0),t})}}),e.ref);return n&&!t?null:(0,x.cloneElement)(e,{ref:l})}let ia=x.forwardRef((e,t)=>{var o;let{flip:r,offset:i,placement:n,containerPadding:s,popperConfig:l={},transition:a,runTransition:h}=e,[c,d]=oW(),[u,p]=oW(),f=oL(d,t),m=r7(e.container),g=r7(e.target),[_,v]=(0,x.useState)(!e.show),S=rP(g,c,function({enabled:e,enableEvents:t,placement:o,flip:r,offset:i,fixed:n,containerPadding:s,arrowElement:l,popperConfig:a={}}){var h,c,d,u,p;let f=function(e){let t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}(a.modifiers);return Object.assign({},a,{placement:o,enabled:e,strategy:n?"fixed":a.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},f,{eventListeners:{enabled:t,options:null==(h=f.eventListeners)?void 0:h.options},preventOverflow:Object.assign({},f.preventOverflow,{options:s?Object.assign({padding:s},null==(c=f.preventOverflow)?void 0:c.options):null==(d=f.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:i},null==(u=f.offset)?void 0:u.options)},arrow:Object.assign({},f.arrow,{enabled:!!l,options:Object.assign({},null==(p=f.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},f.flip)}))})}({placement:n,enableEvents:!!e.show,containerPadding:s||5,flip:r,offset:i,arrowElement:u,popperConfig:l}));e.show&&_&&v(!1);let y=e.show||!_;if(r3(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!y)return null;let{onExit:R,onExiting:C,onEnter:T,onEntering:w,onEntered:b}=e,E=e.children(Object.assign({},S.attributes.popper,{style:S.styles.popper,ref:f}),{popper:S,placement:n,show:!!e.show,arrowProps:Object.assign({},S.attributes.arrow,{style:S.styles.arrow,ref:p})});return o={in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:E,onExit:R,onExiting:C,onExited:(...t)=>{v(!0),e.onExited&&e.onExited(...t)},onEnter:T,onEntering:w,onEntered:b},E=a?(0,ir.jsx)(is,Object.assign({},o,{component:a})):h?(0,ir.jsx)(il,Object.assign({},o,{transition:h})):(0,ir.jsx)(it,Object.assign({},o)),m?tr().createPortal(E,m):null});ia.displayName="Overlay";let ih=function(e){let t=(0,x.useRef)(e);return(0,x.useEffect)(()=>{t.current=e},[e]),t},ic=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product,id="undefined"!=typeof document||ic?x.useLayoutEffect:x.useEffect,iu=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,ip=function(e,t){return(0,x.useMemo)(()=>(function(e,t){let o=iu(e),r=iu(t);return e=>{o&&o(e),r&&r(e)}})(e,t),[e,t])};function im(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}let ig=x.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:i_,Provider:iv}=ig;function iS(e,t){let{prefixes:o}=(0,x.useContext)(ig);return e||o[t]||t}function iy(){let{dir:e}=(0,x.useContext)(ig);return"rtl"===e}let iR=x.forwardRef(({className:e,bsPrefix:t,as:o="div",...r},i)=>(t=iS(t,"popover-header"),(0,ir.jsx)(o,{ref:i,className:M()(e,t),...r})));iR.displayName="PopoverHeader";let iC=x.forwardRef(({className:e,bsPrefix:t,as:o="div",...r},i)=>(t=iS(t,"popover-body"),(0,ir.jsx)(o,{ref:i,className:M()(e,t),...r})));function iT(e,t){let o=e;return"left"===e?o=t?"end":"start":"right"===e&&(o=t?"start":"end"),o}function iw(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}iC.displayName="PopoverBody";let ib=Object.assign(x.forwardRef(({bsPrefix:e,placement:t="right",className:o,style:r,children:i,body:n,arrowProps:s,hasDoneInitialMeasure:l,popper:a,show:h,...c},d)=>{let u=iS(e,"popover"),p=iy(),[f]=(null==t?void 0:t.split("-"))||[],m=iT(f,p),g=r;return h&&!l&&(g={...r,...iw(null==a?void 0:a.strategy)}),(0,ir.jsxs)("div",{ref:d,role:"tooltip",style:g,"x-placement":f,className:M()(o,u,f&&`bs-popover-${m}`),...c,children:[(0,ir.jsx)("div",{className:"popover-arrow",...s}),n?(0,ir.jsx)(iC,{children:i}):i]})}),{Header:iR,Body:iC,POPPER_OFFSET:[0,8]}),iE=x.forwardRef(({bsPrefix:e,placement:t="right",className:o,style:r,children:i,arrowProps:n,hasDoneInitialMeasure:s,popper:l,show:a,...h},c)=>{e=iS(e,"tooltip");let d=iy(),[u]=(null==t?void 0:t.split("-"))||[],p=iT(u,d),f=r;return a&&!s&&(f={...r,...iw(null==l?void 0:l.strategy)}),(0,ir.jsxs)("div",{ref:c,style:f,role:"tooltip","x-placement":u,className:M()(o,e,`bs-tooltip-${p}`),...h,children:[(0,ir.jsx)("div",{className:"tooltip-arrow",...n}),(0,ir.jsx)("div",{className:`${e}-inner`,children:i})]})});iE.displayName="Tooltip";let iO=Object.assign(iE,{TOOLTIP_OFFSET:[0,6]}),iI={disabled:!1},iM=N().createContext(null);var ix="unmounted",iN="exited",iD="entering",iA="entered",iH="exiting",iG=function(e){function t(t,o){r=e.call(this,t,o)||this;var r,i,n=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?n?(i=iN,r.appearStatus=iD):i=iA:i=t.unmountOnExit||t.mountOnEnter?ix:iN,r.state={status:i},r.nextCallback=null,r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,eH(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ix?{status:iN}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==iD&&o!==iA&&(t=iD):(o===iD||o===iA)&&(t=iH)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,o,r=this.props.timeout;return e=t=o=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,o=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:o}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===iD){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:tr().findDOMNode(this);o&&o.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===iN&&this.setState({status:ix})},o.performEnter=function(e){var t=this,o=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[tr().findDOMNode(this),r],n=i[0],s=i[1],l=this.getTimeouts(),a=r?l.appear:l.enter;if(!e&&!o||iI.disabled){this.safeSetState({status:iA},function(){t.props.onEntered(n)});return}this.props.onEnter(n,s),this.safeSetState({status:iD},function(){t.props.onEntering(n,s),t.onTransitionEnd(a,function(){t.safeSetState({status:iA},function(){t.props.onEntered(n,s)})})})},o.performExit=function(){var e=this,t=this.props.exit,o=this.getTimeouts(),r=this.props.nodeRef?void 0:tr().findDOMNode(this);if(!t||iI.disabled){this.safeSetState({status:iN},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:iH},function(){e.props.onExiting(r),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:iN},function(){e.props.onExited(r)})})})},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(r){o&&(o=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var o=this.props.nodeRef?this.props.nodeRef.current:tr().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!o||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],n=i[0],s=i[1];this.props.addEndListener(n,s)}null!=e&&setTimeout(this.nextCallback,e)},o.render=function(){var e=this.state.status;if(e===ix)return null;var t=this.props,o=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,eU(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return N().createElement(iM.Provider,{value:null},"function"==typeof o?o(e,r):N().cloneElement(N().Children.only(o),r))},t}(N().Component);function iz(){}iG.contextType=iM,iG.propTypes={},iG.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:iz,onEntering:iz,onEntered:iz,onExit:iz,onExiting:iz,onExited:iz},iG.UNMOUNTED=ix,iG.EXITED=iN,iG.ENTERING=iD,iG.ENTERED=iA,iG.EXITING=iH;var iW=/([A-Z])/g,ik=/^ms-/;function iL(e){return e.replace(iW,"-$1").toLowerCase().replace(ik,"-ms-")}var iP=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;let iF=function(e,t){var o,r="",i="";if("string"==typeof t)return e.style.getPropertyValue(iL(t))||((o=rV(e))&&o.defaultView||window).getComputedStyle(e,void 0).getPropertyValue(iL(t));Object.keys(t).forEach(function(o){var n=t[o];n||0===n?o&&iP.test(o)?i+=o+"("+n+") ":r+=iL(o)+": "+n+";":e.style.removeProperty(iL(o))}),i&&(r+="transform: "+i+";"),e.style.cssText+=";"+r};function iB(e,t){let o=iF(e,t)||"",r=-1===o.indexOf("ms")?1e3:1;return parseFloat(o)*r}function iZ(e,t){var o,r,i,n,s,l,a,h,c,d,u,p;let f=iB(e,"transitionDuration"),m=iB(e,"transitionDelay"),g=(o=e,r=o=>{o.target===e&&(g(),t(o))},null==(i=f+m)&&(l=-1===(s=iF(o,"transitionDuration")||"").indexOf("ms")?1e3:1,i=parseFloat(s)*l||0),u=(h=!1,c=setTimeout(function(){h||function(e,t,o,r){if(void 0===o&&(o=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,o,r),e.dispatchEvent(i)}}(o,"transitionend",!0)},i+5),d=r$(o,"transitionend",function(){h=!0},{once:!0}),function(){clearTimeout(c),d()}),p=r$(o,"transitionend",r),function(){u(),p()})}function iU(e){return e&&"setState"in e?tr().findDOMNode(e):null!=e?e:null}let ij=N().forwardRef(({onEnter:e,onEntering:t,onEntered:o,onExit:r,onExiting:i,onExited:n,addEndListener:s,children:l,childRef:a,...h},c)=>{let d=(0,x.useRef)(null),u=ip(d,a),p=e=>{u(iU(e))},f=e=>t=>{e&&d.current&&e(d.current,t)},m=(0,x.useCallback)(f(e),[e]),g=(0,x.useCallback)(f(t),[t]),_=(0,x.useCallback)(f(o),[o]),v=(0,x.useCallback)(f(r),[r]),S=(0,x.useCallback)(f(i),[i]),y=(0,x.useCallback)(f(n),[n]),R=(0,x.useCallback)(f(s),[s]);return(0,ir.jsx)(iG,{ref:c,...h,onEnter:m,onEntered:_,onEntering:g,onExit:v,onExited:y,onExiting:S,addEndListener:R,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:p}):N().cloneElement(l,{ref:p})})}),i$={[iD]:"show",[iA]:"show"},iV=x.forwardRef(({className:e,children:t,transitionClasses:o={},onEnter:r,...i},n)=>{let s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=(0,x.useCallback)((e,t)=>{e.offsetHeight,null==r||r(e,t)},[r]);return(0,ir.jsx)(ij,{ref:n,addEndListener:iZ,...s,onEnter:l,childRef:r5(t),children:(r,i)=>x.cloneElement(t,{...i,className:M()("fade",e,t.props.className,i$[r],o[r])})})});iV.displayName="Fade";let iY=iV,iK=x.forwardRef(({children:e,transition:t=iY,popperConfig:o={},rootClose:r=!1,placement:i="top",show:n=!1,...s},l)=>{let a=(0,x.useRef)({}),[h,c]=(0,x.useState)(null),[d,u]=function(e){let t=(0,x.useRef)(null),o=iS(void 0,"popover"),r=iS(void 0,"tooltip"),i=(0,x.useMemo)(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(im(t.current,o))return ib.POPPER_OFFSET;if(im(t.current,r))return iO.TOOLTIP_OFFSET}return[0,0]}}}),[e,o,r]);return[t,[i]]}(s.offset),p=ip(l,d),f=!0===t?iY:t||void 0,m=function(e){let t=ih(e);return(0,x.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}(e=>{c(e),null==o||null==o.onFirstUpdate||o.onFirstUpdate(e)});return id(()=>{h&&s.target&&(null==a.current.scheduleUpdate||a.current.scheduleUpdate())},[h,s.target]),(0,x.useEffect)(()=>{n||c(null)},[n]),(0,ir.jsx)(ia,{...s,ref:p,popperConfig:{...o,modifiers:u.concat(o.modifiers||[]),onFirstUpdate:m},transition:f,rootClose:r,placement:i,show:n,children:(r,{arrowProps:i,popper:n,show:s})=>{var l;!function(e,t){let{ref:o}=e,{ref:r}=t;e.ref=o.__wrapped||(o.__wrapped=e=>o(iU(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(iU(e)))}(r,i);let c=null==n?void 0:n.placement,d=Object.assign(a.current,{state:null==n?void 0:n.state,scheduleUpdate:null==n?void 0:n.update,placement:c,outOfBoundaries:(null==n||null==(l=n.state)||null==(l=l.modifiersData.hide)?void 0:l.isReferenceHidden)||!1,strategy:o.strategy}),u=!!h;return"function"==typeof e?e({...r,placement:c,show:s,...!t&&s&&{className:"show"},popper:d,arrowProps:i,hasDoneInitialMeasure:u}):x.cloneElement(e,{...r,placement:c,arrowProps:i,popper:d,hasDoneInitialMeasure:u,className:M()(e.props.className,!t&&s&&"show"),style:{...e.props.style,...r.style}})}})});iK.displayName="Overlay";var iq=o(556),iX=o.n(iq);let iQ=2147483648-1;function iJ(e,t,o){let[r]=t,i=r.currentTarget,n=r.relatedTarget||r.nativeEvent[o];n&&n===i||rq(i,n)||e(...t)}o(311),iX().oneOf(["click","hover","focus"]);let i0=({trigger:e=["hover","focus"],overlay:t,children:o,popperConfig:r={},show:i,defaultShow:n=!1,onToggle:s,delay:l,placement:a,flip:h=a&&-1!==a.indexOf("auto"),...c})=>{var d,u,p,f,m,g;let _=(0,x.useRef)(null),v=ip(_,r5(o)),S=function(){let e=function(){let e=(0,x.useRef)(!0),t=(0,x.useRef)(()=>e.current);return(0,x.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}(),t=(0,x.useRef)();return!function(e){let t=function(e){let t=(0,x.useRef)(e);return t.current=e,t}(e);(0,x.useEffect)(()=>()=>t.current(),[])}(()=>clearTimeout(t.current)),(0,x.useMemo)(()=>{let o=()=>clearTimeout(t.current);return{set:function(r,i=0){e()&&(o(),i<=iQ?t.current=setTimeout(r,i):function e(t,o,r){let i=r-Date.now();t.current=i<=iQ?setTimeout(o,i):setTimeout(()=>e(t,o,r),iQ)}(t,r,Date.now()+i))},clear:o,handleRef:t}},[])}(),y=(0,x.useRef)(""),[R,C]=(d=(0,x.useRef)(void 0!==i),p=(u=(0,x.useState)(n))[0],f=u[1],m=void 0!==i,g=d.current,d.current=m,!m&&g&&p!==n&&f(n),[m?i:p,(0,x.useCallback)(function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];s&&s.apply(void 0,[e].concat(o)),f(e)},[s])]),T=l&&"object"==typeof l?l:{show:l,hide:l},{onFocus:w,onBlur:b,onClick:E}="function"!=typeof o?x.Children.only(o).props:{},O=(0,x.useCallback)(()=>{if(S.clear(),y.current="show",!T.show){C(!0);return}S.set(()=>{"show"===y.current&&C(!0)},T.show)},[T.show,C,S]),I=(0,x.useCallback)(()=>{if(S.clear(),y.current="hide",!T.hide){C(!1);return}S.set(()=>{"hide"===y.current&&C(!1)},T.hide)},[T.hide,C,S]),M=(0,x.useCallback)((...e)=>{O(),null==w||w(...e)},[O,w]),N=(0,x.useCallback)((...e)=>{I(),null==b||b(...e)},[I,b]),D=(0,x.useCallback)((...e)=>{C(!R),null==E||E(...e)},[E,C,R]),A=(0,x.useCallback)((...e)=>{iJ(O,e,"fromElement")},[O]),H=(0,x.useCallback)((...e)=>{iJ(I,e,"toElement")},[I]),G=null==e?[]:[].concat(e),z={ref:e=>{v(iU(e))}};return -1!==G.indexOf("click")&&(z.onClick=D),-1!==G.indexOf("focus")&&(z.onFocus=M,z.onBlur=N),-1!==G.indexOf("hover")&&(z.onMouseOver=A,z.onMouseOut=H),(0,ir.jsxs)(ir.Fragment,{children:["function"==typeof o?o(z):(0,x.cloneElement)(o,z),(0,ir.jsx)(iK,{...c,show:R,onHide:I,flip:h,placement:a,popperConfig:r,target:_.current,children:t})]})},i1={},i2=document.createElement("canvas");i2.id="gk-graph-avatar-canvas";class i5 extends N().Component{image;constructor(e){super(e),this.image=new Image,this.image.crossOrigin="anonymous",this.image.onload=()=>this.refreshImage(),this.state={dataURL:void 0}}static getDerivedStateFromProps(e,t){return{dataURL:!e.url&&t.dataURL?void 0:t.dataURL}}componentDidMount(){let{url:e}=this.props;e&&this.startImgLoading(e)}componentDidUpdate(e){let{url:t}=this.props;t&&e.url!==t&&this.startImgLoading(t)}componentWillUnmount(){this.image=void 0}refreshImage(){let e;if(this.image){if(this.image.complete){let t=this.image.height,o=this.image.width,r=i2.getContext("2d");r.canvas.width=o,r.canvas.height=t,r.drawImage(this.image,0,0,o,t),e=i2.toDataURL(),i1[this.image.src]=e}this.setState({dataURL:e})}}startImgLoading(e){if(!this.image)return;let t=i1[e];if(t){this.setState({dataURL:t});return}this.image.src=e}render(){let{avatarClassName:e,avatarStyle:t,children:o,className:r,context:i,enableTransparentBackground:n,style:s,height:l,hint:a,size:h,width:c}=this.props,{dataURL:d}=this.state,u=!d,p=u?s:{...s,...t,background:`url(${d}) 0% 0% / ${h}px no-repeat ${n?"":"var(--app__bg0, #1c1e23)"}`,height:l||h,width:c||h},f=M()(r,u?"":e,!u&&{avatar:!0}),m=u?N().createElement(N().Fragment,null,o):void 0;return N().createElement("div",{className:f,"data-test-class":"avatar","data-vscode-context":(0,ea.DO)(i),style:p,title:a},m)}}let i6=(e,t,o,r)=>N().createElement("span",{className:"ref-avatar"},N().createElement(i5,{avatarClassName:t,context:r,enableTransparentBackground:!0,size:14,url:e},o));function i3({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:r}){return r&&o?N().createElement(i0,{delay:400,overlay:N().createElement(iO,{className:M()("gk-graph","bs-tooltip",t),id:o},r),placement:"top",trigger:["hover","focus"]},e):N().createElement(N().Fragment,null," ",e," ")}function i4({id:e,toolTipText:t,getExternalIcon:o,issueTrackerType:r}){return N().createElement(i3,{icon:o(`issue-${r}`),tooltipClassName:"wide pull-left",tooltipId:`issue-tooltip-${e}`,tooltipText:t?t.trim():""})}function i9({hostingServiceType:e,icon:t,id:o,toolTipText:r}){return N().createElement(i3,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:r?r.trim():""})}function i7({icon:e,type:t,upstream:o,tooltipText:r}){return N().createElement(i3,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:r})}function i8({avatarClassName:e,avatarUrl:t,context:o,icon:r,tooltipText:i}){return N().createElement(i3,{icon:i6(t,e,r,o),tooltipId:`remote-icon-${i||"tooltipText"}`,tooltipText:i})}var ne=o(810),nt=o(280),no=function({className:e,name:t}){return N().createElement("span",{className:M()("ref-name","truncate",e),style:{height:P.F0}},t)};function nr(e,t,o,r=0){let i,n,s;let{annotated:l,refType:a,message:h,name:c}=t;switch(a){case ep.z.REMOTE:{n=t.hostingServiceType?`${ep.z.REMOTE}-${t.hostingServiceType}`:ep.z.REMOTE,i=t.avatarUrl;let e=`${c} (${o("Ref-Remote")})`;s=t.owner?`${t.owner} -> ${e}`:e;break}case ep.z.TAG:n=ep.z.TAG,s=`${l&&h?h:c} (${o("Ref-Tag")})`;break;case ep.z.HEAD:default:{let e=null!=t.worktreeId;n=e?ep.z.WORKTREE:ep.z.HEAD,s=`${c} (${o(e?"Ref-Worktree":"Ref-Local")})`}}let d=t.context||void 0,u=N().createElement("span",{"data-vscode-context":(0,ea.DO)(d)},e(n));return N().createElement(i8,{avatarUrl:i||"",context:d,icon:u,key:`ref-icon-${r}-${a}-${c}`,tooltipText:s})}class ni extends N().PureComponent{getContextForRefGroupIfExists(e,t,o){let r;let i=!1,n=!1,s=!1;for(let l of e){if(l.refType===ep.z.HEAD)return o?l.contextGroup||t:l.context;l.refType!==ep.z.REMOTE||("origin"===l.owner?(i=!0,r=o?l.contextGroup||t:l.context):i||"upstream"!==l.owner?i||n||(s=!0,r=o?l.contextGroup||t:l.context):(n=!0,r=o?l.contextGroup||t:l.context)),i||n||s||(r=o?l.contextGroup||t:l.context)}return r}getDecoratedRefIcon(e,t,o,r,i){return N().createElement("div",{className:i,"data-vscode-context":(0,ea.DO)(r),key:e,onClick:e=>this.onClickMetadata(e,o),onDoubleClick:e=>this.onDoubleClickMetadata(e,o)},t)}getPullRequestIconsAndTooltipsForRef(e,t,o){let r;let{getExternalIcon:i,onMissingRefMetadata:n,translate:s}=this.props;if(!(r=t.refType===ep.z.HEAD?t.upstream?e?.[t.upstream.id]?.[eh.ki]:null:(0,ea.yb)(t,e,n,eh.ki))||0===r.length)return null;let l=[];for(let e of r){let{context:r,hostingServiceType:n,id:a,title:h}=e;if(o.has(a))continue;o.add(a);let c={refId:t.id,type:eh.ki,data:e},d=`pr-icon-${t.refType}-${t.name}-${a}`,u=this.getDecoratedRefIcon(d,i("pull-request"),c,r,M()("ref-pull-request"));l.push(N().createElement(i9,{hostingServiceType:n,icon:u,id:a,key:d,toolTipText:h&&""!==h.trim()?s("PullRequestIcon-Tooltip",a,h,(0,ne.T)(n)):""}))}return l}getUpstreamIndicatorIconsAndTooltipsForRef(e,t){let{getExternalIcon:o,onMissingRefMetadata:r,translate:i}=this.props,n=(0,ea.yb)(t,e,r,eh.RA);if(!n||0===n.ahead&&0===n.behind)return null;let s={refId:t.id,type:eh.RA,data:n},l=n.ahead>0,a=n.behind>0,h=n.context;if(l||a){let e,r;let c=l?`${n.ahead>99?"99+":n.ahead}`:"",d=a?`${n.behind>99?"99+":n.behind}`:"",u=`${n.owner}/${n.name}`;a&&l?(e=i("UpstreamIndicatorIcon-BehindAndAheadTooltip",d,c,u),r="ahead-behind"):a?(e=i("UpstreamIndicatorIcon-BehindTooltip",d,u),r="behind"):l&&(e=i("UpstreamIndicatorIcon-AheadTooltip",c,u),r="ahead");let p=N().createElement(N().Fragment,null,a?N().createElement(N().Fragment,null,N().createElement("span",{className:"ref-upstream-behind"},d),o("upstream-behind")):null,l?N().createElement(N().Fragment,null,N().createElement("span",{className:"ref-upstream-ahead"},c),o("upstream-ahead")):null);return N().createElement(i7,{icon:this.getDecoratedRefIcon(`ref-upstream-${t.id}`,p,s,h,"ref-upstream"),tooltipText:e,type:r,upstream:u})}return null}getIssueIconsAndTooltipsForRef(e,t,o){let{getExternalIcon:r,onMissingRefMetadata:i,translate:n}=this.props,s=(0,ea.yb)(t,e,i,eh.fd);if(!s||0===s.length)return null;let l=[];for(let e of s){if(o.has(e.id))continue;let i={refId:t.id,type:eh.fd,data:e};o.add(e.id);let s=N().createElement(i4,{getExternalIcon:r,id:e.id,issueTrackerType:e.issueTrackerType,key:`issue-icon-${e.id}`,toolTipText:e.title&&""!==e.title.trim()?n("IssueIcon-Tooltip",e.displayId,e.title):""}),a=t.context||void 0;l.push(this.getDecoratedRefIcon(`ref-issue-${e.id}`,s,i,a,M()("ref-issue")))}return l}onContextMenu=e=>{let{onContextMenu:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onClick=e=>{let{onClick:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onClickMetadata=(e,t)=>{e.stopPropagation();let{onClick:o,refGroup:r,sha:i}=this.props;o(e,r,i,t)};onDoubleClick=e=>{let{onDoubleClick:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();let{onDoubleClick:o,refGroup:r,sha:i}=this.props;o(e,r,i,t)};render(){let{enableShowHideRefsOptions:e,hasActive:t,hasRefs:o,isActive:r,isGhostRef:i,getExternalIcon:n,groupIsHovered:s,isInUnsupportedRebase:l,onRefBeginDrag:a,onRefDragEnter:h,onRefDragLeave:c,onRefDrop:d,onRefCanDrag:u,onRefCanDrop:p,onRefEndDrag:f,isRefGroupIncluded:m,refGroup:g,refGroupContext:_,refIconsPosition:v,refMetadata:S,onHovered:y,onHideRefClick:R,sha:C,showRemoteNamesOnRefs:T,enabledRefMetadataTypes:w,translate:b,type:E,useColumnHeaderIcons:O}=this.props,I=e&&!t&&s&&!m,x=v===ep.E.LEFT,D=v===ep.E.RIGHT,A=M()("ref-node-wrapper","flex"),H={minWidth:0,marginLeft:3,height:P.$0},G=M()("ref-node","flex","items-center","p1",{"has-active":t,"dim-ref":!o&&s,"is-active":r}),z="";g.length>0&&(z=T&&g[0].fullName||g[0].name);let W=M()({"display-none":O&&!s&&D,mr1:D}),k=N().createElement(no,{className:W,name:z}),L=[],F=[],B=[],Z=null,U=new Set,j=new Set;g.forEach((e,t)=>{if(L.push(nr(n,e,b,t)),w.includes(eh.fd)&&(e.refType===ep.z.HEAD||e.refType===ep.z.REMOTE)){let t=this.getIssueIconsAndTooltipsForRef(S,e,j);t&&B.push(...t)}if(w.includes(eh.ki)&&e.refType===ep.z.REMOTE){let t=this.getPullRequestIconsAndTooltipsForRef(S,e,U);t&&F.push(...t)}w.includes(eh.RA)&&e.refType===ep.z.HEAD&&(Z=this.getUpstreamIndicatorIconsAndTooltipsForRef(S,e))});let $=N().createElement("span",{className:M()("flex","items-center","ref-icons",{"is-active":r,"is-left-position":x})},[...L,...F,...B]),V=r?N().createElement(i3,{icon:N().createElement("span",{className:M()("ref-icon-current")},n("check")),tooltipId:"ref-icon-current",tooltipText:b("Ref-Current")}):null,Y=this.getContextForRefGroupIfExists(g,_),K=this.getContextForRefGroupIfExists(g,_,!0),q=I?N().createElement("span",{className:"flex ml-auto"},N().createElement(i3,{icon:N().createElement("span",{className:M()("mr1","button"),onClick:e=>R(e,g,C)},n("hide")),tooltipId:`ref-node-toggle-visibility-btn-${z}`,tooltipText:b("Hide")})):null;return N().createElement(nt.A,{canDrag:e=>u(e),canDrop:(e,t,o)=>p(e,t,o),className:A,"data-vscode-context":(0,ea.DO)(K),dndData:{commitType:E,isGhostRef:i,isInUnsupportedRebase:l,refGroup:g,sha:C},dndId:`DndRefNode_${g[0].id}`,onBeginDrag:(e,t)=>a(e,t),onDragEnter:(e,t,o)=>h(e,t,o),onDragLeave:(e,t,o)=>c(e,t,o),onDrop:(e,t,o)=>d(e,t,o),onEndDrag:(e,t,o)=>f(e,t,o),style:H},N().createElement("span",{className:G,"data-test-class":"ref-node-span","data-vscode-context":(0,ea.DO)(Y),onContextMenu:l?void 0:this.onContextMenu,onDoubleClick:l?void 0:this.onDoubleClick,onMouseDown:this.onClick,onMouseEnter:e=>y(e,g,C),style:{minWidth:"100%"}},V,x&&$,k,D&&$,Z,q))}}class nn extends N().Component{headIconsRef=N().createRef();containerRef=N().createRef();popoverMenuTargetRef=N().createRef();constructor(e){super(e),this.state={showPopoverMenu:!1}}onHiddenRefsClick=e=>{let{showPopoverMenu:t}=this.state;e.stopPropagation(),this.setState({showPopoverMenu:!t})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),0===Object.keys(this.props.excludeRefsById).length&&this.setState({showPopoverMenu:!0})};compareGraphRefOpts(e,t){let o=e.name.localeCompare(t.name);return 0===o&&e.type===ep.z.REMOTE?-1:o}render(){let{columnSetting:e,enableResizer:t,enableShowHideRefsOptions:o,getExternalIcon:r,graphWidth:i,graphZones:n,graphZoneType:s,excludeRefsById:l,includeOnlyRefsById:a,isDraggable:h,onFilterColumnClick:c,onHover:d,onResize:u,onResizeEnd:p,onResizeFromPropChange:f,onResizeStart:m,onUnhover:g,onSettingsClick:_,rowsStatsLoading:v,settingsContext:S,showRemoteNamesOnRefs:y,translate:R}=this.props,{showPopoverMenu:C}=this.state,T=(0,ea.Et)(s,n);if(!T)return null;let w=(0,ea.z)(s,n),b=T.currentWidth-P.WQ,E=`${s}-header`,O=(0,ea.uQ)(T),I=e?.isFilterable||!1,x=O&&(I||o),D=M()("columns-btn",{"small-btn":x}),A=null,H=null;if(s===P.ui){let e=Object.entries(l),t=Object.values(a),i=t.length>0,n=i&&t.some(e=>e.type===ep.z.TAG),s=e.filter(e=>e[1].type===ep.z.TAG&&(!i||!n)||!a[e[0]]);s.length>0&&(H=s.sort((e,t)=>this.compareGraphRefOpts(e[1],t[1])).map((e,t)=>{let o=e[0],i=e[1];l[o].id=o;let n={name:i.name,refType:i.type,owner:i.owner,avatarUrl:i.avatarUrl},s=(y||"*"===n.name)&&n.refType===ep.z.REMOTE?`${n.owner}/${n.name}`:n.name;return N().createElement("li",{id:o,key:o,onClick:e=>this.onShowRefNodes(e,[l[o]],!0)},nr(r,n,R,t),N().createElement("span",{className:"ml1 text-ellipsis"},s))}),A=o?N().createElement("div",{className:M()(D,"right","text-normal","button",C?"active":null),ref:this.popoverMenuTargetRef},N().createElement(i3,{icon:N().createElement("span",{onClick:this.onHiddenRefsClick},r("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:R("GraphHeader-HiddenRefs-btn")})):null)}let G=I?N().createElement("div",{className:M()(D,"columns-filter","right","fs-1",{filtering:e?.isFilterActive||!1})},N().createElement(i3,{icon:N().createElement("span",{className:"columns-filter-icon text-disabled hover-icon",id:`${s}-header-filter`,onClick:e=>c(e,s),style:{height:P.bo,marginBottom:P.Qb}},r("filter")),tooltipId:"header-columns-filter",tooltipText:R("GraphHeader-Filter")})):null,z=!O&&s===P.Sq&&v?N().createElement("span",{className:M()(D,"spinner")},r("loading")):null,W=N().createElement(iK,{container:this.containerRef.current,onHide:C?()=>{this.setState({showPopoverMenu:!1})}:void 0,placement:"bottom",rootClose:C,show:C,target:this.popoverMenuTargetRef.current},e=>N().createElement(ib,{className:M()({"is-last-header":w}),id:"opts-popover",...e},N().createElement("ul",null,H))),k=w&&_?N().createElement("div",{className:M()("columns-btn","columns-settings","right","fs-1"),"data-vscode-context":(0,ea.DO)(S)},N().createElement(i3,{icon:N().createElement("span",{className:"columns-settings-icon text-disabled hover-icon",onClick:e=>_(e,i)},r("settings")),tooltipId:"header-columns-settings",tooltipText:R("GraphHeader-EditColumns")})):null,L=this.headIconsRef?.current?.clientWidth??0,F=N().createElement("div",{className:"header-columns-icons",ref:this.headIconsRef},k,z,G,A),B=O?N().createElement(N().Fragment,null,N().createElement("div",{className:M()(D,"justify-start",{ml1:!x}),style:{width:b-L},title:R(T.headerLabelUntranslated)},r((0,ea.n0)(s))),F):N().createElement(N().Fragment,null,N().createElement("div",{className:"text-disabled text-ellipsis",style:{height:P.bo,overflow:"hidden",width:b-L}},N().createElement("span",{className:"fs-1 ml1 font-monospace"},R(T.headerLabelUntranslated))),F),Z=N().createElement("div",{onMouseEnter:d,onMouseLeave:g},W,B),U=M()("panel-bg0","graph-header",{"is-draggable":h,"is-last-header":w});return N().createElement("div",{className:U,id:E,key:E,ref:this.containerRef,style:{zIndex:2,transform:"translate3d(0, 0, 0)",...w?{minWidth:b}:{display:"flex",minWidth:T.currentWidth,width:T.currentWidth}}},w?Z:N().createElement(oE,{className:U,enable:t,handleStyles:{right:{right:0}},height:P.bo,id:`${s}HeaderColumn`,onResize:u?e=>u(T,e):void 0,onResizeEnd:p?e=>p(T,e):void 0,onResizeFromPropChange:f?e=>f(T,e):void 0,onResizeStart:m?e=>m(T,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:R,width:T.currentWidth,widthConstraints:(0,ea.qC)(s,n,i)},Z))}}class ns extends N().PureComponent{canDrag=!1;isDraggable=e=>this.canDrag&&e.props.isDraggable;isDroppable=(e,t)=>e.props.graphZoneType!==t?.props?.graphZoneType&&(!t||t.props.isDroppable);onDrop=(e,t)=>{this.props.onColumnReOrdered&&this.props.onColumnReOrdered(e.props.graphZoneType,t?t.props.graphZoneType:null)};onZoneHover=()=>{this.canDrag=!0};onZoneUnHover=()=>{this.canDrag=!1};render(){let{columnsSettings:e,dragAppendToContainer:t,enableResizer:o,enableShowHideRefsOptions:r,getExternalIcon:i,excludeRefsById:n,headerContext:s,includeOnlyRefsById:l,onFilterColumnClick:a,onPopupGraphHeaderContextMenu:h,onGraphZoneResize:c,onGraphZoneResizeEnd:d,onGraphZoneResizeFromPropChange:u,onSettingsClick:p,onToggleRefNodesShown:f,graphZones:m,repoPath:g,rowsStatsLoading:_,showRemoteNamesOnRefs:v,translate:S,width:y,height:R,settingsContext:C}=this.props,T=N().createElement("div",{className:"panel-bg0",style:{height:P.bo,marginBottom:P.Qb,marginLeft:-P.xY,minWidth:P.xY+P.WQ}});return N().createElement("div",{className:"graph-header flex","data-vscode-context":(0,ea.DO)(s),onContextMenu:h?e=>h(e,y):void 0,style:{height:P.bo,marginBottom:P.Qb}},T,N().createElement(oz,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,mirrorContainer:t,onDrop:this.onDrop},m.map(t=>N().createElement(nn,{columnSetting:e[t.type],enableResizer:o,enableShowHideRefsOptions:r,excludeRefsById:n,getExternalIcon:i,graphHeight:R,graphWidth:y,graphZones:m,graphZoneType:t.type,id:`${t.type}Header`,includeOnlyRefsById:l,isDraggable:t.isCustomizable,isDroppable:t.isCustomizable,key:`${t.type}Header`,onFilterColumnClick:a,onHover:this.onZoneHover,onResize:c,onResizeEnd:d,onResizeFromPropChange:u,onSettingsClick:p,onToggleRefNodesShown:f,onUnhover:this.onZoneUnHover,repoPath:g,rowsStatsLoading:_,settingsContext:C,showRemoteNamesOnRefs:v,translate:S}))))}}function nl(e){let{constraints:{max:t,min:o},stats:{files:r,additions:i,deletions:n},getExternalIcon:s,isLastColumn:l,isRowSelected:a,verticalScrollWidth:h,zoneWidth:c}=e,d=i+n,u=Math.max(o,Math.min(t,d)),p=l?h+P.KA:P.KA;d<=u&&(p+=P.KA);let f=Math.max(P.MT,u/t*(c-52-p));return N().createElement("div",{className:M()("changes-zone",a?"selected":null)},N().createElement("span",{className:"changes-files",style:{width:52}},N().createElement("span",{className:"mr1"},s("files")),N().createElement("span",{className:"mr1"},r>999?"999+":r)),N().createElement("span",{className:"changes-bar",style:{width:f}},i?N().createElement("div",{className:"changes-sub-bar added",style:{width:i/d*f}}):null,n?N().createElement("div",{className:"changes-sub-bar deleted",style:{width:n/d*f}}):null))}let na=M()("absolute","top-0","right-0","bottom-0","left-0","time-line"),nh=M()(na,"z2");var nc=function({z2:e}){return N().createElement("div",{className:e?nh:na,style:{height:2}})};let nd=N().createElement("div",{className:"color-strip height-100",style:{width:2}}),nu={},np={};class nf extends N().PureComponent{render(){let{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,columnForColoring:r,context:i,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:a,hasAvatars:h,highlightRowsOnRefHover:c,isDimmedMergeCommitRow:d,isHighlighted:u,isHovering:p,isLastColumn:f,isInUnsupportedRebase:m,isMissingHoveredRefGroup:g,isSelected:_,numGraphColumns:v,onContextMenu:S,onClickCommit:y,onDoubleClickCommit:R,rowContext:C,sha:T,showColorStrip:w,showConflictIcon:b,showTimeline:E,setAsCurrentlyHoveredGraphCommit:O,style:I,title:x,type:D,verticalScrollWidth:A,zoneWidth:H}=this.props,G=function(e,t){let o=e+t.toString(),r=nu[o];return r||(r=M()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),nu[o]=r),r}(D,p),z=function(e,t,o,r,i,n=!1,s=!1,l=!1,a=!1){let h=`${e}${t}${r}${o}${n}${s}${l}${a}${i}`,c=np[h];return c||(c=M()(`column-${t%i+1}`,"graph-row","height-100-percent","flex",e,{"is-selected":r},{"is-highlighted":o},{"dimmed-row":a&&!o||n&&(s||l)}),np[h]=c),c}(D,r??o,u,_,v,g,c,s,d),W=E?N().createElement(nc,null):null;return N().createElement("div",{className:G,"data-vscode-context":(0,ea.DO)(C),onContextMenu:m?void 0:e=>S(e,a,T),onDoubleClick:e=>R(e,a,T),onMouseDown:e=>y(e,a,T),onMouseEnter:e=>O(e,a,T,n),onMouseLeave:t=>e(t,a,T,n),style:I},W,N().createElement("div",{className:z,"data-vscode-context":(0,ea.DO)(i)},w?nd:null,b?N().createElement("span",{className:M()("ml2")},l("warning")):null,N().createElement("span",{className:M()("graph-zone","width-100","flex-1"),style:{lineHeight:`${P.$0}px`,...f&&{width:H-A},...h&&{marginLeft:5}},title:x},t)))}}var nm=(e,t)=>{let{processedRows:o,rowStatsConstraints:r,getExternalIcon:i,highlightRowsOnRefHover:n,isInUnsupportedRebase:s,numGraphColumns:l,clearCurrentlyHoveredGraphCommit:a,currentlyHoveredCommitSha:h,dimMergeCommits:c,dimRowsOfSelectedCommit:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,rowsStats:m,setAsCurrentlyHoveredGraphCommit:g,suppressNonRefRowTooltips:_}=e,v=new ea.n$(e);return({rowIndex:e,style:S})=>{let y=t(e),R=o[e],{sha:C,type:T,contexts:w}=R,b=w?.stats||void 0,E=w?.row||void 0,O=m?.[C],I=[O?.files?`${O.files} files changed`:"",O?.additions?`${O.additions} lines added`:"",O?.deletions?`${O.deletions} lines deleted`:""].filter(Boolean).join(", ");I=T!==L.bY?I:"";let M=P.Sq,x=v.isColumnFollowingGraphColumn(M),D=v.isLastColumn(M),A=v.getZoneWidth(M),H=v.getVerticalScrollWidth(M);return N().createElement(nf,{clearCurrentlyHoveredGraphCommit:a,column:R.column,columnForColoring:R.columnForColoring,context:b,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:d,getExternalIcon:i,graphZoneType:M,highlightRowsOnRefHover:n,isDimmedMergeCommitRow:T===L.t$&&c,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:s,isLastColumn:D,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:y,numGraphColumns:l,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:E,setAsCurrentlyHoveredGraphCommit:g,sha:C,showColorStrip:x,showTimeline:v.hasTimeline(e),style:S,title:_?void 0:I,type:T,verticalScrollWidth:H,zoneWidth:A},O&&T!==L.bY?N().createElement(nl,{constraints:r,getExternalIcon:i,isLastColumn:D,isRowSelected:v.isSelected(e),stats:O,verticalScrollWidth:H,zoneWidth:A}):null)}};function ng(e){let t=(e||"").trim().toUpperCase();if(0===t.length)return"?";let o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function n_(e,t){return e&&t?`${e} <${t}>`:e||t||""}class nv extends N().Component{overlayTriggerRef;constructor(e){super(e),this.state={tooltipText:""}}componentDidUpdate(e,t){this.overlayTriggerRef&&this.state.tooltipText!==t.tooltipText&&this.overlayTriggerRef.show()}getDefaultAvatar=(e,t,o)=>{let{authorInitials:r,column:i,context:n,cssVariables:s,style:l,fontSize:a,minWidth:h,size:c,title:d=""}=this.props,u=void 0!==i&&s[(0,Y.$6)(i)]||P.BP,p=k(u.trim()),f={alignItems:"center",backgroundColor:u,backgroundSize:c,color:p,display:"flex",fontSize:`${a}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:h,top:o,width:t,...l};return N().createElement("div",{className:this.getAvatarClassName(),"data-vscode-context":(0,ea.DO)(n),style:f,title:d},r?r.toUpperCase():"")};ensureTooltipText=()=>{let{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};setOverlayTriggerRef=e=>{this.overlayTriggerRef=e};getAvatarClassName(){return M()("avatar","gravatar","rad2",this.props.className)}render(){let{tooltipText:e}=this.state,{avatarUrl:t,context:o,style:r,height:i,minWidth:n,size:s,title:l="",tooltip:a,top:h,useAuthorInitialsForAvatars:c,width:d}=this.props,u=i||s,p=d||s,f=h||P.lH/2-u/2,m={top:f,minWidth:n,...r},g=this.getDefaultAvatar(u,p,f),_=c?g:N().createElement("span",null,N().createElement(i5,{avatarClassName:this.getAvatarClassName(),avatarStyle:m,context:o,height:u,hint:l,size:s,url:t,width:p},this.getDefaultAvatar(u,p,f)));return a?N().createElement(i0,{delay:250,key:e,onEnter:this.ensureTooltipText,overlay:N().createElement(iO,{className:"gk-graph",id:"graph-gravatar-tooltip"},e),placement:"top",trigger:["hover","focus"]},_):_}}var nS=(e,t)=>{let{avatarUrlByEmail:o,clearCurrentlyHoveredGraphCommit:r,cssVariables:i,currentlyHoveredCommitSha:n,dimMergeCommits:s,dimRowsOfSelectedCommit:l,getExternalIcon:a,highlightRowsOnRefHover:h,processedRows:c,isInUnsupportedRebase:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,numGraphColumns:m,setAsCurrentlyHoveredGraphCommit:g,suppressNonRefRowTooltips:_,useAuthorInitialsForAvatars:v}=e,S=new ea.n$(e);return({rowIndex:e,style:y})=>{let R=t(e),C=c[e],{author:T,email:w,message:b,sha:E,type:O,contexts:I}=C,x=P.fx,D=S.getActiveGraphZone(x),A=O!==L.bY?T:void 0,H=O!==L.bY?n_(T,w):void 0,G=I?.author||void 0,z=I?.row||void 0,W=S.isColumnFollowingGraphColumn(x),k=S.isLastColumn(x),F=S.getZoneWidth(x),B=(F<=D.minimumWidth||D?.mode===P.eB.Rich)&&O!==L.bY;if(B){let e=v?void 0:o[w];A=N().createElement(nv,{authorInitials:ng(T),avatarUrl:e,className:M()("node",L.oB,"z6"),column:C.column,context:I?.avatar||void 0,cssVariables:i,fontSize:10,height:P.n0,size:P.CF,tooltip:_?void 0:()=>{let e=T&&""!==T.trim()&&"Unknown"!==T?n_(T,w):w,t=$(U(b||"")),o="";if(0===t.length)o=e;else{t.unshift({email:w,name:T});for(let e=0;e<t.length;e+=1){let r=t[e];o+=n_(r.name,r.email),e<t.length-1&&(o+=", ")}}return o},useAuthorInitialsForAvatars:v,width:P.n0})}return N().createElement(nf,{clearCurrentlyHoveredGraphCommit:r,column:C.column,columnForColoring:C.columnForColoring,context:G,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:l,getExternalIcon:a,graphZoneType:x,hasAvatars:B,highlightRowsOnRefHover:h,isDimmedMergeCommitRow:O===L.t$&&s,isHighlighted:S.isHighlighted(e),isHovering:S.isHovering(e),isInUnsupportedRebase:d,isLastColumn:k,isMissingHoveredRefGroup:S.isMissingHoveredRefGroup(e),isSelected:S.isSelected(e),key:R,numGraphColumns:m,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:z,setAsCurrentlyHoveredGraphCommit:g,sha:E,showColorStrip:W,showTimeline:S.hasTimeline(e),style:y,title:_?void 0:H,type:O,verticalScrollWidth:S.getVerticalScrollWidth(x),zoneWidth:F},A)}},ny=(e,t)=>{let{processedRows:o,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:n,numGraphColumns:s,formatCommitDateTime:l,clearCurrentlyHoveredGraphCommit:a,dimMergeCommits:h,dimRowsOfSelectedCommit:c,currentlyHoveredCommitSha:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,setAsCurrentlyHoveredGraphCommit:m,suppressNonRefRowTooltips:g}=e,_=new ea.n$(e);return({rowIndex:e,style:v})=>{let S=t(e),y=o[e],{date:R,sha:C,type:T,contexts:w}=y,b=R&&T!==L.bY?l(R,L.N.RowEntry):void 0,E=R&&T!==L.bY?l(R,L.N.Tooltip):void 0,O=w?.date||void 0,I=w?.row||void 0,M=P.$A,x=_.isColumnFollowingGraphColumn(M),D=_.isLastColumn(M),A=_.getZoneWidth(M),H=_.getVerticalScrollWidth(M);return N().createElement(nf,{clearCurrentlyHoveredGraphCommit:a,column:y.column,columnForColoring:y.columnForColoring,context:O,currentlyHoveredCommitSha:d,dimRowsOfSelectedCommit:c,getExternalIcon:r,graphZoneType:M,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:T===L.t$&&h,isHighlighted:_.isHighlighted(e),isHovering:_.isHovering(e),isInUnsupportedRebase:n,isLastColumn:D,isMissingHoveredRefGroup:_.isMissingHoveredRefGroup(e),isSelected:_.isSelected(e),key:S,numGraphColumns:s,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:I,setAsCurrentlyHoveredGraphCommit:m,sha:C,showColorStrip:x,showTimeline:!1,style:v,title:g?void 0:E,type:T,verticalScrollWidth:H,zoneWidth:A},b)}};let nR={type:iX().string,tooltip:iX().bool,as:iX().elementType},nC=x.forwardRef(({as:e="div",className:t,type:o="valid",tooltip:r=!1,...i},n)=>(0,ir.jsx)(e,{...i,ref:n,className:M()(t,`${o}-${r?"tooltip":"feedback"}`)}));nC.displayName="Feedback",nC.propTypes=nR;let nT=x.createContext({}),nw=x.forwardRef(({bsPrefix:e,type:t,size:o,htmlSize:r,id:i,className:n,isValid:s=!1,isInvalid:l=!1,plaintext:a,readOnly:h,as:c="input",...d},u)=>{let{controlId:p}=(0,x.useContext)(nT);return e=iS(e,"form-control"),(0,ir.jsx)(c,{...d,type:t,size:r,ref:u,readOnly:h,id:i||p,className:M()(n,a?`${e}-plaintext`:e,o&&`${e}-${o}`,"color"===t&&`${e}-color`,s&&"is-valid",l&&"is-invalid")})});nw.displayName="FormControl";let nb=Object.assign(nw,{Feedback:nC});var nE=o(350);let nO=e=>{switch(e){case nE.types.ADDED:return"added";case nE.types.MODIFIED:return"modified";case nE.types.DELETED:return"deleted";case nE.types.RENAMED:return"renamed";default:return null}},nI=e=>{switch(e){case nE.types.ADDED:return"color-green";case nE.types.MODIFIED:return"color-orange";case nE.types.DELETED:return"color-red";case nE.types.RENAMED:return"color-blue";default:return null}},nM=e=>{switch(e){case nE.types.ADDED:return"CommitDiffSection-FileAdded";case nE.types.MODIFIED:return"CommitDiffSection-FileModified";case nE.types.DELETED:return"CommitDiffSection-FileDeleted";case nE.types.RENAMED:return"CommitDiffSection-FileRenamed";default:return null}};class nx extends N().Component{render(){let{fileDiffType:e,getExternalIcon:t,translate:o}=this.props;if(!e)return null;let r=nO(e),i=nI(e),n=nM(e),s=M()("fs-1",i,"mr1");return N().createElement("span",{className:s,title:o(n)},r&&t(r))}}let{ADDED:nN,DELETED:nD,MODIFIED:nA,RENAMED:nH}=nE.types,nG={[nN]:"CommitDiffSection-NFilesAdded",[nD]:"CommitDiffSection-NFilesDeleted",[nA]:"CommitDiffSection-NFilesModified",[nH]:"CommitDiffSection-NFilesRenamed"};var nz=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:r,translate:i}){let n,s;let l=r?e:i(nG[t],e);return r&&(n={fontSize:P.Gu,marginRight:P.Ql},s={fontSize:P.ro,margin:`0px ${P.tl}px 0px 0px`}),N().createElement("span",{className:"tiny-files-readout",style:n},N().createElement(nx,{fileDiffType:t,getExternalIcon:o,style:s,translate:i}),N().createElement("span",{className:"tiny-files-readout-text"},l))},nW=function({diffStats:e,fileNodeListStyle:t,getExternalIcon:o,translate:r}){let{types:i}=nE;if(!e||!Object.values(e).some(e=>!!e))return N().createElement("span",null);let n=e.modified?N().createElement(nz,{count:e.modified,diffType:i.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,s=e.added?N().createElement(nz,{count:e.added,diffType:i.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,l=e.deleted?N().createElement(nz,{count:e.deleted,diffType:i.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,a=e.renamed?N().createElement(nz,{count:e.renamed,diffType:i.RENAMED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,h=t?{marginLeft:P.yX}:null;return N().createElement("span",{className:"summary",style:h},n,s,l,a)};class nk extends N().Component{textWidthRef=N().createRef();wrapperRef=N().createRef();static defaultProps={style:{},value:""};componentDidMount(){this.wrapperRef?.current&&(this.wrapperRef.current.style.width="0px")}componentDidUpdate(){this.textWidthRef?.current&&this.wrapperRef?.current&&(this.wrapperRef.current.style.width=`${Number(this.textWidthRef.current.offsetWidth)+35}px`)}componentWillUnmount(){this.props.onBlur&&this.props.onBlur()}onWipKeyDown(e){e.stopPropagation()}render(){let{clearCurrentlyHoveredGraphCommit:e,currentlyHoveredCommitSha:t,getExternalIcon:o,graphZoneType:r,isCommitting:i,isHovering:n,isSelected:s,onBlur:l,onClickCommit:a,onContextMenu:h,onFocus:c,onMessageChange:d,setAsCurrentlyHoveredGraphCommit:u,sha:p,style:f,translate:m,value:g,workDirStats:_}=this.props,v=M()("graph-zone-column","pt3","pb3","pointer","height-100-percent","grow-3","graph-row-wrapper",L.bY,{"is-hovering":n}),S=M()("column-1","graph-row","flex",{"is-selected":s}),y=N().createElement(nW,{diffStats:_,getExternalIcon:o,translate:m}),R=N().createElement("div",{className:"work-dir-input",ref:this.wrapperRef},N().createElement(nb,{"data-test-class":"work-dir-input-field",disabled:i,onBlur:e=>l(e),onChange:e=>d(e.target.value),onContextMenu:e=>h(e,r,p),onFocus:e=>c(e),onKeyDown:e=>this.onWipKeyDown(e),placeholder:m("WorkDirMessageInput-WIPPlaceholder"),type:"text",value:g}),N().createElement("div",{className:"text-width","data-test-class":"work-dir-input-message",ref:this.textWidthRef},g));return N().createElement("div",{className:v,onMouseEnter:e=>u(e,r,p,t),onMouseLeave:o=>e(o,r,p,t),style:f},N().createElement("div",{className:S,"data-test-class":"work-dir-message-row-div",onMouseDown:e=>a(e,r,p)},R,y))}}var nL=(e,t)=>{let{dimMergeCommits:o,dimRowsOfSelectedCommit:r,processedRows:i,translate:n,getExternalIcon:s,graphCommitDescDisplayMode:l,highlightRowsOnRefHover:a,isInUnsupportedRebase:h,numGraphColumns:c,isCommitting:d,pendingCommitMessageSummary:u,workDirStats:p,onBlurWipNodeInput:f,onFocusWipNodeInput:m,onMessageChange:g,clearCurrentlyHoveredGraphCommit:_,currentlyHoveredCommitSha:v,onCommitContextMenu:S,onClickCommit:y,onDoubleClickCommit:R,setAsCurrentlyHoveredGraphCommit:C,suppressNonRefRowTooltips:T,wipMessageEditable:w}=e,b=new ea.n$(e);return({rowIndex:e,style:E})=>{let O=t(e),I=i[e],{displaySummary:M,displayBody:x,sha:D,type:A,contexts:H,message:G}=I,z=H?.message||void 0,W=H?.row||void 0,k=P.d4,F=b.isColumnFollowingGraphColumn(k),B=b.isLastColumn(k),Z=b.getZoneWidth(k),U=b.getVerticalScrollWidth(k),j=b.isHovering(e),$=A===L.bY&&void 0!==p&&Object.keys(p).length>0,V=$&&!w?N().createElement(nW,{diffStats:p,getExternalIcon:s,translate:n}):null,Y=l===P.FQ.ALWAYS||l===P.FQ.ON_HOVER&&j,K=A!==L.bY||w?N().createElement(N().Fragment,null,N().createElement("span",{className:"message-zone--summary"},M),Y&&x?N().createElement("span",{className:"message-zone--body"},x):null):N().createElement("span",{style:{display:"flex",alignItems:"stretch",textOverflow:"ellipsis"}},Y?M:null,V);return $&&w?N().createElement(nk,{clearCurrentlyHoveredGraphCommit:_,currentlyHoveredCommitSha:v,getExternalIcon:s,graphZoneType:k,isCommitting:d,isHovering:b.isHovering(e),isSelected:b.isSelected(e),key:O,onBlur:f,onClickCommit:y,onContextMenu:S,onFocus:m,onMessageChange:g,setAsCurrentlyHoveredGraphCommit:C,sha:D,style:E,translate:n,value:u,workDirStats:p}):N().createElement(nf,{clearCurrentlyHoveredGraphCommit:_,column:I.column,columnForColoring:I.columnForColoring,context:z,currentlyHoveredCommitSha:v,dimRowsOfSelectedCommit:r,getExternalIcon:s,graphZoneType:k,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:A===L.t$&&o,isHighlighted:b.isHighlighted(e),isHovering:j,isInUnsupportedRebase:h,isLastColumn:B,isMissingHoveredRefGroup:b.isMissingHoveredRefGroup(e),isSelected:b.isSelected(e),key:O,numGraphColumns:c,onClickCommit:y,onContextMenu:S,onDoubleClickCommit:R,rowContext:W,setAsCurrentlyHoveredGraphCommit:C,sha:D,showColorStrip:F,showConflictIcon:A===L.l2||A===L.gL,showTimeline:b.hasTimeline(e),style:E,title:T?void 0:G,type:A,verticalScrollWidth:U,zoneWidth:Z},K)}},nP=(e,t)=>{let{processedRows:o,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:n,numGraphColumns:s,clearCurrentlyHoveredGraphCommit:l,currentlyHoveredCommitSha:a,dimMergeCommits:h,dimRowsOfSelectedCommit:c,onCommitContextMenu:d,onClickCommit:u,onDoubleClickCommit:p,setAsCurrentlyHoveredGraphCommit:f,shaLength:m,suppressNonRefRowTooltips:g}=e,_=new ea.n$(e);return({rowIndex:e,style:v})=>{let S=t(e),y=o[e],{sha:R,type:C,contexts:T}=y,w=B(R,m),b=T?.sha||void 0,E=T?.row||void 0,O=P.AR,I=_.isColumnFollowingGraphColumn(O),M=_.isLastColumn(O),x=_.getZoneWidth(O),D=_.getVerticalScrollWidth(O);return N().createElement(nf,{clearCurrentlyHoveredGraphCommit:l,column:y.column,columnForColoring:y.columnForColoring,context:b,currentlyHoveredCommitSha:a,dimRowsOfSelectedCommit:c,getExternalIcon:r,graphZoneType:O,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:C===L.t$&&h,isHighlighted:_.isHighlighted(e),isHovering:_.isHovering(e),isInUnsupportedRebase:n,isLastColumn:M,isMissingHoveredRefGroup:_.isMissingHoveredRefGroup(e),isSelected:_.isSelected(e),key:S,numGraphColumns:s,onClickCommit:u,onContextMenu:d,onDoubleClickCommit:p,rowContext:E,setAsCurrentlyHoveredGraphCommit:f,sha:R,showColorStrip:I,showTimeline:_.hasTimeline(e),style:v,type:C,verticalScrollWidth:D,zoneWidth:x},C!==L.bY?N().createElement("span",{className:"font-monospace pointer",title:g?void 0:w},w):null)}};function nF({hasRefs:e,isActiveSha:t,left:o,type:r,width:i}){let n=M()("ref-line","z4",{"is-active":t});return e&&[L.oB,L.t$,L.l2].includes(r)?N().createElement("hr",{className:n,style:{left:o,width:i}}):null}function nB({graphZoneModeConstants:{RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:e},hasRefs:t,isActiveSha:o,nodeOffset:r,type:i}){return N().createElement(nF,{hasRefs:t,isActiveSha:o,left:0,type:i,width:r+(i===L.t$?e:0)})}function nZ({className:e,marginLeft:t}){return N().createElement("div",{className:M()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},N().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}let nU=(e,t,o,r)=>o+t*e+r/2;function nj({column:e,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:t,COMMIT_NODE_DIAMETER:o,COMMIT_ZONE_GUTTER_WIDTH:r}}){return N().createElement(nZ,{className:"z1",marginLeft:nU(e,t,r,o)})}function n$(){return N().createElement(nZ,{marginLeft:0})}let nV=({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:r,column:i,context:n,cssVariables:s,graphZoneModeConstants:l,left:a,message:h,opacity:c,suppressNonRefRowTooltips:d,type:u,useAuthorInitialsForAvatars:p})=>N().createElement(nv,{authorInitials:t,avatarUrl:r,className:M()("node",u,"z6"),column:i,context:n,cssVariables:s,fontSize:10,height:l.COMMIT_NODE_DIAMETER,size:l.COMMIT_ZONE_AVATAR_DIAMETER,style:{left:a,opacity:c},tooltip:d?void 0:()=>{let t=o&&""!==o.trim()&&"Unknown"!==o?n_(o,e):e,r=$(U(h||"")),i="";if(0===r.length)i=t;else{r.unshift({email:e,name:o});for(let e=0;e<r.length;e+=1){let t=r[e];i+=n_(t.name,t.email),e<r.length-1&&(i+=", ")}}return i},top:l.COMMIT_NODE_TOP_OFFSET,useAuthorInitialsForAvatars:p,width:l.COMMIT_NODE_DIAMETER}),nY=(e,t,o,r,i,n,s=!1)=>{let l={height:n.COMMIT_MERGE_NODE_DIAMETER,left:o+n.COMMIT_MERGE_NODE_LEFT_OFFSET,marginTop:n.COMMIT_MERGE_NODE_TOP_OFFSET,opacity:r,width:n.COMMIT_MERGE_NODE_DIAMETER},a=M()("node",i,"z6"),h=N().createElement(iO,{className:"gk-graph",id:"graph-merge-node-tooltip"},n_(t,e)),c=N().createElement("div",{className:a,"data-test-class":"tree-row-commit-node",style:l});return s?c:N().createElement(i0,{delay:250,overlay:h,placement:"top",trigger:["hover","focus"]},c)},nK=(e,t,o,r,i,n,s,l=!1,a,h=!1)=>{let c;let d={height:a.COMMIT_NODE_DIAMETER,left:r,marginTop:a.COMMIT_NODE_TOP_OFFSET,opacity:i,width:a.COMMIT_NODE_DIAMETER};l&&(d.borderWidth=1);let u=M()("gk-graph","node",s,"z6",{compact:l});c=s===L.OZ?n("Stash"):s===L.bY?n("Graph-WorkInProgress"):n_(o,t);let p=N().createElement("div",{className:u,"data-test-class":"tree-row-commit-node",style:d},s!==L.OZ||l?null:N().createElement("span",null,e("stash"))),f=N().createElement(iO,{className:"gk-graph",id:"graph-other-node-tooltip"},c);return h?p:N().createElement(i0,{delay:250,overlay:f,placement:"top",trigger:["hover","focus"]},p)};class nq extends N().PureComponent{render(){let{authorEmail:e,authorName:t,getExternalIcon:o,graphZoneModeConstants:r,left:i,opacity:n,suppressNonRefRowTooltips:s,translate:l,type:a}=this.props;return(t||e)&&a===L.oB?r.IS_COMPACT?nY(e,t,i,n,L.t$,r,s):nV(this.props):a===L.t$||a===L.l2||a===L.gL?nY(e,t,i,n,a,r,s):nK(o,e,t,i,n,l,a,r.IS_COMPACT,r,s)}}class nX extends N().Component{render(){let{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:r,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:i,COMMIT_ZONE_GUTTER_WIDTH:n,COMMIT_ZONE_LINE_WIDTH:s,IS_COMPACT:l}}=this.props,a=function(e,t,o,r,i,n,s,l){let a=function(e,t,o,r){let i="";for(let n=0;n<=t;n++){let{passThrough:t,starting:s,ending:l}=e[n]??{};i=`${i}_${en(n,o,s?.type,r)}_${en(n,o,l?.type,r)}_${es(n,t?.type,r)}`}return i}(e,t,o,l),h=eb[a];if(h)return h;let c="";for(let a=0;a<=t;a+=1){let t=e[a];if(!t)continue;let{passThrough:h,starting:d,ending:u}=t;c+=(d?function(e,t,o,r,i,n,s,l){let a=en(e,t,o,l),h=ew[a];return h||(h=t===e?function(e,t,o,r,i,n,s){let l=ei(o,e,n,s);return l.x1=ee(t,r,i,s),l.x2=ee(t,r,i,s),l.y1=P.kU/2,l.y2=P.kU,er(l)}(r[e],t,o,i,n,s,l):function(e,t,o,r,i,n,s,l){let a=ei(r,e,s,l),h=t<o?-P.nf:P.nf,c={...a};c.x1=ee(o,i,n,l),c.x2=ee(o,i,n,l),c.y1=P.kU-P.kj,c.y2=P.kU;let d={...a};return d.x1=ee(o,i,n,l)+h,d.x2=ee(t,i,n,l),d.y1=P.kU/2,d.y2=P.kU/2,`<g>${eR(e,t<o?180:270,t<o?270:0,r,ee(o,i,n,l)+h,P.kU-P.kj,s,l)}${er(c)}${er(d)}</g>`}(r[e],t,e,o,i,n,s,l),ew[a]=h),h}(a,o,d.type,r,i,n,s,l):"")+(h?function(e,t,o,r,i,n,s){let l=es(e,t,s),a=eT[l];if(a)return a;let h=ee(e,r,i,s),c=ei(t,o[e],n,s);return c.x1=h,c.x2=h,c.y1=0,c.y2=P.kU,a=er(c),eT[l]=a,a}(a,h.type,r,i,n,s,l):"")+(u?function(e,t,o,r,i,n,s,l){let a=en(e,t,o,l),h=eC[a];return h||(h=t===e?function(e,t,o,r,i,n,s){let l=ei(o,e,n,s);return l.x1=ee(t,r,i,s),l.x2=ee(t,r,i,s),l.y1=0,l.y2=P.kU/2,er(l)}(r[e],t,o,i,n,s,l):function(e,t,o,r,i,n,s,l){let a=ei(r,e,s,l),h=t<o?-P.nf:P.nf,c={...a};c.x1=ee(o,i,n,l),c.x2=ee(o,i,n,l),c.y1=0,c.y2=P._b;let d={...a};return d.x1=ee(o,i,n,l)+h,d.x2=ee(t,i,n,l),d.y1=P.kU/2,d.y2=P.kU/2,`<g>${er(c)}${eR(e,t>o?0:90,t>o?90:180,r,ee(o,i,n,l)+h,P._b,s,l)}${er(d)}</g>`}(r[e],t,e,o,i,n,s,l),eC[a]=h),h}(a,o,u.type,r,i,n,s,l):"")}return h=`url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${c}</g></svg>')`,eb[a]=h,h}(o,t,r,e,i,n,s,l);return N().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:a}})}}function nQ({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:r="",left:i,width:n}){return N().createElement("div",{className:M()("absolute","top-0","bottom-0","z3",r),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:i,width:n}},o)}function nJ({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:r}){return N().createElement(nQ,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:r},t?N().createElement(nc,{z2:!0}):null)}function n0({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:r,width:i}){return N().createElement(nQ,{boxShadowAlpha:e,boxShadowLeft:-5,left:r+t-i,width:i},o?N().createElement(nc,{z2:!0}):null,N().createElement(n$,null))}class n1 extends N().PureComponent{render(){let{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:r,clearCurrentlyHoveredGraphCommit:i,column:n,columnColorByColumn:s,columnForColoring:l,commitZoneWidth:a,cssVariables:h,currentlyHoveredCommitSha:c,edgeColumnMax:d,edges:u,hasRefs:p,hasTimeline:f,getExternalIcon:m,graphZoneModeConstants:g,isActiveSha:_,isInUnsupportedRebase:v,isLastColumn:S,isSelected:y,leftGutterBoxShadowAlpha:R,leftGutterWidth:C,message:T,nodeOffset:w,nodeOpacity:b,numGraphColumns:E,onContextMenu:O,onClickCommit:I,onDoubleClickCommit:x,rightGutterBoxShadowAlpha:D,rightGutterWidth:A,rowContext:H,scrollLeft:G,setAsCurrentlyHoveredGraphCommit:z,sha:W,shouldShowRefLine:k,suppressNonRefRowTooltips:L,style:F,translate:B,type:Z,useAuthorInitialsForAvatars:U,zoneContext:j}=this.props,$=(l??n)%E+1,V=M()("relative","commit-zone","height-100-percent","pt3",Z,`column-${$}`,{"is-selected":y,"has-active":_}),Y=f?N().createElement(nc,{z2:!0}):null,K=N().createElement("div",{className:V,"data-vscode-context":(0,ea.DO)(j),onContextMenu:v?void 0:e=>O(e,P.md,W),onDoubleClick:e=>x(e,P.md,W),onMouseDown:e=>I(e,P.md,W),onMouseEnter:e=>z(e,P.md,W,c),onMouseLeave:e=>i(e,P.md,W,c),style:{...F,...S&&{width:"100%"}}},Y,N().createElement(nJ,{boxShadowAlpha:R,hasTimeline:f,scrollLeft:G,width:C}),k?N().createElement(nB,{graphZoneModeConstants:g,hasRefs:p,isActiveSha:_,nodeOffset:w,type:Z}):null,N().createElement(nq,{authorEmail:e,authorInitials:ng(t),authorName:t,avatarUrl:r,column:n,context:o,cssVariables:h,getExternalIcon:m,graphZoneModeConstants:g,left:w,message:T,opacity:b,suppressNonRefRowTooltips:L,translate:B,type:Z,useAuthorInitialsForAvatars:U}),N().createElement(nj,{column:n,graphZoneModeConstants:g}),N().createElement(nX,{columnColorByColumn:s,edgeColumnMax:d,edges:u,graphZoneModeConstants:g,nodeColumn:n}),N().createElement(n0,{boxShadowAlpha:D,commitZoneWidth:a,hasTimeline:f,scrollLeft:G,width:A}));return H?N().createElement("div",{"data-vscode-context":(0,ea.DO)(H)},K):K}}var n2=function(e,t){let{avatarUrlByEmail:o,onMissingAvatar:r,clearCurrentlyHoveredGraphCommit:i,columnColorByColumn:n,cssVariables:s,currentlyHoveredCommitSha:l,processedRows:a,getExternalIcon:h,graphZoneModeConstants:c,isInUnsupportedRebase:d,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,nodeOffsetByColumn:_,nodeOpacityByColumn:v,numGraphColumns:S,rightGutterBoxShadowAlpha:y,rightGutterWidth:R,setAsCurrentlyHoveredGraphCommit:C,scrollLeft:T,shouldShowRefLine:w,suppressNonRefRowTooltips:b,translate:E,useAuthorInitialsForAvatars:O}=e,I=new ea.n$(e);return({rowIndex:e,style:M})=>{let x;let D=t(e),A=a[e],H=P.md,G=I.getZoneWidth(H),{email:z,author:W,contexts:k,message:L,sha:F,type:B}=A,Z=A.column,U=k?.graph||void 0,j=k?.avatar||void 0,$=k?.row||void 0;O||(x=o[z])||r(z,F);let V=I.isLastColumn(H);return N().createElement(n1,{authorEmail:z,authorName:W,avatarContext:j,avatarUrl:x,clearCurrentlyHoveredGraphCommit:i,column:Z,columnColorByColumn:n,columnForColoring:A.columnForColoring,commitZoneWidth:G,cssVariables:s,currentlyHoveredCommitSha:l,edgeColumnMax:A.edgeColumnMaxes,edges:A.edges,getExternalIcon:h,graphZoneModeConstants:c,hasRefs:A.hasRefs||!1,hasTimeline:I.hasTimeline(e),isActiveSha:I.rowContainsCurrentHeadRef(A),isInUnsupportedRebase:d,isLastColumn:V,isSelected:I.isSelected(e),key:D,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,message:L,nodeOffset:_[Z],nodeOpacity:v[Z],numGraphColumns:S,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rightGutterBoxShadowAlpha:y,rightGutterWidth:R,rowContext:$,scrollLeft:T,setAsCurrentlyHoveredGraphCommit:C,sha:F,shouldShowRefLine:w,style:M,suppressNonRefRowTooltips:b,translate:E,type:B,useAuthorInitialsForAvatars:O,zoneContext:U})}};let n5=x.forwardRef(({controlId:e,as:t="div",...o},r)=>{let i=(0,x.useMemo)(()=>({controlId:e}),[e]);return(0,ir.jsx)(nT.Provider,{value:i,children:(0,ir.jsx)(t,{...o,ref:r})})});n5.displayName="FormGroup";class n6 extends N().PureComponent{handleClickOutside(){let{sha:e,shorthand:t,type:o,data:r}=this.props.createRefFormData;this.props.onCancel(t,e,o,r)}constructor(e){super(e);let{createRefFormData:t,formatRefShorthand:o}=this.props,{sha:r,shorthand:i,type:n,data:s}=t;this.state={currentShorthand:o(i,r,n,s),initShorthand:i}}static getDerivedStateFromProps(e,t){let{createRefFormData:o,formatRefShorthand:r}=e,{currentShorthand:i,initShorthand:n}=t,{sha:s,shorthand:l,type:a,data:h}=o,c=l!==n;return c&&r(l,s,a,h)!==i?{currentShorthand:r(l,s,a,h),initShorthand:l}:c?{currentShorthand:i,initShorthand:l}:null}onInputChange(e){let t=e||"";if(e){let{sha:e,type:o,data:r}=this.props.createRefFormData;t=this.props.formatRefShorthand(t,e,o,r)}this.setState({currentShorthand:t}),this.props.onRefShorthandChange?.(t)}render(){let{createRefFormData:e,isRefShorthandValid:t,onCancel:o,onContextMenu:r,onRefCreate:i,refZoneWidth:n,style:s,translate:l}=this.props,{currentShorthand:a}=this.state,{data:h,sha:c,type:d}=e,u=l(d===ep.z.TAG?"RefZone-EnterTagName":"RefZone-EnterBranchName");return N().createElement("div",{className:"create-ref","data-testid":"create-ref",style:{...s,minWidth:n,width:n}},N().createElement(n5,null,N().createElement(nb,{autoFocus:!0,"data-testid":"create-ref-form-control",isValid:0===a.length||t(a,c,d,h),onChange:e=>this.onInputChange(e.target?.value),onContextMenu:e=>r(e,a,c,d,h),onKeyDown:e=>{if(e.stopPropagation(),"Escape"===e.key){o(a,c,d,h);return}c&&"Enter"===e.key&&i(a,c,d,h)},placeholder:u,type:"text",value:a})))}}var n3=function({hasActive:e,overflowCount:t}){return N().createElement("span",{className:M()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)},n4=function({style:e,children:t,column:o,numGraphColumns:r,onMouseEnter:i,onMouseLeave:n,...s}){return N().createElement("div",{...s,className:M()("gk-graph","ref-zone",`column-${o%r+1}`),style:{...e,zIndex:1}},N().createElement("ul",{onMouseEnter:i,onMouseLeave:n,style:{listStyle:"none",padding:0}},t))},n9=function({enabledRefMetadataTypes:e,column:t,columnForColoring:o,context:r,enableShowHideRefsOptions:i,targetRef:n,hasActive:s,hasRefs:l,getExternalIcon:a,includeOnlyRefsById:h,includeOnlyRemotesByName:c,isGhostRef:d,isHovered:u,isInUnsupportedRebase:p,numGraphColumns:f,onMissingRefMetadata:m,refGroupContexts:g,refGroupsByName:_,refIconsPosition:v,refMetadata:S,refNodeHovered:y,sha:R,showRemoteNamesOnRefs:C,showContextMenuForGroupedRef:T,onClickRef:w,onDoubleClickRef:b,onToggleRefNodesShown:E,onRefBeginDrag:O,onRefCanDrag:I,onRefCanDrop:M,onRefDragEnter:D,onRefDragLeave:A,onRefDrop:H,onRefEndDrag:G,translate:z,type:W,useColumnHeaderIcons:k}){let L=(e,t,o)=>{E(e,t.map(e=>({id:(0,ea.$V)(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})),!1,o)},F=_&&_.length>P.gi?_.slice(0,P.gi):_,B=F[0],Z=u?F:[B],U=P.lE+(B?.length||0)*P.RJ+(s?P.RJ:0),j=Object.values(h),$=j.length>0&&j.some(e=>e.type===ep.z.TAG),[V,Y]=(0,x.useState)(!1),K=Z.map(t=>{let o=t[0],r=g?.[o.name]||void 0,n=t.some(e=>{let t=(0,ea.$V)(e);switch(e.refType){case ep.z.TAG:return $&&!!h[t];case ep.z.REMOTE:return!!h[t]||e.owner&&c[e.owner];default:return!!h[t]}}),f=N().createElement(ni,{enabledRefMetadataTypes:e,enableShowHideRefsOptions:i,getExternalIcon:a,groupIsHovered:u,hasActive:s,hasRefs:l,isActive:o.isCurrentHead,isGhostRef:d,isInUnsupportedRebase:p,isRefGroupIncluded:n,key:`ref-node-${o.fullName||o.name}`,onClick:w,onContextMenu:T,onDoubleClick:b,onHideRefClick:L,onHovered:y,onMissingRefMetadata:m,onRefBeginDrag:O,onRefCanDrag:I,onRefCanDrop:M,onRefDragEnter:D,onRefDragLeave:A,onRefDrop:H,onRefEndDrag:G,refGroup:t,refGroupContext:r,refIconsPosition:v,refMetadata:S,sha:R,showRemoteNamesOnRefs:C,translate:z,type:W,useColumnHeaderIcons:k});return V?N().createElement("li",{key:f.key},f):f});return N().createElement(N().Fragment,null,!V&&N().createElement("span",{"data-vscode-context":(0,ea.DO)(r),style:{minWidth:U}},K),N().createElement(iK,{onEntered:()=>setTimeout(()=>Y(!0)),onExit:()=>Y(!1),placement:"right-start",show:u,target:n.current},N().createElement(n4,{column:o??t,numGraphColumns:f},K)))};let n7={};class n8 extends N().PureComponent{popoverTargetRef=(0,x.createRef)();static defaultProps={style:{}};componentDidUpdate(e){!this.props.hasRefs&&this.props.isSingleSelected&&!e.isSingleSelected&&this.props.hoveredRefZoneSha===this.props.sha&&(this.props.refZoneUnhovered(),this.props.hoveredRefGroup&&this.props.refNodeUnhovered(void 0,this.props.hoveredRefGroup,this.props.sha))}onCustomToggleRefNodesShown=(e,t,o,r)=>{this.props.onToggleRefNodesShown(e,t,o,r),this.props.refZoneUnhovered()};render(){let{enabledRefMetadataTypes:e,column:t,columnForColoring:o,context:r,enableShowHideRefsOptions:i,showGhostRefsOnRowHover:n,hasActive:s,hasRefs:l,hasTimeline:a,hoveredRefGroup:h,hoveredRefZoneSha:c,getExternalIcon:d,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:_,onMissingRefMetadata:v,onRefBeginDrag:S,onRefCanDrag:y,onRefCanDrop:R,onRefDragEnter:C,onRefDragLeave:T,onRefDrop:w,onRefEndDrag:b,refGroupContexts:E,refGroupsByName:O,refIconsPosition:I,refMetadata:x,refNodeHovered:D,refNodeUnhovered:A,refZoneHovered:H,refZoneUnhovered:G,sha:z,shouldShowRefLine:W,showColorStrip:k,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:F,style:B,translate:Z,type:U,useColumnHeaderIcons:j,width:$}=this.props,V=c===z,Y={minWidth:$,width:$},K={...B,...Y},q=a?N().createElement(nc,null):null,X=O.length,Q=e=>{H(z),X?D(e,O[0],z):h&&A(e,h,z)},J=e=>{G(),h&&A(e,h,z)},ee=(0,ea.xJ)((e,t)=>{J(e),S(e,t)}),et=X>0&&!l&&n,eo=function(e,t,o,r,i,n){let s=`${e}${t}${o}${r}${i}${n}`,l=n7[s];return l||(l=M()(`column-${t%i+1}`,"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":n,"has-active":r,z6:o,z1:!o}),n7[s]=l),l}(U,o??t,V,s,m,et),er=N().createElement("div",{className:"color-strip height-100",style:{width:2}});if(!X)return N().createElement("div",{className:eo,onMouseEnter:Q,onWheel:J,style:K},k?er:null,q);let ei={minWidth:0,overflow:"hidden",width:$-P.Zk},en=X-1,es=en>0&&!V?N().createElement(n3,{hasActive:s,overflowCount:en}):null;return N().createElement("div",{className:eo,onMouseEnter:Q,onMouseLeave:J,onWheel:J,style:K},N().createElement("div",{ref:this.popoverTargetRef}),k?er:null,q,N().createElement("div",{className:"flex",style:ei},N().createElement(n9,{column:t,columnForColoring:o,context:r,enabledRefMetadataTypes:e,enableShowHideRefsOptions:i,getExternalIcon:d,hasActive:s,hasRefs:l,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isGhostRef:et,isHovered:V,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:_,onMissingRefMetadata:v,onRefBeginDrag:ee,onRefCanDrag:y,onRefCanDrop:R,onRefDragEnter:(e,t,o)=>{V||o?.sha!==z||Q(e),C(e,t,o)},onRefDragLeave:T,onRefDrop:w,onRefEndDrag:b,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:E,refGroupsByName:O,refIconsPosition:I,refMetadata:x,refNodeHovered:D,sha:z,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:F,targetRef:this.popoverTargetRef,translate:Z,type:U,useColumnHeaderIcons:j}),es),l&&W?N().createElement("div",{className:"absolute left-0 flex z1",style:Y},N().createElement(nF,{hasRefs:!0,isActiveSha:s,left:P.mE,type:U,width:"100%"})):null)}}var se=(e,t)=>{let{createRefFormData:o,formatRefShorthand:r,enableShowHideRefsOptions:i,enabledRefMetadataTypes:n,isRefShorthandValid:s,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:a,onDoubleClickRef:h,processedRows:c,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isInUnsupportedRebase:p,getExternalIcon:f,hoveredRefGroup:m,hoveredRefZoneSha:g,numGraphColumns:_,onClickRef:v,onMissingRefMetadata:S,onShowContextMenuForGroupedRef:y,onRefBeginDrag:R,onRefCanDrag:C,onRefCanDrop:T,onRefCreate:w,onRefCreateCancel:b,onRefCreateContextMenu:E,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:M,onRefEndDrag:x,onRefNodeHovered:D,onRefNodeUnhovered:A,onRefShorthandChange:H,onRefZoneHovered:G,onRefZoneUnhovered:z,onToggleRefNodesShown:W,refIconsPosition:k,refMetadataById:L,shouldShowRefLine:F,translate:B}=e,Z=new ea.n$(e);return({rowIndex:e,style:U})=>{let j=t(e),$=c[e],V=P.ui,Y=Z.getZoneWidth(V),K=Z.isHovering(e),{sha:q,type:X,hasRefs:Q,contexts:J}=$,ee=J?.ref||void 0,et=J?.refGroups||void 0,eo=Z.isSingleSelected(e),er=(l||Q)&&(Q||K||eo)?Z.getGraphRefGroupsByNameForRow(e):[],ei=Z.isColumnFollowingGraphColumn(V),en=Z.shouldUseColumnHeaderIcons(V);return o?.sha===q?N().createElement(n6,{createRefFormData:o,formatRefShorthand:r,isRefShorthandValid:s,key:j,onCancel:b,onContextMenu:E,onRefCreate:w,onRefShorthandChange:H,refZoneWidth:Y,style:U,translate:B}):N().createElement(n8,{column:$.column,columnForColoring:$.columnForColoring,context:ee,enabledRefMetadataTypes:n,enableShowHideRefsOptions:i,getExternalIcon:f,hasActive:Z.rowContainsCurrentHeadRef($),hasRefs:Q||!1,hasTimeline:Z.hasTimeline(e),hoveredRefGroup:m,hoveredRefZoneSha:g,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isInUnsupportedRebase:p,isSingleSelected:eo,key:j,numGraphColumns:_,onClickRef:v,onDoubleClickRef:h,onMissingRefMetadata:S,onRefBeginDrag:R,onRefCanDrag:C,onRefCanDrop:T,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:M,onRefEndDrag:x,onToggleRefNodesShown:W,refGroupContexts:et,refGroupsByName:er,refIconsPosition:k,refMetadata:L,refNodeHovered:D,refNodeUnhovered:A,refZoneHovered:G,refZoneUnhovered:z,sha:q,shouldShowRefLine:F,showColorStrip:ei,showContextMenuForGroupedRef:y,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:a,style:U,translate:B,type:X,useColumnHeaderIcons:en,width:Y})}},st=(e,t)=>{let{translate:o,processedRows:r}=e,i=M()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),n=new ea.n$(e);return({rowIndex:e,style:s})=>{let l=t(e),a=M()("graph-row","height-100-percent","flex"),h=n.hasTimeline(e),c=r[e],d=c.contexts?.row||void 0,u=c.timeLineEntry?.label||"",p=c.timeLineEntry?.value||0,f=h?N().createElement(nc,null):null,m=h?N().createElement("span",{className:"time-line-message-container"},N().createElement("span",{className:"time-line-message"},o(u,p))):null;return N().createElement("div",{className:i,"data-vscode-context":(0,ea.DO)(d),key:l,style:s},f,N().createElement("div",{className:a,"data-vscode-context":(0,ea.DO)(d)},m))}};class so extends N().Component{graphComponentRef=N().createRef();graphContainerRef=N().createRef();resizeObserver;lastNavSha=null;currentSha=null;isRefContextMenuShown=!1;isMounted=!1;selectedShas=new Set;lastFocusedSha;processedGraphRowBySha={};shaByRefId={};childrenBySha={};scrollToSha;headSha;headUpstreamSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];rowStatsConstraints={min:0,max:0};shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};hasMergeNodeChildBySha={};reserverInfoBySha={};columnsUsed={};rowsStats;workDirStats=P.pi;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};highlightedShas={};searchMode="normal";scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZoneModeConstants=(0,ea.jz)();graphZonesByType={};graphZoneOrdering=[P.ui,P.md,P.d4,P.fx,P.Sq,P.$A,P.AR];clientHeight=0;missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};branchUpstreamRowIndices=[];downstreamsByUpstream={};timelinesInterval;constructor(e){for(let[t,o]of(super(e),this.resizeObserver=new ResizeObserver(e=>e.forEach(e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))),Object.entries(e.isSelectedBySha||{})))o&&(this.selectedShas.add(t),this.lastFocusedSha=t);this.excludeByType=this.props.excludeByType||{},this.excludeRefsById=this.props.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),this.includeOnlyRefsById=this.props.includeOnlyRefsById||{},this.downstreamsByUpstream=this.props.downstreamsByUpstream||{},this.highlightedShas=this.props.highlightedShas||{},this.searchMode=this.props.searchMode||"normal",this.rowsStats=this.props.rowsStats||this.rowsStats,this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices(["selection","highlights"]);let t=(0,Y.yr)(this.props.cssVariables);this.graphZoneModeConstants=(0,ea.jz)(this.props.columnsSettings?.[P.md]?.mode),this.maybeSortGraphZoneOrderingFromSettings(this.props.columnsSettings),this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,createRefFormData:this.props.createRefFormData,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!1,enableShowHideRefsOptions:this.props.enableShowHideRefsOptions||!1,highlightRowsOnRefHover:this.props.highlightRowsOnRefHover||!1,showGhostRefsOnRowHover:this.props.showGhostRefsOnRowHover||!1,showRemoteNamesOnRefs:this.props.showRemoteNamesOnRefs||!1,enabledRefMetadataTypes:this.props.enabledRefMetadataTypes||[],enabledScrollMarkerTypes:this.props.enabledScrollMarkerTypes||[],graphCommitDescDisplayMode:this.props.graphCommitDescDisplayMode||P.FQ.ALWAYS,graphZones:this.initializeGraphZones(this.props.columnsSettings,this.graphZoneOrdering,580),hasMoreCommits:this.props.hasMoreCommits||!1,height:this.graphHeight,highlightedShas:this.props.highlightedShas,hoveredRefGroup:void 0,hoveredRefZoneSha:void 0,isLoadingRows:this.props.isLoadingRows||!1,numGraphColumns:this.getNumGraphColumns(t),markerRowIndices:{},pendingCommitMessageSummary:this.props.pendingCommitMessageSummary||"",processedRows:[...this.orderedGraphRows],refIconsPosition:this.getRefIconsPositionOrDefault(this.props.refIconsPosition),refMetadataById:this.props.refMetadataById,rowsStats:this.rowsStats,rowsStatsLoading:this.props.rowsStatsLoading||!1,useAuthorInitialsForAvatars:this.props.useAuthorInitialsForAvatars||!1,scrollLeft:this.getScrollLeft(),scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex(),scrollTop:this.getScrollTop(),shaLength:this.props.shaLength,themeOpacityFactor:this.props.themeOpacityFactor||P.K3.dark,width:this.graphWidth,workDirStats:this.workDirStats}}componentDidMount(){this.isMounted=!0,this.resizeObserver.observe(this.graphComponentRef.current),window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp),window.addEventListener("blur",this.onWindowBlur);let e=this.getSelectedShas();e.length>0&&this.selectCommits(e,!1,!0)}UNSAFE_componentWillReceiveProps(e){let t=!1,o=!1,r={},i=!1;if(this.props.searchMode!==e.searchMode&&(this.searchMode=e.searchMode||"normal",o=!0,r.highlights=!0),this.props.highlightedShas!==e.highlightedShas&&(this.setState({highlightedShas:e.highlightedShas}),this.highlightedShas=e.highlightedShas||{},"filter"===this.searchMode&&(o=!0),r.highlights=!0),this.props.searchMode!==e.searchMode&&(i=!0),(this.props.isSelectedBySha!==e.isSelectedBySha||this.props.highlightedShas!==e.highlightedShas)&&this.selectCommits(e.isSelectedBySha?Object.keys(e.isSelectedBySha):[],!1,!0),this.props.excludeByType!==e.excludeByType&&(this.excludeByType=e.excludeByType||{},e.graphRows?.length&&(o=!0)),this.props.excludeRefsById!==e.excludeRefsById&&(this.excludeRefsById=e.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.includeOnlyRefsById!==e.includeOnlyRefsById&&(this.includeOnlyRefsById=e.includeOnlyRefsById||{},this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.themeOpacityFactor!==e.themeOpacityFactor&&this.setState({themeOpacityFactor:e.themeOpacityFactor}),this.props.dimMergeCommits!==e.dimMergeCommits&&this.setState({dimMergeCommits:e.dimMergeCommits||!1}),this.props.highlightRowsOnRefHover!==e.highlightRowsOnRefHover&&this.setState({highlightRowsOnRefHover:e.highlightRowsOnRefHover||!1}),this.props.showGhostRefsOnRowHover!==e.showGhostRefsOnRowHover&&this.setState({showGhostRefsOnRowHover:e.showGhostRefsOnRowHover||!1}),this.props.showRemoteNamesOnRefs!==e.showRemoteNamesOnRefs&&this.setState({showRemoteNamesOnRefs:e.showRemoteNamesOnRefs||!1}),this.props.enabledRefMetadataTypes!==e.enabledRefMetadataTypes&&this.setState({enabledRefMetadataTypes:e.enabledRefMetadataTypes||[]}),this.props.enabledScrollMarkerTypes!==e.enabledScrollMarkerTypes&&this.setState({enabledScrollMarkerTypes:e.enabledScrollMarkerTypes||[]}),this.props.graphCommitDescDisplayMode!==e.graphCommitDescDisplayMode&&this.setState({graphCommitDescDisplayMode:e.graphCommitDescDisplayMode||P.FQ.ALWAYS}),this.props.isContainerWindowFocused!==e.isContainerWindowFocused&&this.dimRowsOfSelectedCommit(!1),this.props.downstreamsByUpstream!==e.downstreamsByUpstream&&(this.downstreamsByUpstream=e.downstreamsByUpstream||{},e.graphRows?.length&&(o=!0)),this.props.graphRows!==e.graphRows||this.props.cssVariables!==e.cssVariables||o){this.cleanEdgeCaches();let r=(0,Y.yr)(e.cssVariables);i=!0,this.setState({columnColorByColumn:this.getColumnColorByColumn(r),cssVariablesWithDefaults:r,numGraphColumns:this.getNumGraphColumns(r)}),this.cleanupSelections(),t=!0,(e.graphRows?.length<this.props.graphRows?.length||o)&&(this.lastLazyLoadHeight=0)}if(this.props.useAuthorInitialsForAvatars!==e.useAuthorInitialsForAvatars&&this.setState({useAuthorInitialsForAvatars:e.useAuthorInitialsForAvatars}),this.props.shaLength!==e.shaLength&&this.setState({shaLength:e.shaLength}),(this.props.hasMoreCommits!==e.hasMoreCommits||this.props.onShowMoreCommits!==e.onShowMoreCommits)&&this.setState({hasMoreCommits:e.hasMoreCommits||!1},()=>this.loadMoreCommitsIfNecessary(this.graphHeight,this.state.hasMoreCommits)),this.props.isLoadingRows!==e.isLoadingRows&&this.setState({isLoadingRows:e.isLoadingRows||!1}),this.props.rowsStats!==e.rowsStats&&(this.rowsStats=e.rowsStats,this.updateRowStatsConstraints(),this.setState({rowsStats:e.rowsStats})),this.props.rowsStatsLoading!==e.rowsStatsLoading&&this.setState({rowsStatsLoading:e.rowsStatsLoading||!1}),this.props.workDirStats!==e.workDirStats&&(this.workDirStats=e.workDirStats||P.pi,(!(0,ea.X1)(this.props.workDirStats)&&(0,ea.X1)(e.workDirStats)||(0,ea.X1)(this.props.workDirStats)&&!(0,ea.X1)(e.workDirStats))&&(i=!0),this.setState({workDirStats:this.workDirStats})),this.props.avatarUrlByEmail!==e.avatarUrlByEmail&&(this.setState({avatarUrlByEmail:e.avatarUrlByEmail||{}}),this.requestedMissingAvatars={}),this.props.refIconsPosition!==e.refIconsPosition&&this.setState({refIconsPosition:this.getRefIconsPositionOrDefault(e.refIconsPosition)}),this.props.refMetadataById!==e.refMetadataById&&(this.setState({refMetadataById:e.refMetadataById}),this.requestedMissingRefsMetadata={},r.pullRequests=!0),this.props.columnsSettings!==e.columnsSettings){if(e.columnsSettings?.[P.md]?.mode!==this.props.columnsSettings?.[P.md]?.mode){this.cleanEdgeCaches(),this.graphZoneModeConstants=(0,ea.jz)(e.columnsSettings?.[P.md]?.mode),this.updateCommitZoneContentWidthFromChange();let o=this.graphZonesByType[P.md];o.currentWidth=o.contentWidth,o.preferredWidth=o.contentWidth,o.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,o.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.loadEdgesBySha(),t=!0}e.columnsSettings&&(this.updateZonesFromSettings(e.columnsSettings),t=!0)}if(this.props.contexts!==e.contexts&&this.setState({contexts:e.contexts}),this.props.pendingCommitMessageSummary!==e.pendingCommitMessageSummary&&this.setState({pendingCommitMessageSummary:e.pendingCommitMessageSummary||""}),this.props.enableShowHideRefsOptions!==e.enableShowHideRefsOptions&&this.setState({enableShowHideRefsOptions:e.enableShowHideRefsOptions}),this.props.createRefFormData!==e.createRefFormData&&(e.createRefFormData?.sha&&this.selectCommits([e.createRefFormData?.sha],!1,!0),this.setState({createRefFormData:e.createRefFormData})),i){this.processRows(e.graphRows);let t=(0,Y.yr)(e.cssVariables);this.selectCommits(e.isSelectedBySha?Object.keys(e.isSelectedBySha):[],!1,!0),this.setState({processedRows:[...this.orderedGraphRows],columnColorByColumn:this.getColumnColorByColumn(t)})}if(t){this.updateCommitZoneContentWidthFromChange();let e=this.getOrderedActiveGraphZones();this.expandLastZoneMinWidthForScrollbar(e),this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),this.setState({graphZones:e})}Object.keys(r).length&&this.updateMarkerRowIndices(Object.keys(r),e)}componentWillUnmount(){this.isMounted=!1,this.clearTimelinesInterval(),window.removeEventListener("keydown",this.onWindowKeyDown),window.removeEventListener("keyup",this.onWindowKeyUp),window.removeEventListener("blur",this.onWindowBlur),this.resizeObserver.disconnect()}focus(){this.graphContainerRef?.current?.focus()}getRefIconsPositionOrDefault(e){return e||ep.E.LEFT}onGraphVisibleRowsUpdatedThrottled=(0,ea.nF)(()=>this.onGraphVisibleRowsUpdated(),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,o,r)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[o],r)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onFilterColumnClick=(e,t)=>{this.props.onFilterColumnClick&&this.props.onFilterColumnClick(e,t)};onCurrentlyHoveredGraphCommit=(e,t,o,r)=>{r!==o&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,r)=>{r&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{let o=this.graphZoneOrdering.indexOf(e),r=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<r&&(r-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(r,0,e);let i={};this.graphZoneOrdering.forEach((e,t)=>{this.graphZonesByType[e].order=t,i[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])}),this.setState({graphZones:this.initializeGraphZones(i,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(i)};onGraphZoneResize=(0,ea.xJ)((e,t)=>{if(t?.width){let o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}});onGraphZoneResizeEnd=(0,ea.xJ)((e,t)=>{if(t?.width){let o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!0),this.setState({graphZones:o})}this.props.onColumnResized&&this.props.onColumnResized(e.type,this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e.type]))});onPopupGraphHeaderContextMenu=(e,t)=>{this.props.onPopupGraphHeaderContextMenu&&this.props.onPopupGraphHeaderContextMenu(e,t)};onSettingsClick=(e,t)=>{this.props.onSettingsClick&&(e.stopPropagation(),this.props.onSettingsClick(e,t))};onMessageChange=e=>{this.setState({pendingCommitMessageSummary:e}),this.props.onMessageChange&&this.props.onMessageChange(e)};onRefBeginDrag=(e,t)=>{this.props.onRefBeginDrag&&this.props.onRefBeginDrag(e,t)};onRefCanDrag=e=>!!this.props.onRefCanDrag&&this.props.onRefCanDrag(e);onRefCanDrop=(e,t,o)=>!!this.props.onRefCanDrop&&this.props.onRefCanDrop(e,t,o);onRefCreate=(e,t,o,r)=>{this.props.onRefCreate&&this.props.onRefCreate(e,t,o,r)};onRefCreateCancel=(e,t,o,r)=>{this.props.onRefCreateCancel&&this.props.onRefCreateCancel(e,t,o,r)};onRefCreateContextMenu=(e,t,o,r,i)=>{this.props.onRefCreateContextMenu&&this.props.onRefCreateContextMenu(e,t,o,r,i)};onRefDragEnter=(e,t,o)=>{this.props.onRefDragEnter&&this.props.onRefDragEnter(e,t,o)};onRefDragLeave=(e,t,o)=>{this.props.onRefDragLeave&&this.props.onRefDragLeave(e,t,o)};onRefDrop=(e,t,o)=>{this.props.onRefDrop&&this.props.onRefDrop(e,t,o)};onRefEndDrag=(e,t,o)=>{this.props.onRefEndDrag&&this.props.onRefEndDrag(e,t,o)};onZoneRowClick(e,t,o){if(0===e.button){let{enableMultiSelection:t,shiftSelectMode:r}=this.props,i=this.isMacOSPlatform();if(t&&(!i&&e.ctrlKey||i&&e.metaKey))this.selectCommits([o],!0,!1);else if(t&&"simple"===r&&e.shiftKey){if(this.lastFocusedSha){if(this.lastFocusedSha!==o){let e=this.getShiftSelectRange(o);e.length&&this.selectCommits(e,!0,!1)}}else this.selectCommits([o],!1,!1)}else this.selectCommits([o],!1,!1)}}getShiftSelectRange(e){if(!this.lastFocusedSha||!this.selectedShas.size)return[e];let t=this.processedGraphRowBySha[this.lastFocusedSha].rowIndex,o=Array.from(this.selectedShas).map(e=>this.processedGraphRowBySha[e].rowIndex),r=Math.min(...o),i=Math.max(...o),n=i>t,s=this.selectedShas.size>1,l=this.processedGraphRowBySha[e].rowIndex,a=[];if(t<l)for(let e=t;e<=l;e++)s&&n?(l<=i&&e!==l||l>i&&e!==i)&&a.push(this.orderedGraphRows[e].sha):e!==t&&a.push(this.orderedGraphRows[e].sha);else for(let e=t;e>=l;e--)s&&!n?(l>=r&&e!==l||l<r&&e!==r)&&a.push(this.orderedGraphRows[e].sha):e!==t&&a.push(this.orderedGraphRows[e].sha);return a}onClickRef=(e,t,o,r)=>{this.onZoneRowClick(e,P.ui,o),this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],r),this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onClickCommit=(e,t,o)=>{if(this.onZoneRowClick(e,t,o),this.props.onClickGraphRow){let r=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,r)}this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){let r=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,r)}};onWindowKeyUp=e=>{switch(e.key){case el.e.metaKey:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!1);break;case el.e.controlKey:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!1)}};onWindowBlur=e=>{let{hoveredRefGroup:t,hoveredRefZoneSha:o}=this.state;t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered(),this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{switch(e.key){case el.e.metaKey:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!0);break;case el.e.controlKey:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!0);break;default:this.state.dimRowsOfSelectedCommit&&this.dimRowsOfSelectedCommit(!1)}};onKeyUp=e=>{this.lastNavSha&&this.isNavigationKey(e.key)&&this.currentSha!==this.lastNavSha&&(this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null)};onKeyDown=e=>{switch(null===this.lastNavSha&&this.isNavigationKey(e.key)&&(this.lastNavSha=this.currentSha),e.key){case el.e.arrowUpKey:this.selectPrevious(e.shiftKey);break;case el.e.arrowDownKey:this.selectNext(e.shiftKey);break;case"H":case"h":this.selectHead(e.shiftKey)}};isNavigationKey(e){return[el.e.arrowUpKey,el.e.arrowDownKey].some(t=>t===e)}loadSelectedGraphRow(e){let t=this.processedGraphRowBySha[e];t&&this.props.onLoadSelectedGraphRow&&this.props.onLoadSelectedGraphRow(t)}onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||(0,ea.SY)(this.selectedShas,o)||this.processedGraphRowBySha[o]?.hasRefs)&&(this.props.onGraphRefNodeHovered&&this.props.onGraphRefNodeHovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:[...t]}))};onRefNodeUnhovered=(e,t,o)=>{this.isRefContextMenuShown||(this.props.onGraphRefNodeUnhovered&&this.props.onGraphRefNodeUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:void 0}))};onRefShorthandChange=e=>{let{createRefFormData:t}=this.state;this.setState({createRefFormData:{...t,shorthand:e}})};onRefZoneHovered=e=>{this.setState({hoveredRefZoneSha:e})};onRefZoneUnhovered=()=>{this.isRefContextMenuShown||this.setState({hoveredRefZoneSha:void 0})};onShowMoreCommits=()=>{this.props.onShowMoreCommits&&this.shouldFireShowMoreCommits&&(this.props.onShowMoreCommits(),this.shouldFireShowMoreCommits=!1,setTimeout(()=>{this.shouldFireShowMoreCommits=!0},250))};onScrollForZone=(e,t,o,r,i)=>{this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),this.loadMoreCommitsIfNecessary(r,i)};loadMoreCommitsIfNecessary(e,t){if(!this.props.onShowMoreCommits||!t||!e||e<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;let o=this.scrollTop+e,r=this.orderedGraphRows.length*P.yB;o>r-P.By&&o>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(o,r-1),this.onShowMoreCommits())}onScrollToRowCausedUpdateForFirstColumn=(e,t)=>{let o={...t};if(e===P.md&&t.scrollTop){let t=this.getHorizontalScrollHeight(e,this.state.cssVariablesWithDefaults);o.scrollTop-=t+P.ar}this.setScroll(e,o),this.props.onScrollToRowCausedUpdateForFirstColumn?.(e,o)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){let r=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,r)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){this.isRefContextMenuShown=!0,this.onRefZoneHovered(o);let r=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,r),setTimeout(()=>{this.isRefContextMenuShown=!1},250)}};selectCommits(e,t,o){if(!t)for(let t of this.selectedShas)e.includes(t)||this.selectedShas.delete(t);for(let o of e)t&&this.selectedShas.has(o)?this.selectedShas.delete(o):this.processedGraphRowBySha?.[o]&&this.selectedShas.add(o);if(this.lastFocusedSha=e.length&&this.selectedShas.has(e[e.length-1])?e[e.length-1]:(0,ea.HV)(this.selectedShas),this.lastFocusedSha&&this.selectSha(this.lastFocusedSha,o),this.props.onSelectGraphRows){let e=this.getSelectedShas().map(e=>this.processedGraphRowBySha[e]);this.props.onSelectGraphRows(e)}this.updateMarkerRowIndices(["selection"]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(P.md)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getSelectedShas(){return[...this.selectedShas]}getExcludeRemotesByName(){let e={};return Object.values(this.excludeRefsById).forEach(t=>{t.type===ep.z.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)}),e}getIncludeOnlyRemotesByName(){let e={};return Object.values(this.includeOnlyRefsById).forEach(t=>{t.type===ep.z.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)}),e}clearScrollToIndex=(0,ea.xJ)(()=>{this.isMounted&&this.setState({scrollToIndex:void 0})});getTopAndBottomVisibleRowIndex(){let{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,r=e||0;if(!r||!t?.length)return{top:-1,bottom:-1};let i=(r-P.q4)/P.yB,n=o/P.yB,s=Math.min(Math.ceil(n+(i-1)),t.length-1);return{top:Math.max(Math.floor(n),0),bottom:s}}getOffsetSha(e){let t=this.graphHeight||0,o=this.props.scrollRowPadding||0;if(!o||!t)return e;let r=o;if(r<=0)return e;let i=this.getTopAndBottomVisibleRowIndex(),n=i.top,s=i.bottom;if(-1===n||-1===s)return e;let l=Math.floor((s-n)/2);if(l<1)return e;r=Math.min(r,l);let a=this.orderedGraphRows.length,h=this.orderedGraphRows.findIndex(t=>t.sha===e);if(!h||!this.orderedGraphRows.length)return e;let c=n+r>h,d=s-r<h;return c?this.orderedGraphRows[Math.max(h-r,0)].sha||e:d&&this.orderedGraphRows[Math.min(h+r,a-1)].sha||e}selectSha(e,t=!1){let o=this.processedGraphRowBySha[e]?.column||0,r=this.getScrollLeft(),i=this.getCommitZoneContentWidthBetweenGutters(),n=this.getCurrentWidthByZone(P.md),s=this.getCommitZoneContentWidth(),l=o*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,a=r-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/3<=l&&l<=r+i?r:(0,ef.q)(l-i/2,0,Math.max(0,s-n));this.setScrollToSha(t?this.getOffsetSha(e):e,a),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,o){let r=this.getOrderedActiveGraphZones(),i=this.graphZonesByType[t],n=(0,ea.jY)(i,r,e);if(i.currentWidth=n,t===P.md){let e=Math.max(0,this.getCommitZoneContentWidth()-i.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(i.preferredWidth=n)}updateCommitZoneContentWidthFromChange(){let e=this.graphZonesByType[P.md];if(!e.isHidden){let t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=(0,ea.jY)(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e,t=!0){let o=t?this.getVerticalScrollWidth(P.md,this.props.cssVariables,!0):0,r=this.graphZonesByType[e];return r&&!r.isHidden?r.currentWidth-o:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT}getCommitZoneWidth(e=!0){let t=e?this.getVerticalScrollWidth(P.md,this.props.cssVariables,!0):0;if(this.graphZonesByType[P.md])return this.graphZonesByType[P.md].currentWidth-t;let{columnsSettings:o}=this.props;return o?.[P.md]?o[P.md].width-t:P.W[P.md].minimumWidth-t}getSingleColumnModeFactor(){let e=this.maxColumns,t=this.getCurrentWidthByZone(P.md);return 1===e?0:(0,ef.q)(1-(t-2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)}setClientHeight(e){this.clientHeight=e}getClientHeight(){return this.clientHeight}setScroll(e,t){this.setClientHeight(t.clientHeight),null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===P.md&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){let e=this.getNonAdjustedScrollLeft();return this.getCommitZoneContentWidth()!==this.getCommitZoneWidth()?e:0}setScrollTop(e){this.scrollTop!==e&&(this.scrollTop=e,this.setState({scrollTop:e}),this.onGraphVisibleRowsUpdatedThrottled())}getScrollTop(){return this.scrollTop}getScrollToSha(){return this.scrollToSha}setScrollToSha(e,t){this.scrollToSha=e,this.setScrollLeft(t),this.onGraphVisibleRowsUpdated()}getScrollToIndex(){let e=this.getScrollToSha();if(e){let t=this.processedGraphRowBySha[e]?.rowIndex;return void 0===t?this.orderedGraphRows.findIndex(t=>t.sha===e):t}return -1}getScrollToAlignment(){let e=this.getClientHeight(),t=this.getScrollTop(),o=this.getScrollToIndex();return(0,ea.Mz)(P.yB,e,t,o)}getMinNodeOffset(){let e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT)+t*(e+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getHorizontalScrollHeight(e,t,o){return this.graphZonesByType[e]?(0,ea.xy)(e,this.getOrderedActiveGraphZones(),this.orderedGraphRows,t,o):0}getVerticalScrollWidth(e,t,o){return this.graphZonesByType[e]?(0,ea.K8)(e,this.getOrderedActiveGraphZones(),this.props.hasMoreCommits,this.props.isLoadingRows,this.graphHeight,this.orderedGraphRows,this.props.enabledScrollMarkerTypes?.length>0,t,o):0}getMaxNodeOffset(){let e=this.getCurrentWidthByZone(P.md),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH))+o*(t+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getAbsoluteNodeLeftByColumn(){let e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH*t;return e}getNodeOffsetByColumn(){let e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),r={};return Object.keys(o).forEach(i=>{let n=o[i];r[i]=(0,ef.q)(n,e,t)}),r}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(P.md)-this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)}getMinNodeLeft(){let e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT+t*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getRightGutterSlideOutFactor(){let e=this.getCurrentWidthByZone(P.md),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return(0,ef.q)((e-(t-(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)))/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)+o/2}getNodeOpacityByColumn(){let e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),r=this.getRightGutterSlideOutFactor(),i=this.getSingleColumnModeFactor(),n={};return Object.keys(o).forEach(s=>{let l=o[s],a=l-(e-i*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH),h=t+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-(l+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH*(1-r));n[s]=P.Td+(1-P.Td)*Math.max(Math.min(a,h)/(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2),i)}),n}getLeftGutterWidth(){let e=this.getSingleColumnModeFactor();return this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2*e}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getBoxShadowAlphaForGutter(e,t){return .4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){let t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,(0,ef.q)(1-t/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1))}getRightGutterBoxShadowAlpha(e){let t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e,t){this.setState(({markerRowIndices:o})=>{e.forEach(e=>{o[e]=[]}),e.includes("selection")&&this.getSelectedShas().forEach(e=>{this.processedGraphRowBySha[e]?.rowIndex!==void 0&&o.selection.push(this.processedGraphRowBySha[e].rowIndex)});let r=t?.searchMode??this.props.searchMode;if(e.includes("highlights")&&"filter"!==r&&Object.keys(t.highlightedShas||this.state?.highlightedShas||this.props.highlightedShas||{}).forEach(e=>{this.processedGraphRowBySha[e]?.rowIndex!==void 0&&o.highlights.push(this.processedGraphRowBySha[e].rowIndex)}),e.includes("pullRequests")){let e=t?.refMetadataById||this.state?.refMetadataById||this.props.refMetadataById||{};Object.keys(e).forEach(t=>{if(e[t]?.[eh.ki]?.length>0){let e=this.shaByRefId[t];null!=e&&this.processedGraphRowBySha[e]?.rowIndex!==void 0&&o.pullRequests.push(this.processedGraphRowBySha[e].rowIndex)}})}})}getMarkerColors(){let e=getComputedStyle(document.documentElement),t={};return Object.values(P.wx).forEach(o=>{let r=e.getPropertyValue(o.colorCssKey).trim();r&&(t[o.type]=r)}),t}initializeGraphZones(e,t,o){this.graphZonesByType={};let r=[],i=0;t.forEach((t,o)=>{let n=e?e[t]:void 0,s=P.W[t],l=n?.width?n.width:s.minimumWidth,a={...s,type:t,currentWidth:l,preferredWidth:l,isHidden:n?.isHidden||!1,mode:n?.mode,order:s.isCustomizable&&n?.order!==void 0?n?.order:o};n?.isHidden||(i+=a.currentWidth),t===P.md&&(a.contentWidth=this.getCommitZoneContentWidth(),a.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,a.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.maxColumns>0&&(a.maximumWidth=a.contentWidth)),this.graphZonesByType[t]=a,a?.isHidden||r.push(a)});let n=r[r.length-1];if(n){let e=(0,ea.eQ)(this.props.cssVariables,!0),t=n.minimumWidth+e;(null==n.maximumWidth||n.maximumWidth>=t)&&(n.minimumWidth=t,null!=n.showIconWidth&&(n.showIconWidth+=e),r[r.length-1]=n)}for(r.forEach(e=>{let t=(0,ea.jY)(e,r,e.currentWidth);t!==e.currentWidth&&(i-=e.currentWidth,e.currentWidth=t,i+=t)});i>o;){let e=(0,ea.Q9)(r);if(!e)break;let t=e.currentWidth,n=i-o,s=Math.max(e.minimumWidth,t-n),l=t-s;this.graphZonesByType[e.type].currentWidth=s,i-=l}if(i<o){let e=t[t.length-1],i=o-(0,ea.al)(r,e);this.graphZonesByType[e].currentWidth=i}return r}maybeSortGraphZoneOrderingFromSettings(e){this.graphZoneOrdering.every(t=>e?.[t]?.order!==void 0)&&this.graphZoneOrdering.sort((t,o)=>e[t].order<e[o].order?-1:e[t].order>e[o].order?1:0)}updateZonesFromSettings(e){let t=!1;this.graphZoneOrdering.forEach((o,r)=>{let i=this.graphZonesByType[o],n=e?.[i.type];n&&(n.isHidden===i.isHidden||(t=!0,i.type!==P.Sq||n.isHidden||this.updateRowStatsConstraints()),i.isHidden=n.isHidden,i.order=i.isCustomizable&&n?.order!==void 0?n?.order:r,i.mode=n.mode,i.preferredWidth=n.width??i.preferredWidth,i.currentWidth=i.preferredWidth)}),t&&this.graphZoneOrdering.forEach(e=>{let t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth})}getEdgeColumnMaxes(e){let t=0;return Object.keys(this.processedGraphRowBySha[e]?.edges||{}).forEach(e=>{t=Math.max(t,parseInt(e,10))}),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){let o,r,i,n;let s={};return Object.keys(t).forEach(l=>{r=(o=t[l]).passThrough,i=o.starting,(n=r&&!F(r.type)?r:i&&!F(i.type)?i:r||i||void 0)&&(n.parentSha===e.sha?s[l]={ending:n}:s[l]={passThrough:n})}),s}getFinalEdgeStateForGraphAndRow(e,t){let o=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),r=this.getStartingEdgesByColumn(e);return Object.keys(r).forEach(e=>{o[e]||(o[e]={ending:void 0,passThrough:void 0,starting:void 0}),o[e].starting=r[e]}),o}loadEdgesBySha(){this.maxColumns=0,this.isCommitListFiltered()||this.orderedGraphRows.forEach((e,t)=>{let o=this.orderedGraphRows[t-1],r=o&&this.processedGraphRowBySha[o.sha]?.edges?this.processedGraphRowBySha[o.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,r);let i=this.getEdgeColumnMaxes(e.sha);this.processedGraphRowBySha[e.sha].edgeColumnMaxes=i,i>this.maxColumns&&(this.maxColumns=i)})}processRows(e){this.loadRowsbySha(e||[]),this.loadEdgesBySha()}getStartingEdgesByColumn(e){let t={},o=e.parents;if(o.length>0){let r=e.type,i=this.processedGraphRowBySha[e.sha]?.column;void 0!==i&&(t[i]={parentSha:o[0],type:r});for(let e=1;e<o.length;e+=1){let i=o[e],n=this.processedGraphRowBySha[i]?.column;void 0!==n&&(t[n]={parentSha:i,type:r})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):function(e,t,o,i=!0){t=t??void 0;let n=`${(void 0)??""}:${t}`,s=X.get(n);if(null==s){let e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};let t=q.exec(e);if(t?.groups!=null){let{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}let o={localeMatcher:"best fit"};for(let{groups:t}of e.matchAll(K))if(null!=t)for(let e in t){let r=t[e];if(null!=r)switch(e){case"year":o.year=4===r.length?"numeric":"2-digit";break;case"month":switch(r.length){case 4:o.month="long";break;case 3:o.month="short";break;case 2:o.month="2-digit";break;case 1:o.month="numeric"}break;case"day":"DD"===r?o.day="2-digit":o.day="numeric";break;case"weekday":switch(r.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===r.length?"2-digit":"numeric",o.hour12="hh"===r||"h"===r;break;case"minute":o.minute=2===r.length?"2-digit":"numeric";break;case"second":o.second=2===r.length?"2-digit":"numeric";break;case"fractionalSecond":o.fractionalSecondDigits=3;break;case"dayPeriod":o.dayPeriod="narrow",o.hour12=!0,o.hourCycle="h12";break;case"timeZoneName":o.timeZoneName=2===r.length?"long":"short"}}return o}(t);s=new Intl.DateTimeFormat(r,e),i&&X.set(n,s)}if(null==t||q.test(t))return s.format(e);let l=s.formatToParts(e);return t.replace(K,(t,n,s,a,h,c,d,u,p,f,m,g,_,v,S)=>{if(null!=n)return n.substring(1,n.length-1);for(let t in S){let n=S[t];if(null==n)continue;let s=l.find(e=>e.type===t);if("Do"===n&&s?.type==="day")return function(e){let t=e%100;return`${e}${Q[(t-20)%10]??Q[t]??"th"}`}(Number(s.value));if("a"===n&&s?.type==="dayPeriod"){let t=(function(e){let t=`${(void 0)??""}:time:${e}`,n=X.get(t);if(null==n){let s;s=null==o?r:"system"===o?void 0:[o],n=new Intl.DateTimeFormat(s,{localeMatcher:"best fit",timeStyle:e}),i&&X.set(t,n)}return n})("short").formatToParts(e).find(e=>"dayPeriod"===e.type);return` ${(t??s)?.value??""}`}return s?.value??""}return""})}(e,P.qO);formatCommitMessageCallback=e=>this.props.formatCommitMessage?this.props.formatCommitMessage(e):e;formatRefShorthandCallback=(e,t,o,r)=>this.props.formatRefShorthand?this.props.formatRefShorthand(e,t,o,r):e.replace(/\s/g,"");isRefShorthandValidCallback=(e,t,o,r)=>!this.props.isRefShorthandValid||this.props.isRefShorthandValid(e,t,o,r);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):ed.H[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach((e,t)=>{let r=RegExp(`\\{${t}\\}`,"g");o=o.replace(r,e)}),o}(ed.H[e],t):e;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):N().createElement("span",null);onMissingAvatar=(e,t)=>{this.props.onEmailsMissingAvatarUrls&&!this.requestedMissingAvatars[e]&&(this.pendingMissingAvatars[e]=t,this.missingAvatarsTimer&&(clearTimeout(this.missingAvatarsTimer),this.missingAvatarsTimer=void 0),this.missingAvatarsTimer=setTimeout(()=>{if(!this.isMounted)return;let e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};let t=Object.keys(e);if(t.length){for(let e of t)this.requestedMissingAvatars[e]=!0;this.props.onEmailsMissingAvatarUrls?.(e)}},100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;let o=this.pendingMissingRefsMetadata[e]||[],r=t.filter(e=>!o.includes(e));this.pendingMissingRefsMetadata[e]=[...o,...r],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout(()=>{if(!this.isMounted)return;let e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};let t=Object.keys(e);if(t.length){for(let e of t)this.requestedMissingRefsMetadata[e]=!0;this.props.onRefsMissingMetadata?.(e)}},100)};selectNext(e){let t;if(e&&"normal"===this.searchMode&&this.lastFocusedSha){let e=this.processedGraphRowBySha[this.lastFocusedSha];e?.parents?.length&&(t=e.parents[0])}else{let e=Math.min((this.lastFocusedSha?this.orderedGraphRows.findIndex(e=>e.sha===this.lastFocusedSha):-1)+1,this.orderedGraphRows.length-1);t=this.orderedGraphRows[e]?.sha}this.currentSha=t||null,t&&this.selectCommits([t],!1,!0)}selectPrevious(e){let t;if(e&&"normal"===this.searchMode&&this.lastFocusedSha){let e=this.childrenBySha[this.lastFocusedSha];if(e?.length){for(let o=0;o<e.length;o+=1)if(o===e.length-1)t=e[o];else if(this.processedGraphRowBySha[e[o]]?.type!==L.OZ){t=e[o];break}}}else{let e=Math.max(-1,(this.lastFocusedSha?this.orderedGraphRows.findIndex(e=>e.sha===this.lastFocusedSha):-1)-1);t=this.orderedGraphRows[e]?.sha,e<0&&(t=this.orderedGraphRows[0]?.sha)}this.currentSha=t||null,t&&this.selectCommits([t],!1,!0)}selectHead(e){let t=null;e&&this.headUpstreamSha?t=this.headUpstreamSha:this.headSha&&(t=this.headSha),this.currentSha=t||null,t&&this.selectCommits([t],!1,!0)}getAvailableColumnAndUseIt(){let e=0;for(;this.columnsUsed[e];)e+=1;return this.columnsUsed[e]=!0,e}getColumns(e){let t,o;this.hasMergeNodeChildBySha[e.sha]&&delete this.hasMergeNodeChildBySha[e.sha];let r=e.parents||[],i=this.columnsToFreeWhenFound[e.sha];if(void 0!==i)for(let e=0;e<i.length;e+=1)delete this.columnsUsed[i[e]];let n=0,s=this.reserverInfoBySha[e.sha];s?.column!==void 0?(n=s.column,delete this.reserverInfoBySha[e.sha]):n=this.getAvailableColumnAndUseIt();for(let i=0;i<r.length;i+=1)if(t=r[i],e.type===L.t$&&(this.hasMergeNodeChildBySha[t]=!0),o=this.reserverInfoBySha[t],0===i&&o?.column!==void 0&&o?.column!==n){let r=this.columnsToFreeWhenFound[t]||[],i=o?.type===L.OZ&&e.type!==L.OZ&&s?.newestDate>o?.newestDate;(o?.column>n||i)&&!this.hasMergeNodeChildBySha[t]?(this.reserverInfoBySha[t]={type:e.type,newestDate:s?.newestDate,column:n},r.push(o.column)):r.push(n),this.columnsToFreeWhenFound[t]=r}else o?.column===void 0&&(this.reserverInfoBySha[t]={type:e.type,newestDate:s?.column===n?s?.newestDate:e.date,column:0===i?n:this.getAvailableColumnAndUseIt()});return n}getFilteredHeadsForGraphRow(e,t){return e.heads.filter(e=>e.isCurrentHead||(t?void 0!==this.includeOnlyRefsById[(0,ea.mH)(ep.z.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[(0,ea.mH)(ep.z.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter(e=>t?void 0!==this.includeOnlyRefsById[(0,ea.mH)(ep.z.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:(!this.excludeByType.remotes||e.owner&&this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0)&&void 0===this.excludeRefsById[(0,ea.mH)(ep.z.REMOTE,e)]&&(!e.owner||void 0===this.excludeRemotesByName[e.owner]))}getFilteredTagsForGraphRow(e,t,o){let r=t&&Object.values(this.includeOnlyRefsById).some(e=>e.type===ep.z.TAG),i=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter(e=>r?void 0!==this.includeOnlyRefsById[(0,ea.mH)(ep.z.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[(0,ea.mH)(ep.z.TAG,e)]&&(!t||i||o))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={};let t=this.isCommitListFiltered();this.childrenBySha={},this.shaByRefId={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};let o=new Map,r={},i=[],n=[];this.branchUpstreamRowIndices=[];let s=[],l=[],a=[],h=[],c={};if((0,ea.X1)(this.workDirStats)&&e.length>0&&!(0,ea.l7)(e[0].type)){let t=(0,ea.pg)(e),o={sha:L.bY,parents:t?[t]:[],author:"",email:"",date:new Date().getTime(),message:this.translateCallback("Graph-WorkInProgress"),type:L.bY,heads:[],remotes:[],tags:[]};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!(0,ea.X1)(this.workDirStats)&&e.length>0&&(0,ea.l7)(e[0].type)&&e.shift();let d=Object.keys(this.includeOnlyRefsById).length>0;e.forEach((e,u)=>{let p;let f=this.childrenBySha[e.sha]?.length>0,m=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,d):[],g=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,d):[],_=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,d,!!(c[e.sha]||f)):[],v=e.parents?.length>0?e.parents.filter(e=>!r[e]):[],S=m.length>0||g.length>0||_.length>0,y=m.length>0||g.length>0;if(e.type!==L.oB&&e.type!==L.t$||c[e.sha]){if(e.type===L.OZ&&this.excludeByType.stashes&&(r[e.sha]=!0),!r[e.sha]&&v.length>0){let e;for(e of v)c[e]=!0}}else e.type!==L.oB&&e.type!==L.t$||c[e.sha]||S||f||(r[e.sha]=!0);let R=r[e.sha],C=R?0:this.getColumns(e);t&&(p=C,C=0);let T=new ec.Y(this,{...e,heads:m,remotes:g,tags:_,parents:v},C,void 0,void 0,void 0,void 0,p);if(!R){let r;let c=o.get(e.sha);c?.length&&(c.sort((e,t)=>{if(e.parentIndexScore<t.parentIndexScore)return -1;if(e.parentIndexScore>t.parentIndexScore)return 1;if(e.parentIndexScore===t.parentIndexScore){if(e.rowEntered<t.rowEntered)return -1;if(e.rowEntered>t.rowEntered)return 1}return 0}),r=c[0],T.childRefs={heads:[...r?.heads||[]],remotes:[...r?.remotes||[]],tags:[...r?.tags||[]]},o.delete(e.sha));for(let t=0;t<v.length;t+=1){let i=v[t];this.childrenBySha[i]||(this.childrenBySha[i]=[]),this.childrenBySha[i].push(e.sha);let n=o.get(i);(y||r)&&void 0===n&&(n=[],o.set(i,n)),y?n?.unshift({sha:e.sha,parentIndexScore:t,rowEntered:u,heads:m,remotes:g,tags:_}):r&&n?.unshift({...r,parentIndexScore:t,rowEntered:u})}let d=this.orderedGraphRows.length;if(T.rowIndex=d,m.length>0)for(let e of(s.push(d),m.some(e=>e.isCurrentHead)&&(this.headSha=T.sha,i.push(d)),m))this.shaByRefId[(0,ea.mH)(ep.z.HEAD,e)]=T.sha;if(g.length>0)for(let e of(l.push(d),g))e.current&&(n.push(d),this.headUpstreamSha=T.sha),this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0&&this.branchUpstreamRowIndices.push(d),this.shaByRefId[(0,ea.mH)(ep.z.REMOTE,e)]=T.sha;if(_.length>0)for(let e of(a.push(d),_))this.shaByRefId[(0,ea.mH)(ep.z.TAG,e)]=T.sha;e.type===L.OZ&&h.push(d),(!t||this.highlightedShas[e.sha])&&this.orderedGraphRows.push(T)}this.processedGraphRowBySha[e.sha]=T}),this.setState(e=>({markerRowIndices:{...e.markerRowIndices,head:i,upstream:n,localBranches:s,remoteBranches:l,tags:a,stashes:h}})),this.clearTimelinesInterval(),this.updateTimelines(),this.timelinesInterval=setInterval(this.onTimelinesRefreshInterval,9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){this.rowStatsConstraints=(0,ea.S6)(null!=this.rowsStats?Object.values(this.rowsStats).map(e=>e.additions+e.deletions):[])}updateTimelines(){Object.values((0,ea.ug)()).forEach(e=>{e.forEach(e=>{let{date:t}=e,o=this.orderedGraphRows.find(e=>e.date<t);o&&this.processedGraphRowBySha[o.sha]&&(this.processedGraphRowBySha[o.sha].timeLineEntry=e)})})}clearTimelines(){Object.keys(this.processedGraphRowBySha).forEach(e=>{this.processedGraphRowBySha[e].timeLineEntry&&delete this.processedGraphRowBySha[e].timeLineEntry})}clearTimelinesInterval(){this.timelinesInterval&&(clearInterval(this.timelinesInterval),this.timelinesInterval=void 0)}onTimelinesRefreshInterval=()=>{this.isMounted&&(this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]}))};cleanupSelections(){for(let e of this.selectedShas)this.processedGraphRowBySha[e]||(this.selectedShas.delete(e),this.lastFocusedSha!==e||(this.lastFocusedSha=void 0))}getColumnColorByColumn(e){let t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,r={};for(let n=0;n<=o;n+=1)if(n<t){var i;let t=e[(0,Y.$6)(n)];r[n]="rgba"===(i=W(t)).type?`rgba(${i.r}, ${i.g}, ${i.b}, ${Number(i.a.toFixed(2))})`:`hsla(${i.h}, ${(100*i.s).toFixed(2)}%, ${(100*i.l).toFixed(2)}%, ${Number(i.a.toFixed(2))})`}else{let e=r[n%t];r[n]=e}return r}getNumGraphColumns(e){let t=Number.parseInt(e[V.u],P.Dl);return Number.isNaN(t)?P.Dl:t}expandLastZoneMinWidthForScrollbar(e){let t=e[e.length-1]?.type;if(!t)return;let o=(0,ea.eQ)(this.props.cssVariables,!0),r=P.W[t].minimumWidth+o,i=this.graphZonesByType[t];if(!i||null!=i.maximumWidth&&r>i.maximumWidth)return;i.minimumWidth=r;let n=P.W[t].showIconWidth;null!=n&&(i.showIconWidth=n+o),i.currentWidth<i.minimumWidth&&(i.currentWidth=i.minimumWidth),i.preferredWidth<i.minimumWidth&&(i.preferredWidth=i.minimumWidth)}ensureZoneWidthsMatchGraphWidth(e,t){let o=(0,ea.al)(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let r=(0,ea.al)(e);for(;r>t;){let i=(0,ea.Q9)(e,o);if(!i)break;let n=(0,ea.al)(e,i.type);if(n+i.currentWidth>t){let o=(0,ea.jY)(i,e,t-n);this.updateWidthByZone(o,i.type)}r=(0,ea.al)(e)}}getOrderedActiveGraphZones(){return this.graphZoneOrdering.sort((e,t)=>this.graphZonesByType[e].order-this.graphZonesByType[t].order).filter(e=>!this.graphZonesByType[e].isHidden).map(e=>this.graphZonesByType[e])}expandZoneWidthsToFitWidth(e,t,o){let r=(0,ea.al)(e);for(;r<t;){let i=(0,ea.fW)(e,o);if(!i)break;let n=(0,ea.al)(e,i.type),s=i.maximumWidth?Math.min(i.maximumWidth,i.preferredWidth||1/0):i.preferredWidth||0;if(n+i.currentWidth<t){let o=t-n;!(0,ea.z)(i.type,e)&&o>s&&(o=s),o=(0,ea.jY)(i,e,o),this.updateWidthByZone(o,i.type)}r=(0,ea.al)(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,r)=>{t.forEach(e=>{o&&this.excludeRefsById[e.id]?delete this.excludeRefsById[e.id]:o||(this.excludeRefsById[e.id]=e)}),this.excludeRemotesByName=this.getExcludeRemotesByName(),this.props.onToggleRefsVisibilityClick&&this.props.onToggleRefsVisibilityClick(e,t,o,r?this.processedGraphRowBySha[r]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){eb={},ew={},eT={},eC={},J={}}onZoneEnter=(e,t,o,r)=>{t!==P.ui&&(o&&r&&this.onRefNodeUnhovered(e,o,r),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,r){if(o?.width){let i=t.currentWidth;this.updateWidthByZone(o.width,t.type,r);let n=(0,ea.kU)(t.type,e),s=this.graphZonesByType[t.type];i>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,n+1),i<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,n-1)}}dimRowsOfSelectedCommit(e){this.setState({dimRowsOfSelectedCommit:e})}onGraphContainerBlurred=(e,t,o)=>{setTimeout(()=>{this.isMounted&&(t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered())},250)};onGraphContainerMouseEnter=e=>{this.props.onGraphMouseEnter&&this.props.onGraphMouseEnter(e)};onGraphContainerMouseLeave=e=>{this.props.onGraphMouseLeave&&this.props.onGraphMouseLeave(e)};onGraphResized=(0,ea.xJ)((e,t)=>{if(!this.isMounted)return;let o=Math.floor(t),r=Math.floor(e),i=o!==this.graphHeight,n=r!==this.graphWidth,s={};if(i&&(this.graphHeight=o,s.height=o),n){this.graphWidth=r;let e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(i||n)&&(this.setState(s),i&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))});onGraphVisibleRowsUpdated(){if(!this.isMounted||!this.props.onGraphVisibleRowsChanged||!this.orderedGraphRows?.length)return;let{top:e,bottom:t}=this.getTopAndBottomVisibleRowIndex();-1===e||-1===t||e>=this.orderedGraphRows.length||t>=this.orderedGraphRows.length||e===this.lastTopVisibleRowIndex&&t===this.lastBottomVisibleRowIndex||(this.lastTopVisibleRowIndex=e,this.lastBottomVisibleRowIndex=t,this.props.onGraphVisibleRowsChanged&&this.props.onGraphVisibleRowsChanged(this.orderedGraphRows[e],this.orderedGraphRows[t]))}getCurrentPlatform(){return this.props.platform||"darwin"}isMacOSPlatform(){return"darwin"===this.getCurrentPlatform()}isCommitListFiltered(){return"filter"===this.searchMode&&Object.values(this.highlightedShas).length>0}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,mode:e.mode,order:e.order}}decorateWithHelmet=(e,t,o)=>{let r=(0,Y.JQ)(t);return N().createElement(N().Fragment,null,N().createElement("style",{nonce:o},r),N().createElement("div",{className:"gk-graph"},e))};render(){let{columnsSettings:e,customFooterRow:t,isInUnsupportedRebase:o,isCommitting:r,repoPath:i,nonce:n,suppressNonRefRowTooltips:s,wipMessageEditable:l}=this.props,{avatarUrlByEmail:a,columnColorByColumn:h,contexts:c,createRefFormData:d,cssVariablesWithDefaults:u,currentlyHoveredCommitSha:p,dimMergeCommits:f,dimRowsOfSelectedCommit:m,enableShowHideRefsOptions:g,highlightRowsOnRefHover:_,showGhostRefsOnRowHover:v,showRemoteNamesOnRefs:S,enabledRefMetadataTypes:y,enabledScrollMarkerTypes:R,graphCommitDescDisplayMode:C,graphZones:T,hasMoreCommits:w,height:b,highlightedShas:E,hoveredRefGroup:O,hoveredRefZoneSha:I,themeOpacityFactor:x,isLoadingRows:D,rowsStatsLoading:A,numGraphColumns:H,pendingCommitMessageSummary:G,processedRows:z,refIconsPosition:W,refMetadataById:k,useAuthorInitialsForAvatars:L,scrollToAlignment:F,scrollToIndex:B,scrollTop:Z,scrollLeft:U,shaLength:j,width:$,workDirStats:V}=this.state,Y=M()("flex","graph-container"),K=(0,ea.xd)(z),q=eu(e=>K(e)),X=this.getLeftGutterWidth(),Q=this.getRightGutterWidth(),J=this.getRightGutterBoxShadowAlpha(x),ee=this.getLeftGutterBoxShadowAlpha(x),et=this.getNodeOffsetByColumn(),eo=this.getNodeOpacityByColumn(),er=(0,ea.kU)(P.ui,T),ei=(0,ea.kU)(P.md,T),en=!O,es={alwaysShowTimelines:this.isCommitListFiltered(),avatarUrlByEmail:a,createRefFormData:d,dimMergeCommits:f,dimRowsOfSelectedCommit:m,enableShowHideRefsOptions:g,highlightRowsOnRefHover:_,showGhostRefsOnRowHover:v,showRemoteNamesOnRefs:S,enabledRefMetadataTypes:y,enabledScrollMarkerTypes:R,isInUnsupportedRebase:o,isCommitting:r||!1,pendingCommitMessageSummary:G,workDirStats:V,repoPath:i,columnColorByColumn:h,currentlyHoveredCommitSha:p,cssVariables:u,graphCommitDescDisplayMode:C,graphZoneModeConstants:this.graphZoneModeConstants,graphZones:T,hasMoreCommits:w,height:b,highlightedShas:E,hoveredRefGroup:O,hoveredRefZoneSha:I,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isLoadingRows:D,selectedShas:this.selectedShas,leftGutterBoxShadowAlpha:ee,leftGutterWidth:X,nodeOffsetByColumn:et,nodeOpacityByColumn:eo,nonce:n,numGraphColumns:H,processedRows:z,processedGraphRowBySha:this.processedGraphRowBySha,refIconsPosition:W,refMetadataById:k,rightGutterBoxShadowAlpha:J,rightGutterWidth:Q,rowStatsConstraints:this.rowStatsConstraints,rowsStats:this.rowsStats,suppressNonRefRowTooltips:s,useAuthorInitialsForAvatars:L,scrollToAlignment:F,scrollLeft:U,scrollTop:Z,shaLength:j,shouldShowRefLine:-1!==er&&-1!==ei&&ei-er==1,width:$,wipMessageEditable:l||!1,onMissingAvatar:this.onMissingAvatar,onMissingRefMetadata:this.onMissingRefMetadata,clearCurrentlyHoveredGraphCommit:this.onClearCurrentlyHoveredGraphCommit,setAsCurrentlyHoveredGraphCommit:this.onCurrentlyHoveredGraphCommit,onClickRef:this.onClickRef,onClickCommit:this.onClickCommit,onDoubleClickCommit:this.onDoubleClickCommit,onBlurWipNodeInput:this.onBlurWipNodeInput,onFocusWipNodeInput:this.onFocusWipNodeInput,onDoubleClickRef:this.onDoubleClickRef,onMessageChange:this.onMessageChange,onRefBeginDrag:this.onRefBeginDrag,onRefCanDrag:this.onRefCanDrag,onRefCanDrop:this.onRefCanDrop,onRefCreate:this.onRefCreate,onRefCreateCancel:this.onRefCreateCancel,onRefCreateContextMenu:this.onRefCreateContextMenu,onRefDragEnter:this.onRefDragEnter,onRefDragLeave:this.onRefDragLeave,onRefDrop:this.onRefDrop,onRefEndDrag:this.onRefEndDrag,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefShorthandChange:this.onRefShorthandChange,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,formatRefShorthand:this.formatRefShorthandCallback,isRefShorthandValid:this.isRefShorthandValidCallback,translate:this.translateCallback},el={[P.ui]:se(es,K),[P.md]:n2(es,K),[P.d4]:nL(es,K),[P.fx]:nS(es,K),[P.$A]:ny(es,K),[P.AR]:nP(es,K),[P.Sq]:nm(es,K),[P.OU]:st(es,K)},eh=T.map((e,o)=>{let r=0===o;return N().createElement(oD,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,cellRenderersByIds:el,columnIndex:o,customFooterRow:t,enabledScrollMarkerTypes:R,enableResizer:en,getExternalIcon:this.getIconCallback,getKeyForCell:K,graphHeight:b-P.q4,graphWidth:$,graphZones:T,graphZoneType:e.type,hasMoreCommits:w,horizontalScrollHeight:this.getHorizontalScrollHeight(e.type,u),isLoadingRows:D,key:`${e.type}ColumnContainer`,markerColors:this.getMarkerColors(),markerRowIndices:this.state.markerRowIndices,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:r?this.onScrollToRowCausedUpdateForFirstColumn:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,O,I),rowCount:z.length,scrollLeft:U,scrollToAlignment:r?F:void 0,scrollToIndex:r?B:void 0,scrollTop:Z,smartCellRangeRenderer:q,translate:this.translateCallback,verticalScrollWidth:this.getVerticalScrollWidth(e.type,u)})}),ec=this.graphComponentRef?.current&&N().createElement(ns,{columnsSettings:e,dragAppendToContainer:this.graphComponentRef?.current,enableResizer:en,enableShowHideRefsOptions:g,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:T,headerContext:c?.header,height:b,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onFilterColumnClick:this.onFilterColumnClick,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onSettingsClick:this.onSettingsClick,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:i,rowsStatsLoading:A,settingsContext:c?.settings,showRemoteNamesOnRefs:S,translate:this.translateCallback,width:$}),ed=N().createElement("div",{className:"graph-component","data-vscode-context":(0,ea.DO)(c?.graph),onBlur:e=>this.onGraphContainerBlurred(e,O,I),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphComponentRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},ec,N().createElement("div",{className:E&&Object.keys(E).length?M()(Y,"graph-highlighted"):Y,id:"graph-container",onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onMouseDown:this.onGraphHeaderRowMouseDown,ref:this.graphContainerRef,style:{height:b,width:$},tabIndex:-1},eh));return this.decorateWithHelmet(ed,u,n)}}var sr=so},468:(e,t,o)=>{o.d(t,{A:()=>l});var r=o(15),i=o.n(r),n=o(66);class s extends i().PureComponent{resizeObserver;scrollbarContainerRef=i().createRef();horizontalScrollRef=i().createRef();scrollabbleContentRef=i().createRef();verticalScrollRef=i().createRef();outerHorizontalScrollRef=i().createRef();constructor(e){super(e),this.resizeObserver=new ResizeObserver(e=>e.forEach(e=>this.onContainerResized(e.contentRect.width,e.contentRect.height)))}updateScrollbarValues(e,t){this.horizontalScrollRef?.current&&(this.horizontalScrollRef.current.scrollLeft=e||0),this.verticalScrollRef?.current&&(this.verticalScrollRef.current.scrollTop=t||0)}componentDidUpdate(e){let{scrollLeft:t,scrollTop:o}=this.props;(e.scrollLeft!==t||e.scrollTop!==o)&&this.updateScrollbarValues(t,o)}onHorizontalScroll(e){this.props.onScroll&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:e.target.clientWidth,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:e.target.scrollLeft,scrollTop:this.props.scrollTop||0,scrollWidth:e.target.scrollWidth})}onVerticalScroll(e){let t=1>Math.abs(e.target.scrollTop-(this.props.scrollTop??0));this.props.onScroll&&!t&&this.props.onScroll({clientHeight:e.target.clientHeight,clientWidth:this.props.width||0,scrollHeight:e.target.scrollHeight,scrollLeft:this.props.scrollLeft||0,scrollTop:e.target.scrollTop,scrollWidth:this.props.contentWidth||0})}onWheel(e){if(!this.props.onScroll||!this.verticalScrollRef.current&&!this.props.forceOnVerticalWheel&&!this.horizontalScrollRef.current&&!this.props.forceOnHorizontalWheel)return;let t=this.props.scrollLeft||0,o=t;(this.horizontalScrollRef.current||this.props.forceOnHorizontalWheel)&&(o+=e.deltaX,(o=o>=0?o:0)>t&&this.horizontalScrollRef?.current&&(0,n.y6)(this.horizontalScrollRef.current)&&(o=t));let r=this.props.scrollTop||0,i=r;(this.verticalScrollRef.current||this.props.forceOnVerticalWheel)&&(i+=e.deltaY,(i=i>=0?i:0)>r&&this.verticalScrollRef?.current&&(0,n.br)(this.verticalScrollRef.current)&&(i=r)),(i!==r||o!==t)&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:this.props.width||0,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:o>=0?o:0,scrollTop:i>=0?i:0,scrollWidth:this.props.contentWidth||0})}componentDidMount(){this.updateScrollbarValues(this.props.scrollLeft,this.props.scrollTop),this.resizeObserver.observe(this.scrollbarContainerRef.current)}componentWillUnmount(){this.resizeObserver.disconnect()}onContainerResized=(0,n.xJ)((e,t)=>{let o=this.props.contentHeight||0,r=this.props.contentWidth||0,i=this.props.scrollTop||0,n=this.props.scrollLeft||0,s=t<o?i:0,l=e<r?n:0;(i!==s||n!==l)&&(this.updateScrollbarValues(l,s),this.props.onScroll?.({clientHeight:t,clientWidth:e,scrollHeight:o,scrollLeft:l,scrollTop:s,scrollWidth:r}))});hasHorizontalScroll(){let{contentWidth:e,displayHorizontalScrollbar:t,forceHorizontalScrollbar:o,width:r}=this.props;return o||t&&r<e}hasVerticalScroll(){let{displayVerticalScrollbar:e,forceVerticalScrollbar:t,height:o}=this.props;return t||e&&o<this.getAdjustedContentHeight()}getHorizontalScrollbarTickness(){return parseInt(this.outerHorizontalScrollRef.current?.clientHeight,10)||0}getAdjustedContentHeight(){return this.props.contentHeight+this.getHorizontalScrollbarTickness()}adjustScrollWhileDragging(e){let t;let o=this.getAdjustedContentHeight();if(!this.scrollabbleContentRef.current||this.props.height>=o||!this.props.onScroll)return;let r=this.scrollabbleContentRef.current.getBoundingClientRect(),i=e.clientY-r.top,n=Math.abs(o-this.props.height);if(this.props.scrollTop>0&&i<=20){let e=this.props.scrollTop-20;t={clientHeight:r.height,clientWidth:r.width,scrollHeight:n,scrollLeft:this.props.scrollLeft||0,scrollTop:e>0?e:0,scrollWidth:this.props.contentWidth||0}}if(this.props.scrollTop<n&&i>=this.props.height-20){let e=this.props.scrollTop+20;t={clientHeight:r.height,clientWidth:r.width,scrollHeight:n,scrollLeft:this.props.scrollLeft||0,scrollTop:e<n?e:n,scrollWidth:this.props.contentWidth||0}}t&&this.props.onScroll(t)}render(){let{children:e,contentHeight:t,contentWidth:o,forceHorizontalScrollbar:r,forceVerticalScrollbar:n,height:s,width:l}=this.props,a=this.hasVerticalScroll(),h=this.hasHorizontalScroll(),c=h&&i().createElement("div",{className:"scrollbar-outer horizontal",ref:this.outerHorizontalScrollRef,style:{top:`calc(${s}px - var(--scrollable-scrollbar-thickness))`,width:l}},i().createElement("div",{className:"scrollbar-inner horizontal_scrollbar",onScroll:e=>this.onHorizontalScroll(e),ref:this.horizontalScrollRef,style:{overflowX:r?"scroll":"auto",width:a?`calc(${l}px - var(--scrollable-scrollbar-thickness))`:l}},i().createElement("div",{style:{height:"1px",width:o}}))),d=a&&i().createElement("div",{className:"scrollbar-outer vertical",style:{height:s}},i().createElement("div",{className:"scrollbar-inner vertical_scrollbar",onScroll:e=>this.onVerticalScroll(e),ref:this.verticalScrollRef,style:{overflowY:n?"scroll":"auto",height:h?`calc(${s}px - var(--scrollable-scrollbar-thickness))`:s}},i().createElement("div",{style:{height:`calc(${t}px + var(--scrollable-scrollbar-thickness))`,width:"1px"}})));return i().createElement("div",{className:"scrollbar-container",onWheelCapture:e=>this.onWheel(e),ref:this.scrollbarContainerRef,style:{height:s,width:l}},i().createElement("div",{className:"scrollable-content",onDragOverCapture:e=>this.adjustScrollWhileDragging(e),ref:this.scrollabbleContentRef,style:{height:s,width:l}},e),c,d)}}var l=s},298:(e,t,o)=>{o.d(t,{N:()=>c,OZ:()=>l,bY:()=>a,gL:()=>s,l2:()=>i,oB:()=>r,t$:()=>n});let r="commit-node",i="merge-conflict-node",n="merge-node",s="unsupported-rebase-warning-node",l="stash-node",a="work-dir-changes";var h,c=((h=c||{}).RowEntry="rowEntry",h.Tooltip="tooltip",h)},218:()=>{},522:(e,t,o)=>{o.d(t,{Y:()=>i,u:()=>r});let r="--num-columns-supported",i={"--graph-row-height":"22px","--font-default":"'Open Sans', Arial, sans-serif !important","--font-monospace":"'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace","--font-size":"62.5%","--fs-1":"1rem","--fs-2":"1.2rem","--fs-3":"1.4rem","--fs-4":"1.6rem","--fs-5":"1.8rem","--fs-6":"2rem","--fs-7":"2.4rem","--button-xs-padding-y":".15rem","--button-xs-padding-x":".25rem","--button-small-padding-y":".25rem","--button-small-padding-x":".5rem","--button-medium-padding-y":".5rem","--button-medium-padding-x":".75rem","--button-large-padding-y":"1rem","--button-large-padding-x":"1.25rem","--button-radius":".2rem","--input-radius":"3px","--about-modal-bg-color":"#e2e4e9","--about-modal-width":"650px","--label__purple-color-f25":"rgba(197,23,182,0.25)","--registration-modal-width":"400px","--file-history-header-height":"35px","--shop-modal-width":"95vw","--shop-modal-height":"95vh","--scrollable-scrollbar-thickness":"14px","--mini-commit-col-left-width":"30px","--mini-commit-col-middle-padding":"6px","--mini-commit-col-right-width":"56px","--fuzzy-finder-repo-color":"rgba(46,206,157,0.1)","--fuzzy-finder-checkout-color":"rgba(6,105,247,0.1)","--fuzzy-finder-history-color":"rgba(197,23,182,0.1)","--handle-width":"7px","--shadow-color":"rgba(0,0,0,0.4)","--graph-color-5-f10":"rgba(205,1,1,0.1)","--graph-color-6-f10":"rgba(242,93,46,0.1)","--graph-color-7-f10":"rgba(242,202,51,0.1)","--graph-color-8-f10":"rgba(123,217,56,0.1)","--graph-color-9-f10":"rgba(46,206,157,0.1)","--graph-color-0-f10":"rgba(21,160,191,0.1)","--graph-color-1-f10":"rgba(6,105,247,0.1)","--graph-color-2-f10":"rgba(142,0,194,0.1)","--graph-color-3-f10":"rgba(197,23,182,0.1)","--graph-color-4-f10":"rgba(217,1,113,0.1)","--graph-color-5-f50":"rgba(205,1,1,0.5)","--graph-color-6-f50":"rgba(242,93,46,0.5)","--graph-color-7-f50":"rgba(242,202,51,0.5)","--graph-color-8-f50":"rgba(123,217,56,0.5)","--graph-color-9-f50":"rgba(46,206,157,0.5)","--graph-color-0-f50":"rgba(21,160,191,0.5)","--graph-color-1-f50":"rgba(6,105,247,0.5)","--graph-color-2-f50":"rgba(142,0,194,0.5)","--graph-color-3-f50":"rgba(197,23,182,0.5)","--graph-color-4-f50":"rgba(217,1,113,0.5)","--axo-orange":"#e75225","--axo-ink":"#141422","--axo-cream":"#f9efc1","--axo-yellow":"#d8c13a","--info-bar-height":"26px","--left-panel-header-height":"60px","--toolbar-height":"48px","--toolbar-border":"1px","--toolbar-item-height":"calc(var(--toolbar-height, 0px) - var(--toolbar-border, 1px))","--expand-detail-panel-transition":"flex-grow 250ms ease-in-out","--conflict-left-color":"rgba(21,160,191,0.25)","--conflict-right-color":"rgba(242,202,51,0.25)","--conflict-output-color":"rgba(197,23,182,0.25)","--graph-color-5-bg50":"#751012","--graph-color-6-bg50":"#873e29","--graph-color-7-bg50":"#87742b","--graph-color-8-bg50":"#4c7c2e","--graph-color-9-bg50":"#257660","--graph-color-0-bg50":"#195f71","--graph-color-1-bg50":"#11448d","--graph-color-2-bg50":"#550f73","--graph-color-3-bg50":"#711b6d","--graph-color-4-bg50":"#7b104a","--graph-color-5-bg45":"#6c1114","--graph-color-6-bg45":"#7c3a28","--graph-color-7-bg45":"#7c6b2a","--graph-color-8-bg45":"#47722c","--graph-color-9-bg45":"#246d5a","--graph-color-0-bg45":"#195969","--graph-color-1-bg45":"#124082","--graph-color-2-bg45":"#4f116b","--graph-color-3-bg45":"#681b65","--graph-color-4-bg45":"#711146","--graph-color-5-bg25":"#48171b","--graph-color-6-bg25":"#522e26","--graph-color-7-bg25":"#524927","--graph-color-8-bg25":"#344d28","--graph-color-9-bg25":"#214a42","--graph-color-0-bg25":"#1a3f4a","--graph-color-1-bg25":"#173158","--graph-color-2-bg25":"#39174b","--graph-color-3-bg25":"#461c48","--graph-color-4-bg25":"#4b1737","--graph-color-5-bg15":"#371a1e","--graph-color-6-bg15":"#3c2725","--graph-color-7-bg15":"#3c3825","--graph-color-8-bg15":"#2a3a26","--graph-color-9-bg15":"#1f3835","--graph-color-0-bg15":"#1b323a","--graph-color-1-bg15":"#192943","--graph-color-2-bg15":"#2d1a3b","--graph-color-3-bg15":"#351d39","--graph-color-4-bg15":"#381a2f","--semi-bold":"500","--bold":"600","--num-columns-supported":"10","--column-0-color":"#15a0bf","--column-1-color":"#0669f7","--column-2-color":"#8e00c2","--column-3-color":"#c517b6","--column-4-color":"#d90171","--column-5-color":"#cd0101","--column-6-color":"#f25d2e","--column-7-color":"#f2ca33","--column-8-color":"#7bd938","--column-9-color":"#2ece9d","--red":"#D9413D","--orange":"#DE9B43","--yellow":"#ECB91C","--green":"#5CB85C","--blue":"#4D88FF","--ltblue":"#5bc0de","--app__bg0":"#1C1E23","--toolbar__bg0":"rgb(42,45,52)","--toolbar__bg1":"rgb(51,55,63)","--toolbar__bg2":"rgb(65,70,80)","--panel__bg0":"rgb(39,42,49)","--panel__bg1":"rgb(50,54,63)","--panel__bg2":"rgb(61,66,77)","--input__bg":"rgba(0,0,0,0.2)","--input-bg-warn-color":"rgba(222,155,67,0.6)","--panel-border":"rgb(19,20,24)","--section-border":"rgba(255,255,255,0.08)","--subtle-border":"rgba(255,255,255,0.04)","--modal-overlay-color":"rgba(0,0,0,.5)","--graph-color-0":"#15a0bf","--graph-color-1":"#0669f7","--graph-color-2":"#8e00c2","--graph-color-3":"#c517b6","--graph-color-4":"#d90171","--graph-color-5":"#cd0101","--graph-color-6":"#f25d2e","--graph-color-7":"#f2ca33","--graph-color-8":"#7bd938","--graph-color-9":"#2ece9d","--text-selected":"#FFFFFF","--text-selected-row":"#FFFFFF","--text-dimmed":"rgba(255,255,255,0.2)","--text-dimmed-selected":"rgba(255,255,255,0.5)","--text-normal":"rgba(255,255,255,0.75)","--text-secondary":"rgba(255,255,255,0.6)","--text-disabled":"rgba(255,255,255,0.4)","--text-accent":"#93A9EC","--text-inverse":"#222222","--text-bright":"#FFFFFF","--btn-text":"rgba(255,255,255,0.75)","--btn-text-hover":"#FFFFFF","--default-border":"rgba(255,255,255,0.75)","--default-bg":"transparent","--default-hover":"transparent","--default-border-hover":"#FFFFFF","--primary-border":"#4D88FF","--primary-bg":"rgba(77,136,255,0.2)","--primary-hover":"rgba(77,136,255,0.6)","--success-border":"#5CB85C","--success-bg":"rgba(92,184,92,0.2)","--success-hover":"rgba(92,184,92,0.6)","--warning-border":"#DE9B43","--warning-bg":"rgba(222,155,67,0.2)","--warning-hover":"rgba(222,155,67,0.6)","--danger-border":"#D9413D","--danger-bg":"rgba(217,65,61,0.2)","--danger-hover":"rgba(217,65,61,0.6)","--hover-row":"rgba(77,136,255,0.1)","--hover-row-border":"none","--danger-row":"rgba(217,65,61,0.6)","--selected-row":"rgba(77,136,255,0.2)","--selected-row-border":"none","--warning-row":"rgba(222,155,67,0.6)","--droppable":"rgba(236,185,28,0.3)","--drop-target":"rgba(92,184,92,0.5)","--input--disabled":"rgba(0,0,0,0.1)","--link-color":"#40c5ec","--link-color-bright":"#40c5ec","--form-control-focus":"#4D88FF","--scroll-thumb-border":"#1C1E23","--scroll-thumb-bg":"rgb(65,70,80)","--scroll-thumb-bg-light":"rgb(111,119,136)","--wip-status":"rgba(77,136,255,0.4)","--card__bg":"rgb(61,66,77)","--card-shadow":"rgba(0,0,0,.2)","--statusbar__warning-bg":"#87742b","--label__yellow-color":"#f2ca33","--label__light-blue-color":"#15a0bf","--label__purple-color":"#c517b6","--filtering":"rgba(77,136,255,0.5)","--soloing":"rgba(222,155,67,0.5)","--checked-out":"rgba(92,184,92,0.3)","--soloed":"rgba(222,155,67,0.3)","--filter-match":"rgba(77,136,255,0.5)","--clone__progress":"rgba(77,136,255,0.7)","--toolbar__prompt":"rgba(77,136,255,0.2)","--verified":"rgba(92,184,92,0.3)","--unverified":"rgba(255,255,255,0.1)","--drop-sort-border":"#5CB85C","--terminal__repo-name-color":"turquoise","--terminal__repo-branch-color":"violet","--terminal__repo-tag-color":"lightcoral","--terminal__repo-upstream-color":"yellowgreen","--terminal__background":"#000000","--terminal__cursor":"#FFFFFF","--terminal__cursorAccent":"#000000","--terminal__foreground":"#FFFFFF","--terminal__selection":"#304676","--terminal__black":"#000000","--terminal__red":"#F24A4A","--terminal__green":"#0DBC79","--terminal__yellow":"#E5E510","--terminal__blue":"#4A98EE","--terminal__magenta":"#E063E0","--terminal__cyan":"#11A8CD","--terminal__white":"#E5E5E5","--terminal__brightBlack":"#686868","--terminal__brightRed":"#FF5656","--terminal__brightGreen":"#23D18B","--terminal__brightYellow":"#F5F543","--terminal__brightBlue":"#51A4FF","--terminal__brightMagenta":"#D670D6","--terminal__brightCyan":"#29B8DB","--terminal__brightWhite":"#E5E5E5","--code-bg":"#1C1E23","--code-foreground":"rgba(255,255,255,0.75)","--code-blame-color-0":"#15a0bf","--code-blame-color-1":"#0669f7","--code-blame-color-2":"#8e00c2","--code-blame-color-3":"#c517b6","--code-blame-color-4":"#d90171","--code-blame-color-5":"#cd0101","--code-blame-color-6":"#f25d2e","--code-blame-color-7":"#f2ca33","--code-blame-color-8":"#7bd938","--code-blame-color-9":"#2ece9d","--added-line":"rgba(92,184,92,0.2)","--deleted-line":"rgba(217,65,61,0.2)","--modified-line":"rgba(0,0,0,0.25)","--conflict-info-color":"#15a0bf","--conflict-left-border-color":"#15a0bf","--conflict-right-border-color":"#f2ca33","--conflict-output-border-color":"#c517b6","--scroll-marker-head-color":"#16c216","--scroll-marker-highlights-color":"#e6e62b","--scroll-marker-local-branches-color":"#ffa500","--scroll-marker-pull-requests-color":"#ff8f18","--scroll-marker-remote-branches-color":"#ffd68b","--scroll-marker-selection-color":"#0821ff","--scroll-marker-stashes-color":"#fb94ff","--scroll-marker-tags-color":"#affcff","--scroll-marker-upstream-color":"#9bff9b","--stats-added-color":"#347d39","--stats-deleted-color":"#c93c37","--stats-files-color":"#e2c08d","--stats-bar-border-radius":"3px","--stats-bar-height":"40%"}},686:(e,t,o)=>{o.d(t,{$6:()=>i,JQ:()=>s,yr:()=>n});var r=o(522);function i(e){return`--column-${e}-color`}function n(e={}){let t={};return Object.keys(e).forEach(o=>{o.includes("--graph-color-")||o.match(/^--column-\d+-color$/)?CSS.supports("color",e[o])&&(t[o]=e[o]):t[o]=e[o]}),function(e={}){return{...r.Y,...e}}(t)}function s(e){let t=e||r.Y,o="";for(let e of(o+=".gk-graph {\n",Object.keys(t)))o+=`${e}: ${t[e]};
2
- `;return o+"}\n"}},350:(e,t,o)=>{o.d(t,{types:()=>r});let r={ADDED:"added",DELETED:"deleted",MODIFIED:"modified",RENAMED:"renamed"}},366:()=>{},210:(e,t,o)=>{o.d(t,{e:()=>i});var r,i=((r=i||{}).arrowDownKey="ArrowDown",r.arrowUpKey="ArrowUp",r.controlKey="Control",r.metaKey="Meta",r.shiftKey="Shift",r)},214:(e,t,o)=>{o.d(t,{$0:()=>l,$A:()=>el,AR:()=>ea,BP:()=>r,By:()=>a,CF:()=>R,CY:()=>Q,Dl:()=>e_,E5:()=>M,EB:()=>v,F0:()=>x,FQ:()=>eC,G3:()=>H,Gu:()=>Y,H6:()=>O,Hm:()=>I,K3:()=>$,KA:()=>B,KV:()=>k,MT:()=>F,OU:()=>eo,Oe:()=>m,Qb:()=>j,Ql:()=>K,RJ:()=>z,Sb:()=>ef,Sq:()=>eh,Td:()=>c,W:()=>eS,WC:()=>ey,WQ:()=>et,Yx:()=>i,Zk:()=>A,_b:()=>u,ar:()=>h,bo:()=>U,cD:()=>E,d4:()=>en,di:()=>N,eB:()=>ep,fx:()=>es,gK:()=>C,gi:()=>L,iX:()=>T,io:()=>G,j:()=>em,jp:()=>b,kU:()=>p,kj:()=>d,lE:()=>W,lH:()=>f,mE:()=>D,mP:()=>J,md:()=>ei,n0:()=>y,n9:()=>P,nf:()=>g,oC:()=>Z,pi:()=>eR,q4:()=>n,qO:()=>w,ro:()=>X,tl:()=>q,ui:()=>er,wF:()=>_,wT:()=>ev,wx:()=>eg,xY:()=>ee,yB:()=>s,yX:()=>V,z$:()=>S});let r="#199489",i=3,n=26,s=28,l=22,a=1400,h=6,c=.5,d=3,u=3,p=28,f=22,m=3,g=11,_=56,v=56,S=32,y=22,R=18,C=55,T=50,w="short+short",b=55,E=50,O=50,I=50,M=55,x=18,N=32,D=2,A=6,H=14,G=5,z=19,W=10,k=55,L=100,P=50,F=10,B=25,Z=58,U=22,j=2,$={dark:1,light:.5},V=10,Y=12,K=6,q=3,X=12,Q="auto",J="center",ee=7,et=4,eo="timelineMessage",er="ref",ei="graph",en="message",es="author",el="datetime",ea="sha",eh="changes";var ec,ed,eu,ep=((ec=ep||{}).Compact="compact",ec.Rich="rich",ec.Text="text",ec),ef=((ed=ef||{}).Block="block",ed.FullLine="fullLine",ed.ThinLine="thinLine",ed);let em={block:{type:"block",baseHeight:1*s,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*s,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*s,minHeight:1,maxHeight:2}},eg={stashes:{type:"stashes",colorCssKey:"--color-graph-scroll-marker-stashes",lanes:[0],shape:"block"},tags:{type:"tags",colorCssKey:"--color-graph-scroll-marker-tags",lanes:[2],shape:"block"},remoteBranches:{type:"remoteBranches",colorCssKey:"--color-graph-scroll-marker-remote-branches",lanes:[2],shape:"block"},localBranches:{type:"localBranches",colorCssKey:"--color-graph-scroll-marker-local-branches",lanes:[0],shape:"block"},highlights:{type:"highlights",colorCssKey:"--color-graph-scroll-marker-highlights",lanes:[1],shape:"block"},upstream:{type:"upstream",colorCssKey:"--color-graph-scroll-marker-upstream",lanes:[1,2],shape:"block"},pullRequests:{type:"pullRequests",colorCssKey:"--color-graph-scroll-marker-pull-requests",lanes:[2],shape:"block"},head:{type:"head",colorCssKey:"--scroll-marker-head-color",lanes:[0,1],shape:"block"},selection:{type:"selection",colorCssKey:"--color-graph-scroll-marker-selection",lanes:[0,1,2],shape:"fullLine"}},e_=10,ev=6,eS={[es]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:S,showIconWidth:C},[el]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:T,showIconWidth:b},[en]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!0,listId:"commit-message-zone",minimumWidth:I,showIconWidth:M},[ea]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:E,showIconWidth:O},[ei]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!0,listId:"commit-zone",minimumWidth:_,showIconWidth:v},[er]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!0,listId:"ref-zone",minimumWidth:N,showIconWidth:k},[eh]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:P,showIconWidth:Z}},ey={hour:23,day:6,week:4,month:11,year:6},eR={added:0,deleted:0,modified:0};var eC=((eu=eC||{}).ALWAYS="ALWAYS",eu.ON_HOVER="ON_HOVER",eu.NEVER="NEVER",eu)},66:(e,t,o)=>{o.d(t,{$V:()=>S,DO:()=>f,Et:()=>A,HV:()=>K,K8:()=>x,Mz:()=>U,Q9:()=>y,S6:()=>m,SY:()=>Z,U0:()=>I,Ve:()=>O,X1:()=>B,Yy:()=>b,a5:()=>V,al:()=>T,br:()=>u,eQ:()=>C,fW:()=>R,jY:()=>D,jz:()=>W,kU:()=>G,l7:()=>F,mH:()=>v,n$:()=>Y,n0:()=>j,nF:()=>d,pg:()=>P,qC:()=>z,uQ:()=>H,ug:()=>_,xJ:()=>c,xd:()=>k,xy:()=>M,y6:()=>p,yJ:()=>E,yb:()=>g,z:()=>w});var r=o(126),i=o(298),n=o(686),s=o(666),l=o(214),a=o(406),h=o(635);let c=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e(...o)})}},d=(e,t,o)=>{let r,i,n,s=!1,l=t;return(...a)=>{void 0!==o&&(i=new Date().getTime(),l=!r||i-r>l+o?o:t),n&&(clearTimeout(n),n=null),s?n=setTimeout(()=>{e(...a)},l):(e(...a),r=new Date().getTime(),s=!0,setTimeout(()=>{s=!1},l))}};function u(e){return 1>Math.abs(e.scrollHeight-e.scrollTop-e.clientHeight)}function p(e){return 1>Math.abs(e.scrollWidth-e.scrollLeft-e.clientWidth)}function f(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function m(e){let{length:t}=e;if(0===t)return{min:0,max:0};if(1===t)return{min:0,max:e[0]};e.sort((e,t)=>e-t);let o=e[0],r=e[Math.floor(.25*t)],i=e[Math.floor(.5*t)],n=e[Math.floor(.75*t)],s=e[t-1],l=n-r;return{min:Math.max(o,i-1.5*l),max:Math.min(s,i+1.5*l)}}function g(e,t,o,r){let{id:i}=e;return!i||null===t||t?.[i]===null||r&&t?.[i]?.[r]===null?null:t&&i in t?r&&!t[i]?.[r]?(o(i,[r]),null):r?t?.[i]?.[r]:t?.[i]:(o(i,a.ej),null)}function _(){let e;let t=new Date,o={hour:[],day:[],week:[],month:[],year:[]};for(e=1;e<=l.WC.hour;e+=1)o.hour.push({date:t.getTime()-36e5*e,label:1===e?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:e});for(e=1;e<=l.WC.day;e+=1)o.day.push({date:t.getTime()-864e5*e,label:1===e?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:e});for(e=1;e<=l.WC.week;e+=1)o.week.push({date:t.getTime()-6048e5*e,label:1===e?"Timeline-1WeekAgo":"Timeline-NWeeksAgo",timeUnit:"week",value:e});let r=new Date;for(r.setHours(0,0,0,0),e=1;e<=l.WC.month;e+=1)r.setMonth(r.getMonth()-1),r.setHours(0,0,0,0),o.month.push({date:r.getTime(),label:1===e?"Timeline-1MonthAgo":"Timeline-NMonthsAgo",timeUnit:"month",value:e});let i=new Date;for(i.setHours(0,0,0,0),e=1;e<=l.WC.year;e+=1){let t;switch(i.setFullYear(i.getFullYear()-1),i.setHours(0,0,0,0),e){case 1:t="Timeline-1YearAgo";break;case l.WC.year:t="Timeline-NPlusYearsAgo";break;default:t="Timeline-NYearsAgo"}o.year.push({date:i.getTime(),label:t,timeUnit:"year",value:e})}return o}function v(e,t){if(t.id)return t.id;let o=t.owner||"";return e===s.z.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function S(e){return v(e.refType,e)}function y(e,t=0){for(let o=e.length-1;o>=t;o-=1){let t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function R(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){let t=e[o],r=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(r&&t.currentWidth<r)return t}return e[e.length-1]}}function C(e,t=!1){let o="--scrollable-scrollbar-thickness",r=t||!e[o]?(0,n.yr)(e):e,i=r[o]?parseInt(r[o],10):0;return Number.isNaN(i)?0:i}function T(e,t){let o=0;for(let r of e)t&&r.type===t||(o+=r.currentWidth);return o}let w=(e,t)=>e===t[t.length-1].type;function b(e,t,o){return t||o||0===e}function E(e,t,o){let r=b(e,t,o);return e+(r?1:0)}function O(e,t,o){let r=E(e,t,o);return l.yB*r}function I(e,t){return e.type===l.md&&t>0?e.contentWidth||0:e.currentWidth}function M(e,t,o,r,i){var n;let s=A(e,t);return s&&(n=o.length,s.currentWidth<I(s,n))?C(r,i):0}function x(e,t,o,r,i,n,s,l,a){let h=A(e,t);return h?!function(e,t,o,r,i,n,s){let l=O(n,o,r);return w(e.type,t)&&(i<l||s)}(h,t,o,r,i,n.length,s)?0:C(l,a):0}let N=(e,t)=>{let o=G(e,t),r=G(l.md,t);return -1!==o&&-1!==r&&o-r==1};function D(e,t,o){return(0,r.q)(o,e.minimumWidth||0,e.maximumWidth&&!w(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function A(e,t){return t.find(({type:t})=>t===e)}function H(e){return!!e&&e.currentWidth<=e.showIconWidth}function G(e,t){return t.findIndex(({type:t})=>t===e)}function z(e,t,o){let r=0,i=0,n=G(e,t);if(n>-1){let e=function(e,t=0){let o=0;for(let r=t;r<e.length;r+=1)o+=e[r].minimumWidth;return o}(t,n+1),s=function(e,t=e.length-1){let o=0;for(let r=0;r<=t;r+=1)o+=e[r].currentWidth;return o}(t,n-1),l=t[n].maximumWidth||Number.MAX_VALUE;r=t[n].minimumWidth,i=Math.min(l,o-e-s)}return{min:r,max:i}}function W(e){let t=!!e&&e===l.eB.Compact,o=t?1:2,r=t?10:28,i=t?1:3,n=t?1:3,s=t?10:22,a=t?s:l.lH,h=t?s:s/2+1;return{COMMIT_ZONE_LINE_WIDTH:o,COMMIT_ZONE_GUTTER_WIDTH:r,COMMIT_ZONE_PADDING_LEFT:i,COMMIT_ZONE_PADDING_RIGHT:n,COMMIT_COLUMN_WIDTH:s,COMMIT_NODE_DIAMETER:a,COMMIT_MERGE_NODE_DIAMETER:h,COMMIT_NODE_TOP_OFFSET:.5*l.lH-.5*a,COMMIT_MERGE_NODE_LEFT_OFFSET:s/2-h/2,COMMIT_MERGE_NODE_TOP_OFFSET:.5*l.lH-.5*h,COMMIT_ZONE_AVATAR_DIAMETER:a-2*o,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:a+i+n+r,COMMIT_ZONE_SHOW_ICON_WIDTH:t?45:56,IS_COMPACT:t,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:a/2-h/2}}let k=e=>t=>t===e.length?"SHOW_MORE_COMMITS":e[t].sha;function L(e){return e instanceof h.Y?!!e.refsData?.activeGraphRef:!!e?.heads&&e.heads.some(e=>$(e))}function P(e){let t=e.find(L);return t?.sha||void 0}function F(e){return[i.l2,i.gL,i.bY].includes(e)}function B(e){return!!e&&Object.values(e).some(e=>e>0)}function Z(e,t){return e.has(t)&&1===e.size}function U(e,t,o,r){if(r<0)return l.CY;let i=e+2,n=r*e;return n>=o-i&&n<o+t+i?l.CY:l.mP}function j(e){switch(e){case l.md:return"graph";case l.ui:return"branch";case l.d4:return"message";case l.fx:return"author";case l.$A:return"datetime";case l.AR:return"commit";case l.Sq:return"changes";default:return""}}function $(e){return e.isCurrentHead}function V(e){return e.refType===s.z.HEAD&&$(e)}class Y{props;constructor(e){this.props=e}getActiveGraphZone(e){let t=A(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupsByNameForRow(e){let t=this.getRow(e);return t&&t.refsData?.orderedRefGroups||[]}getRow(e){if(!(e<0)&&!(e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e,t=!0){var o;let r=t?this.getVerticalScrollWidth(e):0;return o=this.props.graphZones,(A(e,o)?.currentWidth||l.W[e].minimumWidth)-r}isDateTimeZoneActive(){return!!this.getActiveGraphZone(l.$A)}shouldShowTimelines(){return this.props.alwaysShowTimelines||!this.isDateTimeZoneActive()}isFirstRow(e){return 0===e}isColumnFollowingGraphColumn(e){return N(e,this.props.graphZones)}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){let t=this.props.processedRows[e]?.sha;return this.props.highlightedShas[t]||!1}return!1}isHovering(e){return!!this.props.processedRows[e]&&this.props.currentlyHoveredCommitSha===this.props.processedRows[e]?.sha}isLastColumn(e){return w(e,this.props.graphZones)}getSelectedRefGroupByName(){if(1===this.props.selectedShas.size){let e=this.props.selectedShas[Symbol.iterator]().next().value;if(e){let t=this.props.processedGraphRowBySha[e];if(t)return t.refsData?.orderedRefGroups||[]}}return[]}getHorizontalScrollHeight(e){return M(e,this.props.graphZones,this.props.processedRows,this.props.cssVariables)}getVerticalScrollWidth(e){return x(e,this.props.graphZones,this.props.hasMoreCommits,this.props.isLoadingRows,this.props.height,this.props.processedRows,this.props.enabledScrollMarkerTypes.length>0,this.props.cssVariables)}shouldUseColumnHeaderIcons(e){let t=A(e,this.props.graphZones);return!!t&&H(t)}isMissingHoveredRefGroup(e){if(this.props.highlightedShas)return!1;let t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){let e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{let{hoveredRefGroup:e}=this.props;if(!e?.length)return!1;o=e}let{name:r,refType:i}=o[0],n=i===s.z.TAG,l=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:a,tags:h,remotes:c}=t.hasRefs&&(!l||n)?t:t.childRefs;return!a.length&&!c.length&&!h.length||!a.some(e=>e.name===r&&o.some(e=>e.refType===s.z.HEAD))&&!c.some(e=>e.name===r&&o.some(t=>t.refType===s.z.REMOTE&&t.owner===e.owner))&&!h.some(e=>e.name===r&&o.some(e=>e.refType===s.z.TAG))}isSelected(e){let t=this.getRow(e)?.sha;return!!t&&this.props.selectedShas.has(t)}isSingleSelected(e){let t=this.getRow(e)?.sha;return!!t&&Z(this.props.selectedShas,t)}hasTimeline(e){return this.shouldShowTimelines()&&!!this.props.processedRows[e]?.timeLineEntry&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return L(e)}}function K(e){let t;for(t of e);return t}},406:(e,t,o)=>{o.d(t,{RA:()=>i,ej:()=>s,fd:()=>n,ki:()=>r});let r="pullRequest",i="upstream",n="issue",s=[r,i,n]},635:(e,t,o)=>{o.d(t,{Y:()=>s});var r=o(666),i=o(66);let n={[r.z.HEAD]:2,[r.z.REMOTE]:1,[r.z.TAG]:0};class s{_graph;_message;_heads;_remotes;_tags;_activeGraphRef;_activeGraphRefGroup;_refGroupsByName;_orderedRefGroups;sha;parents;author;email;date;type;contexts;rowIndex;column;columnForColoring;edgeColumnMaxes;edges;childRefs;timeLineEntry;summary;body;displayMessage;displaySummary;displayBody;set message(e){this._message!==e&&(this._message=e,this.displayMessage=this._graph.formatCommitMessageCallback(e),this.updateSummaryAndBody(e))}get message(){return this._message}get heads(){return this._heads}set heads(e){this._heads!==e&&(this._heads=e,this.initializeRefGroups())}set remotes(e){this._remotes!==e&&(this._remotes=e,this.initializeRefGroups())}get remotes(){return this._remotes}set tags(e){this._tags!==e&&(this._tags=e,this.initializeRefGroups())}get tags(){return this._tags}get hasRefs(){return this.heads.length>0||this.remotes.length>0||this.tags.length>0}get hasChildRefs(){return this.childRefs.heads.length>0||this.childRefs.remotes.length>0||this.childRefs.tags.length>0}get refsData(){if(this.hasRefs||this.hasChildRefs)return 0===this._orderedRefGroups.length&&this.loadGraphRefGroupsData(),{activeGraphRef:this._activeGraphRef,activeGraphRefGroup:this._activeGraphRefGroup,orderedRefGroups:this._orderedRefGroups,refGroupsByName:this._refGroupsByName}}constructor(e,t,o,r,i,n,s,l){this._graph=e,this._heads=t.heads||[],this._remotes=t.remotes||[],this._tags=t.tags||[],this._message=t.message,this.sha=t.sha,this.parents=t.parents,this.author=t.author,this.email=t.email,this.date=t.date,this.type=t.type,this.contexts=t.contexts,this.column=o||0,this.columnForColoring=l,this.edgeColumnMaxes=r||0,this.edges=i||{},this.childRefs=n||{heads:[],tags:[],remotes:[]},this.timeLineEntry=s,this.initializeRefGroups(),this.updateSummaryAndBody(t.message)}updateSummaryAndBody(e){let t,o=e?e.trim():"",r=o.indexOf("\n");-1!==r&&(t=o.substring(r+1).trim().replace(/\n+(?:\s+\n+)?/g," | "),o=o.substring(0,r)),this.body=t,this.summary=o,this.displaySummary=this._graph.formatCommitMessageCallback(o),this.displayBody=t?this._graph.formatCommitMessageCallback(t):void 0}initializeRefGroups(){this._activeGraphRefGroup=void 0,this._activeGraphRef=void 0,this._refGroupsByName={},this._orderedRefGroups=[]}addRefToRefGroup(e){let t=e.name;this._refGroupsByName[t]||(this._refGroupsByName[t]=[]),this._refGroupsByName[t].push(e)}loadGraphRefGroupsData(){this.initializeRefGroups();let e=[],{heads:t,tags:o,remotes:s}=this.hasRefs?this:this.childRefs;for(let o of t){let t={...o,refType:r.z.HEAD};this.addRefToRefGroup(t),(0,i.a5)(t)?(this._activeGraphRefGroup=this._refGroupsByName[t.name],this._activeGraphRef=t,e.unshift(this._refGroupsByName[t.name])):e.push(this._refGroupsByName[t.name])}for(let t of s){let o={...t,fullName:t.owner?`${t.owner}/${t.name}`:t.name,refType:r.z.REMOTE},i=this._refGroupsByName[o.name];this.addRefToRefGroup(o),i||e.push(this._refGroupsByName[o.name])}for(let t of o){let o={...t,refType:r.z.TAG};this.addRefToRefGroup(o),e.push(this._refGroupsByName[o.name])}this._orderedRefGroups=e.sort((e,t)=>e===this._activeGraphRefGroup?-1:t===this._activeGraphRefGroup?1:n[e[0].refType]>n[t[0].refType]?-1:n[e[0].refType]<n[t[0].refType]?1:e.length>t.length?-1:e.length<t.length?1:e[0].name.localeCompare(t[0].name))}}},810:(e,t,o)=>{function r(e){switch(e){case"github":return"GitHub";case"githubEnterprise":return"GitHub Enterprise";case"gitlab":return"GitLab";case"gitlabSelfHosted":return"GitLab Self-Hosted";case"azureDevops":return"Azure DevOps";case"bitbucket":return"Bitbucket";case"bitbucketServer":return"Bitbucket Server";default:return e}}o.d(t,{T:()=>r})},852:(e,t,o)=>{o.d(t,{H:()=>r});let r={"CommitDiffSection-FileAdded":"added","CommitDiffSection-FileDeleted":"deleted","CommitDiffSection-FileModified":"modified","CommitDiffSection-FileRenamed":"renamed","CommitDiffSection-NFilesAdded":"{0} added","CommitDiffSection-NFilesDeleted":"{0} deleted","CommitDiffSection-NFilesModified":"{0} modified","CommitDiffSection-NFilesRenamed":"{0} renamed","Graph-IsLoadingRows":"Loading...","Graph-NoCommits":"No commits","Graph-WorkInProgress":"Work in progress","GraphHeader-BranchTag":"BRANCH / TAG","GraphHeader-Changes":"CHANGES","GraphHeader-CommitAuthor":"AUTHOR","GraphHeader-CommitDateTime":"COMMIT DATE / TIME","GraphHeader-CommitGraph":"GRAPH","GraphHeader-CommitMessage":"COMMIT MESSAGE","GraphHeader-CommitSha":"SHA","GraphHeader-EditColumns":"Columns settings","GraphHeader-Filter":"Filter","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","IssueIcon-Tooltip":"{0}: {1}","PullRequestIcon-Tooltip":"#{0}: {1}\n Double-click to open pull request on {2}","Ref-Current":"Current Branch","Ref-Local":"Local Branch","Ref-Remote":"Remote Branch","Ref-Tag":"Tag","Ref-Worktree":"Worktree","RefZone-EnterBranchName":"enter branch name","RefZone-EnterTagName":"enter tag name","Timeline-1HourAgo":"1 hour ago","Timeline-NHoursAgo":"{0} hours ago","Timeline-Yesterday":"yesterday","Timeline-NDaysAgo":"{0} days ago","Timeline-1WeekAgo":"a week ago","Timeline-NWeeksAgo":"{0} weeks ago","Timeline-1MonthAgo":"a month ago","Timeline-NMonthsAgo":"{0} months ago","Timeline-1YearAgo":"a year ago","Timeline-NYearsAgo":"{0} years ago","Timeline-NPlusYearsAgo":"{0}+ years ago","UpstreamIndicatorIcon-BehindAndAheadTooltip":"{0} commit(s) behind and {1} commit(s) ahead of {2}\n Double-click to pull changes","UpstreamIndicatorIcon-BehindTooltip":"{0} commit(s) behind {1}\n Double-click to pull changes","UpstreamIndicatorIcon-AheadTooltip":"{0} commit(s) ahead of {1}\n Double-click to push changes",ResizePanel:"Resize Panel",Stash:"Stash",Hide:"Hide",Show:"Show","WorkDirMessageInput-WIPPlaceholder":"WIP"}},899:()=>{},666:(e,t,o)=>{o.d(t,{E:()=>n,z:()=>r});let r={HEAD:"head",REMOTE:"remote",TAG:"tag",WORKTREE:"worktree"};var i,n=((i=n||{}).LEFT="LEFT",i.RIGHT="RIGHT",i)},285:()=>{},456:()=>{},310:()=>{},118:(e,t,o)=>{o.r(t),o.d(t,{CHANGES_BAR_MIN_WIDTH:()=>l.MT,CHANGES_BAR_RIGHT_MARGIN:()=>l.KA,CHANGES_ZONE_MIN_WIDTH:()=>l.n9,CHANGES_ZONE_SHOW_ICON_WIDTH:()=>l.oC,COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER:()=>l.CF,COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER:()=>l.n0,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>l.z$,COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH:()=>l.gK,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>l.iX,COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH:()=>l.jp,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>l.Hm,COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH:()=>l.E5,COMMIT_NODE_MIN_ALPHA:()=>l.Td,COMMIT_SHA_ZONE_MIN_WIDTH:()=>l.cD,COMMIT_SHA_ZONE_SHOW_ICON_WIDTH:()=>l.H6,COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN:()=>l.wF,COMMIT_ZONE_EDGE_ARC_PADDING:()=>l.Oe,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>l.nf,COMMIT_ZONE_MARGIN_BOTTOM:()=>l.kj,COMMIT_ZONE_MARGIN_TOP:()=>l._b,COMMIT_ZONE_ROW_HEIGHT:()=>l.kU,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>l.lH,COMMIT_ZONE_SHOW_ICON_WIDTH:()=>l.EB,CommitDateTimeSources:()=>r.N,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>l.BP,DEFAULT_COMMIT_SHA_LENGTH:()=>l.wT,DEFAULT_CSS_VARIABLES:()=>g.Y,DEFAULT_TRANSLATIONS:()=>m.H,DEFAULT_WORKDIR_STATS:()=>l.pi,GRAPH_HEADER_ROW_HEIGHT:()=>l.q4,GRAPH_ROW_HEIGHT:()=>l.yB,GRAPH_ROW_INNER_HEIGHT:()=>l.$0,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>l.By,GRAPH_ROW_PADDING:()=>l.ar,GRAPH_SCROLL_MARKER_LANES:()=>l.Yx,GraphColumnMode:()=>l.eB,GraphMarkerShape:()=>l.Sb,HEADER_ROW_HEIGHT:()=>l.bo,HEADER_ROW_MARGIN_BOTTOM:()=>l.Qb,INLINE_SUMMARY_MARGIN_LEFT:()=>l.yX,LeftPanelToGraphMarginGap:()=>l.xY,NUM_COLUMNS_SUPPORTED_PROP_NAME:()=>g.u,NamedKeys:()=>i.e,OPACITY_FACTOR_BY_THEME:()=>l.K3,REF_NODE_ICON_MARGIN:()=>l.io,REF_NODE_ICON_SPACING:()=>l.RJ,REF_NODE_ICON_WIDTH:()=>l.G3,REF_NODE_OUTER_SPACING:()=>l.lE,REF_ZONE_MARGIN_LEFT:()=>l.mE,REF_ZONE_MARGIN_RIGHT:()=>l.Zk,REF_ZONE_MAX_REFS_TO_RENDER:()=>l.gi,REF_ZONE_MIN_WIDTH:()=>l.di,REF_ZONE_SHOW_ICON_WIDTH:()=>l.KV,REF_ZONE_TEXT_HEIGHT:()=>l.F0,ResizableHandleCorrection:()=>l.WQ,SCROLL_TO_ALIGNMENT_AUTO:()=>l.CY,SCROLL_TO_ALIGNMENT_CENTER:()=>l.mP,TIMESTAMP_FORMAT_DATE_TIME:()=>l.qO,TINY_FILES_READOUT_FONT_SIZE:()=>l.Gu,TINY_FILES_READOUT_RIGHT_MARGIN:()=>l.Ql,TINY_ICON_RIGHT_MARGIN:()=>l.tl,TINY_ICON_SIZE:()=>l.ro,allMetadataTypes:()=>a.ej,changesZone:()=>l.Sq,commitAuthorZone:()=>l.fx,commitDateTimeZone:()=>l.$A,commitMessageZone:()=>l.d4,commitNodeType:()=>r.oB,commitShaZone:()=>l.AR,commitZone:()=>l.md,getHostingServiceName:()=>h.T,graphCommitDescDisplayModes:()=>l.FQ,graphMarkerMetadata:()=>l.wx,graphMarkerShapeMetadata:()=>l.j,graphZoneMetaData:()=>l.W,issueMetadataType:()=>a.fd,lookbackLimitByPeriod:()=>l.WC,mergeConflictNodeType:()=>r.l2,mergeNodeType:()=>r.t$,numGraphColumnsDefault:()=>l.Dl,pullRequestMetadataType:()=>a.ki,refIconsPositions:()=>c.E,refTypes:()=>c.z,refZone:()=>l.ui,stashNodeType:()=>r.OZ,timelineMsgRowRenderId:()=>l.OU,types:()=>v.types,unsupportedRebaseWarningNodeType:()=>r.gL,upstreamMetadataType:()=>a.RA,workDirType:()=>r.bY});var r=o(298),i=o(210),n=o(218),s={};for(let e in n)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys"].indexOf(e)&&(s[e]=()=>n[e]);o.d(t,s);var l=o(214),a=o(406),h=o(810),c=o(666),d=o(285),s={};for(let e in d)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>d[e]);o.d(t,s);var u=o(310),s={};for(let e in u)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>u[e]);o.d(t,s);var p=o(456),s={};for(let e in p)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>p[e]);o.d(t,s);var f=o(899),s={};for(let e in f)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>f[e]);o.d(t,s);var m=o(852),g=o(522),_=o(366),s={};for(let e in _)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes","DEFAULT_TRANSLATIONS","DEFAULT_CSS_VARIABLES","NUM_COLUMNS_SUPPORTED_PROP_NAME"].indexOf(e)&&(s[e]=()=>_[e]);o.d(t,s);var v=o(350)},126:(e,t,o)=>{function r(e,t,o){return(e=e<=o?e:o)>=t?e:t}o.d(t,{q:()=>r})},311:e=>{e.exports=function(e,t,o,r,i,n,s,l){if(!e){var a;if(void 0===t)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[o,r,i,n,s,l],c=0;(a=Error(t.replace(/%s/g,function(){return h[c++]}))).name="Invariant Violation"}throw a.framesToPop=1,a}}},694:(e,t,o)=>{var r=o(925);function i(){}function n(){}n.resetWarningCache=i,e.exports=function(){function e(e,t,o,i,n,s){if(s!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:i};return o.PropTypes=o,o}},556:(e,t,o)=>{e.exports=o(694)()},925:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},547:(e,t,o)=>{var r=o(427),i=o(396);e.exports=function(){return r.apply(this,i(arguments)).on("cloned",function(t){e(t),i(t.getElementsByTagName("*")).forEach(e)});function e(e){e.removeAttribute("data-reactid")}}},698:(e,t)=>{var o=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var n in r={},t)"key"!==n&&(r[n]=t[n]);else r=t;return{$$typeof:o,type:e,key:i,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=r,t.jsx=i,t.jsxs=i},848:(e,t,o)=>{e.exports=o(698)},394:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},771:e=>{e.exports=function(){}},15:e=>{e.exports=require("react")},942:(e,t)=>{var o;!function(){var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)r.call(e,o)&&e[o]&&(t=n(t,o));return t}(o)))}return e}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(o=(function(){return i}).apply(t,[]))&&(e.exports=o)}()}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{o.r(r),o.d(r,{DndComponent:()=>e.A,ScrollbarContainer:()=>t.A,default:()=>l});var e=o(280),t=o(468),i=o(462),n=o(118),s={};for(let e in n)0>["default","DndComponent","ScrollbarContainer"].indexOf(e)&&(s[e]=()=>n[e]);o.d(r,s);var l=i.A})(),module.exports=r})();
1
+ (()=>{var e={396:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},182:(e,t,o)=>{var r=o(394);e.exports=function(e,t,o){e&&r(function(){e.apply(o||null,t||[])})}},130:(e,t,o)=>{var r=o(396),i=o(182);e.exports=function(e,t){var o=t||{},n={};return void 0===e&&(e={}),e.on=function(t,o){return n[t]?n[t].push(o):n[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var r=arguments.length;if(1===r)delete n[t];else if(0===r)n={};else{var i=n[t];if(!i)return e;i.splice(i.indexOf(o),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(n[t]||[]).slice(0);return function(){var n=r(arguments),l=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===n.length?n[0]:n;return s.forEach(function(r){o.async?i(r,n,l):r.apply(l,n),r._once&&e.off(t,r)}),e}},e}},46:(e,t,o)=>{var r=o(47),i=o(371),n=o.g.document,s=function(e,t,o,r){return e.addEventListener(t,o,r)},l=function(e,t,o,r){return e.removeEventListener(t,o,r)},a=[];function h(e,t,o){var r=function(e,t,o){var r,i;for(r=0;r<a.length;r++)if((i=a[r]).element===e&&i.type===t&&i.fn===o)return r}(e,t,o);if(r){var i=a[r].wrapper;return a.splice(r,1),i}}o.g.addEventListener||(s=function(e,t,r){var i,n,s,l;return e.attachEvent("on"+t,(l=h(i=e,n=t,s=r)||function(e){var t=e||o.g.event;t.target=t.target||t.srcElement,t.preventDefault=t.preventDefault||function(){t.returnValue=!1},t.stopPropagation=t.stopPropagation||function(){t.cancelBubble=!0},t.which=t.which||t.keyCode,s.call(i,t)},a.push({wrapper:l,element:i,type:n,fn:s}),l))},l=function(e,t,o){var r=h(e,t,o);if(r)return e.detachEvent("on"+t,r)}),e.exports={add:s,remove:l,fabricate:function(e,t,o){var s,l=-1===i.indexOf(t)?new r(t,{detail:o}):(n.createEvent?(s=n.createEvent("Event")).initEvent(t,!0,!0):n.createEventObject&&(s=n.createEventObject()),s);e.dispatchEvent?e.dispatchEvent(l):e.fireEvent("on"+t,l)}}},371:(e,t,o)=>{var r=[],i="",n=/^on/;for(i in o.g)n.test(i)&&r.push(i.slice(2));e.exports=r},47:(e,t,o)=>{var r=o.g.CustomEvent;e.exports=!function(){try{var e=new r("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?"function"==typeof document.createEvent?function(e,t){var o=document.createEvent("CustomEvent");return t?o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):o.initCustomEvent(e,!1,!1,void 0),o}:function(e,t){var o=document.createEventObject();return o.type=e,t?(o.bubbles=!!t.bubbles,o.cancelable=!!t.cancelable,o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}:r},541:e=>{var t={};function o(e){var o=t[e];return o?o.lastIndex=0:t[e]=o=RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),o}e.exports={add:function(e,t){var r=e.className;r.length?o(t).test(r)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(o(t)," ").trim()}}},427:(e,t,o)=>{var r=o(130),i=o(46),n=o(541),s=document,l=s.documentElement;function a(e,t,r,n){o.g.navigator.pointerEnabled?i[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[r],n):o.g.navigator.msPointerEnabled?i[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[r],n):(i[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[r],n),i[t](e,r,n))}function h(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;if(void 0!==t)return 1&t?1:2&t?3:4&t?2:0}function c(e,t){return void 0!==o.g[t]?o.g[t]:l.clientHeight?l[e]:s.body[e]}function d(e,t,o){var r,i=e||{},n=i.className;return i.className+=" gu-hide",r=s.elementFromPoint(t,o),i.className=n,r}function u(){return!1}function p(){return!0}function f(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===s?null:e.parentNode}function _(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(g(t)))}(e)}function v(e){return e.nextElementSibling||function(){var t=e;do t=t.nextSibling;while(t&&1!==t.nodeType)return t}()}function y(e,t){var o=t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in o)&&r[e]in o&&(e=r[e]),o[e]}e.exports=function(e,t){var o,S,R,C,T,w,b,E,O,I,M,x,N=arguments.length;1===N&&!1===Array.isArray(e)&&(t=e,e=[]);var D=null,A=t||{};void 0===A.moves&&(A.moves=p),void 0===A.accepts&&(A.accepts=p),void 0===A.invalid&&(A.invalid=function(){return!1}),void 0===A.containers&&(A.containers=e||[]),void 0===A.isContainer&&(A.isContainer=u),void 0===A.copy&&(A.copy=!1),void 0===A.copySortSource&&(A.copySortSource=!1),void 0===A.revertOnSpill&&(A.revertOnSpill=!1),void 0===A.removeOnSpill&&(A.removeOnSpill=!1),void 0===A.direction&&(A.direction="vertical"),void 0===A.ignoreInputTextSelection&&(A.ignoreInputTextSelection=!0),void 0===A.mirrorContainer&&(A.mirrorContainer=s.body);var H=r({containers:A.containers,start:function(e){var t=B(e);t&&Z(t)},end:U,cancel:K,remove:Y,destroy:function(){z(!0),$({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===A.removeOnSpill&&H.on("over",function(e){n.rm(e,"gu-hide")}).on("out",function(e){H.dragging&&n.add(e,"gu-hide")}),z(),H;function G(e){return -1!==H.containers.indexOf(e)||A.isContainer(e)}function z(e){var t=e?"remove":"add";a(l,t,"mousedown",P),a(l,t,"mouseup",$)}function k(e){a(l,e?"remove":"add","mousemove",F)}function W(e){var t=e?"remove":"add";i[t](l,"selectstart",L),i[t](l,"click",L)}function L(e){x&&e.preventDefault()}function P(e){if(w=e.clientX,b=e.clientY,1===h(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,o=B(t);o&&(x=o,k(),"mousedown"===e.type&&(_(t)?t.focus():e.preventDefault()))}}function F(e){if(x){if(0===h(e)){$({});return}if(void 0===e.clientX||e.clientX!==w||void 0===e.clientY||e.clientY!==b){if(A.ignoreInputTextSelection){var t,r=y("clientX",e),i=y("clientY",e);if(_(s.elementFromPoint(r,i)))return}var d=x;k(!0),W(),U(),Z(d);var u={left:(t=R.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:t.top+c("scrollTop","pageYOffset")};C=y("pageX",e)-u.left,T=y("pageY",e)-u.top,n.add(I||R,"gu-transit"),function(){if(!o){var e=R.getBoundingClientRect();(o=R.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",n.rm(o,"gu-transit"),n.add(o,"gu-mirror"),A.mirrorContainer.appendChild(o),a(l,"add","mousemove",J),n.add(A.mirrorContainer,"gu-unselectable"),H.emit("cloned",o,R,"mirror")}}(),J(e)}}}function B(e){if(!(H.dragging&&o||G(e))){for(var t=e;g(e)&&!1===G(g(e));)if(A.invalid(e,t)||!(e=g(e)))return;var r=g(e);if(!(!r||A.invalid(e,t))&&A.moves(e,r,t,v(e)))return{item:e,source:r}}}function Z(e){var t,o;t=e.item,o=e.source,("boolean"==typeof A.copy?A.copy:A.copy(t,o))&&(I=e.item.cloneNode(!0),H.emit("cloned",I,e.item,"copy")),S=e.source,R=e.item,E=O=v(e.item),H.dragging=!0,H.emit("drag",R,S)}function U(){if(H.dragging){var e=I||R;V(e,g(e))}}function j(){x=!1,k(!0),W(!0)}function $(e){if(j(),H.dragging){var t=I||R,r=y("clientX",e),i=y("clientY",e),n=Q(d(o,r,i),r,i);n&&(I&&A.copySortSource||!I||n!==S)?V(t,n):A.removeOnSpill?Y():K()}}function V(e,t){var o=g(e);I&&A.copySortSource&&t===S&&o.removeChild(R),X(t)?H.emit("cancel",e,S,S):H.emit("drop",e,t,S,O),q()}function Y(){if(H.dragging){var e=I||R,t=g(e);t&&t.removeChild(e),H.emit(I?"cancel":"remove",e,t,S),q()}}function K(e){if(H.dragging){var t=arguments.length>0?e:A.revertOnSpill,o=I||R,r=g(o),i=X(r);!1===i&&t&&(I?r&&r.removeChild(I):S.insertBefore(o,E)),i||t?H.emit("cancel",o,S,S):H.emit("drop",o,r,S,O),q()}}function q(){var e=I||R;j(),o&&(n.rm(A.mirrorContainer,"gu-unselectable"),a(l,"remove","mousemove",J),g(o).removeChild(o),o=null),e&&n.rm(e,"gu-transit"),M&&clearTimeout(M),H.dragging=!1,D&&H.emit("out",e,D,S),H.emit("dragend",e),S=R=I=E=O=M=D=null}function X(e,t){var r;return r=void 0!==t?t:o?O:v(I||R),e===S&&r===E}function Q(e,t,o){for(var r=e;r&&!function(){if(!1===G(r))return!1;var i=ee(r,e),n=et(r,i,t,o);return!!X(r,n)||A.accepts(R,r,S,n)}();)r=g(r);return r}function J(e){if(o){e.preventDefault();var t,r=y("clientX",e),i=y("clientY",e),n=r-C,s=i-T;o.style.left=n+"px",o.style.top=s+"px";var l=I||R,a=d(o,r,i),h=Q(a,r,i),c=null!==h&&h!==D;(c||null===h)&&(D&&f("out"),D=h,c&&f("over"));var u=g(l);if(h===S&&I&&!A.copySortSource){u&&u.removeChild(l);return}var p=ee(h,a);if(null!==p)t=et(h,p,r,i);else if(!0!==A.revertOnSpill||I){I&&u&&u.removeChild(l);return}else t=E,h=S;(null===t&&c||t!==l&&t!==v(l))&&(O=t,h.insertBefore(l,t),H.emit("shadow",l,h,S))}function f(e){H.emit(e,l,D,S)}}function ee(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===l?null:o}function et(e,t,o,r){var i,n="horizontal"===A.direction;return t!==e?(i=t.getBoundingClientRect(),n?o>i.left+f(i)/2?v(t):t:r>i.top+m(i)/2?v(t):t):function(){var t,i,s,l=e.children.length;for(t=0;t<l;t++)if(s=(i=e.children[t]).getBoundingClientRect(),n&&s.left+s.width/2>o||!n&&s.top+s.height/2>r)return i;return null}()}}},280:(e,t,o)=>{o.d(t,{A:()=>m});var r=o(942),i=o.n(r),n=o(15),s=o.n(n);class l{name;notify;constructor(e,t){this.name=e,this.notify=t}}class a{observer;unsubscribeCallback;constructor(e,t){this.observer=e,this.unsubscribeCallback=t}unsubscribe(){this.unsubscribeCallback(this.observer)}}let h=new class{observers;constructor(){this.observers=new Set}broadcast(e){this.observers&&this.observers.forEach(t=>{e.name===t.name&&t.notify(e)})}subscribe(e,t){let o=new l(e,t);return this.observers.add(o),new a(o,e=>{this.observers.delete(e)})}unsubscribe(e){e&&e.unsubscribe()}},c="ON_DRAG_START",d="ON_DRAG_END",u=null,p=new Map;class f extends s().Component{dndComponentRef=s().createRef();mounted=!1;onDragStartSubscription;onDragEndSubscription;constructor(e){super(e),this.onDragStartSubscription=h.subscribe(c,e=>{let t=null!==e.content&&p.get(e.content);this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData)})}),this.onDragEndSubscription=h.subscribe(d,()=>{this.mounted&&this.setState({isDroppable:!1})}),this.state={isDragging:!1,isDroppable:!1,isOver:!1}}componentDidMount(){if(this.mounted=!0,null!==u){let e=p.get(u);this.setState({isDroppable:this.canDrop(void 0,e,this.props.dndData)})}}componentWillUnmount(){this.mounted=!1,this.onDragStartSubscription.unsubscribe(),this.onDragEndSubscription.unsubscribe()}canDrop(e,t,o){let{canDrop:r}=this.props;return r&&("boolean"==typeof r||r(e,t,o))}addDragEndEventListenerOnce(){let e=this.dndComponentRef?.current;e&&(e.removeEventListener("dragend",this.onDragEnd),e.addEventListener("dragend",this.onDragEnd,{once:!0}))}isDraggable(){let{canDrag:e,dndData:t}=this.props;return!!e&&("boolean"==typeof e||e(t))}onDragEnter(e){if(e.stopPropagation(),this.setState({isOver:!0}),this.props.onDragEnter){let t=p.get(u);this.props.onDragEnter(e,t,this.props.dndData)}}onDragLeave(e){e.stopPropagation();let t=p.get(u);this.props.onDragLeave&&this.props.onDragLeave(e,t,this.props.dndData),this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData),isOver:!1})}onDrag(e){e.stopPropagation()}onDragOver(e){e.stopPropagation();let t=p.get(u);this.canDrop(e,t,this.props.dndData)&&(e.preventDefault(),this.setState({isOver:!0}))}onDragStart(e){e.stopPropagation();let{dndData:t,dndId:o,onBeginDrag:r}=this.props;u=o,p.set(u,t),this.addDragEndEventListenerOnce(),h.broadcast({name:c,content:u}),r&&r(e,t),this.setState({isDragging:!0})}onDragEnd=e=>{e.stopPropagation();let{dndData:t,onEndDrag:o}=this.props;o&&o(e,p.get(u),t),h.broadcast({name:d,content:u}),p.delete(u),u=null,this.mounted&&this.setState({isDragging:!1})};onDrop(e){e.stopPropagation();let{dndData:t,onDrop:o}=this.props;o&&(o(e,p.get(u),t),this.setState({isOver:!1}))}cloneChildrenWithShallowMergedProps(e,t){if(e)return s().Children.map(e,e=>s().isValidElement(e)?s().cloneElement(e,t):e)}render(){let{children:e,className:t,forwardDndPropsToChildren:o,style:r}=this.props,{isDragging:n,isDroppable:l,isOver:a}=this.state,h=this.isDraggable(),c=i()("dnd-component",t,{draggable:h,dragging:n,droppable:l,hovering:a});return s().createElement("div",{className:c,draggable:h,onDrag:e=>this.onDrag(e),onDragEnter:e=>this.onDragEnter(e),onDragLeave:e=>this.onDragLeave(e),onDragOver:e=>this.onDragOver(e),onDragStart:e=>this.onDragStart(e),onDrop:e=>this.onDrop(e),ref:this.dndComponentRef,style:r},o?this.cloneChildrenWithShallowMergedProps(e,{isDraggable:h,isDragging:n,isDroppable:l,isOver:a}):e)}}var m=f},794:(e,t,o)=>{let r;o.d(t,{A:()=>sv});var i,n,s,l,a,h,c,d,u,p,f,m,g,_,v,y,S,R,C,T,w,b,E,O,I,M,x,N,D,A,H=o(942),G=o.n(H),z=o(15),k=o.n(z),W=((i=W||{})[i.Hash=35]="Hash",i[i.Slash=47]="Slash",i[i.Digit0=48]="Digit0",i[i.Digit1=49]="Digit1",i[i.Digit2=50]="Digit2",i[i.Digit3=51]="Digit3",i[i.Digit4=52]="Digit4",i[i.Digit5=53]="Digit5",i[i.Digit6=54]="Digit6",i[i.Digit7=55]="Digit7",i[i.Digit8=56]="Digit8",i[i.Digit9=57]="Digit9",i[i.Backslash=92]="Backslash",i[i.A=65]="A",i[i.B=66]="B",i[i.C=67]="C",i[i.D=68]="D",i[i.E=69]="E",i[i.F=70]="F",i[i.Z=90]="Z",i[i.a=97]="a",i[i.b=98]="b",i[i.c=99]="c",i[i.d=100]="d",i[i.e=101]="e",i[i.f=102]="f",i[i.z=122]="z",i);function L(e){switch(e){case 48:break;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}function P(e,t,o){return(o<0&&(o+=1),o>1&&(o-=1),o<1/6)?e+(t-e)*6*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function F(e){let t,o,r;let i=e.h/360,{s:n,l:s,a:l}=e;if(0===n)t=o=r=s;else{let e=s<.5?s*(1+n):s+n-s*n,l=2*s-e;t=P(l,e,i+1/3),o=P(l,e,i),r=P(l,e,i-1/3)}return{type:"rgba",r:Math.round(255*t),g:Math.round(255*o),b:Math.round(255*r),a:l}}let B=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function Z(e){let t;if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){let t=(e=e.trim()).length;if(0===t||35!==e.charCodeAt(0))return null;if(7===t)return{type:"rgba",r:16*L(e.charCodeAt(1))+L(e.charCodeAt(2)),g:16*L(e.charCodeAt(3))+L(e.charCodeAt(4)),b:16*L(e.charCodeAt(5))+L(e.charCodeAt(6)),a:1};if(9===t){let t=16*L(e.charCodeAt(1))+L(e.charCodeAt(2));return{type:"rgba",r:t,g:16*L(e.charCodeAt(3))+L(e.charCodeAt(4)),b:16*L(e.charCodeAt(5))+L(e.charCodeAt(6)),a:(16*L(e.charCodeAt(7))+L(e.charCodeAt(8)))/255}}if(4===t){let t=L(e.charCodeAt(1)),o=L(e.charCodeAt(2)),r=L(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*r+r,a:1}}if(5===t){let t=L(e.charCodeAt(1)),o=L(e.charCodeAt(2)),r=L(e.charCodeAt(3)),i=L(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*r+r,a:(16*i+i)/255}}return null}(e);let o=B.exec(e);if(null==o)return null;let r=o[1];switch(r){case"rgb":case"hsl":t=[parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),1];break;case"rgba":case"hsla":t=[parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),parseFloat(o[5])];break;default:return null}return"hsl"===r||"hsla"===r?F({h:t[0],s:t[1],l:t[2],a:t[3]}):{type:"rgba",r:t[0],g:t[1],b:t[2],a:t[3]}}let U=e=>{var t;return("hsla"===(t=Z(e)).type&&(t=F(t)),(299*t.r+587*t.g+114*t.b)/1e3<128)?"#FFFFFF":"#000000"};var j=o(298),$=o(214);let V=e=>!(e===j.oB||e===j.t$),Y=(e,t=$.wT)=>e?e.substring(0,t):"",K=/^.*(:?\n){0,2}/m;function q(e,t="\n"){return e.replace("\n"===t?K:RegExp(`^.*(:?${t}){0,2}`,"m"),"")}let X=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;function Q(e){let t=[];for(let o=X.exec(e);null!==o;o=X.exec(e)){let[,e,r]=o;t.push({name:e,email:r})}return t}var J=o(522),ee=o(686);let et=/(?<literal>\[.*?\])|(?<year>YYYY|YY)|(?<month>M{1,4})|(?<day>Do|DD?)|(?<weekday>d{2,4})|(?<hour>HH?|hh?)|(?<minute>mm?)|(?<second>ss?)|(?<fractionalSecond>SSS)|(?<dayPeriod>A|a)|(?<timeZoneName>ZZ?)/g,eo=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,er=new Map,ei=["th","st","nd","rd"],en={};function es(e,t,o,r){let i=`${e}${r?"_compact":""}`,n=en[e];return n||(n=o+e*t+t/2,en[i]=n),n}let el={d:"d",fill:"fill","shape-rendering":"shapeRendering","stroke-linejoin":"strokeLinejoin","stroke-width":"strokeWidth","stroke-dasharray":"strokeDasharray",stroke:"stroke",x1:"x1",x2:"x2",y1:"y1",y2:"y2"};function ea(e,t){let o="";for(let[e,r]of Object.entries(el)){let i=t[r];i&&(o+=` ${e}="${i}"`)}return`<${e}${o} />`}function eh(e){return ea("line",e)}function ec(e,t,o,r){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:o,strokeDasharray:V(e)?r?1:2:0,stroke:t}}function ed(e,t,o,r){return`${e}_${t}_${o||"+"}${r?"_compact":""}`}function eu(e,t,o){return`${e}_${t||"+"}${o?"_compact":""}`}var ep=o(210),ef=o(66),em=o(406),eg=o(635),e_=o(852);let ev=e=>({cellCache:t,cellRenderer:o,columnSizeAndPositionManager:r,columnStartIndex:i,columnStopIndex:n,deferredMeasurementCache:s,horizontalOffsetAdjustment:l,isScrolling:a,parent:h,rowSizeAndPositionManager:c,rowStartIndex:d,rowStopIndex:u,styleCache:p,verticalOffsetAdjustment:f,visibleColumnIndices:m,visibleRowIndices:g})=>{let _=[],v=r.areOffsetsAdjusted()||c.areOffsetsAdjusted(),y=!a&&!v;for(let v=d;v<=u;v+=1){let d=c.getSizeAndPositionOfCell(v);for(let c=i;c<=n;c+=1){let i,n;let u=r.getSizeAndPositionOfCell(c),S=c>=m.start&&c<=m.stop&&v>=g.start&&v<=g.stop,R=`${v}-${c}`;y&&p[R]?i=p[R]:s&&!s.has(v,c)?i={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(i={height:d.size,left:u.offset+l,position:"absolute",top:d.offset+f,width:u.size},p[R]=i);let C={columnIndex:c,isScrolling:a,isVisible:S,key:R,parent:h,rowIndex:v,style:i};if(!a||l||f)n=o(C);else{let r=e(v,c);t[R]&&t[R].realKeyForCell===r||(t[R]={realKeyForCell:r,cell:o(C)}),n=t[R].cell}null!=n&&_.push(n)}}return _};var ey=o(666),eS=o(126);let eR={0:1,90:0,180:-1,270:0},eC={0:0,90:1,180:0,270:-1},eT=$.nf-$.Oe,ew=` A ${eT} ${eT} 0 0 0 `;function eb(e,t,o){let r=eR[o],i=eC[o];return{x:e-$.nf*r,xOffset:-(r*$.Oe),y:t+$.nf*i,yOffset:i*$.Oe}}let eE={};var eO=function(e,t,o,r,i,n,s,l){let a=ec(r,e,s,l);return a.d=function(e,t,o,r){let i=`${e}_${t}_${o}_${r}`,n=eE[i];if(n)return n;let s=eb(e,t,r),l=eb(e,t,o);return n=`M ${s.x} ${s.y}${l.xOffset?` H ${s.x+l.xOffset}`:` V ${s.y+l.yOffset}`}${ew}${l.x+s.xOffset} ${l.y+s.yOffset}${s.xOffset?` H ${l.x}`:` V ${l.y}`}`,eE[i]=n,n}(i,n,o,t),ea("path",a)};let eI={},eM={},ex={},eN={};function eD(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eA(e){return(eA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eH(e){var t=function(e,t){if("object"!=eA(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=eA(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eA(t)?t:t+""}function eG(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eH(r.key),r)}}function ez(e,t,o){return t&&eG(e.prototype,t),o&&eG(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function ek(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eW(e,t){if(t&&("object"===eA(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return ek(e)}function eL(e){return(eL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eP(e,t){return(eP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eF(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eP(e,t)}function eB(e,t,o){return(t=eH(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function eZ(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function eU(e){this.setState((function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}).bind(this))}function ej(e,t){try{var o=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,r)}finally{this.props=o,this.state=r}}function e$(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var o=null,r=null,i=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==o||null!==r||null!==i)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=eZ,t.componentWillReceiveProps=eU),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=ej;var n=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;n.call(this,e,t,r)}}return e}function eV(){return(eV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}eZ.__suppressDeprecationWarning=!0,eU.__suppressDeprecationWarning=!0,ej.__suppressDeprecationWarning=!0;let eY=function(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=function e(t){var o,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(o=0;o<t.length;o++)t[o]&&(r=e(t[o]))&&(i&&(i+=" "),i+=r);else for(o in t)t[o]&&(i&&(i+=" "),i+=o)}return i}(e))&&(r&&(r+=" "),r+=t);return r};function eK(e){var t=e.cellCount,o=e.cellSize,r=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,n=e.nextCellsCount,s=e.nextCellSize,l=e.nextScrollToIndex,a=e.scrollToIndex,h=e.updateScrollOffsetForScrollToIndex;(t!==n||("number"==typeof o||"number"==typeof s)&&o!==s)&&(r(i),a>=0&&a===l&&h())}function eq(e,t){if(null==e)return{};var o,r,i=function(e,t){if(null==e)return{};var o,r,i={},n=Object.keys(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||(i[o]=e[o]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var eX=function(){function e(t){var o=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;eD(this,e),eB(this,"_cellSizeAndPositionData",{}),eB(this,"_lastMeasuredIndex",-1),eB(this,"_lastBatchedIndex",-1),eB(this,"_cellCount",void 0),eB(this,"_cellSizeGetter",void 0),eB(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=o,this._estimatedCellSize=i}return ez(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter({index:r});if(void 0===i||isNaN(i))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(i));null===i?(this._cellSizeAndPositionData[r]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:o,size:i},o+=i,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t,o=e.align,r=e.containerSize,i=e.currentOffset,n=e.targetIndex;if(r<=0)return 0;var s=this.getSizeAndPositionOfCell(n),l=s.offset,a=l-r+s.size;switch(void 0===o?"auto":o){case"start":t=l;break;case"end":t=a;break;case"center":t=l-(r-s.size)/2;break;default:t=Math.max(a,Math.min(l,i))}return Math.max(0,Math.min(this.getTotalSize()-r,t))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var r=o+t,i=this._findNearestCell(o),n=this.getSizeAndPositionOfCell(i);o=n.offset+n.size;for(var s=i;o<r&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:i,stop:s}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var r=t+Math.floor((e-t)/2),i=this.getSizeAndPositionOfCell(r).offset;if(i===o)return r;i<o?t=r+1:i>o&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),eQ=function(){function e(t){var o=t.maxScrollSize,r=void 0===o?"undefined"!=typeof window&&window.chrome?16777100:15e5:o,i=eq(t,["maxScrollSize"]);eD(this,e),eB(this,"_cellSizeAndPositionManager",void 0),eB(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new eX(i),this._maxScrollSize=r}return ez(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i})*(i-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:o,offset:r});var n=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:void 0===t?"auto":t,containerSize:o,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:o,offset:n})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,r=e.totalSize;return r<=t?0:o/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return r===i?o:Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r})*(i-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return r===i?o:Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i})*(r-t))}}]),e}();function eJ(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t={};return function(o){var r=o.callback,i=o.indices,n=Object.keys(i),s=!e||n.every(function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0}),l=n.length!==Object.keys(t).length||n.some(function(e){var o=t[e],r=i[e];return Array.isArray(r)?o.join(",")!==r.join(","):o!==r});t=i,s&&l&&r(i)}}function e0(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,n=e.previousScrollToAlignment,s=e.previousScrollToIndex,l=e.previousSize,a=e.scrollOffset,h=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=c>=0&&c<f;m&&(d!==l||u||!i||"number"==typeof t&&t!==i||h!==n||c!==s)?p(c):!m&&f>0&&(d<l||f<r)&&a>o.getTotalSize()-d&&p(f-1)}let e1=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function e2(e){if((!_&&0!==_||e)&&e1){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),_=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return _}"undefined"!=typeof window?v=window:"undefined"!=typeof self?v=self:v={};var e5=v.requestAnimationFrame||v.webkitRequestAnimationFrame||v.mozRequestAnimationFrame||v.oRequestAnimationFrame||v.msRequestAnimationFrame||function(e){return v.setTimeout(e,1e3/60)},e6=v.cancelAnimationFrame||v.webkitCancelAnimationFrame||v.mozCancelAnimationFrame||v.oCancelAnimationFrame||v.msCancelAnimationFrame||function(e){v.clearTimeout(e)},e3=function(e){return e6(e.id)},e4=function(e,t){Promise.resolve().then(function(){o=Date.now()});var o,r={id:e5(function i(){Date.now()-o>=t?e.call():r.id=e5(i)})};return r};function e7(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function e9(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e7(o,!0).forEach(function(t){eB(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):e7(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var e8={OBSERVED:"observed",REQUESTED:"requested"},te=(S=y=function(e){function t(e){eD(this,t),eB(ek(o=eW(this,eL(t).call(this,e))),"_onGridRenderedMemoizer",eJ()),eB(ek(o),"_onScrollMemoizer",eJ(!1)),eB(ek(o),"_deferredInvalidateColumnIndex",null),eB(ek(o),"_deferredInvalidateRowIndex",null),eB(ek(o),"_recomputeScrollLeftFlag",!1),eB(ek(o),"_recomputeScrollTopFlag",!1),eB(ek(o),"_horizontalScrollBarSize",0),eB(ek(o),"_verticalScrollBarSize",0),eB(ek(o),"_scrollbarPresenceChanged",!1),eB(ek(o),"_scrollingContainer",void 0),eB(ek(o),"_childrenToDisplay",void 0),eB(ek(o),"_columnStartIndex",void 0),eB(ek(o),"_columnStopIndex",void 0),eB(ek(o),"_rowStartIndex",void 0),eB(ek(o),"_rowStopIndex",void 0),eB(ek(o),"_renderedColumnStartIndex",0),eB(ek(o),"_renderedColumnStopIndex",0),eB(ek(o),"_renderedRowStartIndex",0),eB(ek(o),"_renderedRowStopIndex",0),eB(ek(o),"_initialScrollTop",void 0),eB(ek(o),"_initialScrollLeft",void 0),eB(ek(o),"_disablePointerEventsTimeoutId",void 0),eB(ek(o),"_styleCache",{}),eB(ek(o),"_cellCache",{}),eB(ek(o),"_debounceScrollEndedCallback",function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})}),eB(ek(o),"_invokeOnGridRenderedHelper",function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})}),eB(ek(o),"_onWheel",function(e){var t=e.deltaX,r=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:r})}),eB(ek(o),"_setScrollingContainerRef",function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e}),eB(ek(o),"_onScroll",function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)});var o,r=new eQ({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),i=new eQ({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:i,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return eF(t,e),ez(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,i=void 0===r?this.props.scrollToColumn:r,n=e.rowIndex,s=void 0===n?this.props.scrollToRow:n,l=e9({},this.props,{scrollToAlignment:o,scrollToColumn:i,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=e.scrollTop,r=void 0===o?0:o;if(!(r<0)){this._debounceScrollEnded();var i=this.props,n=i.autoHeight,s=i.autoWidth,l=i.height,a=i.width,h=this.state.instanceProps,c=h.scrollbarSize,d=h.rowSizeAndPositionManager.getTotalSize(),u=h.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,u-a+c),void 0===t?0:t),f=Math.min(Math.max(0,d-l+c),r);if(this.state.scrollLeft!==p||this.state.scrollTop!==f){var m={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:f!==this.state.scrollTop?f>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:e8.OBSERVED};n||(m.scrollTop=f),s||(m.scrollLeft=p),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:f,totalColumnsWidth:u,totalRowsHeight:d})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var r=this.props,i=r.autoHeight,n=r.autoWidth,s=r.height,l=r.width,a=this.state.instanceProps.scrollbarSize,h=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),c=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,c-l+a),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,h-s+a),Math.max(0,this._scrollingContainer.scrollTop+o));if(this.state.scrollLeft!==d||this.state.scrollTop!==u){var p={isScrolling:!0,scrollDirectionHorizontal:d!==this.state.scrollLeft?d>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:e8.REQUESTED};i||(p.scrollTop=u),n||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:c,totalRowsHeight:h})}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,n=this.props,s=n.scrollToColumn,l=n.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=s>=0&&(1===this.state.scrollDirectionHorizontal?o<=s:o>=s),this._recomputeScrollTopFlag=l>=0&&(1===this.state.scrollDirectionVertical?i<=l:i>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,r=this.props,i=r.columnCount,n=r.onScrollToTargetCausedUpdate,s=this.state,l=s.scrollLeft,a=s.scrollTop,h=this.props,c=this.state,d=void 0,u=void 0;if(i>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(e9({},h,{scrollToColumn:t}),c,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(e9({},h,{scrollToRow:o}),c,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(n&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:l,g="number"!=typeof u?u:a;n({clientHeight:h.height,clientWidth:h.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,r=e.height,i=e.scrollLeft,n=e.scrollToColumn,s=e.scrollTop,l=e.scrollToRow,a=e.width,h=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),h.scrollbarSizeMeasured||this.setState(function(e){var t=e9({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t}),"number"==typeof i&&i>=0||"number"==typeof s&&s>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:s});c&&(c.needToResetStyleCache=!1,this.setState(c))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&a>0;n>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:s||0,totalColumnsWidth:h.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:h.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,n=r.autoWidth,s=r.columnCount,l=r.height,a=r.rowCount,h=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,u=r.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,_=p.instanceProps;this._handleInvalidatedGridSize();var v=s>0&&0===e.columnCount||a>0&&0===e.rowCount;m===e8.REQUESTED&&(!n&&f>=0&&(f!==this._scrollingContainer.scrollLeft||v)&&(this._scrollingContainer.scrollLeft=f),!i&&g>=0&&(g!==this._scrollingContainer.scrollTop||v)&&(this._scrollingContainer.scrollTop=g));var y=(0===e.width||0===e.height)&&l>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):e0({cellSizeAndPositionManager:_.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:h,scrollToIndex:c,size:u,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):e0({cellSizeAndPositionManager:_.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:h,scrollToIndex:d,size:l,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var S=_.rowSizeAndPositionManager.getTotalSize(),R=_.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:R,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&e3(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,r=e.autoWidth,i=e.className,n=e.containerProps,s=e.containerRole,l=e.containerStyle,a=e.height,h=e.id,c=e.noContentRenderer,d=e.role,u=e.style,p=e.tabIndex,f=e.width,m=this.state,g=m.instanceProps,_=m.needToResetStyleCache,v=this._isScrolling(),y={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",width:r?"auto":f,WebkitOverflowScrolling:"touch",willChange:"transform"};_&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var S=g.columnSizeAndPositionManager.getTotalSize(),R=g.rowSizeAndPositionManager.getTotalSize(),C=R>a?g.scrollbarSize:0,T=S>f?g.scrollbarSize:0;(T!==this._horizontalScrollBarSize||C!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=C,this._scrollbarPresenceChanged=!0),y.overflowX=S+C<=f?"hidden":"auto",y.overflowY=R+T<=a?"hidden":"auto";var w=this._childrenToDisplay,b=0===w.length&&a>0&&f>0;return z.createElement("div",eV({ref:this._setScrollingContainerRef},n,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:eY("ReactVirtualized__Grid",i),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:d,style:e9({},y,{},u),tabIndex:p}),w.length>0&&z.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:e9({width:t?"auto":S,height:R,maxWidth:S,maxHeight:R,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"},l)},w),b&&c())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=e.cellRenderer,r=e.cellRangeRenderer,i=e.columnCount,n=e.deferredMeasurementCache,s=e.height,l=e.overscanColumnCount,a=e.overscanIndicesGetter,h=e.overscanRowCount,c=e.rowCount,d=e.width,u=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,f=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,_=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,v=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var y=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:_}),S=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),R=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:_}),C=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=y.start,this._renderedColumnStopIndex=y.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var T=a({direction:"horizontal",cellCount:i,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),w=a({direction:"vertical",cellCount:c,overscanCellsCount:h,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),b=T.overscanStartIndex,E=T.overscanStopIndex,O=w.overscanStartIndex,I=w.overscanStopIndex;if(n){if(!n.hasFixedHeight()){for(var M=O;M<=I;M++)if(!n.has(M,0)){b=0,E=i-1;break}}if(!n.hasFixedWidth()){for(var x=b;x<=E;x++)if(!n.has(0,x)){O=0,I=c-1;break}}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:b,columnStopIndex:E,deferredMeasurementCache:n,horizontalOffsetAdjustment:R,isScrolling:v,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:O,rowStopIndex:I,scrollLeft:_,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:y,visibleRowIndices:S}),this._columnStartIndex=b,this._columnStopIndex=E,this._rowStartIndex=O,this._rowStopIndex=I}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&e3(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=e4(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,r=e.scrollTop,i=e.totalColumnsWidth,n=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:n,scrollLeft:o,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?!!e.isScrolling:!!t.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var o=e.scrollLeft,r=e.scrollTop,i=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:r});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(i)return i.needToResetStyleCache=!1,this.setState(i),e.onScrollToTargetCausedUpdate&&!r&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),i}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var n="".concat(r,"-").concat(i);this._styleCache[n]=e[n],o&&(this._cellCache[n]=t[n])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t._getScrollTopForScrollToRowStateUpdate(e,o);if(i)return i.needToResetStyleCache=!1,this.setState(i),e.onScrollToTargetCausedUpdate&&!r&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),i}}],[{key:"getDerivedStateFromProps",value:function(e,o){var r,i,n={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var s=o.instanceProps;return n.needToResetStyleCache=!1,(e.columnWidth!==s.prevColumnWidth||e.rowHeight!==s.prevRowHeight)&&(n.needToResetStyleCache=!0),s.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),s.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),(0===s.prevColumnCount||0===s.prevRowCount)&&(s.prevColumnCount=0,s.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===s.prevIsScrolling&&Object.assign(n,{isScrolling:!1}),eK({cellCount:s.prevColumnCount,cellSize:"number"==typeof s.prevColumnWidth?s.prevColumnWidth:null,computeMetadataCallback:function(){return s.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:s.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),eK({cellCount:s.prevRowCount,cellSize:"number"==typeof s.prevRowHeight?s.prevRowHeight:null,computeMetadataCallback:function(){return s.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:s.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),s.prevColumnCount=e.columnCount,s.prevColumnWidth=e.columnWidth,s.prevIsScrolling=!0===e.isScrolling,s.prevRowCount=e.rowCount,s.prevRowHeight=e.rowHeight,s.prevScrollToColumn=e.scrollToColumn,s.prevScrollToRow=e.scrollToRow,s.scrollbarSize=e.getScrollbarSize(),void 0===s.scrollbarSize?(s.scrollbarSizeMeasured=!1,s.scrollbarSize=0):s.scrollbarSizeMeasured=!0,n.instanceProps=s,e9({},n,{},r,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,r=e.scrollTop,i={scrollPositionChangeReason:e8.REQUESTED};return("number"==typeof o&&o>=0&&(i.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,i.scrollLeft=o),"number"==typeof r&&r>=0&&(i.scrollDirectionVertical=r>t.scrollTop?1:-1,i.scrollTop=r),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop)?i:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,r=e.height,i=e.scrollToAlignment,n=e.scrollToColumn,s=e.width,l=t.scrollLeft,a=t.instanceProps;if(o>0){var h=o-1,c=a.rowSizeAndPositionManager.getTotalSize(),d=a.scrollbarSizeMeasured&&c>r?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:s-d,currentOffset:l,targetIndex:n<0?h:Math.min(h,n)})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var r=o.scrollLeft,i=t._getCalculatedScrollLeft(e,o);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:i,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,r=e.rowCount,i=e.scrollToAlignment,n=e.scrollToRow,s=e.width,l=t.scrollTop,a=t.instanceProps;if(r>0){var h=r-1,c=a.columnSizeAndPositionManager.getTotalSize(),d=a.scrollbarSizeMeasured&&c>s?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:o-d,currentOffset:l,targetIndex:n<0?h:Math.min(h,n)})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var r=o.scrollTop,i=t._getCalculatedScrollTop(e,o);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:i}):{}}}]),t}(z.PureComponent),eB(y,"propTypes",null),S);function tt(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,n=e.stopIndex;return(o=Math.max(1,o),1===r)?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,n+o)}:{overscanStartIndex:Math.max(0,i-o),overscanStopIndex:Math.min(t-1,n+1)}}function to(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}eB(te,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,n=e.columnStopIndex,s=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,a=e.isScrolling,h=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,_=e.visibleRowIndices,v=[],y=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!a&&!y,R=u;R<=p;R++)for(var C=d.getSizeAndPositionOfCell(R),T=i;T<=n;T++){var w=r.getSizeAndPositionOfCell(T),b=T>=g.start&&T<=g.stop&&R>=_.start&&R<=_.stop,E="".concat(R,"-").concat(T),O=void 0;S&&f[E]?O=f[E]:s&&!s.has(R,T)?O={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(O={height:C.size,left:w.offset+l,position:"absolute",top:C.offset+m,width:w.size},f[E]=O);var I={columnIndex:T,isScrolling:a,isVisible:b,key:E,parent:c,rowIndex:R,style:O},M=void 0;(h||a)&&!l&&!m?(t[E]||(t[E]=o(I)),M=t[E]):M=o(I),null!=M&&!1!==M&&v.push(M)}return v},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:e2,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,n=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,n+o)}:{overscanStartIndex:Math.max(0,i-o),overscanStopIndex:Math.min(t-1,n)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),e$(te);var tr=(C=R=function(e){function t(){eD(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eB(ek(o=eW(this,(e=eL(t)).call.apply(e,[this].concat(i)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),eB(ek(o),"_columnStartIndex",0),eB(ek(o),"_columnStopIndex",0),eB(ek(o),"_rowStartIndex",0),eB(ek(o),"_rowStopIndex",0),eB(ek(o),"_onKeyDown",function(e){var t=o.props,r=t.columnCount,i=t.disabled,n=t.mode,s=t.rowCount;if(!i){var l=o._getScrollState(),a=l.scrollToColumn,h=l.scrollToRow,c=o._getScrollState(),d=c.scrollToColumn,u=c.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===n?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===n?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===n?Math.min(d+1,r-1):Math.min(o._columnStopIndex+1,r-1);break;case"ArrowUp":u="cells"===n?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}(d!==a||u!==h)&&(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}}),eB(ek(o),"_onSectionRendered",function(e){var t=e.columnStartIndex,r=e.columnStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=r,o._rowStartIndex=i,o._rowStopIndex=n}),o}return eF(t,e),ez(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,r=this._getScrollState(),i=r.scrollToColumn,n=r.scrollToRow;return z.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:n}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,r=this.props,i=r.isControlled,n=r.onScrollToChange;"function"==typeof n&&n({scrollToColumn:t,scrollToRow:o}),i||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?to(o,!0).forEach(function(t){eB(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):to(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(z.PureComponent),eB(R,"propTypes",null),C);function ti(e,t){void 0!==t?r=t:"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:r=o.g;var r,i=void 0!==r.document&&r.document.attachEvent;if(!i){var n,s,l=(n=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)},function(e){return n(e)}),a=(s=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout,function(e){return s(e)}),h=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,r=t.lastElementChild,i=o.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=o.offsetWidth+1+"px",i.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},c=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&0>e.target.className.indexOf("contract-trigger")&&0>e.target.className.indexOf("expand-trigger"))){var t=this;h(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=l(function(){(t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(o){o.call(t,e)}))})}},d=!1,u="",p="animationstart",f="Webkit Moz O ms".split(" "),m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=r.document.createElement("fakeelement");if(void 0!==g.style.animationName&&(d=!0),!1===d){for(var _=0;_<f.length;_++)if(void 0!==g.style[f[_]+"AnimationName"]){u="-"+(0,f[_]).toLowerCase()+"-",p=m[_],d=!0;break}}var v="resizeanim",y="@"+u+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",S=u+"animation: 1ms "+v+"; "}var R=function(t){if(!t.getElementById("detectElementResize")){var o=(y||"")+".resize-triggers { "+(S||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=o:i.appendChild(t.createTextNode(o)),r.appendChild(i)}};return{addResizeListener:function(e,t){if(i)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,n=r.getComputedStyle(e);n&&"static"==n.position&&(e.style.position="relative"),R(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var s='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var l=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return s}});e.__resizeTriggers__.innerHTML=l.createHTML("")}else e.__resizeTriggers__.innerHTML=s;e.appendChild(e.__resizeTriggers__),h(e),e.addEventListener("scroll",c,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&h(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function tn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}eB(tr,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),e$(tr);var ts=(w=T=function(e){function t(){eD(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eB(ek(o=eW(this,(e=eL(t)).call.apply(e,[this].concat(i)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),eB(ek(o),"_parentNode",void 0),eB(ek(o),"_autoSizer",void 0),eB(ek(o),"_window",void 0),eB(ek(o),"_detectElementResize",void 0),eB(ek(o),"_onResize",function(){var e=o.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(o._parentNode){var n=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,l=(o._window||window).getComputedStyle(o._parentNode)||{},a=parseInt(l.paddingLeft,10)||0,h=parseInt(l.paddingRight,10)||0,c=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,u=n-c-d,p=s-a-h;(t||o.state.height===u)&&(r||o.state.width===p)||(o.setState({height:n-c-d,width:s-a-h}),i({height:n,width:s}))}}),eB(ek(o),"_setRef",function(e){o._autoSizer=e}),o}return eF(t,e),ez(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=ti(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.className,r=e.disableHeight,i=e.disableWidth,n=e.style,s=this.state,l=s.height,a=s.width,h={overflow:"visible"},c={};return r||(h.height=0,c.height=l),i||(h.width=0,c.width=a),z.createElement("div",{className:o,ref:this._setRef,style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tn(o,!0).forEach(function(t){eB(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tn(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},h,{},n)},t(c))}}]),t}(z.Component),eB(T,"propTypes",null),w);eB(ts,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});let tl=require("react-dom");var ta=o.n(tl),th=(E=b=function(e){function t(){eD(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eB(ek(o=eW(this,(e=eL(t)).call.apply(e,[this].concat(i)))),"_child",void 0),eB(ek(o),"_measure",function(){var e=o.props,t=e.cache,r=e.columnIndex,i=void 0===r?0:r,n=e.parent,s=e.rowIndex,l=void 0===s?o.props.index||0:s,a=o._getCellMeasurements(),h=a.height,c=a.width;(h!==t.getHeight(l,i)||c!==t.getWidth(l,i))&&(t.set(l,i,c,h),n&&"function"==typeof n.recomputeGridSize&&n.recomputeGridSize({columnIndex:i,rowIndex:l}))}),eB(ek(o),"_registerChild",function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()}),o}return eF(t,e),ez(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,tl.findDOMNode)(this);if(!t||!t.ownerDocument||!t.ownerDocument.defaultView||!(t instanceof t.ownerDocument.defaultView.HTMLElement))return{height:0,width:0};var o=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var i=Math.ceil(t.offsetHeight),n=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),r&&(t.style.height=r),{height:i,width:n}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,r=void 0===o?0:o,i=e.parent,n=e.rowIndex,s=void 0===n?this.props.index||0:n;if(!t.has(s,r)){var l=this._getCellMeasurements(),a=l.height,h=l.width;t.set(s,r,h,a),i&&"function"==typeof i.invalidateCellSizeAfterRender&&i.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:s})}}}]),t}(z.PureComponent),eB(b,"propTypes",null),E);function tc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}eB(th,"__internalCellMeasurerFlag",!1);var td={OBSERVED:"observed",REQUESTED:"requested"},tu=function(e){function t(){eD(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eB(ek(o=eW(this,(e=eL(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),eB(ek(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),eB(ek(o),"_onSectionRenderedMemoizer",eJ()),eB(ek(o),"_onScrollMemoizer",eJ(!1)),eB(ek(o),"_invokeOnSectionRenderedHelper",function(){var e=o.props,t=e.cellLayoutManager,r=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})}),eB(ek(o),"_setScrollingContainerRef",function(e){o._scrollingContainer=e}),eB(ek(o),"_updateScrollPositionForScrollToCell",function(){var e=o.props,t=e.cellLayoutManager,r=e.height,i=e.scrollToAlignment,n=e.scrollToCell,s=e.width,l=o.state,a=l.scrollLeft,h=l.scrollTop;if(n>=0){var c=t.getScrollPositionForCell({align:i,cellIndex:n,height:r,scrollLeft:a,scrollTop:h,width:s});(c.scrollLeft!==a||c.scrollTop!==h)&&o._setScrollPosition(c)}}),eB(ek(o),"_onScroll",function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,r=t.cellLayoutManager,i=t.height,n=t.isScrollingChange,s=t.width,l=o._scrollbarSize,a=r.getTotalSize(),h=a.height,c=a.width,d=Math.max(0,Math.min(c-s+l,e.target.scrollLeft)),u=Math.max(0,Math.min(h-i+l,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?td.OBSERVED:td.REQUESTED;o.state.isScrolling||n(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:c,totalHeight:h})}}),o._scrollbarSize=e2(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return eF(t,e),ez(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,r=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=e2(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(o>=0||i>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:i}),this._invokeOnSectionRenderedHelper();var n=t.getTotalSize(),s=n.height,l=n.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:i||0,totalHeight:s,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,r=o.height,i=o.scrollToAlignment,n=o.scrollToCell,s=o.width,l=this.state,a=l.scrollLeft,h=l.scrollPositionChangeReason,c=l.scrollTop;h===td.REQUESTED&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),(r!==e.height||i!==e.scrollToAlignment||n!==e.scrollToCell||s!==e.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,r=e.cellLayoutManager,i=e.className,n=e.height,s=e.horizontalOverscanSize,l=e.id,a=e.noContentRenderer,h=e.style,c=e.verticalOverscanSize,d=e.width,u=this.state,p=u.isScrolling,f=u.scrollLeft,m=u.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var g=r.getTotalSize(),_=g.height,v=g.width,y=Math.max(0,f-s),S=Math.max(0,m-c),R=Math.min(v,f+d+s),C=Math.min(_,m+n+c),T=n>0&&d>0?r.cellRenderers({height:C-S,isScrolling:p,width:R-y,x:y,y:S}):[],w={boxSizing:"border-box",direction:"ltr",height:t?"auto":n,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},b=_>n?this._scrollbarSize:0,E=v>d?this._scrollbarSize:0;return w.overflowX=v+b<=d?"hidden":"auto",w.overflowY=_+E<=n?"hidden":"auto",z.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:eY("ReactVirtualized__Collection",i),id:l,onScroll:this._onScroll,role:"grid",style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tc(o,!0).forEach(function(t){eB(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tc(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},w,{},h),tabIndex:0},o>0&&z.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:_,maxHeight:_,maxWidth:v,overflow:"hidden",pointerEvents:p?"none":"",width:v}},T),0===o&&a())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,r=e.scrollTop,i=e.totalHeight,n=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:r,scrollWidth:n})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,r={scrollPositionChangeReason:td.REQUESTED};t>=0&&(r.scrollLeft=t),o>=0&&(r.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0===e.cellCount&&(0!==t.scrollLeft||0!==t.scrollTop)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:td.REQUESTED}:e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:td.REQUESTED}:null}}]),t}(z.PureComponent);eB(tu,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),tu.propTypes={},e$(tu);var tp=function(){function e(t){var o=t.height,r=t.width,i=t.x,n=t.y;eD(this,e),this.height=o,this.width=r,this.x=i,this.y=n,this._indexMap={},this._indices=[]}return ez(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),tf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;eD(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return ez(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,r=e.x,i=e.y,n={};return this.getSections({height:t,width:o,x:r,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){n[e]=e})}),Object.keys(n).map(function(e){return n[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,r=e.x,i=e.y,n=Math.floor(r/this._sectionSize),s=Math.floor((r+o-1)/this._sectionSize),l=Math.floor(i/this._sectionSize),a=Math.floor((i+t-1)/this._sectionSize),h=[],c=n;c<=s;c++)for(var d=l;d<=a;d++){var u="".concat(c,".").concat(d);this._sections[u]||(this._sections[u]=new tp({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),h.push(this._sections[u])}return h}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:o})})}}]),e}();function tm(e){var t=e.align,o=e.cellOffset,r=e.cellSize,i=e.containerSize,n=e.currentOffset,s=o-i+r;switch(void 0===t?"auto":t){case"start":return o;case"end":return s;case"center":return o-(i-r)/2;default:return Math.max(s,Math.min(o,n))}}var tg=function(e){function t(e,o){var r;return eD(this,t),(r=eW(this,eL(t).call(this,e,o)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(ek(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(ek(r)),r}return eF(t,e),ez(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=eV({},this.props);return z.createElement(tu,eV({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,r=e.sectionSize,i=[],n=new tf(r),s=0,l=0,a=0;a<t;a++){var h=o({index:a});if(null==h.height||isNaN(h.height)||null==h.width||isNaN(h.width)||null==h.x||isNaN(h.x)||null==h.y||isNaN(h.y))throw Error("Invalid metadata returned for cell ".concat(a,":\n x:").concat(h.x,", y:").concat(h.y,", width:").concat(h.width,", height:").concat(h.height));s=Math.max(s,h.y+h.height),l=Math.max(l,h.x+h.width),i[a]=h,n.registerCell({cellMetadatum:h,index:a})}return{cellMetadata:i,height:s,sectionManager:n,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,r=e.height,i=e.scrollLeft,n=e.scrollTop,s=e.width,l=this.props.cellCount;if(o>=0&&o<l){var a=this._cellMetadata[o];i=tm({align:t,cellOffset:a.x,cellSize:a.width,containerSize:s,currentOffset:i,targetIndex:o}),n=tm({align:t,cellOffset:a.y,cellSize:a.height,containerSize:r,currentOffset:n,targetIndex:o})}return{scrollLeft:i,scrollTop:n}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,r=e.isScrolling,i=e.width,n=e.x,s=e.y,l=this.props,a=l.cellGroupRenderer,h=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:i,x:n,y:s}),a({cellCache:this._cellCache,cellRenderer:h,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(z.PureComponent);function t_(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function tv(e,t){if(e){if("string"==typeof e)return t_(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if("Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t_(e,t)}}eB(tg,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,r=e.cellSizeAndPositionGetter,i=e.indices,n=e.isScrolling;return i.map(function(e){var i=r({index:e}),s={index:e,isScrolling:n,key:e,style:{height:i.height,left:i.x,position:"absolute",top:i.y,width:i.width}};return n?(e in t||(t[e]=o(s)),t[e]):o(s)}).filter(function(e){return!!e})}}),tg.propTypes={},function(e){function t(e,o){var r;return eD(this,t),(r=eW(this,eL(t).call(this,e,o)))._registerChild=r._registerChild.bind(ek(r)),r}return eF(t,e),ez(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,r=t.columnMinWidth,i=t.columnCount,n=t.width;(o!==e.columnMaxWidth||r!==e.columnMinWidth||i!==e.columnCount||n!==e.width)&&this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,r=e.columnMinWidth,i=e.columnCount,n=e.width,s=n/i;return s=Math.floor(s=Math.min(o?Math.min(o,n):n,s=Math.max(r||1,s))),t({adjustedWidth:Math.min(n,s*i),columnWidth:s,getColumnWidth:function(){return s},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(z.PureComponent).propTypes={};var ty=function(e){function t(e,o){var r;return eD(this,t),(r=eW(this,eL(t).call(this,e,o)))._loadMoreRowsMemoizer=eJ(),r._onRowsRendered=r._onRowsRendered.bind(ek(r)),r._registerChild=r._registerChild.bind(ek(r)),r}return eF(t,e),ez(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=eJ(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach(function(e){var r=o(e);r&&r.then(function(){var o,r,i,n,s;r=(o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).lastRenderedStartIndex,i=o.lastRenderedStopIndex,n=o.startIndex,s=o.stopIndex,!(n>i||s<r)&&t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,r,i=this,n=this.props,s=n.isRowLoaded,l=n.minimumBatchSize,a=n.rowCount,h=n.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,r=e.rowCount,i=e.startIndex,n=e.stopIndex,s=[],l=null,a=null,h=i;h<=n;h++)t({index:h})?null!==a&&(s.push({startIndex:l,stopIndex:a}),l=a=null):(a=h,null===l&&(l=h));if(null!==a){for(var c=Math.min(Math.max(a,l+o-1),r-1),d=a+1;d<=c&&!t({index:d});d++)a=d;s.push({startIndex:l,stopIndex:a})}if(s.length)for(var u=s[0];u.stopIndex-u.startIndex+1<o&&u.startIndex>0;){var p=u.startIndex-1;if(t({index:p}))break;u.startIndex=p}return s}({isRowLoaded:s,minimumBatchSize:l,rowCount:a,startIndex:Math.max(0,e-h),stopIndex:Math.min(a-1,t+h)}),d=(r=[]).concat.apply(r,function(e){if(Array.isArray(e))return t_(e)}(o=c.map(function(e){return[e.startIndex,e.stopIndex]}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||tv(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(z.PureComponent);eB(ty,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),ty.propTypes={};var tS=(I=O=function(e){function t(){eD(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eB(ek(o=eW(this,(e=eL(t)).call.apply(e,[this].concat(i)))),"Grid",void 0),eB(ek(o),"_cellRenderer",function(e){var t=e.parent,r=e.rowIndex,i=e.style,n=e.isScrolling,s=e.isVisible,l=e.key,a=o.props.rowRenderer,h=Object.getOwnPropertyDescriptor(i,"width");return h&&h.writable&&(i.width="100%"),a({index:r,style:i,isScrolling:n,isVisible:s,key:l,parent:t})}),eB(ek(o),"_setRef",function(e){o.Grid=e}),eB(ek(o),"_onScroll",function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:i})}),eB(ek(o),"_onScrollToRowCausedUpdate",function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:r,scrollTop:i})}),eB(ek(o),"_onSectionRendered",function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:i,stopIndex:n})}),o}return eF(t,e),ez(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.recomputeGridSize({rowIndex:void 0===o?0:o,columnIndex:void 0===t?0:t})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.noRowsRenderer,r=e.scrollToIndex,i=e.width,n=eY("ReactVirtualized__List",t);return z.createElement(te,eV({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:n,columnWidth:i,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(z.PureComponent),eB(O,"propTypes",null),I);eB(tS,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:tt,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});let tR={ge:function(e,t,o,r,i){return"function"==typeof o?function(e,t,o,r,i){for(var n=o+1;t<=o;){var s=t+o>>>1;i(e[s],r)>=0?(n=s,o=s-1):t=s+1}return n}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,o):function(e,t,o,r){for(var i=o+1;t<=o;){var n=t+o>>>1;e[n]>=r?(i=n,o=n-1):t=n+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t)}};function tC(e,t,o,r,i){this.mid=e,this.left=t,this.right=o,this.leftPoints=r,this.rightPoints=i,this.count=(t?t.count:0)+(o?o.count:0)+r.length}var tT=tC.prototype;function tw(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function tb(e,t){var o=tH(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function tE(e,t){var o=e.intervals([]);o.push(t),tb(e,o)}function tO(e,t){var o=e.intervals([]),r=o.indexOf(t);return r<0?0:(o.splice(r,1),tb(e,o),1)}function tI(e,t,o){for(var r=0;r<e.length&&e[r][0]<=t;++r){var i=o(e[r]);if(i)return i}}function tM(e,t,o){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var i=o(e[r]);if(i)return i}}function tx(e,t){for(var o=0;o<e.length;++o){var r=t(e[o]);if(r)return r}}function tN(e,t){return e-t}function tD(e,t){return e[0]-t[0]||e[1]-t[1]}function tA(e,t){return e[1]-t[1]||e[0]-t[0]}function tH(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(tN);for(var r=t[t.length>>1],i=[],n=[],s=[],o=0;o<e.length;++o){var l=e[o];l[1]<r?i.push(l):r<l[0]?n.push(l):s.push(l)}var a=s.slice();return s.sort(tD),a.sort(tA),new tC(r,tH(i),tH(n),s,a)}function tG(e){this.root=e}tT.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},tT.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?tE(this,e):this.left.insert(e):this.left=tH([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?tE(this,e):this.right.insert(e):this.right=tH([e]);else{var o=tR.ge(this.leftPoints,e,tD),r=tR.ge(this.rightPoints,e,tA);this.leftPoints.splice(o,0,e),this.rightPoints.splice(r,0,e)}},tT.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return 0;if(4*(this.right?this.right.count:0)>3*(t-1))return tO(this,e);var o=this.left.remove(e);return 2===o?(this.left=null,this.count-=1,1):(1===o&&(this.count-=1),o)}if(e[0]>this.mid){if(!this.right)return 0;if(4*(this.left?this.left.count:0)>3*(t-1))return tO(this,e);var o=this.right.remove(e);return 2===o?(this.right=null,this.count-=1,1):(1===o&&(this.count-=1),o)}if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var n=this.left,o=this.right;r.count-=i.count,r.right=i.left,i.left=n,i.right=o}tw(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?tw(this,this.left):tw(this,this.right);return 1}for(var n=tR.ge(this.leftPoints,e,tD);n<this.leftPoints.length&&this.leftPoints[n][0]===e[0];++n)if(this.leftPoints[n]===e){this.count-=1,this.leftPoints.splice(n,1);for(var o=tR.ge(this.rightPoints,e,tA);o<this.rightPoints.length&&this.rightPoints[o][1]===e[1];++o)if(this.rightPoints[o]===e)return this.rightPoints.splice(o,1),1}return 0},tT.queryPoint=function(e,t){if(e<this.mid){if(this.left){var o=this.left.queryPoint(e,t);if(o)return o}return tI(this.leftPoints,e,t)}if(!(e>this.mid))return tx(this.leftPoints,t);if(this.right){var o=this.right.queryPoint(e,t);if(o)return o}return tM(this.rightPoints,e,t)},tT.queryInterval=function(e,t,o){if(e<this.mid&&this.left){var r=this.left.queryInterval(e,t,o);if(r)return r}if(t>this.mid&&this.right){var r=this.right.queryInterval(e,t,o);if(r)return r}return t<this.mid?tI(this.leftPoints,t,o):e>this.mid?tM(this.rightPoints,e,o):tx(this.leftPoints,o)};var tz=tG.prototype;tz.insert=function(e){this.root?this.root.insert(e):this.root=new tC(e[0],null,null,[e],[e])},tz.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},tz.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},tz.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(tz,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(tz,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var tk=function(){function e(){eD(this,e),eB(this,"_columnSizeMap",{}),eB(this,"_intervalTree",new tG(null)),eB(this,"_leftMap",{})}return ez(e,[{key:"estimateTotalHeight",value:function(e,t,o){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*o}},{key:"range",value:function(e,t,o){var r=this;this._intervalTree.queryInterval(e,e+t,function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r,i,n,s,l=[],a=!0,h=!1;try{for(n=(o=o.call(e)).next;!(a=(r=n.call(o)).done)&&(l.push(r.value),3!==l.length);a=!0);}catch(e){h=!0,i=e}finally{try{if(!a&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(h)throw i}}return l}}(e,3)||tv(e,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=t[0],n=(t[1],t[2]);return o(n,r._leftMap[n],i)})}},{key:"setPosition",value:function(e,t,o,r){this._intervalTree.insert([o,o+r,e]),this._leftMap[e]=t;var i=this._columnSizeMap,n=i[t];void 0===n?i[t]=o+r:i[t]=Math.max(n,o+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var r=e[o];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e)t=Math.max(t,e[o]);return t}}]),e}();function tW(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}var tL=(x=M=function(e){function t(){eD(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eB(ek(o=eW(this,(e=eL(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollTop:0}),eB(ek(o),"_debounceResetIsScrollingId",void 0),eB(ek(o),"_invalidateOnUpdateStartIndex",null),eB(ek(o),"_invalidateOnUpdateStopIndex",null),eB(ek(o),"_positionCache",new tk),eB(ek(o),"_startIndex",null),eB(ek(o),"_startIndexMemoized",null),eB(ek(o),"_stopIndex",null),eB(ek(o),"_stopIndexMemoized",null),eB(ek(o),"_debounceResetIsScrollingCallback",function(){o.setState({isScrolling:!1})}),eB(ek(o),"_setScrollingContainerRef",function(e){o._scrollingContainer=e}),eB(ek(o),"_onScroll",function(e){var t=o.props.height,r=e.currentTarget.scrollTop,i=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),r);r===i&&(o._debounceResetIsScrolling(),o.state.scrollTop!==i&&o.setState({isScrolling:!0,scrollTop:i}))}),o}return eF(t,e),ez(t,[{key:"clearCellPositions",value:function(){this._positionCache=new tk,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new tk,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&e3(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,r=o.autoHeight,i=o.cellCount,n=o.cellMeasurerCache,s=o.cellRenderer,l=o.className,a=o.height,h=o.id,c=o.keyMapper,d=o.overscanByPixels,u=o.role,p=o.style,f=o.tabIndex,m=o.width,g=o.rowDirection,_=this.state,v=_.isScrolling,y=_.scrollTop,S=[],R=this._getEstimatedTotalHeight(),C=this._positionCache.shortestColumnSize,T=this._positionCache.count,w=0;if(this._positionCache.range(Math.max(0,y-d),a+2*d,function(o,r,i){var l;void 0===e?(w=o,e=o):(w=Math.min(w,o),e=Math.max(e,o)),S.push(s({index:o,isScrolling:v,key:c(o),parent:t,style:(eB(l={height:n.getHeight(o)},"ltr"===g?"left":"right",r),eB(l,"position","absolute"),eB(l,"top",i),eB(l,"width",n.getWidth(o)),l)}))}),C<y+a+d&&T<i)for(var b=Math.min(i-T,Math.ceil((y+a+d-C)/n.defaultHeight*m/n.defaultWidth)),E=T;E<T+b;E++)e=E,S.push(s({index:E,isScrolling:v,key:c(E),parent:this,style:{width:n.getWidth(E)}}));return this._startIndex=w,this._stopIndex=e,z.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:eY("ReactVirtualized__Masonry",l),id:h,onScroll:this._onScroll,role:u,style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tW(o,!0).forEach(function(t){eB(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tW(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({boxSizing:"border-box",direction:"ltr",height:r?"auto":a,overflowX:"hidden",overflowY:R<a?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:f},z.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:R,maxWidth:"100%",maxHeight:R,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"}},S))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&e3(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=e4(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,r=Math.max(1,Math.floor(e.width/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){(this._startIndexMemoized!==this._startIndex||this._stopIndexMemoized!==this._stopIndex)&&((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,r=o.cellMeasurerCache,i=o.cellPositioner,n=e;n<=t;n++){var s=i(n),l=s.left,a=s.top;this._positionCache.setPosition(n,l,a,r.getHeight(n))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(z.PureComponent),eB(M,"propTypes",null),x);function tP(){}eB(tL,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:tP,onScroll:tP,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),e$(tL);var tF=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eD(this,e),eB(this,"_cellMeasurerCache",void 0),eB(this,"_columnIndexOffset",void 0),eB(this,"_rowIndexOffset",void 0),eB(this,"columnWidth",function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})}),eB(this,"rowHeight",function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})});var r=o.cellMeasurerCache,i=o.columnIndexOffset,n=o.rowIndexOffset;this._cellMeasurerCache=r,this._columnIndexOffset=void 0===i?0:i,this._rowIndexOffset=void 0===n?0:n}return ez(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function tB(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function tZ(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tB(o,!0).forEach(function(t){eB(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tB(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var tU=function(e){function t(e,o){eD(this,t),eB(ek(r=eW(this,eL(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),eB(ek(r),"_deferredInvalidateColumnIndex",null),eB(ek(r),"_deferredInvalidateRowIndex",null),eB(ek(r),"_bottomLeftGridRef",function(e){r._bottomLeftGrid=e}),eB(ek(r),"_bottomRightGridRef",function(e){r._bottomRightGrid=e}),eB(ek(r),"_cellRendererBottomLeftGrid",function(e){var t=e.rowIndex,o=eq(e,["rowIndex"]),i=r.props,n=i.cellRenderer,s=i.fixedRowCount;return t===i.rowCount-s?z.createElement("div",{key:o.key,style:tZ({},o.style,{height:20})}):n(tZ({},o,{parent:ek(r),rowIndex:t+s}))}),eB(ek(r),"_cellRendererBottomRightGrid",function(e){var t=e.columnIndex,o=e.rowIndex,i=eq(e,["columnIndex","rowIndex"]),n=r.props,s=n.cellRenderer,l=n.fixedColumnCount,a=n.fixedRowCount;return s(tZ({},i,{columnIndex:t+l,parent:ek(r),rowIndex:o+a}))}),eB(ek(r),"_cellRendererTopRightGrid",function(e){var t=e.columnIndex,o=eq(e,["columnIndex"]),i=r.props,n=i.cellRenderer,s=i.columnCount,l=i.fixedColumnCount;return t===s-l?z.createElement("div",{key:o.key,style:tZ({},o.style,{width:20})}):n(tZ({},o,{columnIndex:t+l,parent:ek(r)}))}),eB(ek(r),"_columnWidthRightGrid",function(e){var t=e.index,o=r.props,i=o.columnCount,n=o.fixedColumnCount,s=o.columnWidth,l=r.state,a=l.scrollbarSize;return l.showHorizontalScrollbar&&t===i-n?a:"function"==typeof s?s({index:t+n}):s}),eB(ek(r),"_onScroll",function(e){var t=e.scrollLeft,o=e.scrollTop;r.setState({scrollLeft:t,scrollTop:o});var i=r.props.onScroll;i&&i(e)}),eB(ek(r),"_onScrollbarPresenceChange",function(e){var t=e.horizontal,o=e.size,i=e.vertical,n=r.state,s=n.showHorizontalScrollbar,l=n.showVerticalScrollbar;if(t!==s||i!==l){r.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:i});var a=r.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:i})}}),eB(ek(r),"_onScrollLeft",function(e){var t=e.scrollLeft;r._onScroll({scrollLeft:t,scrollTop:r.state.scrollTop})}),eB(ek(r),"_onScrollTop",function(e){var t=e.scrollTop;r._onScroll({scrollTop:t,scrollLeft:r.state.scrollLeft})}),eB(ek(r),"_rowHeightBottomGrid",function(e){var t=e.index,o=r.props,i=o.fixedRowCount,n=o.rowCount,s=o.rowHeight,l=r.state,a=l.scrollbarSize;return l.showVerticalScrollbar&&t===n-i?a:"function"==typeof s?s({index:t+i}):s}),eB(ek(r),"_topLeftGridRef",function(e){r._topLeftGrid=e}),eB(ek(r),"_topRightGridRef",function(e){r._topRightGrid=e});var r,i=e.deferredMeasurementCache,n=e.fixedColumnCount,s=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),i&&(r._deferredMeasurementCacheBottomLeftGrid=s>0?new tF({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,r._deferredMeasurementCacheBottomRightGrid=n>0||s>0?new tF({cellMeasurerCache:i,columnIndexOffset:n,rowIndexOffset:s}):i,r._deferredMeasurementCacheTopRightGrid=n>0?new tF({cellMeasurerCache:i,columnIndexOffset:n,rowIndexOffset:0}):i),r}return eF(t,e),ez(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,n=this.props,s=n.fixedColumnCount,l=n.fixedRowCount,a=Math.max(0,o-s),h=Math.max(0,i-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:h}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:h}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:i}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var r={};t>0&&(r.scrollLeft=t),o>0&&(r.scrollTop=o),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),n=eq(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var s=this.state,l=s.scrollLeft,a=s.scrollTop;return z.createElement("div",{style:this._containerOuterStyle},z.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(n),this._renderTopRightGrid(tZ({},n,{onScroll:t,scrollLeft:l}))),z.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(tZ({},n,{onScroll:t,scrollTop:a})),this._renderBottomRightGrid(tZ({},n,{onScroll:t,onSectionRendered:o,scrollLeft:l,scrollToColumn:r,scrollToRow:i,scrollTop:a}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth){if("function"==typeof o){for(var r=0,i=0;i<t;i++)r+=o({index:i});this._leftGridWidth=r}else this._leftGridWidth=o*t}return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight){if("function"==typeof o){for(var r=0,i=0;i<t;i++)r+=o({index:i});this._topGridHeight=r}else this._topGridHeight=o*t}return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,r=t.enableFixedColumnScroll,i=t.enableFixedRowScroll,n=t.height,s=t.fixedColumnCount,l=t.fixedRowCount,a=t.rowHeight,h=t.style,c=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||n!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,_=e||l!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||m||h!==this._lastRenderedStyle)&&(this._containerOuterStyle=tZ({height:n,overflow:"visible",width:f},h)),(e||m||_)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:n-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||c!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=tZ({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},c)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=tZ({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=tZ({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=tZ({left:this._getLeftGridWidth(this.props),overflowX:i?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=n,this._lastRenderedRowHeight=a,this._lastRenderedStyle=h,this._lastRenderedStyleBottomLeftGrid=c,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=f}},{key:"_prepareForRender",value:function(){(this._lastRenderedColumnWidth!==this.props.columnWidth||this._lastRenderedFixedColumnCount!==this.props.fixedColumnCount)&&(this._leftGridWidth=null),(this._lastRenderedFixedRowCount!==this.props.fixedRowCount||this._lastRenderedRowHeight!==this.props.rowHeight)&&(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,n=e.hideBottomLeftGridScrollbar,s=this.state.showVerticalScrollbar;if(!o)return null;var l=this._getBottomGridHeight(e),a=this._getLeftGridWidth(e),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,c=z.createElement(te,eV({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:l,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-r)+(s?1:0),rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:n?a+h:a}));return n?z.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:tZ({},this._bottomLeftGridStyle,{height:l,width:a,overflowY:"hidden"})},c):c}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,n=e.scrollToColumn,s=e.scrollToRow;return z.createElement(te,eV({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:n-o,scrollToRow:s-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?z.createElement(te,eV({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,r=e.fixedColumnCount,i=e.fixedRowCount,n=e.scrollLeft,s=e.hideTopRightGridScrollbar,l=this.state,a=l.showHorizontalScrollbar,h=l.scrollbarSize;if(!i)return null;var c=this._getTopGridHeight(e),d=this._getRightGridWidth(e),u=c,p=this._topRightGridStyle;s&&(u=c+(a?h:0),p=tZ({},this._topRightGridStyle,{left:0}));var f=z.createElement(te,eV({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+(a?1:0),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:u,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:n,style:p,tabIndex:null,width:d}));return s?z.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:tZ({},this._topRightGridStyle,{height:c,width:d,overflowX:"hidden"})},f):f}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(z.PureComponent);function tj(e){var t=e.className,o=e.columns,r=e.style;return z.createElement("div",{className:t,role:"row",style:r},o)}eB(tU,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),tU.propTypes={},e$(tU),function(e){function t(e,o){var r;return eD(this,t),(r=eW(this,eL(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(ek(r)),r}return eF(t,e),ez(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,r=t.clientWidth,i=t.scrollHeight,n=t.scrollLeft,s=t.scrollTop,l=t.scrollWidth;return e({clientHeight:o,clientWidth:r,onScroll:this._onScroll,scrollHeight:i,scrollLeft:n,scrollTop:s,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,r=e.scrollHeight,i=e.scrollLeft,n=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:r,scrollLeft:i,scrollTop:n,scrollWidth:s})}}]),t}(z.PureComponent).propTypes={},tj.propTypes=null;let t$={ASC:"ASC",DESC:"DESC"};function tV(e){var t=e.sortDirection,o=eY("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===t$.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===t$.DESC});return z.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===t$.ASC?z.createElement("path",{d:"M7 14l5-5 5 5z"}):z.createElement("path",{d:"M7 10l5 5 5-5z"}),z.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function tY(e){var t=e.dataKey,o=e.label,r=e.sortBy,i=e.sortDirection,n=[z.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return r===t&&n.push(z.createElement(tV,{key:"SortIndicator",sortDirection:i})),n}function tK(e){var t=e.className,o=e.columns,r=e.index,i=e.key,n=e.onRowClick,s=e.onRowDoubleClick,l=e.onRowMouseOut,a=e.onRowMouseOver,h=e.onRowRightClick,c=e.rowData,d=e.style,u={"aria-rowindex":r+1};return(n||s||l||a||h)&&(u["aria-label"]="row",u.tabIndex=0,n&&(u.onClick=function(e){return n({event:e,index:r,rowData:c})}),s&&(u.onDoubleClick=function(e){return s({event:e,index:r,rowData:c})}),l&&(u.onMouseOut=function(e){return l({event:e,index:r,rowData:c})}),a&&(u.onMouseOver=function(e){return a({event:e,index:r,rowData:c})}),h&&(u.onContextMenu=function(e){return h({event:e,index:r,rowData:c})})),z.createElement("div",eV({},u,{className:t,key:i,role:"row",style:d}),o)}tV.propTypes={},tY.propTypes=null,tK.propTypes=null;var tq=function(e){function t(){return eD(this,t),eW(this,eL(t).apply(this,arguments))}return eF(t,e),t}(z.Component);function tX(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function tQ(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tX(o,!0).forEach(function(t){eB(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tX(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}eB(tq,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:t$.ASC,flexGrow:0,flexShrink:1,headerRenderer:tY,style:{}}),tq.propTypes={};var tJ=function(e){function t(e){var o;return eD(this,t),(o=eW(this,eL(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(ek(o)),o._createRow=o._createRow.bind(ek(o)),o._onScroll=o._onScroll.bind(ek(o)),o._onSectionRendered=o._onSectionRendered.bind(ek(o)),o._setRef=o._setRef.bind(ek(o)),o}return eF(t,e),ez(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.recomputeGridSize({rowIndex:void 0===o?0:o,columnIndex:void 0===t?0:t})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,tl.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,r=t.className,i=t.disableHeader,n=t.gridClassName,s=t.gridStyle,l=t.headerHeight,a=t.headerRowRenderer,h=t.height,c=t.id,d=t.noRowsRenderer,u=t.rowClassName,p=t.rowStyle,f=t.scrollToIndex,m=t.style,g=t.width,_=this.state.scrollbarWidth,v="function"==typeof u?u({index:-1}):u,y="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],z.Children.toArray(o).forEach(function(t,o){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=tQ({overflow:"hidden"},r)}),z.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":z.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:eY("ReactVirtualized__Table",r),id:c,role:"grid",style:m},!i&&a({className:eY("ReactVirtualized__Table__headerRow",v),columns:this._getHeaderColumns(),style:tQ({height:l,overflow:"hidden",paddingRight:_,width:g},y)}),z.createElement(te,eV({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:eY("ReactVirtualized__Table__Grid",n),cellRenderer:this._createRow,columnWidth:g,columnCount:1,height:i?h:h-l,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:_,scrollToRow:f,style:tQ({},s,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,r=e.isScrolling,i=e.parent,n=e.rowData,s=e.rowIndex,l=this.props.onColumnClick,a=t.props,h=a.cellDataGetter,c=a.cellRenderer,d=a.className,u=a.columnData,p=a.dataKey,f=a.id,m=c({cellData:h({columnData:u,dataKey:p,rowData:n}),columnData:u,columnIndex:o,dataKey:p,isScrolling:r,parent:i,rowData:n,rowIndex:s}),g=this._cachedColumnStyles[o],_="string"==typeof m?m:null;return z.createElement("div",{"aria-colindex":o+1,"aria-describedby":f,className:eY("ReactVirtualized__Table__rowColumn",d),key:"Row"+s+"-Col"+o,onClick:function(e){l&&l({columnData:u,dataKey:p,event:e})},role:"gridcell",style:g,title:_},m)}},{key:"_createHeader",value:function(e){var t,o,r,i,n,s=e.column,l=e.index,a=this.props,h=a.headerClassName,c=a.headerStyle,d=a.onHeaderClick,u=a.sort,p=a.sortBy,f=a.sortDirection,m=s.props,g=m.columnData,_=m.dataKey,v=m.defaultSortDirection,y=m.disableSort,S=m.headerRenderer,R=m.id,C=m.label,T=!y&&u,w=eY("ReactVirtualized__Table__headerColumn",h,s.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:T}),b=this._getFlexStyleForColumn(s,tQ({},c,{},s.props.headerStyle)),E=S({columnData:g,dataKey:_,disableSort:y,label:C,sortBy:p,sortDirection:f});if(T||d){var O=p!==_?v:f===t$.DESC?t$.ASC:t$.DESC,I=function(e){T&&u({defaultSortDirection:v,event:e,sortBy:_,sortDirection:O}),d&&d({columnData:g,dataKey:_,event:e})};n=s.props["aria-label"]||C||_,i="none",r=0,t=I,o=function(e){("Enter"===e.key||" "===e.key)&&I(e)}}return p===_&&(i=f===t$.ASC?"ascending":"descending"),z.createElement("div",{"aria-label":n,"aria-sort":i,className:w,id:R,key:"Header-Col"+l,onClick:t,onKeyDown:o,role:"columnheader",style:b,tabIndex:r},E)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,r=e.isScrolling,i=e.key,n=e.parent,s=e.style,l=this.props,a=l.children,h=l.onRowClick,c=l.onRowDoubleClick,d=l.onRowRightClick,u=l.onRowMouseOver,p=l.onRowMouseOut,f=l.rowClassName,m=l.rowGetter,g=l.rowRenderer,_=l.rowStyle,v=this.state.scrollbarWidth,y="function"==typeof f?f({index:o}):f,S="function"==typeof _?_({index:o}):_,R=m({index:o}),C=z.Children.toArray(a).map(function(e,i){return t._createColumn({column:e,columnIndex:i,isScrolling:r,parent:n,rowData:R,rowIndex:o,scrollbarWidth:v})}),T=eY("ReactVirtualized__Table__row",y),w=tQ({},s,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:v},S);return g({className:T,columns:C,index:o,isScrolling:r,key:i,onRowClick:h,onRowDoubleClick:c,onRowRightClick:d,onRowMouseOver:u,onRowMouseOut:p,rowData:R,style:w})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=tQ({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:z.Children.toArray(o)).map(function(t,o){return e._createHeader({column:t,index:o})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:r,stopIndex:i})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(z.PureComponent);eB(tJ,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:tt,overscanRowCount:10,rowRenderer:tK,headerRowRenderer:tj,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),tJ.propTypes={};var t0=[],t1=null,t2=null;function t5(){t2&&(t2=null,document.body&&null!=t1&&(document.body.style.pointerEvents=t1),t1=null)}function t6(){t5(),t0.forEach(function(e){return e.__resetIsScrolling()})}function t3(e){var t;e.currentTarget===window&&null==t1&&document.body&&(t1=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),t2&&e3(t2),t=0,t0.forEach(function(e){t=Math.max(t,e.props.scrollingResetTimeInterval)}),t2=e4(t6,t),t0.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function t4(e,t){t0.some(function(e){return e.props.scrollElement===t})||t.addEventListener("scroll",t3),t0.push(e)}function t7(e,t){!(t0=t0.filter(function(t){return t!==e})).length&&(t.removeEventListener("scroll",t3),t2&&(e3(t2),t5()))}var t9=function(e){return e===window},t8=function(e){return e.getBoundingClientRect()};function oe(e,t){if(!e)return{height:t.serverHeight,width:t.serverWidth};if(!t9(e))return t8(e);var o=window,r=o.innerHeight,i=o.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof i?i:0}}function ot(e){return t9(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function oo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}var or=function(){return"undefined"!=typeof window?window:void 0},oi=(D=N=function(e){function t(){eD(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eB(ek(o=eW(this,(e=eL(t)).call.apply(e,[this].concat(i)))),"_window",or()),eB(ek(o),"_isMounted",!1),eB(ek(o),"_positionFromTop",0),eB(ek(o),"_positionFromLeft",0),eB(ek(o),"_detectElementResize",void 0),eB(ek(o),"_child",void 0),eB(ek(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?oo(o,!0).forEach(function(t){eB(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oo(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},oe(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),eB(ek(o),"_registerChild",function(e){e&&Element,o._child=e,o.updatePosition()}),eB(ek(o),"_onChildScroll",function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var r=o.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,t+o._positionFromTop):r.scrollTop=t+o._positionFromTop)}}),eB(ek(o),"_registerResizeListener",function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)}),eB(ek(o),"_unregisterResizeListener",function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)}),eB(ek(o),"_onResize",function(){o.updatePosition()}),eB(ek(o),"__handleWindowScrollEvent",function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var r=ot(t),i=Math.max(0,r.left-o._positionFromLeft),n=Math.max(0,r.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:i,scrollTop:n}),e({scrollLeft:i,scrollTop:n})}}}),eB(ek(o),"__resetIsScrolling",function(){o.setState({isScrolling:!1})}),o}return eF(t,e),ez(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,r=o.height,i=o.width,n=this._child||tl.findDOMNode(this);if(n instanceof Element&&e){var s=function(e,t){if(t9(t)&&document.documentElement){var o=document.documentElement,r=t8(e),i=t8(o);return{top:r.top-i.top,left:r.left-i.left}}var n=ot(t),s=t8(e),l=t8(t);return{top:s.top+n.top-l.top,left:s.left+n.left-l.left}}(n,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var l=oe(e,this.props);(r!==l.height||i!==l.width)&&(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=ti(),this.updatePosition(e),e&&(t4(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,r=e.scrollElement;r!==o&&null!=r&&null!=o&&(this.updatePosition(o),t7(this,r),t4(this,o),this._unregisterResizeListener(r),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(t7(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,r=t.scrollTop,i=t.scrollLeft,n=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:n,isScrolling:o,scrollLeft:i,scrollTop:r,width:s})}}]),t}(z.PureComponent),eB(N,"propTypes",null),D);eB(oi,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:or(),serverHeight:0,serverWidth:0});var on=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),os=function(){return(os=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ol={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},oa={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},oh={width:"20px",height:"20px",position:"absolute"},oc={top:os(os({},ol),{top:"-5px"}),right:os(os({},oa),{left:void 0,right:"-5px"}),bottom:os(os({},ol),{top:void 0,bottom:"-5px"}),left:os(os({},oa),{left:"-5px"}),topRight:os(os({},oh),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:os(os({},oh),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:os(os({},oh),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:os(os({},oh),{left:"-10px",top:"-10px",cursor:"nw-resize"})},od=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return on(t,e),t.prototype.render=function(){return z.createElement("div",{className:this.props.className||"",style:os(os({position:"absolute",userSelect:"none"},oc[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(z.PureComponent),ou=(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),op=function(){return(op=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},of={width:"auto",height:"auto"},om=function(e,t,o){return Math.max(Math.min(e,o),t)},og=function(e,t){return Math.round(e/t)*t},o_=function(e,t){return RegExp(e,"i").test(t)},ov=function(e){return!!(e.touches&&e.touches.length)},oy=function(e,t,o){void 0===o&&(o=0);var r=t.reduce(function(o,r,i){return Math.abs(r-e)<Math.abs(t[o]-e)?i:o},0),i=Math.abs(t[r]-e);return 0===o||i<o?t[r]:e},oS=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},oR=function(e,t,o,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return o*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},oC=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],oT="__resizable_base__",ow=function(e){function t(t){var o=e.call(this,t)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.appendBase=function(){if(!o.resizable||!o.window)return null;var e=o.parentNode;if(!e)return null;var t=o.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(oT):t.className+=oT,e.appendChild(t),t},o.removeBase=function(e){var t=o.parentNode;t&&t.removeChild(e)},o.ref=function(e){e&&(o.resizable=e)},o.state={isResizing:!1,width:void 0===(o.propsSize&&o.propsSize.width)?"auto":o.propsSize&&o.propsSize.width,height:void 0===(o.propsSize&&o.propsSize.height)?"auto":o.propsSize&&o.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return ou(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||of},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,r=this.resizable.offsetHeight,i=this.resizable.style.position;"relative"!==i&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=i}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,o=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var o=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/o[t]*100+"%"}return oS(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?oS(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?oS(t.height):o("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var o=this.propsSize&&this.propsSize[t];return"auto"===this.state[t]&&this.state.original[t]===e&&(void 0===o||"auto"===o)?"auto":e},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,r,i=this.props.boundsByDirection,n=this.state.direction,s=i&&o_("left",n),l=i&&o_("top",n);if("parent"===this.props.bounds){var a=this.parentNode;a&&(o=s?this.resizableRight-this.parentLeft:a.offsetWidth+(this.parentLeft-this.resizableLeft),r=l?this.resizableBottom-this.parentTop:a.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,r=this.props.resizeRatio||1,i=this.state,n=i.direction,s=i.original,l=this.props,a=l.lockAspectRatio,h=l.lockAspectRatioExtraHeight,c=l.lockAspectRatioExtraWidth,d=s.width,u=s.height,p=h||0,f=c||0;return o_("right",n)&&(d=s.width+(e-s.x)*r/o,a&&(u=(d-f)/this.ratio+p)),o_("left",n)&&(d=s.width-(e-s.x)*r/o,a&&(u=(d-f)/this.ratio+p)),o_("bottom",n)&&(u=s.height+(t-s.y)*r/o,a&&(d=(u-p)*this.ratio+f)),o_("top",n)&&(u=s.height-(t-s.y)*r/o,a&&(d=(u-p)*this.ratio+f)),{newWidth:d,newHeight:u}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,r){var i=this.props,n=i.lockAspectRatio,s=i.lockAspectRatioExtraHeight,l=i.lockAspectRatioExtraWidth,a=void 0===r.width?10:r.width,h=void 0===o.width||o.width<0?e:o.width,c=void 0===r.height?10:r.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=l||0;if(n){var f=(c-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(a-p)/this.ratio+u,_=(h-p)/this.ratio+u;e=om(e,Math.max(a,f),Math.min(h,m)),t=om(t,Math.max(c,g),Math.min(d,_))}else e=om(e,a,h),t=om(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),i=r.left,n=r.top,s=r.right,l=r.bottom;this.resizableLeft=i,this.resizableRight=s,this.resizableTop=n,this.resizableBottom=l}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,r,i=0,n=0;if(e.nativeEvent&&((o=e.nativeEvent).clientX||0===o.clientX)&&(o.clientY||0===o.clientY)?(i=e.nativeEvent.clientX,n=e.nativeEvent.clientY):e.nativeEvent&&ov(e.nativeEvent)&&(i=e.nativeEvent.touches[0].clientX,n=e.nativeEvent.touches[0].clientY),!this.props.onResizeStart||!this.resizable||!1!==this.props.onResizeStart(e,t,this.resizable)){this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var s=this.window.getComputedStyle(this.resizable);if("auto"!==s.flexBasis){var l=this.parentNode;if(l){var a=this.window.getComputedStyle(l).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",r=s.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:i,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:op(op({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:r};this.setState(h)}}},t.prototype.onMouseMove=function(e){var t,o,r,i,n,s,l=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&ov(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var a=this.props,h=a.maxWidth,c=a.maxHeight,d=a.minWidth,u=a.minHeight,p=ov(e)?e.touches[0].clientX:e.clientX,f=ov(e)?e.touches[0].clientY:e.clientY,m=this.state,g=m.direction,_=m.original,v=m.width,y=m.height,S=this.getParentSize(),R=(t=this.window.innerWidth,o=this.window.innerHeight,r=h,i=c,n=d,s=u,r=oR(r,S.width,t,o),i=oR(i,S.height,t,o),n=oR(n,S.width,t,o),s=oR(s,S.height,t,o),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===i?void 0:Number(i),minWidth:void 0===n?void 0:Number(n),minHeight:void 0===s?void 0:Number(s)});h=R.maxWidth,c=R.maxHeight,d=R.minWidth,u=R.minHeight;var C=this.calculateNewSizeFromDirection(p,f),T=C.newHeight,w=C.newWidth,b=this.calculateNewMaxFromBoundary(h,c);this.props.snap&&this.props.snap.x&&(w=oy(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(T=oy(T,this.props.snap.y,this.props.snapGap));var E=this.calculateNewSizeFromAspectRatio(w,T,{width:b.maxWidth,height:b.maxHeight},{width:d,height:u});if(w=E.newWidth,T=E.newHeight,this.props.grid){var O=og(w,this.props.grid[0]),I=og(T,this.props.grid[1]),M=this.props.snapGap||0;w=0===M||Math.abs(O-w)<=M?O:w,T=0===M||Math.abs(I-T)<=M?I:T}var x={width:w-_.width,height:T-_.height};if(v&&"string"==typeof v){if(v.endsWith("%")){var N=w/S.width*100;w=N+"%"}else if(v.endsWith("vw")){var D=w/this.window.innerWidth*100;w=D+"vw"}else if(v.endsWith("vh")){var A=w/this.window.innerHeight*100;w=A+"vh"}}if(y&&"string"==typeof y){if(y.endsWith("%")){var N=T/S.height*100;T=N+"%"}else if(y.endsWith("vw")){var D=T/this.window.innerWidth*100;T=D+"vw"}else if(y.endsWith("vh")){var A=T/this.window.innerHeight*100;T=A+"vh"}}var H={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(T,"height")};"row"===this.flexDir?H.flexBasis=H.width:"column"===this.flexDir&&(H.flexBasis=H.height),(0,tl.flushSync)(function(){l.setState(H)}),this.props.onResize&&this.props.onResize(e,g,this.resizable,x)}},t.prototype.onMouseUp=function(e){var t=this.state,o=t.isResizing,r=t.direction,i=t.original;if(o&&this.resizable){var n={width:this.size.width-i.width,height:this.size.height-i.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,n),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:op(op({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,r=t.handleStyles,i=t.handleClasses,n=t.handleWrapperStyle,s=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var a=Object.keys(o).map(function(t){return!1!==o[t]?z.createElement(od,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:i&&i[t]},l&&l[t]?l[t]:null):null});return z.createElement("div",{className:s,style:n},a)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce(function(t,o){return -1!==oC.indexOf(o)||(t[o]=e.props[o]),t},{}),o=op(op(op({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return z.createElement(r,op({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&z.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(z.PureComponent);let ob={bottom:"bottom",left:"left",right:"right",top:"top"},oE={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},oO={min:0,max:1/0},oI=({height:e,heightConstraints:t,width:o,widthConstraints:r})=>({height:(0,eS.q)(e,t.min,t.max),width:(0,eS.q)(o,r.min,r.max)}),oM=({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:r},{initialHeight:i,initialWidth:n})=>oI({height:i+t,heightConstraints:o,width:n+e,widthConstraints:r}),ox=({enable:e,height:t,heightConstraints:o,resizeEdge:r,width:i=0,widthConstraints:n})=>({...oI({height:t,widthConstraints:n,heightConstraints:o,width:i}),enable:void 0===e||e,horizontal:r===ob.left||r===ob.right,initialHeight:t,initialWidth:i,resizing:!1,isMouseWheeling:!1,vertical:r===ob.top||r===ob.bottom});class oN extends k().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:oO,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:oO};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=ox(e)}UNSAFE_componentWillReceiveProps(e){let{onResizeFromPropChange:t}=this.props,{height:o,resizing:r,width:i}=this.state,{onResizeFromPropChange:n}=e;if(r)return;let s=ox(e);this.setState(s);let{height:l,width:a}=s,h=n||t;h&&(l!==o||a!==i)&&h({height:l,width:a,originalHeight:o,originalWidth:i})}_onResize=(e,t,o,{height:r,width:i})=>{let{onResize:n}=this.props,{height:s,horizontal:l,vertical:a,width:h}=this.state,{height:c,width:d}=oM({deltaWidth:i,deltaHeight:r},this.props,this.state),u=l&&d!==h,p=a&&c!==s;(u||p)&&(this.setState({height:p?c:s,width:u?d:h,isMouseWheeling:!1}),n&&n({height:p?c:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();let{onResizeStart:t}=this.props,{height:o,horizontal:r,vertical:i,width:n}=this.state;this.setState({resizing:!0}),t&&t({height:i?o:void 0,width:r?n:void 0})};_onResizeEnd=()=>{let{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:r,width:i,initialWidth:n,initialHeight:s}=this.state;this.setState({initialWidth:i,initialHeight:t,resizing:!1}),(n!==i||s!==t)&&e&&e({width:o?i:void 0,height:r?t:void 0})};_onWheel=()=>{this.isMouseWheeling||(this.isMouseWheeling=!0,this.setState({isMouseWheeling:!0})),clearTimeout(this.onWheelTimeOut),this.onWheelTimeOut=setTimeout(()=>{this.isMouseWheeling=!1,this.setState({isMouseWheeling:!1})},50)};render(){let{children:e,className:t,handleStyles:o,id:r,resizeContentClassName:i,resizeEdge:n,resizeHandleClassName:s,style:l,translate:a,heightConstraints:h,wrapChildrenInDivContainer:c,widthConstraints:d}=this.props,{enable:u,height:p,horizontal:f,resizing:m,vertical:g,width:_,isMouseWheeling:v}=this.state,{display:y,...S}=l,{min:R,max:C}=d,{min:T,max:w}=h,b={...this.props.wrapperStyle};f&&(b.width=_,b.minWidth=_),g&&(b.height=p,b.minHeight=p);let E=G()("resizable",t,{resizing:m}),O=G()("contents",i,`resize-edge-${n}`,{horizontal:f,vertical:g}),I=G()(n,s,"resizable-handle",{horizontal:f,vertical:g}),M=k().createElement("span",{title:a("ResizePanel")});return k().createElement("div",{"data-testid":`resizable-${r||""}`,onWheel:this._onWheel,style:{...b,display:y}},k().createElement(ow,{className:E,"data-testid":`resizable-core-${r||""}`,enable:{...oE,[n]:!v&&u},handleClasses:{[n]:I},handleComponent:{[n]:M},handleStyles:o,maxHeight:g?w:void 0,maxWidth:f?C:void 0,minHeight:g?T:void 0,minWidth:f?R:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:g?p:"100%",width:f?_:"100%"},style:S},c?k().createElement("div",{className:O,style:{userSelect:"none"}},e):e))}}var oD=o(468);class oA extends k().PureComponent{canvas;componentDidMount(){this.updateCanvas()}UNSAFE_componentWillReceiveProps(e){(e.branchUpstreamRowIndices!==this.props.branchUpstreamRowIndices||e.markerRowIndices!==this.props.markerRowIndices||e.totalRows!==this.props.totalRows||e.viewportHeight!==this.props.viewportHeight||e.viewportWidth!==this.props.viewportWidth||e.markerColors!==this.props.markerColors||e.enabledScrollMarkerTypes!==this.props.enabledScrollMarkerTypes||e.scrollWidth!==this.props.scrollWidth)&&this.updateCanvas()}updateCanvas(e){let{branchUpstreamRowIndices:t,enabledScrollMarkerTypes:o,viewportHeight:r,markerRowIndices:i,markerColors:n,scrollWidth:s,totalRows:l}=e||this.props,a=this.canvas.getContext("2d");a.canvas.width=s,a.canvas.height=r;let h=s/$.Yx;for(let[e,s]of(a.clearRect(0,0,a.canvas.width,a.canvas.height),Object.entries($.wx))){if(!o.includes(e)&&!("remoteBranches"===e&&o.includes("localBranches")))continue;let c="remoteBranches"!==e||o.includes("remoteBranches")?i[e]||[]:t,d=n[e],u=s.lanes;d&&c.length&&(a.fillStyle=d,c.forEach(t=>{let{height:o,offset:i}=function(e,t,o){let r=t*$.yB,{shape:i}=$.wx[e],n=$.j[i];if(!n)return{height:0,offset:0};let{baseHeight:s,minHeight:l,maxHeight:a}=n,h=o/r*s;void 0!==l&&h<l&&(h=l),void 0!==a&&h>a&&(h=a);let c=$.yB*(o/r),d=h>=c?0:(c-h)/2;return{height:h,offset:d}}(e,l,r);u.length&&a.fillRect(u[0]*h,function(e,t,o){let r=o*$.yB;return e*$.yB/r*t}(t,r,l)+i-.5*o,h*u.length,o)}))}}render(){return k().createElement("canvas",{className:"graph-scroll-markers",ref:e=>this.canvas=e})}}var oH=function({children:e,className:t,height:o,heightAdjustment:r,graphZoneType:i,scrollTop:n,style:s}){let l=$.W[i].listId,a=document.getElementById(l),h=a?.scrollHeight||0,c=o-28;void 0!==n&&(c=Number(s.top)-n,a&&h-o-n<0&&(c=o-r-28));let d={top:c,zIndex:2},u=k().createElement("span",{className:"absolute",style:d},e);return k().createElement("div",{className:t,style:s},a?ta().createPortal(u,document.getElementById("graph-container")):u)};function oG({inline:e,getExternalIcon:t,message:o,size:r=100,useSimpleSpinner:i}){let n=G()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),s=G()("spinner","mr1",{"inline-block":e}),l={height:r,width:r},a=G()("message",{"inline-block":e,mx2:e}),h=i?k().createElement("span",{className:s,style:l},t("loading")):k().createElement("div",{className:s,style:l},k().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:l}),k().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:l}),k().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:l}));return k().createElement("div",{className:n},h,o&&k().createElement("div",{className:a},o))}class oz extends k().Component{render(){let{currentCommits:e,customFooterRow:t,graphZoneType:o,hasMoreCommits:r,height:i,horizontalScrollHeight:n,getExternalIcon:s,isLoadingRows:l,scrollTop:a,style:h,translate:c}=this.props,d=k().createElement(oG,{className:"loading-spinner",getExternalIcon:s,size:20,useSimpleSpinner:!0}),u=k().createElement("div",{className:"flex items-center"},k().createElement("span",{style:{paddingRight:"5px"}},d)),p=0!==(e>0?e:0)||r?t:k().createElement(k().Fragment,null,c("Graph-NoCommits")),f=k().createElement("div",{className:"graph-adjust-commit-count p1"},l?u:p);return k().createElement(oH,{graphZoneType:o,height:i,heightAdjustment:n,scrollTop:a,style:h},f)}}function ok({branchUpstreamRowIndices:e,rowCount:t,cellRenderersByIds:o,columnIndex:r,customFooterRow:i,enabledScrollMarkerTypes:n,enableResizer:s,getExternalIcon:l,getKeyForCell:a,graphHeight:h,graphWidth:c,graphZoneType:d,graphZones:u,hasMoreCommits:p,horizontalScrollHeight:f,isLoadingRows:m,markerColors:g,markerRowIndices:_,onResize:v,onResizeEnd:y,onResizeFromPropChange:S,onScroll:R,onScrollToRowCausedUpdate:C,onZoneEnter:T,scrollLeft:w,scrollToAlignment:b,scrollToIndex:E,scrollTop:O,smartCellRangeRenderer:I,translate:M,verticalScrollWidth:x}){let N=(0,ef.Et)(d,u);if(!N)return null;let D=document.getElementById(N.listId),A=(0,ef.z)(d,u),H=(0,ef.Yy)(t,p,m),z=(0,ef.yJ)(t,p,m),W=(0,ef.U0)(N,t),L=(0,ef.Ve)(t,p,m),P=x>0,F=n.length>0,B=G()("graph-panel","react-virtualized-list","pad-for-horizontal-scrollbar",d===$.ui?"z3":null,{"pad-for-vertical-scrollbar":P}),Z=d===$.md?{...!A&&{position:"static"},...A&&{width:N.currentWidth>W?N.currentWidth:W,maxWidth:"none"}}:void 0,U=(e,t)=>{e.scrollTop>t&&D&&(0,ef.br)(D)||R(d,e,c,h,p)},j=(e,t)=>{let o=t+e.deltaY;(o=o>=0?o:0)>t&&D&&(0,ef.br)(D)||R(d,{clientHeight:L,clientWidth:W,scrollHeight:f,scrollLeft:0,scrollTop:o>=0?o:0,scrollWidth:x},c,h,p)},V=(e,t,o)=>k().createElement("span",{"data-column-name":t,"data-row-idx":o.rowIndex,key:`gk-row-${o.key}`,style:{top:o.style.top}},e),Y=(e,n)=>{if(n.rowIndex>t-1)return H&&0===r?k().createElement(oz,{currentCommits:t-1,customFooterRow:i,getExternalIcon:l,graphZoneType:d,hasMoreCommits:p,height:h,horizontalScrollHeight:f,isLoadingRows:m,key:a(n.rowIndex),scrollTop:O,style:n.style,translate:M}):void 0;let s={...n,style:{...n.style}};$.OU===e&&(s.style.top=Number(n.style.top)-O);let c=o[e];return c?V(c(s),e,n):void 0},K=(e,t,o,r,i,n,s,l)=>k().createElement(te,{autoContainerWidth:!0,cellRangeRenderer:I,cellRenderer:t=>Y(e,t),className:o,columnCount:1,columnWidth:l,containerStyle:r,height:s,id:t,isScrolling:!1,key:t,onScrollToTargetCausedUpdate:C?e=>C(d,e,c,h,p):void 0,overscanRowCount:0,rowCount:z,rowHeight:$.yB,scrollLeft:w,scrollToAlignment:b,scrollTop:O,scrollToRow:E,style:i,tabIndex:null,width:n}),q=K(N.type,N.listId,B,Z,{position:"absolute"},N.currentWidth,h,W),X=A?k().createElement("div",{className:"timeline-column-container",onWheelCapture:e=>j(e,O)},K($.OU,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3,maxHeight:L},{position:"absolute",right:0,zIndex:3,maxHeight:h},1,h,1)):void 0,Q=q&&k().createElement(k().Fragment,null,X,F&&A?k().createElement(oA,{branchUpstreamRowIndices:e,enabledScrollMarkerTypes:n,markerColors:g,markerRowIndices:_,scrollWidth:x,totalRows:z,viewportHeight:h<L?h:L,viewportWidth:N.currentWidth}):null,k().createElement(oD.A,{contentHeight:L,contentWidth:W,displayHorizontalScrollbar:N.type===$.md,displayVerticalScrollbar:A,forceOnVerticalWheel:!A,forceVerticalScrollbar:A&&F,height:h,onScroll:e=>U(e,O),scrollLeft:w,scrollTop:O,width:N.currentWidth},q)),J=k().createElement("div",{onMouseEnter:T},Q);return A?J:k().createElement(oN,{enable:s,height:h,id:`${d}Column`,key:`${d}Column`,onResize:v?e=>v(N,e):void 0,onResizeEnd:y?e=>y(N,e):void 0,onResizeFromPropChange:S?e=>S(N,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:N.currentWidth,widthConstraints:(0,ef.qC)(d,u,c)},J)}var oW=o(547),oL=o.n(oW);let oP="dnd-container";class oF extends k().PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}UNSAFE_componentWillReceiveProps(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,r)=>{if(this.props.onDrop&&e.id){let t=this.sanitizeId(e.id),o=r?.id?this.sanitizeId(r.id):null,i=this.childReactElementsById[t],n=o?this.childReactElementsById[o]:null;i&&this.props.onDrop(i,n)}};isContainerCallback=e=>!!e?.classList.contains(oP);movesCallback=e=>!!e?.id&&this.isDraggable(e.id);acceptsCallback=(e,t,o,r)=>!!e?.id&&this.isDroppable(e.id,r?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){let t={isContainer:this.isContainerCallback,mirrorContainer:this.props.mirrorContainer,moves:this.movesCallback,accepts:this.acceptsCallback,invalid:this.invalidCallBack,direction:this.props.direction||"horizontal",copy:!1,copySortSource:!1,revertOnSpill:!1,removeOnSpill:!1,ignoreInputTextSelection:!0};this.dndDrake=oL()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach(e=>{k().isValidElement(e)&&this.addChildReactElement(e)}):k().isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){let t=e.props.id;t&&(this.childReactElementsById[this.sanitizeId(t)]=e)}sanitizeId(e){return e.trim().toLowerCase().replace(/-/g,"").replace(/_/g,"")}isDraggable(e){if(this.props.isDraggable){let t=this.sanitizeId(e),o=this.childReactElementsById[t];return!!o&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){let o=this.sanitizeId(e),r=t?this.sanitizeId(t):null,i=this.childReactElementsById[o],n=r?this.childReactElementsById[r]:null;if(i)return this.props.isDroppable(i,n)}return!1}render(){let{children:e,className:t}=this.props,o=G()(oP,t);return k().createElement("div",{className:o,ref:this.dndDecorator},e)}}function oB(){return(0,z.useState)(null)}let oZ=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,oU=function(e,t){return(0,z.useMemo)(()=>(function(e,t){let o=oZ(e),r=oZ(t);return e=>{o&&o(e),r&&r(e)}})(e,t),[e,t])};var oj=Object.prototype.hasOwnProperty;function o$(e,t,o){for(o of e.keys())if(oV(o,t))return o}function oV(e,t){var o,r,i;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((r=e.length)===t.length)for(;r--&&oV(e[r],t[r]););return -1===r}if(o===Set){if(e.size!==t.size)return!1;for(r of e)if((i=r)&&"object"==typeof i&&!(i=o$(t,i))||!t.has(i))return!1;return!0}if(o===Map){if(e.size!==t.size)return!1;for(r of e)if((i=r[0])&&"object"==typeof i&&!(i=o$(t,i))||!oV(r[1],t.get(i)))return!1;return!0}if(o===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(o===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!o||"object"==typeof e){for(o in r=0,e)if(oj.call(e,o)&&++r&&!oj.call(t,o)||!(o in t)||!oV(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}let oY=function(e){let t=function(){let e=(0,z.useRef)(!0),t=(0,z.useRef)(()=>e.current);return(0,z.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}();return[e[0],(0,z.useCallback)(o=>{if(t())return e[1](o)},[t,e[1]])]};function oK(e){return e.split("-")[0]}function oq(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oX(e){var t=oq(e).Element;return e instanceof t||e instanceof Element}function oQ(e){var t=oq(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function oJ(e){if("undefined"==typeof ShadowRoot)return!1;var t=oq(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var o0=Math.max,o1=Math.min,o2=Math.round;function o5(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function o6(){return!/^((?!chrome|android).)*safari/i.test(o5())}function o3(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),i=1,n=1;t&&oQ(e)&&(i=e.offsetWidth>0&&o2(r.width)/e.offsetWidth||1,n=e.offsetHeight>0&&o2(r.height)/e.offsetHeight||1);var s=(oX(e)?oq(e):window).visualViewport,l=!o6()&&o,a=(r.left+(l&&s?s.offsetLeft:0))/i,h=(r.top+(l&&s?s.offsetTop:0))/n,c=r.width/i,d=r.height/n;return{width:c,height:d,top:h,right:a+c,bottom:h+d,left:a,x:a,y:h}}function o4(e){var t=o3(e),o=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-o)&&(o=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function o7(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&oJ(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function o9(e){return e?(e.nodeName||"").toLowerCase():null}function o8(e){return oq(e).getComputedStyle(e)}function re(e){return((oX(e)?e.ownerDocument:e.document)||window.document).documentElement}function rt(e){return"html"===o9(e)?e:e.assignedSlot||e.parentNode||(oJ(e)?e.host:null)||re(e)}function ro(e){return oQ(e)&&"fixed"!==o8(e).position?e.offsetParent:null}function rr(e){for(var t=oq(e),o=ro(e);o&&["table","td","th"].indexOf(o9(o))>=0&&"static"===o8(o).position;)o=ro(o);return o&&("html"===o9(o)||"body"===o9(o)&&"static"===o8(o).position)?t:o||function(e){var t=/firefox/i.test(o5());if(/Trident/i.test(o5())&&oQ(e)&&"fixed"===o8(e).position)return null;var o=rt(e);for(oJ(o)&&(o=o.host);oQ(o)&&0>["html","body"].indexOf(o9(o));){var r=o8(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||t}function ri(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rn(e,t,o){return o0(e,o1(t,o))}function rs(){return{top:0,right:0,bottom:0,left:0}}function rl(e){return Object.assign({},rs(),e)}function ra(e,t){return t.reduce(function(t,o){return t[o]=e,t},{})}var rh="bottom",rc="right",rd="left",ru="auto",rp=["top",rh,rc,rd],rf="start",rm="viewport",rg="popper",r_=rp.reduce(function(e,t){return e.concat([t+"-"+rf,t+"-end"])},[]),rv=[].concat(rp,[ru]).reduce(function(e,t){return e.concat([t,t+"-"+rf,t+"-end"])},[]),ry=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function rS(e){return e.split("-")[1]}var rR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rC(e){var t,o,r,i,n,s,l,a=e.popper,h=e.popperRect,c=e.placement,d=e.variation,u=e.offsets,p=e.position,f=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,_=e.isFixed,v=u.x,y=void 0===v?0:v,S=u.y,R=void 0===S?0:S,C="function"==typeof g?g({x:y,y:R}):{x:y,y:R};y=C.x,R=C.y;var T=u.hasOwnProperty("x"),w=u.hasOwnProperty("y"),b=rd,E="top",O=window;if(m){var I=rr(a),M="clientHeight",x="clientWidth";I===oq(a)&&"static"!==o8(I=re(a)).position&&"absolute"===p&&(M="scrollHeight",x="scrollWidth"),("top"===c||(c===rd||c===rc)&&"end"===d)&&(E=rh,R-=(_&&I===O&&O.visualViewport?O.visualViewport.height:I[M])-h.height,R*=f?1:-1),(c===rd||("top"===c||c===rh)&&"end"===d)&&(b=rc,y-=(_&&I===O&&O.visualViewport?O.visualViewport.width:I[x])-h.width,y*=f?1:-1)}var N=Object.assign({position:p},m&&rR),D=!0===g?(t={x:y,y:R},o=oq(a),r=t.x,i=t.y,{x:o2(r*(n=o.devicePixelRatio||1))/n||0,y:o2(i*n)/n||0}):{x:y,y:R};return(y=D.x,R=D.y,f)?Object.assign({},N,((l={})[E]=w?"0":"",l[b]=T?"0":"",l.transform=1>=(O.devicePixelRatio||1)?"translate("+y+"px, "+R+"px)":"translate3d("+y+"px, "+R+"px, 0)",l)):Object.assign({},N,((s={})[E]=w?R+"px":"",s[b]=T?y+"px":"",s.transform="",s))}var rT={passive:!0},rw={left:"right",right:"left",bottom:"top",top:"bottom"};function rb(e){return e.replace(/left|right|bottom|top/g,function(e){return rw[e]})}var rE={start:"end",end:"start"};function rO(e){return e.replace(/start|end/g,function(e){return rE[e]})}function rI(e){var t=oq(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rM(e){return o3(re(e)).left+rI(e).scrollLeft}function rx(e){var t=o8(e),o=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+i+r)}function rN(e,t){void 0===t&&(t=[]);var o,r=function e(t){return["html","body","#document"].indexOf(o9(t))>=0?t.ownerDocument.body:oQ(t)&&rx(t)?t:e(rt(t))}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),n=oq(r),s=i?[n].concat(n.visualViewport||[],rx(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(rN(rt(s)))}function rD(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rA(e,t,o){var r,i,n,s,l,a,h,c,d,u;return t===rm?rD(function(e,t){var o=oq(e),r=re(e),i=o.visualViewport,n=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){n=i.width,s=i.height;var h=o6();(h||!h&&"fixed"===t)&&(l=i.offsetLeft,a=i.offsetTop)}return{width:n,height:s,x:l+rM(e),y:a}}(e,o)):oX(t)?((r=o3(t,!1,"fixed"===o)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):rD((i=re(e),s=re(i),l=rI(i),a=null==(n=i.ownerDocument)?void 0:n.body,h=o0(s.scrollWidth,s.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=o0(s.scrollHeight,s.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-l.scrollLeft+rM(i),u=-l.scrollTop,"rtl"===o8(a||s).direction&&(d+=o0(s.clientWidth,a?a.clientWidth:0)-h),{width:h,height:c,x:d,y:u}))}function rH(e){var t,o=e.reference,r=e.element,i=e.placement,n=i?oK(i):null,s=i?rS(i):null,l=o.x+o.width/2-r.width/2,a=o.y+o.height/2-r.height/2;switch(n){case"top":t={x:l,y:o.y-r.height};break;case rh:t={x:l,y:o.y+o.height};break;case rc:t={x:o.x+o.width,y:a};break;case rd:t={x:o.x-r.width,y:a};break;default:t={x:o.x,y:o.y}}var h=n?ri(n):null;if(null!=h){var c="y"===h?"height":"width";switch(s){case rf:t[h]=t[h]-(o[c]/2-r[c]/2);break;case"end":t[h]=t[h]+(o[c]/2-r[c]/2)}}return t}function rG(e,t){void 0===t&&(t={});var o,r,i,n,s,l,a,h,c=t,d=c.placement,u=void 0===d?e.placement:d,p=c.strategy,f=void 0===p?e.strategy:p,m=c.boundary,g=c.rootBoundary,_=c.elementContext,v=void 0===_?rg:_,y=c.altBoundary,S=c.padding,R=void 0===S?0:S,C=rl("number"!=typeof R?R:ra(R,rp)),T=e.rects.popper,w=e.elements[void 0!==y&&y?v===rg?"reference":rg:v],b=(o=oX(w)?w:w.contextElement||re(e.elements.popper),r=void 0===m?"clippingParents":m,i=void 0===g?rm:g,a=(l=[].concat("clippingParents"===r?(n=rN(rt(o)),oX(s=["absolute","fixed"].indexOf(o8(o).position)>=0&&oQ(o)?rr(o):o)?n.filter(function(e){return oX(e)&&o7(e,s)&&"body"!==o9(e)}):[]):[].concat(r),[i]))[0],(h=l.reduce(function(e,t){var r=rA(o,t,f);return e.top=o0(r.top,e.top),e.right=o1(r.right,e.right),e.bottom=o1(r.bottom,e.bottom),e.left=o0(r.left,e.left),e},rA(o,a,f))).width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h),E=o3(e.elements.reference),O=rH({reference:E,element:T,strategy:"absolute",placement:u}),I=rD(Object.assign({},T,O)),M=v===rg?I:E,x={top:b.top-M.top+C.top,bottom:M.bottom-b.bottom+C.bottom,left:b.left-M.left+C.left,right:M.right-b.right+C.right},N=e.modifiersData.offset;if(v===rg&&N){var D=N[u];Object.keys(x).forEach(function(e){var t=[rc,rh].indexOf(e)>=0?1:-1,o=["top",rh].indexOf(e)>=0?"y":"x";x[e]+=D[o]*t})}return x}function rz(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function rk(e){return["top",rc,rh,rd].some(function(t){return e[t]>=0})}var rW={placement:"bottom",modifiers:[],strategy:"absolute"};function rL(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}let rP=(h=void 0===(a=(l={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,r=t.rects.reference,i=t.rects.popper,n=t.modifiersData.preventOverflow,s=rG(t,{elementContext:"reference"}),l=rG(t,{altBoundary:!0}),a=rz(s,r),h=rz(l,i,n),c=rk(a),d=rk(h);t.modifiersData[o]={referenceClippingOffsets:a,popperEscapeOffsets:h,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=rH({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,r=o.gpuAcceleration,i=o.adaptive,n=o.roundOffsets,s=void 0===n||n,l={placement:oK(t.placement),variation:rS(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,rC(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,rC(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,r=e.options,i=r.scroll,n=void 0===i||i,s=r.resize,l=void 0===s||s,a=oq(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&h.forEach(function(e){e.addEventListener("scroll",o.update,rT)}),l&&a.addEventListener("resize",o.update,rT),function(){n&&h.forEach(function(e){e.removeEventListener("scroll",o.update,rT)}),l&&a.removeEventListener("resize",o.update,rT)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,r=e.name,i=o.offset,n=void 0===i?[0,0]:i,s=rv.reduce(function(e,o){var r,i,s,l,a,h;return e[o]=(r=t.rects,s=[rd,"top"].indexOf(i=oK(o))>=0?-1:1,a=(l="function"==typeof n?n(Object.assign({},r,{placement:o})):n)[0],h=l[1],a=a||0,h=(h||0)*s,[rd,rc].indexOf(i)>=0?{x:h,y:a}:{x:a,y:h}),e},{}),l=s[t.placement],a=l.x,h=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=h),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=o.mainAxis,n=void 0===i||i,s=o.altAxis,l=void 0===s||s,a=o.fallbackPlacements,h=o.padding,c=o.boundary,d=o.rootBoundary,u=o.altBoundary,p=o.flipVariations,f=void 0===p||p,m=o.allowedAutoPlacements,g=t.options.placement,_=oK(g)===g,v=a||(_||!f?[rb(g)]:function(e){if(oK(e)===ru)return[];var t=rb(e);return[rO(e),t,rO(t)]}(g)),y=[g].concat(v).reduce(function(e,o){var r,i,n,s,l,a,u,p,g,_,v,y;return e.concat(oK(o)===ru?(i=(r={placement:o,boundary:c,rootBoundary:d,padding:h,flipVariations:f,allowedAutoPlacements:m}).placement,n=r.boundary,s=r.rootBoundary,l=r.padding,a=r.flipVariations,p=void 0===(u=r.allowedAutoPlacements)?rv:u,0===(v=(_=(g=rS(i))?a?r_:r_.filter(function(e){return rS(e)===g}):rp).filter(function(e){return p.indexOf(e)>=0})).length&&(v=_),Object.keys(y=v.reduce(function(e,o){return e[o]=rG(t,{placement:o,boundary:n,rootBoundary:s,padding:l})[oK(o)],e},{})).sort(function(e,t){return y[e]-y[t]})):o)},[]),S=t.rects.reference,R=t.rects.popper,C=new Map,T=!0,w=y[0],b=0;b<y.length;b++){var E=y[b],O=oK(E),I=rS(E)===rf,M=["top",rh].indexOf(O)>=0,x=M?"width":"height",N=rG(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:u,padding:h}),D=M?I?rc:rd:I?rh:"top";S[x]>R[x]&&(D=rb(D));var A=rb(D),H=[];if(n&&H.push(N[O]<=0),l&&H.push(N[D]<=0,N[A]<=0),H.every(function(e){return e})){w=E,T=!1;break}C.set(E,H)}if(T)for(var G=f?3:1,z=function(e){var t=y.find(function(t){var o=C.get(t);if(o)return o.slice(0,e).every(function(e){return e})});if(t)return w=t,"break"},k=G;k>0&&"break"!==z(k);k--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name,i=o.mainAxis,n=o.altAxis,s=o.boundary,l=o.rootBoundary,a=o.altBoundary,h=o.padding,c=o.tether,d=void 0===c||c,u=o.tetherOffset,p=void 0===u?0:u,f=rG(t,{boundary:s,rootBoundary:l,padding:h,altBoundary:a}),m=oK(t.placement),g=rS(t.placement),_=!g,v=ri(m),y="x"===v?"y":"x",S=t.modifiersData.popperOffsets,R=t.rects.reference,C=t.rects.popper,T="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,w="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(S){if(void 0===i||i){var O,I="y"===v?"top":rd,M="y"===v?rh:rc,x="y"===v?"height":"width",N=S[v],D=N+f[I],A=N-f[M],H=d?-C[x]/2:0,G=g===rf?R[x]:C[x],z=g===rf?-C[x]:-R[x],k=t.elements.arrow,W=d&&k?o4(k):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rs(),P=L[I],F=L[M],B=rn(0,R[x],W[x]),Z=_?R[x]/2-H-B-P-w.mainAxis:G-B-P-w.mainAxis,U=_?-R[x]/2+H+B+F+w.mainAxis:z+B+F+w.mainAxis,j=t.elements.arrow&&rr(t.elements.arrow),$=j?"y"===v?j.clientTop||0:j.clientLeft||0:0,V=null!=(O=null==b?void 0:b[v])?O:0,Y=rn(d?o1(D,N+Z-V-$):D,N,d?o0(A,N+U-V):A);S[v]=Y,E[v]=Y-N}if(void 0!==n&&n){var K,q,X="x"===v?"top":rd,Q="x"===v?rh:rc,J=S[y],ee="y"===y?"height":"width",et=J+f[X],eo=J-f[Q],er=-1!==["top",rd].indexOf(m),ei=null!=(q=null==b?void 0:b[y])?q:0,en=er?et:J-R[ee]-C[ee]-ei+w.altAxis,es=er?J+R[ee]+C[ee]-ei-w.altAxis:eo,el=d&&er?(K=rn(en,J,es))>es?es:K:rn(d?en:et,J,d?es:eo);S[y]=el,E[y]=el-J}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o,r=e.state,i=e.name,n=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,a=oK(r.placement),h=ri(a),c=[rd,rc].indexOf(a)>=0?"height":"width";if(s&&l){var d=rl("number"!=typeof(t="function"==typeof(t=n.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:ra(t,rp)),u=o4(s),p="y"===h?"top":rd,f="y"===h?rh:rc,m=r.rects.reference[c]+r.rects.reference[h]-l[h]-r.rects.popper[c],g=l[h]-r.rects.reference[h],_=rr(s),v=_?"y"===h?_.clientHeight||0:_.clientWidth||0:0,y=d[p],S=v-u[c]-d[f],R=v/2-u[c]/2+(m/2-g/2),C=rn(y,R,S);r.modifiersData[i]=((o={})[h]=C,o.centerOffset=C-R,o)}},effect:function(e){var t=e.state,o=e.options.element,r=void 0===o?"[data-popper-arrow]":o;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&o7(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:a,d=void 0===(c=l.defaultOptions)?rW:c,function(e,t,o){void 0===o&&(o=d);var r,i,n={placement:"bottom",orderedModifiers:[],options:Object.assign({},rW,d),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,a={state:n,setOptions:function(o){var r,i,l,u,p,f="function"==typeof o?o(n.options):o;c(),n.options=Object.assign({},d,n.options,f),n.scrollParents={reference:oX(e)?rN(e):e.contextElement?rN(e.contextElement):[],popper:rN(t)};var m=(i=Object.keys(r=[].concat(h,n.options.modifiers).reduce(function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e},{})).map(function(e){return r[e]}),l=new Map,u=new Set,p=[],i.forEach(function(e){l.set(e.name,e)}),i.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var o=l.get(t);o&&e(o)}}),p.push(t)}(e)}),ry.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return n.orderedModifiers=m.filter(function(e){return e.enabled}),n.orderedModifiers.forEach(function(e){var t=e.name,o=e.options,r=e.effect;if("function"==typeof r){var i=r({state:n,name:t,instance:a,options:void 0===o?{}:o});s.push(i||function(){})}}),a.update()},forceUpdate:function(){if(!l){var e,t,o,r,i,s,h,c,d,u,p,f,m=n.elements,g=m.reference,_=m.popper;if(rL(g,_)){n.rects={reference:(t=rr(_),o="fixed"===n.options.strategy,r=oQ(t),c=oQ(t)&&(s=o2((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,h=o2(i.height)/t.offsetHeight||1,1!==s||1!==h),d=re(t),u=o3(g,c,o),p={scrollLeft:0,scrollTop:0},f={x:0,y:0},(r||!r&&!o)&&(("body"!==o9(t)||rx(d))&&(p=(e=t)!==oq(e)&&oQ(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:rI(e)),oQ(t)?(f=o3(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):d&&(f.x=rM(d))),{x:u.left+p.scrollLeft-f.x,y:u.top+p.scrollTop-f.y,width:u.width,height:u.height}),popper:o4(_)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(e){return n.modifiersData[e.name]=Object.assign({},e.data)});for(var v=0;v<n.orderedModifiers.length;v++){if(!0===n.reset){n.reset=!1,v=-1;continue}var y=n.orderedModifiers[v],S=y.fn,R=y.options,C=void 0===R?{}:R,T=y.name;"function"==typeof S&&(n=S({state:n,options:C,name:T,instance:a})||n)}}}},update:(r=function(){return new Promise(function(e){a.forceUpdate(),e(n)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){c(),l=!0}};if(!rL(e,t))return a;function c(){s.forEach(function(e){return e()}),s=[]}return a.setOptions(o).then(function(e){!l&&o.onFirstUpdate&&o.onFirstUpdate(e)}),a}),rF=["enabled","placement","strategy","modifiers"],rB={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>void 0},rZ={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:o}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==o.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:o,reference:r}=e.elements,i=null==(t=o.getAttribute("role"))?void 0:t.toLowerCase();if(o.id&&"tooltip"===i&&"setAttribute"in r){let e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(o.id))return;r.setAttribute("aria-describedby",e?`${e},${o.id}`:o.id)}}},rU=[],rj=function(e,t,o={}){let{enabled:r=!0,placement:i="bottom",strategy:n="absolute",modifiers:s=rU}=o,l=function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(o,rF),a=(0,z.useRef)(s),h=(0,z.useRef)(),c=(0,z.useCallback)(()=>{var e;null==(e=h.current)||e.update()},[]),d=(0,z.useCallback)(()=>{var e;null==(e=h.current)||e.forceUpdate()},[]),[u,p]=oY((0,z.useState)({placement:i,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),f=(0,z.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},o={};Object.keys(e.elements).forEach(r=>{t[r]=e.styles[r],o[r]=e.attributes[r]}),p({state:e,styles:t,attributes:o,update:c,forceUpdate:d,placement:e.placement})}}),[c,d,p]),m=(0,z.useMemo)(()=>(oV(a.current,s)||(a.current=s),a.current),[s]);return(0,z.useEffect)(()=>{h.current&&r&&h.current.setOptions({placement:i,strategy:n,modifiers:[...m,f,rB]})},[n,i,f,r,m]),(0,z.useEffect)(()=>{if(r&&null!=e&&null!=t)return h.current=rP(e,t,Object.assign({},l,{placement:i,strategy:n,modifiers:[...m,rZ,f]})),()=>{null!=h.current&&(h.current.destroy(),h.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),u};var r$=!1,rV=!1;try{var rY={get passive(){return r$=!0},get once(){return rV=r$=!0}};e1&&(window.addEventListener("test",rY,rY),window.removeEventListener("test",rY,!0))}catch(e){}let rK=function(e,t,o,r){if(r&&"boolean"!=typeof r&&!rV){var i=r.once,n=r.capture,s=o;!rV&&i&&(s=o.__once||function e(r){this.removeEventListener(t,e,n),o.call(this,r)},o.__once=s),e.addEventListener(t,s,r$?r:n)}e.addEventListener(t,o,r)},rq=function(e,t,o,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,o,i),o.__once&&e.removeEventListener(t,o.__once,i)},rX=function(e,t,o,r){return rK(e,t,o,r),function(){rq(e,t,o,r)}};function rQ(e){return e&&e.ownerDocument||document}let rJ=function(e){let t=(0,z.useRef)(e);return(0,z.useEffect)(()=>{t.current=e},[e]),t};function r0(e){let t=rJ(e);return(0,z.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}function r1(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var r2=o(771),r5=o.n(r2);let r6=()=>{},r3=e=>e&&("current"in e?e.current:e),r4={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},r7=function(e,t=r6,{disabled:o,clickTrigger:r="click"}={}){let i=(0,z.useRef)(!1),n=(0,z.useRef)(!1),s=(0,z.useCallback)(t=>{let o=r3(e);r5()(!!o,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!o||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!r1(o,t.target)||n.current,n.current=!1},[e]),l=r0(t=>{let o=r3(e);o&&r1(o,t.target)?n.current=!0:n.current=!1}),a=r0(e=>{i.current||t(e)});(0,z.useEffect)(()=>{var t,i;if(o||null==e)return;let n=rQ(r3(e)),h=n.defaultView||window,c=null!=(t=h.event)?t:null==(i=h.parent)?void 0:i.event,d=null;r4[r]&&(d=rX(n,r4[r],l,!0));let u=rX(n,r,s,!0),p=rX(n,r,e=>{if(e===c){c=void 0;return}a(e)}),f=[];return"ontouchstart"in n.documentElement&&(f=[].slice.call(n.body.children).map(e=>rX(e,"mousemove",r6))),()=>{null==d||d(),u(),p(),f.forEach(e=>e())}},[e,o,r,s,l,a])};function r9(e){if(!e||"function"==typeof e)return null;let{major:t}=function(){let e=z.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}();return t>=19?e.props.ref:e.ref}let r8=()=>{},ie=function(e,t,{disabled:o,clickTrigger:r}={}){let i=t||r8;r7(e,i,{disabled:o,clickTrigger:r});let n=r0(e=>{("Escape"===e.code||27===e.keyCode)&&i(e)});(0,z.useEffect)(()=>{if(o||null==e)return;let t=rQ(r3(e)),r=(t.defaultView||window).event,i=rX(t,"keyup",e=>{if(e===r){r=void 0;return}n(e)});return()=>{i()}},[e,o,n])},it=(0,z.createContext)(e1?window:void 0);it.Provider;let io=(e,t)=>e1?null==e?(t||rQ()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function ir(e,t){let o=(0,z.useContext)(it),[r,i]=(0,z.useState)(()=>io(e,null==o?void 0:o.document));if(!r){let t=io(e);t&&i(t)}return(0,z.useEffect)(()=>{t&&r&&t(r)},[t,r]),(0,z.useEffect)(()=>{let t=io(e);t!==r&&i(t)},[e,r]),r}let ii=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product,is="undefined"!=typeof document||ii?z.useLayoutEffect:z.useEffect,il=function({children:e,in:t,onExited:o,mountOnEnter:r,unmountOnExit:i}){let n=(0,z.useRef)(null),s=(0,z.useRef)(t),l=r0(o);(0,z.useEffect)(()=>{t?s.current=!0:l(n.current)},[t,l]);let a=oU(n,r9(e)),h=(0,z.cloneElement)(e,{ref:a});return t?h:i||!s.current&&r?null:h},ia=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];var ih=o(848);let ic=["component"],id=z.forwardRef((e,t)=>{let{component:o}=e,r=function(e){let{onEnter:t,onEntering:o,onEntered:r,onExit:i,onExiting:n,onExited:s,addEndListener:l,children:a}=e,h=function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,ia),c=(0,z.useRef)(null),d=oU(c,r9(a)),u=e=>t=>{e&&c.current&&e(c.current,t)},p=(0,z.useCallback)(u(t),[t]),f=(0,z.useCallback)(u(o),[o]),m=(0,z.useCallback)(u(r),[r]),g=(0,z.useCallback)(u(i),[i]),_=(0,z.useCallback)(u(n),[n]),v=(0,z.useCallback)(u(s),[s]),y=(0,z.useCallback)(u(l),[l]);return Object.assign({},h,{nodeRef:c},t&&{onEnter:p},o&&{onEntering:f},r&&{onEntered:m},i&&{onExit:g},n&&{onExiting:_},s&&{onExited:v},l&&{addEndListener:y},{children:"function"==typeof a?(e,t)=>a(e,Object.assign({},t,{ref:d})):(0,z.cloneElement)(a,{ref:d})})}(function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,ic));return(0,ih.jsx)(o,Object.assign({ref:t},r))});function iu({children:e,in:t,onExited:o,onEntered:r,transition:i}){let[n,s]=(0,z.useState)(!t);t&&n&&s(!1);let l=oU(function({in:e,onTransition:t}){let o=(0,z.useRef)(null),r=(0,z.useRef)(!0),i=r0(t);return is(()=>{if(!o.current)return;let t=!1;return i({in:e,element:o.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,i]),is(()=>(r.current=!1,()=>{r.current=!0}),[]),o}({in:!!t,onTransition:e=>{Promise.resolve(i(e)).then(()=>{e.isStale()||(e.in?null==r||r(e.element,e.initial):(s(!0),null==o||o(e.element)))},t=>{throw e.in||s(!0),t})}}),r9(e));return n&&!t?null:(0,z.cloneElement)(e,{ref:l})}let ip=z.forwardRef((e,t)=>{var o;let{flip:r,offset:i,placement:n,containerPadding:s,popperConfig:l={},transition:a,runTransition:h}=e,[c,d]=oB(),[u,p]=oB(),f=oU(d,t),m=ir(e.container),g=ir(e.target),[_,v]=(0,z.useState)(!e.show),y=rj(g,c,function({enabled:e,enableEvents:t,placement:o,flip:r,offset:i,fixed:n,containerPadding:s,arrowElement:l,popperConfig:a={}}){var h,c,d,u,p;let f=function(e){let t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}(a.modifiers);return Object.assign({},a,{placement:o,enabled:e,strategy:n?"fixed":a.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},f,{eventListeners:{enabled:t,options:null==(h=f.eventListeners)?void 0:h.options},preventOverflow:Object.assign({},f.preventOverflow,{options:s?Object.assign({padding:s},null==(c=f.preventOverflow)?void 0:c.options):null==(d=f.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:i},null==(u=f.offset)?void 0:u.options)},arrow:Object.assign({},f.arrow,{enabled:!!l,options:Object.assign({},null==(p=f.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},f.flip)}))})}({placement:n,enableEvents:!!e.show,containerPadding:s||5,flip:r,offset:i,arrowElement:u,popperConfig:l}));e.show&&_&&v(!1);let S=e.show||!_;if(ie(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!S)return null;let{onExit:R,onExiting:C,onEnter:T,onEntering:w,onEntered:b}=e,E=e.children(Object.assign({},y.attributes.popper,{style:y.styles.popper,ref:f}),{popper:y,placement:n,show:!!e.show,arrowProps:Object.assign({},y.attributes.arrow,{style:y.styles.arrow,ref:p})});return o={in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:E,onExit:R,onExiting:C,onExited:(...t)=>{v(!0),e.onExited&&e.onExited(...t)},onEnter:T,onEntering:w,onEntered:b},E=a?(0,ih.jsx)(id,Object.assign({},o,{component:a})):h?(0,ih.jsx)(iu,Object.assign({},o,{transition:h})):(0,ih.jsx)(il,Object.assign({},o)),m?ta().createPortal(E,m):null});ip.displayName="Overlay";let im=function(e){let t=(0,z.useRef)(e);return(0,z.useEffect)(()=>{t.current=e},[e]),t},ig=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product,i_="undefined"!=typeof document||ig?z.useLayoutEffect:z.useEffect,iv=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,iy=function(e,t){return(0,z.useMemo)(()=>(function(e,t){let o=iv(e),r=iv(t);return e=>{o&&o(e),r&&r(e)}})(e,t),[e,t])};function iS(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}let iR=z.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:iC,Provider:iT}=iR;function iw(e,t){let{prefixes:o}=(0,z.useContext)(iR);return e||o[t]||t}function ib(){let{dir:e}=(0,z.useContext)(iR);return"rtl"===e}let iE=z.forwardRef(({className:e,bsPrefix:t,as:o="div",...r},i)=>(t=iw(t,"popover-header"),(0,ih.jsx)(o,{ref:i,className:G()(e,t),...r})));iE.displayName="PopoverHeader";let iO=z.forwardRef(({className:e,bsPrefix:t,as:o="div",...r},i)=>(t=iw(t,"popover-body"),(0,ih.jsx)(o,{ref:i,className:G()(e,t),...r})));function iI(e,t){let o=e;return"left"===e?o=t?"end":"start":"right"===e&&(o=t?"start":"end"),o}function iM(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}iO.displayName="PopoverBody";let ix=Object.assign(z.forwardRef(({bsPrefix:e,placement:t="right",className:o,style:r,children:i,body:n,arrowProps:s,hasDoneInitialMeasure:l,popper:a,show:h,...c},d)=>{let u=iw(e,"popover"),p=ib(),[f]=(null==t?void 0:t.split("-"))||[],m=iI(f,p),g=r;return h&&!l&&(g={...r,...iM(null==a?void 0:a.strategy)}),(0,ih.jsxs)("div",{ref:d,role:"tooltip",style:g,"x-placement":f,className:G()(o,u,f&&`bs-popover-${m}`),...c,children:[(0,ih.jsx)("div",{className:"popover-arrow",...s}),n?(0,ih.jsx)(iO,{children:i}):i]})}),{Header:iE,Body:iO,POPPER_OFFSET:[0,8]}),iN=z.forwardRef(({bsPrefix:e,placement:t="right",className:o,style:r,children:i,arrowProps:n,hasDoneInitialMeasure:s,popper:l,show:a,...h},c)=>{e=iw(e,"tooltip");let d=ib(),[u]=(null==t?void 0:t.split("-"))||[],p=iI(u,d),f=r;return a&&!s&&(f={...r,...iM(null==l?void 0:l.strategy)}),(0,ih.jsxs)("div",{ref:c,style:f,role:"tooltip","x-placement":u,className:G()(o,e,`bs-tooltip-${p}`),...h,children:[(0,ih.jsx)("div",{className:"tooltip-arrow",...n}),(0,ih.jsx)("div",{className:`${e}-inner`,children:i})]})});iN.displayName="Tooltip";let iD=Object.assign(iN,{TOOLTIP_OFFSET:[0,6]});function iA(e,t){return(iA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}let iH={disabled:!1},iG=k().createContext(null);var iz="unmounted",ik="exited",iW="entering",iL="entered",iP="exiting",iF=function(e){function t(t,o){r=e.call(this,t,o)||this;var r,i,n=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?n?(i=ik,r.appearStatus=iW):i=iL:i=t.unmountOnExit||t.mountOnEnter?iz:ik,r.state={status:i},r.nextCallback=null,r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,iA(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===iz?{status:ik}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==iW&&o!==iL&&(t=iW):(o===iW||o===iL)&&(t=iP)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,o,r=this.props.timeout;return e=t=o=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,o=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:o}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===iW){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:ta().findDOMNode(this);o&&o.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===ik&&this.setState({status:iz})},o.performEnter=function(e){var t=this,o=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ta().findDOMNode(this),r],n=i[0],s=i[1],l=this.getTimeouts(),a=r?l.appear:l.enter;if(!e&&!o||iH.disabled){this.safeSetState({status:iL},function(){t.props.onEntered(n)});return}this.props.onEnter(n,s),this.safeSetState({status:iW},function(){t.props.onEntering(n,s),t.onTransitionEnd(a,function(){t.safeSetState({status:iL},function(){t.props.onEntered(n,s)})})})},o.performExit=function(){var e=this,t=this.props.exit,o=this.getTimeouts(),r=this.props.nodeRef?void 0:ta().findDOMNode(this);if(!t||iH.disabled){this.safeSetState({status:ik},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:iP},function(){e.props.onExiting(r),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:ik},function(){e.props.onExited(r)})})})},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(r){o&&(o=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var o=this.props.nodeRef?this.props.nodeRef.current:ta().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!o||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],n=i[0],s=i[1];this.props.addEndListener(n,s)}null!=e&&setTimeout(this.nextCallback,e)},o.render=function(){var e=this.state.status;if(e===iz)return null;var t=this.props,o=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;o[r]=e[r]}return o}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return k().createElement(iG.Provider,{value:null},"function"==typeof o?o(e,r):k().cloneElement(k().Children.only(o),r))},t}(k().Component);function iB(){}iF.contextType=iG,iF.propTypes={},iF.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:iB,onEntering:iB,onEntered:iB,onExit:iB,onExiting:iB,onExited:iB},iF.UNMOUNTED=iz,iF.EXITED=ik,iF.ENTERING=iW,iF.ENTERED=iL,iF.EXITING=iP;var iZ=/([A-Z])/g,iU=/^ms-/;function ij(e){return e.replace(iZ,"-$1").toLowerCase().replace(iU,"-ms-")}var i$=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;let iV=function(e,t){var o,r="",i="";if("string"==typeof t)return e.style.getPropertyValue(ij(t))||((o=rQ(e))&&o.defaultView||window).getComputedStyle(e,void 0).getPropertyValue(ij(t));Object.keys(t).forEach(function(o){var n=t[o];n||0===n?o&&i$.test(o)?i+=o+"("+n+") ":r+=ij(o)+": "+n+";":e.style.removeProperty(ij(o))}),i&&(r+="transform: "+i+";"),e.style.cssText+=";"+r};function iY(e,t){let o=iV(e,t)||"",r=-1===o.indexOf("ms")?1e3:1;return parseFloat(o)*r}function iK(e,t){var o,r,i,n,s,l,a,h,c,d,u,p;let f=iY(e,"transitionDuration"),m=iY(e,"transitionDelay"),g=(o=e,r=o=>{o.target===e&&(g(),t(o))},null==(i=f+m)&&(l=-1===(s=iV(o,"transitionDuration")||"").indexOf("ms")?1e3:1,i=parseFloat(s)*l||0),u=(h=!1,c=setTimeout(function(){h||function(e,t,o,r){if(void 0===o&&(o=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,o,r),e.dispatchEvent(i)}}(o,"transitionend",!0)},i+5),d=rX(o,"transitionend",function(){h=!0},{once:!0}),function(){clearTimeout(c),d()}),p=rX(o,"transitionend",r),function(){u(),p()})}function iq(e){return e&&"setState"in e?ta().findDOMNode(e):null!=e?e:null}let iX=k().forwardRef(({onEnter:e,onEntering:t,onEntered:o,onExit:r,onExiting:i,onExited:n,addEndListener:s,children:l,childRef:a,...h},c)=>{let d=(0,z.useRef)(null),u=iy(d,a),p=e=>{u(iq(e))},f=e=>t=>{e&&d.current&&e(d.current,t)},m=(0,z.useCallback)(f(e),[e]),g=(0,z.useCallback)(f(t),[t]),_=(0,z.useCallback)(f(o),[o]),v=(0,z.useCallback)(f(r),[r]),y=(0,z.useCallback)(f(i),[i]),S=(0,z.useCallback)(f(n),[n]),R=(0,z.useCallback)(f(s),[s]);return(0,ih.jsx)(iF,{ref:c,...h,onEnter:m,onEntered:_,onEntering:g,onExit:v,onExited:S,onExiting:y,addEndListener:R,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:p}):k().cloneElement(l,{ref:p})})}),iQ={[iW]:"show",[iL]:"show"},iJ=z.forwardRef(({className:e,children:t,transitionClasses:o={},onEnter:r,...i},n)=>{let s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=(0,z.useCallback)((e,t)=>{e.offsetHeight,null==r||r(e,t)},[r]);return(0,ih.jsx)(iX,{ref:n,addEndListener:iK,...s,onEnter:l,childRef:r9(t),children:(r,i)=>z.cloneElement(t,{...i,className:G()("fade",e,t.props.className,iQ[r],o[r])})})});iJ.displayName="Fade";let i0=iJ,i1=z.forwardRef(({children:e,transition:t=i0,popperConfig:o={},rootClose:r=!1,placement:i="top",show:n=!1,...s},l)=>{let a=(0,z.useRef)({}),[h,c]=(0,z.useState)(null),[d,u]=function(e){let t=(0,z.useRef)(null),o=iw(void 0,"popover"),r=iw(void 0,"tooltip"),i=(0,z.useMemo)(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(iS(t.current,o))return ix.POPPER_OFFSET;if(iS(t.current,r))return iD.TOOLTIP_OFFSET}return[0,0]}}}),[e,o,r]);return[t,[i]]}(s.offset),p=iy(l,d),f=!0===t?i0:t||void 0,m=function(e){let t=im(e);return(0,z.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}(e=>{c(e),null==o||null==o.onFirstUpdate||o.onFirstUpdate(e)});return i_(()=>{h&&s.target&&(null==a.current.scheduleUpdate||a.current.scheduleUpdate())},[h,s.target]),(0,z.useEffect)(()=>{n||c(null)},[n]),(0,ih.jsx)(ip,{...s,ref:p,popperConfig:{...o,modifiers:u.concat(o.modifiers||[]),onFirstUpdate:m},transition:f,rootClose:r,placement:i,show:n,children:(r,{arrowProps:i,popper:n,show:s})=>{var l;!function(e,t){let{ref:o}=e,{ref:r}=t;e.ref=o.__wrapped||(o.__wrapped=e=>o(iq(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(iq(e)))}(r,i);let c=null==n?void 0:n.placement,d=Object.assign(a.current,{state:null==n?void 0:n.state,scheduleUpdate:null==n?void 0:n.update,placement:c,outOfBoundaries:(null==n||null==(l=n.state)||null==(l=l.modifiersData.hide)?void 0:l.isReferenceHidden)||!1,strategy:o.strategy}),u=!!h;return"function"==typeof e?e({...r,placement:c,show:s,...!t&&s&&{className:"show"},popper:d,arrowProps:i,hasDoneInitialMeasure:u}):z.cloneElement(e,{...r,placement:c,arrowProps:i,popper:d,hasDoneInitialMeasure:u,className:G()(e.props.className,!t&&s&&"show"),style:{...e.props.style,...r.style}})}})});i1.displayName="Overlay";var i2=o(556),i5=o.n(i2);let i6=2147483648-1;function i3(e,t,o){let[r]=t,i=r.currentTarget,n=r.relatedTarget||r.nativeEvent[o];n&&n===i||r1(i,n)||e(...t)}o(311),i5().oneOf(["click","hover","focus"]);let i4=({trigger:e=["hover","focus"],overlay:t,children:o,popperConfig:r={},show:i,defaultShow:n=!1,onToggle:s,delay:l,placement:a,flip:h=a&&-1!==a.indexOf("auto"),...c})=>{var d,u,p,f,m,g;let _=(0,z.useRef)(null),v=iy(_,r9(o)),y=function(){let e=function(){let e=(0,z.useRef)(!0),t=(0,z.useRef)(()=>e.current);return(0,z.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}(),t=(0,z.useRef)();return!function(e){let t=function(e){let t=(0,z.useRef)(e);return t.current=e,t}(e);(0,z.useEffect)(()=>()=>t.current(),[])}(()=>clearTimeout(t.current)),(0,z.useMemo)(()=>{let o=()=>clearTimeout(t.current);return{set:function(r,i=0){e()&&(o(),i<=i6?t.current=setTimeout(r,i):function e(t,o,r){let i=r-Date.now();t.current=i<=i6?setTimeout(o,i):setTimeout(()=>e(t,o,r),i6)}(t,r,Date.now()+i))},clear:o,handleRef:t}},[])}(),S=(0,z.useRef)(""),[R,C]=(d=(0,z.useRef)(void 0!==i),p=(u=(0,z.useState)(n))[0],f=u[1],m=void 0!==i,g=d.current,d.current=m,!m&&g&&p!==n&&f(n),[m?i:p,(0,z.useCallback)(function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];s&&s.apply(void 0,[e].concat(o)),f(e)},[s])]),T=l&&"object"==typeof l?l:{show:l,hide:l},{onFocus:w,onBlur:b,onClick:E}="function"!=typeof o?z.Children.only(o).props:{},O=(0,z.useCallback)(()=>{if(y.clear(),S.current="show",!T.show){C(!0);return}y.set(()=>{"show"===S.current&&C(!0)},T.show)},[T.show,C,y]),I=(0,z.useCallback)(()=>{if(y.clear(),S.current="hide",!T.hide){C(!1);return}y.set(()=>{"hide"===S.current&&C(!1)},T.hide)},[T.hide,C,y]),M=(0,z.useCallback)((...e)=>{O(),null==w||w(...e)},[O,w]),x=(0,z.useCallback)((...e)=>{I(),null==b||b(...e)},[I,b]),N=(0,z.useCallback)((...e)=>{C(!R),null==E||E(...e)},[E,C,R]),D=(0,z.useCallback)((...e)=>{i3(O,e,"fromElement")},[O]),A=(0,z.useCallback)((...e)=>{i3(I,e,"toElement")},[I]),H=null==e?[]:[].concat(e),G={ref:e=>{v(iq(e))}};return -1!==H.indexOf("click")&&(G.onClick=N),-1!==H.indexOf("focus")&&(G.onFocus=M,G.onBlur=x),-1!==H.indexOf("hover")&&(G.onMouseOver=D,G.onMouseOut=A),(0,ih.jsxs)(ih.Fragment,{children:["function"==typeof o?o(G):(0,z.cloneElement)(o,G),(0,ih.jsx)(i1,{...c,show:R,onHide:I,flip:h,placement:a,popperConfig:r,target:_.current,children:t})]})},i7={},i9=document.createElement("canvas");i9.id="gk-graph-avatar-canvas";class i8 extends k().Component{image;constructor(e){super(e),this.image=new Image,this.image.crossOrigin="anonymous",this.image.onload=()=>this.refreshImage(),this.state={dataURL:void 0}}static getDerivedStateFromProps(e,t){return{dataURL:!e.url&&t.dataURL?void 0:t.dataURL}}componentDidMount(){let{url:e}=this.props;e&&this.startImgLoading(e)}componentDidUpdate(e){let{url:t}=this.props;t&&e.url!==t&&this.startImgLoading(t)}componentWillUnmount(){this.image=void 0}refreshImage(){let e;if(this.image){if(this.image.complete){let t=this.image.height,o=this.image.width,r=i9.getContext("2d");r.canvas.width=o,r.canvas.height=t,r.drawImage(this.image,0,0,o,t),e=i9.toDataURL(),i7[this.image.src]=e}this.setState({dataURL:e})}}startImgLoading(e){if(!this.image)return;let t=i7[e];if(t){this.setState({dataURL:t});return}this.image.src=e}render(){let{avatarClassName:e,avatarStyle:t,children:o,className:r,context:i,enableTransparentBackground:n,style:s,height:l,hint:a,size:h,width:c}=this.props,{dataURL:d}=this.state,u=!d,p=u?s:{...s,...t,background:`url(${d}) 0% 0% / ${h}px no-repeat ${n?"":"var(--app__bg0, #1c1e23)"}`,height:l||h,width:c||h},f=G()(r,u?"":e,!u&&{avatar:!0}),m=u?k().createElement(k().Fragment,null,o):void 0;return k().createElement("div",{className:f,"data-test-class":"avatar","data-vscode-context":(0,ef.DO)(i),style:p,title:a},m)}}let ne=(e,t,o,r)=>k().createElement("span",{className:"ref-avatar"},k().createElement(i8,{avatarClassName:t,context:r,enableTransparentBackground:!0,size:14,url:e},o));function nt({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:r}){return r&&o?k().createElement(i4,{delay:400,overlay:k().createElement(iD,{className:G()("gk-graph","bs-tooltip",t),id:o},r),placement:"top",trigger:["hover","focus"]},e):k().createElement(k().Fragment,null," ",e," ")}function no({id:e,toolTipText:t,getExternalIcon:o,issueTrackerType:r}){return k().createElement(nt,{icon:o(`issue-${r}`),tooltipClassName:"wide pull-left",tooltipId:`issue-tooltip-${e}`,tooltipText:t?t.trim():""})}function nr({hostingServiceType:e,icon:t,id:o,toolTipText:r}){return k().createElement(nt,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:r?r.trim():""})}function ni({icon:e,type:t,upstream:o,tooltipText:r}){return k().createElement(nt,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:r})}function nn({avatarClassName:e,avatarUrl:t,context:o,icon:r,tooltipText:i}){return k().createElement(nt,{icon:ne(t,e,r,o),tooltipId:`remote-icon-${i||"tooltipText"}`,tooltipText:i})}var ns=o(810),nl=o(280),na=function({className:e,name:t}){return k().createElement("span",{className:G()("ref-name","truncate",e),style:{height:$.F0}},t)};function nh(e,t,o,r=0){let i,n,s;let{annotated:l,refType:a,message:h,name:c}=t;switch(a){case ey.z.REMOTE:{n=t.hostingServiceType?`${ey.z.REMOTE}-${t.hostingServiceType}`:ey.z.REMOTE,i=t.avatarUrl;let e=`${c} (${o("Ref-Remote")})`;s=t.owner?`${t.owner} -> ${e}`:e;break}case ey.z.TAG:n=ey.z.TAG,s=`${l&&h?h:c} (${o("Ref-Tag")})`;break;case ey.z.HEAD:default:{let e=null!=t.worktreeId;n=e?ey.z.WORKTREE:ey.z.HEAD,s=`${c} (${o(e?"Ref-Worktree":"Ref-Local")})`}}let d=t.context||void 0,u=k().createElement("span",{"data-vscode-context":(0,ef.DO)(d)},e(n));return k().createElement(nn,{avatarUrl:i||"",context:d,icon:u,key:`ref-icon-${r}-${a}-${c}`,tooltipText:s})}class nc extends k().PureComponent{getContextForRefGroupIfExists(e,t,o){let r;let i=!1,n=!1,s=!1;for(let l of e){if(l.refType===ey.z.HEAD)return o?l.contextGroup||t:l.context;l.refType!==ey.z.REMOTE||("origin"===l.owner?(i=!0,r=o?l.contextGroup||t:l.context):i||"upstream"!==l.owner?i||n||(s=!0,r=o?l.contextGroup||t:l.context):(n=!0,r=o?l.contextGroup||t:l.context)),i||n||s||(r=o?l.contextGroup||t:l.context)}return r}getDecoratedRefIcon(e,t,o,r,i){return k().createElement("div",{className:i,"data-vscode-context":(0,ef.DO)(r),key:e,onClick:e=>this.onClickMetadata(e,o),onDoubleClick:e=>this.onDoubleClickMetadata(e,o)},t)}getPullRequestIconsAndTooltipsForRef(e,t,o){let r;let{getExternalIcon:i,onMissingRefMetadata:n,translate:s}=this.props;if(!(r=t.refType===ey.z.HEAD?t.upstream?e?.[t.upstream.id]?.[em.ki]:null:(0,ef.yb)(t,e,n,em.ki))||0===r.length)return null;let l=[];for(let e of r){let{context:r,hostingServiceType:n,id:a,title:h}=e;if(o.has(a))continue;o.add(a);let c={refId:t.id,type:em.ki,data:e},d=`pr-icon-${t.refType}-${t.name}-${a}`,u=this.getDecoratedRefIcon(d,i("pull-request"),c,r,G()("ref-pull-request"));l.push(k().createElement(nr,{hostingServiceType:n,icon:u,id:a,key:d,toolTipText:h&&""!==h.trim()?s("PullRequestIcon-Tooltip",a,h,(0,ns.T)(n)):""}))}return l}getUpstreamIndicatorIconsAndTooltipsForRef(e,t){let{getExternalIcon:o,onMissingRefMetadata:r,translate:i}=this.props,n=(0,ef.yb)(t,e,r,em.RA);if(!n||0===n.ahead&&0===n.behind)return null;let s={refId:t.id,type:em.RA,data:n},l=n.ahead>0,a=n.behind>0,h=n.context;if(l||a){let e,r;let c=l?`${n.ahead>99?"99+":n.ahead}`:"",d=a?`${n.behind>99?"99+":n.behind}`:"",u=`${n.owner}/${n.name}`;a&&l?(e=i("UpstreamIndicatorIcon-BehindAndAheadTooltip",d,c,u),r="ahead-behind"):a?(e=i("UpstreamIndicatorIcon-BehindTooltip",d,u),r="behind"):l&&(e=i("UpstreamIndicatorIcon-AheadTooltip",c,u),r="ahead");let p=k().createElement(k().Fragment,null,a?k().createElement(k().Fragment,null,k().createElement("span",{className:"ref-upstream-behind"},d),o("upstream-behind")):null,l?k().createElement(k().Fragment,null,k().createElement("span",{className:"ref-upstream-ahead"},c),o("upstream-ahead")):null);return k().createElement(ni,{icon:this.getDecoratedRefIcon(`ref-upstream-${t.id}`,p,s,h,"ref-upstream"),tooltipText:e,type:r,upstream:u})}return null}getIssueIconsAndTooltipsForRef(e,t,o){let{getExternalIcon:r,onMissingRefMetadata:i,translate:n}=this.props,s=(0,ef.yb)(t,e,i,em.fd);if(!s||0===s.length)return null;let l=[];for(let e of s){if(o.has(e.id))continue;let i={refId:t.id,type:em.fd,data:e};o.add(e.id);let s=k().createElement(no,{getExternalIcon:r,id:e.id,issueTrackerType:e.issueTrackerType,key:`issue-icon-${e.id}`,toolTipText:e.title&&""!==e.title.trim()?n("IssueIcon-Tooltip",e.displayId,e.title):""}),a=t.context||void 0;l.push(this.getDecoratedRefIcon(`ref-issue-${e.id}`,s,i,a,G()("ref-issue")))}return l}onContextMenu=e=>{let{onContextMenu:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onClick=e=>{let{onClick:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onClickMetadata=(e,t)=>{e.stopPropagation();let{onClick:o,refGroup:r,sha:i}=this.props;o(e,r,i,t)};onDoubleClick=e=>{let{onDoubleClick:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();let{onDoubleClick:o,refGroup:r,sha:i}=this.props;o(e,r,i,t)};render(){let{enableShowHideRefsOptions:e,hasActive:t,hasRefs:o,isActive:r,isGhostRef:i,getExternalIcon:n,groupIsHovered:s,isInUnsupportedRebase:l,onRefBeginDrag:a,onRefDragEnter:h,onRefDragLeave:c,onRefDrop:d,onRefCanDrag:u,onRefCanDrop:p,onRefEndDrag:f,isRefGroupIncluded:m,refGroup:g,refGroupContext:_,refIconsPosition:v,refMetadata:y,onHovered:S,onHideRefClick:R,sha:C,showRemoteNamesOnRefs:T,enabledRefMetadataTypes:w,translate:b,type:E,useColumnHeaderIcons:O}=this.props,I=e&&!t&&s&&!m,M=v===ey.E.LEFT,x=v===ey.E.RIGHT,N=G()("ref-node-wrapper","flex"),D={minWidth:0,marginLeft:3,height:$.$0},A=G()("ref-node","flex","items-center","p1",{"has-active":t,"dim-ref":!o&&s,"is-active":r}),H="";g.length>0&&(H=T&&g[0].fullName||g[0].name);let z=G()({"display-none":O&&!s&&x,mr1:x}),W=k().createElement(na,{className:z,name:H}),L=[],P=[],F=[],B=null,Z=new Set,U=new Set;g.forEach((e,t)=>{if(L.push(nh(n,e,b,t)),w.includes(em.fd)&&(e.refType===ey.z.HEAD||e.refType===ey.z.REMOTE)){let t=this.getIssueIconsAndTooltipsForRef(y,e,U);t&&F.push(...t)}if(w.includes(em.ki)&&e.refType===ey.z.REMOTE){let t=this.getPullRequestIconsAndTooltipsForRef(y,e,Z);t&&P.push(...t)}w.includes(em.RA)&&e.refType===ey.z.HEAD&&(B=this.getUpstreamIndicatorIconsAndTooltipsForRef(y,e))});let j=k().createElement("span",{className:G()("flex","items-center","ref-icons",{"is-active":r,"is-left-position":M})},[...L,...P,...F]),V=r?k().createElement(nt,{icon:k().createElement("span",{className:G()("ref-icon-current")},n("check")),tooltipId:"ref-icon-current",tooltipText:b("Ref-Current")}):null,Y=this.getContextForRefGroupIfExists(g,_),K=this.getContextForRefGroupIfExists(g,_,!0),q=I?k().createElement("span",{className:"flex ml-auto"},k().createElement(nt,{icon:k().createElement("span",{className:G()("mr1","button"),onClick:e=>R(e,g,C)},n("hide")),tooltipId:`ref-node-toggle-visibility-btn-${H}`,tooltipText:b("Hide")})):null;return k().createElement(nl.A,{canDrag:e=>u(e),canDrop:(e,t,o)=>p(e,t,o),className:N,"data-vscode-context":(0,ef.DO)(K),dndData:{commitType:E,isGhostRef:i,isInUnsupportedRebase:l,refGroup:g,sha:C},dndId:`DndRefNode_${g[0].id}`,onBeginDrag:(e,t)=>a(e,t),onDragEnter:(e,t,o)=>h(e,t,o),onDragLeave:(e,t,o)=>c(e,t,o),onDrop:(e,t,o)=>d(e,t,o),onEndDrag:(e,t,o)=>f(e,t,o),style:D},k().createElement("span",{className:A,"data-test-class":"ref-node-span","data-vscode-context":(0,ef.DO)(Y),onContextMenu:l?void 0:this.onContextMenu,onDoubleClick:l?void 0:this.onDoubleClick,onMouseDown:this.onClick,onMouseEnter:e=>S(e,g,C),style:{minWidth:"100%"}},V,M&&j,W,x&&j,B,q))}}class nd extends k().Component{headIconsRef=k().createRef();containerRef=k().createRef();popoverMenuTargetRef=k().createRef();constructor(e){super(e),this.state={showPopoverMenu:!1}}onHiddenRefsClick=e=>{let{showPopoverMenu:t}=this.state;e.stopPropagation(),this.setState({showPopoverMenu:!t})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),0===Object.keys(this.props.excludeRefsById).length&&this.onHiddenRefsClick(e)};compareGraphRefOpts(e,t){let o=e.name.localeCompare(t.name);return 0===o&&e.type===ey.z.REMOTE?-1:o}render(){let{columnSetting:e,enableResizer:t,enableShowHideRefsOptions:o,getExternalIcon:r,graphWidth:i,graphZones:n,graphZoneType:s,excludeRefsById:l,includeOnlyRefsById:a,isDraggable:h,onFilterColumnClick:c,onHover:d,onResize:u,onResizeEnd:p,onResizeFromPropChange:f,onResizeStart:m,onUnhover:g,onSettingsClick:_,rowsStatsLoading:v,settingsContext:y,showRemoteNamesOnRefs:S,translate:R}=this.props,{showPopoverMenu:C}=this.state,T=(0,ef.Et)(s,n);if(!T)return null;let w=(0,ef.z)(s,n),b=T.currentWidth-$.WQ,E=`${s}-header`,O=(0,ef.uQ)(T),I=e?.isFilterable||!1,M=O&&(I||o),x=G()("columns-btn",{"small-btn":M}),N=null,D=null;if(s===$.ui){let e=Object.entries(l),t=Object.values(a),i=t.length>0,n=i&&t.some(e=>e.type===ey.z.TAG),s=e.filter(e=>e[1].type===ey.z.TAG&&(!i||!n)||!a[e[0]]);s.length>0&&(D=s.sort((e,t)=>this.compareGraphRefOpts(e[1],t[1])).map((e,t)=>{let o=e[0],i=e[1];l[o].id=o;let n={name:i.name,refType:i.type,owner:i.owner,avatarUrl:i.avatarUrl},s=(S||"*"===n.name)&&n.refType===ey.z.REMOTE?`${n.owner}/${n.name}`:n.name;return k().createElement("li",{id:o,key:o,onClick:e=>this.onShowRefNodes(e,[l[o]],!0)},nh(r,n,R,t),k().createElement("span",{className:"ml1 text-ellipsis"},s))}),N=o?k().createElement("div",{className:G()(x,"right","text-normal","button",C?"active":null),ref:this.popoverMenuTargetRef},k().createElement(nt,{icon:k().createElement("span",{onClick:this.onHiddenRefsClick},r("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:R("GraphHeader-HiddenRefs-btn")})):null)}let A=I?k().createElement("div",{className:G()(x,"columns-filter","right","fs-1",{filtering:e?.isFilterActive||!1})},k().createElement(nt,{icon:k().createElement("span",{className:"columns-filter-icon text-disabled hover-icon",id:`${s}-header-filter`,onClick:e=>c(e,s),style:{height:$.bo,marginBottom:$.Qb}},r("filter")),tooltipId:"header-columns-filter",tooltipText:R("GraphHeader-Filter")})):null,H=!O&&s===$.Sq&&v?k().createElement("span",{className:G()(x,"spinner")},r("loading")):null,z=k().createElement(i1,{container:this.containerRef.current,onHide:C?()=>{this.setState({showPopoverMenu:!1})}:void 0,placement:C?"bottom":void 0,rootClose:C,show:C,target:this.popoverMenuTargetRef.current},k().createElement(ix,{className:G()({"is-last-header":w}),id:"opts-popover",style:{display:C?"block":"none"}},k().createElement("ul",null,D))),W=w&&_?k().createElement("div",{className:G()("columns-btn","columns-settings","right","fs-1"),"data-vscode-context":(0,ef.DO)(y)},k().createElement(nt,{icon:k().createElement("span",{className:"columns-settings-icon text-disabled hover-icon",onClick:e=>_(e,i)},r("settings")),tooltipId:"header-columns-settings",tooltipText:R("GraphHeader-EditColumns")})):null,L=this.headIconsRef?.current?.clientWidth??0,P=k().createElement("div",{className:"header-columns-icons",ref:this.headIconsRef},W,H,A,N),F=O?k().createElement(k().Fragment,null,k().createElement("div",{className:G()(x,"justify-start",{ml1:!M}),style:{width:b-L},title:R(T.headerLabelUntranslated)},r((0,ef.n0)(s))),P):k().createElement(k().Fragment,null,k().createElement("div",{className:"text-disabled text-ellipsis",style:{height:$.bo,overflow:"hidden",width:b-L}},k().createElement("span",{className:"fs-1 ml1 font-monospace"},R(T.headerLabelUntranslated))),P),B=k().createElement("div",{onMouseEnter:d,onMouseLeave:g},z,F),Z=G()("panel-bg0","graph-header",{"is-draggable":h,"is-last-header":w});return w?k().createElement("div",{className:Z,id:E,key:E,style:{minWidth:b,transform:"translate3d(0, 0, 0)",zIndex:2}},B):k().createElement("div",{className:Z,id:E,key:E,style:{display:"flex",minWidth:T.currentWidth,transform:"translate3d(0, 0, 0)",width:T.currentWidth,zIndex:2}},k().createElement(oN,{className:Z,enable:t,handleStyles:{right:{right:0}},height:$.bo,id:`${s}HeaderColumn`,onResize:u?e=>u(T,e):void 0,onResizeEnd:p?e=>p(T,e):void 0,onResizeFromPropChange:f?e=>f(T,e):void 0,onResizeStart:m?e=>m(T,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:R,width:T.currentWidth,widthConstraints:(0,ef.qC)(s,n,i)},B))}}class nu extends k().PureComponent{canDrag=!1;isDraggable=e=>this.canDrag&&e.props.isDraggable;isDroppable=(e,t)=>e.props.graphZoneType!==t?.props?.graphZoneType&&(!t||t.props.isDroppable);onDrop=(e,t)=>{this.props.onColumnReOrdered&&this.props.onColumnReOrdered(e.props.graphZoneType,t?t.props.graphZoneType:null)};onZoneHover=()=>{this.canDrag=!0};onZoneUnHover=()=>{this.canDrag=!1};render(){let{columnsSettings:e,dragAppendToContainer:t,enableResizer:o,enableShowHideRefsOptions:r,getExternalIcon:i,excludeRefsById:n,headerContext:s,includeOnlyRefsById:l,onFilterColumnClick:a,onPopupGraphHeaderContextMenu:h,onGraphZoneResize:c,onGraphZoneResizeEnd:d,onGraphZoneResizeFromPropChange:u,onSettingsClick:p,onToggleRefNodesShown:f,graphZones:m,repoPath:g,rowsStatsLoading:_,showRemoteNamesOnRefs:v,translate:y,width:S,height:R,settingsContext:C}=this.props,T=k().createElement("div",{className:"panel-bg0",style:{height:$.bo,marginBottom:$.Qb,marginLeft:-$.xY,minWidth:$.xY+$.WQ}});return k().createElement("div",{className:"graph-header flex","data-vscode-context":(0,ef.DO)(s),onContextMenu:h?e=>h(e,S):void 0,style:{height:$.bo,marginBottom:$.Qb}},T,k().createElement(oF,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,mirrorContainer:t,onDrop:this.onDrop},m.map(t=>k().createElement(nd,{columnSetting:e[t.type],enableResizer:o,enableShowHideRefsOptions:r,excludeRefsById:n,getExternalIcon:i,graphHeight:R,graphWidth:S,graphZones:m,graphZoneType:t.type,id:`${t.type}Header`,includeOnlyRefsById:l,isDraggable:t.isCustomizable,isDroppable:t.isCustomizable,key:`${t.type}Header`,onFilterColumnClick:a,onHover:this.onZoneHover,onResize:c,onResizeEnd:d,onResizeFromPropChange:u,onSettingsClick:p,onToggleRefNodesShown:f,onUnhover:this.onZoneUnHover,repoPath:g,rowsStatsLoading:_,settingsContext:C,showRemoteNamesOnRefs:v,translate:y}))))}}function np(e){let{constraints:{max:t,min:o},stats:{files:r,additions:i,deletions:n},getExternalIcon:s,isLastColumn:l,isRowSelected:a,verticalScrollWidth:h,zoneWidth:c}=e,d=i+n,u=Math.max(o,Math.min(t,d)),p=l?h+$.KA:$.KA;d<=u&&(p+=$.KA);let f=Math.max($.MT,u/t*(c-52-p));return k().createElement("div",{className:G()("changes-zone",a?"selected":null)},k().createElement("span",{className:"changes-files",style:{width:52}},k().createElement("span",{className:"mr1"},s("files")),k().createElement("span",{className:"mr1"},r>999?"999+":r)),k().createElement("span",{className:"changes-bar",style:{width:f}},i?k().createElement("div",{className:"changes-sub-bar added",style:{width:i/d*f}}):null,n?k().createElement("div",{className:"changes-sub-bar deleted",style:{width:n/d*f}}):null))}let nf=G()("absolute","top-0","right-0","bottom-0","left-0","time-line"),nm=G()(nf,"z2");var ng=function({z2:e}){return k().createElement("div",{className:e?nm:nf,style:{height:2}})};let n_=k().createElement("div",{className:"color-strip height-100",style:{width:2}}),nv={},ny={};class nS extends k().PureComponent{render(){let{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,columnForColoring:r,context:i,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:a,hasAvatars:h,highlightRowsOnRefHover:c,isDimmedMergeCommitRow:d,isHighlighted:u,isHovering:p,isLastColumn:f,isInUnsupportedRebase:m,isMissingHoveredRefGroup:g,isSelected:_,numGraphColumns:v,onContextMenu:y,onClickCommit:S,onDoubleClickCommit:R,rowContext:C,sha:T,showColorStrip:w,showConflictIcon:b,showTimeline:E,setAsCurrentlyHoveredGraphCommit:O,style:I,title:M,type:x,verticalScrollWidth:N,zoneWidth:D}=this.props,A=function(e,t){let o=e+t.toString(),r=nv[o];return r||(r=G()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),nv[o]=r),r}(x,p),H=function(e,t,o,r,i,n=!1,s=!1,l=!1,a=!1){let h=`${e}${t}${r}${o}${n}${s}${l}${a}${i}`,c=ny[h];return c||(c=G()(`column-${t%i+1}`,"graph-row","height-100-percent","flex",e,{"is-selected":r},{"is-highlighted":o},{"dimmed-row":a&&!o||n&&(s||l)}),ny[h]=c),c}(x,r??o,u,_,v,g,c,s,d),z=E?k().createElement(ng,null):null;return k().createElement("div",{className:A,"data-vscode-context":(0,ef.DO)(C),onContextMenu:m?void 0:e=>y(e,a,T),onDoubleClick:e=>R(e,a,T),onMouseDown:e=>S(e,a,T),onMouseEnter:e=>O(e,a,T,n),onMouseLeave:t=>e(t,a,T,n),style:I},z,k().createElement("div",{className:H,"data-vscode-context":(0,ef.DO)(i)},w?n_:null,b?k().createElement("span",{className:G()("ml2")},l("warning")):null,k().createElement("span",{className:G()("graph-zone","width-100","flex-1"),style:{lineHeight:`${$.$0}px`,...f&&{width:D-N},...h&&{marginLeft:5}},title:M},t)))}}var nR=(e,t)=>{let{processedRows:o,rowStatsConstraints:r,getExternalIcon:i,highlightRowsOnRefHover:n,isInUnsupportedRebase:s,numGraphColumns:l,clearCurrentlyHoveredGraphCommit:a,currentlyHoveredCommitSha:h,dimMergeCommits:c,dimRowsOfSelectedCommit:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,rowsStats:m,setAsCurrentlyHoveredGraphCommit:g,suppressNonRefRowTooltips:_}=e,v=new ef.n$(e);return({rowIndex:e,style:y})=>{let S=t(e),R=o[e],{sha:C,type:T,contexts:w}=R,b=w?.stats||void 0,E=w?.row||void 0,O=m?.[C],I=[O?.files?`${O.files} files changed`:"",O?.additions?`${O.additions} lines added`:"",O?.deletions?`${O.deletions} lines deleted`:""].filter(Boolean).join(", ");I=T!==j.bY?I:"";let M=$.Sq,x=v.isColumnFollowingGraphColumn(M),N=v.isLastColumn(M),D=v.getZoneWidth(M),A=v.getVerticalScrollWidth(M);return k().createElement(nS,{clearCurrentlyHoveredGraphCommit:a,column:R.column,columnForColoring:R.columnForColoring,context:b,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:d,getExternalIcon:i,graphZoneType:M,highlightRowsOnRefHover:n,isDimmedMergeCommitRow:T===j.t$&&c,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:s,isLastColumn:N,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:S,numGraphColumns:l,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:E,setAsCurrentlyHoveredGraphCommit:g,sha:C,showColorStrip:x,showTimeline:v.hasTimeline(e),style:y,title:_?void 0:I,type:T,verticalScrollWidth:A,zoneWidth:D},O&&T!==j.bY?k().createElement(np,{constraints:r,getExternalIcon:i,isLastColumn:N,isRowSelected:v.isSelected(e),stats:O,verticalScrollWidth:A,zoneWidth:D}):null)}};function nC(e){let t=(e||"").trim().toUpperCase();if(0===t.length)return"?";let o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function nT(e,t){return e&&t?`${e} <${t}>`:e||t||""}class nw extends k().Component{constructor(e){super(e),this.state={tooltipText:""}}getDefaultAvatar=(e,t,o)=>{let{authorInitials:r,column:i,context:n,cssVariables:s,style:l,fontSize:a,minWidth:h,size:c,title:d=""}=this.props,u=void 0!==i&&s[(0,ee.$6)(i)]||$.BP,p=U(u.trim()),f={alignItems:"center",backgroundColor:u,backgroundSize:c,color:p,display:"flex",fontSize:`${a}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:h,top:o,width:t,...l};return k().createElement("div",{className:this.getAvatarClassName(),"data-vscode-context":(0,ef.DO)(n),style:f,title:d},r?r.toUpperCase():"")};ensureTooltipText=()=>{let{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};getAvatarClassName(){return G()("avatar","gravatar","rad2",this.props.className)}render(){let{tooltipText:e}=this.state,{avatarUrl:t,context:o,style:r,height:i,minWidth:n,size:s,title:l="",tooltip:a,top:h,useAuthorInitialsForAvatars:c,width:d}=this.props,u=i||s,p=d||s,f=h||$.lH/2-u/2,m={top:f,minWidth:n,...r},g=this.getDefaultAvatar(u,p,f),_=c?g:k().createElement("span",null,k().createElement(i8,{avatarClassName:this.getAvatarClassName(),avatarStyle:m,context:o,height:u,hint:l,size:s,url:t,width:p},this.getDefaultAvatar(u,p,f)));return a?k().createElement(i4,{delay:250,onEnter:this.ensureTooltipText,overlay:k().createElement(iD,{className:"gk-graph",id:"graph-gravatar-tooltip"},e),placement:"top",trigger:["hover","focus"]},_):_}}var nb=(e,t)=>{let{avatarUrlByEmail:o,clearCurrentlyHoveredGraphCommit:r,cssVariables:i,currentlyHoveredCommitSha:n,dimMergeCommits:s,dimRowsOfSelectedCommit:l,getExternalIcon:a,highlightRowsOnRefHover:h,processedRows:c,isInUnsupportedRebase:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,numGraphColumns:m,setAsCurrentlyHoveredGraphCommit:g,suppressNonRefRowTooltips:_,useAuthorInitialsForAvatars:v}=e,y=new ef.n$(e);return({rowIndex:e,style:S})=>{let R=t(e),C=c[e],{author:T,email:w,message:b,sha:E,type:O,contexts:I}=C,M=$.fx,x=y.getActiveGraphZone(M),N=O!==j.bY?T:void 0,D=O!==j.bY?nT(T,w):void 0,A=I?.author||void 0,H=I?.row||void 0,z=y.isColumnFollowingGraphColumn(M),W=y.isLastColumn(M),L=y.getZoneWidth(M),P=(L<=x.minimumWidth||x?.mode===$.eB.Rich)&&O!==j.bY;if(P){let e=v?void 0:o[w];N=k().createElement(nw,{authorInitials:nC(T),avatarUrl:e,className:G()("node",j.oB,"z6"),column:C.column,context:I?.avatar||void 0,cssVariables:i,fontSize:10,height:$.n0,size:$.CF,tooltip:_?void 0:()=>{let e=T&&""!==T.trim()&&"Unknown"!==T?nT(T,w):w,t=Q(q(b||"")),o="";if(0===t.length)o=e;else{t.unshift({email:w,name:T});for(let e=0;e<t.length;e+=1){let r=t[e];o+=nT(r.name,r.email),e<t.length-1&&(o+=", ")}}return o},useAuthorInitialsForAvatars:v,width:$.n0})}return k().createElement(nS,{clearCurrentlyHoveredGraphCommit:r,column:C.column,columnForColoring:C.columnForColoring,context:A,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:l,getExternalIcon:a,graphZoneType:M,hasAvatars:P,highlightRowsOnRefHover:h,isDimmedMergeCommitRow:O===j.t$&&s,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:d,isLastColumn:W,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:R,numGraphColumns:m,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:H,setAsCurrentlyHoveredGraphCommit:g,sha:E,showColorStrip:z,showTimeline:y.hasTimeline(e),style:S,title:_?void 0:D,type:O,verticalScrollWidth:y.getVerticalScrollWidth(M),zoneWidth:L},N)}},nE=(e,t)=>{let{processedRows:o,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:n,numGraphColumns:s,formatCommitDateTime:l,clearCurrentlyHoveredGraphCommit:a,dimMergeCommits:h,dimRowsOfSelectedCommit:c,currentlyHoveredCommitSha:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,setAsCurrentlyHoveredGraphCommit:m,suppressNonRefRowTooltips:g}=e,_=new ef.n$(e);return({rowIndex:e,style:v})=>{let y=t(e),S=o[e],{date:R,sha:C,type:T,contexts:w}=S,b=R&&T!==j.bY?l(R,j.N.RowEntry):void 0,E=R&&T!==j.bY?l(R,j.N.Tooltip):void 0,O=w?.date||void 0,I=w?.row||void 0,M=$.$A,x=_.isColumnFollowingGraphColumn(M),N=_.isLastColumn(M),D=_.getZoneWidth(M),A=_.getVerticalScrollWidth(M);return k().createElement(nS,{clearCurrentlyHoveredGraphCommit:a,column:S.column,columnForColoring:S.columnForColoring,context:O,currentlyHoveredCommitSha:d,dimRowsOfSelectedCommit:c,getExternalIcon:r,graphZoneType:M,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:T===j.t$&&h,isHighlighted:_.isHighlighted(e),isHovering:_.isHovering(e),isInUnsupportedRebase:n,isLastColumn:N,isMissingHoveredRefGroup:_.isMissingHoveredRefGroup(e),isSelected:_.isSelected(e),key:y,numGraphColumns:s,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:I,setAsCurrentlyHoveredGraphCommit:m,sha:C,showColorStrip:x,showTimeline:!1,style:v,title:g?void 0:E,type:T,verticalScrollWidth:A,zoneWidth:D},b)}};let nO={type:i5().string,tooltip:i5().bool,as:i5().elementType},nI=z.forwardRef(({as:e="div",className:t,type:o="valid",tooltip:r=!1,...i},n)=>(0,ih.jsx)(e,{...i,ref:n,className:G()(t,`${o}-${r?"tooltip":"feedback"}`)}));nI.displayName="Feedback",nI.propTypes=nO;let nM=z.createContext({}),nx=z.forwardRef(({bsPrefix:e,type:t,size:o,htmlSize:r,id:i,className:n,isValid:s=!1,isInvalid:l=!1,plaintext:a,readOnly:h,as:c="input",...d},u)=>{let{controlId:p}=(0,z.useContext)(nM);return e=iw(e,"form-control"),(0,ih.jsx)(c,{...d,type:t,size:r,ref:u,readOnly:h,id:i||p,className:G()(n,a?`${e}-plaintext`:e,o&&`${e}-${o}`,"color"===t&&`${e}-color`,s&&"is-valid",l&&"is-invalid")})});nx.displayName="FormControl";let nN=Object.assign(nx,{Feedback:nI});var nD=o(350);let nA=e=>{switch(e){case nD.types.ADDED:return"added";case nD.types.MODIFIED:return"modified";case nD.types.DELETED:return"deleted";case nD.types.RENAMED:return"renamed";default:return null}},nH=e=>{switch(e){case nD.types.ADDED:return"color-green";case nD.types.MODIFIED:return"color-orange";case nD.types.DELETED:return"color-red";case nD.types.RENAMED:return"color-blue";default:return null}},nG=e=>{switch(e){case nD.types.ADDED:return"CommitDiffSection-FileAdded";case nD.types.MODIFIED:return"CommitDiffSection-FileModified";case nD.types.DELETED:return"CommitDiffSection-FileDeleted";case nD.types.RENAMED:return"CommitDiffSection-FileRenamed";default:return null}};class nz extends k().Component{render(){let{fileDiffType:e,getExternalIcon:t,translate:o}=this.props;if(!e)return null;let r=nA(e),i=nH(e),n=nG(e),s=G()("fs-1",i,"mr1");return k().createElement("span",{className:s,title:o(n)},r&&t(r))}}let{ADDED:nk,DELETED:nW,MODIFIED:nL,RENAMED:nP}=nD.types,nF={[nk]:"CommitDiffSection-NFilesAdded",[nW]:"CommitDiffSection-NFilesDeleted",[nL]:"CommitDiffSection-NFilesModified",[nP]:"CommitDiffSection-NFilesRenamed"};var nB=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:r,translate:i}){let n,s;let l=r?e:i(nF[t],e);return r&&(n={fontSize:$.Gu,marginRight:$.Ql},s={fontSize:$.ro,margin:`0px ${$.tl}px 0px 0px`}),k().createElement("span",{className:"tiny-files-readout",style:n},k().createElement(nz,{fileDiffType:t,getExternalIcon:o,style:s,translate:i}),k().createElement("span",{className:"tiny-files-readout-text"},l))},nZ=function({diffStats:e,fileNodeListStyle:t,getExternalIcon:o,translate:r}){let{types:i}=nD;if(!e||!Object.values(e).some(e=>!!e))return k().createElement("span",null);let n=e.modified?k().createElement(nB,{count:e.modified,diffType:i.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,s=e.added?k().createElement(nB,{count:e.added,diffType:i.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,l=e.deleted?k().createElement(nB,{count:e.deleted,diffType:i.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,a=e.renamed?k().createElement(nB,{count:e.renamed,diffType:i.RENAMED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,h=t?{marginLeft:$.yX}:null;return k().createElement("span",{className:"summary",style:h},n,s,l,a)};class nU extends k().Component{textWidthRef=k().createRef();wrapperRef=k().createRef();static defaultProps={style:{},value:""};componentDidMount(){this.wrapperRef?.current&&(this.wrapperRef.current.style.width="0px")}componentDidUpdate(){this.textWidthRef?.current&&this.wrapperRef?.current&&(this.wrapperRef.current.style.width=`${Number(this.textWidthRef.current.offsetWidth)+35}px`)}componentWillUnmount(){this.props.onBlur&&this.props.onBlur()}onWipKeyDown(e){e.stopPropagation()}render(){let{clearCurrentlyHoveredGraphCommit:e,currentlyHoveredCommitSha:t,getExternalIcon:o,graphZoneType:r,isCommitting:i,isHovering:n,isSelected:s,onBlur:l,onClickCommit:a,onContextMenu:h,onFocus:c,onMessageChange:d,setAsCurrentlyHoveredGraphCommit:u,sha:p,style:f,translate:m,value:g,workDirStats:_}=this.props,v=G()("graph-zone-column","pt3","pb3","pointer","height-100-percent","grow-3","graph-row-wrapper",j.bY,{"is-hovering":n}),y=G()("column-1","graph-row","flex",{"is-selected":s}),S=k().createElement(nZ,{diffStats:_,getExternalIcon:o,translate:m}),R=k().createElement("div",{className:"work-dir-input",ref:this.wrapperRef},k().createElement(nN,{"data-test-class":"work-dir-input-field",disabled:i,onBlur:e=>l(e),onChange:e=>d(e.target.value),onContextMenu:e=>h(e,r,p),onFocus:e=>c(e),onKeyDown:e=>this.onWipKeyDown(e),placeholder:m("WorkDirMessageInput-WIPPlaceholder"),type:"text",value:g}),k().createElement("div",{className:"text-width","data-test-class":"work-dir-input-message",ref:this.textWidthRef},g));return k().createElement("div",{className:v,onMouseEnter:e=>u(e,r,p,t),onMouseLeave:o=>e(o,r,p,t),style:f},k().createElement("div",{className:y,"data-test-class":"work-dir-message-row-div",onMouseDown:e=>a(e,r,p)},R,S))}}var nj=(e,t)=>{let{dimMergeCommits:o,dimRowsOfSelectedCommit:r,processedRows:i,translate:n,getExternalIcon:s,graphCommitDescDisplayMode:l,highlightRowsOnRefHover:a,isInUnsupportedRebase:h,numGraphColumns:c,isCommitting:d,pendingCommitMessageSummary:u,workDirStats:p,onBlurWipNodeInput:f,onFocusWipNodeInput:m,onMessageChange:g,clearCurrentlyHoveredGraphCommit:_,currentlyHoveredCommitSha:v,onCommitContextMenu:y,onClickCommit:S,onDoubleClickCommit:R,setAsCurrentlyHoveredGraphCommit:C,suppressNonRefRowTooltips:T,wipMessageEditable:w}=e,b=new ef.n$(e);return({rowIndex:e,style:E})=>{let O=t(e),I=i[e],{displaySummary:M,displayBody:x,sha:N,type:D,contexts:A,message:H}=I,G=A?.message||void 0,z=A?.row||void 0,W=$.d4,L=b.isColumnFollowingGraphColumn(W),P=b.isLastColumn(W),F=b.getZoneWidth(W),B=b.getVerticalScrollWidth(W),Z=b.isHovering(e),U=D===j.bY&&void 0!==p&&Object.keys(p).length>0,V=U&&!w?k().createElement(nZ,{diffStats:p,getExternalIcon:s,translate:n}):null,Y=l===$.FQ.ALWAYS||l===$.FQ.ON_HOVER&&Z,K=D!==j.bY||w?k().createElement(k().Fragment,null,k().createElement("span",{className:"message-zone--summary"},M),Y&&x?k().createElement("span",{className:"message-zone--body"},x):null):k().createElement("span",{style:{display:"flex",alignItems:"stretch",textOverflow:"ellipsis"}},Y?M:null,V);return U&&w?k().createElement(nU,{clearCurrentlyHoveredGraphCommit:_,currentlyHoveredCommitSha:v,getExternalIcon:s,graphZoneType:W,isCommitting:d,isHovering:b.isHovering(e),isSelected:b.isSelected(e),key:O,onBlur:f,onClickCommit:S,onContextMenu:y,onFocus:m,onMessageChange:g,setAsCurrentlyHoveredGraphCommit:C,sha:N,style:E,translate:n,value:u,workDirStats:p}):k().createElement(nS,{clearCurrentlyHoveredGraphCommit:_,column:I.column,columnForColoring:I.columnForColoring,context:G,currentlyHoveredCommitSha:v,dimRowsOfSelectedCommit:r,getExternalIcon:s,graphZoneType:W,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:D===j.t$&&o,isHighlighted:b.isHighlighted(e),isHovering:Z,isInUnsupportedRebase:h,isLastColumn:P,isMissingHoveredRefGroup:b.isMissingHoveredRefGroup(e),isSelected:b.isSelected(e),key:O,numGraphColumns:c,onClickCommit:S,onContextMenu:y,onDoubleClickCommit:R,rowContext:z,setAsCurrentlyHoveredGraphCommit:C,sha:N,showColorStrip:L,showConflictIcon:D===j.l2||D===j.gL,showTimeline:b.hasTimeline(e),style:E,title:T?void 0:H,type:D,verticalScrollWidth:B,zoneWidth:F},K)}},n$=(e,t)=>{let{processedRows:o,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:n,numGraphColumns:s,clearCurrentlyHoveredGraphCommit:l,currentlyHoveredCommitSha:a,dimMergeCommits:h,dimRowsOfSelectedCommit:c,onCommitContextMenu:d,onClickCommit:u,onDoubleClickCommit:p,setAsCurrentlyHoveredGraphCommit:f,shaLength:m,suppressNonRefRowTooltips:g}=e,_=new ef.n$(e);return({rowIndex:e,style:v})=>{let y=t(e),S=o[e],{sha:R,type:C,contexts:T}=S,w=Y(R,m),b=T?.sha||void 0,E=T?.row||void 0,O=$.AR,I=_.isColumnFollowingGraphColumn(O),M=_.isLastColumn(O),x=_.getZoneWidth(O),N=_.getVerticalScrollWidth(O);return k().createElement(nS,{clearCurrentlyHoveredGraphCommit:l,column:S.column,columnForColoring:S.columnForColoring,context:b,currentlyHoveredCommitSha:a,dimRowsOfSelectedCommit:c,getExternalIcon:r,graphZoneType:O,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:C===j.t$&&h,isHighlighted:_.isHighlighted(e),isHovering:_.isHovering(e),isInUnsupportedRebase:n,isLastColumn:M,isMissingHoveredRefGroup:_.isMissingHoveredRefGroup(e),isSelected:_.isSelected(e),key:y,numGraphColumns:s,onClickCommit:u,onContextMenu:d,onDoubleClickCommit:p,rowContext:E,setAsCurrentlyHoveredGraphCommit:f,sha:R,showColorStrip:I,showTimeline:_.hasTimeline(e),style:v,type:C,verticalScrollWidth:N,zoneWidth:x},C!==j.bY?k().createElement("span",{className:"font-monospace pointer",title:g?void 0:w},w):null)}};function nV({hasRefs:e,isActiveSha:t,left:o,type:r,width:i}){let n=G()("ref-line","z4",{"is-active":t});return e&&[j.oB,j.t$,j.l2].includes(r)?k().createElement("hr",{className:n,style:{left:o,width:i}}):null}function nY({graphZoneModeConstants:{RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:e},hasRefs:t,isActiveSha:o,nodeOffset:r,type:i}){return k().createElement(nV,{hasRefs:t,isActiveSha:o,left:0,type:i,width:r+(i===j.t$?e:0)})}function nK({className:e,marginLeft:t}){return k().createElement("div",{className:G()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},k().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}let nq=(e,t,o,r)=>o+t*e+r/2;function nX({column:e,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:t,COMMIT_NODE_DIAMETER:o,COMMIT_ZONE_GUTTER_WIDTH:r}}){return k().createElement(nK,{className:"z1",marginLeft:nq(e,t,r,o)})}function nQ(){return k().createElement(nK,{marginLeft:0})}let nJ=({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:r,column:i,context:n,cssVariables:s,graphZoneModeConstants:l,left:a,message:h,opacity:c,suppressNonRefRowTooltips:d,type:u,useAuthorInitialsForAvatars:p})=>k().createElement(nw,{authorInitials:t,avatarUrl:r,className:G()("node",u,"z6"),column:i,context:n,cssVariables:s,fontSize:10,height:l.COMMIT_NODE_DIAMETER,size:l.COMMIT_ZONE_AVATAR_DIAMETER,style:{left:a,opacity:c},tooltip:d?void 0:()=>{let t=o&&""!==o.trim()&&"Unknown"!==o?nT(o,e):e,r=Q(q(h||"")),i="";if(0===r.length)i=t;else{r.unshift({email:e,name:o});for(let e=0;e<r.length;e+=1){let t=r[e];i+=nT(t.name,t.email),e<r.length-1&&(i+=", ")}}return i},top:l.COMMIT_NODE_TOP_OFFSET,useAuthorInitialsForAvatars:p,width:l.COMMIT_NODE_DIAMETER}),n0=(e,t,o,r,i,n,s=!1)=>{let l={height:n.COMMIT_MERGE_NODE_DIAMETER,left:o+n.COMMIT_MERGE_NODE_LEFT_OFFSET,marginTop:n.COMMIT_MERGE_NODE_TOP_OFFSET,opacity:r,width:n.COMMIT_MERGE_NODE_DIAMETER},a=G()("node",i,"z6"),h=k().createElement(iD,{className:"gk-graph",id:"graph-merge-node-tooltip"},nT(t,e)),c=k().createElement("div",{className:a,"data-test-class":"tree-row-commit-node",style:l});return s?c:k().createElement(i4,{delay:250,overlay:h,placement:"top",trigger:["hover","focus"]},c)},n1=(e,t,o,r,i,n,s,l=!1,a,h=!1)=>{let c;let d={height:a.COMMIT_NODE_DIAMETER,left:r,marginTop:a.COMMIT_NODE_TOP_OFFSET,opacity:i,width:a.COMMIT_NODE_DIAMETER};l&&(d.borderWidth=1);let u=G()("gk-graph","node",s,"z6",{compact:l});c=s===j.OZ?n("Stash"):s===j.bY?n("Graph-WorkInProgress"):nT(o,t);let p=k().createElement("div",{className:u,"data-test-class":"tree-row-commit-node",style:d},s!==j.OZ||l?null:k().createElement("span",null,e("stash"))),f=k().createElement(iD,{className:"gk-graph",id:"graph-other-node-tooltip"},c);return h?p:k().createElement(i4,{delay:250,overlay:f,placement:"top",trigger:["hover","focus"]},p)};class n2 extends k().PureComponent{render(){let{authorEmail:e,authorName:t,getExternalIcon:o,graphZoneModeConstants:r,left:i,opacity:n,suppressNonRefRowTooltips:s,translate:l,type:a}=this.props;return(t||e)&&a===j.oB?r.IS_COMPACT?n0(e,t,i,n,j.t$,r,s):nJ(this.props):a===j.t$||a===j.l2||a===j.gL?n0(e,t,i,n,a,r,s):n1(o,e,t,i,n,l,a,r.IS_COMPACT,r,s)}}class n5 extends k().Component{render(){let{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:r,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:i,COMMIT_ZONE_GUTTER_WIDTH:n,COMMIT_ZONE_LINE_WIDTH:s,IS_COMPACT:l}}=this.props,a=function(e,t,o,r,i,n,s,l){let a=function(e,t,o,r){let i="";for(let n=0;n<=t;n++){let{passThrough:t,starting:s,ending:l}=e[n]??{};i=`${i}_${ed(n,o,s?.type,r)}_${ed(n,o,l?.type,r)}_${eu(n,t?.type,r)}`}return i}(e,t,o,l),h=eN[a];if(h)return h;let c="";for(let a=0;a<=t;a+=1){let t=e[a];if(!t)continue;let{passThrough:h,starting:d,ending:u}=t;c+=(d?function(e,t,o,r,i,n,s,l){let a=ed(e,t,o,l),h=ex[a];return h||(h=t===e?function(e,t,o,r,i,n,s){let l=ec(o,e,n,s);return l.x1=es(t,r,i,s),l.x2=es(t,r,i,s),l.y1=$.kU/2,l.y2=$.kU,eh(l)}(r[e],t,o,i,n,s,l):function(e,t,o,r,i,n,s,l){let a=ec(r,e,s,l),h=t<o?-$.nf:$.nf,c={...a};c.x1=es(o,i,n,l),c.x2=es(o,i,n,l),c.y1=$.kU-$.kj,c.y2=$.kU;let d={...a};return d.x1=es(o,i,n,l)+h,d.x2=es(t,i,n,l),d.y1=$.kU/2,d.y2=$.kU/2,`<g>${eO(e,t<o?180:270,t<o?270:0,r,es(o,i,n,l)+h,$.kU-$.kj,s,l)}${eh(c)}${eh(d)}</g>`}(r[e],t,e,o,i,n,s,l),ex[a]=h),h}(a,o,d.type,r,i,n,s,l):"")+(h?function(e,t,o,r,i,n,s){let l=eu(e,t,s),a=eM[l];if(a)return a;let h=es(e,r,i,s),c=ec(t,o[e],n,s);return c.x1=h,c.x2=h,c.y1=0,c.y2=$.kU,a=eh(c),eM[l]=a,a}(a,h.type,r,i,n,s,l):"")+(u?function(e,t,o,r,i,n,s,l){let a=ed(e,t,o,l),h=eI[a];return h||(h=t===e?function(e,t,o,r,i,n,s){let l=ec(o,e,n,s);return l.x1=es(t,r,i,s),l.x2=es(t,r,i,s),l.y1=0,l.y2=$.kU/2,eh(l)}(r[e],t,o,i,n,s,l):function(e,t,o,r,i,n,s,l){let a=ec(r,e,s,l),h=t<o?-$.nf:$.nf,c={...a};c.x1=es(o,i,n,l),c.x2=es(o,i,n,l),c.y1=0,c.y2=$._b;let d={...a};return d.x1=es(o,i,n,l)+h,d.x2=es(t,i,n,l),d.y1=$.kU/2,d.y2=$.kU/2,`<g>${eh(c)}${eO(e,t>o?0:90,t>o?90:180,r,es(o,i,n,l)+h,$._b,s,l)}${eh(d)}</g>`}(r[e],t,e,o,i,n,s,l),eI[a]=h),h}(a,o,u.type,r,i,n,s,l):"")}return h=`url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${c}</g></svg>')`,eN[a]=h,h}(o,t,r,e,i,n,s,l);return k().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:a}})}}function n6({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:r="",left:i,width:n}){return k().createElement("div",{className:G()("absolute","top-0","bottom-0","z3",r),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:i,width:n}},o)}function n3({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:r}){return k().createElement(n6,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:r},t?k().createElement(ng,{z2:!0}):null)}function n4({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:r,width:i}){return k().createElement(n6,{boxShadowAlpha:e,boxShadowLeft:-5,left:r+t-i,width:i},o?k().createElement(ng,{z2:!0}):null,k().createElement(nQ,null))}class n7 extends k().PureComponent{render(){let{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:r,clearCurrentlyHoveredGraphCommit:i,column:n,columnColorByColumn:s,columnForColoring:l,commitZoneWidth:a,cssVariables:h,currentlyHoveredCommitSha:c,edgeColumnMax:d,edges:u,hasRefs:p,hasTimeline:f,getExternalIcon:m,graphZoneModeConstants:g,isActiveSha:_,isInUnsupportedRebase:v,isLastColumn:y,isSelected:S,leftGutterBoxShadowAlpha:R,leftGutterWidth:C,message:T,nodeOffset:w,nodeOpacity:b,numGraphColumns:E,onContextMenu:O,onClickCommit:I,onDoubleClickCommit:M,rightGutterBoxShadowAlpha:x,rightGutterWidth:N,rowContext:D,scrollLeft:A,setAsCurrentlyHoveredGraphCommit:H,sha:z,shouldShowRefLine:W,suppressNonRefRowTooltips:L,style:P,translate:F,type:B,useAuthorInitialsForAvatars:Z,zoneContext:U}=this.props,j=(l??n)%E+1,V=G()("relative","commit-zone","height-100-percent","pt3",B,`column-${j}`,{"is-selected":S,"has-active":_}),Y=f?k().createElement(ng,{z2:!0}):null,K=k().createElement("div",{className:V,"data-vscode-context":(0,ef.DO)(U),onContextMenu:v?void 0:e=>O(e,$.md,z),onDoubleClick:e=>M(e,$.md,z),onMouseDown:e=>I(e,$.md,z),onMouseEnter:e=>H(e,$.md,z,c),onMouseLeave:e=>i(e,$.md,z,c),style:{...P,...y&&{width:"100%"}}},Y,k().createElement(n3,{boxShadowAlpha:R,hasTimeline:f,scrollLeft:A,width:C}),W?k().createElement(nY,{graphZoneModeConstants:g,hasRefs:p,isActiveSha:_,nodeOffset:w,type:B}):null,k().createElement(n2,{authorEmail:e,authorInitials:nC(t),authorName:t,avatarUrl:r,column:n,context:o,cssVariables:h,getExternalIcon:m,graphZoneModeConstants:g,left:w,message:T,opacity:b,suppressNonRefRowTooltips:L,translate:F,type:B,useAuthorInitialsForAvatars:Z}),k().createElement(nX,{column:n,graphZoneModeConstants:g}),k().createElement(n5,{columnColorByColumn:s,edgeColumnMax:d,edges:u,graphZoneModeConstants:g,nodeColumn:n}),k().createElement(n4,{boxShadowAlpha:x,commitZoneWidth:a,hasTimeline:f,scrollLeft:A,width:N}));return D?k().createElement("div",{"data-vscode-context":(0,ef.DO)(D)},K):K}}var n9=function(e,t){let{avatarUrlByEmail:o,onMissingAvatar:r,clearCurrentlyHoveredGraphCommit:i,columnColorByColumn:n,cssVariables:s,currentlyHoveredCommitSha:l,processedRows:a,getExternalIcon:h,graphZoneModeConstants:c,isInUnsupportedRebase:d,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,nodeOffsetByColumn:_,nodeOpacityByColumn:v,numGraphColumns:y,rightGutterBoxShadowAlpha:S,rightGutterWidth:R,setAsCurrentlyHoveredGraphCommit:C,scrollLeft:T,shouldShowRefLine:w,suppressNonRefRowTooltips:b,translate:E,useAuthorInitialsForAvatars:O}=e,I=new ef.n$(e);return({rowIndex:e,style:M})=>{let x;let N=t(e),D=a[e],A=$.md,H=I.getZoneWidth(A),{email:G,author:z,contexts:W,message:L,sha:P,type:F}=D,B=D.column,Z=W?.graph||void 0,U=W?.avatar||void 0,j=W?.row||void 0;O||(x=o[G])||r(G,P);let V=I.isLastColumn(A);return k().createElement(n7,{authorEmail:G,authorName:z,avatarContext:U,avatarUrl:x,clearCurrentlyHoveredGraphCommit:i,column:B,columnColorByColumn:n,columnForColoring:D.columnForColoring,commitZoneWidth:H,cssVariables:s,currentlyHoveredCommitSha:l,edgeColumnMax:D.edgeColumnMaxes,edges:D.edges,getExternalIcon:h,graphZoneModeConstants:c,hasRefs:D.hasRefs||!1,hasTimeline:I.hasTimeline(e),isActiveSha:I.rowContainsCurrentHeadRef(D),isInUnsupportedRebase:d,isLastColumn:V,isSelected:I.isSelected(e),key:N,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,message:L,nodeOffset:_[B],nodeOpacity:v[B],numGraphColumns:y,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rightGutterBoxShadowAlpha:S,rightGutterWidth:R,rowContext:j,scrollLeft:T,setAsCurrentlyHoveredGraphCommit:C,sha:P,shouldShowRefLine:w,style:M,suppressNonRefRowTooltips:b,translate:E,type:F,useAuthorInitialsForAvatars:O,zoneContext:Z})}};let n8=z.forwardRef(({controlId:e,as:t="div",...o},r)=>{let i=(0,z.useMemo)(()=>({controlId:e}),[e]);return(0,ih.jsx)(nM.Provider,{value:i,children:(0,ih.jsx)(t,{...o,ref:r})})});function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function st(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n8.displayName="FormGroup";var so=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),o=function(){};return window.addEventListener("testPassiveEventSupport",o,t),window.removeEventListener("testPassiveEventSupport",o,t),e}},sr=(void 0===u&&(u=0),function(){return++u}),si={},sn={},ss=["touchstart","touchmove"];function sl(e,t){var o={};return -1!==ss.indexOf(t)&&A&&(o.passive=!e.props.preventDefault),o}class sa extends k().PureComponent{handleClickOutside(){let{sha:e,shorthand:t,type:o,data:r}=this.props.createRefFormData;this.props.onCancel(t,e,o,r)}constructor(e){super(e);let{createRefFormData:t,formatRefShorthand:o}=this.props,{sha:r,shorthand:i,type:n,data:s}=t;this.state={currentShorthand:o(i,r,n,s),initShorthand:i}}static getDerivedStateFromProps(e,t){let{createRefFormData:o,formatRefShorthand:r}=e,{currentShorthand:i,initShorthand:n}=t,{sha:s,shorthand:l,type:a,data:h}=o,c=l!==n;return c&&r(l,s,a,h)!==i?{currentShorthand:r(l,s,a,h),initShorthand:l}:c?{currentShorthand:i,initShorthand:l}:null}onInputChange(e){let t=e||"";if(e){let{sha:e,type:o,data:r}=this.props.createRefFormData;t=this.props.formatRefShorthand(t,e,o,r)}this.setState({currentShorthand:t}),this.props.onRefShorthandChange?.(t)}render(){let{createRefFormData:e,isRefShorthandValid:t,onCancel:o,onContextMenu:r,onRefCreate:i,refZoneWidth:n,style:s,translate:l}=this.props,{currentShorthand:a}=this.state,{data:h,sha:c,type:d}=e,u=l(d===ey.z.TAG?"RefZone-EnterTagName":"RefZone-EnterBranchName");return k().createElement("div",{className:"create-ref","data-testid":"create-ref",style:{...s,minWidth:n,width:n}},k().createElement(n8,null,k().createElement(nN,{autoFocus:!0,"data-testid":"create-ref-form-control",isInvalid:a.length>0&&!t(a,c,d,h),onChange:e=>this.onInputChange(e.target?.value),onContextMenu:e=>r(e,a,c,d,h),onKeyDown:e=>{if(e.stopPropagation(),"Escape"===e.key){o(a,c,d,h);return}c&&"Enter"===e.key&&i(a,c,d,h)},placeholder:u,type:"text",value:a})))}}var sh=(g=sa.displayName||sa.name||"Component",m=f=function(e){function t(t){var o;return(o=e.call(this,t)||this).__outsideClickHandler=function(e){if("function"==typeof o.__clickOutsideHandlerProp){o.__clickOutsideHandlerProp(e);return}var t=o.getInstance();if("function"==typeof t.props.handleClickOutside){t.props.handleClickOutside(e);return}if("function"==typeof t.handleClickOutside){t.handleClickOutside(e);return}throw Error("WrappedComponent: "+g+" lacks a handleClickOutside(event) function for processing outside click events.")},o.__getComponentNode=function(){var e=o.getInstance();return"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,tl.findDOMNode)(e)},o.enableOnClickOutside=function(){if("undefined"!=typeof document&&!sn[o._uid]){void 0===A&&(A=so()),sn[o._uid]=!0;var e=o.props.eventTypes;e.forEach||(e=[e]),si[o._uid]=function(e){null!==o.componentNode&&(o.props.preventDefault&&e.preventDefault(),o.props.stopPropagation&&e.stopPropagation(),!(o.props.excludeScrollbar&&(document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY)))&&function(e,t,o){if(e===t)return!0;for(;e.parentNode||e.host;){var r;if(e.parentNode&&((r=e)===t||(r.correspondingElement?r.correspondingElement.classList.contains(o):r.classList.contains(o))))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,o.componentNode,o.props.outsideClickIgnoreClass)===document&&o.__outsideClickHandler(e)},e.forEach(function(e){document.addEventListener(e,si[o._uid],sl(st(o),e))})}},o.disableOnClickOutside=function(){delete sn[o._uid];var e=si[o._uid];if(e&&"undefined"!=typeof document){var t=o.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e,sl(st(o),t))}),delete si[o._uid]}},o.getRef=function(e){return o.instanceRef=e},o._uid=sr(),o}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,se(t,e);var o=t.prototype;return o.getInstance=function(){if(sa.prototype&&!sa.prototype.isReactComponent)return this;var e=this.instanceRef;return e.getInstance?e.getInstance():e},o.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(p&&"function"==typeof p.handleClickOutside&&(this.__clickOutsideHandlerProp=p.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw Error("WrappedComponent: "+g+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},o.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},o.componentWillUnmount=function(){this.disableOnClickOutside()},o.render=function(){var e=this.props;e.excludeScrollbar;var t=function(e,t){if(null==e)return{};var o,r,i={},n=Object.keys(e);for(r=0;r<n.length;r++)t.indexOf(o=n[r])>=0||(i[o]=e[o]);return i}(e,["excludeScrollbar"]);return sa.prototype&&sa.prototype.isReactComponent?t.ref=this.getRef:t.wrappedRef=this.getRef,t.disableOnClickOutside=this.disableOnClickOutside,t.enableOnClickOutside=this.enableOnClickOutside,(0,z.createElement)(sa,t)},t}(z.Component),f.displayName="OnClickOutside("+g+")",f.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:p&&p.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},f.getClass=function(){return sa.getClass?sa.getClass():sa},m),sc=function({hasActive:e,overflowCount:t}){return k().createElement("span",{className:G()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)},sd=(0,z.forwardRef)(function({style:e,children:t,column:o,numGraphColumns:r,onMouseEnter:i,onMouseLeave:n},s){return k().createElement("div",{className:G()("gk-graph","ref-zone",`column-${o%r+1}`),ref:s},k().createElement("ul",{onMouseEnter:i,onMouseLeave:n,style:{...e,listStyle:"none",padding:0,zIndex:1}},t))}),su=function({enabledRefMetadataTypes:e,column:t,columnForColoring:o,context:r,enableShowHideRefsOptions:i,targetRef:n,hasActive:s,hasRefs:l,getExternalIcon:a,includeOnlyRefsById:h,includeOnlyRemotesByName:c,isGhostRef:d,isHovered:u,isInUnsupportedRebase:p,numGraphColumns:f,onMissingRefMetadata:m,refGroupContexts:g,refGroupsByName:_,refIconsPosition:v,refMetadata:y,refNodeHovered:S,sha:R,showRemoteNamesOnRefs:C,showContextMenuForGroupedRef:T,onClickRef:w,onDoubleClickRef:b,onToggleRefNodesShown:E,onRefBeginDrag:O,onRefCanDrag:I,onRefCanDrop:M,onRefDragEnter:x,onRefDragLeave:N,onRefDrop:D,onRefEndDrag:A,translate:H,type:G,useColumnHeaderIcons:W}){let L=(e,t,o)=>{E(e,t.map(e=>({id:(0,ef.$V)(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})),!1,o)},P=_&&_.length>$.gi?_.slice(0,$.gi):_,F=P[0],B=u?P:[F],Z=$.lE+(F?.length||0)*$.RJ+(s?$.RJ:0),U=Object.values(h),j=U.length>0&&U.some(e=>e.type===ey.z.TAG),[V,Y]=(0,z.useState)(!1),K=B.map(t=>{let o=t[0],r=g?.[o.name]||void 0,n=t.some(e=>{let t=(0,ef.$V)(e);switch(e.refType){case ey.z.TAG:return j&&!!h[t];case ey.z.REMOTE:return!!h[t]||e.owner&&c[e.owner];default:return!!h[t]}}),f=k().createElement(nc,{enabledRefMetadataTypes:e,enableShowHideRefsOptions:i,getExternalIcon:a,groupIsHovered:u,hasActive:s,hasRefs:l,isActive:o.isCurrentHead,isGhostRef:d,isInUnsupportedRebase:p,isRefGroupIncluded:n,key:`ref-node-${o.fullName||o.name}`,onClick:w,onContextMenu:T,onDoubleClick:b,onHideRefClick:L,onHovered:S,onMissingRefMetadata:m,onRefBeginDrag:O,onRefCanDrag:I,onRefCanDrop:M,onRefDragEnter:x,onRefDragLeave:N,onRefDrop:D,onRefEndDrag:A,refGroup:t,refGroupContext:r,refIconsPosition:v,refMetadata:y,sha:R,showRemoteNamesOnRefs:C,translate:H,type:G,useColumnHeaderIcons:W});return V?k().createElement("li",{key:f.key},f):f});return k().createElement(k().Fragment,null,!V&&k().createElement("span",{"data-vscode-context":(0,ef.DO)(r),style:{minWidth:Z}},K),k().createElement(i1,{onEntered:()=>setTimeout(()=>Y(!0)),onExit:()=>Y(!1),placement:"right-start",show:u,target:n.current},k().createElement(sd,{column:o??t,numGraphColumns:f},K)))};let sp={};class sf extends k().PureComponent{popoverTargetRef=(0,z.createRef)();static defaultProps={style:{}};componentDidUpdate(e){!this.props.hasRefs&&this.props.isSingleSelected&&!e.isSingleSelected&&this.props.hoveredRefZoneSha===this.props.sha&&(this.props.refZoneUnhovered(),this.props.hoveredRefGroup&&this.props.refNodeUnhovered(void 0,this.props.hoveredRefGroup,this.props.sha))}onCustomToggleRefNodesShown=(e,t,o,r)=>{this.props.onToggleRefNodesShown(e,t,o,r),this.props.refZoneUnhovered()};render(){let{enabledRefMetadataTypes:e,column:t,columnForColoring:o,context:r,enableShowHideRefsOptions:i,showGhostRefsOnRowHover:n,hasActive:s,hasRefs:l,hasTimeline:a,hoveredRefGroup:h,hoveredRefZoneSha:c,getExternalIcon:d,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:_,onMissingRefMetadata:v,onRefBeginDrag:y,onRefCanDrag:S,onRefCanDrop:R,onRefDragEnter:C,onRefDragLeave:T,onRefDrop:w,onRefEndDrag:b,refGroupContexts:E,refGroupsByName:O,refIconsPosition:I,refMetadata:M,refNodeHovered:x,refNodeUnhovered:N,refZoneHovered:D,refZoneUnhovered:A,sha:H,shouldShowRefLine:z,showColorStrip:W,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:P,style:F,translate:B,type:Z,useColumnHeaderIcons:U,width:j}=this.props,V=c===H,Y={minWidth:j,width:j},K={...F,...Y},q=a?k().createElement(ng,null):null,X=O.length,Q=e=>{D(H),X?x(e,O[0],H):h&&N(e,h,H)},J=e=>{A(),h&&N(e,h,H)},ee=(0,ef.xJ)((e,t)=>{J(e),y(e,t)}),et=X>0&&!l&&n,eo=function(e,t,o,r,i,n){let s=`${e}${t}${o}${r}${i}${n}`,l=sp[s];return l||(l=G()(`column-${t%i+1}`,"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":n,"has-active":r,z6:o,z1:!o}),sp[s]=l),l}(Z,o??t,V,s,m,et),er=k().createElement("div",{className:"color-strip height-100",style:{width:2}});if(!X)return k().createElement("div",{className:eo,onMouseEnter:Q,onWheel:J,style:K},W?er:null,q);let ei={minWidth:0,overflow:"hidden",width:j-$.Zk},en=X-1,es=en>0&&!V?k().createElement(sc,{hasActive:s,overflowCount:en}):null;return k().createElement("div",{className:eo,onMouseEnter:Q,onMouseLeave:J,onWheel:J,style:K},k().createElement("div",{ref:this.popoverTargetRef}),W?er:null,q,k().createElement("div",{className:"flex",style:ei},k().createElement(su,{column:t,columnForColoring:o,context:r,enabledRefMetadataTypes:e,enableShowHideRefsOptions:i,getExternalIcon:d,hasActive:s,hasRefs:l,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isGhostRef:et,isHovered:V,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:_,onMissingRefMetadata:v,onRefBeginDrag:ee,onRefCanDrag:S,onRefCanDrop:R,onRefDragEnter:(e,t,o)=>{V||o?.sha!==H||Q(e),C(e,t,o)},onRefDragLeave:T,onRefDrop:w,onRefEndDrag:b,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:E,refGroupsByName:O,refIconsPosition:I,refMetadata:M,refNodeHovered:x,sha:H,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:P,targetRef:this.popoverTargetRef,translate:B,type:Z,useColumnHeaderIcons:U}),es),l&&z?k().createElement("div",{className:"absolute left-0 flex z1",style:Y},k().createElement(nV,{hasRefs:!0,isActiveSha:s,left:$.mE,type:Z,width:"100%"})):null)}}var sm=(e,t)=>{let{createRefFormData:o,formatRefShorthand:r,enableShowHideRefsOptions:i,enabledRefMetadataTypes:n,isRefShorthandValid:s,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:a,onDoubleClickRef:h,processedRows:c,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isInUnsupportedRebase:p,getExternalIcon:f,hoveredRefGroup:m,hoveredRefZoneSha:g,numGraphColumns:_,onClickRef:v,onMissingRefMetadata:y,onShowContextMenuForGroupedRef:S,onRefBeginDrag:R,onRefCanDrag:C,onRefCanDrop:T,onRefCreate:w,onRefCreateCancel:b,onRefCreateContextMenu:E,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:M,onRefEndDrag:x,onRefNodeHovered:N,onRefNodeUnhovered:D,onRefShorthandChange:A,onRefZoneHovered:H,onRefZoneUnhovered:G,onToggleRefNodesShown:z,refIconsPosition:W,refMetadataById:L,shouldShowRefLine:P,translate:F}=e,B=new ef.n$(e);return({rowIndex:e,style:Z})=>{let U=t(e),j=c[e],V=$.ui,Y=B.getZoneWidth(V),K=B.isHovering(e),{sha:q,type:X,hasRefs:Q,contexts:J}=j,ee=J?.ref||void 0,et=J?.refGroups||void 0,eo=B.isSingleSelected(e),er=(l||Q)&&(Q||K||eo)?B.getGraphRefGroupsByNameForRow(e):[],ei=B.isColumnFollowingGraphColumn(V),en=B.shouldUseColumnHeaderIcons(V);return o?.sha===q?k().createElement(sh,{createRefFormData:o,formatRefShorthand:r,isRefShorthandValid:s,key:U,onCancel:b,onContextMenu:E,onRefCreate:w,onRefShorthandChange:A,refZoneWidth:Y,style:Z,translate:F}):k().createElement(sf,{column:j.column,columnForColoring:j.columnForColoring,context:ee,enabledRefMetadataTypes:n,enableShowHideRefsOptions:i,getExternalIcon:f,hasActive:B.rowContainsCurrentHeadRef(j),hasRefs:Q||!1,hasTimeline:B.hasTimeline(e),hoveredRefGroup:m,hoveredRefZoneSha:g,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isInUnsupportedRebase:p,isSingleSelected:eo,key:U,numGraphColumns:_,onClickRef:v,onDoubleClickRef:h,onMissingRefMetadata:y,onRefBeginDrag:R,onRefCanDrag:C,onRefCanDrop:T,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:M,onRefEndDrag:x,onToggleRefNodesShown:z,refGroupContexts:et,refGroupsByName:er,refIconsPosition:W,refMetadata:L,refNodeHovered:N,refNodeUnhovered:D,refZoneHovered:H,refZoneUnhovered:G,sha:q,shouldShowRefLine:P,showColorStrip:ei,showContextMenuForGroupedRef:S,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:a,style:Z,translate:F,type:X,useColumnHeaderIcons:en,width:Y})}},sg=(e,t)=>{let{translate:o,processedRows:r}=e,i=G()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),n=new ef.n$(e);return({rowIndex:e,style:s})=>{let l=t(e),a=G()("graph-row","height-100-percent","flex"),h=n.hasTimeline(e),c=r[e],d=c.contexts?.row||void 0,u=c.timeLineEntry?.label||"",p=c.timeLineEntry?.value||0,f=h?k().createElement(ng,null):null,m=h?k().createElement("span",{className:"time-line-message-container"},k().createElement("span",{className:"time-line-message"},o(u,p))):null;return k().createElement("div",{className:i,"data-vscode-context":(0,ef.DO)(d),key:l,style:s},f,k().createElement("div",{className:a,"data-vscode-context":(0,ef.DO)(d)},m))}};class s_ extends k().Component{graphComponentRef=k().createRef();graphContainerRef=k().createRef();resizeObserver;lastNavSha=null;currentSha=null;isRefContextMenuShown=!1;isMounted=!1;selectedShas=new Set;lastFocusedSha;processedGraphRowBySha={};shaByRefId={};childrenBySha={};scrollToSha;headSha;headUpstreamSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];rowStatsConstraints={min:0,max:0};shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};hasMergeNodeChildBySha={};reserverInfoBySha={};columnsUsed={};rowsStats;workDirStats=$.pi;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};highlightedShas={};searchMode="normal";scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZoneModeConstants=(0,ef.jz)();graphZonesByType={};graphZoneOrdering=[$.ui,$.md,$.d4,$.fx,$.Sq,$.$A,$.AR];clientHeight=0;missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};markerRowIndices={};branchUpstreamRowIndices=[];downstreamsByUpstream={};timelinesInterval;constructor(e){for(let[t,o]of(super(e),this.resizeObserver=new ResizeObserver(e=>e.forEach(e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))),Object.entries(e.isSelectedBySha||{})))o&&(this.selectedShas.add(t),this.lastFocusedSha=t);this.excludeByType=this.props.excludeByType||{},this.excludeRefsById=this.props.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),this.includeOnlyRefsById=this.props.includeOnlyRefsById||{},this.downstreamsByUpstream=this.props.downstreamsByUpstream||{},this.highlightedShas=this.props.highlightedShas||{},this.searchMode=this.props.searchMode||"normal",this.rowsStats=this.props.rowsStats||this.rowsStats,this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices(["selection","highlights"]);let t=(0,ee.yr)(this.props.cssVariables);this.graphZoneModeConstants=(0,ef.jz)(this.props.columnsSettings?.[$.md]?.mode),this.maybeSortGraphZoneOrderingFromSettings(this.props.columnsSettings),this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,createRefFormData:this.props.createRefFormData,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!1,enableShowHideRefsOptions:this.props.enableShowHideRefsOptions||!1,highlightRowsOnRefHover:this.props.highlightRowsOnRefHover||!1,showGhostRefsOnRowHover:this.props.showGhostRefsOnRowHover||!1,showRemoteNamesOnRefs:this.props.showRemoteNamesOnRefs||!1,enabledRefMetadataTypes:this.props.enabledRefMetadataTypes||[],enabledScrollMarkerTypes:this.props.enabledScrollMarkerTypes||[],graphCommitDescDisplayMode:this.props.graphCommitDescDisplayMode||$.FQ.ALWAYS,graphZones:this.initializeGraphZones(this.props.columnsSettings,this.graphZoneOrdering,580),hasMoreCommits:this.props.hasMoreCommits||!1,height:this.graphHeight,highlightedShas:this.props.highlightedShas,hoveredRefGroup:void 0,hoveredRefZoneSha:void 0,isLoadingRows:this.props.isLoadingRows||!1,numGraphColumns:this.getNumGraphColumns(t),pendingCommitMessageSummary:this.props.pendingCommitMessageSummary||"",processedRows:[...this.orderedGraphRows],refIconsPosition:this.getRefIconsPositionOrDefault(this.props.refIconsPosition),refMetadataById:this.props.refMetadataById,rowsStats:this.rowsStats,rowsStatsLoading:this.props.rowsStatsLoading||!1,useAuthorInitialsForAvatars:this.props.useAuthorInitialsForAvatars||!1,scrollLeft:this.getScrollLeft(),scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex(),scrollTop:this.getScrollTop(),shaLength:this.props.shaLength,themeOpacityFactor:this.props.themeOpacityFactor||$.K3.dark,width:this.graphWidth,workDirStats:this.workDirStats}}componentDidMount(){this.isMounted=!0,this.resizeObserver.observe(this.graphComponentRef.current),window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp),window.addEventListener("blur",this.onWindowBlur);let e=this.getSelectedShas();e.length>0&&this.selectCommits(e,!1,!0)}UNSAFE_componentWillReceiveProps(e){let t=!1,o=!1,r=!1;if(this.props.searchMode!==e.searchMode&&(this.searchMode=e.searchMode||"normal",o=!0),this.props.highlightedShas!==e.highlightedShas){this.setState({highlightedShas:e.highlightedShas}),this.highlightedShas=e.highlightedShas||{},"filter"===this.searchMode&&(o=!0);let t=[];Object.keys(e.highlightedShas||{}).forEach(o=>{e.highlightedShas[o]&&this.processedGraphRowBySha[o]?.rowIndex!==void 0&&t.push(this.processedGraphRowBySha[o].rowIndex)}),this.markerRowIndices={...this.markerRowIndices,highlights:t}}if((this.props.isSelectedBySha!==e.isSelectedBySha||this.props.highlightedShas!==e.highlightedShas)&&this.selectCommits(e.isSelectedBySha?Object.keys(e.isSelectedBySha):[],!1,!0),this.props.excludeByType!==e.excludeByType&&(this.excludeByType=e.excludeByType||{},e.graphRows?.length&&(o=!0)),this.props.excludeRefsById!==e.excludeRefsById&&(this.excludeRefsById=e.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.includeOnlyRefsById!==e.includeOnlyRefsById&&(this.includeOnlyRefsById=e.includeOnlyRefsById||{},this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.themeOpacityFactor!==e.themeOpacityFactor&&this.setState({themeOpacityFactor:e.themeOpacityFactor}),this.props.dimMergeCommits!==e.dimMergeCommits&&this.setState({dimMergeCommits:e.dimMergeCommits||!1}),this.props.highlightRowsOnRefHover!==e.highlightRowsOnRefHover&&this.setState({highlightRowsOnRefHover:e.highlightRowsOnRefHover||!1}),this.props.showGhostRefsOnRowHover!==e.showGhostRefsOnRowHover&&this.setState({showGhostRefsOnRowHover:e.showGhostRefsOnRowHover||!1}),this.props.showRemoteNamesOnRefs!==e.showRemoteNamesOnRefs&&this.setState({showRemoteNamesOnRefs:e.showRemoteNamesOnRefs||!1}),this.props.enabledRefMetadataTypes!==e.enabledRefMetadataTypes&&this.setState({enabledRefMetadataTypes:e.enabledRefMetadataTypes||[]}),this.props.enabledScrollMarkerTypes!==e.enabledScrollMarkerTypes&&this.setState({enabledScrollMarkerTypes:e.enabledScrollMarkerTypes||[]}),this.props.graphCommitDescDisplayMode!==e.graphCommitDescDisplayMode&&this.setState({graphCommitDescDisplayMode:e.graphCommitDescDisplayMode||$.FQ.ALWAYS}),this.props.isContainerWindowFocused!==e.isContainerWindowFocused&&this.dimRowsOfSelectedCommit(!1),this.props.downstreamsByUpstream!==e.downstreamsByUpstream&&(this.downstreamsByUpstream=e.downstreamsByUpstream||{},e.graphRows?.length&&(o=!0)),this.props.graphRows!==e.graphRows||this.props.cssVariables!==e.cssVariables||o){this.cleanEdgeCaches();let i=(0,ee.yr)(e.cssVariables);r=!0,this.setState({columnColorByColumn:this.getColumnColorByColumn(i),cssVariablesWithDefaults:i,numGraphColumns:this.getNumGraphColumns(i)}),this.cleanupSelections(),t=!0,(e.graphRows?.length<this.props.graphRows?.length||o)&&(this.lastLazyLoadHeight=0)}if(this.props.useAuthorInitialsForAvatars!==e.useAuthorInitialsForAvatars&&this.setState({useAuthorInitialsForAvatars:e.useAuthorInitialsForAvatars}),this.props.shaLength!==e.shaLength&&this.setState({shaLength:e.shaLength}),(this.props.hasMoreCommits!==e.hasMoreCommits||this.props.onShowMoreCommits!==e.onShowMoreCommits)&&this.setState({hasMoreCommits:e.hasMoreCommits||!1},()=>this.loadMoreCommitsIfNecessary(this.graphHeight,this.state.hasMoreCommits)),this.props.isLoadingRows!==e.isLoadingRows&&this.setState({isLoadingRows:e.isLoadingRows||!1}),this.props.rowsStats!==e.rowsStats&&(this.rowsStats=e.rowsStats,this.updateRowStatsConstraints(),this.setState({rowsStats:e.rowsStats})),this.props.rowsStatsLoading!==e.rowsStatsLoading&&this.setState({rowsStatsLoading:e.rowsStatsLoading||!1}),this.props.workDirStats!==e.workDirStats&&(this.workDirStats=e.workDirStats||$.pi,(!(0,ef.X1)(this.props.workDirStats)&&(0,ef.X1)(e.workDirStats)||(0,ef.X1)(this.props.workDirStats)&&!(0,ef.X1)(e.workDirStats))&&(r=!0),this.setState({workDirStats:this.workDirStats})),this.props.avatarUrlByEmail!==e.avatarUrlByEmail&&(this.setState({avatarUrlByEmail:e.avatarUrlByEmail||{}}),this.requestedMissingAvatars={}),this.props.refIconsPosition!==e.refIconsPosition&&this.setState({refIconsPosition:this.getRefIconsPositionOrDefault(e.refIconsPosition)}),this.props.refMetadataById!==e.refMetadataById&&(this.setState({refMetadataById:e.refMetadataById}),this.requestedMissingRefsMetadata={},this.updateMarkerRowIndices(["pullRequests"],e)),this.props.columnsSettings!==e.columnsSettings){if(e.columnsSettings?.[$.md]?.mode!==this.props.columnsSettings?.[$.md]?.mode){this.cleanEdgeCaches(),this.graphZoneModeConstants=(0,ef.jz)(e.columnsSettings?.[$.md]?.mode),this.updateCommitZoneContentWidthFromChange();let o=this.graphZonesByType[$.md];o.currentWidth=o.contentWidth,o.preferredWidth=o.contentWidth,o.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,o.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.loadEdgesBySha(),t=!0}e.columnsSettings&&(this.updateZonesFromSettings(e.columnsSettings),t=!0)}if(this.props.contexts!==e.contexts&&this.setState({contexts:e.contexts}),this.props.pendingCommitMessageSummary!==e.pendingCommitMessageSummary&&this.setState({pendingCommitMessageSummary:e.pendingCommitMessageSummary||""}),this.props.enableShowHideRefsOptions!==e.enableShowHideRefsOptions&&this.setState({enableShowHideRefsOptions:e.enableShowHideRefsOptions}),this.props.createRefFormData!==e.createRefFormData&&(e.createRefFormData?.sha&&this.selectCommits([e.createRefFormData?.sha],!1,!0),this.setState({createRefFormData:e.createRefFormData})),r){this.processRows(e.graphRows);let t=(0,ee.yr)(e.cssVariables);this.setState({processedRows:[...this.orderedGraphRows],columnColorByColumn:this.getColumnColorByColumn(t)})}if(t){this.updateCommitZoneContentWidthFromChange();let e=this.getOrderedActiveGraphZones();this.expandLastZoneMinWidthForScrollbar(e),this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),this.setState({graphZones:e})}}componentWillUnmount(){this.isMounted=!1,this.clearTimelinesInterval(),window.removeEventListener("keydown",this.onWindowKeyDown),window.removeEventListener("keyup",this.onWindowKeyUp),window.removeEventListener("blur",this.onWindowBlur),this.resizeObserver.disconnect()}focus(){this.graphContainerRef?.current?.focus()}getRefIconsPositionOrDefault(e){return e||ey.E.LEFT}onGraphVisibleRowsUpdatedThrottled=(0,ef.nF)(()=>this.onGraphVisibleRowsUpdated(),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,o,r)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[o],r)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onFilterColumnClick=(e,t)=>{this.props.onFilterColumnClick&&this.props.onFilterColumnClick(e,t)};onCurrentlyHoveredGraphCommit=(e,t,o,r)=>{r!==o&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,r)=>{r&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{let o=this.graphZoneOrdering.indexOf(e),r=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<r&&(r-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(r,0,e);let i={};this.graphZoneOrdering.forEach((e,t)=>{this.graphZonesByType[e].order=t,i[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])}),this.setState({graphZones:this.initializeGraphZones(i,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(i)};onGraphZoneResize=(0,ef.xJ)((e,t)=>{if(t?.width){let o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}});onGraphZoneResizeEnd=(0,ef.xJ)((e,t)=>{if(t?.width){let o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!0),this.setState({graphZones:o})}this.props.onColumnResized&&this.props.onColumnResized(e.type,this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e.type]))});onPopupGraphHeaderContextMenu=(e,t)=>{this.props.onPopupGraphHeaderContextMenu&&this.props.onPopupGraphHeaderContextMenu(e,t)};onSettingsClick=(e,t)=>{this.props.onSettingsClick&&this.props.onSettingsClick(e,t)};onMessageChange=e=>{this.setState({pendingCommitMessageSummary:e}),this.props.onMessageChange&&this.props.onMessageChange(e)};onRefBeginDrag=(e,t)=>{this.props.onRefBeginDrag&&this.props.onRefBeginDrag(e,t)};onRefCanDrag=e=>!!this.props.onRefCanDrag&&this.props.onRefCanDrag(e);onRefCanDrop=(e,t,o)=>!!this.props.onRefCanDrop&&this.props.onRefCanDrop(e,t,o);onRefCreate=(e,t,o,r)=>{this.props.onRefCreate&&this.props.onRefCreate(e,t,o,r)};onRefCreateCancel=(e,t,o,r)=>{this.props.onRefCreateCancel&&this.props.onRefCreateCancel(e,t,o,r)};onRefCreateContextMenu=(e,t,o,r,i)=>{this.props.onRefCreateContextMenu&&this.props.onRefCreateContextMenu(e,t,o,r,i)};onRefDragEnter=(e,t,o)=>{this.props.onRefDragEnter&&this.props.onRefDragEnter(e,t,o)};onRefDragLeave=(e,t,o)=>{this.props.onRefDragLeave&&this.props.onRefDragLeave(e,t,o)};onRefDrop=(e,t,o)=>{this.props.onRefDrop&&this.props.onRefDrop(e,t,o)};onRefEndDrag=(e,t,o)=>{this.props.onRefEndDrag&&this.props.onRefEndDrag(e,t,o)};onZoneRowClick(e,t,o){if(0===e.button){let{enableMultiSelection:t,shiftSelectMode:r}=this.props,i=this.isMacOSPlatform();if(t&&(!i&&e.ctrlKey||i&&e.metaKey))this.selectCommits([o],!0,!1);else if(t&&"simple"===r&&e.shiftKey){if(this.lastFocusedSha){if(this.lastFocusedSha!==o){let e=this.getShiftSelectRange(o);e.length&&this.selectCommits(e,!0,!1)}}else this.selectCommits([o],!1,!1)}else this.selectCommits([o],!1,!1)}}getShiftSelectRange(e){if(!this.lastFocusedSha||!this.selectedShas.size)return[e];let t=this.processedGraphRowBySha[this.lastFocusedSha].rowIndex,o=Array.from(this.selectedShas).map(e=>this.processedGraphRowBySha[e].rowIndex),r=Math.min(...o),i=Math.max(...o),n=i>t,s=this.selectedShas.size>1,l=this.processedGraphRowBySha[e].rowIndex,a=[];if(t<l)for(let e=t;e<=l;e++)s&&n?(l<=i&&e!==l||l>i&&e!==i)&&a.push(this.orderedGraphRows[e].sha):e!==t&&a.push(this.orderedGraphRows[e].sha);else for(let e=t;e>=l;e--)s&&!n?(l>=r&&e!==l||l<r&&e!==r)&&a.push(this.orderedGraphRows[e].sha):e!==t&&a.push(this.orderedGraphRows[e].sha);return a}onClickRef=(e,t,o,r)=>{this.onZoneRowClick(e,$.ui,o),this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],r),this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onClickCommit=(e,t,o)=>{if(this.onZoneRowClick(e,t,o),this.props.onClickGraphRow){let r=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,r)}this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){let r=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,r)}};onWindowKeyUp=e=>{switch(e.key){case ep.e.metaKey:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!1);break;case ep.e.controlKey:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!1)}};onWindowBlur=e=>{let{hoveredRefGroup:t,hoveredRefZoneSha:o}=this.state;t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered(),this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{switch(e.key){case ep.e.metaKey:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!0);break;case ep.e.controlKey:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!0);break;default:this.state.dimRowsOfSelectedCommit&&this.dimRowsOfSelectedCommit(!1)}};onKeyUp=e=>{this.lastNavSha&&this.isNavigationKey(e.key)&&this.currentSha!==this.lastNavSha&&(this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null)};onKeyDown=e=>{switch(null===this.lastNavSha&&this.isNavigationKey(e.key)&&(this.lastNavSha=this.currentSha),e.key){case ep.e.arrowUpKey:this.selectPrevious(e.shiftKey);break;case ep.e.arrowDownKey:this.selectNext(e.shiftKey);break;case"H":case"h":this.selectHead(e.shiftKey)}};isNavigationKey(e){return[ep.e.arrowUpKey,ep.e.arrowDownKey].some(t=>t===e)}loadSelectedGraphRow(e){let t=this.processedGraphRowBySha[e];t&&this.props.onLoadSelectedGraphRow&&this.props.onLoadSelectedGraphRow(t)}onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||(0,ef.SY)(this.selectedShas,o)||this.processedGraphRowBySha[o]?.hasRefs)&&(this.props.onGraphRefNodeHovered&&this.props.onGraphRefNodeHovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:[...t]}))};onRefNodeUnhovered=(e,t,o)=>{this.isRefContextMenuShown||(this.props.onGraphRefNodeUnhovered&&this.props.onGraphRefNodeUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:void 0}))};onRefShorthandChange=e=>{let{createRefFormData:t}=this.state;this.setState({createRefFormData:{...t,shorthand:e}})};onRefZoneHovered=e=>{this.setState({hoveredRefZoneSha:e})};onRefZoneUnhovered=()=>{this.isRefContextMenuShown||this.setState({hoveredRefZoneSha:void 0})};onShowMoreCommits=()=>{this.props.onShowMoreCommits&&this.shouldFireShowMoreCommits&&(this.props.onShowMoreCommits(),this.shouldFireShowMoreCommits=!1,setTimeout(()=>{this.shouldFireShowMoreCommits=!0},250))};onScrollForZone=(e,t,o,r,i)=>{this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),this.loadMoreCommitsIfNecessary(r,i)};loadMoreCommitsIfNecessary(e,t){if(!this.props.onShowMoreCommits||!t||!e||e<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;let o=this.scrollTop+e,r=this.orderedGraphRows.length*$.yB;o>r-$.By&&o>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(o,r-1),this.onShowMoreCommits())}onScrollToRowCausedUpdateForFirstColumn=(e,t)=>{let o={...t};if(e===$.md&&t.scrollTop){let t=this.getHorizontalScrollHeight(e,this.state.cssVariablesWithDefaults);o.scrollTop-=t+$.ar}this.setScroll(e,o),this.props.onScrollToRowCausedUpdateForFirstColumn?.(e,o)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){let r=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,r)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){this.isRefContextMenuShown=!0,this.onRefZoneHovered(o);let r=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,r),setTimeout(()=>{this.isRefContextMenuShown=!1},250)}};selectCommits(e,t,o){if(!t)for(let t of this.selectedShas)e.includes(t)||this.selectedShas.delete(t);for(let o of e)t&&this.selectedShas.has(o)?this.selectedShas.delete(o):this.processedGraphRowBySha?.[o]&&this.selectedShas.add(o);if(this.lastFocusedSha=e.length&&this.selectedShas.has(e[e.length-1])?e[e.length-1]:(0,ef.HV)(this.selectedShas),this.lastFocusedSha&&this.selectSha(this.lastFocusedSha,o),this.props.onSelectGraphRows){let e=this.getSelectedShas().map(e=>this.processedGraphRowBySha[e]);this.props.onSelectGraphRows(e)}this.updateMarkerRowIndices(["selection"]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone($.md)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getSelectedShas(){return[...this.selectedShas]}getExcludeRemotesByName(){let e={};return Object.values(this.excludeRefsById).forEach(t=>{t.type===ey.z.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)}),e}getIncludeOnlyRemotesByName(){let e={};return Object.values(this.includeOnlyRefsById).forEach(t=>{t.type===ey.z.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)}),e}clearScrollToIndex=(0,ef.xJ)(()=>{this.isMounted&&this.setState({scrollToIndex:void 0})});getTopAndBottomVisibleRowIndex(){let{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,r=e||0;if(!r||!t?.length)return{top:-1,bottom:-1};let i=(r-$.q4)/$.yB,n=o/$.yB,s=Math.min(Math.ceil(n+(i-1)),t.length-1);return{top:Math.max(Math.floor(n),0),bottom:s}}getOffsetSha(e){let t=this.graphHeight||0,o=this.props.scrollRowPadding||0;if(!o||!t)return e;let r=o;if(r<=0)return e;let i=this.getTopAndBottomVisibleRowIndex(),n=i.top,s=i.bottom;if(-1===n||-1===s)return e;let l=Math.floor((s-n)/2);if(l<1)return e;r=Math.min(r,l);let a=this.orderedGraphRows.length,h=this.orderedGraphRows.findIndex(t=>t.sha===e);if(!h||!this.orderedGraphRows.length)return e;let c=n+r>h,d=s-r<h;return c?this.orderedGraphRows[Math.max(h-r,0)].sha||e:d&&this.orderedGraphRows[Math.min(h+r,a-1)].sha||e}selectSha(e,t=!1){let o=this.processedGraphRowBySha[e]?.column||0,r=this.getScrollLeft(),i=this.getCommitZoneContentWidthBetweenGutters(),n=this.getCurrentWidthByZone($.md),s=this.getCommitZoneContentWidth(),l=o*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,a=r-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/3<=l&&l<=r+i?r:(0,eS.q)(l-i/2,0,Math.max(0,s-n));this.setScrollToSha(t?this.getOffsetSha(e):e,a),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,o){let r=this.getOrderedActiveGraphZones(),i=this.graphZonesByType[t],n=(0,ef.jY)(i,r,e);if(i.currentWidth=n,t===$.md){let e=Math.max(0,this.getCommitZoneContentWidth()-i.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(i.preferredWidth=n)}updateCommitZoneContentWidthFromChange(){let e=this.graphZonesByType[$.md];if(!e.isHidden){let t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=(0,ef.jY)(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e,t=!0){let o=t?this.getVerticalScrollWidth($.md,this.props.cssVariables,!0):0,r=this.graphZonesByType[e];return r&&!r.isHidden?r.currentWidth-o:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT}getCommitZoneWidth(e=!0){let t=e?this.getVerticalScrollWidth($.md,this.props.cssVariables,!0):0;if(this.graphZonesByType[$.md])return this.graphZonesByType[$.md].currentWidth-t;let{columnsSettings:o}=this.props;return o?.[$.md]?o[$.md].width-t:$.W[$.md].minimumWidth-t}getSingleColumnModeFactor(){let e=this.maxColumns,t=this.getCurrentWidthByZone($.md);return 1===e?0:(0,eS.q)(1-(t-2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)}setClientHeight(e){this.clientHeight=e}getClientHeight(){return this.clientHeight}setScroll(e,t){this.setClientHeight(t.clientHeight),null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===$.md&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){let e=this.getNonAdjustedScrollLeft();return this.getCommitZoneContentWidth()!==this.getCommitZoneWidth()?e:0}setScrollTop(e){this.scrollTop!==e&&(this.scrollTop=e,this.setState({scrollTop:e}),this.onGraphVisibleRowsUpdatedThrottled())}getScrollTop(){return this.scrollTop}getScrollToSha(){return this.scrollToSha}setScrollToSha(e,t){this.scrollToSha=e,this.setScrollLeft(t),this.onGraphVisibleRowsUpdated()}getScrollToIndex(){let e=this.getScrollToSha();if(e){let t=this.processedGraphRowBySha[e]?.rowIndex;return void 0===t?this.orderedGraphRows.findIndex(t=>t.sha===e):t}return -1}getScrollToAlignment(){let e=this.getClientHeight(),t=this.getScrollTop(),o=this.getScrollToIndex();return(0,ef.Mz)($.yB,e,t,o)}getMinNodeOffset(){let e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT)+t*(e+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getHorizontalScrollHeight(e,t,o){return this.graphZonesByType[e]?(0,ef.xy)(e,this.getOrderedActiveGraphZones(),this.orderedGraphRows,t,o):0}getVerticalScrollWidth(e,t,o){return this.graphZonesByType[e]?(0,ef.K8)(e,this.getOrderedActiveGraphZones(),this.props.hasMoreCommits,this.props.isLoadingRows,this.graphHeight,this.orderedGraphRows,this.props.enabledScrollMarkerTypes?.length>0,t,o):0}getMaxNodeOffset(){let e=this.getCurrentWidthByZone($.md),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH))+o*(t+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getAbsoluteNodeLeftByColumn(){let e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH*t;return e}getNodeOffsetByColumn(){let e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),r={};return Object.keys(o).forEach(i=>{let n=o[i];r[i]=(0,eS.q)(n,e,t)}),r}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone($.md)-this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)}getMinNodeLeft(){let e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT+t*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getRightGutterSlideOutFactor(){let e=this.getCurrentWidthByZone($.md),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return(0,eS.q)((e-(t-(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)))/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)+o/2}getNodeOpacityByColumn(){let e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),r=this.getRightGutterSlideOutFactor(),i=this.getSingleColumnModeFactor(),n={};return Object.keys(o).forEach(s=>{let l=o[s],a=l-(e-i*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH),h=t+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-(l+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH*(1-r));n[s]=$.Td+(1-$.Td)*Math.max(Math.min(a,h)/(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2),i)}),n}getLeftGutterWidth(){let e=this.getSingleColumnModeFactor();return this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2*e}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getBoxShadowAlphaForGutter(e,t){return .4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){let t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,(0,eS.q)(1-t/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1))}getRightGutterBoxShadowAlpha(e){let t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e,t){let o={...this.markerRowIndices};if(e.forEach(e=>{o[e]=[]}),e.includes("selection")&&this.getSelectedShas().forEach(e=>{this.processedGraphRowBySha[e]?.rowIndex!==void 0&&o.selection.push(this.processedGraphRowBySha[e].rowIndex)}),e.includes("highlights")&&Object.keys(this.state?.highlightedShas||this.props.highlightedShas||{}).forEach(e=>{this.processedGraphRowBySha[e]?.rowIndex!==void 0&&o.highlights.push(this.processedGraphRowBySha[e].rowIndex)}),e.includes("pullRequests")){let e=t?.refMetadataById||this.state?.refMetadataById||this.props.refMetadataById||{};Object.keys(e).forEach(t=>{if(e[t]?.[em.ki]?.length>0){let e=this.shaByRefId[t];null!=e&&this.processedGraphRowBySha[e]?.rowIndex!==void 0&&o.pullRequests.push(this.processedGraphRowBySha[e].rowIndex)}})}this.markerRowIndices=o}getMarkerColors(){let e=getComputedStyle(document.documentElement),t={};return Object.values($.wx).forEach(o=>{let r=e.getPropertyValue(o.colorCssKey).trim();r&&(t[o.type]=r)}),t}initializeGraphZones(e,t,o){this.graphZonesByType={};let r=[],i=0;t.forEach((t,o)=>{let n=e?e[t]:void 0,s=$.W[t],l=n?.width?n.width:s.minimumWidth,a={...s,type:t,currentWidth:l,preferredWidth:l,isHidden:n?.isHidden||!1,mode:n?.mode,order:s.isCustomizable&&n?.order!==void 0?n?.order:o};n?.isHidden||(i+=a.currentWidth),t===$.md&&(a.contentWidth=this.getCommitZoneContentWidth(),a.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,a.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.maxColumns>0&&(a.maximumWidth=a.contentWidth)),this.graphZonesByType[t]=a,a?.isHidden||r.push(a)});let n=r[r.length-1];if(n){let e=(0,ef.eQ)(this.props.cssVariables,!0),t=n.minimumWidth+e;(null==n.maximumWidth||n.maximumWidth>=t)&&(n.minimumWidth=t,null!=n.showIconWidth&&(n.showIconWidth+=e),r[r.length-1]=n)}for(r.forEach(e=>{let t=(0,ef.jY)(e,r,e.currentWidth);t!==e.currentWidth&&(i-=e.currentWidth,e.currentWidth=t,i+=t)});i>o;){let e=(0,ef.Q9)(r);if(!e)break;let t=e.currentWidth,n=i-o,s=Math.max(e.minimumWidth,t-n),l=t-s;this.graphZonesByType[e.type].currentWidth=s,i-=l}if(i<o){let e=t[t.length-1],i=o-(0,ef.al)(r,e);this.graphZonesByType[e].currentWidth=i}return r}maybeSortGraphZoneOrderingFromSettings(e){this.graphZoneOrdering.every(t=>e?.[t]?.order!==void 0)&&this.graphZoneOrdering.sort((t,o)=>e[t].order<e[o].order?-1:e[t].order>e[o].order?1:0)}updateZonesFromSettings(e){let t=!1;this.graphZoneOrdering.forEach((o,r)=>{let i=this.graphZonesByType[o],n=e?.[i.type];n&&(n.isHidden===i.isHidden||(t=!0,i.type!==$.Sq||n.isHidden||this.updateRowStatsConstraints()),i.isHidden=n.isHidden,i.order=i.isCustomizable&&n?.order!==void 0?n?.order:r,i.mode=n.mode,i.preferredWidth=n.width??i.preferredWidth,i.currentWidth=i.preferredWidth)}),t&&this.graphZoneOrdering.forEach(e=>{let t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth})}getEdgeColumnMaxes(e){let t=0;return Object.keys(this.processedGraphRowBySha[e]?.edges||{}).forEach(e=>{t=Math.max(t,parseInt(e,10))}),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){let o,r,i,n;let s={};return Object.keys(t).forEach(l=>{r=(o=t[l]).passThrough,i=o.starting,(n=r&&!V(r.type)?r:i&&!V(i.type)?i:r||i||void 0)&&(n.parentSha===e.sha?s[l]={ending:n}:s[l]={passThrough:n})}),s}getFinalEdgeStateForGraphAndRow(e,t){let o=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),r=this.getStartingEdgesByColumn(e);return Object.keys(r).forEach(e=>{o[e]||(o[e]={ending:void 0,passThrough:void 0,starting:void 0}),o[e].starting=r[e]}),o}loadEdgesBySha(){this.maxColumns=0,this.isCommitListFiltered()||this.orderedGraphRows.forEach((e,t)=>{let o=this.orderedGraphRows[t-1],r=o&&this.processedGraphRowBySha[o.sha]?.edges?this.processedGraphRowBySha[o.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,r);let i=this.getEdgeColumnMaxes(e.sha);this.processedGraphRowBySha[e.sha].edgeColumnMaxes=i,i>this.maxColumns&&(this.maxColumns=i)})}processRows(e){this.loadRowsbySha(e||[]),this.loadEdgesBySha()}getStartingEdgesByColumn(e){let t={},o=e.parents;if(o.length>0){let r=e.type,i=this.processedGraphRowBySha[e.sha]?.column;void 0!==i&&(t[i]={parentSha:o[0],type:r});for(let e=1;e<o.length;e+=1){let i=o[e],n=this.processedGraphRowBySha[i]?.column;void 0!==n&&(t[n]={parentSha:i,type:r})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):function(e,t,o,i=!0){t=t??void 0;let n=`${(void 0)??""}:${t}`,s=er.get(n);if(null==s){let e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};let t=eo.exec(e);if(t?.groups!=null){let{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}let o={localeMatcher:"best fit"};for(let{groups:t}of e.matchAll(et))if(null!=t)for(let e in t){let r=t[e];if(null!=r)switch(e){case"year":o.year=4===r.length?"numeric":"2-digit";break;case"month":switch(r.length){case 4:o.month="long";break;case 3:o.month="short";break;case 2:o.month="2-digit";break;case 1:o.month="numeric"}break;case"day":"DD"===r?o.day="2-digit":o.day="numeric";break;case"weekday":switch(r.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===r.length?"2-digit":"numeric",o.hour12="hh"===r||"h"===r;break;case"minute":o.minute=2===r.length?"2-digit":"numeric";break;case"second":o.second=2===r.length?"2-digit":"numeric";break;case"fractionalSecond":o.fractionalSecondDigits=3;break;case"dayPeriod":o.dayPeriod="narrow",o.hour12=!0,o.hourCycle="h12";break;case"timeZoneName":o.timeZoneName=2===r.length?"long":"short"}}return o}(t);s=new Intl.DateTimeFormat(r,e),i&&er.set(n,s)}if(null==t||eo.test(t))return s.format(e);let l=s.formatToParts(e);return t.replace(et,(t,n,s,a,h,c,d,u,p,f,m,g,_,v,y)=>{if(null!=n)return n.substring(1,n.length-1);for(let t in y){let n=y[t];if(null==n)continue;let s=l.find(e=>e.type===t);if("Do"===n&&s?.type==="day")return function(e){let t=e%100;return`${e}${ei[(t-20)%10]??ei[t]??"th"}`}(Number(s.value));if("a"===n&&s?.type==="dayPeriod"){let t=(function(e){let t=`${(void 0)??""}:time:${e}`,n=er.get(t);if(null==n){let s;s=null==o?r:"system"===o?void 0:[o],n=new Intl.DateTimeFormat(s,{localeMatcher:"best fit",timeStyle:e}),i&&er.set(t,n)}return n})("short").formatToParts(e).find(e=>"dayPeriod"===e.type);return` ${(t??s)?.value??""}`}return s?.value??""}return""})}(e,$.qO);formatCommitMessageCallback=e=>this.props.formatCommitMessage?this.props.formatCommitMessage(e):e;formatRefShorthandCallback=(e,t,o,r)=>this.props.formatRefShorthand?this.props.formatRefShorthand(e,t,o,r):e.replace(/\s/g,"");isRefShorthandValidCallback=(e,t,o,r)=>!this.props.isRefShorthandValid||this.props.isRefShorthandValid(e,t,o,r);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):e_.H[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach((e,t)=>{let r=RegExp(`\\{${t}\\}`,"g");o=o.replace(r,e)}),o}(e_.H[e],t):e;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):k().createElement("span",null);onMissingAvatar=(e,t)=>{this.props.onEmailsMissingAvatarUrls&&!this.requestedMissingAvatars[e]&&(this.pendingMissingAvatars[e]=t,this.missingAvatarsTimer&&(clearTimeout(this.missingAvatarsTimer),this.missingAvatarsTimer=void 0),this.missingAvatarsTimer=setTimeout(()=>{if(!this.isMounted)return;let e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};let t=Object.keys(e);if(t.length){for(let e of t)this.requestedMissingAvatars[e]=!0;this.props.onEmailsMissingAvatarUrls?.(e)}},100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;let o=this.pendingMissingRefsMetadata[e]||[],r=t.filter(e=>!o.includes(e));this.pendingMissingRefsMetadata[e]=[...o,...r],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout(()=>{if(!this.isMounted)return;let e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};let t=Object.keys(e);if(t.length){for(let e of t)this.requestedMissingRefsMetadata[e]=!0;this.props.onRefsMissingMetadata?.(e)}},100)};selectNext(e){let t;if(e&&"normal"===this.searchMode&&this.lastFocusedSha){let e=this.processedGraphRowBySha[this.lastFocusedSha];e?.parents?.length&&(t=e.parents[0])}else{let e=Math.min((this.lastFocusedSha?this.orderedGraphRows.findIndex(e=>e.sha===this.lastFocusedSha):-1)+1,this.orderedGraphRows.length-1);t=this.orderedGraphRows[e]?.sha}this.currentSha=t||null,t&&this.selectCommits([t],!1,!0)}selectPrevious(e){let t;if(e&&"normal"===this.searchMode&&this.lastFocusedSha){let e=this.childrenBySha[this.lastFocusedSha];if(e?.length){for(let o=0;o<e.length;o+=1)if(o===e.length-1)t=e[o];else if(this.processedGraphRowBySha[e[o]]?.type!==j.OZ){t=e[o];break}}}else{let e=Math.max(-1,(this.lastFocusedSha?this.orderedGraphRows.findIndex(e=>e.sha===this.lastFocusedSha):-1)-1);t=this.orderedGraphRows[e]?.sha,e<0&&(t=this.orderedGraphRows[0]?.sha)}this.currentSha=t||null,t&&this.selectCommits([t],!1,!0)}selectHead(e){let t=null;e&&this.headUpstreamSha?t=this.headUpstreamSha:this.headSha&&(t=this.headSha),this.currentSha=t||null,t&&this.selectCommits([t],!1,!0)}getAvailableColumnAndUseIt(){let e=0;for(;this.columnsUsed[e];)e+=1;return this.columnsUsed[e]=!0,e}getColumns(e){let t,o;this.hasMergeNodeChildBySha[e.sha]&&delete this.hasMergeNodeChildBySha[e.sha];let r=e.parents||[],i=this.columnsToFreeWhenFound[e.sha];if(void 0!==i)for(let e=0;e<i.length;e+=1)delete this.columnsUsed[i[e]];let n=0,s=this.reserverInfoBySha[e.sha];s?.column!==void 0?(n=s.column,delete this.reserverInfoBySha[e.sha]):n=this.getAvailableColumnAndUseIt();for(let i=0;i<r.length;i+=1)if(t=r[i],e.type===j.t$&&(this.hasMergeNodeChildBySha[t]=!0),o=this.reserverInfoBySha[t],0===i&&o?.column!==void 0&&o?.column!==n){let r=this.columnsToFreeWhenFound[t]||[],i=o?.type===j.OZ&&e.type!==j.OZ&&s?.newestDate>o?.newestDate;(o?.column>n||i)&&!this.hasMergeNodeChildBySha[t]?(this.reserverInfoBySha[t]={type:e.type,newestDate:s?.newestDate,column:n},r.push(o.column)):r.push(n),this.columnsToFreeWhenFound[t]=r}else o?.column===void 0&&(this.reserverInfoBySha[t]={type:e.type,newestDate:s?.column===n?s?.newestDate:e.date,column:0===i?n:this.getAvailableColumnAndUseIt()});return n}getFilteredHeadsForGraphRow(e,t){return e.heads.filter(e=>e.isCurrentHead||(t?void 0!==this.includeOnlyRefsById[(0,ef.mH)(ey.z.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[(0,ef.mH)(ey.z.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter(e=>t?void 0!==this.includeOnlyRefsById[(0,ef.mH)(ey.z.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:(!this.excludeByType.remotes||e.owner&&this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0)&&void 0===this.excludeRefsById[(0,ef.mH)(ey.z.REMOTE,e)]&&(!e.owner||void 0===this.excludeRemotesByName[e.owner]))}getFilteredTagsForGraphRow(e,t,o){let r=t&&Object.values(this.includeOnlyRefsById).some(e=>e.type===ey.z.TAG),i=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter(e=>r?void 0!==this.includeOnlyRefsById[(0,ef.mH)(ey.z.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[(0,ef.mH)(ey.z.TAG,e)]&&(!t||i||o))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={};let t=this.isCommitListFiltered();this.childrenBySha={},this.shaByRefId={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};let o=new Map,r={},i=[],n=[];this.branchUpstreamRowIndices=[];let s=[],l=[],a=[],h=[],c={};if((0,ef.X1)(this.workDirStats)&&e.length>0&&!(0,ef.l7)(e[0].type)){let t=(0,ef.pg)(e),o={sha:j.bY,parents:t?[t]:[],author:"",email:"",date:new Date().getTime(),message:this.translateCallback("Graph-WorkInProgress"),type:j.bY,heads:[],remotes:[],tags:[]};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!(0,ef.X1)(this.workDirStats)&&e.length>0&&(0,ef.l7)(e[0].type)&&e.shift();let d=Object.keys(this.includeOnlyRefsById).length>0;e.forEach((e,u)=>{let p;let f=this.childrenBySha[e.sha]?.length>0,m=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,d):[],g=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,d):[],_=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,d,!!(c[e.sha]||f)):[],v=e.parents?.length>0?e.parents.filter(e=>!r[e]):[],y=m.length>0||g.length>0||_.length>0,S=m.length>0||g.length>0;if(e.type!==j.oB&&e.type!==j.t$||c[e.sha]){if(e.type===j.OZ&&this.excludeByType.stashes&&(r[e.sha]=!0),!r[e.sha]&&v.length>0){let e;for(e of v)c[e]=!0}}else e.type!==j.oB&&e.type!==j.t$||c[e.sha]||y||f||(r[e.sha]=!0);let R=r[e.sha],C=R?0:this.getColumns(e);t&&(p=C,C=0);let T=new eg.Y(this,{...e,heads:m,remotes:g,tags:_,parents:v},C,void 0,void 0,void 0,void 0,p);if(!R){let r;let c=o.get(e.sha);c?.length&&(c.sort((e,t)=>{if(e.parentIndexScore<t.parentIndexScore)return -1;if(e.parentIndexScore>t.parentIndexScore)return 1;if(e.parentIndexScore===t.parentIndexScore){if(e.rowEntered<t.rowEntered)return -1;if(e.rowEntered>t.rowEntered)return 1}return 0}),r=c[0],T.childRefs={heads:[...r?.heads||[]],remotes:[...r?.remotes||[]],tags:[...r?.tags||[]]},o.delete(e.sha));for(let t=0;t<v.length;t+=1){let i=v[t];this.childrenBySha[i]||(this.childrenBySha[i]=[]),this.childrenBySha[i].push(e.sha);let n=o.get(i);(S||r)&&void 0===n&&(n=[],o.set(i,n)),S?n?.unshift({sha:e.sha,parentIndexScore:t,rowEntered:u,heads:m,remotes:g,tags:_}):r&&n?.unshift({...r,parentIndexScore:t,rowEntered:u})}let d=this.orderedGraphRows.length;if(T.rowIndex=d,m.length>0)for(let e of(s.push(d),m.some(e=>e.isCurrentHead)&&(this.headSha=T.sha,i.push(d)),m))this.shaByRefId[(0,ef.mH)(ey.z.HEAD,e)]=T.sha;if(g.length>0)for(let e of(l.push(d),g))e.current&&(n.push(d),this.headUpstreamSha=T.sha),this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0&&this.branchUpstreamRowIndices.push(d),this.shaByRefId[(0,ef.mH)(ey.z.REMOTE,e)]=T.sha;if(_.length>0)for(let e of(a.push(d),_))this.shaByRefId[(0,ef.mH)(ey.z.TAG,e)]=T.sha;e.type===j.OZ&&h.push(d),(!t||this.highlightedShas[e.sha])&&this.orderedGraphRows.push(T)}this.processedGraphRowBySha[e.sha]=T}),this.markerRowIndices={...this.markerRowIndices,head:i,upstream:n,localBranches:s,remoteBranches:l,tags:a,stashes:h},this.clearTimelinesInterval(),this.updateTimelines(),this.timelinesInterval=setInterval(this.onTimelinesRefreshInterval,9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){this.rowStatsConstraints=(0,ef.S6)(null!=this.rowsStats?Object.values(this.rowsStats).map(e=>e.additions+e.deletions):[])}updateTimelines(){Object.values((0,ef.ug)()).forEach(e=>{e.forEach(e=>{let{date:t}=e,o=this.orderedGraphRows.find(e=>e.date<t);o&&this.processedGraphRowBySha[o.sha]&&(this.processedGraphRowBySha[o.sha].timeLineEntry=e)})})}clearTimelines(){Object.keys(this.processedGraphRowBySha).forEach(e=>{this.processedGraphRowBySha[e].timeLineEntry&&delete this.processedGraphRowBySha[e].timeLineEntry})}clearTimelinesInterval(){this.timelinesInterval&&(clearInterval(this.timelinesInterval),this.timelinesInterval=void 0)}onTimelinesRefreshInterval=()=>{this.isMounted&&(this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]}))};cleanupSelections(){for(let e of this.selectedShas)this.processedGraphRowBySha[e]||(this.selectedShas.delete(e),this.lastFocusedSha!==e||(this.lastFocusedSha=void 0))}getColumnColorByColumn(e){let t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,r={};for(let n=0;n<=o;n+=1)if(n<t){var i;let t=e[(0,ee.$6)(n)];r[n]="rgba"===(i=Z(t)).type?`rgba(${i.r}, ${i.g}, ${i.b}, ${Number(i.a.toFixed(2))})`:`hsla(${i.h}, ${(100*i.s).toFixed(2)}%, ${(100*i.l).toFixed(2)}%, ${Number(i.a.toFixed(2))})`}else{let e=r[n%t];r[n]=e}return r}getNumGraphColumns(e){let t=Number.parseInt(e[J.u],$.Dl);return Number.isNaN(t)?$.Dl:t}expandLastZoneMinWidthForScrollbar(e){let t=e[e.length-1]?.type;if(!t)return;let o=(0,ef.eQ)(this.props.cssVariables,!0),r=$.W[t].minimumWidth+o,i=this.graphZonesByType[t];if(!i||null!=i.maximumWidth&&r>i.maximumWidth)return;i.minimumWidth=r;let n=$.W[t].showIconWidth;null!=n&&(i.showIconWidth=n+o),i.currentWidth<i.minimumWidth&&(i.currentWidth=i.minimumWidth),i.preferredWidth<i.minimumWidth&&(i.preferredWidth=i.minimumWidth)}ensureZoneWidthsMatchGraphWidth(e,t){let o=(0,ef.al)(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let r=(0,ef.al)(e);for(;r>t;){let i=(0,ef.Q9)(e,o);if(!i)break;let n=(0,ef.al)(e,i.type);if(n+i.currentWidth>t){let o=(0,ef.jY)(i,e,t-n);this.updateWidthByZone(o,i.type)}r=(0,ef.al)(e)}}getOrderedActiveGraphZones(){return this.graphZoneOrdering.sort((e,t)=>this.graphZonesByType[e].order-this.graphZonesByType[t].order).filter(e=>!this.graphZonesByType[e].isHidden).map(e=>this.graphZonesByType[e])}expandZoneWidthsToFitWidth(e,t,o){let r=(0,ef.al)(e);for(;r<t;){let i=(0,ef.fW)(e,o);if(!i)break;let n=(0,ef.al)(e,i.type),s=i.maximumWidth?Math.min(i.maximumWidth,i.preferredWidth||1/0):i.preferredWidth||0;if(n+i.currentWidth<t){let o=t-n;!(0,ef.z)(i.type,e)&&o>s&&(o=s),o=(0,ef.jY)(i,e,o),this.updateWidthByZone(o,i.type)}r=(0,ef.al)(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,r)=>{t.forEach(e=>{o&&this.excludeRefsById[e.id]?delete this.excludeRefsById[e.id]:o||(this.excludeRefsById[e.id]=e)}),this.excludeRemotesByName=this.getExcludeRemotesByName(),this.props.onToggleRefsVisibilityClick&&this.props.onToggleRefsVisibilityClick(e,t,o,r?this.processedGraphRowBySha[r]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){eN={},ex={},eM={},eI={},en={}}onZoneEnter=(e,t,o,r)=>{t!==$.ui&&(o&&r&&this.onRefNodeUnhovered(e,o,r),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,r){if(o?.width){let i=t.currentWidth;this.updateWidthByZone(o.width,t.type,r);let n=(0,ef.kU)(t.type,e),s=this.graphZonesByType[t.type];i>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,n+1),i<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,n-1)}}dimRowsOfSelectedCommit(e){this.setState({dimRowsOfSelectedCommit:e})}onGraphContainerBlurred=(e,t,o)=>{setTimeout(()=>{this.isMounted&&(t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered())},250)};onGraphContainerMouseEnter=e=>{this.props.onGraphMouseEnter&&this.props.onGraphMouseEnter(e)};onGraphContainerMouseLeave=e=>{this.props.onGraphMouseLeave&&this.props.onGraphMouseLeave(e)};onGraphResized=(0,ef.xJ)((e,t)=>{if(!this.isMounted)return;let o=Math.floor(t),r=Math.floor(e),i=o!==this.graphHeight,n=r!==this.graphWidth,s={};if(i&&(this.graphHeight=o,s.height=o),n){this.graphWidth=r;let e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(i||n)&&(this.setState(s),i&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))});onGraphVisibleRowsUpdated(){if(!this.isMounted||!this.props.onGraphVisibleRowsChanged||!this.orderedGraphRows?.length)return;let{top:e,bottom:t}=this.getTopAndBottomVisibleRowIndex();-1===e||-1===t||e>=this.orderedGraphRows.length||t>=this.orderedGraphRows.length||e===this.lastTopVisibleRowIndex&&t===this.lastBottomVisibleRowIndex||(this.lastTopVisibleRowIndex=e,this.lastBottomVisibleRowIndex=t,this.props.onGraphVisibleRowsChanged&&this.props.onGraphVisibleRowsChanged(this.orderedGraphRows[e],this.orderedGraphRows[t]))}getCurrentPlatform(){return this.props.platform||"darwin"}isMacOSPlatform(){return"darwin"===this.getCurrentPlatform()}isCommitListFiltered(){return"filter"===this.searchMode&&Object.values(this.highlightedShas).length>0}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,mode:e.mode,order:e.order}}decorateWithHelmet=(e,t,o)=>{let r=(0,ee.JQ)(t);return k().createElement(k().Fragment,null,k().createElement("style",{nonce:o},r),k().createElement("div",{className:"gk-graph"},e))};render(){let{columnsSettings:e,customFooterRow:t,isInUnsupportedRebase:o,isCommitting:r,repoPath:i,nonce:n,suppressNonRefRowTooltips:s,wipMessageEditable:l}=this.props,{avatarUrlByEmail:a,columnColorByColumn:h,contexts:c,createRefFormData:d,cssVariablesWithDefaults:u,currentlyHoveredCommitSha:p,dimMergeCommits:f,dimRowsOfSelectedCommit:m,enableShowHideRefsOptions:g,highlightRowsOnRefHover:_,showGhostRefsOnRowHover:v,showRemoteNamesOnRefs:y,enabledRefMetadataTypes:S,enabledScrollMarkerTypes:R,graphCommitDescDisplayMode:C,graphZones:T,hasMoreCommits:w,height:b,highlightedShas:E,hoveredRefGroup:O,hoveredRefZoneSha:I,themeOpacityFactor:M,isLoadingRows:x,rowsStatsLoading:N,numGraphColumns:D,pendingCommitMessageSummary:A,processedRows:H,refIconsPosition:z,refMetadataById:W,useAuthorInitialsForAvatars:L,scrollToAlignment:P,scrollToIndex:F,scrollTop:B,scrollLeft:Z,shaLength:U,width:j,workDirStats:V}=this.state,Y=G()("flex","graph-container"),K=(0,ef.xd)(H),q=ev(e=>K(e)),X=this.getLeftGutterWidth(),Q=this.getRightGutterWidth(),J=this.getRightGutterBoxShadowAlpha(M),ee=this.getLeftGutterBoxShadowAlpha(M),et=this.getNodeOffsetByColumn(),eo=this.getNodeOpacityByColumn(),er=(0,ef.kU)($.ui,T),ei=(0,ef.kU)($.md,T),en=!O,es={alwaysShowTimelines:this.isCommitListFiltered(),avatarUrlByEmail:a,createRefFormData:d,dimMergeCommits:f,dimRowsOfSelectedCommit:m,enableShowHideRefsOptions:g,highlightRowsOnRefHover:_,showGhostRefsOnRowHover:v,showRemoteNamesOnRefs:y,enabledRefMetadataTypes:S,enabledScrollMarkerTypes:R,isInUnsupportedRebase:o,isCommitting:r||!1,pendingCommitMessageSummary:A,workDirStats:V,repoPath:i,columnColorByColumn:h,currentlyHoveredCommitSha:p,cssVariables:u,graphCommitDescDisplayMode:C,graphZoneModeConstants:this.graphZoneModeConstants,graphZones:T,hasMoreCommits:w,height:b,highlightedShas:E,hoveredRefGroup:O,hoveredRefZoneSha:I,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isLoadingRows:x,selectedShas:this.selectedShas,leftGutterBoxShadowAlpha:ee,leftGutterWidth:X,nodeOffsetByColumn:et,nodeOpacityByColumn:eo,nonce:n,numGraphColumns:D,processedRows:H,processedGraphRowBySha:this.processedGraphRowBySha,refIconsPosition:z,refMetadataById:W,rightGutterBoxShadowAlpha:J,rightGutterWidth:Q,rowStatsConstraints:this.rowStatsConstraints,rowsStats:this.rowsStats,suppressNonRefRowTooltips:s,useAuthorInitialsForAvatars:L,scrollToAlignment:P,scrollLeft:Z,scrollTop:B,shaLength:U,shouldShowRefLine:-1!==er&&-1!==ei&&ei-er==1,width:j,wipMessageEditable:l||!1,onMissingAvatar:this.onMissingAvatar,onMissingRefMetadata:this.onMissingRefMetadata,clearCurrentlyHoveredGraphCommit:this.onClearCurrentlyHoveredGraphCommit,setAsCurrentlyHoveredGraphCommit:this.onCurrentlyHoveredGraphCommit,onClickRef:this.onClickRef,onClickCommit:this.onClickCommit,onDoubleClickCommit:this.onDoubleClickCommit,onBlurWipNodeInput:this.onBlurWipNodeInput,onFocusWipNodeInput:this.onFocusWipNodeInput,onDoubleClickRef:this.onDoubleClickRef,onMessageChange:this.onMessageChange,onRefBeginDrag:this.onRefBeginDrag,onRefCanDrag:this.onRefCanDrag,onRefCanDrop:this.onRefCanDrop,onRefCreate:this.onRefCreate,onRefCreateCancel:this.onRefCreateCancel,onRefCreateContextMenu:this.onRefCreateContextMenu,onRefDragEnter:this.onRefDragEnter,onRefDragLeave:this.onRefDragLeave,onRefDrop:this.onRefDrop,onRefEndDrag:this.onRefEndDrag,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefShorthandChange:this.onRefShorthandChange,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,formatRefShorthand:this.formatRefShorthandCallback,isRefShorthandValid:this.isRefShorthandValidCallback,translate:this.translateCallback},el={[$.ui]:sm(es,K),[$.md]:n9(es,K),[$.d4]:nj(es,K),[$.fx]:nb(es,K),[$.$A]:nE(es,K),[$.AR]:n$(es,K),[$.Sq]:nR(es,K),[$.OU]:sg(es,K)},ea=T.map((e,o)=>{let r=0===o;return k().createElement(ok,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,cellRenderersByIds:el,columnIndex:o,customFooterRow:t,enabledScrollMarkerTypes:R,enableResizer:en,getExternalIcon:this.getIconCallback,getKeyForCell:K,graphHeight:b-$.q4,graphWidth:j,graphZones:T,graphZoneType:e.type,hasMoreCommits:w,horizontalScrollHeight:this.getHorizontalScrollHeight(e.type,u),isLoadingRows:x,key:`${e.type}ColumnContainer`,markerColors:this.getMarkerColors(),markerRowIndices:this.markerRowIndices,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:r?this.onScrollToRowCausedUpdateForFirstColumn:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,O,I),rowCount:H.length,scrollLeft:Z,scrollToAlignment:r?P:void 0,scrollToIndex:r?F:void 0,scrollTop:B,smartCellRangeRenderer:q,translate:this.translateCallback,verticalScrollWidth:this.getVerticalScrollWidth(e.type,u)})}),eh=this.graphComponentRef?.current&&k().createElement(nu,{columnsSettings:e,dragAppendToContainer:this.graphComponentRef?.current,enableResizer:en,enableShowHideRefsOptions:g,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:T,headerContext:c?.header,height:b,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onFilterColumnClick:this.onFilterColumnClick,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onSettingsClick:this.onSettingsClick,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:i,rowsStatsLoading:N,settingsContext:c?.settings,showRemoteNamesOnRefs:y,translate:this.translateCallback,width:j}),ec=k().createElement("div",{className:"graph-component","data-vscode-context":(0,ef.DO)(c?.graph),onBlur:e=>this.onGraphContainerBlurred(e,O,I),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphComponentRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},eh,k().createElement("div",{className:E&&Object.keys(E).length?G()(Y,"graph-highlighted"):Y,id:"graph-container",onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onMouseDown:this.onGraphHeaderRowMouseDown,ref:this.graphContainerRef,style:{height:b,width:j},tabIndex:-1},ea));return this.decorateWithHelmet(ec,u,n)}}var sv=s_},468:(e,t,o)=>{o.d(t,{A:()=>l});var r=o(15),i=o.n(r),n=o(66);class s extends i().PureComponent{resizeObserver;scrollbarContainerRef=i().createRef();horizontalScrollRef=i().createRef();scrollabbleContentRef=i().createRef();verticalScrollRef=i().createRef();outerHorizontalScrollRef=i().createRef();constructor(e){super(e),this.resizeObserver=new ResizeObserver(e=>e.forEach(e=>this.onContainerResized(e.contentRect.width,e.contentRect.height)))}updateScrollbarValues(e,t){this.horizontalScrollRef?.current&&(this.horizontalScrollRef.current.scrollLeft=e||0),this.verticalScrollRef?.current&&(this.verticalScrollRef.current.scrollTop=t||0)}componentDidUpdate(e){let{scrollLeft:t,scrollTop:o}=this.props;(e.scrollLeft!==t||e.scrollTop!==o)&&this.updateScrollbarValues(t,o)}onHorizontalScroll(e){this.props.onScroll&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:e.target.clientWidth,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:e.target.scrollLeft,scrollTop:this.props.scrollTop||0,scrollWidth:e.target.scrollWidth})}onVerticalScroll(e){this.props.onScroll&&this.props.onScroll({clientHeight:e.target.clientHeight,clientWidth:this.props.width||0,scrollHeight:e.target.scrollHeight,scrollLeft:this.props.scrollLeft||0,scrollTop:e.target.scrollTop,scrollWidth:this.props.contentWidth||0})}onWheel(e){if(!this.props.onScroll||!this.verticalScrollRef.current&&!this.props.forceOnVerticalWheel&&!this.horizontalScrollRef.current&&!this.props.forceOnHorizontalWheel)return;let t=this.props.scrollLeft||0,o=t;(this.horizontalScrollRef.current||this.props.forceOnHorizontalWheel)&&(o+=e.deltaX,(o=o>=0?o:0)>t&&this.horizontalScrollRef?.current&&(0,n.y6)(this.horizontalScrollRef.current)&&(o=t));let r=this.props.scrollTop||0,i=r;(this.verticalScrollRef.current||this.props.forceOnVerticalWheel)&&(i+=e.deltaY,(i=i>=0?i:0)>r&&this.verticalScrollRef?.current&&(0,n.br)(this.verticalScrollRef.current)&&(i=r)),(i!==r||o!==t)&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:this.props.width||0,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:o>=0?o:0,scrollTop:i>=0?i:0,scrollWidth:this.props.contentWidth||0})}componentDidMount(){this.updateScrollbarValues(this.props.scrollLeft,this.props.scrollTop),this.resizeObserver.observe(this.scrollbarContainerRef.current)}componentWillUnmount(){this.resizeObserver.disconnect()}onContainerResized=(0,n.xJ)((e,t)=>{let o=this.props.contentHeight||0,r=this.props.contentWidth||0,i=this.props.scrollTop||0,n=this.props.scrollLeft||0,s=t<o?i:0,l=e<r?n:0;(i!==s||n!==l)&&(this.updateScrollbarValues(l,s),this.props.onScroll?.({clientHeight:t,clientWidth:e,scrollHeight:o,scrollLeft:l,scrollTop:s,scrollWidth:r}))});hasHorizontalScroll(){let{contentWidth:e,displayHorizontalScrollbar:t,forceHorizontalScrollbar:o,width:r}=this.props;return o||t&&r<e}hasVerticalScroll(){let{displayVerticalScrollbar:e,forceVerticalScrollbar:t,height:o}=this.props;return t||e&&o<this.getAdjustedContentHeight()}getHorizontalScrollbarTickness(){return parseInt(this.outerHorizontalScrollRef.current?.clientHeight,10)||0}getAdjustedContentHeight(){return this.props.contentHeight+this.getHorizontalScrollbarTickness()}adjustScrollWhileDragging(e){let t;let o=this.getAdjustedContentHeight();if(!this.scrollabbleContentRef.current||this.props.height>=o||!this.props.onScroll)return;let r=this.scrollabbleContentRef.current.getBoundingClientRect(),i=e.clientY-r.top,n=Math.abs(o-this.props.height);if(this.props.scrollTop>0&&i<=20){let e=this.props.scrollTop-20;t={clientHeight:r.height,clientWidth:r.width,scrollHeight:n,scrollLeft:this.props.scrollLeft||0,scrollTop:e>0?e:0,scrollWidth:this.props.contentWidth||0}}if(this.props.scrollTop<n&&i>=this.props.height-20){let e=this.props.scrollTop+20;t={clientHeight:r.height,clientWidth:r.width,scrollHeight:n,scrollLeft:this.props.scrollLeft||0,scrollTop:e<n?e:n,scrollWidth:this.props.contentWidth||0}}t&&this.props.onScroll(t)}render(){let{children:e,contentHeight:t,contentWidth:o,forceHorizontalScrollbar:r,forceVerticalScrollbar:n,height:s,width:l}=this.props,a=this.hasVerticalScroll(),h=this.hasHorizontalScroll(),c=h&&i().createElement("div",{className:"scrollbar-outer horizontal",ref:this.outerHorizontalScrollRef,style:{top:`calc(${s}px - var(--scrollable-scrollbar-thickness))`,width:l}},i().createElement("div",{className:"scrollbar-inner horizontal_scrollbar",onScroll:e=>this.onHorizontalScroll(e),ref:this.horizontalScrollRef,style:{overflowX:r?"scroll":"auto",width:a?`calc(${l}px - var(--scrollable-scrollbar-thickness))`:l}},i().createElement("div",{style:{height:"1px",width:o}}))),d=a&&i().createElement("div",{className:"scrollbar-outer vertical",style:{height:s}},i().createElement("div",{className:"scrollbar-inner vertical_scrollbar",onScroll:e=>this.onVerticalScroll(e),ref:this.verticalScrollRef,style:{overflowY:n?"scroll":"auto",height:h?`calc(${s}px - var(--scrollable-scrollbar-thickness))`:s}},i().createElement("div",{style:{height:`calc(${t}px + var(--scrollable-scrollbar-thickness))`,width:"1px"}})));return i().createElement("div",{className:"scrollbar-container",onWheelCapture:e=>this.onWheel(e),ref:this.scrollbarContainerRef,style:{height:s,width:l}},i().createElement("div",{className:"scrollable-content",onDragOverCapture:e=>this.adjustScrollWhileDragging(e),ref:this.scrollabbleContentRef,style:{height:s,width:l}},e),c,d)}}var l=s},298:(e,t,o)=>{o.d(t,{N:()=>c,OZ:()=>l,bY:()=>a,gL:()=>s,l2:()=>i,oB:()=>r,t$:()=>n});let r="commit-node",i="merge-conflict-node",n="merge-node",s="unsupported-rebase-warning-node",l="stash-node",a="work-dir-changes";var h,c=((h=c||{}).RowEntry="rowEntry",h.Tooltip="tooltip",h)},218:()=>{},522:(e,t,o)=>{o.d(t,{Y:()=>i,u:()=>r});let r="--num-columns-supported",i={"--graph-row-height":"22px","--font-default":"'Open Sans', Arial, sans-serif !important","--font-monospace":"'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace","--font-size":"62.5%","--fs-1":"1rem","--fs-2":"1.2rem","--fs-3":"1.4rem","--fs-4":"1.6rem","--fs-5":"1.8rem","--fs-6":"2rem","--fs-7":"2.4rem","--button-xs-padding-y":".15rem","--button-xs-padding-x":".25rem","--button-small-padding-y":".25rem","--button-small-padding-x":".5rem","--button-medium-padding-y":".5rem","--button-medium-padding-x":".75rem","--button-large-padding-y":"1rem","--button-large-padding-x":"1.25rem","--button-radius":".2rem","--input-radius":"3px","--about-modal-bg-color":"#e2e4e9","--about-modal-width":"650px","--label__purple-color-f25":"rgba(197,23,182,0.25)","--registration-modal-width":"400px","--file-history-header-height":"35px","--shop-modal-width":"95vw","--shop-modal-height":"95vh","--scrollable-scrollbar-thickness":"14px","--mini-commit-col-left-width":"30px","--mini-commit-col-middle-padding":"6px","--mini-commit-col-right-width":"56px","--fuzzy-finder-repo-color":"rgba(46,206,157,0.1)","--fuzzy-finder-checkout-color":"rgba(6,105,247,0.1)","--fuzzy-finder-history-color":"rgba(197,23,182,0.1)","--handle-width":"7px","--shadow-color":"rgba(0,0,0,0.4)","--graph-color-5-f10":"rgba(205,1,1,0.1)","--graph-color-6-f10":"rgba(242,93,46,0.1)","--graph-color-7-f10":"rgba(242,202,51,0.1)","--graph-color-8-f10":"rgba(123,217,56,0.1)","--graph-color-9-f10":"rgba(46,206,157,0.1)","--graph-color-0-f10":"rgba(21,160,191,0.1)","--graph-color-1-f10":"rgba(6,105,247,0.1)","--graph-color-2-f10":"rgba(142,0,194,0.1)","--graph-color-3-f10":"rgba(197,23,182,0.1)","--graph-color-4-f10":"rgba(217,1,113,0.1)","--graph-color-5-f50":"rgba(205,1,1,0.5)","--graph-color-6-f50":"rgba(242,93,46,0.5)","--graph-color-7-f50":"rgba(242,202,51,0.5)","--graph-color-8-f50":"rgba(123,217,56,0.5)","--graph-color-9-f50":"rgba(46,206,157,0.5)","--graph-color-0-f50":"rgba(21,160,191,0.5)","--graph-color-1-f50":"rgba(6,105,247,0.5)","--graph-color-2-f50":"rgba(142,0,194,0.5)","--graph-color-3-f50":"rgba(197,23,182,0.5)","--graph-color-4-f50":"rgba(217,1,113,0.5)","--axo-orange":"#e75225","--axo-ink":"#141422","--axo-cream":"#f9efc1","--axo-yellow":"#d8c13a","--info-bar-height":"26px","--left-panel-header-height":"60px","--toolbar-height":"48px","--toolbar-border":"1px","--toolbar-item-height":"calc(var(--toolbar-height, 0px) - var(--toolbar-border, 1px))","--expand-detail-panel-transition":"flex-grow 250ms ease-in-out","--conflict-left-color":"rgba(21,160,191,0.25)","--conflict-right-color":"rgba(242,202,51,0.25)","--conflict-output-color":"rgba(197,23,182,0.25)","--graph-color-5-bg50":"#751012","--graph-color-6-bg50":"#873e29","--graph-color-7-bg50":"#87742b","--graph-color-8-bg50":"#4c7c2e","--graph-color-9-bg50":"#257660","--graph-color-0-bg50":"#195f71","--graph-color-1-bg50":"#11448d","--graph-color-2-bg50":"#550f73","--graph-color-3-bg50":"#711b6d","--graph-color-4-bg50":"#7b104a","--graph-color-5-bg45":"#6c1114","--graph-color-6-bg45":"#7c3a28","--graph-color-7-bg45":"#7c6b2a","--graph-color-8-bg45":"#47722c","--graph-color-9-bg45":"#246d5a","--graph-color-0-bg45":"#195969","--graph-color-1-bg45":"#124082","--graph-color-2-bg45":"#4f116b","--graph-color-3-bg45":"#681b65","--graph-color-4-bg45":"#711146","--graph-color-5-bg25":"#48171b","--graph-color-6-bg25":"#522e26","--graph-color-7-bg25":"#524927","--graph-color-8-bg25":"#344d28","--graph-color-9-bg25":"#214a42","--graph-color-0-bg25":"#1a3f4a","--graph-color-1-bg25":"#173158","--graph-color-2-bg25":"#39174b","--graph-color-3-bg25":"#461c48","--graph-color-4-bg25":"#4b1737","--graph-color-5-bg15":"#371a1e","--graph-color-6-bg15":"#3c2725","--graph-color-7-bg15":"#3c3825","--graph-color-8-bg15":"#2a3a26","--graph-color-9-bg15":"#1f3835","--graph-color-0-bg15":"#1b323a","--graph-color-1-bg15":"#192943","--graph-color-2-bg15":"#2d1a3b","--graph-color-3-bg15":"#351d39","--graph-color-4-bg15":"#381a2f","--semi-bold":"500","--bold":"600","--num-columns-supported":"10","--column-0-color":"#15a0bf","--column-1-color":"#0669f7","--column-2-color":"#8e00c2","--column-3-color":"#c517b6","--column-4-color":"#d90171","--column-5-color":"#cd0101","--column-6-color":"#f25d2e","--column-7-color":"#f2ca33","--column-8-color":"#7bd938","--column-9-color":"#2ece9d","--red":"#D9413D","--orange":"#DE9B43","--yellow":"#ECB91C","--green":"#5CB85C","--blue":"#4D88FF","--ltblue":"#5bc0de","--app__bg0":"#1C1E23","--toolbar__bg0":"rgb(42,45,52)","--toolbar__bg1":"rgb(51,55,63)","--toolbar__bg2":"rgb(65,70,80)","--panel__bg0":"rgb(39,42,49)","--panel__bg1":"rgb(50,54,63)","--panel__bg2":"rgb(61,66,77)","--input__bg":"rgba(0,0,0,0.2)","--input-bg-warn-color":"rgba(222,155,67,0.6)","--panel-border":"rgb(19,20,24)","--section-border":"rgba(255,255,255,0.08)","--subtle-border":"rgba(255,255,255,0.04)","--modal-overlay-color":"rgba(0,0,0,.5)","--graph-color-0":"#15a0bf","--graph-color-1":"#0669f7","--graph-color-2":"#8e00c2","--graph-color-3":"#c517b6","--graph-color-4":"#d90171","--graph-color-5":"#cd0101","--graph-color-6":"#f25d2e","--graph-color-7":"#f2ca33","--graph-color-8":"#7bd938","--graph-color-9":"#2ece9d","--text-selected":"#FFFFFF","--text-selected-row":"#FFFFFF","--text-dimmed":"rgba(255,255,255,0.2)","--text-dimmed-selected":"rgba(255,255,255,0.5)","--text-normal":"rgba(255,255,255,0.75)","--text-secondary":"rgba(255,255,255,0.6)","--text-disabled":"rgba(255,255,255,0.4)","--text-accent":"#93A9EC","--text-inverse":"#222222","--text-bright":"#FFFFFF","--btn-text":"rgba(255,255,255,0.75)","--btn-text-hover":"#FFFFFF","--default-border":"rgba(255,255,255,0.75)","--default-bg":"transparent","--default-hover":"transparent","--default-border-hover":"#FFFFFF","--primary-border":"#4D88FF","--primary-bg":"rgba(77,136,255,0.2)","--primary-hover":"rgba(77,136,255,0.6)","--success-border":"#5CB85C","--success-bg":"rgba(92,184,92,0.2)","--success-hover":"rgba(92,184,92,0.6)","--warning-border":"#DE9B43","--warning-bg":"rgba(222,155,67,0.2)","--warning-hover":"rgba(222,155,67,0.6)","--danger-border":"#D9413D","--danger-bg":"rgba(217,65,61,0.2)","--danger-hover":"rgba(217,65,61,0.6)","--hover-row":"rgba(77,136,255,0.1)","--hover-row-border":"none","--danger-row":"rgba(217,65,61,0.6)","--selected-row":"rgba(77,136,255,0.2)","--selected-row-border":"none","--warning-row":"rgba(222,155,67,0.6)","--droppable":"rgba(236,185,28,0.3)","--drop-target":"rgba(92,184,92,0.5)","--input--disabled":"rgba(0,0,0,0.1)","--link-color":"#40c5ec","--link-color-bright":"#40c5ec","--form-control-focus":"#4D88FF","--scroll-thumb-border":"#1C1E23","--scroll-thumb-bg":"rgb(65,70,80)","--scroll-thumb-bg-light":"rgb(111,119,136)","--wip-status":"rgba(77,136,255,0.4)","--card__bg":"rgb(61,66,77)","--card-shadow":"rgba(0,0,0,.2)","--statusbar__warning-bg":"#87742b","--label__yellow-color":"#f2ca33","--label__light-blue-color":"#15a0bf","--label__purple-color":"#c517b6","--filtering":"rgba(77,136,255,0.5)","--soloing":"rgba(222,155,67,0.5)","--checked-out":"rgba(92,184,92,0.3)","--soloed":"rgba(222,155,67,0.3)","--filter-match":"rgba(77,136,255,0.5)","--clone__progress":"rgba(77,136,255,0.7)","--toolbar__prompt":"rgba(77,136,255,0.2)","--verified":"rgba(92,184,92,0.3)","--unverified":"rgba(255,255,255,0.1)","--drop-sort-border":"#5CB85C","--terminal__repo-name-color":"turquoise","--terminal__repo-branch-color":"violet","--terminal__repo-tag-color":"lightcoral","--terminal__repo-upstream-color":"yellowgreen","--terminal__background":"#000000","--terminal__cursor":"#FFFFFF","--terminal__cursorAccent":"#000000","--terminal__foreground":"#FFFFFF","--terminal__selection":"#304676","--terminal__black":"#000000","--terminal__red":"#F24A4A","--terminal__green":"#0DBC79","--terminal__yellow":"#E5E510","--terminal__blue":"#4A98EE","--terminal__magenta":"#E063E0","--terminal__cyan":"#11A8CD","--terminal__white":"#E5E5E5","--terminal__brightBlack":"#686868","--terminal__brightRed":"#FF5656","--terminal__brightGreen":"#23D18B","--terminal__brightYellow":"#F5F543","--terminal__brightBlue":"#51A4FF","--terminal__brightMagenta":"#D670D6","--terminal__brightCyan":"#29B8DB","--terminal__brightWhite":"#E5E5E5","--code-bg":"#1C1E23","--code-foreground":"rgba(255,255,255,0.75)","--code-blame-color-0":"#15a0bf","--code-blame-color-1":"#0669f7","--code-blame-color-2":"#8e00c2","--code-blame-color-3":"#c517b6","--code-blame-color-4":"#d90171","--code-blame-color-5":"#cd0101","--code-blame-color-6":"#f25d2e","--code-blame-color-7":"#f2ca33","--code-blame-color-8":"#7bd938","--code-blame-color-9":"#2ece9d","--added-line":"rgba(92,184,92,0.2)","--deleted-line":"rgba(217,65,61,0.2)","--modified-line":"rgba(0,0,0,0.25)","--conflict-info-color":"#15a0bf","--conflict-left-border-color":"#15a0bf","--conflict-right-border-color":"#f2ca33","--conflict-output-border-color":"#c517b6","--scroll-marker-head-color":"#16c216","--scroll-marker-highlights-color":"#e6e62b","--scroll-marker-local-branches-color":"#ffa500","--scroll-marker-pull-requests-color":"#ff8f18","--scroll-marker-remote-branches-color":"#ffd68b","--scroll-marker-selection-color":"#0821ff","--scroll-marker-stashes-color":"#fb94ff","--scroll-marker-tags-color":"#affcff","--scroll-marker-upstream-color":"#9bff9b","--stats-added-color":"#347d39","--stats-deleted-color":"#c93c37","--stats-files-color":"#e2c08d","--stats-bar-border-radius":"3px","--stats-bar-height":"40%"}},686:(e,t,o)=>{o.d(t,{$6:()=>i,JQ:()=>s,yr:()=>n});var r=o(522);function i(e){return`--column-${e}-color`}function n(e={}){let t={};return Object.keys(e).forEach(o=>{o.includes("--graph-color-")||o.match(/^--column-\d+-color$/)?CSS.supports("color",e[o])&&(t[o]=e[o]):t[o]=e[o]}),function(e={}){return{...r.Y,...e}}(t)}function s(e){let t=e||r.Y,o="";for(let e of(o+=".gk-graph {\n",Object.keys(t)))o+=`${e}: ${t[e]};
2
+ `;return o+"}\n"}},350:(e,t,o)=>{o.d(t,{types:()=>r});let r={ADDED:"added",DELETED:"deleted",MODIFIED:"modified",RENAMED:"renamed"}},366:()=>{},210:(e,t,o)=>{o.d(t,{e:()=>i});var r,i=((r=i||{}).arrowDownKey="ArrowDown",r.arrowUpKey="ArrowUp",r.controlKey="Control",r.metaKey="Meta",r.shiftKey="Shift",r)},214:(e,t,o)=>{o.d(t,{$0:()=>l,$A:()=>el,AR:()=>ea,BP:()=>r,By:()=>a,CF:()=>R,CY:()=>Q,Dl:()=>e_,E5:()=>M,EB:()=>v,F0:()=>x,FQ:()=>eC,G3:()=>H,Gu:()=>Y,H6:()=>O,Hm:()=>I,K3:()=>$,KA:()=>B,KV:()=>W,MT:()=>F,OU:()=>eo,Oe:()=>m,Qb:()=>j,Ql:()=>K,RJ:()=>z,Sb:()=>ef,Sq:()=>eh,Td:()=>c,W:()=>ey,WC:()=>eS,WQ:()=>et,Yx:()=>i,Zk:()=>A,_b:()=>u,ar:()=>h,bo:()=>U,cD:()=>E,d4:()=>en,di:()=>N,eB:()=>ep,fx:()=>es,gK:()=>C,gi:()=>L,iX:()=>T,io:()=>G,j:()=>em,jp:()=>b,kU:()=>p,kj:()=>d,lE:()=>k,lH:()=>f,mE:()=>D,mP:()=>J,md:()=>ei,n0:()=>S,n9:()=>P,nf:()=>g,oC:()=>Z,pi:()=>eR,q4:()=>n,qO:()=>w,ro:()=>X,tl:()=>q,ui:()=>er,wF:()=>_,wT:()=>ev,wx:()=>eg,xY:()=>ee,yB:()=>s,yX:()=>V,z$:()=>y});let r="#199489",i=3,n=26,s=28,l=22,a=1400,h=6,c=.5,d=3,u=3,p=28,f=22,m=3,g=11,_=56,v=56,y=32,S=22,R=18,C=55,T=50,w="short+short",b=55,E=50,O=50,I=50,M=55,x=18,N=32,D=2,A=6,H=14,G=5,z=19,k=10,W=55,L=100,P=50,F=10,B=25,Z=58,U=22,j=2,$={dark:1,light:.5},V=10,Y=12,K=6,q=3,X=12,Q="auto",J="center",ee=7,et=4,eo="timelineMessage",er="ref",ei="graph",en="message",es="author",el="datetime",ea="sha",eh="changes";var ec,ed,eu,ep=((ec=ep||{}).Compact="compact",ec.Rich="rich",ec.Text="text",ec),ef=((ed=ef||{}).Block="block",ed.FullLine="fullLine",ed.ThinLine="thinLine",ed);let em={block:{type:"block",baseHeight:1*s,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*s,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*s,minHeight:1,maxHeight:2}},eg={stashes:{type:"stashes",colorCssKey:"--color-graph-scroll-marker-stashes",lanes:[0],shape:"block"},tags:{type:"tags",colorCssKey:"--color-graph-scroll-marker-tags",lanes:[2],shape:"block"},remoteBranches:{type:"remoteBranches",colorCssKey:"--color-graph-scroll-marker-remote-branches",lanes:[2],shape:"block"},localBranches:{type:"localBranches",colorCssKey:"--color-graph-scroll-marker-local-branches",lanes:[0],shape:"block"},highlights:{type:"highlights",colorCssKey:"--color-graph-scroll-marker-highlights",lanes:[1],shape:"block"},upstream:{type:"upstream",colorCssKey:"--color-graph-scroll-marker-upstream",lanes:[1,2],shape:"block"},pullRequests:{type:"pullRequests",colorCssKey:"--color-graph-scroll-marker-pull-requests",lanes:[2],shape:"block"},head:{type:"head",colorCssKey:"--scroll-marker-head-color",lanes:[0,1],shape:"block"},selection:{type:"selection",colorCssKey:"--color-graph-scroll-marker-selection",lanes:[0,1,2],shape:"fullLine"}},e_=10,ev=6,ey={[es]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:y,showIconWidth:C},[el]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:T,showIconWidth:b},[en]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!0,listId:"commit-message-zone",minimumWidth:I,showIconWidth:M},[ea]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:E,showIconWidth:O},[ei]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!0,listId:"commit-zone",minimumWidth:_,showIconWidth:v},[er]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!0,listId:"ref-zone",minimumWidth:N,showIconWidth:W},[eh]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:P,showIconWidth:Z}},eS={hour:23,day:6,week:4,month:11,year:6},eR={added:0,deleted:0,modified:0};var eC=((eu=eC||{}).ALWAYS="ALWAYS",eu.ON_HOVER="ON_HOVER",eu.NEVER="NEVER",eu)},66:(e,t,o)=>{o.d(t,{$V:()=>y,DO:()=>f,Et:()=>A,HV:()=>K,K8:()=>x,Mz:()=>U,Q9:()=>S,S6:()=>m,SY:()=>Z,U0:()=>I,Ve:()=>O,X1:()=>B,Yy:()=>b,a5:()=>V,al:()=>T,br:()=>u,eQ:()=>C,fW:()=>R,jY:()=>D,jz:()=>k,kU:()=>G,l7:()=>F,mH:()=>v,n$:()=>Y,n0:()=>j,nF:()=>d,pg:()=>P,qC:()=>z,uQ:()=>H,ug:()=>_,xJ:()=>c,xd:()=>W,xy:()=>M,y6:()=>p,yJ:()=>E,yb:()=>g,z:()=>w});var r=o(126),i=o(298),n=o(686),s=o(666),l=o(214),a=o(406),h=o(635);let c=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e(...o)})}},d=(e,t,o)=>{let r,i,n=!1,s=t;return(...l)=>{void 0!==o&&(i=new Date().getTime(),s=!r||i-r>s+o?o:t),n||(e(...l),r=new Date().getTime(),n=!0,setTimeout(()=>{n=!1},s))}};function u(e){return 1>Math.abs(e.scrollHeight-e.scrollTop-e.clientHeight)}function p(e){return 1>Math.abs(e.scrollWidth-e.scrollLeft-e.clientWidth)}function f(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function m(e){let{length:t}=e;if(0===t)return{min:0,max:0};if(1===t)return{min:0,max:e[0]};e.sort((e,t)=>e-t);let o=e[0],r=e[Math.floor(.25*t)],i=e[Math.floor(.5*t)],n=e[Math.floor(.75*t)],s=e[t-1],l=n-r;return{min:Math.max(o,i-1.5*l),max:Math.min(s,i+1.5*l)}}function g(e,t,o,r){let{id:i}=e;return!i||null===t||t?.[i]===null||r&&t?.[i]?.[r]===null?null:t&&i in t?r&&!t[i]?.[r]?(o(i,[r]),null):r?t?.[i]?.[r]:t?.[i]:(o(i,a.ej),null)}function _(){let e;let t=new Date,o={hour:[],day:[],week:[],month:[],year:[]};for(e=1;e<=l.WC.hour;e+=1)o.hour.push({date:t.getTime()-36e5*e,label:1===e?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:e});for(e=1;e<=l.WC.day;e+=1)o.day.push({date:t.getTime()-864e5*e,label:1===e?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:e});for(e=1;e<=l.WC.week;e+=1)o.week.push({date:t.getTime()-6048e5*e,label:1===e?"Timeline-1WeekAgo":"Timeline-NWeeksAgo",timeUnit:"week",value:e});let r=new Date;for(r.setHours(0,0,0,0),e=1;e<=l.WC.month;e+=1)r.setMonth(r.getMonth()-1),r.setHours(0,0,0,0),o.month.push({date:r.getTime(),label:1===e?"Timeline-1MonthAgo":"Timeline-NMonthsAgo",timeUnit:"month",value:e});let i=new Date;for(i.setHours(0,0,0,0),e=1;e<=l.WC.year;e+=1){let t;switch(i.setFullYear(i.getFullYear()-1),i.setHours(0,0,0,0),e){case 1:t="Timeline-1YearAgo";break;case l.WC.year:t="Timeline-NPlusYearsAgo";break;default:t="Timeline-NYearsAgo"}o.year.push({date:i.getTime(),label:t,timeUnit:"year",value:e})}return o}function v(e,t){if(t.id)return t.id;let o=t.owner||"";return e===s.z.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function y(e){return v(e.refType,e)}function S(e,t=0){for(let o=e.length-1;o>=t;o-=1){let t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function R(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){let t=e[o],r=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(r&&t.currentWidth<r)return t}return e[e.length-1]}}function C(e,t=!1){let o="--scrollable-scrollbar-thickness",r=t||!e[o]?(0,n.yr)(e):e,i=r[o]?parseInt(r[o],10):0;return Number.isNaN(i)?0:i}function T(e,t){let o=0;for(let r of e)t&&r.type===t||(o+=r.currentWidth);return o}let w=(e,t)=>e===t[t.length-1].type;function b(e,t,o){return t||o||0===e}function E(e,t,o){let r=b(e,t,o);return e+(r?1:0)}function O(e,t,o){let r=E(e,t,o);return l.yB*r}function I(e,t){return e.type===l.md&&t>0?e.contentWidth||0:e.currentWidth}function M(e,t,o,r,i){var n;let s=A(e,t);return s&&(n=o.length,s.currentWidth<I(s,n))?C(r,i):0}function x(e,t,o,r,i,n,s,l,a){let h=A(e,t);return h?!function(e,t,o,r,i,n,s){let l=O(n,o,r);return w(e.type,t)&&(i<l||s)}(h,t,o,r,i,n.length,s)?0:C(l,a):0}let N=(e,t)=>{let o=G(e,t),r=G(l.md,t);return -1!==o&&-1!==r&&o-r==1};function D(e,t,o){return(0,r.q)(o,e.minimumWidth||0,e.maximumWidth&&!w(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function A(e,t){return t.find(({type:t})=>t===e)}function H(e){return!!e&&e.currentWidth<=e.showIconWidth}function G(e,t){return t.findIndex(({type:t})=>t===e)}function z(e,t,o){let r=0,i=0,n=G(e,t);if(n>-1){let e=function(e,t=0){let o=0;for(let r=t;r<e.length;r+=1)o+=e[r].minimumWidth;return o}(t,n+1),s=function(e,t=e.length-1){let o=0;for(let r=0;r<=t;r+=1)o+=e[r].currentWidth;return o}(t,n-1),l=t[n].maximumWidth||Number.MAX_VALUE;r=t[n].minimumWidth,i=Math.min(l,o-e-s)}return{min:r,max:i}}function k(e){let t=!!e&&e===l.eB.Compact,o=t?1:2,r=t?10:28,i=t?1:3,n=t?1:3,s=t?10:22,a=t?s:l.lH,h=t?s:s/2+1;return{COMMIT_ZONE_LINE_WIDTH:o,COMMIT_ZONE_GUTTER_WIDTH:r,COMMIT_ZONE_PADDING_LEFT:i,COMMIT_ZONE_PADDING_RIGHT:n,COMMIT_COLUMN_WIDTH:s,COMMIT_NODE_DIAMETER:a,COMMIT_MERGE_NODE_DIAMETER:h,COMMIT_NODE_TOP_OFFSET:.5*l.lH-.5*a,COMMIT_MERGE_NODE_LEFT_OFFSET:s/2-h/2,COMMIT_MERGE_NODE_TOP_OFFSET:.5*l.lH-.5*h,COMMIT_ZONE_AVATAR_DIAMETER:a-2*o,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:a+i+n+r,COMMIT_ZONE_SHOW_ICON_WIDTH:t?45:56,IS_COMPACT:t,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:a/2-h/2}}let W=e=>t=>t===e.length?"SHOW_MORE_COMMITS":e[t].sha;function L(e){return e instanceof h.Y?!!e.refsData?.activeGraphRef:!!e?.heads&&e.heads.some(e=>$(e))}function P(e){let t=e.find(L);return t?.sha||void 0}function F(e){return[i.l2,i.gL,i.bY].includes(e)}function B(e){return!!e&&Object.values(e).some(e=>e>0)}function Z(e,t){return e.has(t)&&1===e.size}function U(e,t,o,r){if(r<0)return l.CY;let i=e+2,n=r*e;return n>=o-i&&n<o+t+i?l.CY:l.mP}function j(e){switch(e){case l.md:return"graph";case l.ui:return"branch";case l.d4:return"message";case l.fx:return"author";case l.$A:return"datetime";case l.AR:return"commit";case l.Sq:return"changes";default:return""}}function $(e){return e.isCurrentHead}function V(e){return e.refType===s.z.HEAD&&$(e)}class Y{props;constructor(e){this.props=e}getActiveGraphZone(e){let t=A(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupsByNameForRow(e){let t=this.getRow(e);return t&&t.refsData?.orderedRefGroups||[]}getRow(e){if(!(e<0)&&!(e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e,t=!0){var o;let r=t?this.getVerticalScrollWidth(e):0;return o=this.props.graphZones,(A(e,o)?.currentWidth||l.W[e].minimumWidth)-r}isDateTimeZoneActive(){return!!this.getActiveGraphZone(l.$A)}shouldShowTimelines(){return this.props.alwaysShowTimelines||!this.isDateTimeZoneActive()}isFirstRow(e){return 0===e}isColumnFollowingGraphColumn(e){return N(e,this.props.graphZones)}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){let t=this.props.processedRows[e]?.sha;return this.props.highlightedShas[t]||!1}return!1}isHovering(e){return!!this.props.processedRows[e]&&this.props.currentlyHoveredCommitSha===this.props.processedRows[e]?.sha}isLastColumn(e){return w(e,this.props.graphZones)}getSelectedRefGroupByName(){if(1===this.props.selectedShas.size){let e=this.props.selectedShas[Symbol.iterator]().next().value;if(e){let t=this.props.processedGraphRowBySha[e];if(t)return t.refsData?.orderedRefGroups||[]}}return[]}getHorizontalScrollHeight(e){return M(e,this.props.graphZones,this.props.processedRows,this.props.cssVariables)}getVerticalScrollWidth(e){return x(e,this.props.graphZones,this.props.hasMoreCommits,this.props.isLoadingRows,this.props.height,this.props.processedRows,this.props.enabledScrollMarkerTypes.length>0,this.props.cssVariables)}shouldUseColumnHeaderIcons(e){let t=A(e,this.props.graphZones);return!!t&&H(t)}isMissingHoveredRefGroup(e){if(this.props.highlightedShas)return!1;let t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){let e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{let{hoveredRefGroup:e}=this.props;if(!e?.length)return!1;o=e}let{name:r,refType:i}=o[0],n=i===s.z.TAG,l=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:a,tags:h,remotes:c}=t.hasRefs&&(!l||n)?t:t.childRefs;return!a.length&&!c.length&&!h.length||!a.some(e=>e.name===r&&o.some(e=>e.refType===s.z.HEAD))&&!c.some(e=>e.name===r&&o.some(t=>t.refType===s.z.REMOTE&&t.owner===e.owner))&&!h.some(e=>e.name===r&&o.some(e=>e.refType===s.z.TAG))}isSelected(e){let t=this.getRow(e)?.sha;return!!t&&this.props.selectedShas.has(t)}isSingleSelected(e){let t=this.getRow(e)?.sha;return!!t&&Z(this.props.selectedShas,t)}hasTimeline(e){return this.shouldShowTimelines()&&!!this.props.processedRows[e]?.timeLineEntry&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return L(e)}}function K(e){let t;for(t of e);return t}},406:(e,t,o)=>{o.d(t,{RA:()=>i,ej:()=>s,fd:()=>n,ki:()=>r});let r="pullRequest",i="upstream",n="issue",s=[r,i,n]},635:(e,t,o)=>{o.d(t,{Y:()=>s});var r=o(666),i=o(66);let n={[r.z.HEAD]:2,[r.z.REMOTE]:1,[r.z.TAG]:0};class s{_graph;_message;_heads;_remotes;_tags;_activeGraphRef;_activeGraphRefGroup;_refGroupsByName;_orderedRefGroups;sha;parents;author;email;date;type;contexts;rowIndex;column;columnForColoring;edgeColumnMaxes;edges;childRefs;timeLineEntry;summary;body;displayMessage;displaySummary;displayBody;set message(e){this._message!==e&&(this._message=e,this.displayMessage=this._graph.formatCommitMessageCallback(e),this.updateSummaryAndBody(e))}get message(){return this._message}get heads(){return this._heads}set heads(e){this._heads!==e&&(this._heads=e,this.initializeRefGroups())}set remotes(e){this._remotes!==e&&(this._remotes=e,this.initializeRefGroups())}get remotes(){return this._remotes}set tags(e){this._tags!==e&&(this._tags=e,this.initializeRefGroups())}get tags(){return this._tags}get hasRefs(){return this.heads.length>0||this.remotes.length>0||this.tags.length>0}get hasChildRefs(){return this.childRefs.heads.length>0||this.childRefs.remotes.length>0||this.childRefs.tags.length>0}get refsData(){if(this.hasRefs||this.hasChildRefs)return 0===this._orderedRefGroups.length&&this.loadGraphRefGroupsData(),{activeGraphRef:this._activeGraphRef,activeGraphRefGroup:this._activeGraphRefGroup,orderedRefGroups:this._orderedRefGroups,refGroupsByName:this._refGroupsByName}}constructor(e,t,o,r,i,n,s,l){this._graph=e,this._heads=t.heads||[],this._remotes=t.remotes||[],this._tags=t.tags||[],this._message=t.message,this.sha=t.sha,this.parents=t.parents,this.author=t.author,this.email=t.email,this.date=t.date,this.type=t.type,this.contexts=t.contexts,this.column=o||0,this.columnForColoring=l,this.edgeColumnMaxes=r||0,this.edges=i||{},this.childRefs=n||{heads:[],tags:[],remotes:[]},this.timeLineEntry=s,this.initializeRefGroups(),this.updateSummaryAndBody(t.message)}updateSummaryAndBody(e){let t,o=e?e.trim():"",r=o.indexOf("\n");-1!==r&&(t=o.substring(r+1).trim().replace(/\n+(?:\s+\n+)?/g," | "),o=o.substring(0,r)),this.body=t,this.summary=o,this.displaySummary=this._graph.formatCommitMessageCallback(o),this.displayBody=t?this._graph.formatCommitMessageCallback(t):void 0}initializeRefGroups(){this._activeGraphRefGroup=void 0,this._activeGraphRef=void 0,this._refGroupsByName={},this._orderedRefGroups=[]}addRefToRefGroup(e){let t=e.name;this._refGroupsByName[t]||(this._refGroupsByName[t]=[]),this._refGroupsByName[t].push(e)}loadGraphRefGroupsData(){this.initializeRefGroups();let e=[],{heads:t,tags:o,remotes:s}=this.hasRefs?this:this.childRefs;for(let o of t){let t={...o,refType:r.z.HEAD};this.addRefToRefGroup(t),(0,i.a5)(t)?(this._activeGraphRefGroup=this._refGroupsByName[t.name],this._activeGraphRef=t,e.unshift(this._refGroupsByName[t.name])):e.push(this._refGroupsByName[t.name])}for(let t of s){let o={...t,fullName:t.owner?`${t.owner}/${t.name}`:t.name,refType:r.z.REMOTE},i=this._refGroupsByName[o.name];this.addRefToRefGroup(o),i||e.push(this._refGroupsByName[o.name])}for(let t of o){let o={...t,refType:r.z.TAG};this.addRefToRefGroup(o),e.push(this._refGroupsByName[o.name])}this._orderedRefGroups=e.sort((e,t)=>e===this._activeGraphRefGroup?-1:t===this._activeGraphRefGroup?1:n[e[0].refType]>n[t[0].refType]?-1:n[e[0].refType]<n[t[0].refType]?1:e.length>t.length?-1:e.length<t.length?1:e[0].name.localeCompare(t[0].name))}}},810:(e,t,o)=>{function r(e){switch(e){case"github":return"GitHub";case"githubEnterprise":return"GitHub Enterprise";case"gitlab":return"GitLab";case"gitlabSelfHosted":return"GitLab Self-Hosted";case"azureDevops":return"Azure DevOps";case"bitbucket":return"Bitbucket";case"bitbucketServer":return"Bitbucket Server";default:return e}}o.d(t,{T:()=>r})},852:(e,t,o)=>{o.d(t,{H:()=>r});let r={"CommitDiffSection-FileAdded":"added","CommitDiffSection-FileDeleted":"deleted","CommitDiffSection-FileModified":"modified","CommitDiffSection-FileRenamed":"renamed","CommitDiffSection-NFilesAdded":"{0} added","CommitDiffSection-NFilesDeleted":"{0} deleted","CommitDiffSection-NFilesModified":"{0} modified","CommitDiffSection-NFilesRenamed":"{0} renamed","Graph-IsLoadingRows":"Loading...","Graph-NoCommits":"No commits","Graph-WorkInProgress":"Work in progress","GraphHeader-BranchTag":"BRANCH / TAG","GraphHeader-Changes":"CHANGES","GraphHeader-CommitAuthor":"AUTHOR","GraphHeader-CommitDateTime":"COMMIT DATE / TIME","GraphHeader-CommitGraph":"GRAPH","GraphHeader-CommitMessage":"COMMIT MESSAGE","GraphHeader-CommitSha":"SHA","GraphHeader-EditColumns":"Columns settings","GraphHeader-Filter":"Filter","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","IssueIcon-Tooltip":"{0}: {1}","PullRequestIcon-Tooltip":"#{0}: {1}\n Double-click to open pull request on {2}","Ref-Current":"Current Branch","Ref-Local":"Local Branch","Ref-Remote":"Remote Branch","Ref-Tag":"Tag","Ref-Worktree":"Worktree","RefZone-EnterBranchName":"enter branch name","RefZone-EnterTagName":"enter tag name","Timeline-1HourAgo":"1 hour ago","Timeline-NHoursAgo":"{0} hours ago","Timeline-Yesterday":"yesterday","Timeline-NDaysAgo":"{0} days ago","Timeline-1WeekAgo":"a week ago","Timeline-NWeeksAgo":"{0} weeks ago","Timeline-1MonthAgo":"a month ago","Timeline-NMonthsAgo":"{0} months ago","Timeline-1YearAgo":"a year ago","Timeline-NYearsAgo":"{0} years ago","Timeline-NPlusYearsAgo":"{0}+ years ago","UpstreamIndicatorIcon-BehindAndAheadTooltip":"{0} commit(s) behind and {1} commit(s) ahead of {2}\n Double-click to pull changes","UpstreamIndicatorIcon-BehindTooltip":"{0} commit(s) behind {1}\n Double-click to pull changes","UpstreamIndicatorIcon-AheadTooltip":"{0} commit(s) ahead of {1}\n Double-click to push changes",ResizePanel:"Resize Panel",Stash:"Stash",Hide:"Hide",Show:"Show","WorkDirMessageInput-WIPPlaceholder":"WIP"}},899:()=>{},666:(e,t,o)=>{o.d(t,{E:()=>n,z:()=>r});let r={HEAD:"head",REMOTE:"remote",TAG:"tag",WORKTREE:"worktree"};var i,n=((i=n||{}).LEFT="LEFT",i.RIGHT="RIGHT",i)},285:()=>{},456:()=>{},310:()=>{},118:(e,t,o)=>{o.r(t),o.d(t,{CHANGES_BAR_MIN_WIDTH:()=>l.MT,CHANGES_BAR_RIGHT_MARGIN:()=>l.KA,CHANGES_ZONE_MIN_WIDTH:()=>l.n9,CHANGES_ZONE_SHOW_ICON_WIDTH:()=>l.oC,COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER:()=>l.CF,COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER:()=>l.n0,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>l.z$,COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH:()=>l.gK,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>l.iX,COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH:()=>l.jp,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>l.Hm,COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH:()=>l.E5,COMMIT_NODE_MIN_ALPHA:()=>l.Td,COMMIT_SHA_ZONE_MIN_WIDTH:()=>l.cD,COMMIT_SHA_ZONE_SHOW_ICON_WIDTH:()=>l.H6,COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN:()=>l.wF,COMMIT_ZONE_EDGE_ARC_PADDING:()=>l.Oe,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>l.nf,COMMIT_ZONE_MARGIN_BOTTOM:()=>l.kj,COMMIT_ZONE_MARGIN_TOP:()=>l._b,COMMIT_ZONE_ROW_HEIGHT:()=>l.kU,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>l.lH,COMMIT_ZONE_SHOW_ICON_WIDTH:()=>l.EB,CommitDateTimeSources:()=>r.N,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>l.BP,DEFAULT_COMMIT_SHA_LENGTH:()=>l.wT,DEFAULT_CSS_VARIABLES:()=>g.Y,DEFAULT_TRANSLATIONS:()=>m.H,DEFAULT_WORKDIR_STATS:()=>l.pi,GRAPH_HEADER_ROW_HEIGHT:()=>l.q4,GRAPH_ROW_HEIGHT:()=>l.yB,GRAPH_ROW_INNER_HEIGHT:()=>l.$0,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>l.By,GRAPH_ROW_PADDING:()=>l.ar,GRAPH_SCROLL_MARKER_LANES:()=>l.Yx,GraphColumnMode:()=>l.eB,GraphMarkerShape:()=>l.Sb,HEADER_ROW_HEIGHT:()=>l.bo,HEADER_ROW_MARGIN_BOTTOM:()=>l.Qb,INLINE_SUMMARY_MARGIN_LEFT:()=>l.yX,LeftPanelToGraphMarginGap:()=>l.xY,NUM_COLUMNS_SUPPORTED_PROP_NAME:()=>g.u,NamedKeys:()=>i.e,OPACITY_FACTOR_BY_THEME:()=>l.K3,REF_NODE_ICON_MARGIN:()=>l.io,REF_NODE_ICON_SPACING:()=>l.RJ,REF_NODE_ICON_WIDTH:()=>l.G3,REF_NODE_OUTER_SPACING:()=>l.lE,REF_ZONE_MARGIN_LEFT:()=>l.mE,REF_ZONE_MARGIN_RIGHT:()=>l.Zk,REF_ZONE_MAX_REFS_TO_RENDER:()=>l.gi,REF_ZONE_MIN_WIDTH:()=>l.di,REF_ZONE_SHOW_ICON_WIDTH:()=>l.KV,REF_ZONE_TEXT_HEIGHT:()=>l.F0,ResizableHandleCorrection:()=>l.WQ,SCROLL_TO_ALIGNMENT_AUTO:()=>l.CY,SCROLL_TO_ALIGNMENT_CENTER:()=>l.mP,TIMESTAMP_FORMAT_DATE_TIME:()=>l.qO,TINY_FILES_READOUT_FONT_SIZE:()=>l.Gu,TINY_FILES_READOUT_RIGHT_MARGIN:()=>l.Ql,TINY_ICON_RIGHT_MARGIN:()=>l.tl,TINY_ICON_SIZE:()=>l.ro,allMetadataTypes:()=>a.ej,changesZone:()=>l.Sq,commitAuthorZone:()=>l.fx,commitDateTimeZone:()=>l.$A,commitMessageZone:()=>l.d4,commitNodeType:()=>r.oB,commitShaZone:()=>l.AR,commitZone:()=>l.md,getHostingServiceName:()=>h.T,graphCommitDescDisplayModes:()=>l.FQ,graphMarkerMetadata:()=>l.wx,graphMarkerShapeMetadata:()=>l.j,graphZoneMetaData:()=>l.W,issueMetadataType:()=>a.fd,lookbackLimitByPeriod:()=>l.WC,mergeConflictNodeType:()=>r.l2,mergeNodeType:()=>r.t$,numGraphColumnsDefault:()=>l.Dl,pullRequestMetadataType:()=>a.ki,refIconsPositions:()=>c.E,refTypes:()=>c.z,refZone:()=>l.ui,stashNodeType:()=>r.OZ,timelineMsgRowRenderId:()=>l.OU,types:()=>v.types,unsupportedRebaseWarningNodeType:()=>r.gL,upstreamMetadataType:()=>a.RA,workDirType:()=>r.bY});var r=o(298),i=o(210),n=o(218),s={};for(let e in n)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys"].indexOf(e)&&(s[e]=()=>n[e]);o.d(t,s);var l=o(214),a=o(406),h=o(810),c=o(666),d=o(285),s={};for(let e in d)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>d[e]);o.d(t,s);var u=o(310),s={};for(let e in u)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>u[e]);o.d(t,s);var p=o(456),s={};for(let e in p)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>p[e]);o.d(t,s);var f=o(899),s={};for(let e in f)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>f[e]);o.d(t,s);var m=o(852),g=o(522),_=o(366),s={};for(let e in _)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes","DEFAULT_TRANSLATIONS","DEFAULT_CSS_VARIABLES","NUM_COLUMNS_SUPPORTED_PROP_NAME"].indexOf(e)&&(s[e]=()=>_[e]);o.d(t,s);var v=o(350)},126:(e,t,o)=>{function r(e,t,o){return(e=e<=o?e:o)>=t?e:t}o.d(t,{q:()=>r})},311:e=>{e.exports=function(e,t,o,r,i,n,s,l){if(!e){var a;if(void 0===t)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[o,r,i,n,s,l],c=0;(a=Error(t.replace(/%s/g,function(){return h[c++]}))).name="Invariant Violation"}throw a.framesToPop=1,a}}},228:e=>{var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var i={};if("abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,i){for(var n,s,l=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var h in n=Object(arguments[a]))o.call(n,h)&&(l[h]=n[h]);if(t){s=t(n);for(var c=0;c<s.length;c++)r.call(n,s[c])&&(l[s[c]]=n[s[c]])}}return l}:Object.assign},694:(e,t,o)=>{var r=o(925);function i(){}function n(){}n.resetWarningCache=i,e.exports=function(){function e(e,t,o,i,n,s){if(s!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:i};return o.PropTypes=o,o}},556:(e,t,o)=>{e.exports=o(694)()},925:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},547:(e,t,o)=>{var r=o(427),i=o(396);e.exports=function(){return r.apply(this,i(arguments)).on("cloned",function(t){e(t),i(t.getElementsByTagName("*")).forEach(e)});function e(e){e.removeAttribute("data-reactid")}}},20:(e,t,o)=>{o(228);var r=o(15),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;i=n("react.element"),t.Fragment=n("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,a={key:!0,ref:!0,__self:!0,__source:!0};function h(e,t,o){var r,n={},h=null,c=null;for(r in void 0!==o&&(h=""+o),void 0!==t.key&&(h=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!a.hasOwnProperty(r)&&(n[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===n[r]&&(n[r]=t[r]);return{$$typeof:i,type:e,key:h,ref:c,props:n,_owner:s.current}}t.jsx=h,t.jsxs=h},848:(e,t,o)=>{e.exports=o(20)},394:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},771:e=>{e.exports=function(){}},15:e=>{e.exports=require("react")},942:(e,t)=>{var o;!function(){var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)r.call(e,o)&&e[o]&&(t=n(t,o));return t}(o)))}return e}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(o=(function(){return i}).apply(t,[]))&&(e.exports=o)}()}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{o.r(r),o.d(r,{DndComponent:()=>e.A,ScrollbarContainer:()=>t.A,default:()=>l});var e=o(280),t=o(468),i=o(794),n=o(118),s={};for(let e in n)0>["default","DndComponent","ScrollbarContainer"].indexOf(e)&&(s[e]=()=>n[e]);o.d(r,s);var l=i.A})(),module.exports=r})();