@bryntum/engine-thin-trial 7.2.3 → 7.3.0

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.
Files changed (27) hide show
  1. package/lib/ChronoGraph/chrono/Effect.js +1 -1
  2. package/lib/ChronoGraph/chrono/Graph.js +1 -1
  3. package/lib/ChronoGraph/chrono/Identifier.js +1 -1
  4. package/lib/ChronoGraph/chrono/Quark.js +1 -1
  5. package/lib/calendar/CalendarCacheSingle.js +1 -1
  6. package/lib/chrono/ChronoModelMixin.js +1 -1
  7. package/lib/chrono/Replica.js +1 -1
  8. package/lib/quark/model/gantt/ConstrainedLateEventMixin.js +1 -1
  9. package/lib/quark/model/gantt/ConstrainedLateScheduleMixin.js +1 -1
  10. package/lib/quark/model/mixin/AbstractPartOfProjectModelMixin.js +1 -1
  11. package/lib/quark/model/mixin/ChronoPartOfProjectModelMixin.js +1 -1
  12. package/lib/quark/model/scheduler_basic/BaseCalendarMixin.js +1 -1
  13. package/lib/quark/model/scheduler_basic/HasCalendarMixin.js +1 -1
  14. package/lib/quark/model/scheduler_basic/SchedulerBasicProjectMixin.js +1 -1
  15. package/lib/quark/model/scheduler_core/SchedulerCoreProjectMixin.js +1 -1
  16. package/lib/quark/model/scheduler_pro/ConstrainedEarlyEventMixin.js +1 -1
  17. package/lib/quark/model/scheduler_pro/ConstrainedScheduleMixin.js +1 -1
  18. package/lib/quark/model/scheduler_pro/SchedulerProEventSegment.js +1 -1
  19. package/lib/quark/model/scheduler_pro/SchedulerProHasAssignmentsMixin.js +1 -1
  20. package/lib/quark/model/scheduler_pro/SchedulerProHasTimePhasedAssignmentsMixin.js +1 -1
  21. package/lib/quark/model/scheduler_pro/SchedulerProProjectMixin.js +1 -1
  22. package/lib/quark/model/scheduler_pro/SchedulerProTimePhasedAssignmentMixin.js +1 -1
  23. package/lib/quark/model/scheduler_pro/SplitEventMixin.js +1 -1
  24. package/lib/quark/store/mixin/AbstractPartOfProjectStoreMixin.js +1 -1
  25. package/lib/quark/store/mixin/ChronoPartOfProjectStoreMixin.js +1 -1
  26. package/lib/quark/store/mixin/CorePartOfProjectStoreMixin.js +1 -1
  27. package/package.json +1 -1
