@jaeungkim/gantt-chart 0.2.3 → 0.2.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.
- package/README.md +101 -118
- package/dist/index.cjs.js +14 -11
- package/dist/index.css +126 -1
- package/dist/index.es.js +2844 -1508
- package/dist/readmeImg.png +0 -0
- package/package.json +2 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("react"),xt=require("react-dom");function bt(s){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(c,t,r.get?r:{enumerable:!0,get:()=>s[t]})}}return c.default=s,Object.freeze(c)}const Se=bt(ee);function ie(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Me={exports:{}},be={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ge;function Dt(){if(Ge)return be;Ge=1;var s=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function t(r,n,e){var a=null;if(e!==void 0&&(a=""+e),n.key!==void 0&&(a=""+n.key),"key"in n){e={};for(var i in n)i!=="key"&&(e[i]=n[i])}else e=n;return n=e.ref,{$$typeof:s,type:r,key:a,ref:n!==void 0?n:null,props:e}}return be.Fragment=c,be.jsx=t,be.jsxs=t,be}var De={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,18 +14,21 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
at`)?" (<anonymous>)":-1<
|
|
19
|
-
`+
|
|
20
|
-
`),
|
|
21
|
-
`);for(
|
|
22
|
-
`+
|
|
17
|
+
*/var Xe;function wt(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){function s(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===k?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case j:return"Fragment";case N:return"Portal";case D:return"Profiler";case E:return"StrictMode";case Y:return"Suspense";case V:return"SuspenseList"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case m:return(o.displayName||"Context")+".Provider";case l:return(o._context.displayName||"Context")+".Consumer";case C:var _=o.render;return o=o.displayName,o||(o=_.displayName||_.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case F:return _=o.displayName||null,_!==null?_:s(o.type)||"Memo";case O:_=o._payload,o=o._init;try{return s(o(_))}catch{}}return null}function c(o){return""+o}function t(o){try{c(o);var _=!1}catch{_=!0}if(_){_=console;var z=_.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return z.call(_,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),c(o)}}function r(){}function n(){if(J===0){re=console.log,ce=console.info,ae=console.warn,me=console.error,ue=console.group,te=console.groupCollapsed,oe=console.groupEnd;var o={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}J++}function e(){if(J--,J===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},o,{value:re}),info:U({},o,{value:ce}),warn:U({},o,{value:ae}),error:U({},o,{value:me}),group:U({},o,{value:ue}),groupCollapsed:U({},o,{value:te}),groupEnd:U({},o,{value:oe})})}0>J&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function a(o){if(le===void 0)try{throw Error()}catch(z){var _=z.stack.trim().match(/\n( *(at )?)/);le=_&&_[1]||"",ge=-1<z.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<z.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+le+o+ge}function i(o,_){if(!o||qe)return"";var z=Ne.get(o);if(z!==void 0)return z;qe=!0,z=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var B=null;B=A.H,A.H=null,n();try{var ne={DetermineComponentFrameRoot:function(){try{if(_){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(fe){var we=fe}Reflect.construct(o,[],pe)}else{try{pe.call()}catch(fe){we=fe}o.call(pe.prototype)}}else{try{throw Error()}catch(fe){we=fe}(pe=o())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(fe){if(fe&&we&&typeof fe.stack=="string")return[fe.stack,we.stack]}return[null,null]}};ne.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var X=Object.getOwnPropertyDescriptor(ne.DetermineComponentFrameRoot,"name");X&&X.configurable&&Object.defineProperty(ne.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var H=ne.DetermineComponentFrameRoot(),de=H[0],$e=H[1];if(de&&$e){var se=de.split(`
|
|
20
|
+
`),ve=$e.split(`
|
|
21
|
+
`);for(H=X=0;X<se.length&&!se[X].includes("DetermineComponentFrameRoot");)X++;for(;H<ve.length&&!ve[H].includes("DetermineComponentFrameRoot");)H++;if(X===se.length||H===ve.length)for(X=se.length-1,H=ve.length-1;1<=X&&0<=H&&se[X]!==ve[H];)H--;for(;1<=X&&0<=H;X--,H--)if(se[X]!==ve[H]){if(X!==1||H!==1)do if(X--,H--,0>H||se[X]!==ve[H]){var xe=`
|
|
22
|
+
`+se[X].replace(" at new "," at ");return o.displayName&&xe.includes("<anonymous>")&&(xe=xe.replace("<anonymous>",o.displayName)),typeof o=="function"&&Ne.set(o,xe),xe}while(1<=X&&0<=H);break}}}finally{qe=!1,A.H=B,e(),Error.prepareStackTrace=z}return se=(se=o?o.displayName||o.name:"")?a(se):"",typeof o=="function"&&Ne.set(o,se),se}function d(o){if(o==null)return"";if(typeof o=="function"){var _=o.prototype;return i(o,!(!_||!_.isReactComponent))}if(typeof o=="string")return a(o);switch(o){case Y:return a("Suspense");case V:return a("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case C:return o=i(o.render,!1),o;case F:return d(o.type);case O:_=o._payload,o=o._init;try{return d(o(_))}catch{}}return""}function h(){var o=A.A;return o===null?null:o.getOwner()}function v(o){if(q.call(o,"key")){var _=Object.getOwnPropertyDescriptor(o,"key").get;if(_&&_.isReactWarning)return!1}return o.key!==void 0}function p(o,_){function z(){Ue||(Ue=!0,console.error("%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://react.dev/link/special-props)",_))}z.isReactWarning=!0,Object.defineProperty(o,"key",{get:z,configurable:!0})}function f(){var o=s(this.type);return Ye[o]||(Ye[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function g(o,_,z,B,ne,X){return z=X.ref,o={$$typeof:L,type:o,key:_,props:X,_owner:ne},(z!==void 0?z:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:f}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function $(o,_,z,B,ne,X){if(typeof o=="string"||typeof o=="function"||o===j||o===D||o===E||o===Y||o===V||o===I||typeof o=="object"&&o!==null&&(o.$$typeof===O||o.$$typeof===F||o.$$typeof===m||o.$$typeof===l||o.$$typeof===C||o.$$typeof===G||o.getModuleId!==void 0)){var H=_.children;if(H!==void 0)if(B)if(Z(H)){for(B=0;B<H.length;B++)u(H[B],o);Object.freeze&&Object.freeze(H)}else console.error("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 u(H,o)}else H="",(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(H+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),o===null?B="null":Z(o)?B="array":o!==void 0&&o.$$typeof===L?(B="<"+(s(o.type)||"Unknown")+" />",H=" Did you accidentally export a JSX literal instead of a component?"):B=typeof o,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,H);if(q.call(_,"key")){H=s(o);var de=Object.keys(_).filter(function(se){return se!=="key"});B=0<de.length?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}",Be[H+B]||(de=0<de.length?"{"+de.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
23
|
let props = %s;
|
|
24
24
|
<%s {...props} />
|
|
25
25
|
React keys must be passed directly to JSX without using spread:
|
|
26
26
|
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,
|
|
27
|
+
<%s key={someKey} {...props} />`,B,H,de,H),Be[H+B]=!0)}if(H=null,z!==void 0&&(t(z),H=""+z),v(_)&&(t(_.key),H=""+_.key),"key"in _){z={};for(var $e in _)$e!=="key"&&(z[$e]=_[$e])}else z=_;return H&&p(z,typeof o=="function"?o.displayName||o.name||"Unknown":o),g(o,H,X,ne,h(),z)}function u(o,_){if(typeof o=="object"&&o&&o.$$typeof!==St){if(Z(o))for(var z=0;z<o.length;z++){var B=o[z];w(B)&&T(B,_)}else if(w(o))o._store&&(o._store.validated=1);else if(o===null||typeof o!="object"?z=null:(z=P&&o[P]||o["@@iterator"],z=typeof z=="function"?z:null),typeof z=="function"&&z!==o.entries&&(z=z.call(o),z!==o))for(;!(o=z.next()).done;)w(o.value)&&T(o.value,_)}}function w(o){return typeof o=="object"&&o!==null&&o.$$typeof===L}function T(o,_){if(o._store&&!o._store.validated&&o.key==null&&(o._store.validated=1,_=R(_),!Ve[_])){Ve[_]=!0;var z="";o&&o._owner!=null&&o._owner!==h()&&(z=null,typeof o._owner.tag=="number"?z=s(o._owner.type):typeof o._owner.name=="string"&&(z=o._owner.name),z=" It was passed a child from "+z+".");var B=A.getCurrentStack;A.getCurrentStack=function(){var ne=d(o.type);return B&&(ne+=B()||""),ne},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',_,z),A.getCurrentStack=B}}function R(o){var _="",z=h();return z&&(z=s(z.type))&&(_=`
|
|
28
28
|
|
|
29
|
-
Check the render method of \``+
|
|
29
|
+
Check the render method of \``+z+"`."),_||(o=s(o))&&(_=`
|
|
30
30
|
|
|
31
|
-
Check the top-level render call using <`+t+">."),b}var M=C,Z=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),d=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),T=Symbol.iterator,x=Symbol.for("react.client.reference"),R=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,A=Object.assign,H=Symbol.for("react.client.reference"),Y=Array.isArray,B=0,J,se,re,ce,ae,X,te;o.__reactDisabledLog=!0;var oe,le,Le=!1,je=new(typeof WeakMap=="function"?WeakMap:Map),ot=Symbol.for("react.client.reference"),Ze,Pe={},_e={},Ce={};ge.Fragment=E,ge.jsx=function(t,b,w,W,V){return h(t,b,w,!1,W,V)},ge.jsxs=function(t,b,w,W,V){return h(t,b,w,!0,W,V)}}()),ge}var Ne;function dt(){return Ne||(Ne=1,process.env.NODE_ENV==="production"?De.exports=ut():De.exports=ct()),De.exports}var q=dt();const at=2.375*16,Ue=3,K={day:{labelUnit:"day",tickUnit:"hour",unitPerTick:1,dragStepUnit:"minute",dragStepAmount:15,basePxPerDragStep:16,formatTickLabel:n=>n.format("h A"),formatHeaderLabel:n=>n.format("MMM D")},week:{labelUnit:"week",tickUnit:"day",unitPerTick:1,dragStepUnit:"hour",dragStepAmount:6,basePxPerDragStep:32,formatTickLabel:n=>n.format("D"),formatHeaderLabel:n=>n.format("MMM")},month:{labelUnit:"month",tickUnit:"day",unitPerTick:1,dragStepUnit:"day",dragStepAmount:1,basePxPerDragStep:64,formatTickLabel:n=>n.format("D"),formatHeaderLabel:n=>n.format("MMM YYYY")},year:{labelUnit:"year",tickUnit:"day",unitPerTick:7,dragStepUnit:"day",dragStepAmount:1,basePxPerDragStep:16,formatTickLabel:n=>n.format("D"),formatHeaderLabel:n=>n.format("YYYY")}};var Se={exports:{}},lt=Se.exports,He;function ft(){return He||(He=1,function(n,s){(function(r,o){n.exports=o()})(lt,function(){var r=1e3,o=6e4,i=36e5,e="millisecond",l="second",u="minute",p="hour",m="day",g="week",a="month",c="quarter",y="year",h="date",f="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,j={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var D=["th","st","nd","rd"],v=O%100;return"["+O+(D[(v-20)%10]||D[v]||D[0])+"]"}},M=function(O,D,v){var T=String(O);return!T||T.length>=D?O:""+Array(D+1-T.length).join(v)+O},Z={s:M,z:function(O){var D=-O.utcOffset(),v=Math.abs(D),T=Math.floor(v/60),x=v%60;return(D<=0?"+":"-")+M(T,2,"0")+":"+M(x,2,"0")},m:function O(D,v){if(D.date()<v.date())return-O(v,D);var T=12*(v.year()-D.year())+(v.month()-D.month()),x=D.clone().add(T,a),R=v-x<0,F=D.clone().add(T+(R?-1:1),a);return+(-(T+(v-x)/(R?x-F:F-x))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:a,y,w:g,d:m,D:h,h:p,m:u,s:l,ms:e,Q:c}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},L="en",E={};E[L]=j;var _="$isDayjsObject",N=function(O){return O instanceof G||!(!O||!O[_])},$=function O(D,v,T){var x;if(!D)return L;if(typeof D=="string"){var R=D.toLowerCase();E[R]&&(x=R),v&&(E[R]=v,x=R);var F=D.split("-");if(!x&&F.length>1)return O(F[0])}else{var A=D.name;E[A]=D,x=A}return!T&&x&&(L=x),x||!T&&L},d=function(O,D){if(N(O))return O.clone();var v=typeof D=="object"?D:{};return v.date=O,v.args=arguments,new G(v)},I=Z;I.l=$,I.i=N,I.w=function(O,D){return d(O,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var G=function(){function O(v){this.$L=$(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[_]=!0}var D=O.prototype;return D.parse=function(v){this.$d=function(T){var x=T.date,R=T.utc;if(x===null)return new Date(NaN);if(I.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var F=x.match(S);if(F){var A=F[2]-1||0,H=(F[7]||"0").substring(0,3);return R?new Date(Date.UTC(F[1],A,F[3]||1,F[4]||0,F[5]||0,F[6]||0,H)):new Date(F[1],A,F[3]||1,F[4]||0,F[5]||0,F[6]||0,H)}}return new Date(x)}(v),this.init()},D.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},D.$utils=function(){return I},D.isValid=function(){return this.$d.toString()!==f},D.isSame=function(v,T){var x=d(v);return this.startOf(T)<=x&&x<=this.endOf(T)},D.isAfter=function(v,T){return d(v)<this.startOf(T)},D.isBefore=function(v,T){return this.endOf(T)<d(v)},D.$g=function(v,T,x){return I.u(v)?this[T]:this.set(x,v)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(v,T){var x=this,R=!!I.u(T)||T,F=I.p(v),A=function(ae,X){var te=I.w(x.$u?Date.UTC(x.$y,X,ae):new Date(x.$y,X,ae),x);return R?te:te.endOf(m)},H=function(ae,X){return I.w(x.toDate()[ae].apply(x.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(X)),x)},Y=this.$W,B=this.$M,J=this.$D,se="set"+(this.$u?"UTC":"");switch(F){case y:return R?A(1,0):A(31,11);case a:return R?A(1,B):A(0,B+1);case g:var re=this.$locale().weekStart||0,ce=(Y<re?Y+7:Y)-re;return A(R?J-ce:J+(6-ce),B);case m:case h:return H(se+"Hours",0);case p:return H(se+"Minutes",1);case u:return H(se+"Seconds",2);case l:return H(se+"Milliseconds",3);default:return this.clone()}},D.endOf=function(v){return this.startOf(v,!1)},D.$set=function(v,T){var x,R=I.p(v),F="set"+(this.$u?"UTC":""),A=(x={},x[m]=F+"Date",x[h]=F+"Date",x[a]=F+"Month",x[y]=F+"FullYear",x[p]=F+"Hours",x[u]=F+"Minutes",x[l]=F+"Seconds",x[e]=F+"Milliseconds",x)[R],H=R===m?this.$D+(T-this.$W):T;if(R===a||R===y){var Y=this.clone().set(h,1);Y.$d[A](H),Y.init(),this.$d=Y.set(h,Math.min(this.$D,Y.daysInMonth())).$d}else A&&this.$d[A](H);return this.init(),this},D.set=function(v,T){return this.clone().$set(v,T)},D.get=function(v){return this[I.p(v)]()},D.add=function(v,T){var x,R=this;v=Number(v);var F=I.p(T),A=function(B){var J=d(R);return I.w(J.date(J.date()+Math.round(B*v)),R)};if(F===a)return this.set(a,this.$M+v);if(F===y)return this.set(y,this.$y+v);if(F===m)return A(1);if(F===g)return A(7);var H=(x={},x[u]=o,x[p]=i,x[l]=r,x)[F]||1,Y=this.$d.getTime()+v*H;return I.w(Y,this)},D.subtract=function(v,T){return this.add(-1*v,T)},D.format=function(v){var T=this,x=this.$locale();if(!this.isValid())return x.invalidDate||f;var R=v||"YYYY-MM-DDTHH:mm:ssZ",F=I.z(this),A=this.$H,H=this.$m,Y=this.$M,B=x.weekdays,J=x.months,se=x.meridiem,re=function(X,te,oe,le){return X&&(X[te]||X(T,R))||oe[te].slice(0,le)},ce=function(X){return I.s(A%12||12,X,"0")},ae=se||function(X,te,oe){var le=X<12?"AM":"PM";return oe?le.toLowerCase():le};return R.replace(k,function(X,te){return te||function(oe){switch(oe){case"YY":return String(T.$y).slice(-2);case"YYYY":return I.s(T.$y,4,"0");case"M":return Y+1;case"MM":return I.s(Y+1,2,"0");case"MMM":return re(x.monthsShort,Y,J,3);case"MMMM":return re(J,Y);case"D":return T.$D;case"DD":return I.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return re(x.weekdaysMin,T.$W,B,2);case"ddd":return re(x.weekdaysShort,T.$W,B,3);case"dddd":return B[T.$W];case"H":return String(A);case"HH":return I.s(A,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return ae(A,H,!0);case"A":return ae(A,H,!1);case"m":return String(H);case"mm":return I.s(H,2,"0");case"s":return String(T.$s);case"ss":return I.s(T.$s,2,"0");case"SSS":return I.s(T.$ms,3,"0");case"Z":return F}return null}(X)||F.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(v,T,x){var R,F=this,A=I.p(T),H=d(v),Y=(H.utcOffset()-this.utcOffset())*o,B=this-H,J=function(){return I.m(F,H)};switch(A){case y:R=J()/12;break;case a:R=J();break;case c:R=J()/3;break;case g:R=(B-Y)/6048e5;break;case m:R=(B-Y)/864e5;break;case p:R=B/i;break;case u:R=B/o;break;case l:R=B/r;break;default:R=B}return x?R:I.a(R)},D.daysInMonth=function(){return this.endOf(a).$D},D.$locale=function(){return E[this.$L]},D.locale=function(v,T){if(!v)return this.$L;var x=this.clone(),R=$(v,T,!0);return R&&(x.$L=R),x},D.clone=function(){return I.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},O}(),ee=G.prototype;return d.prototype=ee,[["$ms",e],["$s",l],["$m",u],["$H",p],["$W",m],["$M",a],["$y",y],["$D",h]].forEach(function(O){ee[O[1]]=function(D){return this.$g(D,O[0],O[1])}}),d.extend=function(O,D){return O.$i||(O(D,G,d),O.$i=!0),d},d.locale=$,d.isDayjs=N,d.unix=function(O){return d(1e3*O)},d.en=E[L],d.Ls=E,d.p={},d})}(Se)),Se.exports}var pt=ft();const U=ne(pt);function ht(n,s,r,o){if(!r.length)return{barMarginLeftAmount:0,barWidthSize:0};const{tickUnit:i,unitPerTick:e}=K[o],l=r.reduce((f,S)=>f+S.widthPx,0),u=r[0].startDate,p=r[r.length-1].startDate,m=U(p).add(e,i).diff(u),g=l/m,a=n.diff(u),c=s.diff(u),y=a*g,h=Math.max(c-a,1)*g;return{barMarginLeftAmount:y,barWidthSize:h}}function mt(n){let s=1/0,r=-1/0;for(const{startDate:o,endDate:i}of Object.values(n)){const e=U(o).valueOf(),l=U(i).valueOf();Number.isNaN(e)||(s=Math.min(s,e)),Number.isNaN(l)||(r=Math.max(r,l))}return{minDate:U(s),maxDate:U(r)}}function $t(n,s,r){const{tickUnit:o,unitPerTick:i}=K[r];return{paddedMinDate:n.subtract(Ue*i,o),paddedMaxDate:s.add(Ue*i,o)}}function gt(n,s,r){const{tickUnit:o,unitPerTick:i,basePxPerDragStep:e,dragStepUnit:l,dragStepAmount:u}=K[r],p=[];let m=n.startOf(o);for(;m.isBefore(s);){const g=U(m).add(i,o).diff(m,l)/u;p.push({startDate:m,widthPx:g*e}),m=m.add(i,o)}return p}function st(n,s){const{labelUnit:r,formatHeaderLabel:o}=K[s],i=[];let e=null,l="",u=0,p=null;return n.forEach((m,g)=>{const a=m.startDate.startOf(r),c=a.valueOf(),y=(o==null?void 0:o(a))??a.format();c===e?u+=m.widthPx:(e!==null&&i.push({label:l,widthPx:u,startDate:p}),e=c,l=y,u=m.widthPx,p=a),g===n.length-1&&i.push({label:l,widthPx:u,startDate:p})}),i}function vt(n,s,r,o,i,e){const{minDate:l,maxDate:u}=mt(n);r(l),o(u);const{paddedMinDate:p,paddedMaxDate:m}=$t(l,u,s),g=gt(p,m,s),a=st(g,s);i(g),e(a)}const yt=({bottomRowCells:n,selectedScale:s,scrollRef:r})=>{var g;const o=K[s],[i,e]=C.useState(0),l=C.useMemo(()=>st(n,s),[n,s]),u=C.useMemo(()=>{const a=[];for(const c of l){const y=a[a.length-1];y&&y.label===c.label?y.widthPx+=c.widthPx:a.push({...c})}return a},[l]),p=C.useMemo(()=>{let a=0;return u.map(c=>{const y={...c,left:a};return a+=c.widthPx,y})},[u]);C.useEffect(()=>{const a=r.current;if(!a)return;const c=()=>{const y=a.scrollLeft;for(let h=p.length-1;h>=0;h--)if(y>=p[h].left){e(h);break}};return a.addEventListener("scroll",c),c(),()=>a.removeEventListener("scroll",c)},[p]);const m=((g=p[i])==null?void 0:g.label)??"";return q.jsx("div",{style:{position:"sticky",top:0,zIndex:30,backgroundColor:"#F0F1F2"},children:q.jsxs("div",{style:{display:"flex",minWidth:"max-content",flexDirection:"column"},children:[q.jsxs("div",{style:{position:"relative",display:"flex",height:"32px"},children:[q.jsx("div",{style:{position:"sticky",left:0,zIndex:40,display:"flex",width:"96px",flexShrink:0,alignItems:"center",justifyContent:"center",backgroundColor:"#F0F1F2",fontSize:"0.875rem",fontWeight:"bold"},children:m}),q.jsx("div",{style:{display:"flex"},children:p.map((a,c)=>q.jsx("div",{style:{padding:"8px 16px",fontSize:"0.875rem",fontWeight:"bold",textAlign:"left",width:`${a.widthPx}px`,backgroundColor:"#F0F1F2"},children:q.jsx("p",{style:{margin:0,padding:"0 16px"},children:c===0?"":a.label})},c))})]}),q.jsx("div",{style:{borderTop:"1px solid #D6D6D8",display:"flex"},children:n.map((a,c)=>{var h;const y=((h=o.formatTickLabel)==null?void 0:h.call(o,a.startDate))||"";return q.jsx("div",{style:{position:"relative",padding:"4px",textAlign:"center",fontSize:"0.75rem",width:`${a.widthPx}px`},children:y},c)})})]})})};var xe={exports:{}},Dt=xe.exports,ze;function St(){return ze||(ze=1,function(n,s){(function(r,o){n.exports=o()})(Dt,function(){return function(r,o,i){o.prototype.isBetween=function(e,l,u,p){var m=i(e),g=i(l),a=(p=p||"()")[0]==="(",c=p[1]===")";return(a?this.isAfter(m,u):!this.isBefore(m,u))&&(c?this.isBefore(g,u):!this.isAfter(g,u))||(a?this.isBefore(m,u):!this.isAfter(m,u))&&(c?this.isAfter(g,u):!this.isBefore(g,u))}}})}(xe)),xe.exports}var xt=St();const bt=ne(xt);var be={exports:{}},wt=be.exports,Ye;function Tt(){return Ye||(Ye=1,function(n,s){(function(r,o){n.exports=o()})(wt,function(){var r="day";return function(o,i,e){var l=function(m){return m.add(4-m.isoWeekday(),r)},u=i.prototype;u.isoWeekYear=function(){return l(this).year()},u.isoWeek=function(m){if(!this.$utils().u(m))return this.add(7*(m-this.isoWeek()),r);var g,a,c,y,h=l(this),f=(g=this.isoWeekYear(),a=this.$u,c=(a?e.utc:e)().year(g).startOf("year"),y=4-c.isoWeekday(),c.isoWeekday()>4&&(y+=7),c.add(y,r));return h.diff(f,"week")+1},u.isoWeekday=function(m){return this.$utils().u(m)?this.day()||7:this.day(this.day()%7?m:m-7)};var p=u.startOf;u.startOf=function(m,g){var a=this.$utils(),c=!!a.u(g)||g;return a.p(m)==="isoweek"?c?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):p.bind(this)(m,g)}}})}(be)),be.exports}var Et=Tt();const kt=ne(Et);var we={exports:{}},Mt=we.exports,Be;function Ot(){return Be||(Be=1,function(n,s){(function(r,o){n.exports=o()})(Mt,function(){return function(r,o){o.prototype.isSameOrAfter=function(i,e){return this.isSame(i,e)||this.isAfter(i,e)}}})}(we)),we.exports}var It=Ot();const Rt=ne(It);var Te={exports:{}},Lt=Te.exports,Ge;function jt(){return Ge||(Ge=1,function(n,s){(function(r,o){n.exports=o()})(Lt,function(){return function(r,o){o.prototype.isSameOrBefore=function(i,e){return this.isSame(i,e)||this.isBefore(i,e)}}})}(Te)),Te.exports}var Ft=jt();const Zt=ne(Ft);var Ee={exports:{}},Pt=Ee.exports,Xe;function _t(){return Xe||(Xe=1,function(n,s){(function(r,o){n.exports=o()})(Pt,function(){return function(r,o,i){o.prototype.isToday=function(){var e="YYYY-MM-DD",l=i();return this.format(e)===l.format(e)}}})}(Ee)),Ee.exports}var Ct=_t();const At=ne(Ct);var ke={exports:{}},qt=ke.exports,Ve;function Wt(){return Ve||(Ve=1,function(n,s){(function(r,o){n.exports=o()})(qt,function(){return function(r,o,i){var e=o.prototype,l=function(a){return a&&(a.indexOf?a:a.s)},u=function(a,c,y,h,f){var S=a.name?a:a.$locale(),k=l(S[c]),j=l(S[y]),M=k||j.map(function(L){return L.slice(0,h)});if(!f)return M;var Z=S.weekStart;return M.map(function(L,E){return M[(E+(Z||0))%7]})},p=function(){return i.Ls[i.locale()]},m=function(a,c){return a.formats[c]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,f,S){return f||S.slice(1)})}(a.formats[c.toUpperCase()])},g=function(){var a=this;return{months:function(c){return c?c.format("MMMM"):u(a,"months")},monthsShort:function(c){return c?c.format("MMM"):u(a,"monthsShort","months",3)},firstDayOfWeek:function(){return a.$locale().weekStart||0},weekdays:function(c){return c?c.format("dddd"):u(a,"weekdays")},weekdaysMin:function(c){return c?c.format("dd"):u(a,"weekdaysMin","weekdays",2)},weekdaysShort:function(c){return c?c.format("ddd"):u(a,"weekdaysShort","weekdays",3)},longDateFormat:function(c){return m(a.$locale(),c)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};e.localeData=function(){return g.bind(this)()},i.localeData=function(){var a=p();return{firstDayOfWeek:function(){return a.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(c){return m(a,c)},meridiem:a.meridiem,ordinal:a.ordinal}},i.months=function(){return u(p(),"months")},i.monthsShort=function(){return u(p(),"monthsShort","months",3)},i.weekdays=function(a){return u(p(),"weekdays",null,null,a)},i.weekdaysShort=function(a){return u(p(),"weekdaysShort","weekdays",3,a)},i.weekdaysMin=function(a){return u(p(),"weekdaysMin","weekdays",2,a)}}})}(ke)),ke.exports}var Nt=Wt();const Ut=ne(Nt);var Me={exports:{}},Ht=Me.exports,Je;function zt(){return Je||(Je=1,function(n,s){(function(r,o){n.exports=o()})(Ht,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(i,e,l){var u,p=function(c,y,h){h===void 0&&(h={});var f=new Date(c),S=function(k,j){j===void 0&&(j={});var M=j.timeZoneName||"short",Z=k+"|"+M,L=o[Z];return L||(L=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:k,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),o[Z]=L),L}(y,h);return S.formatToParts(f)},m=function(c,y){for(var h=p(c,y),f=[],S=0;S<h.length;S+=1){var k=h[S],j=k.type,M=k.value,Z=r[j];Z>=0&&(f[Z]=parseInt(M,10))}var L=f[3],E=L===24?0:L,_=f[0]+"-"+f[1]+"-"+f[2]+" "+E+":"+f[4]+":"+f[5]+":000",N=+c;return(l.utc(_).valueOf()-(N-=N%1e3))/6e4},g=e.prototype;g.tz=function(c,y){c===void 0&&(c=u);var h,f=this.utcOffset(),S=this.toDate(),k=S.toLocaleString("en-US",{timeZone:c}),j=Math.round((S-new Date(k))/1e3/60),M=15*-Math.round(S.getTimezoneOffset()/15)-j;if(!Number(M))h=this.utcOffset(0,y);else if(h=l(k,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(M,!0),y){var Z=h.utcOffset();h=h.add(f-Z,"minute")}return h.$x.$timezone=c,h},g.offsetName=function(c){var y=this.$x.$timezone||l.tz.guess(),h=p(this.valueOf(),y,{timeZoneName:c}).find(function(f){return f.type.toLowerCase()==="timezonename"});return h&&h.value};var a=g.startOf;g.startOf=function(c,y){if(!this.$x||!this.$x.$timezone)return a.call(this,c,y);var h=l(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(h,c,y).tz(this.$x.$timezone,!0)},l.tz=function(c,y,h){var f=h&&y,S=h||y||u,k=m(+l(),S);if(typeof c!="string")return l(c).tz(S);var j=function(E,_,N){var $=E-60*_*1e3,d=m($,N);if(_===d)return[$,_];var I=m($-=60*(d-_)*1e3,N);return d===I?[$,d]:[E-60*Math.min(d,I)*1e3,Math.max(d,I)]}(l.utc(c,f).valueOf(),k,S),M=j[0],Z=j[1],L=l(M).utcOffset(Z);return L.$x.$timezone=S,L},l.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},l.tz.setDefault=function(c){u=c}}})}(Me)),Me.exports}var Yt=zt();const Bt=ne(Yt);var Oe={exports:{}},Gt=Oe.exports,Qe;function Xt(){return Qe||(Qe=1,function(n,s){(function(r,o){n.exports=o()})(Gt,function(){return function(r,o,i){i.updateLocale=function(e,l){var u=i.Ls[e];if(u)return(l?Object.keys(l):[]).forEach(function(p){u[p]=l[p]}),u}}})}(Oe)),Oe.exports}var Vt=Xt();const Jt=ne(Vt);var Ie={exports:{}},Qt=Ie.exports,Ke;function Kt(){return Ke||(Ke=1,function(n,s){(function(r,o){n.exports=o()})(Qt,function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(e,l,u){var p=l.prototype;u.utc=function(f){var S={date:f,utc:!0,args:arguments};return new l(S)},p.utc=function(f){var S=u(this.toDate(),{locale:this.$L,utc:!0});return f?S.add(this.utcOffset(),r):S},p.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var m=p.parse;p.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),m.call(this,f)};var g=p.init;p.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else g.call(this)};var a=p.utcOffset;p.utcOffset=function(f,S){var k=this.$utils().u;if(k(f))return this.$u?0:k(this.$offset)?a.call(this):this.$offset;if(typeof f=="string"&&(f=function(L){L===void 0&&(L="");var E=L.match(o);if(!E)return null;var _=(""+E[0]).match(i)||["-",0,0],N=_[0],$=60*+_[1]+ +_[2];return $===0?0:N==="+"?$:-$}(f),f===null))return this;var j=Math.abs(f)<=16?60*f:f,M=this;if(S)return M.$offset=j,M.$u=f===0,M;if(f!==0){var Z=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(M=this.local().add(j+Z,r)).$offset=j,M.$x.$localOffset=Z}else M=this.utc();return M};var c=p.format;p.format=function(f){var S=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,S)},p.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var y=p.toDate;p.toDate=function(f){return f==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var h=p.diff;p.diff=function(f,S,k){if(f&&this.$u===f.$u)return h.call(this,f,S,k);var j=this.local(),M=u(f).local();return h.call(j,M,S,k)}}})}(Ie)),Ie.exports}var en=Kt();const tn=ne(en);var Re={exports:{}},nn=Re.exports,et;function rn(){return et||(et=1,function(n,s){(function(r,o){n.exports=o()})(nn,function(){return function(r,o){o.prototype.weekday=function(i){var e=this.$locale().weekStart||0,l=this.$W,u=(l<e?l+7:l)-e;return this.$utils().u(i)?u:this.subtract(u,"day").add(i,"day")}}})}(Re)),Re.exports}var an=rn();const sn=ne(an);U.extend(sn);U.extend(At);U.extend(tn);U.extend(Bt);U.extend(Rt);U.extend(Zt);U.extend(bt);U.extend(Ut);U.extend(Jt);U.extend(kt);function on(n){return[...n].sort((s,r)=>{const o=s.sequence.split(".").map(Number),i=r.sequence.split(".").map(Number);for(let e=0;e<Math.max(o.length,i.length);e++){const l=o[e]||0,u=i[e]||0;if(l!==u)return l-u}return 0})}function un(n){return n.split(".").length-1}function Fe(n,s,r){const o=on(n);let i=0;return o.map(e=>{i++;const l=un(e.sequence),{barMarginLeftAmount:u,barWidthSize:p}=ht(U(e.startDate),U(e.endDate),s,r);return{...e,barLeft:u,barWidth:p,depth:l,order:i,originalOrder:i}})}const tt=n=>{let s;const r=new Set,o=(m,g)=>{const a=typeof m=="function"?m(s):m;if(!Object.is(a,s)){const c=s;s=g??(typeof a!="object"||a===null)?a:Object.assign({},s,a),r.forEach(y=>y(s,c))}},i=()=>s,u={setState:o,getState:i,getInitialState:()=>p,subscribe:m=>(r.add(m),()=>r.delete(m))},p=s=n(o,i,u);return u},cn=n=>n?tt(n):tt,dn=n=>n;function ln(n,s=dn){const r=C.useSyncExternalStore(n.subscribe,()=>s(n.getState()),()=>s(n.getInitialState()));return C.useDebugValue(r),r}const nt=n=>{const s=cn(n),r=o=>ln(s,o);return Object.assign(r,s),r},fn=n=>n?nt(n):nt,ve=fn((n,s)=>({rawTasks:[],transformedTasks:[],bottomRowCells:[],topHeaderGroups:[],selectedScale:"month",minDate:U(),maxDate:U(),draggingTaskMeta:null,setSelectedScale:r=>{const{rawTasks:o,bottomRowCells:i}=s(),e=Fe(o,i,r);n({selectedScale:r,transformedTasks:e})},setRawTasks:r=>{const{bottomRowCells:o,selectedScale:i}=s(),e=Fe(r,o,i);n({rawTasks:r,transformedTasks:e})},setBottomRowCells:r=>{const{rawTasks:o,selectedScale:i}=s(),e=Fe(o,r,i);n({bottomRowCells:r,transformedTasks:e})},setTopHeaderGroups:r=>n({topHeaderGroups:r}),setMinDate:r=>n({minDate:r}),setMaxDate:r=>n({maxDate:r}),setDraggingTaskMeta:r=>n({draggingTaskMeta:r}),clearDraggingTaskMeta:()=>n({draggingTaskMeta:null})})),pn=[{id:"1",name:"Project Kickoff",startDate:"2024-06-01T09:00:00Z",endDate:"2024-06-01T11:00:00Z",parentId:null,sequence:"1",dependencies:[]},{id:"2",name:"Requirement Gathering",startDate:"2024-06-02T09:00:00Z",endDate:"2024-06-05T17:00:00Z",parentId:null,sequence:"2",dependencies:[{targetId:"1",type:"FS"}]},{id:"3",name:"Stakeholder Interviews",startDate:"2024-06-02T10:00:00Z",endDate:"2024-06-03T17:00:00Z",parentId:"2",sequence:"2.1",dependencies:[{targetId:"1",type:"SF"}]},{id:"4",name:"Market Analysis",startDate:"2024-06-06T09:00:00Z",endDate:"2024-06-07T17:00:00Z",parentId:null,sequence:"3",dependencies:[{targetId:"2",type:"FS"}]},{id:"5",name:"Design System Creation",startDate:"2024-06-08T09:00:00Z",endDate:"2024-06-12T17:00:00Z",parentId:null,sequence:"4",dependencies:[{targetId:"2",type:"FS"},{targetId:"3",type:"SS"}]},{id:"6",name:"UI/UX Design",startDate:"2024-06-13T09:00:00Z",endDate:"2024-06-16T17:00:00Z",parentId:"5",sequence:"4.1",dependencies:[{targetId:"5",type:"FS"}]},{id:"7",name:"Prototyping",startDate:"2024-06-17T09:00:00Z",endDate:"2024-06-20T17:00:00Z",parentId:"6",sequence:"4.1.1",dependencies:[{targetId:"6",type:"FS"}]},{id:"8",name:"Frontend Development",startDate:"2024-06-21T09:00:00Z",endDate:"2024-06-30T17:00:00Z",parentId:null,sequence:"5",dependencies:[{targetId:"7",type:"FS"}]},{id:"9",name:"Backend Development",startDate:"2024-07-01T09:00:00Z",endDate:"2024-07-10T17:00:00Z",parentId:null,sequence:"6",dependencies:[{targetId:"7",type:"FS"}]},{id:"10",name:"API Integration",startDate:"2024-07-11T09:00:00Z",endDate:"2024-07-15T17:00:00Z",parentId:"9",sequence:"6.1",dependencies:[{targetId:"9",type:"FS"}]},{id:"11",name:"Module Development",startDate:"2024-07-16T09:00:00Z",endDate:"2024-07-20T17:00:00Z",parentId:"8",sequence:"5.1",dependencies:[{targetId:"8",type:"FS"}]},{id:"12",name:"Unit Testing",startDate:"2024-07-21T09:00:00Z",endDate:"2024-07-25T17:00:00Z",parentId:"8",sequence:"5.2",dependencies:[{targetId:"8",type:"FS"}]},{id:"13",name:"Integration Testing",startDate:"2024-07-26T09:00:00Z",endDate:"2024-07-30T17:00:00Z",parentId:"10",sequence:"6.1.1",dependencies:[{targetId:"10",type:"FS"}]},{id:"14",name:"Code Review",startDate:"2024-07-31T09:00:00Z",endDate:"2024-08-04T17:00:00Z",parentId:"10",sequence:"6.1.2",dependencies:[{targetId:"13",type:"FS"}]},{id:"15",name:"Community Feedback",startDate:"2024-08-05T09:00:00Z",endDate:"2024-08-08T17:00:00Z",parentId:null,sequence:"7",dependencies:[{targetId:"14",type:"FS"}]},{id:"16",name:"Documentation Drafting",startDate:"2024-08-09T09:00:00Z",endDate:"2024-08-12T17:00:00Z",parentId:null,sequence:"8",dependencies:[{targetId:"14",type:"FS"}]},{id:"17",name:"Documentation Finalization",startDate:"2024-08-13T09:00:00Z",endDate:"2024-08-16T17:00:00Z",parentId:"16",sequence:"8.1",dependencies:[{targetId:"16",type:"FS"}]},{id:"18",name:"Pre-release Demo",startDate:"2024-08-17T09:00:00Z",endDate:"2024-08-20T17:00:00Z",parentId:null,sequence:"9",dependencies:[{targetId:"15",type:"FS"}]},{id:"19",name:"Bug Fixing",startDate:"2024-08-21T09:00:00Z",endDate:"2024-08-25T17:00:00Z",parentId:null,sequence:"10",dependencies:[{targetId:"15",type:"FS"}]},{id:"20",name:"Release Candidate",startDate:"2024-08-26T09:00:00Z",endDate:"2024-08-30T17:00:00Z",parentId:null,sequence:"11",dependencies:[{targetId:"18",type:"FS"}]},{id:"21",name:"Final Release",startDate:"2024-08-31T09:00:00Z",endDate:"2024-09-02T17:00:00Z",parentId:null,sequence:"12",dependencies:[{targetId:"20",type:"FS"}]},{id:"22",name:"Post-release Monitoring",startDate:"2024-09-03T09:00:00Z",endDate:"2024-09-04T17:00:00Z",parentId:null,sequence:"13",dependencies:[{targetId:"21",type:"FS"}]},{id:"23",name:"Community Engagement",startDate:"2024-09-05T09:00:00Z",endDate:"2024-09-06T17:00:00Z",parentId:null,sequence:"14",dependencies:[{targetId:"21",type:"FS"}]},{id:"24",name:"Feature Iteration Planning",startDate:"2024-09-07T09:00:00Z",endDate:"2024-09-08T17:00:00Z",parentId:null,sequence:"15",dependencies:[{targetId:"22",type:"FS"}]},{id:"25",name:"Additional Module Development",startDate:"2024-09-09T09:00:00Z",endDate:"2024-09-10T17:00:00Z",parentId:"24",sequence:"15.1",dependencies:[{targetId:"24",type:"FS"}]},{id:"26",name:"Additional Testing",startDate:"2024-09-11T09:00:00Z",endDate:"2024-09-12T17:00:00Z",parentId:"25",sequence:"15.1.1",dependencies:[{targetId:"25",type:"FS"}]},{id:"27",name:"Code Refactoring",startDate:"2024-09-13T09:00:00Z",endDate:"2024-09-14T17:00:00Z",parentId:null,sequence:"16",dependencies:[{targetId:"26",type:"FS"}]},{id:"28",name:"Performance Optimization",startDate:"2024-09-15T09:00:00Z",endDate:"2024-09-16T17:00:00Z",parentId:"27",sequence:"16.1",dependencies:[{targetId:"27",type:"FS"}]},{id:"29",name:"Security Audit",startDate:"2024-09-17T09:00:00Z",endDate:"2024-09-18T17:00:00Z",parentId:null,sequence:"17",dependencies:[{targetId:"28",type:"FS"}]},{id:"30",name:"Final QA",startDate:"2024-09-19T09:00:00Z",endDate:"2024-09-20T17:00:00Z",parentId:null,sequence:"18",dependencies:[{targetId:"29",type:"FS"}]},{id:"31",name:"Launch Webinar",startDate:"2024-09-21T09:00:00Z",endDate:"2024-09-22T17:00:00Z",parentId:null,sequence:"19",dependencies:[{targetId:"21",type:"SS"}]},{id:"32",name:"Marketing Campaign",startDate:"2024-09-23T09:00:00Z",endDate:"2024-09-24T17:00:00Z",parentId:null,sequence:"20",dependencies:[{targetId:"21",type:"SF"}]},{id:"33",name:"Post-release Bug Fixing",startDate:"2024-09-25T09:00:00Z",endDate:"2024-09-26T17:00:00Z",parentId:null,sequence:"21",dependencies:[{targetId:"22",type:"SS"}]},{id:"34",name:"Version 1.1 Planning",startDate:"2024-09-27T09:00:00Z",endDate:"2024-09-28T17:00:00Z",parentId:null,sequence:"22",dependencies:[{targetId:"24",type:"FS"}]},{id:"35",name:"Feature Implementation",startDate:"2024-09-29T09:00:00Z",endDate:"2024-09-30T17:00:00Z",parentId:"34",sequence:"22.1",dependencies:[{targetId:"34",type:"FS"}]},{id:"36",name:"Beta Testing",startDate:"2024-10-01T09:00:00Z",endDate:"2024-10-02T17:00:00Z",parentId:"35",sequence:"22.1.1",dependencies:[{targetId:"35",type:"FS"}]},{id:"37",name:"Community Beta Feedback",startDate:"2024-10-03T09:00:00Z",endDate:"2024-10-04T17:00:00Z",parentId:"36",sequence:"22.1.2",dependencies:[{targetId:"36",type:"FS"}]},{id:"38",name:"Final Beta Fixes",startDate:"2024-10-05T09:00:00Z",endDate:"2024-10-06T17:00:00Z",parentId:"37",sequence:"22.1.3",dependencies:[{targetId:"37",type:"FS"}]},{id:"39",name:"Documentation Update",startDate:"2024-10-07T09:00:00Z",endDate:"2024-10-08T17:00:00Z",parentId:"17",sequence:"8.1.1",dependencies:[{targetId:"17",type:"FS"}]},{id:"40",name:"Final Release Version 1.1",startDate:"2024-10-09T09:00:00Z",endDate:"2024-10-10T17:00:00Z",parentId:null,sequence:"23",dependencies:[{targetId:"38",type:"FS"}]},{id:"41",name:"Project Retrospective",startDate:"2024-10-11T09:00:00Z",endDate:"2024-10-12T17:00:00Z",parentId:null,sequence:"24",dependencies:[{targetId:"40",type:"FS"}]}],rt=n=>Ae.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n},Ae.createElement("path",{d:"M10.2 4L10.2 20L7.8 20L7.8 4L10.2 4ZM15 4L15 20L12.6 20L12.6 4L15 4ZM5.4 15.0999L5.4 7.8999L1.8 11.4999L5.4 15.0999ZM17.4 7.8999L17.4 15.0999L21 11.4999L17.4 7.8999Z"}));function he(n,s){const{basePxPerDragStep:r}=K[s];return Math.round(n/r)}function hn(n,s,r){const{rawTasks:o,selectedScale:i,setRawTasks:e,setDraggingTaskMeta:l,clearDraggingTaskMeta:u}=ve(),[p,m]=C.useState(s),g=C.useRef(s),a=C.useRef(null),c=C.useRef(s),y=C.useRef(n.startDate),h=C.useRef(n.endDate),f=j=>{a.current=j.clientX,c.current=s,y.current=n.startDate,h.current=n.endDate,m(s),g.current=s,l({taskId:n.id,type:"bar"}),document.addEventListener("mousemove",S),document.addEventListener("mouseup",k)},S=j=>{if(a.current===null)return;const M=j.clientX-a.current,L=he(M,i)*K[i].basePxPerDragStep,E=c.current+L;m(E),g.current=E},k=()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",k);const j=g.current-c.current,M=he(j,i),{dragStepUnit:Z,dragStepAmount:L}=K[i],E=o.map(_=>_.id===n.id?{..._,startDate:U(y.current).add(M*L,Z).toISOString(),endDate:U(h.current).add(M*L,Z).toISOString()}:_);e(E),r==null||r(E),u(),a.current=null};return{onDragStart:f,tempLeft:p}}function mn(n,s,r,o){const{rawTasks:i,selectedScale:e,setRawTasks:l,setDraggingTaskMeta:u,clearDraggingTaskMeta:p}=ve(),[m,g]=C.useState(s),[a,c]=C.useState(r),y=C.useRef(s),h=C.useRef(r),f=C.useRef(null),S=C.useRef(s),k=C.useRef(r),j=C.useRef(n.startDate),M=E=>{E.stopPropagation(),f.current=E.clientX,S.current=s,k.current=r,j.current=n.startDate,g(s),c(r),y.current=s,h.current=r,u({taskId:n.id,type:"left"}),document.addEventListener("mousemove",Z),document.addEventListener("mouseup",L)},Z=E=>{if(f.current==null)return;const _=E.clientX-f.current,$=he(_,e)*K[e].basePxPerDragStep,d=S.current+$,I=k.current-$;I<1||(g(d),c(I),y.current=d,h.current=I)},L=()=>{document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",L);const E=y.current-S.current,_=he(E,e),{dragStepUnit:N,dragStepAmount:$}=K[e],d=i.map(I=>{if(I.id!==n.id)return I;const G=U(j.current).add(_*$,N);return G.isAfter(U(I.endDate))?I:{...I,startDate:G.toISOString()}});l(d),o==null||o(d),p(),f.current=null};return{onDragStart:M,tempLeft:m,tempWidth:a}}function $n(n,s,r){const{rawTasks:o,selectedScale:i,setRawTasks:e,setDraggingTaskMeta:l,clearDraggingTaskMeta:u}=ve(),[p,m]=C.useState(s),g=C.useRef(s),a=C.useRef(null),c=C.useRef(s),y=C.useRef(n.endDate),h=k=>{k.stopPropagation(),a.current=k.clientX,c.current=s,y.current=n.endDate,m(s),g.current=s,l({taskId:n.id,type:"right"}),document.addEventListener("mousemove",f),document.addEventListener("mouseup",S)},f=k=>{if(a.current===null)return;const j=k.clientX-a.current,Z=he(j,i)*K[i].basePxPerDragStep,L=c.current+Z;L<1||(m(L),g.current=L)},S=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",S);const k=g.current-c.current,j=he(k,i),{dragStepUnit:M,dragStepAmount:Z}=K[i],L=o.map(E=>{if(E.id!==n.id)return E;const _=U(y.current).add(j*Z,M);return _.isBefore(U(E.startDate))?E:{...E,endDate:_.toISOString()}});e(L),r==null||r(L),u(),a.current=null};return{onDragStart:h,tempWidth:p}}function gn(n,s,r,o,i){if(r<0||i<0)return`M ${s} ${r} h ${(o-s)/2}`;const e=7,l=11,u=25,p=20,m=`M ${s} ${r}`,g=o-s,a=i-r,c=Math.abs(g),y=Math.abs(a),h=i<=r,f=i>=r,S=o>=s,k=o<=s,j=c>p,M=Math.abs(g/2),Z=Math.abs(a/2);function L(){function $(){return(S||k)&&f&&!j?"downSmallHorizontal":(S||k)&&h&&!j?"upSmallHorizontal":f&&k?"downLeft":f&&S?"downRight":h&&k?"upLeft":h&&S?"upRight":""}let d=m;switch($()){case"downRight":{d+=` h ${M-e}`,d+=` a ${e} ${e} 0 0 1 ${e} ${e}`,d+=` v ${a-e*2}`,d+=` a ${e} ${e} 0 0 0 ${e} ${e}`,d+=` h ${M-e}`;break}case"upRight":{d+=` h ${M-e}`,d+=` a ${e} ${e} 0 0 0 ${e} -${e}`,d+=` v -${y-e*2}`,d+=` a ${e} ${e} 0 0 1 ${e} -${e}`,d+=` h ${M-e}`;break}case"downLeft":case"downSmallHorizontal":{const G=r+a/2;d+=` h ${l}`,d+=` a ${e} ${e} 0 0 1 ${e} ${e}`,d+=` v ${G-r-e*2}`,d+=` a ${e} ${e} 0 0 1 -${e} ${e}`,d+=` h ${g-2*l}`,d+=` a ${e} ${e} 0 0 0 -${e} ${e}`,d+=` v ${G-r-e*2}`,d+=` a ${e} ${e} 0 0 0 ${e} ${e}`,d+=` h ${l}`;break}case"upLeft":case"upSmallHorizontal":{const G=r+a/2;d+=` h ${l}`,d+=` a ${e} ${e} 0 0 0 ${e} -${e}`,d+=` v -${r-G-e*2}`,d+=` a ${e} ${e} 0 0 0 -${e} -${e}`,d+=` h ${g-2*l}`,d+=` a ${e} ${e} 0 0 1 -${e} -${e}`,d+=` v -${r-G-e*2}`,d+=` a ${e} ${e} 0 0 1 ${e} -${e}`,d+=` h ${l}`;break}default:return d}return d}function E(){let $=m;return f&&k?($+=` h ${u-l}`,$+=` a ${e} ${e} 0 0 1 ${e} ${e}`,$+=` v ${a-e*2}`,$+=` a ${e} ${e} 0 0 1 -${e} ${e}`,$+=` h ${g-e*2}`):f&&S?($+=` h ${g+u-l}`,$+=` a ${e} ${e} 0 0 1 ${e} ${e}`,$+=` v ${a-e*2}`,$+=` a ${e} ${e} 0 0 1 -${e} ${e}`,$+=` h -${u-l}`):h&&k?($+=` h ${u-l}`,$+=` a ${e} ${e} 0 0 0 ${e} -${e}`,$+=` v ${a+e*2}`,$+=` a ${e} ${e} 0 0 0 -${e} -${e}`,$+=` h ${g-u+l}`):h&&S&&($+=` h ${g+u-l}`,$+=` a ${e} ${e} 0 0 0 ${e} -${e}`,$+=` v ${a+e*2}`,$+=` a ${e} ${e} 0 0 0 -${e} -${e}`,$+=` h -${u-l}`),$}function _(){function $(){return(S||k)&&f&&!j?"downSmallHorizontal":(S||k)&&h&&!j?"upSmallHorizontal":f&&k?"downLeft":f&&S?"downRight":h&&k?"upLeft":h&&S?"upRight":""}let d=m;switch($()){case"downRight":case"downSmallHorizontal":{d+=" h -11",d+=` a ${e} ${e} 0 0 0 -${e} ${e}`,d+=` v ${Z-e*2}`,d+=` a ${e} ${e} 0 0 0 ${e} ${e}`,d+=` h ${l*2+g}`,d+=` a ${e} ${e} 0 0 1 ${e} ${e}`,d+=` v ${Z-e*2}`,d+=` a ${e} ${e} 0 0 1 -${e} ${e}`,d+=" h -11";break}case"upRight":case"upSmallHorizontal":{d+=" h -11",d+=` a ${e} ${e} 0 0 1 -${e} -${e}`,d+=` v ${-(Z-e*2)}`,d+=` a ${e} ${e} 0 0 1 ${e} -${e}`,d+=` h ${l*2+g}`,d+=` a ${e} ${e} 0 0 0 ${e} -${e}`,d+=` v ${-(Z-e*2)}`,d+=` a ${e} ${e} 0 0 0 -${e} -${e}`,d+=" h -11";break}case"downLeft":{d+=` h ${-M+e}`,d+=` a ${e} ${e} 0 0 0 -${e} ${e}`,d+=` v ${y-e*2}`,d+=` a ${e} ${e} 0 0 1 -${e} ${e}`,d+=` h ${-M+e}`;break}case"upLeft":{d+=` h ${-(M-e)}`,d+=` a ${e} ${e} 0 0 1 -${e} -${e}`,d+=` v ${-(y-e*2)}`,d+=` a ${e} ${e} 0 0 0 -${e} -${e}`,d+=` h ${-M+e}`;break}default:return d}return d}function N(){let $=m;return f&&k?($+=` h ${g-u}`,$+=` a ${e} ${e} 0 0 0 -${e} ${e}`,$+=` v ${a-e*2}`,$+=` a ${e} ${e} 0 0 0 ${e} ${e}`,$+=` h ${u}`):f&&S?($+=" h -25",$+=` a ${e} ${e} 0 0 0 -${e} ${e}`,$+=` v ${a-e*2}`,$+=` a ${e} ${e} 0 0 0 ${e} ${e}`,$+=` h ${g+u}`):h&&k?($+=` h ${g-u}`,$+=` a ${e} ${e} 0 0 1 -${e} -${e}`,$+=` v ${a+e*2}`,$+=` a ${e} ${e} 0 0 1 ${e} -${e}`,$+=` h ${u}`):h&&S&&($+=" h -25",$+=` a ${e} ${e} 0 0 1 -${e} -${e}`,$+=` v ${a+e*2}`,$+=` a ${e} ${e} 0 0 1 ${e} -${e}`,$+=` h ${g+u}`),$}switch(n){case"FS":return L();case"FF":return E();case"SF":return _();case"SS":return N();default:return`${m} L ${o} ${i}`}}function vn({allTasks:n,currentTask:s,onTasksChange:r}){const[o,i]=C.useState(!1),[e,l]=C.useState(!1),{onDragStart:u,tempLeft:p}=hn(s,s.barLeft,r),{onDragStart:m,tempLeft:g,tempWidth:a}=mn(s,s.barLeft,s.barWidth,r),{onDragStart:c,tempWidth:y}=$n(s,s.barWidth,r),{draggingTaskMeta:h}=ve(),f=(h==null?void 0:h.taskId)===s.id;let S=!1,k=!1,j=!1;f&&((h==null?void 0:h.type)==="left"?S=!0:(h==null?void 0:h.type)==="right"?k=!0:(h==null?void 0:h.type)==="bar"&&(j=!0));let M=s.barLeft,Z=s.barWidth;S?(M=g,Z=a):k?Z=y:j&&(M=p);const L=()=>q.jsx("button",{type:"button",onMouseDown:m,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:{position:"absolute",top:0,left:"-1.15rem",width:"2rem",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"w-resize",background:"transparent",border:"none",padding:0},children:q.jsx(rt,{style:{height:"1.5rem",width:"1.5rem",fill:"#919294",opacity:o?1:0}})}),E=()=>q.jsx("button",{type:"button",onMouseDown:c,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{position:"absolute",top:0,right:"-1.15rem",width:"2rem",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"w-resize",background:"transparent",border:"none",padding:0},children:q.jsx(rt,{style:{height:"1.5rem",width:"1.5rem",fill:"#919294",opacity:e?1:0}})}),_=(s.dependencies||[]).map(N=>{const $=n.find(D=>D.id===N.targetId);if(!$)return null;const d=at,I=($.order-1)*d+d/2,G=(s.order-1)*d+d/2;let ee,O;switch(N.type){case"FS":ee=$.barLeft+$.barWidth,O=s.barLeft;break;case"SS":ee=$.barLeft,O=s.barLeft;break;case"FF":ee=$.barLeft+$.barWidth,O=s.barLeft+s.barWidth;break;case"SF":ee=$.barLeft,O=s.barLeft+s.barWidth;break;default:return console.warn(`Unknown dependency type: ${N.type}`),null}return{...N,fromX:ee,fromY:I,toX:O,toY:G}}).filter(Boolean);return q.jsxs(q.Fragment,{children:[q.jsxs("div",{role:"button",tabIndex:0,onMouseDown:u,style:{position:"relative",display:"flex",alignItems:"center",backgroundColor:"#D6D6D8",marginLeft:`${M}px`,width:`${Z}px`,height:"1rem"},children:[L(),E()]}),q.jsxs("svg",{style:{position:"absolute",top:0,left:0,zIndex:10,width:"100%",height:"100%",pointerEvents:"none"},children:[q.jsx("defs",{children:q.jsx("marker",{id:"arrowhead",markerWidth:"6",markerHeight:"6",refX:"5.25",refY:"3",orient:"auto",children:q.jsx("polygon",{points:"0 0, 6 3, 0 6",fill:"#000"})})}),_.map((N,$)=>q.jsx("path",{d:gn(N.type,N.fromX,N.fromY,N.toX,N.toY),fill:"none",markerEnd:"url(#arrowhead)",style:{stroke:"#000",strokeWidth:.75}},$))]})]})}function yn({tasks:n,onTasksChange:s,ganttHeight:r,columnWidth:o}){const[i,e]=C.useState(r||500),[l,u]=C.useState(o||1e3),[p,m]=C.useState(n||[]),g=C.useRef(null),{rawTasks:a,transformedTasks:c,selectedScale:y,setSelectedScale:h,bottomRowCells:f,topHeaderGroups:S,setRawTasks:k,setBottomRowCells:j,setTopHeaderGroups:M,setMinDate:Z,setMaxDate:L}=ve();return C.useEffect(()=>{n.length===0?m(pn):m(n)},[n]),C.useEffect(()=>{if(!p.length)return;const E=Object.fromEntries(p.map(_=>[_.id,{startDate:_.startDate,endDate:_.endDate}]));vt(E,y,Z,L,j,M)},[p,y]),C.useEffect(()=>{!f.length||!p.length||a.length===0&&k(p)},[f,p]),q.jsx("section",{style:{position:"relative",overflow:"auto",height:typeof r=="number"?`${r}px`:r,width:typeof o=="number"?`${o}px`:o,backgroundColor:"#FFF",fontFamily:"Noto Sans, sans-serif"},children:q.jsx("div",{style:{width:"100%",height:"100%",overflow:"hidden",backgroundColor:"#FFF"},children:q.jsxs("section",{style:{position:"relative",display:"flex",height:"100%",width:"100%",flexDirection:"column"},children:[q.jsx("div",{style:{position:"absolute",top:"3px",right:"16px",zIndex:50,display:"flex",justifyContent:"flex-end",alignItems:"center"},children:q.jsx("select",{style:{padding:"4px 8px",fontSize:"0.875rem",borderRadius:"6px",border:"1px solid #E6E7E9"},value:y,onChange:E=>{const _=E.target.value;h(_)},children:Object.keys(K).map(E=>q.jsx("option",{value:E,children:K[E].labelUnit},E))})}),q.jsx("div",{ref:g,style:{flexGrow:1,overflowX:"auto"},children:q.jsxs("div",{style:{display:"flex",minWidth:"max-content",flexDirection:"column"},children:[q.jsx(yt,{topHeaderGroups:S,bottomRowCells:f,selectedScale:y,scrollRef:g}),q.jsx("div",{style:{position:"relative",display:"flex"},children:q.jsx("div",{style:{display:"flex",flexGrow:1,flexDirection:"column"},children:c.map(E=>q.jsx("div",{style:{display:"flex",width:"100%",alignItems:"center",borderBottom:"1px solid #E6E7E9",height:`${at}px`,backgroundColor:"#FFF"},children:q.jsx(vn,{allTasks:c,currentTask:E,onTasksChange:s})},E.id))})})]})})]})})})}exports.ReactGanttChart=yn;
|
|
31
|
+
Check the top-level render call using <`+o+">."),_}var M=ee,L=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),m=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),P=Symbol.iterator,k=Symbol.for("react.client.reference"),A=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,U=Object.assign,G=Symbol.for("react.client.reference"),Z=Array.isArray,J=0,re,ce,ae,me,ue,te,oe;r.__reactDisabledLog=!0;var le,ge,qe=!1,Ne=new(typeof WeakMap=="function"?WeakMap:Map),St=Symbol.for("react.client.reference"),Ue,Ye={},Be={},Ve={};De.Fragment=j,De.jsx=function(o,_,z,B,ne){return $(o,_,z,!1,B,ne)},De.jsxs=function(o,_,z,B,ne){return $(o,_,z,!0,B,ne)}}()),De}var Ze;function Mt(){return Ze||(Ze=1,process.env.NODE_ENV==="production"?Me.exports=Dt():Me.exports=wt()),Me.exports}var W=Mt();function ye(s,c,t){let r=t.initialDeps??[],n;function e(){var a,i,d,h;let v;t.key&&((a=t.debug)!=null&&a.call(t))&&(v=Date.now());const p=s();if(!(p.length!==r.length||p.some(($,u)=>r[u]!==$)))return n;r=p;let g;if(t.key&&((i=t.debug)!=null&&i.call(t))&&(g=Date.now()),n=c(...p),t.key&&((d=t.debug)!=null&&d.call(t))){const $=Math.round((Date.now()-v)*100)/100,u=Math.round((Date.now()-g)*100)/100,w=u/16,T=(R,M)=>{for(R=String(R);R.length<M;)R=" "+R;return R};console.info(`%c⏱ ${T(u,5)} /${T($,5)} ms`,`
|
|
32
|
+
font-size: .6rem;
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(h=t==null?void 0:t.onChange)==null||h.call(t,n),n}return e.updateDeps=a=>{r=a},e}function We(s,c){if(s===void 0)throw new Error("Unexpected undefined");return s}const Et=(s,c)=>Math.abs(s-c)<1,It=(s,c,t)=>{let r;return function(...n){s.clearTimeout(r),r=s.setTimeout(()=>c.apply(this,n),t)}},Ot=s=>s,kt=s=>{const c=Math.max(s.startIndex-s.overscan,0),t=Math.min(s.endIndex+s.overscan,s.count-1),r=[];for(let n=c;n<=t;n++)r.push(n);return r},Tt=(s,c)=>{const t=s.scrollElement;if(!t)return;const r=s.targetWindow;if(!r)return;const n=a=>{const{width:i,height:d}=a;c({width:Math.round(i),height:Math.round(d)})};if(n(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const e=new r.ResizeObserver(a=>{const i=()=>{const d=a[0];if(d!=null&&d.borderBoxSize){const h=d.borderBoxSize[0];if(h){n({width:h.inlineSize,height:h.blockSize});return}}n(t.getBoundingClientRect())};s.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return e.observe(t,{box:"border-box"}),()=>{e.unobserve(t)}},Je={passive:!0},Ke=typeof window>"u"?!0:"onscrollend"in window,Rt=(s,c)=>{const t=s.scrollElement;if(!t)return;const r=s.targetWindow;if(!r)return;let n=0;const e=s.options.useScrollendEvent&&Ke?()=>{}:It(r,()=>{c(n,!1)},s.options.isScrollingResetDelay),a=v=>()=>{const{horizontal:p,isRtl:f}=s.options;n=p?t.scrollLeft*(f&&-1||1):t.scrollTop,e(),c(n,v)},i=a(!0),d=a(!1);d(),t.addEventListener("scroll",i,Je);const h=s.options.useScrollendEvent&&Ke;return h&&t.addEventListener("scrollend",d,Je),()=>{t.removeEventListener("scroll",i),h&&t.removeEventListener("scrollend",d)}},Ct=(s,c,t)=>{if(c!=null&&c.borderBoxSize){const r=c.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(s.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Ft=(s,{adjustments:c=0,behavior:t},r)=>{var n,e;const a=s+c;(e=(n=r.scrollElement)==null?void 0:n.scrollTo)==null||e.call(n,{[r.options.horizontal?"left":"top"]:a,behavior:t})};class _t{constructor(c){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(e=>{const a=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));return{disconnect:()=>{var n;(n=r())==null||n.disconnect(),t=null},observe:n=>{var e;return(e=r())==null?void 0:e.observe(n,{box:"border-box"})},unobserve:n=>{var e;return(e=r())==null?void 0:e.unobserve(n)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,n])=>{typeof n>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ot,rangeExtractor:kt,onChange:()=>{},measureElement:Ct,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var r,n;(n=(r=this.options).onChange)==null||n.call(r,this,t)},this.maybeNotify=ye(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,e)=>{this.scrollAdjustments=0,this.scrollDirection=e?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=e,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,r)=>{const n=new Map,e=new Map;for(let a=r-1;a>=0;a--){const i=t[a];if(n.has(i.lane))continue;const d=e.get(i.lane);if(d==null||i.end>d.end?e.set(i.lane,i):i.end<d.end&&n.set(i.lane,!0),n.size===this.options.lanes)break}return e.size===this.options.lanes?Array.from(e.values()).sort((a,i)=>a.end===i.end?a.index-i.index:a.end-i.end)[0]:void 0},this.getMeasurementOptions=ye(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,n,e,a)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:n,getItemKey:e,enabled:a}),{key:!1}),this.getMeasurements=ye(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:n,getItemKey:e,enabled:a},i)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(v=>{this.itemSizeCache.set(v.key,v.size)}));const d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const h=this.measurementsCache.slice(0,d);for(let v=d;v<t;v++){const p=e(v),f=this.options.lanes===1?h[v-1]:this.getFurthestMeasurement(h,v),g=f?f.end+this.options.gap:r+n,$=i.get(p),u=typeof $=="number"?$:this.options.estimateSize(v),w=g+u,T=f?f.lane:v%this.options.lanes;h[v]={index:v,start:g,size:u,end:w,key:p,lane:T}}return this.measurementsCache=h,h},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=ye(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,n,e)=>this.range=t.length>0&&r>0?zt({measurements:t,outerSize:r,scrollOffset:n,lanes:e}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=ye(()=>{let t=null,r=null;const n=this.calculateRange();return n&&(t=n.startIndex,r=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,n,e,a)=>e===null||a===null?[]:t({startIndex:e,endIndex:a,overscan:r,count:n}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,n=t.getAttribute(r);return n?parseInt(n,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const n=this.indexFromElement(t),e=this.measurementsCache[n];if(!e)return;const a=e.key,i=this.elementsCache.get(a);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(a,t)),t.isConnected&&this.resizeItem(n,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const n=this.measurementsCache[t];if(!n)return;const e=this.itemSizeCache.get(n.key)??n.size,a=r-e;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,a,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",a),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,n)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(n))});return}this._measureElement(t,void 0)},this.getVirtualItems=ye(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{const n=[];for(let e=0,a=t.length;e<a;e++){const i=t[e],d=r[i];n.push(d)}return n},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return We(r[vt(0,r.length-1,n=>We(r[n]).start,t)])},this.getOffsetForAlignment=(t,r,n=0)=>{const e=this.getSize(),a=this.getScrollOffset();r==="auto"&&(r=t>=a+e?"end":"start"),r==="center"?t+=(n-e)/2:r==="end"&&(t-=e);const i=this.options.horizontal?"scrollWidth":"scrollHeight",h=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-e;return Math.max(Math.min(h,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.measurementsCache[t];if(!n)return;const e=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(n.end>=a+e-this.options.scrollPaddingEnd)r="end";else if(n.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];const i=r==="end"?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r,n.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:r="start",behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:n})},this.scrollToIndex=(t,{align:r="auto",behavior:n}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const e=this.getOffsetForIndex(t,r);if(!e)return;const[a,i]=e;this._scrollToOffset(a,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[h]=We(this.getOffsetForIndex(t,i));Et(h,this.getScrollOffset())||this.scrollToIndex(t,{align:i,behavior:n})}else this.scrollToIndex(t,{align:i,behavior:n})}))},this.scrollBy=(t,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let n;if(r.length===0)n=this.options.paddingStart;else if(this.options.lanes===1)n=((t=r[r.length-1])==null?void 0:t.end)??0;else{const e=Array(this.options.lanes).fill(null);let a=r.length-1;for(;a>=0&&e.some(i=>i===null);){const i=r[a];e[i.lane]===null&&(e[i.lane]=i.end),a--}n=Math.max(...e.filter(i=>i!==null))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(c)}}const vt=(s,c,t,r)=>{for(;s<=c;){const n=(s+c)/2|0,e=t(n);if(e<r)s=n+1;else if(e>r)c=n-1;else return n}return s>0?s-1:0};function zt({measurements:s,outerSize:c,scrollOffset:t,lanes:r}){const n=s.length-1,e=d=>s[d].start;if(s.length<=r)return{startIndex:0,endIndex:n};let a=vt(0,n,e,t),i=a;if(r===1)for(;i<n&&s[i].end<t+c;)i++;else if(r>1){const d=Array(r).fill(0);for(;i<n&&d.some(v=>v<t+c);){const v=s[i];d[v.lane]=v.end,i++}const h=Array(r).fill(t+c);for(;a>=0&&h.some(v=>v>=t);){const v=s[a];h[v.lane]=v.start,a--}a=Math.max(0,a-a%r),i=Math.min(n,i+(r-1-i%r))}return{startIndex:a,endIndex:i}}const Qe=typeof document<"u"?Se.useLayoutEffect:Se.useEffect;function jt(s){const c=Se.useReducer(()=>({}),{})[1],t={...s,onChange:(n,e)=>{var a;e?xt.flushSync(c):c(),(a=s.onChange)==null||a.call(s,n,e)}},[r]=Se.useState(()=>new _t(t));return r.setOptions(t),Qe(()=>r._didMount(),[]),Qe(()=>r._willUpdate()),r}function et(s){return jt({observeElementRect:Tt,observeElementOffset:Rt,scrollToFn:Ft,...s})}const Le=38,tt=3,he={day:{labelUnit:"day",tickUnit:"hour",unitPerTick:1,dragStepUnit:"hour",dragStepAmount:1,basePxPerDragStep:32,formatTickLabel:s=>s.format("hh"),formatHeaderLabel:s=>s.format("MMM D")},week:{labelUnit:"month",tickUnit:"day",unitPerTick:1,dragStepUnit:"hour",dragStepAmount:6,basePxPerDragStep:54,formatTickLabel:s=>s.format("D"),formatHeaderLabel:s=>s.format("MMM")},month:{labelUnit:"month",tickUnit:"day",unitPerTick:1,dragStepUnit:"day",dragStepAmount:1,basePxPerDragStep:32,formatTickLabel:s=>s.format("D"),formatHeaderLabel:s=>s.format("MMM YYYY")},year:{labelUnit:"month",tickUnit:"month",unitPerTick:1,dragStepUnit:"day",dragStepAmount:7,basePxPerDragStep:28,formatTickLabel:s=>s.format("D"),formatHeaderLabel:s=>s.format("MMM YYYY")}},nt=s=>{let c;const t=new Set,r=(h,v)=>{const p=typeof h=="function"?h(c):h;if(!Object.is(p,c)){const f=c;c=v??(typeof p!="object"||p===null)?p:Object.assign({},c,p),t.forEach(g=>g(c,f))}},n=()=>c,i={setState:r,getState:n,getInitialState:()=>d,subscribe:h=>(t.add(h),()=>t.delete(h))},d=c=s(r,n,i);return i},Pt=s=>s?nt(s):nt,At=s=>s;function Lt(s,c=At){const t=ee.useSyncExternalStore(s.subscribe,()=>c(s.getState()),()=>c(s.getInitialState()));return ee.useDebugValue(t),t}const qt=s=>{const c=Pt(s),t=r=>Lt(c,r);return Object.assign(t,c),t},Nt=s=>qt;function $t(s,c){let t;try{t=s()}catch{return}return{getItem:n=>{var e;const a=d=>d===null?null:JSON.parse(d,void 0),i=(e=t.getItem(n))!=null?e:null;return i instanceof Promise?i.then(a):a(i)},setItem:(n,e)=>t.setItem(n,JSON.stringify(e,void 0)),removeItem:n=>t.removeItem(n)}}const He=s=>c=>{try{const t=s(c);return t instanceof Promise?t:{then(r){return He(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return He(r)(t)}}}},Wt=(s,c)=>(t,r,n)=>{let e={storage:$t(()=>localStorage),partialize:u=>u,version:0,merge:(u,w)=>({...w,...u}),...c},a=!1;const i=new Set,d=new Set;let h=e.storage;if(!h)return s((...u)=>{console.warn(`[zustand persist middleware] Unable to update item '${e.name}', the given storage is currently unavailable.`),t(...u)},r,n);const v=()=>{const u=e.partialize({...r()});return h.setItem(e.name,{state:u,version:e.version})},p=n.setState;n.setState=(u,w)=>{p(u,w),v()};const f=s((...u)=>{t(...u),v()},r,n);n.getInitialState=()=>f;let g;const $=()=>{var u,w;if(!h)return;a=!1,i.forEach(R=>{var M;return R((M=r())!=null?M:f)});const T=((w=e.onRehydrateStorage)==null?void 0:w.call(e,(u=r())!=null?u:f))||void 0;return He(h.getItem.bind(h))(e.name).then(R=>{if(R)if(typeof R.version=="number"&&R.version!==e.version){if(e.migrate){const M=e.migrate(R.state,R.version);return M instanceof Promise?M.then(L=>[!0,L]):[!0,M]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,R.state];return[!1,void 0]}).then(R=>{var M;const[L,N]=R;if(g=e.merge(N,(M=r())!=null?M:f),t(g,!0),L)return v()}).then(()=>{T==null||T(g,void 0),g=r(),a=!0,d.forEach(R=>R(g))}).catch(R=>{T==null||T(void 0,R)})};return n.persist={setOptions:u=>{e={...e,...u},u.storage&&(h=u.storage)},clearStorage:()=>{h==null||h.removeItem(e.name)},getOptions:()=>e,rehydrate:()=>$(),hasHydrated:()=>a,onHydrate:u=>(i.add(u),()=>{i.delete(u)}),onFinishHydration:u=>(d.add(u),()=>{d.delete(u)})},e.skipHydration||$(),g||f},Ht=Wt,Q=Nt()(Ht(s=>({rawTasks:[],transformedTasks:[],bottomRowCells:[],topHeaderGroups:[],selectedScale:"month",currentTask:null,dragOffsets:{},setCurrentTask:c=>s({currentTask:c}),setSelectedScale:c=>s({selectedScale:c}),setRawTasks:c=>s({rawTasks:c}),setBottomRowCells:c=>s({bottomRowCells:c}),setTopHeaderGroups:c=>s({topHeaderGroups:c}),setTransformedTasks:c=>s({transformedTasks:c}),setDragOffset:(c,t)=>s(r=>({dragOffsets:{...r.dragOffsets,[c]:t}})),clearDragOffset:c=>s(t=>{const{[c]:r,...n}=t.dragOffsets;return{dragOffsets:n}})}),{name:"gantt-storage",storage:$t(()=>sessionStorage),partialize:s=>({selectedScale:s.selectedScale})}));var Ee={exports:{}},Ut=Ee.exports,rt;function Yt(){return rt||(rt=1,function(s,c){(function(t,r){s.exports=r()})(Ut,function(){var t=1e3,r=6e4,n=36e5,e="millisecond",a="second",i="minute",d="hour",h="day",v="week",p="month",f="quarter",g="year",$="date",u="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var O=["th","st","nd","rd"],I=F%100;return"["+F+(O[(I-20)%10]||O[I]||O[0])+"]"}},M=function(F,O,I){var P=String(F);return!P||P.length>=O?F:""+Array(O+1-P.length).join(I)+F},L={s:M,z:function(F){var O=-F.utcOffset(),I=Math.abs(O),P=Math.floor(I/60),k=I%60;return(O<=0?"+":"-")+M(P,2,"0")+":"+M(k,2,"0")},m:function F(O,I){if(O.date()<I.date())return-F(I,O);var P=12*(I.year()-O.year())+(I.month()-O.month()),k=O.clone().add(P,p),A=I-k<0,q=O.clone().add(P+(A?-1:1),p);return+(-(P+(I-k)/(A?k-q:q-k))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:p,y:g,w:v,d:h,D:$,h:d,m:i,s:a,ms:e,Q:f}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},N="en",j={};j[N]=R;var E="$isDayjsObject",D=function(F){return F instanceof Y||!(!F||!F[E])},l=function F(O,I,P){var k;if(!O)return N;if(typeof O=="string"){var A=O.toLowerCase();j[A]&&(k=A),I&&(j[A]=I,k=A);var q=O.split("-");if(!k&&q.length>1)return F(q[0])}else{var U=O.name;j[U]=O,k=U}return!P&&k&&(N=k),k||!P&&N},m=function(F,O){if(D(F))return F.clone();var I=typeof O=="object"?O:{};return I.date=F,I.args=arguments,new Y(I)},C=L;C.l=l,C.i=D,C.w=function(F,O){return m(F,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var Y=function(){function F(I){this.$L=l(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[E]=!0}var O=F.prototype;return O.parse=function(I){this.$d=function(P){var k=P.date,A=P.utc;if(k===null)return new Date(NaN);if(C.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var q=k.match(w);if(q){var U=q[2]-1||0,G=(q[7]||"0").substring(0,3);return A?new Date(Date.UTC(q[1],U,q[3]||1,q[4]||0,q[5]||0,q[6]||0,G)):new Date(q[1],U,q[3]||1,q[4]||0,q[5]||0,q[6]||0,G)}}return new Date(k)}(I),this.init()},O.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},O.$utils=function(){return C},O.isValid=function(){return this.$d.toString()!==u},O.isSame=function(I,P){var k=m(I);return this.startOf(P)<=k&&k<=this.endOf(P)},O.isAfter=function(I,P){return m(I)<this.startOf(P)},O.isBefore=function(I,P){return this.endOf(P)<m(I)},O.$g=function(I,P,k){return C.u(I)?this[P]:this.set(k,I)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(I,P){var k=this,A=!!C.u(P)||P,q=C.p(I),U=function(ue,te){var oe=C.w(k.$u?Date.UTC(k.$y,te,ue):new Date(k.$y,te,ue),k);return A?oe:oe.endOf(h)},G=function(ue,te){return C.w(k.toDate()[ue].apply(k.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(te)),k)},Z=this.$W,J=this.$M,re=this.$D,ce="set"+(this.$u?"UTC":"");switch(q){case g:return A?U(1,0):U(31,11);case p:return A?U(1,J):U(0,J+1);case v:var ae=this.$locale().weekStart||0,me=(Z<ae?Z+7:Z)-ae;return U(A?re-me:re+(6-me),J);case h:case $:return G(ce+"Hours",0);case d:return G(ce+"Minutes",1);case i:return G(ce+"Seconds",2);case a:return G(ce+"Milliseconds",3);default:return this.clone()}},O.endOf=function(I){return this.startOf(I,!1)},O.$set=function(I,P){var k,A=C.p(I),q="set"+(this.$u?"UTC":""),U=(k={},k[h]=q+"Date",k[$]=q+"Date",k[p]=q+"Month",k[g]=q+"FullYear",k[d]=q+"Hours",k[i]=q+"Minutes",k[a]=q+"Seconds",k[e]=q+"Milliseconds",k)[A],G=A===h?this.$D+(P-this.$W):P;if(A===p||A===g){var Z=this.clone().set($,1);Z.$d[U](G),Z.init(),this.$d=Z.set($,Math.min(this.$D,Z.daysInMonth())).$d}else U&&this.$d[U](G);return this.init(),this},O.set=function(I,P){return this.clone().$set(I,P)},O.get=function(I){return this[C.p(I)]()},O.add=function(I,P){var k,A=this;I=Number(I);var q=C.p(P),U=function(J){var re=m(A);return C.w(re.date(re.date()+Math.round(J*I)),A)};if(q===p)return this.set(p,this.$M+I);if(q===g)return this.set(g,this.$y+I);if(q===h)return U(1);if(q===v)return U(7);var G=(k={},k[i]=r,k[d]=n,k[a]=t,k)[q]||1,Z=this.$d.getTime()+I*G;return C.w(Z,this)},O.subtract=function(I,P){return this.add(-1*I,P)},O.format=function(I){var P=this,k=this.$locale();if(!this.isValid())return k.invalidDate||u;var A=I||"YYYY-MM-DDTHH:mm:ssZ",q=C.z(this),U=this.$H,G=this.$m,Z=this.$M,J=k.weekdays,re=k.months,ce=k.meridiem,ae=function(te,oe,le,ge){return te&&(te[oe]||te(P,A))||le[oe].slice(0,ge)},me=function(te){return C.s(U%12||12,te,"0")},ue=ce||function(te,oe,le){var ge=te<12?"AM":"PM";return le?ge.toLowerCase():ge};return A.replace(T,function(te,oe){return oe||function(le){switch(le){case"YY":return String(P.$y).slice(-2);case"YYYY":return C.s(P.$y,4,"0");case"M":return Z+1;case"MM":return C.s(Z+1,2,"0");case"MMM":return ae(k.monthsShort,Z,re,3);case"MMMM":return ae(re,Z);case"D":return P.$D;case"DD":return C.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return ae(k.weekdaysMin,P.$W,J,2);case"ddd":return ae(k.weekdaysShort,P.$W,J,3);case"dddd":return J[P.$W];case"H":return String(U);case"HH":return C.s(U,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ue(U,G,!0);case"A":return ue(U,G,!1);case"m":return String(G);case"mm":return C.s(G,2,"0");case"s":return String(P.$s);case"ss":return C.s(P.$s,2,"0");case"SSS":return C.s(P.$ms,3,"0");case"Z":return q}return null}(te)||q.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(I,P,k){var A,q=this,U=C.p(P),G=m(I),Z=(G.utcOffset()-this.utcOffset())*r,J=this-G,re=function(){return C.m(q,G)};switch(U){case g:A=re()/12;break;case p:A=re();break;case f:A=re()/3;break;case v:A=(J-Z)/6048e5;break;case h:A=(J-Z)/864e5;break;case d:A=J/n;break;case i:A=J/r;break;case a:A=J/t;break;default:A=J}return k?A:C.a(A)},O.daysInMonth=function(){return this.endOf(p).$D},O.$locale=function(){return j[this.$L]},O.locale=function(I,P){if(!I)return this.$L;var k=this.clone(),A=l(I,P,!0);return A&&(k.$L=A),k},O.clone=function(){return C.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},F}(),V=Y.prototype;return m.prototype=V,[["$ms",e],["$s",a],["$m",i],["$H",d],["$W",h],["$M",p],["$y",g],["$D",$]].forEach(function(F){V[F[1]]=function(O){return this.$g(O,F[0],F[1])}}),m.extend=function(F,O){return F.$i||(F(O,Y,m),F.$i=!0),m},m.locale=l,m.isDayjs=D,m.unix=function(F){return m(1e3*F)},m.en=j[N],m.Ls=j,m.p={},m})}(Ee)),Ee.exports}var Bt=Yt();const K=ie(Bt);var Ie={exports:{}},Vt=Ie.exports,st;function Gt(){return st||(st=1,function(s,c){(function(t,r){s.exports=r()})(Vt,function(){var t,r,n=1e3,e=6e4,a=36e5,i=864e5,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=31536e6,v=2628e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:h,months:v,days:i,hours:a,minutes:e,seconds:n,milliseconds:1,weeks:6048e5},g=function(j){return j instanceof L},$=function(j,E,D){return new L(j,D,E.$l)},u=function(j){return r.p(j)+"s"},w=function(j){return j<0},T=function(j){return w(j)?Math.ceil(j):Math.floor(j)},R=function(j){return Math.abs(j)},M=function(j,E){return j?w(j)?{negative:!0,format:""+R(j)+E}:{negative:!1,format:""+j+E}:{negative:!1,format:""}},L=function(){function j(D,l,m){var C=this;if(this.$d={},this.$l=m,D===void 0&&(this.$ms=0,this.parseFromMilliseconds()),l)return $(D*f[u(l)],this);if(typeof D=="number")return this.$ms=D,this.parseFromMilliseconds(),this;if(typeof D=="object")return Object.keys(D).forEach(function(F){C.$d[u(F)]=D[F]}),this.calMilliseconds(),this;if(typeof D=="string"){var Y=D.match(p);if(Y){var V=Y.slice(2).map(function(F){return F!=null?Number(F):0});return this.$d.years=V[0],this.$d.months=V[1],this.$d.weeks=V[2],this.$d.days=V[3],this.$d.hours=V[4],this.$d.minutes=V[5],this.$d.seconds=V[6],this.calMilliseconds(),this}}return this}var E=j.prototype;return E.calMilliseconds=function(){var D=this;this.$ms=Object.keys(this.$d).reduce(function(l,m){return l+(D.$d[m]||0)*f[m]},0)},E.parseFromMilliseconds=function(){var D=this.$ms;this.$d.years=T(D/h),D%=h,this.$d.months=T(D/v),D%=v,this.$d.days=T(D/i),D%=i,this.$d.hours=T(D/a),D%=a,this.$d.minutes=T(D/e),D%=e,this.$d.seconds=T(D/n),D%=n,this.$d.milliseconds=D},E.toISOString=function(){var D=M(this.$d.years,"Y"),l=M(this.$d.months,"M"),m=+this.$d.days||0;this.$d.weeks&&(m+=7*this.$d.weeks);var C=M(m,"D"),Y=M(this.$d.hours,"H"),V=M(this.$d.minutes,"M"),F=this.$d.seconds||0;this.$d.milliseconds&&(F+=this.$d.milliseconds/1e3,F=Math.round(1e3*F)/1e3);var O=M(F,"S"),I=D.negative||l.negative||C.negative||Y.negative||V.negative||O.negative,P=Y.format||V.format||O.format?"T":"",k=(I?"-":"")+"P"+D.format+l.format+C.format+P+Y.format+V.format+O.format;return k==="P"||k==="-P"?"P0D":k},E.toJSON=function(){return this.toISOString()},E.format=function(D){var l=D||"YYYY-MM-DDTHH:mm:ss",m={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return l.replace(d,function(C,Y){return Y||String(m[C])})},E.as=function(D){return this.$ms/f[u(D)]},E.get=function(D){var l=this.$ms,m=u(D);return m==="milliseconds"?l%=1e3:l=m==="weeks"?T(l/f[m]):this.$d[m],l||0},E.add=function(D,l,m){var C;return C=l?D*f[u(l)]:g(D)?D.$ms:$(D,this).$ms,$(this.$ms+C*(m?-1:1),this)},E.subtract=function(D,l){return this.add(D,l,!0)},E.locale=function(D){var l=this.clone();return l.$l=D,l},E.clone=function(){return $(this.$ms,this)},E.humanize=function(D){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!D)},E.valueOf=function(){return this.asMilliseconds()},E.milliseconds=function(){return this.get("milliseconds")},E.asMilliseconds=function(){return this.as("milliseconds")},E.seconds=function(){return this.get("seconds")},E.asSeconds=function(){return this.as("seconds")},E.minutes=function(){return this.get("minutes")},E.asMinutes=function(){return this.as("minutes")},E.hours=function(){return this.get("hours")},E.asHours=function(){return this.as("hours")},E.days=function(){return this.get("days")},E.asDays=function(){return this.as("days")},E.weeks=function(){return this.get("weeks")},E.asWeeks=function(){return this.as("weeks")},E.months=function(){return this.get("months")},E.asMonths=function(){return this.as("months")},E.years=function(){return this.get("years")},E.asYears=function(){return this.as("years")},j}(),N=function(j,E,D){return j.add(E.years()*D,"y").add(E.months()*D,"M").add(E.days()*D,"d").add(E.hours()*D,"h").add(E.minutes()*D,"m").add(E.seconds()*D,"s").add(E.milliseconds()*D,"ms")};return function(j,E,D){t=D,r=D().$utils(),D.duration=function(C,Y){var V=D.locale();return $(C,{$l:V},Y)},D.isDuration=g;var l=E.prototype.add,m=E.prototype.subtract;E.prototype.add=function(C,Y){return g(C)?N(this,C,1):l.bind(this)(C,Y)},E.prototype.subtract=function(C,Y){return g(C)?N(this,C,-1):m.bind(this)(C,Y)}}})}(Ie)),Ie.exports}var Xt=Gt();const Zt=ie(Xt);var Oe={exports:{}},Jt=Oe.exports,it;function Kt(){return it||(it=1,function(s,c){(function(t,r){s.exports=r()})(Jt,function(){return function(t,r,n){r.prototype.isBetween=function(e,a,i,d){var h=n(e),v=n(a),p=(d=d||"()")[0]==="(",f=d[1]===")";return(p?this.isAfter(h,i):!this.isBefore(h,i))&&(f?this.isBefore(v,i):!this.isAfter(v,i))||(p?this.isBefore(h,i):!this.isAfter(h,i))&&(f?this.isAfter(v,i):!this.isBefore(v,i))}}})}(Oe)),Oe.exports}var Qt=Kt();const en=ie(Qt);var ke={exports:{}},tn=ke.exports,ot;function nn(){return ot||(ot=1,function(s,c){(function(t,r){s.exports=r()})(tn,function(){var t="day";return function(r,n,e){var a=function(h){return h.add(4-h.isoWeekday(),t)},i=n.prototype;i.isoWeekYear=function(){return a(this).year()},i.isoWeek=function(h){if(!this.$utils().u(h))return this.add(7*(h-this.isoWeek()),t);var v,p,f,g,$=a(this),u=(v=this.isoWeekYear(),p=this.$u,f=(p?e.utc:e)().year(v).startOf("year"),g=4-f.isoWeekday(),f.isoWeekday()>4&&(g+=7),f.add(g,t));return $.diff(u,"week")+1},i.isoWeekday=function(h){return this.$utils().u(h)?this.day()||7:this.day(this.day()%7?h:h-7)};var d=i.startOf;i.startOf=function(h,v){var p=this.$utils(),f=!!p.u(v)||v;return p.p(h)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):d.bind(this)(h,v)}}})}(ke)),ke.exports}var rn=nn();const sn=ie(rn);var Te={exports:{}},on=Te.exports,at;function an(){return at||(at=1,function(s,c){(function(t,r){s.exports=r()})(on,function(){return function(t,r){r.prototype.isSameOrAfter=function(n,e){return this.isSame(n,e)||this.isAfter(n,e)}}})}(Te)),Te.exports}var un=an();const cn=ie(un);var Re={exports:{}},ln=Re.exports,ut;function dn(){return ut||(ut=1,function(s,c){(function(t,r){s.exports=r()})(ln,function(){return function(t,r){r.prototype.isSameOrBefore=function(n,e){return this.isSame(n,e)||this.isBefore(n,e)}}})}(Re)),Re.exports}var fn=dn();const hn=ie(fn);var Ce={exports:{}},mn=Ce.exports,ct;function pn(){return ct||(ct=1,function(s,c){(function(t,r){s.exports=r()})(mn,function(){return function(t,r,n){r.prototype.isToday=function(){var e="YYYY-MM-DD",a=n();return this.format(e)===a.format(e)}}})}(Ce)),Ce.exports}var gn=pn();const vn=ie(gn);var Fe={exports:{}},$n=Fe.exports,lt;function yn(){return lt||(lt=1,function(s,c){(function(t,r){s.exports=r()})($n,function(){return function(t,r,n){var e=r.prototype,a=function(p){return p&&(p.indexOf?p:p.s)},i=function(p,f,g,$,u){var w=p.name?p:p.$locale(),T=a(w[f]),R=a(w[g]),M=T||R.map(function(N){return N.slice(0,$)});if(!u)return M;var L=w.weekStart;return M.map(function(N,j){return M[(j+(L||0))%7]})},d=function(){return n.Ls[n.locale()]},h=function(p,f){return p.formats[f]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,u,w){return u||w.slice(1)})}(p.formats[f.toUpperCase()])},v=function(){var p=this;return{months:function(f){return f?f.format("MMMM"):i(p,"months")},monthsShort:function(f){return f?f.format("MMM"):i(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):i(p,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):i(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):i(p,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return h(p.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};e.localeData=function(){return v.bind(this)()},n.localeData=function(){var p=d();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(f){return h(p,f)},meridiem:p.meridiem,ordinal:p.ordinal}},n.months=function(){return i(d(),"months")},n.monthsShort=function(){return i(d(),"monthsShort","months",3)},n.weekdays=function(p){return i(d(),"weekdays",null,null,p)},n.weekdaysShort=function(p){return i(d(),"weekdaysShort","weekdays",3,p)},n.weekdaysMin=function(p){return i(d(),"weekdaysMin","weekdays",2,p)}}})}(Fe)),Fe.exports}var Sn=yn();const xn=ie(Sn);var _e={exports:{}},bn=_e.exports,dt;function Dn(){return dt||(dt=1,function(s,c){(function(t,r){s.exports=r()})(bn,function(){return function(t,r,n){var e=function(a,i){if(!i||!i.length||i.length===1&&!i[0]||i.length===1&&Array.isArray(i[0])&&!i[0].length)return null;var d;i.length===1&&i[0].length>0&&(i=i[0]),d=(i=i.filter(function(v){return v}))[0];for(var h=1;h<i.length;h+=1)i[h].isValid()&&!i[h][a](d)||(d=i[h]);return d};n.max=function(){var a=[].slice.call(arguments,0);return e("isAfter",a)},n.min=function(){var a=[].slice.call(arguments,0);return e("isBefore",a)}}})}(_e)),_e.exports}var wn=Dn();const Mn=ie(wn);var ze={exports:{}},En=ze.exports,ft;function In(){return ft||(ft=1,function(s,c){(function(t,r){s.exports=r()})(En,function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(n,e,a){var i,d=function(f,g,$){$===void 0&&($={});var u=new Date(f),w=function(T,R){R===void 0&&(R={});var M=R.timeZoneName||"short",L=T+"|"+M,N=r[L];return N||(N=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),r[L]=N),N}(g,$);return w.formatToParts(u)},h=function(f,g){for(var $=d(f,g),u=[],w=0;w<$.length;w+=1){var T=$[w],R=T.type,M=T.value,L=t[R];L>=0&&(u[L]=parseInt(M,10))}var N=u[3],j=N===24?0:N,E=u[0]+"-"+u[1]+"-"+u[2]+" "+j+":"+u[4]+":"+u[5]+":000",D=+f;return(a.utc(E).valueOf()-(D-=D%1e3))/6e4},v=e.prototype;v.tz=function(f,g){f===void 0&&(f=i);var $,u=this.utcOffset(),w=this.toDate(),T=w.toLocaleString("en-US",{timeZone:f}),R=Math.round((w-new Date(T))/1e3/60),M=15*-Math.round(w.getTimezoneOffset()/15)-R;if(!Number(M))$=this.utcOffset(0,g);else if($=a(T,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(M,!0),g){var L=$.utcOffset();$=$.add(u-L,"minute")}return $.$x.$timezone=f,$},v.offsetName=function(f){var g=this.$x.$timezone||a.tz.guess(),$=d(this.valueOf(),g,{timeZoneName:f}).find(function(u){return u.type.toLowerCase()==="timezonename"});return $&&$.value};var p=v.startOf;v.startOf=function(f,g){if(!this.$x||!this.$x.$timezone)return p.call(this,f,g);var $=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.call($,f,g).tz(this.$x.$timezone,!0)},a.tz=function(f,g,$){var u=$&&g,w=$||g||i,T=h(+a(),w);if(typeof f!="string")return a(f).tz(w);var R=function(j,E,D){var l=j-60*E*1e3,m=h(l,D);if(E===m)return[l,E];var C=h(l-=60*(m-E)*1e3,D);return m===C?[l,m]:[j-60*Math.min(m,C)*1e3,Math.max(m,C)]}(a.utc(f,u).valueOf(),T,w),M=R[0],L=R[1],N=a(M).utcOffset(L);return N.$x.$timezone=w,N},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(f){i=f}}})}(ze)),ze.exports}var On=In();const kn=ie(On);var je={exports:{}},Tn=je.exports,ht;function Rn(){return ht||(ht=1,function(s,c){(function(t,r){s.exports=r()})(Tn,function(){return function(t,r,n){n.updateLocale=function(e,a){var i=n.Ls[e];if(i)return(a?Object.keys(a):[]).forEach(function(d){i[d]=a[d]}),i}}})}(je)),je.exports}var Cn=Rn();const Fn=ie(Cn);var Pe={exports:{}},_n=Pe.exports,mt;function zn(){return mt||(mt=1,function(s,c){(function(t,r){s.exports=r()})(_n,function(){var t="minute",r=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(e,a,i){var d=a.prototype;i.utc=function(u){var w={date:u,utc:!0,args:arguments};return new a(w)},d.utc=function(u){var w=i(this.toDate(),{locale:this.$L,utc:!0});return u?w.add(this.utcOffset(),t):w},d.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var h=d.parse;d.parse=function(u){u.utc&&(this.$u=!0),this.$utils().u(u.$offset)||(this.$offset=u.$offset),h.call(this,u)};var v=d.init;d.init=function(){if(this.$u){var u=this.$d;this.$y=u.getUTCFullYear(),this.$M=u.getUTCMonth(),this.$D=u.getUTCDate(),this.$W=u.getUTCDay(),this.$H=u.getUTCHours(),this.$m=u.getUTCMinutes(),this.$s=u.getUTCSeconds(),this.$ms=u.getUTCMilliseconds()}else v.call(this)};var p=d.utcOffset;d.utcOffset=function(u,w){var T=this.$utils().u;if(T(u))return this.$u?0:T(this.$offset)?p.call(this):this.$offset;if(typeof u=="string"&&(u=function(N){N===void 0&&(N="");var j=N.match(r);if(!j)return null;var E=(""+j[0]).match(n)||["-",0,0],D=E[0],l=60*+E[1]+ +E[2];return l===0?0:D==="+"?l:-l}(u),u===null))return this;var R=Math.abs(u)<=16?60*u:u,M=this;if(w)return M.$offset=R,M.$u=u===0,M;if(u!==0){var L=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(M=this.local().add(R+L,t)).$offset=R,M.$x.$localOffset=L}else M=this.utc();return M};var f=d.format;d.format=function(u){var w=u||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,w)},d.valueOf=function(){var u=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*u},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var g=d.toDate;d.toDate=function(u){return u==="s"&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var $=d.diff;d.diff=function(u,w,T){if(u&&this.$u===u.$u)return $.call(this,u,w,T);var R=this.local(),M=i(u).local();return $.call(R,M,w,T)}}})}(Pe)),Pe.exports}var jn=zn();const Pn=ie(jn);var Ae={exports:{}},An=Ae.exports,pt;function Ln(){return pt||(pt=1,function(s,c){(function(t,r){s.exports=r()})(An,function(){return function(t,r){r.prototype.weekday=function(n){var e=this.$locale().weekStart||0,a=this.$W,i=(a<e?a+7:a)-e;return this.$utils().u(n)?i:this.subtract(i,"day").add(n,"day")}}})}(Ae)),Ae.exports}var qn=Ln();const Nn=ie(qn);K.extend(Mn);K.extend(Zt);K.extend(Nn);K.extend(vn);K.extend(Pn);K.extend(kn);K.extend(cn);K.extend(hn);K.extend(en);K.extend(xn);K.extend(Fn);K.extend(sn);function Wn(s,c){const t=Q(g=>g.setCurrentTask),r=Q(g=>g.rawTasks),n=Q(g=>g.selectedScale),e=Q(g=>g.setDragOffset),a=Q(g=>g.clearDragOffset),i=Q(g=>g.setRawTasks),d=ee.useRef(null),h=ee.useRef(null),v=g=>{const $=g.target,u=$.closest('[data-mode="left"]')?"left":$.closest('[data-mode="right"]')?"right":"bar";d.current={mode:u,initialClientX:g.clientX,initialLeft:s.barLeft,initialWidth:s.barWidth,initialStartDate:s.startDate,initialEndDate:s.endDate,dragSteps:0},t(s),g.currentTarget.setPointerCapture(g.pointerId),h.current=g.pointerId,document.addEventListener("pointermove",p),document.addEventListener("pointerup",f),document.addEventListener("pointercancel",f)},p=g=>{const $=d.current;if(!$)return;const{basePxPerDragStep:u}=he[n],w=he[n],T=w.dragStepAmount*{minute:1,hour:60,day:60*24,week:60*24*7,month:60*24*30}[w.dragStepUnit]/w.basePxPerDragStep,R=u;let M=g.clientX-$.initialClientX;$.mode==="left"?(M=Math.min(M,$.initialWidth-R),M<0&&(M=Math.floor(M/u)*u)):$.mode==="right"&&(M=Math.max(M,-$.initialWidth+R),M>0&&(M=Math.ceil(M/u)*u));const L=Math.round(M/u);if(L===$.dragSteps)return;$.dragSteps=L;const N=$.dragSteps*u,j=N*T;let E=K($.initialStartDate),D=K($.initialEndDate);$.mode==="bar"?(E=E.add(j,"minute"),D=D.add(j,"minute")):$.mode==="left"?E=E.add(j,"minute"):$.mode==="right"&&(D=D.add(j,"minute"));const l=$.mode==="bar"?{offsetX:N,offsetWidth:0,offsetStartDate:E,offsetEndDate:D}:$.mode==="left"?{offsetX:N,offsetWidth:-N,offsetStartDate:E,offsetEndDate:D}:{offsetX:0,offsetWidth:N,offsetStartDate:E,offsetEndDate:D};e(s.id,l)},f=()=>{var M;document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",f),document.removeEventListener("pointercancel",f);const g=d.current;if(!g)return;const{dragStepAmount:$,dragStepUnit:u}=he[n],w=L=>K(L).add(g.dragSteps*$,u).toISOString(),T=r.map(L=>{if(L.id!==s.id)return L;switch(g.mode){case"bar":return{...L,startDate:w(g.initialStartDate),endDate:w(g.initialEndDate)};case"left":return{...L,startDate:w(g.initialStartDate)};default:return{...L,endDate:w(g.initialEndDate)}}});t(null),a(s.id),i(T),c==null||c(T);const R=h.current;R!==null&&((M=document.getElementById(`task-${s.id}`))==null||M.releasePointerCapture(R)),h.current=null,d.current=null};return{onPointerDown:v}}const Hn=s=>Se.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},Se.createElement("path",{d:"M10.2 4L10.2 20L7.8 20L7.8 4L10.2 4ZM15 4L15 20L12.6 20L12.6 4L15 4ZM5.4 15.0999L5.4 7.8999L1.8 11.4999L5.4 15.0999ZM17.4 7.8999L17.4 15.0999L21 11.4999L17.4 7.8999Z"}));function gt({side:s,hoveredHandle:c,setHoveredHandle:t}){return W.jsx("button",{"data-mode":s,onMouseEnter:()=>t(s),onMouseLeave:()=>t("none"),style:{position:"absolute",top:0,[s]:-18.4,width:32,height:"100%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"w-resize",background:"transparent",border:"none",padding:0},children:W.jsx(Hn,{style:{width:24,height:24,fill:"#919294",opacity:c===s?1:0}})})}function Un({currentTask:s,onTasksChange:c}){const t=ee.useRef(null),{onPointerDown:r}=Wn(s,c),n=Q(h=>h.dragOffsets[s.id]),e=(n==null?void 0:n.offsetX)??0,a=(n==null?void 0:n.offsetWidth)??0,[i,d]=ee.useState("none");return W.jsxs("div",{ref:t,id:`task-${s.id}`,onPointerDown:r,style:{position:"relative",display:"flex",alignItems:"center",background:"#D6D6D8",transform:`translateX(${s.barLeft+e}px)`,width:s.barWidth+a,height:Le/2,userSelect:"none"},children:[W.jsx(gt,{side:"left",hoveredHandle:i,setHoveredHandle:d}),W.jsx(gt,{side:"right",hoveredHandle:i,setHoveredHandle:d})]})}function Yn(s){return[...s].sort((c,t)=>{const r=c.sequence.split(".").map(Number),n=t.sequence.split(".").map(Number);for(let e=0;e<Math.max(r.length,n.length);e++){const a=r[e]||0,i=n[e]||0;if(a!==i)return a-i}return 0})}function Bn(s){return s.split(".").length-1}function Vn(s,c,t){const r=Yn(s);let n=0;return r.map(e=>{n++;const a=Bn(e.sequence),{barMarginLeftAmount:i,barWidthSize:d}=Gn(K(e.startDate),K(e.endDate),c,t);return{...e,barLeft:i,barWidth:d,depth:a,order:n,originalOrder:n}})}function Gn(s,c,t,r){if(!t.length)return{barMarginLeftAmount:0,barWidthSize:0};const{tickUnit:n,unitPerTick:e}=he[r];let a=0,i=0,d=!1;for(const h of t){const v=h.startDate,p=v.add(e,n),f=h.widthPx;if(p.isSameOrBefore(s)){a+=f;continue}if(v.isSameOrAfter(c))break;const g=s.isAfter(v)?s:v,$=c.isBefore(p)?c:p,u=p.diff(v),T=$.diff(g)/u;if(!d&&g.isAfter(v)){const R=g.diff(v)/u;a+=R*f}i+=T*f,d=!0}return{barMarginLeftAmount:a,barWidthSize:Math.max(i,1)}}function Xn(s){let c=1/0,t=-1/0;for(const{startDate:r,endDate:n}of Object.values(s)){const e=K(r).valueOf(),a=K(n).valueOf();Number.isNaN(e)||(c=Math.min(c,e)),Number.isNaN(a)||(t=Math.max(t,a))}return{minDate:K(c),maxDate:K(t)}}function Zn(s,c,t){const{tickUnit:r,unitPerTick:n}=he[t];return{paddedMinDate:s.subtract(tt*n,r),paddedMaxDate:c.add(tt*n,r)}}function Jn(s,c,t){const{tickUnit:r,unitPerTick:n,basePxPerDragStep:e,dragStepUnit:a,dragStepAmount:i}=he[t],d=[];let h=s.startOf(r);for(;h.isBefore(c);){const v=K(h).add(n,r).diff(h,a)/i;d.push({startDate:h,widthPx:v*e}),h=h.add(n,r)}return d}function yt(s,c){const{labelUnit:t,formatHeaderLabel:r}=he[c],n=[];let e=null,a="",i=0,d=null;return s.forEach((h,v)=>{const p=h.startDate.startOf(t),f=p.valueOf(),g=(r==null?void 0:r(p))??p.format();f===e?i+=h.widthPx:(e!==null&&n.push({label:a,widthPx:i,startDate:d}),e=f,a=g,i=h.widthPx,d=p),v===s.length-1&&n.push({label:a,widthPx:i,startDate:d})}),n}function Kn(s,c,t,r,n){const{minDate:e,maxDate:a}=Xn(Object.fromEntries(s.map(f=>[f.id,{startDate:f.startDate,endDate:f.endDate}]))),{paddedMinDate:i,paddedMaxDate:d}=Zn(e,a,c),h=Jn(i,d,c),v=yt(h,c),p=Vn(s,h,c);t(h),r(v),n(p)}const Qn=({bottomRowCells:s,selectedScale:c,width:t,scrollRef:r})=>{const n=he[c],[e,a]=ee.useState(0),i=Q(f=>f.currentTask),d=Q(f=>{if(!i)return"";const g=i.id;return f.dragOffsets[g]??""}),h=ee.useMemo(()=>yt(s,c),[s,c]),v=ee.useMemo(()=>{const f=[];for(const g of h){const $=f[f.length-1];$&&$.label===g.label?$.widthPx+=g.widthPx:f.push({...g})}return f},[h]),p=ee.useMemo(()=>{let f=0;return v.map(g=>{const $={...g,left:f};return f+=g.widthPx,$})},[v]);return ee.useEffect(()=>{const f=r.current;if(!f)return;const g=()=>{const $=f.scrollLeft;for(let u=p.length-1;u>=0;u--)if($>=p[u].left){a(u);break}};return f.addEventListener("scroll",g),g(),()=>f.removeEventListener("scroll",g)},[p]),W.jsx("div",{style:{width:`${t}px`,position:"sticky",top:0,zIndex:30,backgroundColor:"#F0F1F2"},children:W.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[W.jsx("div",{style:{position:"relative",display:"flex",height:"32px"},children:W.jsx("div",{style:{display:"flex"},children:p.map((f,g)=>{const $=g===e;return W.jsx("div",{style:{padding:"8px 0px",fontSize:"14px",fontWeight:"bold",textAlign:"left",width:`${f.widthPx}px`,zIndex:40,backgroundColor:"#F0F1F2",...$&&{position:"sticky",left:0}},children:W.jsx("p",{style:{margin:0,padding:"0 0px",whiteSpace:"nowrap"},children:f.label})},g)})})}),W.jsxs("div",{style:{borderTop:"1px solid #D6D6D8",display:"flex"},children:[W.jsx("div",{children:d&&i&&W.jsxs("div",{style:{position:"absolute",left:`${d.offsetX+((i==null?void 0:i.barLeft)??0)}px`,zIndex:60,backgroundColor:"#D6D6D8",width:`${d.offsetWidth+((i==null?void 0:i.barWidth)??0)}px`,height:"22px",display:"flex",alignItems:"center",borderRadius:"100px",opacity:.7,fontSize:"12px",overflow:"hidden",justifyContent:"space-between"},children:[c==="week"&&W.jsxs(W.Fragment,{children:[W.jsx("p",{children:d.offsetStartDate.format("h A")}),W.jsx("p",{children:d.offsetEndDate.format("h A")})]}),c==="year"&&W.jsxs(W.Fragment,{children:[W.jsx("p",{children:d.offsetStartDate.format("D")}),W.jsx("p",{children:d.offsetEndDate.format("D")})]})]})}),s.map((f,g)=>{var w;const $=((w=n.formatTickLabel)==null?void 0:w.call(n,f.startDate))||"",u=`bottom-row-${f.startDate}-${g}`;return W.jsx("div",{style:{position:"relative",lineHeight:"normal",padding:"4px 0",fontSize:"12px",width:`${f.widthPx}px`},children:$},u)})]})]})})};function er(s,c,t,r,n){if(t<0||n<0)return`M ${c} ${t} h ${(r-c)/2}`;const e=7,a=11,i=25,d=20,h=`M ${c} ${t}`,v=r-c,p=n-t,f=Math.abs(v),g=Math.abs(p),$=n<=t,u=n>=t,w=r>=c,T=r<=c,R=f>d,M=Math.abs(v/2),L=Math.abs(p/2);function N(){function l(){return(w||T)&&u&&!R?"downSmallHorizontal":(w||T)&&$&&!R?"upSmallHorizontal":u&&T?"downLeft":u&&w?"downRight":$&&T?"upLeft":$&&w?"upRight":""}let m=h;switch(l()){case"downRight":{m+=` h ${M-e}`,m+=` a ${e} ${e} 0 0 1 ${e} ${e}`,m+=` v ${p-e*2}`,m+=` a ${e} ${e} 0 0 0 ${e} ${e}`,m+=` h ${M-e}`;break}case"upRight":{m+=` h ${M-e}`,m+=` a ${e} ${e} 0 0 0 ${e} -${e}`,m+=` v -${g-e*2}`,m+=` a ${e} ${e} 0 0 1 ${e} -${e}`,m+=` h ${M-e}`;break}case"downLeft":case"downSmallHorizontal":{const Y=t+p/2;m+=` h ${a}`,m+=` a ${e} ${e} 0 0 1 ${e} ${e}`,m+=` v ${Y-t-e*2}`,m+=` a ${e} ${e} 0 0 1 -${e} ${e}`,m+=` h ${v-2*a}`,m+=` a ${e} ${e} 0 0 0 -${e} ${e}`,m+=` v ${Y-t-e*2}`,m+=` a ${e} ${e} 0 0 0 ${e} ${e}`,m+=` h ${a}`;break}case"upLeft":case"upSmallHorizontal":{const Y=t+p/2;m+=` h ${a}`,m+=` a ${e} ${e} 0 0 0 ${e} -${e}`,m+=` v -${t-Y-e*2}`,m+=` a ${e} ${e} 0 0 0 -${e} -${e}`,m+=` h ${v-2*a}`,m+=` a ${e} ${e} 0 0 1 -${e} -${e}`,m+=` v -${t-Y-e*2}`,m+=` a ${e} ${e} 0 0 1 ${e} -${e}`,m+=` h ${a}`;break}default:return m}return m}function j(){let l=h;return u&&T?(l+=` h ${i-a}`,l+=` a ${e} ${e} 0 0 1 ${e} ${e}`,l+=` v ${p-e*2}`,l+=` a ${e} ${e} 0 0 1 -${e} ${e}`,l+=` h ${v-e*2}`):u&&w?(l+=` h ${v+i-a}`,l+=` a ${e} ${e} 0 0 1 ${e} ${e}`,l+=` v ${p-e*2}`,l+=` a ${e} ${e} 0 0 1 -${e} ${e}`,l+=` h -${i-a}`):$&&T?(l+=` h ${i-a}`,l+=` a ${e} ${e} 0 0 0 ${e} -${e}`,l+=` v ${p+e*2}`,l+=` a ${e} ${e} 0 0 0 -${e} -${e}`,l+=` h ${v-i+a}`):$&&w&&(l+=` h ${v+i-a}`,l+=` a ${e} ${e} 0 0 0 ${e} -${e}`,l+=` v ${p+e*2}`,l+=` a ${e} ${e} 0 0 0 -${e} -${e}`,l+=` h -${i-a}`),l}function E(){function l(){return(w||T)&&u&&!R?"downSmallHorizontal":(w||T)&&$&&!R?"upSmallHorizontal":u&&T?"downLeft":u&&w?"downRight":$&&T?"upLeft":$&&w?"upRight":""}let m=h;switch(l()){case"downRight":case"downSmallHorizontal":{m+=" h -11",m+=` a ${e} ${e} 0 0 0 -${e} ${e}`,m+=` v ${L-e*2}`,m+=` a ${e} ${e} 0 0 0 ${e} ${e}`,m+=` h ${a*2+v}`,m+=` a ${e} ${e} 0 0 1 ${e} ${e}`,m+=` v ${L-e*2}`,m+=` a ${e} ${e} 0 0 1 -${e} ${e}`,m+=" h -11";break}case"upRight":case"upSmallHorizontal":{m+=" h -11",m+=` a ${e} ${e} 0 0 1 -${e} -${e}`,m+=` v ${-(L-e*2)}`,m+=` a ${e} ${e} 0 0 1 ${e} -${e}`,m+=` h ${a*2+v}`,m+=` a ${e} ${e} 0 0 0 ${e} -${e}`,m+=` v ${-(L-e*2)}`,m+=` a ${e} ${e} 0 0 0 -${e} -${e}`,m+=" h -11";break}case"downLeft":{m+=` h ${-M+e}`,m+=` a ${e} ${e} 0 0 0 -${e} ${e}`,m+=` v ${g-e*2}`,m+=` a ${e} ${e} 0 0 1 -${e} ${e}`,m+=` h ${-M+e}`;break}case"upLeft":{m+=` h ${-(M-e)}`,m+=` a ${e} ${e} 0 0 1 -${e} -${e}`,m+=` v ${-(g-e*2)}`,m+=` a ${e} ${e} 0 0 0 -${e} -${e}`,m+=` h ${-M+e}`;break}default:return m}return m}function D(){let l=h;return u&&T?(l+=` h ${v-i}`,l+=` a ${e} ${e} 0 0 0 -${e} ${e}`,l+=` v ${p-e*2}`,l+=` a ${e} ${e} 0 0 0 ${e} ${e}`,l+=` h ${i}`):u&&w?(l+=" h -25",l+=` a ${e} ${e} 0 0 0 -${e} ${e}`,l+=` v ${p-e*2}`,l+=` a ${e} ${e} 0 0 0 ${e} ${e}`,l+=` h ${v+i}`):$&&T?(l+=` h ${v-i}`,l+=` a ${e} ${e} 0 0 1 -${e} -${e}`,l+=` v ${p+e*2}`,l+=` a ${e} ${e} 0 0 1 ${e} -${e}`,l+=` h ${i}`):$&&w&&(l+=" h -25",l+=` a ${e} ${e} 0 0 1 -${e} -${e}`,l+=` v ${p+e*2}`,l+=` a ${e} ${e} 0 0 1 ${e} -${e}`,l+=` h ${v+i}`),l}switch(s){case"FS":return N();case"FF":return j();case"SF":return E();case"SS":return D();default:return`${h} L ${r} ${n}`}}function tr({transformedTasks:s,visibleRowIndexes:c}){const t=Q(e=>e.dragOffsets),r=new Set(c),n=[];for(const e of s){const a=e.order-1;if(!r.has(a))continue;const i=t[e.id],d=(i==null?void 0:i.offsetX)??0,h=(i==null?void 0:i.offsetWidth)??0;for(const v of e.dependencies??[]){const p=s.find(j=>j.id===v.targetId);if(!p)continue;const f=p.order-1,g=Le,$=f*g+g/2-4,u=a*g+g/2+4,w=p.barLeft,T=p.barLeft+p.barWidth,R=e.barLeft+d,M=R+e.barWidth+h,[L,N]={FS:[T,R],SS:[w,R],FF:[T,M],SF:[w,M]}[v.type];n.push({...v,fromX:L,fromY:$,toX:N,toY:u})}}return W.jsxs("svg",{style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.length*Le}px`,pointerEvents:"none",zIndex:5},children:[W.jsx("defs",{children:W.jsx("marker",{id:"arrowhead",markerWidth:"6",markerHeight:"6",refX:"5.25",refY:"3",orient:"auto",children:W.jsx("polygon",{points:"0 0, 6 3, 0 6"})})}),n.map((e,a)=>W.jsx("path",{d:er(e.type,e.fromX,e.fromY,e.toX,e.toY),markerEnd:"url(#arrowhead)",fill:"none",style:{stroke:"#000",strokeWidth:.75}},a))]})}function S(s,c){const t=new Date(s);return t.setUTCDate(t.getUTCDate()+c),t}function y(s,c,t=0,r=0){const n=new Date(s);return n.setUTCHours(c,t,r,0),n}function x(s){return s.toISOString().split(".")[0]+"Z"}const nr=new Date,b=y(new Date(nr),0,0,0),rr=[{id:"1",name:"Project Kickoff",startDate:x(y(S(b,0),9)),endDate:x(y(S(b,0),11)),parentId:null,sequence:"1",dependencies:[]},{id:"2",name:"Requirement Gathering",startDate:x(y(S(b,1),9)),endDate:x(y(S(b,4),17)),parentId:null,sequence:"2",dependencies:[{targetId:"1",type:"FS"}]},{id:"3",name:"Design Kickoff Meeting",startDate:x(y(S(b,3),9)),endDate:x(y(S(b,3),17)),parentId:null,sequence:"2.1",dependencies:[{targetId:"2",type:"SS"}]},{id:"4",name:"Technical Design Review",startDate:x(y(S(b,5),9)),endDate:x(y(S(b,7),17)),parentId:null,sequence:"3",dependencies:[{targetId:"3",type:"FS"}]},{id:"5",name:"Frontend Architecture Planning",startDate:x(y(S(b,8),9)),endDate:x(y(S(b,10),17)),parentId:null,sequence:"4",dependencies:[{targetId:"4",type:"FS"}]},{id:"6",name:"Backend Architecture Planning",startDate:x(y(S(b,9),9)),endDate:x(y(S(b,11),17)),parentId:null,sequence:"5",dependencies:[{targetId:"4",type:"FS"}]},{id:"7",name:"Frontend UI Design",startDate:x(y(S(b,12),9)),endDate:x(y(S(b,17),17)),parentId:"5",sequence:"4.1",dependencies:[{targetId:"5",type:"FS"}]},{id:"8",name:"Backend Database Schema Design",startDate:x(y(S(b,14),9)),endDate:x(y(S(b,17),17)),parentId:"6",sequence:"5.1",dependencies:[{targetId:"6",type:"FS"}]},{id:"9",name:"User Authentication Development",startDate:x(y(S(b,18),9)),endDate:x(y(S(b,22),17)),parentId:"7",sequence:"6",dependencies:[{targetId:"7",type:"FS"}]},{id:"10",name:"Payment Integration Development",startDate:x(y(S(b,18),9)),endDate:x(y(S(b,22),17)),parentId:"8",sequence:"7",dependencies:[{targetId:"8",type:"FS"}]},{id:"11",name:"API Endpoints Development",startDate:x(y(S(b,23),9)),endDate:x(y(S(b,27),17)),parentId:"9",sequence:"6.1",dependencies:[{targetId:"9",type:"SS"}]},{id:"12",name:"Frontend Component Development",startDate:x(y(S(b,23),9)),endDate:x(y(S(b,28),17)),parentId:"7",sequence:"4.2",dependencies:[{targetId:"7",type:"SS"}]},{id:"13",name:"Integration of Frontend and Backend",startDate:x(y(S(b,28),9)),endDate:x(y(S(b,31),17)),parentId:null,sequence:"8",dependencies:[{targetId:"11",type:"FS"},{targetId:"12",type:"FS"}]},{id:"14",name:"Performance Optimization",startDate:x(y(S(b,32),9)),endDate:x(y(S(b,35),17)),parentId:null,sequence:"9",dependencies:[{targetId:"13",type:"FS"}]},{id:"15",name:"User Acceptance Testing (UAT)",startDate:x(y(S(b,36),9)),endDate:x(y(S(b,39),17)),parentId:null,sequence:"10",dependencies:[{targetId:"14",type:"FS"}]},{id:"16",name:"Bug Fixing and Refinement",startDate:x(y(S(b,40),9)),endDate:x(y(S(b,43),17)),parentId:null,sequence:"11",dependencies:[{targetId:"15",type:"FS"}]},{id:"17",name:"Pre-Release Demo",startDate:x(y(S(b,44),9)),endDate:x(y(S(b,46),17)),parentId:null,sequence:"12",dependencies:[{targetId:"16",type:"FS"}]},{id:"18",name:"Final Release and Deployment",startDate:x(y(S(b,47),9)),endDate:x(y(S(b,50),17)),parentId:null,sequence:"13",dependencies:[{targetId:"17",type:"FS"}]},{id:"19",name:"Post-Release Monitoring",startDate:x(y(S(b,51),9)),endDate:x(y(S(b,53),17)),parentId:null,sequence:"14",dependencies:[{targetId:"18",type:"FS"}]},{id:"20",name:"Community Engagement and Feedback Collection",startDate:x(y(S(b,54),9)),endDate:x(y(S(b,57),17)),parentId:null,sequence:"15",dependencies:[{targetId:"19",type:"FS"}]},{id:"21",name:"Feature Iteration and Updates",startDate:x(y(S(b,58),9)),endDate:x(y(S(b,60),17)),parentId:null,sequence:"16",dependencies:[{targetId:"20",type:"SS"}]},{id:"22",name:"Maintenance and Bug Fixing",startDate:x(y(S(b,61),9)),endDate:x(y(S(b,63),17)),parentId:null,sequence:"17",dependencies:[{targetId:"21",type:"FS"}]},{id:"23",name:"Database Optimization",startDate:x(y(S(b,64),9)),endDate:x(y(S(b,67),17)),parentId:null,sequence:"18",dependencies:[{targetId:"22",type:"FS"}]},{id:"24",name:"Scaling Infrastructure",startDate:x(y(S(b,68),9)),endDate:x(y(S(b,71),17)),parentId:null,sequence:"19",dependencies:[{targetId:"23",type:"FS"}]},{id:"25",name:"Security Patch Deployment",startDate:x(y(S(b,72),9)),endDate:x(y(S(b,74),17)),parentId:null,sequence:"20",dependencies:[{targetId:"24",type:"FS"}]},{id:"26",name:"Code Refactoring",startDate:x(y(S(b,75),9)),endDate:x(y(S(b,77),17)),parentId:null,sequence:"21",dependencies:[{targetId:"25",type:"FS"}]},{id:"27",name:"Mobile Optimization",startDate:x(y(S(b,78),9)),endDate:x(y(S(b,80),17)),parentId:null,sequence:"22",dependencies:[{targetId:"26",type:"FS"}]},{id:"28",name:"Testing Environment Setup",startDate:x(y(S(b,81),9)),endDate:x(y(S(b,83),17)),parentId:null,sequence:"23",dependencies:[{targetId:"27",type:"FS"}]},{id:"29",name:"Load Testing",startDate:x(y(S(b,84),9)),endDate:x(y(S(b,86),17)),parentId:null,sequence:"24",dependencies:[{targetId:"28",type:"FS"}]},{id:"30",name:"API Rate Limiting Implementation",startDate:x(y(S(b,87),9)),endDate:x(y(S(b,89),17)),parentId:null,sequence:"25",dependencies:[{targetId:"29",type:"FS"}]},{id:"31",name:"Security Audit",startDate:x(y(S(b,90),9)),endDate:x(y(S(b,92),17)),parentId:null,sequence:"26",dependencies:[{targetId:"30",type:"FS"}]},{id:"32",name:"Documentation Update",startDate:x(y(S(b,93),9)),endDate:x(y(S(b,96),17)),parentId:null,sequence:"27",dependencies:[{targetId:"31",type:"FS"}]},{id:"33",name:"Feature Freeze",startDate:x(y(S(b,97),9)),endDate:x(y(S(b,99),17)),parentId:null,sequence:"28",dependencies:[{targetId:"32",type:"FS"}]},{id:"34",name:"Release Candidate Preparation",startDate:x(y(S(b,100),9)),endDate:x(y(S(b,102),17)),parentId:null,sequence:"29",dependencies:[{targetId:"33",type:"FS"}]},{id:"35",name:"User Documentation",startDate:x(y(S(b,103),9)),endDate:x(y(S(b,105),17)),parentId:null,sequence:"30",dependencies:[{targetId:"32",type:"SS"}]},{id:"36",name:"Final Testing",startDate:x(y(S(b,106),9)),endDate:x(y(S(b,109),17)),parentId:null,sequence:"31",dependencies:[{targetId:"34",type:"FS"}]},{id:"37",name:"Code Deployment",startDate:x(y(S(b,110),9)),endDate:x(y(S(b,112),17)),parentId:null,sequence:"32",dependencies:[{targetId:"36",type:"FS"}]},{id:"38",name:"Monitoring Setup",startDate:x(y(S(b,113),9)),endDate:x(y(S(b,115),17)),parentId:null,sequence:"33",dependencies:[{targetId:"37",type:"FS"}]},{id:"39",name:"Post-Deployment Testing",startDate:x(y(S(b,116),9)),endDate:x(y(S(b,118),17)),parentId:null,sequence:"34",dependencies:[{targetId:"38",type:"FS"}]},{id:"40",name:"Bug Tracking and Resolution",startDate:x(y(S(b,119),9)),endDate:x(y(S(b,121),17)),parentId:null,sequence:"35",dependencies:[{targetId:"39",type:"FS"}]},{id:"41",name:"Feature Enhancement Planning",startDate:x(y(S(b,122),9)),endDate:x(y(S(b,124),17)),parentId:null,sequence:"36",dependencies:[{targetId:"40",type:"FS"}]},{id:"42",name:"New Feature Design",startDate:x(y(S(b,125),9)),endDate:x(y(S(b,128),17)),parentId:"41",sequence:"36.1",dependencies:[{targetId:"41",type:"FS"}]},{id:"43",name:"New Feature Development",startDate:x(y(S(b,129),9)),endDate:x(y(S(b,133),17)),parentId:"42",sequence:"36.2",dependencies:[{targetId:"42",type:"FS"}]},{id:"44",name:"Testing of New Feature",startDate:x(y(S(b,134),9)),endDate:x(y(S(b,136),17)),parentId:"43",sequence:"36.3",dependencies:[{targetId:"43",type:"FS"}]},{id:"45",name:"User Acceptance Testing (UAT) for New Feature",startDate:x(y(S(b,137),9)),endDate:x(y(S(b,140),17)),parentId:"44",sequence:"36.4",dependencies:[{targetId:"44",type:"FS"}]},{id:"46",name:"Feature Release",startDate:x(y(S(b,141),9)),endDate:x(y(S(b,143),17)),parentId:null,sequence:"37",dependencies:[{targetId:"45",type:"FS"}]},{id:"47",name:"Performance Testing for New Feature",startDate:x(y(S(b,144),9)),endDate:x(y(S(b,146),17)),parentId:null,sequence:"38",dependencies:[{targetId:"46",type:"FS"}]},{id:"48",name:"Final Code Review for New Feature",startDate:x(y(S(b,147),9)),endDate:x(y(S(b,149),17)),parentId:null,sequence:"39",dependencies:[{targetId:"47",type:"FS"}]},{id:"49",name:"Production Deployment",startDate:x(y(S(b,150),9)),endDate:x(y(S(b,152),17)),parentId:null,sequence:"40",dependencies:[{targetId:"48",type:"FS"}]},{id:"50",name:"Post-Deployment Support",startDate:x(y(S(b,153),9)),endDate:x(y(S(b,156),17)),parentId:null,sequence:"41",dependencies:[{targetId:"49",type:"FS"}]}];function sr({tasks:s,onTasksChange:c,ganttHeight:t,columnWidth:r}){var D;const n=Q(l=>l.rawTasks),e=Q(l=>l.setRawTasks),a=Q(l=>l.transformedTasks),i=Q(l=>l.setTransformedTasks),d=Q(l=>l.selectedScale),h=Q(l=>l.setSelectedScale),v=Q(l=>l.bottomRowCells),p=Q(l=>l.setBottomRowCells),f=Q(l=>l.topHeaderGroups),g=Q(l=>l.setTopHeaderGroups);ee.useEffect(()=>{s.length===0?e(rr):e(s)},[s]),ee.useEffect(()=>{n.length&&Kn(n,d,p,g,i)},[n,d]);const $=ee.useRef(null),u=et({count:a.length,getScrollElement:()=>$.current,estimateSize:()=>Le,overscan:5}),w=et({horizontal:!0,count:v.length,getScrollElement:()=>$.current,estimateSize:l=>{var m;return((m=v[l])==null?void 0:m.widthPx)??32},overscan:5}),T=w.getVirtualItems(),R=((D=T[0])==null?void 0:D.start)??0,M=T[T.length-1],L=M?M.start+M.size:0;function N(l,m,C,Y){return l+m>=C&&l<=Y}const j=ee.useMemo(()=>v.reduce((l,m)=>l+m.widthPx,0),[v]),E=u.getVirtualItems().map(l=>l.index);return ee.useEffect(()=>{if(!v.length)return;const l=requestAnimationFrame(()=>{w.measure()});return()=>cancelAnimationFrame(l)},[v,w]),W.jsx("section",{style:{position:"relative",overflow:"auto",height:typeof t=="number"?`${t}px`:t,width:typeof r=="number"?`${r}px`:r,backgroundColor:"#FFF",fontFamily:"Noto Sans, sans-serif"},children:W.jsx("div",{style:{width:"100%",height:"100%",overflow:"hidden",backgroundColor:"#FFF"},children:W.jsxs("section",{style:{position:"relative",display:"flex",height:"100%",width:"100%",flexDirection:"column"},children:[W.jsx("div",{style:{position:"absolute",top:"3px",right:"16px",zIndex:50,display:"flex",justifyContent:"flex-end",alignItems:"center"},children:W.jsx("select",{style:{padding:"4px 8px",fontSize:"14px",borderRadius:"6px",border:"1px solid #E6E7E9"},value:d,onChange:l=>{const m=l.target.value;h(m)},children:Object.keys(he).map(l=>W.jsx("option",{value:l,children:l},l))})}),W.jsxs("div",{ref:$,className:"List",style:{height:"100%",width:"100%",overflow:"auto"},children:[W.jsx(Qn,{topHeaderGroups:f,bottomRowCells:v,selectedScale:d,width:j,scrollRef:$}),W.jsxs("div",{style:{height:`${u.getTotalSize()}px`,width:`${j}px`,position:"relative"},children:[W.jsx(tr,{transformedTasks:a,visibleRowIndexes:E}),u.getVirtualItems().map(l=>{const m=a[l.index],C=m.barLeft??0,Y=m.barWidth??0,V=N(C,Y,R,L);return W.jsx("div",{style:{position:"absolute",top:0,left:0,height:`${l.size-1}px`,transform:`translateY(${l.start}px)`,display:"flex",width:"100%",alignItems:"center",borderBottom:"1px solid #E6E7E9"},children:V&&W.jsx(W.Fragment,{children:W.jsx(Un,{currentTask:m,onTasksChange:c})})},l.index)})]})]})]})})})}exports.ReactGanttChart=sr;
|
package/dist/index.css
CHANGED
|
@@ -1 +1,126 @@
|
|
|
1
|
-
@import 'tailwindcss';
|
|
1
|
+
/* @import 'tailwindcss'; */
|
|
2
|
+
/*
|
|
3
|
+
html,
|
|
4
|
+
body,
|
|
5
|
+
div,
|
|
6
|
+
span,
|
|
7
|
+
applet,
|
|
8
|
+
object,
|
|
9
|
+
iframe,
|
|
10
|
+
h1,
|
|
11
|
+
h2,
|
|
12
|
+
h3,
|
|
13
|
+
h4,
|
|
14
|
+
h5,
|
|
15
|
+
h6,
|
|
16
|
+
p,
|
|
17
|
+
blockquote,
|
|
18
|
+
pre,
|
|
19
|
+
a,
|
|
20
|
+
abbr,
|
|
21
|
+
acronym,
|
|
22
|
+
address,
|
|
23
|
+
big,
|
|
24
|
+
cite,
|
|
25
|
+
code,
|
|
26
|
+
del,
|
|
27
|
+
dfn,
|
|
28
|
+
em,
|
|
29
|
+
img,
|
|
30
|
+
ins,
|
|
31
|
+
kbd,
|
|
32
|
+
q,
|
|
33
|
+
s,
|
|
34
|
+
samp,
|
|
35
|
+
small,
|
|
36
|
+
strike,
|
|
37
|
+
strong,
|
|
38
|
+
sub,
|
|
39
|
+
sup,
|
|
40
|
+
tt,
|
|
41
|
+
var,
|
|
42
|
+
b,
|
|
43
|
+
u,
|
|
44
|
+
i,
|
|
45
|
+
center,
|
|
46
|
+
dl,
|
|
47
|
+
dt,
|
|
48
|
+
dd,
|
|
49
|
+
ol,
|
|
50
|
+
ul,
|
|
51
|
+
li,
|
|
52
|
+
fieldset,
|
|
53
|
+
form,
|
|
54
|
+
label,
|
|
55
|
+
legend,
|
|
56
|
+
table,
|
|
57
|
+
caption,
|
|
58
|
+
tbody,
|
|
59
|
+
tfoot,
|
|
60
|
+
thead,
|
|
61
|
+
tr,
|
|
62
|
+
th,
|
|
63
|
+
td,
|
|
64
|
+
article,
|
|
65
|
+
aside,
|
|
66
|
+
canvas,
|
|
67
|
+
details,
|
|
68
|
+
embed,
|
|
69
|
+
figure,
|
|
70
|
+
figcaption,
|
|
71
|
+
footer,
|
|
72
|
+
header,
|
|
73
|
+
hgroup,
|
|
74
|
+
menu,
|
|
75
|
+
nav,
|
|
76
|
+
output,
|
|
77
|
+
ruby,
|
|
78
|
+
section,
|
|
79
|
+
summary,
|
|
80
|
+
time,
|
|
81
|
+
mark,
|
|
82
|
+
audio,
|
|
83
|
+
video {
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding: 0;
|
|
86
|
+
border: 0;
|
|
87
|
+
font-size: 100%;
|
|
88
|
+
font: inherit;
|
|
89
|
+
vertical-align: baseline;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
article,
|
|
93
|
+
aside,
|
|
94
|
+
details,
|
|
95
|
+
figcaption,
|
|
96
|
+
figure,
|
|
97
|
+
footer,
|
|
98
|
+
header,
|
|
99
|
+
hgroup,
|
|
100
|
+
menu,
|
|
101
|
+
nav,
|
|
102
|
+
section {
|
|
103
|
+
display: block;
|
|
104
|
+
}
|
|
105
|
+
body {
|
|
106
|
+
line-height: 1;
|
|
107
|
+
}
|
|
108
|
+
ol,
|
|
109
|
+
ul {
|
|
110
|
+
list-style: none;
|
|
111
|
+
}
|
|
112
|
+
blockquote,
|
|
113
|
+
q {
|
|
114
|
+
quotes: none;
|
|
115
|
+
}
|
|
116
|
+
blockquote:before,
|
|
117
|
+
blockquote:after,
|
|
118
|
+
q:before,
|
|
119
|
+
q:after {
|
|
120
|
+
content: '';
|
|
121
|
+
content: none;
|
|
122
|
+
}
|
|
123
|
+
table {
|
|
124
|
+
border-collapse: collapse;
|
|
125
|
+
border-spacing: 0;
|
|
126
|
+
} */
|