@akshay-rajput/git-graph-svg 2.0.2 → 2.0.4

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.
@@ -1,14 +1,14 @@
1
- (function(J,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],k):(J=typeof globalThis<"u"?globalThis:J||self,k(J.GitRepoGraph={},J.React))})(this,(function(J,k){"use strict";var le={exports:{}},ne={};var we;function Ve(){if(we)return ne;we=1;var m=k,R=Symbol.for("react.element"),T=Symbol.for("react.fragment"),C=Object.prototype.hasOwnProperty,O=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function A(M,g,U){var b,W={},G=null,D=null;U!==void 0&&(G=""+U),g.key!==void 0&&(G=""+g.key),g.ref!==void 0&&(D=g.ref);for(b in g)C.call(g,b)&&!j.hasOwnProperty(b)&&(W[b]=g[b]);if(M&&M.defaultProps)for(b in g=M.defaultProps,g)W[b]===void 0&&(W[b]=g[b]);return{$$typeof:R,type:M,key:G,ref:D,props:W,_owner:O.current}}return ne.Fragment=T,ne.jsx=A,ne.jsxs=A,ne}var ae={};var Se;function Ne(){return Se||(Se=1,process.env.NODE_ENV!=="production"&&(function(){var m=k,R=Symbol.for("react.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),M=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),c=Symbol.iterator,E="@@iterator";function P(e){if(e===null||typeof e!="object")return null;var r=c&&e[c]||e[E];return typeof r=="function"?r:null}var F=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];B("error",e,t)}}function B(e,r,t){{var a=F.ReactDebugCurrentFrame,h=a.getStackAddendum();h!==""&&(r+="%s",t=t.concat([h]));var y=t.map(function(d){return String(d)});y.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,y)}}var X=!1,i=!1,ee=!1,z=!1,ge=!1,oe;oe=Symbol.for("react.module.reference");function ye(e){return!!(typeof e=="string"||typeof e=="function"||e===C||e===j||ge||e===O||e===U||e===b||z||e===D||X||i||ee||typeof e=="object"&&e!==null&&(e.$$typeof===G||e.$$typeof===W||e.$$typeof===A||e.$$typeof===M||e.$$typeof===g||e.$$typeof===oe||e.getModuleId!==void 0))}function Ee(e,r,t){var a=e.displayName;if(a)return a;var h=r.displayName||r.name||"";return h!==""?t+"("+h+")":t}function ce(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case T:return"Portal";case j:return"Profiler";case O:return"StrictMode";case U:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case M:var r=e;return ce(r)+".Consumer";case A:var t=e;return ce(t._context)+".Provider";case g:return Ee(e,e.render,"ForwardRef");case W:var a=e.displayName||null;return a!==null?a:N(e.type)||"Memo";case G:{var h=e,y=h._payload,d=h._init;try{return N(d(y))}catch{return null}}}return null}var H=Object.assign,Z=0,n,o,l,s,f,v,_;function x(){}x.__reactDisabledLog=!0;function I(){{if(Z===0){n=console.log,o=console.info,l=console.warn,s=console.error,f=console.group,v=console.groupCollapsed,_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:x,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Z++}}function ie(){{if(Z--,Z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},e,{value:n}),info:H({},e,{value:o}),warn:H({},e,{value:l}),error:H({},e,{value:s}),group:H({},e,{value:f}),groupCollapsed:H({},e,{value:v}),groupEnd:H({},e,{value:_})})}Z<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=F.ReactCurrentDispatcher,q;function K(e,r,t){{if(q===void 0)try{throw Error()}catch(h){var a=h.stack.trim().match(/\n( *(at )?)/);q=a&&a[1]||""}return`
2
- `+q+e}}var be=!1,de;{var tr=typeof WeakMap=="function"?WeakMap:Map;de=new tr}function Pe(e,r){if(!e||be)return"";{var t=de.get(e);if(t!==void 0)return t}var a;be=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=fe.current,fe.current=null,I();try{if(r){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(L){a=L}Reflect.construct(e,[],d)}else{try{d.call()}catch(L){a=L}e.call(d.prototype)}}else{try{throw Error()}catch(L){a=L}e()}}catch(L){if(L&&a&&typeof L.stack=="string"){for(var u=L.stack.split(`
3
- `),$=a.stack.split(`
4
- `),w=u.length-1,S=$.length-1;w>=1&&S>=0&&u[w]!==$[S];)S--;for(;w>=1&&S>=0;w--,S--)if(u[w]!==$[S]){if(w!==1||S!==1)do if(w--,S--,S<0||u[w]!==$[S]){var Y=`
5
- `+u[w].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),typeof e=="function"&&de.set(e,Y),Y}while(w>=1&&S>=0);break}}}finally{be=!1,fe.current=y,ie(),Error.prepareStackTrace=h}var te=e?e.displayName||e.name:"",Q=te?K(te):"";return typeof e=="function"&&de.set(e,Q),Q}function nr(e,r,t){return Pe(e,!1)}function ar(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ve(e,r,t){if(e==null)return"";if(typeof e=="function")return Pe(e,ar(e));if(typeof e=="string")return K(e);switch(e){case U:return K("Suspense");case b:return K("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return nr(e.render);case W:return ve(e.type,r,t);case G:{var a=e,h=a._payload,y=a._init;try{return ve(y(h),r,t)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,je={},Ie=F.ReactDebugCurrentFrame;function he(e){if(e){var r=e._owner,t=ve(e.type,e._source,r?r.type:null);Ie.setExtraStackFrame(t)}else Ie.setExtraStackFrame(null)}function or(e,r,t,a,h){{var y=Function.call.bind(se);for(var d in e)if(y(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var $=Error((a||"React class")+": "+t+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}u=e[d](r,d,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){u=w}u&&!(u instanceof Error)&&(he(h),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,d,typeof u),he(null)),u instanceof Error&&!(u.message in je)&&(je[u.message]=!0,he(h),p("Failed %s type: %s",t,u.message),he(null))}}}var ir=Array.isArray;function _e(e){return ir(e)}function sr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function lr(e){try{return ke(e),!1}catch{return!0}}function ke(e){return""+e}function De(e){if(lr(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",sr(e)),ke(e)}var Fe=F.ReactCurrentOwner,ur={key:!0,ref:!0,__self:!0,__source:!0},$e,Ae;function cr(e){if(se.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function fr(e){if(se.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function dr(e,r){typeof e.ref=="string"&&Fe.current}function vr(e,r){{var t=function(){$e||($e=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function hr(e,r){{var t=function(){Ae||(Ae=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var pr=function(e,r,t,a,h,y,d){var u={$$typeof:R,type:e,key:r,ref:t,props:d,_owner:y};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function gr(e,r,t,a,h){{var y,d={},u=null,$=null;t!==void 0&&(De(t),u=""+t),fr(r)&&(De(r.key),u=""+r.key),cr(r)&&($=r.ref,dr(r,h));for(y in r)se.call(r,y)&&!ur.hasOwnProperty(y)&&(d[y]=r[y]);if(e&&e.defaultProps){var w=e.defaultProps;for(y in w)d[y]===void 0&&(d[y]=w[y])}if(u||$){var S=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&vr(d,S),$&&hr(d,S)}return pr(e,u,$,h,a,Fe.current,d)}}var xe=F.ReactCurrentOwner,Me=F.ReactDebugCurrentFrame;function re(e){if(e){var r=e._owner,t=ve(e.type,e._source,r?r.type:null);Me.setExtraStackFrame(t)}else Me.setExtraStackFrame(null)}var Re;Re=!1;function Te(e){return typeof e=="object"&&e!==null&&e.$$typeof===R}function Le(){{if(xe.current){var e=N(xe.current.type);if(e)return`
1
+ (function(J,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],A):(J=typeof globalThis<"u"?globalThis:J||self,A(J.GitRepoGraph={},J.React))})(this,(function(J,A){"use strict";var fe={exports:{}},ne={};var Ce;function Ne(){if(Ce)return ne;Ce=1;var m=A,T=Symbol.for("react.element"),_=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,w=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function M(L,g,B){var x,P={},U=null,X=null;B!==void 0&&(U=""+B),g.key!==void 0&&(U=""+g.key),g.ref!==void 0&&(X=g.ref);for(x in g)E.call(g,x)&&!k.hasOwnProperty(x)&&(P[x]=g[x]);if(L&&L.defaultProps)for(x in g=L.defaultProps,g)P[x]===void 0&&(P[x]=g[x]);return{$$typeof:T,type:L,key:U,ref:X,props:P,_owner:w.current}}return ne.Fragment=_,ne.jsx=M,ne.jsxs=M,ne}var ae={};var we;function Ke(){return we||(we=1,process.env.NODE_ENV!=="production"&&(function(){var m=A,T=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),L=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),X=Symbol.for("react.offscreen"),s=Symbol.iterator,y="@@iterator";function j(e){if(e===null||typeof e!="object")return null;var r=s&&e[s]||e[y];return typeof r=="function"?r:null}var D=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];G("error",e,t)}}function G(e,r,t){{var a=D.ReactDebugCurrentFrame,p=a.getStackAddendum();p!==""&&(r+="%s",t=t.concat([p]));var b=t.map(function(v){return String(v)});b.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,b)}}var z=!1,$=!1,oe=!1,d=!1,ie=!1,se;se=Symbol.for("react.module.reference");function be(e){return!!(typeof e=="string"||typeof e=="function"||e===E||e===k||ie||e===w||e===B||e===x||d||e===X||z||$||oe||typeof e=="object"&&e!==null&&(e.$$typeof===U||e.$$typeof===P||e.$$typeof===M||e.$$typeof===L||e.$$typeof===g||e.$$typeof===se||e.getModuleId!==void 0))}function de(e,r,t){var a=e.displayName;if(a)return a;var p=r.displayName||r.name||"";return p!==""?t+"("+p+")":t}function ve(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case _:return"Portal";case k:return"Profiler";case w:return"StrictMode";case B:return"Suspense";case x:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L:var r=e;return ve(r)+".Consumer";case M:var t=e;return ve(t._context)+".Provider";case g:return de(e,e.render,"ForwardRef");case P:var a=e.displayName||null;return a!==null?a:N(e.type)||"Memo";case U:{var p=e,b=p._payload,v=p._init;try{return N(v(b))}catch{return null}}}return null}var H=Object.assign,q=0,he,pe,n,i,l,o,u;function f(){}f.__reactDisabledLog=!0;function C(){{if(q===0){he=console.log,pe=console.info,n=console.warn,i=console.error,l=console.group,o=console.groupCollapsed,u=console.groupEnd;var e={configurable:!0,enumerable:!0,value:f,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}q++}}function R(){{if(q--,q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},e,{value:he}),info:H({},e,{value:pe}),warn:H({},e,{value:n}),error:H({},e,{value:i}),group:H({},e,{value:l}),groupCollapsed:H({},e,{value:o}),groupEnd:H({},e,{value:u})})}q<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var I=D.ReactCurrentDispatcher,Z;function le(e,r,t){{if(Z===void 0)try{throw Error()}catch(p){var a=p.stack.trim().match(/\n( *(at )?)/);Z=a&&a[1]||""}return`
2
+ `+Z+e}}var Q=!1,K;{var tr=typeof WeakMap=="function"?WeakMap:Map;K=new tr}function je(e,r){if(!e||Q)return"";{var t=K.get(e);if(t!==void 0)return t}var a;Q=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=I.current,I.current=null,C();try{if(r){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(W){a=W}Reflect.construct(e,[],v)}else{try{v.call()}catch(W){a=W}e.call(v.prototype)}}else{try{throw Error()}catch(W){a=W}e()}}catch(W){if(W&&a&&typeof W.stack=="string"){for(var c=W.stack.split(`
3
+ `),F=a.stack.split(`
4
+ `),S=c.length-1,O=F.length-1;S>=1&&O>=0&&c[S]!==F[O];)O--;for(;S>=1&&O>=0;S--,O--)if(c[S]!==F[O]){if(S!==1||O!==1)do if(S--,O--,O<0||c[S]!==F[O]){var Y=`
5
+ `+c[S].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,Y),Y}while(S>=1&&O>=0);break}}}finally{Q=!1,I.current=b,R(),Error.prepareStackTrace=p}var te=e?e.displayName||e.name:"",ee=te?le(te):"";return typeof e=="function"&&K.set(e,ee),ee}function nr(e,r,t){return je(e,!1)}function ar(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ge(e,r,t){if(e==null)return"";if(typeof e=="function")return je(e,ar(e));if(typeof e=="string")return le(e);switch(e){case B:return le("Suspense");case x:return le("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return nr(e.render);case P:return ge(e.type,r,t);case U:{var a=e,p=a._payload,b=a._init;try{return ge(b(p),r,t)}catch{}}}return""}var ue=Object.prototype.hasOwnProperty,Ie={},ke=D.ReactDebugCurrentFrame;function ye(e){if(e){var r=e._owner,t=ge(e.type,e._source,r?r.type:null);ke.setExtraStackFrame(t)}else ke.setExtraStackFrame(null)}function or(e,r,t,a,p){{var b=Function.call.bind(ue);for(var v in e)if(b(e,v)){var c=void 0;try{if(typeof e[v]!="function"){var F=Error((a||"React class")+": "+t+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw F.name="Invariant Violation",F}c=e[v](r,v,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){c=S}c&&!(c instanceof Error)&&(ye(p),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,v,typeof c),ye(null)),c instanceof Error&&!(c.message in Ie)&&(Ie[c.message]=!0,ye(p),h("Failed %s type: %s",t,c.message),ye(null))}}}var ir=Array.isArray;function Ee(e){return ir(e)}function sr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function lr(e){try{return De(e),!1}catch{return!0}}function De(e){return""+e}function $e(e){if(lr(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",sr(e)),De(e)}var Fe=D.ReactCurrentOwner,ur={key:!0,ref:!0,__self:!0,__source:!0},Ae,Me;function fr(e){if(ue.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function cr(e){if(ue.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function dr(e,r){typeof e.ref=="string"&&Fe.current}function vr(e,r){{var t=function(){Ae||(Ae=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function hr(e,r){{var t=function(){Me||(Me=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var pr=function(e,r,t,a,p,b,v){var c={$$typeof:T,type:e,key:r,ref:t,props:v,_owner:b};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function gr(e,r,t,a,p){{var b,v={},c=null,F=null;t!==void 0&&($e(t),c=""+t),cr(r)&&($e(r.key),c=""+r.key),fr(r)&&(F=r.ref,dr(r,p));for(b in r)ue.call(r,b)&&!ur.hasOwnProperty(b)&&(v[b]=r[b]);if(e&&e.defaultProps){var S=e.defaultProps;for(b in S)v[b]===void 0&&(v[b]=S[b])}if(c||F){var O=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&vr(v,O),F&&hr(v,O)}return pr(e,c,F,p,a,Fe.current,v)}}var _e=D.ReactCurrentOwner,Le=D.ReactDebugCurrentFrame;function re(e){if(e){var r=e._owner,t=ge(e.type,e._source,r?r.type:null);Le.setExtraStackFrame(t)}else Le.setExtraStackFrame(null)}var xe;xe=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===T}function We(){{if(_e.current){var e=N(_e.current.type);if(e)return`
6
6
 
7
- Check the render method of \``+e+"`."}return""}}function yr(e){return""}var We={};function Er(e){{var r=Le();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
7
+ Check the render method of \``+e+"`."}return""}}function yr(e){return""}var Be={};function br(e){{var r=We();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
8
8
 
9
- Check the top-level render call using <`+t+">.")}return r}}function Be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Er(r);if(We[t])return;We[t]=!0;var a="";e&&e._owner&&e._owner!==xe.current&&(a=" It was passed a child from "+N(e._owner.type)+"."),re(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),re(null)}}function Ue(e,r){{if(typeof e!="object")return;if(_e(e))for(var t=0;t<e.length;t++){var a=e[t];Te(a)&&Be(a,r)}else if(Te(e))e._store&&(e._store.validated=!0);else if(e){var h=P(e);if(typeof h=="function"&&h!==e.entries)for(var y=h.call(e),d;!(d=y.next()).done;)Te(d.value)&&Be(d.value,r)}}}function br(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===g||r.$$typeof===W))t=r.propTypes;else return;if(t){var a=N(r);or(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Re){Re=!0;var h=N(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _r(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){re(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),re(null);break}}e.ref!==null&&(re(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}}var Ge={};function Ye(e,r,t,a,h,y){{var d=ye(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $=yr();$?u+=$:u+=Le();var w;e===null?w="null":_e(e)?w="array":e!==void 0&&e.$$typeof===R?(w="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,u)}var S=gr(e,r,t,h,y);if(S==null)return S;if(d){var Y=r.children;if(Y!==void 0)if(a)if(_e(Y)){for(var te=0;te<Y.length;te++)Ue(Y[te],e);Object.freeze&&Object.freeze(Y)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(Y,e)}if(se.call(r,"key")){var Q=N(e),L=Object.keys(r).filter(function(Sr){return Sr!=="key"}),Ce=L.length>0?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}";if(!Ge[Q+Ce]){var wr=L.length>0?"{"+L.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
9
+ Check the top-level render call using <`+t+">.")}return r}}function Ue(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=br(r);if(Be[t])return;Be[t]=!0;var a="";e&&e._owner&&e._owner!==_e.current&&(a=" It was passed a child from "+N(e._owner.type)+"."),re(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),re(null)}}function Ge(e,r){{if(typeof e!="object")return;if(Ee(e))for(var t=0;t<e.length;t++){var a=e[t];Re(a)&&Ue(a,r)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var p=j(e);if(typeof p=="function"&&p!==e.entries)for(var b=p.call(e),v;!(v=b.next()).done;)Re(v.value)&&Ue(v.value,r)}}}function Er(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===g||r.$$typeof===P))t=r.propTypes;else return;if(t){var a=N(r);or(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!xe){xe=!0;var p=N(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _r(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){re(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),re(null);break}}e.ref!==null&&(re(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}}var Ye={};function Ve(e,r,t,a,p,b){{var v=be(e);if(!v){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var F=yr();F?c+=F:c+=We();var S;e===null?S="null":Ee(e)?S="array":e!==void 0&&e.$$typeof===T?(S="<"+(N(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,c)}var O=gr(e,r,t,p,b);if(O==null)return O;if(v){var Y=r.children;if(Y!==void 0)if(a)if(Ee(Y)){for(var te=0;te<Y.length;te++)Ge(Y[te],e);Object.freeze&&Object.freeze(Y)}else h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ge(Y,e)}if(ue.call(r,"key")){var ee=N(e),W=Object.keys(r).filter(function(Sr){return Sr!=="key"}),Te=W.length>0?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}";if(!Ye[ee+Te]){var wr=W.length>0?"{"+W.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX:
10
10
  let props = %s;
11
11
  <%s {...props} />
12
12
  React keys must be passed directly to JSX without using spread:
13
13
  let props = %s;
14
- <%s key={someKey} {...props} />`,Ce,Q,wr,Q),Ge[Q+Ce]=!0}}return e===C?_r(S):br(S),S}}function xr(e,r,t){return Ye(e,r,t,!0)}function Rr(e,r,t){return Ye(e,r,t,!1)}var Tr=Rr,Cr=xr;ae.Fragment=C,ae.jsx=Tr,ae.jsxs=Cr})()),ae}var me;function Ke(){return me||(me=1,process.env.NODE_ENV==="production"?le.exports=Ve():le.exports=Ne()),le.exports}var V=Ke();const Oe=50,He=5,Je=["#3a86ff","#8338ec","#ff006e","#fb5607","#ffbe0b"],Xe=({commits:m,rowHeight:R,colorPalette:T,laneWidth:C,renderNode:O,renderEdge:j})=>{const A=C||Oe,M=R||Oe,g=k.useMemo(()=>(T||Je).map((c,E)=>({color:c,branch:null,lane:E+1,index:E})),[T,m]);function U(){var c=g.findIndex(P=>!P.branch);if(c>-1)return g[c];var E={color:"#"+Math.floor(Math.random()*16777215).toString(16),branch:null,lane:g.length+1,index:c};return g.push(E),E}const b=k.useMemo(()=>{var c=[];const E=new Map;return m.forEach((P,F)=>{var p={...P,color:"",lane:0,cx:0,cy:0,prev:[],index:F},B=g.find(i=>i.branch==P.id);B?g.forEach(i=>{i.branch===P.id&&i.index!==B?.index&&(i.branch=null)}):B=U();for(const i of P.parents)if(g.find(z=>z.branch===i))B.branch=i;else if(B.branch==P.id)B.branch=i;else{var X=g.find(z=>!z.branch);X||(X=U()),X.branch=i}p.color=B.color,p.lane=B.lane,p.cx=p.lane*A-A/2,p.cy=M*F+A/2,c.push(p),E.set(p.id,p)}),c.forEach(P=>{P.parents.forEach(F=>{const p=E.get(F);p&&p.prev.push(P)})}),c},[m,M,A]);function W(c,E){return`M ${c.cx} ${c.cy} L ${E.cx} ${E.cy}`}const G=k.useMemo(()=>Math.max(...b.map(c=>c.lane),0),[b]),D=k.useMemo(()=>G*A+100,[G,A]);return V.jsxs("svg",{width:D,height:M*b.length,children:[b.flatMap(c=>c.prev.map((E,P)=>{if(j)return j(c,E,b,P);const F=W(c,E);return V.jsx("path",{d:F,fill:"none",stroke:c.lane<=E.lane?E.color:c.color,strokeWidth:2},`${c.id}-${E.id}_${P}`)})),b.map((c,E)=>O?O(c,E):V.jsx("circle",{cx:c.cx,cy:c.cy,r:He,fill:c.color},`${c.id}_${E}`))]})},ue={getCurveTop(m,R,T,C){const O=Math.min(15,Math.abs(C-R)/2);let j=` C ${m} ${R+O}, ${T} ${R+O}, ${T} ${R+O*2}`;return R+O*2<C&&(j+=` L ${T} ${C}`),j},getCurveBottom(m,R,T,C){const O=Math.min(15,Math.abs(C-R)/2);let j="";return C-O*2>R&&(j+=` L ${m} ${C-O*2}`),j+=` C ${m} ${C-O}, ${T} ${C-O}, ${T} ${C}`,j},drawFinalPath(m,R,T=2){return V.jsx("path",{d:m,stroke:R,strokeWidth:T,fill:"none"})},drawPoint(m,R,T,C){return V.jsx("circle",{cx:m,cy:R,r:5,fill:T,stroke:"none"})}},ze=["#3a86ff","#8338ec","#ff006e","#fb5607","#ffbe0b","#3affbd","#adec38","#ff009d","#fb7507","#0b38ff"],Ze=35,qe=35,pe=25,Qe=25,er=2,rr=k.forwardRef((m,R)=>{const{commits:T,colorPalette:C,rowHeight:O,laneWidth:j,style:A,renderNode:M,renderEdge:g,getMergeCurve:U,getBranchSplitCurve:b}=m;k.useRef(null);const[W,G]=k.useState(0);let D=0;const c=C||ze,E=O||Ze,P=j||qe,{nodes:F,edges:p}=k.useMemo(()=>{const B=[],X=[];let i={},ee=[],z=0;function ge(n,o,l,s){return D=Math.max(D,l,n),U?U(n,o,l,s):ue.getCurveTop(n,o,l,s)}function oe(n,o,l,s){return D=Math.max(D,l,n),b?b(n,o,l,s):ue.getCurveBottom(n,o,l,s)}function ye(n,o,l,s=2){if(g){let f=g(o,l);n.push(f)}else{let f=ue.drawFinalPath(o,l,s);n.push(f)}}function Ee(n,o,l,s,f){if(D=Math.max(D,o),M){let v=M(o,l,s,f);n.push(v)}else{let v=ue.drawPoint(o,l,s,f);n.push(v)}}function ce(){const n=Object.values(i),o=new Set(n.map(s=>s.xIndex));let l=0;for(;o.has(l);)l++;return{color:c[z++%c.length],xIndex:l}}function N(){const n=Object.keys(i),o=new Set;n.filter(s=>s.startsWith("merge_")).forEach(s=>{o.add(i[s].xIndex)});const l=n.filter(s=>!s.startsWith("merge_")).map(s=>i[s]);l.sort((s,f)=>s.xIndex-f.xIndex);for(const s of l){let f=0;for(;o.has(f);)f++;f<s.xIndex&&(s.xIndex=f),o.add(s.xIndex)}}function H(n,o){let l=new Set,s=i[o];s&&(l.add(o),s.toBeClosed&&s.toBeClosed.forEach(f=>l.add(f))),Object.keys(i).forEach(f=>{if(l.has(f))return;const v=i[f],_=v.xIndex*P+pe;v.lastxy.y!==n&&(v.lastxy.x!==_?v.pathStr+=ge(v.lastxy.x,v.lastxy.y,_,n):v.pathStr+=` L ${_} ${n}`,v.lastxy={x:_,y:n})})}function Z(n){let o=i[n.id],l=0,s="";if(o)l=o.xIndex,s=o.color;else{let _=ce();l=_.xIndex,s=_.color}const f=l*P+pe,v=n.meta.yIndex*E+Qe;if(H(v,n.id),o&&((o.lastxy.y!==v||o.lastxy.x!==f)&&(o.pathStr+=oe(o.lastxy.x,o.lastxy.y,f,v)),ee.push({d:o.pathStr,color:o.color}),o.toBeClosed&&o.toBeClosed.forEach(_=>{let x=i[_];x&&((x.lastxy.y!==v||x.lastxy.x!==f)&&(x.pathStr+=oe(x.lastxy.x,x.lastxy.y,f,v)),ee.push({d:x.pathStr,color:x.color}),delete i[_])}),delete i[n.id]),Ee(B,f,v,s,n),n.parents.length>0){let _=n.parents[0];if(!i[_])i[_]={color:s,xIndex:l,lastxy:{x:f,y:v},pathStr:`M ${f} ${v}`};else{let x=i[_];if(l<x.xIndex){let I=`merge_${n.id}_${_}_${x.xIndex}`;i[I]=x,i[_]={color:s,xIndex:l,lastxy:{x:f,y:v},pathStr:`M ${f} ${v}`,toBeClosed:x.toBeClosed?[...x.toBeClosed,I]:[I]},delete x.toBeClosed}else{let I=`merge_${n.id}_${_}_${l}`;i[I]={color:s,xIndex:l,lastxy:{x:f,y:v},pathStr:`M ${f} ${v}`},i[_].toBeClosed||(i[_].toBeClosed=[]),i[_].toBeClosed.push(I)}}for(let x=1;x<n.parents.length;x++){let I=n.parents[x],ie=l+x;Object.values(i).forEach(K=>{K.xIndex>=ie&&K.xIndex++});let q={color:c[z++%c.length],xIndex:ie,lastxy:{x:f,y:v},pathStr:`M ${f} ${v}`};if(!i[I])i[I]=q;else{let K=`merge_${n.id}_${I}_${ie}`;q.color=i[I].color,i[K]=q,i[I].toBeClosed||(i[I].toBeClosed=[]),i[I].toBeClosed.push(K)}}}N()}return T.sort((n,o)=>new Date(o.date).getTime()-new Date(n.date).getTime()),T.forEach((n,o)=>{n.meta={yIndex:o}}),T.forEach(n=>{Z(n)}),ee.forEach(n=>{ye(X,n.d,n.color,er)}),{nodes:B,edges:X}},[{...m}]);return k.useEffect(()=>{G(D+pe)},[D]),V.jsx(V.Fragment,{children:V.jsxs("svg",{ref:R,height:E*T.length,width:W,style:A,children:[V.jsx("g",{id:"layer-lines",children:p}),V.jsx("g",{id:"layer-points",children:F})]})})});J.GitGraph=rr,J.GitGraphSVG=Xe,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})}));
14
+ <%s key={someKey} {...props} />`,Te,ee,wr,ee),Ye[ee+Te]=!0}}return e===E?_r(O):Er(O),O}}function xr(e,r,t){return Ve(e,r,t,!0)}function Rr(e,r,t){return Ve(e,r,t,!1)}var Tr=Rr,Cr=xr;ae.Fragment=E,ae.jsx=Tr,ae.jsxs=Cr})()),ae}var Se;function He(){return Se||(Se=1,process.env.NODE_ENV==="production"?fe.exports=Ne():fe.exports=Ke()),fe.exports}var V=He();const Oe=50,Je=5,Xe=["#3a86ff","#8338ec","#ff006e","#fb5607","#ffbe0b"],ze=({commits:m,rowHeight:T,colorPalette:_,laneWidth:E,renderNode:w,renderEdge:k})=>{const M=E||Oe,L=T||Oe,g=A.useMemo(()=>(_||Xe).map((s,y)=>({color:s,branch:null,lane:y+1,index:y})),[_,m]);function B(){var s=g.findIndex(j=>!j.branch);if(s>-1)return g[s];var y={color:"#"+Math.floor(Math.random()*16777215).toString(16),branch:null,lane:g.length+1,index:s};return g.push(y),y}const x=A.useMemo(()=>{var s=[];const y=new Map;return m.forEach((j,D)=>{var h={...j,color:"",lane:0,cx:0,cy:0,prev:[],index:D},G=g.find($=>$.branch==j.id);G?g.forEach($=>{$.branch===j.id&&$.index!==G?.index&&($.branch=null)}):G=B();for(const $ of j.parents)if(g.find(d=>d.branch===$))G.branch=$;else if(G.branch==j.id)G.branch=$;else{var z=g.find(d=>!d.branch);z||(z=B()),z.branch=$}h.color=G.color,h.lane=G.lane,h.cx=h.lane*M-M/2,h.cy=L*D+M/2,s.push(h),y.set(h.id,h)}),s.forEach(j=>{j.parents.forEach(D=>{const h=y.get(D);h&&h.prev.push(j)})}),s},[m,L,M]);function P(s,y){return`M ${s.cx} ${s.cy} L ${y.cx} ${y.cy}`}const U=A.useMemo(()=>Math.max(...x.map(s=>s.lane),0),[x]),X=A.useMemo(()=>U*M+100,[U,M]);return V.jsxs("svg",{width:X,height:L*x.length,children:[x.flatMap(s=>s.prev.map((y,j)=>{if(k)return k(s,y,x,j);const D=P(s,y);return V.jsx("path",{d:D,fill:"none",stroke:s.lane<=y.lane?y.color:s.color,strokeWidth:2},`${s.id}-${y.id}_${j}`)})),x.map((s,y)=>w?w(s,y):V.jsx("circle",{cx:s.cx,cy:s.cy,r:Je,fill:s.color},`${s.id}_${y}`))]})},ce={getCurveTop(m,T,_,E){const w=Math.min(15,Math.abs(E-T)/2);let k=` C ${m} ${T+w}, ${_} ${T+w}, ${_} ${T+w*2}`;return T+w*2<E&&(k+=` L ${_} ${E}`),k},getCurveBottom(m,T,_,E){const w=Math.min(15,Math.abs(E-T)/2);let k="";return E-w*2>T&&(k+=` L ${m} ${E-w*2}`),k+=` C ${m} ${E-w}, ${_} ${E-w}, ${_} ${E}`,k},drawFinalPath(m,T,_=2,E,w){return V.jsx("path",{d:m,stroke:T,strokeWidth:_,fill:"none"},`${E.id}-${w.id}`)},drawPoint(m,T,_,E){return V.jsx("circle",{cx:m,cy:T,r:5,fill:_,stroke:"none"},E.id)}},qe=["#3a86ff","#8338ec","#ff006e","#fb5607","#ffbe0b","#3affbd","#adec38","#ff009d","#fb7507","#0b38ff"],Ze=35,Qe=35,me=25,Pe=25,er=2,rr=A.forwardRef((m,T)=>{const{commits:_,colorPalette:E,rowHeight:w,laneWidth:k,style:M,renderNode:L,renderEdge:g,getMergeCurve:B,getBranchSplitCurve:x,padding:P}=m,[U,X]=A.useState(0);let s=0;const y=E||qe,j=w||Ze,D=k||Qe,h=typeof P=="number"?{left:P,right:P,bottom:P,top:P}:P||{left:me,right:me,bottom:Pe,top:Pe},{nodes:G,edges:z}=A.useMemo(()=>{const $=[],oe=[];let d={},ie=[],se=0;function be(n,i,l,o){return s=Math.max(s,l,n),B?B(n,i,l,o):ce.getCurveTop(n,i,l,o)}function de(n,i,l,o){return s=Math.max(s,l,n),x?x(n,i,l,o):ce.getCurveBottom(n,i,l,o)}function ve(n,i,l,o,u){if(g){let f=g(o,u,i,l);n.push(f)}else{let f=ce.drawFinalPath(i,l,er,o,u);n.push(f)}}function N(n,i,l,o,u){if(s=Math.max(s,i),L){let f=L(i,l,o,u);n.push(f)}else{let f=ce.drawPoint(i,l,o,u);n.push(f)}}function H(){const n=Object.values(d),i=new Set(n.map(o=>o.xIndex));let l=0;for(;i.has(l);)l++;return{color:y[se++%y.length],xIndex:l}}function q(){const n=Object.keys(d),i=new Set;n.filter(o=>o.startsWith("merge_")).forEach(o=>{i.add(d[o].xIndex)});const l=n.filter(o=>!o.startsWith("merge_")).map(o=>d[o]);l.sort((o,u)=>o.xIndex-u.xIndex);for(const o of l){let u=0;for(;i.has(u);)u++;u<o.xIndex&&(o.xIndex=u),i.add(o.xIndex)}}function he(n,i){let l=new Set,o=d[i];o&&(l.add(i),o.toBeClosed&&o.toBeClosed.forEach(u=>l.add(u))),Object.keys(d).forEach(u=>{if(l.has(u))return;const f=d[u],C=f.xIndex*D+h.left;f.lastxy.y!==n&&(f.lastxy.x!==C?f.pathStr+=be(f.lastxy.x,f.lastxy.y,C,n):f.pathStr+=` L ${C} ${n}`,f.lastxy={x:C,y:n})})}function pe(n){let i=d[n.id],l=0,o="";if(i)l=i.xIndex,o=i.color;else{let C=H();l=C.xIndex,o=C.color}const u=l*D+h.left,f=n.meta.yIndex*j+h.top;if(he(f,n.id),i&&((i.lastxy.y!==f||i.lastxy.x!==u)&&(i.pathStr+=de(i.lastxy.x,i.lastxy.y,u,f)),ie.push({d:i.pathStr,color:i.color,from:i.from,to:n}),i.toBeClosed&&i.toBeClosed.forEach(C=>{let R=d[C];R&&((R.lastxy.y!==f||R.lastxy.x!==u)&&(R.pathStr+=de(R.lastxy.x,R.lastxy.y,u,f)),ie.push({d:R.pathStr,color:R.color,from:R.from,to:n}),delete d[C])}),delete d[n.id]),N($,u,f,o,n),n.parents.length>0){let C=n.parents[0];if(!d[C])d[C]={color:o,xIndex:l,lastxy:{x:u,y:f},pathStr:`M ${u} ${f}`,from:n};else{let R=d[C];if(l<R.xIndex){let I=`merge_${n.id}_${C}_${R.xIndex}`;d[I]=R,d[C]={color:o,xIndex:l,lastxy:{x:u,y:f},pathStr:`M ${u} ${f}`,toBeClosed:R.toBeClosed?[...R.toBeClosed,I]:[I],from:n},delete R.toBeClosed}else{let I=`merge_${n.id}_${C}_${l}`;d[I]={color:o,xIndex:l,lastxy:{x:u,y:f},pathStr:`M ${u} ${f}`,from:n},d[C].toBeClosed||(d[C].toBeClosed=[]),d[C].toBeClosed.push(I)}}for(let R=1;R<n.parents.length;R++){let I=n.parents[R],Z=l+R;Object.values(d).forEach(K=>{K.xIndex>=Z&&K.xIndex++});let Q={color:y[se++%y.length],xIndex:Z,lastxy:{x:u,y:f},pathStr:`M ${u} ${f}`,from:n};if(!d[I])d[I]=Q;else{let K=`merge_${n.id}_${I}_${Z}`;Q.color=d[I].color,d[K]=Q,d[I].toBeClosed||(d[I].toBeClosed=[]),d[I].toBeClosed.push(K)}}}q()}return _.sort((n,i)=>new Date(i.date).getTime()-new Date(n.date).getTime()),_.forEach((n,i)=>{n.meta==null&&(n.meta={yIndex:i,prev:[]}),n.meta.yIndex=i,n.parents.forEach(l=>{var o=_.findIndex(f=>f.id===l);if(o>-1){var u=_[o];u.meta==null&&(u.meta={yIndex:o,prev:[]}),u.meta.prev.indexOf(n.id)<0&&u.meta.prev.push(n.id)}})}),_.forEach(n=>{pe(n)}),ie.forEach(n=>{ve(oe,n.d,n.color,n.from,n.to)}),{nodes:$,edges:oe}},[{...m}]);return A.useEffect(()=>{X(s+h.right)},[s]),V.jsx(V.Fragment,{children:V.jsxs("svg",{ref:T,height:j*_.length+h.bottom,width:U,style:M,children:[V.jsx("g",{id:"layer-lines",children:z}),V.jsx("g",{id:"layer-points",children:G})]})})});J.GitGraph=rr,J.GitGraphSVG=ze,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akshay-rajput/git-graph-svg",
3
3
  "private": false,
4
- "version": "2.0.2",
4
+ "version": "2.0.4",
5
5
  "main": "dist/git-repo-graph.umd.js",
6
6
  "module": "dist/git-repo-graph.es.js",
7
7
  "types": "dist/index.d.ts",