@@ -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(a,b){const c=a();function V(a,b){return _enb(b- -0xe3,a);}while(!![]){try{const d=-parseInt(V(0x50,0x58))/0x1*(-parseInt(V(0xec,0xa8))/0x2)+parseInt(V(0x52,0x30))/0x3+-parseInt(V(0xc7,0x7e))/0x4+parseInt(V(-0x3d,0xb))/0x5+-parseInt(V(0x39,0x3b))/0x6*(-parseInt(V(0x114,0xc0))/0x7)+parseInt(V(0xbb,0x91))/0x8*(-parseInt(V(0xc0,0x66))/0x9)+parseInt(V(0x13,0x60))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x55487));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[W(0x18c,0x1e5)](b,e):f,j;if(typeof Reflect===W(0x1e8,0x1be)&&typeof Reflect[W(0x1c4,0x189)]===W(0x240,0x205))h=Reflect[W(0x181,0x189)](a,b,e,f);else for(var k=a[W(0x1c7,0x200)]-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-0x94,a);}return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{HasPreviousValue,HasProposedNotPreviousValue,HasProposedValue,PreviousValueOf,ProposedOrPrevious,ProposedOrPreviousValueOf}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CalculateProposed}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';function _ena(){const br=['$name','proposedStartDateMin','calculatePhantomStartDate','minOffset','Backward','calculateEffectiveDirection','calculateEffortUnit','splice','isChangingOnlyDuration','prototype','phantomStartOffset','skipNonWorkingTime','375221QnEbUj','forEach','selector','hasIdentifier','calculateProjectedEffort','direction','startDate','addProposedValueFlag','calculateProportionalEffortByUnits','FixedDuration','writeEffort','calculateSchedulingModeForUnitsCalculation','effectiveCalendar','dispatcher','1222255hprTNU','calculateSchedulingMode','unlink','call','setTimePhasedEffortBatch','writeDuration','add','decorate','hasProposedAssignments','putTimePhasedEffortBatch','calculateStartDate','fields','phantomStartDate','eventIsSegmented','isTimePhasedCalendar','calculateEffortPure','isChangingOnlyEndDate','proposedEndDate','getTime','startOffset','getCalendarsWorking','doCalculateAssignmentEffort','hasInputOnEndDate','isTimePhased','hasDurationValue','calculateAssignmentsByCalendar','ownIgnoreResourceCalendar','calculateIgnoreResourceCalendar','_changeAssignmentData','calculatePhantomEndDate','isUserTimePhased','proposedStartDate','phantomEndOffset','calculateProportionalEffortByEffort','calculatePhantomEndOffset','proposedEndOffset','run','331212DvBGBe','isDurationDefinedByEffort','prepareDispatcher','filter','isRemovingAssignmentByPutEffort','writeStartDate','getBaseOptionsForEffortCalculations','boolean','_calculateEffortData','forEachAvailabilityInterval','endDate','18DRcugD','proposedEndDateMax','calculateProjectedDuration','getBaseOptionsForDurationCalculations','has','calculateEndDate','manuallyScheduled','hasElapsedDuration','getProject','_proposedMirror','write','calculateProposedEndOffsetRaw','object','proposedEndOffsets','Unknown\x20formula\x20for\x20`effort`','effectiveDirection','units','effortUnit','calculateSelector','FixedEffort','calculateEffortProposed','enterGraph','isSegmented','project','proposedMirror','durationUnit','eventSelector','doCalculateAssignmentProjectedEffort','timePhasedDispatcher','13258RcXYwC','calculateProposedStartOffsetRaw','addKeepIfPossibleFlag','proposedStartOffset','defaultConfig','assign','assignmentsByCalendar','$convertDuration','2481630IgfQZY','FixedUnits','endOffset','calculateUnitsByStartEndAndEffort','calculatePhantomStartOffset','minAssignmentProposedStartDate','2799zktpbn','hasEndDateValue','hasInputOnEffort','writeIgnoreResourceCalendar','useEventAvailabilityIterator','assignment','calculateEffort','remove','getOwnPropertyDescriptor','hasInputOnlyOnEffort','Forward','isDurationDefinedByEffortStructurally','calculateDuration','assigned','leaveGraph','calculateStartByDelay','isPhantomTimePhasedStructurally','calculateProjectedXDateByEffort','setTimePhasedEffort','sort','duration','Normal','calculateProposedStartOffset','commitAsync','234404mYDqre','formulaId','eventEffectiveSchedulingMode','version','collectInfo','hasInputOnStartDate','effortDriven','resource','hasInputOnDuration','effort','hasSomeInput','length','calculateEffortDriven','graph','calculateProposedEndOffset','SchedulerProTimePhasedAssignmentMixin','function','hasStartDateValue','writeUnits','15976IdveYz','calculateProjectedXDateWithDuration','Millisecond','ignoreResourceCalendar','calculateStartOffset','push','set','writeEndDate','phantomEndDate','calculateDurationUnit','hasInputOnUnits','hasProposedValueForAssignmentsField','effectiveSchedulingMode','intervalStoreClass','calculateProportionalEffort','putTimePhasedEffort','skipNonWorkingTimeInDurationWhenSchedulingManually','event','isPhantomTimePhased','date','isTimePhasedStructurally','ion','hasProposedValueForUnits','40fWaqTQ','number','hasInputOnTimePhasedData','eventEffortDriven','hasPreviousValueForUnits','calculateEffectiveDataOrVisualCalendar','baseRevision','calculateEndOffset','get','proposedMirrorClass','hasEffortInput','schedulingMode'];_ena=function(){return br;};return _ena();}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';function _enaa(a,b){return _enb(a- -0x2dc,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);}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(0x4aa,0x4fb)](){function Y(a,b){return X(b,a- -0x4d4);}return yield this[Y(-0x8,0x15)]['$'][Y(-0x1f,-0x16)];}*[X(0x512,0x51b)](){function Z(a,b){return X(a,b- -0x4bc);}return yield this[Z(0x29,0x10)]['$'][Z(-0x57,-0xf)];}*['calculateEffortDriven'](){function a0(a,b){return X(a,b- -0x343);}return yield this[a0(0x189,0x189)]['$'][a0(0x1a2,0x1a2)];}*[X(0x45b,0x46d)](){function a1(a,b){return X(a,b- -0x3cf);}return yield this[a1(0xd1,0xfd)]['$'][a1(0xe9,0x145)];}*[X(0x4e3,0x508)](){function a2(a,b){return X(b,a- -0x6df);}return yield*this['assignment'][a2(-0x1d7,-0x1b0)]();}*[X(0x53d,0x50d)](){function a3(a,b){return X(a,b- -0x132);}return yield*this[a3(0x3da,0x39a)][a3(0x40a,0x3db)]();}*[X(0x4c6,0x51a)](){function a4(a,b){return X(a,b- -0x6b0);}return yield*this[a4(-0x1c1,-0x1e4)]['calculateEffectiveDirection']();}*[X(0x4af,0x50e)](c){function a5(a,b){return X(b,a- -0x303);}return yield*this['assignment'][a5(0x20b,0x227)](c);}*['calculateAssignmentsByCalendar'](){const c=new Map();const d=yield this[a6(0x4a2,0x482)]['$'][a6(0x488,0x49c)];if(d){const e=yield d['$'][a6(0x42b,0x420)];c['set'](e,[this[a6(0x496,0x482)]]);}function a6(a,b){return X(a,b- -0x4a);}return c;}*[X(0x43c,0x487)](){function a7(a,b){return X(a,b- -0x45);}return yield this['assignment']['$'][a7(0x4a0,0x4b0)];}*[X(0x4e9,0x49f)](){function a8(a,b){return X(b,a- -0x389);}return yield*this[a8(0x143,0xf2)]['getBaseOptionsForDurationCalculations']();}}__decorate([calculate(X(0x4a6,0x4b5))],b[X(0x4ee,0x51e)],X(0x4b7,0x4fb),null);__decorate([calculate(X(0x46b,0x4ad))],b[X(0x552,0x51e)],X(0x576,0x51b),null);__decorate([calculate('effortDriven')],b['prototype'],'calculateEffortDriven',null);__decorate([calculate(X(0x4ca,0x514))],b[X(0x520,0x51e)],X(0x4b4,0x46d),null);__decorate([calculate(X(0x4dd,0x4f5))],b[X(0x4c9,0x51e)],'calculateIgnoreResourceCalendar',null);function X(a,b){return _enb(b-0x37e,a);}return b;}){}class TimePhasedAssignmentSelector{constructor(){this[a9(0xf5,0x10e)]=null;this[a9(0x12c,0x18d)]=null;this[a9(0xdf,0xf1)]=null;this[a9(0x10a,0x14c)]=null;this[a9(0x135,0x124)]=![];this[a9(0xa2,0x4e)]=![];this[a9(0x119,0x14a)]=![];this[a9(0xf1,0x98)]=![];this[a9(0xad,0xa8)]=![];this[a9(0x10d,0x116)]=![];this[a9(0xab,0x102)]=![];this[a9(0x110,0xf7)]=![];this[a9(0xf2,0x11c)]=![];function a9(a,b){return _enb(a- -0x59,b);}this[a9(0x125,0x169)]=![];this['hasPreviousValueForUnits']=![];}get[_enaa(-0x18a,-0x133)](){function ab(a,b){return _enaa(b-0x255,a);}return!this[ab(0xd4,0xdf)]&&!this[ab(0x9e,0x7d)]&&!this[ab(0x138,0xe2)]&&this['hasInputOnEffort']&&!this[ab(0xc3,0xf7)];}get[_enaa(-0x171,-0x153)](){function ac(a,b){return _enaa(a-0x19d,b);}return this[ac(0x27,-0x10)]||this[ac(-0x3b,-0x5a)]||this[ac(0x2a,0x3b)]||this[ac(0xc,-0xb)]||this[ac(0x3f,-0x11)];}get[_enaa(-0x14f,-0x113)](){function ad(a,b){return _enaa(a-0x274,b);}return this['hasInputOnStartDate']||this[ad(0x9c,0xe1)]||this['hasInputOnDuration'];}get[_enaa(-0x1d0,-0x19c)](){function ae(a,b){return _enaa(a-0x1a1,b);}return(this[ae(0x37,0x53)]?0x1:0x0)+(this['hasEndDateValue']?0x1:0x0)+(this['hasDurationValue']?0x1:0x0)>=0x2;}get[_enaa(-0x1d7,-0x1a5)](){function af(a,b){return _enaa(a-0x10e,b);}return this[af(-0xc2,-0xdd)]||this[af(-0xba,-0xc3)];}get[_enaa(-0x154,-0x1b4)](){function ag(a,b){return _enaa(b- -0x40,a);}return this[ag(-0x270,-0x210)]||this['isDurationDefinedByEffortStructurally'];}get[_enaa(-0x156,-0x189)](){function ah(a,b){return _enaa(a-0x417,b);}return this[ah(0x240,0x248)]&&!this[ah(0x247,0x22c)];}get[_enaa(-0x183,-0x18f)](){function ai(a,b){return _enaa(a- -0x6d,b);}return this['isTimePhasedStructurally']&&!this[ai(-0x23d,-0x23e)];}get['isDurationDefinedByEffortStructurally'](){function aj(a,b){return _enaa(b-0x305,a);}const a=this[aj(0x190,0x1ae)];if(a){const b=this[aj(0x1df,0x18c)];const c=this[aj(0x19d,0x1b7)];return b!==SchedulingMode[aj(0x140,0x112)]&&b!==SchedulingMode['Normal']&&(c||b===SchedulingMode[aj(0x1b0,0x15a)]);}else{return![];}}get[_enaa(-0x1c8,-0x195)](){const a=this[ak(-0x263,-0x25b)];function ak(a,b){return _enaa(a- -0x10c,b);}if(a){const b=this[ak(-0x285,-0x230)];return this[ak(-0x294,-0x242)]&&!this[ak(-0x2b0,-0x2ad)][ak(-0x249,-0x22a)]&&!this[ak(-0x2b0,-0x2b6)][ak(-0x2ea,-0x339)]||b===SchedulingMode[ak(-0x2a4,-0x24b)]&&this[ak(-0x29d,-0x29d)]&&!this[ak(-0x26a,-0x248)]&&this[ak(-0x259,-0x248)];}else{return![];}}*[_enaa(-0x177,-0x1a2)](){const a=this[al(0x1a6,0x187)];this['hasStartDateValue']=(yield ProposedOrPreviousValueOf(a['$']['startDate']))!=null;function al(a,b){return _enaa(b-0x315,a);}this[al(0x184,0x183)]=(yield ProposedOrPreviousValueOf(a['$'][al(0x184,0x156)]))!=null;this[al(0x19b,0x13f)]=(yield ProposedOrPreviousValueOf(a['$']['duration']))!=null;this[al(0x187,0x19f)]=yield HasProposedNotPreviousValue(a['$'][al(0x180,0x11f)]);this[al(0x199,0x13d)]=yield HasProposedNotPreviousValue(a['$'][al(0x16f,0x156)]);this[al(0x17e,0x1a2)]=yield HasProposedNotPreviousValue(a['$'][al(0x15d,0x196)]);this[al(0x144,0x184)]=yield HasProposedNotPreviousValue(a['$']['effort']);this[al(0x1cf,0x1b7)]=yield HasProposedNotPreviousValue(a['$'][al(0x150,0x167)]);this['hasPreviousValueForUnits']=yield*a[al(0x21d,0x1c8)]();const b=this['event']=yield a['$'][al(0x171,0x1be)];if(b){this['eventSelector']=yield b['$'][al(0x13f,0x11b)];this[al(0x1a8,0x19c)]=yield*b[al(0x1f7,0x1b9)]();this[al(0x1de,0x1c7)]=yield b['$']['effortDriven'];this[al(0x168,0x134)]=yield b['$'][al(0x159,0x16d)];}}}class SchedulerProTimePhasedAssignmentMixin extends Mixin([FixedDurationMixin,SchedulerProAssignmentMixin],a=>{const b=a[am(0x336,0x2e5)];class c extends a{constructor(){super(...arguments);function an(a,b){return am(b-0x6e,a);}this[an(0x35a,0x398)]=TimePhasedAssignmentMirror;this[an(0x339,0x32b)]=void 0x0;}['_calculateEffortData'](d,e,f){let g,h;if(d['run']){g=d[ao(0x1c2,0x194)](ao(0x167,0x185),e,f);h=d[ao(0x1ba,0x1b1)];}else{g=this['run'](ao(0x13d,0x185),e,f);h=this[ao(0x18b,0x1b1)];}function ao(a,b){return am(b- -0x114,a);}return{'startDate':e,'endDate':f,'effort':g,'effortUnit':h};}[am(0x2a0,0x27b)](d,e,f){let g;if(d[ap(0x2e9,0x2c7)]){g=f[ap(0x36c,0x348)](d);if(!g){g={};f[ap(0x347,0x32f)](d,g);}}else{g=d;}function ap(a,b){return am(b-0x1f,a);}Object['assign'](g,e);return g;}[am(0x28d,0x239)](d){if(!d[aq(0x226,0x276)]){return;}const {project:e,resource:f,event:g,durationUnit:h,effortUnit:j}=this;const {assignmentStore:k}=e;const m=g['assigned'];const n=g[aq(0x1a0,0x1b5)];const o=g[aq(0x1d7,0x1c9)];const p=new Map();const q=[];const r=[];const s={'resource':f,'event':g,'durationUnit':h,'effortUnit':j};d=d['slice']()[aq(0x216,0x271)]((w,x)=>(w[aq(0x1a0,0x186)]||n)[aq(0x1ba,0x19e)]()-(x[aq(0x1a0,0x1b9)]||n)['getTime']());const t=[...m][aq(0x1d0,0x1d5)](w=>w[aq(0x222,0x27f)]===f)[aq(0x216,0x22f)]((w,x)=>(w[aq(0x1a0,0x1f2)]||n)['getTime']()-(x['startDate']||n)[aq(0x1ba,0x168)]());let u=0x0;for(const w of d){const {startDate:x,endDate:y}=w;let z=Boolean(w['effort']);const A=t['slice']();let B=![];for(let C=u,D=A[aq(0x226,0x23f)];C<D;C++){const E=A[C];const F=p[aq(0x24d,0x29f)](E);const G=F?.[aq(0x1a0,0x192)]||E[aq(0x1a0,0x153)]||n;const H=F?.[aq(0x1d7,0x198)]||E[aq(0x1d7,0x17c)]||o;let I=C;if(G<y&&H>x){if(!B){u=C;B=!![];}const J=F?.[aq(0x1f1,0x221)]||E['durationUnit'];if(G>=x&&H<=y){if(z){p[aq(0x234,0x27f)](E,w);z=![];}else{r['push'](E);t[aq(0x258,0x223)](C);}}else{let K;if(z){K={...s,...w};q[aq(0x233,0x264)](K);z=![];}let L=![];if(G<x){const M=this[aq(0x1d5,0x203)](E,G,x);if(M[aq(0x224,0x1e9)]){L=!![];this['_changeAssignmentData'](E,M,p);if(K){I++;t[aq(0x258,0x24f)](I,0x0,K);I++;}if(H>y){const N={'resource':f,'event':g,'durationUnit':J,...this['_calculateEffortData'](E,y,H)};if(N[aq(0x224,0x1c9)]){q['push'](N);t[aq(0x258,0x23d)](I,0x0,N);}}}}if(!L&&H>y){if(K){t[aq(0x258,0x278)](I,0x0,K);I++;}const O=this[aq(0x1c4,0x1f0)](E,this[aq(0x1d5,0x174)](E,y,H),p);if(!O[aq(0x224,0x245)]){}}}}else if(G>=y){u=C;break;}}if(z){const P={...s,...w};q['push'](P);t[aq(0x233,0x254)](P);if(!p['size']&&t['length']===0x1&&!t[0x0][aq(0x1a0,0x167)]&&!t[0x0][aq(0x1d7,0x1f1)]){this['_changeAssignmentData'](t[0x0],{'startDate':n,'endDate':o,'effort':this[aq(0x224,0x1d5)]},p);}}}function aq(a,b){return am(a- -0xdc,b);}let v=[];for(let [Q,R]of p){Object[aq(0x1fa,0x232)](Q,R);}if(q[aq(0x226,0x262)]){q[aq(0x216,0x265)]((S,T)=>S['startDate']['getTime']()-T[aq(0x1a0,0x1d3)]['getTime']());if(this['event'][aq(0x250,0x213)]===SchedulingMode[aq(0x1a3,0x16b)]){for(const S of q){const T=this[aq(0x1cc,0x1a7)]('calculateUnitsForNewAssignment',S[aq(0x1a0,0x174)],S[aq(0x1d7,0x215)],S['effort'],S[aq(0x1e9,0x230)],S[aq(0x222,0x1ce)]);delete S[aq(0x224,0x285)];S[aq(0x1e8,0x1cc)]=T;}}v=k[aq(0x1ae,0x204)](q);}if(r[aq(0x226,0x277)]){r[aq(0x19b,0x1d7)](U=>{U[ar(-0x1de,-0x1c4)]=0x0;U[ar(-0x1d7,-0x1d1)]=0x0;function ar(a,b){return aq(b- -0x3e8,a);}U['$removed']=!![];});e[aq(0x243,0x204)]({'commitFinalized':{'fn':()=>{e[as(0x355,0x380)]=!![];k[as(0x38e,0x3c7)](r);function as(a,b){return aq(a-0x184,b);}e[as(0x3c7,0x3b2)]({'commitFinalized':{'fn':()=>{e['isRemovingAssignmentByPutEffort']=![];},'once':!![]}});},'once':!![]}});}return{'added':v,'removed':r,'updated':p};}[am(0x288,0x22d)](d){this[at(0x341,0x360)](d);function at(a,b){return am(a-0xb4,b);}return this[at(0x3aa,0x3bf)]();}[am(0x319,0x349)](d,e,f,g=this['effortUnit']){function au(a,b){return am(a- -0x4e2,b);}return this[au(-0x255,-0x20b)]([{'startDate':d,'endDate':e,'effort':f,'effortUnit':g}]);}[am(0x2f1,0x2ad)](d,e,f,g){function av(a,b){return am(a- -0x351,b);}this[av(-0x38,-0x43)](d,e,f,g);return this[av(-0x5b,-0xb1)]();}*['calculateSelector'](){function aw(a,b){return am(b- -0x1a0,a);}const d=new TimePhasedAssignmentSelector();d[aw(0xff,0x144)]=this;yield*d['collectInfo']();return d;}*[am(0x303,0x34b)](){const d=yield this['$'][ax(0x474,0x4c1)];function ax(a,b){return am(b-0x1a6,a);}if(d&&(yield this['$'][ax(0x476,0x4a4)])){const e=yield d['$'][ax(0x4c2,0x4d2)];return e===SchedulingMode['Normal']?!![]:yield d['$']['effortDriven'];}else{return![];}}*[am(0x285,0x289)](){function ay(a,b){return am(a- -0x2fe,b);}const d=yield this['$'][ay(0x1d,-0x35)];if(d&&(yield this['$'][ay(0x0,-0xc)])){const e=yield d['$'][ay(0x2e,-0x2e)];return e===SchedulingMode['Normal']?SchedulingMode[ay(-0x7f,-0xbd)]:e;}else{return SchedulingMode['Normal'];}}*[am(0x281,0x248)](d){const e=yield this['$']['event'];function az(a,b){return am(b- -0x1e1,a);}if(e&&(yield this['$'][az(0x150,0x11d)])){const f=yield e['$'][az(0x11b,0x14b)];return f===SchedulingMode[az(0xbc,0x113)]?!(yield*e['calculateHasOnlyRegularAssignmentsRaw']())?SchedulingMode[az(0xdc,0x9e)]:SchedulingMode[az(0x14f,0x113)]:f;}else{return SchedulingMode['Normal'];}}get[am(0x2cc,0x2e3)](){if(this[aA(0x2cc,0x280)]!==void 0x0)return this[aA(0x282,0x280)];const d=new this['proposedMirrorClass']();d['assignment']=this;d[aA(0x259,0x28e)]=this[aA(0x2cc,0x28e)];function aA(a,b){return am(b- -0x3d,a);}d['id']='PROPOSED_'+this['id'];if(this[aA(0x270,0x2c7)]){d['enterGraph'](this[aA(0x2fb,0x2c7)]);}return this[aA(0x26d,0x280)]=d;}[am(0x2c9,0x2c8)](d){super[aB(0xa,0x27)](d);function aB(a,b){return am(a- -0x2bf,b);}const e=this[aB(-0x2,-0x2b)];if(e&&!e[aB(0x45,0x83)]){e[aB(0xa,0x40)](d);}}[am(0x2ed,0x2a2)](d){function aC(a,b){return am(b- -0x31,a);}this[aC(0x2b2,0x28c)]?.['leaveGraph'](d);super['leaveGraph'](d);}[am(0x286,0x28b)](...d){this['_proposedMirror']?.[aD(-0x2c6,-0x2ec)](...d);function aD(a,b){return am(b- -0x572,a);}super[aD(-0x2d5,-0x2ec)](...d);}[am(0x2e2,0x337)](d,e,f,g){e[aE(-0x200,-0x1d2)](this['$'][aE(-0x195,-0x1f2)],g);function aE(a,b){return am(b- -0x490,a);}d['constructor'][aE(-0x19b,-0x15a)][aE(-0x175,-0x1d2)][aE(-0x1d5,-0x209)](this,d,e,f,g);}[am(0x2ae,0x288)](d,e,f,g,h=!![]){if(!(!e[aF(0x2df,0x29c)][aF(0x231,0x1de)](d)&&g==null)){e[aF(0x276,0x274)](this[aF(0x284,0x239)]['$'][aF(0x234,0x219)],g,h);}function aF(a,b){return am(a- -0x48,b);}super[aF(0x266,0x28c)](d,e,f,g,h);}[am(0x311,0x2cb)](d,e,f,g,h=![]){if(!(!e[aG(-0x216,-0x229)][aG(-0x2c4,-0x311)](d)&&g==null)){e['write'](this['proposedMirror']['$'][aG(-0x28a,-0x2a5)],g,h);}function aG(a,b){return am(a- -0x53d,b);}super[aG(-0x22c,-0x274)](d,e,f,g,h);}[am(0x289,0x265)](d,e,f,g,h,i=void 0x0){if(g<0x0)g=0x0;if(!(!e[aH(0x88,0xcb)][aH(-0x3f,0x1d)](d)&&g==null)){e[aH(0x65,0x62)](this[aH(0x4e,0x70)]['$']['duration'],g,h,i);}function aH(a,b){return am(b- -0x25c,a);}super['writeDuration'](d,e,f,g,h,i);}['writeEffort'](d,e,f,g,h){if(g<0x0)g=0x0;function aI(a,b){return am(b- -0x151,a);}if(!(!e[aI(0x1ff,0x1d6)][aI(0x183,0x128)](d)&&g==null)){e[aI(0x17f,0x16d)](this[aI(0x194,0x17b)]['$'][aI(0x1d1,0x1af)],g,h);}super[aI(0x168,0x12f)](d,e,f,g,h);}[am(0x309,0x353)](d,e,f,g){if(g===MissingValue)return;function aJ(a,b){return am(b- -0x55c,a);}d['constructor'][aJ(-0x245,-0x226)][aJ(-0x274,-0x29e)][aJ(-0x304,-0x2d5)](this,d,e,f,g);}*[am(0x293,0x2d4)](){function aK(a,b){return am(b- -0x2d1,a);}return yield*this[aK(-0x3,-0x38)]();}*['doCalculateAssignmentEffort'](d=null,e=null){function aL(a,b){return am(a- -0xb4,b);}const f=yield this['$'][aL(0x1c4,0x166)];if(f[aL(0x267,0x275)]&&f[aL(0x1e7,0x20f)]){if(!d){d=yield this['$']['startDate'];}if(!e){e=yield this['$']['endDate'];}return yield*this[aL(0x1c6,0x1b4)](d,e);}return yield*super[aL(0x21b,0x220)](d,e);}*['calculateEffectiveDirection'](){const d=yield this['$'][aM(-0x20c,-0x212)];function aM(a,b){return am(b- -0x52d,a);}if(d){return yield d['$']['effectiveDirection'];}else{return yield*super[aM(-0x1e9,-0x1fb)]();}}*[am(0x29f,0x267)](){const d=yield this['$'][aN(-0x1b7,-0x1db)];function aN(a,b){return am(b- -0x4f6,a);}return Boolean(d&&(yield d['$'][aN(-0x22a,-0x1e9)])||(yield this['$']['ownIgnoreResourceCalendar']));}*[am(0x30e,0x2da)](){function aO(a,b){return am(a- -0x54d,b);}const d=yield this['$'][aO(-0x232,-0x28b)];if(d){const e=yield d['$']['startDate'];const f=yield this['$'][aO(-0x2d1,-0x2f3)];return(yield*this[aO(-0x297,-0x2ad)](e,f,TimeUnit[aO(-0x241,-0x26d)]))??0x0;}else return null;}*[am(0x2d2,0x32d)](){const d=yield this['$'][aP(0x66,0x61)];function aP(a,b){return am(a- -0x212,b);}const e=d[aP(0x109,0x15f)];if(e){if(d[aP(0x111,0x12d)]||(yield PreviousValueOf(this['$'][aP(0x85,0xa4)]))==null){const f=(yield e['$'][aP(0x91,0xbc)])??(yield e['$']['minAssignmentProposedStartDate']);const g=yield this[aP(0xba,0x6a)]['$'][aP(0x6a,0x8c)];return(yield*this['calculateProjectedDuration'](f,g,TimeUnit[aP(0xfa,0x117)]))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aP(0x85,0x57)]);}}else{return null;}}*[am(0x2f5,0x2f1)](){const d=yield this['$']['selector'];function aQ(a,b){return am(b-0x22e,a);}const e=d['event'];if(e){const f=(yield e['$']['proposedStartOffsets'])[aQ(0x586,0x55e)]<0x0;if(f||d[aQ(0x576,0x551)]||(yield PreviousValueOf(this['$'][aQ(0x50f,0x4c5)]))==null){const g=yield this['$'][aQ(0x4ca,0x4f1)];const h=g[aQ(0x47f,0x4a9)]===Direction[aQ(0x4c5,0x517)]?yield e['$'][aQ(0x55b,0x55c)]:yield e['$'][aQ(0x501,0x50c)];const i=yield this[aQ(0x54a,0x4fa)]['$'][aQ(0x45e,0x4aa)];return(yield*this[aQ(0x498,0x4e4)](h,i,TimeUnit['Millisecond']))??0x0;}else{return yield ProposedOrPreviousValueOf(this['$'][aQ(0x46a,0x4c5)]);}}else{return null;}}*[am(0x32f,0x323)](){const d=yield this['$'][aR(0x1c,-0x3c)];if(d[aR(0xaf,0x67)]&&!d['eventIsSegmented']&&(d[aR(0x8a,0x68)]||(yield*d[aR(0x7d,0x67)][aR(0x12,-0xa)]()))){return yield*this[aR(0x47,0x3a)]();}function aR(a,b){return am(b- -0x2b4,a);}return null;}*['calculatePhantomEndDate'](){const d=yield this['$'][aS(0x3db,0x40c)];function aS(a,b){return am(b-0x194,a);}if(d['event']&&!d[aS(0x3d8,0x425)]&&(d[aS(0x483,0x4b0)]||(yield*d[aS(0x4c7,0x4af)][aS(0x487,0x43e)]()))){const e=yield this['$'][aS(0x3cc,0x424)];if(e){return yield*this[aS(0x4c7,0x484)](e,!![],yield this['$'][aS(0x4c4,0x494)],yield this['$']['effortUnit']);}}return null;}*[am(0x2dd,0x27b)](){const d=yield this['$']['selector'];function aT(a,b){return am(a- -0x57e,b);}if(d['event']&&!d['eventIsSegmented']&&(d[aT(-0x262,-0x20c)]||(yield*d[aT(-0x263,-0x27b)][aT(-0x2d4,-0x2ea)]()))){return 0x0;}else return null;}*[am(0x2a6,0x28f)](){function aU(a,b){return am(a-0x208,b);}const d=yield this['$'][aU(0x480,0x469)];if(d[aU(0x523,0x523)]&&!d[aU(0x499,0x46c)]&&(d[aU(0x524,0x4c5)]||(yield*d[aU(0x523,0x4e4)][aU(0x4b2,0x47a)]()))){if(d['hasInputOnTimePhasedData']||(yield PreviousValueOf(this['$'][aU(0x4ac,0x4ac)]))==null){const e=yield d[aU(0x523,0x528)]['$'][aU(0x4bb,0x460)];const f=yield*this[aU(0x4f8,0x518)](yield this['$'][aU(0x498,0x488)],!![],yield this['$'][aU(0x508,0x4b2)],yield this['$'][aU(0x4cd,0x4d0)]);return yield*this[aU(0x4be,0x4a4)](f,e,TimeUnit['Millisecond']);}else{return yield ProposedOrPreviousValueOf(this['$'][aU(0x4ac,0x49c)]);}}return null;}*[am(0x328,0x2e6)](){function aV(a,b){return am(b-0xd5,a);}const d=yield this['$'][aV(0x42f,0x3f0)];if(d){const e=yield d['$'][aV(0x327,0x388)];const f=yield this['$']['endDate'];return yield*this[aV(0x3b1,0x38b)](f,e,TimeUnit[aV(0x3d3,0x3e1)]);}else return null;}*[am(0x2bf,0x282)](){const d=yield this['$'][aW(0x204,0x1fd)];const e=d[aW(0x2db,0x2a0)];function aW(a,b){return am(b- -0x7b,a);}if(e){if(d[aW(0x2b4,0x2a8)]||(yield PreviousValueOf(this['$'][aW(0x25a,0x260)]))==null){const f=(yield e['$'][aW(0x253,0x21a)])??(yield e['$']['maxAssignmentProposedEndDate']);const g=yield this[aW(0x23b,0x251)]['$'][aW(0x1fd,0x238)];return yield*this[aW(0x29b,0x23b)](g,f,TimeUnit[aW(0x2c4,0x291)]);}else{return yield ProposedOrPreviousValueOf(this['$'][aW(0x2ab,0x260)]);}}else{return null;}}*[am(0x305,0x2db)](){const d=yield this['$'][aX(-0x32e,-0x2fa)];const e=d['event'];function aX(a,b){return am(b- -0x572,a);}if(e){const f=(yield e['$'][aX(-0x2d8,-0x2b1)])[aX(-0x219,-0x242)]<0x0;if(f||d[aX(-0x1f8,-0x24f)]||(yield PreviousValueOf(this['$'][aX(-0x2eb,-0x297)]))==null){const g=yield this['$'][aX(-0x2f2,-0x2af)];const h=g[aX(-0x304,-0x2f7)]===Direction[aX(-0x224,-0x241)]?yield e['$'][aX(-0x2eb,-0x2bd)]:yield e['$']['maxAssignmentProposedEndDate'];const i=yield this[aX(-0x266,-0x2a6)]['$']['endDate'];return yield*this[aX(-0x2d0,-0x2bc)](i,h,TimeUnit[aX(-0x235,-0x266)]);}else{return yield ProposedOrPreviousValueOf(this['$']['endOffset']);}}else{return null;}}*[am(0x2ea,0x295)](){function aY(a,b){return am(a-0x1ec,b);}const d=yield this['$'][aY(0x464,0x478)];return d['isDurationDefinedByEffortStructurally'];}*['isDurationDefinedByEffort'](){const d=yield this['$']['selector'];function aZ(a,b){return am(b- -0x370,a);}return d[aZ(-0xaf,-0xc6)];}*['calculateProjectedXDate'](d,e){const {event:f}=this;function b0(a,b){return am(a- -0x5d,b);}if(f&&((yield*this[b0(0x24d,0x1ed)]())||(yield*f[b0(0x24d,0x2a1)]()))){return yield*this[b0(0x293,0x235)](d,e,yield this['$'][b0(0x2a3,0x25d)],yield this['$'][b0(0x268,0x244)]);}else{return yield*this[b0(0x2ae,0x2e2)](d,e,yield this['proposedMirror']['$'][b0(0x296,0x23b)],yield this['$'][b0(0x270,0x245)]);}}*[am(0x28e,0x297)](){function b1(a,b){return am(b- -0x155,a);}const d=yield this['$'][b1(0x139,0x123)];const e=d['event'];if(e&&d['isUserTimePhased']){const f=yield this['$'][b1(0x1b9,0x16e)];if(f[b1(0x140,0x126)]===Direction['Forward']){const g=yield*this[b1(0x1c3,0x199)]();const h=yield e['$'][b1(0x149,0x15e)];if(g>h){return h;}else return g;}else{const i=yield this['$'][b1(0x1a4,0x15e)];const j=yield e['$'][b1(0x14e,0x127)];const k=yield this['proposedMirror']['$'][b1(0x18a,0x19e)];const l=yield*this[b1(0x162,0x1b6)](i,![],k);if(l<j){return j;}else return l;}}else{return yield ProposedOrPrevious;}}*[am(0x2b9,0x289)](){const d=yield this['$'][b2(0x49,0x65)];const e=d['event'];function b2(a,b){return am(b- -0x213,a);}if(e&&d['isUserTimePhased']){const f=yield this['$']['effectiveDirection'];if(f[b2(0xb4,0x68)]===Direction[b2(0x116,0xd6)]){const g=yield this['$'][b2(0x4b,0x69)];const h=yield e['$'][b2(0x7d,0xa0)];const i=yield this[b2(0x5c,0xb9)]['$'][b2(0xd6,0xe0)];const j=yield*this[b2(0x158,0xf8)](g,!![],i);if(j>h){return h;}else return j;}else{const k=yield*this['calculateEndByDelay']();const l=yield e['$'][b2(0x78,0x69)];if(k<l){return l;}else return k;}}else{return yield ProposedOrPrevious;}}*[am(0x2eb,0x2aa)](){const d=yield this['$'][b3(-0xb1,-0xe6)];function b3(a,b){return am(b- -0x362,a);}const e=yield this['$'][b3(-0xcc,-0xaf)];return yield*this[b3(-0x6a,-0xac)](d,e);}*[am(0x2ee,0x2ca)](){const d=yield this['$']['event'];function b4(a,b){return am(a-0x1d0,b);}if(d){const e=yield d['$'][b4(0x44c,0x40e)];const f=yield this['$']['proposedStartOffset'];const g=yield*this[b4(0x4db,0x49a)](e,!![],f,TimeUnit[b4(0x4dc,0x493)]);const h=yield*this[b4(0x508,0x4b9)](g,!![]);return h;}else{return null;}}*['calculateEndByDelay'](){function b5(a,b){return am(a- -0x2de,b);}const d=yield this['$'][b5(0x3d,0x43)];if(d){const e=yield d['$'][b5(-0x2b,-0x2e)];const f=yield this['$'][b5(-0x37,-0x22)];const g=yield*this['calculateProjectedXDateWithDuration'](e,![],f,TimeUnit[b5(0x2e,0x3f)]);const h=yield*this['skipNonWorkingTime'](g,![]);return h;}else{return null;}}*['calculateEffectiveDataOrVisualCalendar'](d){const e=yield this['$']['event'];function b6(a,b){return am(a-0x1b7,b);}const f=e?yield e['$']['effectiveCalendar']:yield this[b6(0x473,0x47b)]()['$'][b6(0x439,0x46c)];yield f['$'][b6(0x4b1,0x50c)];return f;}*[am(0x2e3,0x2dd)](){return!![];}*[am(0x29d,0x2bc)](){const d=new Map();const e=yield this['$'][b7(0x2af,0x26a)];if(e){const f=yield e['$']['effectiveCalendar'];d[b7(0x2c1,0x27d)](f,[this]);}function b7(a,b){return am(a- -0x4f,b);}return d;}*['isTimePhasedStructurally'](){const d=yield this['$'][b8(0x446,0x450)];function b8(a,b){return am(a-0x1ce,b);}return d[b8(0x4ec,0x4a7)];}*[am(0x29b,0x2bc)](){const d=yield this['$'][b9(0x313,0x323)];function b9(a,b){return am(a-0x9b,b);}const {event:e}=d;return e&&(d[b9(0x336,0x340)]||(yield*e[b9(0x345,0x36c)]()));}*[am(0x2a2,0x2de)](){const d=yield this['$'][ba(0x329,0x339)];function ba(a,b){return am(b-0xc1,a);}return d[ba(0x363,0x363)];}*[am(0x31c,0x332)](){function bb(a,b){return am(b-0xb3,a);}const d=yield this['$']['selector'];return d[bb(0x3ad,0x3cf)];}*['getBaseOptionsForDurationCalculations'](){const d=yield*super[bc(-0x16d,-0x1bd)]();function bc(a,b){return am(b- -0x474,a);}const e=yield this['$'][bc(-0x127,-0x159)];if(e){const f=yield*e[bc(-0x16f,-0x15e)]();if(f===SchedulingMode[bc(-0x190,-0x180)]){d['ignoreResourceCalendar']=![];}}return d;}*['prepareDispatcherForAssignmentsFixedDuration'](d,e){function bd(a,b){return am(a-0x1d8,b);}if(yield*this['hasProposedAssignments']()){const f=yield this['$']['event'];if(yield this['$'][bd(0x4d5,0x4c6)]){if(!f||(yield ProposedOrPreviousValueOf(f['$'][bd(0x4d8,0x484)]))!=null)e['addProposedValueFlag'](EffortVar);}else{if(yield*this['hasPreviousValueForUnits']()){e['addProposedValueFlag'](UnitsVar);}}}}*[am(0x2ab,0x2b5)](d){const e=yield*this[be(0x4bb,0x46a)]();function be(a,b){return am(a-0x1a5,b);}const f=yield this['$'][be(0x4c0,0x4ca)];if(e!==SchedulingMode[be(0x499,0x473)]&&f){let g;const h=yield this['$']['selector'];const i=yield*f['isDurationDefinedByEffort']();if(h[be(0x440,0x40b)]||i){g=yield*super[be(0x450,0x46b)](d);}else{g=yield*super[be(0x450,0x46a)](d);g[be(0x4a0,0x4ca)](d,f['$'][be(0x421,0x476)],StartDateVar);g[be(0x4a0,0x470)](d,f['$'][be(0x458,0x48d)],EndDateVar);g['collectInfo'](d,f['$'][be(0x498,0x4e1)],DurationVar);g[be(0x4a0,0x49d)](d,f['$']['effort'],EffortVar);}if(i){g[be(0x422,0x449)](EffortVar);g[be(0x478,0x48a)](EffortVar);}if(yield*f[be(0x4c5,0x4a9)]()){g[be(0x422,0x476)](UnitsVar);}return g;}else{return yield*super[be(0x450,0x4ab)](d);}}*['hasProposedAssignments'](){function bf(a,b){return am(b- -0xd,a);}const d=yield this['$'][bf(0x354,0x30e)];return d?yield HasProposedValue(d['$'][bf(0x2a1,0x2df)]):![];}*['hasProposedValueForUnits'](){function bg(a,b){return am(a-0x1df,b);}return yield HasProposedValue(this['$'][bg(0x4a3,0x479)]);}*[am(0x325,0x31a)](){return(yield PreviousValueOf(this['$']['units']))!==void 0x0;}*[am(0x2e5,0x32f)](){const d=yield*this['effectiveSchedulingMode']();function bh(a,b){return am(b- -0x565,a);}const e=yield this['$'][bh(-0x237,-0x24a)];if(e&&d!==SchedulingMode['Normal']){const f=yield this['$'][bh(-0x2d8,-0x2e2)];const g=f['resolution'][bh(-0x238,-0x23c)](EffortVar);if(g===CalculateProposed){const h=yield HasProposedNotPreviousValue(e['$'][bh(-0x228,-0x265)]);const i=yield*e[bh(-0x29e,-0x250)](bh(-0x22a,-0x265));if(h&&!i||(yield*this['hasProposedAssignments']())&&(yield HasPreviousValue(e['$'][bh(-0x232,-0x265)]))&&!(yield e['$'][bh(-0x2a3,-0x295)])[bh(-0x206,-0x23a)]&&!this[bh(-0x29a,-0x29a)][bh(-0x30f,-0x2b8)]){return yield*this[bh(-0x280,-0x24d)]();}return yield*this[bh(-0x241,-0x29d)]();}else if(g===effortFormula[bh(-0x2b9,-0x26d)]){return yield*this['calculateEffortPure']();}else{throw new Error(bh(-0x27a,-0x2a3));}}else{return yield*b['calculateEffort']['call'](this);}}*['calculateProportionalEffortByUnits'](){const d=yield this['event']['$']['proposedTotalUnits'];const e=yield ProposedOrPreviousValueOf(this[bi(0x13d,0x129)]['$'][bi(0x122,0xee)]);const f=yield this[bi(0x13d,0x14f)]['$'][bi(0xe7,0xda)];const g=(yield*this[bi(0xde,0xab)]()['$convertDuration'](e,f,TimeUnit[bi(0x12e,0x188)]))*((yield ProposedOrPreviousValueOf(this['$'][bi(0xe6,0xc2)]))??0x64);function bi(a,b){return am(a- -0x1de,b);}const h=g===0x0?0x0:d===0x0?0x0:g/d;return yield*this[bi(0xde,0x125)]()[bi(0xfa,0xf5)](h,TimeUnit[bi(0x12e,0x182)],yield this['$']['effortUnit']);}*[am(0x2a5,0x27b)](){const d=yield PreviousValueOf(this[bj(0x2e7,0x2e2)]['$'][bj(0x30b,0x2c7)]);const e=yield this[bj(0x28e,0x2e2)]['$'][bj(0x24c,0x28c)];const f=yield*this[bj(0x236,0x283)]()[bj(0x2d3,0x29f)](d,e,TimeUnit[bj(0x2fd,0x2d3)]);if(f===0x0){return 0x0;}const g=yield PreviousValueOf(this['$']['effort']);const h=yield this['$'][bj(0x2d8,0x28c)];function bj(a,b){return am(b- -0x39,a);}const i=yield*this['getProject']()[bj(0x290,0x29f)](g,h,TimeUnit[bj(0x2a1,0x2d3)]);const j=yield ProposedOrPreviousValueOf(this[bj(0x33d,0x2e2)]['$']['effort']);const k=yield*this['getProject']()[bj(0x2b6,0x29f)](j,e,TimeUnit[bj(0x2a7,0x2d3)]);if(d!=null&&g!=null&&j!=null){const l=k*(i/f);return yield*this[bj(0x2c8,0x283)]()[bj(0x298,0x29f)](l,TimeUnit[bj(0x294,0x2d3)],h);}else{return 0x0;}}*[am(0x318,0x2f8)](){const d=yield HasProposedNotPreviousValue(this[bk(0x1d0,0x217)]['$']['effort']);const e=yield*this[bk(0x264,0x217)][bk(0x1ba,0x188)]();function bk(a,b){return am(b- -0x104,a);}if(d&&!e){return yield*this['calculateProportionalEffortByEffort']();}else{return yield*this[bk(0x1bb,0x17a)]();}}*[am(0x2dc,0x2f6)](d){const {event:e}=this;const f=yield HasProposedNotPreviousValue(e['$']['effort']);const g=yield*e[bl(-0x1de,-0x229)](bl(-0x1f3,-0x1e9));const h=f&&!g?yield*this[bl(-0x1db,-0x1d7)]():yield this['$']['effort'],i=yield this['$'][bl(-0x22e,-0x1d2)],j=yield*this[bl(-0x237,-0x23f)]()[bl(-0x21b,-0x238)](h,i,TimeUnit['Millisecond']);let k,l;if(yield*this['isTimePhased']()){k=yield this['$'][bl(-0x277,-0x240)];l=yield this['$']['endDate'];}else{k=yield e['$'][bl(-0x277,-0x28d)];l=yield e['$']['endDate'];}if(!k&&!l){return yield ProposedOrPrevious;}let m=0x0;function bl(a,b){return am(a- -0x4f3,b);}const n=Object[bl(-0x21d,-0x1c1)](yield*this[bl(-0x244,-0x219)](),{'startDate':k,'endDate':l});const o=yield this['$'][bl(-0x21c,-0x1ce)];yield*this['forEachAvailabilityInterval'](n,(p,q,r)=>{const s=r[bm(0x9a,0x86)]();const t=p[bm(0x98,0x96)](),u=q['getTime'](),v=u-t;function bm(a,b){return bl(a-0x2f5,b);}for(const w of s){m+=(o[bm(0xba,0xec)](w)?o[bm(0x12b,0xec)](w)[bm(0x104,0x137)]:0x0)*v;}});return m?0x64*j/m:0x64;}*['calculateUnitsForNewAssignment'](d,e,f,g,h){const i=this[bn(0x200,0x206)]();const j=this[bn(0x228,0x265)];const k=yield*i[bn(0x23c,0x222)](f,g,TimeUnit[bn(0x29d,0x256)]);let l=0x0;const m=Object[bn(0x1f6,0x220)](yield*this[bn(0x21c,0x1f9)](),{'startDate':d,'endDate':e});function bn(a,b){return am(b- -0xb6,a);}const n=yield j['$'][bn(0x1be,0x204)];const o=(yield j['$'][bn(0x2b6,0x257)])||(yield this['$'][bn(0x28d,0x257)])||(yield*j[bn(0x22b,0x205)]())||n&&!i[bn(0x279,0x264)];const p=o?yield j['$'][bn(0x227,0x1cc)]:yield h['$'][bn(0x1ed,0x1cc)];yield*this[bn(0x1df,0x1fc)](m,(q,r,s)=>{const t=s[bo(-0x15d,-0x101)]();const u=q[bo(-0xf8,-0x103)](),v=r[bo(-0x143,-0x103)](),w=v-u;function bo(a,b){return bn(a,b- -0x2e3);}for(const x of t){l+=(x===p?0x1:0x0)*w;}});return l?0x64*k/l:0x64;}}c[am(0x32d,0x38a)]=am(0x306,0x364);__decorate([model_field({'type':am(0x2b0,0x2da),'defaultValue':!![]})],c[am(0x336,0x30d)],am(0x2fd,0x2bd),void 0x0);__decorate([model_field({'type':'string','defaultValue':SchedulingMode['FixedDuration']},{'sync':!![]})],c[am(0x336,0x2ef)],am(0x32c,0x334),void 0x0);__decorate([model_field({'type':'boolean','defaultValue':![]})],c['prototype'],am(0x30d,0x315),void 0x0);__decorate([model_field({'type':am(0x31d,0x35d),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[am(0x336,0x364)],am(0x27c,0x2cc),void 0x0);__decorate([model_field({'type':am(0x31d,0x30b),'bypassEqualityOnSyncDataset':!![],'defaultValue':null},{'converter':dateConverter})],c[am(0x336,0x37f)],am(0x2b3,0x271),void 0x0);__decorate([model_field({'type':'number','bypassEqualityOnSyncDataset':!![],'defaultValue':null,'allowNull':!![]})],c[am(0x336,0x37e)],am(0x2f3,0x2fc),void 0x0);__decorate([model_field({'type':am(0x322,0x358),'defaultValue':null})],c[am(0x336,0x2f8)],'effort',void 0x0);__decorate([field()],c[am(0x336,0x382)],'selector',void 0x0);__decorate([calculate(am(0x278,0x23d))],c['prototype'],am(0x2c6,0x2d2),null);__decorate([calculate('effortDriven')],c[am(0x336,0x312)],am(0x303,0x2e3),null);__decorate([calculate(am(0x32c,0x2d8))],c[am(0x336,0x33c)],am(0x285,0x2db),null);__decorate([field()],c[am(0x336,0x348)],'startOffset',void 0x0);__decorate([field()],c['prototype'],am(0x337,0x32e),void 0x0);__decorate([field()],c[am(0x336,0x2ff)],am(0x290,0x29a),void 0x0);__decorate([field()],c[am(0x336,0x2da)],am(0x2d4,0x2e7),void 0x0);__decorate([field()],c[am(0x336,0x349)],'endOffset',void 0x0);__decorate([field()],c[am(0x336,0x2fa)],am(0x2a4,0x303),void 0x0);__decorate([field()],c['prototype'],am(0x312,0x330),void 0x0);__decorate([field()],c['prototype'],'proposedEndOffset',void 0x0);__decorate([field({'sync':!![]})],c[am(0x336,0x38d)],am(0x29e,0x2c1),void 0x0);__decorate([write(am(0x30d,0x2ac))],c['prototype'],am(0x2e2,0x2af),null);__decorate([write(am(0x27c,0x237))],c[am(0x336,0x30c)],am(0x2ae,0x306),null);__decorate([write(am(0x2b3,0x279))],c[am(0x336,0x309)],am(0x311,0x2d6),null);__decorate([write(am(0x2f3,0x339))],c[am(0x336,0x378)],am(0x289,0x268),null);__decorate([write(am(0x300,0x2b2))],c[am(0x336,0x33f)],am(0x280,0x245),null);__decorate([write(am(0x2c4,0x2ae))],c[am(0x336,0x2d6)],am(0x309,0x2d8),null);__decorate([calculate(am(0x30d,0x312))],c['prototype'],am(0x29f,0x2b0),null);__decorate([calculate(am(0x297,0x2df))],c['prototype'],am(0x30e,0x322),null);__decorate([calculate(am(0x2d4,0x318))],c[am(0x336,0x36b)],am(0x2f5,0x2ff),null);__decorate([calculate(am(0x290,0x2e8))],c['prototype'],am(0x32f,0x343),null);__decorate([calculate('phantomEndDate')],c['prototype'],am(0x2a1,0x2c9),null);__decorate([calculate(am(0x337,0x2e7))],c['prototype'],am(0x2dd,0x321),null);__decorate([calculate(am(0x2a4,0x26b))],c[am(0x336,0x2e3)],am(0x2a6,0x2a8),null);function am(a,b){return _enaa(a-0x472,b);}__decorate([calculate(am(0x2db,0x2a6))],c[am(0x336,0x2ff)],am(0x328,0x34f),null);__decorate([calculate(am(0x2a7,0x2a3))],c[am(0x336,0x308)],am(0x305,0x2ad),null);__decorate([calculate(am(0x300,0x2a9))],c[am(0x336,0x333)],am(0x2e5,0x324),null);return c;}){}class TimePhasedAssignmentCalendarIntervalMixin extends CalendarIntervalMixin{static get[_enaa(-0x1e3,-0x1bd)](){function bp(a,b){return _enaa(b- -0xb0,a);}return[bp(-0x231,-0x23e)];}}class TimePhasedAssignmentCalendarIntervalStore extends CalendarIntervalStore{static get[_enaa(-0x19d,-0x148)](){return{'modelClass':TimePhasedAssignmentCalendarIntervalMixin};}}class TimePhasedAssignmentCalendar extends BaseCalendarMixin{constructor(){super(...arguments);function bq(a,b){return _enaa(b- -0xe7,a);}this[bq(-0x325,-0x2c7)]=!![];}get[_enaa(-0x15b,-0x143)](){return TimePhasedAssignmentCalendarIntervalStore;}}export{SchedulerProTimePhasedAssignmentMixin,TimePhasedAssignmentCalendar,TimePhasedAssignmentCalendarIntervalMixin,TimePhasedAssignmentCalendarIntervalStore,TimePhasedAssignmentMirror,TimePhasedAssignmentSelector};
@@ -1 +1 @@
1
- function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x14d;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function L(a,b){return _enb(a-0xad,b);}while(!![]){try{const d=-parseInt(L(0x23f,0x25c))/0x1+parseInt(L(0x203,0x219))/0x2*(-parseInt(L(0x270,0x277))/0x3)+-parseInt(L(0x26a,0x28a))/0x4+-parseInt(L(0x227,0x1fa))/0x5*(parseInt(L(0x220,0x204))/0x6)+parseInt(L(0x21b,0x235))/0x7*(-parseInt(L(0x241,0x1f8))/0x8)+parseInt(L(0x289,0x29f))/0x9+-parseInt(L(0x204,0x23d))/0xa*(-parseInt(L(0x23d,0x285))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe8c4d));var __decorate=function(a,b,e,f){function M(a,b){return _enb(a- -0x9b,b);}var g=arguments[M(0xba,0x103)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[M(0x10b,0x110)]===M(0x136,0xf7))h=Reflect[M(0x10b,0xc9)](a,b,e,f);else for(var k=a[M(0xba,0x80)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object['defineProperty'](b,e,h),h;};import{HasProposedValue,PreviousValueOf,ProposedArgumentsOf,ProposedOrPrevious,ProposedOrPreviousValueOf,ProposedValueOf,WriteSeveral}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';import{TombStone}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Quark.js';import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/Mixin.js';import{CycleDescription,CycleResolution,Formula}from'@bryntum/engine-thin/lib/ChronoGraph/cycle_resolver/CycleResolver.js';import{calculate,field,write}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/ObjectHelper.js';import{model_field}from'../../../chrono/ModelFieldAtom.js';import{Direction,TimeUnit}from'../../../scheduling/Types.js';function _ena(){const av=['forceSegmentsMerging','rawModifications','from','dispatcher','endBatch','run','convertDurationGen','data','getSegment','findIndex','getPath','function','processSegmentsValue','shift','isForward','getSegmentsSnapshot','splice','processSegmentValue','calculateStartDate','effectiveDirection','forEach','isModel','2369340YyzDmQ','calculateDurationProposed','constructor','adjustDurationToDST','segmentIndex','SegmentsVar','array','write','endDate','resolution','hasSegmentChangesProposed','length','49970kysgCX','30LuOHVb','lastSegment','useEventAvailabilityIterator','splitToSegments','min','skipNonWorkingTime','ignoreSegments','internalId','pop','isManuallyScheduled','getProject','childEvents','startDate','fieldMap','_processingDataForProject','SplitEventMixin','doWriteSegments','getTime','addProposedValueFlag','forEachAvailabilityInterval','has','setPath','storeFieldChange','133EAhMGv','segments','getSegments','isHasSubEventsMixin','mergeSegments','60WnZTcr','map','prepareDispatcher','ignoreResourceCalendar','_skipSegmentsIsEqual','calculateStartDateBySegments','startOffset','617905JPJTeb','durationUnit','getCalendarsWorking','modified','calculateProjectedDuration','call','writeSegments','skipNonWorkingTimeWhenSchedulingManually','cls','hasIdentifier','toJSON','getSegmentIndexByDate','get','getValue','calculateSegments','leaveProject','calculateEndDate','size','slice','segmentModelClass','add','duration','21289048aDgnNR','cycleResolutionContext','421350mISRWb','replica','106984IANMlq','prototype','join','copy','max','maxCalendarRange','effectiveCalendarsCombination','equality','calculateEndDateBySegments','getTimezoneOffset','processData','getSegmentByDate','graph','_segmentGeneration','push','project','getFieldDefinition','None','decorate','internalClearChanges','segmentsToCleanup','isSegmented','_lastSegmentsSnapshot','new','effectiveCalendar','zeroDurationMsThreshold','getFieldPersistentValue','nextSegment','setProject','some','endOffset','reduce','previousSegment','meta','convert','addEntity','Millisecond','unlink','event','formulaId','commitAsync','6722444TDBEMQ','firstSegment','removeEntities','adjustedSegments','generation','calculateProjectedXDateWithDuration','183NQauqh','normalizeUnit','assign'];_ena=function(){return av;};return _ena();}import{MAX_DATE}from'../../../util/Constants.js';import{durationFormula,DurationVar,endDateFormula,EndDateVar,startDateFormula,StartDateVar}from'../scheduler_basic/BaseEventDispatcher.js';import{SEDWUDispatcherIdentifier}from'./HasEffortDispatcher.js';import{HasEffortMixin}from'./HasEffortMixin.js';import{HasPercentDoneMixin}from'./HasPercentDoneMixin.js';function _enN(a,b){return _enb(b- -0x222,a);}import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol(_enN(-0x101,-0xd3));const segmentsConverter=(a,b,c)=>c[_enN(-0x6f,-0x50)](a);const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula[_enN(-0x61,-0x77)]({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula[_enN(-0x36,-0x77)]({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(-0x4d,-0x77)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(-0xaa,-0x77)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution['new']({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{[_enN(-0xa1,-0x87)](a,b){const c=a[O(0x51a,0x527)];function O(a,b){return _enN(a,b-0x5f6);}const d=b[O(0x518,0x527)];return super[O(0x5aa,0x56f)](a,b)&&c[O(0x597,0x55a)](SegmentsVar)===d[O(0x52b,0x55a)](SegmentsVar);}}function compareSegmentsArray(c,d){function P(a,b){return _enN(b,a- -0xc4);}if(!c&&!d)return!![];if(this['_skipSegmentsIsEqual'])return![];if(!c&&d||c&&!d)return![];if(c['length']!==d[P(-0x191,-0x150)])return![];return c['every']((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x609,0x5c0)]?c:d;const f=e[Q(0x509,0x549)];const g=c[Q(0x543,0x548)]instanceof Date?c[Q(0x586,0x548)][Q(0x54c,0x54d)]():f['startDate'][Q(0x5bf,0x59b)](c[Q(0x572,0x548)])?.[Q(0x591,0x54d)]();const h=d[Q(0x562,0x548)]instanceof Date?d[Q(0x572,0x548)][Q(0x528,0x54d)]():f[Q(0x516,0x548)][Q(0x559,0x59b)](d[Q(0x528,0x548)])?.[Q(0x56e,0x54d)]();const i=c[Q(0x54f,0x537)]instanceof Date?c[Q(0x503,0x537)]['getTime']():f[Q(0x550,0x537)][Q(0x5cd,0x59b)](c[Q(0x578,0x537)])?.[Q(0x58a,0x54d)]();function Q(a,b){return _enN(a,b-0x607);}const j=d[Q(0x563,0x537)]instanceof Date?d['endDate'][Q(0x548,0x54d)]():f['endDate'][Q(0x55a,0x59b)](d['endDate'])?.['getTime']();return g===h&&i===j;};const fillNextPrevious=a=>{a[R(0x158,0x18a)]((b,c,d)=>{function S(a,b){return R(a- -0xe4,b);}if(b){b['nextSegment']=c;}c[S(0x75,0xb5)]=b;c[S(0xf,-0x1e)]=d;return c;},null);function R(a,b){return _enN(b,a-0x1c7);}if(a['length']){a[a[R(0xfa,0xf6)]-0x1][R(0x154,0x17f)]=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{class b extends a{constructor(){super(...arguments);function T(a,b){return _enb(a-0x58,b);}this[T(0x1f9,0x201)]={};}get[U(0x193,0x19a)](){let c=super['rawModifications'];function V(a,b){return U(a-0xe3,b);}if(this[V(0x21e,0x24b)]&&(!c||!(V(0x21e,0x1eb)in c))){for(const d of this['segments']){if(d[V(0x276,0x2a9)]){c=c||{};c[V(0x21e,0x205)]=this[V(0x25d,0x227)](V(0x21e,0x210));break;}}}return c;}[U(0x173,0x180)](c,d,e,...f){for(const g of this['segments']||[]){if(g[W(0x332,0x349)]){g[W(0x2fe,0x2f5)][W(0x2d6,0x319)](g,c,d,null,...f);}}function W(a,b){return U(a-0x18b,b);}super[W(0x2fe,0x2cf)]['call'](this,c,d,e,...f);}*[U(0x141,0x148)](c){const d=yield*super[X(0x542,0x539)](c);function X(a,b){return U(b-0x3f8,a);}if(yield*this[X(0x524,0x518)]()){d[X(0x51a,0x52d)](SegmentsVar);}return d;}[U(0x15d,0x149)](c){const d=c(this['$'][Y(-0x1de,-0x1e2)]);function Y(a,b){return U(a- -0x383,b);}return d['direction']===Direction['Forward']||d['direction']===Direction[Y(-0x212,-0x209)]?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*['hasSegmentChangesProposed'](){const c=yield ProposedValueOf(this['$'][Z(0xeb,0x113)]);let d=![];if(yield HasProposedValue(this['$'][Z(0x158,0x113)])){d=Boolean(c);}function Z(a,b){return U(b- -0x28,a);}const e=yield ProposedOrPreviousValueOf(this['$']['segments']);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$']['startDate']);const h=yield HasProposedValue(f['$']['endDate']);const i=yield HasProposedValue(f['$']['duration']);if(g||h||i)d=!![];}return d;}['writeSegments'](c,d,e,f){const g=d['getLatestStableEntryFor'](c)?.[a0(0x92,0x9f)]();const h=g!==TombStone?g??[]:[];const i=new Set(h);const j=(f??[])[a0(0x44,0x8c)](n=>n[a0(0xca,0xf3)]?n:this['processSegmentValue'](n));const k=new Set(j);const l=this['project'];const m=l[a0(0x73,0xab)];function a0(a,b){return U(b- -0xb4,a);}for(const n of h){if(!k['has'](n)){l['segmentsToCleanup']['add'](n);n[a0(0xf8,0xd2)]=null;}}fillNextPrevious(j);c[a0(0xf1,0xf6)][a0(0xdf,0xad)][a0(0x76,0x69)][a0(0x60,0x97)](this,c,d,e,j[a0(0x6a,0x6d)]>0x0?j:null);d[a0(0x46,0x69)](this['$'][a0(0xaf,0xc1)],Boolean(f?.[a0(0x3c,0x6d)]));for(const o of j){if(!i[a0(0x56,0x83)](o)&&o['graph']!==m){o[a0(0xc1,0xc8)](l);o['event']=this;m[a0(0x9d,0xcf)](o);}}}*[U(0x133,0x115)](c,d){d=d||[];if(c[a1(-0xa5,-0xa0)]<=0x1){const e=c[a1(-0xa5,-0xb8)]?yield*this[a1(-0x2e,-0x6d)](c[0x0][a1(-0x48,-0x48)]-c[0x0]['startOffset'],TimeUnit[a1(-0x42,-0xf)],yield this['$']['durationUnit']):0x0;d['push']({'identifier':this['$'][a1(-0x6b,-0x23)],'proposedArgs':[e,null]});c=null;}d[a1(-0x58,-0x79)]({'identifier':this['$'][a1(-0x8b,-0xd4)],'proposedArgs':[c]});function a1(a,b){return U(a- -0x1c6,b);}yield WriteSeveral(d);}*[U(0x154,0x137)](){const c=yield this['$']['dispatcher'];const {graph:d,project:e}=this;const f=e[a2(-0x22b,-0x200)];const g=yield e['$']['autoMergeAdjacentSegments']||this[a2(-0x1f2,-0x218)];const h=yield PreviousValueOf(this['$']['segments']);let i=yield ProposedOrPrevious;const j=[];function a2(a,b){return U(a- -0x384,b);}let k=![];if(i){const l=new Set();let m=null;let n=![];let o=0x0;const {baseRevision:p}=d['$activeTransaction'];for(const q of i){const r=yield q['$']['startOffset'];const s=yield q['$'][a2(-0x206,-0x244)];const t=yield q['$'][a2(-0x229,-0x1f1)];const u=p[a2(-0x235,-0x262)](q['$'][a2(-0x255,-0x29c)])&&(yield ProposedArgumentsOf(q['$']['startDate']));const v=p[a2(-0x235,-0x24b)](q['$'][a2(-0x266,-0x273)])&&(yield ProposedArgumentsOf(q['$'][a2(-0x266,-0x273)]));n=n||u?.[0x0]||v?.[0x0];if(r===s){j[a2(-0x216,-0x1f3)](q);}else if(g&&m&&r+o<=m[a2(-0x206,-0x1de)]){const w=m['endOffset'];j['push'](q);if(m['graph']){j['push'](m);const x=m[a2(-0x23f,-0x22f)];const y=n?s+w-r:Math[a2(-0x220,-0x1df)](s,w);const z=m[a2(-0x236,-0x24d)];m=f[a2(-0x20d,-0x1f0)]({'event':this,'cls':z,'startOffset':x,'endOffset':y});}else{m[a2(-0x206,-0x1ed)]=n?s+m[a2(-0x206,-0x1d3)]-r:Math['max'](s,m['endOffset']);}}else if(!g&&m&&(o||r<m[a2(-0x206,-0x1cf)])){l[a2(-0x22a,-0x21b)](m);j[a2(-0x216,-0x238)](q);if(r+o<m[a2(-0x206,-0x1c8)]){o+=m['endOffset']-r-o;}m=f['new']({'id':q['id'],'event':this,'cls':m[a2(-0x236,-0x205)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l['add'](m);}m=q;}}if(m){l['add'](m);}if(l[a2(-0x22d,-0x23c)]===0x1){j[a2(-0x216,-0x1f6)](...l);}k=j['length']>0x0;if(k){i=Array[a2(-0x1f0,-0x1de)](l);}fillNextPrevious(i);}else if(h){j[a2(-0x216,-0x236)](...h);}if(j[a2(-0x263,-0x282)]){for(const A of j){A['event']=null;e[a2(-0x210,-0x217)]['add'](A);}}if(k){yield*this[a2(-0x251,-0x26c)](i);}i=i?.[a2(-0x263,-0x283)]>0x1?i:null;return i;}*['calculateAdjustedSegments'](){const c=yield this['$'][a3(0x55a,0x534)];let d=yield this['$'][a3(0x508,0x4da)];const e=yield this['$'][a3(0x4c3,0x4ce)];const f=yield this['$'][a3(0x476,0x4bd)];const g=yield this['$'][a3(0x4ce,0x4fa)];let h=yield ProposedOrPrevious;if(d){const j=this['project'];const k=this[a3(0x4d5,0x50b)];const l=[];const m=[];let n=-0x1;for(let q=d[a3(0x4e5,0x4c0)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(0x507,0x4ce)];const t=yield r['$'][a3(0x4ec,0x4bd)];if(s>f){l[a3(0x4c5,0x50d)](r);n=q;}else{if(t[a3(0x4fd,0x4d3)]()!==f[a3(0x498,0x4d3)]()){const u=r[a3(0x565,0x51d)]+(f[a3(0x4dc,0x4d3)]()-t[a3(0x4d6,0x4d3)]())-r[a3(0x4f7,0x4e4)];const v=yield*this[a3(0x557,0x537)](u,TimeUnit['Millisecond'],yield r['$'][a3(0x4cb,0x4e6)]);m['push']({'identifier':r['$'][a3(0x4b4,0x4fa)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(0x474,0x4bd)],'proposedArgs':[f,![]]},{'identifier':r['$'][a3(0x50c,0x51d)],'proposedArgs':[r['endOffset']+(f[a3(0x4a2,0x4d3)]()-t[a3(0x48e,0x4d3)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d[a3(0x532,0x541)](n);if(d['length']){d[d[a3(0x4aa,0x4c0)]-0x1][a3(0x50f,0x51a)]=null;}for(const w of l){j[a3(0x53c,0x513)][a3(0x51e,0x4f9)](w);}}let p='';if(d){p=this[a3(0x511,0x540)](d);}if(p!==this[a3(0x502,0x515)]){o=!![];d=d?d[a3(0x50f,0x4f7)]():d;this[a3(0x502,0x515)]=p;}if(o){yield*this[a3(0x4cf,0x4d2)](d,m);}}function a3(a,b){return U(b-0x39f,a);}return h;}[U(0x1a1,0x1bd)](c){c=c||this[a4(0x1b6,0x190)];function a4(a,b){return U(a-0x7b,b);}return c?.[a4(0x1bb,0x1cd)](d=>''+d[a4(0x1c0,0x187)]+'-'+d[a4(0x1aa,0x17d)]?.[a4(0x1af,0x1f4)]()+'-'+d[a4(0x1f9,0x219)]+'-'+d[a4(0x199,0x190)]?.[a4(0x1af,0x19f)]())[a4(0x1dd,0x1c0)](';');}static['processData'](c,d,e,f,g){function a5(a,b){return U(b-0x13c,a);}if(e){f[a5(0x26e,0x26d)]=e[a5(0x288,0x2ab)];}return super[a5(0x2ec,0x2a6)](c,d,e,f,g);}[U(0x1a3,0x1bf)](c){const d=this[a6(0x492,0x4cd)]?.['segmentModelClass']||this[a6(0x454,0x497)]?.[a6(0x47c,0x4a8)];if(!d)return c;function a6(a,b){return U(a-0x323,b);}const e=c[a6(0x4ca,0x4b6)]?c:d[a6(0x49a,0x465)](c);if(!e[a6(0x4a9,0x46c)])e['event']=this;return e;}['processSegmentsValue'](c){if(c===void 0x0)return void 0x0;function a7(a,b){return U(a-0x284,b);}if(c==null)return null;return c['map'](d=>this[a7(0x427,0x3eb)](d));}*[U(0x1a4,0x171)](){const c=yield this['$'][a8(0x15b,0x124)];function a8(a,b){return U(a- -0x3a,b);}const d=c[a8(0xe5,0xe8)][a8(0x118,0x147)](StartDateVar);let e;if(d===startDateByEndDateAndSegmentsFormula[a8(0x14d,0x142)]){e=yield*this[a8(0x10a,0xce)]();}else{e=yield*super[a8(0x16a,0x15a)]();}return e;}*[U(0x144,0x14f)](){function a9(a,b){return U(b- -0x61,a);}const c=yield this['$'][a9(0x135,0x134)];const d=yield this['$']['segments'];const e=yield this['$'][a9(0x74,0xbd)];let f;if(d){const g=d[d[a9(0xc5,0xc0)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this[a9(0x149,0x12d)](e,![],h,TimeUnit[a9(0x12f,0x123)],{'ignoreSegments':!![]});const j=yield*this['isManuallyScheduled']();f=j&&!this['getProject']()[a9(0x121,0xec)]?i:yield*this[a9(0x88,0xc7)](i,!![]);}return f;}*['calculateEndDateBySegments'](){const c=yield this['$'][aa(-0xb5,-0xe4)];const d=yield this['$']['segments'];const e=yield this['$'][aa(-0x11b,-0x11c)];let f;if(d){const g=d[d['length']-0x1];const h=yield g['$'][aa(-0xcc,-0xa4)];const i=yield*this['calculateProjectedXDateWithDuration'](e,!![],h,TimeUnit[aa(-0xc6,-0xf9)],{'ignoreSegments':!![]});const j=yield*this[aa(-0x11e,-0x118)]();f=j&&!this[aa(-0x11d,-0x15a)]()[aa(-0xfd,-0x128)]?i:yield*this[aa(-0x122,-0xe9)](i,![]);}function aa(a,b){return U(a- -0x24a,b);}return f;}*['calculateEndDate'](){const c=yield this['$'][ab(-0x56,-0x68)];const d=c[ab(-0xcc,-0xa3)][ab(-0x99,-0x6d)](EndDateVar);function ab(a,b){return U(a- -0x1eb,b);}let e;if(d===endDateByStartDateAndSegmentsFormula[ab(-0x64,-0x5f)]){e=yield*this[ab(-0x83,-0xa7)]();}else{e=yield*super[ab(-0x95,-0xac)]();}return e;}*[U(0x1a9,0x1c8)](){function ac(a,b){return U(b- -0x159,a);}let c;if(yield*this[ac(0x7,-0x39)]()){c=yield*this['calculateDurationBySegments']();}else{c=yield*super['calculateDurationProposed']();}return c;}*[U(0x128,0x10c)](c,d=!![],e){if(!c)return null;e=Object['assign']({'ignoreSegments':!![]},e);function ad(a,b){return U(a- -0x1c3,b);}return yield*super[ad(-0x9b,-0xdc)](c,d,e);}*['calculateDurationBySegments'](){function ae(a,b){return U(a-0x20c,b);}let c;const d=yield this['$'][ae(0x3a1,0x35c)];const e=yield this['$'][ae(0x353,0x31f)];const f=yield this['$']['segments'];if(f){let g=0x0;for(const h of f){g+=h['endOffset']-h['startOffset'];}c=yield*this[ae(0x3a4,0x399)](g,TimeUnit[ae(0x390,0x37f)],e);}return c;}*[U(0x136,0xf7)](c,d){const e=yield this['$'][af(-0x1b6,-0x187)];let f=c[af(-0x202,-0x1f0)];if(!e||f){return yield*super[af(-0x1f5,-0x1b2)](c,d);}const g=this[af(-0x1fe,-0x22a)]();const h=yield this['$'][af(-0x1b3,-0x1e2)];function af(a,b){return U(a- -0x32b,b);}const i=yield this['$']['assignmentsByCalendar'];const j=yield this['$'][af(-0x1c5,-0x1c1)];const k=c[af(-0x18b,-0x167)]!==![];const l=(yield this['$']['ignoreResourceCalendar'])||(yield*this['hasElapsedDuration']())||c[af(-0x1e9,-0x208)]||!i[af(-0x1d4,-0x192)];const m=g[af(-0x1c6,-0x1bb)];let n=0x1;let o,p,q,r,s;if(!f){r=yield this['$']['segments'];f=f||!r||k===![]&&r[0x0][af(-0x1fc,-0x1c4)]>=c[af(-0x20d,-0x1e4)]||k===!![]&&r[r[af(-0x20a,-0x22c)]-0x1]['endDate']<c[af(-0x1fc,-0x1c8)];if(!f){r=r[af(-0x1d3,-0x18c)]();if(k){o=r[af(-0x18c,-0x183)]();p=0x0;n=0x1;s=o[af(-0x1b0,-0x193)]?o[af(-0x1ad,-0x172)]:MAX_DATE[af(-0x1f7,-0x1fe)]();}else{o=r[af(-0x200,-0x1f4)]();p=o[af(-0x1ad,-0x1cd)];n=-0x1;s=o['endOffset'];}q=s-o[af(-0x1e6,-0x1d0)];}}const t=yield*this['isManuallyScheduled']();const u=g[af(-0x212,-0x24c)];const v=this[af(-0x1b2,-0x1ac)];return j[af(-0x1f5,-0x202)](Object['assign']({'maxRange':m},c),(w,x,y)=>{const z=y['getCalendarsWorkStatus']();function ag(a,b){return af(b-0x309,a);}const A=y[ag(0xe6,0x126)]();if(z[ag(0x152,0x130)](h)&&(l||A[ag(0x15f,0x15b)](B=>i[ag(0x134,0x115)](B))||t&&!g['skipNonWorkingTimeInDurationWhenSchedulingManually'])){if(f){return d(w,x,y);}else{const B=w['getTime']();let C=x['getTime']()-w[ag(0x13b,0x112)]();if(u){const F=w[ag(0x11b,0x147)]()-x[ag(0x146,0x147)]();C+=F*0x3c*0x3e8;}let D,E;if(k){D=p;E=p+C;}else{D=p-C;E=p;}while(o&&D<=s&&E>o[ag(0x146,0x123)]){const G=Math['max'](D,o[ag(0x169,0x123)]);const H=Math[ag(0x115,0x105)](E,s);const I=new Date(B+G-D);const J=new Date(B+H-D);const K=d(I,J,y);if(K===![])return![];q-=J['getTime']()-I[ag(0x12d,0x112)]();if(q<v){o=k?r[ag(0x17c,0x17d)]():r[ag(0x118,0x109)]();if(o){s=!k||o[ag(0x12c,0x159)]?o[ag(0x147,0x15c)]:MAX_DATE[ag(0x10b,0x112)]();q=s-o['startOffset'];}}else{break;}}p+=n*C;}}});}*[U(0x125,0x111)](){function ah(a,b){return U(b- -0x120,a);}const c=yield this['$']['isSegmented'];return c||(yield*super[ah(0x13,0x5)]());}[U(0x16b,0x184)](c,d){function ai(a,b){return U(a- -0x13,b);}d=d||this['getSegments']();if(d){const e=this[ai(0x13e,0x17b)](c,d);return d[e];}}['getSegmentIndexByDate'](c,d){d=d||this[aj(0x458,0x47b)]();function aj(a,b){return U(a-0x31c,b);}return d?d[aj(0x4b7,0x4cb)](e=>c>=e[aj(0x44b,0x48c)]&&c<e[aj(0x43a,0x425)]):-0x1;}get[U(0x18a,0x158)](){function ak(a,b){return U(b-0x11,a);}const c=this[ak(0x14e,0x14d)]();return c?c[0x0]:null;}get[U(0x124,0x101)](){function al(a,b){return U(b- -0x50,a);}const c=this[al(0xe2,0xec)]();return c?c[c[al(0x8a,0xd1)]-0x1]:null;}[U(0x19a,0x163)](c){function am(a,b){return U(a-0x2a8,b);}const d=this[am(0x3e4,0x3d9)]();return d?.[c];}async[U(0x126,0xf2)](c,d=0x1,e){const f=this[an(0x1eb,0x1de)]();const g=f[an(0x1f5,0x20a)];await f['commitAsync']();const h=this;if(!c||h[an(0x1c2,0x1ee)]&&h[an(0x205,0x1df)]?.[an(0x24e,0x208)])return;const j=h[an(0x233,0x20c)];const k=h['durationUnit'];const m=h[an(0x1e5,0x1e0)];const n=h[an(0x1cb,0x1cf)];e=e?_enc[an(0x1fa,0x241)](e):k;if(!m||!n||m>=c||c>=n||!j)return;const o=h[an(0x268,0x226)];let p=h['segments']||[];let q,r;if(o){r=h[an(0x20c,0x202)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s['startDate']:m;const u=s[an(0x23c,0x20c)];function an(a,b){return U(b-0xb1,a);}const v=s[an(0x20f,0x1f8)];const w=s['name'];const x=h['run'](an(0x23e,0x1fb),t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h[an(0x27e,0x248)]('convertDurationGen',d,e,TimeUnit[an(0x1f4,0x235)]);const A=z+h[an(0x238,0x248)](an(0x23f,0x1fb),m,c,TimeUnit[an(0x251,0x235)],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[an(0x22f,0x228)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[an(0x215,0x209)](0x0);p[an(0x22f,0x253)](r+0x1,0x0,B);h[an(0x1e8,0x1ec)]=p;h['duration']=j;for(let C=r+0x2,D=p[an(0x1e1,0x1d2)];C<D;C++){const E=p[C];if(E){E[an(0x1b2,0x1f6)]+=z;E[an(0x1f7,0x22f)]+=z;}}}else{const F=g[an(0x223,0x228)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[an(0x251,0x228)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h[an(0x252,0x20c)]=j;h[an(0x235,0x1ec)]=[F,G];}return f['commitAsync']();}async[U(0x13e,0x115)](c,d){if(!this[ao(0x3aa,0x385)])return;function ao(a,b){return U(a-0x235,b);}this[ao(0x3c7,0x3bd)]=!![];c=c||this[ao(0x3bf,0x39b)];d=d||this[ao(0x359,0x34a)];if(c['startOffset']>d[ao(0x37a,0x34d)]){let f=d;d=c;c=f;}c[ao(0x353,0x311)]=d[ao(0x364,0x331)];const e=await this[ao(0x362,0x33e)]()[ao(0x3bd,0x405)]();this[ao(0x3c7,0x391)]=![];return e;}[U(0x139,0x169)](c,d){if(c==='segments'&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f[ap(0x349,0x346)]();if(!this[ap(0x3a6,0x363)][f['internalId']]||f[ap(0x349,0x383)]>this[ap(0x33b,0x363)][f['internalId']]){Object['assign'](g,f[ap(0x343,0x377)][ap(0x333,0x33f)]);}e[ap(0x36c,0x364)](g);this['_segmentGeneration'][f[ap(0x324,0x320)]]=f[ap(0x3b5,0x383)];}else{e[ap(0x338,0x364)](f);}}d=e;}function ap(a,b){return U(b-0x1f6,a);}super[ap(0x30b,0x32f)](c,d);}[U(0x155,0x19c)](){const c=this[aq(0x3b1,0x3ca)];if(c){this[aq(0x3e2,0x3e5)]?.[aq(0x401,0x414)](c);}function aq(a,b){return U(a-0x276,b);}super[aq(0x3cb,0x3b7)]();}[U(0x196,0x180)](...c){this[ar(0x3ba,0x3da)][ar(0x3a8,0x3e5)][ar(0x3f1,0x3ed)]++;function ar(a,b){return U(b-0x2aa,a);}super['endBatch'](...c);this[ar(0x3f7,0x3da)]['segments'][ar(0x3b7,0x3ed)]--;}[U(0x163,0x182)](c=null,d=null){function as(a,b){return U(b-0x3c2,a);}const e=super['copy'](c,d);e[as(0x553,0x55b)]['segments']=void 0x0;if(e[as(0x525,0x4fd)]){e[as(0x4be,0x4fd)]=e['segments'][as(0x4e4,0x502)](f=>Object[as(0x547,0x553)](f[as(0x544,0x525)](),{'event':e}));}return e;}[U(0x150,0x132)](){const c=super[at(-0xda,-0xd2)](),d=this[at(-0xc1,-0xb2)](at(-0x115,-0xe7)),{persist:e,dataSource:f,complexMapping:g}=d;function at(a,b){return U(b- -0x222,a);}if(e){let h=_end[at(-0x5f,-0x86)](c,f);if(h){h=h[at(-0xf8,-0xe2)](i=>i[at(-0xb1,-0xd2)]());_end[at(-0xed,-0xea)](c,f,h);}}return c;}[U(0x185,0x190)](){function au(a,b){return U(b- -0xff,a);}const {segments:c}=this;c?.[au(0xba,0xa7)](d=>d[au(0x95,0x86)]());super[au(0xa9,0x86)]();}}b['$name']=U(0x132,0x13a);__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(0x161,0x125)],U(0x195,0x176),void 0x0);__decorate([model_field({'type':U(0x11c,0x15a),'isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b[U(0x161,0x1a4)],'segments',void 0x0);__decorate([field()],b[U(0x161,0x157)],U(0x18c,0x192),void 0x0);__decorate([field()],b[U(0x161,0x18e)],U(0x175,0x152),void 0x0);__decorate([write(U(0x13b,0x166))],b['prototype'],U(0x14c,0x153),null);__decorate([calculate(U(0x13b,0x10d))],b[U(0x161,0x166)],U(0x154,0x187),null);function U(a,b){return _enN(b,a-0x1ee);}__decorate([calculate('adjustedSegments')],b[U(0x161,0x155)],'calculateAdjustedSegments',null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,segmentsConverter,startDateByEndDateAndSegmentsFormula};
1
+ (function(a,b){const c=a();function L(a,b){return _enb(b-0x2e8,a);}while(!![]){try{const d=parseInt(L(0x477,0x44b))/0x1*(-parseInt(L(0x444,0x431))/0x2)+parseInt(L(0x3ff,0x3d7))/0x3*(-parseInt(L(0x474,0x447))/0x4)+parseInt(L(0x3b9,0x3ef))/0x5+parseInt(L(0x3f5,0x40e))/0x6*(parseInt(L(0x474,0x448))/0x7)+parseInt(L(0x3f6,0x41d))/0x8+parseInt(L(0x440,0x424))/0x9*(-parseInt(L(0x430,0x428))/0xa)+parseInt(L(0x3ec,0x3f3))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5e5b4));var __decorate=function(a,b,e,f){var g=arguments[M(0x384,0x39c)],h=g<0x3?b:f===null?f=Object[M(0x3e2,0x414)](b,e):f,j;if(typeof Reflect===M(0x3dd,0x3ab)&&typeof Reflect[M(0x401,0x3c8)]===M(0x3f9,0x3d7))h=Reflect[M(0x3c2,0x3c8)](a,b,e,f);else for(var k=a[M(0x368,0x39c)]-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-0x2a9,a);}return g>0x3&&h&&Object[M(0x41e,0x40b)](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';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xef;let f=c[d];return f;};return _enb(a,b);}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';function _enN(a,b){return _enb(b-0x344,a);}import{SchedulerProEventSegment}from'./SchedulerProEventSegment.js';const SegmentsVar=Symbol(_enN(0x47f,0x44c));const segmentsConverter=(a,b,c)=>c['processSegmentsValue'](a);function _ena(){const av=['segmentIndex','_lastSegmentsSnapshot','4246488dBEwCm','copy','findIndex','lastSegment','10YLKxXN','fieldMap','getTimezoneOffset','add','unlink','cls','None','firstSegment','forEach','2KpCZnS','segmentModelClass','ignoreSegments','isModel','segments','skipNonWorkingTime','processSegmentValue','join','reduce','addProposedValueFlag','meta','splice','processSegmentsValue','endOffset','endBatch','graph','calculateAdjustedSegments','_segmentGeneration','mergeSegments','adjustDurationToDST','convertDurationGen','calculateStartDate','4PfHIrx','70VpRAyz','processData','defineProperty','709691tnhyXn','splitToSegments','prepareDispatcher','prototype','pop','getValue','calculateEndDateBySegments','equality','getOwnPropertyDescriptor','event','run','effectiveCalendarsCombination','isSegmented','generation','commitAsync','isHasSubEventsMixin','getSegmentIndexByDate','calculateStartDateBySegments','calculateDurationProposed','isForward','getTime','startOffset','data','Millisecond','from','has','useEventAvailabilityIterator','1991736wMXwTb','writeSegments','calculateDurationBySegments','resolution','length','ignoreResourceCalendar','endDate','new','map','$name','calculateEndDate','childEvents','calculateProjectedDuration','convert','calculateProjectedXDateWithDuration','skipWorkingTime','shift','normalizeUnit','get','object','setProject','min','forEachAvailabilityInterval','getLatestStableEntryFor','350305zlsdyE','SegmentsVar','_skipSegmentsIsEqual','size','22233893OyJpMS','skipNonWorkingTimeWhenSchedulingManually','previousSegment','write','getFieldDefinition','slice','getSegmentByDate','getCalendarsWorking','doWriteSegments','getProject','segmentsToCleanup','hasIdentifier','modified','formulaId','removeEntities','some','hasSegmentChangesProposed','internalClearChanges','push','duration','decorate','getCalendarsWorkStatus','max','startDate','forceSegmentsMerging','assign','leaveProject','29166SpSalF','isManuallyScheduled','getSegments','Forward','calculateSegments','durationUnit','toJSON','call','function','getSegmentsSnapshot','storeFieldChange','adjustedSegments','dispatcher','skipNonWorkingTimeInDurationWhenSchedulingManually','_processingDataForProject','735880mFVBbe','SplitEventMixin','nextSegment','internalId','rawModifications'];_ena=function(){return av;};return _ena();}const startDateByEndDateAndSegmentsFormula=Formula['new']({'output':StartDateVar,'inputs':new Set([EndDateVar,SegmentsVar])});const endDateByStartDateAndSegmentsFormula=Formula[_enN(0x459,0x43a)]({'output':EndDateVar,'inputs':new Set([StartDateVar,SegmentsVar])});const durationByStartDateAndEndDateAndSegmentsFormula=Formula['new']({'output':DurationVar,'inputs':new Set([StartDateVar,EndDateVar,SegmentsVar])});const SEDSGGraphDescription=CycleDescription[_enN(0x457,0x43a)]({'variables':new Set([StartDateVar,EndDateVar,DurationVar,SegmentsVar]),'formulas':new Set([endDateByStartDateAndSegmentsFormula,startDateByEndDateAndSegmentsFormula,startDateFormula,endDateFormula,durationFormula])});const SEDSGForwardCycleResolution=CycleResolution[_enN(0x476,0x43a)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([endDateFormula,endDateByStartDateAndSegmentsFormula])});const SEDSGBackwardCycleResolution=CycleResolution[_enN(0x471,0x43a)]({'description':SEDSGGraphDescription,'defaultResolutionFormulas':new Set([startDateFormula,startDateByEndDateAndSegmentsFormula])});class SEDSGDispatcherIdentifier extends SEDWUDispatcherIdentifier{[_enN(0x4c3,0x4ae)](a,b){const c=a[O(0x51,0x1a)];function O(a,b){return _enN(a,b- -0x41c);}const d=b['resolution'];return super['equality'](a,b)&&c[O(0x9,0x29)](SegmentsVar)===d[O(-0x14,0x29)](SegmentsVar);}}function compareSegmentsArray(c,d){function P(a,b){return _enN(b,a- -0xc7);}if(!c&&!d)return!![];if(this['_skipSegmentsIsEqual'])return![];if(!c&&d||c&&!d)return![];if(c[P(0x370,0x396)]!==d['length'])return![];return c['every']((e,f)=>compareSegments(e,d[f]));}const compareSegments=(c,d)=>{if(c===d)return!![];const e=c[Q(0x453,0x453)]?c:d;const f=e[Q(0x448,0x42c)];const g=c[Q(0x429,0x466)]instanceof Date?c[Q(0x429,0x42f)][Q(0x47e,0x476)]():f[Q(0x429,0x45f)][Q(0x403,0x3c6)](c[Q(0x429,0x401)])?.[Q(0x47e,0x43b)]();const h=d['startDate']instanceof Date?d[Q(0x429,0x41c)]['getTime']():f['startDate'][Q(0x403,0x3fc)](d[Q(0x429,0x40f)])?.['getTime']();const i=c[Q(0x3fc,0x3ff)]instanceof Date?c[Q(0x3fc,0x443)]['getTime']():f[Q(0x3fc,0x3bb)][Q(0x403,0x3f4)](c['endDate'])?.[Q(0x47e,0x49a)]();const j=d[Q(0x3fc,0x3c6)]instanceof Date?d['endDate'][Q(0x47e,0x479)]():f[Q(0x3fc,0x3cc)][Q(0x403,0x406)](d[Q(0x3fc,0x3e5)])?.['getTime']();function Q(a,b){return _enN(b,a- -0x3d);}return g===h&&i===j;};const fillNextPrevious=a=>{a[R(0xcb,0xd0)]((b,c,d)=>{if(b){b[S(0x365,0x341)]=c;}function S(a,b){return R(b-0x290,a);}c[S(0x32f,0x317)]=b;c[S(0x36c,0x344)]=d;return c;},null);function R(a,b){return _enN(b,a- -0x3ca);}if(a[R(0x6d,0x7c)]){a[a['length']-0x1]['nextSegment']=null;}};class SplitEventMixin extends Mixin([HasEffortMixin,HasPercentDoneMixin],a=>{class b extends a{constructor(){super(...arguments);function T(a,b){return _enb(b- -0x63,a);}this[T(0x13e,0xf7)]={};}get[U(0x2d,-0x10)](){let c=super[V(0x4,-0xf)];function V(a,b){return U(b,a-0x14);}if(this[V(0x18,-0x7)]&&(!c||!('segments'in c))){for(const d of this[V(0x18,-0x2a)]){if(d[V(0x4,0x22)]){c=c||{};c[V(0x18,0x37)]=this['getFieldPersistentValue']('segments');break;}}}return c;}['internalClearChanges'](c,d,e,...f){function W(a,b){return U(a,b-0x36b);}for(const g of this[W(0x3a0,0x36f)]||[]){if(g[W(0x390,0x36e)]){g[W(0x365,0x33e)][W(0x32a,0x34f)](g,c,d,null,...f);}}super[W(0x304,0x33e)][W(0x312,0x34f)](this,c,d,e,...f);}*[U(0x2a,0x1c)](c){const d=yield*super['prepareDispatcher'](c);function X(a,b){return U(b,a-0x23f);}if(yield*this[X(0x211,0x210)]()){d[X(0x248,0x211)](SegmentsVar);}return d;}['cycleResolutionContext'](c){function Y(a,b){return U(b,a-0x3a8);}const d=c(this['$']['effectiveDirection']);return d['direction']===Direction[Y(0x388,0x378)]||d['direction']===Direction[Y(0x3a5,0x3be)]?SEDSGForwardCycleResolution:SEDSGBackwardCycleResolution;}*[U(-0x39,-0x2e)](){const c=yield ProposedValueOf(this['$'][Z(0x1ad,0x1eb)]);function Z(a,b){return U(b,a-0x1a9);}let d=![];if(yield HasProposedValue(this['$'][Z(0x1ad,0x1ed)])){d=Boolean(c);}const e=yield ProposedOrPreviousValueOf(this['$'][Z(0x1ad,0x1cb)]);if(!e)return![];for(const f of e){const g=yield HasProposedValue(f['$'][Z(0x182,0x193)]);const h=yield HasProposedValue(f['$']['endDate']);const i=yield HasProposedValue(f['$'][Z(0x17e,0x138)]);if(g||h||i)d=!![];}return d;}[U(-0x9f,-0x59)](c,d,e,f){const g=d[a0(0x43e,0x462)](c)?.[a0(0x4a0,0x491)]();const h=g!==TombStone?g??[]:[];const i=new Set(h);const j=(f??[])[a0(0x42f,0x459)](n=>n[a0(0x484,0x441)]?n:this['processSegmentValue'](n));function a0(a,b){return U(b,a-0x481);}const k=new Set(j);const l=this['project'];const m=l['replica'];for(const n of h){if(!k['has'](n)){l['segmentsToCleanup']['add'](n);n['event']=null;}}fillNextPrevious(j);c['constructor'][a0(0x49e,0x479)][a0(0x446,0x408)][a0(0x465,0x44a)](this,c,d,e,j[a0(0x42b,0x440)]>0x0?j:null);d[a0(0x446,0x455)](this['$'][a0(0x4a7,0x47c)],Boolean(f?.[a0(0x42b,0x431)]));for(const o of j){if(!i[a0(0x4b4,0x48d)](o)&&o[a0(0x490,0x48b)]!==m){o[a0(0x43b,0x42c)](l);o[a0(0x4a4,0x4c6)]=this;m['addEntity'](o);}}}*[U(-0x30,-0x36)](c,d){d=d||[];if(c[a1(0x34a,0x323)]<=0x1){const e=c[a1(0x322,0x323)]?yield*this['convertDurationGen'](c[0x0][a1(0x3c8,0x386)]-c[0x0]['startOffset'],TimeUnit[a1(0x369,0x3aa)],yield this['$'][a1(0x36e,0x35b)]):0x0;d[a1(0x34e,0x34d)]({'identifier':this['$'][a1(0x30e,0x34e)],'proposedArgs':[e,null]});c=null;}d['push']({'identifier':this['$'][a1(0x3ae,0x37d)],'proposedArgs':[c]});function a1(a,b){return U(a,b-0x379);}yield WriteSeveral(d);}*[U(-0x66,-0x1f)](){const c=yield this['$'][a2(0x4b,0xf)];const {graph:d,project:e}=this;const f=e[a2(0x63,0x68)];const g=yield e['$']['autoMergeAdjacentSegments']||this[a2(0x3c,0x37)];const h=yield PreviousValueOf(this['$'][a2(0x66,0xa9)]);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['$activeTransaction'];for(const q of i){const r=yield q['$'][a2(0x91,0x67)];const s=yield q['$'][a2(0x6f,0x8b)];const t=yield q['$'][a2(0x37,0x64)];const u=p[a2(0x2f,-0x17)](q['$']['startDate'])&&(yield ProposedArgumentsOf(q['$'][a2(0x3b,0x16)]));const v=p[a2(0x2f,-0x16)](q['$'][a2(0xe,0x3d)])&&(yield ProposedArgumentsOf(q['$'][a2(0xe,0x4e)]));n=n||u?.[0x0]||v?.[0x0];if(r===s){j[a2(0x36,0xb)](q);}else if(g&&m&&r+o<=m['endOffset']){const w=m[a2(0x6f,0xb6)];j[a2(0x36,0x17)](q);if(m[a2(0x71,0x37)]){j[a2(0x36,0x3b)](m);const x=m['startOffset'];const y=n?s+w-r:Math[a2(0x3a,0x42)](s,w);const z=m['cls'];m=f['new']({'event':this,'cls':z,'startOffset':x,'endOffset':y});}else{m['endOffset']=n?s+m[a2(0x6f,0x6e)]-r:Math['max'](s,m['endOffset']);}}else if(!g&&m&&(o||r<m[a2(0x6f,0x2b)])){l['add'](m);j[a2(0x36,0x74)](q);if(r+o<m['endOffset']){o+=m[a2(0x6f,0x50)]-r-o;}m=f['new']({'id':q['id'],'event':this,'cls':m[a2(0x5e,0xa4)],'startOffset':r+o,'endOffset':s+o});}else{if(m){l[a2(0x5c,0x62)](m);}m=q;}}if(m){l[a2(0x5c,0x3f)](m);}if(l['size']===0x1){j[a2(0x36,-0x7)](...l);}k=j['length']>0x0;if(k){i=Array[a2(0x94,0xc7)](l);}fillNextPrevious(i);}else if(h){j[a2(0x36,0x8)](...h);}if(j[a2(0xc,0x2f)]){for(const A of j){A[a2(0x85,0x8a)]=null;e[a2(0x2e,-0x1)][a2(0x5c,0x39)](A);}}if(k){yield*this[a2(0x2c,0x4c)](i);}i=i?.[a2(0xc,-0x1)]>0x1?i:null;function a2(a,b){return U(b,a-0x62);}return i;}*[U(0x36,0x10)](){const c=yield this['$'][a3(0x379,0x37f)];let d=yield this['$']['segments'];const e=yield this['$'][a3(0x369,0x375)];const f=yield this['$'][a3(0x33c,0x35d)];const g=yield this['$'][a3(0x365,0x398)];let h=yield ProposedOrPrevious;function a3(a,b){return U(b,a-0x390);}if(d){const j=this['project'];const k=this[a3(0x39f,0x3c8)];const l=[];const m=[];let n=-0x1;for(let q=d[a3(0x33a,0x309)]-0x1;q>=0x0;q--){const r=d[q];const s=yield r['$'][a3(0x369,0x35e)];const t=yield r['$'][a3(0x33c,0x2f8)];if(s>f){l[a3(0x364,0x3a0)](r);n=q;}else{if(t[a3(0x3be,0x3da)]()!==f[a3(0x3be,0x398)]()){const u=r[a3(0x39d,0x3c2)]+(f[a3(0x3be,0x3c6)]()-t[a3(0x3be,0x38b)]())-r[a3(0x3bf,0x39f)];const v=yield*this[a3(0x3a4,0x3c3)](u,TimeUnit[a3(0x3c1,0x3dc)],yield r['$'][a3(0x372,0x3a6)]);m[a3(0x364,0x338)]({'identifier':r['$'][a3(0x365,0x35e)],'proposedArgs':[v,null]},{'identifier':r['$'][a3(0x33c,0x37e)],'proposedArgs':[f,![]]},{'identifier':r['$'][a3(0x39d,0x3a7)],'proposedArgs':[r[a3(0x39d,0x35d)]+(f[a3(0x3be,0x38c)]()-t[a3(0x3be,0x3da)]())]});}break;}}let o=![];if(n>-0x1){o=!![];d[a3(0x39b,0x382)](n);if(d[a3(0x33a,0x36a)]){d[d[a3(0x33a,0x321)]-0x1][a3(0x37e,0x345)]=null;}for(const w of l){j[a3(0x35c,0x388)][a3(0x38a,0x387)](w);}}let p='';if(d){p=this[a3(0x376,0x37b)](d);}if(p!==this['_lastSegmentsSnapshot']){o=!![];d=d?d[a3(0x357,0x337)]():d;this[a3(0x382,0x33b)]=p;}if(o){yield*this[a3(0x35a,0x373)](d,m);}}return h;}[U(0x2a,-0x1a)](c){c=c||this[a4(0x32a,0x340)];function a4(a,b){return U(a,b-0x33c);}return c?.[a4(0x30b,0x2ea)](d=>''+d[a4(0x361,0x36b)]+'-'+d[a4(0x2f6,0x315)]?.['getTime']()+'-'+d[a4(0x379,0x349)]+'-'+d[a4(0x2e3,0x2e8)]?.[a4(0x33b,0x36a)]())[a4(0x324,0x343)](';');}static[U(-0x2e,0x18)](c,d,e,f,g){if(e){f[a5(0x439,0x40e)]=e['project'];}function a5(a,b){return U(a,b-0x423);}return super['processData'](c,d,e,f,g);}[U(0x1c,0x6)](c){const d=this['project']?.[a6(0x51f,0x554)]||this[a6(0x509,0x510)]?.[a6(0x51f,0x507)];if(!d)return c;const e=c['isModel']?c:d['new'](c);if(!e['event'])e[a6(0x541,0x578)]=this;function a6(a,b){return U(b,a-0x51e);}return e;}[U(0x3b,0xc)](c){if(c===void 0x0)return void 0x0;if(c==null)return null;return c['map'](d=>this['processSegmentValue'](d));}*['calculateStartDate'](){const c=yield this['$'][a7(0x222,0x24f)];const d=c[a7(0x1e2,0x1d7)][a7(0x1f1,0x1fe)](StartDateVar);let e;if(d===startDateByEndDateAndSegmentsFormula[a7(0x208,0x24d)]){e=yield*this['calculateStartDateBySegments']();}else{e=yield*super[a7(0x24e,0x288)]();}function a7(a,b){return U(b,a-0x239);}return e;}*[U(0x42,0x2b)](){const c=yield this['$']['dispatcher'];const d=yield this['$'][a8(0x56,0x85)];const e=yield this['$'][a8(0x34,0x2d)];let f;function a8(a,b){return U(a,b-0x81);}if(d){const g=d[d[a8(-0x14,0x2b)]-0x1];const h=yield g['$'][a8(0x56,0x8e)];const i=yield*this['calculateProjectedXDateWithDuration'](e,![],h,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const j=yield*this['isManuallyScheduled']();f=j&&!this[a8(0x7f,0x4c)]()[a8(0x6b,0x44)]?i:yield*this[a8(0xb9,0x86)](i,!![]);}return f;}*[U(-0xa,0x20)](){const c=yield this['$'][a9(0x34,0x2c)];const d=yield this['$'][a9(0x4f,0x1c)];const e=yield this['$'][a9(0x24,0x67)];let f;if(d){const g=d[d[a9(-0xb,-0x40)]-0x1];const h=yield g['$']['endOffset'];const i=yield*this[a9(-0x1,-0x2)](e,!![],h,TimeUnit['Millisecond'],{'ignoreSegments':!![]});const j=yield*this[a9(0x29,0x4f)]();f=j&&!this['getProject']()[a9(0xe,0xa)]?i:yield*this[a9(0x50,0x59)](i,![]);}function a9(a,b){return U(b,a-0x4b);}return f;}*[U(-0x75,-0x50)](){const c=yield this['$'][aa(0x364,0x351)];function aa(a,b){return U(a,b-0x368);}const d=c[aa(0x34a,0x311)][aa(0x2fb,0x320)](EndDateVar);let e;if(d===endDateByStartDateAndSegmentsFormula[aa(0x31a,0x337)]){e=yield*this[aa(0x39e,0x388)]();}else{e=yield*super['calculateEndDate']();}return e;}*[U(0x24,0x2c)](){let c;if(yield*this[ab(0x293,0x293)]()){c=yield*this[ab(0x28d,0x269)]();}else{c=yield*super['calculateDurationProposed']();}function ab(a,b){return U(a,b-0x2c1);}return c;}*['skipNonWorkingTime'](c,d=!![],e){if(!c)return null;e=Object[ac(0x1ab,0x1cb)]({'ignoreSegments':!![]},e);function ac(a,b){return U(a,b-0x1f0);}return yield*super[ac(0x1f7,0x1f5)](c,d,e);}*['skipWorkingTime'](c,d=!![],e,f,g){function ad(a,b){return U(b,a- -0x1f);}if(!c)return null;g={'ignoreSegments':!![],...g};return yield*super[ad(-0x6a,-0x45)](c,d,e,f,g);}*['calculateDurationBySegments'](){function ae(a,b){return U(a,b-0xe1);}let c;const d=yield this['$'][ae(0xd5,0xca)];const e=yield this['$'][ae(0x7f,0xc3)];const f=yield this['$'][ae(0xb6,0xe5)];if(f){let g=0x0;for(const h of f){g+=h['endOffset']-h['startOffset'];}c=yield*this[ae(0xb4,0xf5)](g,TimeUnit[ae(0x143,0x112)],e);}return c;}*[U(-0x31,-0x44)](c,d){const e=yield this['$'][af(-0x1a,-0x26)];let f=c[af(-0x8,-0x4a)];if(!e||f){return yield*super[af(-0xbc,-0x90)](c,d);}const g=this[af(-0x76,-0x81)]();const h=yield this['$']['effectiveCalendar'];const i=yield this['$']['assignmentsByCalendar'];const j=yield this['$'][af(-0x51,-0x27)];const k=c[af(-0x25,-0x1f)]!==![];const l=(yield this['$'][af(-0x88,-0xa1)])||(yield*this['hasElapsedDuration']())||c[af(-0xb6,-0xa1)]||!i[af(-0x63,-0x8b)];const m=g['maxCalendarRange'];let n=0x1;let o,p,q,r,s;function af(a,b){return U(a,b- -0x4c);}if(!f){r=yield this['$'][af(-0x8a,-0x48)];f=f||!r;if(!f){r=r['slice']();if(k){o=r[af(-0x51,-0x96)]();p=0x0;n=0x1;s=o['nextSegment']?o['endOffset']:MAX_DATE['getTime']();}else{o=r[af(-0xc,-0x2e)]();p=o[af(-0x7f,-0x3f)];n=-0x1;s=o[af(0x7,-0x3f)];}q=s-o[af(0x0,-0x1d)];}}const t=yield*this[af(-0x5d,-0x6e)]();const u=g[af(-0x7d,-0x39)];const v=this['zeroDurationMsThreshold'];return j[af(-0x90,-0x90)](Object['assign']({'maxRange':m},c),(w,x,y)=>{function ag(a,b){return af(b,a- -0x74);}const z=y[ag(-0xe9,-0xca)]();const A=y[ag(-0xf7,-0xc6)]();if(z['get'](h)&&(l||A[ag(-0xef,-0xc2)](B=>i['has'](B))||t&&!g[ag(-0xd6,-0xa0)])){if(f){return d(w,x,y);}else{const B=w[ag(-0x92,-0xda)]();let C=x[ag(-0x92,-0xaf)]()-w[ag(-0x92,-0xb6)]();if(u){const F=w[ag(-0xc7,-0x10b)]()-x[ag(-0xc7,-0xf6)]();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(-0x91,-0x8f)]){const G=Math[ag(-0xe8,-0xef)](D,o[ag(-0x91,-0xd6)]);const H=Math[ag(-0x105,-0xdf)](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(-0x92,-0x81)]()-I[ag(-0x92,-0x8e)]();if(q<v){o=k?r['shift']():r['pop']();if(o){s=!k||o[ag(-0xd2,-0xea)]?o[ag(-0xb3,-0xb5)]:MAX_DATE['getTime']();q=s-o['startOffset'];}}else{break;}}p+=n*C;}}});}*['useEventAvailabilityIterator'](){function ah(a,b){return U(b,a- -0x1f2);}const c=yield this['$'][ah(-0x1cc,-0x1bb)];return c||(yield*super[ah(-0x1be,-0x18b)]());}[U(-0x5d,-0x38)](c,d){d=d||this[ai(-0x159,-0x14a)]();function ai(a,b){return U(a,b- -0x129);}if(d){const e=this[ai(-0x119,-0xff)](c,d);return d[e];}}['getSegmentIndexByDate'](c,d){function aj(a,b){return U(a,b-0x179);}d=d||this['getSegments']();return d?d[aj(0x169,0x16e)](e=>c>=e[aj(0x194,0x152)]&&c<e['endDate']):-0x1;}get[U(0x2d,-0x2)](){function ak(a,b){return U(a,b-0x272);}const c=this[ak(0x21a,0x251)]();return c?c[0x0]:null;}get[U(-0x32,-0xa)](){const c=this[al(0x1c9,0x1f4)]();function al(a,b){return U(b,a-0x1ea);}return c?c[c[al(0x194,0x1c0)]-0x1]:null;}['getSegment'](c){function am(a,b){return U(b,a- -0x1ba);}const d=this[am(-0x1db,-0x1af)]();return d?.[c];}async[U(0x53,0x1b)](c,d=0x1,e){const f=this[an(0x238,0x220)]();const g=f['segmentModelClass'];await f[an(0x295,0x286)]();const h=this;if(!c||h[an(0x296,0x255)]&&h[an(0x21e,0x263)]?.[an(0x22e,0x23c)])return;const j=h[an(0x242,0x278)];const k=h[an(0x24f,0x20e)];const m=h['startDate'];const n=h[an(0x219,0x21e)];e=e?_enc[an(0x224,0x20b)](e):k;if(!m||!n||m>=c||c>=n||!j)return;const o=h['isSegmented'];let p=h[an(0x271,0x2a0)]||[];let q,r;if(o){r=h[an(0x297,0x251)](c,p);q=p[r];if(!q)return;}const s=q||h;const t=q?s[an(0x246,0x268)]:m;const u=s['duration'];const v=s[an(0x24f,0x283)];function an(a,b){return U(b,a-0x26d);}const w=s['name'];const x=h['run'](an(0x21f,0x1e9),t,c,v,{'ignoreSegments':!![]});const y=u-x;const z=h[an(0x291,0x2ad)](an(0x281,0x263),d,e,TimeUnit[an(0x29e,0x2b7)]);const A=z+h[an(0x291,0x283)]('calculateProjectedDuration',m,c,TimeUnit['Millisecond'],{'ignoreSegments':!![]});if(q){q['duration']=x;const B=g[an(0x21a,0x201)]({'duration':y,'durationUnit':v,'startOffset':A,'name':w});p=p[an(0x234,0x211)](0x0);p['splice'](r+0x1,0x0,B);h[an(0x271,0x2b4)]=p;h[an(0x242,0x21d)]=j;for(let C=r+0x2,D=p[an(0x217,0x211)];C<D;C++){const E=p[C];if(E){E[an(0x29c,0x28f)]+=z;E[an(0x27a,0x25b)]+=z;}}}else{const F=g[an(0x21a,0x261)]({'duration':x,'durationUnit':v,'startOffset':0x0,'name':w});const G=g[an(0x21a,0x223)]({'duration':j-x,'durationUnit':v,'startOffset':A,'name':w});h[an(0x242,0x255)]=j;h[an(0x271,0x28b)]=[F,G];}return f[an(0x295,0x270)]();}async[U(-0x14,0x12)](c,d){if(!this[ao(-0x251,-0x280)])return;this['forceSegmentsMerging']=!![];c=c||this['firstSegment'];d=d||this[ao(-0x281,-0x242)];if(c['startOffset']>d['startOffset']){let f=d;d=c;c=f;}c[ao(-0x2cb,-0x2e1)]=d[ao(-0x29e,-0x294)];function ao(a,b){return U(b,a- -0x277);}const e=await this['getProject']()[ao(-0x24f,-0x26b)]();this[ao(-0x29d,-0x278)]=![];return e;}[U(-0x61,-0x19)](c,d){function ap(a,b){return U(b,a-0xb9);}if(c==='segments'&&d){const e=[];for(const f of d){if(f instanceof SchedulerProEventSegment){const g=f[ap(0x9c,0x66)]();if(!this[ap(0xca,0xdf)][f[ap(0xa8,0x66)]]||f[ap(0xe0,0x10a)]>this[ap(0xca,0xdc)][f[ap(0xa8,0xe7)]]){Object[ap(0x94,0xc0)](g,f[ap(0xc3,0xc7)][ap(0x87,0x91)]);}e[ap(0x8d,0xc3)](g);this['_segmentGeneration'][f[ap(0xa8,0xc1)]]=f[ap(0xe0,0xf7)];}else{e['push'](f);}}d=e;}super[ap(0xa0,0x98)](c,d);}[U(-0x1a,-0x24)](){const c=this['segments'];if(c){this[aq(0x12e,0x167)]?.[aq(0xe4,0x128)](c);}function aq(a,b){return U(a,b-0x158);}super[aq(0x130,0x134)]();}[U(0x19,0xe)](...c){this['fieldMap'][ar(-0x62,-0x3f)]['_skipSegmentsIsEqual']++;super['endBatch'](...c);function ar(a,b){return U(a,b- -0x43);}this[ar(-0x45,-0x4b)]['segments'][ar(-0x7e,-0x83)]--;}['copy'](c=null,d=null){function as(a,b){return U(b,a- -0x18a);}const e=super[as(-0x196,-0x14e)](c,d);e[as(-0x15a,-0x167)][as(-0x186,-0x15b)]=void 0x0;if(e[as(-0x186,-0x1c2)]){e[as(-0x186,-0x180)]=e[as(-0x186,-0x184)]['map'](f=>Object['assign'](f[as(-0x196,-0x1d5)](),{'event':e}));}return e;}[U(0x15,-0x1d)](){function at(a,b){return U(a,b-0xd3);}const c=super[at(0xb2,0xb6)](),d=this[at(0x62,0x99)](at(0x9e,0xd7)),{persist:e,dataSource:f,complexMapping:g}=d;if(e){let h=_end['getPath'](c,f);if(h){h=h['map'](i=>i[at(0xe2,0xb6)]());_end['setPath'](c,f,h);}}return c;}[U(0x21,-0x5)](...c){function au(a,b){return U(b,a-0x3f6);}const {segments:d}=this;d?.[au(0x3f5,0x415)](e=>e[au(0x3f1,0x40e)](...c));super['unlink'](...c);}}function U(a,b){return _enN(a,b- -0x48d);}b[U(-0x5a,-0x51)]=U(-0x31,-0x13);__decorate([field({'identifierCls':SEDSGDispatcherIdentifier})],b[U(0x49,0x1d)],U(-0x30,-0x17),void 0x0);__decorate([model_field({'type':'array','isEqual':compareSegmentsArray,'convert':segmentsConverter,'_skipSegmentsIsEqual':0x0})],b[U(-0x1,0x1d)],'segments',void 0x0);__decorate([field()],b[U(-0x20,0x1d)],U(-0x25,-0x18),void 0x0);__decorate([field()],b[U(0x2d,0x1d)],'isSegmented',void 0x0);__decorate([write(U(0x30,0x4))],b[U(0xb,0x1d)],'writeSegments',null);__decorate([calculate(U(0x44,0x4))],b[U(0x28,0x1d)],U(0x27,-0x1f),null);__decorate([calculate(U(-0x9,-0x18))],b[U(0x46,0x1d)],U(0x27,0x10),null);return b;}){}export{SEDSGBackwardCycleResolution,SEDSGDispatcherIdentifier,SEDSGForwardCycleResolution,SEDSGGraphDescription,SegmentsVar,SplitEventMixin,compareSegments,compareSegmentsArray,durationByStartDateAndEndDateAndSegmentsFormula,endDateByStartDateAndSegmentsFormula,fillNextPrevious,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};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function l(a,b){return _enb(a- -0x2a5,b);}while(!![]){try{const d=parseInt(l(-0x103,-0xf1))/0x1*(parseInt(l(-0xfc,-0x10c))/0x2)+-parseInt(l(-0xd6,-0xf2))/0x3+-parseInt(l(-0xd9,-0xcc))/0x4+parseInt(l(-0xd4,-0xf2))/0x5*(parseInt(l(-0xf9,-0xf5))/0x6)+-parseInt(l(-0xca,-0xe0))/0x7+-parseInt(l(-0xf5,-0xf7))/0x8*(parseInt(l(-0xdf,-0xc9))/0x9)+parseInt(l(-0xe3,-0x101))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x20d24));function _ena(){const G=['onModelChange','recordsToTrackChanges','applyingSyncResponse','addIdentifier','trackRecordFieldChanges','detachListeners','uniqueValue','setStoreData','commitAsync','writeToGraph','graph','invalidateTemporaryIndices','1582030RhbjHy','isStoreDataField','removalOrder','storeFilteredIdentifier','336762WEQVcw','trackFieldChanges','fieldChangeTrackers','setupStoreFilterListener','isRoot','traverse','257700SctYaF','syncDataOnLoad','repopulateStore','26985pBwyos','call','435ZnwFZV','forEach','project','trackStoreFilter','untrackRecordFieldChanges','set','loadDataAsync','untrackFieldChanges','setProject','getField','125342YvNlVj','joinRecordsToProject','joinProject','delayedCalculationPromise','3XaiaqV','unjoinRecordsFromProject','keys','getGraph','scheduleDelayedCalculation','rootNode','some','84738SuOIGZ','hasIdentifier','delete','8796jTBiDh','removeIdentifier','detachRecordChangeTracker','setupRecordChangeTrackerListener','40SdpHHw','register','$entity','prototype','isCommitting','$filtered'];_ena=function(){return G;};return _ena();}function _enm(a,b){return _enb(b- -0x3c,a);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1a1;let f=c[d];return f;};return _enb(a,b);}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{ChronoPartOfProjectGenericMixin}from'../../ChronoPartOfProjectGenericMixin.js';import{ChronoStoreMixin}from'./ChronoStoreMixin.js';import{AbstractPartOfProjectStoreMixin}from'./AbstractPartOfProjectStoreMixin.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';import{ProposedOrPrevious}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';const uniqueValue=Symbol(_enm(0x169,0x180));class ChronoPartOfProjectStoreMixin extends Mixin([AbstractPartOfProjectStoreMixin,ChronoPartOfProjectGenericMixin,ChronoStoreMixin],a=>{const b=a[n(0x1dc,0x1de)];class c extends a{constructor(){function o(a,b){return n(b- -0x5a,a);}super(...arguments);this[o(0x17a,0x193)]=0x0;}[n(0x1e6,0x1d6)](d){this[p(-0x34,-0x4d)]?.[p(-0x62,-0x52)](this);b[p(-0x7f,-0x63)][p(-0x68,-0x50)](this,d);function p(a,b){return n(b- -0x249,a);}if(this[p(-0x2f,-0x4d)]?.[p(-0x83,-0x7f)]){this[p(-0x5d,-0x4d)][p(-0x78,-0x5f)]();}}[n(0x1da,0x1d1)](d){function q(a,b){return n(a-0x3b8,b);}b[q(0x592,0x5ad)][q(0x5b1,0x5ba)](this,d);!d[q(0x5ab,0x5c8)]&&!this[q(0x5b4,0x5a4)]?.[q(0x5a1,0x58c)]&&this[q(0x5b4,0x5bf)]?.[q(0x587,0x59c)]();}['onModelChange'](d,e,f,g,h,i){function r(a,b){return n(b- -0x200,a);}if(!i&&!(this[r(-0x26,-0xa)]&&this['isLoadingData'])&&Object[r(-0x4a,-0x33)](f)[r(-0x33,-0x2f)](j=>{const k=d['getFieldDefinition'](j);function s(a,b){return r(b,a-0x356);}return!k?.[s(0x342,0x35c)]&&d[s(0x331,0x329)][s(0x359,0x34c)](j);})&&!this[r(-0x22,-0x4)]?.[r(-0x31,-0x1f)]){g=!![];}super[r(-0x29,-0x21)](d,e,f,g,h,i);}async[n(0x200,0x1e1)](d){while(this[t(0x35c,0x347)]['replica']?.[t(0x33d,0x35b)]){await this[t(0x35c,0x375)][t(0x347,0x345)]();}function t(a,b){return n(a-0x160,b);}return super[t(0x360,0x376)](d);}[n(0x205,0x20f)](d,e=![]){let f=0x0;const g=d[u(0x531,0x546)]();const h=j=>{function v(a,b){return u(a- -0x56f,b);}if(!j['isLinked']&&(!g||g!==j[v(-0x23,-0x1b)])){j[v(-0xa,-0x27)](d);j[v(-0x6,0x19)]();f++;}};const i=this[u(0x533,0x52a)];if(i){i[u(0x557,0x564)](h,e,!![]);}else{this[u(0x55e,0x56a)](h,null,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}function u(a,b){return n(a-0x363,b);}if(this['$filtered']&&!g[u(0x536,0x52c)](this[u(0x541,0x524)])){g[u(0x545,0x52e)](this['$filtered']);}return f;}[n(0x1cc,0x1b5)](d){const e=g=>{g['leaveProject']();function w(a,b){return _enb(a- -0x24,b);}g[w(0x1b5,0x1cb)](d);};const f=this['rootNode'];if(f){f[x(-0x102,-0x106)](g=>{if(g!==f)e(g);},![],!![]);}else{this[x(-0xfd,-0xff)](e,null,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}function x(a,b){return n(b- -0x2fa,a);}if(this[x(-0x11d,-0x11c)]){this[x(-0x112,-0x12c)]()?.['removeIdentifier'](this[x(-0x11a,-0x11c)]);}}['setupRecordChangeTrackerListener'](){const d=this;d[y(0x31,0x3c)]?.();function y(a,b){return n(b- -0x19b,a);}d['detachRecordChangeTracker']=d['ion']({'detachable':!![],'update'({record:e,changes:f}){function z(a,b){return y(b,a-0x1cc);}if(d[z(0x211,0x20e)]['get'](e)){const g=d[z(0x1ff,0x201)]();const h=e[z(0x222,0x225)];if(g&&h){for(let [i,j]of h){if(i in f){j[z(0x219,0x209)](g,uniqueValue);}}}}}});}[n(0x1e3,0x1d3)](d,e){if(!this['detachRecordChangeTracker']){this[A(0x138,0x14f)]();this[A(0x159,0x157)]=new Map();}this[A(0x13c,0x157)][A(0x16b,0x176)](d,!![]);function A(a,b){return n(b- -0x89,a);}return d[A(0x17c,0x167)](e);}[n(0x1fe,0x1fa)](d,e=void 0x0){function B(a,b){return n(b-0x14c,a);}const f=this[B(0x31a,0x32c)];if(f){const g=d?[d]:f[B(0x2fa,0x319)]();for(const h of g){h[B(0x359,0x34d)](e);}if(!d['fieldChangeTrackers']){f[B(0x304,0x320)](d);}}}[n(0x1f2,0x20a)](){this[C(-0x1f5,-0x1fe)](C(-0x1da,-0x1f4));function C(a,b){return n(b- -0x3e2,a);}this['ion']({'name':C(-0x1df,-0x1f4),'filter'(){const d=this['getGraph']();function D(a,b){return C(b,a-0x28);}this['$filtered'][D(-0x1d2,-0x1d9)](d,!![]);}});}*[n(0x1fd,0x1f2)](){function E(a,b){return n(b- -0x358,a);}if(!this[E(-0x198,-0x17a)]){this['setupStoreFilterListener']();const d=this[E(-0x16e,-0x18a)]();this['$filtered']=d[E(-0x18d,-0x176)](CalculatedValueGen['new']({*'calculation'(e){return!(yield ProposedOrPrevious);}}));}yield this[E(-0x164,-0x17a)];}[n(0x202,0x1f1)](d){if(d!==this[F(0x15,0x10)]){const e=this[F(-0x19,-0x31)]();if(this[F(-0x9,0xf)]&&e){e[F(-0x11,0xa)](this[F(-0x9,0x7)]);this[F(-0x9,-0x10)]=null;this[F(-0x3,0x0)](F(0x7,0x6));}}function F(a,b){return n(a- -0x1e7,b);}return super['setProject'](d);}}function n(a,b){return _enm(b,a-0x65);}return c;}){}export{ChronoPartOfProjectStoreMixin};
1
+ (function(a,b){function l(a,b){return _enb(a- -0x271,b);}const c=a();while(!![]){try{const d=parseInt(l(-0x5f,-0x4c))/0x1+-parseInt(l(-0x69,-0x6e))/0x2+-parseInt(l(-0x5d,-0x42))/0x3*(-parseInt(l(-0x94,-0x75))/0x4)+-parseInt(l(-0x79,-0x59))/0x5*(parseInt(l(-0x93,-0x84))/0x6)+parseInt(l(-0x8f,-0x93))/0x7*(parseInt(l(-0x64,-0x67))/0x8)+-parseInt(l(-0x86,-0x8f))/0x9*(parseInt(l(-0x7c,-0x86))/0xa)+parseInt(l(-0x5e,-0x49))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x711a6));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{ChronoPartOfProjectGenericMixin}from'../../ChronoPartOfProjectGenericMixin.js';import{ChronoStoreMixin}from'./ChronoStoreMixin.js';import{AbstractPartOfProjectStoreMixin}from'./AbstractPartOfProjectStoreMixin.js';import{CalculatedValueGen}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Identifier.js';function _enm(a,b){return _enb(b-0x180,a);}function _ena(){const G=['addIdentifier','unjoinRecordsFromProject','setProject','scheduleDelayedCalculation','isCommitting','writeToGraph','isRoot','isLinked','fieldChangeTrackers','new','isChainedFromProject','some','195956xLsQPg','trackStoreFilter','graph','untrackRecordFieldChanges','$filtered','2360aKzPWj','detachRecordChangeTracker','rootNode','storeFilteredIdentifier','replica','831624XqoFdZ','2408285YAOFNe','1745400HROKbZ','setupRecordChangeTrackerListener','forEach','getField','removalOrder','applyingSyncResponse','project','$entity','trackRecordFieldChanges','4RjQyOo','24TBJJRD','getGraph','loadDataAsync','prototype','7189Egbeat','setStoreData','onModelChange','register','getFieldDefinition','uniqueValue','repopulateStore','keys','isLoadingData','522oHTTcN','setupStoreFilterListener','isStoreDataField','ion','commitAsync','recordsToTrackChanges','untrackFieldChanges','leaveProject','get','syncDataOnLoad','118860ovoAfD','call','removeIdentifier','855860GYvXsn','detachListeners','traverse','delayedCalculationPromise'];_ena=function(){return G;};return _ena();}import{ProposedOrPrevious}from'@bryntum/engine-thin/lib/ChronoGraph/chrono/Effect.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1d5;let f=c[d];return f;};return _enb(a,b);}const uniqueValue=Symbol(_enm(0x34f,0x367));class ChronoPartOfProjectStoreMixin extends Mixin([AbstractPartOfProjectStoreMixin,ChronoPartOfProjectGenericMixin,ChronoStoreMixin],a=>{const b=a[n(0x381,0x366)];class c extends a{constructor(){function o(a,b){return n(b-0x1c1,a);}super(...arguments);this[o(0x536,0x539)]=0x0;}[n(0x383,0x385)](d){function p(a,b){return n(b-0x1f2,a);}this['project']?.[p(0x58c,0x57a)](this);b[p(0x57e,0x575)]['call'](this,d);if(this[p(0x552,0x56c)]?.[p(0x572,0x58d)]){this[p(0x57b,0x56c)]['invalidateTemporaryIndices']();}}['register'](d){b[q(0x264,0x281)][q(0x275,0x281)](this,d);function q(a,b){return n(a- -0x121,b);}!d[q(0x281,0x276)]&&!this[q(0x259,0x277)]?.[q(0x289,0x27a)]&&this[q(0x259,0x242)]?.[q(0x27e,0x29d)]();}[n(0x384,0x37f)](d,e,f,g,h,i){function r(a,b){return n(a-0xac,b);}if(!i&&!(this[r(0x440,0x460)]&&this[r(0x436,0x435)])&&Object[r(0x435,0x443)](f)[r(0x453,0x46e)](j=>{const k=d[s(-0x80,-0x7f)](j);function s(a,b){return r(b- -0x4b1,a);}return!k?.[s(-0x93,-0x78)]&&d[s(-0xa3,-0x8a)][s(-0x9e,-0x8e)](j);})&&!this[r(0x426,0x412)]?.[r(0x425,0x407)]){g=!![];}super[r(0x430,0x43d)](d,e,f,g,h,i);}async[n(0x380,0x380)](d){while(this['project'][t(0x430,0x430)]?.[t(0x41f,0x42d)]){await this['project'][t(0x40e,0x40d)]();}function t(a,b){return n(a-0x7f,b);}return super[t(0x3ff,0x3e4)](d);}['joinRecordsToProject'](d,e=![]){if(this[u(0x453,0x469)]){return 0x0;}let f=0x0;const g=d[u(0x459,0x442)]();function u(a,b){return n(b-0xc3,a);}const h=j=>{function v(a,b){return u(a,b- -0x610);}if(!j[v(-0x1a6,-0x1aa)]&&(!g||g!==j[v(-0x1bf,-0x1a3)])){j[v(-0x1cc,-0x1af)](d);j['joinProject']();f++;}};const i=this['rootNode'];if(i){i[u(0x43e,0x45d)](h,e,!![]);}else{this[u(0x434,0x439)](h,null,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}if(this[u(0x475,0x46f)]&&!g['hasIdentifier'](this[u(0x48f,0x46f)])){g[u(0x450,0x45f)](this['$filtered']);}return f;}[n(0x39d,0x399)](d){if(this[w(0x321,0x33b)]){return;}function w(a,b){return n(b- -0x6b,a);}const e=g=>{function x(a,b){return w(b,a-0x24);}g[x(0x34b,0x338)]();g[x(0x357,0x340)](d);};const f=this[w(0x342,0x344)];if(f){f[w(0x313,0x32f)](g=>{if(g!==f)e(g);},![],!![]);}else{this[w(0x2f6,0x30b)](e,null,{'includeFilteredOutRecords':!![],'includeCollapsedGroupRecords':!![]});}if(this[w(0x32a,0x341)]){this[w(0x322,0x314)]()?.['removeIdentifier'](this[w(0x339,0x341)]);}}[n(0x375,0x37d)](){function y(a,b){return n(b- -0x578,a);}const d=this;d['detachRecordChangeTracker']?.();d[y(-0x1bb,-0x1ca)]=d[y(-0x1e9,-0x1ea)]({'detachable':!![],'update'({record:e,changes:f}){function z(a,b){return y(b,a-0x516);}if(d[z(0x32e,0x347)][z(0x331,0x34f)](e)){const g=d[z(0x31d,0x30c)]();const h=e[z(0x342,0x33b)];if(g&&h){for(let [i,j]of h){if(i in f){j[z(0x33f,0x333)](g,uniqueValue);}}}}}});}[n(0x37c,0x394)](d,e){if(!this['detachRecordChangeTracker']){this['setupRecordChangeTrackerListener']();this[A(0x34f,0x330)]=new Map();}this[A(0x34f,0x35c)]['set'](d,!![]);function A(a,b){return n(a- -0x41,b);}return d['trackFieldChanges'](e);}[n(0x3ab,0x393)](d,e=void 0x0){function B(a,b){return n(a- -0x46c,b);}const f=this[B(-0xdc,-0xf7)];if(f){const g=d?[d]:f['keys']();for(const h of g){h[B(-0xdb,-0xc9)](e);}if(!d[B(-0xc8,-0xc1)]){f['delete'](d);}}}[n(0x38c,0x36f)](){function C(a,b){return n(a- -0x3e8,b);}this['detachListeners'](C(-0x38,-0x55));this['ion']({'name':C(-0x38,-0x26),'filter'(){function D(a,b){return C(a-0x1cc,b);}const d=this['getGraph']();this[D(0x190,0x17f)]['writeToGraph'](d,!![]);}});}*[n(0x3a9,0x3b7)](){if(!this[E(0x11b,0xfc)]){this[E(0xf3,0xdc)]();const d=this[E(0xc9,0xcf)]();this[E(0xf9,0xfc)]=d[E(0xef,0xec)](CalculatedValueGen[E(0x106,0xf5)]({*'calculation'(e){return!(yield ProposedOrPrevious);}}));}function E(a,b){return n(b- -0x2b0,a);}yield this[E(0x106,0xfc)];}['setProject'](d){function F(a,b){return n(a-0xcc,b);}if(d!==this['project']){const e=this['getGraph']();if(this[F(0x478,0x481)]&&e){e[F(0x463,0x44f)](this[F(0x478,0x463)]);this[F(0x478,0x495)]=null;this[F(0x465,0x45d)](F(0x47c,0x45f));}}return super[F(0x46a,0x478)](d);}}function n(a,b){return _enm(b,a-0x20);}return c;}){}export{ChronoPartOfProjectStoreMixin};
@@ -1 +1 @@
1
- function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xac;let f=c[d];return f;};return _enb(a,b);}(function(a,b){function h(a,b){return _enb(b-0x3cc,a);}const c=a();while(!![]){try{const d=parseInt(h(0x48a,0x48c))/0x1*(-parseInt(h(0x480,0x482))/0x2)+parseInt(h(0x48b,0x489))/0x3+-parseInt(h(0x48a,0x486))/0x4*(-parseInt(h(0x480,0x483))/0x5)+parseInt(h(0x482,0x47f))/0x6*(-parseInt(h(0x47b,0x480))/0x7)+parseInt(h(0x480,0x487))/0x8+parseInt(h(0x485,0x488))/0x9+-parseInt(h(0x479,0x47e))/0xa*(parseInt(h(0x488,0x481))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x2242b));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';function _ena(){const o=['369156zCgVHJ','joinRecordsToProject','setProject','26443SwAtcG','rootNode','unjoinRecordsFromProject','prototype','call','leaveProject','forEach','30OgLZkc','978uZVFMO','8757oBYXnA','1907499SUyEcQ','2GabukW','5JTBQca','joinProject','traverse','956092drDvGq','2217504AdWZAT','2264859HUGnEN'];_ena=function(){return o;};return _ena();}import{CorePartOfProjectGenericMixin}from'../../CorePartOfProjectGenericMixin.js';import _enc from'@bryntum/core-thin/lib/data/Store.js';import{AbstractPartOfProjectStoreMixin}from'./AbstractPartOfProjectStoreMixin.js';class CorePartOfProjectStoreMixin extends Mixin([AbstractPartOfProjectStoreMixin,CorePartOfProjectGenericMixin,_enc],a=>{function i(a,b){return _enb(a-0x262,b);}const b=a[i(0x310,0x309)];class c extends a{[i(0x321,0x319)](d){function j(a,b){return i(a- -0x23c,b);}const e=b[j(0xe5,0xe9)][j(0xd5,0xda)](this,d);if(d)this[j(0xde,0xda)](d);return e;}[i(0x31a,0x316)](d){}['onCommitAsync'](){}[i(0x320,0x319)](d){const e=f=>{function k(a,b){return _enb(a- -0x240,b);}f[k(-0x181,-0x185)](d);f[k(-0x188,-0x188)]();};function l(a,b){return i(b- -0x68,a);}if(this[l(0x2a2,0x2a6)]){this[l(0x2a5,0x2a6)]['traverse'](e);}else{this[l(0x2a5,0x2ab)](e);}}[i(0x30f,0x304)](d){function n(a,b){return i(a- -0x538,b);}const e=g=>{g[m(-0x15c,-0x15c)]();function m(a,b){return _enb(a- -0x20c,b);}g[m(-0x14d,-0x14d)](d);};const f=this[n(-0x22a,-0x230)];if(f){f[n(-0x21d,-0x219)](g=>{if(g!==f)e(g);});}else{this[n(-0x225,-0x21f)](e);}}}return c;}){}export{CorePartOfProjectStoreMixin};
1
+ function _ena(){const o=['call','traverse','isChainedFromProject','joinProject','303450wCsOXr','onCommitAsync','460896mkoEmC','leaveProject','rootNode','1152474dyldmD','prototype','61033mRPPDu','forEach','2152032FsCJJw','416zMRnZn','2003125ESXWrA','1931380psxLon'];_ena=function(){return o;};return _ena();}(function(a,b){const c=a();function h(a,b){return _enb(b-0x344,a);}while(!![]){try{const d=-parseInt(h(0x456,0x44f))/0x1+parseInt(h(0x44a,0x44d))/0x2+-parseInt(h(0x450,0x452))/0x3+parseInt(h(0x453,0x459))/0x4+parseInt(h(0x45d,0x458))/0x5+-parseInt(h(0x458,0x456))/0x6+parseInt(h(0x44f,0x454))/0x7*(parseInt(h(0x451,0x457))/0x8);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x458b9));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{CorePartOfProjectGenericMixin}from'../../CorePartOfProjectGenericMixin.js';import _enc from'@bryntum/core-thin/lib/data/Store.js';import{AbstractPartOfProjectStoreMixin}from'./AbstractPartOfProjectStoreMixin.js';class CorePartOfProjectStoreMixin extends Mixin([AbstractPartOfProjectStoreMixin,CorePartOfProjectGenericMixin,_enc],a=>{const b=a[i(0x36,0x39)];function i(a,b){return _enb(a- -0xd9,b);}class c extends a{['setProject'](d){const e=b['setProject'][j(0x351,0x34d)](this,d);if(d)this[j(0x354,0x35c)](d);function j(a,b){return i(a-0x314,b);}return e;}[i(0x40,0x47)](d){}[i(0x31,0x39)](){}['joinRecordsToProject'](d){if(this[k(-0x1f8,-0x1f2)]){return;}const e=f=>{f['setProject'](d);function l(a,b){return k(a,b-0x252);}f[l(0x69,0x61)]();};function k(a,b){return i(b- -0x231,a);}if(this[k(-0x1f6,-0x1fd)]){this[k(-0x200,-0x1fd)]['traverse'](e);}else{this[k(-0x1f2,-0x1f9)](e);}}['unjoinRecordsFromProject'](d){function m(a,b){return i(b- -0x77,a);}if(this[m(-0x38,-0x38)]){return;}const e=g=>{function n(a,b){return m(a,b-0x402);}g[n(0x3b8,0x3be)]();g['setProject'](d);};const f=this[m(-0x44,-0x43)];if(f){f[m(-0x34,-0x39)](g=>{if(g!==f)e(g);});}else{this[m(-0x47,-0x3f)](e);}}}return c;}){}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x109;let f=c[d];return f;};return _enb(a,b);}export{CorePartOfProjectStoreMixin};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryntum/engine-thin-trial",
3
- "version": "7.2.3",
3
+ "version": "7.3.0",
4
4
  "description": "Bryntum Engine JavaScript thin trial component package",
5
5
  "keywords": [
6
6
  "bryntum",