@bryntum/engine-thin-trial 7.2.4 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(a,b){function W(a,b){return _enb(b- -0x382,a);}const c=a();while(!![]){try{const d=-parseInt(W(-0x20b,-0x1df))/0x1+-parseInt(W(-0x1e0,-0x192))/0x2+-parseInt(W(-0x160,-0x17d))/0x3*(-parseInt(W(-0x1be,-0x1e9))/0x4)+-parseInt(W(-0x1f7,-0x1d9))/0x5+parseInt(W(-0x1cc,-0x207))/0x6*(-parseInt(W(-0x1ae,-0x1c3))/0x7)+parseInt(W(-0x21a,-0x1e2))/0x8*(parseInt(W(-0x1a3,-0x1d3))/0x9)+-parseInt(W(-0x233,-0x1fc))/0xa*(-parseInt(W(-0x1ff,-0x1ce))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa4397));var __decorate=function(a,b,e,f){function X(a,b){return _enb(b- -0x31c,a);}var g=arguments['length'],h=g<0x3?b:f===null?f=Object[X(-0x13a,-0x164)](b,e):f,j;if(typeof Reflect===X(-0x16c,-0x12d)&&typeof Reflect[X(-0x105,-0x107)]===X(-0x13a,-0x15b))h=Reflect[X(-0xbd,-0x107)](a,b,e,f);else for(var k=a[X(-0x178,-0x134)]-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,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enY(a,b){return _enb(b-0xac,a);}function _ena(){const b7=['move','isChangingOnlyEffort','effortDriven','MAX_VALUE','isManuallyScheduled','push','hasInputOnEndDate','calculateProposedAssignmentDuration','hasInputOnDuration','units','assignmentsByCalendar','type','effectiveCalendar','expandTrailingAssigmentsByDates','isPhantomTimePhased','minAssignment','8KbbWHw','collectAssignmentsByCalendar','calculateTimePhasedDispatcher','timePhasedDispatcher','Millisecond','Forward','has','4112GGvGOM','progressing','hasOnlyRegularAssignments','961534Jiezvd','isDurationDefinedByEffort','calculateProposedEndOffsetRaw','graph','proposedEndDate','proposedEndOffsets','3540880BLwrFt','getBaseOptionsForDurationCalculations','duration','maxCalendarRange','direction','calculateDuration','18846Irsjkm','calculateAssignmentsTypeSelector','FixedUnits','call','minAssignmentProposedStartDate','11epJtep','calculateStartDate','assignmentsTypeSelector','assignment','getOwnPropertyDescriptor','isChangingOnlyEndDate','addProposedValueFlag','hasUnitsOnAllAssignments','resource','input','start','7168uFxhRi','regularAssignmentsByCalendar','function','calculateProposedStartDateMin','calculateRegularAssignmentsByCalendar','calculateProjectedEffort','ignoreResourceCalendar','delete','maxAssignmentProposedEndDate','hasInputOnAssignments','timePhasedIntervalsCache','assigned','expandTrailingAssignmentsByDuration','positioning','shouldSkipNonWorkingTime','isChangingOnlyDuration','timePhasedData','hasPhantomTimePhasedAssignments','forEach','effectiveDirection','skipNonWorkingTimeInDurationWhenSchedulingManually','isConstrainedAlongDirection','calculateAssignmentsByCalendar','proposedStartOffsets','project','collectInfo','getCalendarsWorkStatus','hasTimePhasedInput','proposedTotalUnits','getCalendarsWorking','hasProposedAssignments','effort','getProject','proposedEndOffset','write','calculateProposedStartOffsets','hasPreviousEffortValue','proposedEndDateMax','get','effortUnit','isSegmented','length','sort','calculateMaxAssignmentProposedEndDate','calculateProjectedXDate','calculateEndDate','proposedStartDate','getBaseOptionsForEffortCalculations','object','1468544JaUnIX','unscheduled','HasProposedValue','selector','hasOnlyTimePhasedAssignments','useEventAvailabilityIterator','ignoreTimePhasedData','event','calculateAssignmentUnits','calculateMinAssignmentProposedStartDate','some','proposedAssignmentDuration','endDate','proposedStartDateMin','proposedMirror','max','prototype','prepare','isTimePhased','calculateProposedStartOffsetRaw','startDate','1523391ZMpngB','resolution','effectiveSchedulingMode','set','calculateEffortPure','forEachAvailabilityInterval','hasSomeInput','time','calculateTimePhasedIntervalsCache','assign','dispatcher','calculateProjectedXDateWithDuration','ion','isForward','calculateProposedEndOffsets','getTime','decorate','add','calculateProposedStartDate','Normal','calculateProjectedDuration','isChangingOnlyEffortOnAssignment','calculateEffort','new','proposedEndDateArgs','childEvents','calculateProposedEndDate','size','1014SvKqji','minOffset','hasInputOnEffort','expandTrailingAssigmentsByEffort','formulaId','isUserTimePhased','$convertDuration','FixedEffort','end','calculateProjectedXDateByEffort','calculateSelector','11577910vBBTaD','getDateShifter','proposedStartOffset'];_ena=function(){return b7;};return _ena();}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';const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};class TimePhasedIntervals{constructor(){this['timePhasedData']=[];}[_enY(0x24f,0x23a)](a){function Z(a,b){return _enY(a,b-0x1e);}this[Z(0x2a9,0x299)][Z(0x234,0x258)]({'time':a[Z(0x2b4,0x2ce)],'type':Z(0x283,0x288),'assignment':a['assignment']},{'time':a['endDate'],'type':Z(0x289,0x24d),'assignment':a['assignment']});}[_enY(0x2db,0x2ad)](){function a0(a,b){return _enY(a,b-0x2e8);}this[a0(0x569,0x563)][a0(0x5ae,0x57d)]((a,b)=>{function a1(a,b){return a0(a,b- -0x396);}return a[a1(0x21d,0x20a)]-b['time'];});}[_enY(0x283,0x235)](a,b,c,d,e,f){const g=this['timePhasedData'][b];if(a&&b===this[a2(0x520,0x554)][a2(0x5a2,0x56d)]-0x1){if(g[a2(0x591,0x591)]<=c){e[a2(0x587,0x54b)](g['assignment']);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a2(0x597,0x591)]){e['delete'](g[a2(0x53c,0x53c)]);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[a2(0x594,0x554)][a2(0x52d,0x56d)];k+=h){const n=this['timePhasedData'][k];const o=a?n[a2(0x564,0x591)]>=d:n[a2(0x595,0x591)]<=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(0x57c,0x591)]<c:n[a2(0x550,0x591)]>c;if(!p){if(j['getTime']()!==n[a2(0x57f,0x591)][a2(0x54d,0x599)]()){if(a){if(f(j,n[a2(0x57a,0x591)],e)===![])return-0x1;}else{if(f(n[a2(0x54e,0x591)],j,e)===![])return-0x1;}}const q=a?n[a2(0x56b,0x519)]===a2(0x562,0x543):n[a2(0x53f,0x519)]===a2(0x51e,0x508);if(q)e['add'](n[a2(0x509,0x53c)]);else e[a2(0x57d,0x54b)](n['assignment']);}l=k;j=n['time'];}if(l===void 0x0){return k;}const m=this[a2(0x5a1,0x554)][l];if(a){e[a2(0x526,0x54b)](m['assignment']);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a2(0x4fe,0x54b)](m['assignment']);if(f(d,j,e)===![])return-0x1;}function a2(a,b){return _enY(a,b-0x2d9);}return l;}}class TimePhasedEventSelector{constructor(){this[a3(0xb2,0xed)]=null;function a3(a,b){return _enY(a,b- -0x1b6);}this[a3(0x133,0x105)]=null;this[a3(0x98,0x73)]=![];this[a3(0x55,0x87)]=![];this[a3(0xa1,0x85)]=![];this['proposedEndDateArgs']=null;this[a3(0xd8,0xbe)]=![];this[a3(0xd7,0xd9)]=![];}get[_enY(0x22f,0x236)](){function a4(a,b){return _enY(a,b- -0x166);}const a=this[a4(0x129,0x155)];return this['hasInputOnEffort']&&!Boolean(a[a4(0xbc,0x103)][a4(0x10e,0x12b)](StartVar)&VariableInputState[a4(0x151,0x138)])&&!Boolean(a[a4(0x13f,0x103)]['get'](EndVar)&VariableInputState[a4(0x170,0x138)])&&!Boolean(a[a4(0xe0,0x103)]['get'](DurationVar)&VariableInputState[a4(0x101,0x138)])&&!a[a4(0x149,0x120)];}get[_enY(0x287,0x27a)](){function a5(a,b){return _enY(a,b- -0x340);}const a=this[a5(-0x33,-0x85)];return this[a5(-0xb1,-0x103)]&&!Boolean(a['input']['get'](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a5(-0xb6,-0xd7)]['get'](EndVar)&VariableInputState[a5(-0x67,-0xa2)])&&!Boolean(a['input'][a5(-0x77,-0xaf)](EffortVar)&VariableInputState[a5(-0xcf,-0xa2)])&&!a[a5(-0x7b,-0xba)];}get['isChangingOnlyEndDate'](){const a=this[a6(-0x10d,-0xcd)];const b=this[a6(-0xcc,-0xbf)];function a6(a,b){return _enY(a,b- -0x388);}return this[a6(-0x133,-0x14d)]&&(!b||!b[0x0])&&!Boolean(a[a6(-0xdb,-0x11f)]['get'](StartVar)&VariableInputState[a6(-0xd1,-0xea)])&&!Boolean(a[a6(-0x10b,-0x11f)][a6(-0xfe,-0xf7)](DurationVar)&VariableInputState[a6(-0x106,-0xea)])&&!Boolean(a['input'][a6(-0x124,-0xf7)](EffortVar)&VariableInputState[a6(-0xa6,-0xea)])&&!a['hasTimePhasedInput'];}*[_enY(0x2d4,0x284)](){const a=this['event'];this[a7(0x154,0x12b)]=yield HasProposedNotPreviousValue(a['$'][a7(0x1b5,0x17c)]);function a7(a,b){return _enY(b,a- -0xd5);}this['hasInputOnDuration']=yield HasProposedNotPreviousValue(a['$']['duration']);this[a7(0x166,0x1a1)]=yield HasProposedNotPreviousValue(a['$'][a7(0x1d3,0x196)]);this['dispatcher']=yield a['$']['timePhasedDispatcher'];this[a7(0x1f4,0x1f8)]=yield ProposedArgumentsOf(a['$'][a7(0x1d3,0x209)]);this[a7(0x19f,0x1dd)]=yield*a[a7(0x1b4,0x1f8)]();this[a7(0x1ba,0x1d4)]=yield HasPreviousValue(a['$']['effort']);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a8(0x43b,0x422)]=null;this[a8(0x40e,0x420)]=null;this[a8(0x3e6,0x422)]=null;function a8(a,b){return _enY(b,a-0x198);}this['hasOnlyTimePhasedAssignments']=null;this[a8(0x3ff,0x409)]=null;this[a8(0x414,0x3fc)]=null;}*[_enY(0x270,0x284)](){function a9(a,b){return _enY(a,b- -0x315);}const a=this['event'];const b=this[a9(-0xd6,-0x9f)]=yield a['$'][a9(-0xb0,-0x9f)];if(b[a9(-0x64,-0x49)]===0x0){this[a9(-0x81,-0xc7)]=!![];this[a9(-0xc1,-0x75)]=![];this['hasPhantomTimePhasedAssignments']=![];this[a9(-0xc7,-0xae)]=![];}else{let c=0x0;for(const d of b){const e=yield d['$']['selector'];if(this[a9(-0xb2,-0xc7)]===null&&e[a9(-0xb1,-0x67)]){this[a9(-0xf3,-0xc7)]=![];c++;}if(this[a9(-0x94,-0x75)]===null&&!e[a9(-0x15,-0x67)]){this['hasOnlyTimePhasedAssignments']=![];c++;}if(this[a9(-0x5d,-0x99)]===null&&e[a9(-0x99,-0xd2)]){this[a9(-0x99,-0x99)]=!![];c++;}if(this['hasUnitsOnAllAssignments']===null&&!e['hasPreviousValueForUnits']){this[a9(-0x5b,-0xae)]=![];c++;}if(c===0x4)break;}if(this['hasOnlyRegularAssignments']===null)this[a9(-0x7a,-0xc7)]=!![];if(this[a9(-0x6a,-0x75)]===null)this[a9(-0x3f,-0x75)]=!![];if(this[a9(-0xaf,-0x99)]===null)this[a9(-0xd0,-0x99)]=![];if(this['hasUnitsOnAllAssignments']===null)this[a9(-0x88,-0xae)]=!![];}}}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x17b;let f=c[d];return f;};return _enb(a,b);}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{const b=a['prototype'];class c extends a{*['calculateProposedTotalUnits'](){const d=yield this['$'][aa(0x163,0x11f)];function aa(a,b){return _enb(a- -0x67,b);}let e=0x0;for(const f of d){const g=yield f['$'][aa(0x155,0x196)];if(!g)continue;const h=(yield ProposedOrPreviousValueOf(f['$'][aa(0x12b,0x17c)]))??0x64;e+=h;}return e;}*[ab(0xd0,0xf7)](){return yield ProposedOrPreviousValueOf(this['$']['startDate']);}*[ab(0x10b,0xff)](){return yield ProposedOrPreviousValueOf(this['$']['endDate']);}*[ab(0x5b,0xa2)](){const d=yield this['$']['proposedStartDate'];function ac(a,b){return ab(a,b-0x45b);}const e=yield this['$'][ac(0x4c4,0x4ee)];return d<e?d:e??d;}*['calculateProposedEndDateMax'](){const d=yield this['$'][ad(-0x8,-0x1f)];const e=yield this['$'][ad(0x18,0x4f)];function ad(a,b){return ab(b,a- -0x8f);}return d>e?d:e??d;}*[ab(0x77,0xc2)](){function ae(a,b){return ab(b,a-0x331);}const d=yield this['$']['assigned'];const e=new Map();let f;let g=Number[ae(0x39d,0x380)];for(const h of d){if(yield*h[ae(0x413,0x455)]()){const i=yield*h[ae(0x414,0x3d9)]();e['set'](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[ab(0x100,0xf3)](){const d=yield this['$'][af(0x58c,0x576)];const e=new Map();function af(a,b){return ab(b,a-0x4e2);}let f;let g=Number['MAX_VALUE'];for(const h of d){if(yield*h[af(0x5c4,0x5e4)]()){const i=yield*h[af(0x567,0x525)]();e[af(0x5ca,0x5cb)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[ab(0x7a,0x90)](){const d=new TimePhasedEventAssignmentTypeSelector();d[ag(-0x1b1,-0x174)]=this;yield*d['collectInfo']();function ag(a,b){return ab(a,b- -0x24b);}return d;}*[ab(0x17,0x65)](){const d=new TimePhasedEventSelector();d[ah(-0x12b,-0xf7)]=this;function ah(a,b){return ab(a,b- -0x1ce);}yield*d[ah(-0xe7,-0x116)]();return d;}*[ab(0x5a,0x7b)](d){const e=TimePhasedEventAssignmentDispatcher[ai(0x8a,0xa7)]({'context':TimePhasedEventAssignmentCycleResolutionContext});e['collectInfo'](d,this['$'][ai(0xcc,0x8f)],StartVar);e['collectInfo'](d,this['$']['endDate'],EndVar);e['collectInfo'](d,this['$'][ai(0x23,0x36)],DurationVar);e[ai(0x6e,0x63)](d,this['$']['effort'],EffortVar);const f=yield this['$'][ai(0x9b,0x55)];const g=[];function ai(a,b){return ab(a,b- -0x55);}const h=[];const i=[];const j=[];for(const k of f){g[ai(0x52,0x19)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x8d,0x8f)])]);h[ai(0x64,0x19)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x8f,0x87)])]);i['push']([null,yield HasProposedNotPreviousValue(k['$'][ai(0x36,0x36)])]);j[ai(-0x2,0x19)]([null,yield HasProposedNotPreviousValue(k['$'][ai(0x1e,0x69)])]);}if(g[ai(0x66,0x85)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedStartDate);}if(h[ai(0x75,0x85)](([l,m])=>m)){e['addProposedValueFlag'](TimePhasedEndDate);}if(i['some'](([l,m])=>m)){e[ai(0x58,0x45)](TimePhasedDuration);}if(j[ai(0xcd,0x85)](([l,m])=>m)){e[ai(-0xd,0x45)](TimePhasedEffort);e[ai(0x82,0x45)](EffortVar);}return e;}*[ab(0x110,0xed)](){const d=new Map();function aj(a,b){return ab(a,b-0x49b);}const e=new Map();const f=yield this['$'][aj(0x54b,0x545)];for(const g of f){if(yield*g[aj(0x543,0x57d)]()){e[aj(0x531,0x583)](g,{'proposedStartOffset':yield g['$'][aj(0x547,0x503)],'proposedEndOffset':yield g['$']['proposedEndOffset']});}}return function*(h,i){function ak(a,b){return aj(b,a- -0x523);}const j=String(i['getTime']())+'/'+(h?'1':'0');let k=d[ak(0x3d,0xb)](j);if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[ak(0x68,0x4e)](i,!![],m[ak(-0x20,-0x5b)],TimeUnit[ak(-0xb,-0x2a)]);n=yield*l['skipNonWorkingTime'](n,!![]);o=yield*l[ak(0x43,0x56)](n,!![]);}else{const p=yield l['$']['selector'];o=yield*l[ak(0x68,0x8c)](i,![],p[ak(-0x28,-0xc)]?m[ak(0x38,0x89)]:yield l['$']['phantomEndOffset'],TimeUnit[ak(-0xb,0xe)]);n=yield*l[ak(0x43,0x8b)](o,![]);}if(n&&o)k[ak(-0x1a,-0x3a)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k['prepare']();d[ak(0x60,0x61)](j,k);return k;};}*[ab(0xcf,0x95)](){function al(a,b){return ab(b,a- -0x136);}const d=yield*this['hasOnlyRegularAssignments']();if(d||(yield this['$'][al(-0x6f,-0x70)])){return yield*super['calculateStartDate']();}else{const e=yield this['$'][al(-0x84,-0x5d)];const f=yield*this[al(-0x82,-0x3d)](e['direction']);const g=yield this['$'][al(-0x47,-0x7f)];const h=yield this['$']['timePhasedDispatcher'];const i=yield PreviousValueOf(this['$'][al(-0x52,-0xf)]);if(!(yield*this[al(-0xc9,-0xd5)]())&&!(yield this['$'][al(-0x65,-0x63)])&&f){if(g[al(-0x50,-0x67)]['get'](_ene)===CalculateProposed&&i!=null&&!h[al(-0x7c,-0xb8)]){const j=yield ProposedOrPrevious;if(e[al(-0xa9,-0x60)]===Direction[al(-0xb8,-0xff)]){yield*this['expandTrailingAssigmentsByDates'](i,j,!![]);}else{if(j<i){yield*this[al(-0xc0,-0xae)](i,j,![]);}}}return yield*super[al(-0xa1,-0xaa)]();}else{if(e['direction']===Direction[al(-0xb8,-0x78)]){const k=yield*super[al(-0xa1,-0x6b)]();const l=yield this['$']['minAssignmentProposedStartDate'];return l?l<k?l:k:k;}else{if(g[al(-0x50,-0x3)]['get'](_ene)===CalculateProposed&&h[al(-0x7c,-0xb5)]){return yield*this['calculateProjectedXDateWithDuration'](yield this['$'][al(-0x5a,-0x50)],![],yield this['$']['duration']);}if(g[al(-0x50,-0x79)][al(-0x71,-0xbf)](_ene)===CalculateProposed&&!h[al(-0x7c,-0x5e)]&&i!=null){const m=yield ProposedOrPrevious;yield*this[al(-0xc0,-0xb7)](i,m,![]);}return yield*super[al(-0xa1,-0x6a)]();}}}}*[ab(0xde,0xcc)](){const d=yield*this['hasOnlyRegularAssignments']();function am(a,b){return ab(b,a- -0x286);}if(d||(yield this['$'][am(-0x1bf,-0x173)])){return yield*super['calculateEndDate']();}else{const e=yield this['$'][am(-0x1d4,-0x1c8)];const f=yield*this[am(-0x1d2,-0x1f5)](e[am(-0x1f9,-0x1d2)]);if(!(yield*this['isManuallyScheduled']())&&!(yield this['$'][am(-0x1b5,-0x1b8)])&&f){return yield*super[am(-0x1ba,-0x1c0)]();}else{if(e['direction']===Direction[am(-0x208,-0x217)]){const g=yield this['$'][am(-0x197,-0x198)];const h=yield this['$'][am(-0x20a,-0x25d)];if(g['resolution']['get'](_end)===CalculateProposed&&h[am(-0x1cc,-0x1f3)]){return yield*this[am(-0x196,-0x18e)](yield this['$']['startDate'],!![],yield this['$'][am(-0x1fb,-0x233)]);}const i=yield PreviousValueOf(this['$'][am(-0x1aa,-0x1e4)]);if(g[am(-0x1a0,-0x172)][am(-0x1c1,-0x1b1)](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[am(-0x210,-0x1e6)](i,j,!![]);}return yield*super[am(-0x1ba,-0x185)]();}else{const k=yield*super['calculateEndDate']();const l=yield this['$']['maxAssignmentProposedEndDate'];return l>k?l:k;}}}}*[ab(0xc0,0xfa)](){const d=yield this['$'][an(0x4a2,0x459)];let e=![];for(const f of d){const g=yield f['$'][an(0x4cb,0x4aa)];if(g[an(0x455,0x481)])e=!![];if(g[an(0x4e3,0x515)]&&!g['hasInputOnlyOnEffort'])return![];}function an(a,b){return ab(b,a-0x3f8);}return e;}*[ab(0xde,0x9b)](){const d=yield this['$'][ao(0x2b5,0x295)];function ao(a,b){return ab(a,b-0x1ff);}return d[ao(0x2df,0x29a)];}*[ab(0x8f,0x6a)](){const d=yield this['$'][ap(0x41e,0x439)];function ap(a,b){return ab(a,b-0x366);}return d[ap(0x388,0x3d0)];}*[ab(0xa8,0xae)](){const d=yield this['$'][aq(0x1d,-0x2)];function aq(a,b){return ab(b,a- -0xb6);}return d[aq(-0x8,-0x16)];}*[ab(0x99,0x99)](){const d=yield this['$'][ar(-0x164,-0x121)];function ar(a,b){return ab(b,a- -0x237);}return d['isChangingOnlyEndDate'];}*[ab(0xdb,0x8e)](){const d=yield*this[as(-0x241,-0x23d)]();function as(a,b){return ab(a,b- -0x2bf);}if(d||(yield this['$'][as(-0x1f7,-0x1f8)])){return yield*super[as(-0x1e7,-0x231)]();}else{const e=yield this['$']['effectiveDirection'];const f=e[as(-0x1ec,-0x232)]===Direction[as(-0x25e,-0x241)];const g=yield this['$'][as(-0x1bc,-0x1d0)];const h=yield this['$'][as(-0x267,-0x243)];if(g[as(-0x218,-0x1d9)][as(-0x1bc,-0x1fa)](_enc)===durationFormula[as(-0x224,-0x260)]&&!h[as(-0x1b9,-0x205)]){const i=yield*super[as(-0x22f,-0x231)]();yield*this[as(-0x1fb,-0x214)](i,f);return i;}if(g[as(-0x1d0,-0x1d9)]['get'](_enc)===CalculateProposed&&!h[as(-0x1ff,-0x205)]&&!(h['input']['get'](DurationVar)&VariableInputState[as(-0x240,-0x1ed)])){const j=yield ProposedOrPrevious;return j;}if(g[as(-0x212,-0x1d9)]['get'](_enc)===CalculateProposed&&!h['hasTimePhasedInput']&&h[as(-0x1d8,-0x222)][as(-0x1e6,-0x1fa)](DurationVar)&VariableInputState[as(-0x19a,-0x1ed)]){const k=yield ProposedOrPrevious;yield*this[as(-0x206,-0x214)](k,f);const l=yield*this[as(-0x20a,-0x1eb)]();const m=yield this['$'][as(-0x1e6,-0x1e4)];return l?k>m?m:k:k;}if(!h[as(-0x1e6,-0x205)]){const n=yield ProposedOrPrevious;yield*this[as(-0x1ee,-0x214)](n,f);return n;}else if(h[as(-0x1c5,-0x205)]){const o=yield*this[as(-0x1c7,-0x1eb)]();const p=yield this['$'][as(-0x1ef,-0x1e4)];if(o){return p;}else{return Math[as(-0x211,-0x1e0)](p,yield ProposedOrPrevious);}}else{throw new Error('Unknown\x20duration\x20scenario');}}}*[ab(0xe3,0xfb)](){function at(a,b){return ab(a,b-0xd7);}const d=yield this['$'][at(0x1ab,0x1d5)];if(d['size']>0x0||(yield this['$'][at(0x1dd,0x19e)]))return yield*super[at(0x199,0x1d2)]();else{const e=yield*this['effectiveSchedulingMode']();const f=yield this['$'][at(0x166,0x14a)];if(e===SchedulingMode[at(0x18e,0x1cf)]){if(f[at(0x1b1,0x1d7)]>0x0){if(yield*this[at(0x187,0x141)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$']['effort']);if(g<=h){return g;}else{const i=yield this['$'][at(0x1b8,0x189)];yield*this[at(0x15e,0x135)](g,h,i[at(0x177,0x164)]===Direction[at(0x12f,0x155)]);return g;}}else{return yield*this[at(0x1d9,0x1c0)]();}}else{return yield*super[at(0x1da,0x1d2)]();}}else{return yield*this[at(0x19e,0x1c0)]();}}}*['calculateEffortPure'](){if(yield this['$'][au(0x2ac,0x2ec)]){return yield*super['calculateEffortPure']();}function au(a,b){return ab(b,a-0x1e5);}const d=yield this['$'][au(0x28f,0x28a)];if(d['size']>0x0){return yield*this['calculateTotalAssignmentsEffort']();}else{const e=yield ProposedOrPreviousValueOf(this['$'][au(0x2a3,0x2ec)]);if(e===void 0x0){return yield*this[au(0x289,0x24d)](yield this['$'][au(0x2c9,0x312)],yield this['$'][au(0x2c1,0x272)]);}else{return e;}}}*['calculateTotalAssignmentsEffort'](){let d=0x0;function av(a,b){return ab(b,a- -0xb7);}const e=yield this['$'][av(-0xd,-0x31)];for(const f of e){d+=yield*this[av(0x8,-0x18)]()[av(-0x56,-0x75)](yield f['$'][av(0x7,0x2f)],yield f['$'][av(0xf,-0x3e)],TimeUnit[av(-0x3a,-0x67)]);}return yield*this['getProject']()['$convertDuration'](d,TimeUnit[av(-0x3a,-0x48)],yield this['$'][av(0xf,0x47)]);}*[ab(0x10b,0xd8)](d){function aw(a,b){return ab(b,a-0x264);}return yield*d[aw(0x33c,0x384)](null);}*[ab(0x7c,0x67)](d){function ax(a,b){return ab(a,b-0x2ac);}if(yield*this[ax(0x320,0x330)]()){const e=this;const f=yield this['$']['effort'];return function*(g){function ay(a,b){return ax(a,b- -0x193);}return yield*e[ay(0x190,0x17d)](g,d,f);};}else{return yield*super[ax(0x33f,0x313)](d);}}*[ab(0xbc,0x84)](){function az(a,b){return ab(b,a- -0xc);}const d=yield*this[az(0xdb,0x101)]();const e=yield this['$'][az(0x5f,0x16)];return d!==SchedulingMode['FixedDuration']&&d!==SchedulingMode[az(0xec,0xf7)]&&(e||d===SchedulingMode[az(0x56,0x63)])&&!(yield*this['isChangingOnlyDuration']())&&!(yield*this[az(0x8d,0x96)]())||d===SchedulingMode[az(0x85,0x9f)]&&(yield*this[az(0xee,0x115)]())&&(yield*this['hasUnitsOnAllAssignments']());}*[ab(0xf7,0xad)](){function aA(a,b){return ab(a,b- -0xb6);}if(yield*this[aA(-0x69,-0x32)]()){return(yield this['$'][aA(0x44,0x8)])>0x0;}else{return yield*super[aA(-0xa,-0x9)]();}}*[ab(0xe2,0xab)](d,e=!![]){const f=yield this['$'][aB(0x46,0x7a)];if(f==null)return;function aB(a,b){return ab(a,b- -0x61);}if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][aB(0xa3,0x7b)]);const h=yield*this[aB(0xb2,0x8f)](g,!![],d-f,void 0x0,{'purpose':aB(0x2f,0x4b)});yield*this[aB(0x1b,0x15)](g,h,e);}else{const i=yield PreviousValueOf(this['$']['startDate']);const j=yield*this[aB(0x8b,0x8f)](i,![],d-f,void 0x0,{'purpose':aB(0x9d,0x4b)});yield*this['expandTrailingAssigmentsByDates'](i,j,e);}}}*['expandTrailingAssigmentsByDates'](d,e,f=!![]){function aC(a,b){return ab(b,a-0x3cb);}if(d[aC(0x4bf,0x4cd)]()===e[aC(0x4bf,0x4ac)]()){return;}const g=yield this['$'][aC(0x475,0x49e)];const h=[];for(const i of g){if(yield*i[aC(0x4ad,0x47e)]()){if(f){const j=yield PreviousValueOf(i['$'][aC(0x4a7,0x45c)]);if(j&&j[aC(0x4bf,0x4eb)]()===d[aC(0x4bf,0x49a)]())h[aC(0x439,0x437)](i);}else{const k=yield PreviousValueOf(i['$'][aC(0x4af,0x4ae)]);if(k&&k[aC(0x4bf,0x4f1)]()===d[aC(0x4bf,0x48c)]())h[aC(0x439,0x41e)](i);}}}this['project'][aC(0x4bc,0x4eb)]({'commitFinalized':{'fn':()=>{function aD(a,b){return aC(a- -0x252,b);}h[aD(0x22a,0x259)](l=>{function aE(a,b){return aD(a-0x132,b);}this['graph'][aE(0x36c,0x37d)](f?l['$'][aE(0x387,0x37e)]:l['$']['startDate'],e,![]);});},'once':!![]}});}*[ab(0x96,0x5e)](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$'][aF(0x52b,0x4da)]):yield PreviousValueOf(this['$'][aF(0x533,0x4eb)]);const h=yield this['$'][aF(0x4f9,0x4ae)];const i=new Set();for(const l of h){if(yield*l[aF(0x531,0x509)]()){if(f){const m=yield PreviousValueOf(l['$'][aF(0x52b,0x570)]);if(m&&m[aF(0x543,0x53a)]()===g['getTime']())i[aF(0x545,0x516)](l);}else{const n=yield PreviousValueOf(l['$']['startDate']);if(n&&n[aF(0x543,0x4f5)]()===g[aF(0x543,0x504)]())i[aF(0x545,0x4f2)](l);}}}const j=yield*this[aF(0x4c9,0x511)](function*(o){function aG(a,b){return aF(a-0x93,b);}return i[aG(0x561,0x536)](o)||!(yield*o[aG(0x5c4,0x574)]());});const k=yield*this['calculateProjectedXDateByEffort'](g,f,d-e,void 0x0,void 0x0,j);function aF(a,b){return ab(b,a-0x44f);}this[aF(0x506,0x541)][aF(0x540,0x500)]({'commitFinalized':{'fn':()=>{function aH(a,b){return aF(a- -0x174,b);}i[aH(0x38c,0x38b)](o=>{function aI(a,b){return aH(b-0x1c4,a);}this[aI(0x4d3,0x525)][aI(0x533,0x560)](f?o['$'][aI(0x583,0x57b)]:o['$'][aI(0x597,0x583)],k,![]);});},'once':!![]}});}*[ab(0xcb,0xd5)](){return!![];}*[ab(0xa3,0x70)](){function aJ(a,b){return ab(a,b- -0xee);}const d=yield this['$'][aJ(-0x1d,-0x3c)];return d['direction']===Direction[aJ(-0x2f,-0x70)]?yield*this[aJ(-0x12,0xb)](yield this['$'][aJ(0xf,-0x11)],(yield*this[aJ(-0x4,-0x3e)]())?yield*this['calculateMaxAssignmentProposedEndDateIncludingPhantom']():yield this['$'][aJ(-0x9a,-0x47)],void 0x0,{'isForward':!![]}):yield*this[aJ(0x19,0xb)](yield this['$'][aJ(-0x7e,-0x5b)],yield this['$']['proposedEndDateMax'],void 0x0,{'isForward':![]});}*[ab(0xd5,0xf9)](d,e,f,g,...h){function aK(a,b){return ab(b,a- -0x9);}const i=yield this['$']['effectiveDirection'];const j=g?.[aK(0xe9,0x10b)]!==void 0x0?g:i['direction']===Direction[aK(0x75,0x3e)]?Object[aK(0xe5,0x10b)]({},g,{'isForward':!![]}):Object[aK(0xe5,0xd9)]({},g,{'isForward':![]});return yield*super[aK(0xf0,0xf4)](d,e,f,j,...h);}*['calculateRegularAssignmentsByCalendar'](){return yield*this['collectAssignmentsByCalendar'](function*(d){return!(yield*d['isTimePhased']());});}*[ab(0xbd,0xb5)](){return yield*this['collectAssignmentsByCalendar']();}*[ab(0x79,0x7a)](d){const e=yield this['$'][aL(0x21b,0x236)];const f=yield this['$']['assigned'];const g=this[aL(0x265,0x242)]();const h=yield*this[aL(0x213,0x201)]();const i=(yield this['$'][aL(0x24b,0x26b)])||h&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'];const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aL(0x242,0x20b)];const m=i||(yield k['$'][aL(0x24b,0x204)]);if(l){const n=m?e:yield l['$']['effectiveCalendar'];let o=j[aL(0x26b,0x237)](n);if(!o){o=[];j[aL(0x28e,0x245)](n,o);}o[aL(0x214,0x21d)](k);}}}function aL(a,b){return ab(b,a-0x1a6);}return j;}*[ab(0x134,0xea)](d,e){function aM(a,b){return ab(a,b-0x4d9);}const f=d['purpose']??'positioning';if(f==='positioning'||(yield*this[aM(0x531,0x55b)]())||d['ignoreSegments']||(yield this['$']['isSegmented'])){return yield*super[aM(0x5db,0x5c3)](d,e);}const g=d[aM(0x5a0,0x5cb)]!==![];const h=yield this['$'][aM(0x593,0x54e)];const i=this['getProject']();const j=yield*this[aM(0x526,0x546)]();const k=yield this['$'][aM(0x56f,0x579)];const l=yield this['$']['effectiveCalendarsCombination'];const m=(yield this['$'][aM(0x590,0x57e)])||d[aM(0x530,0x57e)];const n=d[aM(0x5a9,0x5af)]??![];const o=i[aM(0x531,0x565)];if(o){d=Object[aM(0x5af,0x5c7)]({'maxRange':o},d);}const p=yield this['$'][aM(0x5bb,0x582)];const q=yield*p(g,g?d[aM(0x59e,0x5bd)]:d[aM(0x5cc,0x5b5)]);let r=g?0x0:q[aM(0x5c8,0x588)][aM(0x5da,0x5a1)]-0x1;let s=g?d[aM(0x60f,0x5bd)]:d['endDate'];const t=new Set();const u=l['forEachAvailabilityInterval'](d,(v,w,x)=>{const y=x[aN(0x50c,0x54a)]();const z=x[aN(0x50f,0x4dc)]();function aN(a,b){return aM(b,a- -0x86);}r=q[aN(0x4bc,0x4f2)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q[aN(0x4bc,0x4ff)](g,r,s,g?w:v,t,(A,B,C)=>{function aO(a,b){return aN(a- -0x64e,b);}if(y[aO(-0x136,-0x150)](h)&&(n||someInSet(C,D=>{function aP(a,b){return aO(a-0x352,b);}return m||D['ignoreResourceCalendar']||y[aP(0x21c,0x218)](D[aP(0x1f3,0x1ff)]['effectiveCalendar'])||j&&!i[aP(0x20a,0x1e5)];})||z[aO(-0x121,-0xee)](D=>k[aO(-0x17c,-0x1c1)](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*['calculateHasOnlyRegularAssignmentsRaw'](){const d=yield this['$'][aQ(0x173,0x187)];for(const e of d){if(yield*e[aQ(0x131,0x13d)]())return![];}function aQ(a,b){return ab(a,b-0xdd);}return!![];}*['hasOnlyRegularAssignments'](){const d=yield this['$'][aR(0xa8,0xb4)];function aR(a,b){return ab(a,b-0x1e);}return d['hasOnlyRegularAssignments'];}*[ab(0xe9,0xd4)](){function aS(a,b){return ab(a,b- -0x43);}const d=yield this['$']['assignmentsTypeSelector'];return d[aS(0xa1,0x91)];}*[ab(0xda,0xb0)](){const d=yield this['$'][aT(0x335,0x350)];function aT(a,b){return ab(b,a-0x29f);}return d[aT(0x34f,0x357)];}*[ab(0xac,0xd9)](){let d=MAX_DATE;function aU(a,b){return ab(b,a- -0x94);}const e=yield this['$'][aU(0x16,0x4d)];for(const f of e){const g=yield f[aU(0x4a,0x53)]['$'][aU(0x50,0x8c)];if(g&&g<d)d=g;}return d[aU(0x60,0x70)]()-MAX_DATE[aU(0x60,0x31)]()?d:null;}*[ab(0x93,0xca)](){let d=MIN_DATE;const e=yield this['$'][aV(-0x4a,-0x4a)];for(const f of e){const g=yield f[aV(-0x69,-0x16)]['$'][aV(-0x2c,-0x18)];if(g&&g>d)d=g;}function aV(a,b){return ab(a,b- -0xf4);}return d[aV(-0x15,0x0)]()-MIN_DATE[aV(-0x17,0x0)]()?d:null;}*['calculateMaxAssignmentProposedEndDateIncludingPhantom'](){let d=MIN_DATE;const e=yield this['$'][aW(0x3b8,0x39f)];function aW(a,b){return ab(a,b-0x2f5);}for(const f of e){const g=(yield*f['isTimePhased']())?(yield*f['isUserTimePhased']())?yield f['proposedMirror']['$'][aW(0x3b3,0x3d1)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}return d[aW(0x3bd,0x3e9)]()-MIN_DATE[aW(0x402,0x3e9)]()?d:null;}*[ab(0xde,0xa4)](d,e,f){const g=yield*this[aX(0x35b,0x34e)]();if(g||(yield this['$'][aX(0x3a0,0x3a6)])){return yield*super[aX(0x37d,0x354)](d,e,f);}function aX(a,b){return ab(b,a-0x2d9);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][aX(0x379,0x3a4)];const i=new Map();for(const [l,m]of h){let n=0x0;for(const o of m){n+=(yield o['$'][aX(0x34b,0x314)])??0x64;}i[aX(0x3c1,0x38b)](l,n);}let j=0x0;const k=Object[aX(0x3c7,0x3dd)](yield*this[aX(0x3a7,0x363)](),{'startDate':d,'endDate':e},{'purpose':aX(0x35a,0x3ad)});yield*this[aX(0x3c3,0x394)](k,(p,q,r,s)=>{const t=r['getCalendarsWorking']();const u=p[aY(-0x112,-0x161)](),v=q['getTime'](),w=v-u;function aY(a,b){return aX(b- -0x52e,a);}let x=0x0;for(const y of t){x+=i[aY(-0x1b2,-0x190)](y)||0x0;}if(!f){s[aY(-0x185,-0x1a4)](z=>{function aZ(a,b){return aY(a,b-0x5cc);}x+=z[aZ(0x3d0,0x3e9)];});}j+=x*w*0.01;});return yield*this['getProject']()['$convertDuration'](j,TimeUnit['Millisecond'],yield this['$'][aX(0x39f,0x3e9)]);}*[ab(0x9e,0xf0)](d,e=!![],f,g,h){const i=yield*super[b0(0x3e9,0x401)](d,e,f,g,h);function b0(a,b){return ab(b,a-0x2f9);}if(yield this['$']['isSegmented'])return i;const j=yield*this['hasOnlyTimePhasedAssignments']();if(j){const k=yield this['$'][b0(0x3ab,0x3c7)];if(k[b0(0x386,0x3cf)]===Direction[b0(0x377,0x3be)]&&e===![]){const l=yield this['$'][b0(0x3af,0x3e8)];const m=l[b0(0x355,0x38c)];if(m>0x0){return yield*l['minAssignment']['calculateProjectedXDateWithDuration'](i,![],m,TimeUnit[b0(0x376,0x3a8)]);}}else if(k['direction']===Direction['Backward']&&e===!![]){const n=yield this['$'][b0(0x381,0x3c1)];const o=n['minOffset'];if(o>0x0){return yield*n[b0(0x371,0x384)]['calculateProjectedXDateWithDuration'](i,!![],o,TimeUnit['Millisecond']);}}}return i;}*['getBaseOptionsForDurationCalculations'](){const d=yield*this[b1(0x170,0x13c)]();function b1(a,b){return ab(b,a-0x89);}if(d===SchedulingMode['FixedDuration']){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b['getBaseOptionsForDurationCalculations'][b1(0x11b,0xd6)](this);}}*[ab(0x5b,0x64)](d,e=!![],f,g,h,i){if(yield this['$'][b2(0x2ca,0x2fe)]){return yield*super['calculateProjectedXDateByEffort'](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b2(0x2f2,0x2f5)];g=g!==void 0x0?g:yield this['$'][b2(0x2d6,0x2fd)];const j=yield*this['getProject']()[b2(0x247,0x298)](f,g,TimeUnit[b2(0x28f,0x2b4)]);if(d==null||f==null)return null;let k=d[b2(0x35b,0x32b)]();function b2(a,b){return ab(a,b-0x237);}let l=j;if(l===0x0)return new Date(k);const {zeroDurationMsThreshold:m}=this;const n=Object['assign'](yield*this[b2(0x2c1,0x2c1)](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':'progressing'},h);const o=yield*this['hasOnlyRegularAssignments']();if(h?.['purpose']===b2(0x2dc,0x2e3)||o){const s=new Map();const t=yield this['$'][b2(0x2a5,0x2e1)];let u=0x0;const v=new Map();for(const y of t){const z=(yield y['$']['units'])??0x64;u+=z;v['set'](y,z);}if(u===0x0){return yield*super[b2(0x262,0x29b)](d,e,f,g,h,i);}for(const A of t){s['set'](A,j*v[b2(0x329,0x2fc)](A)/u);}const w=yield this['$'][b2(0x2ca,0x2aa)];const x=new Map();for(const [B,C]of w){for(const D of C){x['set'](D,B);}}yield*this['forEachAvailabilityInterval'](n,(E,F,G)=>{const H=E[b3(0x195,0x144)](),I=F[b3(0x184,0x144)](),J=I-H;for(const K of t){const L=x[b3(0xf8,0x115)](K);if(G[b3(0x15a,0x109)]()[b3(0xe5,0x115)](L)){const M=s[b3(0x160,0x115)](K);let N=v[b3(0xcd,0x115)](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[b3(0xe3,0xf6)](K);}else{s['set'](K,M-O);}}}function b3(a,b){return b2(a,b- -0x1e7);}if(s['size']===0x0)return![];});return new Date(k);}const p=i?i:yield this['$'][b2(0x306,0x2d7)];const q=new Map();(yield this['$']['assignmentsByCalendar'])[b2(0x2d2,0x2e8)]((E,F)=>{function b4(a,b){return b2(a,b- -0x3ed);}E[b4(-0x147,-0x105)](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['$'][b2(0x295,0x2a9)])??0x64;}r[b2(0x2ef,0x31f)](E,G);}yield*this['forEachAvailabilityInterval'](n,(I,J,K,L)=>{const M=K[b5(0x230,0x22e)]();const N=K['getCalendarsWorkStatus']();const O=I[b5(0x268,0x2a0)](),P=J[b5(0x268,0x293)](),Q=P-O;let R=0x0;for(const U of M){R+=r[b5(0x239,0x1f7)](U)||0x0;}if(!i){L[b5(0x225,0x22a)](V=>{function b6(a,b){return b5(a-0x12,b);}if(N[b6(0x24b,0x20d)](q[b6(0x24b,0x28a)](V)))R+=V[b6(0x1f8,0x24b)];});}const S=R*Q*0.01;const T=l-S;function b5(a,b){return b2(b,a- -0xc3);}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['prototype'],'proposedStartDate',void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xc3,0xe0)],ab(0x54,0x87),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xad,0xe0)],ab(0xe7,0xdd),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x105,0xe0)],ab(0xc1,0xc4),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xc9,0xe0)],ab(0xd4,0x93),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb6,0xe0)],'maxAssignmentProposedEndDate',void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb2,0xe0)],ab(0xf5,0xdb),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb9,0xe0)],ab(0x7a,0x96),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xb8,0xe0)],ab(0xd7,0xbb),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c['prototype'],ab(0xa1,0x7c),void 0x0);__decorate([field()],c['prototype'],ab(0xde,0xd3),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],ab(0xff,0xb6),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xcf,0xe0)],ab(0x6e,0x88),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0xc3,0xe0)],ab(0x9b,0xa0),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],'timePhasedIntervalsCache',void 0x0);__decorate([calculate(ab(0x75,0xbb))],c[ab(0xd5,0xe0)],'calculateProposedTotalUnits',null);__decorate([calculate(ab(0x9f,0xcd))],c[ab(0xdc,0xe0)],'calculateProposedStartDate',null);__decorate([calculate('proposedEndDate')],c[ab(0xbe,0xe0)],ab(0x127,0xff),null);__decorate([calculate('proposedStartDateMin')],c[ab(0xcd,0xe0)],ab(0x91,0xa2),null);__decorate([calculate(ab(0x84,0xc4))],c[ab(0x9a,0xe0)],'calculateProposedEndDateMax',null);__decorate([calculate(ab(0xe0,0xb6))],c[ab(0xab,0xe0)],ab(0xaa,0xc2),null);__decorate([calculate(ab(0x92,0x88))],c[ab(0x122,0xe0)],ab(0xa1,0xf3),null);__decorate([calculate('assignmentsTypeSelector')],c[ab(0xf5,0xe0)],ab(0x48,0x90),null);function ab(a,b){return _enY(a,b- -0x1cc);}__decorate([calculate(ab(0x108,0xd3))],c[ab(0xac,0xe0)],ab(0x66,0x65),null);__decorate([calculate(ab(0x2b,0x7c))],c['prototype'],ab(0xc5,0x7b),null);__decorate([calculate(ab(0x77,0xa9))],c[ab(0x8d,0xe0)],ab(0x11d,0xed),null);__decorate([calculate(ab(0xd7,0xdb))],c['prototype'],'calculateProposedAssignmentDuration',null);__decorate([calculate(ab(0xbe,0xa0))],c[ab(0x9b,0xe0)],ab(0xe9,0xa3),null);__decorate([calculate(ab(0x98,0x93))],c['prototype'],'calculateMinAssignmentProposedStartDate',null);__decorate([calculate(ab(0x89,0xa7))],c[ab(0x114,0xe0)],ab(0xba,0xca),null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
1
+ (function(a,b){const c=a();function W(a,b){return _enb(a-0x312,b);}while(!![]){try{const d=-parseInt(W(0x4f6,0x4aa))/0x1*(parseInt(W(0x516,0x52d))/0x2)+parseInt(W(0x4ef,0x536))/0x3*(-parseInt(W(0x562,0x537))/0x4)+-parseInt(W(0x4c7,0x48d))/0x5+-parseInt(W(0x508,0x527))/0x6*(-parseInt(W(0x50d,0x509))/0x7)+parseInt(W(0x56b,0x5a6))/0x8+-parseInt(W(0x504,0x4b5))/0x9*(parseInt(W(0x4cf,0x4c7))/0xa)+parseInt(W(0x555,0x52f))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xb1684));var __decorate=function(a,b,e,f){var g=arguments[X(-0x2b,-0x73)],h=g<0x3?b:f===null?f=Object[X(-0x2,0x3b)](b,e):f,j;if(typeof Reflect===X(-0x19,-0x58)&&typeof Reflect[X(-0x95,-0x63)]===X(-0x4b,-0x2e))h=Reflect[X(-0x95,-0x48)](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 X(a,b){return _enb(a- -0x25a,b);}return g>0x3&&h&&Object[X(-0x7a,-0xbe)](b,e,h),h;};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1b1;let f=c[d];return f;};return _enb(a,b);}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';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';const someInSet=(b,c)=>{for(const d of b){if(c(d))return!![];}return![];};function _enZ(a,b){return _enb(b-0xc,a);}function _ena(){const b9=['regularAssignmentsByCalendar','end','Forward','98798OINGlo','expandTrailingAssignmentsByDuration','calculateProjectedXDateByEffort','getCalendarsWorkStatus','startDate','calculateTotalAssignmentsEffort','timePhasedIntervalsCache','effortDriven','isPhantomTimePhased','982WSVwYj','forEachAvailabilityInterval','hasInputOnAssignments','set','isChangingOnlyDuration','start','hasOnlyRegularAssignments','addProposedValueFlag','write','ignoreResourceCalendar','proposedEndDateMax','function','resolution','timePhasedDispatcher','some','HasProposedValue','getProject','getDateShifter','isSegmented','hasPhantomTimePhasedAssignments','hasUnitsOnAllAssignments','calculateDuration','calculateProposedStartDate','calculateMinAssignmentProposedStartDate','maxCalendarRange','endDate','isDurationDefinedByEffort','calculateRegularAssignmentsByCalendar','getBaseOptionsForDurationCalculations','calculateStartDate','calculateProjectedXDateWithDuration','FixedDuration','proposedStartOffsets','maxAssignmentProposedEndDate','assignmentsByCalendar','effectiveDirection','ignoreTimePhasedData','calculateProposedEndOffsetRaw','effort','Millisecond','calculateProposedStartOffsetRaw','time','proposedMirror','length','collectAssignmentsByCalendar','calculateProposedAssignmentDuration','calculateMaxAssignmentProposedEndDateIncludingPhantom','hasProposedAssignments','effortUnit','project','calculateProposedEndDate','hasSomeInput','isChangingOnlyEndDate','hasOnlyTimePhasedAssignments','isForward','calculateProposedTotalUnits','calculateMaxAssignmentProposedEndDate','prepare','hasTimePhasedInput','$convertDuration','shouldSkipNonWorkingTime','object','collectInfo','27132567pNQiMY','calculateEffort','isTimePhased','timePhasedData','input','proposedStartDateMin','proposedStartDate','calculateProjectedXDate','assignmentsTypeSelector','assign','isChangingOnlyEffort','move','units','12812xfZyBp','Backward','expandTrailingAssigmentsByDates','calculateProposedStartOffsets','proposedEndOffsets','calculateEndDate','event','hasPreviousValueForUnits','getOwnPropertyDescriptor','1854048IozPAM','forEach','duration','Unknown\x20duration\x20scenario','max','calculateAssignmentUnits','1476310mKmYkk','direction','ion','getCalendarsWorking','sort','calculateEffortPure','delete','get','10RelNrl','unscheduled','hasInputOnDuration','prototype','calculateHasOnlyRegularAssignmentsRaw','calculateProjectedDuration','effectiveCalendar','isChangingOnlyEffortOnAssignment','decorate','assigned','size','selector','purpose','FixedUnits','proposedEndDateArgs','MAX_VALUE','calculateProposedEndDateMax','calculateProjectedEffort','resource','calculateProposedStartDateMin','minOffset','type','FixedEffort','minAssignmentProposedStartDate','hasInputOnEffort','skipNonWorkingTimeInDurationWhenSchedulingManually','hasInputOnEndDate','dispatcher','proposedEndOffset','proposedTotalUnits','proposedStartOffset','calculateSelector','309juAaVc','formulaId','add','defineProperty','effectiveSchedulingMode','minAssignment','getTime','673WnbGDM','isUserTimePhased','calculateAssignmentsTypeSelector','progressing','proposedAssignmentDuration','push','expandTrailingAssigmentsByEffort','isManuallyScheduled','calculateTimePhasedDispatcher','positioning','calculateProposedEndOffsets','calculateTimePhasedIntervalsCache','Normal','graph','12955491NwRUnr','childEvents','useEventAvailabilityIterator','assignment','180GFjZzK','proposedEndDate'];_ena=function(){return b9;};return _ena();}class TimePhasedIntervals{constructor(){function Y(a,b){return _enb(a- -0x3b7,b);}this[Y(-0x171,-0x164)]=[];}[_enZ(0x1fe,0x1f5)](a){function a0(a,b){return _enZ(a,b-0x380);}this['timePhasedData']['push']({'time':a['startDate'],'type':a0(0x5a2,0x595),'assignment':a[a0(0x561,0x581)]},{'time':a[a0(0x576,0x5a9)],'type':a0(0x5a6,0x585),'assignment':a[a0(0x57e,0x581)]});}['prepare'](){function a1(a,b){return _enZ(b,a- -0x20c);}this[a1(0x46,0x18)][a1(-0x47,0x4)]((a,b)=>{function a2(a,b){return a1(a-0x118,b);}return a[a2(0x145,0xff)]-b[a2(0x145,0x17e)];});}['move'](a,b,c,d,e,f){const g=this[a3(0x25,0x3)][b];if(a&&b===this['timePhasedData'][a3(0x36,-0x14)]-0x1){if(g[a3(0x1e,-0x16)]<=c){e[a3(-0xa7,-0x88)](g[a3(-0x31,-0x4e)]);if(f(c,d,e)===![])return-0x1;return b;}}else if(!a&&b===0x0){if(c<=g[a3(-0x69,-0x16)]){e[a3(-0x5a,-0x88)](g[a3(-0x83,-0x4e)]);if(f(d,c,e)===![])return-0x1;return b;}}function a3(a,b){return _enZ(a,b- -0x24f);}const h=a?0x1:-0x1;let j=c;let k,l;for(k=b;k>=0x0&&k<this[a3(0x3c,0x3)][a3(-0x46,-0x14)];k+=h){const n=this[a3(-0x6,0x3)][k];const o=a?n[a3(0x20,-0x16)]>=d:n[a3(-0x25,-0x16)]<=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['time']<c:n[a3(-0x16,-0x16)]>c;if(!p){if(j[a3(-0x78,-0x60)]()!==n['time'][a3(-0x41,-0x60)]()){if(a){if(f(j,n[a3(-0x31,-0x16)],e)===![])return-0x1;}else{if(f(n[a3(-0x5c,-0x16)],j,e)===![])return-0x1;}}const q=a?n[a3(-0xac,-0x71)]===a3(-0x58,-0x3a):n[a3(-0x61,-0x71)]==='end';if(q)e[a3(-0x9d,-0x64)](n['assignment']);else e[a3(-0x54,-0x88)](n[a3(-0x5e,-0x4e)]);}l=k;j=n[a3(-0x5f,-0x16)];}if(l===void 0x0){return k;}const m=this[a3(-0x1d,0x3)][l];if(a){e[a3(-0x6c,-0x88)](m[a3(-0x4d,-0x4e)]);if(f(j,d,e)===![])return-0x1;}else if(!a){e[a3(-0x6d,-0x88)](m[a3(0x4,-0x4e)]);if(f(d,j,e)===![])return-0x1;}return l;}}class TimePhasedEventSelector{constructor(){this[a4(0x38d,0x3ca)]=null;this[a4(0x30f,0x350)]=null;function a4(a,b){return _enZ(b,a-0x12b);}this['hasInputOnEffort']=![];this[a4(0x2f6,0x32b)]=![];this['hasInputOnEndDate']=![];this[a4(0x302,0x34c)]=null;this['hasInputOnAssignments']=![];this['hasPreviousEffortValue']=![];}get['isChangingOnlyEffort'](){function a5(a,b){return _enZ(a,b- -0x369);}const a=this[a5(-0x1a7,-0x185)];return this[a5(-0x1a3,-0x188)]&&!Boolean(a[a5(-0x118,-0x116)][a5(-0x1e8,-0x1a1)](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a5(-0x160,-0x116)][a5(-0x1e1,-0x1a1)](EndVar)&VariableInputState[a5(-0x163,-0x14a)])&&!Boolean(a[a5(-0x134,-0x116)][a5(-0x18b,-0x1a1)](DurationVar)&VariableInputState[a5(-0x152,-0x14a)])&&!a[a5(-0x158,-0x11f)];}get[_enZ(0x1df,0x214)](){function a6(a,b){return _enZ(b,a- -0x3c8);}const a=this[a6(-0x1e4,-0x1f2)];return this[a6(-0x1fd,-0x233)]&&!Boolean(a[a6(-0x175,-0x16c)][a6(-0x200,-0x1f7)](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a6(-0x175,-0x15d)][a6(-0x200,-0x249)](EndVar)&VariableInputState[a6(-0x1a9,-0x1ee)])&&!Boolean(a[a6(-0x175,-0x1a6)][a6(-0x200,-0x235)](EffortVar)&VariableInputState[a6(-0x1a9,-0x19f)])&&!a[a6(-0x17e,-0x150)];}get[_enZ(0x28c,0x244)](){const a=this['dispatcher'];function a7(a,b){return _enZ(b,a- -0x3b9);}const b=this[a7(-0x1e2,-0x22b)];return this[a7(-0x1d6,-0x206)]&&(!b||!b[0x0])&&!Boolean(a[a7(-0x166,-0x1a6)][a7(-0x1f1,-0x209)](StartVar)&VariableInputState['HasProposedValue'])&&!Boolean(a[a7(-0x166,-0x122)][a7(-0x1f1,-0x1e9)](DurationVar)&VariableInputState[a7(-0x19a,-0x154)])&&!Boolean(a[a7(-0x166,-0x14d)][a7(-0x1f1,-0x1cd)](EffortVar)&VariableInputState[a7(-0x19a,-0x1eb)])&&!a[a7(-0x16f,-0x175)];}*[_enZ(0x24c,0x24e)](){const a=this[a8(0x1c9,0x1c3)];this[a8(0x148,0x16f)]=yield HasProposedNotPreviousValue(a['$'][a8(0x19d,0x17d)]);this[a8(0x132,0xe7)]=yield HasProposedNotPreviousValue(a['$'][a8(0x124,0x14d)]);this[a8(0x14a,0x15e)]=yield HasProposedNotPreviousValue(a['$'][a8(0x190,0x1a5)]);this[a8(0x14b,0x124)]=yield a['$'][a8(0x184,0x1ce)];this[a8(0x13e,0x10f)]=yield ProposedArgumentsOf(a['$']['endDate']);function a8(a,b){return _enZ(b,a- -0x99);}this[a8(0x179,0x12c)]=yield*a[a8(0x1a6,0x1a3)]();this['hasPreviousEffortValue']=yield HasPreviousValue(a['$'][a8(0x19d,0x16c)]);}}class TimePhasedEventAssignmentTypeSelector{constructor(){this[a9(0x15c,0x131)]=null;this[a9(0xcc,0xd9)]=null;this[a9(0x110,0x12a)]=null;this[a9(0x13f,0x12e)]=null;this['hasUnitsOnAllAssignments']=null;function a9(a,b){return _enZ(b,a- -0x106);}this[a9(0x11d,0x102)]=null;}*[_enZ(0x29f,0x24e)](){function aa(a,b){return _enZ(b,a- -0x3cb);}const a=this['event'];const b=this[aa(-0x1f9,-0x20e)]=yield a['$'][aa(-0x1f9,-0x1c4)];if(b[aa(-0x1f8,-0x1fb)]===0x0){this[aa(-0x1b5,-0x1ef)]=!![];this[aa(-0x186,-0x156)]=![];this[aa(-0x1a8,-0x17e)]=![];this['hasUnitsOnAllAssignments']=![];}else{let c=0x0;for(const d of b){const e=yield d['$'][aa(-0x1f7,-0x1d5)];if(this[aa(-0x1b5,-0x1fa)]===null&&e[aa(-0x17a,-0x1a7)]){this[aa(-0x1b5,-0x16c)]=![];c++;}if(this[aa(-0x186,-0x19b)]===null&&!e[aa(-0x17a,-0x152)]){this[aa(-0x186,-0x1b6)]=![];c++;}if(this[aa(-0x1a8,-0x198)]===null&&e[aa(-0x1bc,-0x1de)]){this[aa(-0x1a8,-0x1ab)]=!![];c++;}if(this[aa(-0x1a7,-0x1c5)]===null&&!e[aa(-0x168,-0x1b6)]){this['hasUnitsOnAllAssignments']=![];c++;}if(c===0x4)break;}if(this[aa(-0x1b5,-0x208)]===null)this[aa(-0x1b5,-0x182)]=!![];if(this[aa(-0x186,-0x157)]===null)this['hasOnlyTimePhasedAssignments']=!![];if(this[aa(-0x1a8,-0x17c)]===null)this[aa(-0x1a8,-0x1bd)]=![];if(this['hasUnitsOnAllAssignments']===null)this[aa(-0x1a7,-0x1a8)]=!![];}}}class SchedulerProHasTimePhasedAssignmentsMixin extends Mixin([SchedulerProHasAssignmentsMixin,HasSchedulingModeMixin,ConstrainedEarlyEventMixin,SplitEventMixin],a=>{const b=a[ab(0x1cd,0x1a3)];class c extends a{*['calculateProposedTotalUnits'](){function ac(a,b){return ab(b,a- -0x204);}const d=yield this['$'][ac(-0x5b,-0xa7)];let e=0x0;for(const f of d){const g=yield f['$'][ac(-0x52,0x2)];if(!g)continue;const h=(yield ProposedOrPreviousValueOf(f['$'][ac(0x2e,0x5e)]))??0x64;e+=h;}return e;}*[ab(0x1dc,0x1fd)](){return yield ProposedOrPreviousValueOf(this['$']['startDate']);}*[ab(0x1cd,0x219)](){function ad(a,b){return ab(a,b- -0x268);}return yield ProposedOrPreviousValueOf(this['$'][ad(-0x16,-0x68)]);}*[ab(0x194,0x1b3)](){const d=yield this['$'][ae(0x320,0x311)];const e=yield this['$'][ae(0x28b,0x29c)];function ae(a,b){return ab(a,b-0xe5);}return d<e?d:e??d;}*[ab(0x168,0x1b0)](){const d=yield this['$'][af(0x266,0x24e)];const e=yield this['$']['maxAssignmentProposedEndDate'];function af(a,b){return ab(a,b-0x74);}return d>e?d:e??d;}*[ab(0x1e8,0x236)](){const d=yield this['$'][ag(0x7d,0x6d)];const e=new Map();function ag(a,b){return ab(a,b- -0x13c);}let f;let g=Number[ag(0xc7,0x73)];for(const h of d){if(yield*h['isTimePhased']()){const i=yield*h[ag(0xff,0xd3)]();e[ag(0x63,0xae)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*[ab(0x1f3,0x1d1)](){function ah(a,b){return ab(a,b-0x114);}const d=yield this['$'][ah(0x311,0x2bd)];const e=new Map();let f;let g=Number['MAX_VALUE'];for(const h of d){if(yield*h[ah(0x367,0x33c)]()){const i=yield*h[ah(0x32b,0x320)]();e[ah(0x2e5,0x2fe)](h,i);if(i<g){g=i;f=h;}}}return{'offsets':e,'minOffset':g,'minAssignment':f};}*['calculateAssignmentsTypeSelector'](){const d=new TimePhasedEventAssignmentTypeSelector();d['event']=this;yield*d['collectInfo']();return d;}*[ab(0x16e,0x1bf)](){function ai(a,b){return ab(a,b-0x337);}const d=new TimePhasedEventSelector();d['event']=this;yield*d[ai(0x5a5,0x55c)]();return d;}*[ab(0x1b4,0x1cf)](d){const e=TimePhasedEventAssignmentDispatcher['new']({'context':TimePhasedEventAssignmentCycleResolutionContext});e[aj(-0xf6,-0x109)](d,this['$'][aj(-0x155,-0x14c)],StartVar);e[aj(-0x11c,-0x109)](d,this['$'][aj(-0x16f,-0x12e)],EndVar);e[aj(-0x157,-0x109)](d,this['$'][aj(-0x1e3,-0x19a)],DurationVar);e[aj(-0x129,-0x109)](d,this['$'][aj(-0x145,-0x121)],EffortVar);const f=yield this['$'][aj(-0x140,-0x185)];const g=[];const h=[];const i=[];const j=[];for(const k of f){g['push']([null,yield HasProposedNotPreviousValue(k['$']['startDate'])]);h[aj(-0x154,-0x162)]([null,yield HasProposedNotPreviousValue(k['$'][aj(-0x13a,-0x12e)])]);i[aj(-0x142,-0x162)]([null,yield HasProposedNotPreviousValue(k['$']['duration'])]);j[aj(-0x1a5,-0x162)]([null,yield HasProposedNotPreviousValue(k['$'][aj(-0xf8,-0x121)])]);}if(g[aj(-0x17d,-0x139)](([l,m])=>m)){e[aj(-0x18d,-0x140)](TimePhasedStartDate);}if(h[aj(-0x152,-0x139)](([l,m])=>m)){e[aj(-0x161,-0x140)](TimePhasedEndDate);}if(i[aj(-0x117,-0x139)](([l,m])=>m)){e[aj(-0x109,-0x140)](TimePhasedDuration);}if(j[aj(-0x13f,-0x139)](([l,m])=>m)){e[aj(-0x15e,-0x140)](TimePhasedEffort);e['addProposedValueFlag'](EffortVar);}function aj(a,b){return ab(a,b- -0x32e);}return e;}*[ab(0x20e,0x1d2)](){const d=new Map();function ak(a,b){return ab(b,a- -0x2ce);}const e=new Map();const f=yield this['$'][ak(-0x125,-0xf8)];for(const g of f){if(yield*g[ak(-0xa6,-0xa8)]()){e['set'](g,{'proposedStartOffset':yield g['$'][ak(-0x110,-0x163)],'proposedEndOffset':yield g['$'][ak(-0x112,-0x15d)]});}}return function*(h,i){const j=String(i['getTime']())+'/'+(h?'1':'0');let k=d[al(-0x137,-0x126)](j);function al(a,b){return ak(b-0x9,a);}if(k){return k;}k=new TimePhasedIntervals();for(const [l,m]of e){let n,o;if(h){n=yield*l[al(-0xc8,-0xc0)](i,!![],m[al(-0xd9,-0x107)],TimeUnit[al(-0x67,-0xb7)]);n=yield*l['skipNonWorkingTime'](n,!![]);o=yield*l['calculateProjectedXDate'](n,!![]);}else{o=yield*l['calculateProjectedXDateWithDuration'](i,![],m[al(-0xdc,-0x109)]||0x0,TimeUnit[al(-0x109,-0xb7)]);n=yield*l[al(-0x9c,-0x98)](o,![]);}if(n&&o)k[al(-0x14c,-0xf9)]({'startDate':n,'endDate':o,'assignment':l,'isWorking':!![]});}k[al(-0xf5,-0xa5)]();d[al(-0xee,-0xdb)](j,k);return k;};}*['calculateStartDate'](){const d=yield*this['hasOnlyRegularAssignments']();function am(a,b){return ab(a,b- -0xea);}if(d||(yield this['$'][am(0xee,0x10f)])){return yield*super[am(0xd7,0x11a)]();}else{const e=yield this['$'][am(0xd1,0x120)];const f=yield*this['isConstrainedAlongDirection'](e[am(0xb0,0xaf)]);const g=yield this['$'][am(0x91,0xd1)];const h=yield this['$'][am(0x133,0x10a)];const i=yield PreviousValueOf(this['$'][am(0xe6,0xf8)]);if(!(yield*this[am(0x115,0xe4)]())&&!(yield this['$']['unscheduled'])&&f){if(g[am(0x142,0x109)][am(0x8c,0xb5)](_ene)===CalculateProposed&&i!=null&&!h[am(0x16a,0x137)]){const j=yield ProposedOrPrevious;if(e[am(0xf0,0xaf)]===Direction[am(0x123,0xf3)]){yield*this[am(0x13d,0x14b)](i,j,!![]);}else{if(j<i){yield*this[am(0x18c,0x14b)](i,j,![]);}}}return yield*super[am(0xe9,0x11a)]();}else{if(e[am(0xf1,0xaf)]===Direction[am(0x126,0xf3)]){const k=yield*super[am(0x109,0x11a)]();const l=yield this['$'][am(0x79,0xcd)];return l?l<k?l:k:k;}else{if(g[am(0x100,0x109)][am(0xe8,0xb5)](_ene)===CalculateProposed&&h[am(0x10a,0x137)]){return yield*this[am(0x140,0x11b)](yield this['$']['endDate'],![],yield this['$'][am(0x7c,0xaa)]);}if(g[am(0x122,0x109)]['get'](_ene)===CalculateProposed&&!h[am(0xe6,0x137)]&&i!=null){const m=yield ProposedOrPrevious;yield*this['expandTrailingAssigmentsByDates'](i,m,![]);}return yield*super[am(0xce,0x11a)]();}}}}*[ab(0x229,0x238)](){function an(a,b){return ab(b,a- -0x184);}const d=yield*this[an(0x69,0xab)]();if(d||(yield this['$'][an(0x75,0x41)])){return yield*super['calculateEndDate']();}else{const e=yield this['$']['effectiveDirection'];const f=yield*this['isConstrainedAlongDirection'](e['direction']);if(!(yield*this[an(0x4a,0x26)]())&&!(yield this['$'][an(0x1d,-0x18)])&&f){return yield*super['calculateEndDate']();}else{if(e[an(0x15,-0x2d)]===Direction['Forward']){const g=yield this['$'][an(0x37,-0x14)];const h=yield this['$'][an(0x70,0xbb)];if(g[an(0x6f,0x39)]['get'](_end)===CalculateProposed&&h[an(0x9d,0xe1)]){return yield*this[an(0x81,0xcd)](yield this['$'][an(0x5e,0x9e)],!![],yield this['$'][an(0x10,0xc)]);}const i=yield PreviousValueOf(this['$'][an(0x7c,0x9a)]);if(g['resolution'][an(0x1b,-0x28)](_end)===CalculateProposed&&i!=null){const j=yield ProposedOrPrevious;yield*this[an(0xb1,0xa8)](i,j,!![]);}return yield*super[an(0xb4,0x109)]();}else{const k=yield*super['calculateEndDate']();const l=yield this['$'][an(0x84,0x77)];return l>k?l:k;}}}}*[ab(0x1c6,0x1a7)](){function ao(a,b){return ab(a,b-0x1a4);}const d=yield this['$'][ao(0x377,0x34d)];let e=![];for(const f of d){const g=yield f['$'][ao(0x373,0x34f)];if(g[ao(0x30c,0x35c)])e=!![];if(g[ao(0x3de,0x3be)]&&!g['hasInputOnlyOnEffort'])return![];}return e;}*[ab(0x20c,0x1fb)](){const d=yield this['$'][ap(0x218,0x1cf)];function ap(a,b){return ab(a,b- -0x5f);}return d[ap(0x1dd,0x19c)];}*[ab(0x237,0x230)](){const d=yield this['$']['selector'];function aq(a,b){return ab(b,a- -0x1ed);}return d[aq(0x43,0x1b)];}*[ab(0x1fd,0x1eb)](){function ar(a,b){return ab(b,a- -0xfd);}const d=yield this['$'][ar(0xae,0xff)];return d[ar(0xee,0xe6)];}*['isChangingOnlyEndDate'](){const d=yield this['$'][as(-0x189,-0x16d)];function as(a,b){return ab(b,a- -0x334);}return d['isChangingOnlyEndDate'];}*['calculateDuration'](){function at(a,b){return ab(a,b- -0x162);}const d=yield*this['hasOnlyRegularAssignments']();if(d||(yield this['$'][at(0x65,0x97)])){return yield*super[at(0x5c,0x9a)]();}else{const e=yield this['$']['effectiveDirection'];const f=e[at(-0x8,0x37)]===Direction[at(0xce,0x7b)];const g=yield this['$']['dispatcher'];const h=yield this['$'][at(0x6c,0x92)];if(g['resolution'][at(0x6,0x3d)](_enc)===durationFormula[at(0x48,0x5f)]&&!h[at(0x8f,0xbf)]){const i=yield*super[at(0xd1,0x9a)]();yield*this[at(0x77,0x7d)](i,f);return i;}if(g['resolution'][at(0x3d,0x3d)](_enc)===CalculateProposed&&!h[at(0xc3,0xbf)]&&!(h[at(0x11b,0xc8)][at(0x7,0x3d)](DurationVar)&VariableInputState['HasProposedValue'])){const j=yield ProposedOrPrevious;return j;}if(g[at(0xa3,0x91)][at(0x2d,0x3d)](_enc)===CalculateProposed&&!h[at(0x7c,0xbf)]&&h[at(0x11d,0xc8)]['get'](DurationVar)&VariableInputState[at(0xc7,0x94)]){const k=yield ProposedOrPrevious;yield*this[at(0x56,0x7d)](k,f);const l=yield*this[at(0x8a,0xba)]();const m=yield this['$'][at(0x5a,0x69)];return l?k>m?m:k:k;}if(!h['hasTimePhasedInput']){const n=yield ProposedOrPrevious;yield*this[at(0x38,0x7d)](n,f);return n;}else if(h[at(0x93,0xbf)]){const o=yield*this[at(0xc5,0xba)]();const p=yield this['$']['proposedAssignmentDuration'];if(o){return p;}else{return Math[at(0x19,0x34)](p,yield ProposedOrPrevious);}}else{throw new Error(at(-0x1d,0x33));}}}*['calculateEffort'](){const d=yield this['$'][au(0x2d3,0x307)];function au(a,b){return ab(a,b-0x131);}if(d[au(0x29d,0x2db)]>0x0||(yield this['$'][au(0x31a,0x32a)]))return yield*super[au(0x314,0x358)]();else{const e=yield*this[au(0x2b6,0x2f5)]();const f=yield this['$'][au(0x343,0x33a)];if(e===SchedulingMode[au(0x321,0x304)]){if(f['size']>0x0){if(yield*this[au(0x346,0x361)]()){const g=yield ProposedOrPrevious;const h=yield PreviousValueOf(this['$'][au(0x32f,0x33e)]);if(g<=h){return g;}else{const i=yield this['$'][au(0x32a,0x33b)];yield*this['expandTrailingAssigmentsByEffort'](g,h,i[au(0x2ea,0x2ca)]===Direction[au(0x2bd,0x30e)]);return g;}}else{return yield*this[au(0x29d,0x2ce)]();}}else{return yield*super['calculateEffort']();}}else{return yield*this[au(0x2f3,0x2ce)]();}}}*['calculateEffortPure'](){function av(a,b){return ab(b,a-0x33e);}if(yield this['$'][av(0x537,0x586)]){return yield*super[av(0x4db,0x4dd)]();}const d=yield this['$'][av(0x4e7,0x505)];if(d[av(0x4e8,0x4d1)]>0x0){return yield*this[av(0x521,0x532)]();}else{const e=yield ProposedOrPreviousValueOf(this['$'][av(0x54b,0x529)]);if(e===void 0x0){return yield*this[av(0x4ef,0x53a)](yield this['$']['startDate'],yield this['$'][av(0x53e,0x513)]);}else{return e;}}}*[ab(0x192,0x1e3)](){let d=0x0;const e=yield this['$'][aw(-0x11d,-0xd8)];for(const f of e){d+=yield*this['getProject']()[aw(-0xa4,-0xa1)](yield f['$'][aw(-0xb9,-0x8b)],yield f['$'][aw(-0xaf,-0x88)],TimeUnit[aw(-0xb8,-0x86)]);}function aw(a,b){return ab(b,a- -0x2c6);}return yield*this['getProject']()['$convertDuration'](d,TimeUnit[aw(-0xb8,-0xf5)],yield this['$'][aw(-0xaf,-0x85)]);}*[ab(0x1be,0x197)](d){function ax(a,b){return ab(b,a- -0x28b);}return yield*d[ax(-0xf4,-0x126)](null);}*[ab(0x1dd,0x1f8)](d){function ay(a,b){return ab(a,b- -0x393);}if(yield*this[ay(-0x143,-0x192)]()){const e=this;const f=yield this['$'][ay(-0x15f,-0x186)];return function*(g){function az(a,b){return ay(a,b-0x449);}return yield*e[az(0x260,0x296)](g,d,f);};}else{return yield*super[ay(-0x1cd,-0x19b)](d);}}*[ab(0x225,0x201)](){const d=yield*this[aA(0x122,0xda)]();function aA(a,b){return ab(b,a- -0xa2);}const e=yield this['$'][aA(0x143,0x18f)];return d!==SchedulingMode[aA(0x164,0x159)]&&d!==SchedulingMode[aA(0x131,0x133)]&&(e||d===SchedulingMode[aA(0x114,0xf3)])&&!(yield*this[aA(0x149,0x122)]())&&!(yield*this[aA(0x179,0x19a)]())||d===SchedulingMode[aA(0x10b,0xce)]&&(yield*this['isChangingOnlyEffortOnAssignment']())&&(yield*this[aA(0x159,0x14c)]());}*[ab(0x229,0x223)](){function aB(a,b){return ab(a,b-0x11d);}if(yield*this[aB(0x2f9,0x31e)]()){return(yield this['$'][aB(0x37a,0x32a)])>0x0;}else{return yield*super[aB(0x319,0x340)]();}}*[ab(0x1e0,0x1df)](d,e=!![]){const f=yield this['$']['proposedAssignmentDuration'];if(f==null)return;function aC(a,b){return ab(b,a-0x1d3);}if(f>d){}else if(f<d){if(e){const g=yield PreviousValueOf(this['$'][aC(0x3d3,0x395)]);const h=yield*this['calculateProjectedXDateWithDuration'](g,!![],d-f,void 0x0,{'purpose':'positioning'});yield*this[aC(0x408,0x3dc)](g,h,e);}else{const i=yield PreviousValueOf(this['$'][aC(0x3b5,0x3ad)]);const j=yield*this[aC(0x3d8,0x412)](i,![],d-f,void 0x0,{'purpose':aC(0x3a3,0x3f4)});yield*this[aC(0x408,0x3d5)](i,j,e);}}}*[ab(0x230,0x235)](d,e,f=!![]){if(d[aD(0x128,0x168)]()===e['getTime']()){return;}function aD(a,b){return ab(b,a- -0x9e);}const g=yield this['$'][aD(0x10b,0x112)];const h=[];for(const i of g){if(yield*i[aD(0x18a,0x19a)]()){if(f){const j=yield PreviousValueOf(i['$'][aD(0x162,0x129)]);if(j&&j[aD(0x128,0x115)]()===d['getTime']())h[aD(0x12e,0x118)](i);}else{const k=yield PreviousValueOf(i['$']['startDate']);if(k&&k[aD(0x128,0xf1)]()===d['getTime']())h[aD(0x12e,0x155)](i);}}}this[aD(0x17a,0x137)]['ion']({'commitFinalized':{'fn':()=>{function aE(a,b){return aD(b-0x349,a);}h[aE(0x4cc,0x4e8)](l=>{function aF(a,b){return aE(a,b-0x48);}this[aF(0x4fb,0x4c7)][aF(0x493,0x4e2)](f?l['$'][aF(0x53d,0x4f3)]:l['$'][aF(0x4c0,0x4d5)],e,![]);});},'once':!![]}});}*[ab(0x1e0,0x1cd)](d,e,f=!![]){const g=f?yield PreviousValueOf(this['$']['endDate']):yield PreviousValueOf(this['$'][aG(0x578,0x557)]);const h=yield this['$'][aG(0x53f,0x525)];const i=new Set();for(const l of h){if(yield*l[aG(0x5be,0x571)]()){if(f){const m=yield PreviousValueOf(l['$'][aG(0x596,0x5e1)]);if(m&&m[aG(0x55c,0x532)]()===g['getTime']())i[aG(0x558,0x528)](l);}else{const n=yield PreviousValueOf(l['$'][aG(0x578,0x59c)]);if(n&&n[aG(0x55c,0x57c)]()===g[aG(0x55c,0x523)]())i[aG(0x558,0x54d)](l);}}}function aG(a,b){return ab(b,a-0x396);}const j=yield*this['collectAssignmentsByCalendar'](function*(o){function aH(a,b){return aG(a-0x42,b);}return i['has'](o)||!(yield*o[aH(0x600,0x5fa)]());});const k=yield*this[aG(0x576,0x5ad)](g,f,d-e,void 0x0,void 0x0,j);this[aG(0x5ae,0x57c)][aG(0x530,0x571)]({'commitFinalized':{'fn':()=>{i['forEach'](o=>{function aI(a,b){return _enb(b-0x385,a);}this[aI(0x5ae,0x576)]['write'](f?o['$'][aI(0x54f,0x5a2)]:o['$'][aI(0x53f,0x584)],k,![]);});},'once':!![]}});}*[ab(0x1e3,0x1d7)](){return!![];}*[ab(0x206,0x214)](){function aJ(a,b){return ab(b,a-0x339);}const d=yield this['$'][aJ(0x543,0x570)];return d[aJ(0x4d2,0x4a3)]===Direction[aJ(0x516,0x540)]?yield*this[aJ(0x4de,0x48f)](yield this['$'][aJ(0x564,0x566)],(yield*this['hasPhantomTimePhasedAssignments']())?yield*this[aJ(0x54e,0x4fd)]():yield this['$']['maxAssignmentProposedEndDate'],void 0x0,{'isForward':!![]}):yield*this['calculateProjectedDuration'](yield this['$'][aJ(0x4f0,0x4f4)],yield this['$'][aJ(0x52a,0x500)],void 0x0,{'isForward':![]});}*['calculateProjectedDuration'](d,e,f,g,...h){const i=yield this['$'][aK(-0x129,-0x123)];function aK(a,b){return ab(a,b- -0x32d);}const j=g?.['isForward']!==void 0x0?g:i[aK(-0x17d,-0x194)]===Direction['Forward']?Object[aK(-0xd5,-0xfe)]({},g,{'isForward':!![]}):Object[aK(-0xe3,-0xfe)]({},g,{'isForward':![]});return yield*super[aK(-0x160,-0x188)](d,e,f,j,...h);}*[ab(0x22b,0x202)](){return yield*this['collectAssignmentsByCalendar'](function*(d){function aL(a,b){return _enb(b- -0xb1,a);}return!(yield*d[aL(0x150,0x194)]());});}*['calculateAssignmentsByCalendar'](){function aM(a,b){return ab(b,a- -0xe4);}return yield*this[aM(0x12f,0xe4)]();}*['collectAssignmentsByCalendar'](d){const e=yield this['$'][aN(0x4ba,0x4ff)];const f=yield this['$'][aN(0x4bd,0x472)];const g=this[aN(0x50b,0x53c)]();const h=yield*this[aN(0x4e2,0x500)]();const i=(yield this['$']['ignoreResourceCalendar'])||h&&!g[aN(0x4cd,0x51e)];function aN(a,b){return ab(b,a-0x314);}const j=new Map();for(const k of f){if(!d||(yield*d(k))){const l=yield k['$'][aN(0x4c6,0x4b4)];const m=i||(yield k['$']['ignoreResourceCalendar']);if(l){const n=m?e:yield l['$'][aN(0x4ba,0x46e)];let o=j[aN(0x4b3,0x4ca)](n);if(!o){o=[];j['set'](n,o);}o[aN(0x4e0,0x4f6)](k);}}}return j;}*[ab(0x1c8,0x1e8)](d,e){const f=d[aO(0x2b,0x52)]??'positioning';if(f===aO(0x4f,0x8a)||(yield*this['hasOnlyRegularAssignments']())||d['ignoreSegments']||(yield this['$']['isSegmented'])){return yield*super['forEachAvailabilityInterval'](d,e);}const g=d[aO(0x9c,0x51)]!==![];const h=yield this['$'][aO(0x25,0x27)];const i=this['getProject']();const j=yield*this[aO(0x4d,0xe)]();function aO(a,b){return ab(b,a- -0x181);}const k=yield this['$'][aO(0x5a,0x45)];const l=yield this['$']['effectiveCalendarsCombination'];const m=(yield this['$']['ignoreResourceCalendar'])||d['ignoreResourceCalendar'];const n=d[aO(0x8a,0xae)]??![];const o=i[aO(0x7e,0x9b)];if(o){d=Object[aO(0xae,0x5c)]({'maxRange':o},d);}const p=yield this['$'][aO(0x63,0xb8)];const q=yield*p(g,g?d[aO(0x61,0x8f)]:d[aO(0x7f,0xa1)]);let r=g?0x0:q[aO(0xa8,0x89)]['length']-0x1;let s=g?d['startDate']:d[aO(0x7f,0x39)];const t=new Set();const u=l[aO(0x67,0xa6)](d,(v,w,x)=>{const y=x[aP(0x1b6,0x18f)]();const z=x['getCalendarsWorking']();function aP(a,b){return aO(b-0x12f,a);}r=q[aP(0x22c,0x1df)](g,r,s,g?v:w,t,()=>{});s=g?v:w;if(r===-0x1)return![];r=q['move'](g,r,s,g?w:v,t,(A,B,C)=>{function aQ(a,b){return aP(b,a-0x14c);}if(y[aQ(0x299,0x2b3)](h)&&(n||someInSet(C,D=>{function aR(a,b){return aQ(a-0x259,b);}return m||D[aR(0x543,0x54b)]||y[aR(0x4f2,0x4eb)](D['resource'][aR(0x4f9,0x50d)])||j&&!i[aR(0x50c,0x549)];})||z[aQ(0x2ef,0x2c7)](D=>k['has'](D)))){if(e(A,B,x,C)===![])return![];}});s=g?w:v;if(r===-0x1)return![];});return u;}*[ab(0x1f9,0x1a4)](){const d=yield this['$']['assigned'];function aS(a,b){return ab(b,a-0xde);}for(const e of d){if(yield*e[aS(0x2a6,0x275)]())return![];}return!![];}*[ab(0x1aa,0x1ed)](){function aT(a,b){return ab(b,a-0x9);}const d=yield this['$'][aT(0x237,0x1f1)];return d[aT(0x1f6,0x1fb)];}*[ab(0x220,0x21c)](){const d=yield this['$'][aU(0x79,0xb5)];function aU(a,b){return ab(a,b- -0x179);}return d[aU(0xf4,0xa3)];}*[ab(0x1f2,0x1fa)](){const d=yield this['$'][aV(-0x70,-0x23)];function aV(a,b){return ab(a,b- -0x251);}return d[aV(-0x7a,-0x57)];}*[ab(0x235,0x1fe)](){let d=MAX_DATE;const e=yield this['$'][aW(0x1eb,0x1df)];for(const f of e){const g=yield f[aW(0x253,0x265)]['$'][aW(0x224,0x20a)];if(g&&g<d)d=g;}function aW(a,b){return ab(b,a-0x42);}return d[aW(0x208,0x1e7)]()-MAX_DATE[aW(0x208,0x1c5)]()?d:null;}*['calculateMaxAssignmentProposedEndDate'](){let d=MIN_DATE;function aX(a,b){return ab(a,b- -0x30e);}const e=yield this['$'][aX(-0x17c,-0x165)];for(const f of e){const g=yield f[aX(-0x108,-0xfd)]['$'][aX(-0xf1,-0x10e)];if(g&&g>d)d=g;}return d[aX(-0x12b,-0x148)]()-MIN_DATE['getTime']()?d:null;}*[ab(0x25a,0x215)](){let d=MIN_DATE;const e=yield this['$'][aY(-0x11a,-0x158)];for(const f of e){const g=(yield*f[aY(-0xc8,-0xd9)]())?(yield*f[aY(-0x136,-0x139)]())?yield f[aY(-0xf7,-0xf0)]['$'][aY(-0x150,-0x101)]:yield f['$']['phantomEndDate']:null;if(g&&g>d)d=g;}function aY(a,b){return ab(a,b- -0x301);}return d[aY(-0xff,-0x13b)]()-MIN_DATE[aY(-0x171,-0x13b)]()?d:null;}*[ab(0x171,0x1b1)](d,e,f){const g=yield*this[aZ(0x17e,0x170)]();if(g||(yield this['$']['isSegmented'])){return yield*super[aZ(0x188,0x134)](d,e,f);}if(d==null||e==null||d>e)return null;const h=f?f:yield this['$'][aZ(0x187,0x15e)];const i=new Map();for(const [l,m]of h){let n=0x0;for(const o of m){n+=(yield o['$'][aZ(0x1e2,0x1b5)])??0x64;}i[aZ(0x12f,0x16d)](l,n);}let j=0x0;const k=Object[aZ(0x179,0x1b2)](yield*this['getBaseOptionsForEffortCalculations'](),{'startDate':d,'endDate':e},{'purpose':'progressing'});function aZ(a,b){return ab(a,b- -0x7d);}yield*this[aZ(0x127,0x16b)](k,(p,q,r,s)=>{const t=r[b0(-0x22e,-0x269)]();const u=p[b0(-0x203,-0x1cb)](),v=q[b0(-0x203,-0x1ce)](),w=v-u;function b0(a,b){return aZ(b,a- -0x34c);}let x=0x0;for(const y of t){x+=i[b0(-0x22a,-0x1e9)](y)||0x0;}if(!f){s[b0(-0x18c,-0x18f)](z=>{function b1(a,b){return b0(a-0x50b,b);}x+=z[b1(0x374,0x379)];});}j+=x*w*0.01;});return yield*this[aZ(0x13e,0x17a)]()[aZ(0x1b5,0x1a5)](j,TimeUnit[aZ(0x1ab,0x191)],yield this['$'][aZ(0x1af,0x19a)]);}*['calculateProjectedXDateWithDuration'](d,e=!![],f,g,h){const i=yield*super['calculateProjectedXDateWithDuration'](d,e,f,g,h);if(yield this['$'][b2(0x1b,0x51)])return i;const j=yield*this['hasOnlyTimePhasedAssignments']();function b2(a,b){return ab(a,b- -0x1a8);}if(j){const k=yield this['$'][b2(0xb7,0x62)];if(k[b2(-0xf,-0xf)]===Direction['Forward']&&e===![]){const l=yield this['$'][b2(0xa5,0x5f)];const m=l['minOffset'];if(m>0x0){return yield*l[b2(0x1a,0x1d)][b2(0x74,0x5d)](i,![],m,TimeUnit[b2(0x95,0x66)]);}}else if(k[b2(0x13,-0xf)]===Direction[b2(0x38,0x8c)]&&e===!![]){const n=yield this['$'][b2(0xb7,0x8f)];const o=n[b2(0x2d,0xc)];if(o>0x0){return yield*n['minAssignment']['calculateProjectedXDateWithDuration'](i,!![],o,TimeUnit[b2(0x8a,0x66)]);}}}return i;}*[ab(0x22f,0x203)](){const d=yield*this[b3(-0x182,-0x176)]();function b3(a,b){return ab(b,a- -0x346);}if(d===SchedulingMode[b3(-0x140,-0x168)]){return{'ignoreResourceCalendar':!![],'ignoreTimePhasedData':!![]};}else{return yield*b['getBaseOptionsForDurationCalculations']['call'](this);}}*[ab(0x1ed,0x1e0)](d,e=!![],f,g,h,i){if(yield this['$'][b4(-0x4b,-0x22)]){return yield*super[b4(-0x64,-0x3b)](d,e,f,g,h,i);}f=f!==void 0x0?f:yield this['$'][b4(0x28,-0xe)];g=g!==void 0x0?g:yield this['$'][b4(-0x22,-0x4)];const j=yield*this[b4(-0x2,-0x24)]()[b4(-0x11,0x7)](f,g,TimeUnit['Millisecond']);if(d==null||f==null)return null;let k=d[b4(-0x4d,-0x55)]();let l=j;if(l===0x0)return new Date(k);function b4(a,b){return ab(a,b- -0x21b);}const {zeroDurationMsThreshold:m}=this;const n=Object[b4(0x21,0x14)](yield*this['getBaseOptionsForDurationCalculations'](),e?{'startDate':d,'isForward':e}:{'endDate':d,'isForward':e},{'purpose':b4(-0x31,-0x51)},h);const o=yield*this[b4(-0x7f,-0x2e)]();if(h?.[b4(-0x54,-0x6f)]===b4(-0x3f,-0x4b)||o){const s=new Map();const t=yield this['$'][b4(-0x66,-0x72)];let u=0x0;const v=new Map();for(const y of t){const z=(yield y['$'][b4(-0x2a,0x17)])??0x64;u+=z;v[b4(-0x55,-0x31)](y,z);}if(u===0x0){return yield*super[b4(0x1a,-0x3b)](d,e,f,g,h,i);}for(const A of t){s[b4(0x1b,-0x31)](A,j*v['get'](A)/u);}const w=yield this['$'][b4(-0x3e,-0x12)];const x=new Map();for(const [B,C]of w){for(const D of C){x[b4(-0x23,-0x31)](D,B);}}yield*this[b4(-0x12,-0x33)](n,(E,F,G)=>{const H=E[b5(-0x1d7,-0x1b2)](),I=F['getTime'](),J=I-H;function b5(a,b){return b4(b,a- -0x182);}for(const K of t){const L=x[b5(-0x1fe,-0x202)](K);if(G[b5(-0x1bc,-0x1c1)]()['get'](L)){const M=s[b5(-0x1fe,-0x228)](K);let N=v[b5(-0x1fe,-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[b5(-0x1ff,-0x1db)](K);}else{s[b5(-0x1b3,-0x1fa)](K,M-O);}}}if(s[b5(-0x1f3,-0x1d3)]===0x0)return![];});return new Date(k);}const p=i?i:yield this['$'][b4(0x12,-0x40)];const q=new Map();(yield this['$'][b4(-0x66,-0x12)])['forEach']((E,F)=>{function b6(a,b){return b4(a,b- -0x130);}E[b6(-0xd1,-0x10e)](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['$'][b4(-0x37,0x17)])??0x64;}r[b4(-0x3b,-0x31)](E,G);}yield*this[b4(-0x88,-0x33)](n,(I,J,K,L)=>{const M=K[b7(0x35a,0x347)]();const N=K[b7(0x3a0,0x359)]();const O=I[b7(0x385,0x39e)](),P=J[b7(0x385,0x37e)](),Q=P-O;let R=0x0;function b7(a,b){return b4(b,a-0x3da);}for(const U of M){R+=r[b7(0x35e,0x32f)](U)||0x0;}if(!i){L[b7(0x3fc,0x43d)](V=>{function b8(a,b){return b7(b-0x186,a);}if(N[b8(0x50b,0x4e4)](q[b8(0x4df,0x4e4)](V)))R+=V[b8(0x54b,0x577)];});}const S=R*Q*0.01;const T=l-S;if(!T||T<m){k=e?O+l/(0.01*R):P-l/(0.01*R);return![];}else{l-=S;}});return new Date(k);}}function ab(a,b){return _enZ(a,b- -0x29);}__decorate([field({'lazy':!![]})],c[ab(0x17d,0x1a3)],ab(0x21c,0x22c),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x1ac,0x1a3)],ab(0x220,0x1da),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x1ef,0x1a3)],ab(0x268,0x22b),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x178,0x1a3)],ab(0x1cc,0x1f1),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x153,0x1a3)],ab(0x199,0x1b7),void 0x0);__decorate([field({'lazy':!![]})],c['prototype'],ab(0x200,0x208),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x1da,0x1a3)],'proposedAssignmentDuration',void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x19c,0x1a3)],ab(0x244,0x22e),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x154,0x1a3)],ab(0x16a,0x1bd),void 0x0);__decorate([field({'identifierCls':TimePhasedEventAssignmentDispatcherIdentifier})],c[ab(0x1d4,0x1a3)],ab(0x1f3,0x1f4),void 0x0);__decorate([field()],c[ab(0x16a,0x1a3)],ab(0x1d2,0x1ab),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x1ef,0x1a3)],'proposedStartOffsets',void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x152,0x1a3)],ab(0x261,0x237),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x177,0x1a3)],ab(0x18e,0x1db),void 0x0);__decorate([field({'lazy':!![]})],c[ab(0x1d9,0x1a3)],ab(0x1bb,0x1e4),void 0x0);__decorate([calculate(ab(0x189,0x1bd))],c['prototype'],ab(0x23c,0x21e),null);__decorate([calculate(ab(0x239,0x22c))],c[ab(0x162,0x1a3)],ab(0x1fd,0x1fd),null);__decorate([calculate(ab(0x207,0x1da))],c['prototype'],ab(0x202,0x219),null);__decorate([calculate(ab(0x217,0x22b))],c[ab(0x1da,0x1a3)],ab(0x1ac,0x1b3),null);__decorate([calculate(ab(0x1ed,0x1f1))],c[ab(0x150,0x1a3)],'calculateProposedEndDateMax',null);__decorate([calculate(ab(0x22a,0x207))],c['prototype'],ab(0x250,0x236),null);__decorate([calculate('proposedEndOffsets')],c[ab(0x170,0x1a3)],ab(0x1c7,0x1d1),null);__decorate([calculate(ab(0x27c,0x22e))],c[ab(0x16b,0x1a3)],ab(0x1e1,0x1c9),null);__decorate([calculate(ab(0x1ef,0x1ab))],c['prototype'],ab(0x1f3,0x1bf),null);__decorate([calculate('timePhasedDispatcher')],c['prototype'],ab(0x1a4,0x1cf),null);__decorate([calculate('timePhasedIntervalsCache')],c[ab(0x1b7,0x1a3)],ab(0x20e,0x1d2),null);__decorate([calculate(ab(0x1bb,0x1cb))],c[ab(0x165,0x1a3)],ab(0x1dc,0x214),null);__decorate([calculate('regularAssignmentsByCalendar')],c[ab(0x18e,0x1a3)],ab(0x244,0x202),null);__decorate([calculate(ab(0x19b,0x1b7))],c[ab(0x1a1,0x1a3)],'calculateMinAssignmentProposedStartDate',null);__decorate([calculate('maxAssignmentProposedEndDate')],c[ab(0x156,0x1a3)],ab(0x228,0x21f),null);return c;}){}export{SchedulerProHasTimePhasedAssignmentsMixin,TimePhasedEventAssignmentTypeSelector,TimePhasedEventSelector,TimePhasedIntervals};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function V(a,b){return _enb(b-0x234,a);}while(!![]){try{const d=parseInt(V(0x408,0x3a6))/0x1*(-parseInt(V(0x314,0x311))/0x2)+parseInt(V(0x306,0x30c))/0x3*(-parseInt(V(0x3a3,0x354))/0x4)+-parseInt(V(0x352,0x38b))/0x5*(parseInt(V(0x363,0x32d))/0x6)+-parseInt(V(0x39a,0x378))/0x7*(parseInt(V(0x364,0x34d))/0x8)+-parseInt(V(0x331,0x344))/0x9*(parseInt(V(0x368,0x397))/0xa)+parseInt(V(0x31d,0x309))/0xb+parseInt(V(0x34f,0x2f5))/0xc*(parseInt(V(0x360,0x3a4))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xb3afd));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[W(-0x33,0x2)](b,e):f,j;function W(a,b){return _enb(b- -0x113,a);}if(typeof Reflect===W(0x9c,0x5e)&&typeof Reflect[W(-0x23,-0x32)]==='function')h=Reflect[W(0x16,-0x32)](a,b,e,f);else for(var k=a[W(-0x9,-0x16)]-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[W(0x4c,0x20)](b,e,h),h;};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xc1;let f=c[d];return f;};return _enb(a,b);}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';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{*[X(-0x28c,-0x295)](){function Y(a,b){return X(b-0x604,a);}return yield this[Y(0x399,0x3ab)]['$']['durationUnit'];}*[X(-0x29f,-0x26c)](){function Z(a,b){return X(a-0x451,b);}return yield this[Z(0x1f8,0x196)]['$']['effortUnit'];}*[X(-0x27b,-0x294)](){function a0(a,b){return X(b-0x3db,a);}return yield this[a0(0x170,0x182)]['$'][a0(0x176,0x126)];}*[X(-0x2d3,-0x2b6)](){function a1(a,b){return X(a-0x53c,b);}return yield this[a1(0x2e3,0x2a8)]['$'][a1(0x268,0x220)];}*[X(-0x2dc,-0x2b1)](){function a2(a,b){return X(b-0x52b,a);}return yield*this[a2(0x2fc,0x2d2)][a2(0x227,0x24f)]();}*[X(-0x251,-0x26d)](){function a3(a,b){return X(a-0x510,b);}return yield*this[a3(0x2b7,0x298)]['hasPreviousValueForUnits']();}*['calculateEffectiveDirection'](){function a4(a,b){return X(b-0x2c5,a);}return yield*this[a4(0x5b,0x6c)][a4(0x54,0x14)]();}*['calculateEffectiveDataOrVisualCalendar'](c){function a5(a,b){return X(a-0x5fa,b);}return yield*this[a5(0x3a1,0x37a)][a5(0x367,0x35b)](c);}*[X(-0x301,-0x335)](){function a6(a,b){return X(a-0x342,b);}const c=new Map();const d=yield this[a6(0xe9,0xfc)]['$']['resource'];if(d){const e=yield d['$'][a6(0x59,0x91)];c[a6(0xbc,0xc9)](e,[this[a6(0xe9,0x13a)]]);}return c;}*[X(-0x2ea,-0x2c0)](){function a7(a,b){return X(a-0x534,b);}return yield this[a7(0x2db,0x296)]['$'][a7(0x24f,0x27f)];}*[X(-0x2cc,-0x314)](){function a8(a,b){return X(b-0x215,a);}return yield*this[a8(0x2,-0x44)][a8(-0xbd,-0xb7)]();}}__decorate([calculate('durationUnit')],b['prototype'],'calculateDurationUnit',null);__decorate([calculate(X(-0x2e3,-0x2c4))],b[X(-0x2cf,-0x30e)],X(-0x29f,-0x2a6),null);__decorate([calculate('effortDriven')],b['prototype'],X(-0x27b,-0x2c1),null);__decorate([calculate(X(-0x2d4,-0x2f1))],b[X(-0x2cf,-0x29f)],'calculateSchedulingMode',null);__decorate([calculate(X(-0x2e5,-0x305))],b[X(-0x2cf,-0x28d)],X(-0x2ea,-0x2aa),null);function X(a,b){return _enb(a- -0x3d3,b);}return b;}){}function _ena(){const bn=['isRemovingAssignmentByPutEffort','isUserTimePhased','getBaseOptionsForDurationCalculations','prepareDispatcher','hasInputOnlyOnEffort','hasProposedValueForAssignmentsField','call','FixedDuration','writeUnits','leaveGraph','direction','9fsOyJH','SchedulerProTimePhasedAssignmentMixin','effort','commitAsync','skipNonWorkingTime','getOwnPropertyDescriptor','addProposedValueFlag','proposedStartDate','calculateStartByDelay','24qqAQZl','Backward','calculateSelector','calculateEffortPure','calculateProposedEndOffsetRaw','effortDriven','proposedStartDateMin','4gCgMuQ','setTimePhasedEffortBatch','calculateEffectiveDirection','hasIdentifier','isTimePhased','version','date','string','writeStartDate','writeEndDate','unlink','phantomEndOffset','phantomEndDate','ownIgnoreResourceCalendar','proposedEndDate','endDate','skipNonWorkingTimeInDurationWhenSchedulingManually','writeIgnoreResourceCalendar','calculateHasOnlyRegularAssignmentsRaw','defineProperty','calculateEffortUnit','has','eventSelector','isSegmented','FixedUnits','calculateUnitsByStartEndAndEffort','defaultConfig','event','calculateStartDate','manuallyScheduled','eventIsSegmented','hasProposedAssignments','calculateEffectiveDataOrVisualCalendar','sort','slice','effectiveSchedulingMode','2443847kOCwAV','proposedTotalUnits','hasInputOnStartDate','calculateDurationUnit','_calculateEffortData','baseRevision','putTimePhasedEffortBatch','hasEffortInput','calculateEndOffset','set','assign','calculateStartOffset','hasEndDateValue','selector','duration','fields','calculateProjectedXDateByEffort','putTimePhasedEffort','proposedStartOffset','4161545NxJWhn','calculateEffortDriven','dispatcher','ion','calculateEffort','$name','Unknown\x20formula\x20for\x20`effort`','useEventAvailabilityIterator','endOffset','calculatePhantomEndDate','PROPOSED_','startOffset','9904340anLiZR','get','setTimePhasedEffort','isPhantomTimePhased','calculateEndDate','resource','collectInfo','_changeAssignmentData','Forward','calculateProposedStartOffsetRaw','proposedStartOffsets','formulaId','assigned','2015CWKrxv','object','53zGKxMd','calculatePhantomStartDate','enterGraph','calculateSchedulingModeForUnitsCalculation','eventEffortDriven','hasInputOnUnits','number','getTime','assignment','isDurationDefinedByEffort','proposedEndDateMax','getBaseOptionsForEffortCalculations','run','calculateEffortProposed','Normal','calculateProportionalEffortByUnits','hasPreviousValueForUnits','intervalStoreClass','maxAssignmentProposedEndDate','304068ZKnlWS','graph','eventEffectiveSchedulingMode','filter','proposedMirror','writeEffort','timePhasedDispatcher','_proposedMirror','calculateProportionalEffort','forEachAvailabilityInterval','durationUnit','project','Millisecond','proposedEndOffset','hasInputOnEffort','minOffset','hasInputOnDuration','calculateAssignmentsByCalendar','prepareDispatcherForAssignmentsFixedDuration','constructor','12928388HnoSTs','addKeepIfPossibleFlag','splice','3506835EVnsUw','push','write','doCalculateAssignmentEffort','calculateEndByDelay','12370WCAacj','calculateProjectedDuration','isTimePhasedStructurally','calculateUnitsForNewAssignment','decorate','$convertDuration','writeDuration','hasInputOnTimePhasedData','assignmentsByCalendar','effectiveDirection','isPhantomTimePhasedStructurally','getProject','calculateIgnoreResourceCalendar','effectiveCalendar','isChangingOnlyDuration','minAssignmentProposedStartDate','proposedMirrorClass','ignoreResourceCalendar','calculateProjectedXDateWithDuration','effortUnit','size','hasInputOnEndDate','phantomStartOffset','calculatePhantomStartOffset','hasElapsedDuration','hasSomeInput','hasProposedValueForUnits','calculateProportionalEffortByEffort','6czVbAE','calculatePhantomEndOffset','isDurationDefinedByEffortStructurally','units','length','startDate','schedulingMode','calculateSchedulingMode','phantomStartDate','getCalendarsWorking','hasStartDateValue','prototype'];_ena=function(){return bn;};return _ena();}class TimePhasedAssignmentSelector{constructor(){this[a9(0x377,0x394)]=null;function a9(a,b){return _enb(a-0x1fd,b);}this[a9(0x338,0x306)]=null;this[a9(0x333,0x325)]=null;this[a9(0x2c0,0x29f)]=null;this[a9(0x373,0x362)]=![];this[a9(0x33b,0x37c)]=![];this[a9(0x300,0x2b5)]=![];this[a9(0x34d,0x336)]=![];this['hasDurationValue']=![];this[a9(0x343,0x330)]=![];this[a9(0x2ef,0x2a6)]=![];this['hasInputOnDuration']=![];this['hasInputOnEffort']=![];this[a9(0x374,0x322)]=![];this[a9(0x37f,0x3b9)]=![];}get[_enaa(-0x139,-0x188)](){function ab(a,b){return _enaa(b-0x97,a);}return!this[ab(-0xe,-0x65)]&&!this[ab(-0xa1,-0xb9)]&&!this[ab(-0x109,-0xda)]&&this[ab(-0xa2,-0xdc)]&&!this[ab(0xa,-0x34)];}get[_enaa(-0x14c,-0x16e)](){function ac(a,b){return _enaa(b- -0xb4,a);}return this['hasInputOnStartDate']||this[ac(-0x1f3,-0x204)]||this['hasInputOnDuration']||this[ac(-0x207,-0x227)]||this[ac(-0x189,-0x17f)];}get[_enaa(-0x15e,-0x1a3)](){function ad(a,b){return _enaa(b-0x2fe,a);}return this[ad(0x22f,0x202)]||this[ad(0x1a4,0x1ae)]||this[ad(0x149,0x18d)];}get[_enaa(-0x13c,-0x149)](){function ae(a,b){return _enaa(b-0x63,a);}return(this[ae(-0xc5,-0xdc)]?0x1:0x0)+(this[ae(-0x6c,-0x8f)]?0x1:0x0)+(this['hasDurationValue']?0x1:0x0)>=0x2;}get[_enaa(-0x11e,-0x132)](){function af(a,b){return _enaa(a- -0x16c,b);}return this[af(-0x2a8,-0x294)]||this[af(-0x233,-0x205)];}get[_enaa(-0x163,-0x143)](){function ag(a,b){return _enaa(a-0x12,b);}return this[ag(-0x12a,-0x141)]||this['isDurationDefinedByEffortStructurally'];}get[_enaa(-0xdc,-0xb2)](){function ah(a,b){return _enaa(a-0x20f,b);}return this['isTimePhased']&&!this[ah(0xd3,0xec)];}get[_enaa(-0x15b,-0x140)](){return this['isTimePhasedStructurally']&&!this['isUserTimePhased'];}get[_enaa(-0x147,-0x110)](){const a=this['event'];function ai(a,b){return _enaa(a-0x2bc,b);}if(a){const b=this[ai(0x13d,0xf6)];const c=this[ai(0x1f0,0x1eb)];return b!==SchedulingMode[ai(0x186,0x147)]&&b!==SchedulingMode[ai(0x1fa,0x1b3)]&&(c||b===SchedulingMode['FixedEffort']);}else{return![];}}get[_enaa(-0xc7,-0x11b)](){const a=this['event'];function aj(a,b){return _enaa(b-0x1cc,a);}if(a){const b=this['eventEffectiveSchedulingMode'];return this[aj(0xc0,0x85)]&&!this[aj(0xee,0xc0)][aj(0xb0,0x75)]&&!this[aj(0x10d,0xc0)]['isChangingOnlyEndDate']||b===SchedulingMode[aj(0x115,0xc2)]&&this[aj(0xa,0x59)]&&!this[aj(0xfb,0x101)]&&this[aj(0xbd,0x10c)];}else{return![];}}*[_enaa(-0xd9,-0x93)](){const a=this['assignment'];this[ak(-0x10b,-0xe5)]=(yield ProposedOrPreviousValueOf(a['$'][ak(-0xe3,-0xea)]))!=null;this['hasEndDateValue']=(yield ProposedOrPreviousValueOf(a['$'][ak(-0xf0,-0xb9)]))!=null;this['hasDurationValue']=(yield ProposedOrPreviousValueOf(a['$'][ak(-0xf3,-0x96)]))!=null;this[ak(-0x64,-0xa2)]=yield HasProposedNotPreviousValue(a['$'][ak(-0x11b,-0xea)]);this[ak(-0xc8,-0xf6)]=yield HasProposedNotPreviousValue(a['$'][ak(-0xad,-0xb9)]);this['hasInputOnDuration']=yield HasProposedNotPreviousValue(a['$'][ak(-0x5c,-0x96)]);this[ak(-0xde,-0x119)]=yield HasProposedNotPreviousValue(a['$'][ak(-0xe8,-0xd6)]);this[ak(-0x90,-0x71)]=yield HasProposedNotPreviousValue(a['$'][ak(-0x90,-0xec)]);this[ak(-0x72,-0x66)]=yield*a[ak(-0x67,-0x66)]();function ak(a,b){return _enaa(b-0x5a,a);}const b=this[ak(-0x4c,-0xad)]=yield a['$']['event'];if(b){this[ak(-0xa0,-0xb2)]=yield b['$'][ak(-0x88,-0x97)];this[ak(-0x153,-0x125)]=yield*b[ak(-0xc4,-0xa5)]();this[ak(-0x94,-0x72)]=yield b['$']['effortDriven'];this[ak(-0x5b,-0xaa)]=yield b['$'][ak(-0xd4,-0xb1)];}}}class SchedulerProTimePhasedAssignmentMixin extends Mixin([FixedDurationMixin,SchedulerProAssignmentMixin],a=>{const b=a[al(0xa1,0x7c)];class c extends a{constructor(){super(...arguments);function am(a,b){return al(a- -0x58,b);}this[am(0x32,0x88)]=TimePhasedAssignmentMirror;this[am(0xd,-0x45)]=void 0x0;}[al(0xe5,0xd0)](d,e,f){let g,h;if(d[an(0x597,0x53d)]){g=d[an(0x594,0x53d)](an(0x483,0x49a),e,f);h=d[an(0x4ff,0x4af)];}else{g=this[an(0x4ee,0x53d)](an(0x4d1,0x49a),e,f);h=this[an(0x47a,0x4af)];}function an(a,b){return al(b-0x422,a);}return{'startDate':e,'endDate':f,'effort':g,'effortUnit':h};}[al(0x107,0x102)](d,e,f){let g;if(d[ao(0xb8,0x119)]){g=f[ao(0x12c,0xff)](d);if(!g){g={};f[ao(0xd6,0xe8)](d,g);}}else{g=d;}function ao(a,b){return al(b- -0x2,a);}Object['assign'](g,e);return g;}[al(0xe7,0x126)](d){if(!d[ap(-0xe8,-0x10b)]){return;}const {project:e,resource:f,event:g,durationUnit:h,effortUnit:j}=this;const {assignmentStore:k}=e;const m=g['assigned'];const n=g['startDate'];const o=g[ap(-0xb6,-0x85)];const p=new Map();function ap(a,b){return al(a- -0x182,b);}const q=[];const r=[];const s={'resource':f,'event':g,'durationUnit':h,'effortUnit':j};d=d[ap(-0xa3,-0x95)]()[ap(-0xa4,-0xc5)]((w,x)=>(w[ap(-0xe7,-0x11f)]||n)[ap(-0x6c,-0xc1)]()-(x[ap(-0xe7,-0xbc)]||n)[ap(-0x6c,-0x64)]());const t=[...m][ap(-0x121,-0x137)](w=>w[ap(-0x7d,-0x1f)]===f)[ap(-0xa4,-0xa0)]((w,x)=>(w[ap(-0xe7,-0x126)]||n)['getTime']()-(x[ap(-0xe7,-0x110)]||n)[ap(-0x6c,-0x44)]());let u=0x0;for(const w of d){const {startDate:x,endDate:y}=w;let z=Boolean(w[ap(-0xd3,-0x12d)]);const A=t[ap(-0xa3,-0xbf)]();let B=![];for(let C=u,D=A[ap(-0xe8,-0x142)];C<D;C++){const E=A[C];const F=p[ap(-0x81,-0x36)](E);const G=F?.[ap(-0xe7,-0x130)]||E[ap(-0xe7,-0x13b)]||n;const H=F?.[ap(-0xb6,-0xca)]||E[ap(-0xb6,-0xb1)]||o;let I=C;if(G<y&&H>x){if(!B){u=C;B=!![];}const J=F?.[ap(-0x11a,-0x112)]||E[ap(-0x11a,-0x10b)];if(G>=x&&H<=y){if(z){p['set'](E,w);z=![];}else{r[ap(-0x10c,-0xc3)](E);t[ap(-0x10e,-0x141)](C);}}else{let K;if(z){K={...s,...w};q[ap(-0x10c,-0x166)](K);z=![];}let L=![];if(G<x){const M=this[ap(-0x9d,-0xc2)](E,G,x);if(M[ap(-0xd3,-0x101)]){L=!![];this[ap(-0x7b,-0xa0)](E,M,p);if(K){I++;t[ap(-0x10e,-0xcf)](I,0x0,K);I++;}if(H>y){const N={'resource':f,'event':g,'durationUnit':J,...this[ap(-0x9d,-0xcb)](E,y,H)};if(N['effort']){q['push'](N);t[ap(-0x10e,-0xfd)](I,0x0,N);}}}}if(!L&&H>y){if(K){t[ap(-0x10e,-0xdc)](I,0x0,K);I++;}const O=this[ap(-0x7b,-0xd6)](E,this[ap(-0x9d,-0x69)](E,y,H),p);if(!O[ap(-0xd3,-0xc6)]){}}}}else if(G>=y){u=C;break;}}if(z){const P={...s,...w};q[ap(-0x10c,-0xb4)](P);t[ap(-0x10c,-0xaf)](P);if(!p[ap(-0xf4,-0x9a)]&&t[ap(-0xe8,-0xf9)]===0x1&&!t[0x0][ap(-0xe7,-0xf8)]&&!t[0x0][ap(-0xb6,-0xfc)]){this[ap(-0x7b,-0x23)](t[0x0],{'startDate':n,'endDate':o,'effort':this[ap(-0xd3,-0x119)]},p);}}}let v=[];for(let [Q,R]of p){Object[ap(-0x97,-0xac)](Q,R);}if(q[ap(-0xe8,-0x130)]){q['sort']((S,T)=>S[ap(-0xe7,-0x112)][ap(-0x6c,-0x4e)]()-T[ap(-0xe7,-0xf5)][ap(-0x6c,-0xad)]());if(this[ap(-0xaa,-0x48)][ap(-0xe6,-0x111)]===SchedulingMode['FixedDuration']){for(const S of q){const T=this['run'](ap(-0x105,-0x132),S[ap(-0xe7,-0x126)],S['endDate'],S[ap(-0xd3,-0x128)],S[ap(-0xf5,-0xd3)],S['resource']);delete S[ap(-0xd3,-0xf1)];S[ap(-0xe9,-0xd7)]=T;}}v=k['add'](q);}if(r[ap(-0xe8,-0xbd)]){r['forEach'](U=>{U['effort']=0x0;U[aq(-0x4c,-0x2e)]=0x0;function aq(a,b){return ap(b-0x65,a);}U['$removed']=!![];});e[ap(-0x8b,-0xa4)]({'commitFinalized':{'fn':()=>{function ar(a,b){return ap(b-0x117,a);}e['isRemovingAssignmentByPutEffort']=!![];k['remove'](r);e[ar(0x3e,0x8c)]({'commitFinalized':{'fn':()=>{function as(a,b){return ar(b,a-0x42);}e[as(0x79,0x29)]=![];},'once':!![]}});},'once':!![]}});}return{'added':v,'removed':r,'updated':p};}[al(0xbe,0x8f)](d){this[at(0x8a,0x39)](d);function at(a,b){return al(b- -0xae,a);}return this[at(-0x27,0x2)]();}['putTimePhasedEffort'](d,e,f,g=this[al(0x8d,0x7f)]){function au(a,b){return al(b-0x52,a);}return this[au(0xfe,0x139)]([{'startDate':d,'endDate':e,'effort':f,'effortUnit':g}]);}[al(0x102,0xe1)](d,e,f,g){function av(a,b){return al(b- -0x130,a);}this[av(-0x5b,-0x3e)](d,e,f,g);return this['commitAsync']();}*[al(0xb8,0xe2)](){function aw(a,b){return al(a- -0x361,b);}const d=new TimePhasedAssignmentSelector();d[aw(-0x24a,-0x228)]=this;yield*d[aw(-0x25b,-0x261)]();return d;}*[al(0xf5,0xe9)](){function ax(a,b){return al(a-0x19b,b);}const d=yield this['$'][ax(0x273,0x25b)];if(d&&(yield this['$']['resource'])){const e=yield d['$'][ax(0x237,0x248)];return e===SchedulingMode[ax(0x2b8,0x2d0)]?!![]:yield d['$']['effortDriven'];}else{return![];}}*[al(0x9d,0x88)](){const d=yield this['$'][ay(0x6,-0x54)];function ay(a,b){return al(a- -0xd2,b);}if(d&&(yield this['$'][ay(0x33,0x33)])){const e=yield d['$'][ay(-0x36,-0x3c)];return e===SchedulingMode[ay(0x4b,0x2a)]?SchedulingMode[ay(-0x29,0x31)]:e;}else{return SchedulingMode[ay(0x4b,0x6d)];}}*[al(0x112,0xbb)](d){function az(a,b){return al(a-0x11a,b);}const e=yield this['$'][az(0x1f2,0x241)];if(e&&(yield this['$'][az(0x21f,0x248)])){const f=yield e['$'][az(0x1b6,0x1cd)];return f===SchedulingMode[az(0x237,0x263)]?!(yield*e[az(0x1e9,0x23b)]())?SchedulingMode[az(0x1c3,0x162)]:SchedulingMode['Normal']:f;}else{return SchedulingMode['Normal'];}}get[al(0x62,0x3)](){if(this[aA(-0xdf,-0x102)]!==void 0x0)return this[aA(-0xca,-0x102)];const d=new this[(aA(-0x13f,-0xdd))]();d['assignment']=this;d[aA(-0xa5,-0xfe)]=this[aA(-0xf2,-0xfe)];function aA(a,b){return al(b- -0x167,a);}d['id']=aA(-0xb5,-0x69)+this['id'];if(this[aA(-0x168,-0x108)]){d[aA(-0x8c,-0x56)](this[aA(-0xef,-0x108)]);}return this[aA(-0xc7,-0x102)]=d;}[al(0x111,0x11e)](d){function aB(a,b){return al(a-0x195,b);}super[aB(0x2a6,0x28c)](d);const e=this[aB(0x1fa,0x1af)];if(e&&!e[aB(0x1f4,0x1c4)]){e['enterGraph'](d);}}[al(0xab,0xe1)](d){function aC(a,b){return al(b-0x21e,a);}this['_proposedMirror']?.['leaveGraph'](d);super[aC(0x2ce,0x2c9)](d);}['unlink'](){function aD(a,b){return al(b-0x351,a);}this[aD(0x37f,0x3b6)]?.[aD(0x421,0x418)]();super[aD(0x44e,0x418)]();}[al(0xce,0xaf)](d,e,f,g){function aE(a,b){return al(b- -0x94,a);}e[aE(-0x5b,-0x1d)](this['$'][aE(-0x25,0x36)],g);d['constructor'][aE(0x3c,0xd)][aE(-0x36,-0x1d)][aE(0x1e,0x14)](this,d,e,f,g);}['writeStartDate'](d,e,f,g,h=!![]){if(!(!e['baseRevision'][aF(-0x183,-0x181)](d)&&g==null)){e[aF(-0x19a,-0x1ca)](this[aF(-0x1c8,-0x1df)]['$']['startDate'],g,h);}function aF(a,b){return al(b- -0x241,a);}super[aF(-0x186,-0x17c)](d,e,f,g,h);}['writeEndDate'](d,e,f,g,h=![]){if(!(!e[aG(0x391,0x3c4)]['hasIdentifier'](d)&&g==null)){e[aG(0x322,0x354)](this[aG(0x30d,0x339)]['$'][aG(0x377,0x36e)],g,h);}function aG(a,b){return al(a-0x2ab,b);}super[aG(0x371,0x393)](d,e,f,g,h);}['writeDuration'](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;if(!(!e['baseRevision']['hasIdentifier'](d)&&g==null)){e[aH(0x55,0x5d)](this[aH(-0x2,0x48)]['$'][aH(0x11c,0xd5)],g,h,i);}function aH(a,b){return al(b- -0x1a,a);}super[aH(0x2f,0x66)](d,e,f,g,h,i);}['writeEffort'](d,e,f,g,h){if(g<0x0)g=0x0;if(!(!e['baseRevision'][aI(0x3bc,0x401)](d)&&g==null)){e[aI(0x37c,0x3b8)](this[aI(0x3c1,0x3a3)]['$'][aI(0x3c2,0x3f0)],g,h);}function aI(a,b){return al(b-0x341,a);}super[aI(0x391,0x3a4)](d,e,f,g,h);}['writeUnits'](d,e,f,g){if(g===MissingValue)return;function aJ(a,b){return al(a-0x105,b);}d[aJ(0x176,0x173)][aJ(0x1a6,0x1f0)][aJ(0x17c,0x13b)][aJ(0x1ad,0x1ea)](this,d,e,f,g);}*[al(0xb9,0xae)](){return yield*this['doCalculateAssignmentEffort']();}*['doCalculateAssignmentEffort'](d=null,e=null){function aK(a,b){return al(a-0x1aa,b);}const f=yield this['$']['selector'];if(f['event']&&f[aK(0x26b,0x21f)]){if(!d){d=yield this['$']['startDate'];}if(!e){e=yield this['$'][aK(0x276,0x296)];}return yield*this['calculateProjectedEffort'](d,e);}return yield*super['doCalculateAssignmentProjectedEffort'](d,e);}*[al(0xbf,0xa6)](){const d=yield this['$'][aL(-0xad,-0x98)];function aL(a,b){return al(a- -0x185,b);}if(d){return yield d['$'][aL(-0x102,-0xc6)];}else{return yield*super[aL(-0xc6,-0x96)]();}}*[al(0x86,0x9d)](){const d=yield this['$']['event'];function aM(a,b){return al(a-0x2db,b);}return Boolean(d&&(yield d['$'][aM(0x366,0x310)])||(yield this['$'][aM(0x3a5,0x390)]));}*[al(0xec,0x134)](){const d=yield this['$'][aN(0x48e,0x4d7)];function aN(a,b){return al(b-0x3ff,a);}if(d){const e=yield d['$']['startDate'];const f=yield this['$']['startDate'];return(yield*this[aN(0x46f,0x47a)](e,f,TimeUnit['Millisecond']))??0x0;}else return null;}*[al(0x109,0x119)](){const d=yield this['$'][aO(0x1d6,0x223)];const e=d['event'];function aO(a,b){return al(a-0xe8,b);}if(e){if(d[aO(0x169,0x1bd)]||(yield PreviousValueOf(this['$'][aO(0x1e7,0x227)]))==null){const f=(yield e['$'][aO(0x19c,0x1f5)])??(yield e['$'][aO(0x171,0x1bb)]);const g=yield this['proposedMirror']['$'][aO(0x183,0x150)];return(yield*this['calculateProjectedDuration'](f,g,TimeUnit[aO(0x152,0x19d)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$']['startOffset']);}}else{return null;}}*['calculateProposedStartOffset'](){function aP(a,b){return al(a- -0x114,b);}const d=yield this['$'][aP(-0x26,-0x4a)];const e=d[aP(-0x3c,-0x3b)];if(e){const f=(yield e['$'][aP(-0xa,-0x16)])[aP(-0xa7,-0xbf)]<0x0;if(f||d[aP(-0x93,-0xc1)]||(yield PreviousValueOf(this['$'][aP(-0x15,-0x21)]))==null){const g=yield this['$'][aP(-0x91,-0x8a)];const h=g[aP(-0x68,-0x9b)]===Direction[aP(-0xc,0x1d)]?yield e['$'][aP(-0x58,-0x64)]:yield e['$']['minAssignmentProposedStartDate'];const i=yield this[aP(-0xb2,-0x100)]['$'][aP(-0x79,-0x60)];return(yield*this['calculateProjectedDuration'](h,i,TimeUnit[aP(-0xaa,-0xae)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aP(-0x15,-0x50)]);}}else{return null;}}*[al(0x110,0x13d)](){const d=yield this['$'][aQ(0x44b,0x488)];if(d[aQ(0x4c2,0x472)]&&!d[aQ(0x49a,0x475)]&&(d[aQ(0x4af,0x49d)]||(yield*d[aQ(0x4ab,0x472)][aQ(0x4cb,0x4b2)]()))){return yield*this[aQ(0x478,0x44f)]();}function aQ(a,b){return al(b-0x39a,a);}return null;}*[al(0xfd,0x14c)](){function aR(a,b){return al(a-0xb5,b);}const d=yield this['$'][aR(0x1a3,0x179)];if(d[aR(0x18d,0x1b5)]&&!d['eventIsSegmented']&&(d[aR(0x1b8,0x1a3)]||(yield*d['event'][aR(0x1cd,0x16b)]()))){const e=yield this['$'][aR(0x153,0x162)];if(e){return yield*this[aR(0x1a6,0x19d)](e,!![],yield this['$'][aR(0x164,0x1b1)],yield this['$'][aR(0x142,0x111)]);}}return null;}*[al(0x91,0x99)](){const d=yield this['$'][aS(0x2ed,0x34a)];function aS(a,b){return al(a-0x1ff,b);}if(d[aS(0x2d7,0x275)]&&!d[aS(0x2da,0x296)]&&(d[aS(0x302,0x34d)]||(yield*d[aS(0x2d7,0x2e0)][aS(0x317,0x2c2)]()))){return 0x0;}else return null;}*[al(0x97,0xcc)](){const d=yield this['$']['selector'];if(d['event']&&!d[aT(0x312,0x2c9)]&&(d[aT(0x33a,0x2f6)]||(yield*d[aT(0x30f,0x2c8)]['isDurationDefinedByEffort']()))){if(d[aT(0x2b8,0x300)]||(yield PreviousValueOf(this['$'][aT(0x2ff,0x2f7)]))==null){const e=yield d[aT(0x30f,0x321)]['$'][aT(0x303,0x329)];const f=yield*this['calculateProjectedXDateByEffort'](yield this['$'][aT(0x2d5,0x330)],!![],yield this['$'][aT(0x2e6,0x330)],yield this['$'][aT(0x2c4,0x26e)]);return yield*this[aT(0x2b2,0x2de)](f,e,TimeUnit[aT(0x2a1,0x2a2)]);}else{return yield ProposedOrPreviousValueOf(this['$']['phantomEndOffset']);}}function aT(a,b){return al(a-0x237,b);}return null;}*[al(0xe9,0x13b)](){function aU(a,b){return al(a- -0x1ea,b);}const d=yield this['$'][aU(-0x112,-0xfd)];if(d){const e=yield d['$']['endDate'];const f=yield this['$'][aU(-0x11e,-0xc6)];return yield*this[aU(-0x16f,-0x1a8)](f,e,TimeUnit[aU(-0x180,-0x130)]);}else return null;}*[al(0xba,0x109)](){const d=yield this['$'][aV(-0x209,-0x1e3)];const e=d[aV(-0x1bf,-0x1f9)];function aV(a,b){return al(b- -0x2d1,a);}if(e){if(d[aV(-0x228,-0x250)]||(yield PreviousValueOf(this['$'][aV(-0x1b5,-0x1d5)]))==null){const f=(yield e['$'][aV(-0x264,-0x206)])??(yield e['$'][aV(-0x201,-0x1b0)]);const g=yield this[aV(-0x24d,-0x26f)]['$']['endDate'];return yield*this[aV(-0x273,-0x256)](g,f,TimeUnit[aV(-0x288,-0x267)]);}else{return yield ProposedOrPreviousValueOf(this['$']['endOffset']);}}else{return null;}}*['calculateProposedEndOffset'](){const d=yield this['$'][aW(0x89,0x36)];function aW(a,b){return al(b- -0xb8,a);}const e=d[aW(0x16,0x20)];if(e){const f=(yield e['$']['proposedEndOffsets'])['minOffset']<0x0;if(f||d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$']['endOffset']))==null){const g=yield this['$'][aW(-0x94,-0x35)];const h=g[aW(0x54,-0xc)]===Direction[aW(0x9,-0x1)]?yield e['$'][aW(0x22,0x61)]:yield e['$']['maxAssignmentProposedEndDate'];const i=yield this[aW(-0x26,-0x56)]['$']['endDate'];return yield*this[aW(-0x49,-0x3d)](i,h,TimeUnit[aW(-0x23,-0x4e)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aW(0x3c,0x44)]);}}else{return null;}}*['isDurationDefinedByEffortStructurally'](){function aX(a,b){return al(a- -0x118,b);}const d=yield this['$']['selector'];return d[aX(-0x80,-0x56)];}*[al(0x118,0x152)](){const d=yield this['$'][aY(-0x1e4,-0x1c3)];function aY(a,b){return al(b- -0x2b1,a);}return d['isDurationDefinedByEffort'];}*['calculateProjectedXDate'](d,e){function aZ(a,b){return al(a-0xa6,b);}const {event:f}=this;if(f&&((yield*this['isDurationDefinedByEffort']())||(yield*f[aZ(0x1be,0x1c6)]()))){return yield*this['calculateProjectedXDateByEffort'](d,e,yield this['$']['effort'],yield this['$'][aZ(0x133,0xfe)]);}else{return yield*this[aZ(0x132,0xdc)](d,e,yield this['proposedMirror']['$'][aZ(0x195,0x149)],yield this['$'][aZ(0x10e,0x163)]);}}*[al(0xd9,0x86)](){function b0(a,b){return al(b- -0x78,a);}const d=yield this['$'][b0(0x5c,0x76)];const e=d[b0(0x1b,0x60)];if(e&&d[b0(0x17,0x2b)]){const f=yield this['$']['effectiveDirection'];if(f[b0(-0x1d,0x34)]===Direction[b0(0x91,0x90)]){const g=yield*this[b0(0x8a,0x3d)]();const h=yield e['$']['endDate'];if(g>h){return h;}else return g;}else{const i=yield this['$'][b0(0xb4,0x54)];const j=yield e['$'][b0(0xb,0x23)];const k=yield this[b0(-0x6f,-0x16)]['$'][b0(0x92,0x77)];const l=yield*this[b0(0x31,0x14)](i,![],k);if(l<j){return j;}else return l;}}else{return yield ProposedOrPrevious;}}*[al(0x104,0xb5)](){const d=yield this['$'][b1(-0x24,-0x2a)];function b1(a,b){return al(b- -0x118,a);}const e=d[b1(0x1b,-0x40)];if(e&&d[b1(-0x2b,-0x75)]){const f=yield this['$'][b1(-0xf0,-0x95)];if(f[b1(-0x56,-0x6c)]===Direction[b1(0x4b,-0x10)]){const g=yield this['$'][b1(-0xcb,-0x7d)];const h=yield e['$'][b1(-0x48,-0x4c)];const i=yield this[b1(-0x64,-0xb6)]['$'][b1(0x39,-0x29)];const j=yield*this[b1(-0xeb,-0x8c)](g,!![],i);if(j>h){return h;}else return j;}else{const k=yield*this[b1(-0x3d,-0x9f)]();const l=yield e['$'][b1(-0x9a,-0x7d)];if(k<l){return l;}else return k;}}else{return yield ProposedOrPrevious;}}*['calculateDuration'](){function b2(a,b){return al(b- -0xe1,a);}const d=yield this['$'][b2(-0x97,-0x46)];const e=yield this['$'][b2(-0x57,-0x15)];return yield*this[b2(-0x44,-0x66)](d,e);}*[al(0xb5,0xa1)](){const d=yield this['$'][b3(-0x1a7,-0x155)];function b3(a,b){return al(a- -0x27f,b);}if(d){const e=yield d['$'][b3(-0x1e4,-0x186)];const f=yield this['$'][b3(-0x18c,-0x18e)];const g=yield*this['calculateProjectedXDateWithDuration'](e,!![],f,TimeUnit[b3(-0x215,-0x1c5)]);const h=yield*this[b3(-0x1ce,-0x1dd)](g,!![]);return h;}else{return null;}}*['calculateEndByDelay'](){const d=yield this['$'][b4(-0x245,-0x236)];function b4(a,b){return al(a- -0x31d,b);}if(d){const e=yield d['$']['endDate'];const f=yield this['$'][b4(-0x2b2,-0x30f)];const g=yield*this[b4(-0x291,-0x281)](e,![],f,TimeUnit[b4(-0x2b3,-0x2e0)]);const h=yield*this[b4(-0x26c,-0x281)](g,![]);return h;}else{return null;}}*['calculateEffectiveDataOrVisualCalendar'](d){const e=yield this['$'][b5(0x131,0x103)];const f=e?yield e['$'][b5(0xe0,0xaf)]:yield this[b5(0xde,0x10d)]()['$']['effectiveCalendar'];yield f['$'][b5(0x11b,0xd9)];function b5(a,b){return al(a-0x59,b);}return f;}*[al(0xfb,0xfd)](){return!![];}*[al(0x6f,0x77)](){function b6(a,b){return al(a-0x335,b);}const d=new Map();const e=yield this['$']['resource'];if(e){const f=yield e['$']['effectiveCalendar'];d[b6(0x41f,0x3d3)](f,[this]);}return d;}*[al(0x7c,0xd9)](){const d=yield this['$']['selector'];return d['isTimePhasedStructurally'];}*[al(0xc1,0xf8)](){const d=yield this['$'][b7(0x1d2,0x22f)];const {event:e}=d;function b7(a,b){return al(b-0x141,a);}return e&&(d[b7(0x1ed,0x202)]||(yield*e[b7(0x293,0x259)]()));}*[al(0xa3,0x51)](){function b8(a,b){return al(b-0x2d9,a);}const d=yield this['$'][b8(0x415,0x3c7)];return d[b8(0x31b,0x37c)];}*[al(0x103,0xd3)](){function b9(a,b){return al(a-0x2b2,b);}const d=yield this['$'][b9(0x3a0,0x385)];return d[b9(0x3b5,0x3ba)];}*['getBaseOptionsForDurationCalculations'](){const d=yield*super[ba(-0x40,-0x56)]();const e=yield this['$'][ba(0x2,-0x22)];function ba(a,b){return al(b- -0xfa,a);}if(e){const f=yield*e['effectiveSchedulingMode']();if(f===SchedulingMode[ba(0x22,0x23)]){d['ignoreResourceCalendar']=![];}}return d;}*[al(0x70,0x8c)](d,e){function bb(a,b){return al(a- -0x289,b);}if(yield*this[bb(-0x1ad,-0x196)]()){const f=yield this['$']['event'];if(yield this['$'][bb(-0x1ce,-0x209)]){if(!f||(yield ProposedOrPreviousValueOf(f['$'][bb(-0x1da,-0x1ac)]))!=null)e[bb(-0x1d6,-0x1f8)](EffortVar);}else{if(yield*this[bb(-0x16a,-0x165)]()){e[bb(-0x1d6,-0x17b)](UnitsVar);}}}}*[al(0xa5,0xfe)](d){function bc(a,b){return al(b- -0xc5,a);}const e=yield*this[bc(0xf,0x1b)]();const f=yield this['$'][bc(0x3d,0x13)];if(e!==SchedulingMode[bc(0x1,0x58)]&&f){let g;const h=yield this['$'][bc(0x45,0x29)];const i=yield*f[bc(0x2b,0x53)]();if(h[bc(-0x52,-0x4)]||i){g=yield*super[bc(-0x80,-0x20)](d);}else{g=yield*super[bc(0x35,-0x20)](d);g['collectInfo'](d,f['$'][bc(0x1f,-0x2a)],StartDateVar);g[bc(0x53,0x41)](d,f['$']['endDate'],EndDateVar);g[bc(0xa3,0x41)](d,f['$'][bc(-0x4,0x2a)],DurationVar);g[bc(0x57,0x41)](d,f['$']['effort'],EffortVar);}if(i){g['addProposedValueFlag'](EffortVar);g[bc(0x1,-0x52)](EffortVar);}if(yield*f[bc(-0x7,-0x31)]()){g[bc(0x13,-0x12)](UnitsVar);}return g;}else{return yield*super[bc(-0x1c,-0x20)](d);}}*['hasProposedAssignments'](){function bd(a,b){return al(b- -0x2ae,a);}const d=yield this['$'][bd(-0x21a,-0x1d6)];return d?yield HasProposedValue(d['$'][bd(-0x1cd,-0x1a2)]):![];}*[al(0x94,0xa2)](){return yield HasProposedValue(this['$']['units']);}*[al(0x11f,0xe0)](){function be(a,b){return al(b-0x333,a);}return(yield PreviousValueOf(this['$'][be(0x38b,0x3cc)]))!==void 0x0;}*['calculateEffort'](){function bf(a,b){return al(b- -0x197,a);}const d=yield*this[bf(-0xd9,-0xb7)]();const e=yield this['$'][bf(-0xc3,-0xbf)];if(e&&d!==SchedulingMode[bf(-0x2f,-0x7a)]){const f=yield this['$'][bf(-0xef,-0xa1)];const g=f['resolution'][bf(-0xbb,-0x96)](EffortVar);if(g===CalculateProposed){const h=yield HasProposedNotPreviousValue(e['$']['effort']);const i=yield*e[bf(-0x111,-0xf0)](bf(-0x110,-0xe8));if(h&&!i||(yield*this[bf(-0x88,-0xbb)]())&&(yield HasPreviousValue(e['$']['effort']))&&!(yield e['$'][bf(-0x13b,-0x133)])[bf(-0xd3,-0xaf)]&&!this[bf(-0x106,-0x12e)][bf(-0xea,-0xf5)]){return yield*this[bf(-0x161,-0x131)]();}return yield*this[bf(-0x44,-0x7b)]();}else if(g===effortFormula[bf(-0xd1,-0x8c)]){return yield*this[bf(-0x7c,-0xde)]();}else{throw new Error(bf(-0x99,-0x9d));}}else{return yield*b[bf(-0xa3,-0x9f)][bf(-0xb8,-0xef)](this);}}*[al(0x11e,0xe0)](){const d=yield this[bg(-0xc2,-0x119)]['$'][bg(-0xd7,-0x10f)];const e=yield ProposedOrPreviousValueOf(this[bg(-0x10d,-0x119)]['$'][bg(-0x14a,-0x142)]);function bg(a,b){return al(b- -0x1f1,a);}const f=yield this[bg(-0xea,-0x119)]['$'][bg(-0x1a9,-0x164)];const g=(yield*this[bg(-0x131,-0x16c)]()[bg(-0x1c9,-0x172)](e,f,TimeUnit['Millisecond']))*((yield ProposedOrPreviousValueOf(this['$'][bg(-0x14a,-0x158)]))??0x64);const h=g===0x0?0x0:d===0x0?0x0:g/d;return yield*this[bg(-0x116,-0x16c)]()['$convertDuration'](h,TimeUnit[bg(-0x182,-0x187)],yield this['$'][bg(-0x18a,-0x164)]);}*['calculateProportionalEffortByEffort'](){const d=yield PreviousValueOf(this['event']['$'][bh(0xab,0xe2)]);const e=yield this[bh(0xd4,0x132)]['$'][bh(0x89,0x43)];const f=yield*this[bh(0x81,0x24)]()['$convertDuration'](d,e,TimeUnit['Millisecond']);if(f===0x0){return 0x0;}const g=yield PreviousValueOf(this['$']['effort']);function bh(a,b){return al(a- -0x4,b);}const h=yield this['$'][bh(0x89,0x8d)];const i=yield*this['getProject']()['$convertDuration'](g,h,TimeUnit[bh(0x66,0x70)]);const j=yield ProposedOrPreviousValueOf(this[bh(0xd4,0x101)]['$'][bh(0xab,0xca)]);const k=yield*this['getProject']()['$convertDuration'](j,e,TimeUnit['Millisecond']);if(d!=null&&g!=null&&j!=null){const l=k*(i/f);return yield*this[bh(0x81,0x69)]()[bh(0x7b,0x74)](l,TimeUnit['Millisecond'],h);}else{return 0x0;}}*[al(0x66,0x7d)](){function bi(a,b){return al(b-0x1d5,a);}const d=yield HasProposedNotPreviousValue(this[bi(0x2ff,0x2ad)]['$'][bi(0x24c,0x284)]);const e=yield*this[bi(0x25d,0x2ad)][bi(0x268,0x2b1)]();if(d&&!e){return yield*this[bi(0x21f,0x26a)]();}else{return yield*this[bi(0x330,0x2f3)]();}}*[al(0xd6,0xbe)](d){function bj(a,b){return al(a-0x3f8,b);}const {event:e}=this;const f=yield HasProposedNotPreviousValue(e['$'][bj(0x4a7,0x4b8)]);const g=yield*e['hasProposedValueForAssignmentsField']('effort');const h=f&&!g?yield*this[bj(0x45e,0x416)]():yield this['$'][bj(0x4a7,0x459)],i=yield this['$'][bj(0x485,0x476)],j=yield*this[bj(0x47d,0x47e)]()['$convertDuration'](h,i,TimeUnit[bj(0x462,0x443)]);let k,l;if(yield*this['isTimePhased']()){k=yield this['$'][bj(0x493,0x470)];l=yield this['$'][bj(0x4c4,0x4fe)];}else{k=yield e['$'][bj(0x493,0x47e)];l=yield e['$'][bj(0x4c4,0x50d)];}if(!k&&!l){return yield ProposedOrPrevious;}let m=0x0;const n=Object['assign'](yield*this['getBaseOptionsForEffortCalculations'](),{'startDate':k,'endDate':l});const o=yield this['$'][bj(0x47a,0x41e)];yield*this['forEachAvailabilityInterval'](n,(p,q,r)=>{const s=r[bk(0xa2,0xd3)]();const t=p[bk(0x119,0x148)](),u=q[bk(0x119,0xd1)](),v=u-t;function bk(a,b){return bj(a- -0x3f5,b);}for(const w of s){m+=(o[bk(0xd5,0x7e)](w)?o['get'](w)[bk(0x9d,0x5b)]:0x0)*v;}});return m?0x64*j/m:0x64;}*['calculateUnitsForNewAssignment'](d,e,f,g,h){const i=this[bl(-0x73,-0x99)]();const j=this[bl(-0x3e,-0x46)];const k=yield*i[bl(-0xc5,-0x9f)](f,g,TimeUnit[bl(-0x70,-0xb4)]);let l=0x0;const m=Object[bl(0x13,-0x33)](yield*this[bl(-0x3d,-0x4)](),{'startDate':d,'endDate':e});const n=yield j['$'][bl(-0x8c,-0x44)];const o=(yield j['$'][bl(-0xaa,-0x93)])||(yield this['$'][bl(-0x31,-0x93)])||(yield*j[bl(-0xd3,-0x8c)]())||n&&!i[bl(-0xac,-0x51)];const p=o?yield j['$']['effectiveCalendar']:yield h['$']['effectiveCalendar'];function bl(a,b){return al(b- -0x11e,a);}yield*this[bl(-0x6a,-0xb7)](m,(q,r,s)=>{const t=s[bm(-0x33c,-0x2dc)]();function bm(a,b){return bl(a,b- -0x25d);}const u=q['getTime'](),v=r[bm(-0x2b1,-0x265)](),w=v-u;for(const x of t){l+=(x===p?0x1:0x0)*w;}});return l?0x64*k/l:0x64;}}c[al(0xf9,0x144)]=al(0xae,0xea);__decorate([model_field({'type':'boolean','defaultValue':!![]})],c[al(0xa1,0xad)],al(0xbb,0x77),void 0x0);__decorate([model_field({'type':al(0xc4,0x9c),'defaultValue':SchedulingMode['FixedDuration']},{'sync':!![]})],c['prototype'],'schedulingMode',void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c[al(0xa1,0x77)],al(0x8b,0x93),void 0x0);__decorate([model_field({'type':al(0xc3,0x99),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0xa1,0x44)],'startDate',void 0x0);__decorate([model_field({'type':al(0xc3,0xe1),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0xa1,0x100)],'endDate',void 0x0);__decorate([model_field({'type':al(0x115,0xbc),'bypassEqualityOnSyncDataset':!![],'defaultValue':null,'allowNull':!![]})],c[al(0xa1,0xa7)],al(0xef,0x128),void 0x0);__decorate([model_field({'type':'number','defaultValue':null})],c[al(0xa1,0xad)],al(0xaf,0x103),void 0x0);__decorate([field()],c[al(0xa1,0xe7)],'selector',void 0x0);__decorate([calculate('selector')],c[al(0xa1,0x61)],al(0xb8,0x59),null);__decorate([calculate(al(0xbb,0x65))],c[al(0xa1,0xc7)],al(0xf5,0x113),null);__decorate([calculate(al(0x9c,0x6a))],c[al(0xa1,0x48)],al(0x9d,0x48),null);__decorate([field()],c['prototype'],'startOffset',void 0x0);__decorate([field()],c['prototype'],al(0x90,0x6d),void 0x0);__decorate([field()],c[al(0xa1,0x80)],al(0x9e,0x9c),void 0x0);__decorate([field()],c['prototype'],al(0xf3,0x106),void 0x0);__decorate([field()],c[al(0xa1,0x47)],al(0xfc,0x9b),void 0x0);__decorate([field()],c[al(0xa1,0x55)],al(0xc8,0x9f),void 0x0);__decorate([field()],c[al(0xa1,0x6d)],al(0xc9,0xf5),void 0x0);__decorate([field()],c[al(0xa1,0xce)],'proposedEndOffset',void 0x0);__decorate([field({'sync':!![]})],c[al(0xa1,0xe6)],al(0xca,0xc7),void 0x0);__decorate([write(al(0x8b,0x75))],c[al(0xa1,0xc1)],'writeIgnoreResourceCalendar',null);__decorate([write('startDate')],c[al(0xa1,0x63)],al(0xc5,0xc0),null);__decorate([write(al(0xcc,0xc4))],c[al(0xa1,0x40)],al(0xc6,0x111),null);__decorate([write(al(0xef,0x110))],c[al(0xa1,0xf7)],al(0x80,0x1e),null);__decorate([write('effort')],c[al(0xa1,0x88)],'writeEffort',null);__decorate([write('units')],c['prototype'],al(0xaa,0xad),null);__decorate([calculate('ignoreResourceCalendar')],c['prototype'],al(0x86,0x25),null);__decorate([calculate(al(0xff,0xe7))],c['prototype'],'calculateStartOffset',null);__decorate([calculate(al(0xf3,0xfe))],c['prototype'],'calculateProposedStartOffset',null);__decorate([calculate('phantomStartDate')],c[al(0xa1,0xbc)],al(0x110,0xeb),null);__decorate([calculate(al(0xc9,0xd6))],c[al(0xa1,0xe5)],al(0xfd,0x149),null);__decorate([calculate(al(0x90,0xd2))],c['prototype'],'calculatePhantomStartOffset',null);__decorate([calculate(al(0xc8,0x7f))],c['prototype'],al(0x97,0x35),null);__decorate([calculate('endOffset')],c['prototype'],'calculateEndOffset',null);function al(a,b){return _enaa(a-0x1df,b);}__decorate([calculate(al(0x6b,0x12))],c[al(0xa1,0xd1)],'calculateProposedEndOffset',null);__decorate([calculate(al(0xaf,0xd3))],c[al(0xa1,0x91)],'calculateEffort',null);return c;}){}function _enaa(a,b){return _enb(a- -0x242,b);}class TimePhasedAssignmentCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enaa(-0xef,-0xfe)](){return['assignment'];}}class TimePhasedAssignmentCalendarIntervalStore extends CalendarIntervalStore{static get[_enaa(-0x108,-0x118)](){return{'modelClass':TimePhasedAssignmentCalendarIntervalMixin};}}class TimePhasedAssignmentCalendar extends BaseCalendarMixin{constructor(){super(...arguments);this['isTimePhasedCalendar']=!![];}get[_enaa(-0xbf,-0x80)](){return TimePhasedAssignmentCalendarIntervalStore;}}export{SchedulerProTimePhasedAssignmentMixin,TimePhasedAssignmentCalendar,TimePhasedAssignmentCalendarIntervalMixin,TimePhasedAssignmentCalendarIntervalStore,TimePhasedAssignmentMirror,TimePhasedAssignmentSelector};
1
+ function _enaa(a,b){return _enb(a-0x51,b);}(function(a,b){const c=a();function V(a,b){return _enb(b- -0x2ed,a);}while(!![]){try{const d=parseInt(V(-0x13a,-0x196))/0x1+parseInt(V(-0x1d8,-0x1ae))/0x2*(-parseInt(V(-0x1ad,-0x18f))/0x3)+parseInt(V(-0x1e1,-0x1f4))/0x4*(-parseInt(V(-0x232,-0x1eb))/0x5)+parseInt(V(-0x1ab,-0x192))/0x6*(parseInt(V(-0x1a0,-0x1cf))/0x7)+-parseInt(V(-0x15c,-0x175))/0x8+parseInt(V(-0x168,-0x191))/0x9*(parseInt(V(-0x1c5,-0x176))/0xa)+parseInt(V(-0x212,-0x1b6))/0xb*(parseInt(V(-0x1de,-0x1a1))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x87430));var __decorate=function(a,b,e,f){var g=arguments[W(0x53a,0x4e2)],h=g<0x3?b:f===null?f=Object[W(0x46a,0x490)](b,e):f,j;if(typeof Reflect===W(0x4c2,0x4d9)&&typeof Reflect[W(0x550,0x4fa)]===W(0x53b,0x500))h=Reflect[W(0x540,0x4fa)](a,b,e,f);else for(var k=a[W(0x492,0x4e2)]-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-0x364,a);}return g>0x3&&h&&Object[W(0x4fe,0x502)](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';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=>{function X(a,b){return _enb(a-0x50,b);}class b extends a{*[X(0x165,0x1b9)](){function Y(a,b){return X(b- -0x182,a);}return yield this[Y(0x5,0x40)]['$'][Y(-0x43,-0x2d)];}*[X(0x1d0,0x1ac)](){function Z(a,b){return X(a- -0x12f,b);}return yield this[Z(0x93,0xde)]['$'][Z(0x7e,0x9e)];}*[X(0x1c3,0x178)](){function a0(a,b){return X(b-0x6,a);}return yield this[a0(0x1d1,0x1c8)]['$'][a0(0x1eb,0x19b)];}*[X(0x151,0x1ae)](){function a1(a,b){return X(a-0x27d,b);}return yield this[a1(0x43f,0x458)]['$']['schedulingMode'];}*[X(0x186,0x19b)](){function a2(a,b){return X(b- -0x3a1,a);}return yield*this['assignment'][a2(-0x1c9,-0x21b)]();}*[X(0x1fa,0x239)](){function a3(a,b){return X(a-0x15d,b);}return yield*this[a3(0x31f,0x31d)]['hasPreviousValueForUnits']();}*[X(0x15d,0x161)](){function a4(a,b){return X(a- -0x23f,b);}return yield*this[a4(-0x7d,-0x77)][a4(-0xe2,-0xf9)]();}*[X(0x162,0x157)](c){function a5(a,b){return X(b-0x33f,a);}return yield*this[a5(0x501,0x501)][a5(0x470,0x4a1)](c);}*[X(0x189,0x1c7)](){const c=new Map();const d=yield this[a6(-0x141,-0x15f)]['$'][a6(-0x1a4,-0x1bf)];function a6(a,b){return X(a- -0x303,b);}if(d){const e=yield d['$'][a6(-0x126,-0x181)];c[a6(-0x12b,-0x16b)](e,[this[a6(-0x141,-0xfc)]]);}return c;}*[X(0x1ba,0x20c)](){function a7(a,b){return X(b-0x362,a);}return yield this[a7(0x567,0x524)]['$'][a7(0x464,0x4a8)];}*[X(0x180,0x170)](){function a8(a,b){return X(b-0x194,a);}return yield*this['assignment'][a8(0x2c5,0x314)]();}}__decorate([calculate(X(0x155,0x191))],b[X(0x176,0x12f)],X(0x165,0x195),null);__decorate([calculate(X(0x1ad,0x1bb))],b['prototype'],X(0x1d0,0x183),null);__decorate([calculate(X(0x195,0x189))],b[X(0x176,0x1c4)],X(0x1c3,0x1c2),null);__decorate([calculate('schedulingMode')],b[X(0x176,0x14e)],X(0x151,0x158),null);__decorate([calculate(X(0x146,0x17b))],b[X(0x176,0x1bd)],'calculateIgnoreResourceCalendar',null);return b;}){}class TimePhasedAssignmentSelector{constructor(){this[a9(-0x214,-0x1cf)]=null;this[a9(-0x27a,-0x2a8)]=null;this[a9(-0x236,-0x27e)]=null;function a9(a,b){return _enb(a- -0x386,b);}this[a9(-0x25c,-0x27f)]=null;this[a9(-0x216,-0x1b8)]=![];this[a9(-0x25b,-0x219)]=![];this[a9(-0x261,-0x27c)]=![];this[a9(-0x275,-0x24c)]=![];this[a9(-0x1d8,-0x1ee)]=![];this['hasInputOnStartDate']=![];this[a9(-0x288,-0x27d)]=![];this[a9(-0x245,-0x295)]=![];this[a9(-0x217,-0x1ed)]=![];this[a9(-0x21e,-0x26f)]=![];this['hasPreviousValueForUnits']=![];}get[_enaa(0x1a4,0x153)](){function ab(a,b){return _enaa(b-0x1b7,a);}return!this['hasInputOnStartDate']&&!this[ab(0x2bb,0x306)]&&!this[ab(0x324,0x349)]&&this[ab(0x378,0x377)]&&!this['hasInputOnUnits'];}get[_enaa(0x1e6,0x207)](){function ac(a,b){return _enaa(b- -0x102,a);}return this[ac(0x4,0x4f)]||this[ac(0x5a,0x4d)]||this['hasInputOnDuration']||this[ac(0xf7,0xbe)]||this['hasInputOnUnits'];}get[_enaa(0x1a0,0x1d7)](){function ad(a,b){return _enaa(a- -0x3cc,b);}return this[ad(-0x27b,-0x2bd)]||this[ad(-0x27d,-0x277)]||this['hasInputOnDuration'];}get[_enaa(0x1d6,0x17d)](){function ae(a,b){return _enaa(b- -0x317,a);}return(this[ae(-0x1da,-0x1a1)]?0x1:0x0)+(this[ae(-0x165,-0x1b5)]?0x1:0x0)+(this['hasDurationValue']?0x1:0x0)>=0x2;}get['isTimePhased'](){function af(a,b){return _enaa(a- -0x397,b);}return this[af(-0x1c1,-0x1b2)]||this[af(-0x19e,-0x1e9)];}get[_enaa(0x180,0x17f)](){function ag(a,b){return _enaa(b- -0x17d,a);}return this[ag(0x52,0x59)]||this[ag(0x49,0x42)];}get['isPhantomTimePhased'](){return this['isTimePhased']&&!this['isUserTimePhased'];}get['isPhantomTimePhasedStructurally'](){function ah(a,b){return _enaa(a- -0x131,b);}return this[ah(0x4f,0x58)]&&!this[ah(0xa5,0xe7)];}get[_enaa(0x1bf,0x166)](){const a=this[ai(-0x2d1,-0x283)];function ai(a,b){return _enaa(b- -0x3e0,a);}if(a){const b=this['eventEffectiveSchedulingMode'];const c=this[ai(-0x1fc,-0x21f)];return b!==SchedulingMode[ai(-0x28f,-0x253)]&&b!==SchedulingMode['Normal']&&(c||b===SchedulingMode[ai(-0x21a,-0x252)]);}else{return![];}}get['isDurationDefinedByEffort'](){const a=this[aj(0x262,0x22b)];function aj(a,b){return _enaa(b-0xce,a);}if(a){const b=this[aj(0x2a2,0x249)];return this[aj(0x288,0x28d)]&&!this['eventSelector']['isChangingOnlyDuration']&&!this[aj(0x2b3,0x26f)][aj(0x255,0x27e)]||b===SchedulingMode['FixedUnits']&&this[aj(0x2c8,0x28e)]&&!this[aj(0x2ab,0x287)]&&this[aj(0x2dd,0x2c9)];}else{return![];}}*[_enaa(0x200,0x1b5)](){const a=this[ak(-0x20b,-0x203)];this['hasStartDateValue']=(yield ProposedOrPreviousValueOf(a['$'][ak(-0x210,-0x22e)]))!=null;this[ak(-0x25a,-0x264)]=(yield ProposedOrPreviousValueOf(a['$'][ak(-0x225,-0x279)]))!=null;this[ak(-0x191,-0x1c7)]=(yield ProposedOrPreviousValueOf(a['$'][ak(-0x203,-0x1fb)]))!=null;this[ak(-0x229,-0x275)]=yield HasProposedNotPreviousValue(a['$'][ak(-0x24d,-0x22e)]);this[ak(-0x253,-0x277)]=yield HasProposedNotPreviousValue(a['$']['endDate']);this[ak(-0x26c,-0x234)]=yield HasProposedNotPreviousValue(a['$']['duration']);this['hasInputOnEffort']=yield HasProposedNotPreviousValue(a['$'][ak(-0x1f8,-0x21c)]);this[ak(-0x1be,-0x20d)]=yield HasProposedNotPreviousValue(a['$'][ak(-0x213,-0x1e3)]);this['hasPreviousValueForUnits']=yield*a[ak(-0x1fa,-0x1cb)]();function ak(a,b){return _enaa(b- -0x3c6,a);}const b=this[ak(-0x25f,-0x269)]=yield a['$'][ak(-0x25b,-0x269)];if(b){this[ak(-0x262,-0x225)]=yield b['$']['selector'];this[ak(-0x218,-0x24b)]=yield*b[ak(-0x253,-0x252)]();this['eventEffortDriven']=yield b['$'][ak(-0x239,-0x230)];this['eventIsSegmented']=yield b['$'][ak(-0x287,-0x241)];}}}class SchedulerProTimePhasedAssignmentMixin extends Mixin([FixedDurationMixin,SchedulerProAssignmentMixin],a=>{const b=a[al(0xa0,0x77)];class c extends a{constructor(){super(...arguments);this['proposedMirrorClass']=TimePhasedAssignmentMirror;function am(a,b){return al(a,b-0x1fb);}this[am(0x2e4,0x2c0)]=void 0x0;}['_calculateEffortData'](d,e,f){let g,h;function an(a,b){return al(b,a-0x1da);}if(d[an(0x27f,0x2b1)]){g=d['run'](an(0x247,0x266),e,f);h=d['effortUnit'];}else{g=this['run'](an(0x247,0x201),e,f);h=this[an(0x288,0x2aa)];}return{'startDate':e,'endDate':f,'effort':g,'effortUnit':h};}[al(0x159,0xfc)](d,e,f){function ao(a,b){return al(b,a-0x48a);}let g;if(d[ao(0x52f,0x4dd)]){g=f['get'](d);if(!g){g={};f[ao(0x563,0x574)](d,g);}}else{g=d;}Object[ao(0x4e3,0x49a)](g,e);return g;}['putTimePhasedEffortBatch'](d){if(!d[ap(0x4cb,0x470)]){return;}const {project:e,resource:f,event:g,durationUnit:h,effortUnit:j}=this;const {assignmentStore:k}=e;const m=g[ap(0x437,0x497)];const n=g[ap(0x3f6,0x439)];const o=g['endDate'];const p=new Map();const q=[];const r=[];const s={'resource':f,'event':g,'durationUnit':h,'effortUnit':j};d=d[ap(0x3ea,0x430)]()[ap(0x4a5,0x468)]((w,x)=>(w[ap(0x460,0x439)]||n)[ap(0x487,0x486)]()-(x[ap(0x486,0x439)]||n)[ap(0x429,0x486)]());const t=[...m][ap(0x403,0x40a)](w=>w[ap(0x441,0x401)]===f)[ap(0x430,0x468)]((w,x)=>(w[ap(0x3fe,0x439)]||n)[ap(0x46c,0x486)]()-(x['startDate']||n)[ap(0x4de,0x486)]());let u=0x0;for(const w of d){const {startDate:x,endDate:y}=w;let z=Boolean(w[ap(0x49a,0x44b)]);const A=t[ap(0x412,0x430)]();let B=![];for(let C=u,D=A[ap(0x459,0x470)];C<D;C++){const E=A[C];const F=p['get'](E);const G=F?.[ap(0x474,0x439)]||E[ap(0x43c,0x439)]||n;const H=F?.['endDate']||E[ap(0x431,0x3ee)]||o;let I=C;if(G<y&&H>x){if(!B){u=C;B=!![];}const J=F?.[ap(0x3d3,0x3f7)]||E[ap(0x454,0x3f7)];if(G>=x&&H<=y){if(z){p[ap(0x47f,0x47a)](E,w);z=![];}else{r['push'](E);t[ap(0x4d3,0x475)](C);}}else{let K;if(z){K={...s,...w};q[ap(0x4c0,0x48f)](K);z=![];}let L=![];if(G<x){const M=this['_calculateEffortData'](E,G,x);if(M[ap(0x46c,0x44b)]){L=!![];this['_changeAssignmentData'](E,M,p);if(K){I++;t['splice'](I,0x0,K);I++;}if(H>y){const N={'resource':f,'event':g,'durationUnit':J,...this[ap(0x414,0x459)](E,y,H)};if(N[ap(0x435,0x44b)]){q[ap(0x446,0x48f)](N);t[ap(0x42c,0x475)](I,0x0,N);}}}}if(!L&&H>y){if(K){t['splice'](I,0x0,K);I++;}const O=this[ap(0x4af,0x49d)](E,this[ap(0x446,0x459)](E,y,H),p);if(!O[ap(0x422,0x44b)]){}}}}else if(G>=y){u=C;break;}}if(z){const P={...s,...w};q[ap(0x437,0x48f)](P);t[ap(0x431,0x48f)](P);if(!p[ap(0x47f,0x453)]&&t[ap(0x476,0x470)]===0x1&&!t[0x0]['startDate']&&!t[0x0][ap(0x444,0x3ee)]){this['_changeAssignmentData'](t[0x0],{'startDate':n,'endDate':o,'effort':this['effort']},p);}}}let v=[];function ap(a,b){return al(a,b-0x3a1);}for(let [Q,R]of p){Object[ap(0x428,0x3fa)](Q,R);}if(q[ap(0x4c1,0x470)]){q[ap(0x472,0x468)]((S,T)=>S['startDate']['getTime']()-T[ap(0x3ec,0x439)][ap(0x479,0x486)]());if(this[ap(0x451,0x3fe)][ap(0x415,0x43b)]===SchedulingMode[ap(0x404,0x42e)]){for(const S of q){const T=this['run'](ap(0x43c,0x409),S[ap(0x3e4,0x439)],S[ap(0x404,0x3ee)],S[ap(0x456,0x44b)],S['effortUnit'],S['resource']);delete S[ap(0x459,0x44b)];S[ap(0x42d,0x484)]=T;}}v=k[ap(0x40e,0x440)](q);}if(r['length']){r[ap(0x49d,0x458)](U=>{function aq(a,b){return ap(a,b- -0xe9);}U[aq(0x397,0x362)]=0x0;U[aq(0x361,0x383)]=0x0;U[aq(0x334,0x374)]=!![];});e[ap(0x43f,0x448)]({'commitFinalized':{'fn':()=>{function ar(a,b){return ap(a,b-0xf5);}e['isRemovingAssignmentByPutEffort']=!![];k[ar(0x5d7,0x589)](r);e['ion']({'commitFinalized':{'fn':()=>{function as(a,b){return ar(a,b- -0x213);}e[as(0x279,0x2d3)]=![];},'once':!![]}});},'once':!![]}});}return{'added':v,'removed':r,'updated':p};}['setTimePhasedEffortBatch'](d){this['putTimePhasedEffortBatch'](d);function at(a,b){return al(b,a-0x169);}return this[at(0x254,0x20c)]();}[al(0xd9,0xea)](d,e,f,g=this[al(0xdd,0xae)]){function au(a,b){return al(b,a- -0x28d);}return this[au(-0x1f8,-0x1a0)]([{'startDate':d,'endDate':e,'effort':f,'effortUnit':g}]);}[al(0xb3,0xca)](d,e,f,g){function av(a,b){return al(b,a-0xbe);}this['putTimePhasedEffort'](d,e,f,g);return this[av(0x1a9,0x1d6)]();}*[al(0x10d,0xec)](){const d=new TimePhasedAssignmentSelector();d[aw(-0x2a5,-0x255)]=this;yield*d[aw(-0x1fa,-0x218)]();function aw(a,b){return al(a,b- -0x318);}return d;}*[al(0x103,0xc4)](){const d=yield this['$'][ax(-0xa4,-0xa4)];function ax(a,b){return al(b,a- -0x101);}if(d&&(yield this['$'][ax(-0xa1,-0xfb)])){const e=yield d['$'][ax(-0x67,-0x46)];return e===SchedulingMode[ax(-0x95,-0x4a)]?!![]:yield d['$'][ax(-0x6b,-0x19)];}else{return![];}}*[al(-0xb,0x52)](){const d=yield this['$'][ay(0x2d,-0x30)];function ay(a,b){return al(b,a- -0x30);}if(d&&(yield this['$'][ay(0x30,0x4f)])){const e=yield d['$'][ay(0x6a,0xa1)];return e===SchedulingMode[ay(0x3c,0x1c)]?SchedulingMode[ay(0x5d,0x21)]:e;}else{return SchedulingMode[ay(0x3c,0x2c)];}}*[al(0xd2,0xb6)](d){function az(a,b){return al(a,b- -0x1f9);}const e=yield this['$'][az(-0x16f,-0x19c)];if(e&&(yield this['$'][az(-0x19f,-0x199)])){const f=yield e['$'][az(-0xff,-0x15f)];return f===SchedulingMode[az(-0x1ac,-0x18d)]?!(yield*e[az(-0xcf,-0x101)]())?SchedulingMode['FixedDuration']:SchedulingMode[az(-0x1a1,-0x18d)]:f;}else{return SchedulingMode[az(-0x1a5,-0x18d)];}}get[al(0x96,0xbd)](){if(this[aA(0x4f3,0x4f3)]!==void 0x0)return this[aA(0x4d0,0x4f3)];const d=new this['proposedMirrorClass']();d[aA(0x4f7,0x4f1)]=this;function aA(a,b){return al(a,b-0x42e);}d[aA(0x52e,0x4df)]=this[aA(0x4b4,0x4df)];d['id']='PROPOSED_'+this['id'];if(this[aA(0x53b,0x517)]){d['enterGraph'](this[aA(0x524,0x517)]);}return this[aA(0x533,0x4f3)]=d;}[al(0x11e,0xf2)](d){super[aB(0x4c9,0x4ed)](d);function aB(a,b){return al(b,a-0x3d7);}const e=this[aB(0x49c,0x4f4)];if(e&&!e[aB(0x4c0,0x4a0)]){e[aB(0x4c9,0x4c1)](d);}}[al(0x8f,0x9c)](d){this[aC(0x5c,0x2d)]?.[aC(0x33,0x53)](d);function aC(a,b){return al(b,a- -0x69);}super[aC(0x33,-0x26)](d);}['unlink'](...d){function aD(a,b){return al(a,b- -0x1e1);}this[aD(-0xeb,-0x11c)]?.['unlink'](...d);super[aD(-0x1ee,-0x193)](...d);}[al(0xee,0x102)](d,e,f,g){e[aE(0x3ef,0x43d)](this['$'][aE(0x44a,0x487)],g);function aE(a,b){return al(a,b-0x3bb);}d[aE(0x3fe,0x452)]['prototype']['write']['call'](this,d,e,f,g);}[al(0x7e,0x5b)](d,e,f,g,h=!![]){if(!(!e[aF(0x280,0x2a6)][aF(0x28b,0x2ab)](d)&&g==null)){e[aF(0x2d3,0x2a9)](this[aF(0x286,0x2e4)]['$'][aF(0x2a0,0x2bf)],g,h);}function aF(a,b){return al(a,b-0x227);}super[aF(0x255,0x282)](d,e,f,g,h);}['writeEndDate'](d,e,f,g,h=![]){if(!(!e['baseRevision'][aG(0x193,0x161)](d)&&g==null)){e['write'](this[aG(0x1cc,0x1e6)]['$'][aG(0x15c,0x121)],g,h);}function aG(a,b){return al(b,a-0x10f);}super[aG(0x1dc,0x216)](d,e,f,g,h);}[al(0xab,0xce)](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;function aH(a,b){return al(a,b- -0x209);}if(!(!e['baseRevision']['hasIdentifier'](d)&&g==null)){e[aH(-0x15c,-0x187)](this['proposedMirror']['$']['duration'],g,h,i);}super[aH(-0x110,-0x13b)](d,e,f,g,h,i);}['writeEffort'](d,e,f,g,h){function aI(a,b){return al(b,a-0x1d0);}if(g<0x0)g=0x0;if(!(!e[aI(0x24f,0x247)][aI(0x254,0x230)](d)&&g==null)){e[aI(0x252,0x23a)](this['proposedMirror']['$'][aI(0x27a,0x241)],g,h);}super['writeEffort'](d,e,f,g,h);}[al(0x41,0x94)](d,e,f,g){if(g===MissingValue)return;function aJ(a,b){return al(b,a- -0x334);}d[aJ(-0x29d,-0x2e5)]['prototype']['write'][aJ(-0x2b1,-0x28b)](this,d,e,f,g);}*['calculateEffortPure'](){function aK(a,b){return al(a,b-0x14f);}return yield*this[aK(0x1e2,0x1bc)]();}*[al(0xc0,0x6d)](d=null,e=null){function aL(a,b){return al(b,a- -0x310);}const f=yield this['$'][aL(-0x22e,-0x1e7)];if(f['event']&&f[aL(-0x297,-0x265)]){if(!d){d=yield this['$'][aL(-0x278,-0x244)];}if(!e){e=yield this['$']['endDate'];}return yield*this[aL(-0x2c5,-0x2b1)](d,e);}return yield*super[aL(-0x238,-0x272)](d,e);}*[al(0x38,0x5e)](){function aM(a,b){return al(b,a- -0x320);}const d=yield this['$'][aM(-0x2c3,-0x2ce)];if(d){return yield d['$'][aM(-0x23f,-0x24d)];}else{return yield*super[aM(-0x2c2,-0x2c0)]();}}*[al(0x113,0xbb)](){const d=yield this['$'][aN(0x285,0x29f)];function aN(a,b){return al(b,a-0x228);}return Boolean(d&&(yield d['$']['ignoreResourceCalendar'])||(yield this['$'][aN(0x2f4,0x2ce)]));}*[al(0xe4,0x9e)](){function aO(a,b){return al(a,b- -0x247);}const d=yield this['$'][aO(-0x1b5,-0x1ea)];if(d){const e=yield d['$']['startDate'];const f=yield this['$']['startDate'];return(yield*this[aO(-0x161,-0x175)](e,f,TimeUnit[aO(-0x104,-0x15f)]))??0x0;}else return null;}*[al(0xb9,0x7a)](){function aP(a,b){return al(a,b-0x1c5);}const d=yield this['$'][aP(0x2df,0x2a7)];const e=d['event'];if(e){if(d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$'][aP(0x26e,0x29c)]))==null){const f=(yield e['$'][aP(0x288,0x26e)])??(yield e['$'][aP(0x292,0x295)]);const g=yield this[aP(0x2cc,0x282)]['$'][aP(0x1fe,0x25d)];return(yield*this[aP(0x282,0x297)](f,g,TimeUnit[aP(0x2bd,0x2ad)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aP(0x2e7,0x29c)]);}}else{return null;}}*['calculateProposedStartOffset'](){function aQ(a,b){return al(b,a- -0x2cd);}const d=yield this['$']['selector'];const e=d[aQ(-0x270,-0x21a)];if(e){const f=(yield e['$'][aQ(-0x1fa,-0x20b)])[aQ(-0x247,-0x244)]<0x0;if(f||d[aQ(-0x22d,-0x23a)]||(yield PreviousValueOf(this['$'][aQ(-0x1f6,-0x1e9)]))==null){const g=yield this['$'][aQ(-0x1ec,-0x1d2)];const h=g['direction']===Direction['Forward']?yield e['$'][aQ(-0x26c,-0x280)]:yield e['$']['minAssignmentProposedStartDate'];const i=yield this['proposedMirror']['$'][aQ(-0x235,-0x23a)];return(yield*this[aQ(-0x1fb,-0x1db)](h,i,TimeUnit['Millisecond']))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aQ(-0x1f6,-0x1a7)]);}}else{return null;}}*['calculatePhantomStartDate'](){const d=yield this['$'][aR(-0x23a,-0x1ec)];if(d[aR(-0x230,-0x271)]&&!d[aR(-0x26a,-0x252)]&&(d['isPhantomTimePhased']||(yield*d['event']['isDurationDefinedByEffort']()))){return yield*this[aR(-0x211,-0x21b)]();}function aR(a,b){return al(a,b- -0x2ce);}return null;}*[al(0x75,0x6e)](){const d=yield this['$'][aS(0x40,0x7e)];if(d[aS(-0x39,-0x7)]&&!d[aS(-0x3e,0x18)]&&(d[aS(0x57,0x14)]||(yield*d[aS(0x4e,-0x7)][aS(0x9e,0x95)]()))){const e=yield this['$']['phantomStartDate'];if(e){return yield*this[aS(0x1f,0x78)](e,!![],yield this['$'][aS(0x95,0x46)],yield this['$'][aS(0x7c,0x4a)]);}}function aS(a,b){return al(a,b- -0x64);}return null;}*[al(0x50,0x91)](){function aT(a,b){return al(a,b-0x44a);}const d=yield this['$']['event'];if(d){const e=yield d['$'][aT(0x4d3,0x497)];const f=yield this['$'][aT(0x450,0x497)];return yield*this['calculateProjectedDuration'](f,e,TimeUnit[aT(0x513,0x532)]);}else return null;}*[al(0xa6,0x93)](){const d=yield this['$'][aU(0x86,0xc7)];function aU(a,b){return al(a,b- -0x1b);}const e=d[aU(0x4f,0x42)];if(e){if(d[aU(0x96,0x85)]||(yield PreviousValueOf(this['$'][aU(0xa5,0x8b)]))==null){const f=(yield e['$'][aU(0x57,0x4a)])??(yield e['$']['maxAssignmentProposedEndDate']);const g=yield this['proposedMirror']['$'][aU(0x79,0x32)];return yield*this[aU(0x68,0xb7)](g,f,TimeUnit[aU(0x122,0xcd)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aU(0x9d,0x8b)]);}}else{return null;}}*[al(0x49,0x5a)](){const d=yield this['$'][aV(-0x189,-0x17c)];const e=d[aV(-0x23b,-0x201)];function aV(a,b){return al(a,b- -0x25e);}if(e){const f=(yield e['$'][aV(-0x1ba,-0x1a9)])[aV(-0x1c2,-0x1d8)]<0x0;if(f||d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$'][aV(-0x1e5,-0x1b8)]))==null){const g=yield this['$'][aV(-0x11e,-0x17d)];const h=g['direction']===Direction[aV(-0x1a7,-0x1d3)]?yield e['$'][aV(-0x253,-0x20a)]:yield e['$'][aV(-0x1a9,-0x1a4)];const i=yield this[aV(-0x16b,-0x1a1)]['$'][aV(-0x1f9,-0x211)];return yield*this[aV(-0x146,-0x18c)](i,h,TimeUnit[aV(-0x11f,-0x176)]);}else{return yield ProposedOrPreviousValueOf(this['$']['endOffset']);}}else{return null;}}*[al(0xbf,0xbf)](){const d=yield this['$'][aW(0x566,0x55a)];function aW(a,b){return al(b,a-0x484);}return d[aW(0x543,0x56d)];}*[al(0xca,0xf9)](){const d=yield this['$'][aX(0x333,0x30c)];function aX(a,b){return al(a,b-0x22a);}return d[aX(0x30b,0x323)];}*[al(0x117,0xf4)](d,e){function aY(a,b){return al(a,b-0x38d);}const {event:f}=this;if(f&&((yield*this[aY(0x4d4,0x486)]())||(yield*f[aY(0x43b,0x486)]()))){return yield*this[aY(0x433,0x469)](d,e,yield this['$'][aY(0x42e,0x437)],yield this['$'][aY(0x45a,0x43b)]);}else{return yield*this[aY(0x3b2,0x3f8)](d,e,yield this[aY(0x42e,0x44a)]['$'][aY(0x41b,0x458)],yield this['$'][aY(0x42b,0x3e3)]);}}*[al(0xb7,0x5f)](){function aZ(a,b){return al(a,b-0x38);}const d=yield this['$'][aZ(0xd7,0x11a)];const e=d['event'];if(e&&d[aZ(0x12b,0x10e)]){const f=yield this['$']['effectiveDirection'];if(f[aZ(0x103,0x12f)]===Direction[aZ(0x8f,0xaa)]){const g=yield*this['calculateStartByDelay']();const h=yield e['$'][aZ(0xe4,0x85)];if(g>h){return h;}else return g;}else{const i=yield this['$'][aZ(0xcf,0x85)];const j=yield e['$']['startDate'];const k=yield this[aZ(0x100,0xf5)]['$'][aZ(0x131,0x103)];const l=yield*this[aZ(0x78,0xa3)](i,![],k);if(l<j){return j;}else return l;}}else{return yield ProposedOrPrevious;}}*[al(0x79,0xab)](){function b0(a,b){return al(a,b-0x61);}const d=yield this['$'][b0(0x126,0x143)];const e=d['event'];if(e&&d['isUserTimePhased']){const f=yield this['$']['effectiveDirection'];if(f[b0(0x105,0x158)]===Direction[b0(0x11a,0xd3)]){const g=yield this['$'][b0(0x139,0xf9)];const h=yield e['$'][b0(0xeb,0xae)];const i=yield this[b0(0x118,0x11e)]['$']['duration'];const j=yield*this[b0(0xcb,0xcc)](g,!![],i);if(j>h){return h;}else return j;}else{const k=yield*this[b0(0x12f,0x141)]();const l=yield e['$']['startDate'];if(k<l){return l;}else return k;}}else{return yield ProposedOrPrevious;}}*[al(0x124,0xdd)](){const d=yield this['$'][b1(0x51d,0x55a)];const e=yield this['$']['endDate'];function b1(a,b){return al(b,a-0x485);}return yield*this[b1(0x557,0x525)](d,e);}*['calculateStartByDelay'](){function b2(a,b){return al(b,a- -0xa9);}const d=yield this['$'][b2(-0x4c,-0x1c)];if(d){const e=yield d['$'][b2(-0x11,0x2c)];const f=yield this['$'][b2(0x2c,0x4f)];const g=yield*this[b2(-0x3e,-0x94)](e,!![],f,TimeUnit[b2(0x3f,0x1b)]);const h=yield*this[b2(0xb,0x8)](g,!![]);return h;}else{return null;}}*[al(0xb2,0xe0)](){const d=yield this['$'][b3(-0x15a,-0x124)];function b3(a,b){return al(b,a- -0x1b7);}if(d){const e=yield d['$'][b3(-0x16a,-0x1a1)];const f=yield this['$']['proposedEndOffset'];const g=yield*this[b3(-0x14c,-0x164)](e,![],f,TimeUnit['Millisecond']);const h=yield*this[b3(-0x103,-0x112)](g,![]);return h;}else{return null;}}*['calculateEffectiveDataOrVisualCalendar'](d){function b4(a,b){return al(b,a- -0x21f);}const e=yield this['$']['event'];const f=e?yield e['$']['effectiveCalendar']:yield this[b4(-0x196,-0x1a5)]()['$'][b4(-0x141,-0x11e)];yield f['$'][b4(-0x11c,-0x126)];return f;}*[al(0x8c,0x75)](){return!![];}*[al(0x94,0x8a)](){const d=new Map();const e=yield this['$']['resource'];if(e){const f=yield e['$'][b5(-0x158,-0x104)];d['set'](f,[this]);}function b5(a,b){return al(a,b- -0x1e2);}return d;}*[al(0xaf,0x80)](){const d=yield this['$'][b6(0x1bc,0x176)];function b6(a,b){return al(a,b-0x94);}return d['isTimePhasedStructurally'];}*[al(0xb0,0x79)](){const d=yield this['$'][b7(0xbf,0x8b)];const {event:e}=d;function b7(a,b){return al(a,b- -0x57);}return e&&(d['isTimePhased']||(yield*e[b7(0x45,0xa2)]()));}*[al(0x9b,0xd6)](){const d=yield this['$']['selector'];function b8(a,b){return al(b,a-0x3cb);}return d[b8(0x4a1,0x4c7)];}*[al(0x7b,0x78)](){function b9(a,b){return al(a,b-0x69);}const d=yield this['$'][b9(0x18d,0x14b)];return d[b9(0xf9,0xe1)];}*['getBaseOptionsForDurationCalculations'](){function ba(a,b){return al(a,b- -0xf2);}const d=yield*super[ba(-0xba,-0x71)]();const e=yield this['$'][ba(-0x95,-0x95)];if(e){const f=yield*e[ba(-0xc2,-0x7e)]();if(f===SchedulingMode[ba(-0x82,-0x86)]){d[ba(-0x75,-0xab)]=![];}}return d;}*[al(0x37,0x67)](d,e){function bb(a,b){return al(a,b-0x3a5);}if(yield*this[bb(0x463,0x440)]()){const f=yield this['$'][bb(0x408,0x402)];if(yield this['$']['effortDriven']){if(!f||(yield ProposedOrPreviousValueOf(f['$'][bb(0x490,0x44f)]))!=null)e[bb(0x4c6,0x4a6)](EffortVar);}else{if(yield*this[bb(0x4fb,0x4a0)]()){e[bb(0x4b2,0x4a6)](UnitsVar);}}}}*[al(-0x17,0x46)](d){const e=yield*this[bc(-0x253,-0x275)]();const f=yield this['$'][bc(-0x293,-0x28c)];function bc(a,b){return al(a,b- -0x2e9);}if(e!==SchedulingMode[bc(-0x2cf,-0x27d)]&&f){let g;const h=yield this['$']['selector'];const i=yield*f[bc(-0x193,-0x1f0)]();if(h['isTimePhased']||i){g=yield*super['prepareDispatcher'](d);}else{g=yield*super[bc(-0x266,-0x2a3)](d);g[bc(-0x1f8,-0x1e9)](d,f['$']['startDate'],StartDateVar);g['collectInfo'](d,f['$']['endDate'],EndDateVar);g[bc(-0x222,-0x1e9)](d,f['$'][bc(-0x1d8,-0x21e)],DurationVar);g[bc(-0x20f,-0x1e9)](d,f['$'][bc(-0x249,-0x23f)],EffortVar);}if(i){g[bc(-0x18a,-0x1e8)](EffortVar);g[bc(-0x2be,-0x278)](EffortVar);}if(yield*f[bc(-0x261,-0x262)]()){g[bc(-0x1e6,-0x1e8)](UnitsVar);}return g;}else{return yield*super[bc(-0x2a0,-0x2a3)](d);}}*['hasProposedAssignments'](){const d=yield this['$'][bd(0x61,0xb0)];function bd(a,b){return al(b,a-0x4);}return d?yield HasProposedValue(d['$'][bd(0xfa,0x13e)]):![];}*['hasProposedValueForUnits'](){function be(a,b){return al(a,b-0x2e4);}return yield HasProposedValue(this['$'][be(0x40b,0x3c7)]);}*[al(0xef,0xfb)](){function bf(a,b){return al(a,b- -0xc6);}return(yield PreviousValueOf(this['$'][bf(0x4d,0x1d)]))!==void 0x0;}*[al(0xa7,0xa3)](){function bg(a,b){return al(b,a- -0x318);}const d=yield*this[bg(-0x2a4,-0x2ed)]();const e=yield this['$'][bg(-0x2bb,-0x2ee)];if(e&&d!==SchedulingMode['Normal']){const f=yield this['$']['dispatcher'];const g=f[bg(-0x28c,-0x24d)][bg(-0x27f,-0x25c)](EffortVar);if(g===CalculateProposed){const h=yield HasProposedNotPreviousValue(e['$']['effort']);const i=yield*e[bg(-0x2c3,-0x268)]('effort');if(h&&!i||(yield*this[bg(-0x27d,-0x2a9)]())&&(yield HasPreviousValue(e['$'][bg(-0x26e,-0x2b0)]))&&!(yield e['$'][bg(-0x2c1,-0x31e)])['hasEffortInput']&&!this[bg(-0x267,-0x29e)][bg(-0x2c8,-0x2f7)]){return yield*this[bg(-0x2bc,-0x2c7)]();}return yield*this['calculateEffortProposed']();}else if(g===effortFormula['formulaId']){return yield*this[bg(-0x239,-0x289)]();}else{throw new Error(bg(-0x227,-0x21e));}}else{return yield*b[bg(-0x275,-0x289)][bg(-0x295,-0x28e)](this);}}*[al(0x46,0x58)](){function bh(a,b){return al(b,a- -0x203);}const d=yield this[bh(-0x1a6,-0x18d)]['$']['proposedTotalUnits'];const e=yield ProposedOrPreviousValueOf(this['event']['$'][bh(-0x159,-0x14d)]);const f=yield this[bh(-0x1a6,-0x203)]['$'][bh(-0x155,-0x172)];const g=(yield*this['getProject']()[bh(-0x10e,-0x11b)](e,f,TimeUnit[bh(-0x11b,-0xcb)]))*((yield ProposedOrPreviousValueOf(this['$'][bh(-0x120,-0x176)]))??0x64);const h=g===0x0?0x0:d===0x0?0x0:g/d;return yield*this[bh(-0x17a,-0x186)]()[bh(-0x10e,-0x102)](h,TimeUnit[bh(-0x11b,-0xfe)],yield this['$'][bh(-0x155,-0x10c)]);}*[al(0x6b,0xbe)](){const d=yield PreviousValueOf(this['event']['$'][bi(0x2a2,0x252)]);const e=yield this['event']['$']['effortUnit'];const f=yield*this[bi(0x1fe,0x231)]()[bi(0x27d,0x29d)](d,e,TimeUnit[bi(0x2e9,0x290)]);if(f===0x0){return 0x0;}const g=yield PreviousValueOf(this['$'][bi(0x250,0x252)]);function bi(a,b){return al(a,b-0x1a8);}const h=yield this['$'][bi(0x287,0x256)];const i=yield*this[bi(0x232,0x231)]()[bi(0x2ec,0x29d)](g,h,TimeUnit['Millisecond']);const j=yield ProposedOrPreviousValueOf(this['event']['$'][bi(0x269,0x252)]);const k=yield*this[bi(0x224,0x231)]()[bi(0x26e,0x29d)](j,e,TimeUnit['Millisecond']);if(d!=null&&g!=null&&j!=null){const l=k*(i/f);return yield*this[bi(0x278,0x231)]()[bi(0x2f7,0x29d)](l,TimeUnit[bi(0x2ab,0x290)],h);}else{return 0x0;}}*[al(0xa0,0x5c)](){const {event:d}=this;const e=yield HasProposedNotPreviousValue(d['$']['effort']);function bj(a,b){return al(a,b- -0x1e);}const f=yield*d['hasProposedAssignments']();const g=yield PreviousValueOf(d['$']['effort']);if(e&&!f&&g){return yield*this[bj(0x6f,0xa0)]();}else{return yield*this[bj(0x6a,0x3a)]();}}*[al(0xb0,0x64)](d){const {event:e}=this;const f=yield HasProposedNotPreviousValue(e['$']['effort']);const g=yield*e[bk(-0x22f,-0x23f)]('effort');const h=f&&!g?yield*this['calculateProportionalEffort']():yield this['$'][bk(-0x248,-0x1ea)],i=yield this['$'][bk(-0x1f2,-0x1e6)],j=yield*this[bk(-0x1ba,-0x20b)]()['$convertDuration'](h,i,TimeUnit[bk(-0x1f9,-0x1ac)]);let k,l;if(yield*this[bk(-0x202,-0x21b)]()){k=yield this['$'][bk(-0x19f,-0x1fc)];l=yield this['$'][bk(-0x22a,-0x247)];}else{k=yield e['$'][bk(-0x247,-0x1fc)];l=yield e['$'][bk(-0x27a,-0x247)];}if(!k&&!l){return yield ProposedOrPrevious;}let m=0x0;const n=Object[bk(-0x278,-0x23b)](yield*this['getBaseOptionsForEffortCalculations'](),{'startDate':k,'endDate':l});function bk(a,b){return al(a,b- -0x294);}const o=yield this['$'][bk(-0x276,-0x221)];yield*this[bk(-0x1f4,-0x216)](n,(p,q,r)=>{const s=r[bl(0x13d,0x12c)]();function bl(a,b){return bk(a,b-0x377);}const t=p[bl(0x1e3,0x1c8)](),u=q[bl(0x1b8,0x1c8)](),v=u-t;for(const w of s){m+=(o[bl(0x1de,0x185)](w)?o[bl(0x187,0x17c)](w)['length']:0x0)*v;}});return m?0x64*j/m:0x64;}*[al(0x61,0x68)](d,e,f,g,h){const i=this['getProject']();const j=this[bm(0x7c,0xcb)];const k=yield*i[bm(0x114,0xd3)](f,g,TimeUnit[bm(0x107,0x165)]);let l=0x0;const m=Object[bm(0x78,0x8f)](yield*this['getBaseOptionsForEffortCalculations'](),{'startDate':d,'endDate':e});const n=yield j['$'][bm(0x123,0xcf)];const o=(yield j['$']['ignoreResourceCalendar'])||(yield this['$'][bm(0x66,0x9c)])||(yield*j['hasElapsedDuration']())||n&&!i['skipNonWorkingTimeInDurationWhenSchedulingManually'];const p=o?yield j['$'][bm(0xfd,0x114)]:yield h['$'][bm(0xfd,0xcb)];yield*this[bm(0x9d,0xee)](m,(q,r,s)=>{const t=s['getCalendarsWorking']();const u=q['getTime'](),v=r['getTime'](),w=v-u;for(const x of t){l+=(x===p?0x1:0x0)*w;}});function bm(a,b){return al(b,a-0x1f);}return l?0x64*k/l:0x64;}}c[al(0x6a,0x6a)]=al(0x101,0xfd);__decorate([model_field({'type':al(0xe8,0xdb),'defaultValue':!![]})],c[al(0x7c,0x77)],al(0xaa,0x96),void 0x0);__decorate([model_field({'type':al(0xd4,0xe4),'defaultValue':SchedulingMode[al(0x5d,0x8d)]},{'sync':!![]})],c[al(0x8d,0x77)],al(0x60,0x9a),void 0x0);__decorate([model_field({'type':al(0xd7,0xdb),'defaultValue':![]})],c[al(0x8e,0x77)],al(0x9e,0x47),void 0x0);__decorate([model_field({'type':'date','bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0x64,0x77)],al(0x51,0x98),void 0x0);__decorate([model_field({'type':'date','bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[al(0x4d,0x77)],al(0x2,0x4d),void 0x0);__decorate([model_field({'type':al(0x3a,0x70),'bypassEqualityOnSyncDataset':!![],'defaultValue':null,'allowNull':!![]})],c[al(0xca,0x77)],'duration',void 0x0);__decorate([model_field({'type':al(0x12,0x70),'defaultValue':null})],c[al(0x53,0x77)],al(0xdd,0xaa),void 0x0);__decorate([field()],c['prototype'],al(0x105,0xe2),void 0x0);__decorate([calculate(al(0x10a,0xe2))],c[al(0x55,0x77)],al(0xc2,0xec),null);__decorate([calculate(al(0xcd,0x96))],c[al(0xcc,0x77)],'calculateEffortDriven',null);__decorate([calculate('schedulingMode')],c[al(0x7e,0x77)],'calculateSchedulingMode',null);__decorate([field()],c[al(0x5b,0x77)],al(0xce,0xd7),void 0x0);__decorate([field()],c[al(0xcc,0x77)],al(0x16,0x48),void 0x0);__decorate([field()],c[al(0x63,0x77)],al(0xe9,0xd5),void 0x0);__decorate([field()],c[al(0x22,0x77)],al(0xb3,0xa6),void 0x0);__decorate([field()],c[al(0x21,0x77)],al(0xc7,0xc2),void 0x0);__decorate([field()],c[al(0x7b,0x77)],'proposedEndOffset',void 0x0);__decorate([field({'sync':!![]})],c['prototype'],al(0xe3,0xcc),void 0x0);__decorate([write(al(0x19,0x47))],c[al(0x82,0x77)],al(0x13f,0x102),null);__decorate([write(al(0xab,0x98))],c[al(0x99,0x77)],al(0xb,0x5b),null);__decorate([write(al(0xe,0x4d))],c[al(0x68,0x77)],al(0xfd,0xcd),null);__decorate([write(al(0x129,0xcb))],c[al(0x58,0x77)],'writeDuration',null);__decorate([write(al(0xb3,0xaa))],c[al(0x46,0x77)],'writeEffort',null);function al(a,b){return _enaa(b- -0x100,a);}__decorate([write(al(0xe4,0xe3))],c['prototype'],al(0xca,0x94),null);__decorate([calculate('ignoreResourceCalendar')],c['prototype'],al(0x115,0xbb),null);__decorate([calculate('startOffset')],c['prototype'],al(0x99,0x9e),null);__decorate([calculate(al(0x76,0xd5))],c[al(0x64,0x77)],al(0x136,0xfe),null);__decorate([calculate('phantomStartDate')],c['prototype'],al(0xec,0xfa),null);__decorate([calculate('phantomEndDate')],c['prototype'],al(0x9e,0x6e),null);__decorate([calculate('endOffset')],c[al(0xcf,0x77)],al(0xdd,0x91),null);__decorate([calculate('proposedEndOffset')],c['prototype'],'calculateProposedEndOffset',null);__decorate([calculate('effort')],c[al(0xc4,0x77)],al(0xc0,0xa3),null);return c;}){}class TimePhasedAssignmentCalendarIntervalMixin extends CalendarIntervalMixin{static get['fields'](){function bn(a,b){return _enaa(b- -0x26,a);}return[bn(0x1af,0x19d)];}}class TimePhasedAssignmentCalendarIntervalStore extends CalendarIntervalStore{static get[_enaa(0x14c,0x152)](){return{'modelClass':TimePhasedAssignmentCalendarIntervalMixin};}}class TimePhasedAssignmentCalendar extends BaseCalendarMixin{constructor(){function bo(a,b){return _enaa(b- -0x41a,a);}super(...arguments);this[bo(-0x1dd,-0x22a)]=!![];}get[_enaa(0x1da,0x207)](){return TimePhasedAssignmentCalendarIntervalStore;}}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xf5;let f=c[d];return f;};return _enb(a,b);}function _ena(){const bp=['calculateIgnoreResourceCalendar','$removed','proposedMirror','calculateProportionalEffortByEffort','isDurationDefinedByEffortStructurally','hasInputOnEffort','eventEffortDriven','phantomEndDate','assignment','calculateEffortDriven','_proposedMirror','object','sort','3567020QGQjfu','5272888ufuUxa','setTimePhasedEffort','duration','ownIgnoreResourceCalendar','writeEndDate','writeDuration','length','minAssignmentProposedStartDate','calculateEffortUnit','calculateProjectedDuration','proposedStartOffsets','splice','proposedStartOffset','isUserTimePhased','startOffset','doCalculateAssignmentProjectedEffort','set','intervalStoreClass','boolean','calculateProjectedXDateByEffort','calculateDuration','effectiveCalendar','calculateEffortPure','calculateEndByDelay','effectiveDirection','selector','units','string','getTime','hasSomeInput','decorate','Millisecond','graph','putTimePhasedEffort','commitAsync','calculateSelector','function','push','defineProperty','isTimePhasedCalendar','Unknown\x20formula\x20for\x20`effort`','enterGraph','remove','calculateProjectedXDate','$convertDuration','assigned','direction','calculateHasOnlyRegularAssignmentsRaw','isDurationDefinedByEffort','calculatePhantomStartDate','hasPreviousValueForUnits','_changeAssignmentData','SchedulerProTimePhasedAssignmentMixin','calculateProposedStartOffset','hasDurationValue','collectInfo','addProposedValueFlag','writeIgnoreResourceCalendar','version','manuallyScheduled','prepareDispatcher','ignoreResourceCalendar','phantomStartDate','getCalendarsWorking','1964GvRhuC','calculateProjectedEffort','defaultConfig','endDate','unlink','hasInputOnEndDate','isRemovingAssignmentByPutEffort','hasInputOnStartDate','calculateSchedulingMode','2215JMSFat','proposedEndDateMax','hasProposedValueForAssignmentsField','durationUnit','timePhasedDispatcher','calculateProportionalEffortByUnits','assign','calculateProposedEndOffset','writeStartDate','calculateProportionalEffort','event','calculateEffectiveDirection','calculateStartDate','resource','proposedStartDateMin','hasEndDateValue','calculateEffectiveDataOrVisualCalendar','calculateUnitsByStartEndAndEffort','proposedEndDate','calculateDurationUnit','prepareDispatcherForAssignmentsFixedDuration','calculateUnitsForNewAssignment','filter','$name','calculateProjectedXDateWithDuration','Normal','doCalculateAssignmentEffort','calculatePhantomEndDate','180509FvPkWp','number','addKeepIfPossibleFlag','Forward','assignmentsByCalendar','effectiveSchedulingMode','useEventAvailabilityIterator','hasStartDateValue','prototype','isPhantomTimePhased','isTimePhased','calculateProposedStartOffsetRaw','eventEffectiveSchedulingMode','eventIsSegmented','getOwnPropertyDescriptor','forEachAvailabilityInterval','baseRevision','isTimePhasedStructurally','getBaseOptionsForDurationCalculations','write','call','hasIdentifier','isSegmented','minOffset','hasProposedValueForUnits','44hLOVHj','getProject','calculateAssignmentsByCalendar','Backward','resolution','FixedDuration','FixedEffort','slice','340AEhUNE','calculateEndOffset','hasInputOnDuration','calculateProposedEndOffsetRaw','writeUnits','putTimePhasedEffortBatch','effortDriven','constructor','startDate','get','schedulingMode','hasProposedAssignments','leaveGraph','2360328MCdbbm','calculateStartOffset','add','hasInputOnTimePhasedData','eventSelector','has','calculateEffort','hasInputOnlyOnEffort','run','endOffset','ion','416228OChaAC','proposedStartDate','effort','calculateEndDate','60zeMtTL','9uuQtuz','effortUnit','6828cqnvLj','isChangingOnlyEndDate','project','size','calculateStartByDelay','skipNonWorkingTime','proposedEndOffsets','calculateSchedulingModeForUnitsCalculation','forEach','_calculateEffortData','hasInputOnUnits','maxAssignmentProposedEndDate'];_ena=function(){return bp;};return _ena();}export{SchedulerProTimePhasedAssignmentMixin,TimePhasedAssignmentCalendar,TimePhasedAssignmentCalendarIntervalMixin,TimePhasedAssignmentCalendarIntervalStore,TimePhasedAssignmentMirror,TimePhasedAssignmentSelector};
@@ -1 +1 @@
1
- function _enN(a,b){return _enb(a- -0x1e7,b);}(function(a,b){const c=a();function L(a,b){return _enb(b-0x231,a);}while(!![]){try{const d=-parseInt(L(0x359,0x39a))/0x1*(parseInt(L(0x2df,0x327))/0x2)+parseInt(L(0x3c3,0x394))/0x3*(parseInt(L(0x38a,0x386))/0x4)+-parseInt(L(0x39e,0x393))/0x5+-parseInt(L(0x36c,0x333))/0x6+parseInt(L(0x3ba,0x391))/0x7*(-parseInt(L(0x372,0x345))/0x8)+-parseInt(L(0x393,0x34b))/0x9*(parseInt(L(0x358,0x362))/0xa)+parseInt(L(0x345,0x385))/0xb*(parseInt(L(0x353,0x348))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe82b4));var __decorate=function(a,b,e,f){function M(a,b){return _enb(b-0x375,a);}var g=arguments[M(0x4cc,0x4a1)],h=g<0x3?b:f===null?f=Object[M(0x503,0x4f3)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[M(0x48e,0x47d)]===M(0x4a5,0x495))h=Reflect[M(0x47a,0x47d)](a,b,e,f);else for(var k=a[M(0x45e,0x4a1)]-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[M(0x4dd,0x4b7)](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 _ena(){const av=['dispatcher','name','reduce','isHasSubEventsMixin','nextSegment','getTime','SegmentsVar','startDate','call','SplitEventMixin','rawModifications','8YzOjwv','getPath','normalizeUnit','Millisecond','hasIdentifier','isForward','cls','modified','getLatestStableEntryFor','lastSegment','map','adjustDurationToDST','3516288cjjXoR','isModel','$name','assign','duration','removeEntities','decorate','durationUnit','calculateDurationProposed','forEach','getSegmentIndexByDate','endDate','calculateProjectedXDateWithDuration','getSegment','fieldMap','processData','copy','push','141992ipHMvL','ignoreSegments','direction','12iEIcyP','skipNonWorkingTimeInDurationWhenSchedulingManually','$activeTransaction','62073qrgzRU','run','hasElapsedDuration','convertDurationGen','hasSegmentChangesProposed','autoMergeAdjacentSegments','function','getProject','splice','assignmentsByCalendar','some','doWriteSegments','_segmentGeneration','from','getSegmentsSnapshot','setPath','getSegments','has','length','every','array','skipNonWorkingTimeWhenSchedulingManually','graph','820AaXFnj','maxCalendarRange','_lastSegmentsSnapshot','isManuallyScheduled','getTimezoneOffset','forceSegmentsMerging','unlink','commitAsync','effectiveCalendarsCombination','prepareDispatcher','segmentModelClass','None','resolution','size','calculateStartDate','storeFieldChange','internalClearChanges','defineProperty','calculateAdjustedSegments','firstSegment','_processingDataForProject','_skipSegmentsIsEqual','skipNonWorkingTime','min','startOffset','internalId','event','prototype','getFieldPersistentValue','getCalendarsWorking','isSegmented','setProject','leaveProject','processSegmentValue','toJSON','50420535TonnPg','376636JHdeZP','childEvents','calculateEndDateBySegments','processSegmentsValue','forEachAvailabilityInterval','max','getCalendarsWorkStatus','cycleResolutionContext','calculateSegments','skipWorkingTime','writeSegments','665IcpYqN','ignoreResourceCalendar','2357695MvdUlS','3EEfEJU','findIndex','calculateProjectedDuration','adjustedSegments','previousSegment','slice','104396YrzXcg','write','add','generation','meta','endOffset','new','calculateStartDateBySegments','effectiveDirection','convert','segmentsToCleanup','endBatch','segments','get','zeroDurationMsThreshold','calculateDurationBySegments','pop','splitToSegments','calculateEndDate','project','data','getOwnPropertyDescriptor'];_ena=function(){return av;};return _ena();}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';import{MAX_DATE}from'../../../util/Constants.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xed;let f=c[d];return f;};return _enb(a,b);}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';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol(_enN(-0xf6,-0x138));const segmentsConverter=(a,b,c)=>c[_enN(-0x8f,-0x8b)](a);const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula[_enN(-0x78,-0x58)]({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula[_enN(-0x78,-0x6a)]({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(-0x78,-0x8e)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(-0x78,-0xb1)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution[_enN(-0x78,-0xb5)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{['equality'](a,b){const c=a[O(0x7c,0x8e)];function O(a,b){return _enN(b-0x138,a);}const d=b[O(0x86,0x8e)];return super['equality'](a,b)&&c[O(0x81,0xc7)](SegmentsVar)===d[O(0x94,0xc7)](SegmentsVar);}}function compareSegmentsArray(c,d){function P(a,b){return _enN(b-0x14c,a);}if(!c&&!d)return!![];if(this[P(0x82,0xab)])return![];if(!c&&d||c&&!d)return![];if(c[P(0x65,0x91)]!==d[P(0xa5,0x91)])return![];return c[P(0x88,0x92)]((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x13e,0x15e)]?c:d;const f=e['fieldMap'];const g=c[Q(0x12d,0x151)]instanceof Date?c[Q(0x12d,0x134)]['getTime']():f[Q(0x12d,0xfc)]['convert'](c[Q(0x12d,0x150)])?.[Q(0x12b,0x159)]();function Q(a,b){return _enN(a-0x222,b);}const h=d[Q(0x12d,0x158)]instanceof Date?d['startDate'][Q(0x12b,0xfe)]():f[Q(0x12d,0x126)][Q(0x1ad,0x1eb)](d[Q(0x12d,0x14c)])?.['getTime']();const i=c[Q(0x148,0x162)]instanceof Date?c[Q(0x148,0x12f)][Q(0x12b,0x153)]():f[Q(0x148,0x16f)][Q(0x1ad,0x1b0)](c[Q(0x148,0x185)])?.[Q(0x12b,0xfa)]();const j=d['endDate']instanceof Date?d['endDate']['getTime']():f[Q(0x148,0x14a)][Q(0x1ad,0x1a9)](d['endDate'])?.['getTime']();return g===h&&i===j;};const fillNextPrevious=a=>{a[R(0x4ee,0x4d5)]((b,c,d)=>{if(b){b[S(-0x2ee,-0x2f5)]=c;}function S(a,b){return R(b,a- -0x7c5);}c[S(-0x276,-0x254)]=b;c['segmentIndex']=d;return c;},null);function R(a,b){return _enN(b-0x5cf,a);}if(a[R(0x52b,0x514)]){a[a[R(0x506,0x514)]-0x1]['nextSegment']=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{function U(a,b){return _enN(b-0x5b3,a);}class b extends a{constructor(){function T(a,b){return _enb(b-0x4d,a);}super(...arguments);this[T(0x1b5,0x173)]={};}get[U(0x47e,0x4c1)](){function V(a,b){return U(b,a- -0x83);}let c=super['rawModifications'];if(this[V(0x4be,0x4a8)]&&(!c||!(V(0x4be,0x4f5)in c))){for(const d of this['segments']){if(d['rawModifications']){c=c||{};c['segments']=this[V(0x496,0x458)](V(0x4be,0x4b9));break;}}}return c;}[U(0x556,0x50d)](c,d,e,...f){for(const g of this[W(-0x25f,-0x236)]||[]){if(g[W(-0x2d1,-0x2c0)]){g[W(-0x293,-0x2da)][W(-0x2e1,-0x2a8)](g,c,d,null,...f);}}function W(a,b){return U(b,a- -0x7a0);}super['internalClearChanges'][W(-0x2e1,-0x2dc)](this,c,d,e,...f);}*[U(0x53e,0x506)](c){const d=yield*super[X(-0x11c,-0x118)](c);if(yield*this[X(-0xfd,-0x134)]()){d['addProposedValueFlag'](SegmentsVar);}function X(a,b){return U(a,b- -0x61e);}return d;}[U(0x567,0x528)](c){const d=c(this['$'][Y(0x33b,0x2f1)]);function Y(a,b){return U(b,a- -0x202);}return d[Y(0x2e0,0x301)]===Direction['Forward']||d['direction']===Direction[Y(0x306,0x340)]?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*[U(0x4a1,0x4ea)](){const c=yield ProposedValueOf(this['$'][Z(-0xb,0x23)]);let d=![];if(yield HasProposedValue(this['$'][Z(-0x25,0x23)])){d=Boolean(c);}const e=yield ProposedOrPreviousValueOf(this['$']['segments']);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$'][Z(-0x4f,-0x60)]);const h=yield HasProposedValue(f['$'][Z(-0x1b,-0x45)]);const i=yield HasProposedValue(f['$'][Z(-0x8e,-0x4c)]);if(g||h||i)d=!![];}function Z(a,b){return U(a,b- -0x51e);}return d;}[U(0x52d,0x52b)](c,d,e,f){const g=d[a0(0x2cb,0x28d)](c)?.['getValue']();const h=g!==TombStone?g??[]:[];const i=new Set(h);function a0(a,b){return U(b,a- -0x1ff);}const j=(f??[])[a0(0x2cd,0x2ba)](n=>n['isModel']?n:this['processSegmentValue'](n));const k=new Set(j);const l=this[a0(0x349,0x350)];const m=l['replica'];for(const n of h){if(!k[a0(0x2f8,0x2fa)](n)){l[a0(0x340,0x329)][a0(0x338,0x348)](n);n['event']=null;}}fillNextPrevious(j);c['constructor'][a0(0x319,0x310)][a0(0x337,0x36f)][a0(0x2c0,0x2e1)](this,c,d,e,j[a0(0x2f9,0x2e1)]>0x0?j:null);d[a0(0x337,0x35d)](this['$'][a0(0x31c,0x2e3)],Boolean(f?.['length']));for(const o of j){if(!i[a0(0x2f8,0x33f)](o)&&o[a0(0x2fd,0x324)]!==m){o[a0(0x31d,0x335)](l);o[a0(0x318,0x2e9)]=this;m['addEntity'](o);}}}*[U(0x4ae,0x4f1)](c,d){d=d||[];if(c[a1(-0x8,-0x23)]<=0x1){const e=c[a1(-0x21,-0x23)]?yield*this[a1(0xf,-0x32)](c[0x0][a1(0x2f,0x1f)]-c[0x0][a1(-0x20,-0x6)],TimeUnit['Millisecond'],yield this['$']['durationUnit']):0x0;d[a1(-0x19,-0x3c)]({'identifier':this['$'][a1(-0x2a,-0x49)],'proposedArgs':[e,null]});c=null;}d['push']({'identifier':this['$']['segments'],'proposedArgs':[c]});function a1(a,b){return U(a,b- -0x51b);}yield WriteSeveral(d);}*[U(0x559,0x529)](){const c=yield this['$']['dispatcher'];const {graph:d,project:e}=this;const f=e[a2(0x145,0xfe)];const g=yield e['$'][a2(0xc2,0xe2)]||this['forceSegmentsMerging'];const h=yield PreviousValueOf(this['$'][a2(0x132,0x138)]);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(0x93,0xdc)];for(const q of i){const r=yield q['$']['startOffset'];const s=yield q['$']['endOffset'];const t=yield q['$']['duration'];const u=p[a2(0xeb,0xbd)](q['$']['startDate'])&&(yield ProposedArgumentsOf(q['$']['startDate']));const v=p[a2(0x7f,0xbd)](q['$'][a2(0x10d,0xd0)])&&(yield ProposedArgumentsOf(q['$'][a2(0xa3,0xd0)]));n=n||u?.[0x0]||v?.[0x0];if(r===s){j[a2(0x8c,0xd6)](q);}else if(g&&m&&r+o<=m[a2(0xf9,0x131)]){const w=m['endOffset'];j[a2(0x8e,0xd6)](q);if(m[a2(0xcf,0xf3)]){j[a2(0x118,0xd6)](m);const x=m[a2(0xc4,0x10c)];const y=n?s+w-r:Math[a2(0x12f,0x11d)](s,w);const z=m[a2(0xd6,0xbf)];m=f['new']({'event':this,'cls':z,'startOffset':x,'endOffset':y});}else{m[a2(0x15f,0x131)]=n?s+m[a2(0xe8,0x131)]-r:Math[a2(0xdb,0x11d)](s,m[a2(0x147,0x131)]);}}else if(!g&&m&&(o||r<m['endOffset'])){l['add'](m);j[a2(0xd1,0xd6)](q);if(r+o<m[a2(0xe9,0x131)]){o+=m[a2(0x115,0x131)]-r-o;}m=f[a2(0x116,0x132)]({'id':q['id'],'event':this,'cls':m[a2(0xf9,0xbf)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l[a2(0x106,0x12e)](m);}m=q;}}if(m){l[a2(0xe8,0x12e)](m);}if(l[a2(0xf5,0x101)]===0x1){j[a2(0xf4,0xd6)](...l);}k=j[a2(0xc1,0xef)]>0x0;if(k){i=Array[a2(0x132,0xea)](l);}fillNextPrevious(i);}else if(h){j[a2(0xd3,0xd6)](...h);}function a2(a,b){return U(a,b- -0x409);}if(j[a2(0xeb,0xef)]){for(const A of j){A[a2(0xf9,0x10e)]=null;e[a2(0x164,0x136)][a2(0xe6,0x12e)](A);}}if(k){yield*this[a2(0xd9,0xe8)](i);}i=i?.[a2(0x104,0xef)]>0x1?i:null;return i;}*['calculateAdjustedSegments'](){const c=yield this['$'][a3(0x92,0x50)];let d=yield this['$']['segments'];function a3(a,b){return U(a,b- -0x4fb);}const e=yield this['$'][a3(-0x8,-0x3d)];const f=yield this['$'][a3(-0x3c,-0x22)];const g=yield this['$'][a3(-0x73,-0x29)];let h=yield ProposedOrPrevious;if(d){const j=this[a3(0x15,0x4d)];const k=this[a3(-0x3f,0x1)];const l=[];const m=[];let n=-0x1;for(let q=d[a3(-0x35,-0x3)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(-0x1,-0x3d)];const t=yield r['$'][a3(0x1d,-0x22)];if(s>f){l[a3(-0x37,-0x1c)](r);n=q;}else{if(t[a3(-0x6,-0x3f)]()!==f[a3(-0x10,-0x3f)]()){const u=r[a3(0x55,0x3f)]+(f[a3(-0x4b,-0x3f)]()-t[a3(-0xc,-0x3f)]())-r['startOffset'];const v=yield*this['convertDurationGen'](u,TimeUnit[a3(-0x65,-0x36)],yield r['$']['durationUnit']);m['push']({'identifier':r['$'][a3(-0x1b,-0x29)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(-0x29,-0x22)],'proposedArgs':[f,![]]},{'identifier':r['$']['endOffset'],'proposedArgs':[r[a3(0x1a,0x3f)]+(f[a3(-0x3f,-0x3f)]()-t[a3(0x4,-0x3f)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d['splice'](n);if(d['length']){d[d[a3(0x34,-0x3)]-0x1][a3(-0x40,-0x40)]=null;}for(const w of l){j[a3(0x87,0x44)][a3(0x2a,0x3c)](w);}}let p='';if(d){p=this[a3(-0xb,-0x7)](d);}if(p!==this[a3(-0x32,0x4)]){o=!![];d=d?d[a3(-0x11,0x39)]():d;this[a3(0xf,0x4)]=p;}if(o){yield*this[a3(-0x54,-0xa)](d,m);}}return h;}[U(0x513,0x4f4)](c){function a4(a,b){return U(a,b- -0x649);}c=c||this['segments'];return c?.[a4(-0x193,-0x17d)](d=>''+d[a4(-0x17c,-0x134)]+'-'+d[a4(-0x185,-0x18b)]?.[a4(-0x1be,-0x18d)]()+'-'+d[a4(-0x14d,-0x10f)]+'-'+d[a4(-0x129,-0x170)]?.[a4(-0x1bf,-0x18d)]())['join'](';');}static[U(0x4da,0x4dd)](c,d,e,f,g){function a5(a,b){return U(a,b- -0x337);}if(e){f[a5(0x1ef,0x1da)]=e[a5(0x1c9,0x211)];}return super[a5(0x176,0x1a6)](c,d,e,f,g);}[U(0x525,0x51e)](c){const d=this[a6(0x8d,0xa0)]?.[a6(0x9b,0x5f)]||this[a6(0x2a,0x69)]?.['segmentModelClass'];if(!d)return c;function a6(a,b){return U(a,b- -0x4a8);}const e=c[a6(0x1c,0x27)]?c:d['new'](c);if(!e['event'])e[a6(0x60,0x6f)]=this;return e;}[U(0x4e9,0x524)](c){function a7(a,b){return U(a,b- -0x389);}if(c===void 0x0)return void 0x0;if(c==null)return null;return c['map'](d=>this[a7(0x1cd,0x195)](d));}*[U(0x525,0x50b)](){function a8(a,b){return U(b,a- -0x20d);}const c=yield this['$'][a8(0x33e,0x2ff)];const d=c[a8(0x2fc,0x2dd)][a8(0x335,0x355)](StartDateVar);let e;if(d===startDateByEndDateAndSegmentsFormula['formulaId']){e=yield*this[a8(0x32f,0x326)]();}else{e=yield*super[a8(0x2fe,0x2fb)]();}return e;}*[U(0x583,0x53c)](){const c=yield this['$']['dispatcher'];const d=yield this['$'][a9(0x260,0x27c)];function a9(a,b){return U(b,a- -0x2e1);}const e=yield this['$']['endDate'];let f;if(d){const g=d[d[a9(0x217,0x1ee)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this[a9(0x1f9,0x1b0)](e,![],h,TimeUnit[a9(0x1e4,0x1e6)],{'ignoreSegments':!![]});const j=yield*this[a9(0x21f,0x209)]();f=j&&!this['getProject']()[a9(0x21a,0x1ed)]?i:yield*this[a9(0x232,0x209)](i,!![]);}return f;}*[U(0x4df,0x523)](){const c=yield this['$'][aa(0x46b,0x464)];const d=yield this['$'][aa(0x444,0x45a)];const e=yield this['$']['startDate'];function aa(a,b){return U(a,b- -0xe7);}let f;if(d){const g=d[d[aa(0x41c,0x411)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this['calculateProjectedXDateWithDuration'](e,!![],h,TimeUnit[aa(0x3b1,0x3de)],{'ignoreSegments':!![]});const j=yield*this['isManuallyScheduled']();f=j&&!this[aa(0x3dd,0x406)]()[aa(0x426,0x414)]?i:yield*this[aa(0x3fc,0x42c)](i,![]);}return f;}*[U(0x507,0x547)](){const c=yield this['$'][ab(0x1cb,0x1c2)];const d=c[ab(0x159,0x180)][ab(0x1e7,0x1b9)](EndDateVar);let e;function ab(a,b){return U(a,b- -0x389);}if(d===endDateByStartDateAndSegmentsFormula['formulaId']){e=yield*this[ab(0x175,0x19a)]();}else{e=yield*super[ab(0x1f6,0x1be)]();}return e;}*[U(0x4cb,0x4d6)](){let c;function ac(a,b){return U(b,a- -0x507);}if(yield*this[ac(-0x1d,-0x38)]()){c=yield*this[ac(0x3d,0xe)]();}else{c=yield*super[ac(-0x31,-0x3f)]();}return c;}*['skipNonWorkingTime'](c,d=!![],e){if(!c)return null;e=Object['assign']({'ignoreSegments':!![]},e);return yield*super['skipNonWorkingTime'](c,d,e);}*[U(0x537,0x52a)](c,d=!![],e,f,g){function ad(a,b){return U(a,b- -0x397);}if(!c)return null;g={'ignoreSegments':!![],...g};return yield*super[ad(0x1ca,0x193)](c,d,e,f,g);}*[U(0x577,0x544)](){let c;function ae(a,b){return U(b,a- -0x3db);}const d=yield this['$'][ae(0x170,0x161)];const e=yield this['$'][ae(0xfa,0x112)];const f=yield this['$'][ae(0x166,0x126)];if(f){let g=0x0;for(const h of f){g+=h[ae(0x15f,0x1a8)]-h[ae(0x13a,0xfe)];}c=yield*this['convertDurationGen'](g,TimeUnit[ae(0xea,0xdd)],e);}return c;}*[U(0x4ee,0x525)](c,d){const e=yield this['$'][af(-0xa5,-0xc6)];let f=c[af(-0xdf,-0xd4)];if(!e||f){return yield*super['forEachAvailabilityInterval'](c,d);}const g=this[af(-0xd3,-0x113)]();const h=yield this['$']['effectiveCalendar'];const i=yield this['$'][af(-0xd1,-0xa7)];const j=yield this['$'][af(-0xbb,-0xf2)];const k=c[af(-0xf9,-0x12a)]!==![];const l=(yield this['$'][af(-0x93,-0x6a)])||(yield*this[af(-0xd8,-0xf3)]())||c[af(-0x93,-0x73)]||!i[af(-0xb6,-0xbc)];const m=g[af(-0xc2,-0xc9)];let n=0x1;let o,p,q,r,s;if(!f){r=yield this['$'][af(-0x7f,-0x77)];f=f||!r;if(!f){r=r[af(-0x8c,-0xd6)]();if(k){o=r['shift']();p=0x0;n=0x1;s=o[af(-0x105,-0xfc)]?o[af(-0x86,-0x92)]:MAX_DATE['getTime']();}else{o=r[af(-0x7b,-0x95)]();p=o[af(-0x86,-0x5a)];n=-0x1;s=o[af(-0x86,-0x8e)];}q=s-o[af(-0xab,-0x66)];}}const t=yield*this['isManuallyScheduled']();const u=g[af(-0xf3,-0x119)];function af(a,b){return U(b,a- -0x5c0);}const v=this[af(-0x7d,-0x9c)];return j['forEachAvailabilityInterval'](Object[af(-0xef,-0xb5)]({'maxRange':m},c),(w,x,y)=>{const z=y[ag(0x23,0x2e)]();function ag(a,b){return af(a-0xbc,b);}const A=y[ag(0x16,0xc)]();if(z['get'](h)&&(l||A[ag(-0x14,0x7)](B=>i[ag(-0xd,0x37)](B))||t&&!g[ag(-0x20,0x18)])){if(f){return d(w,x,y);}else{const B=w['getTime']();let C=x[ag(-0x48,-0x4d)]()-w['getTime']();if(u){const F=w[ag(-0x3,-0x4a)]()-x[ag(-0x3,0x2d)]();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(0x11,0x7)]){const G=Math[ag(0x22,0x38)](D,o[ag(0x11,-0x16)]);const H=Math[ag(0x10,-0x2c)](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[ag(-0x48,-0x63)]()-I[ag(-0x48,-0x8c)]();if(q<v){o=k?r['shift']():r[ag(0x41,0x3a)]();if(o){s=!k||o[ag(-0x49,-0x8d)]?o[ag(0x36,0x26)]:MAX_DATE[ag(-0x48,-0x59)]();q=s-o[ag(0x11,-0x9)];}}else{break;}}p+=n*C;}}});}*['useEventAvailabilityIterator'](){function ah(a,b){return U(a,b- -0x3);}const c=yield this['$'][ah(0x4f9,0x518)];return c||(yield*super['useEventAvailabilityIterator']());}['getSegmentByDate'](c,d){d=d||this[ai(0x43b,0x46d)]();function ai(a,b){return U(b,a- -0xbb);}if(d){const e=this['getSegmentIndexByDate'](c,d);return d[e];}}[U(0x49e,0x4d8)](c,d){d=d||this[aj(0x2b2,0x285)]();function aj(a,b){return U(b,a- -0x244);}return d?d[aj(0x2ec,0x2a3)](e=>c>=e[aj(0x27a,0x24f)]&&c<e[aj(0x295,0x26a)]):-0x1;}get[U(0x519,0x510)](){const c=this[ak(-0xc5,-0x9c)]();function ak(a,b){return U(a,b- -0x592);}return c?c[0x0]:null;}get['lastSegment'](){function al(a,b){return U(a,b- -0x52b);}const c=this['getSegments']();return c?c[c[al(-0x58,-0x33)]-0x1]:null;}[U(0x4a3,0x4db)](c){const d=this[am(-0x106,-0x111)]();function am(a,b){return U(b,a- -0x5fc);}return d?.[c];}async[U(0x56d,0x546)](c,d=0x1,e){const f=this[an(0x2b2,0x2be)]();const g=f[an(0x2db,0x2d8)];await f[an(0x2d9,0x2d5)]();const h=this;if(!c||h[an(0x270,0x28b)]&&h[an(0x2be,0x2f3)]?.['size'])return;const j=h[an(0x25c,0x2a3)];const k=h[an(0x26f,0x2a6)];const m=h['startDate'];const n=h[an(0x2a0,0x2aa)];e=e?_enc[an(0x2c9,0x295)](e):k;if(!m||!n||m>=c||c>=n||!j)return;const o=h[an(0x333,0x2ec)];let p=h[an(0x323,0x312)]||[];let q,r;function an(a,b){return U(a,b- -0x22f);}if(o){r=h[an(0x2d6,0x2a9)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s[an(0x2d1,0x28f)]:m;const u=s[an(0x29c,0x2a3)];const v=s[an(0x28b,0x2a6)];const w=s[an(0x32f,0x31d)];const x=h[an(0x27d,0x2b8)](an(0x327,0x302),t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h['run']('convertDurationGen',d,e,TimeUnit[an(0x24e,0x296)]);const A=z+h[an(0x2d2,0x2b8)](an(0x318,0x302),m,c,TimeUnit[an(0x2ce,0x296)],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[an(0x31e,0x30c)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[an(0x2e9,0x305)](0x0);p[an(0x2cb,0x2bf)](r+0x1,0x0,B);h[an(0x34b,0x312)]=p;h['duration']=j;for(let C=r+0x2,D=p[an(0x311,0x2c9)];C<D;C++){const E=p[C];if(E){E[an(0x2f0,0x2e6)]+=z;E[an(0x2c1,0x30b)]+=z;}}}else{const F=g[an(0x34e,0x30c)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[an(0x307,0x30c)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h[an(0x2cf,0x2a3)]=j;h[an(0x320,0x312)]=[F,G];}return f[an(0x300,0x2d5)]();}async['mergeSegments'](c,d){if(!this[ao(-0x9,-0x30)])return;function ao(a,b){return U(b,a- -0x524);}this[ao(-0x22,-0x21)]=!![];c=c||this[ao(-0x14,-0x3f)];d=d||this[ao(-0x59,-0x58)];if(c[ao(-0xf,-0x1a)]>d[ao(-0xf,0x2b)]){let f=d;d=c;c=f;}c[ao(-0x4b,-0x33)]=d['startDate'];const e=await this[ao(-0x37,0xf)]()[ao(-0x20,-0x4)]();this[ao(-0x22,0xc)]=![];return e;}[U(0x538,0x50c)](c,d){function ap(a,b){return U(b,a- -0x7d);}if(c===ap(0x4c4,0x4bf)&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f['toJSON']();if(!this[ap(0x475,0x4bd)][f[ap(0x499,0x4d3)]]||f[ap(0x4bb,0x4b6)]>this[ap(0x475,0x449)][f[ap(0x499,0x495)]]){Object[ap(0x454,0x42c)](g,f[ap(0x4bc,0x4be)][ap(0x44c,0x44a)]);}e['push'](g);this[ap(0x475,0x4ba)][f[ap(0x499,0x470)]]=f[ap(0x4bb,0x4e7)];}else{e[ap(0x462,0x4a2)](f);}}d=e;}super['storeFieldChange'](c,d);}[U(0x558,0x51d)](){const c=this['segments'];function aq(a,b){return U(a,b- -0x5f4);}if(c){this['graph']?.[aq(-0xdb,-0x121)](c);}super[aq(-0xd0,-0xd7)]();}[U(0x4f6,0x540)](...c){this[ar(0x217,0x254)][ar(0x2ee,0x2b9)][ar(0x258,0x28a)]++;function ar(a,b){return U(a,b- -0x288);}super['endBatch'](...c);this[ar(0x28b,0x254)][ar(0x2c8,0x2b9)][ar(0x24e,0x28a)]--;}[U(0x512,0x4de)](c=null,d=null){const e=super[as(0x250,0x210)](c,d);function as(a,b){return U(a,b- -0x2ce);}e[as(0x243,0x27b)][as(0x22f,0x273)]=void 0x0;if(e[as(0x247,0x273)]){e[as(0x234,0x273)]=e['segments']['map'](f=>Object['assign'](f['copy'](),{'event':e}));}return e;}[U(0x568,0x51f)](){const c=super[at(0xea,0xe5)](),d=this['getFieldDefinition'](at(0xd1,0x107)),{persist:e,dataSource:f,complexMapping:g}=d;function at(a,b){return U(a,b- -0x43a);}if(e){let h=_end[at(0xa8,0x89)](c,f);if(h){h=h[at(0x8f,0x92)](i=>i['toJSON']());_end[at(0xfa,0xbb)](c,f,h);}}return c;}[U(0x4d3,0x503)](){const {segments:c}=this;c?.[au(0x4fe,0x4e6)](d=>d[au(0x514,0x512)]());function au(a,b){return U(a,b-0xf);}super[au(0x513,0x512)]();}}b[U(0x507,0x4d0)]=U(0x497,0x4c0);__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(0x514,0x518)],U(0x558,0x54b),void 0x0);__decorate([model_field({'type':U(0x4eb,0x4fa),'isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b['prototype'],'segments',void 0x0);__decorate([field()],b[U(0x4eb,0x518)],U(0x528,0x532),void 0x0);__decorate([field()],b['prototype'],U(0x517,0x51b),void 0x0);__decorate([write('segments')],b[U(0x500,0x518)],U(0x538,0x52b),null);__decorate([calculate(U(0x570,0x541))],b['prototype'],U(0x513,0x529),null);__decorate([calculate(U(0x50b,0x532))],b[U(0x54f,0x518)],U(0x558,0x50f),null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentsConverter,startDateByEndDateAndSegmentsFormula};
1
+ (function(a,b){function L(a,b){return _enb(b- -0x2be,a);}const c=a();while(!![]){try{const d=parseInt(L(-0x1a3,-0x1a4))/0x1+-parseInt(L(-0x152,-0x186))/0x2+-parseInt(L(-0x11c,-0x15a))/0x3+-parseInt(L(-0x1db,-0x18c))/0x4+parseInt(L(-0x16e,-0x16f))/0x5*(-parseInt(L(-0x173,-0x1b8))/0x6)+parseInt(L(-0x1a1,-0x18b))/0x7+parseInt(L(-0x19c,-0x1c0))/0x8*(parseInt(L(-0x147,-0x145))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x86aca));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[M(0x460,0x48b)](b,e):f,j;if(typeof Reflect===M(0x4a1,0x48f)&&typeof Reflect[M(0x50f,0x4cb)]===M(0x484,0x437))h=Reflect['decorate'](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 M(a,b){return _enb(b-0x356,a);}return g>0x3&&h&&Object[M(0x4b4,0x4a9)](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';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';import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol('SegmentsVar');const segmentsConverter=(a,b,c)=>c[_enN(0x490,0x49a)](a);const segmentSerializer=a=>a===null?null:a?.[_enN(0x47c,0x47b)](b=>b[_enN(0x45f,0x4a1)]);function _ena(){const au=['rawModifications','skipNonWorkingTimeInDurationWhenSchedulingManually','calculateAdjustedSegments','toJSON','getSegments','zeroDurationMsThreshold','2263512QTlDMq','6004950wCkfoc','every','getOwnPropertyDescriptor','getSegmentsSnapshot','ignoreSegments','1091248GuUjeb','object','getSegmentIndexByDate','dispatcher','adjustDurationToDST','durationUnit','reduce','getSegmentByDate','replica','equality','event','calculateStartDate','lastSegment','assignmentsByCalendar','formulaId','push','hasElapsedDuration','autoMergeAdjacentSegments','ignoreResourceCalendar','endDate','slice','get','endBatch','29735FGEcmB','cycleResolutionContext','min','some','defineProperty','nextSegment','hasIdentifier','effectiveDirection','$activeTransaction','add','copy','graph','isManuallyScheduled','hasSegmentChangesProposed','calculateDurationBySegments','shift','direction','$originalEvent','leaveProject','name','commitAsync','2191443QwdIwg','_processingDataForProject','forEach','internalClearChanges','isSegmented','getLatestStableEntryFor','prototype','SplitEventMixin','None','segmentModelClass','calculateSegments','forceSegmentsMerging','writeSegments','processSegmentValue','getCalendarsWorkStatus','unlink','getFieldDataSource','decorate','getPath','getProject','_segmentGeneration','12227337rpFGoi','$name','isHasSubEventsMixin','segmentsToCleanup','constructor','isModel','function','call','_skipSegmentsIsEqual','splice','getValue','calculateProjectedXDateWithDuration','startDate','modified','getCalendarsWorking','skipNonWorkingTimeWhenSchedulingManually','new','size','endOffset','calculateDurationProposed','calculateEndDate','segmentsMergeArgs','splitToSegments','Millisecond','assign','_lastSegmentsSnapshot','isForward','forEachAvailabilityInterval','persistableData','adjustedSegments','resolution','calculateProjectedDuration','setProject','duration','$PhantomId','8Clxcma','pop','processData','effectiveCalendarsCombination','convertDurationGen','calculateEndDateBySegments','Forward','startOffset','306CRbgHR','fieldMap','cls','firstSegment','join','skipNonWorkingTime','internalId','convert','run','calculateStartDateBySegments','segmentIndex','has','write','mergeSegments','map','data','max','project','findIndex','generation','480463pdzjpH','addProposedValueFlag','addEntity','removeEntities','meta','array','previousSegment','prepareDispatcher','clearChanges','length','segments','getTimezoneOffset','getTime','doWriteSegments','processSegmentsValue','effectiveCalendar','storeFieldChange','set'];_ena=function(){return au;};return _ena();}const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula[_enN(0x453,0x48c)]({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});function _enN(a,b){return _enb(a-0x368,b);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xe1;let f=c[d];return f;};return _enb(a,b);}const durationByStartDateAndEndDateAndSegmentsFormula=Formula[_enN(0x453,0x47e)]({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(0x453,0x471)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution['new']({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution[_enN(0x453,0x41d)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{[_enN(0x4a9,0x4dd)](a,b){function O(a,b){return _enN(a- -0x6ac,b);}const c=a[O(-0x24b,-0x22d)];const d=b[O(-0x24b,-0x215)];return super[O(-0x203,-0x207)](a,b)&&c[O(-0x1f7,-0x1ef)](SegmentsVar)===d[O(-0x1f7,-0x245)](SegmentsVar);}}function compareSegmentsArray(c,d,e){if(!c&&!d)return!![];function P(a,b){return _enN(a- -0x652,b);}if(this['_skipSegmentsIsEqual'])return![];if(!c&&d||c&&!d)return![];if(c[P(-0x1c7,-0x1c4)]!==d['length'])return![];return c[P(-0x1b6,-0x1d9)]((f,g)=>compareSegments(f,d[g],e));}const compareSegments=(c,d,e)=>{if(c===d)return c[Q(0x458,0x494)]?c['rawModifications']==null:!![];const f=c[Q(0x458,0x476)]?c:d[Q(0x458,0x410)]?d:e?.[Q(0x3f1,0x3a2)]?.[Q(0x447,0x40c)]??d;const g=f[Q(0x3e1,0x3e7)];const h=c[Q(0x3c1,0x375)]instanceof Date?c[Q(0x3c1,0x3ea)][Q(0x400,0x429)]():g[Q(0x3c1,0x40e)][Q(0x3e7,0x435)](c[Q(0x3c1,0x3bc)])?.[Q(0x400,0x41c)]();const i=d[Q(0x3c1,0x381)]instanceof Date?d['startDate'][Q(0x400,0x426)]():g['startDate']['convert'](d[Q(0x3c1,0x3ca)])?.[Q(0x400,0x41b)]();function Q(a,b){return _enN(a- -0x8e,b);}const j=c['endDate']instanceof Date?c[Q(0x425,0x3dc)]['getTime']():g[Q(0x425,0x3d8)][Q(0x3e7,0x3f9)](c[Q(0x425,0x3f7)])?.[Q(0x400,0x3db)]();const k=d['endDate']instanceof Date?d[Q(0x425,0x447)][Q(0x400,0x442)]():g[Q(0x425,0x423)][Q(0x3e7,0x3ab)](d[Q(0x425,0x436)])?.[Q(0x400,0x437)]();return h===i&&j===k;};const fillNextPrevious=a=>{a[R(0xe1,0x10b)]((b,c,d)=>{if(b){b[S(-0xc8,-0x10b)]=c;}function S(a,b){return R(b,a- -0x1e9);}c[S(-0xfc,-0x102)]=b;c[S(-0x10c,-0xf0)]=d;return c;},null);function R(a,b){return _enN(b- -0x39b,a);}if(a[R(0x10f,0xf0)]){a[a[R(0x10f,0xf0)]-0x1][R(0x128,0x121)]=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{class b extends a{constructor(){super(...arguments);function T(a,b){return _enb(b-0x18,a);}this[T(0x1c6,0x190)]={};}get['rawModifications'](){let c=super[U(0x168,0x14b)];function U(a,b){return _enb(a-0x3c,b);}if(this['segments']&&(!c||!('segments'in c))){for(const d of this[U(0x160,0x16a)]){if(d['rawModifications']){c=c||{};c[U(0x160,0x167)]=this['getFieldPersistentValue'](U(0x160,0x1a4));break;}}}else if(!this['segments']&&U(0x160,0x124)in(this[U(0x15a,0x1a3)][U(0x124,0xdf)]||{})&&(!c||!(U(0x160,0x139)in c))){c=c||{};c[U(0x160,0x11b)]=null;}return c;}[V(-0x190,-0x187)](c,d,e,...f){for(const g of this['segments']||[]){if(g[W(0x411,0x3f2)]){g[W(0x3fa,0x3b7)][W(0x375,0x399)](g,c,d,null,...f);}}function W(a,b){return V(a-0x58a,b);}super[W(0x3fa,0x3e9)]['call'](this,c,d,e,...f);}*[V(-0x1d6,-0x212)](c){function X(a,b){return V(a- -0x89,b);}const d=yield*super['prepareDispatcher'](c);if(yield*this[X(-0x224,-0x1de)]()){d[X(-0x265,-0x276)](SegmentsVar);}return d;}[V(-0x1a7,-0x19a)](c){const d=c(this['$'][Y(0x320,0x365)]);function Y(a,b){return V(b-0x506,a);}return d[Y(0x39c,0x36e)]===Direction[Y(0x325,0x313)]||d[Y(0x323,0x36e)]===Direction[Y(0x353,0x37b)]?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*['hasSegmentChangesProposed'](){function Z(a,b){return V(a-0x3cf,b);}const c=yield ProposedValueOf(this['$'][Z(0x1fc,0x20a)]);let d=![];if(yield HasProposedValue(this['$']['segments'])){d=Boolean(c);}const e=yield ProposedOrPreviousValueOf(this['$'][Z(0x1fc,0x229)]);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$']['startDate']);const h=yield HasProposedValue(f['$'][Z(0x223,0x26f)]);const i=yield HasProposedValue(f['$']['duration']);if(g||h||i)d=!![];}return d;}[V(-0x187,-0x1ba)](c,d,e,f){const g=d[a0(-0xf1,-0xf0)](c)?.[a0(-0x1ba,-0x174)]();const h=g!==TombStone?g??[]:[];const i=new Set(h);const j=(f??[])[a0(-0x11c,-0x145)](n=>n[a0(-0xae,-0xdb)]?n:this[a0(-0xf6,-0xe8)](n));const k=new Set(j);const l=this[a0(-0x14a,-0x142)];const m=l[a0(-0x158,-0x119)];for(const n of h){if(!k[a0(-0x15f,-0x148)](n)){l[a0(-0xe6,-0xdd)][a0(-0x122,-0x101)](n);n[a0(-0x140,-0x117)]=null;}}fillNextPrevious(j);function a0(a,b){return V(b-0x9e,a);}c['constructor'][a0(-0xb0,-0xef)][a0(-0x17e,-0x147)]['call'](this,c,d,e,j[a0(-0x103,-0x136)]>0x0?j:null);d[a0(-0x12d,-0x147)](this['$'][a0(-0xf0,-0xf1)],Boolean(f?.[a0(-0x153,-0x136)]));for(const o of j){if(!i[a0(-0x132,-0x148)](o)&&o['graph']!==m){o[a0(-0x164,-0x15e)](l);o[a0(-0xd6,-0x117)]=this;m[a0(-0x111,-0x13d)](o);}}}*['doWriteSegments'](c,d){function a1(a,b){return V(a-0x507,b);}d=d||[];if(c[a1(0x333,0x2fd)]<=0x1){if(this[a1(0x300,0x2dc)]?.[0x0]!==!![]){const e=c[a1(0x333,0x332)]?yield*this[a1(0x312,0x30d)](c[0x0][a1(0x2fd,0x33c)]-c[0x0][a1(0x315,0x342)],TimeUnit[a1(0x302,0x328)],yield this['$'][a1(0x34d,0x33e)]):0x0;d[a1(0x357,0x348)]({'identifier':this['$']['duration'],'proposedArgs':[e,null]});}c=null;}d[a1(0x357,0x35b)]({'identifier':this['$'][a1(0x334,0x383)],'proposedArgs':[c]});yield WriteSeveral(d);}*[V(-0x189,-0x19a)](){const c=yield this['$'][a2(-0x101,-0xf2)];const {graph:d,project:e}=this;const f=e[a2(-0xcf,-0xc6)];const g=yield e['$'][a2(-0xf3,-0xd8)]||this[a2(-0xcd,-0xd1)];const h=yield PreviousValueOf(this['$']['segments']);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(-0xe5,-0x11e)];for(const q of i){const r=yield q['$'][a2(-0x137,-0x185)];const s=yield q['$'][a2(-0x14f,-0x118)];const t=yield q['$']['duration'];const u=p['hasIdentifier'](q['$'][a2(-0x155,-0x10b)])&&(yield ProposedArgumentsOf(q['$']['startDate']));const v=p[a2(-0xe7,-0x125)](q['$'][a2(-0xf1,-0x111)])&&(yield ProposedArgumentsOf(q['$'][a2(-0xf1,-0xee)]));n=n||u?.[0x0]||v?.[0x0];if(r===s){j[a2(-0xf5,-0xfb)](q);}else if(g&&m&&r+o<=m[a2(-0x14f,-0x19c)]){const w=m[a2(-0x14f,-0x189)];j['push'](q);if(m['graph']){j[a2(-0xf5,-0x142)](m);const x=m[a2(-0x137,-0xfc)];const y=n?s+w-r:Math[a2(-0x126,-0x111)](s,w);const z=m[a2(-0x134,-0x13f)];m=f[a2(-0x151,-0x18a)]({'event':this,'cls':z,'startOffset':x,'endOffset':y});}else{m['endOffset']=n?s+m[a2(-0x14f,-0x11d)]-r:Math['max'](s,m[a2(-0x14f,-0x13b)]);}}else if(!g&&m&&(o||r<m[a2(-0x14f,-0x12d)])){l[a2(-0xe4,-0xbc)](m);j[a2(-0xf5,-0x141)](q);if(r+o<m[a2(-0x14f,-0x18f)]){o+=m[a2(-0x14f,-0x130)]-r-o;}m=f[a2(-0x151,-0x16c)]({'id':q['id'],'event':this,'cls':m['cls'],'startOffset':r+o,'endOffset':s+o});}else{if(m){l['add'](m);}m=q;}}if(m){l[a2(-0xe4,-0x117)](m);}if(l['size']===0x1){j['push'](...l);}k=j['length']>0x0;if(k){i=Array['from'](l);}fillNextPrevious(i);}else if(h){j[a2(-0xf5,-0xbb)](...h);}if(j[a2(-0x119,-0x157)]){for(const A of j){if(!A['$originalEvent']){A[a2(-0xdc,-0x100)]=A[a2(-0xfa,-0xf0)];}A[a2(-0xfa,-0xe0)]=null;e[a2(-0xc0,-0x95)]['add'](A);}}if(k){yield*this[a2(-0x115,-0x154)](i);}function a2(a,b){return V(a-0xbb,b);}i=i?.['length']>0x1?i:null;return i;}*[V(-0x1c9,-0x1d3)](){const c=yield this['$']['dispatcher'];let d=yield this['$'][a3(0x67,0x31)];const e=yield this['$'][a3(0x2c,-0xc)];const f=yield this['$']['endDate'];const g=yield this['$']['duration'];function a3(a,b){return V(b-0x204,a);}let h=yield ProposedOrPrevious;if(d){const j=this[a3(-0x28,0x24)];const k=this[a3(0xa2,0x67)];const l=[];const m=[];let n=-0x1;for(let q=d[a3(0x62,0x30)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(0x2b,-0xc)];const t=yield r['$']['endDate'];if(s>f){l[a3(0x11,0x54)](r);n=q;}else{if(t['getTime']()!==f[a3(-0xd,0x33)]()){const u=r[a3(0x1f,-0x6)]+(f['getTime']()-t[a3(0x4,0x33)]())-r['startOffset'];const v=yield*this[a3(0x5d,0xf)](u,TimeUnit[a3(-0x13,-0x1)],yield r['$'][a3(0x85,0x4a)]);m[a3(0x20,0x54)]({'identifier':r['$'][a3(0x3c,0x9)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(0xa,0x58)],'proposedArgs':[f,![]]},{'identifier':r['$'][a3(-0x19,-0x6)],'proposedArgs':[r[a3(0x29,-0x6)]+(f[a3(0x23,0x33)]()-t['getTime']())]});}break;}}let o=![];if(n>-0x1){o=!![];d[a3(-0x17,-0xf)](n);if(d['length']){d[d[a3(0x63,0x30)]-0x1][a3(0x8a,0x61)]=null;}for(const w of l){j[a3(0xd3,0x89)][a3(0x9f,0x65)](w);}}let p='';if(d){p=this['getSegmentsSnapshot'](d);}if(p!==this['_lastSegmentsSnapshot']){o=!![];d=d?d['slice']():d;this[a3(0x10,0x1)]=p;}if(o){yield*this[a3(0x39,0x34)](d,m);}}return h;}[V(-0x1c1,-0x20d)](c){c=c||this[a4(0x42a,0x46c)];function a4(a,b){return V(a-0x5fd,b);}return c?.[a4(0x41a,0x447)](d=>''+d[a4(0x40b,0x3bd)]+'-'+d[a4(0x3ed,0x43a)]?.[a4(0x42c,0x440)]()+'-'+d[a4(0x3f3,0x3fa)]+'-'+d[a4(0x451,0x409)]?.[a4(0x42c,0x429)]())[a4(0x410,0x3c3)](';');}static[V(-0x1f7,-0x1fe)](c,d,e,f,g){if(e){f[a5(0x50d,0x4d3)]=e[a5(0x4bf,0x490)];}function a5(a,b){return V(a-0x69f,b);}const h=f[a5(0x525,0x554)][a5(0x51c,0x4e5)](a5(0x4cc,0x4fb));const i=f['constructor'][a5(0x51c,0x54c)](a5(0x48f,0x495));const j=e?.['project']?.[a5(0x515,0x4cd)]?.[a5(0x51c,0x52b)]('startDate')??a5(0x48f,0x4d4);if(_end['getPath'](c,h)?.[a5(0x4cb,0x4c2)]&&!_end['getPath'](c,i)){const k=_end[a5(0x51e,0x533)](c,h)[0x0];const l=_end['getPath'](k,j);if(l){_end['setPath'](c,i,l);}}return super[a5(0x4a8,0x46d)](c,d,e,f,g);}['processSegmentValue'](c){const d=this[a6(0x4f4,0x4ae)]?.['segmentModelClass']||this[a6(0x4d0,0x4fc)]?.[a6(0x509,0x504)];if(!d)return c;function a6(a,b){return V(b-0x68e,a);}const e=c[a6(0x550,0x515)]?c:d[a6(0x464,0x482)](c,!![]);if(!e[a6(0x4d2,0x4d9)])e['event']=this;return e;}[V(-0x1cf,-0x1b7)](c){function a7(a,b){return V(a-0x45a,b);}if(c===void 0x0)return void 0x0;if(c==null)return null;return c[a7(0x277,0x232)](d=>{function a8(a,b){return a7(b- -0x37a,a);}if(!d['isModel']){if(this[a8(-0x80,-0xaf)]){const e=this[a8(-0x136,-0x100)]?.['phantomIdField']??a8(-0x134,-0x11a);const f=this[a8(-0x105,-0xf3)]['find'](g=>g['id']===d[e]||g['id']===d['id']);if(f){delete d[e];f[a8(-0xb5,-0xec)](d);f[a8(-0x134,-0xf5)](![],!![],d);return f;}}return this[a8(-0xa7,-0xa6)](d);}return this[a8(-0x8b,-0xa6)](d);});}*[V(-0x1b4,-0x1a8)](){const c=yield this['$'][a9(0xff,0x10c)];const d=c[a9(0xbd,0xac)][a9(0x111,0xc5)](StartDateVar);let e;if(d===startDateByEndDateAndSegmentsFormula[a9(0x10a,0x14c)]){e=yield*this[a9(0xd3,0xe0)]();}else{e=yield*super['calculateStartDate']();}function a9(a,b){return V(a-0x2bb,b);}return e;}*[V(-0x1e8,-0x1ac)](){const c=yield this['$'][aa(0x212,0x247)];const d=yield this['$'][aa(0x214,0x230)];const e=yield this['$']['endDate'];let f;if(d){const g=d[d[aa(0x23b,0x22f)]-0x1];const h=yield g['$'][aa(0x1b0,0x1f9)];const i=yield*this[aa(0x1de,0x1f2)](e,![],h,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const j=yield*this[aa(0x288,0x267)]();f=j&&!this['getProject']()[aa(0x1f8,0x1f6)]?i:yield*this[aa(0x205,0x217)](i,!![]);}function aa(a,b){return V(b-0x403,a);}return f;}*[V(-0x1f4,-0x1c6)](){const c=yield this['$'][ab(0x2db,0x2fc)];const d=yield this['$'][ab(0x2d3,0x2e5)];const e=yield this['$'][ab(0x2c5,0x2a8)];let f;if(d){const g=d[d[ab(0x2e5,0x2e4)]-0x1];const h=yield g['$'][ab(0x263,0x2ae)];const i=yield*this[ab(0x260,0x2a7)](e,!![],h,TimeUnit[ab(0x2d9,0x2b3)],{'ignoreSegments':!![]});const j=yield*this[ab(0x30a,0x31c)]();f=j&&!this[ab(0x34c,0x338)]()[ab(0x2c4,0x2ab)]?i:yield*this[ab(0x295,0x2cc)](i,![]);}function ab(a,b){return V(b-0x4b8,a);}return f;}*['calculateEndDate'](){function ac(a,b){return V(a-0x1af,b);}const c=yield this['$']['dispatcher'];const d=c[ac(-0x4f,-0x38)][ac(0x5,-0x1b)](EndDateVar);let e;if(d===endDateByStartDateAndSegmentsFormula[ac(-0x2,0x34)]){e=yield*this[ac(-0x45,-0x28)]();}else{e=yield*super[ac(-0x59,-0x54)]();}return e;}*['calculateDurationProposed'](){let c;function ad(a,b){return V(b-0x87,a);}if(yield*this['hasSegmentChangesProposed']()){c=yield*this[ad(-0x134,-0x113)]();}else{c=yield*super[ad(-0x152,-0x182)]();}return c;}*[V(-0x1ec,-0x1ad)](c,d=!![],e){if(!c)return null;function ae(a,b){return V(b- -0x7d,a);}e=Object['assign']({'ignoreSegments':!![]},e);return yield*super[ae(-0x243,-0x269)](c,d,e);}*['skipWorkingTime'](c,d=!![],e,f,g){if(!c)return null;g={'ignoreSegments':!![],...g};return yield*super['skipWorkingTime'](c,d,e,f,g);}*[V(-0x19a,-0x1e6)](){let c;const d=yield this['$'][af(-0xa6,-0x5d)];function af(a,b){return V(a-0x116,b);}const e=yield this['$'][af(-0xa4,-0x6a)];const f=yield this['$']['segments'];if(f){let g=0x0;for(const h of f){g+=h['endOffset']-h[af(-0xdc,-0xda)];}c=yield*this[af(-0xdf,-0xec)](g,TimeUnit['Millisecond'],e);}return c;}*[V(-0x201,-0x203)](c,d){const e=yield this['$']['isSegmented'];let f=c[ag(0x6a,0x41)];if(!e||f){return yield*super[ag(-0x49,0x0)](c,d);}const g=this[ag(0x99,0x81)]();const h=yield this['$'][ag(0x2d,0x33)];const i=yield this['$'][ag(0x29,0x4f)];const j=yield this['$'][ag(-0x10,0xb)];const k=c[ag(0x10,-0x1)]!==![];const l=(yield this['$'][ag(0x97,0x54)])||(yield*this[ag(0x9,0x52)]())||c[ag(0x22,0x54)]||!i[ag(0x3d,-0xa)];const m=g['maxCalendarRange'];let n=0x1;let o,p,q,r,s;if(!f){r=yield this['$'][ag(0x44,0x2e)];f=f||!r;if(!f){r=r[ag(0x1b,0x56)]();if(k){o=r['shift']();p=0x0;n=0x1;s=o[ag(0x2a,0x5e)]?o['endOffset']:MAX_DATE[ag(0x53,0x30)]();}else{o=r[ag(-0x17,0x9)]();p=o['endOffset'];n=-0x1;s=o['endOffset'];}q=s-o[ag(-0x3b,0xf)];}}function ag(a,b){return V(b-0x201,a);}const t=yield*this[ag(0x27,0x65)]();const u=g[ag(0x1,0x46)];const v=this[ag(-0x5,0x3b)];return j[ag(0x25,0x0)](Object[ag(0x3e,-0x3)]({'maxRange':m},c),(w,x,y)=>{const z=y[ah(0x2cd,0x2e5)]();const A=y[ah(0x244,0x22e)]();function ah(a,b){return ag(b,a-0x251);}if(z[ah(0x2a8,0x2f7)](h)&&(l||A[ah(0x2ad,0x29b)](B=>i[ah(0x26c,0x266)](B))||t&&!g[ah(0x288,0x283)])){if(f){return d(w,x,y);}else{const B=w[ah(0x281,0x29e)]();let C=x[ah(0x281,0x2a9)]()-w['getTime']();if(u){const F=w[ah(0x280,0x25b)]()-x['getTimezoneOffset']();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[ah(0x260,0x24d)]){const G=Math[ah(0x271,0x235)](D,o[ah(0x260,0x2ac)]);const H=Math[ah(0x2ac,0x2f6)](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[ah(0x281,0x28d)]()-I[ah(0x281,0x25b)]();if(q<v){o=k?r[ah(0x2b9,0x2e1)]():r[ah(0x25a,0x299)]();if(o){s=!k||o[ah(0x2af,0x285)]?o[ah(0x248,0x201)]:MAX_DATE[ah(0x281,0x27b)]();q=s-o[ah(0x260,0x232)];}}else{break;}}p+=n*C;}}});}*['useEventAvailabilityIterator'](){const c=yield this['$'][ai(0x10f,0x118)];function ai(a,b){return V(a-0x29e,b);}return c||(yield*super['useEventAvailabilityIterator']());}[V(-0x1b8,-0x192)](c,d){function aj(a,b){return V(b-0x3f6,a);}d=d||this[aj(0x262,0x22f)]();if(d){const e=this[aj(0x258,0x239)](c,d);return d[e];}}[V(-0x1bd,-0x179)](c,d){d=d||this[ak(0x311,0x312)]();function ak(a,b){return V(a-0x4d8,b);}return d?d[ak(0x2f9,0x31d)](e=>c>=e['startDate']&&c<e['endDate']):-0x1;}get[V(-0x1ee,-0x1fb)](){const c=this[al(0x300,0x345)]();function al(a,b){return V(a-0x4c7,b);}return c?c[0x0]:null;}get[V(-0x1b3,-0x166)](){function am(a,b){return V(a-0x4bc,b);}const c=this[am(0x2f5,0x2b6)]();return c?c[c[am(0x2e8,0x2ef)]-0x1]:null;}['getSegment'](c){const d=this['getSegments']();return d?.[c];}async[V(-0x206,-0x244)](c,d=0x1,e){const f=this[an(-0x1fd,-0x1cd)]();const g=f[an(-0x207,-0x1c1)];await f[an(-0x211,-0x23a)]();const h=this;if(!c||h[an(-0x1f9,-0x241)]&&h['childEvents']?.[an(-0x288,-0x26f)])return;const j=h[an(-0x278,-0x25d)];const k=h[an(-0x237,-0x23b)];const m=h[an(-0x28d,-0x28b)];const n=h[an(-0x229,-0x1eb)];e=e?_enc['normalizeUnit'](e):k;if(!m||!n||m>=c||c>=n||!j)return;const o=h[an(-0x20c,-0x22b)];let p=h['segments']||[];function an(a,b){return V(a- -0x7d,b);}let q,r;if(o){r=h[an(-0x23a,-0x226)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s[an(-0x28d,-0x26f)]:m;const u=s[an(-0x278,-0x266)];const v=s[an(-0x237,-0x259)];const w=s[an(-0x212,-0x1c5)];const x=h[an(-0x266,-0x244)](an(-0x27a,-0x270),t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h[an(-0x266,-0x21c)](an(-0x272,-0x242),d,e,TimeUnit[an(-0x282,-0x29f)]);const A=z+h[an(-0x266,-0x285)](an(-0x27a,-0x27b),m,c,TimeUnit[an(-0x282,-0x241)],{'ignoreSegments':!![]});if(q){q[an(-0x278,-0x23d)]=x;const B=g[an(-0x289,-0x258)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p['slice'](0x0);p[an(-0x290,-0x263)](r+0x1,0x0,B);h['segments']=p;h['duration']=j;for(let C=r+0x2,D=p[an(-0x251,-0x288)];C<D;C++){const E=p[C];if(E){E['startOffset']+=z;E[an(-0x287,-0x26c)]+=z;}}}else{const F=g['new']({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g['new']({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h['duration']=j;h[an(-0x250,-0x25d)]=[F,G];}return f[an(-0x211,-0x1d5)]();}async[V(-0x1e4,-0x1d2)](c,d,e=![]){if(!this['isSegmented'])return;this[ao(0x352,0x366)]=!![];this[ao(0x2d3,0x321)]=[e];function ao(a,b){return V(a-0x4da,b);}c=c||this[ao(0x2ec,0x2f9)];d=d||this[ao(0x327,0x304)];if(c['startOffset']>d[ao(0x2e8,0x2dd)]){let g=d;d=c;c=g;}if(e){let h=0x0,i=c,j=c[ao(0x2d0,0x313)];while(i=i['nextSegment']){const {startOffset:k,endOffset:l}=i;h+=k-j;j=l;i['startOffset']=k;i['duration']=0x0;if(i===d)break;}c['endOffset']=j-h;c[ao(0x2e8,0x2d9)]=c[ao(0x2e8,0x299)];i=d;while(i=i['nextSegment']){i[ao(0x2e8,0x2f7)]-=h;}}else{c[ao(0x32e,0x36a)]=d[ao(0x2ca,0x282)];}const f=await this[ao(0x35a,0x375)]()[ao(0x346,0x38e)]();this[ao(0x352,0x367)]=![];this[ao(0x2d3,0x2ad)]=null;return f;}[V(-0x1cd,-0x1ac)](c,d){if(c===ap(0x58,0x1e)&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f[ap(0x6e,0x29)]();if(!this['_segmentGeneration'][f[ap(0x53,0x6)]]||f[ap(0x13,0x13)]>this[ap(0x4a,0x72)][f[ap(0x1d,0x6)]]){Object[ap(-0x51,-0x13)](g,f[ap(0x19,0x18)][ap(-0x14,-0x1e)]);}e[ap(0x45,0x41)](g);this[ap(0x6d,0x72)][f['internalId']]=f[ap(0x5,0x13)];}else{e[ap(0x89,0x41)](f);}}d=e;}function ap(a,b){return V(b-0x1f1,a);}super[ap(-0x8,0x24)](c,d);}['leaveProject'](){const c=this[aq(0x2d3,0x300)];if(c){this[aq(0x36d,0x336)]?.[aq(0x334,0x2f9)](c);}function aq(a,b){return V(b-0x4d3,a);}super[aq(0x36e,0x33d)]();}[V(-0x1a9,-0x17e)](...c){function ar(a,b){return V(b-0x257,a);}this[ar(0xaa,0x67)][ar(0x4f,0x84)][ar(0x39,0x43)]++;super[ar(0x7b,0xae)](...c);this[ar(0x77,0x67)]['segments'][ar(0x21,0x43)]--;}['copy'](c=null,d=null){const e=super[as(-0xb5,-0x8b)](c,d);e[as(-0x11a,-0xcf)][as(-0xa2,-0xc0)]=void 0x0;if(e[as(-0xe3,-0xc0)]){e[as(-0x8b,-0xc0)]=e[as(-0xad,-0xc0)][as(-0x10e,-0xd0)](f=>Object[as(-0xd2,-0xf1)](f['copy'](),{'event':e}));}function as(a,b){return V(b-0x113,a);}return e;}[V(-0x184,-0x157)](...c){const {segments:d}=this;function at(a,b){return V(a-0x55c,b);}d?.[at(0x3cb,0x396)](e=>e[at(0x3d8,0x407)](...c));super[at(0x3d8,0x3f6)](...c);}}function V(a,b){return _enN(a- -0x65f,b);}b[V(-0x17d,-0x170)]=V(-0x18c,-0x160);__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[V(-0x18d,-0x1d5)],V(-0x1bc,-0x1e2),void 0x0);__decorate([model_field({'type':V(-0x1d8,-0x1cb),'isEqual':compareSegmentsArray,'convert':segmentsConverter,'serialize':segmentSerializer,'_skipSegmentsIsEqual':0x0})],b['prototype'],V(-0x1d3,-0x1ac),void 0x0);__decorate([field()],b[V(-0x18d,-0x1a6)],'adjustedSegments',void 0x0);__decorate([field()],b['prototype'],V(-0x18f,-0x170),void 0x0);__decorate([write(V(-0x1d3,-0x21b))],b['prototype'],V(-0x187,-0x14f),null);__decorate([calculate(V(-0x1d3,-0x1ad))],b[V(-0x18d,-0x1ac)],V(-0x189,-0x1d2),null);__decorate([calculate(V(-0x1ff,-0x249))],b[V(-0x18d,-0x178)],V(-0x1c9,-0x1d4),null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentSerializer,segmentsConverter,startDateByEndDateAndSegmentsFormula};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function p(a,b){return _enb(a- -0x192,b);}while(!![]){try{const d=parseInt(p(-0x25,-0x20))/0x1+parseInt(p(-0x1a,-0xe))/0x2+-parseInt(p(-0x30,-0x2b))/0x3*(parseInt(p(-0x24,-0x28))/0x4)+-parseInt(p(-0x13,-0xf))/0x5+parseInt(p(-0x19,-0x25))/0x6*(parseInt(p(-0x2a,-0x2d))/0x7)+-parseInt(p(-0xd,0x4))/0x8*(parseInt(p(-0x2c,-0x2d))/0x9)+-parseInt(p(-0x1c,-0x9))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x37821));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x15e;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{AbstractPartOfProjectGenericMixin}from'../../AbstractPartOfProjectGenericMixin.js';import _enc from'@bryntum/core-thin/lib/data/Store.js';class AbstractPartOfProjectStoreMixin extends Mixin([AbstractPartOfProjectGenericMixin,_enc],a=>{const b=a[q(0x40d,0x3fb)];class c extends a{constructor(){super(...arguments);function r(a,b){return q(a- -0xd2,b);}this['isLoadingData']=![];this[r(0x34c,0x34b)]=![];}[q(0x418,0x419)](d={}){d['asyncEvents']={'add':!![],'remove':!![],'removeAll':!![],'change':!![],'refresh':!![],'replace':!![],'move':!![],'update':!![]};function s(a,b){return q(a- -0x42f,b);}return b[s(-0x17,-0xe)][s(-0x27,-0x13)](this,d);}[q(0x417,0x40f)](d,e){function t(a,b){return q(a- -0x3b9,b);}const f=this,{asyncEvents:g,project:h}=f,i=g?.[d],j=i&&(i===!![]||i[e[t(0x46,0x47)]]);if(!j){return b[t(0x5e,0x5e)][t(0x4f,0x59)](f,d,e);}b['trigger'][t(0x4f,0x5c)](f,d+t(0x60,0x54),{...e});if(!h||h[t(0x67,0x7a)]()&&!h[t(0x52,0x54)]){b['trigger']['call'](f,d,e);}else if(!f[t(0x63,0x5a)]&&h){if(!h[t(0x48,0x4c)]){h[t(0x56,0x58)]=[];h[t(0x48,0x3a)]=h['ion']({'dataReady'(){const k=h[u(-0x1f9,-0x1f9)];h[u(-0x1f9,-0x1f0)]=null;h[u(-0x207,-0x201)]();h[u(-0x207,-0x208)]=null;function u(a,b){return t(a- -0x24f,b);}k['forEach'](([l,m,n,o])=>{function v(a,b){return u(a-0x70b,b);}l[v(0x51a,0x50c)][v(0x50b,0x50f)](m,n,o);});},'once':!![]});}h[t(0x56,0x43)][t(0x41,0x3f)]([b,f,d,e]);}return!![];}[q(0x416,0x40b)](){function w(a,b){return q(b- -0x4b2,a);}return this[w(-0xaf,-0xb2)];}[q(0x3fd,0x405)](d){if(this[x(0x2d4,0x2c5)]&&!(this[x(0x2cf,0x2c5)]||this[x(0x2f2,0x2e6)])){this[x(0x2d4,0x2e1)][x(0x2d7,0x2e2)]=!![];}function x(a,b){return q(a- -0x12c,b);}this[x(0x2db,0x2e5)]=!![];b[x(0x2d1,0x2e4)][x(0x2dc,0x2e5)](this,d);this['isLoadingData']=![];this[x(0x2d4,0x2d0)]?.[x(0x2eb,0x2f5)](x(0x2e5,0x2e5),{'store':this});}async[q(0x41d,0x409)](){function y(a,b){return q(b- -0x4c0,a);}if(this[y(-0xad,-0xbb)]<=0x0&&this['project']&&!this[y(-0xb8,-0xc0)]['isEngineReady']()){await this[y(-0xc4,-0xc0)]['commitAsync']();}b[y(-0x90,-0xa3)][y(-0xc0,-0xb8)](this);}async[q(0x41f,0x423)](d,e){function z(a,b){return q(b-0x58,a);}const f=this[z(0x458,0x454)](d,e);await this[z(0x468,0x458)][z(0x46e,0x45e)]();return f;}async[q(0x41a,0x412)](d,e,f){const g=this[A(-0x9b,-0xa4)](d,e,f);function A(a,b){return q(a- -0x4ab,b);}await this[A(-0xab,-0xb7)]['commitAsync']();return g;}async[q(0x413,0x40d)](d){this['data']=d;function B(a,b){return q(b- -0x273,a);}await this[B(0x194,0x18d)]['commitAsync']();}}function q(a,b){return _enb(a-0x29c,b);}c[q(0x40e,0x40a)]=q(0x40c,0x41f);return c;}){}function _ena(){const C=['$name','queuedDataReadyEvents','insert','storeRefresh','846520pdVchW','loadDataAsync','343432XIuIDp','12MlFreo','calculateProject','trigger','construct','PreCommit','insertAsync','188165zQMIVW','eventsSuspended','doAutoCommit','disableHasLoadedDataToCommitFlag','addAsync','isEngineReady','299400NUBlyI','push','syncDataOnLoad','add','setStoreData','12Wiyvme','action','project','dataReadyDetacher','45ihkYNz','hasLoadedDataToCommit','1090432dLrALr','suspendCount','commitAsync','isLoadingData','call','343935swIYzP','290432QQigmH','isWritingData','AbstractPartOfProjectStoreMixin','prototype'];_ena=function(){return C;};return _ena();}export{AbstractPartOfProjectStoreMixin};
1
+ function _ena(){const D=['doAutoCommit','$name','syncDataOnLoad','5OEcatd','9683559ttjBcs','129000QeJQcQ','action','call','isEngineReady','queuedDataReadyEvents','isChainedFromProject','calculateProject','18993HHJPHf','commitAsync','project','33ZBwQLO','masterStore','construct','16458PgNSVo','push','setStoreData','insertAsync','suspendCount','ion','trigger','isChained','add','1013170BbHCrK','dataReadyDetacher','storeRefresh','data','372qVbEEK','hasLoadedDataToCommit','AbstractPartOfProjectStoreMixin','isLoadingData','addAsync','2072JfnZwm','2853328kuDimY','prototype','7856rmArfY'];_ena=function(){return D;};return _ena();}(function(a,b){function p(a,b){return _enb(a-0x22e,b);}const c=a();while(!![]){try{const d=parseInt(p(0x414,0x428))/0x1+parseInt(p(0x41a,0x41e))/0x2*(parseInt(p(0x3ff,0x3ee))/0x3)+-parseInt(p(0x405,0x3f3))/0x4*(-parseInt(p(0x40b,0x410))/0x5)+-parseInt(p(0x40d,0x40c))/0x6+parseInt(p(0x404,0x40d))/0x7*(parseInt(p(0x407,0x414))/0x8)+-parseInt(p(0x40c,0x412))/0x9+parseInt(p(0x3fb,0x3fc))/0xa*(-parseInt(p(0x417,0x422))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x9cbc7));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1c9;let f=c[d];return f;};return _enb(a,b);}import{AbstractPartOfProjectGenericMixin}from'../../AbstractPartOfProjectGenericMixin.js';import _enc from'@bryntum/core-thin/lib/data/Store.js';class AbstractPartOfProjectStoreMixin extends Mixin([AbstractPartOfProjectGenericMixin,_enc],a=>{function q(a,b){return _enb(b- -0x5b,a);}const b=a[q(0x174,0x17d)];class c extends a{constructor(){super(...arguments);this[r(0x34b,0x353)]=![];function r(a,b){return q(b,a-0x1d2);}this['disableHasLoadedDataToCommitFlag']=![];}[q(0x17f,0x190)](d={}){d['asyncEvents']={'add':!![],'remove':!![],'removeAll':!![],'change':!![],'refresh':!![],'replace':!![],'move':!![],'update':!![]};function s(a,b){return q(b,a- -0x357);}return b[s(-0x1c7,-0x1cc)]['call'](this,d);}[q(0x16a,0x16f)](d,e){function t(a,b){return q(b,a-0x277);}const f=this,{asyncEvents:g,project:h}=f,i=g?.[d],j=i&&(i===!![]||i[e[t(0x3fc,0x3e8)]]);if(!j){return b[t(0x3e6,0x3e0)][t(0x3fd,0x3fb)](f,d,e);}b[t(0x3e6,0x3d9)]['call'](f,d+'PreCommit',{...e});if(!h||h[t(0x3fe,0x3f8)]()&&!h['isWritingData']){b[t(0x3e6,0x3eb)]['call'](f,d,e);}else if(!f['eventsSuspended']&&h){if(!h[t(0x3ea,0x3d7)]){h[t(0x3ff,0x3f6)]=[];h[t(0x3ea,0x3f7)]=h[t(0x3e5,0x3eb)]({'dataReady'(){function u(a,b){return t(a- -0x258,b);}const k=h['queuedDataReadyEvents'];h[u(0x1a7,0x1b0)]=null;h[u(0x192,0x186)]();h[u(0x192,0x18d)]=null;k['forEach'](([l,m,n,o])=>{function v(a,b){return u(b-0x17e,a);}l[v(0x302,0x30c)][v(0x320,0x323)](m,n,o);});},'once':!![]});}h[t(0x3ff,0x3ee)][t(0x409,0x416)]([b,f,d,e]);}return!![];}get[q(0x18d,0x189)](){function w(a,b){return q(a,b-0x32b);}return Boolean(this[w(0x498,0x49b)]&&this[w(0x4cb,0x4ba)][w(0x4ae,0x4b8)]);}[q(0x181,0x18a)](){function x(a,b){return q(a,b- -0xe7);}return this[x(0xb4,0xa6)];}[q(0x188,0x193)](d){if(this[y(0x2c,0x40)]&&!(this[y(0x20,0x2e)]||this['disableHasLoadedDataToCommitFlag'])){this[y(0x2c,0x37)][y(0x16,0x5)]=!![];}this[y(0x18,0x5)]=!![];b[y(0x32,0x30)]['call'](this,d);this['isLoadingData']=![];function y(a,b){return q(b,a- -0x161);}this[y(0x2c,0x3b)]?.[y(0xe,-0x4)](y(0x13,0x24),{'store':this});}async[q(0x17a,0x17f)](){if(this[z(0x44b,0x45f)]<=0x0&&this[z(0x46b,0x457)]&&!this[z(0x45e,0x457)][z(0x447,0x451)]()){await this['project'][z(0x463,0x456)]();}function z(a,b){return q(a,b-0x2ca);}b[z(0x439,0x449)]['call'](this);}async[q(0x177,0x17a)](d,e){const f=this[A(0x59d,0x596)](d,e);await this['project'][A(0x5b8,0x5b8)]();function A(a,b){return q(b,a-0x42c);}return f;}async[q(0x192,0x194)](d,e,f){const g=this['insert'](d,e,f);await this['project'][B(0x91,0x9b)]();function B(a,b){return q(a,b- -0xf1);}return g;}async['loadDataAsync'](d){this[C(0x246,0x23f)]=d;function C(a,b){return q(b,a-0xd1);}await this[C(0x25e,0x267)][C(0x25d,0x271)]();}}c[q(0x18b,0x180)]=q(0x16e,0x178);return c;}){}export{AbstractPartOfProjectStoreMixin};