@gitkraken/gitkraken-components 10.2.11 → 10.2.13
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 +1 @@
|
|
|
1
|
-
(()=>{var e={2584:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},4184:(e,t)=>{var o;!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&e.push(s)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},8514:(e,t,o)=>{var n=o(6115);e.exports=function(e,t,o){e&&n((function(){e.apply(o||null,t||[])}))}},5229:(e,t,o)=>{var n=o(2584),r=o(8514);e.exports=function(e,t){var o=t||{},i={};return void 0===e&&(e={}),e.on=function(t,o){return i[t]?i[t].push(o):i[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var n=arguments.length;if(1===n)delete i[t];else if(0===n)i={};else{var r=i[t];if(!r)return e;r.splice(r.indexOf(o),1)}return e},e.emit=function(){var t=n(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(i[t]||[]).slice(0);return function(){var i=n(arguments),a=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===i.length?i[0]:i;return s.forEach((function(n){o.async?r(n,i,a):n.apply(a,i),n._once&&e.off(t,n)})),e}},e}},3285:(e,t,o)=>{o(8691),e.exports=o(4579).Array.isArray},6981:(e,t,o)=>{o(2699),e.exports=o(4579).Object.assign},5627:(e,t,o)=>{o(6760);var n=o(4579).Object;e.exports=function(e,t){return n.create(e,t)}},7965:(e,t,o)=>{o(520),e.exports=o(4579).Object.entries},8613:(e,t,o)=>{o(961),e.exports=o(4579).Object.keys},433:(e,t,o)=>{o(9349),e.exports=o(4579).Object.setPrototypeOf},5663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2159:(e,t,o)=>{var n=o(6727);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,o)=>{var n=o(7932),r=o(8728),i=o(6531);e.exports=function(e){return function(t,o,s){var a,l=n(t),c=r(l.length),h=i(s,c);if(e&&o!=o){for(;c>h;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((e||h in l)&&l[h]===o)return e||h||0;return!e&&-1}}},2894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:(e,t,o)=>{var n=o(5663);e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,r){return e.call(t,o,n,r)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9666:(e,t,o)=>{e.exports=!o(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,o)=>{var n=o(6727),r=o(3938).document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},3338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3856:(e,t,o)=>{var n=o(3938),r=o(4579),i=o(9216),s=o(1818),a=o(7069),l="prototype",c=function(e,t,o){var h,d,u,p=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,C=f?r:r[t]||(r[t]={}),S=C[l],_=f?n:m?n[t]:(n[t]||{})[l];for(h in f&&(o=t),o)(d=!p&&_&&void 0!==_[h])&&a(C,h)||(u=d?_[h]:o[h],C[h]=f&&"function"!=typeof _[h]?o[h]:v&&d?i(u,n):y&&_[h]==u?function(e){var t=function(t,o,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return e.apply(this,arguments)};return t[l]=e[l],t}(u):g&&"function"==typeof u?i(Function.call,u):u,g&&((C.virtual||(C.virtual={}))[h]=u,e&c.R&&S&&!S[h]&&s(S,h,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},1818:(e,t,o)=>{var n=o(4743),r=o(3101);e.exports=o(9666)?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},4881:(e,t,o)=>{var n=o(3938).document;e.exports=n&&n.documentElement},3758:(e,t,o)=>{e.exports=!o(9666)&&!o(7929)((function(){return 7!=Object.defineProperty(o(7467)("div"),"a",{get:function(){return 7}}).a}))},799:(e,t,o)=>{var n=o(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},1421:(e,t,o)=>{var n=o(2894);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6227:e=>{e.exports=!0},8082:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(8195),s=o(6274),a=o(6530),l=o(799),c=Object.assign;e.exports=!c||o(7929)((function(){var e={},t={},o=Symbol(),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach((function(e){t[e]=e})),7!=c({},e)[o]||Object.keys(c({},t)).join("")!=n}))?function(e,t){for(var o=a(e),c=arguments.length,h=1,d=i.f,u=s.f;c>h;)for(var p,f=l(arguments[h++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)p=m[v++],n&&!u.call(f,p)||(o[p]=f[p]);return o}:c},526:(e,t,o)=>{var n=o(2159),r=o(7856),i=o(3338),s=o(8989)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=o(7467)("iframe"),n=i.length;for(t.style.display="none",o(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][i[n]];return c()};e.exports=Object.create||function(e,t){var o;return null!==e?(a[l]=n(e),o=new a,a[l]=null,o[s]=e):o=c(),void 0===t?o:r(o,t)}},4743:(e,t,o)=>{var n=o(2159),r=o(3758),i=o(3206),s=Object.defineProperty;t.f=o(9666)?Object.defineProperty:function(e,t,o){if(n(e),t=i(t,!0),n(o),r)try{return s(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},7856:(e,t,o)=>{var n=o(4743),r=o(2159),i=o(6162);e.exports=o(9666)?Object.defineProperties:function(e,t){r(e);for(var o,s=i(t),a=s.length,l=0;a>l;)n.f(e,o=s[l++],t[o]);return e}},6183:(e,t,o)=>{var n=o(6274),r=o(3101),i=o(7932),s=o(3206),a=o(7069),l=o(3758),c=Object.getOwnPropertyDescriptor;t.f=o(9666)?c:function(e,t){if(e=i(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return r(!n.f.call(e,t),e[t])}},8195:(e,t)=>{t.f=Object.getOwnPropertySymbols},2963:(e,t,o)=>{var n=o(7069),r=o(7932),i=o(7428)(!1),s=o(8989)("IE_PROTO");e.exports=function(e,t){var o,a=r(e),l=0,c=[];for(o in a)o!=s&&n(a,o)&&c.push(o);for(;t.length>l;)n(a,o=t[l++])&&(~i(c,o)||c.push(o));return c}},6162:(e,t,o)=>{var n=o(2963),r=o(3338);e.exports=Object.keys||function(e){return n(e,r)}},6274:(e,t)=>{t.f={}.propertyIsEnumerable},4938:(e,t,o)=>{var n=o(3856),r=o(4579),i=o(7929);e.exports=function(e,t){var o=(r.Object||{})[e]||Object[e],s={};s[e]=t(o),n(n.S+n.F*i((function(){o(1)})),"Object",s)}},2050:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(7932),s=o(6274).f;e.exports=function(e){return function(t){for(var o,a=i(t),l=r(a),c=l.length,h=0,d=[];c>h;)o=l[h++],n&&!s.call(a,o)||d.push(e?[o,a[o]]:a[o]);return d}}},3101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2906:(e,t,o)=>{var n=o(6727),r=o(2159),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=o(9216)(Function.call,o(6183).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,o){return i(e,o),t?e.__proto__=o:n(e,o),e}}({},!1):void 0),check:i}},8989:(e,t,o)=>{var n=o(250)("keys"),r=o(5730);e.exports=function(e){return n[e]||(n[e]=r(e))}},250:(e,t,o)=>{var n=o(4579),r=o(3938),i="__core-js_shared__",s=r[i]||(r[i]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6531:(e,t,o)=>{var n=o(1052),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?r(e+t,0):i(e,t)}},1052:e=>{var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},7932:(e,t,o)=>{var n=o(799),r=o(8333);e.exports=function(e){return n(r(e))}},8728:(e,t,o)=>{var n=o(1052),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},6530:(e,t,o)=>{var n=o(8333);e.exports=function(e){return Object(n(e))}},3206:(e,t,o)=>{var n=o(6727);e.exports=function(e,t){if(!n(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!n(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},5730:e=>{var t=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+o).toString(36))}},8691:(e,t,o)=>{var n=o(3856);n(n.S,"Array",{isArray:o(1421)})},2699:(e,t,o)=>{var n=o(3856);n(n.S+n.F,"Object",{assign:o(8082)})},6760:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{create:o(526)})},961:(e,t,o)=>{var n=o(6530),r=o(6162);o(4938)("keys",(function(){return function(e){return r(n(e))}}))},9349:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{setPrototypeOf:o(2906).set})},520:(e,t,o)=>{var n=o(3856),r=o(2050)(!0);n(n.S,"Object",{entries:function(e){return r(e)}})},1808:(e,t,o)=>{var n=o(9638),r=o(4874),i=o.g.document,s=function(e,t,o,n){return e.addEventListener(t,o,n)},a=function(e,t,o,n){return e.removeEventListener(t,o,n)},l=[];function c(e,t,o){var n=function(e,t,o){var n,r;for(n=0;n<l.length;n++)if((r=l[n]).element===e&&r.type===t&&r.fn===o)return n}(e,t,o);if(n){var r=l[n].wrapper;return l.splice(n,1),r}}o.g.addEventListener||(s=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=c(e,t,n)||function(e,t,n){return function(t){var r=t||o.g.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(e,r)}}(e,0,n);return l.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},a=function(e,t,o){var n=c(e,t,o);if(n)return e.detachEvent("on"+t,n)}),e.exports={add:s,remove:a,fabricate:function(e,t,o){var s=-1===r.indexOf(t)?new n(t,{detail:o}):function(){var e;i.createEvent?(e=i.createEvent("Event")).initEvent(t,!0,!0):i.createEventObject&&(e=i.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(s):e.fireEvent("on"+t,s)}}},4874:(e,t,o)=>{var n=[],r="",i=/^on/;for(r in o.g)i.test(r)&&n.push(r.slice(2));e.exports=n},9638:(e,t,o)=>{var n=o.g.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"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=Boolean(t.bubbles),o.cancelable=Boolean(t.cancelable),o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}},3249:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.removeEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.detachEvent("on"+t,o)}:void 0);var i=r;t.default=i,e.exports=t.default},1416:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.addEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,o.call(e,t)}))}:void 0);var i=r;t.default=i,e.exports=t.default},9981:(e,t)=>{t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},1629:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=n(o(139)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r,e.exports=t.default},7624:(e,t)=>{t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},2565:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e),o=(0,i.default)(t),n=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(n,e))return a;void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect());return a={top:a.top+(o.pageYOffset||n.scrollTop)-(n.clientTop||0),left:a.left+(o.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}};var r=n(o(1629)),i=n(o(7624)),s=n(o(9981));e.exports=t.default},2939:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,r.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==s(e)&&"static"===(0,i.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var r=n(o(9981)),i=n(o(162));function s(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},7265:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o,n={top:0,left:0};"fixed"===(0,c.default)(e,"position")?o=e.getBoundingClientRect():(t=t||(0,s.default)(e),o=(0,i.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(n=(0,i.default)(t)),n.top+=parseInt((0,c.default)(t,"borderTopWidth"),10)-(0,a.default)(t)||0,n.left+=parseInt((0,c.default)(t,"borderLeftWidth"),10)-(0,l.default)(t)||0);return(0,r.default)({},o,{top:o.top-n.top-(parseInt((0,c.default)(e,"marginTop"),10)||0),left:o.left-n.left-(parseInt((0,c.default)(e,"marginLeft"),10)||0)})};var r=n(o(434)),i=n(o(2565)),s=n(o(2939)),a=n(o(504)),l=n(o(5770)),c=n(o(162));e.exports=t.default},5770:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft:e.scrollLeft;o?o.scrollTo(t,"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop):e.scrollLeft=t};var r=n(o(7624));e.exports=t.default},504:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop:e.scrollTop;o?o.scrollTo("pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft,t):e.scrollTop=t};var r=n(o(7624));e.exports=t.default},7023:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var n=e.currentStyle[t]||null;if(null==n&&o&&o[t]&&(n=o[t]),s.test(n)&&!i.test(t)){var a=o.left,l=e.runtimeStyle,c=l&&l.left;c&&(l.left=e.currentStyle.left),o.left="fontSize"===t?"1em":n,n=o.pixelLeft+"px",o.left=a,c&&(l.left=c)}return n}}};var r=n(o(3497)),i=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},162:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t,o){var n="",h="",d=t;if("string"==typeof t){if(void 0===o)return e.style[(0,r.default)(t)]||(0,s.default)(e).getPropertyValue((0,i.default)(t));(d={})[t]=o}Object.keys(d).forEach((function(t){var o=d[t];o||0===o?(0,c.default)(t)?h+=t+"("+o+") ":n+=(0,i.default)(t)+": "+o+";":(0,a.default)(e,(0,i.default)(t))})),h&&(n+=l.transform+": "+h+";");e.style.cssText+=";"+n};var r=n(o(3497)),i=n(o(4403)),s=n(o(7023)),a=n(o(1760)),l=o(702),c=n(o(3293));e.exports=t.default},1760:(e,t)=>{t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},3293:(e,t)=>{t.__esModule=!0,t.default=function(e){return!(!e||!o.test(e))};var o=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},702:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r,i,s,a,l,c,h,d,u,p,f,m=n(o(139)),g="transform";if(t.transform=g,t.animationEnd=s,t.transitionEnd=i,t.transitionDelay=h,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=f,t.animationTiming=p,t.animationDuration=u,t.animationName=d,m.default){var v=function(){for(var e,t,o=document.createElement("div").style,n={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},r=Object.keys(n),i="",s=0;s<r.length;s++){var a=r[s];if(a+"TransitionProperty"in o){i="-"+a.toLowerCase(),e=n[a]("TransitionEnd"),t=n[a]("AnimationEnd");break}}!e&&"transitionProperty"in o&&(e="transitionend");!t&&"animationName"in o&&(t="animationend");return o=null,{animationEnd:t,transitionEnd:e,prefix:i}}();r=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=s=v.animationEnd,t.transform=g=r+"-"+g,t.transitionProperty=a=r+"-transition-property",t.transitionDuration=l=r+"-transition-duration",t.transitionDelay=h=r+"-transition-delay",t.transitionTiming=c=r+"-transition-timing-function",t.animationName=d=r+"-animation-name",t.animationDuration=u=r+"-animation-duration",t.animationTiming=p=r+"-animation-delay",t.animationDelay=f=r+"-animation-timing-function"}var y={transform:g,end:i,property:a,timing:c,delay:h,duration:l};t.default=y},1908:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,(function(e,t){return t.toUpperCase()}))};var o=/-(.)/g;e.exports=t.default},3497:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e.replace(i,"ms-"))};var r=n(o(1908)),i=/^-ms-/;e.exports=t.default},1185:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,"-$1").toLowerCase()};var o=/([A-Z])/g;e.exports=t.default},4403:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e).replace(i,"-ms-")};var r=n(o(1185)),i=/^ms-/;e.exports=t.default},139:(e,t)=>{t.__esModule=!0,t.default=void 0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=o,e.exports=t.default},9425:e=>{var t={},o="(?:^|\\s)",n="(?:\\s|$)";function r(e){var r=t[e];return r?r.lastIndex=0:t[e]=r=new RegExp(o+e+n,"g"),r}e.exports={add:function(e,t){var o=e.className;o.length?r(t).test(o)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(r(t)," ").trim()}}},7137:(e,t,o)=>{var n=o(5229),r=o(1808),i=o(9425),s=document,a=s.documentElement;function l(e,t,n,i){o.g.navigator.pointerEnabled?r[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],i):o.g.navigator.msPointerEnabled?r[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],i):(r[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],i),r[t](e,n,i))}function c(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;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function h(e,t){return void 0!==o.g[t]?o.g[t]:a.clientHeight?a[e]:s.body[e]}function d(e,t,o){var n,r=e||{},i=r.className;return r.className+=" gu-hide",n=s.elementFromPoint(t,o),r.className=i,n}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 v(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||y(e)}function y(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||y(g(e))))}function C(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=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),n={pageX:"clientX",pageY:"clientY"};return e in n&&!(e in o)&&n[e]in o&&(e=n[e]),o[e]}e.exports=function(e,t){var o,y,_,R,w,b,T,E,x,M,O;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var I,D=null,N=t||{};void 0===N.moves&&(N.moves=p),void 0===N.accepts&&(N.accepts=p),void 0===N.invalid&&(N.invalid=function(){return!1}),void 0===N.containers&&(N.containers=e||[]),void 0===N.isContainer&&(N.isContainer=u),void 0===N.copy&&(N.copy=!1),void 0===N.copySortSource&&(N.copySortSource=!1),void 0===N.revertOnSpill&&(N.revertOnSpill=!1),void 0===N.removeOnSpill&&(N.removeOnSpill=!1),void 0===N.direction&&(N.direction="vertical"),void 0===N.ignoreInputTextSelection&&(N.ignoreInputTextSelection=!0),void 0===N.mirrorContainer&&(N.mirrorContainer=s.body);var z=n({containers:N.containers,start:function(e){var t=F(e);t&&B(t)},end:Z,cancel:Y,remove:$,destroy:function(){H(!0),j({})},canMove:function(e){return!!F(e)},dragging:!1});return!0===N.removeOnSpill&&z.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){z.dragging&&i.add(e,"gu-hide")})),H(),z;function G(e){return-1!==z.containers.indexOf(e)||N.isContainer(e)}function H(e){var t=e?"remove":"add";l(a,t,"mousedown",P),l(a,t,"mouseup",j)}function k(e){l(a,e?"remove":"add","mousemove",L)}function A(e){var t=e?"remove":"add";r[t](a,"selectstart",W),r[t](a,"click",W)}function W(e){I&&e.preventDefault()}function P(e){if(b=e.clientX,T=e.clientY,!(1!==c(e)||e.metaKey||e.ctrlKey)){var t=e.target,o=F(t);o&&(I=o,k(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function L(e){if(I)if(0!==c(e)){if(void 0===e.clientX||e.clientX!==b||void 0===e.clientY||e.clientY!==T){if(N.ignoreInputTextSelection){var t=S("clientX",e),n=S("clientY",e);if(v(s.elementFromPoint(t,n)))return}var r=I;k(!0),A(),Z(),B(r);var d,u={left:(d=_.getBoundingClientRect()).left+h("scrollLeft","pageXOffset"),top:d.top+h("scrollTop","pageYOffset")};R=S("pageX",e)-u.left,w=S("pageY",e)-u.top,i.add(M||_,"gu-transit"),function(){if(o)return;var e=_.getBoundingClientRect();(o=_.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",i.rm(o,"gu-transit"),i.add(o,"gu-mirror"),N.mirrorContainer.appendChild(o),l(a,"add","mousemove",J),i.add(N.mirrorContainer,"gu-unselectable"),z.emit("cloned",o,_,"mirror")}(),J(e)}}else j({})}function F(e){if(!(z.dragging&&o||G(e))){for(var t=e;g(e)&&!1===G(g(e));){if(N.invalid(e,t))return;if(!(e=g(e)))return}var n=g(e);if(n)if(!N.invalid(e,t))if(N.moves(e,n,t,C(e)))return{item:e,source:n}}}function B(e){var t,o;t=e.item,o=e.source,("boolean"==typeof N.copy?N.copy:N.copy(t,o))&&(M=e.item.cloneNode(!0),z.emit("cloned",M,e.item,"copy")),y=e.source,_=e.item,E=x=C(e.item),z.dragging=!0,z.emit("drag",_,y)}function Z(){if(z.dragging){var e=M||_;V(e,g(e))}}function U(){I=!1,k(!0),A(!0)}function j(e){if(U(),z.dragging){var t=M||_,n=S("clientX",e),r=S("clientY",e),i=X(d(o,n,r),n,r);i&&(M&&N.copySortSource||!M||i!==y)?V(t,i):N.removeOnSpill?$():Y()}}function V(e,t){var o=g(e);M&&N.copySortSource&&t===y&&o.removeChild(_),K(t)?z.emit("cancel",e,y,y):z.emit("drop",e,t,y,x),q()}function $(){if(z.dragging){var e=M||_,t=g(e);t&&t.removeChild(e),z.emit(M?"cancel":"remove",e,t,y),q()}}function Y(e){if(z.dragging){var t=arguments.length>0?e:N.revertOnSpill,o=M||_,n=g(o),r=K(n);!1===r&&t&&(M?n&&n.removeChild(M):y.insertBefore(o,E)),r||t?z.emit("cancel",o,y,y):z.emit("drop",o,n,y,x),q()}}function q(){var e=M||_;U(),o&&(i.rm(N.mirrorContainer,"gu-unselectable"),l(a,"remove","mousemove",J),g(o).removeChild(o),o=null),e&&i.rm(e,"gu-transit"),O&&clearTimeout(O),z.dragging=!1,D&&z.emit("out",e,D,y),z.emit("dragend",e),y=_=M=E=x=O=D=null}function K(e,t){var n;return n=void 0!==t?t:o?x:C(M||_),e===y&&n===E}function X(e,t,o){for(var n=e;n&&!r();)n=g(n);return n;function r(){if(!1===G(n))return!1;var r=Q(n,e),i=ee(n,r,t,o);return!!K(n,i)||N.accepts(_,n,y,i)}}function J(e){if(o){e.preventDefault();var t=S("clientX",e),n=S("clientY",e),r=t-R,i=n-w;o.style.left=r+"px",o.style.top=i+"px";var s=M||_,a=d(o,t,n),l=X(a,t,n),c=null!==l&&l!==D;(c||null===l)&&(D&&f("out"),D=l,c&&f("over"));var h=g(s);if(l!==y||!M||N.copySortSource){var u,p=Q(l,a);if(null!==p)u=ee(l,p,t,n);else{if(!0!==N.revertOnSpill||M)return void(M&&h&&h.removeChild(s));u=E,l=y}(null===u&&c||u!==s&&u!==C(s))&&(x=u,l.insertBefore(s,u),z.emit("shadow",s,l,y))}else h&&h.removeChild(s)}function f(e){z.emit(e,s,D,y)}}function Q(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===a?null:o}function ee(e,t,o,n){var r="horizontal"===N.direction,i=t!==e?function(){var e=t.getBoundingClientRect();if(r)return s(o>e.left+f(e)/2);return s(n>e.top+m(e)/2)}():function(){var t,i,s,a=e.children.length;for(t=0;t<a;t++){if(s=(i=e.children[t]).getBoundingClientRect(),r&&s.left+s.width/2>o)return i;if(!r&&s.top+s.height/2>n)return i}return null}();return i;function s(e){return e?C(t):t}}}},9915:(e,t,o)=>{o.d(t,{Z:()=>m});var n=o(4184),r=o.n(n),i=o(6689),s=o.n(i);class a{name;notify;constructor(e,t){this.name=e,this.notify=t}}class l{observer;unsubscribeCallback;constructor(e,t){this.observer=e,this.unsubscribeCallback=t}unsubscribe(){this.unsubscribeCallback(this.observer)}}const c=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){const o=new a(e,t);return this.observers.add(o),new l(o,(e=>{this.observers.delete(e)}))}unsubscribe(e){e&&e.unsubscribe()}},h="ON_DRAG_START",d="ON_DRAG_END";let u=null;const p=new Map;class f extends s().Component{dndComponentRef=s().createRef();mounted=!1;onDragStartSubscription;onDragEndSubscription;constructor(e){super(e),this.onDragStartSubscription=c.subscribe(h,(e=>{const t=null!==e.content&&p.get(e.content);this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData)})})),this.onDragEndSubscription=c.subscribe(d,(()=>{this.mounted&&this.setState({isDroppable:!1})})),this.state={isDragging:!1,isDroppable:!1,isOver:!1}}componentDidMount(){if(this.mounted=!0,null!==u){const 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){const{canDrop:n}=this.props;return n&&("boolean"==typeof n||n(e,t,o))}addDragEndEventListenerOnce(){const e=this.dndComponentRef?.current;e&&(e.removeEventListener("dragend",this.onDragEnd),e.addEventListener("dragend",this.onDragEnd,{once:!0}))}isDraggable(){const{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){const t=p.get(u);this.props.onDragEnter(e,t,this.props.dndData)}}onDragLeave(e){e.stopPropagation();const 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();const t=p.get(u);this.canDrop(e,t,this.props.dndData)&&(e.preventDefault(),this.setState({isOver:!0}))}onDragStart(e){e.stopPropagation();const{dndData:t,dndId:o,onBeginDrag:n}=this.props;u=o,p.set(u,t),this.addDragEndEventListenerOnce(),c.broadcast({name:h,content:u}),n&&n(e,t),this.setState({isDragging:!0})}onDragEnd=e=>{e.stopPropagation();const{dndData:t,onEndDrag:o}=this.props;o&&o(e,p.get(u),t),c.broadcast({name:d,content:u}),p.delete(u),u=null,this.mounted&&this.setState({isDragging:!1})};onDrop(e){e.stopPropagation();const{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(){const{children:e,className:t,forwardDndPropsToChildren:o,style:n}=this.props,{isDragging:i,isDroppable:a,isOver:l}=this.state,c=this.isDraggable(),h=r()("dnd-component",t,{draggable:c,dragging:i,droppable:a,hovering:l});return s().createElement("div",{className:h,draggable:c,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:n},o?this.cloneChildrenWithShallowMergedProps(e,{isDraggable:c,isDragging:i,isDroppable:a,isOver:l}):e)}}var m=f},3607:(e,t,o)=>{o.d(t,{Z:()=>ms});var n={};o.r(n),o.d(n,{types:()=>fi});var r=o(4184),i=o.n(r),s=o(6689),a=o.n(s);function l(e){switch(e){case 48:return 0;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 c(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function h(e){const t=e.h/360,{s:o,l:n,a:r}=e;let i,s,a;if(0===o)i=s=a=n;else{const e=n<.5?n*(1+o):n+o-n*o,r=2*n-e;i=c(r,e,t+1/3),s=c(r,e,t),a=c(r,e,t-1/3)}return{type:"rgba",r:Math.round(255*i),g:Math.round(255*s),b:Math.round(255*a),a:r}}const d=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function u(e){if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){const t=(e=e.trim()).length;if(0===t)return null;if(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)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:(16*l(e.charCodeAt(7))+l(e.charCodeAt(8)))/255};if(4===t){const t=l(e.charCodeAt(1)),o=l(e.charCodeAt(2)),n=l(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:1}}if(5===t){const t=l(e.charCodeAt(1)),o=l(e.charCodeAt(2)),n=l(e.charCodeAt(3)),r=l(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:(16*r+r)/255}}return null}(e);const t=d.exec(e);if(null==t)return null;const o=t[1];let n;switch(o){case"rgb":case"hsl":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),1];break;case"rgba":case"hsla":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),parseFloat(t[5])];break;default:return null}return"hsl"===o||"hsla"===o?h({h:n[0],s:n[1],l:n[2],a:n[3]}):{type:"rgba",r:n[0],g:n[1],b:n[2],a:n[3]}}const p=e=>{return"hsla"===(t=u(e)).type&&(t=h(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};var f=o(827),m=o(3308);const g=e=>!(e===f.o$||e===f.lH),v=/^.*(:?\n){0,2}/m;function y(e,t="\n"){return e.replace("\n"===t?v:new RegExp(`^.*(:?${t}){0,2}`,"m"),"")}const C=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;function S(e){const t=[];for(let o=C.exec(e);null!==o;o=C.exec(e)){const[,e,n]=o;t.push({name:e,email:n})}return t}var _=o(376),R=o(7675);const w=/(?<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,b=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,T=new Map;let E;const x=["th","st","nd","rd"];function M(e){const t=e%100;return`${e}${x[(t-20)%10]??x[t]??x[0]}`}function O(e,t,o,n=!0){const r=`${o??""}:${t=t??void 0}`;let i=T.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=b.exec(e);if(null!=t?.groups){const{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}const o={localeMatcher:"best fit"};for(const{groups:t}of e.matchAll(w))if(null!=t)for(const e in t){const n=t[e];if(null!=n)switch(e){case"year":o.year=4===n.length?"numeric":"2-digit";break;case"month":switch(n.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":o.day="DD"===n?"2-digit":"numeric";break;case"weekday":switch(n.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===n.length?"2-digit":"numeric",o.hour12="hh"===n||"h"===n;break;case"minute":o.minute=2===n.length?"2-digit":"numeric";break;case"second":o.second=2===n.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===n.length?"long":"short"}}return o}(t);let s;s=null==o?E:"system"===o?void 0:[o],i=new Intl.DateTimeFormat(s,e),n&&T.set(r,i)}if(null==t||b.test(t))return i.format(e);function s(e){const t=`${o??""}:time:${e}`;let r=T.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let s;s=null==o?E:"system"===o?void 0:[o],r=new Intl.DateTimeFormat(s,i),n&&T.set(t,r)}return r}const a=i.formatToParts(e);return t.replace(w,((t,o,n,r,i,l,c,h,d,u,p,f,m,g,v)=>{if(null!=o)return o.substring(1,o.length-1);for(const t in v){const o=v[t];if(null==o)continue;const n=a.find((e=>e.type===t));if("Do"===o&&"day"===n?.type)return M(Number(n.value));if("a"===o&&"dayPeriod"===n?.type){const t=s("short").formatToParts(e).find((e=>"dayPeriod"===e.type));return` ${(t??n)?.value??""}`}return n?.value??""}return""}))}let I={};function D(e,t,o,n){const r=`${e}${n?"_compact":""}`;let i=I[e];return i||(i=o+e*t+t/2,I[r]=i,i)}const N={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 z(e,t){let o="";for(const[e,n]of Object.entries(N)){const r=t[n];r&&(o+=` ${e}="${r}"`)}return`<${e}${o} />`}function G(e){return z("line",e)}function H(e,t,o,n){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:o,strokeDasharray:g(e)?n?1:2:0,stroke:t}}function k(e,t,o,n){return`${e}_${t}_${o||"+"}${n?"_compact":""}`}function A(e,t,o){return`${e}_${t||"+"}${o?"_compact":""}`}var W=o(5191),P=o(466);const L={"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","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 pull changes",ResizePanel:"Resize Panel",Stash:"Stash",Hide:"Hide",Show:"Show","WorkDirMessageInput-WIPPlaceholder":"WIP"};var F=o(8649),B=o(4561);const Z={0:1,90:0,180:-1,270:0},U={0:0,90:1,180:0,270:-1},j=m.O5-m.NP,V=` A ${j} ${j} 0 0 0 `;function $(e,t,o){const n=Z[o],r=U[o];return{x:e-m.O5*n,xOffset:-n*m.NP,y:t+m.O5*r,yOffset:r*m.NP}}const Y={};var q=function(e,t,o,n,r,i,s,a){const l=H(n,e,s,a);return l.d=function(e,t,o,n){const r=`${e}_${t}_${o}_${n}`;let i=Y[r];if(i)return i;const s=$(e,t,n),a=$(e,t,o);return i=`M ${s.x} ${s.y}${a.xOffset?` H ${s.x+a.xOffset}`:` V ${s.y+a.yOffset}`}${V}${a.x+s.xOffset} ${a.y+s.yOffset}${s.xOffset?` H ${a.x}`:` V ${a.y}`}`,Y[r]=i,i}(r,i,o,t),z("path",l)};let K={};function X(e,t,o,n,r,i,s,a){const l=k(e,t,o,a);let c=K[l];return c||(c=function(e,t){return e===t}(t,e)?function(e,t,o,n,r,i,s){const a=H(o,e,i,s);return a.x1=D(t,n,r,s),a.x2=D(t,n,r,s),a.y1=0,a.y2=m.at/2,G(a)}(n[e],t,o,r,i,s,a):function(e,t,o,n,r,i,s,a){const l=H(n,e,s,a),c=t<o?-m.O5:m.O5,h={...l};h.x1=D(o,r,i,a),h.x2=D(o,r,i,a),h.y1=0,h.y2=m.An;const d={...l};return d.x1=D(o,r,i,a)+c,d.x2=D(t,r,i,a),d.y1=m.at/2,d.y2=m.at/2,`<g>${G(h)}${q(e,t>o?0:90,t>o?90:180,n,D(o,r,i,a)+c,m.An,s,a)}${G(d)}</g>`}(n[e],t,e,o,r,i,s,a),K[l]=c,c)}let J={};function Q(e,t,o,n,r,i,s){const a=A(e,t,s);let l=J[a];if(l)return l;const c=D(e,n,r,s),h=H(t,o[e],i,s);return h.x1=c,h.x2=c,h.y1=0,h.y2=m.at,l=G(h),J[a]=l,l}let ee={};function te(e,t,o,n,r,i,s,a){const l=k(e,t,o,a);let c=ee[l];return c||(c=function(e,t){return e===t}(t,e)?function(e,t,o,n,r,i,s){const a=H(o,e,i,s);return a.x1=D(t,n,r,s),a.x2=D(t,n,r,s),a.y1=m.at/2,a.y2=m.at,G(a)}(n[e],t,o,r,i,s,a):function(e,t,o,n,r,i,s,a){const l=H(n,e,s,a),c=t<o?-m.O5:m.O5,h={...l};h.x1=D(o,r,i,a),h.x2=D(o,r,i,a),h.y1=m.at-m.$s,h.y2=m.at;const d={...l};return d.x1=D(o,r,i,a)+c,d.x2=D(t,r,i,a),d.y1=m.at/2,d.y2=m.at/2,`<g>${q(e,t<o?180:270,t<o?270:0,n,D(o,r,i,a)+c,m.at-m.$s,s,a)}${G(h)}${G(d)}</g>`}(n[e],t,e,o,r,i,s,a),ee[l]=c,c)}let oe={};function ne(e,t,o,n,r,i,s,a){const l=function(e,t,o,n){let r="";for(let i=0;i<=t;i++){const{passThrough:t,starting:s,ending:a}=e[i]??{};r=`${r}_${k(i,o,s?.type,n)}_${k(i,o,a?.type,n)}_${A(i,t?.type,n)}`}return r}(e,t,o,a);let c=oe[l];if(c)return c;let h="";for(let l=0;l<=t;l+=1){const t=e[l];if(!t)continue;const{passThrough:c,starting:d,ending:u}=t;h+=d?te(l,o,d.type,n,r,i,s,a):"",h+=c?Q(l,c.type,n,r,i,s,a):"",h+=u?X(l,o,u.type,n,r,i,s,a):""}return c=`url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${h}</g></svg>')`,oe[l]=c,c}function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(e){return ie="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},ie(e)}function se(e){var t=function(e,t){if("object"!==ie(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ie(t)?t:String(t)}function ae(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,se(n.key),n)}}function le(e,t,o){return t&&ae(e.prototype,t),o&&ae(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function ce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(e,t){if(t&&("object"===ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ce(e)}function de(e){return de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},de(e)}function ue(e,t){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ue(e,t)}function pe(e,t){if("function"!=typeof t&&null!==t)throw new 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&&ue(e,t)}function fe(e,t,o){return(t=se(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var me=o(6871);function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ge.apply(this,arguments)}function ve(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=ve(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const ye=function(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=ve(e))&&(n&&(n+=" "),n+=t);return n};function Ce(e){var t=e.cellCount,o=e.cellSize,n=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,s=e.nextCellSize,a=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof o&&"number"!=typeof s||o===s)||(n(r),l>=0&&l===a&&c())}function Se(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var _e=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;re(this,e),fe(this,"_cellSizeAndPositionData",{}),fe(this,"_lastMeasuredIndex",-1),fe(this,"_lastBatchedIndex",-1),fe(this,"_cellCount",void 0),fe(this,"_cellSizeGetter",void 0),fe(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return le(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=n}},{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,n=this._lastMeasuredIndex+1;n<=e;n++){var r=this._cellSizeGetter({index:n});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));null===r?(this._cellSizeAndPositionData[n]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:o,size:r},o+=r,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=e.align,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var s,a=this.getSizeAndPositionOfCell(i),l=a.offset,c=l-n+a.size;switch(o){case"start":s=l;break;case"end":s=c;break;case"center":s=l-(n-a.size)/2;break;default:s=Math.max(c,Math.min(l,r))}var h=this.getTotalSize();return Math.max(0,Math.min(h-n,s))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var n=o+t,r=this._findNearestCell(o),i=this.getSizeAndPositionOfCell(r);o=i.offset+i.size;for(var s=r;o<n&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:r,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 n=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===o)return n;r<o?t=n+1:r>o&&(e=n-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}(),Re=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},we=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?Re():o,r=Se(t,["maxScrollSize"]);re(this,e),fe(this,"_cellSizeAndPositionManager",void 0),fe(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new _e(r),this._maxScrollSize=n}return le(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,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(r-n))}},{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=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var s=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:s})}},{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,n=e.totalSize;return n<=t?0:o/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(n-t))}}]),e}();function be(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var n=o.callback,r=o.indices,i=Object.keys(r),s=!e||i.every((function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0})),a=i.length!==Object.keys(t).length||i.some((function(e){var o=t[e],n=r[e];return Array.isArray(n)?o.join(",")!==n.join(","):o!==n}));t=r,s&&a&&n(r)}}var Te=-1;function Ee(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,n=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,s=e.previousScrollToIndex,a=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,h=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=h>=0&&h<f;m&&(d!==a||u||!r||"number"==typeof t&&t!==r||c!==i||h!==s)?p(h):!m&&f>0&&(d<a||f<n)&&l>o.getTotalSize()-d&&p(f-1)}const xe=!("undefined"==typeof window||!window.document||!window.document.createElement);var Me,Oe;function Ie(e){if((!Me&&0!==Me||e)&&xe){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),Me=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Me}var De,Ne,ze=(Oe="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||Oe.webkitRequestAnimationFrame||Oe.mozRequestAnimationFrame||Oe.oRequestAnimationFrame||Oe.msRequestAnimationFrame||function(e){return Oe.setTimeout(e,1e3/60)},Ge=Oe.cancelAnimationFrame||Oe.webkitCancelAnimationFrame||Oe.mozCancelAnimationFrame||Oe.oCancelAnimationFrame||Oe.msCancelAnimationFrame||function(e){Oe.clearTimeout(e)},He=ze,ke=Ge,Ae=function(e){return ke(e.id)},We=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:He((function r(){Date.now()-o>=t?e.call():n.id=He(r)}))};return n};function Pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Le(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Pe(o,!0).forEach((function(t){fe(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pe(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Fe="observed",Be="requested",Ze=(Ne=De=function(e){function t(e){var o;re(this,t),fe(ce(o=he(this,de(t).call(this,e))),"_onGridRenderedMemoizer",be()),fe(ce(o),"_onScrollMemoizer",be(!1)),fe(ce(o),"_deferredInvalidateColumnIndex",null),fe(ce(o),"_deferredInvalidateRowIndex",null),fe(ce(o),"_recomputeScrollLeftFlag",!1),fe(ce(o),"_recomputeScrollTopFlag",!1),fe(ce(o),"_horizontalScrollBarSize",0),fe(ce(o),"_verticalScrollBarSize",0),fe(ce(o),"_scrollbarPresenceChanged",!1),fe(ce(o),"_scrollingContainer",void 0),fe(ce(o),"_childrenToDisplay",void 0),fe(ce(o),"_columnStartIndex",void 0),fe(ce(o),"_columnStopIndex",void 0),fe(ce(o),"_rowStartIndex",void 0),fe(ce(o),"_rowStopIndex",void 0),fe(ce(o),"_renderedColumnStartIndex",0),fe(ce(o),"_renderedColumnStopIndex",0),fe(ce(o),"_renderedRowStartIndex",0),fe(ce(o),"_renderedRowStopIndex",0),fe(ce(o),"_initialScrollTop",void 0),fe(ce(o),"_initialScrollLeft",void 0),fe(ce(o),"_disablePointerEventsTimeoutId",void 0),fe(ce(o),"_styleCache",{}),fe(ce(o),"_cellCache",{}),fe(ce(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),fe(ce(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}})})),fe(ce(o),"_onWheel",(function(e){var t=e.deltaX,n=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:n})})),fe(ce(o),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e})),fe(ce(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new we({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new we({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:r,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 pe(t,e),le(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,n=e.columnIndex,r=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,s=void 0===i?this.props.scrollToRow:i,a=Le({},this.props,{scrollToAlignment:o,scrollToColumn:r,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{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=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n;if(!(r<0)){this._debounceScrollEnded();var i=this.props,s=i.autoHeight,a=i.autoWidth,l=i.height,c=i.width,h=this.state.instanceProps,d=h.scrollbarSize,u=h.rowSizeAndPositionManager.getTotalSize(),p=h.columnSizeAndPositionManager.getTotalSize(),f=Math.min(Math.max(0,p-c+d),o),m=Math.min(Math.max(0,u-l+d),r);if(this.state.scrollLeft!==f||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?1:Te:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:Te:this.state.scrollDirectionVertical,scrollPositionChangeReason:Fe};s||(g.scrollTop=m),a||(g.scrollLeft=f),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:u})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.height,a=n.width,l=this.state.instanceProps.scrollbarSize,c=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),h=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,h-a+l),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,c-s+l),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:Te:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?1:Te:this.state.scrollDirectionVertical,scrollPositionChangeReason:Be};r||(p.scrollTop=u),i||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:h,totalRowsHeight:c})}},{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,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.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,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.scrollToColumn,a=i.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(o),l.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=s>=0&&(1===this.state.scrollDirectionHorizontal?o<=s:o>=s),this._recomputeScrollTopFlag=a>=0&&(1===this.state.scrollDirectionVertical?r<=a:r>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,n=this.props,r=n.columnCount,i=n.onScrollToTargetCausedUpdate,s=this.state,a=s.scrollLeft,l=s.scrollTop,c=this.props,h=this.state,d=void 0,u=void 0;if(r>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(Le({},c,{scrollToColumn:t}),h,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(Le({},c,{scrollToRow:o}),h,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(i&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:a,g="number"!=typeof u?u:l;i({clientHeight:c.height,clientWidth:c.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,n=e.height,r=e.scrollLeft,i=e.scrollToColumn,s=e.scrollTop,a=e.scrollToRow,l=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=Le({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof r&&r>=0||"number"==typeof s&&s>=0){var h=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:s});h&&(h.needToResetStyleCache=!1,this.setState(h))}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=n>0&&l>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:s||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.columnCount,a=n.height,l=n.rowCount,c=n.scrollToAlignment,h=n.scrollToColumn,d=n.scrollToRow,u=n.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var y=s>0&&0===e.columnCount||l>0&&0===e.rowCount;m===Be&&(!i&&f>=0&&(f!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=f),!r&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var C=(0===e.width||0===e.height)&&a>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Ee({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:c,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Ee({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var S=v.rowSizeAndPositionManager.getTotalSize(),_=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:_,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&Ae(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,n=e.autoWidth,r=e.className,i=e.containerProps,a=e.containerRole,l=e.containerStyle,c=e.height,h=e.id,d=e.noContentRenderer,u=e.role,p=e.style,f=e.tabIndex,m=e.width,g=this.state,v=g.instanceProps,y=g.needToResetStyleCache,C=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var _=v.columnSizeAndPositionManager.getTotalSize(),R=v.rowSizeAndPositionManager.getTotalSize(),w=R>c?v.scrollbarSize:0,b=_>m?v.scrollbarSize:0;b===this._horizontalScrollBarSize&&w===this._verticalScrollBarSize||(this._horizontalScrollBarSize=b,this._verticalScrollBarSize=w,this._scrollbarPresenceChanged=!0),S.overflowX=_+w<=m?"hidden":"auto",S.overflowY=R+b<=c?"hidden":"auto";var T=this._childrenToDisplay,E=0===T.length&&c>0&&m>0;return s.createElement("div",ge({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:ye("ReactVirtualized__Grid",r),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:u,style:Le({},S,{},p),tabIndex:f}),T.length>0&&s.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:Le({width:t?"auto":_,height:R,maxWidth:_,maxHeight:R,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"},l)},T),E&&d())}},{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,n=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,s=e.height,a=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,h=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,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var C=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),S=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),_=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),R=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=C.start,this._renderedColumnStopIndex=C.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var w=l({direction:"horizontal",cellCount:r,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof C.start?C.start:0,stopIndex:"number"==typeof C.stop?C.stop:-1}),b=l({direction:"vertical",cellCount:h,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),T=w.overscanStartIndex,E=w.overscanStopIndex,x=b.overscanStartIndex,M=b.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var O=x;O<=M;O++)if(!i.has(O,0)){T=0,E=r-1;break}if(!i.hasFixedWidth())for(var I=T;I<=E;I++)if(!i.has(0,I)){x=0,M=h-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:E,deferredMeasurementCache:i,horizontalOffsetAdjustment:_,isScrolling:y,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:x,rowStopIndex:M,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:R,visibleColumnIndices:C,visibleRowIndices:S}),this._columnStartIndex=T,this._columnStopIndex=E,this._rowStartIndex=x,this._rowStopIndex=M}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Ae(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=We(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,n=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:n,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:n}})}},{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")?Boolean(e.isScrolling):Boolean(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,n=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{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,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}},{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 n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(n,"-").concat(r);this._styleCache[i]=e[i],o&&(this._cellCache[i]=t[i])}}},{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,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollTopForScrollToRowStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}}],[{key:"getDerivedStateFromProps",value:function(e,o){var 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 r,i,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}),Ce({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)}}),Ce({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,Le({},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,n=e.scrollTop,r={scrollPositionChangeReason:Be};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?1:Te,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?1:Te,r.scrollTop=n),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,n=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,s=e.width,a=t.scrollLeft,l=t.instanceProps;if(o>0){var c=o-1,h=i<0?c:Math.min(c,i),d=l.rowSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>n?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:s-u,currentOffset:a,targetIndex:h})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var n=o.scrollLeft,r=t._getCalculatedScrollLeft(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,n=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,s=e.width,a=t.scrollTop,l=t.instanceProps;if(n>0){var c=n-1,h=i<0?c:Math.min(c,i),d=l.columnSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>s?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:o-u,currentOffset:a,targetIndex:h})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var n=o.scrollTop,r=t._getCalculatedScrollTop(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:r}):{}}}]),t}(s.PureComponent),fe(De,"propTypes",null),Ne);fe(Ze,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,n=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,s=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,h=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],C=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!l&&!C,_=u;_<=p;_++)for(var R=d.getSizeAndPositionOfCell(_),w=r;w<=i;w++){var b=n.getSizeAndPositionOfCell(w),T=w>=g.start&&w<=g.stop&&_>=v.start&&_<=v.stop,E="".concat(_,"-").concat(w),x=void 0;S&&f[E]?x=f[E]:s&&!s.has(_,w)?x={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(x={height:R.size,left:b.offset+a,position:"absolute",top:R.offset+m,width:b.size},f[E]=x);var M={columnIndex:w,isScrolling:l,isVisible:T,key:E,parent:h,rowIndex:_,style:x},O=void 0;!c&&!l||a||m?O=o(M):(t[E]||(t[E]=o(M)),O=t[E]),null!=O&&!1!==O&&y.push(O)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Ie,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,me.polyfill)(Ze);const Ue=Ze;function je(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),1===n?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i+1)}}var Ve,$e;function Ye(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var qe=($e=Ve=function(e){function t(){var e,o;re(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return fe(ce(o=he(this,(e=de(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),fe(ce(o),"_columnStartIndex",0),fe(ce(o),"_columnStopIndex",0),fe(ce(o),"_rowStartIndex",0),fe(ce(o),"_rowStopIndex",0),fe(ce(o),"_onKeyDown",(function(e){var t=o.props,n=t.columnCount,r=t.disabled,i=t.mode,s=t.rowCount;if(!r){var a=o._getScrollState(),l=a.scrollToColumn,c=a.scrollToRow,h=o._getScrollState(),d=h.scrollToColumn,u=h.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===i?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,n-1):Math.min(o._columnStopIndex+1,n-1);break;case"ArrowUp":u="cells"===i?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}d===l&&u===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}})),fe(ce(o),"_onSectionRendered",(function(e){var t=e.columnStartIndex,n=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=n,o._rowStartIndex=r,o._rowStopIndex=i})),o}return pe(t,e),le(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,n=this._getScrollState(),r=n.scrollToColumn,i=n.scrollToRow;return s.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:r,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,n=this.props,r=n.isControlled,i=n.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:o}),r||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?Ye(o,!0).forEach((function(t){fe(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ye(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}(s.PureComponent),fe(Ve,"propTypes",null),$e);fe(qe,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,me.polyfill)(qe);function Ke(e,t){var n,r=void 0!==(n=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o.g).document&&n.document.attachEvent;if(!r){var i=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),s=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(o){o.call(t,e)})))}))}},c=!1,h="",d="animationstart",u="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=n.document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var m=0;m<u.length;m++)if(void 0!==f.style[u[m]+"AnimationName"]){h="-"+u[m].toLowerCase()+"-",d=p[m],c=!0;break}var g="resizeanim",v="@"+h+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",y=h+"animation: 1ms "+g+"; "}return{addResizeListener:function(t,o){if(r)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,s=n.getComputedStyle(t);s&&"static"==s.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(v||"")+".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%; }',n=t.head||t.getElementsByTagName("head")[0],r=t.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(t.createTextNode(o)),n.appendChild(r)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var h=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=h.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),a(t),t.addEventListener("scroll",l,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&a(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var Xe,Je;function Qe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function et(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Qe(o,!0).forEach((function(t){fe(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Qe(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var tt=(Je=Xe=function(e){function t(){var e,o;re(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return fe(ce(o=he(this,(e=de(t)).call.apply(e,[this].concat(r)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),fe(ce(o),"_parentNode",void 0),fe(ce(o),"_autoSizer",void 0),fe(ce(o),"_window",void 0),fe(ce(o),"_detectElementResize",void 0),fe(ce(o),"_onResize",(function(){var e=o.props,t=e.disableHeight,n=e.disableWidth,r=e.onResize;if(o._parentNode){var i=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,a=(o._window||window).getComputedStyle(o._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,h=parseInt(a.paddingTop,10)||0,d=parseInt(a.paddingBottom,10)||0,u=i-h-d,p=s-l-c;(!t&&o.state.height!==u||!n&&o.state.width!==p)&&(o.setState({height:i-h-d,width:s-l-c}),r({height:i,width:s}))}})),fe(ce(o),"_setRef",(function(e){o._autoSizer=e})),o}return pe(t,e),le(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=Ke(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,n=e.disableHeight,r=e.disableWidth,i=e.style,a=this.state,l=a.height,c=a.width,h={overflow:"visible"},d={};return n||(h.height=0,d.height=l),r||(h.width=0,d.width=c),s.createElement("div",{className:o,ref:this._setRef,style:et({},h,{},i)},t(d))}}]),t}(s.Component),fe(Xe,"propTypes",null),Je);fe(tt,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var ot,nt,rt=o(6405),it=o.n(rt),st=(nt=ot=function(e){function t(){var e,o;re(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return fe(ce(o=he(this,(e=de(t)).call.apply(e,[this].concat(r)))),"_child",void 0),fe(ce(o),"_measure",(function(){var e=o.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,s=e.rowIndex,a=void 0===s?o.props.index||0:s,l=o._getCellMeasurements(),c=l.height,h=l.width;c===t.getHeight(a,r)&&h===t.getWidth(a,r)||(t.set(a,r,h,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:a}))})),fe(ce(o),"_registerChild",(function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()})),o}return pe(t,e),le(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,rt.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),n&&(t.style.height=n),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,n=void 0===o?0:o,r=e.parent,i=e.rowIndex,s=void 0===i?this.props.index||0:i;if(!t.has(s,n)){var a=this._getCellMeasurements(),l=a.height,c=a.width;t.set(s,n,c,l),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:s})}}}]),t}(s.PureComponent),fe(ot,"propTypes",null),nt);fe(st,"__internalCellMeasurerFlag",!1);function at(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function lt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?at(o,!0).forEach((function(t){fe(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):at(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var ct="observed",ht="requested",dt=function(e){function t(){var e,o;re(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return fe(ce(o=he(this,(e=de(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),fe(ce(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),fe(ce(o),"_onSectionRenderedMemoizer",be()),fe(ce(o),"_onScrollMemoizer",be(!1)),fe(ce(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),fe(ce(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),fe(ce(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,n=e.height,r=e.scrollToAlignment,i=e.scrollToCell,s=e.width,a=o.state,l=a.scrollLeft,c=a.scrollTop;if(i>=0){var h=t.getScrollPositionForCell({align:r,cellIndex:i,height:n,scrollLeft:l,scrollTop:c,width:s});h.scrollLeft===l&&h.scrollTop===c||o._setScrollPosition(h)}})),fe(ce(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,n=t.cellLayoutManager,r=t.height,i=t.isScrollingChange,s=t.width,a=o._scrollbarSize,l=n.getTotalSize(),c=l.height,h=l.width,d=Math.max(0,Math.min(h-s+a,e.target.scrollLeft)),u=Math.max(0,Math.min(c-r+a,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?ct:ht;o.state.isScrolling||i(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:h,totalHeight:c})}})),o._scrollbarSize=Ie(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return pe(t,e),le(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,n=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Ie(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(o>=0||r>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),s=i.height,a=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:r||0,totalHeight:s,totalWidth:a})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.height,r=o.scrollToAlignment,i=o.scrollToCell,s=o.width,a=this.state,l=a.scrollLeft,c=a.scrollPositionChangeReason,h=a.scrollTop;c===ht&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),h>=0&&h!==t.scrollTop&&h!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=h)),n===e.height&&r===e.scrollToAlignment&&i===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,n=e.cellLayoutManager,r=e.className,i=e.height,a=e.horizontalOverscanSize,l=e.id,c=e.noContentRenderer,h=e.style,d=e.verticalOverscanSize,u=e.width,p=this.state,f=p.isScrolling,m=p.scrollLeft,g=p.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),y=v.height,C=v.width,S=Math.max(0,m-a),_=Math.max(0,g-d),R=Math.min(C,m+u+a),w=Math.min(y,g+i+d),b=i>0&&u>0?n.cellRenderers({height:w-_,isScrolling:f,width:R-S,x:S,y:_}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},E=y>i?this._scrollbarSize:0,x=C>u?this._scrollbarSize:0;return T.overflowX=C+E<=u?"hidden":"auto",T.overflowY=y+x<=i?"hidden":"auto",s.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:ye("ReactVirtualized__Collection",r),id:l,onScroll:this._onScroll,role:"grid",style:lt({},T,{},h),tabIndex:0},o>0&&s.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:C,overflow:"hidden",pointerEvents:f?"none":"",width:C}},b),0===o&&c())}},{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,n=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:r,scrollLeft:o,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,n={scrollPositionChangeReason:ht};t>=0&&(n.scrollLeft=t),o>=0&&(n.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?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:ht}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ht}}}]),t}(s.PureComponent);fe(dt,"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}),dt.propTypes={},(0,me.polyfill)(dt);const ut=dt;var pt=function(){function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;re(this,e),this.height=o,this.width=n,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return le(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}(),ft=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;re(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return le(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,n=e.x,r=e.y,i={};return this.getSections({height:t,width:o,x:n,y:r}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[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,n=e.x,r=e.y,i=Math.floor(n/this._sectionSize),s=Math.floor((n+o-1)/this._sectionSize),a=Math.floor(r/this._sectionSize),l=Math.floor((r+t-1)/this._sectionSize),c=[],h=i;h<=s;h++)for(var d=a;d<=l;d++){var u="".concat(h,".").concat(d);this._sections[u]||(this._sections[u]=new pt({height:this._sectionSize,width:this._sectionSize,x:h*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[u])}return c}},{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 mt(e){var t=e.align,o=void 0===t?"auto":t,n=e.cellOffset,r=e.cellSize,i=e.containerSize,s=e.currentOffset,a=n,l=a-i+r;switch(o){case"start":return a;case"end":return l;case"center":return a-(i-r)/2;default:return Math.max(l,Math.min(a,s))}}var gt=function(e){function t(e,o){var n;return re(this,t),(n=he(this,de(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(ce(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(ce(n)),n}return pe(t,e),le(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=ge({},this.props);return s.createElement(ut,ge({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,n=e.sectionSize,r=[],i=new ft(n),s=0,a=0,l=0;l<t;l++){var c=o({index:l});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(l,":\n x:").concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));s=Math.max(s,c.y+c.height),a=Math.max(a,c.x+c.width),r[l]=c,i.registerCell({cellMetadatum:c,index:l})}return{cellMetadata:r,height:s,sectionManager:i,width:a}}({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,n=e.height,r=e.scrollLeft,i=e.scrollTop,s=e.width,a=this.props.cellCount;if(o>=0&&o<a){var l=this._cellMetadata[o];r=mt({align:t,cellOffset:l.x,cellSize:l.width,containerSize:s,currentOffset:r,targetIndex:o}),i=mt({align:t,cellOffset:l.y,cellSize:l.height,containerSize:n,currentOffset:i,targetIndex:o})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,n=e.isScrolling,r=e.width,i=e.x,s=e.y,a=this.props,l=a.cellGroupRenderer,c=a.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:r,x:i,y:s}),l({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(s.PureComponent);fe(gt,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,n=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map((function(e){var r=n({index:e}),s={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=o(s)),t[e]):o(s)})).filter((function(e){return!!e}))}}),gt.propTypes={};(function(e){function t(e,o){var n;return re(this,t),(n=he(this,de(t).call(this,e,o)))._registerChild=n._registerChild.bind(ce(n)),n}return pe(t,e),le(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,n=t.columnMinWidth,r=t.columnCount,i=t.width;o===e.columnMaxWidth&&n===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,n=e.columnMinWidth,r=e.columnCount,i=e.width,s=n||1,a=o?Math.min(o,i):i,l=i/r;return l=Math.max(s,l),l=Math.min(a,l),l=Math.floor(l),t({adjustedWidth:Math.min(i,l*r),columnWidth:l,getColumnWidth:function(){return l},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}(s.PureComponent)).propTypes={};function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function yt(e,t){if(e){if("string"==typeof e)return vt(e,t);var o=Object.prototype.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)?vt(e,t):void 0}}function Ct(e){return function(e){if(Array.isArray(e))return vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var St=function(e){function t(e,o){var n;return re(this,t),(n=he(this,de(t).call(this,e,o)))._loadMoreRowsMemoizer=be(),n._onRowsRendered=n._onRowsRendered.bind(ce(n)),n._registerChild=n._registerChild.bind(ce(n)),n}return pe(t,e),le(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=be(),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 n=o(e);n&&n.then((function(){var o,n,r,i,s;o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},n=o.lastRenderedStartIndex,r=o.lastRenderedStopIndex,i=o.startIndex,s=o.stopIndex,i>r||s<n||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,n=this,r=this.props,i=r.isRowLoaded,s=r.minimumBatchSize,a=r.rowCount,l=r.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,n=e.rowCount,r=e.startIndex,i=e.stopIndex,s=[],a=null,l=null,c=r;c<=i;c++){t({index:c})?null!==l&&(s.push({startIndex:a,stopIndex:l}),a=l=null):(l=c,null===a&&(a=c))}if(null!==l){for(var h=Math.min(Math.max(l,a+o-1),n-1),d=l+1;d<=h&&!t({index:d});d++)l=d;s.push({startIndex:a,stopIndex:l})}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:i,minimumBatchSize:s,rowCount:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(a-1,t+l)}),h=(o=[]).concat.apply(o,Ct(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(s.PureComponent);fe(St,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),St.propTypes={};var _t,Rt,wt=(Rt=_t=function(e){function t(){var e,o;re(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return fe(ce(o=he(this,(e=de(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),fe(ce(o),"_cellRenderer",(function(e){var t=e.parent,n=e.rowIndex,r=e.style,i=e.isScrolling,s=e.isVisible,a=e.key,l=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(r,"width");return c&&c.writable&&(r.width="100%"),l({index:n,style:r,isScrolling:i,isVisible:s,key:a,parent:t})})),fe(ce(o),"_setRef",(function(e){o.Grid=e})),fe(ce(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),fe(ce(o),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:n,scrollTop:r})})),fe(ce(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})})),o}return pe(t,e),le(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=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{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,n=e.scrollToIndex,r=e.width,i=ye("ReactVirtualized__List",t);return s.createElement(Ue,ge({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(s.PureComponent),fe(_t,"propTypes",null),Rt);function bt(e,t){return 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 n,r,i,s,a=[],l=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(e,t)||yt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}fe(wt,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:je,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const Tt={ge:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>=0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>=n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},gt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},lt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},le:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<=0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<=n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},eq:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(;t<=o;){var i=t+o>>>1,s=r(e[i],n);if(0===s)return i;s<=0?t=i+1:o=i-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(;t<=o;){var r=t+o>>>1,i=e[r];if(i===n)return r;i<=n?t=r+1:o=r-1}return-1}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)}};function Et(e,t,o,n,r){this.mid=e,this.left=t,this.right=o,this.leftPoints=n,this.rightPoints=r,this.count=(t?t.count:0)+(o?o.count:0)+n.length}var xt=Et.prototype;function Mt(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 Ot(e,t){var o=Wt(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 It(e,t){var o=e.intervals([]);o.push(t),Ot(e,o)}function Dt(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?0:(o.splice(n,1),Ot(e,o),1)}function Nt(e,t,o){for(var n=0;n<e.length&&e[n][0]<=t;++n){var r=o(e[n]);if(r)return r}}function zt(e,t,o){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var r=o(e[n]);if(r)return r}}function Gt(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function Ht(e,t){return e-t}function kt(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function At(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function Wt(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(Ht);var n=t[t.length>>1],r=[],i=[],s=[];for(o=0;o<e.length;++o){var a=e[o];a[1]<n?r.push(a):n<a[0]?i.push(a):s.push(a)}var l=s,c=s.slice();return l.sort(kt),c.sort(At),new Et(n,Wt(r),Wt(i),l,c)}function Pt(e){this.root=e}xt.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},xt.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)?It(this,e):this.left.insert(e):this.left=Wt([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?It(this,e):this.right.insert(e):this.right=Wt([e]);else{var o=Tt.ge(this.leftPoints,e,kt),n=Tt.ge(this.rightPoints,e,At);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},xt.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Dt(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Dt(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;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 o=this,n=this.left;n.right;)o=n,n=n.right;if(o===this)n.right=this.right;else{var r=this.left,i=this.right;o.count-=n.count,o.right=n.left,n.left=r,n.right=i}Mt(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Mt(this,this.left):Mt(this,this.right);return 1}for(r=Tt.ge(this.leftPoints,e,kt);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e){this.count-=1,this.leftPoints.splice(r,1);for(i=Tt.ge(this.rightPoints,e,At);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1}return 0},xt.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(o=this.left.queryPoint(e,t))return o;return Nt(this.leftPoints,e,t)}if(e>this.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return zt(this.rightPoints,e,t)}return Gt(this.leftPoints,t)},xt.queryInterval=function(e,t,o){var n;if(e<this.mid&&this.left&&(n=this.left.queryInterval(e,t,o)))return n;if(t>this.mid&&this.right&&(n=this.right.queryInterval(e,t,o)))return n;return t<this.mid?Nt(this.leftPoints,t,o):e>this.mid?zt(this.rightPoints,e,o):Gt(this.leftPoints,o)};var Lt=Pt.prototype;Lt.insert=function(e){this.root?this.root.insert(e):this.root=new Et(e[0],null,null,[e],[e])},Lt.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Lt.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Lt.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(Lt,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Lt,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Ft,Bt,Zt=function(){function e(){var t;re(this,e),fe(this,"_columnSizeMap",{}),fe(this,"_intervalTree",t&&0!==t.length?new Pt(Wt(t)):new Pt(null)),fe(this,"_leftMap",{})}return le(e,[{key:"estimateTotalHeight",value:function(e,t,o){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*o}},{key:"range",value:function(e,t,o){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=bt(e,3),r=t[0],i=(t[1],t[2]);return o(i,n._leftMap[i],r)}))}},{key:"setPosition",value:function(e,t,o,n){this._intervalTree.insert([o,o+n,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?o+n:Math.max(i,o+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=Math.max(t,n)}return t}}]),e}();function Ut(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function jt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ut(o,!0).forEach((function(t){fe(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ut(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Vt=(Bt=Ft=function(e){function t(){var e,o;re(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return fe(ce(o=he(this,(e=de(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),fe(ce(o),"_debounceResetIsScrollingId",void 0),fe(ce(o),"_invalidateOnUpdateStartIndex",null),fe(ce(o),"_invalidateOnUpdateStopIndex",null),fe(ce(o),"_positionCache",new Zt),fe(ce(o),"_startIndex",null),fe(ce(o),"_startIndexMemoized",null),fe(ce(o),"_stopIndex",null),fe(ce(o),"_stopIndexMemoized",null),fe(ce(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),fe(ce(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),fe(ce(o),"_onScroll",(function(e){var t=o.props.height,n=e.currentTarget.scrollTop,r=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),n);n===r&&(o._debounceResetIsScrolling(),o.state.scrollTop!==r&&o.setState({isScrolling:!0,scrollTop:r}))})),o}return pe(t,e),le(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Zt,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 Zt,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&&Ae(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,r=o.cellCount,i=o.cellMeasurerCache,a=o.cellRenderer,l=o.className,c=o.height,h=o.id,d=o.keyMapper,u=o.overscanByPixels,p=o.role,f=o.style,m=o.tabIndex,g=o.width,v=o.rowDirection,y=this.state,C=y.isScrolling,S=y.scrollTop,_=[],R=this._getEstimatedTotalHeight(),w=this._positionCache.shortestColumnSize,b=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,S-u),c+2*u,(function(o,n,r){var s;void 0===e?(T=o,e=o):(T=Math.min(T,o),e=Math.max(e,o)),_.push(a({index:o,isScrolling:C,key:d(o),parent:t,style:(s={height:i.getHeight(o)},fe(s,"ltr"===v?"left":"right",n),fe(s,"position","absolute"),fe(s,"top",r),fe(s,"width",i.getWidth(o)),s)}))})),w<S+c+u&&b<r)for(var E=Math.min(r-b,Math.ceil((S+c+u-w)/i.defaultHeight*g/i.defaultWidth)),x=b;x<b+E;x++)e=x,_.push(a({index:x,isScrolling:C,key:d(x),parent:this,style:{width:i.getWidth(x)}}));return this._startIndex=T,this._stopIndex=e,s.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:ye("ReactVirtualized__Masonry",l),id:h,onScroll:this._onScroll,role:p,style:jt({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:R<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},s.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:R,maxWidth:"100%",maxHeight:R,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"}},_))}},{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&&Ae(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=We(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,n=e.width,r=Math.max(1,Math.floor(n/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{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,n=o.cellMeasurerCache,r=o.cellPositioner,i=e;i<=t;i++){var s=r(i),a=s.left,l=s.top;this._positionCache.setPosition(i,a,l,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(s.PureComponent),fe(Ft,"propTypes",null),Bt);function $t(){}fe(Vt,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:$t,onScroll:$t,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,me.polyfill)(Vt);var Yt=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};re(this,e),fe(this,"_cellMeasurerCache",void 0),fe(this,"_columnIndexOffset",void 0),fe(this,"_rowIndexOffset",void 0),fe(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),fe(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var n=o.cellMeasurerCache,r=o.columnIndexOffset,i=void 0===r?0:r,s=o.rowIndexOffset,a=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=a}return le(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,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,n)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function qt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Kt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qt(o,!0).forEach((function(t){fe(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Xt=function(e){function t(e,o){var n;re(this,t),fe(ce(n=he(this,de(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),fe(ce(n),"_deferredInvalidateColumnIndex",null),fe(ce(n),"_deferredInvalidateRowIndex",null),fe(ce(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),fe(ce(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),fe(ce(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=Se(e,["rowIndex"]),r=n.props,i=r.cellRenderer,a=r.fixedRowCount;return t===r.rowCount-a?s.createElement("div",{key:o.key,style:Kt({},o.style,{height:20})}):i(Kt({},o,{parent:ce(n),rowIndex:t+a}))})),fe(ce(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,r=Se(e,["columnIndex","rowIndex"]),i=n.props,s=i.cellRenderer,a=i.fixedColumnCount,l=i.fixedRowCount;return s(Kt({},r,{columnIndex:t+a,parent:ce(n),rowIndex:o+l}))})),fe(ce(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=Se(e,["columnIndex"]),r=n.props,i=r.cellRenderer,a=r.columnCount,l=r.fixedColumnCount;return t===a-l?s.createElement("div",{key:o.key,style:Kt({},o.style,{width:20})}):i(Kt({},o,{columnIndex:t+l,parent:ce(n)}))})),fe(ce(n),"_columnWidthRightGrid",(function(e){var t=e.index,o=n.props,r=o.columnCount,i=o.fixedColumnCount,s=o.columnWidth,a=n.state,l=a.scrollbarSize;return a.showHorizontalScrollbar&&t===r-i?l:"function"==typeof s?s({index:t+i}):s})),fe(ce(n),"_onScroll",(function(e){var t=e.scrollLeft,o=e.scrollTop;n.setState({scrollLeft:t,scrollTop:o});var r=n.props.onScroll;r&&r(e)})),fe(ce(n),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,r=e.vertical,i=n.state,s=i.showHorizontalScrollbar,a=i.showVerticalScrollbar;if(t!==s||r!==a){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:r});var l=n.props.onScrollbarPresenceChange;"function"==typeof l&&l({horizontal:t,size:o,vertical:r})}})),fe(ce(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),fe(ce(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),fe(ce(n),"_rowHeightBottomGrid",(function(e){var t=e.index,o=n.props,r=o.fixedRowCount,i=o.rowCount,s=o.rowHeight,a=n.state,l=a.scrollbarSize;return a.showVerticalScrollbar&&t===i-r?l:"function"==typeof s?s({index:t+r}):s})),fe(ce(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),fe(ce(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var r=e.deferredMeasurementCache,i=e.fixedColumnCount,a=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),r&&(n._deferredMeasurementCacheBottomLeftGrid=a>0?new Yt({cellMeasurerCache:r,columnIndexOffset:0,rowIndexOffset:a}):r,n._deferredMeasurementCacheBottomRightGrid=i>0||a>0?new Yt({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:a}):r,n._deferredMeasurementCacheTopRightGrid=i>0?new Yt({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:0}):r),n}return pe(t,e),le(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,n=e.rowIndex,r=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{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,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.fixedColumnCount,a=i.fixedRowCount,l=Math.max(0,o-s),c=Math.max(0,r-a);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:r}),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 n={};t>0&&(n.scrollLeft=t),o>0&&(n.scrollTop=o),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),r=(e.scrollTop,e.scrollToRow),i=Se(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,l=a.scrollLeft,c=a.scrollTop;return s.createElement("div",{style:this._containerOuterStyle},s.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Kt({},i,{onScroll:t,scrollLeft:l}))),s.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Kt({},i,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(Kt({},i,{onScroll:t,onSectionRendered:o,scrollLeft:l,scrollToColumn:n,scrollToRow:r,scrollTop:c}))))}},{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 n=0,r=0;r<t;r++)n+=o({index:r});this._leftGridWidth=n}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 n=0,r=0;r<t;r++)n+=o({index:r});this._topGridHeight=n}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,n=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,s=t.fixedColumnCount,a=t.fixedRowCount,l=t.rowHeight,c=t.style,h=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||i!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,v=e||a!==this._lastRenderedFixedRowCount||l!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Kt({height:i,overflow:"visible",width:f},c)),(e||m||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Kt({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Kt({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Kt({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Kt({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=a,this._lastRenderedHeight=i,this._lastRenderedRowHeight=l,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=h,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,n=e.fixedRowCount,r=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!o)return null;var l=a?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=i?h+d:h,p=s.createElement(Ue,ge({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,r-n)+l,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:u}));return i?s.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Kt({},this._bottomLeftGridStyle,{height:c,width:h,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,n=e.fixedRowCount,r=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return s.createElement(Ue,ge({},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,r-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-o,scrollToRow:a-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?s.createElement(Ue,ge({},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,n=e.fixedColumnCount,r=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,l=this.state,c=l.showHorizontalScrollbar,h=l.scrollbarSize;if(!r)return null;var d=c?1:0,u=this._getTopGridHeight(e),p=this._getRightGridWidth(e),f=c?h:0,m=u,g=this._topRightGridStyle;a&&(m=u+f,g=Kt({},this._topRightGridStyle,{left:0}));var v=s.createElement(Ue,ge({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:r,scrollLeft:i,style:g,tabIndex:null,width:p}));return a?s.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Kt({},this._topRightGridStyle,{height:u,width:p,overflowX:"hidden"})},v):v}}],[{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}(s.PureComponent);fe(Xt,"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}),Xt.propTypes={},(0,me.polyfill)(Xt);(function(e){function t(e,o){var n;return re(this,t),(n=he(this,de(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(ce(n)),n}return pe(t,e),le(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,n=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,s=t.scrollTop,a=t.scrollWidth;return e({clientHeight:o,clientWidth:n,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:s,scrollWidth:a})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,n=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:n,scrollLeft:r,scrollTop:i,scrollWidth:s})}}]),t}(s.PureComponent)).propTypes={};function Jt(e){var t=e.className,o=e.columns,n=e.style;return s.createElement("div",{className:t,role:"row",style:n},o)}Jt.propTypes=null;const Qt={ASC:"ASC",DESC:"DESC"};function eo(e){var t=e.sortDirection,o=ye("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Qt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Qt.DESC});return s.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Qt.ASC?s.createElement("path",{d:"M7 14l5-5 5 5z"}):s.createElement("path",{d:"M7 10l5 5 5-5z"}),s.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function to(e){var t=e.dataKey,o=e.label,n=e.sortBy,r=e.sortDirection,i=n===t,a=[s.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return i&&a.push(s.createElement(eo,{key:"SortIndicator",sortDirection:r})),a}function oo(e){var t=e.className,o=e.columns,n=e.index,r=e.key,i=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,c=e.onRowMouseOver,h=e.onRowRightClick,d=e.rowData,u=e.style,p={"aria-rowindex":n+1};return(i||a||l||c||h)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(e){return i({event:e,index:n,rowData:d})}),a&&(p.onDoubleClick=function(e){return a({event:e,index:n,rowData:d})}),l&&(p.onMouseOut=function(e){return l({event:e,index:n,rowData:d})}),c&&(p.onMouseOver=function(e){return c({event:e,index:n,rowData:d})}),h&&(p.onContextMenu=function(e){return h({event:e,index:n,rowData:d})})),s.createElement("div",ge({},p,{className:t,key:r,role:"row",style:u}),o)}eo.propTypes={},to.propTypes=null,oo.propTypes=null;var no=function(e){function t(){return re(this,t),he(this,de(t).apply(this,arguments))}return pe(t,e),t}(s.Component);function ro(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function io(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ro(o,!0).forEach((function(t){fe(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ro(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}fe(no,"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:Qt.ASC,flexGrow:0,flexShrink:1,headerRenderer:to,style:{}}),no.propTypes={};var so=function(e){function t(e){var o;return re(this,t),(o=he(this,de(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(ce(o)),o._createRow=o._createRow.bind(ce(o)),o._onScroll=o._onScroll.bind(ce(o)),o._onSectionRendered=o._onSectionRendered.bind(ce(o)),o._setRef=o._setRef.bind(ce(o)),o}return pe(t,e),le(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=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{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,rt.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,n=t.className,r=t.disableHeader,i=t.gridClassName,a=t.gridStyle,l=t.headerHeight,c=t.headerRowRenderer,h=t.height,d=t.id,u=t.noRowsRenderer,p=t.rowClassName,f=t.rowStyle,m=t.scrollToIndex,g=t.style,v=t.width,y=this.state.scrollbarWidth,C=r?h:h-l,S="function"==typeof p?p({index:-1}):p,_="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],s.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=io({overflow:"hidden"},n)})),s.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":s.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:ye("ReactVirtualized__Table",n),id:d,role:"grid",style:g},!r&&c({className:ye("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:io({height:l,overflow:"hidden",paddingRight:y,width:v},_)}),s.createElement(Ue,ge({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:ye("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:C,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:io({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=this.props.onColumnClick,c=t.props,h=c.cellDataGetter,d=c.cellRenderer,u=c.className,p=c.columnData,f=c.dataKey,m=c.id,g=d({cellData:h({columnData:p,dataKey:f,rowData:i}),columnData:p,columnIndex:o,dataKey:f,isScrolling:n,parent:r,rowData:i,rowIndex:a}),v=this._cachedColumnStyles[o],y="string"==typeof g?g:null;return s.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:ye("ReactVirtualized__Table__rowColumn",u),key:"Row"+a+"-Col"+o,onClick:function(e){l&&l({columnData:p,dataKey:f,event:e})},role:"gridcell",style:v,title:y},g)}},{key:"_createHeader",value:function(e){var t,o,n,r,i,a=e.column,l=e.index,c=this.props,h=c.headerClassName,d=c.headerStyle,u=c.onHeaderClick,p=c.sort,f=c.sortBy,m=c.sortDirection,g=a.props,v=g.columnData,y=g.dataKey,C=g.defaultSortDirection,S=g.disableSort,_=g.headerRenderer,R=g.id,w=g.label,b=!S&&p,T=ye("ReactVirtualized__Table__headerColumn",h,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:b}),E=this._getFlexStyleForColumn(a,io({},d,{},a.props.headerStyle)),x=_({columnData:v,dataKey:y,disableSort:S,label:w,sortBy:f,sortDirection:m});if(b||u){var M=f!==y?C:m===Qt.DESC?Qt.ASC:Qt.DESC,O=function(e){b&&p({defaultSortDirection:C,event:e,sortBy:y,sortDirection:M}),u&&u({columnData:v,dataKey:y,event:e})};i=a.props["aria-label"]||w||y,r="none",n=0,t=O,o=function(e){"Enter"!==e.key&&" "!==e.key||O(e)}}return f===y&&(r=m===Qt.ASC?"ascending":"descending"),s.createElement("div",{"aria-label":i,"aria-sort":r,className:T,id:R,key:"Header-Col"+l,onClick:t,onKeyDown:o,role:"columnheader",style:E,tabIndex:n},x)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,r=e.key,i=e.parent,a=e.style,l=this.props,c=l.children,h=l.onRowClick,d=l.onRowDoubleClick,u=l.onRowRightClick,p=l.onRowMouseOver,f=l.onRowMouseOut,m=l.rowClassName,g=l.rowGetter,v=l.rowRenderer,y=l.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof m?m({index:o}):m,_="function"==typeof y?y({index:o}):y,R=g({index:o}),w=s.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:i,rowData:R,rowIndex:o,scrollbarWidth:C})})),b=ye("ReactVirtualized__Table__row",S),T=io({},a,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:C},_);return v({className:b,columns:w,index:o,isScrolling:n,key:r,onRowClick:h,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:f,rowData:R,style:T})}},{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"),n=io({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:s.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,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:n,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(s.PureComponent);fe(so,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:je,overscanRowCount:10,rowRenderer:oo,headerRowRenderer:Jt,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),so.propTypes={};var ao=[],lo=null,co=null;function ho(){co&&(co=null,document.body&&null!=lo&&(document.body.style.pointerEvents=lo),lo=null)}function uo(){ho(),ao.forEach((function(e){return e.__resetIsScrolling()}))}function po(e){e.currentTarget===window&&null==lo&&document.body&&(lo=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){co&&Ae(co);var e=0;ao.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),co=We(uo,e)}(),ao.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function fo(e,t){ao.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",po),ao.push(e)}function mo(e,t){(ao=ao.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",po),co&&(Ae(co),ho()))}var go,vo,yo=function(e){return e===window},Co=function(e){return e.getBoundingClientRect()};function So(e,t){if(e){if(yo(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return Co(e)}return{height:t.serverHeight,width:t.serverWidth}}function _o(e){return yo(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 Ro(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var wo=function(){return"undefined"!=typeof window?window:void 0},bo=(vo=go=function(e){function t(){var e,o;re(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return fe(ce(o=he(this,(e=de(t)).call.apply(e,[this].concat(r)))),"_window",wo()),fe(ce(o),"_isMounted",!1),fe(ce(o),"_positionFromTop",0),fe(ce(o),"_positionFromLeft",0),fe(ce(o),"_detectElementResize",void 0),fe(ce(o),"_child",void 0),fe(ce(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ro(o,!0).forEach((function(t){fe(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ro(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},So(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),fe(ce(o),"_registerChild",(function(e){e&&Element,o._child=e,o.updatePosition()})),fe(ce(o),"_onChildScroll",(function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var n=o.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,t+o._positionFromTop):n.scrollTop=t+o._positionFromTop)}})),fe(ce(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),fe(ce(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),fe(ce(o),"_onResize",(function(){o.updatePosition()})),fe(ce(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=_o(t),r=Math.max(0,n.left-o._positionFromLeft),i=Math.max(0,n.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}})),fe(ce(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return pe(t,e),le(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,n=o.height,r=o.width,i=this._child||rt.findDOMNode(this);if(i instanceof Element&&e){var s=function(e,t){if(yo(t)&&document.documentElement){var o=document.documentElement,n=Co(e),r=Co(o);return{top:n.top-r.top,left:n.left-r.left}}var i=_o(t),s=Co(e),a=Co(t);return{top:s.top+i.top-a.top,left:s.left+i.left-a.left}}(i,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var a=So(e,this.props);n===a.height&&r===a.width||(this.setState({height:a.height,width:a.width}),t({height:a.height,width:a.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Ke(),this.updatePosition(e),e&&(fo(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,n=e.scrollElement;n!==o&&null!=n&&null!=o&&(this.updatePosition(o),mo(this,n),fo(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(mo(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,n=t.scrollTop,r=t.scrollLeft,i=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:o,scrollLeft:r,scrollTop:n,width:s})}}]),t}(s.PureComponent),fe(go,"propTypes",null),vo);fe(bo,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:wo(),serverHeight:0,serverWidth:0});var To,Eo=(To=function(e,t){return To=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])},To(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}To(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),xo=function(){return xo=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xo.apply(this,arguments)},Mo={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Oo=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 Eo(t,e),t.prototype.render=function(){return s.createElement("div",{className:this.props.className||"",style:xo(xo({position:"absolute",userSelect:"none"},Mo[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(s.PureComponent),Io=o(3316),Do=o.n(Io),No=function(){var e=function(t,o){return e=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,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),zo=function(){return zo=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},zo.apply(this,arguments)},Go={width:"auto",height:"auto"},Ho=Do()((function(e,t,o){return Math.max(Math.min(e,o),t)})),ko=Do()((function(e,t){return Math.round(e/t)*t})),Ao=Do()((function(e,t){return new RegExp(e,"i").test(t)})),Wo=function(e){return Boolean(e.touches&&e.touches.length)},Po=Do()((function(e,t,o){void 0===o&&(o=0);var n=t.reduce((function(o,n,r){return Math.abs(n-e)<Math.abs(t[o]-e)?r:o}),0),r=Math.abs(t[n]-e);return 0===o||r<o?t[n]:e})),Lo=Do()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),Fo=Do()((function(e){return"auto"===(e=e.toString())||Lo(e,"px")||Lo(e,"%")||Lo(e,"vh")||Lo(e,"vw")||Lo(e,"vmax")||Lo(e,"vmin")?e:e+"px"})),Bo=function(e,t,o,n){if(e&&"string"==typeof e){if(Lo(e,"px"))return Number(e.replace("px",""));if(Lo(e,"%"))return t*(Number(e.replace("%",""))/100);if(Lo(e,"vw"))return o*(Number(e.replace("vw",""))/100);if(Lo(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},Zo=Do()((function(e,t,o,n,r,i,s){return n=Bo(n,e.width,t,o),r=Bo(r,e.height,t,o),i=Bo(i,e.width,t,o),s=Bo(s,e.height,t,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===s?void 0:Number(s)}})),Uo=["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"],jo="__resizable_base__",Vo=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",t.classList?t.classList.add(jo):t.className+=jo,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 No(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||Go},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,n=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=r}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]&&Lo(e.propsSize[t].toString(),"%")){if(Lo(e.state[t].toString(),"%"))return e.state[t].toString();var o=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/o[t]*100+"%"}return Fo(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Fo(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Fo(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%";var n={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),n},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?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,n,r=this.props.boundsByDirection,i=this.state.direction,s=r&&Ao("left",i),a=r&&Ao("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(o=s?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),n=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),n&&Number.isFinite(n)&&(t=t&&t<n?t:n),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,n=this.props.resizeRatio||1,r=this.state,i=r.direction,s=r.original,a=this.props,l=a.lockAspectRatio,c=a.lockAspectRatioExtraHeight,h=a.lockAspectRatioExtraWidth,d=s.width,u=s.height,p=c||0,f=h||0;return Ao("right",i)&&(d=s.width+(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),Ao("left",i)&&(d=s.width-(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),Ao("bottom",i)&&(u=s.height+(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),Ao("top",i)&&(u=s.height-(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),{newWidth:d,newHeight:u}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,n){var r=this.props,i=r.lockAspectRatio,s=r.lockAspectRatioExtraHeight,a=r.lockAspectRatioExtraWidth,l=void 0===n.width?10:n.width,c=void 0===o.width||o.width<0?e:o.width,h=void 0===n.height?10:n.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=a||0;if(i){var f=(h-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(l-p)/this.ratio+u,v=(c-p)/this.ratio+u,y=Math.max(l,f),C=Math.min(c,m),S=Math.max(h,g),_=Math.min(d,v);e=Ho(e,y,C),t=Ho(t,S,_)}else e=Ho(e,l,c),t=Ho(t,h,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 n=this.resizable.getBoundingClientRect(),r=n.left,i=n.top,s=n.right,a=n.bottom;this.resizableLeft=r,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=a}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,n=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&Wo(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;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 i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var s=this.parentNode;if(s){var a=this.window.getComputedStyle(s).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",o=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:zo(zo({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&Wo(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,o=t.maxWidth,n=t.maxHeight,r=t.minWidth,i=t.minHeight,s=Wo(e)?e.touches[0].clientX:e.clientX,a=Wo(e)?e.touches[0].clientY:e.clientY,l=this.state,c=l.direction,h=l.original,d=l.width,u=l.height,p=this.getParentSize(),f=Zo(p,this.window.innerWidth,this.window.innerHeight,o,n,r,i);o=f.maxWidth,n=f.maxHeight,r=f.minWidth,i=f.minHeight;var m=this.calculateNewSizeFromDirection(s,a),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(o,n),C=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=C.newWidth,g=C.newHeight,this.props.grid){var S=ko(v,this.props.grid[0]),_=ko(g,this.props.grid[1]),R=this.props.snapGap||0;v=0===R||Math.abs(S-v)<=R?S:v,g=0===R||Math.abs(_-g)<=R?_:g}this.props.snap&&this.props.snap.x&&(v=Po(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=Po(g,this.props.snap.y,this.props.snapGap));var w={width:v-h.width,height:g-h.height};if(d&&"string"==typeof d)if(Lo(d,"%"))v=v/p.width*100+"%";else if(Lo(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(Lo(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(u&&"string"==typeof u)if(Lo(u,"%"))g=g/p.height*100+"%";else if(Lo(u,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(Lo(u,"vh")){g=g/this.window.innerHeight*100+"vh"}var b={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?b.flexBasis=b.width:"column"===this.flexDir&&(b.flexBasis=b.height),this.setState(b),this.props.onResize&&this.props.onResize(e,c,this.resizable,w)}},t.prototype.onMouseUp=function(e){var t=this.state,o=t.isResizing,n=t.direction,r=t.original;if(o&&this.resizable){var i={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:zo(zo({},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,n=t.handleStyles,r=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var c=Object.keys(o).map((function(t){return!1!==o[t]?s.createElement(Oo,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:r&&r[t]},l&&l[t]?l[t]:null):null}));return s.createElement("div",{className:a,style:i},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==Uo.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=zo(zo(zo({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 n=this.props.as||"div";return s.createElement(n,zo({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&s.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}(s.PureComponent);const $o="bottom",Yo="left",qo="right",Ko="top",Xo={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},Jo={min:0,max:1/0},Qo=({height:e,heightConstraints:t,width:o,widthConstraints:n})=>({height:(0,B.u)(e,t.min,t.max),width:(0,B.u)(o,n.min,n.max)}),en=({enable:e,height:t,heightConstraints:o,resizeEdge:n,width:r=0,widthConstraints:i})=>({...Qo({height:t,widthConstraints:i,heightConstraints:o,width:r}),enable:void 0===e||e,horizontal:n===Yo||n===qo,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:n===Ko||n===$o});class tn extends a().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:Jo,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:Jo};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=en(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:o,resizing:n,width:r}=this.state,{onResizeFromPropChange:i}=e;if(n)return;const s=en(e);this.setState(s);const{height:a,width:l}=s,c=i||t;!c||a===o&&l===r||c({height:a,width:l,originalHeight:o,originalWidth:r})}_onResize=(e,t,o,{height:n,width:r})=>{const{onResize:i}=this.props,{height:s,horizontal:a,vertical:l,width:c}=this.state,{height:h,width:d}=(({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:n},{initialHeight:r,initialWidth:i})=>Qo({height:r+t,heightConstraints:o,width:i+e,widthConstraints:n}))({deltaWidth:r,deltaHeight:n},this.props,this.state),u=a&&d!==c,p=l&&h!==s;(u||p)&&(this.setState({height:p?h:s,width:u?d:c,isMouseWheeling:!1}),i&&i({height:p?h:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();const{onResizeStart:t}=this.props,{height:o,horizontal:n,vertical:r,width:i}=this.state;this.setState({resizing:!0}),t&&t({height:r?o:void 0,width:n?i:void 0})};_onResizeEnd=()=>{const{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:n,width:r,initialWidth:i,initialHeight:s}=this.state;this.setState({initialWidth:r,initialHeight:t,resizing:!1}),i===r&&s===t||e&&e({width:o?r:void 0,height:n?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(){const{children:e,className:t,handleStyles:o,resizeContentClassName:n,resizeEdge:r,resizeHandleClassName:s,style:l,translate:c,heightConstraints:h,wrapChildrenInDivContainer:d,widthConstraints:u}=this.props,{enable:p,height:f,horizontal:m,resizing:g,vertical:v,width:y,isMouseWheeling:C}=this.state,{display:S,..._}=l,{min:R,max:w}=u,{min:b,max:T}=h,E={...this.props.wrapperStyle};m&&(E.width=y,E.minWidth=y),v&&(E.height=f,E.minHeight=f);const x=i()("resizable",t,{resizing:g}),M=i()("contents",n,`resize-edge-${r}`,{horizontal:m,vertical:v}),O=i()(r,s,"resizable-handle",{horizontal:m,vertical:v}),I=a().createElement("span",{title:c("ResizePanel")});return a().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{...E,display:S}},a().createElement(Vo,{className:x,"data-testid":"resizable-core",enable:{...Xo,[r]:!C&&p},handleClasses:{[r]:O},handleComponent:{[r]:I},handleStyles:o,maxHeight:v?T:void 0,maxWidth:m?w:void 0,minHeight:v?b:void 0,minWidth:m?R:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:v?f:"100%",width:m?y:"100%"},style:_},d?a().createElement("div",{className:M,style:{userSelect:"none"}},e):e))}}var on=o(7154);function nn(e,t,o){const n=t*m.$0,{shape:r}=m.Qh[e],i=m.d_[r];if(!i)return{height:0,offset:0};const{baseHeight:s,minHeight:a,maxHeight:l}=i;let c=s*(o/n);void 0!==a&&c<a&&(c=a),void 0!==l&&c>l&&(c=l);const h=m.$0*(o/n);return{height:c,offset:c>=h?0:(h-c)/2}}function rn(e,t,o){const n=o*m.$0;return e*m.$0/n*t}class sn extends a().PureComponent{canvas;componentDidMount(){this.updateCanvas()}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){const{branchUpstreamRowIndices:t,enabledScrollMarkerTypes:o,viewportHeight:n,markerRowIndices:r,markerColors:i,scrollWidth:s,totalRows:a}=e||this.props,l=this.canvas.getContext("2d");l.canvas.width=s,l.canvas.height=n;const c=s/m.dF;l.clearRect(0,0,l.canvas.width,l.canvas.height);for(const[e,s]of Object.entries(m.Qh)){if(!(o.includes(e)||"remoteBranches"===e&&o.includes("localBranches")))continue;const h="remoteBranches"!==e||o.includes("remoteBranches")?r[e]||[]:t,d=i[e],u=s.lanes;d&&h.length&&(l.fillStyle=d,h.forEach((t=>{const{height:o,offset:r}=nn(e,a,n);u.length&&l.fillRect(u[0]*c,rn(t,n,a)+r-.5*o,c*u.length,o)})))}}render(){return a().createElement("canvas",{className:"graph-scroll-markers",ref:e=>this.canvas=e})}}var an=function({children:e,className:t,height:o,heightAdjustment:n,graphZoneType:r,scrollTop:i,style:s}){const l=m.qi[r].listId,c=document.getElementById(l),h=c?.scrollHeight||0;let d=o-28;void 0!==i&&(d=Number(s.top)-i,c&&h-o-i<0&&(d=o-n-28));const u={top:d,zIndex:2},p=a().createElement("span",{className:"absolute",style:u},e);return a().createElement("div",{className:t,style:s},c?it().createPortal(p,document.getElementById("graph-container")):p)};function ln({inline:e,getExternalIcon:t,message:o,size:n=100,useSimpleSpinner:r}){const s=i()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),l=i()("spinner","mr1",{"inline-block":e}),c={height:n,width:n},h=i()("message",{"inline-block":e,mx2:e}),d=r?a().createElement("span",{className:l,style:c},t("loading")):a().createElement("div",{className:l,style:c},a().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:c}),a().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:c}),a().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:c}));return a().createElement("div",{className:s},d,o&&a().createElement("div",{className:h},o))}class cn extends a().Component{render(){const{currentCommits:e,customFooterRow:t,graphZoneType:o,hasMoreCommits:n,height:r,horizontalScrollHeight:i,getExternalIcon:s,isLoadingRows:l,scrollTop:c,style:h,translate:d}=this.props,u=a().createElement(ln,{className:"loading-spinner",getExternalIcon:s,size:20,useSimpleSpinner:!0}),p=a().createElement("div",{className:"flex items-center"},a().createElement("span",{style:{paddingRight:"5px"}},u)),f=0!==(e>0?e:0)||n?t:a().createElement(a().Fragment,null,d("Graph-NoCommits")),m=a().createElement("div",{className:"graph-adjust-commit-count p1"},l?p:f);return a().createElement(an,{graphZoneType:o,height:r,heightAdjustment:i,scrollTop:c,style:h},m)}}var hn=cn;function dn({branchUpstreamRowIndices:e,rowCount:t,cellRenderersByIds:o,columnIndex:n,customFooterRow:r,enabledScrollMarkerTypes:s,enableResizer:l,getExternalIcon:c,getKeyForCell:h,graphHeight:d,graphWidth:u,graphZoneType:p,graphZones:f,hasMoreCommits:g,horizontalScrollHeight:v,isLoadingRows:y,markerColors:C,markerRowIndices:S,onResize:_,onResizeEnd:R,onResizeFromPropChange:w,onScroll:b,onScrollToRowCausedUpdate:T,onZoneEnter:E,scrollLeft:x,scrollToAlignment:M,scrollToIndex:O,scrollTop:I,smartCellRangeRenderer:D,translate:N,verticalScrollWidth:z}){const G=(0,W.zv)(p,f);if(!G)return null;const H=document.getElementById(G.listId),k=(0,W.SH)(p,f),A=(0,W.Xq)(t,g,y),P=(0,W.Jq)(t,g,y),L=(0,W.Jp)(G,t),F=(0,W.wE)(t,g,y),B=z>0,Z=s.length>0,U=i()("graph-panel","react-virtualized-list","pad-for-horizontal-scrollbar",p===m.jZ?"z3":null,{"pad-for-vertical-scrollbar":B}),j=p===m.Wm?{...!k&&{position:"static"},...k&&{width:G.currentWidth>L?G.currentWidth:L,maxWidth:"none"}}:void 0,V=(e,i,s,l,f,C,S,_)=>a().createElement(Ue,{autoContainerWidth:!0,cellRangeRenderer:D,cellRenderer:i=>((e,i)=>{if(i.rowIndex>t-1)return A&&0===n?a().createElement(hn,{currentCommits:t-1,customFooterRow:r,getExternalIcon:c,graphZoneType:p,hasMoreCommits:g,height:d,horizontalScrollHeight:v,isLoadingRows:y,key:h(i.rowIndex),scrollTop:I,style:i.style,translate:N}):void 0;const s={...i,style:{...i.style}};m.Gn===e&&(s.style.top=Number(i.style.top)-I);const l=o[e];return l?l(s):void 0})(e,i),className:s,columnCount:1,columnWidth:_,containerStyle:l,height:S,id:i,isScrolling:!1,key:i,onScrollToTargetCausedUpdate:T?e=>T(p,e,u,d,g):void 0,overscanRowCount:0,rowCount:P,rowHeight:m.$0,scrollLeft:x,scrollToAlignment:M,scrollTop:I,scrollToRow:O,style:f,tabIndex:null,width:C}),$=V(G.type,G.listId,U,j,{position:"absolute"},G.currentWidth,d,L),Y=k?a().createElement("div",{className:"timeline-column-container",onWheelCapture:e=>((e,t)=>{let o=t+e.deltaY;if(o=o>=0?o:0,o>t&&H&&(0,W.BL)(H))return;b(p,{clientHeight:F,clientWidth:L,scrollHeight:v,scrollLeft:0,scrollTop:o>=0?o:0,scrollWidth:z},u,d,g)})(e,I)},V(m.Gn,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3,maxHeight:F},{position:"absolute",right:0,zIndex:3,maxHeight:d},1,d,1)):void 0,q=$&&a().createElement(a().Fragment,null,Y,Z&&k?a().createElement(sn,{branchUpstreamRowIndices:e,enabledScrollMarkerTypes:s,markerColors:C,markerRowIndices:S,scrollWidth:z,totalRows:P,viewportHeight:d<F?d:F,viewportWidth:G.currentWidth}):null,a().createElement(on.Z,{contentHeight:F,contentWidth:L,displayHorizontalScrollbar:G.type===m.Wm,displayVerticalScrollbar:k,forceOnVerticalWheel:!k,forceVerticalScrollbar:k&&Z,height:d,onScroll:e=>((e,t)=>{e.scrollTop>t&&H&&(0,W.BL)(H)||b(p,e,u,d,g)})(e,I),scrollLeft:x,scrollTop:I,width:G.currentWidth},$)),K=a().createElement("div",{onMouseEnter:E},q);return k?K:a().createElement(tn,{enable:l,height:d,id:`${p}Column`,key:`${p}Column`,onResize:_?e=>_(G,e):void 0,onResizeEnd:R?e=>R(G,e):void 0,onResizeFromPropChange:w?e=>w(G,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:G.currentWidth,widthConstraints:(0,W.eR)(p,f,u)},K)}var un=o(977),pn=o.n(un);const fn="dnd-container";class mn extends a().PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}componentWillReceiveProps(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,n)=>{if(this.props.onDrop&&e.id){const t=this.sanitizeId(e.id),o=n?.id?this.sanitizeId(n.id):null,r=this.childReactElementsById[t],i=o?this.childReactElementsById[o]:null;r&&this.props.onDrop(r,i)}};isContainerCallback=e=>Boolean(e?.classList.contains(fn));movesCallback=e=>Boolean(e?.id)&&this.isDraggable(e.id);acceptsCallback=(e,t,o,n)=>Boolean(e?.id)&&this.isDroppable(e.id,n?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){const 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=pn()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{a().isValidElement(e)&&this.addChildReactElement(e)})):a().isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){const 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){const t=this.sanitizeId(e),o=this.childReactElementsById[t];return Boolean(o)&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){const o=this.sanitizeId(e),n=t?this.sanitizeId(t):null,r=this.childReactElementsById[o],i=n?this.childReactElementsById[n]:null;if(r)return this.props.isDroppable(r,i)}return!1}render(){const{children:e,className:t}=this.props,o=i()(fn,t);return a().createElement("div",{className:o,ref:this.dndDecorator},e)}}var gn=mn,vn=o(8613);function yn(e,t){if(null==e)return{};var o,n,r={},i=vn(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var Cn=o(5627),Sn=o(433);function _n(e,t){return _n=Sn?Sn.bind():function(e,t){return e.__proto__=t,e},_n(e,t)}function Rn(e,t){e.prototype=Cn(t.prototype),e.prototype.constructor=e,_n(e,t)}var wn=o(6981);function bn(){return bn=wn?wn.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},bn.apply(this,arguments)}var Tn,En=o(5697),xn=o.n(En),Mn=o(2856),On=o.n(Mn),In=o(8853),Dn=o.n(In),Nn=o(644),zn={in:xn().bool,mountOnEnter:xn().bool,unmountOnExit:xn().bool,appear:xn().bool,timeout:xn().number,onEnter:xn().func,onEntering:xn().func,onEntered:xn().func,onExit:xn().func,onExiting:xn().func,onExited:xn().func},Gn=((Tn={})[Nn.d0]="in",Tn[Nn.cn]="in",Tn),Hn=function(e){function t(){return e.apply(this,arguments)||this}return Rn(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.children,n=yn(e,["className","children"]);return a().createElement(Nn.ZP,n,(function(e,n){return a().cloneElement(o,bn({},n,{className:i()("fade",t,o.props.className,Gn[e])}))}))},t}(a().Component);Hn.propTypes=zn,Hn.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const kn=Hn;var An=bn({},On().propTypes,{show:xn().bool,rootClose:xn().bool,onHide:xn().func,animation:xn().oneOfType([xn().bool,Dn()]),onEnter:xn().func,onEntering:xn().func,onEntered:xn().func,onExit:xn().func,onExiting:xn().func,onExited:xn().func,placement:xn().oneOf(["top","right","bottom","left"])}),Wn={animation:kn,rootClose:!1,show:!1,placement:"right"},Pn=function(e){function t(){return e.apply(this,arguments)||this}return Rn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.animation,n=t.children,r=yn(t,["animation","children"]),l=!0===o?kn:o||null;return e=l?n:(0,s.cloneElement)(n,{className:i()(n.props.className,"in")}),a().createElement(On(),bn({},r,{transition:l}),e)},t}(a().Component);Pn.propTypes=An,Pn.defaultProps=Wn;const Ln=Pn;var Fn=o(5638),Bn=o.n(Fn),Zn=o(3562),Un=o.n(Zn),jn=o(1143),Vn=o.n(jn),$n="large",Yn="small",qn={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function Kn(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return"function"==typeof o[o.length-1]?e.apply(void 0,o):function(t){return e.apply(void 0,o.concat([t]))}}}function Xn(e,t){var o=(e.bsClass||"").trim();return null==o&&Vn()(!1),o+(t?"-"+t:"")}var Jn=Kn((function(e,t){var o=t.propTypes||(t.propTypes={}),n=t.defaultProps||(t.defaultProps={});return o.bsClass=xn().string,n.bsClass=e,t})),Qn=(Kn((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.STYLES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=xn().oneOf(n);(o.STYLES=n,i._values=n,o.propTypes=bn({},r,{bsStyle:i}),void 0!==t)&&((o.defaultProps||(o.defaultProps={})).bsStyle=t);return o})),Kn((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.SIZES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=[];n.forEach((function(e){var t=qn[e];t&&t!==e&&i.push(t),i.push(e)}));var s=xn().oneOf(i);return s._values=i,o.SIZES=n,o.propTypes=bn({},r,{bsSize:s}),void 0!==t&&(o.defaultProps||(o.defaultProps={}),o.defaultProps.bsSize=t),o})));function er(e){var t,o=((t={})[Xn(e)]=!0,t);e.bsSize&&(o[Xn(e,qn[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(o[Xn(e,e.bsStyle)]=!0),o}function tr(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function or(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function nr(e){var t={};return Un()(e).forEach((function(e){var o=e[0],n=e[1];or(o)||(t[o]=n)})),[tr(e),t]}var rr={id:Bn()(xn().oneOfType([xn().string,xn().number])),placement:xn().oneOf(["top","right","bottom","left"]),positionTop:xn().oneOfType([xn().number,xn().string]),positionLeft:xn().oneOfType([xn().number,xn().string]),arrowOffsetTop:xn().oneOfType([xn().number,xn().string]),arrowOffsetLeft:xn().oneOfType([xn().number,xn().string]),title:xn().node},ir=function(e){function t(){return e.apply(this,arguments)||this}return Rn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,c=t.title,h=t.className,d=t.style,u=t.children,p=nr(yn(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),f=p[0],m=p[1],g=bn({},er(f),((e={})[o]=!0,e)),v=bn({display:"block",top:n,left:r},d),y={top:s,left:l};return a().createElement("div",bn({},m,{role:"tooltip",className:i()(h,g),style:v}),a().createElement("div",{className:"arrow",style:y}),c&&a().createElement("h3",{className:Xn(f,"title")},c),a().createElement("div",{className:Xn(f,"content")},u))},t}(a().Component);ir.propTypes=rr,ir.defaultProps={placement:"right"};const sr=Jn("popover",ir);function ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var lr=o(8149),cr=o.n(lr),hr=o(1629),dr=o.n(hr);o(670);const ur=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];e.apply(this,n),t.apply(this,n)}}),null)};function pr(e,t){return cr()(t)?t.indexOf(e)>=0:e===t}var fr=xn().oneOf(["click","hover","focus"]),mr=bn({},Ln.propTypes,{trigger:xn().oneOfType([fr,xn().arrayOf(fr)]),delay:xn().number,delayShow:xn().number,delayHide:xn().number,defaultOverlayShown:xn().bool,overlay:xn().node.isRequired,onBlur:xn().func,onClick:xn().func,onFocus:xn().func,onMouseOut:xn().func,onMouseOver:xn().func,target:xn().oneOf([null]),onHide:xn().oneOf([null]),show:xn().oneOf([null])}),gr=function(e){function t(t,o){var n;return(n=e.call(this,t,o)||this).handleToggle=n.handleToggle.bind(ar(ar(n))),n.handleDelayedShow=n.handleDelayedShow.bind(ar(ar(n))),n.handleDelayedHide=n.handleDelayedHide.bind(ar(ar(n))),n.handleHide=n.handleHide.bind(ar(ar(n))),n.handleMouseOver=function(e){return n.handleMouseOverOut(n.handleDelayedShow,e,"fromElement")},n.handleMouseOut=function(e){return n.handleMouseOverOut(n.handleDelayedHide,e,"toElement")},n._mountNode=null,n.state={show:t.defaultOverlayShown},n}Rn(t,e);var o=t.prototype;return o.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},o.componentDidUpdate=function(){this.renderOverlay()},o.componentWillUnmount=function(){it().unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},o.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;t?this._hoverHideDelay=setTimeout((function(){e._hoverHideDelay=null,e.hide()}),t):this.hide()}},o.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;t?this._hoverShowDelay=setTimeout((function(){e._hoverShowDelay=null,e.show()}),t):this.show()}},o.handleHide=function(){this.hide()},o.handleMouseOverOut=function(e,t,o){var n=t.currentTarget,r=t.relatedTarget||t.nativeEvent[o];r&&r===n||dr()(n,r)||e(t)},o.handleToggle=function(){this.state.show?this.hide():this.show()},o.hide=function(){this.setState({show:!1})},o.makeOverlay=function(e,t){return a().createElement(Ln,bn({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},o.show=function(){this.setState({show:!0})},o.renderOverlay=function(){it().unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},o.render=function(){var e=this.props,t=e.trigger,o=e.overlay,n=e.children,r=e.onBlur,i=e.onClick,l=e.onFocus,c=e.onMouseOut,h=e.onMouseOver,d=yn(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var u=a().Children.only(n),p=u.props,f={};return this.state.show&&(f["aria-describedby"]=o.props.id),f.onClick=ur(p.onClick,i),pr("click",t)&&(f.onClick=ur(f.onClick,this.handleToggle)),pr("hover",t)&&(f.onMouseOver=ur(p.onMouseOver,h,this.handleMouseOver),f.onMouseOut=ur(p.onMouseOut,c,this.handleMouseOut)),pr("focus",t)&&(f.onFocus=ur(p.onFocus,l,this.handleDelayedShow),f.onBlur=ur(p.onBlur,r,this.handleDelayedHide)),this._overlay=this.makeOverlay(o,d),(0,s.cloneElement)(u,f)},t}(a().Component);gr.propTypes=mr,gr.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const vr=gr;var yr={id:Bn()(xn().oneOfType([xn().string,xn().number])),placement:xn().oneOf(["top","right","bottom","left"]),positionTop:xn().oneOfType([xn().number,xn().string]),positionLeft:xn().oneOfType([xn().number,xn().string]),arrowOffsetTop:xn().oneOfType([xn().number,xn().string]),arrowOffsetLeft:xn().oneOfType([xn().number,xn().string])},Cr=function(e){function t(){return e.apply(this,arguments)||this}return Rn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,c=t.className,h=t.style,d=t.children,u=nr(yn(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),p=u[0],f=u[1],m=bn({},er(p),((e={})[o]=!0,e)),g=bn({top:n,left:r},h),v={top:s,left:l};return a().createElement("div",bn({},f,{role:"tooltip",className:i()(c,m),style:g}),a().createElement("div",{className:Xn(p,"arrow"),style:v}),a().createElement("div",{className:Xn(p,"inner")},d))},t}(a().Component);Cr.propTypes=yr,Cr.defaultProps={placement:"right"};const Sr=Jn("tooltip",Cr),_r={},Rr=document.createElement("canvas");Rr.id="gk-graph-avatar-canvas";class wr extends a().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(){const{url:e}=this.props;e&&this.startImgLoading(e)}componentDidUpdate(e){const{url:t}=this.props;t&&e.url!==t&&this.startImgLoading(t)}componentWillUnmount(){this.image=void 0}refreshImage(){if(!this.image)return;let e;if(this.image.complete){const t=this.image.height,o=this.image.width,n=Rr.getContext("2d");n.canvas.width=o,n.canvas.height=t,n.drawImage(this.image,0,0,o,t),e=Rr.toDataURL(),_r[this.image.src]=e}this.setState({dataURL:e})}startImgLoading(e){if(!this.image)return;const t=_r[e];t?this.setState({dataURL:t}):this.image.src=e}render(){const{avatarClassName:e,avatarStyle:t,children:o,className:n,context:r,style:s,height:l,hint:c,size:h,width:d}=this.props,{dataURL:u}=this.state,p=!u,f=p?s:{...s,...t,background:`url(${u}) 0% 0% / ${h}px no-repeat`,height:l||h,width:d||h},m=i()(n,p?"":e,!p&&{avatar:!0}),g=p?a().createElement(a().Fragment,null,o):void 0;return a().createElement("div",{className:m,"data-test-class":"avatar","data-vscode-context":(0,W.q3)(r),style:f,title:c},g)}}var br=wr;const Tr=(e,t,o,n)=>a().createElement("span",{className:"ref-avatar"},a().createElement(br,{avatarClassName:t,context:n,size:14,url:e},o));function Er({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:n}){return n&&o?a().createElement(vr,{delayShow:400,overlay:a().createElement(Sr,{className:i()("gk-graph","bs-tooltip",t),id:o},n),placement:"top",trigger:["hover","focus"]},e):a().createElement(a().Fragment,null," ",e," ")}function xr({id:e,toolTipText:t,getExternalIcon:o,issueTrackerType:n}){return a().createElement(Er,{icon:o(`issue-${n}`),tooltipClassName:"wide pull-left",tooltipId:`issue-tooltip-${e}`,tooltipText:t?t.trim():""})}function Mr({hostingServiceType:e,icon:t,id:o,toolTipText:n}){return a().createElement(Er,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:n?n.trim():""})}function Or({icon:e,type:t,upstream:o,tooltipText:n}){return a().createElement(Er,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:n})}function Ir({avatarClassName:e,avatarUrl:t,context:o,icon:n,tooltipText:r}){return a().createElement(Er,{icon:Tr(t,e,n,o),tooltipId:`remote-icon-${r||"tooltipText"}`,tooltipText:r})}var Dr=o(9453),Nr=o(7334),zr=o(9915);var Gr=function({className:e,name:t}){return a().createElement("span",{className:i()("ref-name","truncate",e),style:{height:m.pj}},t)};function Hr(e,t,o,n=0){const{annotated:r,refType:i,message:s,name:l}=t;let c,h,d;switch(i){case F.V.REMOTE:{const e=t;h=function(e){return e.hostingServiceType?`${F.V.REMOTE}-${e.hostingServiceType}`:F.V.REMOTE}(e),c=e.avatarUrl;const n=`${l} (${o("Ref-Remote")})`;d=e.owner?`${e.owner} -> ${n}`:n;break}case F.V.TAG:h=F.V.TAG;d=`${r&&s?s:l} (${o("Ref-Tag")})`;break;case F.V.HEAD:default:h=F.V.HEAD,d=`${l} (${o("Ref-Local")})`}const u=t.context||void 0,p=a().createElement("span",{"data-vscode-context":(0,W.q3)(u)},e(h));return a().createElement(Ir,{avatarUrl:c||"",context:u,icon:p,key:`ref-icon-${n}-${i}-${l}`,tooltipText:d})}class kr extends a().PureComponent{getContextForRefGroupIfExists(e,t,o){let n,r=!1,i=!1,s=!1;for(const a of e){if(a.refType===F.V.HEAD)return o?a.contextGroup||t:a.context;a.refType===F.V.REMOTE&&("origin"===a.owner?(r=!0,n=o?a.contextGroup||t:a.context):r||"upstream"!==a.owner?r||i||(s=!0,n=o?a.contextGroup||t:a.context):(i=!0,n=o?a.contextGroup||t:a.context)),r||i||s||(n=o?a.contextGroup||t:a.context)}return n}getDecoratedRefIcon(e,t,o,n,r){return a().createElement("div",{className:r,"data-vscode-context":(0,W.q3)(n),key:e,onClick:e=>this.onClickMetadata(e,o),onDoubleClick:e=>this.onDoubleClickMetadata(e,o)},t)}getPullRequestIconsAndTooltipsForRef(e,t,o){const{getExternalIcon:n,onMissingRefMetadata:r,translate:s}=this.props;let l;if(l=t.refType===F.V.HEAD?t.upstream?e?.[t.upstream.id]?.[Dr.mQ]:null:(0,W.uV)(t,e,r,Dr.mQ),!l||0===l.length)return null;const c=l,h=[];for(const e of c){const{context:r,hostingServiceType:l,id:c,title:d}=e;if(o.has(c))continue;o.add(c);const u={refId:t.id,type:Dr.mQ,data:e},p=`pr-icon-${t.refType}-${t.name}-${c}`,f=this.getDecoratedRefIcon(p,n("pull-request"),u,r,i()("ref-pull-request"));h.push(a().createElement(Mr,{hostingServiceType:l,icon:f,id:c,key:p,toolTipText:d&&""!==d.trim()?s("PullRequestIcon-Tooltip",c,d,(0,Nr.y)(l)):""}))}return h}getUpstreamIndicatorIconsAndTooltipsForRef(e,t){const{getExternalIcon:o,onMissingRefMetadata:n,translate:r}=this.props,i=(0,W.uV)(t,e,n,Dr.uq);if(!i||0===i.ahead&&0===i.behind)return null;const s=i,l={refId:t.id,type:Dr.uq,data:s},c=s.ahead>0,h=s.behind>0,d=s.context;if(c||h){const e=c?`${s.ahead>99?"99+":s.ahead}`:"",n=h?`${s.behind>99?"99+":s.behind}`:"",i=`${s.owner}/${s.name}`;let u,p;h&&c?(u=r("UpstreamIndicatorIcon-BehindAndAheadTooltip",n,e,i),p="ahead-behind"):h?(u=r("UpstreamIndicatorIcon-BehindTooltip",n,i),p="behind"):c&&(u=r("UpstreamIndicatorIcon-AheadTooltip",e,i),p="ahead");const f=a().createElement(a().Fragment,null,h?a().createElement(a().Fragment,null,a().createElement("span",{className:"ref-upstream-behind"},n),o("upstream-behind")):null,c?a().createElement(a().Fragment,null,a().createElement("span",{className:"ref-upstream-ahead"},e),o("upstream-ahead")):null);return a().createElement(Or,{icon:this.getDecoratedRefIcon(`ref-upstream-${t.id}`,f,l,d,"ref-upstream"),tooltipText:u,type:p,upstream:i})}return null}getIssueIconsAndTooltipsForRef(e,t,o){const{getExternalIcon:n,onMissingRefMetadata:r,translate:s}=this.props,l=(0,W.uV)(t,e,r,Dr.$M);if(!l||0===l.length)return null;const c=l,h=[];for(const e of c){if(o.has(e.id))continue;const r={refId:t.id,type:Dr.$M,data:e};o.add(e.id);const l=a().createElement(xr,{getExternalIcon:n,id:e.id,issueTrackerType:e.issueTrackerType,key:`issue-icon-${e.id}`,toolTipText:e.title&&""!==e.title.trim()?s("IssueIcon-Tooltip",e.displayId,e.title):""}),c=t.context||void 0;h.push(this.getDecoratedRefIcon(`ref-issue-${e.id}`,l,r,c,i()("ref-issue")))}return h}onContextMenu=e=>{const{onContextMenu:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClick=e=>{const{onClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClickMetadata=(e,t)=>{e.stopPropagation();const{onClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};onDoubleClick=e=>{const{onDoubleClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();const{onDoubleClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};render(){const{enableShowHideRefsOptions:e,hasActive:t,hasRefs:o,isActive:n,isGhostRef:r,getExternalIcon:s,groupIsHovered:l,isInUnsupportedRebase:c,onRefBeginDrag:h,onRefDragEnter:d,onRefDragLeave:u,onRefDrop:p,onRefCanDrag:f,onRefCanDrop:g,onRefEndDrag:v,isRefGroupIncluded:y,refGroup:C,refGroupContext:S,refIconsPosition:_,refMetadata:R,onHovered:w,onHideRefClick:b,sha:T,showRemoteNamesOnRefs:E,enabledRefMetadataTypes:x,translate:M,type:O,useColumnHeaderIcons:I}=this.props,D=e&&!t&&l&&!y,N=_===F.l.LEFT,z=_===F.l.RIGHT,G=i()("ref-node-wrapper","flex"),H={minWidth:0,marginLeft:3,height:m.cZ},k=i()("ref-node","flex","items-center","p1",{"has-active":t,"dim-ref":!o&&l,"is-active":n});let A="";C.length>0&&(A=E&&C[0].fullName||C[0].name);const P=i()({"display-none":I&&!l&&z,mr1:z}),L=a().createElement(Gr,{className:P,name:A}),B=[],Z=[],U=[];let j=null;const V=new Set,$=new Set;C.forEach(((e,t)=>{if(B.push(Hr(s,e,M,t)),x.includes(Dr.$M)&&(e.refType===F.V.HEAD||e.refType===F.V.REMOTE)){const t=this.getIssueIconsAndTooltipsForRef(R,e,$);t&&U.push(...t)}if(x.includes(Dr.mQ)&&e.refType===F.V.REMOTE){const t=this.getPullRequestIconsAndTooltipsForRef(R,e,V);t&&Z.push(...t)}x.includes(Dr.uq)&&e.refType===F.V.HEAD&&(j=this.getUpstreamIndicatorIconsAndTooltipsForRef(R,e))}));const Y=a().createElement("span",{className:i()("flex","items-center","ref-icons",{"is-active":n,"is-left-position":N})},[...B,...Z,...U]),q=n?a().createElement(Er,{icon:a().createElement("span",{className:i()("ref-icon-current")},s("check")),tooltipId:"ref-icon-current",tooltipText:M("Ref-Current")}):null,K=this.getContextForRefGroupIfExists(C,S),X=this.getContextForRefGroupIfExists(C,S,!0),J=D?a().createElement("span",{className:"flex ml-auto"},a().createElement(Er,{icon:a().createElement("span",{className:i()("mr1","button"),onClick:e=>b(e,C,T)},s("hide")),tooltipId:`ref-node-toggle-visibility-btn-${A}`,tooltipText:M("Hide")})):null,Q={commitType:O,isGhostRef:r,isInUnsupportedRebase:c,refGroup:C,sha:T};return a().createElement(zr.Z,{canDrag:e=>f(e),canDrop:(e,t,o)=>g(e,t,o),className:G,"data-vscode-context":(0,W.q3)(X),dndData:Q,dndId:`DndRefNode_${C[0].id}`,onBeginDrag:(e,t)=>h(e,t),onDragEnter:(e,t,o)=>d(e,t,o),onDragLeave:(e,t,o)=>u(e,t,o),onDrop:(e,t,o)=>p(e,t,o),onEndDrag:(e,t,o)=>v(e,t,o),style:H},a().createElement("span",{className:k,"data-test-class":"ref-node-span","data-vscode-context":(0,W.q3)(K),onContextMenu:c?void 0:this.onContextMenu,onDoubleClick:c?void 0:this.onDoubleClick,onMouseDown:this.onClick,onMouseEnter:e=>w(e,C,T),style:{minWidth:"100%"}},q,N&&Y,L,z&&Y,j,J))}}class Ar extends a().Component{headIconsRef=a().createRef();constructor(e){super(e),this.state={showPopoverMenu:!1,refPopoverMenuTarget:void 0}}onHiddenRefsClick=e=>{const{showPopoverMenu:t}=this.state;this.setState({showPopoverMenu:!t,refPopoverMenuTarget:t?e.target:void 0})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),0===Object.keys(this.props.excludeRefsById).length&&this.onHiddenRefsClick(e)};compareGraphRefOpts(e,t){const o=e.name.localeCompare(t.name);return 0===o&&e.type===F.V.REMOTE?-1:o}render(){const{columnSetting:e,enableResizer:t,enableShowHideRefsOptions:o,getExternalIcon:n,graphWidth:r,graphZones:s,graphZoneType:l,excludeRefsById:c,includeOnlyRefsById:h,isDraggable:d,onFilterColumnClick:u,onHover:p,onResize:f,onResizeEnd:g,onResizeFromPropChange:v,onResizeStart:y,onUnhover:C,onSettingsClick:S,rowsStatsLoading:_,settingsContext:R,showRemoteNamesOnRefs:w,translate:b}=this.props,{showPopoverMenu:T,refPopoverMenuTarget:E}=this.state,x=(0,W.zv)(l,s);if(!x)return null;const M=(0,W.SH)(l,s),O=x.currentWidth-m.b4,I=`${l}-header`,D=(0,W._e)(x),N=e?.isFilterable||!1,z=D&&(N||o),G=i()("columns-btn",{"small-btn":z});let H=null,k=null;if(l===m.jZ){const e=Object.entries(c),t=Object.values(h),r=t.length>0,s=r&&t.some((e=>e.type===F.V.TAG)),l=e.filter((e=>e[1].type===F.V.TAG&&(!r||!s)||!h[e[0]]));l.length>0&&(k=l.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,t)=>{const o=e[0],r=e[1];c[o].id=o;const i={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},s=!w&&"*"!==i.name||i.refType!==F.V.REMOTE?i.name:`${i.owner}/${i.name}`;return a().createElement("li",{id:o,key:o,onClick:e=>this.onShowRefNodes(e,[c[o]],!0)},Hr(n,i,b,t),a().createElement("span",{className:"ml1 text-ellipsis"},s))})),H=o?a().createElement("div",{className:i()(G,"right","text-normal","button",T?"active":null)},a().createElement(Er,{icon:a().createElement("span",{onClick:this.onHiddenRefsClick},n("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:b("GraphHeader-HiddenRefs-btn")})):null)}const A=N?a().createElement("div",{className:i()(G,"columns-filter","right","fs-1",{filtering:e?.isFilterActive||!1})},a().createElement(Er,{icon:a().createElement("span",{className:"columns-filter-icon text-disabled hover-icon",id:`${l}-header-filter`,onClick:e=>u(e,l),style:{height:m.ze,marginBottom:m.wi}},n("filter")),tooltipId:"header-columns-filter",tooltipText:b("GraphHeader-Filter")})):null,P=!D&&l===m.WD&&_?a().createElement("span",{className:i()(G,"spinner")},n("loading")):null,L=a().createElement(Ln,{container:this,onHide:T?this.onHiddenRefsClick:void 0,placement:T?"bottom":void 0,rootClose:T,show:T,target:E},a().createElement(sr,{className:i()({"is-last-header":M}),id:"opts-popover",style:{display:T?"block":"none"}},a().createElement("ul",null,k))),B=M&&S?a().createElement("div",{className:i()("columns-btn","columns-settings","right","fs-1"),"data-vscode-context":(0,W.q3)(R)},a().createElement(Er,{icon:a().createElement("span",{className:"columns-settings-icon text-disabled hover-icon",onClick:e=>S(e,r)},n("settings")),tooltipId:"header-columns-settings",tooltipText:b("GraphHeader-EditColumns")})):null,Z=this.headIconsRef?.current?.clientWidth&&parseInt(this.headIconsRef.current.clientWidth,10)||0,U=a().createElement("div",{className:"header-columns-icons",ref:this.headIconsRef},B,P,A,H),j=D?a().createElement(a().Fragment,null,a().createElement("div",{className:i()(G,"justify-start",{ml1:!z}),style:{width:O-Z},title:b(x.headerLabelUntranslated)},n((0,W.sH)(l))),U):a().createElement(a().Fragment,null,a().createElement("div",{className:"text-disabled text-ellipsis",style:{height:m.ze,overflow:"hidden",width:O-Z}},a().createElement("span",{className:"fs-1 ml1 font-monospace"},b(x.headerLabelUntranslated))),U),V=a().createElement("div",{onMouseEnter:p,onMouseLeave:C},L,j),$=i()("panel-bg0","graph-header",{"is-draggable":d,"is-last-header":M});return M?a().createElement("div",{className:$,id:I,key:I,style:{minWidth:O,transform:"translate3d(0, 0, 0)",zIndex:2}},V):a().createElement("div",{className:$,id:I,key:I,style:{display:"flex",minWidth:x.currentWidth,transform:"translate3d(0, 0, 0)",width:x.currentWidth,zIndex:2}},a().createElement(tn,{className:$,enable:t,handleStyles:{right:{right:0}},height:m.ze,onResize:f?e=>f(x,e):void 0,onResizeEnd:g?e=>g(x,e):void 0,onResizeFromPropChange:v?e=>v(x,e):void 0,onResizeStart:y?e=>y(x,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:b,width:x.currentWidth,widthConstraints:(0,W.eR)(l,s,r)},V))}}const Wr=Ar;class Pr extends a().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(){const{columnsSettings:e,dragAppendToContainer:t,enableResizer:o,enableShowHideRefsOptions:n,getExternalIcon:r,excludeRefsById:i,headerContext:s,includeOnlyRefsById:l,onFilterColumnClick:c,onPopupGraphHeaderContextMenu:h,onGraphZoneResize:d,onGraphZoneResizeEnd:u,onGraphZoneResizeFromPropChange:p,onSettingsClick:f,onToggleRefNodesShown:g,graphZones:v,repoPath:y,rowsStatsLoading:C,showRemoteNamesOnRefs:S,translate:_,width:R,height:w,settingsContext:b}=this.props,T=a().createElement("div",{className:"panel-bg0",style:{height:m.ze,marginBottom:m.wi,marginLeft:-m.mu,minWidth:m.mu+m.b4}});return a().createElement("div",{className:"graph-header flex","data-vscode-context":(0,W.q3)(s),onContextMenu:h?e=>h(e,R):void 0,style:{height:m.ze,marginBottom:m.wi}},T,a().createElement(gn,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,mirrorContainer:t,onDrop:this.onDrop},v.map((t=>a().createElement(Wr,{columnSetting:e[t.type],enableResizer:o,enableShowHideRefsOptions:n,excludeRefsById:i,getExternalIcon:r,graphHeight:w,graphWidth:R,graphZones:v,graphZoneType:t.type,id:`${t.type}Header`,includeOnlyRefsById:l,isDraggable:t.isCustomizable,isDroppable:t.isCustomizable,key:`${t.type}Header`,onFilterColumnClick:c,onHover:this.onZoneHover,onResize:d,onResizeEnd:u,onResizeFromPropChange:p,onSettingsClick:f,onToggleRefNodesShown:g,onUnhover:this.onZoneUnHover,repoPath:y,rowsStatsLoading:C,settingsContext:b,showRemoteNamesOnRefs:S,translate:_})))))}}var Lr=Pr;function Fr(e){const{constraints:{max:t,min:o},stats:{files:n,additions:r,deletions:s},getExternalIcon:l,isLastColumn:c,isRowSelected:h,verticalScrollWidth:d,zoneWidth:u}=e,p=r+s,f=Math.max(o,Math.min(t,p));let g=c?d+m.SZ:m.SZ;p<=f&&(g+=m.SZ);const v=Math.max(m.QW,f/t*(u-52-g)),y=r/p*v,C=s/p*v;return a().createElement("div",{className:i()("changes-zone",h?"selected":null)},a().createElement("span",{className:"changes-files",style:{width:52}},a().createElement("span",{className:"mr1"},l("files")),a().createElement("span",{className:"mr1"},n>999?"999+":n)),a().createElement("span",{className:"changes-bar",style:{width:v}},r?a().createElement("div",{className:"changes-sub-bar added",style:{width:y}}):null,s?a().createElement("div",{className:"changes-sub-bar deleted",style:{width:C}}):null))}const Br=i()("absolute","top-0","right-0","bottom-0","left-0","time-line"),Zr=i()(Br,"z2");var Ur=function({z2:e}){return a().createElement("div",{className:e?Zr:Br,style:{height:2}})};const jr=a().createElement("div",{className:"color-strip height-100",style:{width:2}}),Vr={};const $r={};class Yr extends a().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,context:n,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:c,hasAvatars:h,highlightRowsOnRefHover:d,isDimmedMergeCommitRow:u,isHighlighted:p,isHovering:f,isLastColumn:g,isInUnsupportedRebase:v,isMissingHoveredRefGroup:y,isSelected:C,numGraphColumns:S,onContextMenu:_,onClickCommit:R,onDoubleClickCommit:w,rowContext:b,sha:T,showColorStrip:E,showConflictIcon:x,showTimeline:M,setAsCurrentlyHoveredGraphCommit:O,style:I,title:D,type:N,verticalScrollWidth:z,zoneWidth:G}=this.props,H=function(e,t){const o=e+t.toString();let n=Vr[o];return n||(n=i()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),Vr[o]=n,n)}(N,f),k=function(e,t,o,n,r,s=!1,a=!1,l=!1,c=!1){const h=`${e}${t}${n}${o}${s}${a}${l}${c}${r}`;let d=$r[h];return d||(d=i()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":n},{"is-highlighted":o},{"dimmed-row":c&&!o||s&&(a||l)}),$r[h]=d,d)}(N,o,p,C,S,y,d,s,u),A=M?a().createElement(Ur,null):null;return a().createElement("div",{className:H,"data-vscode-context":(0,W.q3)(b),onContextMenu:v?void 0:e=>_(e,c,T),onDoubleClick:e=>w(e,c,T),onMouseDown:e=>R(e,c,T),onMouseEnter:e=>O(e,c,T,r),onMouseLeave:t=>e(t,c,T,r),style:I},A,a().createElement("div",{className:k,"data-vscode-context":(0,W.q3)(n)},E?jr:null,x?a().createElement("span",{className:i()("ml2")},l("warning")):null,a().createElement("span",{className:i()("graph-zone","width-100","flex-1"),style:{lineHeight:`${m.cZ}px`,...g&&{width:G-z},...h&&{marginLeft:5}},title:D},t)))}}var qr=(e,t)=>{const{processedRows:o,rowStatsConstraints:n,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:s,numGraphColumns:l,clearCurrentlyHoveredGraphCommit:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,rowsStats:y,setAsCurrentlyHoveredGraphCommit:C}=e,S=new W.Dj(e);return({rowIndex:e,style:_})=>{const R=t(e),w=o[e],{sha:b,type:T,contexts:E}=w,x=E?.stats||void 0,M=E?.row||void 0,O=y?.[b];let I=[O?.files?`${O.files} files changed`:"",O?.additions?`${O.additions} lines added`:"",O?.deletions?`${O.deletions} lines deleted`:""].filter(Boolean).join(", ");I=T!==f.ch?I:"";const D=m.WD,N=S.isColumnFollowingGraphColumn(D),z=S.isLastColumn(D),G=S.getZoneWidth(D),H=S.getVerticalScrollWidth(D);return a().createElement(Yr,{clearCurrentlyHoveredGraphCommit:c,column:w.column,context:x,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:D,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:T===f.lH&&d,isHighlighted:S.isHighlighted(e),isHovering:S.isHovering(e),isInUnsupportedRebase:s,isLastColumn:z,isMissingHoveredRefGroup:S.isMissingHoveredRefGroup(e),isSelected:S.isSelected(e),key:R,numGraphColumns:l,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:M,setAsCurrentlyHoveredGraphCommit:C,sha:b,showColorStrip:N,showTimeline:S.hasTimeline(e),style:_,title:I,type:T,verticalScrollWidth:H,zoneWidth:G},O&&T!==f.ch?a().createElement(Fr,{constraints:n,getExternalIcon:r,isLastColumn:z,isRowSelected:S.isSelected(e),stats:O,verticalScrollWidth:H,zoneWidth:G}):null)}};function Kr(e){const t=(e||"").trim().toUpperCase();if(0===t.length)return"?";const o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function Xr(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}class Jr extends a().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)=>{const{authorInitials:n,column:r,context:i,cssVariables:s,style:l,fontSize:c,minWidth:h,size:d,title:u=""}=this.props,f=void 0!==r&&s[(0,R.a2)(r)]||m.iq,g=p(f.trim()),v={alignItems:"center",backgroundColor:f,backgroundSize:d,color:g,display:"flex",fontSize:`${c}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:h,top:o,width:t,...l};return a().createElement("div",{className:this.getAvatarClassName(),"data-vscode-context":(0,W.q3)(i),style:v,title:u},n?n.toUpperCase():"")};ensureTooltipText=()=>{const{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};setOverlayTriggerRef=e=>{this.overlayTriggerRef=e};getAvatarClassName(){return i()("avatar","gravatar","rad2",this.props.className)}render(){const{tooltipText:e}=this.state,{avatarUrl:t,context:o,style:n,height:r,minWidth:i,size:s,title:l="",tooltip:c,top:h,useAuthorInitialsForAvatars:d,width:u}=this.props,p=r||s,f=u||s,g=h||m.P3/2-p/2,v={top:g,minWidth:i,...n},y=this.getDefaultAvatar(p,f,g),C=d?y:a().createElement("span",null,a().createElement(br,{avatarClassName:this.getAvatarClassName(),avatarStyle:v,context:o,height:p,hint:l,size:s,url:t,width:f},this.getDefaultAvatar(p,f,g)));return c?a().createElement(vr,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:a().createElement(Sr,{className:"gk-graph",id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},C):C}}var Qr=(e,t)=>{const{avatarUrlByEmail:o,clearCurrentlyHoveredGraphCommit:n,cssVariables:r,currentlyHoveredCommitSha:s,dimMergeCommits:l,dimRowsOfSelectedCommit:c,getExternalIcon:h,highlightRowsOnRefHover:d,processedRows:u,isInUnsupportedRebase:p,onCommitContextMenu:g,onClickCommit:v,onDoubleClickCommit:C,numGraphColumns:_,setAsCurrentlyHoveredGraphCommit:R,useAuthorInitialsForAvatars:w}=e,b=new W.Dj(e);return({rowIndex:e,style:T})=>{const E=t(e),x=u[e],{author:M,email:O,message:I,sha:D,type:N,contexts:z}=x,G=m.GF,H=b.getActiveGraphZone(G);let k=N!==f.ch?M:void 0;const A=N!==f.ch?Xr(M,O):void 0,W=z?.author||void 0,P=z?.row||void 0,L=b.isColumnFollowingGraphColumn(G),F=b.isLastColumn(G),B=b.getZoneWidth(G),Z=(B<=H.minimumWidth||H?.mode===m.Um.Rich)&&N!==f.ch;if(Z){const e=()=>{const e=M&&""!==M.trim()&&"Unknown"!==M?Xr(M,O):O,t=S(y(I||""));let o="";if(0===t.length)o=e;else{t.unshift({email:O,name:M});for(let e=0;e<t.length;e+=1){const n=t[e];o+=Xr(n.name,n.email),e<t.length-1&&(o+=", ")}}return o},t=w?void 0:o[O];k=a().createElement(Jr,{authorInitials:Kr(M),avatarUrl:t,className:i()("node",`${f.o$}`,"z6"),column:x.column,context:z?.avatar||void 0,cssVariables:r,fontSize:10,height:m.LG,size:m.Y8,tooltip:e,useAuthorInitialsForAvatars:w,width:m.LG})}return a().createElement(Yr,{clearCurrentlyHoveredGraphCommit:n,column:x.column,context:W,currentlyHoveredCommitSha:s,dimRowsOfSelectedCommit:c,getExternalIcon:h,graphZoneType:G,hasAvatars:Z,highlightRowsOnRefHover:d,isDimmedMergeCommitRow:N===f.lH&&l,isHighlighted:b.isHighlighted(e),isHovering:b.isHovering(e),isInUnsupportedRebase:p,isLastColumn:F,isMissingHoveredRefGroup:b.isMissingHoveredRefGroup(e),isSelected:b.isSelected(e),key:E,numGraphColumns:_,onClickCommit:v,onContextMenu:g,onDoubleClickCommit:C,rowContext:P,setAsCurrentlyHoveredGraphCommit:R,sha:D,showColorStrip:L,showTimeline:b.hasTimeline(e),style:T,title:A,type:N,verticalScrollWidth:b.getVerticalScrollWidth(G),zoneWidth:B},k)}};var ei=(e,t)=>{const{processedRows:o,getExternalIcon:n,highlightRowsOnRefHover:r,isInUnsupportedRebase:i,numGraphColumns:s,formatCommitDateTime:l,clearCurrentlyHoveredGraphCommit:c,dimMergeCommits:h,dimRowsOfSelectedCommit:d,currentlyHoveredCommitSha:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,setAsCurrentlyHoveredGraphCommit:y}=e,C=new W.Dj(e);return({rowIndex:e,style:S})=>{const _=t(e),R=o[e],{date:w,sha:b,type:T,contexts:E}=R,x=w&&T!==f.ch?l(w,f.Gu.RowEntry):void 0,M=w&&T!==f.ch?l(w,f.Gu.Tooltip):void 0,O=E?.date||void 0,I=E?.row||void 0,D=m.PL,N=C.isColumnFollowingGraphColumn(D),z=C.isLastColumn(D),G=C.getZoneWidth(D),H=C.getVerticalScrollWidth(D);return a().createElement(Yr,{clearCurrentlyHoveredGraphCommit:c,column:R.column,context:O,currentlyHoveredCommitSha:u,dimRowsOfSelectedCommit:d,getExternalIcon:n,graphZoneType:D,highlightRowsOnRefHover:r,isDimmedMergeCommitRow:T===f.lH&&h,isHighlighted:C.isHighlighted(e),isHovering:C.isHovering(e),isInUnsupportedRebase:i,isLastColumn:z,isMissingHoveredRefGroup:C.isMissingHoveredRefGroup(e),isSelected:C.isSelected(e),key:_,numGraphColumns:s,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:I,setAsCurrentlyHoveredGraphCommit:y,sha:b,showColorStrip:N,showTimeline:!1,style:S,title:M,type:T,verticalScrollWidth:H,zoneWidth:G},x)}},ti={glyph:xn().string.isRequired},oi=function(e){function t(){return e.apply(this,arguments)||this}return Rn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.glyph,n=t.className,r=nr(yn(t,["glyph","className"])),s=r[0],l=r[1],c=bn({},er(s),((e={})[Xn(s,o)]=!0,e));return a().createElement("span",bn({},l,{className:i()(n,c)}))},t}(a().Component);oi.propTypes=ti;const ni=Jn("glyphicon",oi);var ri={$bs_formGroup:xn().object},ii=function(e){function t(){return e.apply(this,arguments)||this}Rn(t,e);var o=t.prototype;return o.getGlyph=function(e){switch(e){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}},o.renderDefaultFeedback=function(e,t,o,n){var r=this.getGlyph(e&&e.validationState);return r?a().createElement(ni,bn({},n,{glyph:r,className:i()(t,o)})):null},o.render=function(){var e=this.props,t=e.className,o=e.children,n=nr(yn(e,["className","children"])),r=n[0],s=n[1],l=er(r);if(!o)return this.renderDefaultFeedback(this.context.$bs_formGroup,t,l,s);var c=a().Children.only(o);return a().cloneElement(c,bn({},s,{className:i()(c.props.className,t,l)}))},t}(a().Component);ii.defaultProps={bsRole:"feedback"},ii.contextTypes=ri;const si=Jn("form-control-feedback",ii);var ai={componentClass:Dn()},li=function(e){function t(){return e.apply(this,arguments)||this}return Rn(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,o=e.className,n=nr(yn(e,["componentClass","className"])),r=n[0],s=n[1],l=er(r);return a().createElement(t,bn({},s,{className:i()(o,l)}))},t}(a().Component);li.propTypes=ai,li.defaultProps={componentClass:"p"};const ci=Jn("form-control-static",li);var hi={componentClass:Dn(),type:xn().string,id:xn().string,inputRef:xn().func},di={$bs_formGroup:xn().object},ui=function(e){function t(){return e.apply(this,arguments)||this}return Rn(t,e),t.prototype.render=function(){var e,t=this.context.$bs_formGroup,o=t&&t.controlId,n=this.props,r=n.componentClass,s=n.type,l=n.id,c=void 0===l?o:l,h=n.inputRef,d=n.className,u=n.bsSize,p=nr(yn(n,["componentClass","type","id","inputRef","className","bsSize"])),f=p[0],m=p[1];("file"!==s&&(e=er(f)),u)&&(e[Xn({bsClass:"input"},qn[u]||u)]=!0);return a().createElement(r,bn({},m,{type:s,id:c,ref:h,className:i()(d,e)}))},t}(a().Component);ui.propTypes=hi,ui.defaultProps={componentClass:"input"},ui.contextTypes=di,ui.Feedback=si,ui.Static=ci;const pi=Jn("form-control",Qn([Yn,$n],ui)),fi={ADDED:"added",DELETED:"deleted",MODIFIED:"modified",RENAMED:"renamed"};class mi extends a().Component{render(){const{fileDiffType:e,getExternalIcon:t,translate:o}=this.props;if(!e)return null;const n=(e=>{switch(e){case fi.ADDED:return"added";case fi.MODIFIED:return"modified";case fi.DELETED:return"deleted";case fi.RENAMED:return"renamed";default:return null}})(e),r=(e=>{switch(e){case fi.ADDED:return"color-green";case fi.MODIFIED:return"color-orange";case fi.DELETED:return"color-red";case fi.RENAMED:return"color-blue";default:return null}})(e),s=(e=>{switch(e){case fi.ADDED:return"CommitDiffSection-FileAdded";case fi.MODIFIED:return"CommitDiffSection-FileModified";case fi.DELETED:return"CommitDiffSection-FileDeleted";case fi.RENAMED:return"CommitDiffSection-FileRenamed";default:return null}})(e),l=i()("fs-1",r,"mr1");return a().createElement("span",{className:l,title:o(s)},n&&t(n))}}var gi=mi;const{ADDED:vi,DELETED:yi,MODIFIED:Ci,RENAMED:Si}=fi,_i={[vi]:"CommitDiffSection-NFilesAdded",[yi]:"CommitDiffSection-NFilesDeleted",[Ci]:"CommitDiffSection-NFilesModified",[Si]:"CommitDiffSection-NFilesRenamed"};var Ri=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:n,translate:r}){const i=n?e:r(_i[t],e);let s,l;return n&&(s={fontSize:m.wd,marginRight:m.IX},l={fontSize:m.dH,margin:`0px ${m.VB}px 0px 0px`}),a().createElement("span",{className:"tiny-files-readout",style:s},a().createElement(gi,{fileDiffType:t,getExternalIcon:o,style:l,translate:r}),a().createElement("span",{className:"tiny-files-readout-text"},i))};var wi=function({diffStats:e,fileNodeListStyle:t,getExternalIcon:o,translate:r}){const{types:i}=n;if(!e)return a().createElement("span",null);if(!Object.values(e).some((e=>Boolean(e))))return a().createElement("span",null);const s=e.modified?a().createElement(Ri,{count:e.modified,diffType:i.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,l=e.added?a().createElement(Ri,{count:e.added,diffType:i.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,c=e.deleted?a().createElement(Ri,{count:e.deleted,diffType:i.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,h=e.renamed?a().createElement(Ri,{count:e.renamed,diffType:i.RENAMED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,d=t?{marginLeft:m.aV}:null;return a().createElement("span",{className:"summary",style:d},s,l,c,h)};class bi extends a().Component{textWidthRef=a().createRef();wrapperRef=a().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(){const{clearCurrentlyHoveredGraphCommit:e,currentlyHoveredCommitSha:t,getExternalIcon:o,graphZoneType:n,isCommitting:r,isHovering:s,isSelected:l,onBlur:c,onClickCommit:h,onContextMenu:d,onFocus:u,onMessageChange:p,setAsCurrentlyHoveredGraphCommit:m,sha:g,style:v,translate:y,value:C,workDirStats:S}=this.props,_=i()("graph-zone-column","pt3","pb3","pointer","height-100-percent","grow-3","graph-row-wrapper",f.ch,{"is-hovering":s}),R=i()("column-1","graph-row","flex",{"is-selected":l}),w=a().createElement(wi,{diffStats:S,getExternalIcon:o,translate:y}),b=a().createElement("div",{className:"work-dir-input",ref:this.wrapperRef},a().createElement(pi,{"data-test-class":"work-dir-input-field",disabled:r,onBlur:e=>c(e),onChange:e=>p(e.target.value),onContextMenu:e=>d(e,n,g),onFocus:e=>u(e),onKeyDown:e=>this.onWipKeyDown(e),placeholder:y("WorkDirMessageInput-WIPPlaceholder"),type:"text",value:C}),a().createElement("div",{className:"text-width","data-test-class":"work-dir-input-message",ref:this.textWidthRef},C));return a().createElement("div",{className:_,onMouseEnter:e=>m(e,n,g,t),onMouseLeave:o=>e(o,n,g,t),style:v},a().createElement("div",{className:R,"data-test-class":"work-dir-message-row-div",onMouseDown:e=>h(e,n,g)},b,w))}}var Ti=(e,t)=>{const{dimMergeCommits:o,dimRowsOfSelectedCommit:n,processedRows:r,translate:i,getExternalIcon:s,graphCommitDescDisplayMode:l,highlightRowsOnRefHover:c,isInUnsupportedRebase:h,numGraphColumns:d,isCommitting:u,pendingCommitMessageSummary:p,workDirStats:g,onBlurWipNodeInput:v,onFocusWipNodeInput:y,onMessageChange:C,clearCurrentlyHoveredGraphCommit:S,currentlyHoveredCommitSha:_,onCommitContextMenu:R,onClickCommit:w,onDoubleClickCommit:b,setAsCurrentlyHoveredGraphCommit:T,wipMessageEditable:E}=e,x=new W.Dj(e);return({rowIndex:e,style:M})=>{const O=t(e),I=r[e],{displaySummary:D,displayBody:N,sha:z,type:G,contexts:H,message:k}=I,A=H?.message||void 0,W=H?.row||void 0,P=m.KE,L=x.isColumnFollowingGraphColumn(P),F=x.isLastColumn(P),B=x.getZoneWidth(P),Z=x.getVerticalScrollWidth(P),U=x.isHovering(e),j=G===f.ch&&void 0!==g&&Object.keys(g).length>0,V=j&&!E?a().createElement(wi,{diffStats:g,getExternalIcon:s,translate:i}):null,$=l===m.R_.ALWAYS||l===m.R_.ON_HOVER&&U,Y=G!==f.ch||E?a().createElement(a().Fragment,null,a().createElement("span",{className:"message-zone--summary"},D),$&&N?a().createElement("span",{className:"message-zone--body"},N):null):a().createElement("span",{style:{display:"flex",alignItems:"stretch",textOverflow:"ellipsis"}},$?D:null,V);return j&&E?a().createElement(bi,{clearCurrentlyHoveredGraphCommit:S,currentlyHoveredCommitSha:_,getExternalIcon:s,graphZoneType:P,isCommitting:u,isHovering:x.isHovering(e),isSelected:x.isSelected(e),key:O,onBlur:v,onClickCommit:w,onContextMenu:R,onFocus:y,onMessageChange:C,setAsCurrentlyHoveredGraphCommit:T,sha:z,style:M,translate:i,value:p,workDirStats:g}):a().createElement(Yr,{clearCurrentlyHoveredGraphCommit:S,column:I.column,context:A,currentlyHoveredCommitSha:_,dimRowsOfSelectedCommit:n,getExternalIcon:s,graphZoneType:P,highlightRowsOnRefHover:c,isDimmedMergeCommitRow:G===f.lH&&o,isHighlighted:x.isHighlighted(e),isHovering:U,isInUnsupportedRebase:h,isLastColumn:F,isMissingHoveredRefGroup:x.isMissingHoveredRefGroup(e),isSelected:x.isSelected(e),key:O,numGraphColumns:d,onClickCommit:w,onContextMenu:R,onDoubleClickCommit:b,rowContext:W,setAsCurrentlyHoveredGraphCommit:T,sha:z,showColorStrip:L,showConflictIcon:G===f.S7||G===f.br,showTimeline:x.hasTimeline(e),style:M,title:k,type:G,verticalScrollWidth:Z,zoneWidth:B},Y)}};var Ei=(e,t)=>{const{processedRows:o,getExternalIcon:n,highlightRowsOnRefHover:r,isInUnsupportedRebase:i,numGraphColumns:s,clearCurrentlyHoveredGraphCommit:l,currentlyHoveredCommitSha:c,dimMergeCommits:h,dimRowsOfSelectedCommit:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v,shaLength:y}=e,C=new W.Dj(e);return({rowIndex:e,style:S})=>{const _=t(e),R=o[e],{sha:w,type:b,contexts:T}=R,E=((e,t=m.ai)=>e?e.substring(0,t):"")(w,y),x=T?.sha||void 0,M=T?.row||void 0,O=m.av,I=C.isColumnFollowingGraphColumn(O),D=C.isLastColumn(O),N=C.getZoneWidth(O),z=C.getVerticalScrollWidth(O);return a().createElement(Yr,{clearCurrentlyHoveredGraphCommit:l,column:R.column,context:x,currentlyHoveredCommitSha:c,dimRowsOfSelectedCommit:d,getExternalIcon:n,graphZoneType:O,highlightRowsOnRefHover:r,isDimmedMergeCommitRow:b===f.lH&&h,isHighlighted:C.isHighlighted(e),isHovering:C.isHovering(e),isInUnsupportedRebase:i,isLastColumn:D,isMissingHoveredRefGroup:C.isMissingHoveredRefGroup(e),isSelected:C.isSelected(e),key:_,numGraphColumns:s,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:g,rowContext:M,setAsCurrentlyHoveredGraphCommit:v,sha:w,showColorStrip:I,showTimeline:C.hasTimeline(e),style:S,type:b,verticalScrollWidth:z,zoneWidth:N},b!==f.ch?a().createElement("span",{className:"font-monospace pointer",title:E},E):null)}};function xi({hasRefs:e,isActiveSha:t,left:o,type:n,width:r}){const s=i()("ref-line","z4",{"is-active":t});return e&&function(e){return[f.o$,f.lH,f.S7].includes(e)}(n)?a().createElement("hr",{className:s,style:{left:o,width:r}}):null}var Mi=xi;function Oi({graphZoneModeConstants:{RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:e},hasRefs:t,isActiveSha:o,nodeOffset:n,type:r}){return a().createElement(xi,{hasRefs:t,isActiveSha:o,left:0,type:r,width:n+(r===f.lH?e:0)})}function Ii({className:e,marginLeft:t}){return a().createElement("div",{className:i()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},a().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const Di=(e,t,o,n)=>o+t*e+n/2;function Ni({column:e,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:t,COMMIT_NODE_DIAMETER:o,COMMIT_ZONE_GUTTER_WIDTH:n}}){return a().createElement(Ii,{className:"z1",marginLeft:Di(e,t,n,o)})}function zi(){return a().createElement(Ii,{marginLeft:0})}const Gi=(e,t,o,n,r,s)=>{const l={height:s.COMMIT_MERGE_NODE_DIAMETER,left:o+s.COMMIT_MERGE_NODE_LEFT_OFFSET,marginTop:s.COMMIT_MERGE_NODE_TOP_OFFSET,opacity:n,width:s.COMMIT_MERGE_NODE_DIAMETER},c=i()("node",r,"z6"),h=a().createElement(Sr,{className:"gk-graph",id:"graph-merge-node-tooltip"},Xr(t,e));return a().createElement(vr,{delayShow:250,overlay:h,placement:"top",trigger:["hover","focus"]},a().createElement("div",{className:c,"data-test-class":"tree-row-commit-node",style:l}))};class Hi extends a().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:o,graphZoneModeConstants:n,left:r,opacity:s,translate:l,type:c}=this.props;return(t||e)&&c===f.o$?n.IS_COMPACT?Gi(e,t,r,s,f.lH,n):(({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:n,column:r,context:s,cssVariables:l,graphZoneModeConstants:c,left:h,message:d,opacity:u,type:p,useAuthorInitialsForAvatars:f})=>a().createElement(Jr,{authorInitials:t,avatarUrl:n,className:i()("node",`${p}`,"z6"),column:r,context:s,cssVariables:l,fontSize:10,height:c.COMMIT_NODE_DIAMETER,size:c.COMMIT_ZONE_AVATAR_DIAMETER,style:{left:h,opacity:u},tooltip:()=>{const t=o&&""!==o.trim()&&"Unknown"!==o?Xr(o,e):e,n=S(y(d||""));let r="";if(0===n.length)r=t;else{n.unshift({email:e,name:o});for(let e=0;e<n.length;e+=1){const t=n[e];r+=Xr(t.name,t.email),e<n.length-1&&(r+=", ")}}return r},top:c.COMMIT_NODE_TOP_OFFSET,useAuthorInitialsForAvatars:f,width:c.COMMIT_NODE_DIAMETER}))(this.props):c===f.lH||c===f.S7||c===f.br?Gi(e,t,r,s,c,n):((e,t,o,n,r,s,l,c=!1,h)=>{const d={height:h.COMMIT_NODE_DIAMETER,left:n,marginTop:h.COMMIT_NODE_TOP_OFFSET,opacity:r,width:h.COMMIT_NODE_DIAMETER};c&&(d.borderWidth=1);const u=i()("gk-graph","node",l,"z6",{compact:c});let p;p=l===f.kP?s("Stash"):l===f.ch?s("Graph-WorkInProgress"):Xr(o,t);const m=a().createElement(Sr,{className:"gk-graph",id:"graph-other-node-tooltip"},p);return a().createElement(vr,{delayShow:250,overlay:m,placement:"top",trigger:["hover","focus"]},a().createElement("div",{className:u,"data-test-class":"tree-row-commit-node",style:d},l!==f.kP||c?null:a().createElement("span",null,e("stash"))))})(o,e,t,r,s,l,c,n.IS_COMPACT,n)}}class ki extends a().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:n,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:r,COMMIT_ZONE_GUTTER_WIDTH:i,COMMIT_ZONE_LINE_WIDTH:s,IS_COMPACT:l}}=this.props,c=ne(o,t,n,e,r,i,s,l);return a().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:c}})}}var Ai=ki;function Wi({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:n="",left:r,width:s}){return a().createElement("div",{className:i()("absolute","top-0","bottom-0","z3",n),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:s}},o)}function Pi({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:n}){return a().createElement(Wi,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:n},t?a().createElement(Ur,{z2:!0}):null)}function Li({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:n,width:r}){return a().createElement(Wi,{boxShadowAlpha:e,boxShadowLeft:-5,left:n+t-r,width:r},o?a().createElement(Ur,{z2:!0}):null,a().createElement(zi,null))}class Fi extends a().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:n,clearCurrentlyHoveredGraphCommit:r,column:s,columnColorByColumn:l,commitZoneWidth:c,cssVariables:h,currentlyHoveredCommitSha:d,edgeColumnMax:u,edges:p,hasRefs:f,hasTimeline:g,getExternalIcon:v,graphZoneModeConstants:y,isActiveSha:C,isInUnsupportedRebase:S,isLastColumn:_,isSelected:R,leftGutterBoxShadowAlpha:w,leftGutterWidth:b,message:T,nodeOffset:E,nodeOpacity:x,numGraphColumns:M,onContextMenu:O,onClickCommit:I,onDoubleClickCommit:D,rightGutterBoxShadowAlpha:N,rightGutterWidth:z,rowContext:G,scrollLeft:H,setAsCurrentlyHoveredGraphCommit:k,sha:A,shouldShowRefLine:P,style:L,translate:F,type:B,useAuthorInitialsForAvatars:Z,zoneContext:U}=this.props,j=s%M+1,V=i()("relative","commit-zone","height-100-percent","pt3",B,`column-${j}`,{"is-selected":R,"has-active":C}),$=g?a().createElement(Ur,{z2:!0}):null,Y=a().createElement("div",{className:V,"data-vscode-context":(0,W.q3)(U),onContextMenu:S?void 0:e=>O(e,m.Wm,A),onDoubleClick:e=>D(e,m.Wm,A),onMouseDown:e=>I(e,m.Wm,A),onMouseEnter:e=>k(e,m.Wm,A,d),onMouseLeave:e=>r(e,m.Wm,A,d),style:{...L,..._&&{width:"100%"}}},$,a().createElement(Pi,{boxShadowAlpha:w,hasTimeline:g,scrollLeft:H,width:b}),P?a().createElement(Oi,{graphZoneModeConstants:y,hasRefs:f,isActiveSha:C,nodeOffset:E,type:B}):null,a().createElement(Hi,{authorEmail:e,authorInitials:Kr(t),authorName:t,avatarUrl:n,column:s,context:o,cssVariables:h,getExternalIcon:v,graphZoneModeConstants:y,left:E,message:T,opacity:x,translate:F,type:B,useAuthorInitialsForAvatars:Z}),a().createElement(Ni,{column:s,graphZoneModeConstants:y}),a().createElement(Ai,{columnColorByColumn:l,edgeColumnMax:u,edges:p,graphZoneModeConstants:y,nodeColumn:s}),a().createElement(Li,{boxShadowAlpha:N,commitZoneWidth:c,hasTimeline:g,scrollLeft:H,width:z}));return G?a().createElement("div",{"data-vscode-context":(0,W.q3)(G)},Y):Y}}var Bi=function(e,t){const{avatarUrlByEmail:o,onMissingAvatar:n,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:i,cssVariables:s,currentlyHoveredCommitSha:l,processedRows:c,getExternalIcon:h,graphZoneModeConstants:d,isInUnsupportedRebase:u,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,onCommitContextMenu:g,onClickCommit:v,onDoubleClickCommit:y,nodeOffsetByColumn:C,nodeOpacityByColumn:S,numGraphColumns:_,rightGutterBoxShadowAlpha:R,rightGutterWidth:w,setAsCurrentlyHoveredGraphCommit:b,scrollLeft:T,shouldShowRefLine:E,translate:x,useAuthorInitialsForAvatars:M}=e,O=new W.Dj(e);return({rowIndex:e,style:I})=>{const D=t(e),N=c[e],z=m.Wm,G=O.getZoneWidth(z),{email:H,author:k,contexts:A,message:W,sha:P,type:L}=N,F=N.column,B=A?.graph||void 0,Z=A?.avatar||void 0,U=A?.row||void 0;let j;M||(j=o[H],j||n(H,P));const V=O.isLastColumn(z);return a().createElement(Fi,{authorEmail:H,authorName:k,avatarContext:Z,avatarUrl:j,clearCurrentlyHoveredGraphCommit:r,column:F,columnColorByColumn:i,commitZoneWidth:G,cssVariables:s,currentlyHoveredCommitSha:l,edgeColumnMax:N.edgeColumnMaxes,edges:N.edges,getExternalIcon:h,graphZoneModeConstants:d,hasRefs:N.hasRefs||!1,hasTimeline:O.hasTimeline(e),isActiveSha:O.rowContainsCurrentHeadRef(N),isInUnsupportedRebase:u,isLastColumn:V,isSelected:O.isSelected(e),key:D,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,message:W,nodeOffset:C[F],nodeOpacity:S[F],numGraphColumns:_,onClickCommit:v,onContextMenu:g,onDoubleClickCommit:y,rightGutterBoxShadowAlpha:R,rightGutterWidth:w,rowContext:U,scrollLeft:T,setAsCurrentlyHoveredGraphCommit:b,sha:P,shouldShowRefLine:E,style:I,translate:x,type:L,useAuthorInitialsForAvatars:M,zoneContext:B})}};const Zi={map:function(e,t,o){var n=0;return a().Children.map(e,(function(e){return a().isValidElement(e)?t.call(o,e,n++):e}))},forEach:function(e,t,o){var n=0;a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.call(o,e,n++)}))},count:function(e){var t=0;return a().Children.forEach(e,(function(e){a().isValidElement(e)&&++t})),t},find:function(e,t,o){var n,r=0;return a().Children.forEach(e,(function(e){n||a().isValidElement(e)&&t.call(o,e,r++)&&(n=e)})),n},filter:function(e,t,o){var n=0,r=[];return a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.call(o,e,n++)&&r.push(e)})),r},every:function(e,t,o){var n=0,r=!0;return a().Children.forEach(e,(function(e){r&&a().isValidElement(e)&&(t.call(o,e,n++)||(r=!1))})),r},some:function(e,t,o){var n=0,r=!1;return a().Children.forEach(e,(function(e){r||a().isValidElement(e)&&t.call(o,e,n++)&&(r=!0)})),r},toArray:function(e){var t=[];return a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.push(e)})),t}};var Ui={controlId:xn().string,validationState:xn().oneOf(["success","warning","error",null])},ji={$bs_formGroup:xn().object.isRequired},Vi=function(e){function t(){return e.apply(this,arguments)||this}Rn(t,e);var o=t.prototype;return o.getChildContext=function(){var e=this.props;return{$bs_formGroup:{controlId:e.controlId,validationState:e.validationState}}},o.hasFeedback=function(e){var t=this;return Zi.some(e,(function(e){return"feedback"===e.props.bsRole||e.props.children&&t.hasFeedback(e.props.children)}))},o.render=function(){var e=this.props,t=e.validationState,o=e.className,n=e.children,r=function(e,t){var o={};t.forEach((function(e){o[e]=!0}));var n={};return Un()(e).forEach((function(e){var t=e[0],r=e[1];or(t)||o[t]||(n[t]=r)})),[tr(e),n]}(yn(e,["validationState","className","children"]),["controlId"]),s=r[0],l=r[1],c=bn({},er(s),{"has-feedback":this.hasFeedback(n)});return t&&(c["has-"+t]=!0),a().createElement("div",bn({},l,{className:i()(o,c)}),n)},t}(a().Component);Vi.propTypes=Ui,Vi.childContextTypes=ji;const $i=Jn("form-group",Qn([$n,Yn],Vi));function Yi(e,t){return Yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yi(e,t)}function qi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ki(e,t,o){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(o):e.classList.contains(o))}var Xi,Ji,Qi=(void 0===Xi&&(Xi=0),function(){return++Xi}),es={},ts={},os=["touchstart","touchmove"];function ns(e,t){var o={};return-1!==os.indexOf(t)&&Ji&&(o.passive=!e.props.preventDefault),o}const rs=function(e,t){var o,n,r=e.displayName||e.name||"Component";return n=o=function(o){var n,i;function a(e){var n;return(n=o.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof n.__clickOutsideHandlerProp){var t=n.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+r+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else n.__clickOutsideHandlerProp(e)},n.__getComponentNode=function(){var e=n.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,rt.findDOMNode)(e)},n.enableOnClickOutside=function(){if("undefined"!=typeof document&&!ts[n._uid]){void 0===Ji&&(Ji=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}}()),ts[n._uid]=!0;var e=n.props.eventTypes;e.forEach||(e=[e]),es[n._uid]=function(e){var t;null!==n.componentNode&&(n.props.preventDefault&&e.preventDefault(),n.props.stopPropagation&&e.stopPropagation(),n.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,o){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Ki(e,t,o))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,n.componentNode,n.props.outsideClickIgnoreClass)===document&&n.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,es[n._uid],ns(qi(n),e))}))}},n.disableOnClickOutside=function(){delete ts[n._uid];var e=es[n._uid];if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,ns(qi(n),t))})),delete es[n._uid]}},n.getRef=function(e){return n.instanceRef=e},n._uid=Qi(),n}i=o,(n=a).prototype=Object.create(i.prototype),n.prototype.constructor=n,Yi(n,i);var l=a.prototype;return l.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},l.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+r+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},l.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},l.componentWillUnmount=function(){this.disableOnClickOutside()},l.render=function(){var t=this.props;t.excludeScrollbar;var o=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?o.ref=this.getRef:o.wrappedRef=this.getRef,o.disableOnClickOutside=this.disableOnClickOutside,o.enableOnClickOutside=this.enableOnClickOutside,(0,s.createElement)(e,o)},a}(s.Component),o.displayName="OnClickOutside("+r+")",o.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},o.getClass=function(){return e.getClass?e.getClass():e},n};class is extends a().PureComponent{handleClickOutside(){const{sha:e,shorthand:t,type:o,data:n}=this.props.createRefFormData;this.props.onCancel(t,e,o,n)}constructor(e){super(e);const{createRefFormData:t,formatRefShorthand:o}=this.props,{sha:n,shorthand:r,type:i,data:s}=t;this.state={currentShorthand:o(r,n,i,s),initShorthand:r}}static getDerivedStateFromProps(e,t){const{createRefFormData:o,formatRefShorthand:n}=e,{currentShorthand:r,initShorthand:i}=t,{sha:s,shorthand:a,type:l,data:c}=o,h=a!==i;return h&&n(a,s,l,c)!==r?{currentShorthand:n(a,s,l,c),initShorthand:a}:h?{currentShorthand:r,initShorthand:a}:null}onInputChange(e){let t=e||"";if(e){const{sha:e,type:o,data:n}=this.props.createRefFormData;t=this.props.formatRefShorthand(t,e,o,n)}this.setState({currentShorthand:t}),this.props.onRefShorthandChange?.(t)}render(){const{createRefFormData:e,isRefShorthandValid:t,onCancel:o,onContextMenu:n,onRefCreate:r,refZoneWidth:i,style:s,translate:l}=this.props,{currentShorthand:c}=this.state,{data:h,sha:d,type:u}=e,p=l(u===F.V.TAG?"RefZone-EnterTagName":"RefZone-EnterBranchName");return a().createElement("div",{className:"create-ref","data-testid":"create-ref",style:{...s,minWidth:i,width:i}},a().createElement($i,{validationState:0===c.length||t(c,d,u,h)?"success":"error"},a().createElement(pi,{autoFocus:!0,"data-testid":"create-ref-form-control",onChange:e=>this.onInputChange(e.target?.value),onContextMenu:e=>n(e,c,d,u,h),onKeyDown:e=>{e.stopPropagation(),"Escape"!==e.key?d&&"Enter"===e.key&&r(c,d,u,h):o(c,d,u,h)},placeholder:p,type:"text",value:c})))}}var ss=rs(is);var as=function({hasActive:e,overflowCount:t}){return a().createElement("span",{className:i()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)};var ls=function({style:e,children:t,column:o,numGraphColumns:n,onMouseEnter:r,onMouseLeave:s}){const l=e?.top||0;return a().createElement("div",{className:i()("gk-graph","ref-zone","column-"+(o%n+1))},a().createElement("ul",{onMouseEnter:r,onMouseLeave:s,style:{...e,top:l-m.cZ/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};var cs=function({enabledRefMetadataTypes:e,column:t,context:o,enableShowHideRefsOptions:n,getTargetRef:r,hasActive:i,hasRefs:s,getExternalIcon:l,includeOnlyRefsById:c,includeOnlyRemotesByName:h,isGhostRef:d,isHovered:u,isInUnsupportedRebase:p,numGraphColumns:f,onMissingRefMetadata:g,refGroupContexts:v,refGroupsByName:y,refIconsPosition:C,refMetadata:S,refNodeHovered:_,sha:R,showRemoteNamesOnRefs:w,showContextMenuForGroupedRef:b,onClickRef:T,onDoubleClickRef:E,onToggleRefNodesShown:x,onRefBeginDrag:M,onRefCanDrag:O,onRefCanDrop:I,onRefDragEnter:D,onRefDragLeave:N,onRefDrop:z,onRefEndDrag:G,translate:H,type:k,useColumnHeaderIcons:A}){const P=(e,t,o)=>{const n=t.map((e=>({id:(0,W.qP)(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})));x(e,n,!1,o)},L=y&&y.length>m.v6?y.slice(0,m.v6):y,B=L[0],Z=u?L:[B],U=m.Vh+(B?.length||0)*m.B+(i?m.B:0),j=Object.values(c),V=j.length>0&&j.some((e=>e.type===F.V.TAG)),$=Z.map((t=>{const o=t[0],r=v?.[o.name]||void 0,f=t.some((e=>{const t=(0,W.qP)(e);switch(e.refType){case F.V.TAG:return V&&Boolean(c[t]);case F.V.REMOTE:return Boolean(c[t])||e.owner&&h[e.owner];default:return Boolean(c[t])}})),m=a().createElement(kr,{enabledRefMetadataTypes:e,enableShowHideRefsOptions:n,getExternalIcon:l,groupIsHovered:u,hasActive:i,hasRefs:s,isActive:o.isCurrentHead,isGhostRef:d,isInUnsupportedRebase:p,isRefGroupIncluded:f,key:`ref-node-${o.fullName||o.name}`,onClick:T,onContextMenu:b,onDoubleClick:E,onHideRefClick:P,onHovered:_,onMissingRefMetadata:g,onRefBeginDrag:M,onRefCanDrag:O,onRefCanDrop:I,onRefDragEnter:D,onRefDragLeave:N,onRefDrop:z,onRefEndDrag:G,refGroup:t,refGroupContext:r,refIconsPosition:C,refMetadata:S,sha:R,showRemoteNamesOnRefs:w,translate:H,type:k,useColumnHeaderIcons:A});return u?a().createElement("li",{key:m.key},m):m}));return u?a().createElement("div",{"data-vscode-context":(0,W.q3)(o),style:{height:100,position:"relative"}},a().createElement(Ln,{placement:"right",show:u,target:r},a().createElement(ls,{column:t,numGraphColumns:f},$))):a().createElement("span",{"data-vscode-context":(0,W.q3)(o),style:{minWidth:U}},$)};const hs={};class ds extends a().PureComponent{refPopoverTarget;static defaultProps={style:{}};componentWillReceiveProps(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))}getRefPopoverTarget=()=>this.refPopoverTarget;onCustomToggleRefNodesShown=(e,t,o,n)=>{this.props.onToggleRefNodesShown(e,t,o,n),this.props.refZoneUnhovered()};render(){const{enabledRefMetadataTypes:e,column:t,context:o,enableShowHideRefsOptions:n,showGhostRefsOnRowHover:r,hasActive:s,hasRefs:l,hasTimeline:c,hoveredRefGroup:h,hoveredRefZoneSha:d,getExternalIcon:u,includeOnlyRefsById:p,includeOnlyRemotesByName:f,isInUnsupportedRebase:g,numGraphColumns:v,onClickRef:y,onDoubleClickRef:C,onMissingRefMetadata:S,onRefBeginDrag:_,onRefCanDrag:R,onRefCanDrop:w,onRefDragEnter:b,onRefDragLeave:T,onRefDrop:E,onRefEndDrag:x,refGroupContexts:M,refGroupsByName:O,refIconsPosition:I,refMetadata:D,refNodeHovered:N,refNodeUnhovered:z,refZoneHovered:G,refZoneUnhovered:H,sha:k,shouldShowRefLine:A,showColorStrip:P,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:F,style:B,translate:Z,type:U,useColumnHeaderIcons:j,width:V}=this.props,$=d===k,Y={minWidth:V,width:V},q={...B,...Y},K=c?a().createElement(Ur,null):null,X=O.length,J=e=>{G(k),X?N(e,O[0],k):h&&z(e,h,k)},Q=e=>{H(),h&&z(e,h,k)},ee=(0,W.h)(((e,t)=>{Q(e),_(e,t)})),te=X>0&&!l&&r,oe=function(e,t,o,n,r,s){const a=`${e}${t}${o}${n}${r}${s}`;let l=hs[a];return l||(l=i()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":s,"has-active":n,z6:o,z1:!o}),hs[a]=l,l)}(U,t,$,s,v,te),ne=a().createElement("div",{className:"color-strip height-100",style:{width:2}});if(!X)return a().createElement("div",{className:oe,onMouseEnter:J,onWheel:Q,style:q},P?ne:null,K);const re={minWidth:0,overflow:"hidden",width:V-m.PB},ie=X-1,se=ie>0&&!$?a().createElement(as,{hasActive:s,overflowCount:ie}):null;return a().createElement("div",{className:oe,onMouseEnter:J,onMouseLeave:Q,onWheel:Q,style:q},a().createElement("div",{ref:e=>this.refPopoverTarget=e}),P?ne:null,K,a().createElement("div",{className:"flex",style:re},a().createElement(cs,{column:t,context:o,enabledRefMetadataTypes:e,enableShowHideRefsOptions:n,getExternalIcon:u,getTargetRef:this.getRefPopoverTarget,hasActive:s,hasRefs:l,includeOnlyRefsById:p,includeOnlyRemotesByName:f,isGhostRef:te,isHovered:$,isInUnsupportedRebase:g,numGraphColumns:v,onClickRef:y,onDoubleClickRef:C,onMissingRefMetadata:S,onRefBeginDrag:ee,onRefCanDrag:R,onRefCanDrop:w,onRefDragEnter:(e,t,o)=>{$||o?.sha!==k||J(e),b(e,t,o)},onRefDragLeave:T,onRefDrop:E,onRefEndDrag:x,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:M,refGroupsByName:O,refIconsPosition:I,refMetadata:D,refNodeHovered:N,sha:k,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:F,translate:Z,type:U,useColumnHeaderIcons:j}),se),l&&A?a().createElement("div",{className:"absolute left-0 flex z1",style:Y},a().createElement(Mi,{hasRefs:!0,isActiveSha:s,left:m.yv,type:U,width:"100%"})):null)}}var us=(e,t)=>{const{createRefFormData:o,formatRefShorthand:n,enableShowHideRefsOptions:r,enabledRefMetadataTypes:i,isRefShorthandValid:s,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:c,onDoubleClickRef:h,processedRows:d,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isInUnsupportedRebase:f,getExternalIcon:g,hoveredRefGroup:v,hoveredRefZoneSha:y,numGraphColumns:C,onClickRef:S,onMissingRefMetadata:_,onShowContextMenuForGroupedRef:R,onRefBeginDrag:w,onRefCanDrag:b,onRefCanDrop:T,onRefCreate:E,onRefCreateCancel:x,onRefCreateContextMenu:M,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,onRefNodeHovered:z,onRefNodeUnhovered:G,onRefShorthandChange:H,onRefZoneHovered:k,onRefZoneUnhovered:A,onToggleRefNodesShown:P,refIconsPosition:L,refMetadataById:F,shouldShowRefLine:B,translate:Z}=e,U=new W.Dj(e);return({rowIndex:e,style:W})=>{const j=t(e),V=d[e],$=m.jZ,Y=U.getZoneWidth($),q=U.isHovering(e),{sha:K,type:X,hasRefs:J,contexts:Q}=V,ee=Q?.ref||void 0,te=Q?.refGroups||void 0,oe=U.isSingleSelected(e),ne=(l||J)&&(J||q||oe)?U.getGraphRefGroupsByNameForRow(e):[],re=U.isColumnFollowingGraphColumn($),ie=U.shouldUseColumnHeaderIcons($);return o?.sha===K?a().createElement(ss,{createRefFormData:o,formatRefShorthand:n,isRefShorthandValid:s,key:j,onCancel:x,onContextMenu:M,onRefCreate:E,onRefShorthandChange:H,refZoneWidth:Y,style:W,translate:Z}):a().createElement(ds,{column:V.column,context:ee,enabledRefMetadataTypes:i,enableShowHideRefsOptions:r,getExternalIcon:g,hasActive:U.rowContainsCurrentHeadRef(V),hasRefs:J||!1,hasTimeline:U.hasTimeline(e),hoveredRefGroup:v,hoveredRefZoneSha:y,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isInUnsupportedRebase:f,isSingleSelected:oe,key:j,numGraphColumns:C,onClickRef:S,onDoubleClickRef:h,onMissingRefMetadata:_,onRefBeginDrag:w,onRefCanDrag:b,onRefCanDrop:T,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,onToggleRefNodesShown:P,refGroupContexts:te,refGroupsByName:ne,refIconsPosition:L,refMetadata:F,refNodeHovered:z,refNodeUnhovered:G,refZoneHovered:k,refZoneUnhovered:A,sha:K,shouldShowRefLine:B,showColorStrip:re,showContextMenuForGroupedRef:R,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:c,style:W,translate:Z,type:X,useColumnHeaderIcons:ie,width:Y})}};var ps=(e,t)=>{const{translate:o,processedRows:n}=e,r=i()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),s=new W.Dj(e);return({rowIndex:e,style:l})=>{const c=t(e),h=i()("graph-row","height-100-percent","flex"),d=s.hasTimeline(e),u=n[e],p=u.contexts?.row||void 0,f=u.timeLineEntry?.label||"",m=u.timeLineEntry?.value||0,g=d?a().createElement(Ur,null):null,v=d?a().createElement("span",{className:"time-line-message-container"},a().createElement("span",{className:"time-line-message"},o(f,m))):null;return a().createElement("div",{className:r,"data-vscode-context":(0,W.q3)(p),key:c,style:l},g,a().createElement("div",{className:h,"data-vscode-context":(0,W.q3)(p)},v))}};class fs extends a().Component{graphComponentRef=a().createRef();graphContainerRef=a().createRef();resizeObserver;isRefContextMenuShown=!1;isMounted=!1;isSelectedBySha={};processedGraphRowBySha={};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=m.OR;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZoneModeConstants=(0,W.Ez)();graphZonesByType={};graphZoneOrdering=[m.jZ,m.Wm,m.KE,m.GF,m.WD,m.PL,m.av];clientHeight=0;missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};markerRowIndices={};branchUpstreamRowIndices=[];downstreamsByUpstream={};timelinesInterval;constructor(e){super(e),this.resizeObserver=new ResizeObserver((e=>e.forEach((e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))))),this.isSelectedBySha=this.props.isSelectedBySha||{},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.rowsStats=this.props.rowsStats||this.rowsStats,this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices(["selection","highlights"]);const t=(0,R.Ld)(this.props.cssVariables);this.graphZoneModeConstants=(0,W.Ez)(this.props.columnsSettings?.[m.Wm]?.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||m.R_.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||m.X9.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);const e=this.isSelectedBySha?this.getSelectedShas():[];e.length>0&&this.selectCommits(e,!1,!0)}componentWillReceiveProps(e){let t=!1,o=!1,n=!1;if(this.props.highlightedShas!==e.highlightedShas){this.setState({highlightedShas:e.highlightedShas});const t=[];Object.keys(e.highlightedShas||{}).forEach((o=>{e.highlightedShas[o]&&void 0!==this.processedGraphRowBySha[o]?.rowIndex&&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||m.R_.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();const r=(0,R.Ld)(e.cssVariables);n=!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||m.OR,!(0,W.Kk)(this.props.workDirStats)&&(0,W.Kk)(e.workDirStats)||(0,W.Kk)(this.props.workDirStats)&&!(0,W.Kk)(e.workDirStats)?(n=!0,this.setState({workDirStats:this.workDirStats})):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.props.columnsSettings!==e.columnsSettings){if(e.columnsSettings?.[m.Wm]?.mode!==this.props.columnsSettings?.[m.Wm]?.mode){this.cleanEdgeCaches(),this.graphZoneModeConstants=(0,W.Ez)(e.columnsSettings?.[m.Wm]?.mode),this.updateCommitZoneContentWidthFromChange();const o=this.graphZonesByType[m.Wm];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})),n&&(this.processRows(e.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})),t){this.updateCommitZoneContentWidthFromChange();const 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||F.l.LEFT}onGraphVisibleRowsUpdatedThrottled=(0,W.P2)((()=>this.onGraphVisibleRowsUpdated()),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,o,n)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onFilterColumnClick=(e,t)=>{this.props.onFilterColumnClick&&this.props.onFilterColumnClick(e,t)};onCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n!==o&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{const o=this.graphZoneOrdering.indexOf(e);let n=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<n&&(n-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(n,0,e);const r={};this.graphZoneOrdering.forEach(((e,t)=>{this.graphZonesByType[e].order=t,r[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])})),this.setState({graphZones:this.initializeGraphZones(r,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(r)};onGraphZoneResize=(0,W.h)(((e,t)=>{if(t?.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}}));onGraphZoneResizeEnd=(0,W.h)(((e,t)=>{if(t?.width){const 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,n)=>{this.props.onRefCreate&&this.props.onRefCreate(e,t,o,n)};onRefCreateCancel=(e,t,o,n)=>{this.props.onRefCreateCancel&&this.props.onRefCreateCancel(e,t,o,n)};onRefCreateContextMenu=(e,t,o,n,r)=>{this.props.onRefCreateContextMenu&&this.props.onRefCreateContextMenu(e,t,o,n,r)};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){const{enableMultiSelection:t}=this.props,n=this.isMacOSPlatform();t&&(!n&&e.ctrlKey||n&&e.metaKey)?this.selectCommits([o],!0,!1):t&&e.shiftKey||this.selectCommits([o],!1,!1)}}onClickRef=(e,t,o,n)=>{this.onZoneRowClick(e,m.jZ,o),this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onClickCommit=(e,t,o)=>{if(this.onZoneRowClick(e,t,o),this.props.onClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,n)}};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,n)}};onWindowKeyUp=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!1);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!1)}};onWindowBlur=e=>{const{hoveredRefGroup:t,hoveredRefZoneSha:o}=this.state;t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered(),this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!0);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!0);break;default:this.state.dimRowsOfSelectedCommit&&this.dimRowsOfSelectedCommit(!1)}};onKeyDown=e=>{switch(e.keyCode){case 38:this.selectPrevious(e.shiftKey);break;case 40:this.selectNext(e.shiftKey);break;case 72:this.selectHead(e.shiftKey)}};onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||(0,W.PY)(this.isSelectedBySha,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=>{const{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,n,r)=>{this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),this.loadMoreCommitsIfNecessary(n,r)};loadMoreCommitsIfNecessary(e,t){if(!this.props.onShowMoreCommits||!t||!e||e<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;const o=this.scrollTop+e,n=this.orderedGraphRows.length*m.$0;o>n-m.qG&&o>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(o,n-1),this.onShowMoreCommits())}onScrollToRowCausedUpdateForFirstColumn=(e,t)=>{const o={...t};if(e===m.Wm&&t.scrollTop){const t=this.getHorizontalScrollHeight(e,this.state.cssVariablesWithDefaults);o.scrollTop-=t+m.nn}this.setScroll(e,o),this.props.onScrollToRowCausedUpdateForFirstColumn?.(e,o)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,n)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){this.isRefContextMenuShown=!0,this.onRefZoneHovered(o);const n=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,n),setTimeout((()=>{this.isRefContextMenuShown=!1}),250)}};selectCommits(e,t,o){t||Object.keys(this.isSelectedBySha).forEach((t=>{e.includes(t)||delete this.isSelectedBySha[t]}));const n=this.processedGraphRowBySha?Object.keys(this.processedGraphRowBySha):[];if(e.forEach((e=>{n.includes(e)&&(this.isSelectedBySha[e]=!t||!this.isSelectedBySha[e]||!this.isSelectedBySha[e],this.isSelectedBySha[e]&&this.selectSha(e,o))})),this.props.onSelectGraphRows){const e=this.getSelectedShas().map((e=>this.processedGraphRowBySha[e]));this.props.onSelectGraphRows(e)}this.updateMarkerRowIndices(["selection"]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(m.Wm)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getSelectedShas(){const e=[];return Object.keys(this.isSelectedBySha).forEach((t=>{this.isSelectedBySha[t]&&e.push(t)})),e}getExcludeRemotesByName(){const e={};return Object.values(this.excludeRefsById).forEach((t=>{t.type===F.V.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===F.V.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}clearScrollToIndex=(0,W.h)((()=>{this.isMounted&&this.setState({scrollToIndex:void 0})}));getTopAndBottomVisibleRowIndex(){const{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,n=e||0;if(!n||!t||!t.length)return{top:-1,bottom:-1};const r=(n-m.rl)/m.$0,i=o/m.$0,s=i+(r-1);return{top:Math.max(Math.floor(i),0),bottom:Math.min(Math.ceil(s),t.length-1)}}getOffsetSha(e){const t=this.graphHeight||0,o=this.props.scrollRowPadding||0;if(!o||!t)return e;let n=o;if(n<=0)return e;const r=this.getTopAndBottomVisibleRowIndex(),i=r.top,s=r.bottom;if(-1===i||-1===s)return e;const a=Math.floor((s-i)/2);if(a<1)return e;n=Math.min(n,a);const l=this.orderedGraphRows.length,c=this.orderedGraphRows.findIndex((t=>t.sha===e));if(!c||!this.orderedGraphRows.length)return e;const h=s-n<c;return i+n>c?this.orderedGraphRows[Math.max(c-n,0)].sha||e:h&&this.orderedGraphRows[Math.min(c+n,l-1)].sha||e}selectSha(e,t=!1){const o=this.processedGraphRowBySha[e]?.column||0,n=this.getScrollLeft(),r=this.getCommitZoneContentWidthBetweenGutters(),i=this.getCurrentWidthByZone(m.Wm),s=this.getCommitZoneContentWidth(),a=o*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,l=n-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/3<=a,c=a<=n+r,h=Math.max(0,s-i),d=l&&c?n:(0,B.u)(a-r/2,0,h);this.setScrollToSha(t?this.getOffsetSha(e):e,d),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,o){const n=this.getOrderedActiveGraphZones(),r=this.graphZonesByType[t],i=(0,W.C_)(r,n,e);if(r.currentWidth=i,t===m.Wm){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromChange(){const e=this.graphZonesByType[m.Wm];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=(0,W.C_)(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e,t=!0){const o=t?this.getVerticalScrollWidth(m.Wm,this.props.cssVariables,!0):0,n=this.graphZonesByType[e];return n&&!n.isHidden?n.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){const t=e?this.getVerticalScrollWidth(m.Wm,this.props.cssVariables,!0):0;if(this.graphZonesByType[m.Wm])return this.graphZonesByType[m.Wm].currentWidth-t;const{columnsSettings:o}=this.props;return o?.[m.Wm]?o[m.Wm].width-t:m.qi[m.Wm].minimumWidth-t}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(m.Wm);return 1===e?0:(0,B.u)(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===m.Wm&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){const 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(){const e=this.getScrollToSha();if(e){const t=this.processedGraphRowBySha[e]?.rowIndex;return void 0===t?this.orderedGraphRows.findIndex((t=>t.sha===e)):t}return-1}getScrollToAlignment(){const e=this.getClientHeight(),t=this.getScrollTop(),o=this.getScrollToIndex();return(0,W.Ry)(m.$0,e,t,o)}getMinNodeOffset(){const 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,W.KI)(e,this.getOrderedActiveGraphZones(),this.orderedGraphRows,t,o):0}getVerticalScrollWidth(e,t,o){return this.graphZonesByType[e]?(0,W.Ne)(e,this.getOrderedActiveGraphZones(),this.props.hasMoreCommits,this.props.isLoadingRows,this.graphHeight,this.orderedGraphRows,this.props.enabledScrollMarkerTypes?.length>0,t,o):0}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(m.Wm),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(){const 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(){const e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),n={};return Object.keys(o).forEach((r=>{const i=o[r];n[r]=(0,B.u)(i,e,t)})),n}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(m.Wm)-this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)}getMinNodeLeft(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT+t*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(m.Wm),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return(0,B.u)((e-(t-(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)))/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)+o/2}getNodeOpacityByColumn(){const e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),n=this.getRightGutterSlideOutFactor(),r=this.getSingleColumnModeFactor(),i={};return Object.keys(o).forEach((s=>{const a=o[s],l=a-(e-r*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH),c=t+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-(a+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH*(1-n)),h=Math.min(l,c);i[s]=m.l3+(1-m.l3)*Math.max(h/(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+e*(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,(0,B.u)(1-t/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1))}getRightGutterBoxShadowAlpha(e){const t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e){const t={...this.markerRowIndices};if(e.forEach((e=>{t[e]=[]})),e.includes("selection")){this.getSelectedShas().forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t.selection.push(this.processedGraphRowBySha[e].rowIndex)}))}if(e.includes("highlights")){const e=this.state?.highlightedShas||this.props.highlightedShas||{};Object.keys(e).forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t.highlights.push(this.processedGraphRowBySha[e].rowIndex)}))}this.markerRowIndices=t}getMarkerColors(){const e=getComputedStyle(document.documentElement),t={};return Object.values(m.Qh).forEach((o=>{const n=e.getPropertyValue(o.colorCssKey).trim();n&&(t[o.type]=n)})),t}initializeGraphZones(e,t,o){this.graphZonesByType={};const n=[];let r=0;t.forEach(((t,o)=>{const i=e?e[t]:void 0,s=m.qi[t],a=i?.width?i.width:s.minimumWidth,l={...s,type:t,currentWidth:a,preferredWidth:a,isHidden:i?.isHidden||!1,mode:i?.mode,order:s.isCustomizable&&void 0!==i?.order?i?.order:o};i?.isHidden||(r+=l.currentWidth),t===m.Wm&&(l.contentWidth=this.getCommitZoneContentWidth(),l.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,l.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.maxColumns>0&&(l.maximumWidth=l.contentWidth)),this.graphZonesByType[t]=l,l?.isHidden||n.push(l)}));const i=n[n.length-1];if(i){const e=(0,W.Zg)(this.props.cssVariables,!0),t=i.minimumWidth+e;(null==i.maximumWidth||i.maximumWidth>=t)&&(i.minimumWidth=t,null!=i.showIconWidth&&(i.showIconWidth+=e),n[n.length-1]=i)}for(n.forEach((e=>{const t=(0,W.C_)(e,n,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>o;){const e=(0,W.tC)(n);if(!e)break;const t=e.currentWidth,i=r-o,s=Math.max(e.minimumWidth,t-i),a=t-s;this.graphZonesByType[e.type].currentWidth=s,r-=a}if(r<o){const e=t[t.length-1],r=o-(0,W.iM)(n,e);this.graphZonesByType[e].currentWidth=r}return n}maybeSortGraphZoneOrderingFromSettings(e){this.graphZoneOrdering.every((t=>void 0!==e?.[t]?.order))&&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,n)=>{const r=this.graphZonesByType[o],i=e?.[r.type];i&&(i.isHidden!==r.isHidden&&(t=!0,r.type!==m.WD||i.isHidden||this.updateRowStatsConstraints()),r.isHidden=i.isHidden,r.order=r.isCustomizable&&void 0!==i?.order?i?.order:n,r.mode=i.mode,r.preferredWidth=i.width??r.preferredWidth,r.currentWidth=r.preferredWidth)})),t&&this.graphZoneOrdering.forEach((e=>{const t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth}))}getEdgeColumnMaxes(e){let t=0;const o=this.processedGraphRowBySha[e]?.edges||{};return Object.keys(o).forEach((e=>{t=Math.max(t,parseInt(e,10))})),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){const o={};let n,r,i,s;return Object.keys(t).forEach((a=>{n=t[a],r=n.passThrough,i=n.starting,s=r&&!g(r.type)?r:i&&!g(i.type)?i:r||i||void 0,s&&(s.parentSha===e.sha?o[a]={ending:s}:o[a]={passThrough:s})})),o}getFinalEdgeStateForGraphAndRow(e,t){const o=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),n=this.getStartingEdgesByColumn(e);let r;return Object.keys(n).forEach((e=>{o[e]||(o[e]={ending:void 0,passThrough:void 0,starting:void 0}),r=o[e],r.starting=n[e]})),o}loadEdgesBySha(){this.maxColumns=0,this.orderedGraphRows.forEach(((e,t)=>{const o=this.orderedGraphRows[t-1],n=o&&this.processedGraphRowBySha[o.sha]?.edges?this.processedGraphRowBySha[o.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,n);const r=this.getEdgeColumnMaxes(e.sha);this.processedGraphRowBySha[e.sha].edgeColumnMaxes=r,r>this.maxColumns&&(this.maxColumns=r)}))}processRows(e){this.loadRowsbySha(e||[]),this.loadEdgesBySha()}getStartingEdgesByColumn(e){const t={},o=e.parents;if(o.length>0){const n=e.type,r=this.processedGraphRowBySha[e.sha]?.column;void 0!==r&&(t[r]={parentSha:o[0],type:n});for(let e=1;e<o.length;e+=1){const r=o[e],i=this.processedGraphRowBySha[r]?.column;void 0!==i&&(t[i]={parentSha:r,type:n})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):O(e,m.It);formatCommitMessageCallback=e=>this.props.formatCommitMessage?this.props.formatCommitMessage(e):e;formatRefShorthandCallback=(e,t,o,n)=>this.props.formatRefShorthand?this.props.formatRefShorthand(e,t,o,n):e.replace(/\s/g,"");isRefShorthandValidCallback=(e,t,o,n)=>!this.props.isRefShorthandValid||this.props.isRefShorthandValid(e,t,o,n);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):L[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach(((e,t)=>{const n=new RegExp(`\\{${t}\\}`,"g");o=o.replace(n,e)})),o}(L[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):a().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;const e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};const t=Object.keys(e);if(t.length){for(const e of t)this.requestedMissingAvatars[e]=!0;this.props.onEmailsMissingAvatarUrls?.(e)}}),100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;const o=this.pendingMissingRefsMetadata[e]||[],n=t.filter((e=>!o.includes(e)));this.pendingMissingRefsMetadata[e]=[...o,...n],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout((()=>{if(!this.isMounted)return;const e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};const t=Object.keys(e);if(t.length){for(const e of t)this.requestedMissingRefsMetadata[e]=!0;this.props.onRefsMissingMetadata?.(e)}}),100)};selectNext(e){const t=this.getSelectedShas(),o=t.length>0?t[t.length-1]:null;let n;if(e&&o){const e=this.processedGraphRowBySha[o];e?.parents?.length&&(n=e.parents[0])}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.min(e+1,this.orderedGraphRows.length-1);n=this.orderedGraphRows[t]?.sha}n&&this.selectCommits([n],!1,!0)}selectPrevious(e){const t=this.getSelectedShas(),o=t.length>0?t[0]:null;let n;if(e&&o){const e=this.childrenBySha[o];if(e?.length)for(let t=0;t<e.length;t+=1)if(t===e.length-1)n=e[t];else if(this.processedGraphRowBySha[e[t]]?.type!==f.kP){n=e[t];break}}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.max(-1,e-1);n=this.orderedGraphRows[t]?.sha,t<0&&(n=this.orderedGraphRows[0]?.sha)}n&&this.selectCommits([n],!1,!0)}selectHead(e){e&&this.headUpstreamSha?this.selectCommits([this.headUpstreamSha],!1,!0):this.headSha&&this.selectCommits([this.headSha],!1,!0)}getAvailableColumnAndUseIt(){let e=0;for(;this.columnsUsed[e];)e+=1;return this.columnsUsed[e]=!0,e}getColumns(e){this.hasMergeNodeChildBySha[e.sha]&&delete this.hasMergeNodeChildBySha[e.sha];const t=e.parents||[],o=this.columnsToFreeWhenFound[e.sha];if(void 0!==o)for(let e=0;e<o.length;e+=1)delete this.columnsUsed[o[e]];let n=0;const r=this.reserverInfoBySha[e.sha];let i,s;void 0!==r?.column?(n=r.column,delete this.reserverInfoBySha[e.sha]):n=this.getAvailableColumnAndUseIt();for(let o=0;o<t.length;o+=1)if(i=t[o],e.type===f.lH&&(this.hasMergeNodeChildBySha[i]=!0),s=this.reserverInfoBySha[i],0===o&&void 0!==s?.column&&s?.column!==n){const t=this.columnsToFreeWhenFound[i]||[],o=s?.type===f.kP&&e.type!==f.kP&&r?.newestDate>s?.newestDate;(s?.column>n||o)&&!this.hasMergeNodeChildBySha[i]?(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.newestDate,column:n},t.push(s.column)):t.push(n),this.columnsToFreeWhenFound[i]=t}else void 0===s?.column&&(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.column===n?r?.newestDate:e.date,column:0===o?n:this.getAvailableColumnAndUseIt()});return n}getFilteredHeadsForGraphRow(e,t){return e.heads.filter((e=>e.isCurrentHead||(t?void 0!==this.includeOnlyRefsById[(0,W.bY)(F.V.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[(0,W.bY)(F.V.HEAD,e)])))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[(0,W.bY)(F.V.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,W.bY)(F.V.REMOTE,e)]&&(!e.owner||void 0===this.excludeRemotesByName[e.owner])))}getFilteredTagsForGraphRow(e,t,o){const n=t&&Object.values(this.includeOnlyRefsById).some((e=>e.type===F.V.TAG)),r=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter((e=>n?void 0!==this.includeOnlyRefsById[(0,W.bY)(F.V.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[(0,W.bY)(F.V.TAG,e)]&&(!t||r||o)))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={},this.childrenBySha={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};const t=new Map,o={},n=[],r=[];this.branchUpstreamRowIndices=[];const i=[],s=[],a=[],l=[],c={};if((0,W.Kk)(this.workDirStats)&&e.length>0&&!(0,W.H1)(e[0].type)){const t=(0,W.DN)(e),o={sha:f.ch,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:this.translateCallback("Graph-WorkInProgress"),type:f.ch,heads:[],remotes:[],tags:[]};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!(0,W.Kk)(this.workDirStats)&&e.length>0&&(0,W.H1)(e[0].type)&&e.shift();const h=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,d)=>{const u=this.childrenBySha[e.sha]?.length>0,p=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,h):[],m=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,h):[],g=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,h,Boolean(c[e.sha]||u)):[],v=e.parents?.length>0?e.parents.filter((e=>!o[e])):[],y=p.length>0||m.length>0||g.length>0,C=p.length>0||m.length>0;if(e.type!==f.o$&&e.type!==f.lH||c[e.sha]){if(e.type===f.kP&&this.excludeByType.stashes&&(o[e.sha]=!0),!o[e.sha]&&v.length>0){let e;for(e of v)c[e]=!0}}else e.type!==f.o$&&e.type!==f.lH||c[e.sha]||y||u||(o[e.sha]=!0);const S=o[e.sha],_=new P.A(this,{...e,heads:p,remotes:m,tags:g,parents:v},S?0:this.getColumns(e));if(!S){let o;const c=t.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})),o=c[0],_.childRefs={heads:[...o?.heads||[]],remotes:[...o?.remotes||[]],tags:[...o?.tags||[]]},t.delete(e.sha));for(let n=0;n<v.length;n+=1){const r=v[n];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let i=t.get(r);(C||o)&&void 0===i&&(i=[],t.set(r,i)),C?i?.unshift({sha:e.sha,parentIndexScore:n,rowEntered:d,heads:p,remotes:m,tags:g}):o&&i?.unshift({...o,parentIndexScore:n,rowEntered:d})}const h=this.orderedGraphRows.length;if(_.rowIndex=h,p.length>0&&(i.push(h),p.some((e=>e.isCurrentHead))&&(this.headSha=_.sha,n.push(h))),m.length>0){s.push(h);for(const e of m)e.current&&(r.push(h),this.headUpstreamSha=_.sha),this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0&&this.branchUpstreamRowIndices.push(h)}g.length>0&&a.push(h),e.type===f.kP&&l.push(h),this.orderedGraphRows.push(_)}this.processedGraphRowBySha[e.sha]=_})),this.markerRowIndices={...this.markerRowIndices,head:n,upstream:r,localBranches:i,remoteBranches:s,tags:a,stashes:l},this.clearTimelinesInterval(),this.updateTimelines(),this.timelinesInterval=setInterval(this.onTimelinesRefreshInterval,9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){this.rowStatsConstraints=(0,W.L1)(null!=this.rowsStats?Object.values(this.rowsStats).map((e=>e.additions+e.deletions)):[])}updateTimelines(){const e=(0,W.yF)();Object.values(e).forEach((e=>{e.forEach((e=>{const{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(){const e=Object.keys(this.isSelectedBySha);for(let t=0;t<e.length;t+=1){const o=e[t];this.processedGraphRowBySha[o]||delete this.isSelectedBySha[o]}}getColumnColorByColumn(e){const t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,n={};for(let i=0;i<=o;i+=1)if(i<t){const t=e[(0,R.a2)(i)];n[i]="rgba"===(r=u(t)).type?`rgba(${r.r}, ${r.g}, ${r.b}, ${Number(r.a.toFixed(2))})`:`hsla(${r.h}, ${(100*r.s).toFixed(2)}%, ${(100*r.l).toFixed(2)}%, ${Number(r.a.toFixed(2))})`}else{const e=n[i%t];n[i]=e}var r;return n}getNumGraphColumns(e){const t=e[_.i],o=Number.parseInt(t,m.uK);return Number.isNaN(o)?m.uK:o}expandLastZoneMinWidthForScrollbar(e){const t=e[e.length-1]?.type;if(!t)return;const o=(0,W.Zg)(this.props.cssVariables,!0),n=m.qi[t].minimumWidth+o,r=this.graphZonesByType[t];if(!r||null!=r.maximumWidth&&n>r.maximumWidth)return;r.minimumWidth=n;const i=m.qi[t].showIconWidth;null!=i&&(r.showIconWidth=i+o),r.currentWidth<r.minimumWidth&&(r.currentWidth=r.minimumWidth),r.preferredWidth<r.minimumWidth&&(r.preferredWidth=r.minimumWidth)}ensureZoneWidthsMatchGraphWidth(e,t){const o=(0,W.iM)(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let n=(0,W.iM)(e);for(;n>t;){const r=(0,W.tC)(e,o);if(!r)break;const i=(0,W.iM)(e,r.type);if(i+r.currentWidth>t){const o=(0,W.C_)(r,e,t-i);this.updateWidthByZone(o,r.type)}n=(0,W.iM)(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 n=(0,W.iM)(e);for(;n<t;){const r=(0,W.nv)(e,o);if(!r)break;const i=(0,W.iM)(e,r.type),s=r.maximumWidth?Math.min(r.maximumWidth,r.preferredWidth||1/0):r.preferredWidth||0;if(i+r.currentWidth<t){let o=t-i;!(0,W.SH)(r.type,e)&&o>s&&(o=s),o=(0,W.C_)(r,e,o),this.updateWidthByZone(o,r.type)}n=(0,W.iM)(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,n)=>{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,n?this.processedGraphRowBySha[n]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){oe={},ee={},J={},K={},I={}}onZoneEnter=(e,t,o,n)=>{t!==m.jZ&&(o&&n&&this.onRefNodeUnhovered(e,o,n),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,n){if(o?.width){const r=t.currentWidth;this.updateWidthByZone(o.width,t.type,n);const i=(0,W.mb)(t.type,e),s=this.graphZonesByType[t.type];r>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,i+1),r<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,i-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,W.h)(((e,t)=>{if(!this.isMounted)return;const o=Math.floor(t),n=Math.floor(e),r=o!==this.graphHeight,i=n!==this.graphWidth,s={};if(r&&(this.graphHeight=o,s.height=o),i){this.graphWidth=n;const e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(r||i)&&(this.setState(s),r&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))}));onGraphVisibleRowsUpdated(){if(!(this.isMounted&&this.props.onGraphVisibleRowsChanged&&this.orderedGraphRows&&this.orderedGraphRows.length))return;const{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()}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,mode:e.mode,order:e.order}}decorateWithHelmet=(e,t,o)=>{const n=(0,R.M)(t);return a().createElement(a().Fragment,null,a().createElement("style",{nonce:o},n),a().createElement("div",{className:"gk-graph"},e))};render(){const{columnsSettings:e,customFooterRow:t,isInUnsupportedRebase:o,isCommitting:n,repoPath:r,nonce:s,wipMessageEditable:l}=this.props,{avatarUrlByEmail:c,columnColorByColumn:h,contexts:d,createRefFormData:u,cssVariablesWithDefaults:p,currentlyHoveredCommitSha:f,dimMergeCommits:g,dimRowsOfSelectedCommit:v,enableShowHideRefsOptions:y,highlightRowsOnRefHover:C,showGhostRefsOnRowHover:S,showRemoteNamesOnRefs:_,enabledRefMetadataTypes:R,enabledScrollMarkerTypes:w,graphCommitDescDisplayMode:b,graphZones:T,hasMoreCommits:E,height:x,highlightedShas:M,hoveredRefGroup:O,hoveredRefZoneSha:I,themeOpacityFactor:D,isLoadingRows:N,rowsStatsLoading:z,numGraphColumns:G,pendingCommitMessageSummary:H,processedRows:k,refIconsPosition:A,refMetadataById:P,useAuthorInitialsForAvatars:L,scrollToAlignment:F,scrollToIndex:B,scrollTop:Z,scrollLeft:U,shaLength:j,width:V,workDirStats:$}=this.state,Y=i()("flex","graph-container"),q=(0,W.uM)(k),K=(X=e=>q(e),({cellCache:e,cellRenderer:t,columnSizeAndPositionManager:o,columnStartIndex:n,columnStopIndex:r,deferredMeasurementCache:i,horizontalOffsetAdjustment:s,isScrolling:a,parent:l,rowSizeAndPositionManager:c,rowStartIndex:h,rowStopIndex:d,styleCache:u,verticalOffsetAdjustment:p,visibleColumnIndices:f,visibleRowIndices:m})=>{const g=[],v=e,y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!a&&!y;for(let e=h;e<=d;e+=1){const h=c.getSizeAndPositionOfCell(e);for(let c=n;c<=r;c+=1){const n=o.getSizeAndPositionOfCell(c),r=c>=f.start&&c<=f.stop&&e>=m.start&&e<=m.stop,d=`${e}-${c}`;let y;C&&u[d]?y=u[d]:i&&!i.has(e,c)?y={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(y={height:h.size,left:n.offset+s,position:"absolute",top:h.offset+p,width:n.size},u[d]=y);const S={columnIndex:c,isScrolling:a,isVisible:r,key:d,parent:l,rowIndex:e,style:y};let _;if(!a||s||p)_=t(S);else{const o=X(e,c);v[d]&&v[d].realKeyForCell===o||(v[d]={realKeyForCell:o,cell:t(S)}),_=v[d].cell}null!=_&&g.push(_)}}return g});var X;const J=this.getLeftGutterWidth(),Q=this.getRightGutterWidth(),ee=this.getRightGutterBoxShadowAlpha(D),te=this.getLeftGutterBoxShadowAlpha(D),oe=this.getNodeOffsetByColumn(),ne=this.getNodeOpacityByColumn(),re=(0,W.mb)(m.jZ,T),ie=(0,W.mb)(m.Wm,T),se=-1!==re&&-1!==ie&&ie-re==1,ae=!O,le={avatarUrlByEmail:c,createRefFormData:u,dimMergeCommits:g,dimRowsOfSelectedCommit:v,enableShowHideRefsOptions:y,highlightRowsOnRefHover:C,showGhostRefsOnRowHover:S,showRemoteNamesOnRefs:_,enabledRefMetadataTypes:R,enabledScrollMarkerTypes:w,isInUnsupportedRebase:o,isCommitting:n||!1,pendingCommitMessageSummary:H,workDirStats:$,repoPath:r,columnColorByColumn:h,currentlyHoveredCommitSha:f,cssVariables:p,graphCommitDescDisplayMode:b,graphZoneModeConstants:this.graphZoneModeConstants,graphZones:T,hasMoreCommits:E,height:x,highlightedShas:M,hoveredRefGroup:O,hoveredRefZoneSha:I,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isLoadingRows:N,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:te,leftGutterWidth:J,nodeOffsetByColumn:oe,nodeOpacityByColumn:ne,nonce:s,numGraphColumns:G,processedRows:k,processedGraphRowBySha:this.processedGraphRowBySha,refIconsPosition:A,refMetadataById:P,rightGutterBoxShadowAlpha:ee,rightGutterWidth:Q,rowStatsConstraints:this.rowStatsConstraints,rowsStats:this.rowsStats,useAuthorInitialsForAvatars:L,scrollToAlignment:F,scrollLeft:U,scrollTop:Z,shaLength:j,shouldShowRefLine:se,width:V,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},ce={[m.jZ]:us(le,q),[m.Wm]:Bi(le,q),[m.KE]:Ti(le,q),[m.GF]:Qr(le,q),[m.PL]:ei(le,q),[m.av]:Ei(le,q),[m.WD]:qr(le,q),[m.Gn]:ps(le,q)},he=T.map(((e,o)=>{const n=0===o;return a().createElement(dn,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,cellRenderersByIds:ce,columnIndex:o,customFooterRow:t,enabledScrollMarkerTypes:w,enableResizer:ae,getExternalIcon:this.getIconCallback,getKeyForCell:q,graphHeight:x-m.rl,graphWidth:V,graphZones:T,graphZoneType:e.type,hasMoreCommits:E,horizontalScrollHeight:this.getHorizontalScrollHeight(e.type,p),isLoadingRows:N,key:`${e.type}ColumnContainer`,markerColors:this.getMarkerColors(),markerRowIndices:this.markerRowIndices,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:n?this.onScrollToRowCausedUpdateForFirstColumn:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,O,I),rowCount:k.length,scrollLeft:U,scrollToAlignment:n?F:void 0,scrollToIndex:n?B:void 0,scrollTop:Z,smartCellRangeRenderer:K,translate:this.translateCallback,verticalScrollWidth:this.getVerticalScrollWidth(e.type,p)})})),de=this.graphComponentRef?.current&&a().createElement(Lr,{columnsSettings:e,dragAppendToContainer:this.graphComponentRef?.current,enableResizer:ae,enableShowHideRefsOptions:y,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:T,headerContext:d?.header,height:x,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:r,rowsStatsLoading:z,settingsContext:d?.settings,showRemoteNamesOnRefs:_,translate:this.translateCallback,width:V}),ue=a().createElement("div",{className:"graph-component","data-vscode-context":(0,W.q3)(d?.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},de,a().createElement("div",{className:M&&Object.keys(M).length?i()(Y,"graph-highlighted"):Y,id:"graph-container",onKeyDown:this.onKeyDown,onMouseDown:this.onGraphHeaderRowMouseDown,ref:this.graphContainerRef,style:{height:x,width:V},tabIndex:-1},he));return this.decorateWithHelmet(ue,p,s)}}var ms=fs},7154:(e,t,o)=>{o.d(t,{Z:()=>a});var n=o(6689),r=o.n(n),i=o(5191);class s extends r().PureComponent{resizeObserver;scrollbarContainerRef=r().createRef();horizontalScrollRef=r().createRef();scrollabbleContentRef=r().createRef();verticalScrollRef=r().createRef();outerHorizontalScrollRef=r().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){const{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;const t=this.props.scrollLeft||0;let o=t;(this.horizontalScrollRef.current||this.props.forceOnHorizontalWheel)&&(o+=e.deltaX,o=o>=0?o:0,o>t&&this.horizontalScrollRef?.current&&(0,i.TC)(this.horizontalScrollRef.current)&&(o=t));const n=this.props.scrollTop||0;let r=n;(this.verticalScrollRef.current||this.props.forceOnVerticalWheel)&&(r+=e.deltaY,r=r>=0?r:0,r>n&&this.verticalScrollRef?.current&&(0,i.BL)(this.verticalScrollRef.current)&&(r=n)),r===n&&o===t||this.props.onScroll({clientHeight:this.props.height||0,clientWidth:this.props.width||0,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:o>=0?o:0,scrollTop:r>=0?r: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,i.h)(((e,t)=>{const o=this.props.contentHeight||0,n=this.props.contentWidth||0,r=this.props.scrollTop||0,i=this.props.scrollLeft||0,s=t<o?r:0,a=e<n?i:0;r===s&&i===a||(this.updateScrollbarValues(a,s),this.props.onScroll?.({clientHeight:t,clientWidth:e,scrollHeight:o,scrollLeft:a,scrollTop:s,scrollWidth:n}))}));hasHorizontalScroll(){const{contentWidth:e,displayHorizontalScrollbar:t,forceHorizontalScrollbar:o,width:n}=this.props;return o||t&&n<e}hasVerticalScroll(){const{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){const t=this.getAdjustedContentHeight();if(!this.scrollabbleContentRef.current||this.props.height>=t||!this.props.onScroll)return;const o=this.scrollabbleContentRef.current.getBoundingClientRect(),n=e.clientY-o.top,r=Math.abs(t-this.props.height);let i;if(this.props.scrollTop>0&&n<=20){const e=this.props.scrollTop-20;i={clientHeight:o.height,clientWidth:o.width,scrollHeight:r,scrollLeft:this.props.scrollLeft||0,scrollTop:e>0?e:0,scrollWidth:this.props.contentWidth||0}}if(this.props.scrollTop<r&&n>=this.props.height-20){const e=this.props.scrollTop+20;i={clientHeight:o.height,clientWidth:o.width,scrollHeight:r,scrollLeft:this.props.scrollLeft||0,scrollTop:e<r?e:r,scrollWidth:this.props.contentWidth||0}}i&&this.props.onScroll(i)}render(){const{children:e,contentHeight:t,contentWidth:o,forceHorizontalScrollbar:n,forceVerticalScrollbar:i,height:s,width:a}=this.props,l=this.hasVerticalScroll(),c=this.hasHorizontalScroll(),h=c&&r().createElement("div",{className:"scrollbar-outer horizontal",ref:this.outerHorizontalScrollRef,style:{top:`calc(${s}px - var(--scrollable-scrollbar-thickness))`,width:a}},r().createElement("div",{className:"scrollbar-inner horizontal_scrollbar",onScroll:e=>this.onHorizontalScroll(e),ref:this.horizontalScrollRef,style:{overflowX:n?"scroll":"auto",width:l?`calc(${a}px - var(--scrollable-scrollbar-thickness))`:a}},r().createElement("div",{style:{height:"1px",width:o}}))),d=l&&r().createElement("div",{className:"scrollbar-outer vertical",style:{height:s}},r().createElement("div",{className:"scrollbar-inner vertical_scrollbar",onScroll:e=>this.onVerticalScroll(e),ref:this.verticalScrollRef,style:{overflowY:i?"scroll":"auto",height:c?`calc(${s}px - var(--scrollable-scrollbar-thickness))`:s}},r().createElement("div",{style:{height:`calc(${t}px + var(--scrollable-scrollbar-thickness))`,width:"1px"}})));return r().createElement("div",{className:"scrollbar-container",onWheelCapture:e=>this.onWheel(e),ref:this.scrollbarContainerRef,style:{height:s,width:a}},r().createElement("div",{className:"scrollable-content",onDragOverCapture:e=>this.adjustScrollWhileDragging(e),ref:this.scrollabbleContentRef,style:{height:s,width:a}},e),h,d)}}var a=s},827:(e,t,o)=>{o.d(t,{Gu:()=>c,S7:()=>r,br:()=>s,ch:()=>l,kP:()=>a,lH:()=>i,o$:()=>n});const n="commit-node",r="merge-conflict-node",i="merge-node",s="unsupported-rebase-warning-node",a="stash-node",l="work-dir-changes";var c=(e=>(e.RowEntry="rowEntry",e.Tooltip="tooltip",e))(c||{})},8289:()=>{},376:(e,t,o)=>{o.d(t,{C:()=>r,i:()=>n});const n="--num-columns-supported",r={"--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-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%"}},7675:(e,t,o)=>{o.d(t,{Ld:()=>i,M:()=>s,a2:()=>r});var n=o(376);function r(e){return`--column-${e}-color`}function i(e={}){const 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{...n.C,...e}}(t)}function s(e){const t=e||n.C;let o="";const r=Object.keys(t);o+=".gk-graph {\n";for(const e of r)o+=`${e}: ${t[e]};\n`;return o+="}\n",o}},2149:()=>{},3308:(e,t,o)=>{o.d(t,{$0:()=>s,$s:()=>d,An:()=>u,B:()=>k,B8:()=>M,GF:()=>se,Gn:()=>oe,IX:()=>q,It:()=>b,KE:()=>ie,LG:()=>S,MQ:()=>Q,NP:()=>m,O5:()=>g,OR:()=>ye,Oi:()=>Z,P3:()=>f,PB:()=>z,PL:()=>ae,QW:()=>F,Qh:()=>pe,RG:()=>de,R_:()=>Ce,Rg:()=>G,SZ:()=>B,Um:()=>he,VB:()=>K,Vh:()=>A,WD:()=>ce,Wm:()=>re,Wu:()=>v,X9:()=>V,Y8:()=>_,YJ:()=>ve,aV:()=>$,ai:()=>me,am:()=>H,at:()=>p,av:()=>le,b4:()=>te,cZ:()=>a,dF:()=>r,dH:()=>X,d_:()=>ue,eq:()=>C,iq:()=>n,jZ:()=>ne,j_:()=>O,jg:()=>T,jn:()=>y,l3:()=>h,lG:()=>x,m8:()=>R,mt:()=>W,mu:()=>ee,nn:()=>c,os:()=>J,pj:()=>I,q1:()=>w,qG:()=>l,qi:()=>ge,rl:()=>i,uK:()=>fe,v1:()=>L,v6:()=>P,wd:()=>Y,wi:()=>j,wy:()=>D,xI:()=>E,yv:()=>N,ze:()=>U});const n="#199489",r=3,i=26,s=28,a=22,l=50*s,c=s-a,h=.5,d=3,u=3,p=s,f=a,m=3,g=f/2,v=56,y=56,C=32,S=a,_=S-4,R=55,w=50,b="short+short",T=55,E=50,x=50,M=50,O=55,I=18,D=32,N=2,z=6,G=14,H=5,k=G+H,A=10,W=55,P=100,L=50,F=10,B=25,Z=58,U=22,j=2,V={dark:1,light:.5},$=10,Y=12,q=6,K=3,X=12,J="auto",Q="center",ee=7,te=4,oe="timelineMessage",ne="ref",re="graph",ie="message",se="author",ae="datetime",le="sha",ce="changes";var he=(e=>(e.Compact="compact",e.Rich="rich",e.Text="text",e))(he||{}),de=(e=>(e.Block="block",e.FullLine="fullLine",e.ThinLine="thinLine",e))(de||{});const ue={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}},pe={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"},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"}},fe=10,me=6,ge={[se]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:C,showIconWidth:R},[ae]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:w,showIconWidth:T},[ie]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!0,listId:"commit-message-zone",minimumWidth:M,showIconWidth:O},[le]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:E,showIconWidth:x},[re]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!0,listId:"commit-zone",minimumWidth:v,showIconWidth:y},[ne]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!0,listId:"ref-zone",minimumWidth:D,showIconWidth:W},[ce]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:L,showIconWidth:Z}},ve={hour:23,day:6,week:4,month:11,year:6},ye={added:0,deleted:0,modified:0};var Ce=(e=>(e.ALWAYS="ALWAYS",e.ON_HOVER="ON_HOVER",e.NEVER="NEVER",e))(Ce||{})},5191:(e,t,o)=>{o.d(t,{BL:()=>u,C_:()=>D,DN:()=>P,Dj:()=>Y,Ez:()=>k,H1:()=>L,Jp:()=>M,Jq:()=>E,KI:()=>O,Kk:()=>F,L1:()=>m,Ne:()=>I,P2:()=>d,PY:()=>Z,Ry:()=>U,SH:()=>b,TC:()=>p,Xq:()=>T,Yv:()=>$,Zg:()=>R,_e:()=>z,bY:()=>y,eR:()=>H,h:()=>h,iM:()=>w,mb:()=>G,nv:()=>_,q3:()=>f,qP:()=>C,sH:()=>j,tC:()=>S,uM:()=>A,uV:()=>g,wE:()=>x,yF:()=>v,zv:()=>N});var n=o(4561),r=o(827),i=o(7675),s=o(8649),a=o(3308),l=o(9453),c=o(466);const h=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...o)}))}},d=(e,t,o)=>{let n,r,i=!1,s=t;return(...a)=>{void 0!==o&&(r=(new Date).getTime(),s=!n||r-n>s+o?o:t),i||(e(...a),n=(new Date).getTime(),i=!0,setTimeout((()=>{i=!1}),s))}};function u(e){return Math.abs(e.scrollHeight-e.scrollTop-e.clientHeight)<1}function p(e){return Math.abs(e.scrollWidth-e.scrollLeft-e.clientWidth)<1}function f(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function m(e){const{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));const o=e[0],n=e[Math.floor(.25*t)],r=e[Math.floor(.5*t)],i=e[Math.floor(.75*t)],s=e[t-1],a=i-n;return{min:Math.max(o,r-1.5*a),max:Math.min(s,r+1.5*a)}}function g(e,t,o,n){const{id:r}=e;return!r||null===t||null===t?.[r]||n&&null===t?.[r]?.[n]?null:t&&r in t?n&&!t[r]?.[n]?(o(r,[n]),null):n?t?.[r]?.[n]:t?.[r]:(o(r,l.AI),null)}function v(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},o=36e5,n=864e5;let r;for(r=1;r<=a.YJ.hour;r+=1)t.hour.push({date:e.getTime()-r*o,label:1===r?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:r});for(r=1;r<=a.YJ.day;r+=1)t.day.push({date:e.getTime()-r*n,label:1===r?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:r});for(r=1;r<=a.YJ.week;r+=1)t.week.push({date:e.getTime()-6048e5*r,label:1===r?"Timeline-1WeekAgo":"Timeline-NWeeksAgo",timeUnit:"week",value:r});const i=new Date;for(i.setHours(0,0,0,0),r=1;r<=a.YJ.month;r+=1)i.setMonth(i.getMonth()-1),i.setHours(0,0,0,0),t.month.push({date:i.getTime(),label:1===r?"Timeline-1MonthAgo":"Timeline-NMonthsAgo",timeUnit:"month",value:r});const s=new Date;for(s.setHours(0,0,0,0),r=1;r<=a.YJ.year;r+=1){let e;switch(s.setFullYear(s.getFullYear()-1),s.setHours(0,0,0,0),r){case 1:e="Timeline-1YearAgo";break;case a.YJ.year:e="Timeline-NPlusYearsAgo";break;default:e="Timeline-NYearsAgo"}t.year.push({date:s.getTime(),label:e,timeUnit:"year",value:r})}return t}function y(e,t){if(t.id)return t.id;const o=t.owner||"";return e===s.V.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function C(e){return y(e.refType,e)}function S(e,t=0){for(let o=e.length-1;o>=t;o-=1){const t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function _(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){const t=e[o],n=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(n&&t.currentWidth<n)return t}return e[e.length-1]}}function R(e,t=!1){const o="--scrollable-scrollbar-thickness",n=t||!e[o]?(0,i.Ld)(e):e,r=n[o]?parseInt(n[o],10):0;return Number.isNaN(r)?0:r}function w(e,t){let o=0;for(const n of e)t&&n.type===t||(o+=n.currentWidth);return o}const b=(e,t)=>e===t[t.length-1].type;function T(e,t,o){return t||o||0===e}function E(e,t,o){return e+(T(e,t,o)?1:0)}function x(e,t,o){const n=E(e,t,o);return a.$0*n}function M(e,t){return e.type===a.Wm&&t>0?e.contentWidth||0:e.currentWidth}function O(e,t,o,n,r){const i=N(e,t);if(!i)return 0;var s,a;return(s=i,a=o.length,s.currentWidth<M(s,a))?R(n,r):0}function I(e,t,o,n,r,i,s,a,l){const c=N(e,t);if(!c)return 0;const h=function(e,t,o,n,r,i,s){const a=x(i,o,n);return b(e.type,t)&&(r<a||s)}(c,t,o,n,r,i.length,s);return h?R(a,l):0}function D(e,t,o){return(0,n.u)(o,e.minimumWidth||0,e.maximumWidth&&!b(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function N(e,t){return t.find((({type:t})=>t===e))}function z(e){return!!e&&e.currentWidth<=e.showIconWidth}function G(e,t){return t.findIndex((({type:t})=>t===e))}function H(e,t,o){let n=0,r=0;const i=G(e,t);if(i>-1){const e=function(e,t=0){let o=0;for(let n=t;n<e.length;n+=1)o+=e[n].minimumWidth;return o}(t,i+1),s=function(e,t=e.length-1){let o=0;for(let n=0;n<=t;n+=1)o+=e[n].currentWidth;return o}(t,i-1),a=t[i].maximumWidth||Number.MAX_VALUE,l=Math.min(a,o-e-s);n=t[i].minimumWidth,r=l}return{min:n,max:r}}function k(e){const t=!!e&&e===a.Um.Compact,o=t?1:2,n=t?10:28,r=t?1:3,i=t?1:3,s=t?10:22,l=t?s:a.P3,c=t?s:s/2+1,h=t?45:56;return{COMMIT_ZONE_LINE_WIDTH:o,COMMIT_ZONE_GUTTER_WIDTH:n,COMMIT_ZONE_PADDING_LEFT:r,COMMIT_ZONE_PADDING_RIGHT:i,COMMIT_COLUMN_WIDTH:s,COMMIT_NODE_DIAMETER:l,COMMIT_MERGE_NODE_DIAMETER:c,COMMIT_NODE_TOP_OFFSET:.5*a.P3-.5*l,COMMIT_MERGE_NODE_LEFT_OFFSET:s/2-c/2,COMMIT_MERGE_NODE_TOP_OFFSET:.5*a.P3-.5*c,COMMIT_ZONE_AVATAR_DIAMETER:l-2*o,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:l+r+i+n,COMMIT_ZONE_SHOW_ICON_WIDTH:h,IS_COMPACT:t,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:l/2-c/2}}const A=e=>t=>t===e.length?"SHOW_MORE_COMMITS":e[t].sha;function W(e){return e instanceof c.A?Boolean(e.refsData?.activeGraphRef):!!e?.heads&&e.heads.some((e=>V(e)))}function P(e){const t=e.find(W);return t?.sha||void 0}function L(e){return[r.S7,r.br,r.ch].includes(e)}function F(e){return!!e&&Object.values(e).some((e=>e>0))}function B(e){return 1===Object.keys(e).length}function Z(e,t){return!0===e[t]&&B(e)}function U(e,t,o,n){if(n<0)return a.os;const r=e+2,i=n*e;return i>=o-r&&i<o+t+r?a.os:a.MQ}function j(e){switch(e){case a.Wm:return"graph";case a.jZ:return"branch";case a.KE:return"message";case a.GF:return"author";case a.PL:return"datetime";case a.av:return"commit";case a.WD:return"changes";default:return""}}function V(e){return e.isCurrentHead}function $(e){return e.refType===s.V.HEAD&&V(e)}class Y{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=N(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupsByNameForRow(e){const 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){const o=t?this.getVerticalScrollWidth(e):0;return function(e,t){return N(e,t)?.currentWidth||a.qi[e].minimumWidth}(e,this.props.graphZones)-o}isDateTimeZoneActive(){return Boolean(this.getActiveGraphZone(a.PL))}isFirstRow(e){return 0===e}isColumnFollowingGraphColumn(e){return((e,t)=>{const o=G(e,t),n=G(a.Wm,t);return-1!==o&&-1!==n&&o-n==1})(e,this.props.graphZones)}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){const 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 b(e,this.props.graphZones)}getSelectedRefGroupByName(){if(B(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t)return t.refsData?.orderedRefGroups||[]}return[]}getHorizontalScrollHeight(e){return O(e,this.props.graphZones,this.props.processedRows,this.props.cssVariables)}getVerticalScrollWidth(e){return I(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){const t=N(e,this.props.graphZones);return!!t&&z(t)}isMissingHoveredRefGroup(e){if(this.props.highlightedShas)return!1;const t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){const e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{const{hoveredRefGroup:e}=this.props;if(!e?.length)return!1;o=e}const{name:n,refType:r}=o[0],i=r===s.V.TAG,a=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:l,tags:c,remotes:h}=!t.hasRefs||a&&!i?t.childRefs:t;if(!l.length&&!h.length&&!c.length)return!0;return!l.some((e=>e.name===n&&o.some((e=>e.refType===s.V.HEAD))))&&!h.some((e=>e.name===n&&o.some((t=>t.refType===s.V.REMOTE&&t.owner===e.owner))))&&!c.some((e=>e.name===n&&o.some((e=>e.refType===s.V.TAG))))}isSelected(e){const t=this.getRow(e)?.sha;return Boolean(t)&&!0===this.props.isSelectedBySha[t]}isSingleSelected(e){const t=this.getRow(e)?.sha;return Boolean(t)&&Z(this.props.isSelectedBySha,t)}hasTimeline(e){return Boolean(this.props.processedRows[e]?.timeLineEntry)&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return W(e)}}},9453:(e,t,o)=>{o.d(t,{$M:()=>i,AI:()=>s,mQ:()=>n,uq:()=>r});const n="pullRequest",r="upstream",i="issue",s=[n,r,i]},466:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(8649),r=o(5191);class i{_graph;_message;_heads;_remotes;_tags;_activeGraphRef;_activeGraphRefGroup;_refGroupsByName;_orderedRefGroups;sha;parents;author;email;date;type;contexts;rowIndex;column;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,n,r,i,s){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.edgeColumnMaxes=n||0,this.edges=r||{},this.childRefs=i||{heads:[],tags:[],remotes:[]},this.timeLineEntry=s,this.initializeRefGroups(),this.updateSummaryAndBody(t.message)}updateSummaryAndBody(e){let t,o=e?e.trim():"";const n=o.indexOf("\n");-1!==n&&(t=o.substring(n+1).trim().replace(/\n+(?:\s+\n+)?/g," | "),o=o.substring(0,n)),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){const t=e.name;this._refGroupsByName[t]||(this._refGroupsByName[t]=[]),this._refGroupsByName[t].push(e)}loadGraphRefGroupsData(){this.initializeRefGroups();const e=[],{heads:t,tags:o,remotes:i}=this.hasRefs?this:this.childRefs;for(const o of t){const t={...o,refType:n.V.HEAD};this.addRefToRefGroup(t),(0,r.Yv)(t)?(this._activeGraphRefGroup=this._refGroupsByName[t.name],this._activeGraphRef=t,e.unshift(this._refGroupsByName[t.name])):e.push(this._refGroupsByName[t.name])}for(const t of i){const o={...t,fullName:t.owner?`${t.owner}/${t.name}`:t.name,refType:n.V.REMOTE},r=this._refGroupsByName[o.name];this.addRefToRefGroup(o),r||e.push(this._refGroupsByName[o.name])}for(const t of o){const o={...t,refType:n.V.TAG};this.addRefToRefGroup(o),e.push(this._refGroupsByName[o.name])}this._orderedRefGroups=e.sort(((e,t)=>e===this._activeGraphRefGroup?-1:t===this._activeGraphRefGroup?1:e.length>t.length?-1:e.length<t.length?1:e[0].name.localeCompare(t[0].name)))}}},7334:(e,t,o)=>{function n(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,{y:()=>n})},8649:(e,t,o)=>{o.d(t,{V:()=>n,l:()=>r});const n={HEAD:"head",REMOTE:"remote",TAG:"tag"};var r=(e=>(e.LEFT="LEFT",e.RIGHT="RIGHT",e))(r||{})},664:()=>{},6756:()=>{},4561:(e,t,o)=>{function n(e,t,o){return(e=e<=o?e:o)>=t?e:t}o.d(t,{u:()=>n})},3316:e=>{function t(e,t,o,n){var r,i=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:o(n),s=t.get(i);return void 0===s&&(s=e.call(this,n),t.set(i,s)),s}function o(e,t,o){var n=Array.prototype.slice.call(arguments,3),r=o(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function n(e,t,o,n,r){return o.bind(t,e,n,r)}function r(e,r){return n(e,this,1===e.length?t:o,r.cache.create(),r.serializer)}function i(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var a={create:function(){return new s}};e.exports=function(e,t){var o=t&&t.cache?t.cache:a,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:r)(e,{cache:o,serializer:n})},e.exports.strategies={variadic:function(e,t){return n(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,o){return n(e,this,t,o.cache.create(),o.serializer)}}},1143:e=>{e.exports=function(e,t,o,n,r,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,n,r,i,s,a],h=0;(l=new Error(t.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},621:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="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},r=s(o(6689)),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var a=e[t],l=void 0===a?"undefined":n(a);return r.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===l&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+o+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},8853:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(o(6689)),r=o(9864),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var a=e[t];return n.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(a)?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+o+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},5638:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,o,n,r,i){var s=n||"<<anonymous>>",a=i||o;if(null==t[o])return new Error("The "+r+" `"+a+"` is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,c=Array(l>5?l-5:0),h=5;h<l;h++)c[h-5]=arguments[h];return e.apply(void 0,[t,o,n,r,i].concat(c))}},e.exports=t.default},2613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,o,n,r,i,s){var a=r||"<<anonymous>>",l=s||n;if(null==o[n])return t?new Error("Required "+i+" `"+l+"` was not specified in `"+a+"`."):null;for(var c=arguments.length,h=Array(c>6?c-6:0),d=6;d<c;d++)h[d-6]=arguments[d];return e.apply(void 0,[o,n,a,i,l].concat(h))}var o=t.bind(null,!1);return o.isRequired=t.bind(null,!0),o},e.exports=t.default},2703:(e,t,o)=>{var n=o(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,i,s){if(s!==n){var a=new 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 a.name="Invariant Violation",a}}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:i,resetWarningCache:r};return o.PropTypes=o,o}},5697:(e,t,o)=>{e.exports=o(2703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},977:(e,t,o)=>{var n=o(7137),r=o(2584);e.exports=function(){return n.apply(this,r(arguments)).on("cloned",(function(t){e(t),r(t.getElementsByTagName("*")).forEach(e)}));function e(e){e.removeAttribute("data-reactid")}}},9921:(e,t)=>{var o="function"==typeof Symbol&&Symbol.for,n=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,u=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,y=o?Symbol.for("react.fundamental"):60117,C=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case h:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case g:case m:case l:return e;default:return t}}case r:return t}}}function R(e){return _(e)===d}t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return R(e)||_(e)===h},t.isConcurrentMode=R,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===u},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===r},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===C||e.$$typeof===S||e.$$typeof===v)},t.typeOf=_},9864:(e,t,o)=>{e.exports=o(9921)},6871:(e,t,o)=>{function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}.bind(this))}function i(e,t){try{var o=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var o=null,s=null,a=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==o||null!==s||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\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=n,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var h=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;h.call(this,e,t,n)}}return e}o.r(t),o.d(t,{polyfill:()=>s}),n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},7281:(e,t,o)=>{t.__esModule=!0;var n=c(o(5697)),r=c(o(621)),i=c(o(6689)),s=c(o(6405)),a=c(o(3464)),l=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,c=Array(r),d=0;d<r;d++)c[d]=arguments[d];return o=n=h(this,e.call.apply(e,[this].concat(c))),n._mountOverlayTarget=function(){n._overlayTarget||(n._overlayTarget=document.createElement("div"),n._portalContainerNode=(0,a.default)(n.props.container,(0,l.default)(n).body),n._portalContainerNode.appendChild(n._overlayTarget))},n._unmountOverlayTarget=function(){n._overlayTarget&&(n._portalContainerNode.removeChild(n._overlayTarget),n._overlayTarget=null),n._portalContainerNode=null},n._renderOverlay=function(){var e=n.props.children?i.default.Children.only(n.props.children):null;if(null!==e){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){t&&n.props.onRendered&&n.props.onRendered()}))}else n._unrenderOverlay(),n._unmountOverlayTarget()},n._unrenderOverlay=function(){n._overlayTarget&&(s.default.unmountComponentAtNode(n._overlayTarget),n._overlayInstance=null)},n.getMountNode=function(){return n._overlayTarget},h(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,a.default)(e.container,(0,l.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(i.default.Component);d.displayName="Portal",d.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=d,e.exports=t.default},2856:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=h(o(5697)),i=h(o(8853)),s=h(o(6689)),a=h(o(5425)),l=h(o(7487)),c=h(o(2395));function h(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,n));return r.handleHidden=function(){var e;(r.setState({exited:!0}),r.props.onExited)&&(e=r.props).onExited.apply(e,arguments)},r.state={exited:!o.show},r.onHiddenListener=r.handleHidden.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.render=function(){var e=this.props,t=e.container,o=e.containerPadding,n=e.target,r=e.placement,i=e.shouldUpdatePosition,h=e.rootClose,d=e.children,u=e.transition,p=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(e,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);if(!(p.show||u&&!this.state.exited))return null;var f=d;if(f=s.default.createElement(l.default,{container:t,containerPadding:o,target:n,placement:r,shouldUpdatePosition:i},f),u){var m=p.onExit,g=p.onExiting,v=p.onEnter,y=p.onEntering,C=p.onEntered;f=s.default.createElement(u,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:C},f)}return h&&(f=s.default.createElement(c.default,{onRootClose:p.onHide},f)),s.default.createElement(a.default,{container:t},f)},t}(s.default.Component);d.propTypes=n({},a.default.propTypes,l.default.propTypes,{show:r.default.bool,rootClose:r.default.bool,onHide:function(e){var t=r.default.func;e.rootClose&&(t=t.isRequired);for(var o=arguments.length,n=Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];return t.apply(void 0,[e].concat(n))},transition:i.default,onEnter:r.default.func,onEntering:r.default.func,onEntered:r.default.func,onExit:r.default.func,onExiting:r.default.func,onExited:r.default.func}),t.default=d,e.exports=t.default},5425:(e,t,o)=>{t.__esModule=!0;var n=h(o(5697)),r=h(o(621)),i=h(o(6689)),s=h(o(6405)),a=h(o(3464)),l=h(o(290)),c=h(o(7281));function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return o=n=d(this,e.call.apply(e,[this].concat(i))),n.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;n._portalContainerNode=(0,a.default)(e.container,(0,l.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},d(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?s.default.createPortal(this.props.children,this._portalContainerNode):null},t}(i.default.Component);u.displayName="Portal",u.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=s.default.createPortal?u:c.default,e.exports=t.default},7487:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=p(o(4184)),i=p(o(5697)),s=p(o(621)),a=o(6689),l=p(a),c=p(o(6405)),h=p(o(7603)),d=p(o(3464)),u=p(o(290));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}var m=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,n));return r.getTarget=function(){var e=r.props.target,t="function"==typeof e?e():e;return t&&c.default.findDOMNode(t)||null},r.maybeUpdatePosition=function(e){var t=r.getTarget();(r.props.shouldUpdatePosition||t!==r._lastTarget||e)&&r.updatePosition(t)},r.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},r._needsFlush=!1,r._lastTarget=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.updatePosition(this.getTarget())},t.prototype.componentWillReceiveProps=function(){this._needsFlush=!0},t.prototype.componentDidUpdate=function(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement))},t.prototype.render=function(){var e=this.props,t=e.children,o=e.className,i=f(e,["children","className"]),s=this.state,c=s.positionLeft,h=s.positionTop,d=f(s,["positionLeft","positionTop"]);delete i.target,delete i.container,delete i.containerPadding,delete i.shouldUpdatePosition;var u=l.default.Children.only(t);return(0,a.cloneElement)(u,n({},i,d,{positionLeft:c,positionTop:h,className:(0,r.default)(o,u.props.className),style:n({},u.props.style,{left:c,top:h})}))},t.prototype.updatePosition=function(e){if(this._lastTarget=e,e){var t=c.default.findDOMNode(this),o=(0,d.default)(this.props.container,(0,u.default)(this).body);this.setState((0,h.default)(this.props.placement,t,e,o,this.props.containerPadding))}else this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null})},t}(l.default.Component);m.propTypes={target:i.default.oneOfType([s.default,i.default.func]),container:i.default.oneOfType([s.default,i.default.func]),containerPadding:i.default.number,placement:i.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:i.default.bool},m.displayName="Position",m.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},t.default=m,e.exports=t.default},2395:(e,t,o)=>{t.__esModule=!0;var n=c(o(1629)),r=c(o(5697)),i=c(o(6689)),s=c(o(6405)),a=c(o(6616)),l=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,r));return i.addEventListeners=function(){var e=i.props.event,t=(0,l.default)(i);i.documentMouseCaptureListener=(0,a.default)(t,e,i.handleMouseCapture,!0),i.documentMouseListener=(0,a.default)(t,e,i.handleMouse),i.documentKeyupListener=(0,a.default)(t,"keyup",i.handleKeyUp)},i.removeEventListeners=function(){i.documentMouseCaptureListener&&i.documentMouseCaptureListener.remove(),i.documentMouseListener&&i.documentMouseListener.remove(),i.documentKeyupListener&&i.documentKeyupListener.remove()},i.handleMouseCapture=function(e){var t;i.preventMouseRootClose=!!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||!function(e){return 0===e.button}(e)||(0,n.default)(s.default.findDOMNode(i),e.target)},i.handleMouse=function(e){!i.preventMouseRootClose&&i.props.onRootClose&&i.props.onRootClose(e)},i.handleKeyUp=function(e){27===e.keyCode&&i.props.onRootClose&&i.props.onRootClose(e)},i.preventMouseRootClose=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},t.prototype.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},t.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},t.prototype.render=function(){return this.props.children},t}(i.default.Component);h.displayName="RootCloseWrapper",h.propTypes={onRootClose:r.default.func,children:r.default.element,disabled:r.default.bool,event:r.default.oneOf(["click","mousedown"])},h.defaultProps={event:"click"},t.default=h,e.exports=t.default},6616:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i){return(0,n.default)(e,t,o,i),{remove:function(){(0,r.default)(e,t,o,i)}}};var n=i(o(1416)),r=i(o(3249));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7603:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i,s){var a="BODY"===i.tagName?(0,n.default)(o):(0,r.default)(o,i),c=(0,n.default)(t),h=c.height,d=c.width,u=void 0,p=void 0,f=void 0,m=void 0;if("left"===e||"right"===e){p=a.top+(a.height-h)/2,u="left"===e?a.left-d:a.left+a.width;var g=function(e,t,o,n){var r=l(o),i=r.scroll,s=r.height,a=e-n-i,c=e+n-i+t;return a<0?-a:c>s?s-c:0}(p,h,i,s);p+=g,m=50*(1-2*g/h)+"%",f=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');u=a.left+(a.width-d)/2,p="top"===e?a.top-h:a.top+a.height;var v=function(e,t,o,n){var r=l(o),i=r.width,s=e-n,a=e+n+t;if(s<0)return-s;if(a>i)return i-a;return 0}(u,d,i,s);u+=v,f=50*(1-2*v/d)+"%",m=void 0}return{positionLeft:u,positionTop:p,arrowOffsetLeft:f,arrowOffsetTop:m}};var n=a(o(2565)),r=a(o(7265)),i=a(o(504)),s=a(o(290));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=void 0,o=void 0,r=void 0;if("BODY"===e.tagName)t=window.innerWidth,o=window.innerHeight,r=(0,i.default)((0,s.default)(e).documentElement)||(0,i.default)(e);else{var a=(0,n.default)(e);t=a.width,o=a.height,r=(0,i.default)(e)}return{width:t,height:o,scroll:r}}e.exports=t.default},3464:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var n,r=o(6405),i=(n=r)&&n.__esModule?n:{default:n};e.exports=t.default},290:(e,t,o)=>{t.__esModule=!0,t.default=function(e){return(0,r.default)(n.default.findDOMNode(e))};var n=i(o(6405)),r=i(o(9981));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},644:(e,t,o)=>{t.ZP=t.cn=t.d0=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(o(5697)),r=a(o(6689)),i=a(o(6405)),s=o(6871);o(4726);function a(e){return e&&e.__esModule?e:{default:e}}var l="unmounted";var c="exited";var h="entering";t.d0=h;var d="entered";t.cn=d;var u="exiting";var p=function(e){var t,o;function n(t,o){var n;n=e.call(this,t,o)||this;var r,i=o.transitionGroup,s=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?s?(r=c,n.appearStatus=h):r=d:r=t.unmountOnExit||t.mountOnEnter?l:c,n.state={status:r},n.nextCallback=null,n}o=e,(t=n).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var s=n.prototype;return s.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==h&&o!==d&&(t=h):o!==h&&o!==d||(t=u)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,o,n=this.props.timeout;return e=t=o=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,o=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:o}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var o=i.default.findDOMNode(this);t===h?this.performEnter(o,e):this.performExit(o)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},s.performEnter=function(e,t){var o=this,n=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),s=r?i.appear:i.enter;t||n?(this.props.onEnter(e,r),this.safeSetState({status:h},(function(){o.props.onEntering(e,r),o.onTransitionEnd(e,s,(function(){o.safeSetState({status:d},(function(){o.props.onEntered(e,r)}))}))}))):this.safeSetState({status:d},(function(){o.props.onEntered(e)}))},s.performExit=function(e){var t=this,o=this.props.exit,n=this.getTimeouts();o?(this.props.onExit(e),this.safeSetState({status:u},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(n){o&&(o=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},s.onTransitionEnd=function(e,t,o){this.setNextCallback(o);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,o=t.children,n=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof o)return o(e,n);var i=r.default.Children.only(o);return r.default.cloneElement(i,n)},n}(r.default.Component);function f(){}p.contextTypes={transitionGroup:n.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var m=(0,s.polyfill)(p);t.ZP=m},4726:(e,t,o)=>{t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=o(5697))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},6115:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},670:e=>{e.exports=function(){}},6689:e=>{e.exports=require("react")},6405:e=>{e.exports=require("react-dom")},8149:(e,t,o)=>{e.exports=o(3285)},3562:(e,t,o)=>{e.exports=o(7965)},434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.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 n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new 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 n={};(()=>{o.r(n),o.d(n,{CHANGES_BAR_MIN_WIDTH:()=>c.QW,CHANGES_BAR_RIGHT_MARGIN:()=>c.SZ,CHANGES_ZONE_MIN_WIDTH:()=>c.v1,CHANGES_ZONE_SHOW_ICON_WIDTH:()=>c.Oi,COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER:()=>c.Y8,COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER:()=>c.LG,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>c.eq,COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH:()=>c.m8,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>c.q1,COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH:()=>c.jg,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>c.B8,COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH:()=>c.j_,COMMIT_NODE_MIN_ALPHA:()=>c.l3,COMMIT_SHA_ZONE_MIN_WIDTH:()=>c.xI,COMMIT_SHA_ZONE_SHOW_ICON_WIDTH:()=>c.lG,COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN:()=>c.Wu,COMMIT_ZONE_EDGE_ARC_PADDING:()=>c.NP,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>c.O5,COMMIT_ZONE_MARGIN_BOTTOM:()=>c.$s,COMMIT_ZONE_MARGIN_TOP:()=>c.An,COMMIT_ZONE_ROW_HEIGHT:()=>c.at,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>c.P3,COMMIT_ZONE_SHOW_ICON_WIDTH:()=>c.jn,CommitDateTimeSources:()=>i.Gu,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>c.iq,DEFAULT_COMMIT_SHA_LENGTH:()=>c.ai,DEFAULT_WORKDIR_STATS:()=>c.OR,DndComponent:()=>e.Z,GRAPH_HEADER_ROW_HEIGHT:()=>c.rl,GRAPH_ROW_HEIGHT:()=>c.$0,GRAPH_ROW_INNER_HEIGHT:()=>c.cZ,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>c.qG,GRAPH_ROW_PADDING:()=>c.nn,GRAPH_SCROLL_MARKER_LANES:()=>c.dF,GraphColumnMode:()=>c.Um,GraphMarkerShape:()=>c.RG,HEADER_ROW_HEIGHT:()=>c.ze,HEADER_ROW_MARGIN_BOTTOM:()=>c.wi,INLINE_SUMMARY_MARGIN_LEFT:()=>c.aV,LeftPanelToGraphMarginGap:()=>c.mu,OPACITY_FACTOR_BY_THEME:()=>c.X9,REF_NODE_ICON_MARGIN:()=>c.am,REF_NODE_ICON_SPACING:()=>c.B,REF_NODE_ICON_WIDTH:()=>c.Rg,REF_NODE_OUTER_SPACING:()=>c.Vh,REF_ZONE_MARGIN_LEFT:()=>c.yv,REF_ZONE_MARGIN_RIGHT:()=>c.PB,REF_ZONE_MAX_REFS_TO_RENDER:()=>c.v6,REF_ZONE_MIN_WIDTH:()=>c.wy,REF_ZONE_SHOW_ICON_WIDTH:()=>c.mt,REF_ZONE_TEXT_HEIGHT:()=>c.pj,ResizableHandleCorrection:()=>c.b4,SCROLL_TO_ALIGNMENT_AUTO:()=>c.os,SCROLL_TO_ALIGNMENT_CENTER:()=>c.MQ,ScrollbarContainer:()=>t.Z,TIMESTAMP_FORMAT_DATE_TIME:()=>c.It,TINY_FILES_READOUT_FONT_SIZE:()=>c.wd,TINY_FILES_READOUT_RIGHT_MARGIN:()=>c.IX,TINY_ICON_RIGHT_MARGIN:()=>c.VB,TINY_ICON_SIZE:()=>c.dH,allMetadataTypes:()=>h.AI,changesZone:()=>c.WD,commitAuthorZone:()=>c.GF,commitDateTimeZone:()=>c.PL,commitMessageZone:()=>c.KE,commitNodeType:()=>i.o$,commitShaZone:()=>c.av,commitZone:()=>c.Wm,default:()=>m,getHostingServiceName:()=>d.y,graphCommitDescDisplayModes:()=>c.R_,graphMarkerMetadata:()=>c.Qh,graphMarkerShapeMetadata:()=>c.d_,graphZoneMetaData:()=>c.qi,issueMetadataType:()=>h.$M,lookbackLimitByPeriod:()=>c.YJ,mergeConflictNodeType:()=>i.S7,mergeNodeType:()=>i.lH,numGraphColumnsDefault:()=>c.uK,pullRequestMetadataType:()=>h.mQ,refIconsPositions:()=>u.l,refTypes:()=>u.V,refZone:()=>c.jZ,stashNodeType:()=>i.kP,timelineMsgRowRenderId:()=>c.Gn,unsupportedRebaseWarningNodeType:()=>i.br,upstreamMetadataType:()=>h.uq,workDirType:()=>i.ch});var e=o(9915),t=o(7154),r=o(3607),i=o(827),s=o(2149),a={};for(const e in s)["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(a[e]=()=>s[e]);o.d(n,a);var l=o(8289);a={};for(const e in l)["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType"].indexOf(e)<0&&(a[e]=()=>l[e]);o.d(n,a);var c=o(3308),h=o(9453),d=o(7334),u=o(8649),p=o(664);a={};for(const e in p)["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","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)<0&&(a[e]=()=>p[e]);o.d(n,a);var f=o(6756);a={};for(const e in f)["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","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)<0&&(a[e]=()=>f[e]);o.d(n,a);var m=r.Z})(),module.exports=n})();
|
|
1
|
+
(()=>{var e={2584:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},4184:(e,t)=>{var o;!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&e.push(s)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},8514:(e,t,o)=>{var n=o(6115);e.exports=function(e,t,o){e&&n((function(){e.apply(o||null,t||[])}))}},5229:(e,t,o)=>{var n=o(2584),r=o(8514);e.exports=function(e,t){var o=t||{},i={};return void 0===e&&(e={}),e.on=function(t,o){return i[t]?i[t].push(o):i[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var n=arguments.length;if(1===n)delete i[t];else if(0===n)i={};else{var r=i[t];if(!r)return e;r.splice(r.indexOf(o),1)}return e},e.emit=function(){var t=n(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(i[t]||[]).slice(0);return function(){var i=n(arguments),a=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===i.length?i[0]:i;return s.forEach((function(n){o.async?r(n,i,a):n.apply(a,i),n._once&&e.off(t,n)})),e}},e}},3285:(e,t,o)=>{o(8691),e.exports=o(4579).Array.isArray},6981:(e,t,o)=>{o(2699),e.exports=o(4579).Object.assign},5627:(e,t,o)=>{o(6760);var n=o(4579).Object;e.exports=function(e,t){return n.create(e,t)}},7965:(e,t,o)=>{o(520),e.exports=o(4579).Object.entries},8613:(e,t,o)=>{o(961),e.exports=o(4579).Object.keys},433:(e,t,o)=>{o(9349),e.exports=o(4579).Object.setPrototypeOf},5663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2159:(e,t,o)=>{var n=o(6727);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,o)=>{var n=o(7932),r=o(8728),i=o(6531);e.exports=function(e){return function(t,o,s){var a,l=n(t),c=r(l.length),h=i(s,c);if(e&&o!=o){for(;c>h;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((e||h in l)&&l[h]===o)return e||h||0;return!e&&-1}}},2894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:(e,t,o)=>{var n=o(5663);e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,r){return e.call(t,o,n,r)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9666:(e,t,o)=>{e.exports=!o(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,o)=>{var n=o(6727),r=o(3938).document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},3338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3856:(e,t,o)=>{var n=o(3938),r=o(4579),i=o(9216),s=o(1818),a=o(7069),l="prototype",c=function(e,t,o){var h,d,u,p=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,C=f?r:r[t]||(r[t]={}),S=C[l],_=f?n:m?n[t]:(n[t]||{})[l];for(h in f&&(o=t),o)(d=!p&&_&&void 0!==_[h])&&a(C,h)||(u=d?_[h]:o[h],C[h]=f&&"function"!=typeof _[h]?o[h]:v&&d?i(u,n):y&&_[h]==u?function(e){var t=function(t,o,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return e.apply(this,arguments)};return t[l]=e[l],t}(u):g&&"function"==typeof u?i(Function.call,u):u,g&&((C.virtual||(C.virtual={}))[h]=u,e&c.R&&S&&!S[h]&&s(S,h,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},1818:(e,t,o)=>{var n=o(4743),r=o(3101);e.exports=o(9666)?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},4881:(e,t,o)=>{var n=o(3938).document;e.exports=n&&n.documentElement},3758:(e,t,o)=>{e.exports=!o(9666)&&!o(7929)((function(){return 7!=Object.defineProperty(o(7467)("div"),"a",{get:function(){return 7}}).a}))},799:(e,t,o)=>{var n=o(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},1421:(e,t,o)=>{var n=o(2894);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6227:e=>{e.exports=!0},8082:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(8195),s=o(6274),a=o(6530),l=o(799),c=Object.assign;e.exports=!c||o(7929)((function(){var e={},t={},o=Symbol(),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach((function(e){t[e]=e})),7!=c({},e)[o]||Object.keys(c({},t)).join("")!=n}))?function(e,t){for(var o=a(e),c=arguments.length,h=1,d=i.f,u=s.f;c>h;)for(var p,f=l(arguments[h++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)p=m[v++],n&&!u.call(f,p)||(o[p]=f[p]);return o}:c},526:(e,t,o)=>{var n=o(2159),r=o(7856),i=o(3338),s=o(8989)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=o(7467)("iframe"),n=i.length;for(t.style.display="none",o(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][i[n]];return c()};e.exports=Object.create||function(e,t){var o;return null!==e?(a[l]=n(e),o=new a,a[l]=null,o[s]=e):o=c(),void 0===t?o:r(o,t)}},4743:(e,t,o)=>{var n=o(2159),r=o(3758),i=o(3206),s=Object.defineProperty;t.f=o(9666)?Object.defineProperty:function(e,t,o){if(n(e),t=i(t,!0),n(o),r)try{return s(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},7856:(e,t,o)=>{var n=o(4743),r=o(2159),i=o(6162);e.exports=o(9666)?Object.defineProperties:function(e,t){r(e);for(var o,s=i(t),a=s.length,l=0;a>l;)n.f(e,o=s[l++],t[o]);return e}},6183:(e,t,o)=>{var n=o(6274),r=o(3101),i=o(7932),s=o(3206),a=o(7069),l=o(3758),c=Object.getOwnPropertyDescriptor;t.f=o(9666)?c:function(e,t){if(e=i(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return r(!n.f.call(e,t),e[t])}},8195:(e,t)=>{t.f=Object.getOwnPropertySymbols},2963:(e,t,o)=>{var n=o(7069),r=o(7932),i=o(7428)(!1),s=o(8989)("IE_PROTO");e.exports=function(e,t){var o,a=r(e),l=0,c=[];for(o in a)o!=s&&n(a,o)&&c.push(o);for(;t.length>l;)n(a,o=t[l++])&&(~i(c,o)||c.push(o));return c}},6162:(e,t,o)=>{var n=o(2963),r=o(3338);e.exports=Object.keys||function(e){return n(e,r)}},6274:(e,t)=>{t.f={}.propertyIsEnumerable},4938:(e,t,o)=>{var n=o(3856),r=o(4579),i=o(7929);e.exports=function(e,t){var o=(r.Object||{})[e]||Object[e],s={};s[e]=t(o),n(n.S+n.F*i((function(){o(1)})),"Object",s)}},2050:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(7932),s=o(6274).f;e.exports=function(e){return function(t){for(var o,a=i(t),l=r(a),c=l.length,h=0,d=[];c>h;)o=l[h++],n&&!s.call(a,o)||d.push(e?[o,a[o]]:a[o]);return d}}},3101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2906:(e,t,o)=>{var n=o(6727),r=o(2159),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=o(9216)(Function.call,o(6183).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,o){return i(e,o),t?e.__proto__=o:n(e,o),e}}({},!1):void 0),check:i}},8989:(e,t,o)=>{var n=o(250)("keys"),r=o(5730);e.exports=function(e){return n[e]||(n[e]=r(e))}},250:(e,t,o)=>{var n=o(4579),r=o(3938),i="__core-js_shared__",s=r[i]||(r[i]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6531:(e,t,o)=>{var n=o(1052),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?r(e+t,0):i(e,t)}},1052:e=>{var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},7932:(e,t,o)=>{var n=o(799),r=o(8333);e.exports=function(e){return n(r(e))}},8728:(e,t,o)=>{var n=o(1052),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},6530:(e,t,o)=>{var n=o(8333);e.exports=function(e){return Object(n(e))}},3206:(e,t,o)=>{var n=o(6727);e.exports=function(e,t){if(!n(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!n(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},5730:e=>{var t=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+o).toString(36))}},8691:(e,t,o)=>{var n=o(3856);n(n.S,"Array",{isArray:o(1421)})},2699:(e,t,o)=>{var n=o(3856);n(n.S+n.F,"Object",{assign:o(8082)})},6760:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{create:o(526)})},961:(e,t,o)=>{var n=o(6530),r=o(6162);o(4938)("keys",(function(){return function(e){return r(n(e))}}))},9349:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{setPrototypeOf:o(2906).set})},520:(e,t,o)=>{var n=o(3856),r=o(2050)(!0);n(n.S,"Object",{entries:function(e){return r(e)}})},1808:(e,t,o)=>{var n=o(9638),r=o(4874),i=o.g.document,s=function(e,t,o,n){return e.addEventListener(t,o,n)},a=function(e,t,o,n){return e.removeEventListener(t,o,n)},l=[];function c(e,t,o){var n=function(e,t,o){var n,r;for(n=0;n<l.length;n++)if((r=l[n]).element===e&&r.type===t&&r.fn===o)return n}(e,t,o);if(n){var r=l[n].wrapper;return l.splice(n,1),r}}o.g.addEventListener||(s=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=c(e,t,n)||function(e,t,n){return function(t){var r=t||o.g.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(e,r)}}(e,0,n);return l.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},a=function(e,t,o){var n=c(e,t,o);if(n)return e.detachEvent("on"+t,n)}),e.exports={add:s,remove:a,fabricate:function(e,t,o){var s=-1===r.indexOf(t)?new n(t,{detail:o}):function(){var e;i.createEvent?(e=i.createEvent("Event")).initEvent(t,!0,!0):i.createEventObject&&(e=i.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(s):e.fireEvent("on"+t,s)}}},4874:(e,t,o)=>{var n=[],r="",i=/^on/;for(r in o.g)i.test(r)&&n.push(r.slice(2));e.exports=n},9638:(e,t,o)=>{var n=o.g.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"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=Boolean(t.bubbles),o.cancelable=Boolean(t.cancelable),o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}},3249:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.removeEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.detachEvent("on"+t,o)}:void 0);var i=r;t.default=i,e.exports=t.default},1416:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.addEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,o.call(e,t)}))}:void 0);var i=r;t.default=i,e.exports=t.default},9981:(e,t)=>{t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},1629:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=n(o(139)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r,e.exports=t.default},7624:(e,t)=>{t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},2565:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e),o=(0,i.default)(t),n=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(n,e))return a;void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect());return a={top:a.top+(o.pageYOffset||n.scrollTop)-(n.clientTop||0),left:a.left+(o.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}};var r=n(o(1629)),i=n(o(7624)),s=n(o(9981));e.exports=t.default},2939:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,r.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==s(e)&&"static"===(0,i.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var r=n(o(9981)),i=n(o(162));function s(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},7265:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o,n={top:0,left:0};"fixed"===(0,c.default)(e,"position")?o=e.getBoundingClientRect():(t=t||(0,s.default)(e),o=(0,i.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(n=(0,i.default)(t)),n.top+=parseInt((0,c.default)(t,"borderTopWidth"),10)-(0,a.default)(t)||0,n.left+=parseInt((0,c.default)(t,"borderLeftWidth"),10)-(0,l.default)(t)||0);return(0,r.default)({},o,{top:o.top-n.top-(parseInt((0,c.default)(e,"marginTop"),10)||0),left:o.left-n.left-(parseInt((0,c.default)(e,"marginLeft"),10)||0)})};var r=n(o(434)),i=n(o(2565)),s=n(o(2939)),a=n(o(504)),l=n(o(5770)),c=n(o(162));e.exports=t.default},5770:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft:e.scrollLeft;o?o.scrollTo(t,"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop):e.scrollLeft=t};var r=n(o(7624));e.exports=t.default},504:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop:e.scrollTop;o?o.scrollTo("pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft,t):e.scrollTop=t};var r=n(o(7624));e.exports=t.default},7023:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var n=e.currentStyle[t]||null;if(null==n&&o&&o[t]&&(n=o[t]),s.test(n)&&!i.test(t)){var a=o.left,l=e.runtimeStyle,c=l&&l.left;c&&(l.left=e.currentStyle.left),o.left="fontSize"===t?"1em":n,n=o.pixelLeft+"px",o.left=a,c&&(l.left=c)}return n}}};var r=n(o(3497)),i=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},162:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t,o){var n="",h="",d=t;if("string"==typeof t){if(void 0===o)return e.style[(0,r.default)(t)]||(0,s.default)(e).getPropertyValue((0,i.default)(t));(d={})[t]=o}Object.keys(d).forEach((function(t){var o=d[t];o||0===o?(0,c.default)(t)?h+=t+"("+o+") ":n+=(0,i.default)(t)+": "+o+";":(0,a.default)(e,(0,i.default)(t))})),h&&(n+=l.transform+": "+h+";");e.style.cssText+=";"+n};var r=n(o(3497)),i=n(o(4403)),s=n(o(7023)),a=n(o(1760)),l=o(702),c=n(o(3293));e.exports=t.default},1760:(e,t)=>{t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},3293:(e,t)=>{t.__esModule=!0,t.default=function(e){return!(!e||!o.test(e))};var o=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},702:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r,i,s,a,l,c,h,d,u,p,f,m=n(o(139)),g="transform";if(t.transform=g,t.animationEnd=s,t.transitionEnd=i,t.transitionDelay=h,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=f,t.animationTiming=p,t.animationDuration=u,t.animationName=d,m.default){var v=function(){for(var e,t,o=document.createElement("div").style,n={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},r=Object.keys(n),i="",s=0;s<r.length;s++){var a=r[s];if(a+"TransitionProperty"in o){i="-"+a.toLowerCase(),e=n[a]("TransitionEnd"),t=n[a]("AnimationEnd");break}}!e&&"transitionProperty"in o&&(e="transitionend");!t&&"animationName"in o&&(t="animationend");return o=null,{animationEnd:t,transitionEnd:e,prefix:i}}();r=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=s=v.animationEnd,t.transform=g=r+"-"+g,t.transitionProperty=a=r+"-transition-property",t.transitionDuration=l=r+"-transition-duration",t.transitionDelay=h=r+"-transition-delay",t.transitionTiming=c=r+"-transition-timing-function",t.animationName=d=r+"-animation-name",t.animationDuration=u=r+"-animation-duration",t.animationTiming=p=r+"-animation-delay",t.animationDelay=f=r+"-animation-timing-function"}var y={transform:g,end:i,property:a,timing:c,delay:h,duration:l};t.default=y},1908:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,(function(e,t){return t.toUpperCase()}))};var o=/-(.)/g;e.exports=t.default},3497:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e.replace(i,"ms-"))};var r=n(o(1908)),i=/^-ms-/;e.exports=t.default},1185:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,"-$1").toLowerCase()};var o=/([A-Z])/g;e.exports=t.default},4403:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e).replace(i,"-ms-")};var r=n(o(1185)),i=/^ms-/;e.exports=t.default},139:(e,t)=>{t.__esModule=!0,t.default=void 0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=o,e.exports=t.default},9425:e=>{var t={},o="(?:^|\\s)",n="(?:\\s|$)";function r(e){var r=t[e];return r?r.lastIndex=0:t[e]=r=new RegExp(o+e+n,"g"),r}e.exports={add:function(e,t){var o=e.className;o.length?r(t).test(o)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(r(t)," ").trim()}}},7137:(e,t,o)=>{var n=o(5229),r=o(1808),i=o(9425),s=document,a=s.documentElement;function l(e,t,n,i){o.g.navigator.pointerEnabled?r[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],i):o.g.navigator.msPointerEnabled?r[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],i):(r[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],i),r[t](e,n,i))}function c(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;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function h(e,t){return void 0!==o.g[t]?o.g[t]:a.clientHeight?a[e]:s.body[e]}function d(e,t,o){var n,r=e||{},i=r.className;return r.className+=" gu-hide",n=s.elementFromPoint(t,o),r.className=i,n}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 v(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||y(e)}function y(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||y(g(e))))}function C(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=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),n={pageX:"clientX",pageY:"clientY"};return e in n&&!(e in o)&&n[e]in o&&(e=n[e]),o[e]}e.exports=function(e,t){var o,y,_,R,w,b,T,E,x,M,O;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var I,D=null,N=t||{};void 0===N.moves&&(N.moves=p),void 0===N.accepts&&(N.accepts=p),void 0===N.invalid&&(N.invalid=function(){return!1}),void 0===N.containers&&(N.containers=e||[]),void 0===N.isContainer&&(N.isContainer=u),void 0===N.copy&&(N.copy=!1),void 0===N.copySortSource&&(N.copySortSource=!1),void 0===N.revertOnSpill&&(N.revertOnSpill=!1),void 0===N.removeOnSpill&&(N.removeOnSpill=!1),void 0===N.direction&&(N.direction="vertical"),void 0===N.ignoreInputTextSelection&&(N.ignoreInputTextSelection=!0),void 0===N.mirrorContainer&&(N.mirrorContainer=s.body);var G=n({containers:N.containers,start:function(e){var t=F(e);t&&B(t)},end:Z,cancel:Y,remove:$,destroy:function(){H(!0),j({})},canMove:function(e){return!!F(e)},dragging:!1});return!0===N.removeOnSpill&&G.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){G.dragging&&i.add(e,"gu-hide")})),H(),G;function z(e){return-1!==G.containers.indexOf(e)||N.isContainer(e)}function H(e){var t=e?"remove":"add";l(a,t,"mousedown",P),l(a,t,"mouseup",j)}function k(e){l(a,e?"remove":"add","mousemove",L)}function A(e){var t=e?"remove":"add";r[t](a,"selectstart",W),r[t](a,"click",W)}function W(e){I&&e.preventDefault()}function P(e){if(b=e.clientX,T=e.clientY,!(1!==c(e)||e.metaKey||e.ctrlKey)){var t=e.target,o=F(t);o&&(I=o,k(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function L(e){if(I)if(0!==c(e)){if(void 0===e.clientX||e.clientX!==b||void 0===e.clientY||e.clientY!==T){if(N.ignoreInputTextSelection){var t=S("clientX",e),n=S("clientY",e);if(v(s.elementFromPoint(t,n)))return}var r=I;k(!0),A(),Z(),B(r);var d,u={left:(d=_.getBoundingClientRect()).left+h("scrollLeft","pageXOffset"),top:d.top+h("scrollTop","pageYOffset")};R=S("pageX",e)-u.left,w=S("pageY",e)-u.top,i.add(M||_,"gu-transit"),function(){if(o)return;var e=_.getBoundingClientRect();(o=_.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",i.rm(o,"gu-transit"),i.add(o,"gu-mirror"),N.mirrorContainer.appendChild(o),l(a,"add","mousemove",J),i.add(N.mirrorContainer,"gu-unselectable"),G.emit("cloned",o,_,"mirror")}(),J(e)}}else j({})}function F(e){if(!(G.dragging&&o||z(e))){for(var t=e;g(e)&&!1===z(g(e));){if(N.invalid(e,t))return;if(!(e=g(e)))return}var n=g(e);if(n)if(!N.invalid(e,t))if(N.moves(e,n,t,C(e)))return{item:e,source:n}}}function B(e){var t,o;t=e.item,o=e.source,("boolean"==typeof N.copy?N.copy:N.copy(t,o))&&(M=e.item.cloneNode(!0),G.emit("cloned",M,e.item,"copy")),y=e.source,_=e.item,E=x=C(e.item),G.dragging=!0,G.emit("drag",_,y)}function Z(){if(G.dragging){var e=M||_;V(e,g(e))}}function U(){I=!1,k(!0),A(!0)}function j(e){if(U(),G.dragging){var t=M||_,n=S("clientX",e),r=S("clientY",e),i=X(d(o,n,r),n,r);i&&(M&&N.copySortSource||!M||i!==y)?V(t,i):N.removeOnSpill?$():Y()}}function V(e,t){var o=g(e);M&&N.copySortSource&&t===y&&o.removeChild(_),q(t)?G.emit("cancel",e,y,y):G.emit("drop",e,t,y,x),K()}function $(){if(G.dragging){var e=M||_,t=g(e);t&&t.removeChild(e),G.emit(M?"cancel":"remove",e,t,y),K()}}function Y(e){if(G.dragging){var t=arguments.length>0?e:N.revertOnSpill,o=M||_,n=g(o),r=q(n);!1===r&&t&&(M?n&&n.removeChild(M):y.insertBefore(o,E)),r||t?G.emit("cancel",o,y,y):G.emit("drop",o,n,y,x),K()}}function K(){var e=M||_;U(),o&&(i.rm(N.mirrorContainer,"gu-unselectable"),l(a,"remove","mousemove",J),g(o).removeChild(o),o=null),e&&i.rm(e,"gu-transit"),O&&clearTimeout(O),G.dragging=!1,D&&G.emit("out",e,D,y),G.emit("dragend",e),y=_=M=E=x=O=D=null}function q(e,t){var n;return n=void 0!==t?t:o?x:C(M||_),e===y&&n===E}function X(e,t,o){for(var n=e;n&&!r();)n=g(n);return n;function r(){if(!1===z(n))return!1;var r=Q(n,e),i=ee(n,r,t,o);return!!q(n,i)||N.accepts(_,n,y,i)}}function J(e){if(o){e.preventDefault();var t=S("clientX",e),n=S("clientY",e),r=t-R,i=n-w;o.style.left=r+"px",o.style.top=i+"px";var s=M||_,a=d(o,t,n),l=X(a,t,n),c=null!==l&&l!==D;(c||null===l)&&(D&&f("out"),D=l,c&&f("over"));var h=g(s);if(l!==y||!M||N.copySortSource){var u,p=Q(l,a);if(null!==p)u=ee(l,p,t,n);else{if(!0!==N.revertOnSpill||M)return void(M&&h&&h.removeChild(s));u=E,l=y}(null===u&&c||u!==s&&u!==C(s))&&(x=u,l.insertBefore(s,u),G.emit("shadow",s,l,y))}else h&&h.removeChild(s)}function f(e){G.emit(e,s,D,y)}}function Q(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===a?null:o}function ee(e,t,o,n){var r="horizontal"===N.direction,i=t!==e?function(){var e=t.getBoundingClientRect();if(r)return s(o>e.left+f(e)/2);return s(n>e.top+m(e)/2)}():function(){var t,i,s,a=e.children.length;for(t=0;t<a;t++){if(s=(i=e.children[t]).getBoundingClientRect(),r&&s.left+s.width/2>o)return i;if(!r&&s.top+s.height/2>n)return i}return null}();return i;function s(e){return e?C(t):t}}}},9915:(e,t,o)=>{o.d(t,{Z:()=>m});var n=o(4184),r=o.n(n),i=o(6689),s=o.n(i);class a{name;notify;constructor(e,t){this.name=e,this.notify=t}}class l{observer;unsubscribeCallback;constructor(e,t){this.observer=e,this.unsubscribeCallback=t}unsubscribe(){this.unsubscribeCallback(this.observer)}}const c=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){const o=new a(e,t);return this.observers.add(o),new l(o,(e=>{this.observers.delete(e)}))}unsubscribe(e){e&&e.unsubscribe()}},h="ON_DRAG_START",d="ON_DRAG_END";let u=null;const p=new Map;class f extends s().Component{dndComponentRef=s().createRef();mounted=!1;onDragStartSubscription;onDragEndSubscription;constructor(e){super(e),this.onDragStartSubscription=c.subscribe(h,(e=>{const t=null!==e.content&&p.get(e.content);this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData)})})),this.onDragEndSubscription=c.subscribe(d,(()=>{this.mounted&&this.setState({isDroppable:!1})})),this.state={isDragging:!1,isDroppable:!1,isOver:!1}}componentDidMount(){if(this.mounted=!0,null!==u){const 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){const{canDrop:n}=this.props;return n&&("boolean"==typeof n||n(e,t,o))}addDragEndEventListenerOnce(){const e=this.dndComponentRef?.current;e&&(e.removeEventListener("dragend",this.onDragEnd),e.addEventListener("dragend",this.onDragEnd,{once:!0}))}isDraggable(){const{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){const t=p.get(u);this.props.onDragEnter(e,t,this.props.dndData)}}onDragLeave(e){e.stopPropagation();const 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();const t=p.get(u);this.canDrop(e,t,this.props.dndData)&&(e.preventDefault(),this.setState({isOver:!0}))}onDragStart(e){e.stopPropagation();const{dndData:t,dndId:o,onBeginDrag:n}=this.props;u=o,p.set(u,t),this.addDragEndEventListenerOnce(),c.broadcast({name:h,content:u}),n&&n(e,t),this.setState({isDragging:!0})}onDragEnd=e=>{e.stopPropagation();const{dndData:t,onEndDrag:o}=this.props;o&&o(e,p.get(u),t),c.broadcast({name:d,content:u}),p.delete(u),u=null,this.mounted&&this.setState({isDragging:!1})};onDrop(e){e.stopPropagation();const{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(){const{children:e,className:t,forwardDndPropsToChildren:o,style:n}=this.props,{isDragging:i,isDroppable:a,isOver:l}=this.state,c=this.isDraggable(),h=r()("dnd-component",t,{draggable:c,dragging:i,droppable:a,hovering:l});return s().createElement("div",{className:h,draggable:c,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:n},o?this.cloneChildrenWithShallowMergedProps(e,{isDraggable:c,isDragging:i,isDroppable:a,isOver:l}):e)}}var m=f},3607:(e,t,o)=>{o.d(t,{Z:()=>gs});var n={};o.r(n),o.d(n,{types:()=>mi});var r=o(4184),i=o.n(r),s=o(6689),a=o.n(s);function l(e){switch(e){case 48:return 0;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 c(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function h(e){const t=e.h/360,{s:o,l:n,a:r}=e;let i,s,a;if(0===o)i=s=a=n;else{const e=n<.5?n*(1+o):n+o-n*o,r=2*n-e;i=c(r,e,t+1/3),s=c(r,e,t),a=c(r,e,t-1/3)}return{type:"rgba",r:Math.round(255*i),g:Math.round(255*s),b:Math.round(255*a),a:r}}const d=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function u(e){if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){const t=(e=e.trim()).length;if(0===t)return null;if(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)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:(16*l(e.charCodeAt(7))+l(e.charCodeAt(8)))/255};if(4===t){const t=l(e.charCodeAt(1)),o=l(e.charCodeAt(2)),n=l(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:1}}if(5===t){const t=l(e.charCodeAt(1)),o=l(e.charCodeAt(2)),n=l(e.charCodeAt(3)),r=l(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:(16*r+r)/255}}return null}(e);const t=d.exec(e);if(null==t)return null;const o=t[1];let n;switch(o){case"rgb":case"hsl":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),1];break;case"rgba":case"hsla":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),parseFloat(t[5])];break;default:return null}return"hsl"===o||"hsla"===o?h({h:n[0],s:n[1],l:n[2],a:n[3]}):{type:"rgba",r:n[0],g:n[1],b:n[2],a:n[3]}}const p=e=>{return"hsla"===(t=u(e)).type&&(t=h(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};var f=o(827),m=o(3308);const g=e=>!(e===f.o$||e===f.lH),v=/^.*(:?\n){0,2}/m;function y(e,t="\n"){return e.replace("\n"===t?v:new RegExp(`^.*(:?${t}){0,2}`,"m"),"")}const C=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;function S(e){const t=[];for(let o=C.exec(e);null!==o;o=C.exec(e)){const[,e,n]=o;t.push({name:e,email:n})}return t}var _=o(376),R=o(7675);const w=/(?<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,b=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,T=new Map;let E;const x=["th","st","nd","rd"];function M(e){const t=e%100;return`${e}${x[(t-20)%10]??x[t]??x[0]}`}function O(e,t,o,n=!0){const r=`${o??""}:${t=t??void 0}`;let i=T.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=b.exec(e);if(null!=t?.groups){const{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}const o={localeMatcher:"best fit"};for(const{groups:t}of e.matchAll(w))if(null!=t)for(const e in t){const n=t[e];if(null!=n)switch(e){case"year":o.year=4===n.length?"numeric":"2-digit";break;case"month":switch(n.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":o.day="DD"===n?"2-digit":"numeric";break;case"weekday":switch(n.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===n.length?"2-digit":"numeric",o.hour12="hh"===n||"h"===n;break;case"minute":o.minute=2===n.length?"2-digit":"numeric";break;case"second":o.second=2===n.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===n.length?"long":"short"}}return o}(t);let s;s=null==o?E:"system"===o?void 0:[o],i=new Intl.DateTimeFormat(s,e),n&&T.set(r,i)}if(null==t||b.test(t))return i.format(e);function s(e){const t=`${o??""}:time:${e}`;let r=T.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let s;s=null==o?E:"system"===o?void 0:[o],r=new Intl.DateTimeFormat(s,i),n&&T.set(t,r)}return r}const a=i.formatToParts(e);return t.replace(w,((t,o,n,r,i,l,c,h,d,u,p,f,m,g,v)=>{if(null!=o)return o.substring(1,o.length-1);for(const t in v){const o=v[t];if(null==o)continue;const n=a.find((e=>e.type===t));if("Do"===o&&"day"===n?.type)return M(Number(n.value));if("a"===o&&"dayPeriod"===n?.type){const t=s("short").formatToParts(e).find((e=>"dayPeriod"===e.type));return` ${(t??n)?.value??""}`}return n?.value??""}return""}))}let I={};function D(e,t,o,n){const r=`${e}${n?"_compact":""}`;let i=I[e];return i||(i=o+e*t+t/2,I[r]=i,i)}const N={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 G(e,t){let o="";for(const[e,n]of Object.entries(N)){const r=t[n];r&&(o+=` ${e}="${r}"`)}return`<${e}${o} />`}function z(e){return G("line",e)}function H(e,t,o,n){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:o,strokeDasharray:g(e)?n?1:2:0,stroke:t}}function k(e,t,o,n){return`${e}_${t}_${o||"+"}${n?"_compact":""}`}function A(e,t,o){return`${e}_${t||"+"}${o?"_compact":""}`}var W=o(2149),P=o(5191),L=o(466);const F={"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","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"};var B=o(8649),Z=o(4561);const U={0:1,90:0,180:-1,270:0},j={0:0,90:1,180:0,270:-1},V=m.O5-m.NP,$=` A ${V} ${V} 0 0 0 `;function Y(e,t,o){const n=U[o],r=j[o];return{x:e-m.O5*n,xOffset:-n*m.NP,y:t+m.O5*r,yOffset:r*m.NP}}const K={};var q=function(e,t,o,n,r,i,s,a){const l=H(n,e,s,a);return l.d=function(e,t,o,n){const r=`${e}_${t}_${o}_${n}`;let i=K[r];if(i)return i;const s=Y(e,t,n),a=Y(e,t,o);return i=`M ${s.x} ${s.y}${a.xOffset?` H ${s.x+a.xOffset}`:` V ${s.y+a.yOffset}`}${$}${a.x+s.xOffset} ${a.y+s.yOffset}${s.xOffset?` H ${a.x}`:` V ${a.y}`}`,K[r]=i,i}(r,i,o,t),G("path",l)};let X={};function J(e,t,o,n,r,i,s,a){const l=k(e,t,o,a);let c=X[l];return c||(c=function(e,t){return e===t}(t,e)?function(e,t,o,n,r,i,s){const a=H(o,e,i,s);return a.x1=D(t,n,r,s),a.x2=D(t,n,r,s),a.y1=0,a.y2=m.at/2,z(a)}(n[e],t,o,r,i,s,a):function(e,t,o,n,r,i,s,a){const l=H(n,e,s,a),c=t<o?-m.O5:m.O5,h={...l};h.x1=D(o,r,i,a),h.x2=D(o,r,i,a),h.y1=0,h.y2=m.An;const d={...l};return d.x1=D(o,r,i,a)+c,d.x2=D(t,r,i,a),d.y1=m.at/2,d.y2=m.at/2,`<g>${z(h)}${q(e,t>o?0:90,t>o?90:180,n,D(o,r,i,a)+c,m.An,s,a)}${z(d)}</g>`}(n[e],t,e,o,r,i,s,a),X[l]=c,c)}let Q={};function ee(e,t,o,n,r,i,s){const a=A(e,t,s);let l=Q[a];if(l)return l;const c=D(e,n,r,s),h=H(t,o[e],i,s);return h.x1=c,h.x2=c,h.y1=0,h.y2=m.at,l=z(h),Q[a]=l,l}let te={};function oe(e,t,o,n,r,i,s,a){const l=k(e,t,o,a);let c=te[l];return c||(c=function(e,t){return e===t}(t,e)?function(e,t,o,n,r,i,s){const a=H(o,e,i,s);return a.x1=D(t,n,r,s),a.x2=D(t,n,r,s),a.y1=m.at/2,a.y2=m.at,z(a)}(n[e],t,o,r,i,s,a):function(e,t,o,n,r,i,s,a){const l=H(n,e,s,a),c=t<o?-m.O5:m.O5,h={...l};h.x1=D(o,r,i,a),h.x2=D(o,r,i,a),h.y1=m.at-m.$s,h.y2=m.at;const d={...l};return d.x1=D(o,r,i,a)+c,d.x2=D(t,r,i,a),d.y1=m.at/2,d.y2=m.at/2,`<g>${q(e,t<o?180:270,t<o?270:0,n,D(o,r,i,a)+c,m.at-m.$s,s,a)}${z(h)}${z(d)}</g>`}(n[e],t,e,o,r,i,s,a),te[l]=c,c)}let ne={};function re(e,t,o,n,r,i,s,a){const l=function(e,t,o,n){let r="";for(let i=0;i<=t;i++){const{passThrough:t,starting:s,ending:a}=e[i]??{};r=`${r}_${k(i,o,s?.type,n)}_${k(i,o,a?.type,n)}_${A(i,t?.type,n)}`}return r}(e,t,o,a);let c=ne[l];if(c)return c;let h="";for(let l=0;l<=t;l+=1){const t=e[l];if(!t)continue;const{passThrough:c,starting:d,ending:u}=t;h+=d?oe(l,o,d.type,n,r,i,s,a):"",h+=c?ee(l,c.type,n,r,i,s,a):"",h+=u?J(l,o,u.type,n,r,i,s,a):""}return c=`url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${h}</g></svg>')`,ne[l]=c,c}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e){return se="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},se(e)}function ae(e){var t=function(e,t){if("object"!==se(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==se(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===se(t)?t:String(t)}function le(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ae(n.key),n)}}function ce(e,t,o){return t&&le(e.prototype,t),o&&le(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function he(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e,t){if(t&&("object"===se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return he(e)}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}function pe(e,t){return pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pe(e,t)}function fe(e,t){if("function"!=typeof t&&null!==t)throw new 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&&pe(e,t)}function me(e,t,o){return(t=ae(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var ge=o(6871);function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ve.apply(this,arguments)}function ye(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=ye(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const Ce=function(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=ye(e))&&(n&&(n+=" "),n+=t);return n};function Se(e){var t=e.cellCount,o=e.cellSize,n=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,s=e.nextCellSize,a=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof o&&"number"!=typeof s||o===s)||(n(r),l>=0&&l===a&&c())}function _e(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var Re=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;ie(this,e),me(this,"_cellSizeAndPositionData",{}),me(this,"_lastMeasuredIndex",-1),me(this,"_lastBatchedIndex",-1),me(this,"_cellCount",void 0),me(this,"_cellSizeGetter",void 0),me(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return ce(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=n}},{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,n=this._lastMeasuredIndex+1;n<=e;n++){var r=this._cellSizeGetter({index:n});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));null===r?(this._cellSizeAndPositionData[n]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:o,size:r},o+=r,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=e.align,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var s,a=this.getSizeAndPositionOfCell(i),l=a.offset,c=l-n+a.size;switch(o){case"start":s=l;break;case"end":s=c;break;case"center":s=l-(n-a.size)/2;break;default:s=Math.max(c,Math.min(l,r))}var h=this.getTotalSize();return Math.max(0,Math.min(h-n,s))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var n=o+t,r=this._findNearestCell(o),i=this.getSizeAndPositionOfCell(r);o=i.offset+i.size;for(var s=r;o<n&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:r,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 n=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===o)return n;r<o?t=n+1:r>o&&(e=n-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}(),we=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},be=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?we():o,r=_e(t,["maxScrollSize"]);ie(this,e),me(this,"_cellSizeAndPositionManager",void 0),me(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Re(r),this._maxScrollSize=n}return ce(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,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(r-n))}},{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=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var s=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:s})}},{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,n=e.totalSize;return n<=t?0:o/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(n-t))}}]),e}();function Te(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var n=o.callback,r=o.indices,i=Object.keys(r),s=!e||i.every((function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0})),a=i.length!==Object.keys(t).length||i.some((function(e){var o=t[e],n=r[e];return Array.isArray(n)?o.join(",")!==n.join(","):o!==n}));t=r,s&&a&&n(r)}}var Ee=-1;function xe(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,n=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,s=e.previousScrollToIndex,a=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,h=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=h>=0&&h<f;m&&(d!==a||u||!r||"number"==typeof t&&t!==r||c!==i||h!==s)?p(h):!m&&f>0&&(d<a||f<n)&&l>o.getTotalSize()-d&&p(f-1)}const Me=!("undefined"==typeof window||!window.document||!window.document.createElement);var Oe,Ie;function De(e){if((!Oe&&0!==Oe||e)&&Me){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),Oe=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Oe}var Ne,Ge,ze=(Ie="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||Ie.webkitRequestAnimationFrame||Ie.mozRequestAnimationFrame||Ie.oRequestAnimationFrame||Ie.msRequestAnimationFrame||function(e){return Ie.setTimeout(e,1e3/60)},He=Ie.cancelAnimationFrame||Ie.webkitCancelAnimationFrame||Ie.mozCancelAnimationFrame||Ie.oCancelAnimationFrame||Ie.msCancelAnimationFrame||function(e){Ie.clearTimeout(e)},ke=ze,Ae=He,We=function(e){return Ae(e.id)},Pe=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:ke((function r(){Date.now()-o>=t?e.call():n.id=ke(r)}))};return n};function Le(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Fe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Le(o,!0).forEach((function(t){me(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Le(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Be="observed",Ze="requested",Ue=(Ge=Ne=function(e){function t(e){var o;ie(this,t),me(he(o=de(this,ue(t).call(this,e))),"_onGridRenderedMemoizer",Te()),me(he(o),"_onScrollMemoizer",Te(!1)),me(he(o),"_deferredInvalidateColumnIndex",null),me(he(o),"_deferredInvalidateRowIndex",null),me(he(o),"_recomputeScrollLeftFlag",!1),me(he(o),"_recomputeScrollTopFlag",!1),me(he(o),"_horizontalScrollBarSize",0),me(he(o),"_verticalScrollBarSize",0),me(he(o),"_scrollbarPresenceChanged",!1),me(he(o),"_scrollingContainer",void 0),me(he(o),"_childrenToDisplay",void 0),me(he(o),"_columnStartIndex",void 0),me(he(o),"_columnStopIndex",void 0),me(he(o),"_rowStartIndex",void 0),me(he(o),"_rowStopIndex",void 0),me(he(o),"_renderedColumnStartIndex",0),me(he(o),"_renderedColumnStopIndex",0),me(he(o),"_renderedRowStartIndex",0),me(he(o),"_renderedRowStopIndex",0),me(he(o),"_initialScrollTop",void 0),me(he(o),"_initialScrollLeft",void 0),me(he(o),"_disablePointerEventsTimeoutId",void 0),me(he(o),"_styleCache",{}),me(he(o),"_cellCache",{}),me(he(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),me(he(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}})})),me(he(o),"_onWheel",(function(e){var t=e.deltaX,n=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:n})})),me(he(o),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e})),me(he(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new be({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new be({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:r,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 fe(t,e),ce(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,n=e.columnIndex,r=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,s=void 0===i?this.props.scrollToRow:i,a=Fe({},this.props,{scrollToAlignment:o,scrollToColumn:r,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{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=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n;if(!(r<0)){this._debounceScrollEnded();var i=this.props,s=i.autoHeight,a=i.autoWidth,l=i.height,c=i.width,h=this.state.instanceProps,d=h.scrollbarSize,u=h.rowSizeAndPositionManager.getTotalSize(),p=h.columnSizeAndPositionManager.getTotalSize(),f=Math.min(Math.max(0,p-c+d),o),m=Math.min(Math.max(0,u-l+d),r);if(this.state.scrollLeft!==f||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?1:Ee:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:Ee:this.state.scrollDirectionVertical,scrollPositionChangeReason:Be};s||(g.scrollTop=m),a||(g.scrollLeft=f),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:u})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.height,a=n.width,l=this.state.instanceProps.scrollbarSize,c=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),h=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,h-a+l),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,c-s+l),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:Ee:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?1:Ee:this.state.scrollDirectionVertical,scrollPositionChangeReason:Ze};r||(p.scrollTop=u),i||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:h,totalRowsHeight:c})}},{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,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.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,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.scrollToColumn,a=i.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(o),l.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=s>=0&&(1===this.state.scrollDirectionHorizontal?o<=s:o>=s),this._recomputeScrollTopFlag=a>=0&&(1===this.state.scrollDirectionVertical?r<=a:r>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,n=this.props,r=n.columnCount,i=n.onScrollToTargetCausedUpdate,s=this.state,a=s.scrollLeft,l=s.scrollTop,c=this.props,h=this.state,d=void 0,u=void 0;if(r>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(Fe({},c,{scrollToColumn:t}),h,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(Fe({},c,{scrollToRow:o}),h,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(i&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:a,g="number"!=typeof u?u:l;i({clientHeight:c.height,clientWidth:c.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,n=e.height,r=e.scrollLeft,i=e.scrollToColumn,s=e.scrollTop,a=e.scrollToRow,l=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=Fe({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof r&&r>=0||"number"==typeof s&&s>=0){var h=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:s});h&&(h.needToResetStyleCache=!1,this.setState(h))}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=n>0&&l>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:s||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.columnCount,a=n.height,l=n.rowCount,c=n.scrollToAlignment,h=n.scrollToColumn,d=n.scrollToRow,u=n.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var y=s>0&&0===e.columnCount||l>0&&0===e.rowCount;m===Ze&&(!i&&f>=0&&(f!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=f),!r&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var C=(0===e.width||0===e.height)&&a>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):xe({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:c,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):xe({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var S=v.rowSizeAndPositionManager.getTotalSize(),_=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:_,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&We(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,n=e.autoWidth,r=e.className,i=e.containerProps,a=e.containerRole,l=e.containerStyle,c=e.height,h=e.id,d=e.noContentRenderer,u=e.role,p=e.style,f=e.tabIndex,m=e.width,g=this.state,v=g.instanceProps,y=g.needToResetStyleCache,C=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var _=v.columnSizeAndPositionManager.getTotalSize(),R=v.rowSizeAndPositionManager.getTotalSize(),w=R>c?v.scrollbarSize:0,b=_>m?v.scrollbarSize:0;b===this._horizontalScrollBarSize&&w===this._verticalScrollBarSize||(this._horizontalScrollBarSize=b,this._verticalScrollBarSize=w,this._scrollbarPresenceChanged=!0),S.overflowX=_+w<=m?"hidden":"auto",S.overflowY=R+b<=c?"hidden":"auto";var T=this._childrenToDisplay,E=0===T.length&&c>0&&m>0;return s.createElement("div",ve({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Ce("ReactVirtualized__Grid",r),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:u,style:Fe({},S,{},p),tabIndex:f}),T.length>0&&s.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:Fe({width:t?"auto":_,height:R,maxWidth:_,maxHeight:R,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"},l)},T),E&&d())}},{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,n=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,s=e.height,a=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,h=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,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var C=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),S=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),_=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),R=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=C.start,this._renderedColumnStopIndex=C.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var w=l({direction:"horizontal",cellCount:r,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof C.start?C.start:0,stopIndex:"number"==typeof C.stop?C.stop:-1}),b=l({direction:"vertical",cellCount:h,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),T=w.overscanStartIndex,E=w.overscanStopIndex,x=b.overscanStartIndex,M=b.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var O=x;O<=M;O++)if(!i.has(O,0)){T=0,E=r-1;break}if(!i.hasFixedWidth())for(var I=T;I<=E;I++)if(!i.has(0,I)){x=0,M=h-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:T,columnStopIndex:E,deferredMeasurementCache:i,horizontalOffsetAdjustment:_,isScrolling:y,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:x,rowStopIndex:M,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:R,visibleColumnIndices:C,visibleRowIndices:S}),this._columnStartIndex=T,this._columnStopIndex=E,this._rowStartIndex=x,this._rowStopIndex=M}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&We(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Pe(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,n=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:n,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:n}})}},{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")?Boolean(e.isScrolling):Boolean(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,n=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{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,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}},{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 n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(n,"-").concat(r);this._styleCache[i]=e[i],o&&(this._cellCache[i]=t[i])}}},{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,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollTopForScrollToRowStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}}],[{key:"getDerivedStateFromProps",value:function(e,o){var 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 r,i,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}),Se({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)}}),Se({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,Fe({},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,n=e.scrollTop,r={scrollPositionChangeReason:Ze};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?1:Ee,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?1:Ee,r.scrollTop=n),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,n=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,s=e.width,a=t.scrollLeft,l=t.instanceProps;if(o>0){var c=o-1,h=i<0?c:Math.min(c,i),d=l.rowSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>n?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:s-u,currentOffset:a,targetIndex:h})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var n=o.scrollLeft,r=t._getCalculatedScrollLeft(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,n=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,s=e.width,a=t.scrollTop,l=t.instanceProps;if(n>0){var c=n-1,h=i<0?c:Math.min(c,i),d=l.columnSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>s?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:o-u,currentOffset:a,targetIndex:h})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var n=o.scrollTop,r=t._getCalculatedScrollTop(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:r}):{}}}]),t}(s.PureComponent),me(Ne,"propTypes",null),Ge);me(Ue,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,n=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,s=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,h=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],C=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!l&&!C,_=u;_<=p;_++)for(var R=d.getSizeAndPositionOfCell(_),w=r;w<=i;w++){var b=n.getSizeAndPositionOfCell(w),T=w>=g.start&&w<=g.stop&&_>=v.start&&_<=v.stop,E="".concat(_,"-").concat(w),x=void 0;S&&f[E]?x=f[E]:s&&!s.has(_,w)?x={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(x={height:R.size,left:b.offset+a,position:"absolute",top:R.offset+m,width:b.size},f[E]=x);var M={columnIndex:w,isScrolling:l,isVisible:T,key:E,parent:h,rowIndex:_,style:x},O=void 0;!c&&!l||a||m?O=o(M):(t[E]||(t[E]=o(M)),O=t[E]),null!=O&&!1!==O&&y.push(O)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:De,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,ge.polyfill)(Ue);const je=Ue;function Ve(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),1===n?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i+1)}}var $e,Ye;function Ke(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var qe=(Ye=$e=function(e){function t(){var e,o;ie(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return me(he(o=de(this,(e=ue(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),me(he(o),"_columnStartIndex",0),me(he(o),"_columnStopIndex",0),me(he(o),"_rowStartIndex",0),me(he(o),"_rowStopIndex",0),me(he(o),"_onKeyDown",(function(e){var t=o.props,n=t.columnCount,r=t.disabled,i=t.mode,s=t.rowCount;if(!r){var a=o._getScrollState(),l=a.scrollToColumn,c=a.scrollToRow,h=o._getScrollState(),d=h.scrollToColumn,u=h.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===i?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,n-1):Math.min(o._columnStopIndex+1,n-1);break;case"ArrowUp":u="cells"===i?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}d===l&&u===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}})),me(he(o),"_onSectionRendered",(function(e){var t=e.columnStartIndex,n=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=n,o._rowStartIndex=r,o._rowStopIndex=i})),o}return fe(t,e),ce(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,n=this._getScrollState(),r=n.scrollToColumn,i=n.scrollToRow;return s.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:r,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,n=this.props,r=n.isControlled,i=n.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:o}),r||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?Ke(o,!0).forEach((function(t){me(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ke(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}(s.PureComponent),me($e,"propTypes",null),Ye);me(qe,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,ge.polyfill)(qe);function Xe(e,t){var n,r=void 0!==(n=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o.g).document&&n.document.attachEvent;if(!r){var i=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),s=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(o){o.call(t,e)})))}))}},c=!1,h="",d="animationstart",u="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=n.document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var m=0;m<u.length;m++)if(void 0!==f.style[u[m]+"AnimationName"]){h="-"+u[m].toLowerCase()+"-",d=p[m],c=!0;break}var g="resizeanim",v="@"+h+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",y=h+"animation: 1ms "+g+"; "}return{addResizeListener:function(t,o){if(r)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,s=n.getComputedStyle(t);s&&"static"==s.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(v||"")+".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%; }',n=t.head||t.getElementsByTagName("head")[0],r=t.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(t.createTextNode(o)),n.appendChild(r)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var h=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=h.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),a(t),t.addEventListener("scroll",l,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&a(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var Je,Qe;function et(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function tt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?et(o,!0).forEach((function(t){me(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):et(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var ot=(Qe=Je=function(e){function t(){var e,o;ie(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return me(he(o=de(this,(e=ue(t)).call.apply(e,[this].concat(r)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),me(he(o),"_parentNode",void 0),me(he(o),"_autoSizer",void 0),me(he(o),"_window",void 0),me(he(o),"_detectElementResize",void 0),me(he(o),"_onResize",(function(){var e=o.props,t=e.disableHeight,n=e.disableWidth,r=e.onResize;if(o._parentNode){var i=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,a=(o._window||window).getComputedStyle(o._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,c=parseInt(a.paddingRight,10)||0,h=parseInt(a.paddingTop,10)||0,d=parseInt(a.paddingBottom,10)||0,u=i-h-d,p=s-l-c;(!t&&o.state.height!==u||!n&&o.state.width!==p)&&(o.setState({height:i-h-d,width:s-l-c}),r({height:i,width:s}))}})),me(he(o),"_setRef",(function(e){o._autoSizer=e})),o}return fe(t,e),ce(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=Xe(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,n=e.disableHeight,r=e.disableWidth,i=e.style,a=this.state,l=a.height,c=a.width,h={overflow:"visible"},d={};return n||(h.height=0,d.height=l),r||(h.width=0,d.width=c),s.createElement("div",{className:o,ref:this._setRef,style:tt({},h,{},i)},t(d))}}]),t}(s.Component),me(Je,"propTypes",null),Qe);me(ot,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var nt,rt,it=o(6405),st=o.n(it),at=(rt=nt=function(e){function t(){var e,o;ie(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return me(he(o=de(this,(e=ue(t)).call.apply(e,[this].concat(r)))),"_child",void 0),me(he(o),"_measure",(function(){var e=o.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,s=e.rowIndex,a=void 0===s?o.props.index||0:s,l=o._getCellMeasurements(),c=l.height,h=l.width;c===t.getHeight(a,r)&&h===t.getWidth(a,r)||(t.set(a,r,h,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:a}))})),me(he(o),"_registerChild",(function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()})),o}return fe(t,e),ce(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,it.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),n&&(t.style.height=n),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,n=void 0===o?0:o,r=e.parent,i=e.rowIndex,s=void 0===i?this.props.index||0:i;if(!t.has(s,n)){var a=this._getCellMeasurements(),l=a.height,c=a.width;t.set(s,n,c,l),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:s})}}}]),t}(s.PureComponent),me(nt,"propTypes",null),rt);me(at,"__internalCellMeasurerFlag",!1);function lt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ct(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?lt(o,!0).forEach((function(t){me(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):lt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var ht="observed",dt="requested",ut=function(e){function t(){var e,o;ie(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return me(he(o=de(this,(e=ue(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),me(he(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),me(he(o),"_onSectionRenderedMemoizer",Te()),me(he(o),"_onScrollMemoizer",Te(!1)),me(he(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),me(he(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),me(he(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,n=e.height,r=e.scrollToAlignment,i=e.scrollToCell,s=e.width,a=o.state,l=a.scrollLeft,c=a.scrollTop;if(i>=0){var h=t.getScrollPositionForCell({align:r,cellIndex:i,height:n,scrollLeft:l,scrollTop:c,width:s});h.scrollLeft===l&&h.scrollTop===c||o._setScrollPosition(h)}})),me(he(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,n=t.cellLayoutManager,r=t.height,i=t.isScrollingChange,s=t.width,a=o._scrollbarSize,l=n.getTotalSize(),c=l.height,h=l.width,d=Math.max(0,Math.min(h-s+a,e.target.scrollLeft)),u=Math.max(0,Math.min(c-r+a,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?ht:dt;o.state.isScrolling||i(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:h,totalHeight:c})}})),o._scrollbarSize=De(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return fe(t,e),ce(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,n=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=De(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(o>=0||r>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),s=i.height,a=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:r||0,totalHeight:s,totalWidth:a})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.height,r=o.scrollToAlignment,i=o.scrollToCell,s=o.width,a=this.state,l=a.scrollLeft,c=a.scrollPositionChangeReason,h=a.scrollTop;c===dt&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),h>=0&&h!==t.scrollTop&&h!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=h)),n===e.height&&r===e.scrollToAlignment&&i===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,n=e.cellLayoutManager,r=e.className,i=e.height,a=e.horizontalOverscanSize,l=e.id,c=e.noContentRenderer,h=e.style,d=e.verticalOverscanSize,u=e.width,p=this.state,f=p.isScrolling,m=p.scrollLeft,g=p.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),y=v.height,C=v.width,S=Math.max(0,m-a),_=Math.max(0,g-d),R=Math.min(C,m+u+a),w=Math.min(y,g+i+d),b=i>0&&u>0?n.cellRenderers({height:w-_,isScrolling:f,width:R-S,x:S,y:_}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},E=y>i?this._scrollbarSize:0,x=C>u?this._scrollbarSize:0;return T.overflowX=C+E<=u?"hidden":"auto",T.overflowY=y+x<=i?"hidden":"auto",s.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Ce("ReactVirtualized__Collection",r),id:l,onScroll:this._onScroll,role:"grid",style:ct({},T,{},h),tabIndex:0},o>0&&s.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:C,overflow:"hidden",pointerEvents:f?"none":"",width:C}},b),0===o&&c())}},{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,n=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:r,scrollLeft:o,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,n={scrollPositionChangeReason:dt};t>=0&&(n.scrollLeft=t),o>=0&&(n.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?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:dt}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:dt}}}]),t}(s.PureComponent);me(ut,"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}),ut.propTypes={},(0,ge.polyfill)(ut);const pt=ut;var ft=function(){function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;ie(this,e),this.height=o,this.width=n,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return ce(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}(),mt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;ie(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return ce(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,n=e.x,r=e.y,i={};return this.getSections({height:t,width:o,x:n,y:r}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[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,n=e.x,r=e.y,i=Math.floor(n/this._sectionSize),s=Math.floor((n+o-1)/this._sectionSize),a=Math.floor(r/this._sectionSize),l=Math.floor((r+t-1)/this._sectionSize),c=[],h=i;h<=s;h++)for(var d=a;d<=l;d++){var u="".concat(h,".").concat(d);this._sections[u]||(this._sections[u]=new ft({height:this._sectionSize,width:this._sectionSize,x:h*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[u])}return c}},{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 gt(e){var t=e.align,o=void 0===t?"auto":t,n=e.cellOffset,r=e.cellSize,i=e.containerSize,s=e.currentOffset,a=n,l=a-i+r;switch(o){case"start":return a;case"end":return l;case"center":return a-(i-r)/2;default:return Math.max(l,Math.min(a,s))}}var vt=function(e){function t(e,o){var n;return ie(this,t),(n=de(this,ue(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(he(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(he(n)),n}return fe(t,e),ce(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=ve({},this.props);return s.createElement(pt,ve({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,n=e.sectionSize,r=[],i=new mt(n),s=0,a=0,l=0;l<t;l++){var c=o({index:l});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(l,":\n x:").concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));s=Math.max(s,c.y+c.height),a=Math.max(a,c.x+c.width),r[l]=c,i.registerCell({cellMetadatum:c,index:l})}return{cellMetadata:r,height:s,sectionManager:i,width:a}}({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,n=e.height,r=e.scrollLeft,i=e.scrollTop,s=e.width,a=this.props.cellCount;if(o>=0&&o<a){var l=this._cellMetadata[o];r=gt({align:t,cellOffset:l.x,cellSize:l.width,containerSize:s,currentOffset:r,targetIndex:o}),i=gt({align:t,cellOffset:l.y,cellSize:l.height,containerSize:n,currentOffset:i,targetIndex:o})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,n=e.isScrolling,r=e.width,i=e.x,s=e.y,a=this.props,l=a.cellGroupRenderer,c=a.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:r,x:i,y:s}),l({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(s.PureComponent);me(vt,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,n=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map((function(e){var r=n({index:e}),s={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=o(s)),t[e]):o(s)})).filter((function(e){return!!e}))}}),vt.propTypes={};(function(e){function t(e,o){var n;return ie(this,t),(n=de(this,ue(t).call(this,e,o)))._registerChild=n._registerChild.bind(he(n)),n}return fe(t,e),ce(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,n=t.columnMinWidth,r=t.columnCount,i=t.width;o===e.columnMaxWidth&&n===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,n=e.columnMinWidth,r=e.columnCount,i=e.width,s=n||1,a=o?Math.min(o,i):i,l=i/r;return l=Math.max(s,l),l=Math.min(a,l),l=Math.floor(l),t({adjustedWidth:Math.min(i,l*r),columnWidth:l,getColumnWidth:function(){return l},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}(s.PureComponent)).propTypes={};function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Ct(e,t){if(e){if("string"==typeof e)return yt(e,t);var o=Object.prototype.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)?yt(e,t):void 0}}function St(e){return function(e){if(Array.isArray(e))return yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ct(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _t=function(e){function t(e,o){var n;return ie(this,t),(n=de(this,ue(t).call(this,e,o)))._loadMoreRowsMemoizer=Te(),n._onRowsRendered=n._onRowsRendered.bind(he(n)),n._registerChild=n._registerChild.bind(he(n)),n}return fe(t,e),ce(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Te(),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 n=o(e);n&&n.then((function(){var o,n,r,i,s;o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},n=o.lastRenderedStartIndex,r=o.lastRenderedStopIndex,i=o.startIndex,s=o.stopIndex,i>r||s<n||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,n=this,r=this.props,i=r.isRowLoaded,s=r.minimumBatchSize,a=r.rowCount,l=r.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,n=e.rowCount,r=e.startIndex,i=e.stopIndex,s=[],a=null,l=null,c=r;c<=i;c++){t({index:c})?null!==l&&(s.push({startIndex:a,stopIndex:l}),a=l=null):(l=c,null===a&&(a=c))}if(null!==l){for(var h=Math.min(Math.max(l,a+o-1),n-1),d=l+1;d<=h&&!t({index:d});d++)l=d;s.push({startIndex:a,stopIndex:l})}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:i,minimumBatchSize:s,rowCount:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(a-1,t+l)}),h=(o=[]).concat.apply(o,St(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(s.PureComponent);me(_t,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),_t.propTypes={};var Rt,wt,bt=(wt=Rt=function(e){function t(){var e,o;ie(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return me(he(o=de(this,(e=ue(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),me(he(o),"_cellRenderer",(function(e){var t=e.parent,n=e.rowIndex,r=e.style,i=e.isScrolling,s=e.isVisible,a=e.key,l=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(r,"width");return c&&c.writable&&(r.width="100%"),l({index:n,style:r,isScrolling:i,isVisible:s,key:a,parent:t})})),me(he(o),"_setRef",(function(e){o.Grid=e})),me(he(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),me(he(o),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:n,scrollTop:r})})),me(he(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})})),o}return fe(t,e),ce(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=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{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,n=e.scrollToIndex,r=e.width,i=Ce("ReactVirtualized__List",t);return s.createElement(je,ve({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(s.PureComponent),me(Rt,"propTypes",null),wt);function Tt(e,t){return 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 n,r,i,s,a=[],l=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(e,t)||Ct(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}me(bt,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Ve,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const Et={ge:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>=0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>=n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},gt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},lt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},le:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<=0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<=n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},eq:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(;t<=o;){var i=t+o>>>1,s=r(e[i],n);if(0===s)return i;s<=0?t=i+1:o=i-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(;t<=o;){var r=t+o>>>1,i=e[r];if(i===n)return r;i<=n?t=r+1:o=r-1}return-1}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)}};function xt(e,t,o,n,r){this.mid=e,this.left=t,this.right=o,this.leftPoints=n,this.rightPoints=r,this.count=(t?t.count:0)+(o?o.count:0)+n.length}var Mt=xt.prototype;function Ot(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 It(e,t){var o=Pt(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 Dt(e,t){var o=e.intervals([]);o.push(t),It(e,o)}function Nt(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?0:(o.splice(n,1),It(e,o),1)}function Gt(e,t,o){for(var n=0;n<e.length&&e[n][0]<=t;++n){var r=o(e[n]);if(r)return r}}function zt(e,t,o){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var r=o(e[n]);if(r)return r}}function Ht(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function kt(e,t){return e-t}function At(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function Wt(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function Pt(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(kt);var n=t[t.length>>1],r=[],i=[],s=[];for(o=0;o<e.length;++o){var a=e[o];a[1]<n?r.push(a):n<a[0]?i.push(a):s.push(a)}var l=s,c=s.slice();return l.sort(At),c.sort(Wt),new xt(n,Pt(r),Pt(i),l,c)}function Lt(e){this.root=e}Mt.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},Mt.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)?Dt(this,e):this.left.insert(e):this.left=Pt([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Dt(this,e):this.right.insert(e):this.right=Pt([e]);else{var o=Et.ge(this.leftPoints,e,At),n=Et.ge(this.rightPoints,e,Wt);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},Mt.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Nt(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Nt(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;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 o=this,n=this.left;n.right;)o=n,n=n.right;if(o===this)n.right=this.right;else{var r=this.left,i=this.right;o.count-=n.count,o.right=n.left,n.left=r,n.right=i}Ot(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Ot(this,this.left):Ot(this,this.right);return 1}for(r=Et.ge(this.leftPoints,e,At);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e){this.count-=1,this.leftPoints.splice(r,1);for(i=Et.ge(this.rightPoints,e,Wt);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1}return 0},Mt.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(o=this.left.queryPoint(e,t))return o;return Gt(this.leftPoints,e,t)}if(e>this.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return zt(this.rightPoints,e,t)}return Ht(this.leftPoints,t)},Mt.queryInterval=function(e,t,o){var n;if(e<this.mid&&this.left&&(n=this.left.queryInterval(e,t,o)))return n;if(t>this.mid&&this.right&&(n=this.right.queryInterval(e,t,o)))return n;return t<this.mid?Gt(this.leftPoints,t,o):e>this.mid?zt(this.rightPoints,e,o):Ht(this.leftPoints,o)};var Ft=Lt.prototype;Ft.insert=function(e){this.root?this.root.insert(e):this.root=new xt(e[0],null,null,[e],[e])},Ft.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Ft.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ft.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(Ft,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ft,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Bt,Zt,Ut=function(){function e(){var t;ie(this,e),me(this,"_columnSizeMap",{}),me(this,"_intervalTree",t&&0!==t.length?new Lt(Pt(t)):new Lt(null)),me(this,"_leftMap",{})}return ce(e,[{key:"estimateTotalHeight",value:function(e,t,o){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*o}},{key:"range",value:function(e,t,o){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Tt(e,3),r=t[0],i=(t[1],t[2]);return o(i,n._leftMap[i],r)}))}},{key:"setPosition",value:function(e,t,o,n){this._intervalTree.insert([o,o+n,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?o+n:Math.max(i,o+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=Math.max(t,n)}return t}}]),e}();function jt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Vt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?jt(o,!0).forEach((function(t){me(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):jt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var $t=(Zt=Bt=function(e){function t(){var e,o;ie(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return me(he(o=de(this,(e=ue(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),me(he(o),"_debounceResetIsScrollingId",void 0),me(he(o),"_invalidateOnUpdateStartIndex",null),me(he(o),"_invalidateOnUpdateStopIndex",null),me(he(o),"_positionCache",new Ut),me(he(o),"_startIndex",null),me(he(o),"_startIndexMemoized",null),me(he(o),"_stopIndex",null),me(he(o),"_stopIndexMemoized",null),me(he(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),me(he(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),me(he(o),"_onScroll",(function(e){var t=o.props.height,n=e.currentTarget.scrollTop,r=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),n);n===r&&(o._debounceResetIsScrolling(),o.state.scrollTop!==r&&o.setState({isScrolling:!0,scrollTop:r}))})),o}return fe(t,e),ce(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Ut,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 Ut,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&&We(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,r=o.cellCount,i=o.cellMeasurerCache,a=o.cellRenderer,l=o.className,c=o.height,h=o.id,d=o.keyMapper,u=o.overscanByPixels,p=o.role,f=o.style,m=o.tabIndex,g=o.width,v=o.rowDirection,y=this.state,C=y.isScrolling,S=y.scrollTop,_=[],R=this._getEstimatedTotalHeight(),w=this._positionCache.shortestColumnSize,b=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,S-u),c+2*u,(function(o,n,r){var s;void 0===e?(T=o,e=o):(T=Math.min(T,o),e=Math.max(e,o)),_.push(a({index:o,isScrolling:C,key:d(o),parent:t,style:(s={height:i.getHeight(o)},me(s,"ltr"===v?"left":"right",n),me(s,"position","absolute"),me(s,"top",r),me(s,"width",i.getWidth(o)),s)}))})),w<S+c+u&&b<r)for(var E=Math.min(r-b,Math.ceil((S+c+u-w)/i.defaultHeight*g/i.defaultWidth)),x=b;x<b+E;x++)e=x,_.push(a({index:x,isScrolling:C,key:d(x),parent:this,style:{width:i.getWidth(x)}}));return this._startIndex=T,this._stopIndex=e,s.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Ce("ReactVirtualized__Masonry",l),id:h,onScroll:this._onScroll,role:p,style:Vt({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:R<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},s.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:R,maxWidth:"100%",maxHeight:R,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"}},_))}},{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&&We(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Pe(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,n=e.width,r=Math.max(1,Math.floor(n/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{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,n=o.cellMeasurerCache,r=o.cellPositioner,i=e;i<=t;i++){var s=r(i),a=s.left,l=s.top;this._positionCache.setPosition(i,a,l,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(s.PureComponent),me(Bt,"propTypes",null),Zt);function Yt(){}me($t,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Yt,onScroll:Yt,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,ge.polyfill)($t);var Kt=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ie(this,e),me(this,"_cellMeasurerCache",void 0),me(this,"_columnIndexOffset",void 0),me(this,"_rowIndexOffset",void 0),me(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),me(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var n=o.cellMeasurerCache,r=o.columnIndexOffset,i=void 0===r?0:r,s=o.rowIndexOffset,a=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=a}return ce(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,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,n)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function qt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Xt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qt(o,!0).forEach((function(t){me(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Jt=function(e){function t(e,o){var n;ie(this,t),me(he(n=de(this,ue(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),me(he(n),"_deferredInvalidateColumnIndex",null),me(he(n),"_deferredInvalidateRowIndex",null),me(he(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),me(he(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),me(he(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=_e(e,["rowIndex"]),r=n.props,i=r.cellRenderer,a=r.fixedRowCount;return t===r.rowCount-a?s.createElement("div",{key:o.key,style:Xt({},o.style,{height:20})}):i(Xt({},o,{parent:he(n),rowIndex:t+a}))})),me(he(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,r=_e(e,["columnIndex","rowIndex"]),i=n.props,s=i.cellRenderer,a=i.fixedColumnCount,l=i.fixedRowCount;return s(Xt({},r,{columnIndex:t+a,parent:he(n),rowIndex:o+l}))})),me(he(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=_e(e,["columnIndex"]),r=n.props,i=r.cellRenderer,a=r.columnCount,l=r.fixedColumnCount;return t===a-l?s.createElement("div",{key:o.key,style:Xt({},o.style,{width:20})}):i(Xt({},o,{columnIndex:t+l,parent:he(n)}))})),me(he(n),"_columnWidthRightGrid",(function(e){var t=e.index,o=n.props,r=o.columnCount,i=o.fixedColumnCount,s=o.columnWidth,a=n.state,l=a.scrollbarSize;return a.showHorizontalScrollbar&&t===r-i?l:"function"==typeof s?s({index:t+i}):s})),me(he(n),"_onScroll",(function(e){var t=e.scrollLeft,o=e.scrollTop;n.setState({scrollLeft:t,scrollTop:o});var r=n.props.onScroll;r&&r(e)})),me(he(n),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,r=e.vertical,i=n.state,s=i.showHorizontalScrollbar,a=i.showVerticalScrollbar;if(t!==s||r!==a){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:r});var l=n.props.onScrollbarPresenceChange;"function"==typeof l&&l({horizontal:t,size:o,vertical:r})}})),me(he(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),me(he(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),me(he(n),"_rowHeightBottomGrid",(function(e){var t=e.index,o=n.props,r=o.fixedRowCount,i=o.rowCount,s=o.rowHeight,a=n.state,l=a.scrollbarSize;return a.showVerticalScrollbar&&t===i-r?l:"function"==typeof s?s({index:t+r}):s})),me(he(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),me(he(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var r=e.deferredMeasurementCache,i=e.fixedColumnCount,a=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),r&&(n._deferredMeasurementCacheBottomLeftGrid=a>0?new Kt({cellMeasurerCache:r,columnIndexOffset:0,rowIndexOffset:a}):r,n._deferredMeasurementCacheBottomRightGrid=i>0||a>0?new Kt({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:a}):r,n._deferredMeasurementCacheTopRightGrid=i>0?new Kt({cellMeasurerCache:r,columnIndexOffset:i,rowIndexOffset:0}):r),n}return fe(t,e),ce(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,n=e.rowIndex,r=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{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,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.fixedColumnCount,a=i.fixedRowCount,l=Math.max(0,o-s),c=Math.max(0,r-a);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:r}),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 n={};t>0&&(n.scrollLeft=t),o>0&&(n.scrollTop=o),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),r=(e.scrollTop,e.scrollToRow),i=_e(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,l=a.scrollLeft,c=a.scrollTop;return s.createElement("div",{style:this._containerOuterStyle},s.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Xt({},i,{onScroll:t,scrollLeft:l}))),s.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Xt({},i,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(Xt({},i,{onScroll:t,onSectionRendered:o,scrollLeft:l,scrollToColumn:n,scrollToRow:r,scrollTop:c}))))}},{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 n=0,r=0;r<t;r++)n+=o({index:r});this._leftGridWidth=n}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 n=0,r=0;r<t;r++)n+=o({index:r});this._topGridHeight=n}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,n=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,s=t.fixedColumnCount,a=t.fixedRowCount,l=t.rowHeight,c=t.style,h=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||i!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,v=e||a!==this._lastRenderedFixedRowCount||l!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Xt({height:i,overflow:"visible",width:f},c)),(e||m||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Xt({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Xt({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Xt({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Xt({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=a,this._lastRenderedHeight=i,this._lastRenderedRowHeight=l,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=h,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,n=e.fixedRowCount,r=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!o)return null;var l=a?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=i?h+d:h,p=s.createElement(je,ve({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,r-n)+l,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:u}));return i?s.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Xt({},this._bottomLeftGridStyle,{height:c,width:h,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,n=e.fixedRowCount,r=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return s.createElement(je,ve({},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,r-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-o,scrollToRow:a-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?s.createElement(je,ve({},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,n=e.fixedColumnCount,r=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,l=this.state,c=l.showHorizontalScrollbar,h=l.scrollbarSize;if(!r)return null;var d=c?1:0,u=this._getTopGridHeight(e),p=this._getRightGridWidth(e),f=c?h:0,m=u,g=this._topRightGridStyle;a&&(m=u+f,g=Xt({},this._topRightGridStyle,{left:0}));var v=s.createElement(je,ve({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:r,scrollLeft:i,style:g,tabIndex:null,width:p}));return a?s.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Xt({},this._topRightGridStyle,{height:u,width:p,overflowX:"hidden"})},v):v}}],[{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}(s.PureComponent);me(Jt,"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}),Jt.propTypes={},(0,ge.polyfill)(Jt);(function(e){function t(e,o){var n;return ie(this,t),(n=de(this,ue(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(he(n)),n}return fe(t,e),ce(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,n=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,s=t.scrollTop,a=t.scrollWidth;return e({clientHeight:o,clientWidth:n,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:s,scrollWidth:a})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,n=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:n,scrollLeft:r,scrollTop:i,scrollWidth:s})}}]),t}(s.PureComponent)).propTypes={};function Qt(e){var t=e.className,o=e.columns,n=e.style;return s.createElement("div",{className:t,role:"row",style:n},o)}Qt.propTypes=null;const eo={ASC:"ASC",DESC:"DESC"};function to(e){var t=e.sortDirection,o=Ce("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===eo.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===eo.DESC});return s.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===eo.ASC?s.createElement("path",{d:"M7 14l5-5 5 5z"}):s.createElement("path",{d:"M7 10l5 5 5-5z"}),s.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function oo(e){var t=e.dataKey,o=e.label,n=e.sortBy,r=e.sortDirection,i=n===t,a=[s.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return i&&a.push(s.createElement(to,{key:"SortIndicator",sortDirection:r})),a}function no(e){var t=e.className,o=e.columns,n=e.index,r=e.key,i=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,c=e.onRowMouseOver,h=e.onRowRightClick,d=e.rowData,u=e.style,p={"aria-rowindex":n+1};return(i||a||l||c||h)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(e){return i({event:e,index:n,rowData:d})}),a&&(p.onDoubleClick=function(e){return a({event:e,index:n,rowData:d})}),l&&(p.onMouseOut=function(e){return l({event:e,index:n,rowData:d})}),c&&(p.onMouseOver=function(e){return c({event:e,index:n,rowData:d})}),h&&(p.onContextMenu=function(e){return h({event:e,index:n,rowData:d})})),s.createElement("div",ve({},p,{className:t,key:r,role:"row",style:u}),o)}to.propTypes={},oo.propTypes=null,no.propTypes=null;var ro=function(e){function t(){return ie(this,t),de(this,ue(t).apply(this,arguments))}return fe(t,e),t}(s.Component);function io(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function so(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?io(o,!0).forEach((function(t){me(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):io(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}me(ro,"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:eo.ASC,flexGrow:0,flexShrink:1,headerRenderer:oo,style:{}}),ro.propTypes={};var ao=function(e){function t(e){var o;return ie(this,t),(o=de(this,ue(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(he(o)),o._createRow=o._createRow.bind(he(o)),o._onScroll=o._onScroll.bind(he(o)),o._onSectionRendered=o._onSectionRendered.bind(he(o)),o._setRef=o._setRef.bind(he(o)),o}return fe(t,e),ce(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=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{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,it.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,n=t.className,r=t.disableHeader,i=t.gridClassName,a=t.gridStyle,l=t.headerHeight,c=t.headerRowRenderer,h=t.height,d=t.id,u=t.noRowsRenderer,p=t.rowClassName,f=t.rowStyle,m=t.scrollToIndex,g=t.style,v=t.width,y=this.state.scrollbarWidth,C=r?h:h-l,S="function"==typeof p?p({index:-1}):p,_="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],s.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=so({overflow:"hidden"},n)})),s.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":s.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:Ce("ReactVirtualized__Table",n),id:d,role:"grid",style:g},!r&&c({className:Ce("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:so({height:l,overflow:"hidden",paddingRight:y,width:v},_)}),s.createElement(je,ve({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Ce("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:C,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:so({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=this.props.onColumnClick,c=t.props,h=c.cellDataGetter,d=c.cellRenderer,u=c.className,p=c.columnData,f=c.dataKey,m=c.id,g=d({cellData:h({columnData:p,dataKey:f,rowData:i}),columnData:p,columnIndex:o,dataKey:f,isScrolling:n,parent:r,rowData:i,rowIndex:a}),v=this._cachedColumnStyles[o],y="string"==typeof g?g:null;return s.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:Ce("ReactVirtualized__Table__rowColumn",u),key:"Row"+a+"-Col"+o,onClick:function(e){l&&l({columnData:p,dataKey:f,event:e})},role:"gridcell",style:v,title:y},g)}},{key:"_createHeader",value:function(e){var t,o,n,r,i,a=e.column,l=e.index,c=this.props,h=c.headerClassName,d=c.headerStyle,u=c.onHeaderClick,p=c.sort,f=c.sortBy,m=c.sortDirection,g=a.props,v=g.columnData,y=g.dataKey,C=g.defaultSortDirection,S=g.disableSort,_=g.headerRenderer,R=g.id,w=g.label,b=!S&&p,T=Ce("ReactVirtualized__Table__headerColumn",h,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:b}),E=this._getFlexStyleForColumn(a,so({},d,{},a.props.headerStyle)),x=_({columnData:v,dataKey:y,disableSort:S,label:w,sortBy:f,sortDirection:m});if(b||u){var M=f!==y?C:m===eo.DESC?eo.ASC:eo.DESC,O=function(e){b&&p({defaultSortDirection:C,event:e,sortBy:y,sortDirection:M}),u&&u({columnData:v,dataKey:y,event:e})};i=a.props["aria-label"]||w||y,r="none",n=0,t=O,o=function(e){"Enter"!==e.key&&" "!==e.key||O(e)}}return f===y&&(r=m===eo.ASC?"ascending":"descending"),s.createElement("div",{"aria-label":i,"aria-sort":r,className:T,id:R,key:"Header-Col"+l,onClick:t,onKeyDown:o,role:"columnheader",style:E,tabIndex:n},x)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,r=e.key,i=e.parent,a=e.style,l=this.props,c=l.children,h=l.onRowClick,d=l.onRowDoubleClick,u=l.onRowRightClick,p=l.onRowMouseOver,f=l.onRowMouseOut,m=l.rowClassName,g=l.rowGetter,v=l.rowRenderer,y=l.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof m?m({index:o}):m,_="function"==typeof y?y({index:o}):y,R=g({index:o}),w=s.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:i,rowData:R,rowIndex:o,scrollbarWidth:C})})),b=Ce("ReactVirtualized__Table__row",S),T=so({},a,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:C},_);return v({className:b,columns:w,index:o,isScrolling:n,key:r,onRowClick:h,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:f,rowData:R,style:T})}},{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"),n=so({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:s.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,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:n,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(s.PureComponent);me(ao,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Ve,overscanRowCount:10,rowRenderer:no,headerRowRenderer:Qt,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),ao.propTypes={};var lo=[],co=null,ho=null;function uo(){ho&&(ho=null,document.body&&null!=co&&(document.body.style.pointerEvents=co),co=null)}function po(){uo(),lo.forEach((function(e){return e.__resetIsScrolling()}))}function fo(e){e.currentTarget===window&&null==co&&document.body&&(co=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){ho&&We(ho);var e=0;lo.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),ho=Pe(po,e)}(),lo.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function mo(e,t){lo.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",fo),lo.push(e)}function go(e,t){(lo=lo.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",fo),ho&&(We(ho),uo()))}var vo,yo,Co=function(e){return e===window},So=function(e){return e.getBoundingClientRect()};function _o(e,t){if(e){if(Co(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return So(e)}return{height:t.serverHeight,width:t.serverWidth}}function Ro(e){return Co(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 wo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var bo=function(){return"undefined"!=typeof window?window:void 0},To=(yo=vo=function(e){function t(){var e,o;ie(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return me(he(o=de(this,(e=ue(t)).call.apply(e,[this].concat(r)))),"_window",bo()),me(he(o),"_isMounted",!1),me(he(o),"_positionFromTop",0),me(he(o),"_positionFromLeft",0),me(he(o),"_detectElementResize",void 0),me(he(o),"_child",void 0),me(he(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?wo(o,!0).forEach((function(t){me(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):wo(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},_o(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),me(he(o),"_registerChild",(function(e){e&&Element,o._child=e,o.updatePosition()})),me(he(o),"_onChildScroll",(function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var n=o.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,t+o._positionFromTop):n.scrollTop=t+o._positionFromTop)}})),me(he(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),me(he(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),me(he(o),"_onResize",(function(){o.updatePosition()})),me(he(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=Ro(t),r=Math.max(0,n.left-o._positionFromLeft),i=Math.max(0,n.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}})),me(he(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return fe(t,e),ce(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,n=o.height,r=o.width,i=this._child||it.findDOMNode(this);if(i instanceof Element&&e){var s=function(e,t){if(Co(t)&&document.documentElement){var o=document.documentElement,n=So(e),r=So(o);return{top:n.top-r.top,left:n.left-r.left}}var i=Ro(t),s=So(e),a=So(t);return{top:s.top+i.top-a.top,left:s.left+i.left-a.left}}(i,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var a=_o(e,this.props);n===a.height&&r===a.width||(this.setState({height:a.height,width:a.width}),t({height:a.height,width:a.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Xe(),this.updatePosition(e),e&&(mo(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,n=e.scrollElement;n!==o&&null!=n&&null!=o&&(this.updatePosition(o),go(this,n),mo(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(go(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,n=t.scrollTop,r=t.scrollLeft,i=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:o,scrollLeft:r,scrollTop:n,width:s})}}]),t}(s.PureComponent),me(vo,"propTypes",null),yo);me(To,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:bo(),serverHeight:0,serverWidth:0});var Eo,xo=(Eo=function(e,t){return Eo=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])},Eo(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}Eo(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),Mo=function(){return Mo=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Mo.apply(this,arguments)},Oo={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Io=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 xo(t,e),t.prototype.render=function(){return s.createElement("div",{className:this.props.className||"",style:Mo(Mo({position:"absolute",userSelect:"none"},Oo[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(s.PureComponent),Do=o(3316),No=o.n(Do),Go=function(){var e=function(t,o){return e=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,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),zo=function(){return zo=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},zo.apply(this,arguments)},Ho={width:"auto",height:"auto"},ko=No()((function(e,t,o){return Math.max(Math.min(e,o),t)})),Ao=No()((function(e,t){return Math.round(e/t)*t})),Wo=No()((function(e,t){return new RegExp(e,"i").test(t)})),Po=function(e){return Boolean(e.touches&&e.touches.length)},Lo=No()((function(e,t,o){void 0===o&&(o=0);var n=t.reduce((function(o,n,r){return Math.abs(n-e)<Math.abs(t[o]-e)?r:o}),0),r=Math.abs(t[n]-e);return 0===o||r<o?t[n]:e})),Fo=No()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),Bo=No()((function(e){return"auto"===(e=e.toString())||Fo(e,"px")||Fo(e,"%")||Fo(e,"vh")||Fo(e,"vw")||Fo(e,"vmax")||Fo(e,"vmin")?e:e+"px"})),Zo=function(e,t,o,n){if(e&&"string"==typeof e){if(Fo(e,"px"))return Number(e.replace("px",""));if(Fo(e,"%"))return t*(Number(e.replace("%",""))/100);if(Fo(e,"vw"))return o*(Number(e.replace("vw",""))/100);if(Fo(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},Uo=No()((function(e,t,o,n,r,i,s){return n=Zo(n,e.width,t,o),r=Zo(r,e.height,t,o),i=Zo(i,e.width,t,o),s=Zo(s,e.height,t,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===s?void 0:Number(s)}})),jo=["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"],Vo="__resizable_base__",$o=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",t.classList?t.classList.add(Vo):t.className+=Vo,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 Go(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||Ho},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,n=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=r}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]&&Fo(e.propsSize[t].toString(),"%")){if(Fo(e.state[t].toString(),"%"))return e.state[t].toString();var o=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/o[t]*100+"%"}return Bo(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Bo(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Bo(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%";var n={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),n},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?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,n,r=this.props.boundsByDirection,i=this.state.direction,s=r&&Wo("left",i),a=r&&Wo("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(o=s?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),n=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),n&&Number.isFinite(n)&&(t=t&&t<n?t:n),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,n=this.props.resizeRatio||1,r=this.state,i=r.direction,s=r.original,a=this.props,l=a.lockAspectRatio,c=a.lockAspectRatioExtraHeight,h=a.lockAspectRatioExtraWidth,d=s.width,u=s.height,p=c||0,f=h||0;return Wo("right",i)&&(d=s.width+(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),Wo("left",i)&&(d=s.width-(e-s.x)*n/o,l&&(u=(d-f)/this.ratio+p)),Wo("bottom",i)&&(u=s.height+(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),Wo("top",i)&&(u=s.height-(t-s.y)*n/o,l&&(d=(u-p)*this.ratio+f)),{newWidth:d,newHeight:u}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,n){var r=this.props,i=r.lockAspectRatio,s=r.lockAspectRatioExtraHeight,a=r.lockAspectRatioExtraWidth,l=void 0===n.width?10:n.width,c=void 0===o.width||o.width<0?e:o.width,h=void 0===n.height?10:n.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=a||0;if(i){var f=(h-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(l-p)/this.ratio+u,v=(c-p)/this.ratio+u,y=Math.max(l,f),C=Math.min(c,m),S=Math.max(h,g),_=Math.min(d,v);e=ko(e,y,C),t=ko(t,S,_)}else e=ko(e,l,c),t=ko(t,h,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 n=this.resizable.getBoundingClientRect(),r=n.left,i=n.top,s=n.right,a=n.bottom;this.resizableLeft=r,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=a}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,n=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&Po(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;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 i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var s=this.parentNode;if(s){var a=this.window.getComputedStyle(s).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",o=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:zo(zo({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&Po(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,o=t.maxWidth,n=t.maxHeight,r=t.minWidth,i=t.minHeight,s=Po(e)?e.touches[0].clientX:e.clientX,a=Po(e)?e.touches[0].clientY:e.clientY,l=this.state,c=l.direction,h=l.original,d=l.width,u=l.height,p=this.getParentSize(),f=Uo(p,this.window.innerWidth,this.window.innerHeight,o,n,r,i);o=f.maxWidth,n=f.maxHeight,r=f.minWidth,i=f.minHeight;var m=this.calculateNewSizeFromDirection(s,a),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(o,n),C=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=C.newWidth,g=C.newHeight,this.props.grid){var S=Ao(v,this.props.grid[0]),_=Ao(g,this.props.grid[1]),R=this.props.snapGap||0;v=0===R||Math.abs(S-v)<=R?S:v,g=0===R||Math.abs(_-g)<=R?_:g}this.props.snap&&this.props.snap.x&&(v=Lo(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=Lo(g,this.props.snap.y,this.props.snapGap));var w={width:v-h.width,height:g-h.height};if(d&&"string"==typeof d)if(Fo(d,"%"))v=v/p.width*100+"%";else if(Fo(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(Fo(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(u&&"string"==typeof u)if(Fo(u,"%"))g=g/p.height*100+"%";else if(Fo(u,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(Fo(u,"vh")){g=g/this.window.innerHeight*100+"vh"}var b={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?b.flexBasis=b.width:"column"===this.flexDir&&(b.flexBasis=b.height),this.setState(b),this.props.onResize&&this.props.onResize(e,c,this.resizable,w)}},t.prototype.onMouseUp=function(e){var t=this.state,o=t.isResizing,n=t.direction,r=t.original;if(o&&this.resizable){var i={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:zo(zo({},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,n=t.handleStyles,r=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var c=Object.keys(o).map((function(t){return!1!==o[t]?s.createElement(Io,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:r&&r[t]},l&&l[t]?l[t]:null):null}));return s.createElement("div",{className:a,style:i},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==jo.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=zo(zo(zo({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 n=this.props.as||"div";return s.createElement(n,zo({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&s.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}(s.PureComponent);const Yo="bottom",Ko="left",qo="right",Xo="top",Jo={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},Qo={min:0,max:1/0},en=({height:e,heightConstraints:t,width:o,widthConstraints:n})=>({height:(0,Z.u)(e,t.min,t.max),width:(0,Z.u)(o,n.min,n.max)}),tn=({enable:e,height:t,heightConstraints:o,resizeEdge:n,width:r=0,widthConstraints:i})=>({...en({height:t,widthConstraints:i,heightConstraints:o,width:r}),enable:void 0===e||e,horizontal:n===Ko||n===qo,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:n===Xo||n===Yo});class on extends a().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:Qo,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:Qo};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=tn(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:o,resizing:n,width:r}=this.state,{onResizeFromPropChange:i}=e;if(n)return;const s=tn(e);this.setState(s);const{height:a,width:l}=s,c=i||t;!c||a===o&&l===r||c({height:a,width:l,originalHeight:o,originalWidth:r})}_onResize=(e,t,o,{height:n,width:r})=>{const{onResize:i}=this.props,{height:s,horizontal:a,vertical:l,width:c}=this.state,{height:h,width:d}=(({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:n},{initialHeight:r,initialWidth:i})=>en({height:r+t,heightConstraints:o,width:i+e,widthConstraints:n}))({deltaWidth:r,deltaHeight:n},this.props,this.state),u=a&&d!==c,p=l&&h!==s;(u||p)&&(this.setState({height:p?h:s,width:u?d:c,isMouseWheeling:!1}),i&&i({height:p?h:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();const{onResizeStart:t}=this.props,{height:o,horizontal:n,vertical:r,width:i}=this.state;this.setState({resizing:!0}),t&&t({height:r?o:void 0,width:n?i:void 0})};_onResizeEnd=()=>{const{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:n,width:r,initialWidth:i,initialHeight:s}=this.state;this.setState({initialWidth:r,initialHeight:t,resizing:!1}),i===r&&s===t||e&&e({width:o?r:void 0,height:n?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(){const{children:e,className:t,handleStyles:o,resizeContentClassName:n,resizeEdge:r,resizeHandleClassName:s,style:l,translate:c,heightConstraints:h,wrapChildrenInDivContainer:d,widthConstraints:u}=this.props,{enable:p,height:f,horizontal:m,resizing:g,vertical:v,width:y,isMouseWheeling:C}=this.state,{display:S,..._}=l,{min:R,max:w}=u,{min:b,max:T}=h,E={...this.props.wrapperStyle};m&&(E.width=y,E.minWidth=y),v&&(E.height=f,E.minHeight=f);const x=i()("resizable",t,{resizing:g}),M=i()("contents",n,`resize-edge-${r}`,{horizontal:m,vertical:v}),O=i()(r,s,"resizable-handle",{horizontal:m,vertical:v}),I=a().createElement("span",{title:c("ResizePanel")});return a().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{...E,display:S}},a().createElement($o,{className:x,"data-testid":"resizable-core",enable:{...Jo,[r]:!C&&p},handleClasses:{[r]:O},handleComponent:{[r]:I},handleStyles:o,maxHeight:v?T:void 0,maxWidth:m?w:void 0,minHeight:v?b:void 0,minWidth:m?R:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:v?f:"100%",width:m?y:"100%"},style:_},d?a().createElement("div",{className:M,style:{userSelect:"none"}},e):e))}}var nn=o(7154);function rn(e,t,o){const n=t*m.$0,{shape:r}=m.Qh[e],i=m.d_[r];if(!i)return{height:0,offset:0};const{baseHeight:s,minHeight:a,maxHeight:l}=i;let c=s*(o/n);void 0!==a&&c<a&&(c=a),void 0!==l&&c>l&&(c=l);const h=m.$0*(o/n);return{height:c,offset:c>=h?0:(h-c)/2}}function sn(e,t,o){const n=o*m.$0;return e*m.$0/n*t}class an extends a().PureComponent{canvas;componentDidMount(){this.updateCanvas()}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){const{branchUpstreamRowIndices:t,enabledScrollMarkerTypes:o,viewportHeight:n,markerRowIndices:r,markerColors:i,scrollWidth:s,totalRows:a}=e||this.props,l=this.canvas.getContext("2d");l.canvas.width=s,l.canvas.height=n;const c=s/m.dF;l.clearRect(0,0,l.canvas.width,l.canvas.height);for(const[e,s]of Object.entries(m.Qh)){if(!(o.includes(e)||"remoteBranches"===e&&o.includes("localBranches")))continue;const h="remoteBranches"!==e||o.includes("remoteBranches")?r[e]||[]:t,d=i[e],u=s.lanes;d&&h.length&&(l.fillStyle=d,h.forEach((t=>{const{height:o,offset:r}=rn(e,a,n);u.length&&l.fillRect(u[0]*c,sn(t,n,a)+r-.5*o,c*u.length,o)})))}}render(){return a().createElement("canvas",{className:"graph-scroll-markers",ref:e=>this.canvas=e})}}var ln=function({children:e,className:t,height:o,heightAdjustment:n,graphZoneType:r,scrollTop:i,style:s}){const l=m.qi[r].listId,c=document.getElementById(l),h=c?.scrollHeight||0;let d=o-28;void 0!==i&&(d=Number(s.top)-i,c&&h-o-i<0&&(d=o-n-28));const u={top:d,zIndex:2},p=a().createElement("span",{className:"absolute",style:u},e);return a().createElement("div",{className:t,style:s},c?st().createPortal(p,document.getElementById("graph-container")):p)};function cn({inline:e,getExternalIcon:t,message:o,size:n=100,useSimpleSpinner:r}){const s=i()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),l=i()("spinner","mr1",{"inline-block":e}),c={height:n,width:n},h=i()("message",{"inline-block":e,mx2:e}),d=r?a().createElement("span",{className:l,style:c},t("loading")):a().createElement("div",{className:l,style:c},a().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:c}),a().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:c}),a().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:c}));return a().createElement("div",{className:s},d,o&&a().createElement("div",{className:h},o))}class hn extends a().Component{render(){const{currentCommits:e,customFooterRow:t,graphZoneType:o,hasMoreCommits:n,height:r,horizontalScrollHeight:i,getExternalIcon:s,isLoadingRows:l,scrollTop:c,style:h,translate:d}=this.props,u=a().createElement(cn,{className:"loading-spinner",getExternalIcon:s,size:20,useSimpleSpinner:!0}),p=a().createElement("div",{className:"flex items-center"},a().createElement("span",{style:{paddingRight:"5px"}},u)),f=0!==(e>0?e:0)||n?t:a().createElement(a().Fragment,null,d("Graph-NoCommits")),m=a().createElement("div",{className:"graph-adjust-commit-count p1"},l?p:f);return a().createElement(ln,{graphZoneType:o,height:r,heightAdjustment:i,scrollTop:c,style:h},m)}}var dn=hn;function un({branchUpstreamRowIndices:e,rowCount:t,cellRenderersByIds:o,columnIndex:n,customFooterRow:r,enabledScrollMarkerTypes:s,enableResizer:l,getExternalIcon:c,getKeyForCell:h,graphHeight:d,graphWidth:u,graphZoneType:p,graphZones:f,hasMoreCommits:g,horizontalScrollHeight:v,isLoadingRows:y,markerColors:C,markerRowIndices:S,onResize:_,onResizeEnd:R,onResizeFromPropChange:w,onScroll:b,onScrollToRowCausedUpdate:T,onZoneEnter:E,scrollLeft:x,scrollToAlignment:M,scrollToIndex:O,scrollTop:I,smartCellRangeRenderer:D,translate:N,verticalScrollWidth:G}){const z=(0,P.zv)(p,f);if(!z)return null;const H=document.getElementById(z.listId),k=(0,P.SH)(p,f),A=(0,P.Xq)(t,g,y),W=(0,P.Jq)(t,g,y),L=(0,P.Jp)(z,t),F=(0,P.wE)(t,g,y),B=G>0,Z=s.length>0,U=i()("graph-panel","react-virtualized-list","pad-for-horizontal-scrollbar",p===m.jZ?"z3":null,{"pad-for-vertical-scrollbar":B}),j=p===m.Wm?{...!k&&{position:"static"},...k&&{width:z.currentWidth>L?z.currentWidth:L,maxWidth:"none"}}:void 0,V=(e,i,s,l,f,C,S,_)=>a().createElement(je,{autoContainerWidth:!0,cellRangeRenderer:D,cellRenderer:i=>((e,i)=>{if(i.rowIndex>t-1)return A&&0===n?a().createElement(dn,{currentCommits:t-1,customFooterRow:r,getExternalIcon:c,graphZoneType:p,hasMoreCommits:g,height:d,horizontalScrollHeight:v,isLoadingRows:y,key:h(i.rowIndex),scrollTop:I,style:i.style,translate:N}):void 0;const s={...i,style:{...i.style}};m.Gn===e&&(s.style.top=Number(i.style.top)-I);const l=o[e];return l?l(s):void 0})(e,i),className:s,columnCount:1,columnWidth:_,containerStyle:l,height:S,id:i,isScrolling:!1,key:i,onScrollToTargetCausedUpdate:T?e=>T(p,e,u,d,g):void 0,overscanRowCount:0,rowCount:W,rowHeight:m.$0,scrollLeft:x,scrollToAlignment:M,scrollTop:I,scrollToRow:O,style:f,tabIndex:null,width:C}),$=V(z.type,z.listId,U,j,{position:"absolute"},z.currentWidth,d,L),Y=k?a().createElement("div",{className:"timeline-column-container",onWheelCapture:e=>((e,t)=>{let o=t+e.deltaY;if(o=o>=0?o:0,o>t&&H&&(0,P.BL)(H))return;b(p,{clientHeight:F,clientWidth:L,scrollHeight:v,scrollLeft:0,scrollTop:o>=0?o:0,scrollWidth:G},u,d,g)})(e,I)},V(m.Gn,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3,maxHeight:F},{position:"absolute",right:0,zIndex:3,maxHeight:d},1,d,1)):void 0,K=$&&a().createElement(a().Fragment,null,Y,Z&&k?a().createElement(an,{branchUpstreamRowIndices:e,enabledScrollMarkerTypes:s,markerColors:C,markerRowIndices:S,scrollWidth:G,totalRows:W,viewportHeight:d<F?d:F,viewportWidth:z.currentWidth}):null,a().createElement(nn.Z,{contentHeight:F,contentWidth:L,displayHorizontalScrollbar:z.type===m.Wm,displayVerticalScrollbar:k,forceOnVerticalWheel:!k,forceVerticalScrollbar:k&&Z,height:d,onScroll:e=>((e,t)=>{e.scrollTop>t&&H&&(0,P.BL)(H)||b(p,e,u,d,g)})(e,I),scrollLeft:x,scrollTop:I,width:z.currentWidth},$)),q=a().createElement("div",{onMouseEnter:E},K);return k?q:a().createElement(on,{enable:l,height:d,id:`${p}Column`,key:`${p}Column`,onResize:_?e=>_(z,e):void 0,onResizeEnd:R?e=>R(z,e):void 0,onResizeFromPropChange:w?e=>w(z,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:z.currentWidth,widthConstraints:(0,P.eR)(p,f,u)},q)}var pn=o(977),fn=o.n(pn);const mn="dnd-container";class gn extends a().PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}componentWillReceiveProps(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,n)=>{if(this.props.onDrop&&e.id){const t=this.sanitizeId(e.id),o=n?.id?this.sanitizeId(n.id):null,r=this.childReactElementsById[t],i=o?this.childReactElementsById[o]:null;r&&this.props.onDrop(r,i)}};isContainerCallback=e=>Boolean(e?.classList.contains(mn));movesCallback=e=>Boolean(e?.id)&&this.isDraggable(e.id);acceptsCallback=(e,t,o,n)=>Boolean(e?.id)&&this.isDroppable(e.id,n?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){const 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=fn()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{a().isValidElement(e)&&this.addChildReactElement(e)})):a().isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){const 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){const t=this.sanitizeId(e),o=this.childReactElementsById[t];return Boolean(o)&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){const o=this.sanitizeId(e),n=t?this.sanitizeId(t):null,r=this.childReactElementsById[o],i=n?this.childReactElementsById[n]:null;if(r)return this.props.isDroppable(r,i)}return!1}render(){const{children:e,className:t}=this.props,o=i()(mn,t);return a().createElement("div",{className:o,ref:this.dndDecorator},e)}}var vn=gn,yn=o(8613);function Cn(e,t){if(null==e)return{};var o,n,r={},i=yn(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var Sn=o(5627),_n=o(433);function Rn(e,t){return Rn=_n?_n.bind():function(e,t){return e.__proto__=t,e},Rn(e,t)}function wn(e,t){e.prototype=Sn(t.prototype),e.prototype.constructor=e,Rn(e,t)}var bn=o(6981);function Tn(){return Tn=bn?bn.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Tn.apply(this,arguments)}var En,xn=o(5697),Mn=o.n(xn),On=o(2856),In=o.n(On),Dn=o(8853),Nn=o.n(Dn),Gn=o(644),zn={in:Mn().bool,mountOnEnter:Mn().bool,unmountOnExit:Mn().bool,appear:Mn().bool,timeout:Mn().number,onEnter:Mn().func,onEntering:Mn().func,onEntered:Mn().func,onExit:Mn().func,onExiting:Mn().func,onExited:Mn().func},Hn=((En={})[Gn.d0]="in",En[Gn.cn]="in",En),kn=function(e){function t(){return e.apply(this,arguments)||this}return wn(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.children,n=Cn(e,["className","children"]);return a().createElement(Gn.ZP,n,(function(e,n){return a().cloneElement(o,Tn({},n,{className:i()("fade",t,o.props.className,Hn[e])}))}))},t}(a().Component);kn.propTypes=zn,kn.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const An=kn;var Wn=Tn({},In().propTypes,{show:Mn().bool,rootClose:Mn().bool,onHide:Mn().func,animation:Mn().oneOfType([Mn().bool,Nn()]),onEnter:Mn().func,onEntering:Mn().func,onEntered:Mn().func,onExit:Mn().func,onExiting:Mn().func,onExited:Mn().func,placement:Mn().oneOf(["top","right","bottom","left"])}),Pn={animation:An,rootClose:!1,show:!1,placement:"right"},Ln=function(e){function t(){return e.apply(this,arguments)||this}return wn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.animation,n=t.children,r=Cn(t,["animation","children"]),l=!0===o?An:o||null;return e=l?n:(0,s.cloneElement)(n,{className:i()(n.props.className,"in")}),a().createElement(In(),Tn({},r,{transition:l}),e)},t}(a().Component);Ln.propTypes=Wn,Ln.defaultProps=Pn;const Fn=Ln;var Bn=o(5638),Zn=o.n(Bn),Un=o(3562),jn=o.n(Un),Vn=o(1143),$n=o.n(Vn),Yn="large",Kn="small",qn={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function Xn(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return"function"==typeof o[o.length-1]?e.apply(void 0,o):function(t){return e.apply(void 0,o.concat([t]))}}}function Jn(e,t){var o=(e.bsClass||"").trim();return null==o&&$n()(!1),o+(t?"-"+t:"")}var Qn=Xn((function(e,t){var o=t.propTypes||(t.propTypes={}),n=t.defaultProps||(t.defaultProps={});return o.bsClass=Mn().string,n.bsClass=e,t})),er=(Xn((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.STYLES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=Mn().oneOf(n);(o.STYLES=n,i._values=n,o.propTypes=Tn({},r,{bsStyle:i}),void 0!==t)&&((o.defaultProps||(o.defaultProps={})).bsStyle=t);return o})),Xn((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.SIZES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=[];n.forEach((function(e){var t=qn[e];t&&t!==e&&i.push(t),i.push(e)}));var s=Mn().oneOf(i);return s._values=i,o.SIZES=n,o.propTypes=Tn({},r,{bsSize:s}),void 0!==t&&(o.defaultProps||(o.defaultProps={}),o.defaultProps.bsSize=t),o})));function tr(e){var t,o=((t={})[Jn(e)]=!0,t);e.bsSize&&(o[Jn(e,qn[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(o[Jn(e,e.bsStyle)]=!0),o}function or(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function nr(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function rr(e){var t={};return jn()(e).forEach((function(e){var o=e[0],n=e[1];nr(o)||(t[o]=n)})),[or(e),t]}var ir={id:Zn()(Mn().oneOfType([Mn().string,Mn().number])),placement:Mn().oneOf(["top","right","bottom","left"]),positionTop:Mn().oneOfType([Mn().number,Mn().string]),positionLeft:Mn().oneOfType([Mn().number,Mn().string]),arrowOffsetTop:Mn().oneOfType([Mn().number,Mn().string]),arrowOffsetLeft:Mn().oneOfType([Mn().number,Mn().string]),title:Mn().node},sr=function(e){function t(){return e.apply(this,arguments)||this}return wn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,c=t.title,h=t.className,d=t.style,u=t.children,p=rr(Cn(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),f=p[0],m=p[1],g=Tn({},tr(f),((e={})[o]=!0,e)),v=Tn({display:"block",top:n,left:r},d),y={top:s,left:l};return a().createElement("div",Tn({},m,{role:"tooltip",className:i()(h,g),style:v}),a().createElement("div",{className:"arrow",style:y}),c&&a().createElement("h3",{className:Jn(f,"title")},c),a().createElement("div",{className:Jn(f,"content")},u))},t}(a().Component);sr.propTypes=ir,sr.defaultProps={placement:"right"};const ar=Qn("popover",sr);function lr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var cr=o(8149),hr=o.n(cr),dr=o(1629),ur=o.n(dr);o(670);const pr=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];e.apply(this,n),t.apply(this,n)}}),null)};function fr(e,t){return hr()(t)?t.indexOf(e)>=0:e===t}var mr=Mn().oneOf(["click","hover","focus"]),gr=Tn({},Fn.propTypes,{trigger:Mn().oneOfType([mr,Mn().arrayOf(mr)]),delay:Mn().number,delayShow:Mn().number,delayHide:Mn().number,defaultOverlayShown:Mn().bool,overlay:Mn().node.isRequired,onBlur:Mn().func,onClick:Mn().func,onFocus:Mn().func,onMouseOut:Mn().func,onMouseOver:Mn().func,target:Mn().oneOf([null]),onHide:Mn().oneOf([null]),show:Mn().oneOf([null])}),vr=function(e){function t(t,o){var n;return(n=e.call(this,t,o)||this).handleToggle=n.handleToggle.bind(lr(lr(n))),n.handleDelayedShow=n.handleDelayedShow.bind(lr(lr(n))),n.handleDelayedHide=n.handleDelayedHide.bind(lr(lr(n))),n.handleHide=n.handleHide.bind(lr(lr(n))),n.handleMouseOver=function(e){return n.handleMouseOverOut(n.handleDelayedShow,e,"fromElement")},n.handleMouseOut=function(e){return n.handleMouseOverOut(n.handleDelayedHide,e,"toElement")},n._mountNode=null,n.state={show:t.defaultOverlayShown},n}wn(t,e);var o=t.prototype;return o.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},o.componentDidUpdate=function(){this.renderOverlay()},o.componentWillUnmount=function(){st().unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},o.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;t?this._hoverHideDelay=setTimeout((function(){e._hoverHideDelay=null,e.hide()}),t):this.hide()}},o.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;t?this._hoverShowDelay=setTimeout((function(){e._hoverShowDelay=null,e.show()}),t):this.show()}},o.handleHide=function(){this.hide()},o.handleMouseOverOut=function(e,t,o){var n=t.currentTarget,r=t.relatedTarget||t.nativeEvent[o];r&&r===n||ur()(n,r)||e(t)},o.handleToggle=function(){this.state.show?this.hide():this.show()},o.hide=function(){this.setState({show:!1})},o.makeOverlay=function(e,t){return a().createElement(Fn,Tn({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},o.show=function(){this.setState({show:!0})},o.renderOverlay=function(){st().unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},o.render=function(){var e=this.props,t=e.trigger,o=e.overlay,n=e.children,r=e.onBlur,i=e.onClick,l=e.onFocus,c=e.onMouseOut,h=e.onMouseOver,d=Cn(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var u=a().Children.only(n),p=u.props,f={};return this.state.show&&(f["aria-describedby"]=o.props.id),f.onClick=pr(p.onClick,i),fr("click",t)&&(f.onClick=pr(f.onClick,this.handleToggle)),fr("hover",t)&&(f.onMouseOver=pr(p.onMouseOver,h,this.handleMouseOver),f.onMouseOut=pr(p.onMouseOut,c,this.handleMouseOut)),fr("focus",t)&&(f.onFocus=pr(p.onFocus,l,this.handleDelayedShow),f.onBlur=pr(p.onBlur,r,this.handleDelayedHide)),this._overlay=this.makeOverlay(o,d),(0,s.cloneElement)(u,f)},t}(a().Component);vr.propTypes=gr,vr.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const yr=vr;var Cr={id:Zn()(Mn().oneOfType([Mn().string,Mn().number])),placement:Mn().oneOf(["top","right","bottom","left"]),positionTop:Mn().oneOfType([Mn().number,Mn().string]),positionLeft:Mn().oneOfType([Mn().number,Mn().string]),arrowOffsetTop:Mn().oneOfType([Mn().number,Mn().string]),arrowOffsetLeft:Mn().oneOfType([Mn().number,Mn().string])},Sr=function(e){function t(){return e.apply(this,arguments)||this}return wn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,c=t.className,h=t.style,d=t.children,u=rr(Cn(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),p=u[0],f=u[1],m=Tn({},tr(p),((e={})[o]=!0,e)),g=Tn({top:n,left:r},h),v={top:s,left:l};return a().createElement("div",Tn({},f,{role:"tooltip",className:i()(c,m),style:g}),a().createElement("div",{className:Jn(p,"arrow"),style:v}),a().createElement("div",{className:Jn(p,"inner")},d))},t}(a().Component);Sr.propTypes=Cr,Sr.defaultProps={placement:"right"};const _r=Qn("tooltip",Sr),Rr={},wr=document.createElement("canvas");wr.id="gk-graph-avatar-canvas";class br extends a().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(){const{url:e}=this.props;e&&this.startImgLoading(e)}componentDidUpdate(e){const{url:t}=this.props;t&&e.url!==t&&this.startImgLoading(t)}componentWillUnmount(){this.image=void 0}refreshImage(){if(!this.image)return;let e;if(this.image.complete){const t=this.image.height,o=this.image.width,n=wr.getContext("2d");n.canvas.width=o,n.canvas.height=t,n.drawImage(this.image,0,0,o,t),e=wr.toDataURL(),Rr[this.image.src]=e}this.setState({dataURL:e})}startImgLoading(e){if(!this.image)return;const t=Rr[e];t?this.setState({dataURL:t}):this.image.src=e}render(){const{avatarClassName:e,avatarStyle:t,children:o,className:n,context:r,style:s,height:l,hint:c,size:h,width:d}=this.props,{dataURL:u}=this.state,p=!u,f=p?s:{...s,...t,background:`url(${u}) 0% 0% / ${h}px no-repeat`,height:l||h,width:d||h},m=i()(n,p?"":e,!p&&{avatar:!0}),g=p?a().createElement(a().Fragment,null,o):void 0;return a().createElement("div",{className:m,"data-test-class":"avatar","data-vscode-context":(0,P.q3)(r),style:f,title:c},g)}}var Tr=br;const Er=(e,t,o,n)=>a().createElement("span",{className:"ref-avatar"},a().createElement(Tr,{avatarClassName:t,context:n,size:14,url:e},o));function xr({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:n}){return n&&o?a().createElement(yr,{delayShow:400,overlay:a().createElement(_r,{className:i()("gk-graph","bs-tooltip",t),id:o},n),placement:"top",trigger:["hover","focus"]},e):a().createElement(a().Fragment,null," ",e," ")}function Mr({id:e,toolTipText:t,getExternalIcon:o,issueTrackerType:n}){return a().createElement(xr,{icon:o(`issue-${n}`),tooltipClassName:"wide pull-left",tooltipId:`issue-tooltip-${e}`,tooltipText:t?t.trim():""})}function Or({hostingServiceType:e,icon:t,id:o,toolTipText:n}){return a().createElement(xr,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:n?n.trim():""})}function Ir({icon:e,type:t,upstream:o,tooltipText:n}){return a().createElement(xr,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:n})}function Dr({avatarClassName:e,avatarUrl:t,context:o,icon:n,tooltipText:r}){return a().createElement(xr,{icon:Er(t,e,n,o),tooltipId:`remote-icon-${r||"tooltipText"}`,tooltipText:r})}var Nr=o(9453),Gr=o(7334),zr=o(9915);var Hr=function({className:e,name:t}){return a().createElement("span",{className:i()("ref-name","truncate",e),style:{height:m.pj}},t)};function kr(e,t,o,n=0){const{annotated:r,refType:i,message:s,name:l}=t;let c,h,d;switch(i){case B.V.REMOTE:{const e=t;h=function(e){return e.hostingServiceType?`${B.V.REMOTE}-${e.hostingServiceType}`:B.V.REMOTE}(e),c=e.avatarUrl;const n=`${l} (${o("Ref-Remote")})`;d=e.owner?`${e.owner} -> ${n}`:n;break}case B.V.TAG:h=B.V.TAG;d=`${r&&s?s:l} (${o("Ref-Tag")})`;break;case B.V.HEAD:default:h=B.V.HEAD,d=`${l} (${o("Ref-Local")})`}const u=t.context||void 0,p=a().createElement("span",{"data-vscode-context":(0,P.q3)(u)},e(h));return a().createElement(Dr,{avatarUrl:c||"",context:u,icon:p,key:`ref-icon-${n}-${i}-${l}`,tooltipText:d})}class Ar extends a().PureComponent{getContextForRefGroupIfExists(e,t,o){let n,r=!1,i=!1,s=!1;for(const a of e){if(a.refType===B.V.HEAD)return o?a.contextGroup||t:a.context;a.refType===B.V.REMOTE&&("origin"===a.owner?(r=!0,n=o?a.contextGroup||t:a.context):r||"upstream"!==a.owner?r||i||(s=!0,n=o?a.contextGroup||t:a.context):(i=!0,n=o?a.contextGroup||t:a.context)),r||i||s||(n=o?a.contextGroup||t:a.context)}return n}getDecoratedRefIcon(e,t,o,n,r){return a().createElement("div",{className:r,"data-vscode-context":(0,P.q3)(n),key:e,onClick:e=>this.onClickMetadata(e,o),onDoubleClick:e=>this.onDoubleClickMetadata(e,o)},t)}getPullRequestIconsAndTooltipsForRef(e,t,o){const{getExternalIcon:n,onMissingRefMetadata:r,translate:s}=this.props;let l;if(l=t.refType===B.V.HEAD?t.upstream?e?.[t.upstream.id]?.[Nr.mQ]:null:(0,P.uV)(t,e,r,Nr.mQ),!l||0===l.length)return null;const c=l,h=[];for(const e of c){const{context:r,hostingServiceType:l,id:c,title:d}=e;if(o.has(c))continue;o.add(c);const u={refId:t.id,type:Nr.mQ,data:e},p=`pr-icon-${t.refType}-${t.name}-${c}`,f=this.getDecoratedRefIcon(p,n("pull-request"),u,r,i()("ref-pull-request"));h.push(a().createElement(Or,{hostingServiceType:l,icon:f,id:c,key:p,toolTipText:d&&""!==d.trim()?s("PullRequestIcon-Tooltip",c,d,(0,Gr.y)(l)):""}))}return h}getUpstreamIndicatorIconsAndTooltipsForRef(e,t){const{getExternalIcon:o,onMissingRefMetadata:n,translate:r}=this.props,i=(0,P.uV)(t,e,n,Nr.uq);if(!i||0===i.ahead&&0===i.behind)return null;const s=i,l={refId:t.id,type:Nr.uq,data:s},c=s.ahead>0,h=s.behind>0,d=s.context;if(c||h){const e=c?`${s.ahead>99?"99+":s.ahead}`:"",n=h?`${s.behind>99?"99+":s.behind}`:"",i=`${s.owner}/${s.name}`;let u,p;h&&c?(u=r("UpstreamIndicatorIcon-BehindAndAheadTooltip",n,e,i),p="ahead-behind"):h?(u=r("UpstreamIndicatorIcon-BehindTooltip",n,i),p="behind"):c&&(u=r("UpstreamIndicatorIcon-AheadTooltip",e,i),p="ahead");const f=a().createElement(a().Fragment,null,h?a().createElement(a().Fragment,null,a().createElement("span",{className:"ref-upstream-behind"},n),o("upstream-behind")):null,c?a().createElement(a().Fragment,null,a().createElement("span",{className:"ref-upstream-ahead"},e),o("upstream-ahead")):null);return a().createElement(Ir,{icon:this.getDecoratedRefIcon(`ref-upstream-${t.id}`,f,l,d,"ref-upstream"),tooltipText:u,type:p,upstream:i})}return null}getIssueIconsAndTooltipsForRef(e,t,o){const{getExternalIcon:n,onMissingRefMetadata:r,translate:s}=this.props,l=(0,P.uV)(t,e,r,Nr.$M);if(!l||0===l.length)return null;const c=l,h=[];for(const e of c){if(o.has(e.id))continue;const r={refId:t.id,type:Nr.$M,data:e};o.add(e.id);const l=a().createElement(Mr,{getExternalIcon:n,id:e.id,issueTrackerType:e.issueTrackerType,key:`issue-icon-${e.id}`,toolTipText:e.title&&""!==e.title.trim()?s("IssueIcon-Tooltip",e.displayId,e.title):""}),c=t.context||void 0;h.push(this.getDecoratedRefIcon(`ref-issue-${e.id}`,l,r,c,i()("ref-issue")))}return h}onContextMenu=e=>{const{onContextMenu:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClick=e=>{const{onClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClickMetadata=(e,t)=>{e.stopPropagation();const{onClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};onDoubleClick=e=>{const{onDoubleClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();const{onDoubleClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};render(){const{enableShowHideRefsOptions:e,hasActive:t,hasRefs:o,isActive:n,isGhostRef:r,getExternalIcon:s,groupIsHovered:l,isInUnsupportedRebase:c,onRefBeginDrag:h,onRefDragEnter:d,onRefDragLeave:u,onRefDrop:p,onRefCanDrag:f,onRefCanDrop:g,onRefEndDrag:v,isRefGroupIncluded:y,refGroup:C,refGroupContext:S,refIconsPosition:_,refMetadata:R,onHovered:w,onHideRefClick:b,sha:T,showRemoteNamesOnRefs:E,enabledRefMetadataTypes:x,translate:M,type:O,useColumnHeaderIcons:I}=this.props,D=e&&!t&&l&&!y,N=_===B.l.LEFT,G=_===B.l.RIGHT,z=i()("ref-node-wrapper","flex"),H={minWidth:0,marginLeft:3,height:m.cZ},k=i()("ref-node","flex","items-center","p1",{"has-active":t,"dim-ref":!o&&l,"is-active":n});let A="";C.length>0&&(A=E&&C[0].fullName||C[0].name);const W=i()({"display-none":I&&!l&&G,mr1:G}),L=a().createElement(Hr,{className:W,name:A}),F=[],Z=[],U=[];let j=null;const V=new Set,$=new Set;C.forEach(((e,t)=>{if(F.push(kr(s,e,M,t)),x.includes(Nr.$M)&&(e.refType===B.V.HEAD||e.refType===B.V.REMOTE)){const t=this.getIssueIconsAndTooltipsForRef(R,e,$);t&&U.push(...t)}if(x.includes(Nr.mQ)&&e.refType===B.V.REMOTE){const t=this.getPullRequestIconsAndTooltipsForRef(R,e,V);t&&Z.push(...t)}x.includes(Nr.uq)&&e.refType===B.V.HEAD&&(j=this.getUpstreamIndicatorIconsAndTooltipsForRef(R,e))}));const Y=a().createElement("span",{className:i()("flex","items-center","ref-icons",{"is-active":n,"is-left-position":N})},[...F,...Z,...U]),K=n?a().createElement(xr,{icon:a().createElement("span",{className:i()("ref-icon-current")},s("check")),tooltipId:"ref-icon-current",tooltipText:M("Ref-Current")}):null,q=this.getContextForRefGroupIfExists(C,S),X=this.getContextForRefGroupIfExists(C,S,!0),J=D?a().createElement("span",{className:"flex ml-auto"},a().createElement(xr,{icon:a().createElement("span",{className:i()("mr1","button"),onClick:e=>b(e,C,T)},s("hide")),tooltipId:`ref-node-toggle-visibility-btn-${A}`,tooltipText:M("Hide")})):null,Q={commitType:O,isGhostRef:r,isInUnsupportedRebase:c,refGroup:C,sha:T};return a().createElement(zr.Z,{canDrag:e=>f(e),canDrop:(e,t,o)=>g(e,t,o),className:z,"data-vscode-context":(0,P.q3)(X),dndData:Q,dndId:`DndRefNode_${C[0].id}`,onBeginDrag:(e,t)=>h(e,t),onDragEnter:(e,t,o)=>d(e,t,o),onDragLeave:(e,t,o)=>u(e,t,o),onDrop:(e,t,o)=>p(e,t,o),onEndDrag:(e,t,o)=>v(e,t,o),style:H},a().createElement("span",{className:k,"data-test-class":"ref-node-span","data-vscode-context":(0,P.q3)(q),onContextMenu:c?void 0:this.onContextMenu,onDoubleClick:c?void 0:this.onDoubleClick,onMouseDown:this.onClick,onMouseEnter:e=>w(e,C,T),style:{minWidth:"100%"}},K,N&&Y,L,G&&Y,j,J))}}class Wr extends a().Component{headIconsRef=a().createRef();constructor(e){super(e),this.state={showPopoverMenu:!1,refPopoverMenuTarget:void 0}}onHiddenRefsClick=e=>{const{showPopoverMenu:t}=this.state;this.setState({showPopoverMenu:!t,refPopoverMenuTarget:t?e.target:void 0})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),0===Object.keys(this.props.excludeRefsById).length&&this.onHiddenRefsClick(e)};compareGraphRefOpts(e,t){const o=e.name.localeCompare(t.name);return 0===o&&e.type===B.V.REMOTE?-1:o}render(){const{columnSetting:e,enableResizer:t,enableShowHideRefsOptions:o,getExternalIcon:n,graphWidth:r,graphZones:s,graphZoneType:l,excludeRefsById:c,includeOnlyRefsById:h,isDraggable:d,onFilterColumnClick:u,onHover:p,onResize:f,onResizeEnd:g,onResizeFromPropChange:v,onResizeStart:y,onUnhover:C,onSettingsClick:S,rowsStatsLoading:_,settingsContext:R,showRemoteNamesOnRefs:w,translate:b}=this.props,{showPopoverMenu:T,refPopoverMenuTarget:E}=this.state,x=(0,P.zv)(l,s);if(!x)return null;const M=(0,P.SH)(l,s),O=x.currentWidth-m.b4,I=`${l}-header`,D=(0,P._e)(x),N=e?.isFilterable||!1,G=D&&(N||o),z=i()("columns-btn",{"small-btn":G});let H=null,k=null;if(l===m.jZ){const e=Object.entries(c),t=Object.values(h),r=t.length>0,s=r&&t.some((e=>e.type===B.V.TAG)),l=e.filter((e=>e[1].type===B.V.TAG&&(!r||!s)||!h[e[0]]));l.length>0&&(k=l.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,t)=>{const o=e[0],r=e[1];c[o].id=o;const i={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},s=!w&&"*"!==i.name||i.refType!==B.V.REMOTE?i.name:`${i.owner}/${i.name}`;return a().createElement("li",{id:o,key:o,onClick:e=>this.onShowRefNodes(e,[c[o]],!0)},kr(n,i,b,t),a().createElement("span",{className:"ml1 text-ellipsis"},s))})),H=o?a().createElement("div",{className:i()(z,"right","text-normal","button",T?"active":null)},a().createElement(xr,{icon:a().createElement("span",{onClick:this.onHiddenRefsClick},n("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:b("GraphHeader-HiddenRefs-btn")})):null)}const A=N?a().createElement("div",{className:i()(z,"columns-filter","right","fs-1",{filtering:e?.isFilterActive||!1})},a().createElement(xr,{icon:a().createElement("span",{className:"columns-filter-icon text-disabled hover-icon",id:`${l}-header-filter`,onClick:e=>u(e,l),style:{height:m.ze,marginBottom:m.wi}},n("filter")),tooltipId:"header-columns-filter",tooltipText:b("GraphHeader-Filter")})):null,W=!D&&l===m.WD&&_?a().createElement("span",{className:i()(z,"spinner")},n("loading")):null,L=a().createElement(Fn,{container:this,onHide:T?this.onHiddenRefsClick:void 0,placement:T?"bottom":void 0,rootClose:T,show:T,target:E},a().createElement(ar,{className:i()({"is-last-header":M}),id:"opts-popover",style:{display:T?"block":"none"}},a().createElement("ul",null,k))),F=M&&S?a().createElement("div",{className:i()("columns-btn","columns-settings","right","fs-1"),"data-vscode-context":(0,P.q3)(R)},a().createElement(xr,{icon:a().createElement("span",{className:"columns-settings-icon text-disabled hover-icon",onClick:e=>S(e,r)},n("settings")),tooltipId:"header-columns-settings",tooltipText:b("GraphHeader-EditColumns")})):null,Z=this.headIconsRef?.current?.clientWidth&&parseInt(this.headIconsRef.current.clientWidth,10)||0,U=a().createElement("div",{className:"header-columns-icons",ref:this.headIconsRef},F,W,A,H),j=D?a().createElement(a().Fragment,null,a().createElement("div",{className:i()(z,"justify-start",{ml1:!G}),style:{width:O-Z},title:b(x.headerLabelUntranslated)},n((0,P.sH)(l))),U):a().createElement(a().Fragment,null,a().createElement("div",{className:"text-disabled text-ellipsis",style:{height:m.ze,overflow:"hidden",width:O-Z}},a().createElement("span",{className:"fs-1 ml1 font-monospace"},b(x.headerLabelUntranslated))),U),V=a().createElement("div",{onMouseEnter:p,onMouseLeave:C},L,j),$=i()("panel-bg0","graph-header",{"is-draggable":d,"is-last-header":M});return M?a().createElement("div",{className:$,id:I,key:I,style:{minWidth:O,transform:"translate3d(0, 0, 0)",zIndex:2}},V):a().createElement("div",{className:$,id:I,key:I,style:{display:"flex",minWidth:x.currentWidth,transform:"translate3d(0, 0, 0)",width:x.currentWidth,zIndex:2}},a().createElement(on,{className:$,enable:t,handleStyles:{right:{right:0}},height:m.ze,onResize:f?e=>f(x,e):void 0,onResizeEnd:g?e=>g(x,e):void 0,onResizeFromPropChange:v?e=>v(x,e):void 0,onResizeStart:y?e=>y(x,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:b,width:x.currentWidth,widthConstraints:(0,P.eR)(l,s,r)},V))}}const Pr=Wr;class Lr extends a().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(){const{columnsSettings:e,dragAppendToContainer:t,enableResizer:o,enableShowHideRefsOptions:n,getExternalIcon:r,excludeRefsById:i,headerContext:s,includeOnlyRefsById:l,onFilterColumnClick:c,onPopupGraphHeaderContextMenu:h,onGraphZoneResize:d,onGraphZoneResizeEnd:u,onGraphZoneResizeFromPropChange:p,onSettingsClick:f,onToggleRefNodesShown:g,graphZones:v,repoPath:y,rowsStatsLoading:C,showRemoteNamesOnRefs:S,translate:_,width:R,height:w,settingsContext:b}=this.props,T=a().createElement("div",{className:"panel-bg0",style:{height:m.ze,marginBottom:m.wi,marginLeft:-m.mu,minWidth:m.mu+m.b4}});return a().createElement("div",{className:"graph-header flex","data-vscode-context":(0,P.q3)(s),onContextMenu:h?e=>h(e,R):void 0,style:{height:m.ze,marginBottom:m.wi}},T,a().createElement(vn,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,mirrorContainer:t,onDrop:this.onDrop},v.map((t=>a().createElement(Pr,{columnSetting:e[t.type],enableResizer:o,enableShowHideRefsOptions:n,excludeRefsById:i,getExternalIcon:r,graphHeight:w,graphWidth:R,graphZones:v,graphZoneType:t.type,id:`${t.type}Header`,includeOnlyRefsById:l,isDraggable:t.isCustomizable,isDroppable:t.isCustomizable,key:`${t.type}Header`,onFilterColumnClick:c,onHover:this.onZoneHover,onResize:d,onResizeEnd:u,onResizeFromPropChange:p,onSettingsClick:f,onToggleRefNodesShown:g,onUnhover:this.onZoneUnHover,repoPath:y,rowsStatsLoading:C,settingsContext:b,showRemoteNamesOnRefs:S,translate:_})))))}}var Fr=Lr;function Br(e){const{constraints:{max:t,min:o},stats:{files:n,additions:r,deletions:s},getExternalIcon:l,isLastColumn:c,isRowSelected:h,verticalScrollWidth:d,zoneWidth:u}=e,p=r+s,f=Math.max(o,Math.min(t,p));let g=c?d+m.SZ:m.SZ;p<=f&&(g+=m.SZ);const v=Math.max(m.QW,f/t*(u-52-g)),y=r/p*v,C=s/p*v;return a().createElement("div",{className:i()("changes-zone",h?"selected":null)},a().createElement("span",{className:"changes-files",style:{width:52}},a().createElement("span",{className:"mr1"},l("files")),a().createElement("span",{className:"mr1"},n>999?"999+":n)),a().createElement("span",{className:"changes-bar",style:{width:v}},r?a().createElement("div",{className:"changes-sub-bar added",style:{width:y}}):null,s?a().createElement("div",{className:"changes-sub-bar deleted",style:{width:C}}):null))}const Zr=i()("absolute","top-0","right-0","bottom-0","left-0","time-line"),Ur=i()(Zr,"z2");var jr=function({z2:e}){return a().createElement("div",{className:e?Ur:Zr,style:{height:2}})};const Vr=a().createElement("div",{className:"color-strip height-100",style:{width:2}}),$r={};const Yr={};class Kr extends a().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,context:n,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:c,hasAvatars:h,highlightRowsOnRefHover:d,isDimmedMergeCommitRow:u,isHighlighted:p,isHovering:f,isLastColumn:g,isInUnsupportedRebase:v,isMissingHoveredRefGroup:y,isSelected:C,numGraphColumns:S,onContextMenu:_,onClickCommit:R,onDoubleClickCommit:w,rowContext:b,sha:T,showColorStrip:E,showConflictIcon:x,showTimeline:M,setAsCurrentlyHoveredGraphCommit:O,style:I,title:D,type:N,verticalScrollWidth:G,zoneWidth:z}=this.props,H=function(e,t){const o=e+t.toString();let n=$r[o];return n||(n=i()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),$r[o]=n,n)}(N,f),k=function(e,t,o,n,r,s=!1,a=!1,l=!1,c=!1){const h=`${e}${t}${n}${o}${s}${a}${l}${c}${r}`;let d=Yr[h];return d||(d=i()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":n},{"is-highlighted":o},{"dimmed-row":c&&!o||s&&(a||l)}),Yr[h]=d,d)}(N,o,p,C,S,y,d,s,u),A=M?a().createElement(jr,null):null;return a().createElement("div",{className:H,"data-vscode-context":(0,P.q3)(b),onContextMenu:v?void 0:e=>_(e,c,T),onDoubleClick:e=>w(e,c,T),onMouseDown:e=>R(e,c,T),onMouseEnter:e=>O(e,c,T,r),onMouseLeave:t=>e(t,c,T,r),style:I},A,a().createElement("div",{className:k,"data-vscode-context":(0,P.q3)(n)},E?Vr:null,x?a().createElement("span",{className:i()("ml2")},l("warning")):null,a().createElement("span",{className:i()("graph-zone","width-100","flex-1"),style:{lineHeight:`${m.cZ}px`,...g&&{width:z-G},...h&&{marginLeft:5}},title:D},t)))}}var qr=(e,t)=>{const{processedRows:o,rowStatsConstraints:n,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:s,numGraphColumns:l,clearCurrentlyHoveredGraphCommit:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,rowsStats:y,setAsCurrentlyHoveredGraphCommit:C}=e,S=new P.Dj(e);return({rowIndex:e,style:_})=>{const R=t(e),w=o[e],{sha:b,type:T,contexts:E}=w,x=E?.stats||void 0,M=E?.row||void 0,O=y?.[b];let I=[O?.files?`${O.files} files changed`:"",O?.additions?`${O.additions} lines added`:"",O?.deletions?`${O.deletions} lines deleted`:""].filter(Boolean).join(", ");I=T!==f.ch?I:"";const D=m.WD,N=S.isColumnFollowingGraphColumn(D),G=S.isLastColumn(D),z=S.getZoneWidth(D),H=S.getVerticalScrollWidth(D);return a().createElement(Kr,{clearCurrentlyHoveredGraphCommit:c,column:w.column,context:x,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:D,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:T===f.lH&&d,isHighlighted:S.isHighlighted(e),isHovering:S.isHovering(e),isInUnsupportedRebase:s,isLastColumn:G,isMissingHoveredRefGroup:S.isMissingHoveredRefGroup(e),isSelected:S.isSelected(e),key:R,numGraphColumns:l,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:M,setAsCurrentlyHoveredGraphCommit:C,sha:b,showColorStrip:N,showTimeline:S.hasTimeline(e),style:_,title:I,type:T,verticalScrollWidth:H,zoneWidth:z},O&&T!==f.ch?a().createElement(Br,{constraints:n,getExternalIcon:r,isLastColumn:G,isRowSelected:S.isSelected(e),stats:O,verticalScrollWidth:H,zoneWidth:z}):null)}};function Xr(e){const t=(e||"").trim().toUpperCase();if(0===t.length)return"?";const o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function Jr(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}class Qr extends a().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)=>{const{authorInitials:n,column:r,context:i,cssVariables:s,style:l,fontSize:c,minWidth:h,size:d,title:u=""}=this.props,f=void 0!==r&&s[(0,R.a2)(r)]||m.iq,g=p(f.trim()),v={alignItems:"center",backgroundColor:f,backgroundSize:d,color:g,display:"flex",fontSize:`${c}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:h,top:o,width:t,...l};return a().createElement("div",{className:this.getAvatarClassName(),"data-vscode-context":(0,P.q3)(i),style:v,title:u},n?n.toUpperCase():"")};ensureTooltipText=()=>{const{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};setOverlayTriggerRef=e=>{this.overlayTriggerRef=e};getAvatarClassName(){return i()("avatar","gravatar","rad2",this.props.className)}render(){const{tooltipText:e}=this.state,{avatarUrl:t,context:o,style:n,height:r,minWidth:i,size:s,title:l="",tooltip:c,top:h,useAuthorInitialsForAvatars:d,width:u}=this.props,p=r||s,f=u||s,g=h||m.P3/2-p/2,v={top:g,minWidth:i,...n},y=this.getDefaultAvatar(p,f,g),C=d?y:a().createElement("span",null,a().createElement(Tr,{avatarClassName:this.getAvatarClassName(),avatarStyle:v,context:o,height:p,hint:l,size:s,url:t,width:f},this.getDefaultAvatar(p,f,g)));return c?a().createElement(yr,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:a().createElement(_r,{className:"gk-graph",id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},C):C}}var ei=(e,t)=>{const{avatarUrlByEmail:o,clearCurrentlyHoveredGraphCommit:n,cssVariables:r,currentlyHoveredCommitSha:s,dimMergeCommits:l,dimRowsOfSelectedCommit:c,getExternalIcon:h,highlightRowsOnRefHover:d,processedRows:u,isInUnsupportedRebase:p,onCommitContextMenu:g,onClickCommit:v,onDoubleClickCommit:C,numGraphColumns:_,setAsCurrentlyHoveredGraphCommit:R,useAuthorInitialsForAvatars:w}=e,b=new P.Dj(e);return({rowIndex:e,style:T})=>{const E=t(e),x=u[e],{author:M,email:O,message:I,sha:D,type:N,contexts:G}=x,z=m.GF,H=b.getActiveGraphZone(z);let k=N!==f.ch?M:void 0;const A=N!==f.ch?Jr(M,O):void 0,W=G?.author||void 0,P=G?.row||void 0,L=b.isColumnFollowingGraphColumn(z),F=b.isLastColumn(z),B=b.getZoneWidth(z),Z=(B<=H.minimumWidth||H?.mode===m.Um.Rich)&&N!==f.ch;if(Z){const e=()=>{const e=M&&""!==M.trim()&&"Unknown"!==M?Jr(M,O):O,t=S(y(I||""));let o="";if(0===t.length)o=e;else{t.unshift({email:O,name:M});for(let e=0;e<t.length;e+=1){const n=t[e];o+=Jr(n.name,n.email),e<t.length-1&&(o+=", ")}}return o},t=w?void 0:o[O];k=a().createElement(Qr,{authorInitials:Xr(M),avatarUrl:t,className:i()("node",`${f.o$}`,"z6"),column:x.column,context:G?.avatar||void 0,cssVariables:r,fontSize:10,height:m.LG,size:m.Y8,tooltip:e,useAuthorInitialsForAvatars:w,width:m.LG})}return a().createElement(Kr,{clearCurrentlyHoveredGraphCommit:n,column:x.column,context:W,currentlyHoveredCommitSha:s,dimRowsOfSelectedCommit:c,getExternalIcon:h,graphZoneType:z,hasAvatars:Z,highlightRowsOnRefHover:d,isDimmedMergeCommitRow:N===f.lH&&l,isHighlighted:b.isHighlighted(e),isHovering:b.isHovering(e),isInUnsupportedRebase:p,isLastColumn:F,isMissingHoveredRefGroup:b.isMissingHoveredRefGroup(e),isSelected:b.isSelected(e),key:E,numGraphColumns:_,onClickCommit:v,onContextMenu:g,onDoubleClickCommit:C,rowContext:P,setAsCurrentlyHoveredGraphCommit:R,sha:D,showColorStrip:L,showTimeline:b.hasTimeline(e),style:T,title:A,type:N,verticalScrollWidth:b.getVerticalScrollWidth(z),zoneWidth:B},k)}};var ti=(e,t)=>{const{processedRows:o,getExternalIcon:n,highlightRowsOnRefHover:r,isInUnsupportedRebase:i,numGraphColumns:s,formatCommitDateTime:l,clearCurrentlyHoveredGraphCommit:c,dimMergeCommits:h,dimRowsOfSelectedCommit:d,currentlyHoveredCommitSha:u,onCommitContextMenu:p,onClickCommit:g,onDoubleClickCommit:v,setAsCurrentlyHoveredGraphCommit:y}=e,C=new P.Dj(e);return({rowIndex:e,style:S})=>{const _=t(e),R=o[e],{date:w,sha:b,type:T,contexts:E}=R,x=w&&T!==f.ch?l(w,f.Gu.RowEntry):void 0,M=w&&T!==f.ch?l(w,f.Gu.Tooltip):void 0,O=E?.date||void 0,I=E?.row||void 0,D=m.PL,N=C.isColumnFollowingGraphColumn(D),G=C.isLastColumn(D),z=C.getZoneWidth(D),H=C.getVerticalScrollWidth(D);return a().createElement(Kr,{clearCurrentlyHoveredGraphCommit:c,column:R.column,context:O,currentlyHoveredCommitSha:u,dimRowsOfSelectedCommit:d,getExternalIcon:n,graphZoneType:D,highlightRowsOnRefHover:r,isDimmedMergeCommitRow:T===f.lH&&h,isHighlighted:C.isHighlighted(e),isHovering:C.isHovering(e),isInUnsupportedRebase:i,isLastColumn:G,isMissingHoveredRefGroup:C.isMissingHoveredRefGroup(e),isSelected:C.isSelected(e),key:_,numGraphColumns:s,onClickCommit:g,onContextMenu:p,onDoubleClickCommit:v,rowContext:I,setAsCurrentlyHoveredGraphCommit:y,sha:b,showColorStrip:N,showTimeline:!1,style:S,title:M,type:T,verticalScrollWidth:H,zoneWidth:z},x)}},oi={glyph:Mn().string.isRequired},ni=function(e){function t(){return e.apply(this,arguments)||this}return wn(t,e),t.prototype.render=function(){var e,t=this.props,o=t.glyph,n=t.className,r=rr(Cn(t,["glyph","className"])),s=r[0],l=r[1],c=Tn({},tr(s),((e={})[Jn(s,o)]=!0,e));return a().createElement("span",Tn({},l,{className:i()(n,c)}))},t}(a().Component);ni.propTypes=oi;const ri=Qn("glyphicon",ni);var ii={$bs_formGroup:Mn().object},si=function(e){function t(){return e.apply(this,arguments)||this}wn(t,e);var o=t.prototype;return o.getGlyph=function(e){switch(e){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}},o.renderDefaultFeedback=function(e,t,o,n){var r=this.getGlyph(e&&e.validationState);return r?a().createElement(ri,Tn({},n,{glyph:r,className:i()(t,o)})):null},o.render=function(){var e=this.props,t=e.className,o=e.children,n=rr(Cn(e,["className","children"])),r=n[0],s=n[1],l=tr(r);if(!o)return this.renderDefaultFeedback(this.context.$bs_formGroup,t,l,s);var c=a().Children.only(o);return a().cloneElement(c,Tn({},s,{className:i()(c.props.className,t,l)}))},t}(a().Component);si.defaultProps={bsRole:"feedback"},si.contextTypes=ii;const ai=Qn("form-control-feedback",si);var li={componentClass:Nn()},ci=function(e){function t(){return e.apply(this,arguments)||this}return wn(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,o=e.className,n=rr(Cn(e,["componentClass","className"])),r=n[0],s=n[1],l=tr(r);return a().createElement(t,Tn({},s,{className:i()(o,l)}))},t}(a().Component);ci.propTypes=li,ci.defaultProps={componentClass:"p"};const hi=Qn("form-control-static",ci);var di={componentClass:Nn(),type:Mn().string,id:Mn().string,inputRef:Mn().func},ui={$bs_formGroup:Mn().object},pi=function(e){function t(){return e.apply(this,arguments)||this}return wn(t,e),t.prototype.render=function(){var e,t=this.context.$bs_formGroup,o=t&&t.controlId,n=this.props,r=n.componentClass,s=n.type,l=n.id,c=void 0===l?o:l,h=n.inputRef,d=n.className,u=n.bsSize,p=rr(Cn(n,["componentClass","type","id","inputRef","className","bsSize"])),f=p[0],m=p[1];("file"!==s&&(e=tr(f)),u)&&(e[Jn({bsClass:"input"},qn[u]||u)]=!0);return a().createElement(r,Tn({},m,{type:s,id:c,ref:h,className:i()(d,e)}))},t}(a().Component);pi.propTypes=di,pi.defaultProps={componentClass:"input"},pi.contextTypes=ui,pi.Feedback=ai,pi.Static=hi;const fi=Qn("form-control",er([Kn,Yn],pi)),mi={ADDED:"added",DELETED:"deleted",MODIFIED:"modified",RENAMED:"renamed"};class gi extends a().Component{render(){const{fileDiffType:e,getExternalIcon:t,translate:o}=this.props;if(!e)return null;const n=(e=>{switch(e){case mi.ADDED:return"added";case mi.MODIFIED:return"modified";case mi.DELETED:return"deleted";case mi.RENAMED:return"renamed";default:return null}})(e),r=(e=>{switch(e){case mi.ADDED:return"color-green";case mi.MODIFIED:return"color-orange";case mi.DELETED:return"color-red";case mi.RENAMED:return"color-blue";default:return null}})(e),s=(e=>{switch(e){case mi.ADDED:return"CommitDiffSection-FileAdded";case mi.MODIFIED:return"CommitDiffSection-FileModified";case mi.DELETED:return"CommitDiffSection-FileDeleted";case mi.RENAMED:return"CommitDiffSection-FileRenamed";default:return null}})(e),l=i()("fs-1",r,"mr1");return a().createElement("span",{className:l,title:o(s)},n&&t(n))}}var vi=gi;const{ADDED:yi,DELETED:Ci,MODIFIED:Si,RENAMED:_i}=mi,Ri={[yi]:"CommitDiffSection-NFilesAdded",[Ci]:"CommitDiffSection-NFilesDeleted",[Si]:"CommitDiffSection-NFilesModified",[_i]:"CommitDiffSection-NFilesRenamed"};var wi=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:n,translate:r}){const i=n?e:r(Ri[t],e);let s,l;return n&&(s={fontSize:m.wd,marginRight:m.IX},l={fontSize:m.dH,margin:`0px ${m.VB}px 0px 0px`}),a().createElement("span",{className:"tiny-files-readout",style:s},a().createElement(vi,{fileDiffType:t,getExternalIcon:o,style:l,translate:r}),a().createElement("span",{className:"tiny-files-readout-text"},i))};var bi=function({diffStats:e,fileNodeListStyle:t,getExternalIcon:o,translate:r}){const{types:i}=n;if(!e)return a().createElement("span",null);if(!Object.values(e).some((e=>Boolean(e))))return a().createElement("span",null);const s=e.modified?a().createElement(wi,{count:e.modified,diffType:i.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,l=e.added?a().createElement(wi,{count:e.added,diffType:i.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,c=e.deleted?a().createElement(wi,{count:e.deleted,diffType:i.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,h=e.renamed?a().createElement(wi,{count:e.renamed,diffType:i.RENAMED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,d=t?{marginLeft:m.aV}:null;return a().createElement("span",{className:"summary",style:d},s,l,c,h)};class Ti extends a().Component{textWidthRef=a().createRef();wrapperRef=a().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(){const{clearCurrentlyHoveredGraphCommit:e,currentlyHoveredCommitSha:t,getExternalIcon:o,graphZoneType:n,isCommitting:r,isHovering:s,isSelected:l,onBlur:c,onClickCommit:h,onContextMenu:d,onFocus:u,onMessageChange:p,setAsCurrentlyHoveredGraphCommit:m,sha:g,style:v,translate:y,value:C,workDirStats:S}=this.props,_=i()("graph-zone-column","pt3","pb3","pointer","height-100-percent","grow-3","graph-row-wrapper",f.ch,{"is-hovering":s}),R=i()("column-1","graph-row","flex",{"is-selected":l}),w=a().createElement(bi,{diffStats:S,getExternalIcon:o,translate:y}),b=a().createElement("div",{className:"work-dir-input",ref:this.wrapperRef},a().createElement(fi,{"data-test-class":"work-dir-input-field",disabled:r,onBlur:e=>c(e),onChange:e=>p(e.target.value),onContextMenu:e=>d(e,n,g),onFocus:e=>u(e),onKeyDown:e=>this.onWipKeyDown(e),placeholder:y("WorkDirMessageInput-WIPPlaceholder"),type:"text",value:C}),a().createElement("div",{className:"text-width","data-test-class":"work-dir-input-message",ref:this.textWidthRef},C));return a().createElement("div",{className:_,onMouseEnter:e=>m(e,n,g,t),onMouseLeave:o=>e(o,n,g,t),style:v},a().createElement("div",{className:R,"data-test-class":"work-dir-message-row-div",onMouseDown:e=>h(e,n,g)},b,w))}}var Ei=(e,t)=>{const{dimMergeCommits:o,dimRowsOfSelectedCommit:n,processedRows:r,translate:i,getExternalIcon:s,graphCommitDescDisplayMode:l,highlightRowsOnRefHover:c,isInUnsupportedRebase:h,numGraphColumns:d,isCommitting:u,pendingCommitMessageSummary:p,workDirStats:g,onBlurWipNodeInput:v,onFocusWipNodeInput:y,onMessageChange:C,clearCurrentlyHoveredGraphCommit:S,currentlyHoveredCommitSha:_,onCommitContextMenu:R,onClickCommit:w,onDoubleClickCommit:b,setAsCurrentlyHoveredGraphCommit:T,wipMessageEditable:E}=e,x=new P.Dj(e);return({rowIndex:e,style:M})=>{const O=t(e),I=r[e],{displaySummary:D,displayBody:N,sha:G,type:z,contexts:H,message:k}=I,A=H?.message||void 0,W=H?.row||void 0,P=m.KE,L=x.isColumnFollowingGraphColumn(P),F=x.isLastColumn(P),B=x.getZoneWidth(P),Z=x.getVerticalScrollWidth(P),U=x.isHovering(e),j=z===f.ch&&void 0!==g&&Object.keys(g).length>0,V=j&&!E?a().createElement(bi,{diffStats:g,getExternalIcon:s,translate:i}):null,$=l===m.R_.ALWAYS||l===m.R_.ON_HOVER&&U,Y=z!==f.ch||E?a().createElement(a().Fragment,null,a().createElement("span",{className:"message-zone--summary"},D),$&&N?a().createElement("span",{className:"message-zone--body"},N):null):a().createElement("span",{style:{display:"flex",alignItems:"stretch",textOverflow:"ellipsis"}},$?D:null,V);return j&&E?a().createElement(Ti,{clearCurrentlyHoveredGraphCommit:S,currentlyHoveredCommitSha:_,getExternalIcon:s,graphZoneType:P,isCommitting:u,isHovering:x.isHovering(e),isSelected:x.isSelected(e),key:O,onBlur:v,onClickCommit:w,onContextMenu:R,onFocus:y,onMessageChange:C,setAsCurrentlyHoveredGraphCommit:T,sha:G,style:M,translate:i,value:p,workDirStats:g}):a().createElement(Kr,{clearCurrentlyHoveredGraphCommit:S,column:I.column,context:A,currentlyHoveredCommitSha:_,dimRowsOfSelectedCommit:n,getExternalIcon:s,graphZoneType:P,highlightRowsOnRefHover:c,isDimmedMergeCommitRow:z===f.lH&&o,isHighlighted:x.isHighlighted(e),isHovering:U,isInUnsupportedRebase:h,isLastColumn:F,isMissingHoveredRefGroup:x.isMissingHoveredRefGroup(e),isSelected:x.isSelected(e),key:O,numGraphColumns:d,onClickCommit:w,onContextMenu:R,onDoubleClickCommit:b,rowContext:W,setAsCurrentlyHoveredGraphCommit:T,sha:G,showColorStrip:L,showConflictIcon:z===f.S7||z===f.br,showTimeline:x.hasTimeline(e),style:M,title:k,type:z,verticalScrollWidth:Z,zoneWidth:B},Y)}};var xi=(e,t)=>{const{processedRows:o,getExternalIcon:n,highlightRowsOnRefHover:r,isInUnsupportedRebase:i,numGraphColumns:s,clearCurrentlyHoveredGraphCommit:l,currentlyHoveredCommitSha:c,dimMergeCommits:h,dimRowsOfSelectedCommit:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v,shaLength:y}=e,C=new P.Dj(e);return({rowIndex:e,style:S})=>{const _=t(e),R=o[e],{sha:w,type:b,contexts:T}=R,E=((e,t=m.ai)=>e?e.substring(0,t):"")(w,y),x=T?.sha||void 0,M=T?.row||void 0,O=m.av,I=C.isColumnFollowingGraphColumn(O),D=C.isLastColumn(O),N=C.getZoneWidth(O),G=C.getVerticalScrollWidth(O);return a().createElement(Kr,{clearCurrentlyHoveredGraphCommit:l,column:R.column,context:x,currentlyHoveredCommitSha:c,dimRowsOfSelectedCommit:d,getExternalIcon:n,graphZoneType:O,highlightRowsOnRefHover:r,isDimmedMergeCommitRow:b===f.lH&&h,isHighlighted:C.isHighlighted(e),isHovering:C.isHovering(e),isInUnsupportedRebase:i,isLastColumn:D,isMissingHoveredRefGroup:C.isMissingHoveredRefGroup(e),isSelected:C.isSelected(e),key:_,numGraphColumns:s,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:g,rowContext:M,setAsCurrentlyHoveredGraphCommit:v,sha:w,showColorStrip:I,showTimeline:C.hasTimeline(e),style:S,type:b,verticalScrollWidth:G,zoneWidth:N},b!==f.ch?a().createElement("span",{className:"font-monospace pointer",title:E},E):null)}};function Mi({hasRefs:e,isActiveSha:t,left:o,type:n,width:r}){const s=i()("ref-line","z4",{"is-active":t});return e&&function(e){return[f.o$,f.lH,f.S7].includes(e)}(n)?a().createElement("hr",{className:s,style:{left:o,width:r}}):null}var Oi=Mi;function Ii({graphZoneModeConstants:{RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:e},hasRefs:t,isActiveSha:o,nodeOffset:n,type:r}){return a().createElement(Mi,{hasRefs:t,isActiveSha:o,left:0,type:r,width:n+(r===f.lH?e:0)})}function Di({className:e,marginLeft:t}){return a().createElement("div",{className:i()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},a().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const Ni=(e,t,o,n)=>o+t*e+n/2;function Gi({column:e,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:t,COMMIT_NODE_DIAMETER:o,COMMIT_ZONE_GUTTER_WIDTH:n}}){return a().createElement(Di,{className:"z1",marginLeft:Ni(e,t,n,o)})}function zi(){return a().createElement(Di,{marginLeft:0})}const Hi=(e,t,o,n,r,s)=>{const l={height:s.COMMIT_MERGE_NODE_DIAMETER,left:o+s.COMMIT_MERGE_NODE_LEFT_OFFSET,marginTop:s.COMMIT_MERGE_NODE_TOP_OFFSET,opacity:n,width:s.COMMIT_MERGE_NODE_DIAMETER},c=i()("node",r,"z6"),h=a().createElement(_r,{className:"gk-graph",id:"graph-merge-node-tooltip"},Jr(t,e));return a().createElement(yr,{delayShow:250,overlay:h,placement:"top",trigger:["hover","focus"]},a().createElement("div",{className:c,"data-test-class":"tree-row-commit-node",style:l}))};class ki extends a().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:o,graphZoneModeConstants:n,left:r,opacity:s,translate:l,type:c}=this.props;return(t||e)&&c===f.o$?n.IS_COMPACT?Hi(e,t,r,s,f.lH,n):(({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:n,column:r,context:s,cssVariables:l,graphZoneModeConstants:c,left:h,message:d,opacity:u,type:p,useAuthorInitialsForAvatars:f})=>a().createElement(Qr,{authorInitials:t,avatarUrl:n,className:i()("node",`${p}`,"z6"),column:r,context:s,cssVariables:l,fontSize:10,height:c.COMMIT_NODE_DIAMETER,size:c.COMMIT_ZONE_AVATAR_DIAMETER,style:{left:h,opacity:u},tooltip:()=>{const t=o&&""!==o.trim()&&"Unknown"!==o?Jr(o,e):e,n=S(y(d||""));let r="";if(0===n.length)r=t;else{n.unshift({email:e,name:o});for(let e=0;e<n.length;e+=1){const t=n[e];r+=Jr(t.name,t.email),e<n.length-1&&(r+=", ")}}return r},top:c.COMMIT_NODE_TOP_OFFSET,useAuthorInitialsForAvatars:f,width:c.COMMIT_NODE_DIAMETER}))(this.props):c===f.lH||c===f.S7||c===f.br?Hi(e,t,r,s,c,n):((e,t,o,n,r,s,l,c=!1,h)=>{const d={height:h.COMMIT_NODE_DIAMETER,left:n,marginTop:h.COMMIT_NODE_TOP_OFFSET,opacity:r,width:h.COMMIT_NODE_DIAMETER};c&&(d.borderWidth=1);const u=i()("gk-graph","node",l,"z6",{compact:c});let p;p=l===f.kP?s("Stash"):l===f.ch?s("Graph-WorkInProgress"):Jr(o,t);const m=a().createElement(_r,{className:"gk-graph",id:"graph-other-node-tooltip"},p);return a().createElement(yr,{delayShow:250,overlay:m,placement:"top",trigger:["hover","focus"]},a().createElement("div",{className:u,"data-test-class":"tree-row-commit-node",style:d},l!==f.kP||c?null:a().createElement("span",null,e("stash"))))})(o,e,t,r,s,l,c,n.IS_COMPACT,n)}}class Ai extends a().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:n,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:r,COMMIT_ZONE_GUTTER_WIDTH:i,COMMIT_ZONE_LINE_WIDTH:s,IS_COMPACT:l}}=this.props,c=re(o,t,n,e,r,i,s,l);return a().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:c}})}}var Wi=Ai;function Pi({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:n="",left:r,width:s}){return a().createElement("div",{className:i()("absolute","top-0","bottom-0","z3",n),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:s}},o)}function Li({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:n}){return a().createElement(Pi,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:n},t?a().createElement(jr,{z2:!0}):null)}function Fi({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:n,width:r}){return a().createElement(Pi,{boxShadowAlpha:e,boxShadowLeft:-5,left:n+t-r,width:r},o?a().createElement(jr,{z2:!0}):null,a().createElement(zi,null))}class Bi extends a().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:n,clearCurrentlyHoveredGraphCommit:r,column:s,columnColorByColumn:l,commitZoneWidth:c,cssVariables:h,currentlyHoveredCommitSha:d,edgeColumnMax:u,edges:p,hasRefs:f,hasTimeline:g,getExternalIcon:v,graphZoneModeConstants:y,isActiveSha:C,isInUnsupportedRebase:S,isLastColumn:_,isSelected:R,leftGutterBoxShadowAlpha:w,leftGutterWidth:b,message:T,nodeOffset:E,nodeOpacity:x,numGraphColumns:M,onContextMenu:O,onClickCommit:I,onDoubleClickCommit:D,rightGutterBoxShadowAlpha:N,rightGutterWidth:G,rowContext:z,scrollLeft:H,setAsCurrentlyHoveredGraphCommit:k,sha:A,shouldShowRefLine:W,style:L,translate:F,type:B,useAuthorInitialsForAvatars:Z,zoneContext:U}=this.props,j=s%M+1,V=i()("relative","commit-zone","height-100-percent","pt3",B,`column-${j}`,{"is-selected":R,"has-active":C}),$=g?a().createElement(jr,{z2:!0}):null,Y=a().createElement("div",{className:V,"data-vscode-context":(0,P.q3)(U),onContextMenu:S?void 0:e=>O(e,m.Wm,A),onDoubleClick:e=>D(e,m.Wm,A),onMouseDown:e=>I(e,m.Wm,A),onMouseEnter:e=>k(e,m.Wm,A,d),onMouseLeave:e=>r(e,m.Wm,A,d),style:{...L,..._&&{width:"100%"}}},$,a().createElement(Li,{boxShadowAlpha:w,hasTimeline:g,scrollLeft:H,width:b}),W?a().createElement(Ii,{graphZoneModeConstants:y,hasRefs:f,isActiveSha:C,nodeOffset:E,type:B}):null,a().createElement(ki,{authorEmail:e,authorInitials:Xr(t),authorName:t,avatarUrl:n,column:s,context:o,cssVariables:h,getExternalIcon:v,graphZoneModeConstants:y,left:E,message:T,opacity:x,translate:F,type:B,useAuthorInitialsForAvatars:Z}),a().createElement(Gi,{column:s,graphZoneModeConstants:y}),a().createElement(Wi,{columnColorByColumn:l,edgeColumnMax:u,edges:p,graphZoneModeConstants:y,nodeColumn:s}),a().createElement(Fi,{boxShadowAlpha:N,commitZoneWidth:c,hasTimeline:g,scrollLeft:H,width:G}));return z?a().createElement("div",{"data-vscode-context":(0,P.q3)(z)},Y):Y}}var Zi=function(e,t){const{avatarUrlByEmail:o,onMissingAvatar:n,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:i,cssVariables:s,currentlyHoveredCommitSha:l,processedRows:c,getExternalIcon:h,graphZoneModeConstants:d,isInUnsupportedRebase:u,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,onCommitContextMenu:g,onClickCommit:v,onDoubleClickCommit:y,nodeOffsetByColumn:C,nodeOpacityByColumn:S,numGraphColumns:_,rightGutterBoxShadowAlpha:R,rightGutterWidth:w,setAsCurrentlyHoveredGraphCommit:b,scrollLeft:T,shouldShowRefLine:E,translate:x,useAuthorInitialsForAvatars:M}=e,O=new P.Dj(e);return({rowIndex:e,style:I})=>{const D=t(e),N=c[e],G=m.Wm,z=O.getZoneWidth(G),{email:H,author:k,contexts:A,message:W,sha:P,type:L}=N,F=N.column,B=A?.graph||void 0,Z=A?.avatar||void 0,U=A?.row||void 0;let j;M||(j=o[H],j||n(H,P));const V=O.isLastColumn(G);return a().createElement(Bi,{authorEmail:H,authorName:k,avatarContext:Z,avatarUrl:j,clearCurrentlyHoveredGraphCommit:r,column:F,columnColorByColumn:i,commitZoneWidth:z,cssVariables:s,currentlyHoveredCommitSha:l,edgeColumnMax:N.edgeColumnMaxes,edges:N.edges,getExternalIcon:h,graphZoneModeConstants:d,hasRefs:N.hasRefs||!1,hasTimeline:O.hasTimeline(e),isActiveSha:O.rowContainsCurrentHeadRef(N),isInUnsupportedRebase:u,isLastColumn:V,isSelected:O.isSelected(e),key:D,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,message:W,nodeOffset:C[F],nodeOpacity:S[F],numGraphColumns:_,onClickCommit:v,onContextMenu:g,onDoubleClickCommit:y,rightGutterBoxShadowAlpha:R,rightGutterWidth:w,rowContext:U,scrollLeft:T,setAsCurrentlyHoveredGraphCommit:b,sha:P,shouldShowRefLine:E,style:I,translate:x,type:L,useAuthorInitialsForAvatars:M,zoneContext:B})}};const Ui={map:function(e,t,o){var n=0;return a().Children.map(e,(function(e){return a().isValidElement(e)?t.call(o,e,n++):e}))},forEach:function(e,t,o){var n=0;a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.call(o,e,n++)}))},count:function(e){var t=0;return a().Children.forEach(e,(function(e){a().isValidElement(e)&&++t})),t},find:function(e,t,o){var n,r=0;return a().Children.forEach(e,(function(e){n||a().isValidElement(e)&&t.call(o,e,r++)&&(n=e)})),n},filter:function(e,t,o){var n=0,r=[];return a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.call(o,e,n++)&&r.push(e)})),r},every:function(e,t,o){var n=0,r=!0;return a().Children.forEach(e,(function(e){r&&a().isValidElement(e)&&(t.call(o,e,n++)||(r=!1))})),r},some:function(e,t,o){var n=0,r=!1;return a().Children.forEach(e,(function(e){r||a().isValidElement(e)&&t.call(o,e,n++)&&(r=!0)})),r},toArray:function(e){var t=[];return a().Children.forEach(e,(function(e){a().isValidElement(e)&&t.push(e)})),t}};var ji={controlId:Mn().string,validationState:Mn().oneOf(["success","warning","error",null])},Vi={$bs_formGroup:Mn().object.isRequired},$i=function(e){function t(){return e.apply(this,arguments)||this}wn(t,e);var o=t.prototype;return o.getChildContext=function(){var e=this.props;return{$bs_formGroup:{controlId:e.controlId,validationState:e.validationState}}},o.hasFeedback=function(e){var t=this;return Ui.some(e,(function(e){return"feedback"===e.props.bsRole||e.props.children&&t.hasFeedback(e.props.children)}))},o.render=function(){var e=this.props,t=e.validationState,o=e.className,n=e.children,r=function(e,t){var o={};t.forEach((function(e){o[e]=!0}));var n={};return jn()(e).forEach((function(e){var t=e[0],r=e[1];nr(t)||o[t]||(n[t]=r)})),[or(e),n]}(Cn(e,["validationState","className","children"]),["controlId"]),s=r[0],l=r[1],c=Tn({},tr(s),{"has-feedback":this.hasFeedback(n)});return t&&(c["has-"+t]=!0),a().createElement("div",Tn({},l,{className:i()(o,c)}),n)},t}(a().Component);$i.propTypes=ji,$i.childContextTypes=Vi;const Yi=Qn("form-group",er([Yn,Kn],$i));function Ki(e,t){return Ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ki(e,t)}function qi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xi(e,t,o){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(o):e.classList.contains(o))}var Ji,Qi,es=(void 0===Ji&&(Ji=0),function(){return++Ji}),ts={},os={},ns=["touchstart","touchmove"];function rs(e,t){var o={};return-1!==ns.indexOf(t)&&Qi&&(o.passive=!e.props.preventDefault),o}const is=function(e,t){var o,n,r=e.displayName||e.name||"Component";return n=o=function(o){var n,i;function a(e){var n;return(n=o.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof n.__clickOutsideHandlerProp){var t=n.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+r+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else n.__clickOutsideHandlerProp(e)},n.__getComponentNode=function(){var e=n.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,it.findDOMNode)(e)},n.enableOnClickOutside=function(){if("undefined"!=typeof document&&!os[n._uid]){void 0===Qi&&(Qi=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}}()),os[n._uid]=!0;var e=n.props.eventTypes;e.forEach||(e=[e]),ts[n._uid]=function(e){var t;null!==n.componentNode&&(n.props.preventDefault&&e.preventDefault(),n.props.stopPropagation&&e.stopPropagation(),n.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,o){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Xi(e,t,o))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,n.componentNode,n.props.outsideClickIgnoreClass)===document&&n.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,ts[n._uid],rs(qi(n),e))}))}},n.disableOnClickOutside=function(){delete os[n._uid];var e=ts[n._uid];if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,rs(qi(n),t))})),delete ts[n._uid]}},n.getRef=function(e){return n.instanceRef=e},n._uid=es(),n}i=o,(n=a).prototype=Object.create(i.prototype),n.prototype.constructor=n,Ki(n,i);var l=a.prototype;return l.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},l.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+r+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},l.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},l.componentWillUnmount=function(){this.disableOnClickOutside()},l.render=function(){var t=this.props;t.excludeScrollbar;var o=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?o.ref=this.getRef:o.wrappedRef=this.getRef,o.disableOnClickOutside=this.disableOnClickOutside,o.enableOnClickOutside=this.enableOnClickOutside,(0,s.createElement)(e,o)},a}(s.Component),o.displayName="OnClickOutside("+r+")",o.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},o.getClass=function(){return e.getClass?e.getClass():e},n};class ss extends a().PureComponent{handleClickOutside(){const{sha:e,shorthand:t,type:o,data:n}=this.props.createRefFormData;this.props.onCancel(t,e,o,n)}constructor(e){super(e);const{createRefFormData:t,formatRefShorthand:o}=this.props,{sha:n,shorthand:r,type:i,data:s}=t;this.state={currentShorthand:o(r,n,i,s),initShorthand:r}}static getDerivedStateFromProps(e,t){const{createRefFormData:o,formatRefShorthand:n}=e,{currentShorthand:r,initShorthand:i}=t,{sha:s,shorthand:a,type:l,data:c}=o,h=a!==i;return h&&n(a,s,l,c)!==r?{currentShorthand:n(a,s,l,c),initShorthand:a}:h?{currentShorthand:r,initShorthand:a}:null}onInputChange(e){let t=e||"";if(e){const{sha:e,type:o,data:n}=this.props.createRefFormData;t=this.props.formatRefShorthand(t,e,o,n)}this.setState({currentShorthand:t}),this.props.onRefShorthandChange?.(t)}render(){const{createRefFormData:e,isRefShorthandValid:t,onCancel:o,onContextMenu:n,onRefCreate:r,refZoneWidth:i,style:s,translate:l}=this.props,{currentShorthand:c}=this.state,{data:h,sha:d,type:u}=e,p=l(u===B.V.TAG?"RefZone-EnterTagName":"RefZone-EnterBranchName");return a().createElement("div",{className:"create-ref","data-testid":"create-ref",style:{...s,minWidth:i,width:i}},a().createElement(Yi,{validationState:0===c.length||t(c,d,u,h)?"success":"error"},a().createElement(fi,{autoFocus:!0,"data-testid":"create-ref-form-control",onChange:e=>this.onInputChange(e.target?.value),onContextMenu:e=>n(e,c,d,u,h),onKeyDown:e=>{e.stopPropagation(),"Escape"!==e.key?d&&"Enter"===e.key&&r(c,d,u,h):o(c,d,u,h)},placeholder:p,type:"text",value:c})))}}var as=is(ss);var ls=function({hasActive:e,overflowCount:t}){return a().createElement("span",{className:i()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)};var cs=function({style:e,children:t,column:o,numGraphColumns:n,onMouseEnter:r,onMouseLeave:s}){const l=e?.top||0;return a().createElement("div",{className:i()("gk-graph","ref-zone","column-"+(o%n+1))},a().createElement("ul",{onMouseEnter:r,onMouseLeave:s,style:{...e,top:l-m.cZ/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};var hs=function({enabledRefMetadataTypes:e,column:t,context:o,enableShowHideRefsOptions:n,getTargetRef:r,hasActive:i,hasRefs:s,getExternalIcon:l,includeOnlyRefsById:c,includeOnlyRemotesByName:h,isGhostRef:d,isHovered:u,isInUnsupportedRebase:p,numGraphColumns:f,onMissingRefMetadata:g,refGroupContexts:v,refGroupsByName:y,refIconsPosition:C,refMetadata:S,refNodeHovered:_,sha:R,showRemoteNamesOnRefs:w,showContextMenuForGroupedRef:b,onClickRef:T,onDoubleClickRef:E,onToggleRefNodesShown:x,onRefBeginDrag:M,onRefCanDrag:O,onRefCanDrop:I,onRefDragEnter:D,onRefDragLeave:N,onRefDrop:G,onRefEndDrag:z,translate:H,type:k,useColumnHeaderIcons:A}){const W=(e,t,o)=>{const n=t.map((e=>({id:(0,P.qP)(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})));x(e,n,!1,o)},L=y&&y.length>m.v6?y.slice(0,m.v6):y,F=L[0],Z=u?L:[F],U=m.Vh+(F?.length||0)*m.B+(i?m.B:0),j=Object.values(c),V=j.length>0&&j.some((e=>e.type===B.V.TAG)),$=Z.map((t=>{const o=t[0],r=v?.[o.name]||void 0,f=t.some((e=>{const t=(0,P.qP)(e);switch(e.refType){case B.V.TAG:return V&&Boolean(c[t]);case B.V.REMOTE:return Boolean(c[t])||e.owner&&h[e.owner];default:return Boolean(c[t])}})),m=a().createElement(Ar,{enabledRefMetadataTypes:e,enableShowHideRefsOptions:n,getExternalIcon:l,groupIsHovered:u,hasActive:i,hasRefs:s,isActive:o.isCurrentHead,isGhostRef:d,isInUnsupportedRebase:p,isRefGroupIncluded:f,key:`ref-node-${o.fullName||o.name}`,onClick:T,onContextMenu:b,onDoubleClick:E,onHideRefClick:W,onHovered:_,onMissingRefMetadata:g,onRefBeginDrag:M,onRefCanDrag:O,onRefCanDrop:I,onRefDragEnter:D,onRefDragLeave:N,onRefDrop:G,onRefEndDrag:z,refGroup:t,refGroupContext:r,refIconsPosition:C,refMetadata:S,sha:R,showRemoteNamesOnRefs:w,translate:H,type:k,useColumnHeaderIcons:A});return u?a().createElement("li",{key:m.key},m):m}));return u?a().createElement("div",{"data-vscode-context":(0,P.q3)(o),style:{height:100,position:"relative"}},a().createElement(Fn,{placement:"right",show:u,target:r},a().createElement(cs,{column:t,numGraphColumns:f},$))):a().createElement("span",{"data-vscode-context":(0,P.q3)(o),style:{minWidth:U}},$)};const ds={};class us extends a().PureComponent{refPopoverTarget;static defaultProps={style:{}};componentWillReceiveProps(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))}getRefPopoverTarget=()=>this.refPopoverTarget;onCustomToggleRefNodesShown=(e,t,o,n)=>{this.props.onToggleRefNodesShown(e,t,o,n),this.props.refZoneUnhovered()};render(){const{enabledRefMetadataTypes:e,column:t,context:o,enableShowHideRefsOptions:n,showGhostRefsOnRowHover:r,hasActive:s,hasRefs:l,hasTimeline:c,hoveredRefGroup:h,hoveredRefZoneSha:d,getExternalIcon:u,includeOnlyRefsById:p,includeOnlyRemotesByName:f,isInUnsupportedRebase:g,numGraphColumns:v,onClickRef:y,onDoubleClickRef:C,onMissingRefMetadata:S,onRefBeginDrag:_,onRefCanDrag:R,onRefCanDrop:w,onRefDragEnter:b,onRefDragLeave:T,onRefDrop:E,onRefEndDrag:x,refGroupContexts:M,refGroupsByName:O,refIconsPosition:I,refMetadata:D,refNodeHovered:N,refNodeUnhovered:G,refZoneHovered:z,refZoneUnhovered:H,sha:k,shouldShowRefLine:A,showColorStrip:W,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:F,style:B,translate:Z,type:U,useColumnHeaderIcons:j,width:V}=this.props,$=d===k,Y={minWidth:V,width:V},K={...B,...Y},q=c?a().createElement(jr,null):null,X=O.length,J=e=>{z(k),X?N(e,O[0],k):h&&G(e,h,k)},Q=e=>{H(),h&&G(e,h,k)},ee=(0,P.h)(((e,t)=>{Q(e),_(e,t)})),te=X>0&&!l&&r,oe=function(e,t,o,n,r,s){const a=`${e}${t}${o}${n}${r}${s}`;let l=ds[a];return l||(l=i()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":s,"has-active":n,z6:o,z1:!o}),ds[a]=l,l)}(U,t,$,s,v,te),ne=a().createElement("div",{className:"color-strip height-100",style:{width:2}});if(!X)return a().createElement("div",{className:oe,onMouseEnter:J,onWheel:Q,style:K},W?ne:null,q);const re={minWidth:0,overflow:"hidden",width:V-m.PB},ie=X-1,se=ie>0&&!$?a().createElement(ls,{hasActive:s,overflowCount:ie}):null;return a().createElement("div",{className:oe,onMouseEnter:J,onMouseLeave:Q,onWheel:Q,style:K},a().createElement("div",{ref:e=>this.refPopoverTarget=e}),W?ne:null,q,a().createElement("div",{className:"flex",style:re},a().createElement(hs,{column:t,context:o,enabledRefMetadataTypes:e,enableShowHideRefsOptions:n,getExternalIcon:u,getTargetRef:this.getRefPopoverTarget,hasActive:s,hasRefs:l,includeOnlyRefsById:p,includeOnlyRemotesByName:f,isGhostRef:te,isHovered:$,isInUnsupportedRebase:g,numGraphColumns:v,onClickRef:y,onDoubleClickRef:C,onMissingRefMetadata:S,onRefBeginDrag:ee,onRefCanDrag:R,onRefCanDrop:w,onRefDragEnter:(e,t,o)=>{$||o?.sha!==k||J(e),b(e,t,o)},onRefDragLeave:T,onRefDrop:E,onRefEndDrag:x,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:M,refGroupsByName:O,refIconsPosition:I,refMetadata:D,refNodeHovered:N,sha:k,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:F,translate:Z,type:U,useColumnHeaderIcons:j}),se),l&&A?a().createElement("div",{className:"absolute left-0 flex z1",style:Y},a().createElement(Oi,{hasRefs:!0,isActiveSha:s,left:m.yv,type:U,width:"100%"})):null)}}var ps=(e,t)=>{const{createRefFormData:o,formatRefShorthand:n,enableShowHideRefsOptions:r,enabledRefMetadataTypes:i,isRefShorthandValid:s,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:c,onDoubleClickRef:h,processedRows:d,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isInUnsupportedRebase:f,getExternalIcon:g,hoveredRefGroup:v,hoveredRefZoneSha:y,numGraphColumns:C,onClickRef:S,onMissingRefMetadata:_,onShowContextMenuForGroupedRef:R,onRefBeginDrag:w,onRefCanDrag:b,onRefCanDrop:T,onRefCreate:E,onRefCreateCancel:x,onRefCreateContextMenu:M,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,onRefNodeHovered:G,onRefNodeUnhovered:z,onRefShorthandChange:H,onRefZoneHovered:k,onRefZoneUnhovered:A,onToggleRefNodesShown:W,refIconsPosition:L,refMetadataById:F,shouldShowRefLine:B,translate:Z}=e,U=new P.Dj(e);return({rowIndex:e,style:P})=>{const j=t(e),V=d[e],$=m.jZ,Y=U.getZoneWidth($),K=U.isHovering(e),{sha:q,type:X,hasRefs:J,contexts:Q}=V,ee=Q?.ref||void 0,te=Q?.refGroups||void 0,oe=U.isSingleSelected(e),ne=(l||J)&&(J||K||oe)?U.getGraphRefGroupsByNameForRow(e):[],re=U.isColumnFollowingGraphColumn($),ie=U.shouldUseColumnHeaderIcons($);return o?.sha===q?a().createElement(as,{createRefFormData:o,formatRefShorthand:n,isRefShorthandValid:s,key:j,onCancel:x,onContextMenu:M,onRefCreate:E,onRefShorthandChange:H,refZoneWidth:Y,style:P,translate:Z}):a().createElement(us,{column:V.column,context:ee,enabledRefMetadataTypes:i,enableShowHideRefsOptions:r,getExternalIcon:g,hasActive:U.rowContainsCurrentHeadRef(V),hasRefs:J||!1,hasTimeline:U.hasTimeline(e),hoveredRefGroup:v,hoveredRefZoneSha:y,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isInUnsupportedRebase:f,isSingleSelected:oe,key:j,numGraphColumns:C,onClickRef:S,onDoubleClickRef:h,onMissingRefMetadata:_,onRefBeginDrag:w,onRefCanDrag:b,onRefCanDrop:T,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:D,onRefEndDrag:N,onToggleRefNodesShown:W,refGroupContexts:te,refGroupsByName:ne,refIconsPosition:L,refMetadata:F,refNodeHovered:G,refNodeUnhovered:z,refZoneHovered:k,refZoneUnhovered:A,sha:q,shouldShowRefLine:B,showColorStrip:re,showContextMenuForGroupedRef:R,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:c,style:P,translate:Z,type:X,useColumnHeaderIcons:ie,width:Y})}};var fs=(e,t)=>{const{translate:o,processedRows:n}=e,r=i()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),s=new P.Dj(e);return({rowIndex:e,style:l})=>{const c=t(e),h=i()("graph-row","height-100-percent","flex"),d=s.hasTimeline(e),u=n[e],p=u.contexts?.row||void 0,f=u.timeLineEntry?.label||"",m=u.timeLineEntry?.value||0,g=d?a().createElement(jr,null):null,v=d?a().createElement("span",{className:"time-line-message-container"},a().createElement("span",{className:"time-line-message"},o(f,m))):null;return a().createElement("div",{className:r,"data-vscode-context":(0,P.q3)(p),key:c,style:l},g,a().createElement("div",{className:h,"data-vscode-context":(0,P.q3)(p)},v))}};class ms extends a().Component{graphComponentRef=a().createRef();graphContainerRef=a().createRef();resizeObserver;lastNavSha=null;currentSha=null;isRefContextMenuShown=!1;isMounted=!1;isSelectedBySha={};processedGraphRowBySha={};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=m.OR;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZoneModeConstants=(0,P.Ez)();graphZonesByType={};graphZoneOrdering=[m.jZ,m.Wm,m.KE,m.GF,m.WD,m.PL,m.av];clientHeight=0;missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};markerRowIndices={};branchUpstreamRowIndices=[];downstreamsByUpstream={};timelinesInterval;constructor(e){super(e),this.resizeObserver=new ResizeObserver((e=>e.forEach((e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))))),this.isSelectedBySha=this.props.isSelectedBySha||{},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.rowsStats=this.props.rowsStats||this.rowsStats,this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices(["selection","highlights"]);const t=(0,R.Ld)(this.props.cssVariables);this.graphZoneModeConstants=(0,P.Ez)(this.props.columnsSettings?.[m.Wm]?.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||m.R_.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||m.X9.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);const e=this.isSelectedBySha?this.getSelectedShas():[];e.length>0&&this.selectCommits(e,!1,!0)}componentWillReceiveProps(e){let t=!1,o=!1,n=!1;if(this.props.highlightedShas!==e.highlightedShas){this.setState({highlightedShas:e.highlightedShas});const t=[];Object.keys(e.highlightedShas||{}).forEach((o=>{e.highlightedShas[o]&&void 0!==this.processedGraphRowBySha[o]?.rowIndex&&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||m.R_.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();const r=(0,R.Ld)(e.cssVariables);n=!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||m.OR,!(0,P.Kk)(this.props.workDirStats)&&(0,P.Kk)(e.workDirStats)||(0,P.Kk)(this.props.workDirStats)&&!(0,P.Kk)(e.workDirStats)?(n=!0,this.setState({workDirStats:this.workDirStats})):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.props.columnsSettings!==e.columnsSettings){if(e.columnsSettings?.[m.Wm]?.mode!==this.props.columnsSettings?.[m.Wm]?.mode){this.cleanEdgeCaches(),this.graphZoneModeConstants=(0,P.Ez)(e.columnsSettings?.[m.Wm]?.mode),this.updateCommitZoneContentWidthFromChange();const o=this.graphZonesByType[m.Wm];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})),n&&(this.processRows(e.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})),t){this.updateCommitZoneContentWidthFromChange();const 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||B.l.LEFT}onGraphVisibleRowsUpdatedThrottled=(0,P.P2)((()=>this.onGraphVisibleRowsUpdated()),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,o,n)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onFilterColumnClick=(e,t)=>{this.props.onFilterColumnClick&&this.props.onFilterColumnClick(e,t)};onCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n!==o&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{const o=this.graphZoneOrdering.indexOf(e);let n=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<n&&(n-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(n,0,e);const r={};this.graphZoneOrdering.forEach(((e,t)=>{this.graphZonesByType[e].order=t,r[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])})),this.setState({graphZones:this.initializeGraphZones(r,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(r)};onGraphZoneResize=(0,P.h)(((e,t)=>{if(t?.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}}));onGraphZoneResizeEnd=(0,P.h)(((e,t)=>{if(t?.width){const 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,n)=>{this.props.onRefCreate&&this.props.onRefCreate(e,t,o,n)};onRefCreateCancel=(e,t,o,n)=>{this.props.onRefCreateCancel&&this.props.onRefCreateCancel(e,t,o,n)};onRefCreateContextMenu=(e,t,o,n,r)=>{this.props.onRefCreateContextMenu&&this.props.onRefCreateContextMenu(e,t,o,n,r)};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){const{enableMultiSelection:t}=this.props,n=this.isMacOSPlatform();t&&(!n&&e.ctrlKey||n&&e.metaKey)?this.selectCommits([o],!0,!1):t&&e.shiftKey||this.selectCommits([o],!1,!1)}}onClickRef=(e,t,o,n)=>{this.onZoneRowClick(e,m.jZ,o),this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],n),this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onClickCommit=(e,t,o)=>{if(this.onZoneRowClick(e,t,o),this.props.onClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,n)}this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,n)}};onWindowKeyUp=e=>{switch(e.key){case W.e.metaKey:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!1);break;case W.e.controlKey:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!1)}};onWindowBlur=e=>{const{hoveredRefGroup:t,hoveredRefZoneSha:o}=this.state;t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered(),this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{switch(e.key){case W.e.metaKey:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!0);break;case W.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 W.e.arrowUpKey:this.selectPrevious(e.shiftKey);break;case W.e.arrowDownKey:this.selectNext(e.shiftKey);break;case"H":case"h":this.selectHead(e.shiftKey)}};isNavigationKey(e){return[W.e.arrowUpKey,W.e.arrowDownKey].some((t=>t===e))}loadSelectedGraphRow(e){const t=this.processedGraphRowBySha[e];t&&this.props.onLoadSelectedGraphRow&&this.props.onLoadSelectedGraphRow(t)}onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||(0,P.PY)(this.isSelectedBySha,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=>{const{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,n,r)=>{this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),this.loadMoreCommitsIfNecessary(n,r)};loadMoreCommitsIfNecessary(e,t){if(!this.props.onShowMoreCommits||!t||!e||e<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;const o=this.scrollTop+e,n=this.orderedGraphRows.length*m.$0;o>n-m.qG&&o>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(o,n-1),this.onShowMoreCommits())}onScrollToRowCausedUpdateForFirstColumn=(e,t)=>{const o={...t};if(e===m.Wm&&t.scrollTop){const t=this.getHorizontalScrollHeight(e,this.state.cssVariablesWithDefaults);o.scrollTop-=t+m.nn}this.setScroll(e,o),this.props.onScrollToRowCausedUpdateForFirstColumn?.(e,o)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,n)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){this.isRefContextMenuShown=!0,this.onRefZoneHovered(o);const n=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,n),setTimeout((()=>{this.isRefContextMenuShown=!1}),250)}};selectCommits(e,t,o){t||Object.keys(this.isSelectedBySha).forEach((t=>{e.includes(t)||delete this.isSelectedBySha[t]}));const n=this.processedGraphRowBySha?Object.keys(this.processedGraphRowBySha):[];if(e.forEach((e=>{n.includes(e)&&(this.isSelectedBySha[e]=!t||!this.isSelectedBySha[e]||!this.isSelectedBySha[e],this.isSelectedBySha[e]&&this.selectSha(e,o))})),this.props.onSelectGraphRows){const e=this.getSelectedShas().map((e=>this.processedGraphRowBySha[e]));this.props.onSelectGraphRows(e)}this.updateMarkerRowIndices(["selection"]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(m.Wm)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getSelectedShas(){const e=[];return Object.keys(this.isSelectedBySha).forEach((t=>{this.isSelectedBySha[t]&&e.push(t)})),e}getExcludeRemotesByName(){const e={};return Object.values(this.excludeRefsById).forEach((t=>{t.type===B.V.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===B.V.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}clearScrollToIndex=(0,P.h)((()=>{this.isMounted&&this.setState({scrollToIndex:void 0})}));getTopAndBottomVisibleRowIndex(){const{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,n=e||0;if(!n||!t||!t.length)return{top:-1,bottom:-1};const r=(n-m.rl)/m.$0,i=o/m.$0,s=i+(r-1);return{top:Math.max(Math.floor(i),0),bottom:Math.min(Math.ceil(s),t.length-1)}}getOffsetSha(e){const t=this.graphHeight||0,o=this.props.scrollRowPadding||0;if(!o||!t)return e;let n=o;if(n<=0)return e;const r=this.getTopAndBottomVisibleRowIndex(),i=r.top,s=r.bottom;if(-1===i||-1===s)return e;const a=Math.floor((s-i)/2);if(a<1)return e;n=Math.min(n,a);const l=this.orderedGraphRows.length,c=this.orderedGraphRows.findIndex((t=>t.sha===e));if(!c||!this.orderedGraphRows.length)return e;const h=s-n<c;return i+n>c?this.orderedGraphRows[Math.max(c-n,0)].sha||e:h&&this.orderedGraphRows[Math.min(c+n,l-1)].sha||e}selectSha(e,t=!1){const o=this.processedGraphRowBySha[e]?.column||0,n=this.getScrollLeft(),r=this.getCommitZoneContentWidthBetweenGutters(),i=this.getCurrentWidthByZone(m.Wm),s=this.getCommitZoneContentWidth(),a=o*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,l=n-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/3<=a,c=a<=n+r,h=Math.max(0,s-i),d=l&&c?n:(0,Z.u)(a-r/2,0,h);this.setScrollToSha(t?this.getOffsetSha(e):e,d),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,o){const n=this.getOrderedActiveGraphZones(),r=this.graphZonesByType[t],i=(0,P.C_)(r,n,e);if(r.currentWidth=i,t===m.Wm){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromChange(){const e=this.graphZonesByType[m.Wm];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=(0,P.C_)(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e,t=!0){const o=t?this.getVerticalScrollWidth(m.Wm,this.props.cssVariables,!0):0,n=this.graphZonesByType[e];return n&&!n.isHidden?n.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){const t=e?this.getVerticalScrollWidth(m.Wm,this.props.cssVariables,!0):0;if(this.graphZonesByType[m.Wm])return this.graphZonesByType[m.Wm].currentWidth-t;const{columnsSettings:o}=this.props;return o?.[m.Wm]?o[m.Wm].width-t:m.qi[m.Wm].minimumWidth-t}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(m.Wm);return 1===e?0:(0,Z.u)(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===m.Wm&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){const 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(){const e=this.getScrollToSha();if(e){const t=this.processedGraphRowBySha[e]?.rowIndex;return void 0===t?this.orderedGraphRows.findIndex((t=>t.sha===e)):t}return-1}getScrollToAlignment(){const e=this.getClientHeight(),t=this.getScrollTop(),o=this.getScrollToIndex();return(0,P.Ry)(m.$0,e,t,o)}getMinNodeOffset(){const 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,P.KI)(e,this.getOrderedActiveGraphZones(),this.orderedGraphRows,t,o):0}getVerticalScrollWidth(e,t,o){return this.graphZonesByType[e]?(0,P.Ne)(e,this.getOrderedActiveGraphZones(),this.props.hasMoreCommits,this.props.isLoadingRows,this.graphHeight,this.orderedGraphRows,this.props.enabledScrollMarkerTypes?.length>0,t,o):0}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(m.Wm),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(){const 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(){const e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),n={};return Object.keys(o).forEach((r=>{const i=o[r];n[r]=(0,Z.u)(i,e,t)})),n}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(m.Wm)-this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)}getMinNodeLeft(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT+t*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(m.Wm),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return(0,Z.u)((e-(t-(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)))/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)+o/2}getNodeOpacityByColumn(){const e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),n=this.getRightGutterSlideOutFactor(),r=this.getSingleColumnModeFactor(),i={};return Object.keys(o).forEach((s=>{const a=o[s],l=a-(e-r*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH),c=t+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-(a+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH*(1-n)),h=Math.min(l,c);i[s]=m.l3+(1-m.l3)*Math.max(h/(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+e*(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,(0,Z.u)(1-t/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1))}getRightGutterBoxShadowAlpha(e){const t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e){const t={...this.markerRowIndices};if(e.forEach((e=>{t[e]=[]})),e.includes("selection")){this.getSelectedShas().forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t.selection.push(this.processedGraphRowBySha[e].rowIndex)}))}if(e.includes("highlights")){const e=this.state?.highlightedShas||this.props.highlightedShas||{};Object.keys(e).forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t.highlights.push(this.processedGraphRowBySha[e].rowIndex)}))}this.markerRowIndices=t}getMarkerColors(){const e=getComputedStyle(document.documentElement),t={};return Object.values(m.Qh).forEach((o=>{const n=e.getPropertyValue(o.colorCssKey).trim();n&&(t[o.type]=n)})),t}initializeGraphZones(e,t,o){this.graphZonesByType={};const n=[];let r=0;t.forEach(((t,o)=>{const i=e?e[t]:void 0,s=m.qi[t],a=i?.width?i.width:s.minimumWidth,l={...s,type:t,currentWidth:a,preferredWidth:a,isHidden:i?.isHidden||!1,mode:i?.mode,order:s.isCustomizable&&void 0!==i?.order?i?.order:o};i?.isHidden||(r+=l.currentWidth),t===m.Wm&&(l.contentWidth=this.getCommitZoneContentWidth(),l.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,l.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.maxColumns>0&&(l.maximumWidth=l.contentWidth)),this.graphZonesByType[t]=l,l?.isHidden||n.push(l)}));const i=n[n.length-1];if(i){const e=(0,P.Zg)(this.props.cssVariables,!0),t=i.minimumWidth+e;(null==i.maximumWidth||i.maximumWidth>=t)&&(i.minimumWidth=t,null!=i.showIconWidth&&(i.showIconWidth+=e),n[n.length-1]=i)}for(n.forEach((e=>{const t=(0,P.C_)(e,n,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>o;){const e=(0,P.tC)(n);if(!e)break;const t=e.currentWidth,i=r-o,s=Math.max(e.minimumWidth,t-i),a=t-s;this.graphZonesByType[e.type].currentWidth=s,r-=a}if(r<o){const e=t[t.length-1],r=o-(0,P.iM)(n,e);this.graphZonesByType[e].currentWidth=r}return n}maybeSortGraphZoneOrderingFromSettings(e){this.graphZoneOrdering.every((t=>void 0!==e?.[t]?.order))&&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,n)=>{const r=this.graphZonesByType[o],i=e?.[r.type];i&&(i.isHidden!==r.isHidden&&(t=!0,r.type!==m.WD||i.isHidden||this.updateRowStatsConstraints()),r.isHidden=i.isHidden,r.order=r.isCustomizable&&void 0!==i?.order?i?.order:n,r.mode=i.mode,r.preferredWidth=i.width??r.preferredWidth,r.currentWidth=r.preferredWidth)})),t&&this.graphZoneOrdering.forEach((e=>{const t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth}))}getEdgeColumnMaxes(e){let t=0;const o=this.processedGraphRowBySha[e]?.edges||{};return Object.keys(o).forEach((e=>{t=Math.max(t,parseInt(e,10))})),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){const o={};let n,r,i,s;return Object.keys(t).forEach((a=>{n=t[a],r=n.passThrough,i=n.starting,s=r&&!g(r.type)?r:i&&!g(i.type)?i:r||i||void 0,s&&(s.parentSha===e.sha?o[a]={ending:s}:o[a]={passThrough:s})})),o}getFinalEdgeStateForGraphAndRow(e,t){const o=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),n=this.getStartingEdgesByColumn(e);let r;return Object.keys(n).forEach((e=>{o[e]||(o[e]={ending:void 0,passThrough:void 0,starting:void 0}),r=o[e],r.starting=n[e]})),o}loadEdgesBySha(){this.maxColumns=0,this.orderedGraphRows.forEach(((e,t)=>{const o=this.orderedGraphRows[t-1],n=o&&this.processedGraphRowBySha[o.sha]?.edges?this.processedGraphRowBySha[o.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,n);const r=this.getEdgeColumnMaxes(e.sha);this.processedGraphRowBySha[e.sha].edgeColumnMaxes=r,r>this.maxColumns&&(this.maxColumns=r)}))}processRows(e){this.loadRowsbySha(e||[]),this.loadEdgesBySha()}getStartingEdgesByColumn(e){const t={},o=e.parents;if(o.length>0){const n=e.type,r=this.processedGraphRowBySha[e.sha]?.column;void 0!==r&&(t[r]={parentSha:o[0],type:n});for(let e=1;e<o.length;e+=1){const r=o[e],i=this.processedGraphRowBySha[r]?.column;void 0!==i&&(t[i]={parentSha:r,type:n})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):O(e,m.It);formatCommitMessageCallback=e=>this.props.formatCommitMessage?this.props.formatCommitMessage(e):e;formatRefShorthandCallback=(e,t,o,n)=>this.props.formatRefShorthand?this.props.formatRefShorthand(e,t,o,n):e.replace(/\s/g,"");isRefShorthandValidCallback=(e,t,o,n)=>!this.props.isRefShorthandValid||this.props.isRefShorthandValid(e,t,o,n);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):F[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach(((e,t)=>{const n=new RegExp(`\\{${t}\\}`,"g");o=o.replace(n,e)})),o}(F[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):a().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;const e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};const t=Object.keys(e);if(t.length){for(const e of t)this.requestedMissingAvatars[e]=!0;this.props.onEmailsMissingAvatarUrls?.(e)}}),100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;const o=this.pendingMissingRefsMetadata[e]||[],n=t.filter((e=>!o.includes(e)));this.pendingMissingRefsMetadata[e]=[...o,...n],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout((()=>{if(!this.isMounted)return;const e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};const t=Object.keys(e);if(t.length){for(const e of t)this.requestedMissingRefsMetadata[e]=!0;this.props.onRefsMissingMetadata?.(e)}}),100)};selectNext(e){const t=this.getSelectedShas(),o=t.length>0?t[t.length-1]:null;let n;if(e&&o){const e=this.processedGraphRowBySha[o];e?.parents?.length&&(n=e.parents[0])}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.min(e+1,this.orderedGraphRows.length-1);n=this.orderedGraphRows[t]?.sha}this.currentSha=n||null,n&&this.selectCommits([n],!1,!0)}selectPrevious(e){const t=this.getSelectedShas(),o=t.length>0?t[0]:null;let n;if(e&&o){const e=this.childrenBySha[o];if(e?.length)for(let t=0;t<e.length;t+=1)if(t===e.length-1)n=e[t];else if(this.processedGraphRowBySha[e[t]]?.type!==f.kP){n=e[t];break}}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.max(-1,e-1);n=this.orderedGraphRows[t]?.sha,t<0&&(n=this.orderedGraphRows[0]?.sha)}this.currentSha=n||null,n&&this.selectCommits([n],!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){this.hasMergeNodeChildBySha[e.sha]&&delete this.hasMergeNodeChildBySha[e.sha];const t=e.parents||[],o=this.columnsToFreeWhenFound[e.sha];if(void 0!==o)for(let e=0;e<o.length;e+=1)delete this.columnsUsed[o[e]];let n=0;const r=this.reserverInfoBySha[e.sha];let i,s;void 0!==r?.column?(n=r.column,delete this.reserverInfoBySha[e.sha]):n=this.getAvailableColumnAndUseIt();for(let o=0;o<t.length;o+=1)if(i=t[o],e.type===f.lH&&(this.hasMergeNodeChildBySha[i]=!0),s=this.reserverInfoBySha[i],0===o&&void 0!==s?.column&&s?.column!==n){const t=this.columnsToFreeWhenFound[i]||[],o=s?.type===f.kP&&e.type!==f.kP&&r?.newestDate>s?.newestDate;(s?.column>n||o)&&!this.hasMergeNodeChildBySha[i]?(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.newestDate,column:n},t.push(s.column)):t.push(n),this.columnsToFreeWhenFound[i]=t}else void 0===s?.column&&(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.column===n?r?.newestDate:e.date,column:0===o?n:this.getAvailableColumnAndUseIt()});return n}getFilteredHeadsForGraphRow(e,t){return e.heads.filter((e=>e.isCurrentHead||(t?void 0!==this.includeOnlyRefsById[(0,P.bY)(B.V.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[(0,P.bY)(B.V.HEAD,e)])))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[(0,P.bY)(B.V.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,P.bY)(B.V.REMOTE,e)]&&(!e.owner||void 0===this.excludeRemotesByName[e.owner])))}getFilteredTagsForGraphRow(e,t,o){const n=t&&Object.values(this.includeOnlyRefsById).some((e=>e.type===B.V.TAG)),r=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter((e=>n?void 0!==this.includeOnlyRefsById[(0,P.bY)(B.V.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[(0,P.bY)(B.V.TAG,e)]&&(!t||r||o)))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={},this.childrenBySha={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};const t=new Map,o={},n=[],r=[];this.branchUpstreamRowIndices=[];const i=[],s=[],a=[],l=[],c={};if((0,P.Kk)(this.workDirStats)&&e.length>0&&!(0,P.H1)(e[0].type)){const t=(0,P.DN)(e),o={sha:f.ch,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:this.translateCallback("Graph-WorkInProgress"),type:f.ch,heads:[],remotes:[],tags:[]};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!(0,P.Kk)(this.workDirStats)&&e.length>0&&(0,P.H1)(e[0].type)&&e.shift();const h=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,d)=>{const u=this.childrenBySha[e.sha]?.length>0,p=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,h):[],m=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,h):[],g=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,h,Boolean(c[e.sha]||u)):[],v=e.parents?.length>0?e.parents.filter((e=>!o[e])):[],y=p.length>0||m.length>0||g.length>0,C=p.length>0||m.length>0;if(e.type!==f.o$&&e.type!==f.lH||c[e.sha]){if(e.type===f.kP&&this.excludeByType.stashes&&(o[e.sha]=!0),!o[e.sha]&&v.length>0){let e;for(e of v)c[e]=!0}}else e.type!==f.o$&&e.type!==f.lH||c[e.sha]||y||u||(o[e.sha]=!0);const S=o[e.sha],_=new L.A(this,{...e,heads:p,remotes:m,tags:g,parents:v},S?0:this.getColumns(e));if(!S){let o;const c=t.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})),o=c[0],_.childRefs={heads:[...o?.heads||[]],remotes:[...o?.remotes||[]],tags:[...o?.tags||[]]},t.delete(e.sha));for(let n=0;n<v.length;n+=1){const r=v[n];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let i=t.get(r);(C||o)&&void 0===i&&(i=[],t.set(r,i)),C?i?.unshift({sha:e.sha,parentIndexScore:n,rowEntered:d,heads:p,remotes:m,tags:g}):o&&i?.unshift({...o,parentIndexScore:n,rowEntered:d})}const h=this.orderedGraphRows.length;if(_.rowIndex=h,p.length>0&&(i.push(h),p.some((e=>e.isCurrentHead))&&(this.headSha=_.sha,n.push(h))),m.length>0){s.push(h);for(const e of m)e.current&&(r.push(h),this.headUpstreamSha=_.sha),this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0&&this.branchUpstreamRowIndices.push(h)}g.length>0&&a.push(h),e.type===f.kP&&l.push(h),this.orderedGraphRows.push(_)}this.processedGraphRowBySha[e.sha]=_})),this.markerRowIndices={...this.markerRowIndices,head:n,upstream:r,localBranches:i,remoteBranches:s,tags:a,stashes:l},this.clearTimelinesInterval(),this.updateTimelines(),this.timelinesInterval=setInterval(this.onTimelinesRefreshInterval,9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){this.rowStatsConstraints=(0,P.L1)(null!=this.rowsStats?Object.values(this.rowsStats).map((e=>e.additions+e.deletions)):[])}updateTimelines(){const e=(0,P.yF)();Object.values(e).forEach((e=>{e.forEach((e=>{const{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(){const e=Object.keys(this.isSelectedBySha);for(let t=0;t<e.length;t+=1){const o=e[t];this.processedGraphRowBySha[o]||delete this.isSelectedBySha[o]}}getColumnColorByColumn(e){const t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,n={};for(let i=0;i<=o;i+=1)if(i<t){const t=e[(0,R.a2)(i)];n[i]="rgba"===(r=u(t)).type?`rgba(${r.r}, ${r.g}, ${r.b}, ${Number(r.a.toFixed(2))})`:`hsla(${r.h}, ${(100*r.s).toFixed(2)}%, ${(100*r.l).toFixed(2)}%, ${Number(r.a.toFixed(2))})`}else{const e=n[i%t];n[i]=e}var r;return n}getNumGraphColumns(e){const t=e[_.i],o=Number.parseInt(t,m.uK);return Number.isNaN(o)?m.uK:o}expandLastZoneMinWidthForScrollbar(e){const t=e[e.length-1]?.type;if(!t)return;const o=(0,P.Zg)(this.props.cssVariables,!0),n=m.qi[t].minimumWidth+o,r=this.graphZonesByType[t];if(!r||null!=r.maximumWidth&&n>r.maximumWidth)return;r.minimumWidth=n;const i=m.qi[t].showIconWidth;null!=i&&(r.showIconWidth=i+o),r.currentWidth<r.minimumWidth&&(r.currentWidth=r.minimumWidth),r.preferredWidth<r.minimumWidth&&(r.preferredWidth=r.minimumWidth)}ensureZoneWidthsMatchGraphWidth(e,t){const o=(0,P.iM)(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let n=(0,P.iM)(e);for(;n>t;){const r=(0,P.tC)(e,o);if(!r)break;const i=(0,P.iM)(e,r.type);if(i+r.currentWidth>t){const o=(0,P.C_)(r,e,t-i);this.updateWidthByZone(o,r.type)}n=(0,P.iM)(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 n=(0,P.iM)(e);for(;n<t;){const r=(0,P.nv)(e,o);if(!r)break;const i=(0,P.iM)(e,r.type),s=r.maximumWidth?Math.min(r.maximumWidth,r.preferredWidth||1/0):r.preferredWidth||0;if(i+r.currentWidth<t){let o=t-i;!(0,P.SH)(r.type,e)&&o>s&&(o=s),o=(0,P.C_)(r,e,o),this.updateWidthByZone(o,r.type)}n=(0,P.iM)(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,n)=>{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,n?this.processedGraphRowBySha[n]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){ne={},te={},Q={},X={},I={}}onZoneEnter=(e,t,o,n)=>{t!==m.jZ&&(o&&n&&this.onRefNodeUnhovered(e,o,n),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,n){if(o?.width){const r=t.currentWidth;this.updateWidthByZone(o.width,t.type,n);const i=(0,P.mb)(t.type,e),s=this.graphZonesByType[t.type];r>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,i+1),r<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,i-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,P.h)(((e,t)=>{if(!this.isMounted)return;const o=Math.floor(t),n=Math.floor(e),r=o!==this.graphHeight,i=n!==this.graphWidth,s={};if(r&&(this.graphHeight=o,s.height=o),i){this.graphWidth=n;const e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(r||i)&&(this.setState(s),r&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))}));onGraphVisibleRowsUpdated(){if(!(this.isMounted&&this.props.onGraphVisibleRowsChanged&&this.orderedGraphRows&&this.orderedGraphRows.length))return;const{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()}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,mode:e.mode,order:e.order}}decorateWithHelmet=(e,t,o)=>{const n=(0,R.M)(t);return a().createElement(a().Fragment,null,a().createElement("style",{nonce:o},n),a().createElement("div",{className:"gk-graph"},e))};render(){const{columnsSettings:e,customFooterRow:t,isInUnsupportedRebase:o,isCommitting:n,repoPath:r,nonce:s,wipMessageEditable:l}=this.props,{avatarUrlByEmail:c,columnColorByColumn:h,contexts:d,createRefFormData:u,cssVariablesWithDefaults:p,currentlyHoveredCommitSha:f,dimMergeCommits:g,dimRowsOfSelectedCommit:v,enableShowHideRefsOptions:y,highlightRowsOnRefHover:C,showGhostRefsOnRowHover:S,showRemoteNamesOnRefs:_,enabledRefMetadataTypes:R,enabledScrollMarkerTypes:w,graphCommitDescDisplayMode:b,graphZones:T,hasMoreCommits:E,height:x,highlightedShas:M,hoveredRefGroup:O,hoveredRefZoneSha:I,themeOpacityFactor:D,isLoadingRows:N,rowsStatsLoading:G,numGraphColumns:z,pendingCommitMessageSummary:H,processedRows:k,refIconsPosition:A,refMetadataById:W,useAuthorInitialsForAvatars:L,scrollToAlignment:F,scrollToIndex:B,scrollTop:Z,scrollLeft:U,shaLength:j,width:V,workDirStats:$}=this.state,Y=i()("flex","graph-container"),K=(0,P.uM)(k),q=(X=e=>K(e),({cellCache:e,cellRenderer:t,columnSizeAndPositionManager:o,columnStartIndex:n,columnStopIndex:r,deferredMeasurementCache:i,horizontalOffsetAdjustment:s,isScrolling:a,parent:l,rowSizeAndPositionManager:c,rowStartIndex:h,rowStopIndex:d,styleCache:u,verticalOffsetAdjustment:p,visibleColumnIndices:f,visibleRowIndices:m})=>{const g=[],v=e,y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),C=!a&&!y;for(let e=h;e<=d;e+=1){const h=c.getSizeAndPositionOfCell(e);for(let c=n;c<=r;c+=1){const n=o.getSizeAndPositionOfCell(c),r=c>=f.start&&c<=f.stop&&e>=m.start&&e<=m.stop,d=`${e}-${c}`;let y;C&&u[d]?y=u[d]:i&&!i.has(e,c)?y={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(y={height:h.size,left:n.offset+s,position:"absolute",top:h.offset+p,width:n.size},u[d]=y);const S={columnIndex:c,isScrolling:a,isVisible:r,key:d,parent:l,rowIndex:e,style:y};let _;if(!a||s||p)_=t(S);else{const o=X(e,c);v[d]&&v[d].realKeyForCell===o||(v[d]={realKeyForCell:o,cell:t(S)}),_=v[d].cell}null!=_&&g.push(_)}}return g});var X;const J=this.getLeftGutterWidth(),Q=this.getRightGutterWidth(),ee=this.getRightGutterBoxShadowAlpha(D),te=this.getLeftGutterBoxShadowAlpha(D),oe=this.getNodeOffsetByColumn(),ne=this.getNodeOpacityByColumn(),re=(0,P.mb)(m.jZ,T),ie=(0,P.mb)(m.Wm,T),se=-1!==re&&-1!==ie&&ie-re==1,ae=!O,le={avatarUrlByEmail:c,createRefFormData:u,dimMergeCommits:g,dimRowsOfSelectedCommit:v,enableShowHideRefsOptions:y,highlightRowsOnRefHover:C,showGhostRefsOnRowHover:S,showRemoteNamesOnRefs:_,enabledRefMetadataTypes:R,enabledScrollMarkerTypes:w,isInUnsupportedRebase:o,isCommitting:n||!1,pendingCommitMessageSummary:H,workDirStats:$,repoPath:r,columnColorByColumn:h,currentlyHoveredCommitSha:f,cssVariables:p,graphCommitDescDisplayMode:b,graphZoneModeConstants:this.graphZoneModeConstants,graphZones:T,hasMoreCommits:E,height:x,highlightedShas:M,hoveredRefGroup:O,hoveredRefZoneSha:I,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isLoadingRows:N,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:te,leftGutterWidth:J,nodeOffsetByColumn:oe,nodeOpacityByColumn:ne,nonce:s,numGraphColumns:z,processedRows:k,processedGraphRowBySha:this.processedGraphRowBySha,refIconsPosition:A,refMetadataById:W,rightGutterBoxShadowAlpha:ee,rightGutterWidth:Q,rowStatsConstraints:this.rowStatsConstraints,rowsStats:this.rowsStats,useAuthorInitialsForAvatars:L,scrollToAlignment:F,scrollLeft:U,scrollTop:Z,shaLength:j,shouldShowRefLine:se,width:V,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},ce={[m.jZ]:ps(le,K),[m.Wm]:Zi(le,K),[m.KE]:Ei(le,K),[m.GF]:ei(le,K),[m.PL]:ti(le,K),[m.av]:xi(le,K),[m.WD]:qr(le,K),[m.Gn]:fs(le,K)},he=T.map(((e,o)=>{const n=0===o;return a().createElement(un,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,cellRenderersByIds:ce,columnIndex:o,customFooterRow:t,enabledScrollMarkerTypes:w,enableResizer:ae,getExternalIcon:this.getIconCallback,getKeyForCell:K,graphHeight:x-m.rl,graphWidth:V,graphZones:T,graphZoneType:e.type,hasMoreCommits:E,horizontalScrollHeight:this.getHorizontalScrollHeight(e.type,p),isLoadingRows:N,key:`${e.type}ColumnContainer`,markerColors:this.getMarkerColors(),markerRowIndices:this.markerRowIndices,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:n?this.onScrollToRowCausedUpdateForFirstColumn:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,O,I),rowCount:k.length,scrollLeft:U,scrollToAlignment:n?F:void 0,scrollToIndex:n?B:void 0,scrollTop:Z,smartCellRangeRenderer:q,translate:this.translateCallback,verticalScrollWidth:this.getVerticalScrollWidth(e.type,p)})})),de=this.graphComponentRef?.current&&a().createElement(Fr,{columnsSettings:e,dragAppendToContainer:this.graphComponentRef?.current,enableResizer:ae,enableShowHideRefsOptions:y,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:T,headerContext:d?.header,height:x,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:r,rowsStatsLoading:G,settingsContext:d?.settings,showRemoteNamesOnRefs:_,translate:this.translateCallback,width:V}),ue=a().createElement("div",{className:"graph-component","data-vscode-context":(0,P.q3)(d?.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},de,a().createElement("div",{className:M&&Object.keys(M).length?i()(Y,"graph-highlighted"):Y,id:"graph-container",onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onMouseDown:this.onGraphHeaderRowMouseDown,ref:this.graphContainerRef,style:{height:x,width:V},tabIndex:-1},he));return this.decorateWithHelmet(ue,p,s)}}var gs=ms},7154:(e,t,o)=>{o.d(t,{Z:()=>a});var n=o(6689),r=o.n(n),i=o(5191);class s extends r().PureComponent{resizeObserver;scrollbarContainerRef=r().createRef();horizontalScrollRef=r().createRef();scrollabbleContentRef=r().createRef();verticalScrollRef=r().createRef();outerHorizontalScrollRef=r().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){const{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;const t=this.props.scrollLeft||0;let o=t;(this.horizontalScrollRef.current||this.props.forceOnHorizontalWheel)&&(o+=e.deltaX,o=o>=0?o:0,o>t&&this.horizontalScrollRef?.current&&(0,i.TC)(this.horizontalScrollRef.current)&&(o=t));const n=this.props.scrollTop||0;let r=n;(this.verticalScrollRef.current||this.props.forceOnVerticalWheel)&&(r+=e.deltaY,r=r>=0?r:0,r>n&&this.verticalScrollRef?.current&&(0,i.BL)(this.verticalScrollRef.current)&&(r=n)),r===n&&o===t||this.props.onScroll({clientHeight:this.props.height||0,clientWidth:this.props.width||0,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:o>=0?o:0,scrollTop:r>=0?r: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,i.h)(((e,t)=>{const o=this.props.contentHeight||0,n=this.props.contentWidth||0,r=this.props.scrollTop||0,i=this.props.scrollLeft||0,s=t<o?r:0,a=e<n?i:0;r===s&&i===a||(this.updateScrollbarValues(a,s),this.props.onScroll?.({clientHeight:t,clientWidth:e,scrollHeight:o,scrollLeft:a,scrollTop:s,scrollWidth:n}))}));hasHorizontalScroll(){const{contentWidth:e,displayHorizontalScrollbar:t,forceHorizontalScrollbar:o,width:n}=this.props;return o||t&&n<e}hasVerticalScroll(){const{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){const t=this.getAdjustedContentHeight();if(!this.scrollabbleContentRef.current||this.props.height>=t||!this.props.onScroll)return;const o=this.scrollabbleContentRef.current.getBoundingClientRect(),n=e.clientY-o.top,r=Math.abs(t-this.props.height);let i;if(this.props.scrollTop>0&&n<=20){const e=this.props.scrollTop-20;i={clientHeight:o.height,clientWidth:o.width,scrollHeight:r,scrollLeft:this.props.scrollLeft||0,scrollTop:e>0?e:0,scrollWidth:this.props.contentWidth||0}}if(this.props.scrollTop<r&&n>=this.props.height-20){const e=this.props.scrollTop+20;i={clientHeight:o.height,clientWidth:o.width,scrollHeight:r,scrollLeft:this.props.scrollLeft||0,scrollTop:e<r?e:r,scrollWidth:this.props.contentWidth||0}}i&&this.props.onScroll(i)}render(){const{children:e,contentHeight:t,contentWidth:o,forceHorizontalScrollbar:n,forceVerticalScrollbar:i,height:s,width:a}=this.props,l=this.hasVerticalScroll(),c=this.hasHorizontalScroll(),h=c&&r().createElement("div",{className:"scrollbar-outer horizontal",ref:this.outerHorizontalScrollRef,style:{top:`calc(${s}px - var(--scrollable-scrollbar-thickness))`,width:a}},r().createElement("div",{className:"scrollbar-inner horizontal_scrollbar",onScroll:e=>this.onHorizontalScroll(e),ref:this.horizontalScrollRef,style:{overflowX:n?"scroll":"auto",width:l?`calc(${a}px - var(--scrollable-scrollbar-thickness))`:a}},r().createElement("div",{style:{height:"1px",width:o}}))),d=l&&r().createElement("div",{className:"scrollbar-outer vertical",style:{height:s}},r().createElement("div",{className:"scrollbar-inner vertical_scrollbar",onScroll:e=>this.onVerticalScroll(e),ref:this.verticalScrollRef,style:{overflowY:i?"scroll":"auto",height:c?`calc(${s}px - var(--scrollable-scrollbar-thickness))`:s}},r().createElement("div",{style:{height:`calc(${t}px + var(--scrollable-scrollbar-thickness))`,width:"1px"}})));return r().createElement("div",{className:"scrollbar-container",onWheelCapture:e=>this.onWheel(e),ref:this.scrollbarContainerRef,style:{height:s,width:a}},r().createElement("div",{className:"scrollable-content",onDragOverCapture:e=>this.adjustScrollWhileDragging(e),ref:this.scrollabbleContentRef,style:{height:s,width:a}},e),h,d)}}var a=s},827:(e,t,o)=>{o.d(t,{Gu:()=>c,S7:()=>r,br:()=>s,ch:()=>l,kP:()=>a,lH:()=>i,o$:()=>n});const n="commit-node",r="merge-conflict-node",i="merge-node",s="unsupported-rebase-warning-node",a="stash-node",l="work-dir-changes";var c=(e=>(e.RowEntry="rowEntry",e.Tooltip="tooltip",e))(c||{})},8289:()=>{},376:(e,t,o)=>{o.d(t,{C:()=>r,i:()=>n});const n="--num-columns-supported",r={"--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-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%"}},7675:(e,t,o)=>{o.d(t,{Ld:()=>i,M:()=>s,a2:()=>r});var n=o(376);function r(e){return`--column-${e}-color`}function i(e={}){const 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{...n.C,...e}}(t)}function s(e){const t=e||n.C;let o="";const r=Object.keys(t);o+=".gk-graph {\n";for(const e of r)o+=`${e}: ${t[e]};\n`;return o+="}\n",o}},2149:(e,t,o)=>{o.d(t,{e:()=>n});var n=(e=>(e.arrowDownKey="ArrowDown",e.arrowUpKey="ArrowUp",e.controlKey="Control",e.metaKey="Meta",e.shiftKey="Shift",e))(n||{})},3308:(e,t,o)=>{o.d(t,{$0:()=>s,$s:()=>d,An:()=>u,B:()=>k,B8:()=>M,GF:()=>se,Gn:()=>oe,IX:()=>K,It:()=>b,KE:()=>ie,LG:()=>S,MQ:()=>Q,NP:()=>m,O5:()=>g,OR:()=>ye,Oi:()=>Z,P3:()=>f,PB:()=>G,PL:()=>ae,QW:()=>F,Qh:()=>pe,RG:()=>de,R_:()=>Ce,Rg:()=>z,SZ:()=>B,Um:()=>he,VB:()=>q,Vh:()=>A,WD:()=>ce,Wm:()=>re,Wu:()=>v,X9:()=>V,Y8:()=>_,YJ:()=>ve,aV:()=>$,ai:()=>me,am:()=>H,at:()=>p,av:()=>le,b4:()=>te,cZ:()=>a,dF:()=>r,dH:()=>X,d_:()=>ue,eq:()=>C,iq:()=>n,jZ:()=>ne,j_:()=>O,jg:()=>T,jn:()=>y,l3:()=>h,lG:()=>x,m8:()=>R,mt:()=>W,mu:()=>ee,nn:()=>c,os:()=>J,pj:()=>I,q1:()=>w,qG:()=>l,qi:()=>ge,rl:()=>i,uK:()=>fe,v1:()=>L,v6:()=>P,wd:()=>Y,wi:()=>j,wy:()=>D,xI:()=>E,yv:()=>N,ze:()=>U});const n="#199489",r=3,i=26,s=28,a=22,l=50*s,c=s-a,h=.5,d=3,u=3,p=s,f=a,m=3,g=f/2,v=56,y=56,C=32,S=a,_=S-4,R=55,w=50,b="short+short",T=55,E=50,x=50,M=50,O=55,I=18,D=32,N=2,G=6,z=14,H=5,k=z+H,A=10,W=55,P=100,L=50,F=10,B=25,Z=58,U=22,j=2,V={dark:1,light:.5},$=10,Y=12,K=6,q=3,X=12,J="auto",Q="center",ee=7,te=4,oe="timelineMessage",ne="ref",re="graph",ie="message",se="author",ae="datetime",le="sha",ce="changes";var he=(e=>(e.Compact="compact",e.Rich="rich",e.Text="text",e))(he||{}),de=(e=>(e.Block="block",e.FullLine="fullLine",e.ThinLine="thinLine",e))(de||{});const ue={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}},pe={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"},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"}},fe=10,me=6,ge={[se]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:C,showIconWidth:R},[ae]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:w,showIconWidth:T},[ie]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!0,listId:"commit-message-zone",minimumWidth:M,showIconWidth:O},[le]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:E,showIconWidth:x},[re]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!0,listId:"commit-zone",minimumWidth:v,showIconWidth:y},[ne]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!0,listId:"ref-zone",minimumWidth:D,showIconWidth:W},[ce]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:L,showIconWidth:Z}},ve={hour:23,day:6,week:4,month:11,year:6},ye={added:0,deleted:0,modified:0};var Ce=(e=>(e.ALWAYS="ALWAYS",e.ON_HOVER="ON_HOVER",e.NEVER="NEVER",e))(Ce||{})},5191:(e,t,o)=>{o.d(t,{BL:()=>u,C_:()=>D,DN:()=>P,Dj:()=>Y,Ez:()=>k,H1:()=>L,Jp:()=>M,Jq:()=>E,KI:()=>O,Kk:()=>F,L1:()=>m,Ne:()=>I,P2:()=>d,PY:()=>Z,Ry:()=>U,SH:()=>b,TC:()=>p,Xq:()=>T,Yv:()=>$,Zg:()=>R,_e:()=>G,bY:()=>y,eR:()=>H,h:()=>h,iM:()=>w,mb:()=>z,nv:()=>_,q3:()=>f,qP:()=>C,sH:()=>j,tC:()=>S,uM:()=>A,uV:()=>g,wE:()=>x,yF:()=>v,zv:()=>N});var n=o(4561),r=o(827),i=o(7675),s=o(8649),a=o(3308),l=o(9453),c=o(466);const h=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...o)}))}},d=(e,t,o)=>{let n,r,i=!1,s=t;return(...a)=>{void 0!==o&&(r=(new Date).getTime(),s=!n||r-n>s+o?o:t),i||(e(...a),n=(new Date).getTime(),i=!0,setTimeout((()=>{i=!1}),s))}};function u(e){return Math.abs(e.scrollHeight-e.scrollTop-e.clientHeight)<1}function p(e){return Math.abs(e.scrollWidth-e.scrollLeft-e.clientWidth)<1}function f(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function m(e){const{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));const o=e[0],n=e[Math.floor(.25*t)],r=e[Math.floor(.5*t)],i=e[Math.floor(.75*t)],s=e[t-1],a=i-n;return{min:Math.max(o,r-1.5*a),max:Math.min(s,r+1.5*a)}}function g(e,t,o,n){const{id:r}=e;return!r||null===t||null===t?.[r]||n&&null===t?.[r]?.[n]?null:t&&r in t?n&&!t[r]?.[n]?(o(r,[n]),null):n?t?.[r]?.[n]:t?.[r]:(o(r,l.AI),null)}function v(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},o=36e5,n=864e5;let r;for(r=1;r<=a.YJ.hour;r+=1)t.hour.push({date:e.getTime()-r*o,label:1===r?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:r});for(r=1;r<=a.YJ.day;r+=1)t.day.push({date:e.getTime()-r*n,label:1===r?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:r});for(r=1;r<=a.YJ.week;r+=1)t.week.push({date:e.getTime()-6048e5*r,label:1===r?"Timeline-1WeekAgo":"Timeline-NWeeksAgo",timeUnit:"week",value:r});const i=new Date;for(i.setHours(0,0,0,0),r=1;r<=a.YJ.month;r+=1)i.setMonth(i.getMonth()-1),i.setHours(0,0,0,0),t.month.push({date:i.getTime(),label:1===r?"Timeline-1MonthAgo":"Timeline-NMonthsAgo",timeUnit:"month",value:r});const s=new Date;for(s.setHours(0,0,0,0),r=1;r<=a.YJ.year;r+=1){let e;switch(s.setFullYear(s.getFullYear()-1),s.setHours(0,0,0,0),r){case 1:e="Timeline-1YearAgo";break;case a.YJ.year:e="Timeline-NPlusYearsAgo";break;default:e="Timeline-NYearsAgo"}t.year.push({date:s.getTime(),label:e,timeUnit:"year",value:r})}return t}function y(e,t){if(t.id)return t.id;const o=t.owner||"";return e===s.V.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function C(e){return y(e.refType,e)}function S(e,t=0){for(let o=e.length-1;o>=t;o-=1){const t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function _(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){const t=e[o],n=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(n&&t.currentWidth<n)return t}return e[e.length-1]}}function R(e,t=!1){const o="--scrollable-scrollbar-thickness",n=t||!e[o]?(0,i.Ld)(e):e,r=n[o]?parseInt(n[o],10):0;return Number.isNaN(r)?0:r}function w(e,t){let o=0;for(const n of e)t&&n.type===t||(o+=n.currentWidth);return o}const b=(e,t)=>e===t[t.length-1].type;function T(e,t,o){return t||o||0===e}function E(e,t,o){return e+(T(e,t,o)?1:0)}function x(e,t,o){const n=E(e,t,o);return a.$0*n}function M(e,t){return e.type===a.Wm&&t>0?e.contentWidth||0:e.currentWidth}function O(e,t,o,n,r){const i=N(e,t);if(!i)return 0;var s,a;return(s=i,a=o.length,s.currentWidth<M(s,a))?R(n,r):0}function I(e,t,o,n,r,i,s,a,l){const c=N(e,t);if(!c)return 0;const h=function(e,t,o,n,r,i,s){const a=x(i,o,n);return b(e.type,t)&&(r<a||s)}(c,t,o,n,r,i.length,s);return h?R(a,l):0}function D(e,t,o){return(0,n.u)(o,e.minimumWidth||0,e.maximumWidth&&!b(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function N(e,t){return t.find((({type:t})=>t===e))}function G(e){return!!e&&e.currentWidth<=e.showIconWidth}function z(e,t){return t.findIndex((({type:t})=>t===e))}function H(e,t,o){let n=0,r=0;const i=z(e,t);if(i>-1){const e=function(e,t=0){let o=0;for(let n=t;n<e.length;n+=1)o+=e[n].minimumWidth;return o}(t,i+1),s=function(e,t=e.length-1){let o=0;for(let n=0;n<=t;n+=1)o+=e[n].currentWidth;return o}(t,i-1),a=t[i].maximumWidth||Number.MAX_VALUE,l=Math.min(a,o-e-s);n=t[i].minimumWidth,r=l}return{min:n,max:r}}function k(e){const t=!!e&&e===a.Um.Compact,o=t?1:2,n=t?10:28,r=t?1:3,i=t?1:3,s=t?10:22,l=t?s:a.P3,c=t?s:s/2+1,h=t?45:56;return{COMMIT_ZONE_LINE_WIDTH:o,COMMIT_ZONE_GUTTER_WIDTH:n,COMMIT_ZONE_PADDING_LEFT:r,COMMIT_ZONE_PADDING_RIGHT:i,COMMIT_COLUMN_WIDTH:s,COMMIT_NODE_DIAMETER:l,COMMIT_MERGE_NODE_DIAMETER:c,COMMIT_NODE_TOP_OFFSET:.5*a.P3-.5*l,COMMIT_MERGE_NODE_LEFT_OFFSET:s/2-c/2,COMMIT_MERGE_NODE_TOP_OFFSET:.5*a.P3-.5*c,COMMIT_ZONE_AVATAR_DIAMETER:l-2*o,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:l+r+i+n,COMMIT_ZONE_SHOW_ICON_WIDTH:h,IS_COMPACT:t,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:l/2-c/2}}const A=e=>t=>t===e.length?"SHOW_MORE_COMMITS":e[t].sha;function W(e){return e instanceof c.A?Boolean(e.refsData?.activeGraphRef):!!e?.heads&&e.heads.some((e=>V(e)))}function P(e){const t=e.find(W);return t?.sha||void 0}function L(e){return[r.S7,r.br,r.ch].includes(e)}function F(e){return!!e&&Object.values(e).some((e=>e>0))}function B(e){return 1===Object.keys(e).length}function Z(e,t){return!0===e[t]&&B(e)}function U(e,t,o,n){if(n<0)return a.os;const r=e+2,i=n*e;return i>=o-r&&i<o+t+r?a.os:a.MQ}function j(e){switch(e){case a.Wm:return"graph";case a.jZ:return"branch";case a.KE:return"message";case a.GF:return"author";case a.PL:return"datetime";case a.av:return"commit";case a.WD:return"changes";default:return""}}function V(e){return e.isCurrentHead}function $(e){return e.refType===s.V.HEAD&&V(e)}class Y{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=N(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupsByNameForRow(e){const 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){const o=t?this.getVerticalScrollWidth(e):0;return function(e,t){return N(e,t)?.currentWidth||a.qi[e].minimumWidth}(e,this.props.graphZones)-o}isDateTimeZoneActive(){return Boolean(this.getActiveGraphZone(a.PL))}isFirstRow(e){return 0===e}isColumnFollowingGraphColumn(e){return((e,t)=>{const o=z(e,t),n=z(a.Wm,t);return-1!==o&&-1!==n&&o-n==1})(e,this.props.graphZones)}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){const 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 b(e,this.props.graphZones)}getSelectedRefGroupByName(){if(B(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t)return t.refsData?.orderedRefGroups||[]}return[]}getHorizontalScrollHeight(e){return O(e,this.props.graphZones,this.props.processedRows,this.props.cssVariables)}getVerticalScrollWidth(e){return I(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){const t=N(e,this.props.graphZones);return!!t&&G(t)}isMissingHoveredRefGroup(e){if(this.props.highlightedShas)return!1;const t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){const e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{const{hoveredRefGroup:e}=this.props;if(!e?.length)return!1;o=e}const{name:n,refType:r}=o[0],i=r===s.V.TAG,a=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:l,tags:c,remotes:h}=!t.hasRefs||a&&!i?t.childRefs:t;if(!l.length&&!h.length&&!c.length)return!0;return!l.some((e=>e.name===n&&o.some((e=>e.refType===s.V.HEAD))))&&!h.some((e=>e.name===n&&o.some((t=>t.refType===s.V.REMOTE&&t.owner===e.owner))))&&!c.some((e=>e.name===n&&o.some((e=>e.refType===s.V.TAG))))}isSelected(e){const t=this.getRow(e)?.sha;return Boolean(t)&&!0===this.props.isSelectedBySha[t]}isSingleSelected(e){const t=this.getRow(e)?.sha;return Boolean(t)&&Z(this.props.isSelectedBySha,t)}hasTimeline(e){return Boolean(this.props.processedRows[e]?.timeLineEntry)&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return W(e)}}},9453:(e,t,o)=>{o.d(t,{$M:()=>i,AI:()=>s,mQ:()=>n,uq:()=>r});const n="pullRequest",r="upstream",i="issue",s=[n,r,i]},466:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(8649),r=o(5191);class i{_graph;_message;_heads;_remotes;_tags;_activeGraphRef;_activeGraphRefGroup;_refGroupsByName;_orderedRefGroups;sha;parents;author;email;date;type;contexts;rowIndex;column;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,n,r,i,s){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.edgeColumnMaxes=n||0,this.edges=r||{},this.childRefs=i||{heads:[],tags:[],remotes:[]},this.timeLineEntry=s,this.initializeRefGroups(),this.updateSummaryAndBody(t.message)}updateSummaryAndBody(e){let t,o=e?e.trim():"";const n=o.indexOf("\n");-1!==n&&(t=o.substring(n+1).trim().replace(/\n+(?:\s+\n+)?/g," | "),o=o.substring(0,n)),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){const t=e.name;this._refGroupsByName[t]||(this._refGroupsByName[t]=[]),this._refGroupsByName[t].push(e)}loadGraphRefGroupsData(){this.initializeRefGroups();const e=[],{heads:t,tags:o,remotes:i}=this.hasRefs?this:this.childRefs;for(const o of t){const t={...o,refType:n.V.HEAD};this.addRefToRefGroup(t),(0,r.Yv)(t)?(this._activeGraphRefGroup=this._refGroupsByName[t.name],this._activeGraphRef=t,e.unshift(this._refGroupsByName[t.name])):e.push(this._refGroupsByName[t.name])}for(const t of i){const o={...t,fullName:t.owner?`${t.owner}/${t.name}`:t.name,refType:n.V.REMOTE},r=this._refGroupsByName[o.name];this.addRefToRefGroup(o),r||e.push(this._refGroupsByName[o.name])}for(const t of o){const o={...t,refType:n.V.TAG};this.addRefToRefGroup(o),e.push(this._refGroupsByName[o.name])}this._orderedRefGroups=e.sort(((e,t)=>e===this._activeGraphRefGroup?-1:t===this._activeGraphRefGroup?1:e.length>t.length?-1:e.length<t.length?1:e[0].name.localeCompare(t[0].name)))}}},7334:(e,t,o)=>{function n(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,{y:()=>n})},8649:(e,t,o)=>{o.d(t,{V:()=>n,l:()=>r});const n={HEAD:"head",REMOTE:"remote",TAG:"tag"};var r=(e=>(e.LEFT="LEFT",e.RIGHT="RIGHT",e))(r||{})},664:()=>{},6756:()=>{},4561:(e,t,o)=>{function n(e,t,o){return(e=e<=o?e:o)>=t?e:t}o.d(t,{u:()=>n})},3316:e=>{function t(e,t,o,n){var r,i=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:o(n),s=t.get(i);return void 0===s&&(s=e.call(this,n),t.set(i,s)),s}function o(e,t,o){var n=Array.prototype.slice.call(arguments,3),r=o(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function n(e,t,o,n,r){return o.bind(t,e,n,r)}function r(e,r){return n(e,this,1===e.length?t:o,r.cache.create(),r.serializer)}function i(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var a={create:function(){return new s}};e.exports=function(e,t){var o=t&&t.cache?t.cache:a,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:r)(e,{cache:o,serializer:n})},e.exports.strategies={variadic:function(e,t){return n(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,o){return n(e,this,t,o.cache.create(),o.serializer)}}},1143:e=>{e.exports=function(e,t,o,n,r,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,n,r,i,s,a],h=0;(l=new Error(t.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},621:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="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},r=s(o(6689)),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var a=e[t],l=void 0===a?"undefined":n(a);return r.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===l&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+o+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},8853:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(o(6689)),r=o(9864),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var a=e[t];return n.default.isValidElement(a)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(a)?null:new Error("Invalid "+i+" `"+s+"` of value `"+a+"` supplied to `"+o+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},5638:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,o,n,r,i){var s=n||"<<anonymous>>",a=i||o;if(null==t[o])return new Error("The "+r+" `"+a+"` is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,c=Array(l>5?l-5:0),h=5;h<l;h++)c[h-5]=arguments[h];return e.apply(void 0,[t,o,n,r,i].concat(c))}},e.exports=t.default},2613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,o,n,r,i,s){var a=r||"<<anonymous>>",l=s||n;if(null==o[n])return t?new Error("Required "+i+" `"+l+"` was not specified in `"+a+"`."):null;for(var c=arguments.length,h=Array(c>6?c-6:0),d=6;d<c;d++)h[d-6]=arguments[d];return e.apply(void 0,[o,n,a,i,l].concat(h))}var o=t.bind(null,!1);return o.isRequired=t.bind(null,!0),o},e.exports=t.default},2703:(e,t,o)=>{var n=o(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,i,s){if(s!==n){var a=new 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 a.name="Invariant Violation",a}}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:i,resetWarningCache:r};return o.PropTypes=o,o}},5697:(e,t,o)=>{e.exports=o(2703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},977:(e,t,o)=>{var n=o(7137),r=o(2584);e.exports=function(){return n.apply(this,r(arguments)).on("cloned",(function(t){e(t),r(t.getElementsByTagName("*")).forEach(e)}));function e(e){e.removeAttribute("data-reactid")}}},9921:(e,t)=>{var o="function"==typeof Symbol&&Symbol.for,n=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,u=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,y=o?Symbol.for("react.fundamental"):60117,C=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case h:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case g:case m:case l:return e;default:return t}}case r:return t}}}function R(e){return _(e)===d}t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return R(e)||_(e)===h},t.isConcurrentMode=R,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===u},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===r},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===C||e.$$typeof===S||e.$$typeof===v)},t.typeOf=_},9864:(e,t,o)=>{e.exports=o(9921)},6871:(e,t,o)=>{function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}.bind(this))}function i(e,t){try{var o=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var o=null,s=null,a=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==o||null!==s||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\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=n,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var h=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;h.call(this,e,t,n)}}return e}o.r(t),o.d(t,{polyfill:()=>s}),n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},7281:(e,t,o)=>{t.__esModule=!0;var n=c(o(5697)),r=c(o(621)),i=c(o(6689)),s=c(o(6405)),a=c(o(3464)),l=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,c=Array(r),d=0;d<r;d++)c[d]=arguments[d];return o=n=h(this,e.call.apply(e,[this].concat(c))),n._mountOverlayTarget=function(){n._overlayTarget||(n._overlayTarget=document.createElement("div"),n._portalContainerNode=(0,a.default)(n.props.container,(0,l.default)(n).body),n._portalContainerNode.appendChild(n._overlayTarget))},n._unmountOverlayTarget=function(){n._overlayTarget&&(n._portalContainerNode.removeChild(n._overlayTarget),n._overlayTarget=null),n._portalContainerNode=null},n._renderOverlay=function(){var e=n.props.children?i.default.Children.only(n.props.children):null;if(null!==e){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){t&&n.props.onRendered&&n.props.onRendered()}))}else n._unrenderOverlay(),n._unmountOverlayTarget()},n._unrenderOverlay=function(){n._overlayTarget&&(s.default.unmountComponentAtNode(n._overlayTarget),n._overlayInstance=null)},n.getMountNode=function(){return n._overlayTarget},h(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,a.default)(e.container,(0,l.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(i.default.Component);d.displayName="Portal",d.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=d,e.exports=t.default},2856:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=h(o(5697)),i=h(o(8853)),s=h(o(6689)),a=h(o(5425)),l=h(o(7487)),c=h(o(2395));function h(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,n));return r.handleHidden=function(){var e;(r.setState({exited:!0}),r.props.onExited)&&(e=r.props).onExited.apply(e,arguments)},r.state={exited:!o.show},r.onHiddenListener=r.handleHidden.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.render=function(){var e=this.props,t=e.container,o=e.containerPadding,n=e.target,r=e.placement,i=e.shouldUpdatePosition,h=e.rootClose,d=e.children,u=e.transition,p=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(e,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);if(!(p.show||u&&!this.state.exited))return null;var f=d;if(f=s.default.createElement(l.default,{container:t,containerPadding:o,target:n,placement:r,shouldUpdatePosition:i},f),u){var m=p.onExit,g=p.onExiting,v=p.onEnter,y=p.onEntering,C=p.onEntered;f=s.default.createElement(u,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:C},f)}return h&&(f=s.default.createElement(c.default,{onRootClose:p.onHide},f)),s.default.createElement(a.default,{container:t},f)},t}(s.default.Component);d.propTypes=n({},a.default.propTypes,l.default.propTypes,{show:r.default.bool,rootClose:r.default.bool,onHide:function(e){var t=r.default.func;e.rootClose&&(t=t.isRequired);for(var o=arguments.length,n=Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];return t.apply(void 0,[e].concat(n))},transition:i.default,onEnter:r.default.func,onEntering:r.default.func,onEntered:r.default.func,onExit:r.default.func,onExiting:r.default.func,onExited:r.default.func}),t.default=d,e.exports=t.default},5425:(e,t,o)=>{t.__esModule=!0;var n=h(o(5697)),r=h(o(621)),i=h(o(6689)),s=h(o(6405)),a=h(o(3464)),l=h(o(290)),c=h(o(7281));function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return o=n=d(this,e.call.apply(e,[this].concat(i))),n.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;n._portalContainerNode=(0,a.default)(e.container,(0,l.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},d(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?s.default.createPortal(this.props.children,this._portalContainerNode):null},t}(i.default.Component);u.displayName="Portal",u.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=s.default.createPortal?u:c.default,e.exports=t.default},7487:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=p(o(4184)),i=p(o(5697)),s=p(o(621)),a=o(6689),l=p(a),c=p(o(6405)),h=p(o(7603)),d=p(o(3464)),u=p(o(290));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}var m=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,n));return r.getTarget=function(){var e=r.props.target,t="function"==typeof e?e():e;return t&&c.default.findDOMNode(t)||null},r.maybeUpdatePosition=function(e){var t=r.getTarget();(r.props.shouldUpdatePosition||t!==r._lastTarget||e)&&r.updatePosition(t)},r.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},r._needsFlush=!1,r._lastTarget=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.updatePosition(this.getTarget())},t.prototype.componentWillReceiveProps=function(){this._needsFlush=!0},t.prototype.componentDidUpdate=function(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement))},t.prototype.render=function(){var e=this.props,t=e.children,o=e.className,i=f(e,["children","className"]),s=this.state,c=s.positionLeft,h=s.positionTop,d=f(s,["positionLeft","positionTop"]);delete i.target,delete i.container,delete i.containerPadding,delete i.shouldUpdatePosition;var u=l.default.Children.only(t);return(0,a.cloneElement)(u,n({},i,d,{positionLeft:c,positionTop:h,className:(0,r.default)(o,u.props.className),style:n({},u.props.style,{left:c,top:h})}))},t.prototype.updatePosition=function(e){if(this._lastTarget=e,e){var t=c.default.findDOMNode(this),o=(0,d.default)(this.props.container,(0,u.default)(this).body);this.setState((0,h.default)(this.props.placement,t,e,o,this.props.containerPadding))}else this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null})},t}(l.default.Component);m.propTypes={target:i.default.oneOfType([s.default,i.default.func]),container:i.default.oneOfType([s.default,i.default.func]),containerPadding:i.default.number,placement:i.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:i.default.bool},m.displayName="Position",m.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},t.default=m,e.exports=t.default},2395:(e,t,o)=>{t.__esModule=!0;var n=c(o(1629)),r=c(o(5697)),i=c(o(6689)),s=c(o(6405)),a=c(o(6616)),l=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,r));return i.addEventListeners=function(){var e=i.props.event,t=(0,l.default)(i);i.documentMouseCaptureListener=(0,a.default)(t,e,i.handleMouseCapture,!0),i.documentMouseListener=(0,a.default)(t,e,i.handleMouse),i.documentKeyupListener=(0,a.default)(t,"keyup",i.handleKeyUp)},i.removeEventListeners=function(){i.documentMouseCaptureListener&&i.documentMouseCaptureListener.remove(),i.documentMouseListener&&i.documentMouseListener.remove(),i.documentKeyupListener&&i.documentKeyupListener.remove()},i.handleMouseCapture=function(e){var t;i.preventMouseRootClose=!!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||!function(e){return 0===e.button}(e)||(0,n.default)(s.default.findDOMNode(i),e.target)},i.handleMouse=function(e){!i.preventMouseRootClose&&i.props.onRootClose&&i.props.onRootClose(e)},i.handleKeyUp=function(e){27===e.keyCode&&i.props.onRootClose&&i.props.onRootClose(e)},i.preventMouseRootClose=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},t.prototype.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},t.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},t.prototype.render=function(){return this.props.children},t}(i.default.Component);h.displayName="RootCloseWrapper",h.propTypes={onRootClose:r.default.func,children:r.default.element,disabled:r.default.bool,event:r.default.oneOf(["click","mousedown"])},h.defaultProps={event:"click"},t.default=h,e.exports=t.default},6616:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i){return(0,n.default)(e,t,o,i),{remove:function(){(0,r.default)(e,t,o,i)}}};var n=i(o(1416)),r=i(o(3249));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7603:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i,s){var a="BODY"===i.tagName?(0,n.default)(o):(0,r.default)(o,i),c=(0,n.default)(t),h=c.height,d=c.width,u=void 0,p=void 0,f=void 0,m=void 0;if("left"===e||"right"===e){p=a.top+(a.height-h)/2,u="left"===e?a.left-d:a.left+a.width;var g=function(e,t,o,n){var r=l(o),i=r.scroll,s=r.height,a=e-n-i,c=e+n-i+t;return a<0?-a:c>s?s-c:0}(p,h,i,s);p+=g,m=50*(1-2*g/h)+"%",f=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');u=a.left+(a.width-d)/2,p="top"===e?a.top-h:a.top+a.height;var v=function(e,t,o,n){var r=l(o),i=r.width,s=e-n,a=e+n+t;if(s<0)return-s;if(a>i)return i-a;return 0}(u,d,i,s);u+=v,f=50*(1-2*v/d)+"%",m=void 0}return{positionLeft:u,positionTop:p,arrowOffsetLeft:f,arrowOffsetTop:m}};var n=a(o(2565)),r=a(o(7265)),i=a(o(504)),s=a(o(290));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=void 0,o=void 0,r=void 0;if("BODY"===e.tagName)t=window.innerWidth,o=window.innerHeight,r=(0,i.default)((0,s.default)(e).documentElement)||(0,i.default)(e);else{var a=(0,n.default)(e);t=a.width,o=a.height,r=(0,i.default)(e)}return{width:t,height:o,scroll:r}}e.exports=t.default},3464:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var n,r=o(6405),i=(n=r)&&n.__esModule?n:{default:n};e.exports=t.default},290:(e,t,o)=>{t.__esModule=!0,t.default=function(e){return(0,r.default)(n.default.findDOMNode(e))};var n=i(o(6405)),r=i(o(9981));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},644:(e,t,o)=>{t.ZP=t.cn=t.d0=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(o(5697)),r=a(o(6689)),i=a(o(6405)),s=o(6871);o(4726);function a(e){return e&&e.__esModule?e:{default:e}}var l="unmounted";var c="exited";var h="entering";t.d0=h;var d="entered";t.cn=d;var u="exiting";var p=function(e){var t,o;function n(t,o){var n;n=e.call(this,t,o)||this;var r,i=o.transitionGroup,s=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?s?(r=c,n.appearStatus=h):r=d:r=t.unmountOnExit||t.mountOnEnter?l:c,n.state={status:r},n.nextCallback=null,n}o=e,(t=n).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var s=n.prototype;return s.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==h&&o!==d&&(t=h):o!==h&&o!==d||(t=u)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,o,n=this.props.timeout;return e=t=o=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,o=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:o}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var o=i.default.findDOMNode(this);t===h?this.performEnter(o,e):this.performExit(o)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},s.performEnter=function(e,t){var o=this,n=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),s=r?i.appear:i.enter;t||n?(this.props.onEnter(e,r),this.safeSetState({status:h},(function(){o.props.onEntering(e,r),o.onTransitionEnd(e,s,(function(){o.safeSetState({status:d},(function(){o.props.onEntered(e,r)}))}))}))):this.safeSetState({status:d},(function(){o.props.onEntered(e)}))},s.performExit=function(e){var t=this,o=this.props.exit,n=this.getTimeouts();o?(this.props.onExit(e),this.safeSetState({status:u},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(n){o&&(o=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},s.onTransitionEnd=function(e,t,o){this.setNextCallback(o);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,o=t.children,n=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof o)return o(e,n);var i=r.default.Children.only(o);return r.default.cloneElement(i,n)},n}(r.default.Component);function f(){}p.contextTypes={transitionGroup:n.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var m=(0,s.polyfill)(p);t.ZP=m},4726:(e,t,o)=>{t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=o(5697))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},6115:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},670:e=>{e.exports=function(){}},6689:e=>{e.exports=require("react")},6405:e=>{e.exports=require("react-dom")},8149:(e,t,o)=>{e.exports=o(3285)},3562:(e,t,o)=>{e.exports=o(7965)},434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.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 n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new 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 n={};(()=>{o.r(n),o.d(n,{CHANGES_BAR_MIN_WIDTH:()=>c.QW,CHANGES_BAR_RIGHT_MARGIN:()=>c.SZ,CHANGES_ZONE_MIN_WIDTH:()=>c.v1,CHANGES_ZONE_SHOW_ICON_WIDTH:()=>c.Oi,COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER:()=>c.Y8,COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER:()=>c.LG,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>c.eq,COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH:()=>c.m8,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>c.q1,COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH:()=>c.jg,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>c.B8,COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH:()=>c.j_,COMMIT_NODE_MIN_ALPHA:()=>c.l3,COMMIT_SHA_ZONE_MIN_WIDTH:()=>c.xI,COMMIT_SHA_ZONE_SHOW_ICON_WIDTH:()=>c.lG,COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN:()=>c.Wu,COMMIT_ZONE_EDGE_ARC_PADDING:()=>c.NP,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>c.O5,COMMIT_ZONE_MARGIN_BOTTOM:()=>c.$s,COMMIT_ZONE_MARGIN_TOP:()=>c.An,COMMIT_ZONE_ROW_HEIGHT:()=>c.at,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>c.P3,COMMIT_ZONE_SHOW_ICON_WIDTH:()=>c.jn,CommitDateTimeSources:()=>i.Gu,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>c.iq,DEFAULT_COMMIT_SHA_LENGTH:()=>c.ai,DEFAULT_WORKDIR_STATS:()=>c.OR,DndComponent:()=>e.Z,GRAPH_HEADER_ROW_HEIGHT:()=>c.rl,GRAPH_ROW_HEIGHT:()=>c.$0,GRAPH_ROW_INNER_HEIGHT:()=>c.cZ,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>c.qG,GRAPH_ROW_PADDING:()=>c.nn,GRAPH_SCROLL_MARKER_LANES:()=>c.dF,GraphColumnMode:()=>c.Um,GraphMarkerShape:()=>c.RG,HEADER_ROW_HEIGHT:()=>c.ze,HEADER_ROW_MARGIN_BOTTOM:()=>c.wi,INLINE_SUMMARY_MARGIN_LEFT:()=>c.aV,LeftPanelToGraphMarginGap:()=>c.mu,NamedKeys:()=>s.e,OPACITY_FACTOR_BY_THEME:()=>c.X9,REF_NODE_ICON_MARGIN:()=>c.am,REF_NODE_ICON_SPACING:()=>c.B,REF_NODE_ICON_WIDTH:()=>c.Rg,REF_NODE_OUTER_SPACING:()=>c.Vh,REF_ZONE_MARGIN_LEFT:()=>c.yv,REF_ZONE_MARGIN_RIGHT:()=>c.PB,REF_ZONE_MAX_REFS_TO_RENDER:()=>c.v6,REF_ZONE_MIN_WIDTH:()=>c.wy,REF_ZONE_SHOW_ICON_WIDTH:()=>c.mt,REF_ZONE_TEXT_HEIGHT:()=>c.pj,ResizableHandleCorrection:()=>c.b4,SCROLL_TO_ALIGNMENT_AUTO:()=>c.os,SCROLL_TO_ALIGNMENT_CENTER:()=>c.MQ,ScrollbarContainer:()=>t.Z,TIMESTAMP_FORMAT_DATE_TIME:()=>c.It,TINY_FILES_READOUT_FONT_SIZE:()=>c.wd,TINY_FILES_READOUT_RIGHT_MARGIN:()=>c.IX,TINY_ICON_RIGHT_MARGIN:()=>c.VB,TINY_ICON_SIZE:()=>c.dH,allMetadataTypes:()=>h.AI,changesZone:()=>c.WD,commitAuthorZone:()=>c.GF,commitDateTimeZone:()=>c.PL,commitMessageZone:()=>c.KE,commitNodeType:()=>i.o$,commitShaZone:()=>c.av,commitZone:()=>c.Wm,default:()=>m,getHostingServiceName:()=>d.y,graphCommitDescDisplayModes:()=>c.R_,graphMarkerMetadata:()=>c.Qh,graphMarkerShapeMetadata:()=>c.d_,graphZoneMetaData:()=>c.qi,issueMetadataType:()=>h.$M,lookbackLimitByPeriod:()=>c.YJ,mergeConflictNodeType:()=>i.S7,mergeNodeType:()=>i.lH,numGraphColumnsDefault:()=>c.uK,pullRequestMetadataType:()=>h.mQ,refIconsPositions:()=>u.l,refTypes:()=>u.V,refZone:()=>c.jZ,stashNodeType:()=>i.kP,timelineMsgRowRenderId:()=>c.Gn,unsupportedRebaseWarningNodeType:()=>i.br,upstreamMetadataType:()=>h.uq,workDirType:()=>i.ch});var e=o(9915),t=o(7154),r=o(3607),i=o(827),s=o(2149),a=o(8289),l={};for(const e in a)["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys"].indexOf(e)<0&&(l[e]=()=>a[e]);o.d(n,l);var c=o(3308),h=o(9453),d=o(7334),u=o(8649),p=o(664);l={};for(const e in p)["default","DndComponent","ScrollbarContainer","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)<0&&(l[e]=()=>p[e]);o.d(n,l);var f=o(6756);l={};for(const e in f)["default","DndComponent","ScrollbarContainer","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)<0&&(l[e]=()=>f[e]);o.d(n,l);var m=r.Z})(),module.exports=n})();
|