@bryntum/engine-thin-trial 7.2.0 → 7.2.2
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/lib/ChronoGraph/chrono/Graph.js +1 -1
- package/lib/ChronoGraph/chrono/Identifier.js +1 -1
- package/lib/ChronoGraph/chrono/Quark.js +1 -1
- package/lib/ChronoGraph/chrono/Transaction.js +1 -1
- package/lib/ChronoGraph/chrono/TransactionWalkDepth.js +1 -1
- package/lib/ChronoGraph/util/LeveledQueue.js +1 -1
- package/lib/calendar/CalendarIntervalMixin.js +1 -1
- package/lib/chrono/ModelFieldAtom.js +1 -1
- package/lib/chrono/Replica.js +1 -1
- package/lib/quark/model/scheduler_basic/ChronoAbstractProjectMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/ConstrainedEarlyEventMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/HasEffortMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProEventSegment.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProHasAssignmentsMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProHasTimePhasedAssignmentsMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SchedulerProTimePhasedAssignmentMixin.js +1 -1
- package/lib/quark/model/scheduler_pro/SplitEventMixin.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function U(a,b){return _enb(b- -0x214,a);}const c=a();while(!![]){try{const d=parseInt(U(-0x2c,-0x3b))/0x1+parseInt(U(-0x53,-0x3e))/0x2*(parseInt(U(0x1b,0x3d))/0x3)+-parseInt(U(0x4a,-0xc))/0x4*(parseInt(U(-0x19,0x3a))/0x5)+parseInt(U(-0x44,-0x24))/0x6+-parseInt(U(-0x9,-0x8))/0x7*(-parseInt(U(-0x1b,0x14))/0x8)+parseInt(U(-0x2,-0x1a))/0x9+-parseInt(U(-0x6b,-0x40))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x849b9));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[V(0xba,0xe0)](b,e):f,j;if(typeof Reflect===V(0xf5,0xdd)&&typeof Reflect[V(0xf,0x42)]===V(0x83,0x53))h=Reflect[V(-0xd,0x42)](a,b,e,f);else for(var k=a[V(0xdb,0xce)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function V(a,b){return _enb(b- -0x177,a);}return g>0x3&&h&&Object[V(0x75,0x3f)](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1ac;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enX(a,b){return _enb(a-0x3e4,b);}import{CalculateProposed,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar as _enc,EndDateVar as _end,StartDateVar as _ene}from'../scheduler_basic/BaseEventDispatcher.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';import{SplitEventMixin}from'./SplitEventMixin.js';import{DurationVar,EffortVar,EndVar,StartVar,TimePhasedDuration,TimePhasedEffort,TimePhasedEndDate,TimePhasedEventAssignmentCycleResolutionContext,TimePhasedEventAssignmentDispatcher,TimePhasedEventAssignmentDispatcherIdentifier,TimePhasedStartDate}from'./TimePhasedEventAssignmentDispatcher.js';function _ena(){const b7=['calculateAssignmentUnits','shouldSkipNonWorkingTime','resource','add','set','effort','end','unscheduled','ion','calculateStartDate','4169964aVFuGk','regularAssignmentsByCalendar','hasInputOnDuration','hasInputOnlyOnEffort','get','useEventAvailabilityIterator','HasProposedValue','ignoreTimePhasedData','calculateAssignmentsTypeSelector','isTimePhased','489087tVJgZo','endDate','calculateDuration','minAssignmentProposedStartDate','timePhasedDispatcher','calculateProposedEndOffsetRaw','effortDriven','delete','calculateProjectedXDateByEffort','timePhasedData','effectiveDirection','Backward','childEvents','call','12tJfgMn','selector','effectiveCalendar','proposedEndDateArgs','6834982QvDosN','skipNonWorkingTimeInDurationWhenSchedulingManually','hasInputOnAssignments','MAX_VALUE','proposedTotalUnits','calculateTotalAssignmentsEffort','getDateShifter','prototype','proposedStartOffsets','hasPreviousEffortValue','proposedMirror','isChangingOnlyEffort','isChangingOnlyDuration','expandTrailingAssigmentsByEffort','time','calculateAssignmentsByCalendar','positioning','proposedEndOffset','FixedEffort','effortUnit','forEach','proposedStartDateMin','addProposedValueFlag','calculateTimePhasedDispatcher','effectiveCalendarsCombination','calculateProjectedDuration','Millisecond','forEachAvailabilityInterval','8muFUXn','isPhantomTimePhased','prepare','ignoreResourceCalendar','Forward','calculateMaxAssignmentProposedEndDate','calculateMinAssignmentProposedStartDate','effectiveSchedulingMode','FixedDuration','hasInputOnEndDate','maxCalendarRange','isDurationDefinedByEffort','has','some','input','dispatcher','proposedEndDate','$convertDuration','calculateProjectedEffort','calculateEffort','proposedStartOffset','getTime','hasPhantomTimePhasedAssignments','minAssignment','event','sort','resolution','isManuallyScheduled','assigned','length','size','calculateProposedEndDateMax','getBaseOptionsForEffortCalculations','calculateProposedStartDateMin','calculateProposedStartDate','formulaId','collectAssignmentsByCalendar','startDate','714745fPModj','calculateProposedEndOffsets','start','789PrcTCs','calculateEndDate','maxAssignmentProposedEndDate','object','Unknown\x20duration\x20scenario','hasInputOnEffort','getOwnPropertyDescriptor','isChangingOnlyEffortOnAssignment','isConstrainedAlongDirection','move','push','isSegmented','collectInfo','write','isUserTimePhased','isForward','skipNonWorkingTime','calculateTimePhasedIntervalsCache','minOffset','defineProperty','assignment','proposedEndDateMax','decorate','duration','hasTimePhasedInput','getCalendarsWorkStatus','assignmentsTypeSelector','calculateProposedAssignmentDuration','direction','hasProposedAssignments','getBaseOptionsForDurationCalculations','calculateMaxAssignmentProposedEndDateIncludingPhantom','graph','progressing','assignmentsByCalendar','expandTrailingAssignmentsByDuration','proposedStartDate','proposedAssignmentDuration','getProject','function','project','assign','hasOnlyTimePhasedAssignments','Normal','calculateProposedEndDate','type','calculateProjectedXDateWithDuration','hasUnitsOnAllAssignments','hasOnlyRegularAssignments','9463790vyFCTn','proposedEndOffsets','1362lsvpyK','calculateProjectedXDate','isChangingOnlyEndDate','13521lrSZBF','calculateRegularAssignmentsByCalendar','calculateProposedStartOffsets','calculateEffortPure','expandTrailingAssigmentsByDates','calculateSelector','max','timePhasedIntervalsCache','purpose','ignoreSegments','phantomEndOffset','units','getCalendarsWorking'];_ena=function(){return b7;};return _ena();}const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){function W(a,b){return _enb(a- -0x1f6,b);}this[W(0xd,0x5a)]=[];}[_enX(0x591,0x5c0)](a){function Y(a,b){return _enX(a- -0x628,b);}this['timePhasedData'][Y(-0x97,-0xe0)]({'time':a['startDate'],'type':'start','assignment':a[Y(-0x8d,-0xe2)]},{'time':a[Y(-0x49,-0x7a)],'type':Y(-0x58,-0x40),'assignment':a[Y(-0x8d,-0xa6)]});}[_enX(0x60e,0x606)](){function Z(a,b){return _enX(b- -0x375,a);}this[Z(0x22b,0x272)][Z(0x2a4,0x2b0)]((a,b)=>{return a['time']-b['time'];});}['move'](a,b,c,d,e,f){const g=this['timePhasedData'][b];if(a&&b===this[a0(0x224,0x229)][a0(0x289,0x26b)]-0x1){if(g[a0(0x285,0x240)]<=c){e[a0(0x1ff,0x227)](g[a0(0x19a,0x1dd)]);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a0(0x251,0x240)]){e[a0(0x277,0x227)](g['assignment']);if(f(d,c,e)===![])return-0x1;return b;}}const h=a?0x1:-0x1;let j=c;let k,l;for(k=b;k>=0x0&&k<this[a0(0x22d,0x229)][a0(0x2bb,0x26b)];k+=h){const n=this[a0(0x1d9,0x229)][k];const o=a?n[a0(0x1fd,0x240)]>=d:n['time']<=d;if(o){if(a){if(f(j,d,e)===![])return-0x1;}else{if(f(d,j,e)===![])return-0x1;}return k;}const p=a?n[a0(0x1ee,0x240)]<c:n['time']>c;if(!p){if(j[a0(0x232,0x263)]()!==n[a0(0x221,0x240)]['getTime']()){if(a){if(f(j,n['time'],e)===![])return-0x1;}else{if(f(n['time'],j,e)===![])return-0x1;}}const q=a?n[a0(0x1a6,0x1f6)]===a0(0x2bb,0x276):n['type']===a0(0x25a,0x212);if(q)e[a0(0x1d2,0x20f)](n[a0(0x22c,0x1dd)]);else e[a0(0x238,0x227)](n[a0(0x18e,0x1dd)]);}l=k;j=n['time'];}if(l===void 0x0){return k;}function a0(a,b){return _enX(b- -0x3be,a);}const m=this['timePhasedData'][l];if(a){e[a0(0x24f,0x227)](m[a0(0x202,0x1dd)]);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a0(0x256,0x227)](m['assignment']);if(f(d,j,e)===![])return-0x1;}return l;}}class TimePhasedEventSelector{constructor(){this[a1(0x2e3,0x334)]=null;this['dispatcher']=null;this[a1(0x383,0x34a)]=![];this[a1(0x318,0x2e6)]=![];function a1(a,b){return _enX(b- -0x2f0,a);}this['hasInputOnEndDate']=![];this[a1(0x323,0x2ff)]=null;this[a1(0x2c9,0x302)]=![];this[a1(0x2c7,0x309)]=![];}get['isChangingOnlyEffort'](){function a2(a,b){return _enX(b- -0x6a0,a);}const a=this[a2(-0x78,-0x85)];return this['hasInputOnEffort']&&!Boolean(a[a2(-0x46,-0x86)][a2(-0x119,-0xc8)](StartVar)&VariableInputState[a2(-0xc0,-0xc6)])&&!Boolean(a[a2(-0x30,-0x86)][a2(-0x109,-0xc8)](EndVar)&VariableInputState[a2(-0x96,-0xc6)])&&!Boolean(a[a2(-0x95,-0x86)][a2(-0xcb,-0xc8)](DurationVar)&VariableInputState['HasProposedValue'])&&!a[a2(-0x13a,-0x101)];}get[_enX(0x5fc,0x652)](){const a=this[a3(0x62a,0x5ee)];function a3(a,b){return _enX(b- -0x2d,a);}return this[a3(0x5d9,0x5a9)]&&!Boolean(a['input'][a3(0x5c1,0x5ab)](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a3(0x5ec,0x5ed)]['get'](EndVar)&VariableInputState[a3(0x5f8,0x5ad)])&&!Boolean(a['input'][a3(0x5cf,0x5ab)](EffortVar)&VariableInputState[a3(0x589,0x5ad)])&&!a[a3(0x570,0x572)];}get[_enX(0x5bc,0x583)](){function a4(a,b){return _enX(b- -0x43d,a);}const a=this[a4(0x199,0x1de)];const b=this['proposedEndDateArgs'];return this[a4(0x1b9,0x1d8)]&&(!b||!b[0x0])&&!Boolean(a[a4(0x195,0x1dd)]['get'](StartVar)&VariableInputState[a4(0x19d,0x19d)])&&!Boolean(a[a4(0x194,0x1dd)][a4(0x1dd,0x19b)](DurationVar)&VariableInputState['HasProposedValue'])&&!Boolean(a['input'][a4(0x1ea,0x19b)](EffortVar)&VariableInputState[a4(0x176,0x19d)])&&!a[a4(0x12d,0x162)];}*[_enX(0x593,0x5c8)](){const a=this['event'];this[a5(0x237,0x24d)]=yield HasProposedNotPreviousValue(a['$']['effort']);this[a5(0x1dc,0x1e9)]=yield HasProposedNotPreviousValue(a['$'][a5(0x169,0x1b1)]);function a5(a,b){return _enX(b- -0x3ed,a);}this['hasInputOnEndDate']=yield HasProposedNotPreviousValue(a['$'][a5(0x23b,0x1f2)]);this[a5(0x258,0x22e)]=yield a['$'][a5(0x20e,0x1f5)];this['proposedEndDateArgs']=yield ProposedArgumentsOf(a['$'][a5(0x240,0x1f2)]);this[a5(0x1fe,0x205)]=yield*a[a5(0x1ea,0x1b7)]();this[a5(0x1c2,0x20c)]=yield HasPreviousValue(a['$'][a5(0x235,0x1e2)]);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a6(0x44,0x6f)]=null;this['assigned']=null;function a6(a,b){return _enX(b- -0x5b5,a);}this[a6(0x1f,0x2)]=null;this[a6(-0x57,-0x4)]=null;this[a6(0x58,0x1)]=null;this['hasPhantomTimePhasedAssignments']=null;}*[_enX(0x593,0x5da)](){const a=this[a7(0x51c,0x4d3)];const b=this[a7(0x492,0x4d7)]=yield a['$'][a7(0x4e9,0x4d7)];function a7(a,b){return _enX(b- -0x151,a);}if(b[a7(0x4a0,0x4d9)]===0x0){this[a7(0x463,0x466)]=!![];this[a7(0x40c,0x460)]=![];this[a7(0x4c5,0x4d1)]=![];this[a7(0x442,0x465)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$'][a7(0x4f1,0x49c)];if(this['hasOnlyRegularAssignments']===null&&e[a7(0x4c7,0x48c)]){this[a7(0x412,0x466)]=![];c++;}if(this[a7(0x43c,0x460)]===null&&!e[a7(0x486,0x48c)]){this[a7(0x496,0x460)]=![];c++;}if(this[a7(0x501,0x4d1)]===null&&e[a7(0x472,0x4bc)]){this[a7(0x4d5,0x4d1)]=!![];c++;}if(this[a7(0x4af,0x465)]===null&&!e['hasPreviousValueForUnits']){this[a7(0x490,0x465)]=![];c++;}if(c===0x4)break;}if(this[a7(0x4a9,0x466)]===null)this[a7(0x459,0x466)]=!![];if(this[a7(0x44a,0x460)]===null)this[a7(0x421,0x460)]=!![];if(this[a7(0x4ee,0x4d1)]===null)this[a7(0x510,0x4d1)]=![];if(this['hasUnitsOnAllAssignments']===null)this[a7(0x494,0x465)]=!![];}}}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{const b=a[a8(-0x16a,-0x148)];class c extends a{*['calculateProposedTotalUnits'](){function a9(a,b){return a8(b-0x2b6,a);}const d=yield this['$'][a9(0x1a3,0x17d)];let e=0x0;for(const f of d){const g=yield f['$'][a9(0xf0,0x121)];if(!g)continue;const h=yield ProposedOrPreviousValueOf(f['$'][a9(0xe7,0x11d)]);e+=h;}return e;}*['calculateProposedStartDate'](){function aa(a,b){return a8(a-0x174,b);}return yield ProposedOrPreviousValueOf(this['$'][aa(0x44,0x88)]);}*['calculateProposedEndDate'](){function ab(a,b){return a8(b-0x4f2,a);}return yield ProposedOrPreviousValueOf(this['$'][ab(0x3a7,0x370)]);}*[a8(-0x134,-0x16d)](){function ac(a,b){return a8(a-0x352,b);}const d=yield this['$']['proposedStartDate'];const e=yield this['$'][ac(0x1d2,0x219)];return d<e?d:e??d;}*['calculateProposedEndDateMax'](){const d=yield this['$']['proposedEndDate'];const e=yield this['$'][ad(-0x63,-0x79)];function ad(a,b){return a8(a-0xc7,b);}return d>e?d:e??d;}*['calculateProposedStartOffsets'](){function ae(a,b){return a8(b-0x499,a);}const d=yield this['$'][ae(0x31f,0x360)];const e=new Map();let f;let g=Number[ae(0x302,0x32b)];for(const h of d){if(yield*h[ae(0x2c6,0x315)]()){const i=yield*h['calculateProposedStartOffsetRaw']();e[ae(0x30b,0x306)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[a8(-0x12e,-0x168)](){const d=yield this['$'][af(0x13a,0xf7)];const e=new Map();let f;function af(a,b){return a8(a-0x273,b);}let g=Number['MAX_VALUE'];for(const h of d){if(yield*h[af(0xef,0x138)]()){const i=yield*h[af(0xf5,0xc4)]();e[af(0xe0,0x131)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*['calculateAssignmentsTypeSelector'](){function ag(a,b){return a8(b-0x2af,a);}const d=new TimePhasedEventAssignmentTypeSelector();d['event']=this;yield*d[ag(0xa3,0xe1)]();return d;}*[a8(-0x19f,-0x1a1)](){const d=new TimePhasedEventSelector();function ah(a,b){return a8(a-0x2c,b);}d[ah(-0x111,-0xbf)]=this;yield*d[ah(-0x1a2,-0x1aa)]();return d;}*[a8(-0x15a,-0x126)](d){const e=TimePhasedEventAssignmentDispatcher['new']({'context':TimePhasedEventAssignmentCycleResolutionContext});function ai(a,b){return a8(a-0x74b,b);}e['collectInfo'](d,this['$'][ai(0x61b,0x5cf)],StartVar);e[ai(0x57d,0x5ac)](d,this['$'][ai(0x5c9,0x5ae)],EndVar);e[ai(0x57d,0x5b9)](d,this['$'][ai(0x588,0x5b9)],DurationVar);e[ai(0x57d,0x5a0)](d,this['$'][ai(0x5b9,0x5c3)],EffortVar);const f=yield this['$']['assigned'];const g=[];const h=[];const i=[];const j=[];for(const k of f){g['push']([null,yield HasProposedNotPreviousValue(k['$'][ai(0x61b,0x608)])]);h[ai(0x57b,0x5a1)]([null,yield HasProposedNotPreviousValue(k['$']['endDate'])]);i[ai(0x57b,0x557)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x588,0x5b8)])]);j['push']([null,yield HasProposedNotPreviousValue(k['$']['effort'])]);}if(g[ai(0x603,0x5cc)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedStartDate);}if(h[ai(0x603,0x618)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedEndDate);}if(i[ai(0x603,0x653)](([l,m])=>m)){e[ai(0x5f0,0x5f5)](TimePhasedDuration);}if(j[ai(0x603,0x5ce)](([l,m])=>m)){e[ai(0x5f0,0x5a5)](TimePhasedEffort);}return e;}*[a8(-0x1c9,-0x207)](){const d=new Map();const e=new Map();const f=yield this['$'][aj(0x337,0x2f9)];for(const g of f){if(yield*g['isTimePhased']()){e[aj(0x2dd,0x29d)](g,{'proposedStartOffset':yield g['$'][aj(0x32f,0x324)],'proposedEndOffset':yield g['$'][aj(0x310,0x2f1)]});}}function aj(a,b){return a8(a-0x470,b);}return function*(h,i){const j=String(i[ak(0x5da,0x5f1)]())+'/'+(h?'1':'0');let k=d[ak(0x591,0x5c8)](j);function ak(a,b){return aj(a-0x2aa,b);}if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[ak(0x56e,0x551)](i,!![],m['proposedStartOffset'],TimeUnit[ak(0x5c3,0x58c)]);n=yield*l[ak(0x550,0x559)](n,!![]);o=yield*l[ak(0x574,0x5a9)](n,!![]);}else{const p=yield l['$']['selector'];o=yield*l[ak(0x56e,0x56f)](i,![],p['isUserTimePhased']?m['proposedEndOffset']:yield l['$'][ak(0x580,0x576)],TimeUnit[ak(0x5c3,0x580)]);n=yield*l[ak(0x574,0x5c9)](o,![]);}if(n&&o)k[ak(0x54a,0x505)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k[ak(0x5c7,0x5ca)]();d[ak(0x587,0x533)](j,k);return k;};}*[a8(-0x18e,-0x1e3)](){const d=yield*this[al(-0x115,-0x115)]();function al(a,b){return a8(b-0x95,a);}if(d||(yield this['$'][al(-0x144,-0x13a)])){return yield*super['calculateStartDate']();}else{const e=yield this['$'][al(-0xdc,-0xe4)];const f=yield*this[al(-0x6d,-0x8f)](e[al(-0x17d,-0x129)]);const g=yield this['$']['dispatcher'];const h=yield this['$'][al(-0x10f,-0xea)];const i=yield PreviousValueOf(this['$']['startDate']);if(!(yield*this[al(-0xbb,-0xa5)]())&&!(yield this['$'][al(-0xc7,-0xfb)])&&f){if(g[al(-0x7f,-0xa6)][al(-0xc1,-0xf4)](_ene)===CalculateProposed&&i!=null&&!h[al(-0x172,-0x12d)]){const j=yield ProposedOrPrevious;if(e[al(-0x15c,-0x129)]===Direction[al(-0x76,-0xbc)]){yield*this[al(-0xc7,-0x10b)](i,j,!![]);}else{if(j<i){yield*this[al(-0x150,-0x10b)](i,j,![]);}}}return yield*super[al(-0x135,-0xf9)]();}else{if(e[al(-0x159,-0x129)]===Direction[al(-0x92,-0xbc)]){const k=yield*super['calculateStartDate']();const l=yield this['$'][al(-0x13a,-0xeb)];return l?l<k?l:k:k;}else{if(g[al(-0xba,-0xa6)]['get'](_ene)===CalculateProposed&&h[al(-0xe1,-0x12d)]){return yield*this[al(-0x121,-0x117)](yield this['$'][al(-0x9a,-0xed)],![],yield this['$'][al(-0x139,-0x12e)]);}if(g[al(-0xa0,-0xa6)][al(-0x11d,-0xf4)](_ene)===CalculateProposed&&!h[al(-0x12a,-0x12d)]&&i!=null){const m=yield ProposedOrPrevious;yield*this[al(-0x108,-0x10b)](i,m,![]);}return yield*super[al(-0xc0,-0xf9)]();}}}}*[a8(-0x12b,-0x15b)](){function am(a,b){return a8(b-0x574,a);}const d=yield*this[am(0x3ec,0x3ca)]();if(d||(yield this['$'][am(0x38a,0x3a5)])){return yield*super['calculateEndDate']();}else{const e=yield this['$'][am(0x437,0x3fb)];const f=yield*this[am(0x4a7,0x450)](e[am(0x3f1,0x3b6)]);if(!(yield*this[am(0x43b,0x43a)]())&&!(yield this['$'][am(0x3f1,0x3e4)])&&f){return yield*super[am(0x3f7,0x449)]();}else{if(e['direction']===Direction[am(0x43e,0x423)]){const g=yield this['$'][am(0x473,0x42e)];const h=yield this['$'][am(0x430,0x3f5)];if(g[am(0x47f,0x439)][am(0x422,0x3eb)](_end)===CalculateProposed&&h[am(0x3ad,0x3b2)]){return yield*this['calculateProjectedXDateWithDuration'](yield this['$'][am(0x45d,0x444)],!![],yield this['$'][am(0x371,0x3b1)]);}const i=yield PreviousValueOf(this['$'][am(0x3d0,0x3f2)]);if(g[am(0x459,0x439)]['get'](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[am(0x3e9,0x3d4)](i,j,!![]);}return yield*super['calculateEndDate']();}else{const k=yield*super[am(0x447,0x449)]();const l=yield this['$']['maxAssignmentProposedEndDate'];return l>k?l:k;}}}}*[a8(-0x125,-0xde)](){function an(a,b){return a8(b-0x161,a);}const d=yield this['$']['assigned'];for(const e of d){const f=yield e['$'][an(0x1a,-0x13)];if(!f[an(-0x14,-0x29)])return![];}return!![];}*[a8(-0x1ab,-0x191)](){const d=yield this['$'][ao(0xed,0x118)];function ao(a,b){return a8(a-0x2ad,b);}return d[ao(0x102,0x11b)];}*[a8(-0x166,-0x10f)](){const d=yield this['$'][ap(0x428,0x45b)];function ap(a,b){return a8(a-0x59c,b);}return d[ap(0x436,0x3fb)];}*[a8(-0x165,-0x11c)](){function aq(a,b){return a8(b-0x5ae,a);}const d=yield this['$'][aq(0x45d,0x43a)];return d['isChangingOnlyDuration'];}*['isChangingOnlyEndDate'](){function ar(a,b){return a8(a-0x5ef,b);}const d=yield this['$'][ar(0x47b,0x444)];return d[ar(0x44a,0x41f)];}*[a8(-0x181,-0x174)](){const d=yield*this[as(0x137,0x155)]();function as(a,b){return a8(b-0x2ff,a);}if(d||(yield this['$'][as(0x136,0x130)])){return yield*super[as(0x1a9,0x17e)]();}else{const e=yield this['$'][as(0x151,0x186)];const f=e['direction']===Direction['Forward'];const g=yield this['$']['dispatcher'];const h=yield this['$'][as(0x130,0x180)];if(g['resolution']['get'](_enc)===durationFormula[as(0x17f,0x1cd)]&&!h[as(0x13f,0x13d)]){const i=yield*super[as(0x196,0x17e)]();yield*this[as(0xff,0x148)](i,f);return i;}if(g[as(0x1d9,0x1c4)][as(0x15e,0x176)](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&!(h[as(0x203,0x1b8)][as(0x179,0x176)](DurationVar)&VariableInputState[as(0x19d,0x178)])){const j=yield ProposedOrPrevious;return j;}if(g[as(0x20a,0x1c4)][as(0x12a,0x176)](_enc)===CalculateProposed&&!h[as(0x102,0x13d)]&&h['input'][as(0x128,0x176)](DurationVar)&VariableInputState[as(0x18b,0x178)]){const k=yield ProposedOrPrevious;yield*this[as(0x175,0x148)](k,f);const l=yield*this[as(0x136,0x14f)]();const m=yield this['$'][as(0x145,0x14a)];return l?k>m?m:k:k;}if(!h['hasTimePhasedInput']){const n=yield ProposedOrPrevious;yield*this['expandTrailingAssignmentsByDuration'](n,f);return n;}else if(h['hasTimePhasedInput']){const o=yield*this[as(0x194,0x14f)]();const p=yield this['$'][as(0x173,0x14a)];if(o){return p;}else{return Math[as(0x140,0x161)](p,yield ProposedOrPrevious);}}else{throw new Error(as(0x1ff,0x1d7));}}}*[a8(-0x142,-0xf5)](){function at(a,b){return a8(a-0xf0,b);}const d=yield this['$'][at(-0x87,-0x60)];if(d[at(-0x47,-0x30)]>0x0||(yield this['$']['isSegmented']))return yield*super[at(-0x52,-0x81)]();else{const e=yield*this[at(-0x5e,-0x87)]();const f=yield this['$'][at(-0xc8,-0xba)];if(e===SchedulingMode[at(-0xbf,-0xc7)]){if(f[at(-0x47,-0x8)]>0x0){if(yield*this[at(-0x76,-0x24)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$'][at(-0xa2,-0xdd)]);if(g<=h){return g;}else{const i=yield this['$'][at(-0x89,-0x85)];yield*this['expandTrailingAssigmentsByEffort'](g,h,i['direction']===Direction[at(-0x61,-0x1f)]);return g;}}else{return yield*this[at(-0xb1,-0x84)]();}}else{return yield*super[at(-0x52,-0x6b)]();}}else{return yield*this['calculateEffortPure']();}}}*[a8(-0x1a1,-0x18b)](){if(yield this['$'][au(0x4ae,0x4b1)]){return yield*super[au(0x4dc,0x4a4)]();}function au(a,b){return a8(a-0x67d,b);}const d=yield this['$'][au(0x544,0x570)];if(d[au(0x546,0x569)]>0x0){return yield*this[au(0x511,0x534)]();}else{const e=yield ProposedOrPreviousValueOf(this['$']['effort']);if(e===void 0x0){return yield*this['calculateProjectedEffort'](yield this['$']['startDate'],yield this['$'][au(0x4fb,0x53d)]);}else{return e;}}}*[a8(-0x16c,-0x17f)](){let d=0x0;const e=yield this['$']['assigned'];for(const f of e){d+=yield*this['getProject']()[av(0x461,0x4af)](yield f['$'][av(0x40c,0x461)],yield f['$'][av(0x458,0x495)],TimeUnit[av(0x4ac,0x49c)]);}function av(a,b){return a8(b-0x5f3,a);}return yield*this['getProject']()['$convertDuration'](d,TimeUnit[av(0x49e,0x49c)],yield this['$'][av(0x45d,0x495)]);}*[a8(-0x197,-0x14e)](d){function aw(a,b){return a8(a-0x51,b);}return yield*d[aw(-0x146,-0x15e)](null);}*['getDateShifter'](d){function ax(a,b){return a8(b-0x415,a);}if(yield*this[ax(0x288,0x2cb)]()){const e=this;const f=yield this['$'][ax(0x2c7,0x283)];return function*(g){function ay(a,b){return ax(b,a-0xe5);}return yield*e[ay(0x37f,0x353)](g,d,f);};}else{return yield*super[ax(0x2b0,0x2aa)](d);}}*[a8(-0x14a,-0x192)](){const d=yield*this[az(0x157,0x16b)]();const e=yield this['$'][az(0x128,0x152)];function az(a,b){return a8(a-0x2a5,b);}return d!==SchedulingMode[az(0x158,0x13a)]&&d!==SchedulingMode[az(0xf6,0x11f)]&&(e||d===SchedulingMode[az(0x146,0x173)])&&!(yield*this['isChangingOnlyDuration']())&&!(yield*this['isChangingOnlyEndDate']())||d===SchedulingMode['FixedUnits']&&(yield*this[az(0x180,0x13a)]())&&(yield*this[az(0xfa,0xbb)]());}*[a8(-0x196,-0x1be)](){function aA(a,b){return a8(b-0x576,a);}if((yield*this[aA(0x37f,0x3c6)]())&&(yield*this[aA(0x3fc,0x42c)]())){return(yield this['$'][aA(0x3b8,0x3e4)])>0x0;}else{return yield*super[aA(0x3ff,0x3e0)]();}}*['expandTrailingAssignmentsByDuration'](d,e=!![]){const f=yield this['$']['proposedAssignmentDuration'];if(f==null)return;function aB(a,b){return a8(a-0x4a9,b);}if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][aB(0x327,0x2f6)]);const h=yield*this[aB(0x2fd,0x352)](g,!![],d-f,void 0x0,{'purpose':aB(0x348,0x2f7)});yield*this[aB(0x309,0x2c6)](g,h,e);}else{const i=yield PreviousValueOf(this['$']['startDate']);const j=yield*this[aB(0x2fd,0x2e6)](i,![],d-f,void 0x0,{'purpose':'positioning'});yield*this[aB(0x309,0x2df)](i,j,e);}}}*[a8(-0x1a0,-0x1ae)](d,e,f=!![]){if(d[aC(0x60a,0x5fe)]()===e['getTime']()){return;}const g=yield this['$'][aC(0x611,0x5e1)];const h=[];function aC(a,b){return a8(a-0x74a,b);}for(const i of g){if(yield*i[aC(0x5c6,0x5b3)]()){if(f){const j=yield PreviousValueOf(i['$']['endDate']);if(j&&j[aC(0x60a,0x616)]()===d[aC(0x60a,0x60d)]())h[aC(0x57a,0x5c8)](i);}else{const k=yield PreviousValueOf(i['$'][aC(0x61a,0x61e)]);if(k&&k['getTime']()===d[aC(0x60a,0x60a)]())h[aC(0x57a,0x58a)](i);}}}this[aC(0x598,0x57d)][aC(0x5bb,0x5de)]({'commitFinalized':{'fn':()=>{function aD(a,b){return aC(a- -0x78d,b);}h[aD(-0x1a0,-0x184)](l=>{function aE(a,b){return aD(a-0x6c3,b);}this[aE(0x4c6,0x4b0)][aE(0x4b3,0x469)](f?l['$'][aE(0x4fe,0x553)]:l['$'][aE(0x550,0x56c)],e,![]);});},'once':!![]}});}*[a8(-0x164,-0x17f)](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$'][aF(-0x6e,-0x29)]):yield PreviousValueOf(this['$'][aF(-0x10,0x29)]);const h=yield this['$'][aF(0x12,0x20)];const i=new Set();for(const l of h){if(yield*l[aF(-0x5f,-0x2b)]()){if(f){const m=yield PreviousValueOf(l['$'][aF(0x22,-0x29)]);if(m&&m[aF(-0x2f,0x19)]()===g[aF(0x5a,0x19)]())i['add'](l);}else{const n=yield PreviousValueOf(l['$'][aF(0x33,0x29)]);if(n&&n[aF(0x62,0x19)]()===g[aF(0x35,0x19)]())i[aF(-0x9,-0x3b)](l);}}}const j=yield*this[aF(0x3f,0x28)](function*(o){function aG(a,b){return aF(b,a- -0xc8);}return i[aG(-0xb8,-0xe4)](o)||!(yield*o[aG(-0xf3,-0xe0)]());});const k=yield*this[aF(0x2b,-0x22)](g,f,d-e,void 0x0,void 0x0,j);function aF(a,b){return a8(b-0x159,a);}this[aF(-0xa6,-0x59)][aF(-0x52,-0x36)]({'commitFinalized':{'fn':()=>{i['forEach'](o=>{function aH(a,b){return _enb(b-0x66,a);}this[aH(0x26d,0x229)][aH(0x25d,0x216)](f?o['$'][aH(0x2b6,0x261)]:o['$'][aH(0x2d5,0x2b3)],k,![]);});},'once':!![]}});}*[a8(-0x188,-0x1d0)](){return!![];}*[a8(-0x1bf,-0x1cf)](){function aI(a,b){return a8(b-0x204,a);}const d=yield this['$']['effectiveDirection'];return d['direction']===Direction[aI(0x8c,0xb3)]?yield*this[aI(0xdd,0xac)](yield this['$'][aI(0x96,0xa8)],(yield*this[aI(0x11c,0xc5)]())?yield*this[aI(0x19,0x49)]():yield this['$'][aI(0xe3,0xda)],void 0x0,{'isForward':!![]}):yield*this[aI(0xb5,0xac)](yield this['$']['minAssignmentProposedStartDate'],yield this['$'][aI(0x61,0x3f)],void 0x0,{'isForward':![]});}*[a8(-0x158,-0x139)](d,e,f,g,...h){const i=yield this['$'][aJ(-0x1ef,-0x19e)];function aJ(a,b){return a8(b- -0x25,a);}const j=g?.[aJ(-0x244,-0x1f0)]!==void 0x0?g:i[aJ(-0x1f0,-0x1e3)]===Direction[aJ(-0x158,-0x176)]?Object['assign']({},g,{'isForward':!![]}):Object[aJ(-0x1bb,-0x1d6)]({},g,{'isForward':![]});return yield*super['calculateProjectedDuration'](d,e,f,j,...h);}*[a8(-0x1a3,-0x1a3)](){function aK(a,b){return a8(a-0x5f4,b);}return yield*this[aK(0x4c3,0x4c8)](function*(d){return!(yield*d['isTimePhased']());});}*[a8(-0x162,-0x149)](){function aL(a,b){return a8(a-0x400,b);}return yield*this[aL(0x2cf,0x2a8)]();}*[a8(-0x131,-0x12d)](d){const e=yield this['$']['effectiveCalendar'];const f=yield this['$'][aM(-0xb7,-0x107)];const g=this[aM(-0x132,-0x188)]();const h=yield*this[aM(-0xb8,-0x65)]();const i=(yield this['$'][aM(-0xd0,-0xa1)])||h&&!g[aM(-0xee,-0xf9)];const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aM(-0x113,-0xf4)];const m=i||(yield k['$']['ignoreResourceCalendar']);if(l){const n=m?e:yield l['$'][aM(-0xf1,-0x121)];let o=j[aM(-0x107,-0x126)](n);if(!o){o=[];j['set'](n,o);}o['push'](k);}}}function aM(a,b){return a8(a-0x82,b);}return j;}*['forEachAvailabilityInterval'](d,e){const f=d[aN(0x5a9,0x5aa)]??aN(0x5a1,0x5e5);if(f===aN(0x5bd,0x5e5)||(yield*this[aN(0x57f,0x59c)]())||d[aN(0x5a3,0x5ab)]||(yield this['$']['isSegmented'])){return yield*super[aN(0x643,0x5f0)](d,e);}const g=d[aN(0x527,0x57b)]!==![];const h=yield this['$'][aN(0x58f,0x5d3)];const i=this[aN(0x53d,0x592)]();const j=yield*this[aN(0x641,0x60c)]();const k=yield this['$'][aN(0x60f,0x5ba)];const l=yield this['$'][aN(0x5dd,0x5ed)];const m=(yield this['$'][aN(0x5c1,0x5f4)])||d[aN(0x5c7,0x5f4)];const n=d[aN(0x5e3,0x5c0)]??![];const o=i[aN(0x614,0x5fb)];if(o){d=Object[aN(0x56a,0x595)]({'maxRange':o},d);}const p=yield this['$'][aN(0x561,0x5a9)];const q=yield*p(g,g?d['startDate']:d[aN(0x59a,0x5c4)]);let r=g?0x0:q[aN(0x5ec,0x5cc)][aN(0x5e2,0x60e)]-0x1;let s=g?d[aN(0x643,0x616)]:d[aN(0x5cd,0x5c4)];function aN(a,b){return a8(b-0x746,a);}const t=new Set();const u=l[aN(0x5ca,0x5f0)](d,(v,w,x)=>{const y=x[aO(0x4a5,0x45f)]();const z=x[aO(0x4ce,0x4ce)]();function aO(a,b){return aN(b,a- -0xe0);}r=q[aO(0x495,0x4ea)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q[aO(0x495,0x4cd)](g,r,s,g?w:v,t,(A,B,C)=>{function aP(a,b){return aO(b- -0x13f,a);}if(y[aP(0x3b9,0x39e)](h)&&(n||someInSet(C,D=>{function aQ(a,b){return aP(b,a- -0x527);}return m||D[aQ(-0x152,-0x1a2)]||y['get'](D[aQ(-0x195,-0x1ea)]['effectiveCalendar'])||j&&!i['skipNonWorkingTimeInDurationWhenSchedulingManually'];})||z[aP(0x3d3,0x3df)](D=>k[aP(0x3b7,0x3de)](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*['calculateHasOnlyRegularAssignmentsRaw'](){function aR(a,b){return a8(b-0xe6,a);}const d=yield this['$']['assigned'];for(const e of d){if(yield*e[aR(-0xcf,-0xe6)]())return![];}return!![];}*[a8(-0x1aa,-0x1b7)](){const d=yield this['$']['assignmentsTypeSelector'];return d['hasOnlyRegularAssignments'];}*['hasOnlyTimePhasedAssignments'](){function aS(a,b){return a8(b-0x5ac,a);}const d=yield this['$'][aS(0x3f2,0x3ec)];return d[aS(0x435,0x3fc)];}*[a8(-0x13f,-0x149)](){function aT(a,b){return a8(a- -0x4c,b);}const d=yield this['$'][aT(-0x20c,-0x23f)];return d[aT(-0x18b,-0x149)];}*['calculateMinAssignmentProposedStartDate'](){let d=MAX_DATE;const e=yield this['$'][aU(0x2c,0x36)];function aU(a,b){return a8(a-0x165,b);}for(const f of e){const g=yield f[aU(-0x2,0x9)]['$'][aU(0x35,0x8)];if(g&&g<d)d=g;}return d['getTime']()-MAX_DATE[aU(0x25,-0x2a)]()?d:null;}*[a8(-0x150,-0x14d)](){function aV(a,b){return a8(a-0x1ff,b);}let d=MIN_DATE;const e=yield this['$']['assigned'];for(const f of e){const g=yield f[aV(0x98,0x80)]['$']['endDate'];if(g&&g>d)d=g;}return d[aV(0xbf,0xf4)]()-MIN_DATE[aV(0xbf,0xc0)]()?d:null;}*[a8(-0x1bb,-0x1f7)](){let d=MIN_DATE;const e=yield this['$'][aW(0x1b6,0x168)];function aW(a,b){return a8(a-0x2ef,b);}for(const f of e){const g=(yield*f['isTimePhased']())?(yield*f[aW(0x123,0xf5)]())?yield f[aW(0x188,0x141)]['$'][aW(0x16d,0x1c4)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d['getTime']()-MIN_DATE['getTime']()?d:null;}*[a8(-0x143,-0x12e)](d,e,f){const g=yield*this[aX(0x3b4,0x36d)]();if(g||(yield this['$']['isSegmented'])){return yield*super[aX(0x41b,0x40b)](d,e,f);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][aX(0x3d2,0x400)];const i=new Map();function aX(a,b){return a8(a-0x55e,b);}for(const [l,m]of h){let n=0x0;for(const o of m){n+=yield o['$'][aX(0x3c5,0x3ed)];}i[aX(0x3cb,0x3b3)](l,n);}let j=0x0;const k=Object['assign'](yield*this[aX(0x429,0x466)](),{'startDate':d,'endDate':e},{'purpose':aX(0x3a5,0x393)});yield*this[aX(0x408,0x407)](k,(p,q,r,s)=>{function aY(a,b){return aX(a-0x1ea,b);}const t=r[aY(0x5b0,0x574)]();const u=p['getTime'](),v=q[aY(0x608,0x65a)](),w=v-u;let x=0x0;for(const y of t){x+=i['get'](y)||0x0;}if(!f){s['forEach'](z=>{function aZ(a,b){return aY(b- -0x3e,a);}x+=z[aZ(0x528,0x571)];});}j+=x*w*0.01;});return yield*this['getProject']()[aX(0x41a,0x45b)](j,TimeUnit[aX(0x407,0x3bd)],yield this['$'][aX(0x400,0x3fe)]);}*[a8(-0x1ac,-0x183)](d,e=!![],f,g,h){const i=yield*super[b0(-0x193,-0x1c8)](d,e,f,g,h);if(yield this['$'][b0(-0x1b6,-0x196)])return i;const j=yield*this[b0(-0x197,-0x197)]();function b0(a,b){return a8(a-0x19,b);}if(j){const k=yield this['$']['effectiveDirection'];if(k['direction']===Direction[b0(-0x138,-0x110)]&&e===![]){const l=yield this['$'][b0(-0x150,-0x134)];const m=l[b0(-0x1af,-0x17b)];if(m>0x0){return yield*l[b0(-0x125,-0xe0)]['calculateProjectedXDateWithDuration'](i,![],m,TimeUnit['Millisecond']);}}else if(k[b0(-0x1a5,-0x1ea)]===Direction[b0(-0x15f,-0x13f)]&&e===!![]){const n=yield this['$'][b0(-0x18f,-0x1d2)];const o=n[b0(-0x1af,-0x1d1)];if(o>0x0){return yield*n[b0(-0x125,-0x140)]['calculateProjectedXDateWithDuration'](i,!![],o,TimeUnit[b0(-0x13e,-0x12f)]);}}}return i;}*['getBaseOptionsForDurationCalculations'](){function b1(a,b){return a8(b-0x634,a);}const d=yield*this[b1(0x4f9,0x4e6)]();if(d===SchedulingMode[b1(0x4c4,0x4e7)]){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b[b1(0x461,0x478)][b1(0x50e,0x4be)](this);}}*[a8(-0x17b,-0x181)](d,e=!![],f,g,h,i){if(yield this['$'][b2(0x2f1,0x2f1)]){return yield*super[b2(0x345,0x37c)](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b2(0x32e,0x361)];g=g!==void 0x0?g:yield this['$']['effortUnit'];const j=yield*this[b2(0x30c,0x2e9)]()[b2(0x37c,0x3b4)](f,g,TimeUnit[b2(0x369,0x385)]);if(d==null||f==null)return null;let k=d[b2(0x380,0x3bd)]();let l=j;if(l===0x0)return new Date(k);const m=Object[b2(0x30f,0x2ec)](yield*this[b2(0x304,0x2e7)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':b2(0x307,0x32b)},h);const n=yield*this[b2(0x316,0x367)]();if(h?.[b2(0x324,0x2dc)]==='positioning'||n){const r=new Map();const s=yield this['$']['assigned'];let t=0x0;const u=new Map();for(const x of s){const y=yield x['$'][b2(0x327,0x35b)];t+=y;u[b2(0x32d,0x32d)](x,y);}if(t===0x0){return yield*super[b2(0x345,0x346)](d,e,f,g,h,i);}for(const z of s){r[b2(0x32d,0x34b)](z,j*u['get'](z)/t);}const v=yield this['$']['assignmentsByCalendar'];const w=new Map();for(const [A,B]of v){for(const C of B){w[b2(0x32d,0x31e)](C,A);}}yield*this[b2(0x36a,0x331)](m,(D,E,F)=>{function b3(a,b){return b2(b- -0x3b3,a);}const G=D[b3(-0x41,-0x33)](),H=E[b3(-0x50,-0x33)](),I=H-G;for(const J of s){const K=w[b3(-0x6e,-0x7c)](J);if(F[b3(-0x97,-0xb4)]()[b3(-0xac,-0x7c)](K)){const L=r[b3(-0x57,-0x7c)](J);let M=u['get'](J);const N=M*I*0.01;if(N>=L){const O=e?G+L/(0.01*M):H-L/(0.01*M);if(e&&O>k||!e&&O<k){k=O;}r[b3(-0x1d,-0x6f)](J);}else{r[b3(-0xdb,-0x86)](J,L-N);}}}if(r[b3(-0x25,-0x2a)]===0x0)return![];});return new Date(k);}const o=i?i:yield this['$'][b2(0x334,0x2fa)];const p=new Map();(yield this['$']['assignmentsByCalendar'])[b2(0x363,0x34f)]((D,E)=>{function b4(a,b){return b2(a-0x253,b);}D[b4(0x5b6,0x5ae)](F=>p[b4(0x580,0x529)](F,E));});const q=new Map();function b2(a,b){return a8(a-0x4c0,b);}for(const [D,E]of o){let F=0x0;for(const G of E){F+=yield G['$'][b2(0x327,0x35f)];}q[b2(0x32d,0x30a)](D,F);}yield*this[b2(0x36a,0x3b4)](m,(H,I,J,K)=>{const L=J[b5(-0xed,-0xbd)]();const M=J[b5(-0xaf,-0xe6)]();const N=H[b5(-0x9c,-0x65)](),O=I['getTime'](),P=O-N;let Q=0x0;function b5(a,b){return b2(b- -0x3e5,a);}for(const S of L){Q+=q['get'](S)||0x0;}if(!i){K[b5(-0x35,-0x82)](T=>{function b6(a,b){return b5(b,a- -0x61);}if(M['get'](p['get'](T)))Q+=T[b6(-0x11f,-0x103)];});}const R=Q*P*0.01;if(R>=l){k=e?N+l/(0.01*Q):O-l/(0.01*Q);return![];}else{l-=R;}});return new Date(k);}}__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x133)],a8(-0x1b6,-0x1ff),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x1b7)],a8(-0x145,-0x188),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x12d)],'proposedStartDateMin',void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x15a)],a8(-0x1c5,-0x1e0),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x16b)],a8(-0x180,-0x1be),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],'maxAssignmentProposedEndDate',void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x1b1)],'proposedAssignmentDuration',void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x126)],a8(-0x1c0,-0x1f1),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x177)],a8(-0x16d,-0x11d),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c[a8(-0x16a,-0x145)],a8(-0x17f,-0x19b),void 0x0);__decorate([field()],c['prototype'],a8(-0x174,-0x127),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x150)],a8(-0x169,-0x15a),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x1a8,-0x1c7),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],a8(-0x18c,-0x1c4),void 0x0);__decorate([field({'lazy':!![]})],c[a8(-0x16a,-0x193)],'timePhasedIntervalsCache',void 0x0);__decorate([calculate(a8(-0x16d,-0x144))],c[a8(-0x16a,-0x16c)],'calculateProposedTotalUnits',null);__decorate([calculate(a8(-0x1b6,-0x186))],c['prototype'],a8(-0x133,-0x128),null);__decorate([calculate('proposedEndDate')],c[a8(-0x16a,-0x194)],a8(-0x1ae,-0x1e3),null);__decorate([calculate(a8(-0x15c,-0x16e))],c[a8(-0x16a,-0x1be)],'calculateProposedStartDateMin',null);__decorate([calculate(a8(-0x1c5,-0x1f1))],c[a8(-0x16a,-0x1a6)],a8(-0x136,-0x140),null);__decorate([calculate(a8(-0x169,-0x14d))],c[a8(-0x16a,-0x146)],a8(-0x1a2,-0x16e),null);__decorate([calculate(a8(-0x1a8,-0x19b))],c[a8(-0x16a,-0x13a)],a8(-0x12e,-0x129),null);__decorate([calculate('assignmentsTypeSelector')],c[a8(-0x16a,-0x1b1)],a8(-0x185,-0x155),null);__decorate([calculate(a8(-0x174,-0x16f))],c[a8(-0x16a,-0x115)],a8(-0x19f,-0x162),null);__decorate([calculate(a8(-0x17f,-0x1ad))],c[a8(-0x16a,-0x16e)],'calculateTimePhasedDispatcher',null);__decorate([calculate(a8(-0x19d,-0x17a))],c[a8(-0x16a,-0x182)],a8(-0x1c9,-0x1ef),null);function a8(a,b){return _enX(a- -0x761,b);}__decorate([calculate(a8(-0x1b5,-0x1ed))],c[a8(-0x16a,-0x121)],a8(-0x1bf,-0x1bf),null);__decorate([calculate('regularAssignmentsByCalendar')],c[a8(-0x16a,-0x17d)],a8(-0x1a3,-0x175),null);__decorate([calculate(a8(-0x180,-0x15c))],c[a8(-0x16a,-0x13c)],a8(-0x14f,-0x116),null);__decorate([calculate(a8(-0x12a,-0x145))],c[a8(-0x16a,-0x14c)],'calculateMaxAssignmentProposedEndDate',null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
|
|
1
|
+
(function(a,b){const c=a();function W(a,b){return _enb(a-0x2ce,b);}while(!![]){try{const d=-parseInt(W(0x4b3,0x4c2))/0x1+-parseInt(W(0x51b,0x4ce))/0x2*(parseInt(W(0x518,0x4c4))/0x3)+-parseInt(W(0x505,0x4bc))/0x4+parseInt(W(0x4df,0x4f9))/0x5*(-parseInt(W(0x533,0x55b))/0x6)+parseInt(W(0x4a1,0x4db))/0x7+-parseInt(W(0x542,0x4f2))/0x8*(-parseInt(W(0x4b0,0x47d))/0x9)+-parseInt(W(0x50c,0x4fd))/0xa*(-parseInt(W(0x4cd,0x4bf))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xaa209));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1cf;let f=c[d];return f;};return _enb(a,b);}var __decorate=function(a,b,e,f){function X(a,b){return _enb(b- -0x34c,a);}var g=arguments[X(-0xd2,-0x116)],h=g<0x3?b:f===null?f=Object[X(-0xcc,-0xfa)](b,e):f,j;if(typeof Reflect===X(-0x134,-0x11e)&&typeof Reflect[X(-0xa3,-0xda)]===X(-0x142,-0x119))h=Reflect[X(-0x88,-0xda)](a,b,e,f);else for(var k=a[X(-0xc2,-0x116)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[X(-0x12b,-0xdd)](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed,VariableInputState}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _ena0(a,b){return _enb(b-0x1cf,a);}import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar as _enc,EndDateVar as _end,StartDateVar as _ene}from'../scheduler_basic/BaseEventDispatcher.js';import{ConstrainedEarlyEventMixin}from'./ConstrainedEarlyEventMixin.js';import{HasSchedulingModeMixin}from'./HasSchedulingModeMixin.js';import{SchedulerProHasAssignmentsMixin}from'./SchedulerProHasAssignmentsMixin.js';import{SplitEventMixin}from'./SplitEventMixin.js';function _ena(){const b5=['proposedEndOffsets','calculateEffort','forEach','1988742uuqsuy','calculateAssignmentsTypeSelector','resource','FixedUnits','set','minAssignmentProposedStartDate','getBaseOptionsForDurationCalculations','duration','hasInputOnEffort','isSegmented','isConstrainedAlongDirection','isChangingOnlyDuration','add','skipNonWorkingTime','MAX_VALUE','654552XqtzKI','new','calculateMaxAssignmentProposedEndDate','1363995DttZqq','calculateProposedAssignmentDuration','Normal','calculateProposedStartOffsets','HasProposedValue','graph','hasPhantomTimePhasedAssignments','proposedStartOffsets','proposedTotalUnits','proposedStartDate','some','calculateProjectedEffort','unscheduled','phantomEndOffset','push','calculateTimePhasedIntervalsCache','getTime','max','prepare','forEachAvailabilityInterval','dispatcher','hasOnlyTimePhasedAssignments','addProposedValueFlag','proposedEndOffset','calculateEndDate','isChangingOnlyEndDate','143cwaJVd','effectiveSchedulingMode','calculateProjectedXDateWithDuration','effort','shouldSkipNonWorkingTime','get','getDateShifter','getBaseOptionsForEffortCalculations','calculateProjectedXDate','getProject','proposedStartOffset','calculateProposedEndOffsetRaw','expandTrailingAssigmentsByEffort','hasUnitsOnAllAssignments','proposedAssignmentDuration','time','ignoreTimePhasedData','regularAssignmentsByCalendar','457975AXxeyw','isTimePhased','calculateAssignmentUnits','resolution','calculateDuration','timePhasedData','calculateProposedStartOffsetRaw','proposedMirror','ignoreResourceCalendar','maxAssignmentProposedEndDate','delete','calculateMinAssignmentProposedStartDate','calculateProposedEndDate','Millisecond','units','hasPreviousValueForUnits','maxCalendarRange','calculateHasOnlyRegularAssignmentsRaw','isChangingOnlyEffort','calculateProposedStartDate','calculateEffortPure','hasOnlyRegularAssignments','Backward','assigned','proposedEndDateMax','assignment','effortUnit','positioning','call','object','hasInputOnlyOnEffort','childEvents','prototype','effectiveDirection','function','calculateAssignmentsByCalendar','effectiveCalendarsCombination','length','2422560yTpcYG','collectInfo','input','Forward','hasInputOnDuration','minOffset','calculateMaxAssignmentProposedEndDateIncludingPhantom','3012170nnSdtK','expandTrailingAssignmentsByDuration','isChangingOnlyEffortOnAssignment','size','isPhantomTimePhased','isDurationDefinedByEffort','minAssignment','project','isForward','FixedDuration','start','hasTimePhasedInput','2175669ECDQyQ','type','calculateStartDate','2vzWNYM','timePhasedDispatcher','hasInputOnEndDate','endDate','effectiveCalendar','getOwnPropertyDescriptor','calculateProjectedDuration','proposedStartDateMin','effortDriven','event','calculateProposedStartDateMin','expandTrailingAssigmentsByDates','write','timePhasedIntervalsCache','isUserTimePhased','ignoreSegments','direction','calculateTotalAssignmentsEffort','assignmentsTypeSelector','has','move','Unknown\x20duration\x20scenario','getCalendarsWorking','collectAssignmentsByCalendar','72UOxEft','isManuallyScheduled','calculateTimePhasedDispatcher','proposedEndDate','hasPreviousEffortValue','hasInputOnAssignments','calculateProjectedXDateByEffort','startDate','end','selector','defineProperty','skipNonWorkingTimeInDurationWhenSchedulingManually','$convertDuration','decorate','proposedEndDateArgs','32yXNWLQ','sort','assign','getCalendarsWorkStatus','ion','purpose','assignmentsByCalendar'];_ena=function(){return b5;};return _ena();}import{DurationVar,EffortVar,EndVar,StartVar,TimePhasedDuration,TimePhasedEffort,TimePhasedEndDate,TimePhasedEventAssignmentCycleResolutionContext,TimePhasedEventAssignmentDispatcher,TimePhasedEventAssignmentDispatcherIdentifier,TimePhasedStartDate}from'./TimePhasedEventAssignmentDispatcher.js';const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){function Y(a,b){return _enb(b- -0x34,a);}this[Y(0x1c8,0x1e2)]=[];}['push'](a){function Z(a,b){return _enb(a-0x32c,b);}this[Z(0x542,0x4f6)]['push']({'time':a[Z(0x598,0x55c)],'type':Z(0x574,0x5c6),'assignment':a['assignment']},{'time':a[Z(0x57c,0x52a)],'type':Z(0x599,0x557),'assignment':a[Z(0x556,0x508)]});}[_ena0(0x414,0x3c6)](){function a1(a,b){return _ena0(b,a-0x1ba);}this[a1(0x59f,0x5f4)][a1(0x5fe,0x60e)]((a,b)=>{return a['time']-b['time'];});}[_ena0(0x47d,0x430)](a,b,c,d,e,f){const g=this[a2(0x2d,0x6)][b];if(a&&b===this[a2(0x2d,0x53)]['length']-0x1){if(g[a2(0x25,-0x1b)]<=c){e[a2(0x32,0x7)](g[a2(0x41,0x6a)]);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g['time']){e[a2(0x32,0x2b)](g['assignment']);if(f(d,c,e)===![])return-0x1;return b;}}const h=a?0x1:-0x1;function a2(a,b){return _ena0(b,a- -0x3b8);}let j=c;let k,l;for(k=b;k>=0x0&&k<this['timePhasedData'][a2(0x4d,0x80)];k+=h){const n=this[a2(0x2d,0x67)][k];const o=a?n['time']>=d:n['time']<=d;if(o){if(a){if(f(j,d,e)===![])return-0x1;}else{if(f(d,j,e)===![])return-0x1;}return k;}const p=a?n[a2(0x25,0x3)]<c:n['time']>c;if(!p){if(j[a2(0xc,0x20)]()!==n[a2(0x25,0x56)]['getTime']()){if(a){if(f(j,n['time'],e)===![])return-0x1;}else{if(f(n[a2(0x25,0x5)],j,e)===![])return-0x1;}}const q=a?n[a2(0x62,0x27)]===a2(0x5f,0x46):n[a2(0x62,0x10)]===a2(0x84,0x9f);if(q)e[a2(-0xa,-0x45)](n[a2(0x41,0x3d)]);else e[a2(0x32,0xb)](n[a2(0x41,0x15)]);}l=k;j=n[a2(0x25,0x4d)];}if(l===void 0x0){return k;}const m=this['timePhasedData'][l];if(a){e['delete'](m[a2(0x41,0x37)]);if(f(j,d,e)===![])return-0x1;}else if(!a){e['delete'](m['assignment']);if(f(d,j,e)===![])return-0x1;}return l;}}class TimePhasedEventSelector{constructor(){this['event']=null;this[a3(0x182,0x16d)]=null;this[a3(0x132,0x14f)]=![];this['hasInputOnDuration']=![];this['hasInputOnEndDate']=![];function a3(a,b){return _ena0(a,b- -0x25b);}this[a3(0x19d,0x1e7)]=null;this[a3(0x1a8,0x1de)]=![];this[a3(0x19b,0x1dd)]=![];}get['isChangingOnlyEffort'](){const a=this[a4(0x2e4,0x2e3)];function a4(a,b){return _ena0(a,b- -0xe5);}return this[a4(0x275,0x2c5)]&&!Boolean(a[a4(0x310,0x323)]['get'](StartVar)&VariableInputState[a4(0x2a7,0x2d3)])&&!Boolean(a[a4(0x35f,0x323)][a4(0x334,0x2ee)](EndVar)&VariableInputState[a4(0x2b6,0x2d3)])&&!Boolean(a['input'][a4(0x2b5,0x2ee)](DurationVar)&VariableInputState[a4(0x2e0,0x2d3)])&&!a[a4(0x311,0x333)];}get['isChangingOnlyDuration'](){function a5(a,b){return _ena0(b,a- -0x1c0);}const a=this['dispatcher'];return this[a5(0x24a,0x244)]&&!Boolean(a[a5(0x248,0x29e)][a5(0x213,0x23c)](StartVar)&VariableInputState[a5(0x1f8,0x1f5)])&&!Boolean(a[a5(0x248,0x216)][a5(0x213,0x246)](EndVar)&VariableInputState[a5(0x1f8,0x1e3)])&&!Boolean(a[a5(0x248,0x253)]['get'](EffortVar)&VariableInputState[a5(0x1f8,0x1f2)])&&!a[a5(0x258,0x2a5)];}get[_ena0(0x3e6,0x3cd)](){const a=this['dispatcher'];function a6(a,b){return _ena0(b,a- -0x3ca);}const b=this[a6(0x78,0xc3)];return this['hasInputOnEndDate']&&(!b||!b[0x0])&&!Boolean(a[a6(0x3e,0x71)][a6(0x9,-0x35)](StartVar)&VariableInputState[a6(-0x12,0xe)])&&!Boolean(a['input'][a6(0x9,-0x4)](DurationVar)&VariableInputState[a6(-0x12,0xa)])&&!Boolean(a[a6(0x3e,-0x2)]['get'](EffortVar)&VariableInputState[a6(-0x12,-0x66)])&&!a[a6(0x4e,0xc)];}*[_ena0(0x453,0x407)](){const a=this[a7(0x597,0x569)];this[a7(0x50e,0x4ee)]=yield HasProposedNotPreviousValue(a['$'][a7(0x4d2,0x515)]);function a7(a,b){return _ena0(a,b-0x144);}this['hasInputOnDuration']=yield HasProposedNotPreviousValue(a['$']['duration']);this[a7(0x51d,0x562)]=yield HasProposedNotPreviousValue(a['$'][a7(0x50d,0x563)]);this['dispatcher']=yield a['$'][a7(0x585,0x561)];this['proposedEndDateArgs']=yield ProposedArgumentsOf(a['$'][a7(0x564,0x563)]);this['hasInputOnAssignments']=yield*a['hasProposedAssignments']();this[a7(0x552,0x57c)]=yield HasPreviousValue(a['$'][a7(0x545,0x515)]);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a8(-0x16c,-0x1b5)]=null;this[a8(-0x19a,-0x193)]=null;this[a8(-0x19c,-0x15a)]=null;this[a8(-0x1c8,-0x1db)]=null;this[a8(-0x1b6,-0x1b2)]=null;function a8(a,b){return _ena0(b,a- -0x591);}this['hasPhantomTimePhasedAssignments']=null;}*[_ena0(0x3b3,0x407)](){function a9(a,b){return _ena0(b,a- -0x3e5);}const a=this[a9(0x40,-0x4)];const b=this[a9(0x12,-0x14)]=yield a['$']['assigned'];if(b[a9(0x2b,0x66)]===0x0){this[a9(0x10,0x5d)]=!![];this[a9(-0x1c,0x25)]=![];this[a9(-0x2b,-0x1e)]=![];this[a9(-0xa,0x1e)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$'][a9(0x58,0x89)];if(this['hasOnlyRegularAssignments']===null&&e['isTimePhased']){this[a9(0x10,0x57)]=![];c++;}if(this[a9(-0x1c,-0x22)]===null&&!e[a9(-0x4,-0xd)]){this[a9(-0x1c,-0x49)]=![];c++;}if(this[a9(-0x2b,0x26)]===null&&e[a9(0x2c,0x23)]){this[a9(-0x2b,-0x78)]=!![];c++;}if(this[a9(-0xa,-0x1a)]===null&&!e[a9(0xa,0x38)]){this[a9(-0xa,-0x3a)]=![];c++;}if(c===0x4)break;}if(this['hasOnlyRegularAssignments']===null)this['hasOnlyRegularAssignments']=!![];if(this['hasOnlyTimePhasedAssignments']===null)this['hasOnlyTimePhasedAssignments']=!![];if(this[a9(-0x2b,0x1b)]===null)this[a9(-0x2b,-0x3b)]=![];if(this[a9(-0xa,0x9)]===null)this[a9(-0xa,-0x2e)]=!![];}}}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{function aa(a,b){return _ena0(a,b- -0x3d4);}const b=a[aa(0x81,0x2c)];class c extends a{*['calculateProposedTotalUnits'](){const d=yield this['$']['assigned'];let e=0x0;for(const f of d){const g=yield f['$'][ab(0x1cb,0x1a0)];if(!g)continue;const h=yield ProposedOrPreviousValueOf(f['$']['units']);e+=h;}function ab(a,b){return aa(a,b-0x1d0);}return e;}*[aa(0x35,0x1f)](){return yield ProposedOrPreviousValueOf(this['$']['startDate']);}*[aa(-0x1d,0x18)](){function ac(a,b){return aa(b,a-0x26f);}return yield ProposedOrPreviousValueOf(this['$'][ac(0x2ba,0x2ec)]);}*[aa(0xf,0x52)](){const d=yield this['$']['proposedStartDate'];const e=yield this['$']['minAssignmentProposedStartDate'];return d<e?d:e??d;}*['calculateProposedEndDateMax'](){const d=yield this['$'][ad(0x36b,0x3a5)];function ad(a,b){return aa(a,b-0x342);}const e=yield this['$']['maxAssignmentProposedEndDate'];return d>e?d:e??d;}*[aa(-0x6a,-0x1d)](){const d=yield this['$'][ae(0xbf,0xae)];function ae(a,b){return aa(b,a-0x9c);}const e=new Map();let f;let g=Number[ae(0x78,0x41)];for(const h of d){if(yield*h[ae(0xa9,0xb2)]()){const i=yield*h[ae(0xae,0xee)]();e['set'](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*['calculateProposedEndOffsets'](){const d=yield this['$']['assigned'];const e=new Map();let f;let g=Number[af(0x18,0x69)];function af(a,b){return aa(a,b-0x8d);}for(const h of d){if(yield*h[af(0x47,0x9a)]()){const i=yield*h[af(0x43,0x92)]();e[af(0x90,0x5f)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[aa(-0x7,-0x31)](){function ag(a,b){return aa(b,a-0x56c);}const d=new TimePhasedEventAssignmentTypeSelector();d['event']=this;yield*d[ag(0x59f,0x582)]();return d;}*['calculateSelector'](){const d=new TimePhasedEventSelector();d[ah(0x24c,0x1f6)]=this;yield*d[ah(0x22e,0x235)]();function ah(a,b){return aa(b,a-0x1fb);}return d;}*[aa(0x97,0x62)](d){const e=TimePhasedEventAssignmentDispatcher[ai(0x45b,0x465)]({'context':TimePhasedEventAssignmentCycleResolutionContext});e[ai(0x4b0,0x4a2)](d,this['$'][ai(0x4e4,0x51e)],StartVar);e['collectInfo'](d,this['$']['endDate'],EndVar);e[ai(0x4b0,0x4a1)](d,this['$'][ai(0x452,0x461)],DurationVar);e[ai(0x4b0,0x4e7)](d,this['$'][ai(0x47a,0x4b7)],EffortVar);const f=yield this['$']['assigned'];const g=[];const h=[];const i=[];const j=[];for(const k of f){g[ai(0x46b,0x499)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x4e4,0x4b3)])]);h[ai(0x46b,0x465)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x4c8,0x4b4)])]);i[ai(0x46b,0x498)]([null,yield HasProposedNotPreviousValue(k['$']['duration'])]);j[ai(0x46b,0x434)]([null,yield HasProposedNotPreviousValue(k['$']['effort'])]);}if(g['some'](([l,m])=>m)){e[ai(0x473,0x4c5)](TimePhasedStartDate);}function ai(a,b){return aa(b,a-0x47d);}if(h[ai(0x467,0x417)](([l,m])=>m)){e[ai(0x473,0x46a)](TimePhasedEndDate);}if(i['some'](([l,m])=>m)){e[ai(0x473,0x44e)](TimePhasedDuration);}if(j[ai(0x467,0x453)](([l,m])=>m)){e[ai(0x473,0x4a4)](TimePhasedEffort);}return e;}*[aa(0x17,-0x11)](){const d=new Map();const e=new Map();const f=yield this['$'][aj(0x293,0x251)];function aj(a,b){return aa(a,b-0x22e);}for(const g of f){if(yield*g[aj(0x23e,0x23b)]()){e['set'](g,{'proposedStartOffset':yield g['$'][aj(0x223,0x232)],'proposedEndOffset':yield g['$'][aj(0x1d3,0x225)]});}}return function*(h,i){const j=String(i[ak(0x31a,0x323)]())+'/'+(h?'1':'0');function ak(a,b){return aj(b,a-0xfc);}let k=d[ak(0x329,0x2de)](j);if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[ak(0x326,0x34b)](i,!![],m[ak(0x32e,0x375)],TimeUnit['Millisecond']);n=yield*l[ak(0x305,0x2f6)](n,!![]);o=yield*l[ak(0x32c,0x323)](n,!![]);}else{const p=yield l['$'][ak(0x393,0x36b)];o=yield*l['calculateProjectedXDateWithDuration'](i,![],p[ak(0x380,0x382)]?m[ak(0x321,0x36f)]:yield l['$'][ak(0x317,0x2c9)],TimeUnit[ak(0x343,0x31c)]);n=yield*l['calculateProjectedXDate'](o,![]);}if(n&&o)k[ak(0x318,0x326)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k[ak(0x31c,0x2d6)]();d[ak(0x2fc,0x306)](j,k);return k;};}*[aa(0x23,0x47)](){const d=yield*this[al(0x119,0xfe)]();function al(a,b){return aa(a,b-0xdd);}if(d||(yield this['$']['isSegmented'])){return yield*super[al(0x12b,0x124)]();}else{const e=yield this['$'][al(0xce,0x10a)];const f=yield*this[al(0xd6,0xb5)](e[al(0x182,0x135)]);const g=yield this['$']['dispatcher'];const h=yield this['$'][al(0x141,0x126)];const i=yield PreviousValueOf(this['$'][al(0x10c,0x144)]);if(!(yield*this['isManuallyScheduled']())&&!(yield this['$'][al(0xe9,0xc9)])&&f){if(g[al(0x111,0xec)][al(0x99,0xdc)](_ene)===CalculateProposed&&i!=null&&!h[al(0x14d,0x121)]){const j=yield ProposedOrPrevious;if(e[al(0x12a,0x135)]===Direction[al(0xc5,0x112)]){yield*this[al(0x142,0x130)](i,j,!![]);}else{if(j<i){yield*this[al(0x12f,0x130)](i,j,![]);}}}return yield*super[al(0x157,0x124)]();}else{if(e[al(0x12b,0x135)]===Direction[al(0xef,0x112)]){const k=yield*super[al(0x139,0x124)]();const l=yield this['$'][al(0x8f,0xb0)];return l?l<k?l:k:k;}else{if(g['resolution'][al(0xdf,0xdc)](_ene)===CalculateProposed&&h[al(0xdd,0x121)]){return yield*this[al(0xd8,0xd9)](yield this['$']['endDate'],![],yield this['$'][al(0xaf,0xb2)]);}if(g[al(0x10b,0xec)][al(0x8c,0xdc)](_ene)===CalculateProposed&&!h['hasTimePhasedInput']&&i!=null){const m=yield ProposedOrPrevious;yield*this[al(0x10b,0x130)](i,m,![]);}return yield*super[al(0xd9,0x124)]();}}}}*[aa(-0x4b,-0x8)](){function am(a,b){return aa(b,a-0x496);}const d=yield*this[am(0x4b7,0x46e)]();if(d||(yield this['$'][am(0x46d,0x482)])){return yield*super[am(0x48e,0x457)]();}else{const e=yield this['$']['effectiveDirection'];const f=yield*this[am(0x46e,0x420)](e['direction']);if(!(yield*this[am(0x4f7,0x4be)]())&&!(yield this['$'][am(0x482,0x4c3)])&&f){return yield*super[am(0x48e,0x45c)]();}else{if(e[am(0x4ee,0x506)]===Direction[am(0x4cb,0x4a1)]){const g=yield this['$'][am(0x48a,0x465)];const h=yield this['$'][am(0x4df,0x4c6)];if(g[am(0x4a5,0x4a2)][am(0x495,0x48b)](_end)===CalculateProposed&&h['hasTimePhasedInput']){return yield*this[am(0x492,0x4aa)](yield this['$'][am(0x4fd,0x54e)],!![],yield this['$'][am(0x46b,0x4a2)]);}const i=yield PreviousValueOf(this['$'][am(0x4e1,0x52a)]);if(g['resolution'][am(0x495,0x483)](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this['expandTrailingAssigmentsByDates'](i,j,!![]);}return yield*super['calculateEndDate']();}else{const k=yield*super[am(0x48e,0x49f)]();const l=yield this['$'][am(0x4ab,0x4e9)];return l>k?l:k;}}}}*['isChangingOnlyEffortOnAssignment'](){function an(a,b){return aa(b,a-0x4bc);}const d=yield this['$'][an(0x4df,0x4ef)];for(const e of d){const f=yield e['$']['selector'];if(!f[an(0x4e6,0x513)])return![];}return!![];}*['hasUnitsOnAllAssignments'](){const d=yield this['$']['assignmentsTypeSelector'];return d['hasUnitsOnAllAssignments'];}*['isChangingOnlyEffort'](){const d=yield this['$'][ao(0x477,0x446)];function ao(a,b){return aa(b,a-0x40e);}return d[ao(0x42c,0x40a)];}*[aa(-0x4,-0x27)](){function ap(a,b){return aa(a,b-0x425);}const d=yield this['$'][ap(0x449,0x48e)];return d[ap(0x42c,0x3fe)];}*['isChangingOnlyEndDate'](){const d=yield this['$'][aq(0x45a,0x4ad)];function aq(a,b){return aa(b,a-0x3f1);}return d[aq(0x3ea,0x413)];}*[aa(0x49,0x10)](){function ar(a,b){return aa(b,a- -0x3e);}const d=yield*this[ar(-0x1d,-0x34)]();if(d||(yield this['$'][ar(-0x67,-0x66)])){return yield*super[ar(-0x2e,-0x7d)]();}else{const e=yield this['$'][ar(-0x11,-0x32)];const f=e[ar(0x1a,0x49)]===Direction[ar(-0x9,0x31)];const g=yield this['$'][ar(-0x4a,-0x91)];const h=yield this['$']['timePhasedDispatcher'];if(g[ar(-0x2f,-0x8)][ar(-0x3f,-0x1f)](_enc)===durationFormula['formulaId']&&!h[ar(0x6,-0x42)]){const i=yield*super['calculateDuration']();yield*this['expandTrailingAssignmentsByDuration'](i,f);return i;}if(g[ar(-0x2f,-0x16)]['get'](_enc)===CalculateProposed&&!h[ar(0x6,0x0)]&&!(h[ar(-0xa,0x45)][ar(-0x3f,-0x37)](DurationVar)&VariableInputState['HasProposedValue'])){const j=yield ProposedOrPrevious;return j;}if(g[ar(-0x2f,-0x69)]['get'](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&h[ar(-0xa,0x1f)][ar(-0x3f,-0x1b)](DurationVar)&VariableInputState[ar(-0x5a,-0xa9)]){const k=yield ProposedOrPrevious;yield*this[ar(-0x4,0x22)](k,f);const l=yield*this[ar(-0x49,-0x91)]();const m=yield this['$'][ar(-0x36,-0x2c)];return l?k>m?m:k:k;}if(!h[ar(0x6,-0x40)]){const n=yield ProposedOrPrevious;yield*this[ar(-0x4,0x7)](n,f);return n;}else if(h['hasTimePhasedInput']){const o=yield*this[ar(-0x49,-0x16)]();const p=yield this['$'][ar(-0x36,-0x48)];if(o){return p;}else{return Math[ar(-0x4d,-0x67)](p,yield ProposedOrPrevious);}}else{throw new Error(ar(0x1f,0x3));}}}*['calculateEffort'](){const d=yield this['$'][as(0x4b2,0x4cb)];function as(a,b){return aa(a,b-0x4a0);}if(d[as(0x4f4,0x4dc)]>0x0||(yield this['$'][as(0x49f,0x477)]))return yield*super[as(0x444,0x46c)]();else{const e=yield*this[as(0x4be,0x49b)]();const f=yield this['$'][as(0x422,0x46a)];if(e===SchedulingMode['Normal']){if(f[as(0x4e1,0x4dc)]>0x0){if(yield*this[as(0x498,0x4be)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$'][as(0x4c3,0x49d)]);if(g<=h){return g;}else{const i=yield this['$'][as(0x4c2,0x4cd)];yield*this[as(0x460,0x4a6)](g,h,i['direction']===Direction[as(0x4b3,0x4d5)]);return g;}}else{return yield*this[as(0x48f,0x4c0)]();}}else{return yield*super[as(0x4ba,0x46c)]();}}else{return yield*this[as(0x48e,0x4c0)]();}}}*[aa(0x74,0x20)](){if(yield this['$'][at(-0x129,-0xe9)]){return yield*super[at(-0x92,-0xa0)]();}function at(a,b){return aa(a,b- -0xc0);}const d=yield this['$'][at(-0x8f,-0x9d)];if(d[at(-0x98,-0x84)]>0x0){return yield*this[at(-0xa3,-0x67)]();}else{const e=yield ProposedOrPreviousValueOf(this['$'][at(-0xa6,-0xc3)]);if(e===void 0x0){return yield*this['calculateProjectedEffort'](yield this['$'][at(-0x65,-0x59)],yield this['$'][at(-0x6f,-0x75)]);}else{return e;}}}*[aa(0x60,0x59)](){function au(a,b){return aa(b,a- -0x9a);}let d=0x0;const e=yield this['$']['assigned'];for(const f of e){d+=yield*this[au(-0x97,-0xe3)]()[au(-0x2e,0x24)](yield f['$'][au(-0x9d,-0x99)],yield f['$']['effortUnit'],TimeUnit[au(-0x81,-0x8d)]);}return yield*this['getProject']()[au(-0x2e,-0x19)](d,TimeUnit[au(-0x81,-0x87)],yield this['$'][au(-0x74,-0x6b)]);}*[aa(0x13,0xe)](d){function av(a,b){return aa(a,b- -0x33);}return yield*d[av(-0x23,-0x25)](null);}*[aa(0x44,0x0)](d){function aw(a,b){return aa(a,b-0xa4);}if(yield*this[aw(0xdf,0xe2)]()){const e=this;const f=yield this['$'][aw(0xc4,0xa1)];return function*(g){function ax(a,b){return aw(b,a-0x50);}return yield*e[ax(0x15a,0x171)](g,d,f);};}else{return yield*super['getDateShifter'](d);}}*['isDurationDefinedByEffort'](){const d=yield*this[ay(0x5e3,0x5a7)]();const e=yield this['$'][ay(0x60f,0x5fc)];function ay(a,b){return aa(a,b-0x5ac);}return d!==SchedulingMode[ay(0x5b4,0x5ee)]&&d!==SchedulingMode[ay(0x546,0x58e)]&&(e||d===SchedulingMode['FixedEffort'])&&!(yield*this[ay(0x5a5,0x585)]())&&!(yield*this[ay(0x558,0x5a5)]())||d===SchedulingMode[ay(0x581,0x57d)]&&(yield*this[ay(0x5c8,0x5e7)]())&&(yield*this[ay(0x605,0x5b3)]());}*['shouldSkipNonWorkingTime'](){function az(a,b){return aa(b,a-0x30c);}if((yield*this[az(0x301,0x334)]())&&(yield*this[az(0x34a,0x2fd)]())){return(yield this['$'][az(0x309,0x2f2)])>0x0;}else{return yield*super[az(0x30a,0x2e7)]();}}*[aa(0x66,0x3a)](d,e=!![]){const f=yield this['$'][aA(0x23a,0x228)];function aA(a,b){return aa(b,a-0x232);}if(f==null)return;if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][aA(0x27d,0x298)]);const h=yield*this[aA(0x22e,0x211)](g,!![],d-f,void 0x0,{'purpose':'positioning'});yield*this[aA(0x285,0x2af)](g,h,e);}else{const i=yield PreviousValueOf(this['$'][aA(0x299,0x267)]);const j=yield*this[aA(0x22e,0x218)](i,![],d-f,void 0x0,{'purpose':'positioning'});yield*this['expandTrailingAssigmentsByDates'](i,j,e);}}}*['expandTrailingAssigmentsByDates'](d,e,f=!![]){if(d[aB(-0x97,-0x9e)]()===e[aB(-0xec,-0x9e)]()){return;}const g=yield this['$'][aB(-0x6a,-0x6b)];const h=[];for(const i of g){if(yield*i[aB(-0x7a,-0x81)]()){if(f){const j=yield PreviousValueOf(i['$'][aB(0x3,-0x43)]);if(j&&j[aB(-0xd6,-0x9e)]()===d[aB(-0xc7,-0x9e)]())h[aB(-0xe0,-0xa0)](i);}else{const k=yield PreviousValueOf(i['$']['startDate']);if(k&&k['getTime']()===d[aB(-0xc2,-0x9e)]())h[aB(-0xe0,-0xa0)](i);}}}function aB(a,b){return aa(a,b- -0x8e);}this[aB(-0x3,-0x4e)][aB(-0xc,-0x1b)]({'commitFinalized':{'fn':()=>{h['forEach'](l=>{function aC(a,b){return _enb(a- -0x17d,b);}this[aC(0x6d,0x51)][aC(0xdc,0xdc)](f?l['$']['endDate']:l['$'][aC(0xef,0xf6)],e,![]);});},'once':!![]}});}*['expandTrailingAssigmentsByEffort'](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$'][aD(0x5,0x38)]):yield PreviousValueOf(this['$']['startDate']);const h=yield this['$'][aD(-0x23,-0xa)];const i=new Set();for(const l of h){if(yield*l['isTimePhased']()){if(f){const m=yield PreviousValueOf(l['$'][aD(0x5,0x45)]);if(m&&m['getTime']()===g['getTime']())i['add'](l);}else{const n=yield PreviousValueOf(l['$'][aD(0x21,0x64)]);if(n&&n['getTime']()===g['getTime']())i[aD(-0x6c,-0x57)](l);}}}const j=yield*this['collectAssignmentsByCalendar'](function*(o){function aE(a,b){return aD(a- -0x18e,b);}return i[aE(-0x179,-0x1c2)](o)||!(yield*o[aE(-0x1c7,-0x192)]());});const k=yield*this[aD(0x20,-0x2f)](g,f,d-e,void 0x0,void 0x0,j);function aD(a,b){return aa(b,a- -0x46);}this[aD(-0x6,-0x15)][aD(0x2d,-0x4)]({'commitFinalized':{'fn':()=>{function aF(a,b){return aD(b-0x4b9,a);}i[aF(0x3f8,0x440)](o=>{function aG(a,b){return aF(a,b- -0x40d);}this[aG(0x29,0x4b)][aG(0xee,0xba)](f?o['$'][aG(0x63,0xb1)]:o['$'][aG(0x11e,0xcd)],k,![]);});},'once':!![]}});}*['useEventAvailabilityIterator'](){return!![];}*[aa(-0x33,-0x1f)](){function aH(a,b){return aa(a,b- -0x140);}const d=yield this['$'][aH(-0x102,-0x113)];return d['direction']===Direction['Forward']?yield*this[aH(-0x13f,-0xf2)](yield this['$'][aH(-0xe6,-0xf1)],(yield*this[aH(-0x16e,-0x15a)]())?yield*this[aH(-0x13c,-0x108)]():yield this['$'][aH(-0x17d,-0x12b)],void 0x0,{'isForward':!![]}):yield*this[aH(-0xec,-0xf2)](yield this['$'][aH(-0x177,-0x16d)],yield this['$'][aH(-0x135,-0x11c)],void 0x0,{'isForward':![]});}*['calculateProjectedDuration'](d,e,f,g,...h){const i=yield this['$'][aI(0x3f0,0x3f9)];const j=g?.['isForward']!==void 0x0?g:i[aI(0x41b,0x451)]===Direction[aI(0x3f8,0x408)]?Object['assign']({},g,{'isForward':!![]}):Object['assign']({},g,{'isForward':![]});function aI(a,b){return aa(b,a-0x3c3);}return yield*super[aI(0x411,0x3ce)](d,e,f,j,...h);}*['calculateRegularAssignmentsByCalendar'](){return yield*this['collectAssignmentsByCalendar'](function*(d){function aJ(a,b){return _enb(a- -0x58,b);}return!(yield*d[aJ(0x1ba,0x16f)]());});}*[aa(0x4b,0x2f)](){function aK(a,b){return aa(b,a-0x5b5);}return yield*this[aK(0x614,0x5ea)]();}*[aa(0x42,0x5f)](d){const e=yield this['$']['effectiveCalendar'];const f=yield this['$']['assigned'];const g=this[aL(0x33f,0x361)]();const h=yield*this[aL(0x39d,0x3d6)]();const i=(yield this['$'][aL(0x350,0x335)])||h&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'];const j=new Map();function aL(a,b){return aa(b,a-0x33c);}for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aL(0x30c,0x2b8)];const m=i||(yield k['$'][aL(0x350,0x353)]);if(l){const n=m?e:yield l['$'][aL(0x388,0x391)];let o=j[aL(0x33b,0x340)](n);if(!o){o=[];j[aL(0x30e,0x351)](n,o);}o[aL(0x32a,0x34f)](k);}}}return j;}*[aa(-0x3a,-0xd)](d,e){const f=d[aM(0x54,0xa2)]??aM(0x7,0x7);if(f===aM(0x7,-0x4e)||(yield*this[aM(0x1,-0x4f)]())||d[aM(0x37,-0x9)]||(yield this['$'][aM(-0x49,-0x55)])){return yield*super['forEachAvailabilityInterval'](d,e);}const g=d[aM(0x21,-0x22)]!==![];const h=yield this['$'][aM(0x2c,0x4e)];const i=this[aM(-0x1d,-0x5c)]();const j=yield*this[aM(0x41,0x7)]();const k=yield this['$'][aM(-0x15,0x7)];const l=yield this['$'][aM(0x10,-0x3b)];const m=(yield this['$'][aM(-0xc,0x48)])||d[aM(-0xc,-0x5)];const n=d[aM(-0x16,0x14)]??![];const o=i[aM(-0x4,-0x20)];if(o){d=Object[aM(0x51,0x5)]({'maxRange':o},d);}const p=yield this['$'][aM(0x35,0x70)];const q=yield*p(g,g?d['startDate']:d[aM(0x2b,0x21)]);let r=g?0x0:q[aM(-0xf,-0x1)][aM(0x11,0x19)]-0x1;let s=g?d[aM(0x47,0x4f)]:d[aM(0x2b,0x7)];function aM(a,b){return aa(b,a- -0x20);}const t=new Set();const u=l[aM(-0x2d,-0x6c)](d,(v,w,x)=>{const y=x[aN(0x132,0x145)]();const z=x[aN(0x11e,0x16b)]();r=q[aN(0x11c,0x117)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q[aN(0x11c,0x170)](g,r,s,g?w:v,t,(A,B,C)=>{function aO(a,b){return aN(a- -0xc5,b);}if(y[aO(-0x6,0x22)](h)&&(n||someInSet(C,D=>{function aP(a,b){return aO(a-0x372,b);}return m||D[aP(0x381,0x335)]||y['get'](D['resource'][aP(0x3b9,0x3c3)])||j&&!i[aP(0x3d8,0x397)];})||z['some'](D=>k['has'](D)))){if(e(A,B,x,C)===![])return![];}});function aN(a,b){return aM(a-0xe0,b);}s=g?w:v;if(r===-0x1)return![];});return u;}*[aa(-0x1a,0x1d)](){const d=yield this['$']['assigned'];for(const e of d){if(yield*e['isUserTimePhased']())return![];}return!![];}*['hasOnlyRegularAssignments'](){const d=yield this['$'][aQ(0x3d6,0x3e2)];function aQ(a,b){return aa(a,b-0x388);}return d[aQ(0x3d9,0x3a9)];}*[aa(0x41,-0xb)](){const d=yield this['$'][aR(-0x1a,0x27)];function aR(a,b){return aa(b,a- -0x74);}return d[aR(-0x7f,-0x34)];}*[aa(0x2b,-0x1a)](){function aS(a,b){return aa(a,b-0x4eb);}const d=yield this['$']['assignmentsTypeSelector'];return d[aS(0x4e8,0x4d1)];}*[aa(0x61,0x17)](){let d=MAX_DATE;function aT(a,b){return aa(a,b-0x3b6);}const e=yield this['$'][aT(0x400,0x3d9)];for(const f of e){const g=yield f[aT(0x37a,0x3c9)]['$'][aT(0x420,0x41d)];if(g&&g<d)d=g;}return d['getTime']()-MAX_DATE['getTime']()?d:null;}*[aa(0xa,-0x21)](){let d=MIN_DATE;const e=yield this['$'][aU(0x37b,0x37f)];function aU(a,b){return aa(a,b-0x35c);}for(const f of e){const g=yield f[aU(0x345,0x36f)]['$']['endDate'];if(g&&g>d)d=g;}return d[aU(0x397,0x34c)]()-MIN_DATE['getTime']()?d:null;}*[aa(-0x12,0x38)](){let d=MIN_DATE;const e=yield this['$'][aV(-0x154,-0x194)];function aV(a,b){return aa(b,a- -0x177);}for(const f of e){const g=(yield*f[aV(-0x16a,-0x17d)]())?(yield*f[aV(-0x121,-0x11a)]())?yield f[aV(-0x164,-0x17d)]['$'][aV(-0x12c,-0x171)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d[aV(-0x187,-0x135)]()-MIN_DATE[aV(-0x187,-0x159)]()?d:null;}*[aa(-0xd,-0x15)](d,e,f){const g=yield*this[aW(0x96,0xdc)]();function aW(a,b){return aa(a,b-0xbb);}if(g||(yield this['$']['isSegmented'])){return yield*super[aW(0x71,0xa6)](d,e,f);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$']['regularAssignmentsByCalendar'];const i=new Map();for(const [l,m]of h){let n=0x0;for(const o of m){n+=yield o['$'][aW(0xc2,0xd5)];}i[aW(0x4e,0x8d)](l,n);}let j=0x0;const k=Object[aW(0x160,0x12c)](yield*this[aW(0xf8,0xbc)](),{'startDate':d,'endDate':e},{'purpose':'progressing'});yield*this[aW(0xe0,0xae)](k,(p,q,r,s)=>{const t=r[aX(0x202,0x1d0)]();const u=p[aX(0x173,0x162)](),v=q['getTime'](),w=v-u;let x=0x0;function aX(a,b){return aW(a,b-0xb7);}for(const y of t){x+=i[aX(0x19b,0x171)](y)||0x0;}if(!f){s['forEach'](z=>{function aY(a,b){return aX(b,a-0x22f);}x+=z[aY(0x3bb,0x410)];});}j+=x*w*0.01;});return yield*this['getProject']()[aW(0x163,0x127)](j,TimeUnit[aW(0xbc,0xd4)],yield this['$'][aW(0xc2,0xe1)]);}*['calculateProjectedXDateWithDuration'](d,e=!![],f,g,h){const i=yield*super[aZ(0x413,0x435)](d,e,f,g,h);function aZ(a,b){return aa(a,b-0x439);}if(yield this['$'][aZ(0x3e6,0x410)])return i;const j=yield*this[aZ(0x44c,0x42e)]();if(j){const k=yield this['$'][aZ(0x41d,0x466)];if(k[aZ(0x449,0x491)]===Direction[aZ(0x468,0x46e)]&&e===![]){const l=yield this['$'][aZ(0x46b,0x420)];const m=l[aZ(0x436,0x470)];if(m>0x0){return yield*l[aZ(0x44b,0x478)][aZ(0x3e3,0x435)](i,![],m,TimeUnit['Millisecond']);}}else if(k[aZ(0x4b0,0x491)]===Direction[aZ(0x461,0x45b)]&&e===!![]){const n=yield this['$']['proposedEndOffsets'];const o=n['minOffset'];if(o>0x0){return yield*n[aZ(0x43c,0x478)][aZ(0x435,0x435)](i,!![],o,TimeUnit[aZ(0x42e,0x452)]);}}}return i;}*['getBaseOptionsForDurationCalculations'](){const d=yield*this[b0(0x425,0x448)]();function b0(a,b){return aa(b,a-0x42a);}if(d===SchedulingMode['FixedDuration']){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b[b0(0x3fe,0x3d5)][b0(0x452,0x439)](this);}}*['calculateProjectedXDateByEffort'](d,e=!![],f,g,h,i){if(yield this['$']['isSegmented']){return yield*super[b1(0x4c9,0x4d1)](d,e,f,g,h,i);}function b1(a,b){return aa(a,b-0x46b);}f=f!==void 0x0?f:yield this['$'][b1(0x484,0x468)];g=g!==void 0x0?g:yield this['$']['effortUnit'];const j=yield*this[b1(0x43b,0x46e)]()[b1(0x525,0x4d7)](f,g,TimeUnit[b1(0x4a1,0x484)]);if(d==null||f==null)return null;let k=d['getTime']();let l=j;if(l===0x0)return new Date(k);const {zeroDurationMsThreshold:m}=this;const n=Object[b1(0x4a9,0x4dc)](yield*this[b1(0x472,0x43f)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const o=yield*this[b1(0x4d7,0x48c)]();if(h?.[b1(0x4e2,0x4df)]===b1(0x476,0x492)||o){const s=new Map();const t=yield this['$']['assigned'];let u=0x0;const v=new Map();for(const y of t){const z=yield y['$'][b1(0x447,0x485)];u+=z;v[b1(0x43c,0x43d)](y,z);}if(u===0x0){return yield*super[b1(0x4b0,0x4d1)](d,e,f,g,h,i);}for(const A of t){s[b1(0x410,0x43d)](A,j*v[b1(0x487,0x46a)](A)/u);}const w=yield this['$'][b1(0x477,0x435)];const x=new Map();for(const [B,C]of w){for(const D of C){x[b1(0x41e,0x43d)](D,B);}}yield*this['forEachAvailabilityInterval'](n,(E,F,G)=>{const H=E[b2(0x1df,0x21c)](),I=F[b2(0x1df,0x1b1)](),J=I-H;for(const K of t){const L=x[b2(0x1ee,0x1a2)](K);if(G[b2(0x261,0x23b)]()[b2(0x1ee,0x23c)](L)){const M=s[b2(0x1ee,0x1c6)](K);let N=v[b2(0x1ee,0x21b)](K);const O=N*J*0.01;const P=M-O;if(!P||P<m){const Q=e?H+M/(0.01*N):I-M/(0.01*N);if(e&&Q>k||!e&&Q<k){k=Q;}s[b2(0x205,0x21c)](K);}else{s['set'](K,M-O);}}}function b2(a,b){return b1(b,a- -0x27c);}if(s[b2(0x22b,0x252)]===0x0)return![];});return new Date(k);}const p=i?i:yield this['$'][b1(0x423,0x476)];const q=new Map();(yield this['$'][b1(0x3fc,0x435)])['forEach']((E,F)=>{E['forEach'](G=>q['set'](G,F));});const r=new Map();for(const [E,F]of p){let G=0x0;for(const H of F){G+=yield H['$']['units'];}r[b1(0x465,0x43d)](E,G);}yield*this[b1(0x46d,0x45e)](n,(I,J,K,L)=>{const M=K[b3(0x4a6,0x4de)]();const N=K[b3(0x4ba,0x490)]();const O=I[b3(0x438,0x46d)](),P=J[b3(0x438,0x45d)](),Q=P-O;let R=0x0;for(const U of M){R+=r[b3(0x447,0x478)](U)||0x0;}if(!i){L['forEach'](V=>{function b4(a,b){return b3(a- -0x7b,b);}if(N[b4(0x3cc,0x3f3)](q[b4(0x3cc,0x3b7)](V)))R+=V[b4(0x3e7,0x3c4)];});}const S=R*Q*0.01;const T=l-S;function b3(a,b){return b1(b,a- -0x23);}if(!T||T<m){k=e?O+l/(0.01*R):P-l/(0.01*R);return![];}else{l-=S;}});return new Date(k);}}__decorate([field({'lazy':!![]})],c[aa(0x4c,0x2c)],'proposedStartDate',void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x7b,0x2c)],aa(0x93,0x63),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],aa(0x65,0x4f),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x62,0x2c)],aa(-0x19,0x24),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x18,0x2c)],aa(0x11,-0x2d),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],aa(-0x18,0x15),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x2e,0x2c)],'proposedAssignmentDuration',void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x23,0x2c)],aa(0x7f,0x5a),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],aa(-0x4d,-0x18),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c['prototype'],aa(0x91,0x49),void 0x0);__decorate([field()],c[aa(0x34,0x2c)],aa(0x82,0x69),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x3f,0x2c)],aa(0x7,-0x19),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x6e,0x2c)],aa(0x8,-0x35),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x38,0x2c)],aa(0x55,0xb),void 0x0);__decorate([field({'lazy':!![]})],c[aa(0x7f,0x2c)],aa(0x16,0x55),void 0x0);__decorate([calculate('proposedTotalUnits')],c[aa(0x7a,0x2c)],'calculateProposedTotalUnits',null);__decorate([calculate(aa(0x32,-0x17))],c['prototype'],aa(0xe,0x1f),null);__decorate([calculate(aa(0x28,0x63))],c[aa(0x50,0x2c)],aa(0x11,0x18),null);__decorate([calculate('proposedStartDateMin')],c[aa(0x34,0x2c)],aa(-0x3,0x52),null);__decorate([calculate(aa(0x55,0x24))],c[aa(0x3f,0x2c)],'calculateProposedEndDateMax',null);__decorate([calculate(aa(-0x39,-0x19))],c[aa(0x51,0x2c)],aa(0x27,-0x1d),null);__decorate([calculate(aa(-0x30,-0x35))],c[aa(0x4a,0x2c)],'calculateProposedEndOffsets',null);__decorate([calculate(aa(0x45,0x5a))],c[aa(0x52,0x2c)],'calculateAssignmentsTypeSelector',null);__decorate([calculate(aa(0x64,0x69))],c[aa(0x4a,0x2c)],'calculateSelector',null);__decorate([calculate('timePhasedDispatcher')],c[aa(-0x22,0x2c)],aa(0x63,0x62),null);__decorate([calculate('timePhasedIntervalsCache')],c['prototype'],aa(-0x1f,-0x11),null);__decorate([calculate(aa(-0x4,0x8))],c[aa(-0x4,0x2c)],'calculateProposedAssignmentDuration',null);__decorate([calculate('regularAssignmentsByCalendar')],c[aa(0x5d,0x2c)],'calculateRegularAssignmentsByCalendar',null);__decorate([calculate(aa(0x2,-0x2d))],c[aa(0x46,0x2c)],aa(0x15,0x17),null);__decorate([calculate(aa(-0x3e,0x15))],c[aa(0x1,0x2c)],aa(-0x52,-0x21),null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function V(a,b){return _enb(a- -0x94,b);}while(!![]){try{const d=parseInt(V(0xd3,0xa9))/0x1+parseInt(V(0x34,0x2f))/0x2*(-parseInt(V(0x44,0x94))/0x3)+parseInt(V(0x40,0x9c))/0x4+parseInt(V(0x8f,0x98))/0x5*(-parseInt(V(0xec,0xc5))/0x6)+-parseInt(V(0x4b,0x86))/0x7*(parseInt(V(0x98,0xc6))/0x8)+parseInt(V(0x6e,0x24))/0x9*(parseInt(V(0x38,-0xc))/0xa)+parseInt(V(0xa7,0xbf))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6da89));var __decorate=function(a,b,e,f){function W(a,b){return _enb(a- -0x1c0,b);}var g=arguments[W(-0x6f,-0x2d)],h=g<0x3?b:f===null?f=Object[W(-0xa4,-0xc3)](b,e):f,j;if(typeof Reflect===W(-0x90,-0x88)&&typeof Reflect[W(-0xa2,-0x9a)]==='function')h=Reflect[W(-0xa2,-0x98)](a,b,e,f);else for(var k=a[W(-0x6f,-0x20)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,HasProposedValue,PreviousValueOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xc7;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enaa(a,b){return _enb(a- -0x3b6,b);}import{CalculateProposed}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';function _ena(){const bl=['boolean','calculateProjectedXDateWithDuration','phantomEndDate','calculateSelector','calculatePhantomStartOffset','hasStartDateValue','doCalculateAssignmentProjectedEffort','isPhantomTimePhasedStructurally','eventEffectiveSchedulingMode','doCalculateAssignmentEffort','calculateStartDate','ion','calculateIgnoreResourceCalendar','_changeAssignmentData','writeEffort','calculateEffortUnit','splice','formulaId','baseRevision','length','isDurationDefinedByEffort','proposedStartDate','calculateStartByDelay','maxAssignmentProposedEndDate','minAssignmentProposedStartDate','direction','hasEndDateValue','_calculateEffortData','add','hasInputOnUnits','calculateEffectiveDirection','eventSelector','number','prepareDispatcher','proposedEndOffset','leaveGraph','calculateEffortProposed','resolution','proposedStartOffsets','effortUnit','startDate','558920zuZgRv','calculateEffort','FixedEffort','call','writeStartDate','isDurationDefinedByEffortStructurally','$name','getTime','_proposedMirror','effortDriven','eventEffortDriven','proposedEndDateMax','skipNonWorkingTimeInDurationWhenSchedulingManually','commitAsync','manuallyScheduled','writeIgnoreResourceCalendar','event','hasInputOnDuration','calculateEndDate','calculateStartOffset','unlink','fields','calculateEndOffset','proposedStartDateMin','assigned','1122834FMQcfa','putTimePhasedEffortBatch','selector','2TqlMhm','getProject','hasInputOnEndDate','isUserTimePhased','1461280IDjQIK','assign','string','timePhasedDispatcher','write','calculateAssignmentsByCalendar','set','hasInputOnEffort','2545492lCqxBp','hasInputOnStartDate','startOffset','forEachAvailabilityInterval','1116522TlTGOP','calculateSchedulingModeForUnitsCalculation','prepareDispatcherForAssignmentsFixedDuration','endOffset','run','filter','effort','215404vJLxwh','effectiveCalendar','ignoreResourceCalendar','PROPOSED_','calculateProposedEndOffset','hasEffortInput','collectInfo','isChangingOnlyDuration','calculateDuration','proposedStartOffset','size','getBaseOptionsForDurationCalculations','isTimePhasedStructurally','Unknown\x20formula\x20for\x20`effort`','hasIdentifier','calculateEffortDriven','schedulingMode','hasInputOnlyOnEffort','setTimePhasedEffort','isChangingOnlyEndDate','calculateProjectedXDateByEffort','Normal','graph','hasPreviousValueForUnits','getCalendarsWorking','SchedulerProTimePhasedAssignmentMixin','ownIgnoreResourceCalendar','assignmentsByCalendar','phantomEndOffset','calculateProposedStartOffset','writeDuration','FixedUnits','get','hasDurationValue','addProposedValueFlag','9ofDEtM','duration','$convertDuration','writeUnits','enterGraph','calculateEffortPure','effectiveDirection','proposedMirror','calculatePhantomEndOffset','calculateProportionalEffort','remove','proposedMirrorClass','getBaseOptionsForEffortCalculations','Forward','durationUnit','writeEndDate','calculateEndByDelay','proposedEndOffsets','calculateProportionalEffortByEffort','project','calculateProjectedEffort','forEach','minOffset','hasInputOnTimePhasedData','calculateProjectedDuration','phantomStartDate','getOwnPropertyDescriptor','eventIsSegmented','decorate','effectiveSchedulingMode','prototype','constructor','date','5OkEXhH','push','isPhantomTimePhased','calculateHasOnlyRegularAssignmentsRaw','dispatcher','calculateDurationUnit','hasProposedValueForUnits','isSegmented','isRemovingAssignmentByPutEffort','224JRsFnM','calculateProportionalEffortByUnits','assignment','hasProposedValueForAssignmentsField','object','units','$removed','FixedDuration','phantomStartOffset','calculateEffectiveDataOrVisualCalendar','isTimePhased','resource','calculateUnitsForNewAssignment','sort','Millisecond','5815359AbcooR','endDate','hasProposedAssignments'];_ena=function(){return bl;};return _ena();}import{CalendarIntervalMixin}from'../../../calendar/CalendarIntervalMixin.js';import{CalendarIntervalStore}from'../../../calendar/CalendarIntervalStore.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MissingValue}from'../../../util/Constants.js';import{BaseCalendarMixin}from'../scheduler_basic/BaseCalendarMixin.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{effortFormula,EffortVar,UnitsVar}from'./HasEffortDispatcher.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';import{FixedDurationMixin}from'./scheduling_modes/FixedDurationMixin.js';class TimePhasedAssignmentMirror extends Mixin([FixedDurationMixin],a=>{class b extends a{*['calculateDurationUnit'](){function X(a,b){return _enb(a-0x277,b);}return yield this[X(0x3a5,0x368)]['$'][X(0x387,0x3e2)];}*[Y(0x1fc,0x1e3)](){function Z(a,b){return Y(b- -0x2e5,a);}return yield this['assignment']['$'][Z(-0xc1,-0xd1)];}*[Y(0x19d,0x18f)](){function a0(a,b){return Y(b- -0x39b,a);}return yield this[a0(-0x1b1,-0x1be)]['$']['effortDriven'];}*['calculateSchedulingMode'](){function a1(a,b){return Y(a- -0x262,b);}return yield this[a1(-0x85,-0x78)]['$'][a1(-0xc4,-0x110)];}*[Y(0x1d8,0x21c)](){function a2(a,b){return Y(b- -0x24d,a);}return yield*this['assignment'][a2(-0x2f,-0x75)]();}*['hasPreviousValueForUnits'](){function a3(a,b){return Y(a- -0xf,b);}return yield*this[a3(0x1ce,0x176)][a3(0x196,0x1a2)]();}*[Y(0x20b,0x262)](){function a4(a,b){return Y(a-0x25b,b);}return yield*this['assignment'][a4(0x466,0x409)]();}*['calculateEffectiveDataOrVisualCalendar'](c){function a5(a,b){return Y(b-0x70,a);}return yield*this[a5(0x280,0x24d)][a5(0x1fb,0x254)](c);}*[Y(0x180,0x134)](){const c=new Map();const d=yield this['assignment']['$'][a6(0x4cb,0x4ef)];if(d){const e=yield d['$'][a6(0x474,0x465)];c[a6(0x466,0x4b5)](e,[this[a6(0x4c2,0x4ec)]]);}function a6(a,b){return Y(a-0x2e5,b);}return c;}*[Y(0x1f9,0x229)](){function a7(a,b){return Y(a-0x24b,b);}return yield this['assignment']['$'][a7(0x3db,0x3a4)];}*['getBaseOptionsForDurationCalculations'](){function a8(a,b){return Y(a-0x55,b);}return yield*this[a8(0x232,0x209)]['getBaseOptionsForDurationCalculations']();}}__decorate([calculate(Y(0x1bf,0x1dc))],b['prototype'],Y(0x1d7,0x1f9),null);function Y(a,b){return _enb(a-0xaf,b);}__decorate([calculate(Y(0x214,0x248))],b['prototype'],Y(0x1fc,0x22b),null);__decorate([calculate(Y(0x21f,0x23d))],b[Y(0x1cf,0x1c4)],Y(0x19d,0x178),null);__decorate([calculate('schedulingMode')],b[Y(0x1cf,0x1e4)],'calculateSchedulingMode',null);__decorate([calculate(Y(0x190,0x13f))],b['prototype'],Y(0x1f9,0x1f4),null);return b;}){}class TimePhasedAssignmentSelector{constructor(){this[a9(0x3fc,0x3de)]=null;function a9(a,b){return _enb(b-0x2b0,a);}this[a9(0x42c,0x427)]=null;this[a9(0x3e2,0x40d)]=null;this[a9(0x420,0x3f6)]=null;this[a9(0x452,0x421)]=![];this[a9(0x41e,0x3cd)]=![];this[a9(0x411,0x3f3)]=![];this[a9(0x3eb,0x408)]=![];this[a9(0x38a,0x3b0)]=![];this[a9(0x336,0x385)]=![];this[a9(0x3d0,0x37a)]=![];this[a9(0x462,0x428)]=![];this['hasInputOnEffort']=![];this[a9(0x45c,0x40b)]=![];this[a9(0x358,0x3a6)]=![];}get[_enaa(-0x2c6,-0x319)](){function ab(a,b){return _enaa(b-0x179,a);}return!this['hasInputOnStartDate']&&!this[ab(-0x155,-0x173)]&&!this[ab(-0xc3,-0xc5)]&&this[ab(-0x177,-0x16a)]&&!this[ab(-0xed,-0xe2)];}get['hasInputOnTimePhasedData'](){function ac(a,b){return _enaa(b-0x6da,a);}return this[ac(0x3b7,0x3f9)]||this['hasInputOnEndDate']||this[ac(0x4da,0x49c)];}get[_enaa(-0x2eb,-0x30b)](){function ad(a,b){return _enaa(a-0x265,b);}return(this[ad(-0xe,-0x4e)]?0x1:0x0)+(this[ad(0x7,0x38)]?0x1:0x0)+(this[ad(-0x51,-0x8e)]?0x1:0x0)>=0x2;}get[_enaa(-0x280,-0x261)](){function ae(a,b){return _enaa(b-0xe3,a);}return this[ae(-0x1f2,-0x208)]||this[ae(-0x175,-0x181)];}get[_enaa(-0x2cb,-0x287)](){function af(a,b){return _enaa(b-0x6a0,a);}return this['isUserTimePhased']||this[af(0x487,0x456)];}get[_enaa(-0x291,-0x27f)](){function ag(a,b){return _enaa(a-0x76a,b);}return this[ag(0x4ea,0x500)]&&!this['isUserTimePhased'];}get[_enaa(-0x271,-0x274)](){function ah(a,b){return _enaa(b-0xb3,a);}return this[ah(-0x22f,-0x218)]&&!this['isUserTimePhased'];}get[_enaa(-0x24a,-0x22e)](){const a=this[ai(0x548,0x54c)];function ai(a,b){return _enaa(b-0x78b,a);}if(a){const b=this[ai(0x4f6,0x51b)];const c=this[ai(0x4e9,0x546)];return b!==SchedulingMode['FixedDuration']&&b!==SchedulingMode[ai(0x4e2,0x4c9)]&&(c||b===SchedulingMode[ai(0x50b,0x53e)]);}else{return![];}}get[_enaa(-0x264,-0x26a)](){function aj(a,b){return _enaa(a-0x4d2,b);}const a=this[aj(0x293,0x266)];if(a){const b=this['eventEffectiveSchedulingMode'];return this[aj(0x288,0x2a7)]&&!this[aj(0x279,0x24d)][aj(0x202,0x1c3)]&&!this[aj(0x279,0x238)][aj(0x20e,0x1f3)]||b===SchedulingMode[aj(0x21a,0x1f1)]&&this[aj(0x1ef,0x1e9)]&&!this[aj(0x277,0x2cc)]&&this[aj(0x212,0x1f6)];}else{return![];}}*[_enaa(-0x2d1,-0x2d2)](){const a=this[ak(0x1ed,0x23b)];function ak(a,b){return _enaa(b-0x4c3,a);}this[ak(0x244,0x250)]=(yield ProposedOrPreviousValueOf(a['$'][ak(0x292,0x273)]))!=null;this[ak(0x28e,0x265)]=(yield ProposedOrPreviousValueOf(a['$'][ak(0x25a,0x249)]))!=null;this[ak(0x25c,0x20d)]=(yield ProposedOrPreviousValueOf(a['$'][ak(0x1bb,0x210)]))!=null;this['hasInputOnStartDate']=yield HasProposedNotPreviousValue(a['$'][ak(0x2af,0x273)]);this[ak(0x201,0x1d7)]=yield HasProposedNotPreviousValue(a['$'][ak(0x21b,0x249)]);this[ak(0x23f,0x285)]=yield HasProposedNotPreviousValue(a['$']['duration']);this[ak(0x22c,0x1e0)]=yield HasProposedNotPreviousValue(a['$']['effort']);this['hasInputOnUnits']=yield HasProposedNotPreviousValue(a['$'][ak(0x260,0x23e)]);this[ak(0x1c2,0x203)]=yield*a['hasPreviousValueForUnits']();const b=this[ak(0x29b,0x284)]=yield a['$'][ak(0x2bf,0x284)];if(b){this[ak(0x243,0x26a)]=yield b['$']['selector'];this['eventEffectiveSchedulingMode']=yield*b[ak(0x243,0x22c)]();this[ak(0x296,0x27e)]=yield b['$'][ak(0x220,0x27d)];this[ak(0x20b,0x22a)]=yield b['$'][ak(0x235,0x237)];}}}class SchedulerProTimePhasedAssignmentMixin extends Mixin([FixedDurationMixin,SchedulerProAssignmentMixin],a=>{const b=a[al(0x9c,0x8d)];class c extends a{constructor(){super(...arguments);this['proposedMirrorClass']=TimePhasedAssignmentMirror;function am(a,b){return al(a,b- -0x35);}this[am(0x98,0xa7)]=void 0x0;}['_calculateEffortData'](d,e,f){let g,h;function an(a,b){return al(b,a- -0x329);}if(d[an(-0x2e0,-0x326)]){g=d['run']('doCalculateAssignmentEffort',e,f);h=d[an(-0x257,-0x21c)];}else{g=this[an(-0x2e0,-0x2ee)](an(-0x275,-0x25c),e,f);h=this[an(-0x257,-0x23f)];}return{'startDate':e,'endDate':f,'effort':g,'effortUnit':h};}[al(0xd4,0xb8)](d,e,f){function ao(a,b){return al(a,b-0x3c3);}let g;if(d[ao(0x3fd,0x40c)]){g=f[ao(0x47f,0x42f)](d);if(!g){g={};f[ao(0x3c3,0x402)](d,g);}}else{g=d;}Object['assign'](g,e);return g;}[al(0xc1,0xee)](d){if(!d[ap(0x50,0x90)]){return;}const {project:e,resource:f,event:g,durationUnit:h,effortUnit:j}=this;const {assignmentStore:k}=e;function ap(a,b){return al(b,a- -0x6e);}const m=g[ap(0x7e,0x91)];const n=g[ap(0x65,0x18)];const o=g[ap(0x3b,0x6e)];const p=new Map();const q=[];const r=[];const s={'resource':f,'event':g,'durationUnit':h,'effortUnit':j};d=d['slice']()[ap(0x38,0x21)]((w,x)=>(w['startDate']||n)['getTime']()-(x['startDate']||n)[ap(0x6d,0x35)]());const t=[...m][ap(-0x24,0x1e)](w=>w['resource']===f)[ap(0x38,0x37)]((w,x)=>(w[ap(0x65,0x5c)]||n)[ap(0x6d,0x36)]()-(x[ap(0x65,0xad)]||n)[ap(0x6d,0xb6)]());let u=0x0;for(const w of d){const {startDate:x,endDate:y}=w;let z=Boolean(w[ap(-0x23,0x2f)]);const A=t['slice']();let B=![];for(let C=u,D=A[ap(0x50,0x11)];C<D;C++){const E=A[C];const F=p['get'](E);const G=F?.['startDate']||E[ap(0x65,0x65)]||n;const H=F?.[ap(0x3b,0x59)]||E[ap(0x3b,-0xa)]||o;let I=C;if(G<y&&H>x){if(!B){u=C;B=!![];}const J=F?.[ap(0xf,0x23)]||E['durationUnit'];if(G>=x&&H<=y){if(z){p[ap(-0x2f,0x29)](E,w);z=![];}else{r[ap(0x23,0x4e)](E);t[ap(0x4d,0x46)](C);}}else{let K;if(z){K={...s,...w};q[ap(0x23,0x6c)](K);z=![];}let L=![];if(G<x){const M=this[ap(0x58,0x60)](E,G,x);if(M[ap(-0x23,-0x4f)]){L=!![];this[ap(0x4a,0x9f)](E,M,p);if(K){I++;t[ap(0x4d,0x12)](I,0x0,K);I++;}if(H>y){const N={'resource':f,'event':g,'durationUnit':J,...this[ap(0x58,0x29)](E,y,H)};if(N[ap(-0x23,0xb)]){q['push'](N);t[ap(0x4d,0x3)](I,0x0,N);}}}}if(!L&&H>y){if(K){t[ap(0x4d,0x54)](I,0x0,K);I++;}const O=this[ap(0x4a,0x57)](E,this[ap(0x58,-0x4)](E,y,H),p);if(!O['effort']){}}}}else if(G>=y){u=C;break;}}if(z){const P={...s,...w};q['push'](P);t[ap(0x23,0x7)](P);if(!p[ap(-0x18,0x1b)]&&t[ap(0x50,0x3d)]===0x1&&!t[0x0]['startDate']&&!t[0x0][ap(0x3b,-0x1b)]){this[ap(0x4a,0x80)](t[0x0],{'startDate':n,'endDate':o,'effort':this['effort']},p);}}}let v=[];for(let [Q,R]of p){Object[ap(-0x34,-0x63)](Q,R);}if(q[ap(0x50,0x65)]){q[ap(0x38,0x8d)]((S,T)=>S[ap(0x65,0xa)][ap(0x6d,0x1c)]()-T[ap(0x65,0x33)][ap(0x6d,0x32)]());if(this['event'][ap(-0x12,-0x54)]===SchedulingMode[ap(0x32,0x1b)]){for(const S of q){const T=this[ap(-0x25,-0x6c)]('calculateUnitsForNewAssignment',S[ap(0x65,0xbc)],S['endDate'],S['effort'],S['effortUnit'],S[ap(0x36,0x67)]);delete S['effort'];S[ap(0x30,0x5a)]=T;}}v=k[ap(0x59,0x69)](q);}if(r[ap(0x50,0x88)]){r[ap(0x16,-0x29)](U=>{function aq(a,b){return ap(a-0x1a,b);}U[aq(-0x9,0x4d)]=0x0;U['duration']=0x0;U[aq(0x4b,0x5c)]=!![];});e[ap(0x48,-0x4)]({'commitFinalized':{'fn':()=>{e[ar(-0x10,0x25)]=!![];function ar(a,b){return ap(a- -0x3a,b);}k[ar(-0x2f,-0x34)](r);e[ar(0xe,0x62)]({'commitFinalized':{'fn':()=>{e['isRemovingAssignmentByPutEffort']=![];},'once':!![]}});},'once':!![]}});}return{'added':v,'removed':r,'updated':p};}['setTimePhasedEffortBatch'](d){this[as(0x556,0x4fd)](d);function as(a,b){return al(a,b-0x40f);}return this[as(0x495,0x4f0)]();}['putTimePhasedEffort'](d,e,f,g=this[al(0x11a,0xd2)]){function at(a,b){return al(b,a-0x18);}return this[at(0x106,0xcc)]([{'startDate':d,'endDate':e,'effort':f,'effortUnit':g}]);}[al(0x3d,0x5e)](d,e,f,g){function au(a,b){return al(a,b- -0x208);}this['putTimePhasedEffort'](d,e,f,g);return this[au(-0xdc,-0x127)]();}*[al(0x70,0xae)](){const d=new TimePhasedAssignmentSelector();d['assignment']=this;yield*d['collectInfo']();return d;}*[al(0x6e,0x5b)](){function av(a,b){return al(b,a-0x42e);}const d=yield this['$']['event'];if(d&&(yield this['$'][av(0x4d2,0x489)])){const e=yield d['$'][av(0x48a,0x453)];return e===SchedulingMode[av(0x48f,0x4d7)]?!![]:yield d['$'][av(0x50b,0x553)];}else{return![];}}*['calculateSchedulingMode'](){const d=yield this['$'][aw(0x214,0x227)];function aw(a,b){return al(a,b-0x143);}if(d&&(yield this['$'][aw(0x1b7,0x1e7)])){const e=yield d['$'][aw(0x196,0x19f)];return e===SchedulingMode[aw(0x183,0x1a4)]?SchedulingMode['FixedDuration']:e;}else{return SchedulingMode['Normal'];}}*[al(0x9d,0x46)](d){function ax(a,b){return al(a,b- -0x259);}const e=yield this['$'][ax(-0x17d,-0x175)];if(e&&(yield this['$'][ax(-0x1ed,-0x1b5)])){const f=yield e['$'][ax(-0x1ec,-0x1fd)];return f===SchedulingMode['Normal']?!(yield*e[ax(-0x175,-0x1c6)]())?SchedulingMode[ax(-0x1ef,-0x1b9)]:SchedulingMode[ax(-0x22d,-0x1f8)]:f;}else{return SchedulingMode[ax(-0x24d,-0x1f8)];}}get[al(0x6e,0x76)](){if(this['_proposedMirror']!==void 0x0)return this[ay(-0x50,-0x90)];const d=new this[(ay(-0x13f,-0xf2))]();d[ay(-0x11a,-0xd1)]=this;function ay(a,b){return al(a,b- -0x16c);}d['project']=this[ay(-0xd8,-0xea)];d['id']=ay(-0x10e,-0x11d)+this['id'];if(this[ay(-0x147,-0x10a)]){d[ay(-0x141,-0xf9)](this[ay(-0xee,-0x10a)]);}return this['_proposedMirror']=d;}[al(0x3a,0x73)](d){function az(a,b){return al(a,b-0x115);}super[az(0x1d5,0x188)](d);const e=this[az(0x21a,0x1f1)];if(e&&!e['graph']){e['enterGraph'](d);}}['leaveGraph'](d){function aA(a,b){return al(b,a-0x43);}this[aA(0x11f,0x117)]?.[aA(0x111,0x13a)](d);super[aA(0x111,0x160)](d);}[al(0x135,0xe8)](){this[aB(0x1bc,0x168)]?.['unlink']();function aB(a,b){return al(a,b-0x8c);}super[aB(0x1bd,0x174)]();}['writeIgnoreResourceCalendar'](d,e,f,g){function aC(a,b){return al(b,a- -0xb8);}e[aC(-0x7b,-0xd9)](this['$']['ownIgnoreResourceCalendar'],g);d[aC(-0x2a,-0xa)][aC(-0x2b,-0x51)][aC(-0x7b,-0xb4)]['call'](this,d,e,f,g);}[al(0xb2,0xd8)](d,e,f,g,h=!![]){if(!(!e[aD(0x2fe,0x304)]['hasIdentifier'](d)&&g==null)){e[aD(0x2ce,0x284)](this['proposedMirror']['$'][aD(0x2bf,0x31a)],g,h);}function aD(a,b){return al(a,b-0x247);}super['writeStartDate'](d,e,f,g,h);}[al(0x47,0x7e)](d,e,f,g,h=![]){if(!(!e[aE(-0x5c,-0xb5)]['hasIdentifier'](d)&&g==null)){e[aE(-0x11f,-0x135)](this[aE(-0xad,-0xfc)]['$'][aE(-0xb8,-0xc9)],g,h);}function aE(a,b){return al(a,b- -0x172);}super[aE(-0xa4,-0xf4)](d,e,f,g,h);}[al(0x4b,0x6a)](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;if(!(!e[aF(0x14b,0x11d)][aF(0x79,0xba)](d)&&g==null)){e[aF(0xc1,0x9d)](this[aF(0xa7,0xd6)]['$']['duration'],g,h,i);}function aF(a,b){return al(a,b-0x60);}super['writeDuration'](d,e,f,g,h,i);}[al(0x10d,0xb9)](d,e,f,g,h){if(g<0x0)g=0x0;function aG(a,b){return al(a,b- -0x51);}if(!(!e['baseRevision'][aG(-0x2a,0x9)](d)&&g==null)){e[aG(0x25,-0x14)](this[aG(-0x2,0x25)]['$'][aG(0x3,-0x6)],g,h);}super[aG(0x72,0x68)](d,e,f,g,h);}['writeUnits'](d,e,f,g){function aH(a,b){return al(a,b- -0x2f0);}if(g===MissingValue)return;super[aH(-0x23c,-0x237)](d,e,f,g);}*['calculateEffortPure'](){function aI(a,b){return al(b,a-0x2a5);}return yield*this[aI(0x359,0x319)]();}*[al(0x71,0xb4)](d=null,e=null){function aJ(a,b){return al(b,a- -0x165);}const f=yield this['$'][aJ(-0x131,-0x12e)];if(f['event']&&f[aJ(-0xc2,-0x7d)]){if(!d){d=yield this['$'][aJ(-0x92,-0x8f)];}if(!e){e=yield this['$'][aJ(-0xbc,-0xb7)];}return yield*this[aJ(-0xe2,-0x10c)](d,e);}return yield*super[aJ(-0xb4,-0xc8)](d,e);}*[al(0x8b,0xc9)](){function aK(a,b){return al(b,a- -0x150);}const d=yield this['$'][aK(-0x6c,-0x78)];if(d){return yield d['$'][aK(-0xdb,-0x95)];}else{return yield*super[aK(-0x87,-0x38)]();}}*['calculateIgnoreResourceCalendar'](){const d=yield this['$'][aL(0xe9,0xfc)];function aL(a,b){return al(a,b-0x18);}return Boolean(d&&(yield d['$'][aL(0x53,0x66)])||(yield this['$'][aL(0x8b,0x7e)]));}*[al(0x98,0xe7)](){function aM(a,b){return al(b,a-0xff);}const d=yield this['$']['event'];if(d){const e=yield d['$'][aM(0x1d2,0x1ca)];const f=yield this['$'][aM(0x1d2,0x1e4)];return(yield*this[aM(0x186,0x1b8)](e,f,TimeUnit[aM(0x1a6,0x1cf)]))??0x0;}else return null;}*['calculateProposedStartOffsetRaw'](){const d=yield this['$'][aN(-0xa,-0x1b)];function aN(a,b){return al(b,a- -0x3e);}const e=d[aN(0xa6,0x97)];if(e){if(d[aN(0x48,0x4)]||(yield PreviousValueOf(this['$'][aN(0x5,-0x43)]))==null){const f=(yield e['$'][aN(0x82,0x9e)])??(yield e['$'][aN(0x85,0xcd)]);const g=yield this[aN(0x38,0x89)]['$'][aN(0x95,0x3d)];return(yield*this[aN(0x49,0x3b)](f,g,TimeUnit['Millisecond']))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aN(0x5,-0x28)]);}}else{return null;}}*[al(0x96,0x69)](){function aO(a,b){return al(b,a-0x426);}const d=yield this['$'][aO(0x45a,0x45b)];const e=d[aO(0x50a,0x4dd)];if(e){const f=(yield e['$'][aO(0x4f7,0x4d8)])[aO(0x4ab,0x4d7)]<0x0;if(f||d[aO(0x4ac,0x48d)]||(yield PreviousValueOf(this['$'][aO(0x469,0x470)]))==null){const g=yield this['$'][aO(0x49b,0x47a)];const h=g[aO(0x4ea,0x530)]===Direction[aO(0x4a2,0x4a9)]?yield e['$'][aO(0x511,0x4d1)]:yield e['$'][aO(0x4e9,0x547)];const i=yield this['proposedMirror']['$'][aO(0x4f9,0x4fd)];return(yield*this[aO(0x4ad,0x4f6)](h,i,TimeUnit[aO(0x4cd,0x499)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aO(0x469,0x452)]);}}else{return null;}}*['calculatePhantomStartDate'](){const d=yield this['$'][aP(0x227,0x1ce)];function aP(a,b){return al(a,b-0x19a);}if(d[aP(0x28a,0x27e)]&&!d[aP(0x270,0x224)]&&d[aP(0x213,0x22c)]){return yield*this[aP(0x273,0x25b)]();}return null;}*['calculatePhantomEndDate'](){function aQ(a,b){return al(b,a-0x163);}const d=yield this['$'][aQ(0x197,0x1e5)];if(d[aQ(0x247,0x231)]&&!d[aQ(0x1ed,0x1e4)]&&d[aQ(0x1f5,0x24d)]){const e=yield this['$'][aQ(0x1eb,0x1d1)];if(e){return yield*this[aQ(0x1c3,0x1ab)](e,!![],yield this['$'][aQ(0x1ae,0x186)],yield this['$'][aQ(0x235,0x259)]);}}return null;}*['calculatePhantomStartOffset'](){const d=yield this['$'][aR(-0x17f,-0x13b)];function aR(a,b){return al(b,a- -0x1b3);}if(d[aR(-0xcf,-0xeb)]&&!d[aR(-0x129,-0x11b)]&&d[aR(-0x121,-0x127)]){if(d[aR(-0x121,-0x13b)]){return 0x0;}}else return null;}*['calculatePhantomEndOffset'](){const d=yield this['$']['selector'];function aS(a,b){return al(a,b- -0x11c);}if(d[aS(-0x2b,-0x38)]&&!d[aS(-0x5c,-0x92)]&&d[aS(-0xa3,-0x8a)]){if(d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$'][aS(-0x99,-0xb4)]))==null){const e=yield d['event']['$'][aS(-0x8b,-0x73)];const f=yield*this[aS(-0xbd,-0xbc)](yield this['$'][aS(-0xd9,-0x94)],!![],yield this['$']['effort'],yield this['$']['effortUnit']);return yield*this[aS(-0x9a,-0x95)](f,e,TimeUnit['Millisecond']);}else{return yield ProposedOrPreviousValueOf(this['$'][aS(-0x107,-0xb4)]);}}return null;}*[al(0x143,0xea)](){const d=yield this['$'][aT(-0x84,-0x42)];function aT(a,b){return al(b,a- -0x168);}if(d){const e=yield d['$']['endDate'];const f=yield this['$'][aT(-0xbf,-0x96)];return yield*this[aT(-0xe1,-0x117)](f,e,TimeUnit[aT(-0xc1,-0xbd)]);}else return null;}*['calculateProposedEndOffsetRaw'](){const d=yield this['$'][aU(0x3e4,0x413)];function aU(a,b){return al(a,b-0x3df);}const e=d['event'];if(e){if(d[aU(0x40f,0x465)]||(yield PreviousValueOf(this['$'][aU(0x471,0x427)]))==null){const f=(yield e['$']['proposedEndDate'])??(yield e['$'][aU(0x4af,0x4a1)]);const g=yield this[aU(0x3ff,0x455)]['$'][aU(0x4da,0x488)];return yield*this[aU(0x423,0x466)](g,f,TimeUnit[aU(0x495,0x486)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aU(0x467,0x427)]);}}else{return null;}}*[al(0x80,0x50)](){const d=yield this['$'][aV(0x129,0x115)];const e=d[aV(0x1a4,0x1c5)];function aV(a,b){return al(a,b-0xe1);}if(e){const f=(yield e['$'][aV(0x170,0x161)])[aV(0x138,0x166)]<0x0;if(f||d[aV(0x175,0x167)]||(yield PreviousValueOf(this['$']['endOffset']))==null){const g=yield this['$']['effectiveDirection'];const h=g[aV(0x1a7,0x1a5)]===Direction['Backward']?yield e['$'][aV(0x1b0,0x1c0)]:yield e['$']['maxAssignmentProposedEndDate'];const i=yield this['proposedMirror']['$'][aV(0x13b,0x18a)];return yield*this['calculateProjectedDuration'](i,h,TimeUnit['Millisecond']);}else{return yield ProposedOrPreviousValueOf(this['$'][aV(0xcf,0x129)]);}}else{return null;}}*[al(0xf6,0xd9)](){function aW(a,b){return al(a,b-0x47b);}const d=yield this['$'][aW(0x4c5,0x4af)];return d[aW(0x560,0x554)];}*['isDurationDefinedByEffort'](){const d=yield this['$']['selector'];return d['isDurationDefinedByEffort'];}*['calculateProjectedXDate'](d,e){function aX(a,b){return al(b,a- -0x14);}if(yield*this[aX(0xab,0x50)]()){return yield*this[aX(0x4c,0x9b)](d,e,yield this['$'][aX(0x37,-0x26)],yield this['$'][aX(0xbe,0xde)]);}else{return yield*this[aX(0x98,0x3e)](d,e,yield this[aX(0x62,0x8a)]['$'][aX(0x5c,0x6e)],yield this['$'][aX(0x69,0x78)]);}}*[al(0x96,0xb5)](){const d=yield this['$']['selector'];const e=d[aY(-0x140,-0x18a)];function aY(a,b){return al(a,b- -0x26e);}if(e&&d['isUserTimePhased']){const f=yield this['$'][aY(-0x22e,-0x1f9)];if(f['direction']===Direction['Forward']){const g=yield*this[aY(-0x17a,-0x1ad)]();const h=yield e['$'][aY(-0x1ce,-0x1c5)];if(g>h){return h;}else return g;}else{const i=yield this['$'][aY(-0x183,-0x1c5)];const j=yield e['$'][aY(-0x16f,-0x19b)];const k=yield this[aY(-0x248,-0x1f8)]['$'][aY(-0x23a,-0x1fe)];const l=yield*this[aY(-0x214,-0x1c2)](i,![],k);if(l<j){return j;}else return l;}}else{return yield ProposedOrPrevious;}}*[al(0xf6,0xe6)](){const d=yield this['$'][aZ(0x43e,0x412)];function aZ(a,b){return al(a,b-0x3de);}const e=d['event'];if(e&&d[aZ(0x3dc,0x416)]){const f=yield this['$'][aZ(0x4b0,0x453)];if(f[aZ(0x473,0x4a2)]===Direction[aZ(0x45c,0x45a)]){const g=yield this['$'][aZ(0x4d9,0x4b1)];const h=yield e['$'][aZ(0x4bd,0x487)];const i=yield this[aZ(0x421,0x454)]['$'][aZ(0x43b,0x44e)];const j=yield*this['calculateProjectedXDateWithDuration'](g,!![],i);if(j>h){return h;}else return j;}else{const k=yield*this[aZ(0x44f,0x45d)]();const l=yield e['$'][aZ(0x4c9,0x4b1)];if(k<l){return l;}else return k;}}else{return yield ProposedOrPrevious;}}*[al(0x99,0x54)](){function b0(a,b){return al(a,b-0x3a8);}const d=yield this['$'][b0(0x46e,0x47b)];const e=yield this['$'][b0(0x434,0x451)];return yield*this[b0(0x3d9,0x42f)](d,e);}*[al(0x10a,0xc1)](){const d=yield this['$'][b1(0x16f,0x126)];function b1(a,b){return al(b,a-0x8b);}if(d){const e=yield d['$']['startDate'];const f=yield this['$']['proposedStartOffset'];const g=yield*this[b1(0x137,0x173)](e,!![],f,TimeUnit['Millisecond']);const h=yield*this['skipNonWorkingTime'](g,!![]);return h;}else{return null;}}*[al(0xc6,0x7f)](){function b2(a,b){return al(a,b- -0xb6);}const d=yield this['$'][b2(0x57,0x2e)];if(d){const e=yield d['$'][b2(-0x22,-0xd)];const f=yield this['$'][b2(-0x35,0x17)];const g=yield*this['calculateProjectedXDateWithDuration'](e,![],f,TimeUnit[b2(-0x5e,-0xf)]);const h=yield*this['skipNonWorkingTime'](g,![]);return h;}else{return null;}}*[al(0xee,0xa2)](d){const e=yield this['$'][b3(-0x188,-0x12d)];function b3(a,b){return al(b,a- -0x26c);}const f=e?yield e['$'][b3(-0x21f,-0x261)]:yield this[b3(-0x236,-0x269)]()['$'][b3(-0x21f,-0x1c6)];yield f['$']['version'];return f;}*['useEventAvailabilityIterator'](){return!![];}*[al(0x16,0x3e)](){const d=new Map();const e=yield this['$'][b4(-0x124,-0x14c)];if(e){const f=yield e['$'][b4(-0x17b,-0x1d8)];d[b4(-0x189,-0x1a6)](f,[this]);}function b4(a,b){return al(b,a- -0x1c8);}return d;}*[al(0x33,0x58)](){function b5(a,b){return al(a,b- -0x228);}const d=yield this['$'][b5(-0x1a0,-0x1f4)];return d['isTimePhasedStructurally'];}*['isTimePhased'](){const d=yield this['$'][b6(-0x2ab,-0x2db)];function b6(a,b){return al(b,a- -0x2df);}return d[b6(-0x23c,-0x245)];}*[al(0x9,0x38)](){const d=yield this['$'][b7(0x35d,0x37a)];function b7(a,b){return al(a,b-0x346);}return d[b7(0x3cf,0x37e)];}*[al(0x3c,0x92)](){function b8(a,b){return al(a,b-0x248);}const d=yield this['$'][b8(0x2d4,0x27c)];return d[b8(0x2e9,0x2da)];}*[al(0x7d,0x57)](){const d=yield*super[b9(-0x116,-0x10f)]();const e=yield this['$'][b9(-0xbb,-0x82)];if(e){const f=yield*e['effectiveSchedulingMode']();if(f===SchedulingMode[b9(-0xfe,-0x105)]){d[b9(-0xfd,-0x118)]=![];}}function b9(a,b){return al(a,b- -0x166);}return d;}*[al(0x1d,0x47)](d,e){function ba(a,b){return al(b,a- -0x1e5);}if(yield*this['hasProposedAssignments']()){const f=yield this['$'][ba(-0x101,-0xea)];if(yield this['$']['effortDriven']){if(!f||(yield ProposedOrPreviousValueOf(f['$'][ba(-0x19a,-0x15d)]))!=null)e[ba(-0x177,-0x190)](EffortVar);}else{if(yield*this['hasPreviousValueForUnits']()){e[ba(-0x177,-0x138)](UnitsVar);}}}}*[al(0x123,0xcc)](d){const e=yield*this[bb(-0x26f,-0x260)]();const f=yield this['$'][bb(-0x20b,-0x208)];function bb(a,b){return al(a,b- -0x2ec);}if(e!==SchedulingMode[bb(-0x279,-0x28b)]&&f){let g;if(yield*this[bb(-0x1f3,-0x249)]()){g=yield*super['prepareDispatcher'](d);}else{g=yield*super[bb(-0x1dd,-0x220)](d);g['collectInfo'](d,f['$'][bb(-0x230,-0x219)],StartDateVar);g['collectInfo'](d,f['$']['endDate'],EndDateVar);g[bb(-0x2cc,-0x29a)](d,f['$'][bb(-0x2a4,-0x27c)],DurationVar);g[bb(-0x24c,-0x29a)](d,f['$'][bb(-0x2ef,-0x2a1)],EffortVar);}if(yield*f['hasProposedValueForUnits']()){g['addProposedValueFlag'](UnitsVar);}return g;}else{return yield*super['prepareDispatcher'](d);}}*['hasProposedAssignments'](){const d=yield this['$'][bc(0x3c3,0x3be)];function bc(a,b){return al(b,a-0x2df);}return d?yield HasProposedValue(d['$'][bc(0x3cb,0x375)]):![];}*[al(0x4a,0x96)](){return yield HasProposedValue(this['$']['units']);}*[al(0x9b,0x63)](){return(yield PreviousValueOf(this['$']['units']))!==void 0x0;}*[al(0x79,0xd5)](){function bd(a,b){return al(b,a- -0x99);}const d=yield*this['effectiveSchedulingMode']();const e=yield this['$'][bd(0x4b,0x85)];if(e&&d!==SchedulingMode['Normal']){const f=yield this['$'][bd(-0x5,0x18)];const g=f[bd(0x37,0x49)][bd(-0x2d,0x2a)](EffortVar);if(g===CalculateProposed){const h=yield HasProposedNotPreviousValue(e['$'][bd(-0x4e,-0x25)]);const i=yield*e[bd(0x3,-0x3d)]('effort');if(h&&!i||(yield*this[bd(0x11,0x7)]())&&(yield HasPreviousValue(e['$'][bd(-0x4e,-0x5c)]))&&!(yield e['$'][bd(-0x5d,-0x9a)])[bd(-0x48,-0xa3)]&&!this[bd(-0x17,-0x37)][bd(-0x1,-0x46)]){return yield*this[bd(-0x21,0x19)]();}return yield*this[bd(0x36,0x6b)]();}else if(g===effortFormula[bd(0x23,0x29)]){return yield*this[bd(-0x25,-0x51)]();}else{throw new Error(bd(-0x40,-0x91));}}else{return yield*b[bd(0x3c,0x4a)][bd(0x3e,0x93)](this);}}*['calculateProportionalEffortByUnits'](){const d=yield this[be(0x484,0x484)]['$']['proposedTotalUnits'];const e=yield ProposedOrPreviousValueOf(this[be(0x484,0x48f)]['$'][be(0x3eb,0x3a0)]);const f=yield this[be(0x484,0x435)]['$'][be(0x472,0x483)];const g=(yield*this[be(0x3d6,0x38a)]()[be(0x411,0x41a)](e,f,TimeUnit[be(0x447,0x423)]))*((yield ProposedOrPreviousValueOf(this['$'][be(0x43e,0x3e7)]))??0x64);const h=g===0x0?0x0:d===0x0?0x0:g/d;function be(a,b){return al(b,a-0x3a0);}return yield*this['getProject']()['$convertDuration'](h,TimeUnit[be(0x447,0x457)],yield this['$'][be(0x472,0x4bf)]);}*[al(0xd2,0x81)](){const d=yield PreviousValueOf(this[bf(0xa0,0x68)]['$'][bf(-0x23,-0x31)]);const e=yield this[bf(0x9c,0x68)]['$'][bf(0x1a,0x56)];const f=yield*this[bf(-0x25,-0x46)]()[bf(-0x15,-0xb)](d,e,TimeUnit[bf(0x7c,0x2b)]);if(f===0x0){return 0x0;}const g=yield PreviousValueOf(this['$'][bf(-0x20,-0x31)]);const h=yield this['$'][bf(0x71,0x56)];const i=yield*this['getProject']()['$convertDuration'](g,h,TimeUnit['Millisecond']);const j=yield ProposedOrPreviousValueOf(this[bf(0x30,0x68)]['$'][bf(0x22,-0x31)]);function bf(a,b){return al(a,b- -0x7c);}const k=yield*this[bf(-0xa0,-0x46)]()[bf(0x4e,-0xb)](j,e,TimeUnit[bf(-0x8,0x2b)]);if(d!=null&&g!=null&&j!=null){const l=k*(i/f);return yield*this[bf(-0x6b,-0x46)]()[bf(0x4b,-0xb)](l,TimeUnit[bf(-0x1e,0x2b)],h);}else{return 0x0;}}*['calculateProportionalEffort'](){function bg(a,b){return al(a,b-0x353);}const d=yield HasProposedNotPreviousValue(this[bg(0x45a,0x437)]['$'][bg(0x398,0x39e)]);const e=yield*this[bg(0x40d,0x437)][bg(0x442,0x3fd)]();if(d&&!e){return yield*this['calculateProportionalEffortByEffort']();}else{return yield*this[bg(0x3c1,0x3ed)]();}}*['calculateUnitsByStartEndAndEffort'](d){const {event:e}=this;const f=yield HasProposedNotPreviousValue(e['$']['effort']);const g=yield*e[bh(0x298,0x2c3)](bh(0x2b0,0x272));const h=f&&!g?yield*this[bh(0x28b,0x29f)]():yield this['$']['effort'],i=yield this['$']['effortUnit'],j=yield*this[bh(0x276,0x25d)]()[bh(0x278,0x298)](h,i,TimeUnit[bh(0x31a,0x2ce)]);let k,l;function bh(a,b){return al(a,b-0x227);}if(yield*this[bh(0x284,0x2ca)]()){k=yield this['$'][bh(0x320,0x2fa)];l=yield this['$'][bh(0x2b0,0x2d0)];}else{k=yield e['$'][bh(0x2e6,0x2fa)];l=yield e['$'][bh(0x29a,0x2d0)];}if(!k&&!l){return yield ProposedOrPrevious;}let m=0x0;const n=Object[bh(0x26d,0x261)](yield*this[bh(0x2fd,0x2a2)](),{'startDate':k,'endDate':l});const o=yield this['$'][bh(0x28d,0x28e)];yield*this['forEachAvailabilityInterval'](n,(p,q,r)=>{function bi(a,b){return bh(b,a- -0x197);}const s=r[bi(0xf4,0x10a)]();const t=p[bi(0x16b,0x143)](),u=q[bi(0x16b,0x19d)](),v=u-t;for(const w of s){m+=(o['has'](w)?o[bi(0xfc,0xb6)](w)[bi(0x14e,0xf7)]:0x0)*v;}});return m?0x64*j/m:0x64;}*[al(0x64,0xa5)](d,e,f,g,h){const i=this[bj(-0x10c,-0xf8)]();const j=this[bj(-0x39,-0x4a)];const k=yield*i[bj(-0xe9,-0xbd)](f,g,TimeUnit['Millisecond']);let l=0x0;function bj(a,b){return al(a,b- -0x12e);}const m=Object[bj(-0xaf,-0xf4)](yield*this['getBaseOptionsForEffortCalculations'](),{'startDate':d,'endDate':e});const n=yield j['$'][bj(-0x6e,-0x4c)];const o=(yield j['$']['ignoreResourceCalendar'])||(yield this['$']['ignoreResourceCalendar'])||(yield*j['hasElapsedDuration']())||n&&!i[bj(-0xa8,-0x4e)];const p=o?yield j['$'][bj(-0x90,-0xe1)]:yield h['$'][bj(-0xf4,-0xe1)];yield*this[bj(-0x11d,-0xea)](m,(q,r,s)=>{function bk(a,b){return bj(b,a-0xb);}const t=s[bk(-0xbf,-0xf0)]();const u=q[bk(-0x48,-0x4)](),v=r[bk(-0x48,-0x63)](),w=v-u;for(const x of t){l+=(x===p?0x1:0x0)*w;}});return l?0x64*k/l:0x64;}}c[al(0xa0,0xda)]=al(0xa7,0x65);__decorate([model_field({'type':al(0xa7,0xab),'defaultValue':!![]})],c[al(0x65,0x8d)],al(0x101,0xdd),void 0x0);__decorate([model_field({'type':al(0x43,0x3b),'defaultValue':SchedulingMode[al(0xba,0xa0)]},{'sync':!![]})],c['prototype'],al(0x92,0x5c),void 0x0);__decorate([model_field({'type':al(0xb2,0xab),'defaultValue':![]})],c[al(0x83,0x8d)],'ignoreResourceCalendar',void 0x0);__decorate([model_field({'type':'date','bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0x40,0x8d)],al(0xa1,0xd3),void 0x0);__decorate([model_field({'type':al(0xbd,0x8f),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0x3b,0x8d)],'endDate',void 0x0);__decorate([model_field({'type':'number','bypassEqualityOnSyncDataset':!![],'defaultValue':null,'allowNull':!![]})],c['prototype'],al(0x45,0x70),void 0x0);__decorate([model_field({'type':al(0x86,0xcb),'defaultValue':null})],c[al(0xe7,0x8d)],al(0x29,0x4b),void 0x0);__decorate([field()],c[al(0x85,0x8d)],al(0x36,0x34),void 0x0);__decorate([calculate(al(0x84,0x34))],c[al(0x49,0x8d)],'calculateSelector',null);__decorate([calculate(al(0xde,0xdd))],c[al(0x67,0x8d)],al(0xb5,0x5b),null);__decorate([calculate(al(0x2a,0x5c))],c['prototype'],'calculateSchedulingMode',null);__decorate([field()],c['prototype'],'startOffset',void 0x0);function al(a,b){return _enaa(b-0x323,a);}__decorate([field()],c[al(0x36,0x8d)],'phantomStartOffset',void 0x0);__decorate([field()],c['prototype'],al(0xa3,0x88),void 0x0);__decorate([field()],c['prototype'],al(0xb1,0x55),void 0x0);__decorate([field()],c['prototype'],al(0x5e,0x48),void 0x0);__decorate([field()],c[al(0x6e,0x8d)],al(0xa8,0x68),void 0x0);__decorate([field()],c[al(0xbe,0x8d)],al(0x9c,0xad),void 0x0);__decorate([field()],c[al(0x5e,0x8d)],al(0x124,0xcd),void 0x0);__decorate([field({'sync':!![]})],c[al(0x6b,0x8d)],al(0xa5,0x66),void 0x0);__decorate([write(al(0x79,0x4e))],c[al(0x54,0x8d)],al(0xd3,0xe3),null);__decorate([write(al(0xca,0xd3))],c[al(0x59,0x8d)],al(0xe3,0xd8),null);__decorate([write(al(0x81,0xa9))],c['prototype'],al(0x76,0x7e),null);__decorate([write(al(0xae,0x70))],c[al(0x4e,0x8d)],'writeDuration',null);__decorate([write(al(0x70,0x4b))],c[al(0xe3,0x8d)],al(0xc3,0xb9),null);__decorate([write(al(0xb5,0x9e))],c['prototype'],al(0x6d,0x72),null);__decorate([calculate(al(0xa0,0x4e))],c[al(0x60,0x8d)],al(0xd8,0xb7),null);__decorate([calculate(al(0x64,0x43))],c['prototype'],al(0xc5,0xe7),null);__decorate([calculate(al(0x3a,0x55))],c[al(0xc3,0x8d)],al(0xe,0x69),null);__decorate([calculate(al(0x9d,0x88))],c[al(0xaa,0x8d)],'calculatePhantomStartDate',null);__decorate([calculate(al(0x10a,0xad))],c['prototype'],'calculatePhantomEndDate',null);__decorate([calculate(al(0x4e,0xa1))],c[al(0x57,0x8d)],al(0xc0,0xaf),null);__decorate([calculate(al(0x8b,0x68))],c['prototype'],al(0x6e,0x77),null);__decorate([calculate(al(0x87,0x48))],c[al(0xd1,0x8d)],al(0x11f,0xea),null);__decorate([calculate(al(0xa3,0xcd))],c[al(0xaf,0x8d)],'calculateProposedEndOffset',null);__decorate([calculate('effort')],c['prototype'],'calculateEffort',null);return c;}){}class TimePhasedAssignmentCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enaa(-0x23a,-0x291)](){return['assignment'];}}class TimePhasedAssignmentCalendarIntervalStore extends CalendarIntervalStore{static get['defaultConfig'](){return{'modelClass':TimePhasedAssignmentCalendarIntervalMixin};}}class TimePhasedAssignmentCalendar extends BaseCalendarMixin{constructor(){super(...arguments);this['isTimePhasedCalendar']=!![];}get['intervalStoreClass'](){return TimePhasedAssignmentCalendarIntervalStore;}}export{SchedulerProTimePhasedAssignmentMixin,TimePhasedAssignmentCalendar,TimePhasedAssignmentCalendarIntervalMixin,TimePhasedAssignmentCalendarIntervalStore,TimePhasedAssignmentMirror,TimePhasedAssignmentSelector};
|
|
1
|
+
(function(a,b){function V(a,b){return _enb(a- -0x11f,b);}const c=a();while(!![]){try{const d=-parseInt(V(0xd5,0xab))/0x1+-parseInt(V(0x159,0x119))/0x2*(-parseInt(V(0x123,0x175))/0x3)+parseInt(V(0xa5,0xdb))/0x4+-parseInt(V(0x121,0xc9))/0x5+-parseInt(V(0xf8,0x106))/0x6+parseInt(V(0x117,0x10c))/0x7*(parseInt(V(0x114,0x140))/0x8)+parseInt(V(0x154,0x173))/0x9*(parseInt(V(0x126,0x11f))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x65343));var __decorate=function(a,b,e,f){var g=arguments[W(0x60,0x23)],h=g<0x3?b:f===null?f=Object[W(0x4c,0x34)](b,e):f,j;if(typeof Reflect===W(0x5e,0x83)&&typeof Reflect['decorate']===W(0xa1,0x72))h=Reflect[W(0xd,0x2e)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function W(a,b){return _enb(b- -0x19e,a);}return g>0x3&&h&&Object[W(0x9d,0x8b)](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,HasProposedValue,PreviousValueOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{CalendarIntervalMixin}from'../../../calendar/CalendarIntervalMixin.js';import{CalendarIntervalStore}from'../../../calendar/CalendarIntervalStore.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,SchedulingMode,TimeUnit}from'../../../scheduling/Types.js';import{MissingValue}from'../../../util/Constants.js';import{BaseCalendarMixin}from'../scheduler_basic/BaseCalendarMixin.js';import{DurationVar,EndDateVar,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';function _enaa(a,b){return _enb(a-0x1de,b);}import{effortFormula,EffortVar,UnitsVar}from'./HasEffortDispatcher.js';import{SchedulerProAssignmentMixin}from'./SchedulerProAssignmentMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1b7;let f=c[d];return f;};return _enb(a,b);}import{FixedDurationMixin}from'./scheduling_modes/FixedDurationMixin.js';class TimePhasedAssignmentMirror extends Mixin([FixedDurationMixin],a=>{class b extends a{*[X(-0x5d,0x6)](){function Y(a,b){return X(a-0xbe,b);}return yield this[Y(0x8f,0x67)]['$'][Y(0xe9,0xdf)];}*[X(0x31,-0x2)](){function Z(a,b){return X(b-0x325,a);}return yield this[Z(0x2bb,0x2f6)]['$'][Z(0x367,0x327)];}*[X(-0xa,-0x43)](){function a0(a,b){return X(a-0x1fe,b);}return yield this[a0(0x1cf,0x1d8)]['$'][a0(0x1f8,0x22f)];}*[X(-0x16,0x2)](){function a1(a,b){return X(b-0x52,a);}return yield this[a1(0x57,0x23)]['$'][a1(0x6b,0xab)];}*[X(-0x15,-0x5d)](){function a2(a,b){return X(a- -0x16c,b);}return yield*this[a2(-0x19b,-0x1cf)][a2(-0x181,-0x18a)]();}*[X(-0x3a,-0x4a)](){function a3(a,b){return X(b-0x322,a);}return yield*this['assignment'][a3(0x2ae,0x2e8)]();}*[X(0x38,-0x3)](){function a4(a,b){return X(a-0x3b3,b);}return yield*this[a4(0x384,0x3dd)]['calculateEffectiveDirection']();}*['calculateEffectiveDataOrVisualCalendar'](c){function a5(a,b){return X(a-0x72,b);}return yield*this[a5(0x43,0x68)][a5(0x1f,-0x3e)](c);}*[X(-0x1c,-0x2e)](){const c=new Map();const d=yield this['assignment']['$'][a6(0x26d,0x20e)];if(d){const e=yield d['$'][a6(0x1e4,0x1f4)];c[a6(0x21f,0x27e)](e,[this[a6(0x233,0x221)]]);}function a6(a,b){return X(b-0x250,a);}return c;}*['calculateIgnoreResourceCalendar'](){function a7(a,b){return X(b-0x481,a);}return yield this[a7(0x406,0x452)]['$'][a7(0x4f7,0x4c4)];}*[X(0x39,0x88)](){function a8(a,b){return X(b-0x3c2,a);}return yield*this[a8(0x387,0x393)][a8(0x417,0x3fb)]();}}__decorate([calculate(X(0x2b,0x83))],b[X(0x40,-0xd)],X(-0x5d,-0x2e),null);__decorate([calculate(X(0x2,-0x15))],b['prototype'],X(0x31,0x3),null);__decorate([calculate(X(-0x6,-0x7))],b[X(0x40,-0xf)],X(-0xa,-0x41),null);__decorate([calculate(X(0x59,0x75))],b['prototype'],'calculateSchedulingMode',null);__decorate([calculate('ignoreResourceCalendar')],b['prototype'],X(-0x3f,-0x29),null);function X(a,b){return _enb(a- -0x219,b);}return b;}){}class TimePhasedAssignmentSelector{constructor(){this['assignment']=null;this['event']=null;this[a9(0x428,0x454)]=null;function a9(a,b){return _enb(b-0x283,a);}this[a9(0x4bd,0x4e0)]=null;this[a9(0x4f1,0x4dd)]=![];this[a9(0x465,0x48c)]=![];this[a9(0x44a,0x469)]=![];this['hasEndDateValue']=![];this[a9(0x490,0x4b0)]=![];this[a9(0x4bd,0x45c)]=![];this[a9(0x4cd,0x4ec)]=![];this['hasInputOnDuration']=![];this[a9(0x4cf,0x497)]=![];this[a9(0x4f6,0x4e5)]=![];this[a9(0x400,0x462)]=![];}get[_enaa(0x41b,0x45f)](){function ab(a,b){return _enaa(b- -0x100,a);}return!this[ab(0x269,0x2b7)]&&!this[ab(0x37d,0x347)]&&!this['hasInputOnDuration']&&this[ab(0x339,0x2f2)]&&!this[ab(0x31e,0x340)];}get[_enaa(0x3f4,0x41e)](){function ac(a,b){return _enaa(b-0x3c,a);}return this[ac(0x3bb,0x3f3)]||this[ac(0x461,0x483)]||this[ac(0x3d7,0x418)];}get[_enaa(0x409,0x3af)](){function ad(a,b){return _enaa(a- -0x53a,b);}return(this['hasStartDateValue']?0x1:0x0)+(this[ad(-0xf6,-0xda)]?0x1:0x0)+(this[ad(-0x12f,-0x14f)]?0x1:0x0)>=0x2;}get['isTimePhased'](){function ae(a,b){return _enaa(b- -0x237,a);}return this[ae(0x231,0x1d2)]||this[ae(0x192,0x1ac)];}get[_enaa(0x3dd,0x3ee)](){function af(a,b){return _enaa(b- -0x497,a);}return this[af(-0x8a,-0x8e)]||this[af(-0x27,-0x4b)];}get[_enaa(0x3b6,0x3a1)](){function ag(a,b){return _enaa(b- -0x234,a);}return this[ag(0x24c,0x1f6)]&&!this[ag(0x1ea,0x1d5)];}get[_enaa(0x3b4,0x3d7)](){function ah(a,b){return _enaa(a- -0x592,b);}return this[ah(-0x1b5,-0x20a)]&&!this[ah(-0x189,-0x1ab)];}get[_enaa(0x44c,0x45b)](){const a=this[ai(0x5b3,0x583)];function ai(a,b){return _enaa(a-0x20a,b);}if(a){const b=this[ai(0x645,0x66f)];const c=this[ai(0x642,0x61e)];return b!==SchedulingMode[ai(0x5ca,0x571)]&&b!==SchedulingMode[ai(0x601,0x5b0)]&&(c||b===SchedulingMode[ai(0x654,0x612)]);}else{return![];}}get[_enaa(0x3e3,0x38f)](){function aj(a,b){return _enaa(a- -0x2a1,b);}const a=this[aj(0x108,0x15f)];if(a){const b=this[aj(0x19a,0x14f)];return this[aj(0x1ab,0x14e)]&&!this[aj(0x10e,0xf0)][aj(0x179,0x12d)]&&!this[aj(0x10e,0xe7)][aj(0x162,0x147)]||b===SchedulingMode['FixedUnits']&&this[aj(0x151,0x190)]&&!this[aj(0x19f,0x1ab)]&&this[aj(0x11c,0x14a)];}else{return![];}}*[_enaa(0x3d8,0x432)](){const a=this[ak(0x116,0x14d)];this['hasStartDateValue']=(yield ProposedOrPreviousValueOf(a['$']['startDate']))!=null;this[ak(0x21c,0x1c9)]=(yield ProposedOrPreviousValueOf(a['$'][ak(0x1c4,0x170)]))!=null;this['hasDurationValue']=(yield ProposedOrPreviousValueOf(a['$']['duration']))!=null;function ak(a,b){return _enaa(b- -0x27b,a);}this['hasInputOnStartDate']=yield HasProposedNotPreviousValue(a['$'][ak(0x183,0x181)]);this[ak(0x18b,0x1cc)]=yield HasProposedNotPreviousValue(a['$'][ak(0x1cb,0x170)]);this[ak(0x102,0x161)]=yield HasProposedNotPreviousValue(a['$'][ak(0x205,0x1b9)]);this[ak(0x118,0x177)]=yield HasProposedNotPreviousValue(a['$']['effort']);this['hasInputOnUnits']=yield HasProposedNotPreviousValue(a['$']['units']);this[ak(0x133,0x142)]=yield*a[ak(0x17b,0x142)]();const b=this[ak(0x128,0x12e)]=yield a['$'][ak(0x155,0x12e)];if(b){this[ak(0x114,0x134)]=yield b['$'][ak(0x1ed,0x1d9)];this[ak(0x1ee,0x1c0)]=yield*b[ak(0x1f4,0x193)]();this[ak(0x1b4,0x1bd)]=yield b['$']['effortDriven'];this['eventIsSegmented']=yield b['$'][ak(0x10c,0x11c)];}}}class SchedulerProTimePhasedAssignmentMixin extends Mixin([FixedDurationMixin,SchedulerProAssignmentMixin],a=>{const b=a[al(0x4e,0x94)];class c extends a{constructor(){super(...arguments);this['proposedMirrorClass']=TimePhasedAssignmentMirror;this['_proposedMirror']=void 0x0;}[al(-0xb,0x43)](d,e,f){function am(a,b){return al(b-0x5e3,a);}let g,h;if(d[am(0x5b1,0x5ad)]){g=d[am(0x601,0x5ad)]('doCalculateAssignmentEffort',e,f);h=d[am(0x5a2,0x5f3)];}else{g=this[am(0x5b9,0x5ad)](am(0x5cf,0x5f4),e,f);h=this[am(0x60f,0x5f3)];}return{'startDate':e,'endDate':f,'effort':g,'effortUnit':h};}[al(0x3e,-0x1d)](d,e,f){function an(a,b){return al(a- -0x17,b);}let g;if(d[an(-0x4d,-0x5e)]){g=f[an(-0x3,0x46)](d);if(!g){g={};f[an(0x25,-0xc)](d,g);}}else{g=d;}Object['assign'](g,e);return g;}[al(0x5f,0x20)](d){if(!d[ao(0x56,0x7b)]){return;}const {project:e,resource:f,event:g,durationUnit:h,effortUnit:j}=this;const {assignmentStore:k}=e;const m=g[ao(0x111,0x107)];const n=g[ao(0xb3,0xa4)];const o=g[ao(0xa2,0xc1)];const p=new Map();const q=[];function ao(a,b){return al(a-0xa0,b);}const r=[];const s={'resource':f,'event':g,'durationUnit':h,'effortUnit':j};d=d[ao(0xe4,0xaa)]()[ao(0x75,0x9c)]((w,x)=>(w[ao(0xb3,0xf0)]||n)['getTime']()-(x[ao(0xb3,0xb0)]||n)[ao(0xb2,0x8c)]());const t=[...m][ao(0xf9,0xc4)](w=>w[ao(0x6c,0x18)]===f)[ao(0x75,0x54)]((w,x)=>(w[ao(0xb3,0xf2)]||n)[ao(0xb2,0xa3)]()-(x[ao(0xb3,0x59)]||n)['getTime']());let u=0x0;for(const w of d){const {startDate:x,endDate:y}=w;let z=Boolean(w[ao(0xc9,0x10d)]);const A=t[ao(0xe4,0x10a)]();let B=![];for(let C=u,D=A[ao(0x56,0x4)];C<D;C++){const E=A[C];const F=p[ao(0xb4,0x79)](E);const G=F?.[ao(0xb3,0x113)]||E[ao(0xb3,0x8d)]||n;const H=F?.[ao(0xa2,0xa7)]||E[ao(0xa2,0x95)]||o;let I=C;if(G<y&&H>x){if(!B){u=C;B=!![];}const J=F?.[ao(0xd9,0xec)]||E[ao(0xd9,0xac)];if(G>=x&&H<=y){if(z){p[ao(0xdc,0x10f)](E,w);z=![];}else{r['push'](E);t[ao(0x5c,0x5)](C);}}else{let K;if(z){K={...s,...w};q[ao(0xdd,0xaa)](K);z=![];}let L=![];if(G<x){const M=this[ao(0x95,0x91)](E,G,x);if(M[ao(0xc9,0x111)]){L=!![];this[ao(0xde,0xbc)](E,M,p);if(K){I++;t[ao(0x5c,0x8e)](I,0x0,K);I++;}if(H>y){const N={'resource':f,'event':g,'durationUnit':J,...this[ao(0x95,0x66)](E,y,H)};if(N[ao(0xc9,0xa6)]){q[ao(0xdd,0x13e)](N);t[ao(0x5c,0x41)](I,0x0,N);}}}}if(!L&&H>y){if(K){t['splice'](I,0x0,K);I++;}const O=this[ao(0xde,0xf6)](E,this['_calculateEffortData'](E,y,H),p);if(!O[ao(0xc9,0x75)]){}}}}else if(G>=y){u=C;break;}}if(z){const P={...s,...w};q['push'](P);t[ao(0xdd,0x116)](P);if(!p[ao(0xec,0x13d)]&&t['length']===0x1&&!t[0x0][ao(0xb3,0x8f)]&&!t[0x0]['endDate']){this['_changeAssignmentData'](t[0x0],{'startDate':n,'endDate':o,'effort':this['effort']},p);}}}let v=[];for(let [Q,R]of p){Object['assign'](Q,R);}if(q[ao(0x56,0x63)]){q[ao(0x75,0x30)]((S,T)=>S['startDate'][ao(0xb2,0xf9)]()-T['startDate'][ao(0xb2,0xea)]());if(this[ao(0x60,0xb7)][ao(0x107,0x105)]===SchedulingMode[ao(0x77,0x46)]){for(const S of q){const T=this[ao(0x6a,0xcb)](ao(0x68,0x6b),S['startDate'],S[ao(0xa2,0x67)],S[ao(0xc9,0xc2)],S[ao(0xb0,0x97)],S[ao(0x6c,0x23)]);delete S[ao(0xc9,0xeb)];S[ao(0x5d,0x75)]=T;}}v=k[ao(0xe5,0xf8)](q);}if(r['length']){r[ao(0xfd,0xa5)](U=>{function ap(a,b){return ao(a- -0x64,b);}U[ap(0x65,0x45)]=0x0;U['duration']=0x0;U[ap(0x2c,0x56)]=!![];});e[ao(0x102,0x132)]({'commitFinalized':{'fn':()=>{function aq(a,b){return ao(b-0x3a2,a);}e[aq(0x489,0x48b)]=!![];k[aq(0x46e,0x43e)](r);e[aq(0x442,0x4a4)]({'commitFinalized':{'fn':()=>{function ar(a,b){return aq(b,a- -0x275);}e[ar(0x216,0x1e6)]=![];},'once':!![]}});},'once':!![]}});}return{'added':v,'removed':r,'updated':p};}[al(0x58,0x8c)](d){this[as(0xfd,0xc1)](d);function as(a,b){return al(b-0x62,a);}return this[as(0xd4,0xa2)]();}[al(-0x24,0xd)](d,e,f,g=this[al(0x10,-0x33)]){function at(a,b){return al(b- -0x70,a);}return this[at(-0x4c,-0x11)]([{'startDate':d,'endDate':e,'effort':f,'effortUnit':g}]);}[al(0x70,0x97)](d,e,f,g){this[au(0xc5,0x64)](d,e,f,g);function au(a,b){return al(a-0xe9,b);}return this[au(0x129,0xf0)]();}*[al(-0x14,0x19)](){const d=new TimePhasedAssignmentSelector();d['assignment']=this;yield*d[av(0x499,0x4dd)]();function av(a,b){return al(a-0x4aa,b);}return d;}*[al(0x4,0x13)](){const d=yield this['$'][aw(0x4a9,0x4d9)];function aw(a,b){return al(b-0x519,a);}if(d&&(yield this['$'][aw(0x509,0x4e5)])){const e=yield d['$'][aw(0x564,0x580)];return e===SchedulingMode[aw(0x4d0,0x527)]?!![]:yield d['$']['effortDriven'];}else{return![];}}*[al(-0x8,-0x6b)](){const d=yield this['$'][ax(-0x107,-0xf5)];function ax(a,b){return al(a- -0xc7,b);}if(d&&(yield this['$'][ax(-0xfb,-0x112)])){const e=yield d['$'][ax(-0x60,-0x44)];return e===SchedulingMode[ax(-0xb9,-0x10f)]?SchedulingMode['FixedDuration']:e;}else{return SchedulingMode['Normal'];}}*[al(-0x26,-0x7b)](d){function ay(a,b){return al(a-0x1e2,b);}const e=yield this['$'][ay(0x1a2,0x1f7)];if(e&&(yield this['$'][ay(0x1ae,0x1db)])){const f=yield e['$'][ay(0x249,0x267)];return f===SchedulingMode[ay(0x1f0,0x243)]?!(yield*e['calculateHasOnlyRegularAssignmentsRaw']())?SchedulingMode[ay(0x1b9,0x1dd)]:SchedulingMode[ay(0x1f0,0x1e5)]:f;}else{return SchedulingMode[ay(0x1f0,0x1b2)];}}get['proposedMirror'](){if(this['_proposedMirror']!==void 0x0)return this[az(0x17,-0x10)];const d=new this['proposedMirrorClass']();d[az(0x3c,0x7b)]=this;function az(a,b){return al(a-0x5d,b);}d[az(0xad,0xc3)]=this[az(0xad,0x6c)];d['id']=az(0xb9,0xc5)+this['id'];if(this[az(0x1f,0x72)]){d[az(0x3e,0x1c)](this[az(0x1f,0x81)]);}return this[az(0x17,0x43)]=d;}[al(-0x1f,-0x4)](d){super[aA(0xf8,0xc7)](d);function aA(a,b){return al(b-0xe6,a);}const e=this['_proposedMirror'];if(e&&!e[aA(0x8b,0xa8)]){e[aA(0x11f,0xc7)](d);}}['leaveGraph'](d){function aB(a,b){return al(a-0xa5,b);}this['_proposedMirror']?.[aB(0xc0,0x11d)](d);super['leaveGraph'](d);}[al(-0x30,-0x60)](){function aC(a,b){return al(b- -0xe2,a);}this[aC(-0x11c,-0x128)]?.['unlink']();super[aC(-0x147,-0x112)]();}['writeIgnoreResourceCalendar'](d,e,f,g){e['write'](this['$'][aD(0x10a,0x129)],g);function aD(a,b){return al(b-0x141,a);}d[aD(0xc2,0x117)][aD(0x191,0x18f)]['write'][aD(0x10a,0x162)](this,d,e,f,g);}[al(-0x53,0x0)](d,e,f,g,h=!![]){function aE(a,b){return al(b-0x404,a);}if(!(!e['baseRevision'][aE(0x47c,0x46a)](d)&&g==null)){e['write'](this[aE(0x41d,0x419)]['$'][aE(0x3d3,0x417)],g,h);}super[aE(0x3eb,0x3b1)](d,e,f,g,h);}[al(0x42,0x8e)](d,e,f,g,h=![]){if(!(!e[aF(0x187,0x1a6)][aF(0x183,0x148)](d)&&g==null)){e[aF(0xf6,0x148)](this[aF(0x132,0x18b)]['$']['endDate'],g,h);}function aF(a,b){return al(a-0x11d,b);}super[aF(0x15f,0x14d)](d,e,f,g,h);}[al(-0x22,-0x43)](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;function aG(a,b){return al(b-0x376,a);}if(!(!e[aG(0x3ae,0x3e0)][aG(0x3ed,0x3dc)](d)&&g==null)){e['write'](this[aG(0x371,0x38b)]['$'][aG(0x385,0x3c1)],g,h,i);}super[aG(0x3ab,0x354)](d,e,f,g,h,i);}['writeEffort'](d,e,f,g,h){function aH(a,b){return al(b-0x5a3,a);}if(g<0x0)g=0x0;if(!(!e['baseRevision'][aH(0x5db,0x609)](d)&&g==null)){e['write'](this[aH(0x595,0x5b8)]['$'][aH(0x5a3,0x5cc)],g,h);}super[aH(0x5dd,0x5eb)](d,e,f,g,h);}['writeUnits'](d,e,f,g){function aI(a,b){return al(b- -0xf6,a);}if(g===MissingValue)return;d['constructor']['prototype'][aI(-0x15c,-0x11d)]['call'](this,d,e,f,g);}*['calculateEffortPure'](){function aJ(a,b){return al(b-0x397,a);}return yield*this[aJ(0x379,0x3a8)]();}*[al(0x11,0x30)](d=null,e=null){const f=yield this['$']['selector'];function aK(a,b){return al(a-0x136,b);}if(f['event']&&f[aK(0x177,0x138)]){if(!d){d=yield this['$']['startDate'];}if(!e){e=yield this['$'][aK(0x138,0x14b)];}return yield*this[aK(0x139,0x13d)](d,e);}return yield*super[aK(0x113,0xf1)](d,e);}*[al(0x46,0x9e)](){const d=yield this['$'][aL(0x131,0xfb)];function aL(a,b){return al(b-0x13b,a);}if(d){return yield d['$'][aL(0xe0,0x11d)];}else{return yield*super['calculateEffectiveDirection']();}}*[al(-0x31,0x26)](){const d=yield this['$']['event'];return Boolean(d&&(yield d['$']['ignoreResourceCalendar'])||(yield this['$']['ownIgnoreResourceCalendar']));}*['calculateStartOffset'](){function aM(a,b){return al(b- -0x18f,a);}const d=yield this['$'][aM(-0x1bc,-0x1cf)];if(d){const e=yield d['$'][aM(-0x1a5,-0x17c)];const f=yield this['$'][aM(-0x154,-0x17c)];return(yield*this['calculateProjectedDuration'](e,f,TimeUnit['Millisecond']))??0x0;}else return null;}*[al(-0x2e,-0x91)](){const d=yield this['$'][aN(0x461,0x434)];function aN(a,b){return al(a-0x3f6,b);}const e=d[aN(0x3b6,0x402)];if(e){if(d[aN(0x401,0x3fe)]||(yield PreviousValueOf(this['$'][aN(0x45f,0x42f)]))==null){const f=(yield e['$'][aN(0x3dc,0x3d0)])??(yield e['$'][aN(0x3f6,0x421)]);const g=yield this['proposedMirror']['$']['startDate'];return(yield*this['calculateProjectedDuration'](f,g,TimeUnit[aN(0x3d6,0x40a)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aN(0x45f,0x42a)]);}}else{return null;}}*[al(-0x3,-0x45)](){const d=yield this['$'][aO(-0x57,0x2)];const e=d[aO(-0xf7,-0xa9)];function aO(a,b){return al(b- -0x69,a);}if(e){const f=(yield e['$'][aO(-0x4c,-0x5)])['minOffset']<0x0;if(f||d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$'][aO(0x63,0x0)]))==null){const g=yield this['$']['effectiveDirection'];const h=g[aO(-0x3,-0x16)]===Direction['Forward']?yield e['$'][aO(-0x52,-0x62)]:yield e['$'][aO(-0xc6,-0x69)];const i=yield this[aO(-0x6b,-0x54)]['$'][aO(-0x5e,-0x56)];return(yield*this[aO(0x39,-0xf)](h,i,TimeUnit[aO(-0xbb,-0x89)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aO(0x20,0x0)]);}}else{return null;}}*[al(0x4a,0xa9)](){const d=yield this['$'][aP(0x357,0x301)];if(d['event']&&!d[aP(0x28a,0x294)]&&d[aP(0x2a0,0x263)]){return yield*this[aP(0x2a7,0x2c2)]();}function aP(a,b){return al(b-0x296,a);}return null;}*[al(-0x12,-0x3c)](){function aQ(a,b){return al(a-0x38e,b);}const d=yield this['$'][aQ(0x3f9,0x3ce)];if(d['event']&&!d[aQ(0x38c,0x333)]&&d[aQ(0x35b,0x3b2)]){const e=yield this['$']['phantomStartDate'];if(e){return yield*this['calculateProjectedXDateByEffort'](e,!![],yield this['$'][aQ(0x3b7,0x404)],yield this['$'][aQ(0x39e,0x3e0)]);}}return null;}*[al(0x54,0x24)](){function aR(a,b){return al(b- -0x1cf,a);}const d=yield this['$']['selector'];if(d[aR(-0x1cc,-0x20f)]&&!d[aR(-0x207,-0x1d1)]&&d[aR(-0x1d0,-0x202)]){if(d[aR(-0x201,-0x202)]){return 0x0;}}else return null;}*[al(-0x48,-0x6)](){const d=yield this['$'][aS(0x3ac,0x37b)];if(d[aS(0x301,0x33d)]&&!d['eventIsSegmented']&&d[aS(0x30e,0x31a)]){if(d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$'][aS(0x32b,0x2ed)]))==null){const e=yield d[aS(0x301,0x30b)]['$']['endDate'];const f=yield*this['calculateProjectedXDateByEffort'](yield this['$']['phantomStartDate'],!![],yield this['$']['effort'],yield this['$'][aS(0x351,0x2ff)]);return yield*this['calculateProjectedDuration'](f,e,TimeUnit['Millisecond']);}else{return yield ProposedOrPreviousValueOf(this['$']['phantomEndOffset']);}}function aS(a,b){return al(a-0x341,b);}return null;}*[al(-0x3d,-0x1e)](){function aT(a,b){return al(a- -0x10e,b);}const d=yield this['$'][aT(-0x14e,-0x16b)];if(d){const e=yield d['$'][aT(-0x10c,-0x169)];const f=yield this['$'][aT(-0x10c,-0xf3)];return yield*this['calculateProjectedDuration'](f,e,TimeUnit[aT(-0x12e,-0xcd)]);}else return null;}*['calculateProposedEndOffsetRaw'](){const d=yield this['$'][aU(-0x69,-0xa8)];function aU(a,b){return al(a- -0xd4,b);}const e=d['event'];if(e){if(d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$'][aU(-0xa0,-0xaf)]))==null){const f=(yield e['$']['proposedEndDate'])??(yield e['$'][aU(-0x87,-0xde)]);const g=yield this['proposedMirror']['$'][aU(-0xd2,-0x127)];return yield*this['calculateProjectedDuration'](g,f,TimeUnit[aU(-0xf4,-0xb1)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aU(-0xa0,-0xf7)]);}}else{return null;}}*[al(0x24,0x71)](){const d=yield this['$'][aV(-0x8,-0x3c)];function aV(a,b){return al(b- -0xa7,a);}const e=d[aV(-0x104,-0xe7)];if(e){const f=(yield e['$'][aV(-0xb3,-0xde)])[aV(-0x75,-0x8f)]<0x0;if(f||d[aV(-0x6f,-0x9c)]||(yield PreviousValueOf(this['$'][aV(-0xac,-0x73)]))==null){const g=yield this['$'][aV(-0x7c,-0xc5)];const h=g[aV(-0xb3,-0x54)]===Direction[aV(-0x10e,-0xe2)]?yield e['$']['proposedEndDateMax']:yield e['$'][aV(-0x3c,-0x5a)];const i=yield this[aV(-0x68,-0x92)]['$'][aV(-0xfb,-0xa5)];return yield*this[aV(-0x60,-0x4d)](i,h,TimeUnit[aV(-0x114,-0xc7)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aV(-0x18,-0x73)]);}}else{return null;}}*[al(0x63,0xc3)](){const d=yield this['$'][aW(0x13,0x48)];function aW(a,b){return al(a- -0x58,b);}return d['isDurationDefinedByEffortStructurally'];}*[al(-0x6,-0x13)](){const d=yield this['$'][aX(-0x3d,-0xa)];function aX(a,b){return al(b- -0x75,a);}return d[aX(-0x7f,-0x7b)];}*[al(0x33,-0xe)](d,e){function aY(a,b){return al(b-0x6c,a);}if(yield*this['isDurationDefinedByEffort']()){return yield*this[aY(0x90,0x6b)](d,e,yield this['$'][aY(0xcd,0x95)],yield this['$'][aY(0x40,0x7c)]);}else{return yield*this[aY(0x91,0x72)](d,e,yield this[aY(0x90,0x81)]['$'][aY(0xd8,0xb7)],yield this['$'][aY(0x4b,0xa5)]);}}*[al(0x2a,0x3f)](){const d=yield this['$'][aZ(0x353,0x36d)];const e=d[aZ(0x27b,0x2c2)];function aZ(a,b){return al(b-0x302,a);}if(e&&d['isUserTimePhased']){const f=yield this['$']['effectiveDirection'];if(f['direction']===Direction[aZ(0x35f,0x32f)]){const g=yield*this['calculateStartByDelay']();const h=yield e['$'][aZ(0x2bb,0x304)];if(g>h){return h;}else return g;}else{const i=yield this['$'][aZ(0x33f,0x304)];const j=yield e['$'][aZ(0x2e1,0x315)];const k=yield this['proposedMirror']['$'][aZ(0x36e,0x34d)];const l=yield*this[aZ(0x301,0x308)](i,![],k);if(l<j){return j;}else return l;}}else{return yield ProposedOrPrevious;}}*[al(-0x2f,-0x73)](){const d=yield this['$']['selector'];const e=d[b0(-0x149,-0x182)];function b0(a,b){return al(a- -0x109,b);}if(e&&d[b0(-0xe9,-0x95)]){const f=yield this['$'][b0(-0x127,-0xe3)];if(f[b0(-0xb6,-0xf7)]===Direction[b0(-0xdc,-0x8c)]){const g=yield this['$']['startDate'];const h=yield e['$'][b0(-0x107,-0xe8)];const i=yield this[b0(-0xf4,-0xa5)]['$']['duration'];const j=yield*this[b0(-0x103,-0x14a)](g,!![],i);if(j>h){return h;}else return j;}else{const k=yield*this[b0(-0x126,-0x147)]();const l=yield e['$'][b0(-0xf6,-0xb5)];if(k<l){return l;}else return k;}}else{return yield ProposedOrPrevious;}}*[al(-0x42,-0x85)](){const d=yield this['$'][b1(-0x132,-0x163)];const e=yield this['$']['endDate'];function b1(a,b){return al(a- -0x145,b);}return yield*this[b1(-0xeb,-0xaa)](d,e);}*[al(0x2c,-0x1c)](){const d=yield this['$'][b2(-0x3f,-0x4c)];function b2(a,b){return al(a-0x1,b);}if(d){const e=yield d['$'][b2(0x14,0x1d)];const f=yield this['$']['proposedStartOffset'];const g=yield*this['calculateProjectedXDateWithDuration'](e,!![],f,TimeUnit['Millisecond']);const h=yield*this[b2(-0x4,-0x3a)](g,!![]);return h;}else{return null;}}*[al(-0x1d,0x2d)](){function b3(a,b){return al(a-0xf6,b);}const d=yield this['$'][b3(0xb6,0xde)];if(d){const e=yield d['$']['endDate'];const f=yield this['$']['proposedEndOffset'];const g=yield*this[b3(0xfc,0x101)](e,![],f,TimeUnit[b3(0xd6,0xb1)]);const h=yield*this[b3(0xf1,0xa9)](g,![]);return h;}else{return null;}}*[al(-0x45,-0xa7)](d){const e=yield this['$'][b4(0x3fd,0x3df)];function b4(a,b){return al(b-0x41f,a);}const f=e?yield e['$'][b4(0x425,0x3d1)]:yield this[b4(0x3c6,0x429)]()['$']['effectiveCalendar'];yield f['$'][b4(0x4c4,0x484)];return f;}*[al(-0x19,-0x36)](){return!![];}*[al(-0xe,0x3b)](){const d=new Map();const e=yield this['$'][b5(0x515,0x4dc)];if(e){const f=yield e['$'][b5(0x4fb,0x4be)];d[b5(0x585,0x56f)](f,[this]);}function b5(a,b){return al(a-0x549,b);}return d;}*[al(-0xc,0x23)](){const d=yield this['$'][b6(0x335,0x2d7)];function b6(a,b){return al(a-0x2ca,b);}return d[b6(0x2be,0x276)];}*[al(0x41,0x4d)](){const d=yield this['$'][b7(0x154,0x10f)];function b7(a,b){return al(b-0xa4,a);}return d['isTimePhased'];}*[al(0x20,0x63)](){const d=yield this['$']['selector'];function b8(a,b){return al(a-0x2b0,b);}return d[b8(0x2d0,0x2a5)];}*['isPhantomTimePhased'](){function b9(a,b){return al(a-0x1dc,b);}const d=yield this['$'][b9(0x247,0x2a0)];return d[b9(0x1a9,0x1b3)];}*[al(0x47,0x60)](){const d=yield*super[ba(0x10e,0x13e)]();const e=yield this['$'][ba(0x55,0xb7)];function ba(a,b){return al(b-0xf7,a);}if(e){const f=yield*e['effectiveSchedulingMode']();if(f===SchedulingMode['Normal']){d[ba(0x11f,0x148)]=![];}}return d;}*[al(0xf,0x68)](d,e){function bb(a,b){return al(b-0x46,a);}if(yield*this[bb(0xa4,0x9c)]()){const f=yield this['$'][bb(0x1c,0x6)];if(yield this['$']['effortDriven']){if(!f||(yield ProposedOrPreviousValueOf(f['$'][bb(0x21,0x6f)]))!=null)e[bb(0x5d,0xb4)](EffortVar);}else{if(yield*this[bb(0x26,0x1a)]()){e['addProposedValueFlag'](UnitsVar);}}}}*[al(-0x49,-0x44)](d){function bc(a,b){return al(a-0x5f,b);}const e=yield*this[bc(0x84,0x2c)]();const f=yield this['$'][bc(0x1f,0x72)];if(e!==SchedulingMode['Normal']&&f){let g;if(yield*this[bc(0xa0,0x3d)]()){g=yield*super['prepareDispatcher'](d);}else{g=yield*super[bc(0x16,-0xd)](d);g['collectInfo'](d,f['$']['startDate'],StartDateVar);g[bc(0x4e,0x4b)](d,f['$'][bc(0x61,0x7a)],EndDateVar);g[bc(0x4e,0x71)](d,f['$'][bc(0xaa,0xf8)],DurationVar);g[bc(0x4e,0xd)](d,f['$']['effort'],EffortVar);}if(yield*f['hasProposedValueForUnits']()){g[bc(0xcd,0xb5)](UnitsVar);}return g;}else{return yield*super[bc(0x16,0x63)](d);}}*[al(0x56,0x1c)](){const d=yield this['$']['event'];return d?yield HasProposedValue(d['$']['assigned']):![];}*[al(-0x7,-0x9)](){function bd(a,b){return al(a- -0xf6,b);}return yield HasProposedValue(this['$'][bd(-0x139,-0x17f)]);}*['hasPreviousValueForUnits'](){function be(a,b){return al(b-0x4da,a);}return(yield PreviousValueOf(this['$'][be(0x46b,0x497)]))!==void 0x0;}*[al(0x19,0x46)](){const d=yield*this[bf(0x90,0xc6)]();const e=yield this['$']['event'];function bf(a,b){return al(b-0xa1,a);}if(e&&d!==SchedulingMode[bf(0x86,0xaf)]){const f=yield this['$'][bf(0x13e,0x10d)];const g=f[bf(0x143,0x101)]['get'](EffortVar);if(g===CalculateProposed){const h=yield HasProposedNotPreviousValue(e['$'][bf(0x103,0xca)]);const i=yield*e['hasProposedValueForAssignmentsField'](bf(0xfe,0xca));if(h&&!i||(yield*this[bf(0xfd,0xf7)]())&&(yield HasPreviousValue(e['$'][bf(0xd9,0xca)]))&&!(yield e['$'][bf(0xf4,0xb8)])[bf(0xe7,0x8c)]&&!this[bf(0x10a,0xf1)][bf(0xb4,0xea)]){return yield*this[bf(0x76,0x4d)]();}return yield*this['calculateEffortProposed']();}else if(g===effortFormula[bf(0x150,0xf6)]){return yield*this[bf(0x14,0x74)]();}else{throw new Error(bf(0xc0,0x60));}}else{return yield*b['calculateEffort'][bf(0x118,0xc2)](this);}}*['calculateProportionalEffortByUnits'](){function bg(a,b){return al(b- -0x1b2,a);}const d=yield this['event']['$']['proposedTotalUnits'];const e=yield ProposedOrPreviousValueOf(this[bg(-0x1b6,-0x1f2)]['$'][bg(-0x16a,-0x189)]);const f=yield this['event']['$'][bg(-0x186,-0x1a2)];const g=(yield*this[bg(-0x18d,-0x1a8)]()['$convertDuration'](e,f,TimeUnit[bg(-0x208,-0x1d2)]))*((yield ProposedOrPreviousValueOf(this['$'][bg(-0x239,-0x1f5)]))??0x64);const h=g===0x0?0x0:d===0x0?0x0:g/d;return yield*this[bg(-0x1df,-0x1a8)]()['$convertDuration'](h,TimeUnit[bg(-0x1a4,-0x1d2)],yield this['$'][bg(-0x142,-0x1a2)]);}*[al(0xd,0x4f)](){function bh(a,b){return al(a- -0x13b,b);}const d=yield PreviousValueOf(this['event']['$'][bh(-0x112,-0x147)]);const e=yield this[bh(-0x17b,-0x1d3)]['$'][bh(-0x12b,-0x12b)];const f=yield*this['getProject']()[bh(-0x144,-0x16c)](d,e,TimeUnit[bh(-0x15b,-0x18b)]);if(f===0x0){return 0x0;}const g=yield PreviousValueOf(this['$'][bh(-0x112,-0x15e)]);const h=yield this['$'][bh(-0x12b,-0x18d)];const i=yield*this['getProject']()['$convertDuration'](g,h,TimeUnit[bh(-0x15b,-0x172)]);const j=yield ProposedOrPreviousValueOf(this['event']['$']['effort']);const k=yield*this[bh(-0x131,-0x178)]()[bh(-0x144,-0x1a7)](j,e,TimeUnit[bh(-0x15b,-0x1a2)]);if(d!=null&&g!=null&&j!=null){const l=k*(i/f);return yield*this['getProject']()[bh(-0x144,-0x117)](l,TimeUnit['Millisecond'],h);}else{return 0x0;}}*[al(-0x54,-0x15)](){function bi(a,b){return al(a-0x56b,b);}const d=yield HasProposedNotPreviousValue(this[bi(0x52b,0x57a)]['$'][bi(0x594,0x58a)]);const e=yield*this[bi(0x52b,0x56f)][bi(0x5c1,0x606)]();if(d&&!e){return yield*this[bi(0x578,0x5bf)]();}else{return yield*this[bi(0x59a,0x5c7)]();}}*[al(0x1f,-0x2b)](d){const {event:e}=this;const f=yield HasProposedNotPreviousValue(e['$']['effort']);const g=yield*e['hasProposedValueForAssignmentsField']('effort');function bj(a,b){return al(a- -0x18b,b);}const h=f&&!g?yield*this[bj(-0x1df,-0x1db)]():yield this['$']['effort'],i=yield this['$'][bj(-0x17b,-0x16b)],j=yield*this[bj(-0x181,-0x1d2)]()[bj(-0x194,-0x1bc)](h,i,TimeUnit['Millisecond']);let k,l;if(yield*this['isTimePhased']()){k=yield this['$']['startDate'];l=yield this['$'][bj(-0x189,-0x1e2)];}else{k=yield e['$'][bj(-0x178,-0x135)];l=yield e['$']['endDate'];}if(!k&&!l){return yield ProposedOrPrevious;}let m=0x0;const n=Object[bj(-0x16f,-0x15e)](yield*this[bj(-0x168,-0x184)](),{'startDate':k,'endDate':l});const o=yield this['$']['assignmentsByCalendar'];yield*this[bj(-0x11c,-0x149)](n,(p,q,r)=>{const s=r['getCalendarsWorking']();function bk(a,b){return bj(a-0x25b,b);}const t=p[bk(0xe2,0xc5)](),u=q[bk(0xe2,0xd2)](),v=u-t;for(const w of s){m+=(o[bk(0xed,0xc7)](w)?o[bk(0xe4,0xac)](w)[bk(0x86,0x9c)]:0x0)*v;}});return m?0x64*j/m:0x64;}*[al(-0x38,-0x48)](d,e,f,g,h){const i=this[bl(0x391,0x3ec)]();const j=this['event'];const k=yield*i[bl(0x37e,0x3ad)](f,g,TimeUnit[bl(0x367,0x308)]);let l=0x0;const m=Object[bl(0x3a3,0x34a)](yield*this[bl(0x3aa,0x3bf)](),{'startDate':d,'endDate':e});const n=yield j['$'][bl(0x3ae,0x3c7)];function bl(a,b){return al(a-0x387,b);}const o=(yield j['$'][bl(0x3d8,0x392)])||(yield this['$'][bl(0x3d8,0x396)])||(yield*j[bl(0x3b7,0x3e2)]())||n&&!i[bl(0x3bd,0x384)];const p=o?yield j['$']['effectiveCalendar']:yield h['$']['effectiveCalendar'];yield*this[bl(0x3f6,0x3b5)](m,(q,r,s)=>{const t=s[bm(0x4ae,0x48e)]();function bm(a,b){return bl(b-0x111,a);}const u=q['getTime'](),v=r[bm(0x4eb,0x4aa)](),w=v-u;for(const x of t){l+=(x===p?0x1:0x0)*w;}});return l?0x64*k/l:0x64;}}c[al(0x43,0x63)]=al(-0x3c,-0x51);__decorate([model_field({'type':al(0x26,-0x29),'defaultValue':!![]})],c['prototype'],al(0x8,-0x1b),void 0x0);__decorate([model_field({'type':al(-0x1b,0x2d),'defaultValue':SchedulingMode[al(-0x29,-0x2d)]},{'sync':!![]})],c[al(0x4e,0x11)],al(0x67,0x43),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c['prototype'],al(0x51,0xb0),void 0x0);__decorate([model_field({'type':'date','bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0x4e,0x63)],al(0x13,-0x1d),void 0x0);__decorate([model_field({'type':al(-0xf,-0x3b),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c['prototype'],al(0x2,0x23),void 0x0);__decorate([model_field({'type':al(-0x1c,-0x3c),'bypassEqualityOnSyncDataset':!![],'defaultValue':null,'allowNull':!![]})],c[al(0x4e,0x27)],al(0x4b,0x28),void 0x0);__decorate([model_field({'type':al(-0x1c,0x17),'defaultValue':null})],c[al(0x4e,0x34)],al(0x29,0x5b),void 0x0);__decorate([field()],c[al(0x4e,0xa1)],'selector',void 0x0);__decorate([calculate(al(0x6b,0x92))],c['prototype'],'calculateSelector',null);__decorate([calculate(al(0x8,-0x12))],c[al(0x4e,0x54)],al(0x4,-0x51),null);__decorate([calculate(al(0x67,0x80))],c[al(0x4e,0x66)],al(-0x8,-0xc),null);__decorate([field()],c['prototype'],al(0x69,0x13),void 0x0);__decorate([field()],c[al(0x4e,0x1d)],al(-0x51,-0x8a),void 0x0);__decorate([field()],c['prototype'],'phantomStartDate',void 0x0);__decorate([field()],c['prototype'],al(0x1,-0xb),void 0x0);function al(a,b){return _enaa(a- -0x3e9,b);}__decorate([field()],c[al(0x4e,-0xa)],al(0x34,0x5b),void 0x0);__decorate([field()],c['prototype'],al(-0x16,0x4b),void 0x0);__decorate([field()],c['prototype'],al(0x3b,0x64),void 0x0);__decorate([field()],c[al(0x4e,0x9e)],al(0x2e,0x51),void 0x0);__decorate([field({'sync':!![]})],c[al(0x4e,0x17)],al(-0x18,-0x52),void 0x0);__decorate([write(al(0x51,0x4a))],c[al(0x4e,0x97)],al(-0x50,-0x5),null);__decorate([write('startDate')],c[al(0x4e,0x4a)],al(-0x53,-0x2b),null);__decorate([write(al(0x2,-0x3c))],c[al(0x4e,0x74)],al(0x42,-0x18),null);__decorate([write(al(0x4b,0x35))],c[al(0x4e,0x77)],al(-0x22,0xf),null);__decorate([write(al(0x29,0x59))],c[al(0x4e,0x5b)],al(0x48,0x9a),null);__decorate([write(al(-0x43,-0x2f))],c[al(0x4e,-0x6)],al(0x38,0x4f),null);__decorate([calculate(al(0x51,0x65))],c[al(0x4e,-0x15)],al(-0x31,-0x30),null);__decorate([calculate('startOffset')],c[al(0x4e,0xe)],al(-0x4d,-0x44),null);__decorate([calculate(al(0x1,0x1b))],c[al(0x4e,-0xa)],al(-0x3,0xd),null);__decorate([calculate(al(-0x28,-0x4f))],c['prototype'],al(0x4a,0x52),null);__decorate([calculate('phantomEndDate')],c[al(0x4e,0x2d)],'calculatePhantomEndDate',null);__decorate([calculate(al(-0x51,-0x8b))],c[al(0x4e,0x16)],'calculatePhantomStartOffset',null);__decorate([calculate('phantomEndOffset')],c['prototype'],al(-0x48,0x12),null);__decorate([calculate(al(0x34,0x5d))],c['prototype'],al(-0x3d,-0x1),null);__decorate([calculate(al(0x2e,0x38))],c[al(0x4e,0x78)],al(0x24,-0x1c),null);__decorate([calculate(al(0x29,-0xf))],c[al(0x4e,0x52)],al(0x19,-0x2c),null);return c;}){}class TimePhasedAssignmentCalendarIntervalMixin extends CalendarIntervalMixin{static get['fields'](){function bn(a,b){return _enaa(b- -0x48d,a);}return[bn(-0x11e,-0xc5)];}}class TimePhasedAssignmentCalendarIntervalStore extends CalendarIntervalStore{static get[_enaa(0x39d,0x387)](){return{'modelClass':TimePhasedAssignmentCalendarIntervalMixin};}}function _ena(){const bp=['startOffset','baseRevision','selector','dispatcher','724582VbJQlp','addProposedValueFlag','forEachAvailabilityInterval','setTimePhasedEffort','assigned','calculateProportionalEffort','writeStartDate','isSegmented','phantomStartOffset','writeIgnoreResourceCalendar','calculateDurationUnit','effectiveCalendar','calculateStartOffset','defaultConfig','isTimePhasedCalendar','length','prepareDispatcher','calculatePhantomEndOffset','485432XFgpnM','_proposedMirror','calculateEffectiveDataOrVisualCalendar','splice','units','calculateDuration','Unknown\x20formula\x20for\x20`effort`','event','decorate','graph','calculateEndOffset','SchedulerProTimePhasedAssignmentMixin','Backward','eventSelector','getOwnPropertyDescriptor','calculateUnitsForNewAssignment','proposedEndOffsets','run','isPhantomTimePhasedStructurally','resource','isPhantomTimePhased','hasInputOnStartDate','calculateIgnoreResourceCalendar','unlink','calculateEndDate','calculateProposedStartOffsetRaw','calculateEffortPure','hasPreviousValueForUnits','sort','constructor','FixedDuration','phantomStartDate','write','calculateSchedulingModeForUnitsCalculation','hasStartDateValue','putTimePhasedEffort','doCalculateAssignmentProjectedEffort','writeDuration','assignment','Millisecond','enterGraph','effectiveDirection','calculateEndByDelay','number','string','proposedStartDate','useEventAvailabilityIterator','ownIgnoreResourceCalendar','3188GnHBZG','phantomEndOffset','hasEffortInput','calculateSelector','intervalStoreClass','calculatePhantomEndDate','collectInfo','$removed','date','calculateAssignmentsByCalendar','hasInputOnDuration','isTimePhasedStructurally','_calculateEffortData','getCalendarsWorking','$convertDuration','calculateSchedulingMode','hasProposedValueForUnits','isDurationDefinedByEffort','skipNonWorkingTime','remove','calculateProposedStartOffset','eventIsSegmented','calculateProjectedXDateByEffort','minAssignmentProposedStartDate','proposedStartOffset','endDate','calculateProjectedEffort','calculateEffortDriven','function','calculateProjectedXDateWithDuration','proposedStartDateMin','effortDriven','hasInputOnEffort','getProject','hasInputOnTimePhasedData','2147238RAhCFK','calculateProportionalEffortByEffort','Normal','prepareDispatcherForAssignmentsFixedDuration','effortUnit','doCalculateAssignmentEffort','getTime','startDate','get','proposedMirror','object','timePhasedDispatcher','minOffset','calculateEffort','isChangingOnlyEndDate','leaveGraph','assign','has','defineProperty','calculateUnitsByStartEndAndEffort','isUserTimePhased','call','hasDurationValue','getBaseOptionsForEffortCalculations','calculateProposedEndOffset','effectiveSchedulingMode','boolean','manuallyScheduled','16QILJFu','effort','calculateStartDate','34426CDuaJH','calculateStartByDelay','Forward','proposedEndOffset','calculateProportionalEffortByUnits','hasElapsedDuration','isChangingOnlyDuration','hasInputOnlyOnEffort','calculateProjectedXDate','endOffset','262585uHbhqX','skipNonWorkingTimeInDurationWhenSchedulingManually','3MedskQ','writeUnits','durationUnit','3346240muXZQn','phantomEndDate','set','push','_changeAssignmentData','calculateEffortUnit','commitAsync','isTimePhased','writeEndDate','$name','slice','add','calculateEffectiveDirection','getBaseOptionsForDurationCalculations','writeEffort','isRemovingAssignmentByPutEffort','calculatePhantomStartDate','duration','size','maxAssignmentProposedEndDate','prototype','eventEffortDriven','project','ignoreResourceCalendar','eventEffectiveSchedulingMode','direction','calculatePhantomStartOffset','formulaId','hasProposedAssignments','hasInputOnUnits','setTimePhasedEffortBatch','filter','calculateProjectedDuration','hasEndDateValue','PROPOSED_','forEach','hasInputOnEndDate','putTimePhasedEffortBatch','resolution','FixedEffort','ion','isDurationDefinedByEffortStructurally','proposedStartOffsets','version','hasIdentifier','schedulingMode','9HoddfN'];_ena=function(){return bp;};return _ena();}class TimePhasedAssignmentCalendar extends BaseCalendarMixin{constructor(){function bo(a,b){return _enaa(a- -0x539,b);}super(...arguments);this[bo(-0x19b,-0x1d4)]=!![];}get[_enaa(0x3d6,0x37c)](){return TimePhasedAssignmentCalendarIntervalStore;}}export{SchedulerProTimePhasedAssignmentMixin,TimePhasedAssignmentCalendar,TimePhasedAssignmentCalendarIntervalMixin,TimePhasedAssignmentCalendarIntervalStore,TimePhasedAssignmentMirror,TimePhasedAssignmentSelector};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function L(a,b){return _enb(b- -0x1da,a);}while(!![]){try{const d=parseInt(L(0x4d,0x12))/0x1*(parseInt(L(0x5e,0x3d))/0x2)+parseInt(L(0x7d,0x38))/0x3+-parseInt(L(0x24,0x52))/0x4*(-parseInt(L(-0x1b,-0x10))/0x5)+-parseInt(L(0xa0,0x5b))/0x6+-parseInt(L(-0x15,0x1e))/0x7*(-parseInt(L(0x65,0x35))/0x8)+parseInt(L(0x46,0x2f))/0x9+parseInt(L(0xc,0x44))/0xa*(-parseInt(L(0x80,0x58))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5074c));var __decorate=function(a,b,e,f){var g=arguments[M(0x5ad,0x5bd)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[M(0x5bd,0x5bd)]===M(0x595,0x56c))h=Reflect[M(0x5bd,0x5b5)](a,b,e,f);else for(var k=a[M(0x5ad,0x5da)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function M(a,b){return _enb(a-0x3ac,b);}return g>0x3&&h&&Object[M(0x5e0,0x619)](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf,WriteSeveral}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/Mixin.js';import{CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1af;let f=c[d];return f;};return _enb(a,b);}import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';function _enN(a,b){return _enb(a-0x14a,b);}import{Direction,TimeUnit}from'../../../scheduling/Types.js';import{MAX_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar,endDateFormula,EndDateVar,startDateFormula,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{SEDWUDispatcherIdentifier}from'./HasEffortDispatcher.js';function _ena(){const at=['startOffset','segmentIndex','has','equality','modified','convert','endBatch','getSegmentByDate','effectiveDirection','function','assignmentsByCalendar','maxCalendarRange','92231lVnZZg','hasIdentifier','splitToSegments','getPath','cycleResolutionContext','processSegmentsValue','get','effectiveCalendar','cls','graph','calculateDurationProposed','forceSegmentsMerging','7oXnZsO','calculateStartDate','adjustDurationToDST','unlink','isSegmented','ignoreSegments','generation','isForward','dispatcher','length','getSegments','skipNonWorkingTimeWhenSchedulingManually','autoMergeAdjacentSegments','_skipSegmentsIsEqual','getTime','join','splice','2920302bMTAFY','skipNonWorkingTime','processData','calculateProjectedDuration','toJSON','slice','1203120NJWVhh','adjustedSegments','decorate','306594tCikhT','add','segmentModelClass','array','isModel','6RQRedP','shift','min','setPath','internalId','calculateAdjustedSegments','normalizeUnit','20LKQcJY','getValue','_processingDataForProject','useEventAvailabilityIterator','isManuallyScheduled','lastSegment','calculateProjectedXDateWithDuration','processSegmentValue','firstSegment','getSegment','doWriteSegments','Millisecond','pop','_lastSegmentsSnapshot','352fsGwnR','map','calculateSegments','prototype','new','endOffset','3699157GXPGGg','push','defineProperty','265086ypcDSR','calculateEndDate','event','mergeSegments','meta','formulaId','internalClearChanges','$name','findIndex','isHasSubEventsMixin','nextSegment','hasSegmentChangesProposed','zeroDurationMsThreshold','assign','endDate','addProposedValueFlag','duration','forEachAvailabilityInterval','data','removeEntities','Forward','forEach','from','getTimezoneOffset','run','segments','getSegmentIndexByDate','size','resolution','calculateDurationBySegments','$activeTransaction','ignoreResourceCalendar','_segmentGeneration','getLatestStableEntryFor','copy','getProject','10940phjcsc','getSegmentsSnapshot','project','leaveProject','calculateStartDateBySegments','durationUnit','setProject','storeFieldChange','commitAsync','replica','write','segmentsToCleanup','effectiveCalendarsCombination','max','convertDurationGen','startDate','getCalendarsWorkStatus','call','direction','writeSegments','rawModifications','getFieldPersistentValue'];_ena=function(){return at;};return _ena();}import{HasEffortMixin}from'./HasEffortMixin.js';import{HasPercentDoneMixin}from'./HasPercentDoneMixin.js';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol('SegmentsVar');const segmentsConverter=(a,b,c)=>c[_enN(0x33b,0x326)](a);const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula['new']({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula['new']({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(0x37a,0x3a6)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(0x37a,0x348)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution[_enN(0x37a,0x37b)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{[_enN(0x32d,0x36d)](a,b){function O(a,b){return _enN(b-0xd6,a);}const c=a[O(0x3a8,0x3e2)];const d=b[O(0x41d,0x3e2)];return super[O(0x3e4,0x403)](a,b)&&c[O(0x3ca,0x412)](SegmentsVar)===d[O(0x3ef,0x412)](SegmentsVar);}}function compareSegmentsArray(c,d){if(!c&&!d)return!![];if(this[P(-0xf2,-0x12a)])return![];if(!c&&d||c&&!d)return![];function P(a,b){return _enN(a- -0x441,b);}if(c[P(-0xf6,-0x10a)]!==d[P(-0xf6,-0x130)])return![];return c['every']((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x5ee,0x62b)]?c:d;const f=e['fieldMap'];const g=c[Q(0x5b1,0x59c)]instanceof Date?c[Q(0x5b1,0x5bc)][Q(0x5de,0x5fc)]():f[Q(0x5b1,0x581)][Q(0x5bd,0x5ca)](c[Q(0x5b1,0x571)])?.['getTime']();const h=d[Q(0x5b1,0x5cc)]instanceof Date?d[Q(0x5b1,0x5ea)][Q(0x5de,0x614)]():f[Q(0x5b1,0x5c0)][Q(0x5bd,0x601)](d['startDate'])?.[Q(0x5de,0x5af)]();const i=c[Q(0x58c,0x56d)]instanceof Date?c['endDate'][Q(0x5de,0x5e8)]():f[Q(0x58c,0x575)][Q(0x5bd,0x578)](c[Q(0x58c,0x549)])?.['getTime']();const j=d[Q(0x58c,0x5ce)]instanceof Date?d['endDate'][Q(0x5de,0x5de)]():f[Q(0x58c,0x5cd)]['convert'](d[Q(0x58c,0x583)])?.[Q(0x5de,0x5bf)]();function Q(a,b){return _enN(a-0x28e,b);}return g===h&&i===j;};const fillNextPrevious=a=>{a['reduce']((b,c,d)=>{if(b){b['nextSegment']=c;}c['previousSegment']=b;function R(a,b){return _enb(a- -0x34a,b);}c[R(-0x169,-0x17b)]=d;return c;},null);function S(a,b){return _enN(b- -0x3cb,a);}if(a[S(-0x68,-0x80)]){a[a[S(-0x7f,-0x80)]-0x1][S(-0xf0,-0xd1)]=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{class b extends a{constructor(){super(...arguments);function T(a,b){return _enb(a- -0x243,b);}this[T(-0x7d,-0x59)]={};}get[U(-0xf7,-0xfa)](){function V(a,b){return U(b-0x2be,a);}let c=super[V(0x1c0,0x1c7)];if(this[V(0x16c,0x1a8)]&&(!c||!('segments'in c))){for(const d of this['segments']){if(d['rawModifications']){c=c||{};c[V(0x1a1,0x1a8)]=this[V(0x1d2,0x1c8)](V(0x1c6,0x1a8));break;}}}return c;}['internalClearChanges'](c,d,e,...f){for(const g of this[W(-0xfd,-0x126)]||[]){if(g[W(-0xa6,-0x77)]){g[W(-0x81,-0xb9)]['call'](g,c,d,null,...f);}}function W(a,b){return U(a-0x19,b);}super[W(-0x81,-0xc7)][W(-0xe1,-0x9f)](this,c,d,e,...f);}*['prepareDispatcher'](c){const d=yield*super['prepareDispatcher'](c);function X(a,b){return U(b-0x5f0,a);}if(yield*this[X(0x4de,0x4cc)]()){d[X(0x496,0x4d0)](SegmentsVar);}return d;}[U(-0xe5,-0xf3)](c){const d=c(this['$'][Y(-0xc1,-0xa5)]);function Y(a,b){return U(b-0x48,a);}return d[Y(-0x92,-0xb1)]===Direction[Y(-0xc1,-0xd3)]||d[Y(-0x75,-0xb1)]===Direction['None']?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*[U(-0x124,-0x113)](){function Z(a,b){return U(a-0x253,b);}const c=yield ProposedValueOf(this['$'][Z(0x13d,0x17c)]);let d=![];if(yield HasProposedValue(this['$']['segments'])){d=Boolean(c);}const e=yield ProposedOrPreviousValueOf(this['$']['segments']);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$']['startDate']);const h=yield HasProposedValue(f['$'][Z(0x132,0x171)]);const i=yield HasProposedValue(f['$'][Z(0x134,0x13c)]);if(g||h||i)d=!![];}return d;}[U(-0xf8,-0xea)](c,d,e,f){const g=d[a0(0x4e2,0x4f4)](c)?.[a0(0x53a,0x531)]();const h=g!==TombStone?g??[]:[];const i=new Set(h);const j=(f??[])[a0(0x548,0x517)](n=>n[a0(0x531,0x4eb)]?n:this[a0(0x540,0x4fc)](n));const k=new Set(j);function a0(a,b){return U(a-0x5f0,b);}const l=this[a0(0x4e7,0x529)];const m=l[a0(0x4ee,0x4d1)];for(const n of h){if(!k[a0(0x4fd,0x4e9)](n)){l[a0(0x4f0,0x4dd)][a0(0x52e,0x52d)](n);n[a0(0x552,0x552)]=null;}}fillNextPrevious(j);c['constructor'][a0(0x54a,0x52e)][a0(0x4ef,0x50c)][a0(0x4f6,0x4ca)](this,c,d,e,j[a0(0x51c,0x4fb)]>0x0?j:null);d['write'](this['$'][a0(0x517,0x503)],Boolean(f?.[a0(0x51c,0x54a)]));for(const o of j){if(!i[a0(0x4fd,0x4bf)](o)&&o[a0(0x510,0x540)]!==m){o[a0(0x4eb,0x51f)](l);o[a0(0x552,0x580)]=this;m['addEntity'](o);}}}*[U(-0xad,-0xbe)](c,d){d=d||[];if(c[a1(0x4ca,0x4ae)]<=0x1){const e=c[a1(0x4ca,0x4c4)]?yield*this['convertDurationGen'](c[0x0][a1(0x4fa,0x512)]-c[0x0]['startOffset'],TimeUnit[a1(0x4f2,0x4f2)],yield this['$'][a1(0x498,0x46a)]):0x0;d['push']({'identifier':this['$'][a1(0x47f,0x4c0)],'proposedArgs':[e,null]});c=null;}d[a1(0x4fc,0x52d)]({'identifier':this['$'][a1(0x488,0x4c6)],'proposedArgs':[c]});function a1(a,b){return U(a-0x59e,b);}yield WriteSeveral(d);}*[U(-0xa7,-0x96)](){const c=yield this['$'][a2(0x2ad,0x29d)];const {graph:d,project:e}=this;const f=e['segmentModelClass'];const g=yield e['$'][a2(0x2b1,0x2dd)]||this[a2(0x2a4,0x2a3)];const h=yield PreviousValueOf(this['$'][a2(0x26c,0x29b)]);function a2(a,b){return U(a-0x382,b);}let i=yield ProposedOrPrevious;const j=[];let k=![];if(i){const l=new Set();let m=null;let n=![];let o=0x0;const {baseRevision:p}=d[a2(0x271,0x248)];for(const q of i){const r=yield q['$']['startOffset'];const s=yield q['$'][a2(0x2de,0x2c9)];const t=p[a2(0x29a,0x2d2)](q['$'][a2(0x286,0x252)])&&(yield ProposedArgumentsOf(q['$'][a2(0x286,0x2c6)]));const u=p['hasIdentifier'](q['$'][a2(0x261,0x22c)])&&(yield ProposedArgumentsOf(q['$'][a2(0x261,0x292)]));n=n||t?.[0x0]||u?.[0x0];if(r===s){j[a2(0x2e0,0x2d7)](q);}else if(g&&m&&r+o<=m['endOffset']){const v=m[a2(0x2de,0x2d2)];j[a2(0x2e0,0x2e9)](q);if(m[a2(0x2a2,0x2ba)]){j['push'](m);const w=m[a2(0x28d,0x28f)];const x=n?s+v-r:Math[a2(0x284,0x29f)](s,v);const y=m[a2(0x2a1,0x276)];m=f[a2(0x2dd,0x296)]({'event':this,'cls':y,'startOffset':w,'endOffset':x});}else{m['endOffset']=n?s+m[a2(0x2de,0x310)]-r:Math['max'](s,m[a2(0x2de,0x2ed)]);}}else if(!g&&m&&(o||r<m[a2(0x2de,0x299)])){l['add'](m);j[a2(0x2e0,0x2f8)](q);if(r+o<m[a2(0x2de,0x2ff)]){o+=m['endOffset']-r-o;}m=f[a2(0x2dd,0x305)]({'id':q['id'],'event':this,'cls':m[a2(0x2a1,0x2c5)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l[a2(0x2c0,0x2c4)](m);}m=q;}}if(m){l['add'](m);}if(l[a2(0x26e,0x22e)]===0x1){j[a2(0x2e0,0x2b1)](...l);}k=j[a2(0x2ae,0x2ea)]>0x0;if(k){i=Array[a2(0x269,0x227)](l);}fillNextPrevious(i);}else if(h){j[a2(0x2e0,0x319)](...h);}if(j['length']){for(const z of j){z[a2(0x2e4,0x2f3)]=null;e[a2(0x282,0x2b2)][a2(0x2c0,0x280)](z);}}if(k){yield*this[a2(0x2d5,0x2df)](i);}i=i?.[a2(0x2ae,0x27f)]>0x1?i:null;return i;}*[U(-0xb9,-0xe1)](){const c=yield this['$'][a3(0x23f,0x22c)];let d=yield this['$']['segments'];const e=yield this['$'][a3(0x224,0x205)];function a3(a,b){return U(b-0x301,a);}const f=yield this['$'][a3(0x216,0x1e0)];const g=yield this['$'][a3(0x1af,0x1e2)];let h=yield ProposedOrPrevious;if(d){const j=this['project'];const k=this['graph'];const l=[];const m=[];let n=-0x1;for(let q=d[a3(0x238,0x22d)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(0x1e0,0x205)];const t=yield r['$'][a3(0x19c,0x1e0)];if(s>f){l[a3(0x29b,0x25f)](r);n=q;}else{if(t[a3(0x238,0x232)]()!==f[a3(0x24c,0x232)]()){const u=r['endOffset']+(f[a3(0x22f,0x232)]()-t[a3(0x240,0x232)]())-r[a3(0x1f5,0x20c)];const v=yield*this[a3(0x1c0,0x204)](u,TimeUnit[a3(0x285,0x255)],yield r['$'][a3(0x21a,0x1fb)]);m[a3(0x24f,0x25f)]({'identifier':r['$'][a3(0x225,0x1e2)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(0x1d7,0x1e0)],'proposedArgs':[f,![]]},{'identifier':r['$'][a3(0x21c,0x25d)],'proposedArgs':[r['endOffset']+(f[a3(0x214,0x232)]()-t[a3(0x1f8,0x232)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d[a3(0x212,0x234)](n);if(d[a3(0x1f2,0x22d)]){d[d[a3(0x1e9,0x22d)]-0x1][a3(0x1de,0x1dc)]=null;}for(const w of l){j[a3(0x246,0x201)][a3(0x268,0x23f)](w);}}let p='';if(d){p=this[a3(0x1cd,0x1f7)](d);}if(p!==this[a3(0x23a,0x257)]){o=!![];d=d?d[a3(0x20e,0x23a)]():d;this[a3(0x271,0x257)]=p;}if(o){yield*this[a3(0x26d,0x254)](d,m);}}return h;}[U(-0x10a,-0xf4)](c){c=c||this[a4(0x32f,0x328)];function a4(a,b){return U(a-0x445,b);}return c?.['map'](d=>''+d[a4(0x350,0x35d)]+'-'+d[a4(0x349,0x332)]?.['getTime']()+'-'+d['endOffset']+'-'+d['endDate']?.[a4(0x376,0x352)]())[a4(0x377,0x3a5)](';');}static[U(-0xca,-0xeb)](c,d,e,f,g){function a5(a,b){return U(b-0x28e,a);}if(e){f[a5(0x1f9,0x1d9)]=e[a5(0x13f,0x185)];}return super[a5(0x1bc,0x1c4)](c,d,e,f,g);}[U(-0xb0,-0xd1)](c){const d=this[a6(0x57f,0x572)]?.[a6(0x58f,0x5ba)]||this[a6(0x59c,0x5c6)]?.[a6(0x602,0x5ba)];if(!d)return c;const e=c[a6(0x5b3,0x5bc)]?c:d[a6(0x5eb,0x5d6)](c);if(!e['event'])e[a6(0x5c9,0x5dd)]=this;function a6(a,b){return U(b-0x67b,a);}return e;}[U(-0xe4,-0xd6)](c){function a7(a,b){return U(b-0x4e1,a);}if(c===void 0x0)return void 0x0;if(c==null)return null;return c[a7(0x41e,0x439)](d=>this['processSegmentValue'](d));}*[U(-0xdc,-0xfb)](){const c=yield this['$'][a8(0x481,0x49b)];const d=c[a8(0x443,0x421)][a8(0x473,0x4ac)](StartDateVar);let e;function a8(a,b){return U(a-0x556,b);}if(d===startDateByEndDateAndSegmentsFormula['formulaId']){e=yield*this[a8(0x44f,0x40b)]();}else{e=yield*super[a8(0x47a,0x49c)]();}return e;}*[U(-0x107,-0xe3)](){function a9(a,b){return U(b-0x3e3,a);}const c=yield this['$'][a9(0x2f3,0x30e)];const d=yield this['$'][a9(0x291,0x2cd)];const e=yield this['$'][a9(0x28c,0x2c2)];let f;if(d){const g=d[d[a9(0x332,0x30f)]-0x1];const h=yield g['$'][a9(0x324,0x33f)];const i=yield*this['calculateProjectedXDateWithDuration'](e,![],h,TimeUnit[a9(0x300,0x337)],{'ignoreSegments':!![]});const j=yield*this[a9(0x30f,0x330)]();f=j&&!this[a9(0x30f,0x2d7)]()['skipNonWorkingTimeWhenSchedulingManually']?i:yield*this[a9(0x2f1,0x318)](i,!![]);}return f;}*['calculateEndDateBySegments'](){function aa(a,b){return U(b-0x59b,a);}const c=yield this['$']['dispatcher'];const d=yield this['$'][aa(0x48e,0x485)];const e=yield this['$'][aa(0x4d7,0x49f)];let f;if(d){const g=d[d['length']-0x1];const h=yield g['$'][aa(0x4e9,0x4f7)];const i=yield*this[aa(0x510,0x4ea)](e,!![],h,TimeUnit[aa(0x50b,0x4ef)],{'ignoreSegments':!![]});const j=yield*this[aa(0x500,0x4e8)]();f=j&&!this['getProject']()[aa(0x4bc,0x4c9)]?i:yield*this[aa(0x4e1,0x4d0)](i,![]);}return f;}*[U(-0x9f,-0xb4)](){const c=yield this['$'][ab(0x25b,0x29b)];const d=c[ab(0x25e,0x25d)]['get'](EndDateVar);let e;if(d===endDateByStartDateAndSegmentsFormula[ab(0x30a,0x2d5)]){e=yield*this['calculateEndDateBySegments']();}else{e=yield*super[ab(0x29b,0x2d1)]();}function ab(a,b){return U(b-0x370,a);}return e;}*[U(-0xdf,-0xc0)](){let c;if(yield*this[ac(0x39,0x36)]()){c=yield*this[ac(0x75,0x48)]();}else{c=yield*super['calculateDurationProposed']();}function ac(a,b){return U(b-0x15a,a);}return c;}*[U(-0xcb,-0xf6)](c,d=!![],e){if(!c)return null;e=Object[ad(0x16f,0x172)]({'ignoreSegments':!![]},e);function ad(a,b){return U(b-0x294,a);}return yield*super[ad(0x20a,0x1c9)](c,d,e);}*['calculateDurationBySegments'](){let c;const d=yield this['$'][ae(0x62,0x6f)];const e=yield this['$']['durationUnit'];const f=yield this['$'][ae(0x21,0x1f)];function ae(a,b){return U(a-0x137,b);}if(f){let g=0x0;for(const h of f){g+=h[ae(0x93,0x52)]-h[ae(0x42,0x6e)];}c=yield*this[ae(0x3a,0xf)](g,TimeUnit['Millisecond'],e);}return c;}*[U(-0x11e,-0x10b)](c,d){const e=yield this['$']['isSegmented'];let f=c[af(-0x155,-0x153)];if(!e||f){return yield*super[af(-0x19b,-0x1ab)](c,d);}const g=this[af(-0x189,-0x1a9)]();const h=yield this['$'][af(-0x15f,-0x12d)];const i=yield this['$'][af(-0x168,-0x189)];const j=yield this['$'][af(-0x17c,-0x1ae)];const k=c[af(-0x153,-0x174)]!==![];const l=(yield this['$'][af(-0x18d,-0x159)])||(yield*this['hasElapsedDuration']())||c['ignoreResourceCalendar']||!i[af(-0x191,-0x173)];const m=g[af(-0x167,-0x19f)];let n=0x1;let o,p,q,r,s;if(!f){r=yield this['$'][af(-0x193,-0x188)];f=f||!r||k===![]&&r[0x0][af(-0x179,-0x191)]>=c[af(-0x19e,-0x17f)]||k===!![]&&r[r['length']-0x1]['endDate']<c[af(-0x179,-0x1ae)];if(!f){r=r[af(-0x144,-0x143)]();if(k){o=r[af(-0x13a,-0x13f)]();p=0x0;n=0x1;s=o['nextSegment']?o[af(-0x121,-0x117)]:MAX_DATE['getTime']();}else{o=r['pop']();p=o[af(-0x121,-0xe7)];n=-0x1;s=o[af(-0x121,-0x13c)];}q=s-o[af(-0x172,-0x1b1)];}}const t=yield*this['isManuallyScheduled']();function af(a,b){return U(a- -0x7d,b);}const u=g[af(-0x158,-0x11b)];const v=this[af(-0x1a0,-0x182)];return j[af(-0x19b,-0x1dc)](Object['assign']({'maxRange':m},c),(w,x,y)=>{function ag(a,b){return af(b-0x7,a);}const z=y[ag(-0x157,-0x171)]();const A=y['getCalendarsWorking']();if(z[ag(-0x19c,-0x159)](h)&&(l||A['some'](B=>i[ag(-0x1a6,-0x169)](B))||t&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'])){if(f){return d(w,x,y);}else{const B=w[ag(-0x116,-0x145)]();let C=x['getTime']()-w['getTime']();if(u){const F=w[ag(-0x17b,-0x18e)]()-x[ag(-0x199,-0x18e)]();C+=F*0x3c*0x3e8;}let D,E;if(k){D=p;E=p+C;}else{D=p-C;E=p;}while(o&&D<=s&&E>o[ag(-0x15a,-0x16b)]){const G=Math['max'](D,o[ag(-0x1af,-0x16b)]);const H=Math[ag(-0x173,-0x132)](E,s);const I=new Date(B+G-D);const J=new Date(B+H-D);const K=d(I,J,y);if(K===![])return![];q-=J['getTime']()-I[ag(-0x171,-0x145)]();if(q<v){o=k?r[ag(-0x114,-0x133)]():r[ag(-0x134,-0x121)]();if(o){s=!k||o[ag(-0x16b,-0x19b)]?o['endOffset']:MAX_DATE[ag(-0x173,-0x145)]();q=s-o[ag(-0x146,-0x16b)];}}else{break;}}p+=n*C;}}});}*[U(-0xb4,-0xba)](){const c=yield this['$'][ah(0x37c,0x36f)];function ah(a,b){return U(b-0x448,a);}return c||(yield*super['useEventAvailabilityIterator']());}[U(-0xee,-0x121)](c,d){d=d||this[ai(-0x14f,-0x174)]();function ai(a,b){return U(b- -0xa1,a);}if(d){const e=this['getSegmentIndexByDate'](c,d);return d[e];}}[U(-0x115,-0x133)](c,d){d=d||this['getSegments']();function aj(a,b){return U(b-0x635,a);}return d?d[aj(0x5b5,0x59d)](e=>c>=e[aj(0x535,0x539)]&&c<e[aj(0x511,0x514)]):-0x1;}get[U(-0xaf,-0xce)](){const c=this['getSegments']();return c?c[0x0]:null;}get['lastSegment'](){function ak(a,b){return U(b-0x378,a);}const c=this[ak(0x272,0x2a5)]();return c?c[c[ak(0x2be,0x2a4)]-0x1]:null;}[U(-0xae,-0xbd)](c){const d=this['getSegments']();return d?.[c];}async[U(-0xe7,-0xb9)](c,d=0x1,e){const f=this['getProject']();const g=f[al(0x17d,0x149)];await f['commitAsync']();const h=this;if(!c||h[al(0x120,0xe4)]&&h['childEvents']?.[al(0x11c,0xf6)])return;const j=h['duration'];const k=h[al(0xde,0x104)];const m=h[al(0xcb,0x10e)];const n=h[al(0x107,0xe9)];e=e?_enc[al(0x195,0x152)](e):k;function al(a,b){return U(b-0x20a,a);}if(!m||!n||m>=c||c>=n||!j)return;const o=h[al(0x102,0x131)];let p=h[al(0x10b,0xf4)]||[];let q,r;if(o){r=h[al(0xf0,0xf5)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s[al(0xdd,0x10e)]:m;const u=s[al(0xcb,0xeb)];const v=s[al(0xf4,0x104)];const w=s['name'];const x=h[al(0xd2,0xf3)]('calculateProjectedDuration',t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h['run']('convertDurationGen',d,e,TimeUnit[al(0x19b,0x15e)]);const A=z+h[al(0x108,0xf3)](al(0x11a,0x141),m,c,TimeUnit[al(0x180,0x15e)],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[al(0x11f,0x165)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[al(0x12b,0x143)](0x0);p[al(0x113,0x13d)](r+0x1,0x0,B);h['segments']=p;h['duration']=j;for(let C=r+0x2,D=p[al(0x106,0x136)];C<D;C++){const E=p[C];if(E){E['startOffset']+=z;E['endOffset']+=z;}}}else{const F=g[al(0x162,0x165)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[al(0x122,0x165)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h['duration']=j;h[al(0x104,0xf4)]=[F,G];}return f['commitAsync']();}async[U(-0x9d,-0x90)](c,d){function am(a,b){return U(a-0x59c,b);}if(!this[am(0x4c3,0x49f)])return;this[am(0x4be,0x4d4)]=!![];c=c||this[am(0x4ed,0x4be)];d=d||this[am(0x4ea,0x511)];if(c['startOffset']>d[am(0x4a7,0x4e8)]){let f=d;d=c;c=f;}c[am(0x47b,0x496)]=d['startDate'];const e=await this['getProject']()[am(0x499,0x4de)]();this[am(0x4be,0x48a)]=![];return e;}[U(-0x104,-0x110)](c,d){if(c===an(0x484,0x49a)&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f['toJSON']();if(!this[an(0x4ad,0x4a1)][f[an(0x4ba,0x4f6)]]||f[an(0x4f2,0x4d9)]>this[an(0x4db,0x4a1)][f[an(0x4ed,0x4f6)]]){Object['assign'](g,f[an(0x50b,0x514)][an(0x4d5,0x4bf)]);}e['push'](g);this['_segmentGeneration'][f['internalId']]=f['generation'];}else{e['push'](f);}}d=e;}function an(a,b){return U(b-0x5b0,a);}super[an(0x4ea,0x4ac)](c,d);}[U(-0x108,-0xfa)](){function ao(a,b){return U(a-0x3d8,b);}const c=this[ao(0x2c2,0x2df)];if(c){this[ao(0x2f8,0x33d)]?.[ao(0x2bc,0x2f4)](c);}super['leaveProject']();}[U(-0xef,-0xf4)](...c){function ap(a,b){return U(b-0x56f,a);}this['fieldMap'][ap(0x484,0x459)][ap(0x4b3,0x49f)]++;super[ap(0x4b6,0x480)](...c);this['fieldMap'][ap(0x46b,0x459)][ap(0x461,0x49f)]--;}[U(-0x10d,-0xf9)](c=null,d=null){const e=super[aq(0xb9,0x100)](c,d);e[aq(0xa9,0xca)][aq(0xb0,0x83)]=void 0x0;if(e[aq(0xb0,0x6f)]){e[aq(0xb0,0x7c)]=e['segments']['map'](f=>Object[aq(0xa4,0x9e)](f[aq(0xb9,0x88)](),{'event':e}));}function aq(a,b){return U(a-0x1c6,b);}return e;}['toJSON'](){const c=super['toJSON'](),d=this['getFieldDefinition'](ar(0xa9,0xd6)),{persist:e,dataSource:f,complexMapping:g}=d;if(e){let h=_end[ar(0xd9,0xea)](c,f);if(h){h=h[ar(0x117,0x14c)](i=>i[ar(0xf7,0x114)]());_end[ar(0x104,0xd3)](c,f,h);}}function ar(a,b){return U(a-0x1bf,b);}return c;}[U(-0xda,-0xcd)](){const {segments:c}=this;function as(a,b){return U(a-0x463,b);}c?.[as(0x349,0x374)](d=>d['unlink']());super[as(0x389,0x393)]();}}b[U(-0x99,-0x95)]='SplitEventMixin';__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(-0xa6,-0xdc)],U(-0xd5,-0xa0),void 0x0);__decorate([model_field({'type':U(-0xc0,-0xd4),'isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b[U(-0xa6,-0xd5)],U(-0x116,-0xde),void 0x0);__decorate([field()],b[U(-0xa6,-0xa7)],'adjustedSegments',void 0x0);__decorate([field()],b[U(-0xa6,-0x72)],U(-0xd9,-0xdc),void 0x0);function U(a,b){return _enN(a- -0x41f,b);}__decorate([write(U(-0x116,-0x15d))],b[U(-0xa6,-0xc7)],U(-0xf8,-0x10e),null);__decorate([calculate(U(-0x116,-0xe2))],b[U(-0xa6,-0x8f)],'calculateSegments',null);__decorate([calculate(U(-0xc5,-0xeb))],b['prototype'],'calculateAdjustedSegments',null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentsConverter,startDateByEndDateAndSegmentsFormula};
|
|
1
|
+
function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x14d;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function L(a,b){return _enb(a-0xad,b);}while(!![]){try{const d=-parseInt(L(0x23f,0x25c))/0x1+parseInt(L(0x203,0x219))/0x2*(-parseInt(L(0x270,0x277))/0x3)+-parseInt(L(0x26a,0x28a))/0x4+-parseInt(L(0x227,0x1fa))/0x5*(parseInt(L(0x220,0x204))/0x6)+parseInt(L(0x21b,0x235))/0x7*(-parseInt(L(0x241,0x1f8))/0x8)+parseInt(L(0x289,0x29f))/0x9+-parseInt(L(0x204,0x23d))/0xa*(-parseInt(L(0x23d,0x285))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe8c4d));var __decorate=function(a,b,e,f){function M(a,b){return _enb(a- -0x9b,b);}var g=arguments[M(0xba,0x103)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[M(0x10b,0x110)]===M(0x136,0xf7))h=Reflect[M(0x10b,0xc9)](a,b,e,f);else for(var k=a[M(0xba,0x80)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf,WriteSeveral}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/Mixin.js';import{CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';function _ena(){const av=['forceSegmentsMerging','rawModifications','from','dispatcher','endBatch','run','convertDurationGen','data','getSegment','findIndex','getPath','function','processSegmentsValue','shift','isForward','getSegmentsSnapshot','splice','processSegmentValue','calculateStartDate','effectiveDirection','forEach','isModel','2369340YyzDmQ','calculateDurationProposed','constructor','adjustDurationToDST','segmentIndex','SegmentsVar','array','write','endDate','resolution','hasSegmentChangesProposed','length','49970kysgCX','30LuOHVb','lastSegment','useEventAvailabilityIterator','splitToSegments','min','skipNonWorkingTime','ignoreSegments','internalId','pop','isManuallyScheduled','getProject','childEvents','startDate','fieldMap','_processingDataForProject','SplitEventMixin','doWriteSegments','getTime','addProposedValueFlag','forEachAvailabilityInterval','has','setPath','storeFieldChange','133EAhMGv','segments','getSegments','isHasSubEventsMixin','mergeSegments','60WnZTcr','map','prepareDispatcher','ignoreResourceCalendar','_skipSegmentsIsEqual','calculateStartDateBySegments','startOffset','617905JPJTeb','durationUnit','getCalendarsWorking','modified','calculateProjectedDuration','call','writeSegments','skipNonWorkingTimeWhenSchedulingManually','cls','hasIdentifier','toJSON','getSegmentIndexByDate','get','getValue','calculateSegments','leaveProject','calculateEndDate','size','slice','segmentModelClass','add','duration','21289048aDgnNR','cycleResolutionContext','421350mISRWb','replica','106984IANMlq','prototype','join','copy','max','maxCalendarRange','effectiveCalendarsCombination','equality','calculateEndDateBySegments','getTimezoneOffset','processData','getSegmentByDate','graph','_segmentGeneration','push','project','getFieldDefinition','None','decorate','internalClearChanges','segmentsToCleanup','isSegmented','_lastSegmentsSnapshot','new','effectiveCalendar','zeroDurationMsThreshold','getFieldPersistentValue','nextSegment','setProject','some','endOffset','reduce','previousSegment','meta','convert','addEntity','Millisecond','unlink','event','formulaId','commitAsync','6722444TDBEMQ','firstSegment','removeEntities','adjustedSegments','generation','calculateProjectedXDateWithDuration','183NQauqh','normalizeUnit','assign'];_ena=function(){return av;};return _ena();}import{MAX_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar,endDateFormula,EndDateVar,startDateFormula,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{SEDWUDispatcherIdentifier}from'./HasEffortDispatcher.js';import{HasEffortMixin}from'./HasEffortMixin.js';import{HasPercentDoneMixin}from'./HasPercentDoneMixin.js';function _enN(a,b){return _enb(b- -0x222,a);}import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol(_enN(-0x101,-0xd3));const segmentsConverter=(a,b,c)=>c[_enN(-0x6f,-0x50)](a);const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula[_enN(-0x61,-0x77)]({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula[_enN(-0x36,-0x77)]({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(-0x4d,-0x77)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(-0xaa,-0x77)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution['new']({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{[_enN(-0xa1,-0x87)](a,b){const c=a[O(0x51a,0x527)];function O(a,b){return _enN(a,b-0x5f6);}const d=b[O(0x518,0x527)];return super[O(0x5aa,0x56f)](a,b)&&c[O(0x597,0x55a)](SegmentsVar)===d[O(0x52b,0x55a)](SegmentsVar);}}function compareSegmentsArray(c,d){function P(a,b){return _enN(b,a- -0xc4);}if(!c&&!d)return!![];if(this['_skipSegmentsIsEqual'])return![];if(!c&&d||c&&!d)return![];if(c['length']!==d[P(-0x191,-0x150)])return![];return c['every']((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x609,0x5c0)]?c:d;const f=e[Q(0x509,0x549)];const g=c[Q(0x543,0x548)]instanceof Date?c[Q(0x586,0x548)][Q(0x54c,0x54d)]():f['startDate'][Q(0x5bf,0x59b)](c[Q(0x572,0x548)])?.[Q(0x591,0x54d)]();const h=d[Q(0x562,0x548)]instanceof Date?d[Q(0x572,0x548)][Q(0x528,0x54d)]():f[Q(0x516,0x548)][Q(0x559,0x59b)](d[Q(0x528,0x548)])?.[Q(0x56e,0x54d)]();const i=c[Q(0x54f,0x537)]instanceof Date?c[Q(0x503,0x537)]['getTime']():f[Q(0x550,0x537)][Q(0x5cd,0x59b)](c[Q(0x578,0x537)])?.[Q(0x58a,0x54d)]();function Q(a,b){return _enN(a,b-0x607);}const j=d[Q(0x563,0x537)]instanceof Date?d['endDate'][Q(0x548,0x54d)]():f['endDate'][Q(0x55a,0x59b)](d['endDate'])?.['getTime']();return g===h&&i===j;};const fillNextPrevious=a=>{a[R(0x158,0x18a)]((b,c,d)=>{function S(a,b){return R(a- -0xe4,b);}if(b){b['nextSegment']=c;}c[S(0x75,0xb5)]=b;c[S(0xf,-0x1e)]=d;return c;},null);function R(a,b){return _enN(b,a-0x1c7);}if(a['length']){a[a[R(0xfa,0xf6)]-0x1][R(0x154,0x17f)]=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{class b extends a{constructor(){super(...arguments);function T(a,b){return _enb(a-0x58,b);}this[T(0x1f9,0x201)]={};}get[U(0x193,0x19a)](){let c=super['rawModifications'];function V(a,b){return U(a-0xe3,b);}if(this[V(0x21e,0x24b)]&&(!c||!(V(0x21e,0x1eb)in c))){for(const d of this['segments']){if(d[V(0x276,0x2a9)]){c=c||{};c[V(0x21e,0x205)]=this[V(0x25d,0x227)](V(0x21e,0x210));break;}}}return c;}[U(0x173,0x180)](c,d,e,...f){for(const g of this['segments']||[]){if(g[W(0x332,0x349)]){g[W(0x2fe,0x2f5)][W(0x2d6,0x319)](g,c,d,null,...f);}}function W(a,b){return U(a-0x18b,b);}super[W(0x2fe,0x2cf)]['call'](this,c,d,e,...f);}*[U(0x141,0x148)](c){const d=yield*super[X(0x542,0x539)](c);function X(a,b){return U(b-0x3f8,a);}if(yield*this[X(0x524,0x518)]()){d[X(0x51a,0x52d)](SegmentsVar);}return d;}[U(0x15d,0x149)](c){const d=c(this['$'][Y(-0x1de,-0x1e2)]);function Y(a,b){return U(a- -0x383,b);}return d['direction']===Direction['Forward']||d['direction']===Direction[Y(-0x212,-0x209)]?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*['hasSegmentChangesProposed'](){const c=yield ProposedValueOf(this['$'][Z(0xeb,0x113)]);let d=![];if(yield HasProposedValue(this['$'][Z(0x158,0x113)])){d=Boolean(c);}function Z(a,b){return U(b- -0x28,a);}const e=yield ProposedOrPreviousValueOf(this['$']['segments']);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$']['startDate']);const h=yield HasProposedValue(f['$']['endDate']);const i=yield HasProposedValue(f['$']['duration']);if(g||h||i)d=!![];}return d;}['writeSegments'](c,d,e,f){const g=d['getLatestStableEntryFor'](c)?.[a0(0x92,0x9f)]();const h=g!==TombStone?g??[]:[];const i=new Set(h);const j=(f??[])[a0(0x44,0x8c)](n=>n[a0(0xca,0xf3)]?n:this['processSegmentValue'](n));const k=new Set(j);const l=this['project'];const m=l[a0(0x73,0xab)];function a0(a,b){return U(b- -0xb4,a);}for(const n of h){if(!k['has'](n)){l['segmentsToCleanup']['add'](n);n[a0(0xf8,0xd2)]=null;}}fillNextPrevious(j);c[a0(0xf1,0xf6)][a0(0xdf,0xad)][a0(0x76,0x69)][a0(0x60,0x97)](this,c,d,e,j[a0(0x6a,0x6d)]>0x0?j:null);d[a0(0x46,0x69)](this['$'][a0(0xaf,0xc1)],Boolean(f?.[a0(0x3c,0x6d)]));for(const o of j){if(!i[a0(0x56,0x83)](o)&&o['graph']!==m){o[a0(0xc1,0xc8)](l);o['event']=this;m[a0(0x9d,0xcf)](o);}}}*[U(0x133,0x115)](c,d){d=d||[];if(c[a1(-0xa5,-0xa0)]<=0x1){const e=c[a1(-0xa5,-0xb8)]?yield*this[a1(-0x2e,-0x6d)](c[0x0][a1(-0x48,-0x48)]-c[0x0]['startOffset'],TimeUnit[a1(-0x42,-0xf)],yield this['$']['durationUnit']):0x0;d['push']({'identifier':this['$'][a1(-0x6b,-0x23)],'proposedArgs':[e,null]});c=null;}d[a1(-0x58,-0x79)]({'identifier':this['$'][a1(-0x8b,-0xd4)],'proposedArgs':[c]});function a1(a,b){return U(a- -0x1c6,b);}yield WriteSeveral(d);}*[U(0x154,0x137)](){const c=yield this['$']['dispatcher'];const {graph:d,project:e}=this;const f=e[a2(-0x22b,-0x200)];const g=yield e['$']['autoMergeAdjacentSegments']||this[a2(-0x1f2,-0x218)];const h=yield PreviousValueOf(this['$']['segments']);let i=yield ProposedOrPrevious;const j=[];function a2(a,b){return U(a- -0x384,b);}let k=![];if(i){const l=new Set();let m=null;let n=![];let o=0x0;const {baseRevision:p}=d['$activeTransaction'];for(const q of i){const r=yield q['$']['startOffset'];const s=yield q['$'][a2(-0x206,-0x244)];const t=yield q['$'][a2(-0x229,-0x1f1)];const u=p[a2(-0x235,-0x262)](q['$'][a2(-0x255,-0x29c)])&&(yield ProposedArgumentsOf(q['$']['startDate']));const v=p[a2(-0x235,-0x24b)](q['$'][a2(-0x266,-0x273)])&&(yield ProposedArgumentsOf(q['$'][a2(-0x266,-0x273)]));n=n||u?.[0x0]||v?.[0x0];if(r===s){j[a2(-0x216,-0x1f3)](q);}else if(g&&m&&r+o<=m[a2(-0x206,-0x1de)]){const w=m['endOffset'];j['push'](q);if(m['graph']){j['push'](m);const x=m[a2(-0x23f,-0x22f)];const y=n?s+w-r:Math[a2(-0x220,-0x1df)](s,w);const z=m[a2(-0x236,-0x24d)];m=f[a2(-0x20d,-0x1f0)]({'event':this,'cls':z,'startOffset':x,'endOffset':y});}else{m[a2(-0x206,-0x1ed)]=n?s+m[a2(-0x206,-0x1d3)]-r:Math['max'](s,m['endOffset']);}}else if(!g&&m&&(o||r<m[a2(-0x206,-0x1cf)])){l[a2(-0x22a,-0x21b)](m);j[a2(-0x216,-0x238)](q);if(r+o<m[a2(-0x206,-0x1c8)]){o+=m['endOffset']-r-o;}m=f['new']({'id':q['id'],'event':this,'cls':m[a2(-0x236,-0x205)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l['add'](m);}m=q;}}if(m){l['add'](m);}if(l[a2(-0x22d,-0x23c)]===0x1){j[a2(-0x216,-0x1f6)](...l);}k=j['length']>0x0;if(k){i=Array[a2(-0x1f0,-0x1de)](l);}fillNextPrevious(i);}else if(h){j[a2(-0x216,-0x236)](...h);}if(j[a2(-0x263,-0x282)]){for(const A of j){A['event']=null;e[a2(-0x210,-0x217)]['add'](A);}}if(k){yield*this[a2(-0x251,-0x26c)](i);}i=i?.[a2(-0x263,-0x283)]>0x1?i:null;return i;}*['calculateAdjustedSegments'](){const c=yield this['$'][a3(0x55a,0x534)];let d=yield this['$'][a3(0x508,0x4da)];const e=yield this['$'][a3(0x4c3,0x4ce)];const f=yield this['$'][a3(0x476,0x4bd)];const g=yield this['$'][a3(0x4ce,0x4fa)];let h=yield ProposedOrPrevious;if(d){const j=this['project'];const k=this[a3(0x4d5,0x50b)];const l=[];const m=[];let n=-0x1;for(let q=d[a3(0x4e5,0x4c0)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(0x507,0x4ce)];const t=yield r['$'][a3(0x4ec,0x4bd)];if(s>f){l[a3(0x4c5,0x50d)](r);n=q;}else{if(t[a3(0x4fd,0x4d3)]()!==f[a3(0x498,0x4d3)]()){const u=r[a3(0x565,0x51d)]+(f[a3(0x4dc,0x4d3)]()-t[a3(0x4d6,0x4d3)]())-r[a3(0x4f7,0x4e4)];const v=yield*this[a3(0x557,0x537)](u,TimeUnit['Millisecond'],yield r['$'][a3(0x4cb,0x4e6)]);m['push']({'identifier':r['$'][a3(0x4b4,0x4fa)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(0x474,0x4bd)],'proposedArgs':[f,![]]},{'identifier':r['$'][a3(0x50c,0x51d)],'proposedArgs':[r['endOffset']+(f[a3(0x4a2,0x4d3)]()-t[a3(0x48e,0x4d3)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d[a3(0x532,0x541)](n);if(d['length']){d[d[a3(0x4aa,0x4c0)]-0x1][a3(0x50f,0x51a)]=null;}for(const w of l){j[a3(0x53c,0x513)][a3(0x51e,0x4f9)](w);}}let p='';if(d){p=this[a3(0x511,0x540)](d);}if(p!==this[a3(0x502,0x515)]){o=!![];d=d?d[a3(0x50f,0x4f7)]():d;this[a3(0x502,0x515)]=p;}if(o){yield*this[a3(0x4cf,0x4d2)](d,m);}}function a3(a,b){return U(b-0x39f,a);}return h;}[U(0x1a1,0x1bd)](c){c=c||this[a4(0x1b6,0x190)];function a4(a,b){return U(a-0x7b,b);}return c?.[a4(0x1bb,0x1cd)](d=>''+d[a4(0x1c0,0x187)]+'-'+d[a4(0x1aa,0x17d)]?.[a4(0x1af,0x1f4)]()+'-'+d[a4(0x1f9,0x219)]+'-'+d[a4(0x199,0x190)]?.[a4(0x1af,0x19f)]())[a4(0x1dd,0x1c0)](';');}static['processData'](c,d,e,f,g){function a5(a,b){return U(b-0x13c,a);}if(e){f[a5(0x26e,0x26d)]=e[a5(0x288,0x2ab)];}return super[a5(0x2ec,0x2a6)](c,d,e,f,g);}[U(0x1a3,0x1bf)](c){const d=this[a6(0x492,0x4cd)]?.['segmentModelClass']||this[a6(0x454,0x497)]?.[a6(0x47c,0x4a8)];if(!d)return c;function a6(a,b){return U(a-0x323,b);}const e=c[a6(0x4ca,0x4b6)]?c:d[a6(0x49a,0x465)](c);if(!e[a6(0x4a9,0x46c)])e['event']=this;return e;}['processSegmentsValue'](c){if(c===void 0x0)return void 0x0;function a7(a,b){return U(a-0x284,b);}if(c==null)return null;return c['map'](d=>this[a7(0x427,0x3eb)](d));}*[U(0x1a4,0x171)](){const c=yield this['$'][a8(0x15b,0x124)];function a8(a,b){return U(a- -0x3a,b);}const d=c[a8(0xe5,0xe8)][a8(0x118,0x147)](StartDateVar);let e;if(d===startDateByEndDateAndSegmentsFormula[a8(0x14d,0x142)]){e=yield*this[a8(0x10a,0xce)]();}else{e=yield*super[a8(0x16a,0x15a)]();}return e;}*[U(0x144,0x14f)](){function a9(a,b){return U(b- -0x61,a);}const c=yield this['$'][a9(0x135,0x134)];const d=yield this['$']['segments'];const e=yield this['$'][a9(0x74,0xbd)];let f;if(d){const g=d[d[a9(0xc5,0xc0)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this[a9(0x149,0x12d)](e,![],h,TimeUnit[a9(0x12f,0x123)],{'ignoreSegments':!![]});const j=yield*this['isManuallyScheduled']();f=j&&!this['getProject']()[a9(0x121,0xec)]?i:yield*this[a9(0x88,0xc7)](i,!![]);}return f;}*['calculateEndDateBySegments'](){const c=yield this['$'][aa(-0xb5,-0xe4)];const d=yield this['$']['segments'];const e=yield this['$'][aa(-0x11b,-0x11c)];let f;if(d){const g=d[d['length']-0x1];const h=yield g['$'][aa(-0xcc,-0xa4)];const i=yield*this['calculateProjectedXDateWithDuration'](e,!![],h,TimeUnit[aa(-0xc6,-0xf9)],{'ignoreSegments':!![]});const j=yield*this[aa(-0x11e,-0x118)]();f=j&&!this[aa(-0x11d,-0x15a)]()[aa(-0xfd,-0x128)]?i:yield*this[aa(-0x122,-0xe9)](i,![]);}function aa(a,b){return U(a- -0x24a,b);}return f;}*['calculateEndDate'](){const c=yield this['$'][ab(-0x56,-0x68)];const d=c[ab(-0xcc,-0xa3)][ab(-0x99,-0x6d)](EndDateVar);function ab(a,b){return U(a- -0x1eb,b);}let e;if(d===endDateByStartDateAndSegmentsFormula[ab(-0x64,-0x5f)]){e=yield*this[ab(-0x83,-0xa7)]();}else{e=yield*super[ab(-0x95,-0xac)]();}return e;}*[U(0x1a9,0x1c8)](){function ac(a,b){return U(b- -0x159,a);}let c;if(yield*this[ac(0x7,-0x39)]()){c=yield*this['calculateDurationBySegments']();}else{c=yield*super['calculateDurationProposed']();}return c;}*[U(0x128,0x10c)](c,d=!![],e){if(!c)return null;e=Object['assign']({'ignoreSegments':!![]},e);function ad(a,b){return U(a- -0x1c3,b);}return yield*super[ad(-0x9b,-0xdc)](c,d,e);}*['calculateDurationBySegments'](){function ae(a,b){return U(a-0x20c,b);}let c;const d=yield this['$'][ae(0x3a1,0x35c)];const e=yield this['$'][ae(0x353,0x31f)];const f=yield this['$']['segments'];if(f){let g=0x0;for(const h of f){g+=h['endOffset']-h['startOffset'];}c=yield*this[ae(0x3a4,0x399)](g,TimeUnit[ae(0x390,0x37f)],e);}return c;}*[U(0x136,0xf7)](c,d){const e=yield this['$'][af(-0x1b6,-0x187)];let f=c[af(-0x202,-0x1f0)];if(!e||f){return yield*super[af(-0x1f5,-0x1b2)](c,d);}const g=this[af(-0x1fe,-0x22a)]();const h=yield this['$'][af(-0x1b3,-0x1e2)];function af(a,b){return U(a- -0x32b,b);}const i=yield this['$']['assignmentsByCalendar'];const j=yield this['$'][af(-0x1c5,-0x1c1)];const k=c[af(-0x18b,-0x167)]!==![];const l=(yield this['$']['ignoreResourceCalendar'])||(yield*this['hasElapsedDuration']())||c[af(-0x1e9,-0x208)]||!i[af(-0x1d4,-0x192)];const m=g[af(-0x1c6,-0x1bb)];let n=0x1;let o,p,q,r,s;if(!f){r=yield this['$']['segments'];f=f||!r||k===![]&&r[0x0][af(-0x1fc,-0x1c4)]>=c[af(-0x20d,-0x1e4)]||k===!![]&&r[r[af(-0x20a,-0x22c)]-0x1]['endDate']<c[af(-0x1fc,-0x1c8)];if(!f){r=r[af(-0x1d3,-0x18c)]();if(k){o=r[af(-0x18c,-0x183)]();p=0x0;n=0x1;s=o[af(-0x1b0,-0x193)]?o[af(-0x1ad,-0x172)]:MAX_DATE[af(-0x1f7,-0x1fe)]();}else{o=r[af(-0x200,-0x1f4)]();p=o[af(-0x1ad,-0x1cd)];n=-0x1;s=o['endOffset'];}q=s-o[af(-0x1e6,-0x1d0)];}}const t=yield*this['isManuallyScheduled']();const u=g[af(-0x212,-0x24c)];const v=this[af(-0x1b2,-0x1ac)];return j[af(-0x1f5,-0x202)](Object['assign']({'maxRange':m},c),(w,x,y)=>{const z=y['getCalendarsWorkStatus']();function ag(a,b){return af(b-0x309,a);}const A=y[ag(0xe6,0x126)]();if(z[ag(0x152,0x130)](h)&&(l||A[ag(0x15f,0x15b)](B=>i[ag(0x134,0x115)](B))||t&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'])){if(f){return d(w,x,y);}else{const B=w['getTime']();let C=x['getTime']()-w[ag(0x13b,0x112)]();if(u){const F=w[ag(0x11b,0x147)]()-x[ag(0x146,0x147)]();C+=F*0x3c*0x3e8;}let D,E;if(k){D=p;E=p+C;}else{D=p-C;E=p;}while(o&&D<=s&&E>o[ag(0x146,0x123)]){const G=Math['max'](D,o[ag(0x169,0x123)]);const H=Math[ag(0x115,0x105)](E,s);const I=new Date(B+G-D);const J=new Date(B+H-D);const K=d(I,J,y);if(K===![])return![];q-=J['getTime']()-I[ag(0x12d,0x112)]();if(q<v){o=k?r[ag(0x17c,0x17d)]():r[ag(0x118,0x109)]();if(o){s=!k||o[ag(0x12c,0x159)]?o[ag(0x147,0x15c)]:MAX_DATE[ag(0x10b,0x112)]();q=s-o['startOffset'];}}else{break;}}p+=n*C;}}});}*[U(0x125,0x111)](){function ah(a,b){return U(b- -0x120,a);}const c=yield this['$']['isSegmented'];return c||(yield*super[ah(0x13,0x5)]());}[U(0x16b,0x184)](c,d){function ai(a,b){return U(a- -0x13,b);}d=d||this['getSegments']();if(d){const e=this[ai(0x13e,0x17b)](c,d);return d[e];}}['getSegmentIndexByDate'](c,d){d=d||this[aj(0x458,0x47b)]();function aj(a,b){return U(a-0x31c,b);}return d?d[aj(0x4b7,0x4cb)](e=>c>=e[aj(0x44b,0x48c)]&&c<e[aj(0x43a,0x425)]):-0x1;}get[U(0x18a,0x158)](){function ak(a,b){return U(b-0x11,a);}const c=this[ak(0x14e,0x14d)]();return c?c[0x0]:null;}get[U(0x124,0x101)](){function al(a,b){return U(b- -0x50,a);}const c=this[al(0xe2,0xec)]();return c?c[c[al(0x8a,0xd1)]-0x1]:null;}[U(0x19a,0x163)](c){function am(a,b){return U(a-0x2a8,b);}const d=this[am(0x3e4,0x3d9)]();return d?.[c];}async[U(0x126,0xf2)](c,d=0x1,e){const f=this[an(0x1eb,0x1de)]();const g=f[an(0x1f5,0x20a)];await f['commitAsync']();const h=this;if(!c||h[an(0x1c2,0x1ee)]&&h[an(0x205,0x1df)]?.[an(0x24e,0x208)])return;const j=h[an(0x233,0x20c)];const k=h['durationUnit'];const m=h[an(0x1e5,0x1e0)];const n=h[an(0x1cb,0x1cf)];e=e?_enc[an(0x1fa,0x241)](e):k;if(!m||!n||m>=c||c>=n||!j)return;const o=h[an(0x268,0x226)];let p=h['segments']||[];let q,r;if(o){r=h[an(0x20c,0x202)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s['startDate']:m;const u=s[an(0x23c,0x20c)];function an(a,b){return U(b-0xb1,a);}const v=s[an(0x20f,0x1f8)];const w=s['name'];const x=h['run'](an(0x23e,0x1fb),t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h[an(0x27e,0x248)]('convertDurationGen',d,e,TimeUnit[an(0x1f4,0x235)]);const A=z+h[an(0x238,0x248)](an(0x23f,0x1fb),m,c,TimeUnit[an(0x251,0x235)],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[an(0x22f,0x228)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[an(0x215,0x209)](0x0);p[an(0x22f,0x253)](r+0x1,0x0,B);h[an(0x1e8,0x1ec)]=p;h['duration']=j;for(let C=r+0x2,D=p[an(0x1e1,0x1d2)];C<D;C++){const E=p[C];if(E){E[an(0x1b2,0x1f6)]+=z;E[an(0x1f7,0x22f)]+=z;}}}else{const F=g[an(0x223,0x228)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[an(0x251,0x228)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h[an(0x252,0x20c)]=j;h[an(0x235,0x1ec)]=[F,G];}return f['commitAsync']();}async[U(0x13e,0x115)](c,d){if(!this[ao(0x3aa,0x385)])return;function ao(a,b){return U(a-0x235,b);}this[ao(0x3c7,0x3bd)]=!![];c=c||this[ao(0x3bf,0x39b)];d=d||this[ao(0x359,0x34a)];if(c['startOffset']>d[ao(0x37a,0x34d)]){let f=d;d=c;c=f;}c[ao(0x353,0x311)]=d[ao(0x364,0x331)];const e=await this[ao(0x362,0x33e)]()[ao(0x3bd,0x405)]();this[ao(0x3c7,0x391)]=![];return e;}[U(0x139,0x169)](c,d){if(c==='segments'&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f[ap(0x349,0x346)]();if(!this[ap(0x3a6,0x363)][f['internalId']]||f[ap(0x349,0x383)]>this[ap(0x33b,0x363)][f['internalId']]){Object['assign'](g,f[ap(0x343,0x377)][ap(0x333,0x33f)]);}e[ap(0x36c,0x364)](g);this['_segmentGeneration'][f[ap(0x324,0x320)]]=f[ap(0x3b5,0x383)];}else{e[ap(0x338,0x364)](f);}}d=e;}function ap(a,b){return U(b-0x1f6,a);}super[ap(0x30b,0x32f)](c,d);}[U(0x155,0x19c)](){const c=this[aq(0x3b1,0x3ca)];if(c){this[aq(0x3e2,0x3e5)]?.[aq(0x401,0x414)](c);}function aq(a,b){return U(a-0x276,b);}super[aq(0x3cb,0x3b7)]();}[U(0x196,0x180)](...c){this[ar(0x3ba,0x3da)][ar(0x3a8,0x3e5)][ar(0x3f1,0x3ed)]++;function ar(a,b){return U(b-0x2aa,a);}super['endBatch'](...c);this[ar(0x3f7,0x3da)]['segments'][ar(0x3b7,0x3ed)]--;}[U(0x163,0x182)](c=null,d=null){function as(a,b){return U(b-0x3c2,a);}const e=super['copy'](c,d);e[as(0x553,0x55b)]['segments']=void 0x0;if(e[as(0x525,0x4fd)]){e[as(0x4be,0x4fd)]=e['segments'][as(0x4e4,0x502)](f=>Object[as(0x547,0x553)](f[as(0x544,0x525)](),{'event':e}));}return e;}[U(0x150,0x132)](){const c=super[at(-0xda,-0xd2)](),d=this[at(-0xc1,-0xb2)](at(-0x115,-0xe7)),{persist:e,dataSource:f,complexMapping:g}=d;function at(a,b){return U(b- -0x222,a);}if(e){let h=_end[at(-0x5f,-0x86)](c,f);if(h){h=h[at(-0xf8,-0xe2)](i=>i[at(-0xb1,-0xd2)]());_end[at(-0xed,-0xea)](c,f,h);}}return c;}[U(0x185,0x190)](){function au(a,b){return U(b- -0xff,a);}const {segments:c}=this;c?.[au(0xba,0xa7)](d=>d[au(0x95,0x86)]());super[au(0xa9,0x86)]();}}b['$name']=U(0x132,0x13a);__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(0x161,0x125)],U(0x195,0x176),void 0x0);__decorate([model_field({'type':U(0x11c,0x15a),'isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b[U(0x161,0x1a4)],'segments',void 0x0);__decorate([field()],b[U(0x161,0x157)],U(0x18c,0x192),void 0x0);__decorate([field()],b[U(0x161,0x18e)],U(0x175,0x152),void 0x0);__decorate([write(U(0x13b,0x166))],b['prototype'],U(0x14c,0x153),null);__decorate([calculate(U(0x13b,0x10d))],b[U(0x161,0x166)],U(0x154,0x187),null);function U(a,b){return _enN(b,a-0x1ee);}__decorate([calculate('adjustedSegments')],b[U(0x161,0x155)],'calculateAdjustedSegments',null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentsConverter,startDateByEndDateAndSegmentsFormula};
|