@bryntum/engine-thin-trial 7.2.2 → 7.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(a,b){function l(a,b){return _enb(b-0x2d8,a);}const c=a();while(!![]){try{const d=parseInt(l(0x3c9,0x3c4))/0x1+parseInt(l(0x3c4,0x3b5))/0x2+-parseInt(l(0x3b3,0x3ba))/0x3*(parseInt(l(0x3aa,0x3b3))/0x4)+-parseInt(l(0x3c0,0x3b9))/0x5+-parseInt(l(0x3c3,0x3b6))/0x6+parseInt(l(0x3b6,0x3c1))/0x7+-parseInt(l(0x3c8,0x3bd))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xeb1f4));var __decorate=function(a,b,e,f){var g=arguments[m(-0x1a8,-0x1a7)],h=g<0x3?b:f===null?f=Object[m(-0x1a5,-0x1ae)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(-0x1ac,-0x1a5)]===m(-0x1b0,-0x1bf))h=Reflect[m(-0x1a9,-0x1a5)](a,b,e,f);else for(var k=a['length']-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function m(a,b){return _enb(b- -0x295,a);}return g>0x3&&h&&Object[m(-0x19f,-0x1a8)](b,e,h),h;};import{Base}from'../class/Base.js';import{prototypeValue}from'../util/Helpers.js';const BreakCurrentStackExecution=Symbol(_enn(0xaa,0xb1));class Effect extends Base{}__decorate([prototypeValue(!![])],Effect[_enn(0xb4,0xb7)],_enn(0xca,0xbd),void 0x0);__decorate([prototypeValue(!![])],Effect[_enn(0xc0,0xb7)],'pure',void 0x0);const ProposedOrPreviousSymbol=Symbol(_enn(0xc8,0xc2));const ProposedOrPrevious=Effect[_enn(0xc9,0xbf)]({'handler':ProposedOrPreviousSymbol});const RejectSymbol=Symbol('RejectSymbol');class RejectEffect extends Effect{constructor(){function o(a,b){return _enn(a,b-0x234);}super(...arguments);this[o(0x2e5,0x2df)]=RejectSymbol;}}__decorate([prototypeValue(![])],RejectEffect[_enn(0xba,0xb7)],_enn(0xb6,0xac),void 0x0);const Reject=a=>RejectEffect[_enn(0xb8,0xbf)]({'reason':a});const TransactionSymbol=Symbol(_enn(0xad,0xaf));const GetTransaction=Effect[_enn(0xc9,0xbf)]({'handler':TransactionSymbol});const OwnQuarkSymbol=Symbol('OwnQuarkSymbol');const OwnQuark=Effect[_enn(0xb0,0xbf)]({'handler':OwnQuarkSymbol});const OwnIdentifierSymbol=Symbol('OwnIdentifierSymbol');const OwnIdentifier=Effect[_enn(0xbc,0xbf)]({'handler':OwnIdentifierSymbol});const WriteSymbol=Symbol('WriteSymbol');class WriteEffect extends Effect{constructor(){function p(a,b){return _enn(a,b-0x147);}super(...arguments);this[p(0x1f3,0x1f2)]=WriteSymbol;}}__decorate([prototypeValue(![])],WriteEffect[_enn(0xb7,0xb7)],_enn(0x9d,0xac),void 0x0);const Write=(a,b,...c)=>WriteEffect['new']({'identifier':a,'proposedArgs':[b,...c]});const WriteSeveralSymbol=Symbol(_enn(0xc4,0xba));class WriteSeveralEffect extends Effect{constructor(){super(...arguments);function q(a,b){return _enn(b,a-0x15b);}this[q(0x206,0x1f9)]=WriteSeveralSymbol;}}__decorate([prototypeValue(![])],WriteSeveralEffect[_enn(0xb9,0xb7)],_enn(0xaa,0xac),void 0x0);function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xd4;let f=c[d];return f;};return _enb(a,b);}const WriteSeveral=a=>WriteSeveralEffect[_enn(0xb9,0xbf)]({'writes':a});const HasPreviousValueSymbol=Symbol(_enn(0xc5,0xc6));class HasPreviousValueEffect extends Effect{constructor(){super(...arguments);this['handler']=HasPreviousValueSymbol;}}const HasPreviousValue=a=>HasPreviousValueEffect['new']({'identifier':a});const PreviousValueOfSymbol=Symbol(_enn(0xb1,0xb0));class PreviousValueOfEffect extends Effect{constructor(){function r(a,b){return _enn(a,b- -0x1bb);}super(...arguments);this[r(-0x106,-0x110)]=PreviousValueOfSymbol;}}const PreviousValueOf=a=>PreviousValueOfEffect[_enn(0xb4,0xbf)]({'identifier':a});function _ena(){const z=['ProposedArgumentsOfSymbol','4060824SjhxVK','sync','getOwnPropertyDescriptor','new','2948393sGbtqr','HasProposedValueSymbol','ProposedOrPreviousSymbol','798172VRtmmH','defineProperty','length','HasPreviousValueSymbol','decorate','UnsafePreviousValueOfSymbol','handler','pure','function','UnsafeProposedOrPreviousValueOfSymbol','TransactionSymbol','PreviousValueOfSymbol','BreakCurrentStackExecution','4076mjhkUK','HasProposedNotPreviousValueSymbol','3498430udXcpw','2017080dMtztS','ProposedOrPreviousValueOfSymbol','prototype','5773050AwlGdG','21EYfxcC','WriteSeveralSymbol'];_ena=function(){return z;};return _ena();}const ProposedValueOfSymbol=Symbol('ProposedValueOfSymbol');class ProposedValueOfEffect extends Effect{constructor(){function s(a,b){return _enn(a,b-0x1c5);}super(...arguments);this[s(0x26f,0x270)]=ProposedValueOfSymbol;}}const ProposedValueOf=a=>ProposedValueOfEffect[_enn(0xb7,0xbf)]({'identifier':a});const HasProposedValueSymbol=Symbol(_enn(0xc9,0xc1));class HasProposedValueEffect extends Effect{constructor(){super(...arguments);function t(a,b){return _enn(b,a-0x92);}this[t(0x13d,0x12f)]=HasProposedValueSymbol;}}function _enn(a,b){return _enb(b- -0x29,a);}const HasProposedValue=a=>HasProposedValueEffect[_enn(0xb0,0xbf)]({'identifier':a});const HasProposedNotPreviousValueSymbol=Symbol(_enn(0xae,0xb3));class HasProposedNotPreviousValueEffect extends Effect{constructor(){function u(a,b){return _enn(a,b-0x3d8);}super(...arguments);this[u(0x47c,0x483)]=HasProposedNotPreviousValueSymbol;}}const HasProposedNotPreviousValue=a=>HasProposedNotPreviousValueEffect[_enn(0xb9,0xbf)]({'identifier':a});const ProposedOrPreviousValueOfSymbol=Symbol(_enn(0xbe,0xb6));class ProposedOrPreviousValueOfEffect extends Effect{constructor(){super(...arguments);function v(a,b){return _enn(b,a-0x370);}this[v(0x41b,0x42a)]=ProposedOrPreviousValueOfSymbol;}}const ProposedOrPreviousValueOf=a=>ProposedOrPreviousValueOfEffect[_enn(0xc9,0xbf)]({'identifier':a});const ProposedArgumentsOfSymbol=Symbol(_enn(0xbf,0xbb));class ProposedArgumentsOfEffect extends Effect{constructor(){super(...arguments);function w(a,b){return _enn(b,a-0xf9);}this[w(0x1a4,0x1ac)]=ProposedArgumentsOfSymbol;}}const ProposedArgumentsOf=a=>ProposedArgumentsOfEffect['new']({'identifier':a});const UnsafeProposedOrPreviousValueOfSymbol=Symbol(_enn(0xbb,0xae));class UnsafeProposedOrPreviousValueOfEffect extends Effect{constructor(){super(...arguments);function x(a,b){return _enn(a,b- -0x3d);}this[x(0x6b,0x6e)]=UnsafeProposedOrPreviousValueOfSymbol;}}const UnsafeProposedOrPreviousValueOf=a=>UnsafeProposedOrPreviousValueOfEffect[_enn(0xcb,0xbf)]({'identifier':a});const UnsafePreviousValueOfSymbol=Symbol(_enn(0xd6,0xc8));class UnsafePreviousValueOfEffect extends Effect{constructor(){function y(a,b){return _enn(a,b-0x146);}super(...arguments);this[y(0x1f3,0x1f1)]=UnsafePreviousValueOfSymbol;}}const UnsafePreviousValueOf=a=>UnsafePreviousValueOfEffect[_enn(0xc0,0xbf)]({'identifier':a});export{BreakCurrentStackExecution,Effect,GetTransaction,HasPreviousValue,HasPreviousValueEffect,HasPreviousValueSymbol,HasProposedNotPreviousValue,HasProposedNotPreviousValueEffect,HasProposedNotPreviousValueSymbol,HasProposedValue,HasProposedValueEffect,HasProposedValueSymbol,OwnIdentifier,OwnIdentifierSymbol,OwnQuark,OwnQuarkSymbol,PreviousValueOf,PreviousValueOfEffect,PreviousValueOfSymbol,ProposedArgumentsOf,ProposedArgumentsOfEffect,ProposedArgumentsOfSymbol,ProposedOrPrevious,ProposedOrPreviousSymbol,ProposedOrPreviousValueOf,ProposedOrPreviousValueOfEffect,ProposedOrPreviousValueOfSymbol,ProposedValueOf,ProposedValueOfEffect,ProposedValueOfSymbol,Reject,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOf,UnsafePreviousValueOfEffect,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOf,UnsafeProposedOrPreviousValueOfEffect,UnsafeProposedOrPreviousValueOfSymbol,Write,WriteEffect,WriteSeveral,WriteSeveralEffect,WriteSeveralSymbol,WriteSymbol};
1
+ (function(a,b){const c=a();function l(a,b){return _enb(a-0x2e2,b);}while(!![]){try{const d=parseInt(l(0x40b,0x3fd))/0x1+parseInt(l(0x414,0x420))/0x2+parseInt(l(0x422,0x42e))/0x3*(parseInt(l(0x415,0x408))/0x4)+-parseInt(l(0x417,0x422))/0x5*(parseInt(l(0x40a,0x3fd))/0x6)+-parseInt(l(0x425,0x420))/0x7+-parseInt(l(0x41c,0x412))/0x8+-parseInt(l(0x40e,0x41b))/0x9*(-parseInt(l(0x41e,0x422))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x96a65));var __decorate=function(a,b,e,f){var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(0x47b,0x46e)](b,e):f,j;function m(a,b){return _enb(b-0x338,a);}if(typeof Reflect===m(0x479,0x477)&&typeof Reflect[m(0x473,0x468)]===m(0x47d,0x47d))h=Reflect['decorate'](a,b,e,f);else for(var k=a[m(0x473,0x467)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(0x468,0x465)](b,e,h),h;};import{Base}from'../class/Base.js';import{prototypeValue}from'../util/Helpers.js';const BreakCurrentStackExecution=Symbol(_enn(0x431,0x422));class Effect extends Base{}__decorate([prototypeValue(!![])],Effect['prototype'],'sync',void 0x0);__decorate([prototypeValue(!![])],Effect[_enn(0x42f,0x42b)],_enn(0x43d,0x438),void 0x0);const ProposedOrPreviousSymbol=Symbol(_enn(0x42e,0x43a));const ProposedOrPrevious=Effect[_enn(0x433,0x42c)]({'handler':ProposedOrPreviousSymbol});const RejectSymbol=Symbol('RejectSymbol');class RejectEffect extends Effect{constructor(){super(...arguments);this['handler']=RejectSymbol;}}__decorate([prototypeValue(![])],RejectEffect[_enn(0x427,0x42b)],_enn(0x444,0x438),void 0x0);const Reject=a=>RejectEffect[_enn(0x430,0x42c)]({'reason':a});const TransactionSymbol=Symbol(_enn(0x427,0x432));const GetTransaction=Effect[_enn(0x424,0x42c)]({'handler':TransactionSymbol});function _enn(a,b){return _enb(b-0x2f4,a);}const OwnQuarkSymbol=Symbol(_enn(0x41c,0x41f));const OwnQuark=Effect[_enn(0x437,0x42c)]({'handler':OwnQuarkSymbol});const OwnIdentifierSymbol=Symbol(_enn(0x438,0x435));const OwnIdentifier=Effect['new']({'handler':OwnIdentifierSymbol});const WriteSymbol=Symbol(_enn(0x421,0x41e));class WriteEffect extends Effect{constructor(){function o(a,b){return _enn(b,a- -0x27f);}super(...arguments);this[o(0x1b7,0x1af)]=WriteSymbol;}}__decorate([prototypeValue(![])],WriteEffect[_enn(0x437,0x42b)],_enn(0x43e,0x438),void 0x0);const Write=(a,b,...c)=>WriteEffect[_enn(0x422,0x42c)]({'identifier':a,'proposedArgs':[b,...c]});const WriteSeveralSymbol=Symbol('WriteSeveralSymbol');class WriteSeveralEffect extends Effect{constructor(){super(...arguments);this['handler']=WriteSeveralSymbol;}}__decorate([prototypeValue(![])],WriteSeveralEffect[_enn(0x435,0x42b)],_enn(0x435,0x438),void 0x0);const WriteSeveral=a=>WriteSeveralEffect[_enn(0x420,0x42c)]({'writes':a});const HasPreviousValueSymbol=Symbol('HasPreviousValueSymbol');class HasPreviousValueEffect extends Effect{constructor(){super(...arguments);this['handler']=HasPreviousValueSymbol;}}const HasPreviousValue=a=>HasPreviousValueEffect['new']({'identifier':a});const PreviousValueOfSymbol=Symbol(_enn(0x416,0x425));class PreviousValueOfEffect extends Effect{constructor(){super(...arguments);this['handler']=PreviousValueOfSymbol;}}function _ena(){const x=['ProposedArgumentsOfSymbol','27310unuNMo','ProposedOrPreviousValueOfSymbol','TransactionSymbol','object','573NJRzxo','OwnIdentifierSymbol','handler','7019397kMGCAi','pure','function','ProposedOrPreviousSymbol','HasProposedNotPreviousValueSymbol','4185546VbMzWF','250849OeIslw','WriteSymbol','OwnQuarkSymbol','4248WMUPYj','defineProperty','BreakCurrentStackExecution','length','decorate','PreviousValueOfSymbol','964680zDqksf','15668HRnRxy','UnsafePreviousValueOfSymbol','5Brhtmz','getOwnPropertyDescriptor','prototype','new','UnsafeProposedOrPreviousValueOfSymbol','3623560eizzcD'];_ena=function(){return x;};return _ena();}const PreviousValueOf=a=>PreviousValueOfEffect[_enn(0x420,0x42c)]({'identifier':a});const ProposedValueOfSymbol=Symbol('ProposedValueOfSymbol');class ProposedValueOfEffect extends Effect{constructor(){super(...arguments);function p(a,b){return _enn(a,b- -0xb6);}this[p(0x37c,0x380)]=ProposedValueOfSymbol;}}const ProposedValueOf=a=>ProposedValueOfEffect[_enn(0x425,0x42c)]({'identifier':a});const HasProposedValueSymbol=Symbol('HasProposedValueSymbol');class HasProposedValueEffect extends Effect{constructor(){super(...arguments);function q(a,b){return _enn(a,b- -0x1b0);}this[q(0x283,0x286)]=HasProposedValueSymbol;}}const HasProposedValue=a=>HasProposedValueEffect[_enn(0x420,0x42c)]({'identifier':a});const HasProposedNotPreviousValueSymbol=Symbol(_enn(0x417,0x41b));class HasProposedNotPreviousValueEffect extends Effect{constructor(){function r(a,b){return _enn(a,b- -0x4ba);}super(...arguments);this[r(-0x87,-0x84)]=HasProposedNotPreviousValueSymbol;}}const HasProposedNotPreviousValue=a=>HasProposedNotPreviousValueEffect['new']({'identifier':a});const ProposedOrPreviousValueOfSymbol=Symbol(_enn(0x43e,0x431));class ProposedOrPreviousValueOfEffect extends Effect{constructor(){function s(a,b){return _enn(b,a- -0x40d);}super(...arguments);this[s(0x29,0x2b)]=ProposedOrPreviousValueOfSymbol;}}const ProposedOrPreviousValueOf=a=>ProposedOrPreviousValueOfEffect[_enn(0x43b,0x42c)]({'identifier':a});const ProposedArgumentsOfSymbol=Symbol(_enn(0x43e,0x42f));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x127;let f=c[d];return f;};return _enb(a,b);}class ProposedArgumentsOfEffect extends Effect{constructor(){function t(a,b){return _enn(a,b- -0x3e1);}super(...arguments);this[t(0x55,0x55)]=ProposedArgumentsOfSymbol;}}const ProposedArgumentsOf=a=>ProposedArgumentsOfEffect['new']({'identifier':a});const ProposeCountOfSymbol=Symbol('ProposeCountOfSymbol');class ProposeCountOfEffect extends Effect{constructor(){function u(a,b){return _enn(b,a- -0x441);}super(...arguments);this[u(-0xb,-0x19)]=ProposeCountOfSymbol;}}const ProposeCountOf=a=>ProposeCountOfEffect['new']({'identifier':a});const UnsafeProposedOrPreviousValueOfSymbol=Symbol(_enn(0x433,0x42d));class UnsafeProposedOrPreviousValueOfEffect extends Effect{constructor(){function v(a,b){return _enn(b,a- -0x312);}super(...arguments);this[v(0x124,0x117)]=UnsafeProposedOrPreviousValueOfSymbol;}}const UnsafeProposedOrPreviousValueOf=a=>UnsafeProposedOrPreviousValueOfEffect[_enn(0x42a,0x42c)]({'identifier':a});const UnsafePreviousValueOfSymbol=Symbol(_enn(0x427,0x428));class UnsafePreviousValueOfEffect extends Effect{constructor(){super(...arguments);function w(a,b){return _enn(a,b- -0x4f7);}this[w(-0xc5,-0xc1)]=UnsafePreviousValueOfSymbol;}}const UnsafePreviousValueOf=a=>UnsafePreviousValueOfEffect[_enn(0x434,0x42c)]({'identifier':a});export{BreakCurrentStackExecution,Effect,GetTransaction,HasPreviousValue,HasPreviousValueEffect,HasPreviousValueSymbol,HasProposedNotPreviousValue,HasProposedNotPreviousValueEffect,HasProposedNotPreviousValueSymbol,HasProposedValue,HasProposedValueEffect,HasProposedValueSymbol,OwnIdentifier,OwnIdentifierSymbol,OwnQuark,OwnQuarkSymbol,PreviousValueOf,PreviousValueOfEffect,PreviousValueOfSymbol,ProposeCountOf,ProposeCountOfEffect,ProposeCountOfSymbol,ProposedArgumentsOf,ProposedArgumentsOfEffect,ProposedArgumentsOfSymbol,ProposedOrPrevious,ProposedOrPreviousSymbol,ProposedOrPreviousValueOf,ProposedOrPreviousValueOfEffect,ProposedOrPreviousValueOfSymbol,ProposedValueOf,ProposedValueOfEffect,ProposedValueOfSymbol,Reject,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOf,UnsafePreviousValueOfEffect,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOf,UnsafeProposedOrPreviousValueOfEffect,UnsafeProposedOrPreviousValueOfSymbol,Write,WriteEffect,WriteSeveral,WriteSeveralEffect,WriteSeveralSymbol,WriteSymbol};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function j(a,b){return _enb(b-0x4b,a);}while(!![]){try{const d=-parseInt(j(0x218,0x218))/0x1+parseInt(j(0x25c,0x220))/0x2*(parseInt(j(0x1f9,0x206))/0x3)+-parseInt(j(0x1d3,0x1f7))/0x4*(-parseInt(j(0x240,0x256))/0x5)+parseInt(j(0x238,0x1f5))/0x6+-parseInt(j(0x229,0x20f))/0x7*(-parseInt(j(0x209,0x231))/0x8)+parseInt(j(0x230,0x232))/0x9*(parseInt(j(0x252,0x225))/0xa)+-parseInt(j(0x241,0x22e))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x7efd3));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';import{warn}from'../environment/Debug.js';function _ena(){const aj=['reason','autoCommitMode','cycle','autoCommitTimeoutId','clearRejected','push','propagate','warn','startNewEpoch','addEdge','topRevision','readAsync','78JYqepp','$activeTransaction','onComputationCycle','variable','forEach','hasPendingAutoCommit','baseRevisionTentative','initialize','compactRevisions','2245817dmSEKq','baseRevisionStable','onComputationCycleHandler','observe','isCommitting','delete','finalizeCommit','message','baseRevision','730081ojtvZA','addListener','onWriteDuringCommit','write','eachReachableRevision','isWritingPreviousData','$followingRevision','throw','23792BjPBIQ','previous','level','finally','origin','10tyBBAJ','isJustCleared','length','isInitialCommit','clearBranch','followingRevision','clearProperties','walkContext','dirty','8526793drAxHL','reject','autoCommitHandler','16zOpCIV','1941633VeVwbd','ongoing','startOrigin','getValue','proposedValue','identifier','lazy','autoCommit','trigger','identifierNamed','candidate','scheduleAutoCommit','proposedArguments','activeTransaction','ignore','new','variableNamed','then','constructor','value','referenceCount','cleanup','read','commit','getActiveEntry','from','scope','previousAxis','selfDependent','resolve','listeners','transactionClass','enableProgressNotifications','Adding\x20identifier\x20during\x20commit','sync','addIdentifier','5lNSEJu','log','writtenValue','getProposedValue','continueCalculation','undo','rejectedWith','addCycle','proposedIsPrevious','set','unshift','clear','redo','hasIdentifier','writes','Computation\x20cycle:\x0a','handlers','observeContext','onPropagationProgressNotification','get','reachableCount','unScheduleAutoCommit','_isInitialCommit','readProposedOrPrevious','doCommitAsync','hasValue','Invalid\x20compact\x20operation','historyLimit','markAndSweep','Removing\x20identifier\x20during\x20commit','entries','proposedArgs','Graph\x20cleared','commitAsync','hasProposedValue','readPrevious','1446972dCASFY','name','2470136mhnRid','readPreviousAsync','isShadow'];_ena=function(){return aj;};return _ena();}import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';import{BreakCurrentStackExecution,HasPreviousValueSymbol,HasProposedNotPreviousValueSymbol,HasProposedValueSymbol,OwnIdentifierSymbol,OwnQuarkSymbol,PreviousValueOfSymbol,ProposedArgumentsOfSymbol,ProposedOrPreviousSymbol,ProposedOrPreviousValueOfSymbol,ProposedValueOfSymbol,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOfSymbol,WriteSeveralSymbol,WriteSymbol}from'./Effect.js';import{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSyncC,VariableC}from'./Identifier.js';import{TombStone}from'./Quark.js';import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';const CommitZero={'rejectedWith':null};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x188;let f=c[d];return f;};return _enb(a,b);}function _enl(a,b){return _enb(b- -0x109,a);}class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(b-0x1e3,a);}this[k(0x3b6,0x379)]=[];}[_enl(0x119,0xe6)](a){function m(a,b){return _enl(b,a- -0x181);}for(let b=0x0;b<this['handlers'][m(-0xae,-0xbc)];b++)this[m(-0xf4,-0xd9)][b](a);}}class ComputationCycleError extends Error{}class ChronoGraph extends Base{constructor(){super(...arguments);this['baseRevisionStable']=void 0x0;this[n(0x236,0x23a)]=void 0x0;this[n(0x244,0x245)]=Revision[n(0x2b1,0x26f)]();this[n(0x1fe,0x232)]=void 0x0;this['historyLimit']=0x0;this[n(0x256,0x27e)]=new Map();this[n(0x270,0x24b)]=0x0;this[n(0x200,0x235)]=void 0x0;this[n(0x223,0x241)]=![];this[n(0x296,0x280)]=![];this[n(0x25c,0x261)]=Promise[n(0x254,0x27d)]();this[n(0x21b,0x215)]=!![];this[n(0x20f,0x22b)]=null;this['autoCommit']=![];function n(a,b){return _enl(a,b-0x182);}this[n(0x263,0x229)]=n(0x2a0,0x282);this[n(0x294,0x25e)]=null;this[n(0x263,0x248)]=n(0x28a,0x24d);this[n(0x25e,0x236)]=n(0x276,0x24d);this[n(0x2a8,0x27f)]=Transaction;this[n(0x239,0x254)]=![];this['$followingRevision']=void 0x0;}[_enl(0xde,0xb9)](...a){super[o(0x41c,0x431)](...a);if(!this['topRevision'])this[o(0x46a,0x428)]=this[o(0x420,0x43b)];if(this[o(0x421,0x45d)]){this[o(0x45a,0x454)]=this['autoCommitMode']===o(0x492,0x478)?b=>this['commit'](b):async b=>this[o(0x418,0x416)](b);}function o(a,b){return _enl(a,b-0x378);}this[o(0x443,0x411)]();}[_enl(0xad,0xb7)](){function p(a,b){return _enl(b,a-0x39a);}return this[p(0x443,0x42c)]!==null;}get['dirty'](){return this['activeTransaction']['dirty'];}[_enl(0x82,0x88)](){function q(a,b){return _enl(b,a- -0x218);}this[q(-0x13d,-0x15d)]();this[q(-0x186,-0x168)]();this[q(-0x155,-0x112)][q(-0x120,-0x137)]&&this[q(-0x155,-0x187)][q(-0x120,-0x14c)][q(-0x190,-0x1b1)]();this[q(-0x155,-0x173)][q(-0x14b,-0x16f)]=null;this[q(-0x11c,-0x10e)][q(-0x190,-0x157)]();this[q(-0x168,-0x17e)]=this['baseRevision'];this[q(-0x14e,-0x124)]=void 0x0;this[q(-0x165,-0x152)]=void 0x0;this[q(-0x17f,-0x13c)]();this['isJustCleared']=!![];}[_enl(0xfb,0xd5)](){this[r(0x427,0x3e5)]();this[r(0x3de,0x3de)]();function r(a,b){return _enl(b,a-0x34c);}for(const [a,b]of this[r(0x414,0x3ea)]()){if(b)a['reachableCount']--;a[r(0x43e,0x446)]--;}this[r(0x448,0x430)]['clear']();this['topRevision']=this['baseRevision'];this['$followingRevision']=void 0x0;this[r(0x3ff,0x3c2)]=void 0x0;}*['eachReachableRevision'](){let a=!![];let b=0x0;function s(a,b){return _enl(a,b- -0x28d);}for(const c of this[s(-0x1ef,-0x1dd)][s(-0x176,-0x194)]()){yield[c,a||b<this[s(-0x22b,-0x1f5)]];if(c===this[s(-0x20c,-0x1ca)]){a=![];}else{if(!a)b++;}}}get[_enl(0x9a,0xd4)](){function t(a,b){return _enl(b,a-0x34e);}return this[t(0x3e1,0x3a2)];}set['isInitialCommit'](a){this['_isInitialCommit']=a;}[_enl(0x5a,0x99)](){let a;const b=[];for(const [c,d]of this['eachReachableRevision']()){if(d){c[u(0x2,0x2e)]++;a=c;}else b[u(0x1c,0xe)](c);c[u(0x63,0x5d)]++;}b[u(-0x8,0x1b)](a);function u(a,b){return _enl(b,a- -0x8f);}for(let e=b[u(0x44,0x21)]-0x1;e>=0x1&&b[e][u(0x2,-0x10)]===0x0;e--){this[u(0x2b,-0x2)](b[e-0x1],b[e]);}}[_enl(0xe6,0xba)](a,b){if(b['reachableCount']>0x0||a[v(0xfe,0x11f)]!==b)throw new Error(v(0xc8,0xae));if(b[v(0x123,0x105)]<=0x1){for(const [c,d]of a[v(0x129,0x160)]){if(d[v(0x112,0x137)]()===TombStone){b['scope'][v(0xf1,0x12b)](c);}else{const e=b[v(0x129,0x155)]['get'](c);if(d[v(0x101,0xc9)]===d){if(e){e[v(0xb9,0xf4)]();e[v(0x108,0xf3)]();}}else if(e&&d[v(0x101,0xcd)]===e){d['mergePreviousOrigin'](a[v(0x129,0x13c)]);}else if(c[v(0x115,0x12b)]&&!d[v(0x101,0xc2)]&&e&&e[v(0x101,0xc6)]){d[v(0x111,0xdf)]()[v(0x113,0xd7)]=e[v(0x101,0x101)][v(0x122,0x119)]!==void 0x0?e['origin'][v(0x122,0x11e)]:e[v(0x101,0x13a)][v(0x113,0x105)];}d['previous']=void 0x0;b[v(0x129,0x137)][v(0xb7,0x9e)](c,d);}}copySetInto(a['selfDependent'],b[v(0x12b,0x137)]);a[v(0x129,0x158)]=b['scope'];b[v(0x129,0x117)]=null;}else{a[v(0x129,0xf1)]=new Map(concat(b['scope'],a[v(0x129,0x162)]));a[v(0x12b,0x120)]=new Set(concat(b[v(0x12b,0x165)],a[v(0x12b,0x159)]));b['referenceCount']--;}function v(a,b){return _enl(b,a-0x31);}a[v(0xfe,0xff)]=null;}get[_enl(0xef,0xd6)](){if(this[w(0x494,0x4af)]!==void 0x0)return this[w(0x494,0x469)];const a=Array[w(0x4c1,0x4d4)](this[w(0x47a,0x4ad)][w(0x4c3,0x4ae)]());const b=[];for(let c=a[w(0x49d,0x47e)]-0x1;c>0x0;c--)b[w(0x475,0x488)]([a[c],a[c-0x1]]);function w(a,b){return _enl(b,a-0x3ca);}return this[w(0x494,0x4b1)]=new Map(b);}get[_enl(0xd1,0xeb)](){if(this[x(0x241,0x21b)])return this['$activeTransaction'];function x(a,b){return _enl(b,a-0x18e);}return this[x(0x241,0x26e)]=this[x(0x28b,0x2cb)]['new']({'baseRevision':this[x(0x246,0x27e)]||this[x(0x251,0x215)],'graph':this});}['branch'](a){const b=this[y(0x243,0x22a)];function y(a,b){return _enl(a,b-0x13a);}return b[y(0x1f4,0x227)](Object['assign']({},a,{'baseRevision':this[y(0x1fd,0x1fd)]}));}[_enl(0xe8,0xac)](a){function z(a,b){return _enl(a,b-0x482);}return this[z(0x5a0,0x577)](a);}[_enl(0xba,0xdb)](a){this[A(0x236,0x1fe)]['reject'](RejectEffect['new']({'reason':a}));function A(a,b){return _enl(b,a-0x14b);}this[A(0x22a,0x264)]=Promise[A(0x246,0x213)]();this[A(0x1fe,0x232)]=void 0x0;this['baseRevisionTentative']=void 0x0;if(this[A(0x207,0x234)]){this[A(0x20e,0x1dc)]=this[A(0x207,0x245)];this[A(0x207,0x1d2)]=void 0x0;}}[_enl(0xcb,0xf5)](a){this[B(0x2d2,0x308)]=![];this[B(0x28f,0x2c8)]();this[B(0x2f7,0x2f2)]=this[B(0x30f,0x2f9)];const b=this[B(0x2e3,0x321)];function B(a,b){return _enl(a,b-0x236);}const c=b[B(0x321,0x32b)](a);this['$activeTransaction']=void 0x0;const d=this[B(0x32a,0x2f7)](c);this[B(0x2e0,0x2f2)]=void 0x0;this[B(0x2cb,0x30a)]=![];return d;}async['propagateAsync'](a){function C(a,b){return _enl(b,a-0x3bf);}return this[C(0x45d,0x432)](a);}async['commitAsync'](a){if(this[D(-0x64,-0x65)])return this[D(-0x8,-0x45)];this['isJustCleared']=![];function D(a,b){return _enl(a,b- -0x124);}this[D(-0xa0,-0x65)]=!![];this['baseRevisionStable']=this[D(-0x58,-0x61)];let b;return this['ongoing']=this[D(-0x21,-0x45)][D(-0x69,-0x35)](()=>{function E(a,b){return D(b,a-0xa3);}return this[E(0x14,0xe)](a);})[D(-0x1c,-0x35)](c=>{b=c;return c;})[D(-0x8b,-0x55)](()=>{this['baseRevisionStable']=void 0x0;this[F(-0x19e,-0x1d7)]=void 0x0;this['isInitialCommit']=![];function F(a,b){return D(a,b- -0x16b);}this[F(-0x1a8,-0x1d0)]=![];});}async[_enl(0xb4,0x95)](a){this['unScheduleAutoCommit']();const b=this[G(0x4b6,0x4c7)];const c=await b[G(0x4b6,0x47a)](a);const d=Boolean(b[G(0x443,0x45f)]);const e=this[G(0x4b1,0x494)];if(!d)this[G(0x4a3,0x494)]=b[G(0x4b5,0x4c4)];this[G(0x4b8,0x48f)]=void 0x0;await this['finalizeCommitAsync'](c);if(this[G(0x4d4,0x4ae)])return{'rejectedWith':RejectEffect[G(0x4b3,0x4c9)]({'reason':G(0x449,0x479)})};if(b['rejectedWith']&&!d){this[G(0x49e,0x494)]=e;this['$activeTransaction']=void 0x0;}const f=this[G(0x490,0x49d)](c);function G(a,b){return _enl(a,b-0x3dc);}if(b[G(0x439,0x45f)])b[G(0x49b,0x486)]();if(this[G(0x4df,0x4b5)]&&!b[G(0x46c,0x45f)]){await this[G(0x471,0x471)](a);}return f;}[_enl(0xb0,0xc1)](a){function H(a,b){return _enl(b,a-0x42e);}const {revision:b,entries:c,transaction:d}=a;if(!d['rejectedWith']){if(b['previous']!==this[H(0x4f1,0x4dd)])throw new Error('Invalid\x20revisions\x20chain');for(const [e,f]of this[H(0x4f6,0x4fc)]()){if(f)e['reachableCount']--;e[H(0x520,0x4ec)]--;}this[H(0x4f1,0x4b7)]=this['topRevision']=b;for(const [g,h]of c){h[H(0x521,0x503)]();if(h[H(0x4d3,0x4e6)]()||!h[H(0x4c4,0x4a7)]())continue;const i=this[H(0x52a,0x4fa)][H(0x4be,0x4f3)](g);if(i)i[H(0x514,0x4dd)](h[H(0x50f,0x523)]());}this[H(0x4f8,0x4cd)]=void 0x0;this['markAndSweep']();}else{if(this['baseRevisionStable'])this[H(0x4f1,0x532)]=this['baseRevisionStable'];this['baseRevisionStable']=void 0x0;this[H(0x4e6,0x508)]=void 0x0;}return{'rejectedWith':d['rejectedWith']};}async['finalizeCommitAsync'](a){}*[_enl(0xce,0xbd)](a,b){const c=new ComputationCycleError('Computation\x20cycle:\x0a'+a);function I(a,b){return _enl(b,a- -0x20c);}c[I(-0x164,-0x136)]=a;b[I(-0x188,-0x18a)](a);switch(this[I(-0x158,-0x158)]){case I(-0x120,-0x15a):console[I(-0x109,-0x10e)](c[I(-0x14a,-0x11e)]);const {requestedEntry:d,activeEntry:e}=a;return e[I(-0x18b,-0x15d)](d[I(-0x12a,-0xee)]!==void 0x0?d['proposedValue']:d[I(-0x11b,-0x12e)]);case I(-0x141,-0x183):throw c;case I(-0x131,-0x12d):this['reject'](c);break;case I(-0x15f,-0x16b):warn(c);break;}}['onComputationCycleHandlerSync'](a,b){const c=new ComputationCycleError(J(0x470,0x4af)+a);function J(a,b){return _enl(b,a-0x3e4);}c['cycle']=a;b['addCycle'](a);switch(this[J(0x498,0x4c8)]){case J(0x4d0,0x4c3):console[J(0x4e7,0x4f1)](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[J(0x465,0x43f)](d[J(0x4c6,0x4ca)]!==void 0x0?d[J(0x4c6,0x4d7)]:d[J(0x4d5,0x4d9)]);case J(0x4af,0x49f):throw c;case J(0x4bf,0x4bd):this[J(0x4bf,0x4d4)](c);break;case J(0x491,0x4c1):warn(c);break;}}[_enl(0xfa,0xe9)](){function K(a,b){return _enl(b,a-0x196);}if(this[K(0x23f,0x261)]===null&&!this[K(0x255,0x244)]){this[K(0x23f,0x206)]=setTimeout(this['autoCommitHandler'],0xa);}}[_enl(0x69,0x92)](){function L(a,b){return _enl(b,a-0x213);}if(this[L(0x2bc,0x2c6)]!==null){clearTimeout(this[L(0x2bc,0x2b3)]);this['autoCommitTimeoutId']=null;}}[_enl(0x8a,0xb5)](a){function M(a,b){return _enl(a,b- -0xe4);}const b=VariableC();return this[M(0x55,0x1d)](b,a===void 0x0?null:a);}[_enl(0xcd,0xee)](a,b){const c=VariableC({'name':a});return this['addIdentifier'](c,b===void 0x0?null:b);}[_enl(0xe7,0xe3)](a,b){function N(a,b){return _enl(b,a-0x2b0);}const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});return this[N(0x3b1,0x387)](c);}[_enl(0xed,0xe7)](a,b,c){const d=b[O(-0x197,-0x171)][O(-0x17f,-0x1bf)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function O(a,b){return _enl(a,b- -0x261);}return this['addIdentifier'](d);}[_enl(0x11e,0x101)](a,b,...c){if(this[P(-0x171,-0x185)]){if(this['onWriteDuringCommit']===P(-0x165,-0x151))throw new Error(P(-0x131,-0x167));else if(this['onWriteDuringCommit']==='warn')warn(new Error(P(-0x131,-0x10b)));}this[P(-0x145,-0x182)][P(-0x12f,-0x12f)](a,b,...c);if(this[P(-0x14b,-0x128)])this[P(-0x147,-0x112)]();function P(a,b){return _enl(b,a- -0x230);}return a;}['removeIdentifier'](a){if(this[Q(0x45d,0x496)]){if(this['onWriteDuringCommit']===Q(0x483,0x4a2))throw new Error(Q(0x493,0x471));else if(this['onWriteDuringCommit']===Q(0x459,0x484))warn(new Error('Removinfg\x20identifier\x20during\x20commit'));}function Q(a,b){return _enl(a,b-0x3d7);}this['activeTransaction']['removeIdentifier'](a);this['listeners'][Q(0x46d,0x497)](a);if(this[Q(0x4b6,0x4bc)])this['scheduleAutoCommit']();}[_enl(0xc1,0x8a)](a){function R(a,b){return _enl(a,b- -0x18a);}return this[R(-0xb9,-0x9f)][R(-0x124,-0x100)](a);}[_enl(0xfb,0xc7)](a,b,...c){function S(a,b){return _enl(b,a- -0x1df);}if(this[S(-0x120,-0x157)]){if(this[S(-0x119,-0x158)]===S(-0x114,-0x127))throw new Error('Write\x20during\x20commit');else if(this['onWriteDuringCommit']===S(-0x132,-0x13c))warn(new Error('Write\x20during\x20commit'));}this['activeTransaction'][S(-0x118,-0xd7)](a,b,...c);if(this['autoCommit'])this['scheduleAutoCommit']();}[_enl(0x80,0xa0)](a){function T(a,b){return _enl(a,b-0xeb);}return this[T(0x1ba,0x1d6)][T(0x158,0x18b)](a);}[_enl(0xa9,0xa4)](a){function U(a,b){return _enl(a,b- -0xba);}return this[U(0x4b,0x31)][U(-0x4a,-0x16)](a);}[_enl(0x12e,0xf4)](a){function V(a,b){return _enl(b,a-0xad);}return this[V(0x198,0x17d)][V(0x1a1,0x18c)](a);}[_enl(0xa9,0xb1)](a){function W(a,b){return _enl(b,a- -0xe3);}return this['activeTransaction'][W(-0x32,-0x4e)](a);}[_enl(0x79,0x90)](a){function X(a,b){return _enl(b,a-0x2e1);}return this['activeTransaction'][X(0x371,0x371)](a);}[_enl(0xfa,0xbe)](a,b){const c=this[Y(0x50b,0x4f9)](CalculatedValueGen[Y(0x4f7,0x4d7)]({'lazy':![],'calculation':a}));function Y(a,b){return _enl(b,a-0x40a);}this[Y(0x4cf,0x4e8)](c,b);return c;}[_enl(0x7f,0x8e)](a,b,c){const d=this[Z(0x55e,0x528)](CalculatedValueGen[Z(0x54a,0x50b)]({'lazy':![],'calculation':a,'context':b}));this[Z(0x522,0x53e)](d,c);function Z(a,b){return _enl(b,a-0x45d);}return d;}['addListener'](a,b){let c=this[a0(-0x63,-0x4c)]['get'](a);function a0(a,b){return _enl(a,b- -0x148);}if(!c){c=Listener[a0(-0x1c,-0x5b)]();this[a0(-0x39,-0x4c)]['set'](a,c);}c[a0(-0xd3,-0xbb)][a0(-0x75,-0x9d)](b);}[_enl(0xb7,0x82)](){const a=this[a1(-0x11,-0x18)];function a1(a,b){return _enl(b,a- -0xd4);}const b=a[a1(-0x7,0x13)];if(!b)return![];this[a1(-0x11,-0x1d)]=b;this[a1(-0x21,0x18)]=void 0x0;return!![];}[_enl(0xa0,0x89)](){function a2(a,b){return _enl(a,b-0x5e);}const a=this['baseRevision'];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x120,0xee)](a);this[a2(0x12c,0x121)]=b;this[a2(0xe5,0x111)]=void 0x0;return!![];}[_enl(0x81,0x8f)](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(0x5e,0x90)]();c['usedProposedOrPrevious']=!![];const d=c['getProposedValue'](b);if(d!==void 0x0)return d;if(!c[a3(0x3c,0x67)])return void 0x0;function a3(a,b){return _enl(a,b- -0x66);}const e=c[a3(0x75,0x7d)];if(e[a3(0x8c,0x7e)]){if(c[a3(0x87,0x67)][a3(0x3b,0x30)]())return c[a3(0x75,0x67)][a3(0x49,0x7b)]();if(c[a3(0x69,0x67)][a3(0x49,0x39)]())return c[a3(0x98,0x67)][a3(0x4c,0x1a)](b);return null;}return b['readPrevious'](c[a3(0x69,0x7d)]);}[RejectSymbol](a,b){function a4(a,b){return _enl(b,a-0x171);}this[a4(0x24c,0x278)](a[a4(0x217,0x246)]);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){function a5(a,b){return _enl(a,b-0x38a);}return b[a5(0x4b2,0x480)]();}[OwnIdentifierSymbol](a,b){function a6(a,b){return _enl(a,b-0x141);}const c=b[a6(0x26f,0x237)]();return c[a6(0x262,0x224)];}[WriteSymbol](a,b){function a7(a,b){return _enl(b,a- -0x197);}const c=b['getActiveEntry']();const d=a[a7(-0xb4,-0xd7)][a7(-0xc9,-0xd9)]>c[a7(-0xb4,-0x7e)][a7(-0xc9,-0xc0)];if(!d)b[a7(-0xbf,-0xe5)][a7(-0xe9,-0xd5)]();b[a7(-0xd0,-0x104)](a[a7(-0xb4,-0xf1)],...a[a7(-0xfb,-0x117)]);return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a8(0x57,0x60)]();let d=!![];function a8(a,b){return _enl(b,a- -0x9f);}a[a8(-0x14,-0x19)][a8(0x17,0xa)](e=>{function a9(a,b){return a8(b-0x211,a);}if(e['identifier'][a9(0x1ff,0x240)]<=c[a9(0x284,0x255)]['level']&&d){b[a9(0x272,0x24a)][a9(0x21a,0x220)]();d=![];}b[a9(0x266,0x239)](e[a9(0x250,0x255)],...e[a9(0x22c,0x20e)]);});return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x27c,0x2be)];function aa(a,b){return _enl(b,a-0x199);}b[aa(0x248,0x257)](d,c,EdgeTypePast);const e=b[aa(0x234,0x1f1)][aa(0x229,0x21b)](d);return e?b['readPrevious'](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();const d=a[ab(0xf6,0x108)];b[ab(0xfe,0xd4)](d,c,EdgeTypePast);function ab(a,b){return _enl(a,b-0x25);}return b[ab(0xa3,0xc5)](d);}[ProposedValueOfSymbol](a,b){function ac(a,b){return _enl(a,b-0x31);}const c=b['getActiveEntry']();const d=a[ac(0xed,0x114)];b[ac(0xfe,0xe0)](d,c,EdgeTypePast);const e=b[ac(0x8c,0xcc)][ac(0xac,0xc1)](d);const f=e&&!e[ac(0xb0,0xd6)]()?e[ac(0xf1,0xb1)](b):void 0x0;return f;}[HasProposedValueSymbol](a,b){function ad(a,b){return _enl(a,b- -0x1de);}const c=b[ad(-0xfd,-0xe8)]();const d=a[ad(-0xcb,-0xfb)];b[ad(-0x159,-0x12f)](d,c,EdgeTypePast);const e=b[ad(-0x126,-0x143)]['get'](d);return e?e[ad(-0xfd,-0x13f)]():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[ae(-0x15b,-0x18c)];b[ae(-0x1e4,-0x1c0)](d,c,EdgeTypePast);const e=b['entries']['get'](d);function ae(a,b){return _enl(a,b- -0x26f);}return e?e[ae(-0x1a2,-0x1d0)]()&&e[ae(-0x229,-0x1f0)]!==void 0x0&&!e[ae(-0x210,-0x1ea)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b['getActiveEntry']();function af(a,b){return _enl(b,a-0x24f);}const d=a['identifier'];b[af(0x2fe,0x311)](d,c,EdgeTypePast);return b['readProposedOrPrevious'](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ag(a,b){return _enl(a,b-0x2e0);}return b[ag(0x384,0x374)](a['identifier']);}[UnsafePreviousValueOfSymbol](a,b){function ah(a,b){return _enl(b,a-0x98);}return b[ah(0x138,0x162)](a[ah(0x17b,0x1ac)]);}[ProposedArgumentsOfSymbol](a,b){const c=b[ai(0x107,0x131)]();const d=a[ai(0x132,0x11e)];function ai(a,b){return _enl(a,b-0x3b);}b[ai(0xf4,0xea)](d,c,EdgeTypePast);const e=b[ai(0xcc,0xd6)]['get'](d);return e&&!e[ai(0xca,0xe0)]()?e[ai(0x14e,0x125)]:void 0x0;}}export{ChronoGraph,CommitZero,ComputationCycleError,Listener};
1
+ (function(a,b){const c=a();function j(a,b){return _enb(b-0x2cc,a);}while(!![]){try{const d=-parseInt(j(0x541,0x50b))/0x1+-parseInt(j(0x52a,0x519))/0x2+parseInt(j(0x510,0x510))/0x3+parseInt(j(0x500,0x4ff))/0x4+parseInt(j(0x4cf,0x50c))/0x5*(-parseInt(j(0x4ec,0x4f7))/0x6)+parseInt(j(0x4cc,0x4d7))/0x7+-parseInt(j(0x50b,0x517))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x37409));import{Base}from'../class/Base.js';import{concat}from'../collection/Iterator.js';import{warn}from'../environment/Debug.js';import{copySetInto,isGeneratorFunction}from'../util/Helpers.js';import{BreakCurrentStackExecution,HasPreviousValueSymbol,HasProposedNotPreviousValueSymbol,HasProposedValueSymbol,OwnIdentifierSymbol,OwnQuarkSymbol,PreviousValueOfSymbol,ProposeCountOfSymbol,ProposedArgumentsOfSymbol,ProposedOrPreviousSymbol,ProposedOrPreviousValueOfSymbol,ProposedValueOfSymbol,RejectEffect,RejectSymbol,TransactionSymbol,UnsafePreviousValueOfSymbol,UnsafeProposedOrPreviousValueOfSymbol,WriteSeveralSymbol,WriteSymbol}from'./Effect.js';import{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSyncC,VariableC}from'./Identifier.js';import{TombStone}from'./Quark.js';function _enl(a,b){return _enb(b-0x1c4,a);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1e7;let f=c[d];return f;};return _enb(a,b);}import{Revision}from'./Revision.js';import{EdgeTypePast,Transaction}from'./Transaction.js';function _ena(){const ah=['warn','onComputationCycleHandler','topRevision','finalizeCommit','getValue','readPreviousAsync','identifierNamed','then','clearRejected','readProposedOrPrevious','entries','observeContext','reject','doCommitAsync','get','autoCommitTimeoutId','Invalid\x20revisions\x20chain','isCommitting','variableNamed','hasValue','delete','value','origin','throw','write','scope','getProposedValue','usedProposedOrPrevious','clear','markAndSweep','lazy','unScheduleAutoCommit','handlers','transactionClass','onWriteDuringCommit','proposedIsPrevious','Write\x20during\x20commit','dirty','isInitialCommit','hasProposedValue','branch','candidate','Removing\x20identifier\x20during\x20commit','2127377AdjLZO','addCycle','addIdentifier','unshift','_isInitialCommit','proposedArgs','proposedArguments','assign','from','variable','clearProperties','$activeTransaction','walkContext','commitAsync','sync','$followingRevision','proposeCount','mergePreviousOrigin','isJustCleared','baseRevisionStable','selfDependent','isShadow','observe','cycle','initialize','read','scheduleAutoCommit','baseRevisionTentative','removeIdentifier','previous','ongoing','cleanup','102402njFbMw','constructor','commit','ignore','rejectedWith','previousAxis','Invalid\x20compact\x20operation','length','1694256aTnnds','finalizeCommitAsync','eachReachableRevision','baseRevision','readAsync','undo','reachableCount','autoCommit','new','readPrevious','activeTransaction','hasIdentifier','214937pYNnTH','90dxPhmp','autoCommitHandler','referenceCount','writtenValue','627033qCOrcj','Computation\x20cycle:\x0a','startOrigin','historyLimit','onPropagationProgressNotification','hasPendingAutoCommit','redo','1439936eHXmJI','push','16076NxhvTF','trigger','getActiveEntry','level','addEdge','addListener','listeners','resolve','proposedValue','autoCommitMode','onComputationCycleHandlerSync','propagate','writes','identifier','set','Adding\x20identifier\x20during\x20commit','clearBranch','onComputationCycle','name','continueCalculation','log'];_ena=function(){return ah;};return _ena();}const CommitZero={'rejectedWith':null};class Listener extends Base{constructor(){super(...arguments);function k(a,b){return _enb(a-0xd2,b);}this[k(0x2d2,0x2a8)]=[];}[_enl(0x441,0x412)](a){function m(a,b){return _enl(b,a- -0x273);}for(let b=0x0;b<this[m(0x151,0x183)][m(0x183,0x1b8)];b++)this[m(0x151,0x161)][b](a);}}class ComputationCycleError extends Error{}class ChronoGraph extends Base{constructor(){super(...arguments);this[n(-0x16e,-0x185)]=void 0x0;this[n(-0x1bc,-0x17d)]=void 0x0;this['baseRevision']=Revision[n(-0x19f,-0x168)]();this['topRevision']=void 0x0;this[n(-0x120,-0x15c)]=0x0;this[n(-0x18b,-0x150)]=new Map();this['isWritingPreviousData']=0x0;this['$activeTransaction']=void 0x0;this['isCommitting']=![];this['enableProgressNotifications']=![];this['ongoing']=Promise[n(-0x12d,-0x14f)]();this['_isInitialCommit']=!![];this[n(-0x1ce,-0x1b4)]=null;this['autoCommit']=![];this['autoCommitMode']=n(-0x157,-0x18a);function n(a,b){return _enl(a,b- -0x567);}this[n(-0x185,-0x162)]=null;this[n(-0x178,-0x1a1)]='throw';this[n(-0x13c,-0x145)]=n(-0x1a1,-0x1ac);this['transactionClass']=Transaction;this[n(-0x182,-0x186)]=![];this[n(-0x15c,-0x189)]=void 0x0;}[_enl(0x3b9,0x3e7)](...a){super[o(0x2,0xf)](...a);if(!this[o(0x43,0x84)])this[o(0x43,0x3b)]=this[o(0x15,0x1a)];if(this[o(0x19,0x7)]){this[o(0x20,0x22)]=this[o(0x35,0x4c)]===o(-0x8,-0x2e)?b=>this[o(0xc,0x25)](b):async b=>this[o(-0x9,-0x2f)](b);}function o(a,b){return _enl(b,a- -0x3e5);}this['markAndSweep']();}[_enl(0x3e0,0x40d)](){return this['autoCommitTimeoutId']!==null;}get['dirty'](){function p(a,b){return _enl(b,a-0x1f2);}return this[p(0x5f3,0x5cf)]['dirty'];}[_enl(0x3a1,0x3c0)](){this[q(0x547,0x582)]();this[q(0x55a,0x571)]();this[q(0x591,0x5c7)]['scope']&&this[q(0x591,0x590)][q(0x554,0x572)][q(0x557,0x589)]();function q(a,b){return _enl(b,a-0x197);}this[q(0x591,0x57b)][q(0x583,0x5c2)]=null;this[q(0x5ae,0x5e9)][q(0x557,0x550)]();this['topRevision']=this[q(0x591,0x576)];this['$followingRevision']=void 0x0;this[q(0x571,0x598)]=void 0x0;this['markAndSweep']();this['isJustCleared']=!![];}[_enl(0x43f,0x421)](){this[r(-0x96,-0xd5)]();this[r(-0xed,-0xc2)]();for(const [a,b]of this[r(-0xbc,-0x8c)]()){if(b)a[r(-0x79,-0x88)]--;a['referenceCount']--;}this[r(-0x67,-0x6e)][r(-0xc4,-0xc5)]();function r(a,b){return _enl(a,b- -0x485);}this[r(-0x9a,-0x5d)]=this[r(-0x5b,-0x8b)];this[r(-0x92,-0xa7)]=void 0x0;this['$activeTransaction']=void 0x0;}*[_enl(0x3d7,0x3f9)](){let a=!![];function s(a,b){return _enl(a,b-0x17a);}let b=0x0;for(const c of this[s(0x5cc,0x5a2)]['previousAxis']()){yield[c,a||b<this[s(0x5b6,0x585)]];if(c===this['baseRevision']){a=![];}else{if(!a)b++;}}}get[_enl(0x3c8,0x3ca)](){function t(a,b){return _enl(a,b-0x6c);}return this[t(0x441,0x43f)];}set[_enl(0x3ae,0x3ca)](a){function u(a,b){return _enl(b,a- -0x115);}this[u(0x2be,0x2bc)]=a;}['markAndSweep'](){let a;const b=[];function v(a,b){return _enl(a,b-0xb3);}for(const [c,d]of this[v(0x4d4,0x4ac)]()){if(d){c[v(0x4a3,0x4b0)]++;a=c;}else b['push'](c);c[v(0x4b2,0x4b9)]++;}b[v(0x49e,0x485)](a);for(let e=b[v(0x475,0x4a9)]-0x1;e>=0x1&&b[e][v(0x4c6,0x4b0)]===0x0;e--){this['compactRevisions'](b[e-0x1],b[e]);}}['compactRevisions'](a,b){if(b[w(0xd6,0xee)]>0x0||a[w(0xc5,0xfe)]!==b)throw new Error(w(0xce,0xf5));if(b[w(0xdf,0xed)]<=0x1){for(const [c,d]of a[w(0x96,0xa3)]){if(d[w(0x103,0x13a)]()===TombStone){b[w(0x96,0xad)]['delete'](c);}else{const e=b['scope']['get'](c);if(d['origin']===d){if(e){e[w(0x99,0x97)]();e[w(0xb2,0xe1)]();}}else if(e&&d[w(0x93,0xc6)]===e){d[w(0xb9,0xec)](a[w(0x96,0x80)]);}else if(c['lazy']&&!d[w(0x93,0x73)]&&e&&e[w(0x93,0xc4)]){d[w(0xe3,0xe3)]()[w(0xf2,0xc3)]=e[w(0x93,0x8c)][w(0x92,0x7c)]!==void 0x0?e[w(0x93,0x76)][w(0x92,0xca)]:e[w(0x93,0x63)][w(0xf2,0xf4)];}d[w(0xc5,0x8b)]=void 0x0;b['scope']['set'](c,d);}}copySetInto(a[w(0xbc,0xf9)],b[w(0xbc,0xb1)]);a[w(0x96,0xbc)]=b[w(0x96,0xb3)];b[w(0x96,0x84)]=null;}else{a['scope']=new Map(concat(b[w(0x96,0xa8)],a[w(0x96,0x60)]));a[w(0xbc,0x98)]=new Set(concat(b['selfDependent'],a[w(0xbc,0xe4)]));b['referenceCount']--;}function w(a,b){return _enl(b,a- -0x327);}a[w(0xc5,0x99)]=null;}get['followingRevision'](){if(this[x(0x72,0x5f)]!==void 0x0)return this[x(0x3e,0x5f)];const a=Array[x(0x40,0x58)](this[x(0xa1,0xa9)][x(0x89,0x75)]());const b=[];function x(a,b){return _enl(a,b- -0x37f);}for(let c=a[x(0x8c,0x77)]-0x1;c>0x0;c--)b[x(0x67,0x91)]([a[c],a[c-0x1]]);return this[x(0x82,0x5f)]=new Map(b);}get[_enl(0x43d,0x401)](){if(this[y(0x15f,0x148)])return this[y(0x15f,0x19f)];function y(a,b){return _enl(b,a- -0x27b);}return this['$activeTransaction']=this[y(0x14a,0x127)][y(0x184,0x1a5)]({'baseRevision':this[y(0x16f,0x153)]||this[y(0x17f,0x1bb)],'graph':this});}[_enl(0x3a7,0x3cc)](a){const b=this[z(0x174,0x1a5)];function z(a,b){return _enl(b,a- -0x27c);}return b[z(0x183,0x1bf)](Object[z(0x15a,0x12f)]({},a,{'baseRevision':this[z(0x17e,0x16a)]}));}[_enl(0x3ec,0x41c)](a){function A(a,b){return _enl(b,a-0x32);}return this[A(0x423,0x441)](a);}[_enl(0x3d6,0x3b0)](a){this['activeTransaction'][B(-0x39,-0x2d)](RejectEffect[B(0x16,-0x2b)]({'reason':a}));this['ongoing']=Promise[B(0x2f,0x28)]();this[B(-0xf,-0x8)]=void 0x0;function B(a,b){return _enl(b,a- -0x3e9);}this[B(0x1,0x1a)]=void 0x0;if(this['baseRevisionStable']){this[B(0x11,0x1f)]=this['baseRevisionStable'];this['baseRevisionStable']=void 0x0;}}[_enl(0x3d2,0x3f1)](a){this[C(0xe4,0xf5)]=![];function C(a,b){return _enl(b,a- -0x2fd);}this['unScheduleAutoCommit']();this[C(0xe5,0xe9)]=this[C(0xfd,0x12f)];const b=this[C(0x104,0x136)];const c=b[C(0xf4,0xc8)](a);this[C(0xdd,0xf8)]=void 0x0;const d=this['finalizeCommit'](c);this[C(0xe5,0x10a)]=void 0x0;this[C(0xcd,0xc8)]=![];return d;}async['propagateAsync'](a){function D(a,b){return _enl(b,a- -0x4db);}return this[D(-0xff,-0xfb)](a);}async[_enl(0x3ec,0x3dc)](a){if(this['isCommitting'])return this[E(0x3c4,0x3be)];this['isJustCleared']=![];this[E(0x3bd,0x386)]=!![];function E(a,b){return _enl(a,b- -0x2f);}this[E(0x3d1,0x3b3)]=this[E(0x394,0x3cb)];let b;return this[E(0x391,0x3be)]=this[E(0x3f4,0x3be)][E(0x3b3,0x37c)](()=>{function F(a,b){return E(b,a- -0x3ad);}return this[F(-0x2b,-0x2f)](a);})['then'](c=>{b=c;return c;})['finally'](()=>{this['baseRevisionStable']=void 0x0;this[G(0x4fe,0x4ce)]=void 0x0;function G(a,b){return E(a,b-0x113);}this[G(0x4b2,0x4ae)]=![];this['isCommitting']=![];});}async['doCommitAsync'](a){this['unScheduleAutoCommit']();const b=this[H(0x2c8,0x2dd)];function H(a,b){return _enl(a,b- -0x124);}const c=await b['commitAsync'](a);const d=Boolean(b[H(0x2e0,0x2cf)]);const e=this[H(0x2b8,0x2c6)];if(!d)this[H(0x2a7,0x2c6)]=b[H(0x277,0x2a9)];this[H(0x27b,0x2b6)]=void 0x0;await this[H(0x2c4,0x2d4)](c);if(this[H(0x2f2,0x2bd)])return{'rejectedWith':RejectEffect[H(0x2d5,0x2db)]({'reason':'Graph\x20cleared'})};if(b[H(0x2da,0x2cf)]&&!d){this[H(0x2cd,0x2c6)]=e;this[H(0x2c8,0x2b6)]=void 0x0;}const f=this['finalizeCommit'](c);if(b[H(0x2ae,0x2cf)])b[H(0x2c3,0x288)]();if(this[H(0x2e3,0x2a5)]&&!b['rejectedWith']){await this[H(0x2cc,0x28d)](a);}return f;}[_enl(0x43d,0x429)](a){const {revision:b,entries:c,transaction:d}=a;function I(a,b){return _enl(a,b- -0x3b0);}if(!d[I(0x5b,0x43)]){if(b[I(0x33,0x3c)]!==this[I(0x46,0x4a)])throw new Error(I(-0x13,0x4));for(const [e,f]of this[I(0x48,0x49)]()){if(f)e[I(0x88,0x4d)]--;e[I(0x29,0x56)]--;}this[I(0x70,0x4a)]=this[I(0x3e,0x78)]=b;for(const [g,h]of c){h[I(0x3e,0x3e)]();if(h['isShadow']()||!h[I(0x32,0x7)]())continue;const i=this[I(0x4b,0x67)][I(0x13,0x2)](g);if(i)i[I(0x71,0x62)](h['getValue']());}this[I(0x4b,0x2e)]=void 0x0;this[I(0xd,0x11)]();}else{if(this[I(0x34,0x32)])this[I(0x35,0x4a)]=this[I(0x31,0x32)];this[I(-0x9,0x32)]=void 0x0;this['baseRevisionTentative']=void 0x0;}return{'rejectedWith':d[I(0x55,0x43)]};}async['finalizeCommitAsync'](a){}*[_enl(0x3ef,0x427)](a,b){const c=new ComputationCycleError(J(0x594,0x568)+a);c[J(0x571,0x55d)]=a;function J(a,b){return _enl(b,a-0x18b);}b[J(0x55b,0x592)](a);switch(this[J(0x5ad,0x5d6)]){case J(0x57d,0x5a1):console['log'](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[J(0x5af,0x59a)](d[J(0x5a4,0x5be)]!==void 0x0?d['proposedValue']:d[J(0x544,0x565)]);case J(0x546,0x572):throw c;case'reject':this['reject'](c);break;case'warn':warn(c);break;}}[_enl(0x3ea,0x41b)](a,b){const c=new ComputationCycleError('Computation\x20cycle:\x0a'+a);c[K(0x23a,0x272)]=a;function K(a,b){return _enl(a,b- -0x174);}b[K(0x252,0x25c)](a);switch(this[K(0x29a,0x2ae)]){case K(0x2a2,0x27e):console[K(0x2b4,0x2b1)](c['message']);const {requestedEntry:d,activeEntry:e}=a;return e[K(0x2ab,0x2b0)](d[K(0x2c5,0x2a5)]!==void 0x0?d[K(0x2d8,0x2a5)]:d[K(0x27e,0x245)]);case K(0x213,0x247):throw c;case K(0x216,0x23c):this[K(0x27b,0x23c)](c);break;case K(0x2c5,0x2b2):warn(c);break;}}['scheduleAutoCommit'](){function L(a,b){return _enl(b,a- -0x16b);}if(this[L(0x248,0x241)]===null&&!this[L(0x24a,0x231)]){this[L(0x248,0x20f)]=setTimeout(this[L(0x29a,0x2b2)],0xa);}}[_enl(0x3dc,0x3c3)](){function M(a,b){return _enl(a,b-0x1e3);}if(this['autoCommitTimeoutId']!==null){clearTimeout(this[M(0x581,0x596)]);this[M(0x58e,0x596)]=null;}}[_enl(0x3d2,0x3d8)](a){function N(a,b){return _enl(a,b- -0x1e2);}const b=VariableC();return this[N(0x1f7,0x1ef)](b,a===void 0x0?null:a);}[_enl(0x3d3,0x3b6)](a,b){const c=VariableC({'name':a});return this['addIdentifier'](c,b===void 0x0?null:b);}['identifier'](a,b){const c=isGeneratorFunction(a)?CalculatedValueGenC({'calculation':a,'context':b}):CalculatedValueSyncC({'calculation':a,'context':b});function O(a,b){return _enl(a,b-0x76);}return this[O(0x43f,0x447)](c);}[_enl(0x454,0x42c)](a,b,c){const d=b[P(0x34b,0x35a)][P(0x38c,0x38d)]==='GeneratorFunction'?CalculatedValueGenC({'name':a,'calculation':b,'context':c}):CalculatedValueSyncC({'name':a,'calculation':b,'context':c});function P(a,b){return _enl(a,b- -0x96);}return this['addIdentifier'](d);}[_enl(0x39f,0x3d1)](a,b,...c){if(this[Q(0x1f1,0x1ff)]){if(this[Q(0x202,0x23a)]===Q(0x1f7,0x214))throw new Error(Q(0x25c,0x28f));else if(this[Q(0x202,0x235)]===Q(0x262,0x28d))warn(new Error(Q(0x25c,0x26d)));}this['activeTransaction'][Q(0x20d,0x1d6)](a,b,...c);function Q(a,b){return _enl(b,a- -0x1c4);}if(this[Q(0x23a,0x218)])this['scheduleAutoCommit']();return a;}[_enl(0x3f2,0x3eb)](a){if(this[R(0x327,0x311)]){if(this[R(0x338,0x34c)]==='throw')throw new Error(R(0x340,0x364));else if(this[R(0x338,0x33c)]==='warn')warn(new Error('Removinfg\x20identifier\x20during\x20commit'));}function R(a,b){return _enl(b,a- -0x8e);}this['activeTransaction'][R(0x35d,0x36b)](a);this[R(0x389,0x37b)][R(0x32a,0x34d)](a);if(this[R(0x370,0x337)])this['scheduleAutoCommit']();}[_enl(0x3ff,0x402)](a){function S(a,b){return _enl(a,b- -0x102);}return this[S(0x322,0x2ff)][S(0x2ee,0x300)](a);}[_enl(0x3d3,0x3bc)](a,b,...c){function T(a,b){return _enl(b,a- -0x88);}if(this[T(0x32d,0x350)]){if(this['onWriteDuringCommit']===T(0x333,0x369))throw new Error(T(0x340,0x336));else if(this['onWriteDuringCommit']===T(0x39e,0x3db))warn(new Error('Write\x20during\x20commit'));}this['activeTransaction'][T(0x334,0x36a)](a,b,...c);if(this[T(0x376,0x391)])this[T(0x361,0x342)]();}['readPrevious'](a){function U(a,b){return _enl(a,b- -0x133);}return this[U(0x2fc,0x2ce)][U(0x2ca,0x2cd)](a);}[_enl(0x3f2,0x42b)](a){function V(a,b){return _enl(b,a-0xf2);}return this[V(0x4f3,0x4d6)]['readPreviousAsync'](a);}[_enl(0x420,0x3e8)](a){return this['activeTransaction']['read'](a);}[_enl(0x3db,0x3fb)](a){function W(a,b){return _enl(b,a- -0x52);}return this[W(0x3af,0x3cd)][W(0x3a9,0x3bc)](a);}[_enl(0x3b6,0x3b2)](a){function X(a,b){return _enl(a,b- -0xcc);}return this['activeTransaction'][X(0x2f1,0x2e6)](a);}[_enl(0x41c,0x3e5)](a,b){const c=this[Y(0x33f,0x331)](CalculatedValueGen[Y(0x32d,0x35f)]({'lazy':![],'calculation':a}));function Y(a,b){return _enl(a,b- -0xa0);}this['addListener'](c,b);return c;}[_enl(0x37e,0x3af)](a,b,c){const d=this[Z(0x149,0x180)](CalculatedValueGen['new']({'lazy':![],'calculation':a,'context':b}));this[Z(0x1a9,0x1c5)](d,c);function Z(a,b){return _enl(a,b- -0x251);}return d;}[_enl(0x41e,0x416)](a,b){let c=this[a0(0x51a,0x4fe)][a0(0x4a4,0x499)](a);if(!c){c=Listener['new']();this[a0(0x503,0x4fe)][a0(0x502,0x506)](a,c);}function a0(a,b){return _enl(a,b-0xe7);}c[a0(0x471,0x4ab)]['push'](b);}[_enl(0x404,0x3fc)](){const a=this['baseRevision'];const b=a[a1(0x4a9,0x4b6)];if(!b)return![];this[a1(0x4b7,0x4c2)]=b;this[a1(0x497,0x497)]=void 0x0;function a1(a,b){return _enl(b,a-0xbd);}return!![];}[_enl(0x418,0x40e)](){const a=this[a2(0x5e,0x81)];if(a===this['topRevision'])return![];const b=this['followingRevision'][a2(0x16,0x2e)](a);function a2(a,b){return _enl(b,a- -0x39c);}this[a2(0x5e,0x1e)]=b;this[a2(0x3e,0x3)]=void 0x0;return!![];}[_enl(0x3ec,0x40c)](a){}[ProposedOrPreviousSymbol](a,b){const c=b[a3(0x4a0,0x470)]();function a3(a,b){return _enl(a,b-0x5d);}c[a3(0x425,0x41c)]=!![];const d=c[a3(0x410,0x41b)](b);if(d!==void 0x0)return d;if(!c[a3(0x47c,0x449)])return void 0x0;const e=c['identifier'];if(e[a3(0x3fd,0x41f)]){if(c[a3(0x475,0x449)]['hasValue']())return c[a3(0x40e,0x449)][a3(0x481,0x487)]();if(c[a3(0x408,0x449)]['hasProposedValue']())return c[a3(0x41f,0x449)][a3(0x3fa,0x41b)](b);return null;}return b[a3(0x425,0x45d)](c[a3(0x4ad,0x47b)]);}[RejectSymbol](a,b){this['reject'](a['reason']);return BreakCurrentStackExecution;}[TransactionSymbol](a,b){return b;}[OwnQuarkSymbol](a,b){return b['getActiveEntry']();}[OwnIdentifierSymbol](a,b){const c=b['getActiveEntry']();return c['identifier'];}[WriteSymbol](a,b){const c=b['getActiveEntry']();const d=a[a4(0x60d,0x604)][a4(0x603,0x636)]>c[a4(0x60d,0x61e)][a4(0x603,0x617)];if(!d)b[a4(0x5ca,0x5a3)]['startNewEpoch']();b[a4(0x5ab,0x57a)](a[a4(0x60d,0x627)],...a[a4(0x5c3,0x5df)]);function a4(a,b){return _enl(b,a-0x1ef);}return d?void 0x0:BreakCurrentStackExecution;}[WriteSeveralSymbol](a,b){const c=b[a5(0x363,0x39d)]();let d=!![];a[a5(0x3d9,0x3a7)]['forEach'](e=>{function a6(a,b){return a5(b,a-0xb1);}if(e[a6(0x459,0x479)][a6(0x44f,0x43a)]<=c['identifier'][a6(0x44f,0x48b)]&&d){b[a6(0x416,0x3e4)]['startNewEpoch']();d=![];}b[a6(0x3f7,0x3e2)](e[a6(0x459,0x490)],...e[a6(0x40f,0x442)]);});function a5(a,b){return _enl(a,b- -0x76);}return d?void 0x0:BreakCurrentStackExecution;}[HasPreviousValueSymbol](a,b){const c=b[a7(0x22b,0x22e)]();function a7(a,b){return _enl(a,b- -0x1e5);}const d=a[a7(0x21c,0x239)];b[a7(0x22a,0x230)](d,c,EdgeTypePast);const e=b[a7(0x1d4,0x1c9)][a7(0x19a,0x1cd)](d);return e?b[a7(0x23f,0x21b)](d)!=null:![];}[PreviousValueOfSymbol](a,b){const c=b[a8(0x3d3,0x39c)]();function a8(a,b){return _enl(a,b- -0x77);}const d=a['identifier'];b[a8(0x370,0x39e)](d,c,EdgeTypePast);return b[a8(0x39b,0x389)](d);}[ProposedValueOfSymbol](a,b){const c=b[a9(0x16f,0x180)]();const d=a['identifier'];b[a9(0x171,0x16b)](d,c,EdgeTypePast);const e=b['entries'][a9(0x10e,0xf9)](d);const f=e&&!e['isShadow']()?e[a9(0x11a,0xdb)](b):void 0x0;function a9(a,b){return _enl(b,a- -0x2a4);}return f;}[HasProposedValueSymbol](a,b){const c=b['getActiveEntry']();const d=a[aa(0x61c,0x613)];b[aa(0x613,0x633)](d,c,EdgeTypePast);const e=b[aa(0x5ac,0x5e5)][aa(0x5b0,0x58c)](d);function aa(a,b){return _enl(b,a-0x1fe);}return e?e['hasProposedValue']():![];}[HasProposedNotPreviousValueSymbol](a,b){const c=b['getActiveEntry']();const d=a['identifier'];b['addEdge'](d,c,EdgeTypePast);const e=b['entries'][ab(0x209,0x238)](d);function ab(a,b){return _enl(b,a- -0x1a9);}return e?e[ab(0x222,0x230)]()&&e[ab(0x25e,0x240)]!==void 0x0&&!e[ab(0x21e,0x219)]:![];}[ProposedOrPreviousValueOfSymbol](a,b){const c=b[ac(0x24e,0x21c)]();const d=a[ac(0x21f,0x227)];function ac(a,b){return _enl(a,b- -0x1f7);}b[ac(0x231,0x21e)](d,c,EdgeTypePast);return b[ac(0x1cb,0x1b6)](d);}[UnsafeProposedOrPreviousValueOfSymbol](a,b){function ad(a,b){return _enl(b,a- -0x2b7);}return b[ad(0xf6,0xe0)](a[ad(0x167,0x146)]);}[UnsafePreviousValueOfSymbol](a,b){function ae(a,b){return _enl(a,b-0x20d);}return b[ae(0x5f8,0x60d)](a[ae(0x64e,0x62b)]);}[ProposedArgumentsOfSymbol](a,b){const c=b[af(0x2cf,0x2d7)]();function af(a,b){return _enl(a,b- -0x13c);}const d=a[af(0x2ae,0x2e2)];b[af(0x302,0x2d9)](d,c,EdgeTypePast);const e=b['entries'][af(0x26b,0x276)](d);return e&&!e[af(0x2d6,0x2a8)]()?e[af(0x2b9,0x299)]:void 0x0;}[ProposeCountOfSymbol](a,b){const c=b[ag(0x209,0x22c)]();const d=a['identifier'];function ag(a,b){return _enl(b,a- -0x20a);}b[ag(0x20b,0x20a)](d,c,EdgeTypePast);const e=b[ag(0x1a4,0x1e0)][ag(0x1a8,0x17a)](d);return e&&!e[ag(0x1da,0x1f2)]()?e[ag(0x1d5,0x1a6)]:void 0x0;}}export{ChronoGraph,CommitZero,ComputationCycleError,Listener};
@@ -1 +1 @@
1
- (function(a,b){function l(a,b){return _enb(b- -0x21d,a);}const c=a();while(!![]){try{const d=parseInt(l(-0x11,-0x2a))/0x1+parseInt(l(-0x2c,-0x24))/0x2*(parseInt(l(-0x23,-0x34))/0x3)+-parseInt(l(-0x44,-0x3a))/0x4*(parseInt(l(-0x1c,-0x1e))/0x5)+-parseInt(l(-0x12,-0x1b))/0x6+parseInt(l(-0x11,-0x20))/0x7*(-parseInt(l(-0x2b,-0x3c))/0x8)+-parseInt(l(-0x19,-0x10))/0x9+-parseInt(l(-0x33,-0x1c))/0xa*(-parseInt(l(-0x24,-0x1d))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x48849));var __decorate=function(a,b,e,f){var g=arguments[m(0xa1,0x91)],h=g<0x3?b:f===null?f=Object['getOwnPropertyDescriptor'](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(0xba,0xba)]===m(0x94,0x9c))h=Reflect[m(0xba,0xa6)](a,b,e,f);else for(var k=a[m(0xa1,0x9a)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;function m(a,b){return _enb(a- -0x154,b);}return g>0x3&&h&&Object[m(0xaa,0xb2)](b,e,h),h;};import{Base}from'../class/Base.js';import{CalculationGen,CalculationSync}from'../primitives/Calculation.js';import{prototypeValue}from'../util/Helpers.js';import{ProposedOrPrevious}from'./Effect.js';import{Quark}from'./Quark.js';var Levels;(function(a){a[a['UserInput']=0x0]=n(0x264,0x259);a[a['DependsOnlyOnUserInput']=0x1]='DependsOnlyOnUserInput';a[a['DependsOnlyOnDependsOnlyOnUserInput']=0x2]=n(0x275,0x277);function n(a,b){return _enb(a-0x6c,b);}a[a[n(0x266,0x272)]=0x3]=n(0x266,0x26f);}(Levels||(Levels={})));class Meta extends Base{constructor(){function o(a,b){return _enb(b- -0x367,a);}super(...arguments);this[o(-0x185,-0x17c)]=void 0x0;this[o(-0x188,-0x175)]=![];this['total']=!![];this[o(-0x164,-0x157)]=!![];this[o(-0x16d,-0x185)]=![];}[_enp(0x17f,0x198)](a){function q(a,b){return _enp(a-0x3d5,b);}throw new Error(q(0x556,0x55d));}[_enp(0x180,0x181)](a,b){return a===b;}}__decorate([prototypeValue(Levels['DependsOnSelfKind'])],Meta[_enp(0x196,0x1ae)],'level',void 0x0);function _ena(){const D=['new','proposedArguments','mix','proposedIsPrevious','identifier','DependsOnlyOnDependsOnlyOnUserInput','Unknown\x20identifier\x20','isWritingPreviousData','sync','3624966waRbno','decorate','ignoreEdgesFlow','pure','graph','newQuark','readFromGraph','8lcaQgg','proposedValueIsBuilt','924atxjkR','quarkClass','readFromTransactionAsync','writeToTransaction','read','function','18HsufFS','value','name','calculation','equality','Abstract\x20method\x20`calculation`\x20called','writeToGraph','proposedValue','readFromGraphAsync','lazy','158562WXBDqN','writtenValue','length','The\x20\x27calculation\x27\x20method\x20of\x20the\x20variables\x20should\x20never\x20be\x20called.\x20Instead,\x20the\x20value\x20will\x20be\x20set\x20directly\x20to\x20quark','write','UserInput','65122fDYvZp','DependsOnSelfKind','level','readFromTransaction','327264LjVBNi','defineProperty','2810JIjAGL','11PytrEk','9848350ySoYCo','2774292HoufZU','prototype'];_ena=function(){return D;};return _ena();}__decorate([prototypeValue(!![])],Meta['prototype'],_enp(0x19f,0x1aa),void 0x0);class Identifier extends Meta{constructor(){function r(a,b){return _enp(b- -0x254,a);}super(...arguments);this[r(-0xaf,-0xb2)]=![];this['context']=void 0x0;this['isWritingUndefined']=![];}[_enp(0x1a5,0x1b5)](a){const b=this[s(0x5b5,0x5cb)][s(0x603,0x5eb)]();b[s(0x5dc,0x5ef)]=this;function s(a,b){return _enp(b-0x454,a);}b['needToBuildProposedValue']=this[s(0x5b3,0x5c9)];return b;}['write'](a,b,c,d,...e){c=c||b['getWriteTarget'](a);c[t(0x209,0x21e)]=d;c['proposedArguments']=e['length']>0x0?e:void 0x0;function t(a,b){return _enp(b-0x9b,a);}c[t(0x246,0x235)]=b[t(0x22e,0x23f)][t(0x224,0x239)]>0x0;c[t(0x22a,0x222)]=d;}[_enp(0x179,0x17a)](a,b,...c){function u(a,b){return _enp(a-0x2b5,b);}a[u(0x43f,0x434)](this,b,...c);}[_enp(0x182,0x194)](a,b,...c){a['write'](this,b,...c);}[_enp(0x184,0x17f)](a){return a['readAsync'](this);}[_enp(0x173,0x16e)](a){function v(a,b){return _enp(a-0xd0,b);}return a[v(0x24a,0x23b)](this);}[_enp(0x18f,0x194)](a){function w(a,b){return _enp(b- -0x322,a);}return a[w(-0x1ab,-0x1a8)](this);}[_enp(0x178,0x163)](a){return a['readAsync'](this);}['buildProposedValue'](a,b,c){return void 0x0;}['enterGraph'](a){}['leaveGraph'](a){}}function _enp(a,b){return _enb(a- -0x6d,b);}const IdentifierC=a=>Identifier[_enp(0x197,0x182)](a);const QuarkSync=Quark[_enp(0x199,0x1a3)](CalculationSync[_enp(0x199,0x18f)](Map));const QuarkGen=Quark['mix'](CalculationGen['mix'](Map));class Variable extends Identifier{['calculation'](a){function x(a,b){return _enp(b-0xf7,a);}throw new Error(x(0x28c,0x280));}[_enp(0x18a,0x180)](a,b,c,d,...e){function y(a,b){return _enp(b- -0xd6,a);}c=c||b['getWriteTarget'](a);c[y(0xbf,0xa7)]=d;c[y(0xda,0xc2)]=e[y(0xb4,0xb2)]>0x0?e:void 0x0;}}__decorate([prototypeValue(Levels[_enp(0x18b,0x19a)])],Variable[_enp(0x196,0x1ab)],_enp(0x18e,0x17c),void 0x0);__decorate([prototypeValue(QuarkSync)],Variable[_enp(0x196,0x1a6)],'quarkClass',void 0x0);function VariableC(...a){function z(a,b){return _enp(b-0x327,a);}return Variable[z(0x4d8,0x4be)](...a);}class CalculatedValueSync extends Identifier{[_enp(0x17f,0x179)](a){return a(ProposedOrPrevious);}}__decorate([prototypeValue(QuarkSync)],CalculatedValueSync['prototype'],_enp(0x177,0x190),void 0x0);function CalculatedValueSyncC(...a){function A(a,b){return _enp(b-0xe3,a);}return CalculatedValueSync[A(0x264,0x27a)](...a);}class CalculatedValueGen extends Identifier{*[_enp(0x17f,0x168)](a){return yield ProposedOrPrevious;}}__decorate([prototypeValue(QuarkGen)],CalculatedValueGen['prototype'],'quarkClass',void 0x0);function CalculatedValueGenC(...a){function B(a,b){return _enp(b-0x12e,a);}return CalculatedValueGen[B(0x2d4,0x2c5)](...a);}const throwUnknownIdentifier=a=>{function C(a,b){return _enp(b-0x13f,a);}throw new Error(C(0x2e4,0x2dc)+a);};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1e0;let f=c[d];return f;};return _enb(a,b);}export{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSync,CalculatedValueSyncC,Identifier,IdentifierC,Levels,Meta,QuarkGen,QuarkSync,Variable,VariableC,throwUnknownIdentifier};
1
+ (function(a,b){function l(a,b){return _enb(b-0x2a5,a);}const c=a();while(!![]){try{const d=-parseInt(l(0x30f,0x31a))/0x1+-parseInt(l(0x329,0x311))/0x2+parseInt(l(0x30f,0x319))/0x3*(parseInt(l(0x32d,0x339))/0x4)+parseInt(l(0x334,0x31e))/0x5+parseInt(l(0x33e,0x335))/0x6*(parseInt(l(0x31c,0x337))/0x7)+-parseInt(l(0x2fd,0x312))/0x8+parseInt(l(0x311,0x314))/0x9*(parseInt(l(0x349,0x32e))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xa6365));var __decorate=function(a,b,e,f){function m(a,b){return _enb(a- -0x85,b);}var g=arguments['length'],h=g<0x3?b:f===null?f=Object[m(0x16,0x25)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[m(-0x15,-0x23)]===m(-0x17,-0x18))h=Reflect[m(-0x15,-0x2a)](a,b,e,f);else for(var k=a[m(0x13,0x26)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[m(-0x2,-0x1d)](b,e,h),h;};import{Base}from'../class/Base.js';import{CalculationGen,CalculationSync}from'../primitives/Calculation.js';import{prototypeValue}from'../util/Helpers.js';function _enp(a,b){return _enb(b-0x66,a);}import{ProposedOrPrevious}from'./Effect.js';import{Quark}from'./Quark.js';var Levels;(function(a){a[a[n(-0xd6,-0xc1)]=0x0]=n(-0xd6,-0xbc);function n(a,b){return _enb(a- -0x174,b);}a[a[n(-0xea,-0xf7)]=0x1]='DependsOnlyOnUserInput';a[a['DependsOnlyOnDependsOnlyOnUserInput']=0x2]='DependsOnlyOnDependsOnlyOnUserInput';a[a['DependsOnSelfKind']=0x3]='DependsOnSelfKind';}(Levels||(Levels={})));class Meta extends Base{constructor(){super(...arguments);this[o(0x171,0x166)]=void 0x0;this[o(0x17a,0x181)]=![];this[o(0x183,0x17c)]=!![];function o(a,b){return _enb(b-0xfb,a);}this[o(0x171,0x17a)]=!![];this[o(0x17f,0x18e)]=![];}[_enp(0xee,0xff)](a){function q(a,b){return _enp(a,b- -0x1e5);}throw new Error(q(-0xdf,-0xfa));}['equality'](a,b){return a===b;}}__decorate([prototypeValue(Levels[_enp(0xd8,0xee)])],Meta[_enp(0xeb,0xfb)],_enp(0x118,0x100),void 0x0);__decorate([prototypeValue(!![])],Meta['prototype'],_enp(0xdf,0xe2),void 0x0);class Identifier extends Meta{constructor(){super(...arguments);this[r(0x46e,0x46c)]=![];this['context']=void 0x0;function r(a,b){return _enp(b,a-0x37d);}this['isWritingUndefined']=![];}[_enp(0xdf,0xed)](a){function s(a,b){return _enp(b,a- -0x3fe);}const b=this[s(-0x30a,-0x317)]['new']();b[s(-0x325,-0x339)]=this;b['needToBuildProposedValue']=this['proposedValueIsBuilt'];return b;}[_enp(0x102,0xf7)](a,b,c,d,...e){c=c||b[t(0x245,0x22d)](a);c[t(0x26b,0x26c)]=d;function t(a,b){return _enp(b,a-0x165);}c[t(0x261,0x254)]=e[t(0x263,0x273)]>0x0?e:void 0x0;c[t(0x241,0x237)]=b[t(0x267,0x253)][t(0x248,0x23f)]>0x0;c[t(0x246,0x22b)]=d;c[t(0x24b,0x243)]++;}[_enp(0xf2,0xf2)](a,b,...c){a['write'](this,b,...c);}[_enp(0xe6,0xe4)](a,b,...c){function u(a,b){return _enp(a,b- -0x1a);}a[u(0xf0,0xdd)](this,b,...c);}['readFromGraphAsync'](a){function v(a,b){return _enp(b,a-0x273);}return a[v(0x351,0x34c)](this);}[_enp(0x10c,0x105)](a){function w(a,b){return _enp(a,b-0x35a);}return a[w(0x42d,0x444)](this);}[_enp(0x104,0xfd)](a){function x(a,b){return _enp(a,b-0x1aa);}return a[x(0x2a8,0x294)](this);}['readFromTransactionAsync'](a){return a['readAsync'](this);}[_enp(0xef,0xe8)](a,b,c){return void 0x0;}[_enp(0xdc,0xf3)](a){}[_enp(0xfc,0x103)](a){}}const IdentifierC=a=>Identifier['new'](a);const QuarkSync=Quark[_enp(0xf8,0xf5)](CalculationSync[_enp(0x10a,0xf5)](Map));const QuarkGen=Quark[_enp(0x102,0xf5)](CalculationGen[_enp(0xdd,0xf5)](Map));class Variable extends Identifier{[_enp(0x119,0xff)](a){function y(a,b){return _enp(b,a-0x372);}throw new Error(y(0x44f,0x454));}[_enp(0xe8,0xf7)](a,b,c,d,...e){function z(a,b){return _enp(b,a-0xc);}c=c||b[z(0xec,0x106)](a);c[z(0xdc,0xf5)]=d;c[z(0x108,0x10a)]=e['length']>0x0?e:void 0x0;}}__decorate([prototypeValue(Levels[_enp(0xfc,0x104)])],Variable[_enp(0x10c,0xfb)],_enp(0x10f,0x100),void 0x0);__decorate([prototypeValue(QuarkSync)],Variable[_enp(0x112,0xfb)],_enp(0x10b,0xf4),void 0x0);function VariableC(...a){function A(a,b){return _enp(a,b- -0x40e);}return Variable[A(-0x342,-0x337)](...a);}class CalculatedValueSync extends Identifier{['calculation'](a){return a(ProposedOrPrevious);}}function _ena(){const C=['enterGraph','quarkClass','mix','6dRMQiJ','write','1201711UxYZEp','proposedValueIsBuilt','247564wuNODC','prototype','proposedArguments','readFromTransaction','length','calculation','level','getOwnPropertyDescriptor','graph','leaveGraph','UserInput','readFromGraph','proposedValue','value','name','84742QLruTM','3881160hSuiJW','function','2381301YxinXD','decorate','new','Unknown\x20identifier\x20','identifier','45imUNaa','1202335DhRYpu','proposedIsPrevious','The\x20\x27calculation\x27\x20method\x20of\x20the\x20variables\x20should\x20never\x20be\x20called.\x20Instead,\x20the\x20value\x20will\x20be\x20set\x20directly\x20to\x20quark','readAsync','1261310CRThzI','getWriteTarget','writtenValue','sync','isWritingPreviousData','writeToGraph','pure','proposeCount','total','buildProposedValue','defineProperty','read','Abstract\x20method\x20`calculation`\x20called','lazy','newQuark','DependsOnSelfKind','40ApjxQy','DependsOnlyOnUserInput','ignoreEdgesFlow','writeToTransaction'];_ena=function(){return C;};return _ena();}__decorate([prototypeValue(QuarkSync)],CalculatedValueSync[_enp(0xf3,0xfb)],_enp(0x100,0xf4),void 0x0);function CalculatedValueSyncC(...a){return CalculatedValueSync['new'](...a);}class CalculatedValueGen extends Identifier{*[_enp(0x100,0xff)](a){return yield ProposedOrPrevious;}}__decorate([prototypeValue(QuarkGen)],CalculatedValueGen[_enp(0xe4,0xfb)],_enp(0xdb,0xf4),void 0x0);function CalculatedValueGenC(...a){return CalculatedValueGen['new'](...a);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x6a;let f=c[d];return f;};return _enb(a,b);}const throwUnknownIdentifier=a=>{function B(a,b){return _enp(a,b-0x302);}throw new Error(B(0x3ef,0x3da)+a);};export{CalculatedValueGen,CalculatedValueGenC,CalculatedValueSync,CalculatedValueSyncC,Identifier,IdentifierC,Levels,Meta,QuarkGen,QuarkSync,Variable,VariableC,throwUnknownIdentifier};
@@ -1 +1 @@
1
- (function(a,b){const c=a();function o(a,b){return _enb(b- -0x2cb,a);}while(!![]){try{const d=parseInt(o(-0x1e3,-0x1f4))/0x1+parseInt(o(-0x1ad,-0x1d0))/0x2+parseInt(o(-0x1ca,-0x1d1))/0x3+-parseInt(o(-0x1bb,-0x1cb))/0x4*(-parseInt(o(-0x204,-0x1f8))/0x5)+-parseInt(o(-0x1ce,-0x1d9))/0x6*(parseInt(o(-0x1d3,-0x1ec))/0x7)+-parseInt(o(-0x1d3,-0x1de))/0x8*(-parseInt(o(-0x20c,-0x20b))/0x9)+-parseInt(o(-0x203,-0x1eb))/0xa*(parseInt(o(-0x1c4,-0x1df))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xac4e3));function _enr(a,b){return _enb(b- -0xa0,a);}import{MixinAny}from'../class/Mixin.js';import{NOT_VISITED}from'../graph/WalkDepth.js';import{MAX_SMI,MIN_SMI}from'../util/Helpers.js';function _ena(){const S=['clear','985392xWlOUq','getOutgoing','origin','visitEpoch','call','new','getOutgoingPast','outgoingInTheFutureHelper','edgesFlow','cleanup','values','assign','proposedIsPrevious','proposedValueIsBuilt','outgoingInTheFutureAndPastTransactionCb','getOrigin','getProposedValue','value','set','5605yGGwzV','hasProposedValue','resetToEpoch','addOutgoingTo','1176259aznYzs','needToBuildProposedValue','context','cleanupCalculation','getValue','mergePreviousOrigin','outgoingInTheFutureAndPastCb','calculation','49cCHXHI','19575740qSknPg','visitedAt','Tombstone','clearOutgoing','outgoingInTheFutureCb','startOrigin','$outgoingPast','usedProposedOrPrevious','originId','previous','promise','getLatestStableEntryFor','11CBqfzU','24UxzCHn','writtenValue','hasValue','copyFrom','Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry','1085610rWmzhb','forceCalculation','clearProperties','proposedValue','setValue','get','proposedArguments','identifier','2066817UcDTmB','1707986awROst','Normal','getLatestEntryFor','level','Invalid\x20state','3148fdDSxf','hasProposedValueInner','isShadow','Past','outgoingInTheFutureTransactionCb'];_ena=function(){return S;};return _ena();}var EdgeType;(function(a){function p(a,b){return _enb(b- -0x3be,a);}a[a[p(-0x2c6,-0x2c2)]=0x1]=p(-0x2e0,-0x2c2);a[a['Past']=0x2]=p(-0x2b1,-0x2bb);}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this[q(0x1e3,0x1db)]=void 0x0;this[q(0x1bb,0x1a6)]=void 0x0;this[q(0x1df,0x1c8)]=void 0x0;function q(a,b){return _enb(a-0xea,b);}this[q(0x1b6,0x196)]=![];this[q(0x1e2,0x1c9)]=void 0x0;this[q(0x1d1,0x1c0)]=![];this['writtenValue']=void 0x0;this[q(0x1d3,0x1ee)]=void 0x0;this[q(0x1ac,0x1b1)]=void 0x0;this[q(0x1d2,0x1b7)]=MIN_SMI;this[q(0x1c2,0x1ad)]=![];this['edgesFlow']=0x0;this[q(0x1cb,0x1cc)]=NOT_VISITED;this[q(0x1ad,0x1a7)]=0x0;this[q(0x1d4,0x1eb)]=void 0x0;this['$outgoingPast']=void 0x0;}static[_enr(0x31,0x25)](c){const d=new this();c&&Object[s(0xe7,0x102)](d,c);function s(a,b){return _enr(b,a-0xbc);}return d;}get[_enr(0x61,0x5e)](){function t(a,b){return _enr(a,b-0xd4);}return this[t(0x144,0x12d)][t(0x142,0x132)];}get[_enr(0x2c,0x3e)](){function u(a,b){return _enr(b,a-0x452);}return this[u(0x4ab,0x489)]['calculation'];}get[_enr(0x3e,0x39)](){function v(a,b){return _enr(b,a-0x33f);}return this['identifier'][v(0x378,0x39b)]||this[v(0x398,0x387)];}[_enr(0x31,0x53)](){this['edgesFlow']=MAX_SMI;}[_enr(0x26,0x29)](){function w(a,b){return _enr(b,a- -0x265);}this[w(-0x22b,-0x23b)]();}[_enr(0x57,0x62)](){function x(a,b){return _enr(a,b-0x182);}return Boolean(this[x(0x1ab,0x1a4)]&&this[x(0x198,0x1a4)]!==this);}[_enr(0x44,0x35)](c){this[y(-0x2a3,-0x295)]=c;function y(a,b){return _enr(b,a- -0x2c6);}this['visitedAt']=NOT_VISITED;if(this[y(-0x29e,-0x2b6)]<0x0)this[y(-0x29e,-0x2a6)]=0x0;this[y(-0x27f,-0x262)]=![];this[y(-0x28c,-0x26c)]();this[y(-0x283,-0x287)]();this[y(-0x27c,-0x269)]=void 0x0;if(this[y(-0x2a4,-0x2c2)]&&this[y(-0x2a4,-0x2bf)]===this){this[y(-0x26e,-0x268)]=void 0x0;if(this[y(-0x295,-0x29c)]!==void 0x0){this['proposedValue']=this['value'];}this['value']=void 0x0;}else{this[y(-0x2a4,-0x2b3)]=void 0x0;this['value']=void 0x0;}if(this[y(-0x26d,-0x24a)][y(-0x299,-0x280)]&&this['proposedValue']!==TombStone){this[y(-0x28e,-0x2aa)]=!![];this['proposedValue']=void 0x0;}}[_enr(0x6b,0x50)](c){function z(a,b){return _enr(a,b- -0x327);}this[z(-0x2db,-0x2f6)]=c[z(-0x2fc,-0x2f6)];this[z(-0x2bd,-0x2d2)]=c['proposedValue'];this[z(-0x2bf,-0x2cf)]=c[z(-0x2c5,-0x2cf)];this[z(-0x2d0,-0x2e0)]=c[z(-0x2c3,-0x2e0)];}[_enr(0x73,0x54)](){function A(a,b){return _enr(a,b-0x273);}this[A(0x2c1,0x2a4)]=void 0x0;this[A(0x2c1,0x2c8)]=void 0x0;this['proposedArguments']=void 0x0;this[A(0x2b9,0x2c1)]=void 0x0;}[_enr(0x44,0x3c)](c){const d=this['origin'];if(d!==this['previous'])throw new Error(B(-0x26f,-0x286));function B(a,b){return _enr(a,b- -0x2e5);}this[B(-0x29a,-0x295)](d);const e=this[B(-0x2cb,-0x2c4)]();for(const [f,g]of d[B(-0x2c8,-0x2c4)]()){const h=e[B(-0x299,-0x28e)](f);if(!h){const i=c['get'](f);if(!i||i[B(-0x2bc,-0x29d)]===g['originId'])e[B(-0x2b9,-0x2b3)](f,i||g);}}if(d[B(-0x2a4,-0x29f)]!==void 0x0){const j=this['getOutgoingPast']();for(const [k,l]of d[B(-0x2b9,-0x2bf)]()){const m=j[B(-0x289,-0x28e)](k);if(!m){const n=c[B(-0x28f,-0x28e)](k);if(!n||n[B(-0x27a,-0x29d)]===l[B(-0x27d,-0x29d)])j['set'](k,n||l);}}}this['origin']=this;d[B(-0x293,-0x291)]();d[B(-0x2ae,-0x2c6)]();}['setOrigin'](c){function C(a,b){return _enr(b,a- -0x158);}this[C(-0x136,-0x133)]=c;this[C(-0x110,-0x115)]=c[C(-0x110,-0x125)];}[_enr(0x25,0x2f)](){function D(a,b){return _enr(b,a-0xdf);}if(this[D(0x101,0xfb)])return this['origin'];return this[D(0x124,0x13a)]();}[_enr(0x60,0x45)](){function E(a,b){return _enr(b,a-0x104);}this[E(0x14c,0x16f)]=ORIGIN_ID++;return this[E(0x126,0x10a)]=this;}[_enr(0x3a,0x21)](){return this;}['getOutgoingPast'](){if(this[F(0x242,0x23d)]!==void 0x0)return this[F(0x25c,0x23d)];function F(a,b){return _enr(a,b-0x1f7);}return this['$outgoingPast']=new Map();}[_enr(0x50,0x36)](c,d){const e=d===EdgeType[G(0x21,0x16)]?this:this['getOutgoingPast']();function G(a,b){return _enr(a,b- -0x46);}e['set'](c['identifier'],c);}['clearOutgoing'](){this[H(-0x1eb,-0x1cf)]();function H(a,b){return _enr(a,b- -0x1ee);}if(this[H(-0x1b4,-0x1a8)]!==void 0x0)this[H(-0x18c,-0x1a8)][H(-0x1ea,-0x1cf)]();}[_enr(0x58,0x3b)](){const c=this[I(0x10b,0xe8)];function I(a,b){return _enr(b,a-0xe9);}return c===this?this[I(0x11a,0x119)]:c?c[I(0x124,0x138)]():void 0x0;}[_enr(0x62,0x56)](c){if(this['origin']&&this[J(0x46,0x67)]!==this)throw new Error(J(0x76,0x96));function J(a,b){return _enr(a,b-0x45);}this[J(0x70,0x74)]()[J(0x68,0x76)]=c;}[_enr(0x3b,0x4f)](){return this['getValue']()!==void 0x0;}[_enr(0x3d,0x34)](){function K(a,b){return _enr(b,a- -0x16d);}if(this[K(-0x10b,-0xf7)]())return![];return this['hasProposedValueInner']();}[_enr(0x4f,0x61)](){function L(a,b){return _enr(b,a-0x15d);}return this[L(0x1b2,0x198)]!==void 0x0;}[_enr(0xd,0x30)](c){if(this['needToBuildProposedValue']){this[M(0x43b,0x42e)]=this['identifier']['buildProposedValue'][M(0x40a,0x40a)](this['identifier'][M(0x41f,0x441)]||this[M(0x43f,0x41c)],this['identifier'],this,c);this[M(0x41e,0x41a)]=![];}function M(a,b){return _enr(b,a-0x3e6);}return this[M(0x43b,0x42e)];}[_enr(0x23,0x27)](c,d,e){function N(a,b){return _enr(b,a-0xa5);}let f=this;while(f){for(const g of f[N(0xc6,0xa6)]()[N(0xcf,0xb8)]()){const h=c(g[N(0xfe,0xff)]);if(h&&g[N(0xed,0x10a)]===h[N(0xed,0xfd)])d(g);}if(e&&f['$outgoingPast']!==void 0x0){for(const i of f[N(0xeb,0x10d)]['values']()){const j=c(i[N(0xfe,0xee)]);if(j&&i['originId']===j[N(0xed,0x10e)])d(i);}}if(f[N(0x107,0xeb)]())f=f[N(0xee,0xce)];else f=null;}}[_enr(0x5e,0x44)](c,d){function O(a,b){return _enr(a,b- -0x2f1);}this[O(-0x2e8,-0x2ca)](e=>c['getLatestEntryFor'](e),d,![]);}[_enr(0x1b,0x3d)](c,d){function P(a,b){return _enr(a,b-0x28b);}this[P(0x295,0x2b2)](e=>c[P(0x2ec,0x2e8)](e),d,!![]);}[_enr(0xf,0x2e)](c,d){function Q(a,b){return _enr(b,a-0x220);}this['outgoingInTheFutureHelper'](e=>c[Q(0x26b,0x277)](e),d,!![]);}[_enr(0x49,0x64)](c,d){function R(a,b){return _enr(a,b- -0x186);}this[R(-0x158,-0x15f)](e=>c[R(-0x112,-0x129)](e),d,![]);}}){}const TombStone=Symbol(_enr(0x37,0x42));function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xbf;let f=c[d];return f;};return _enb(a,b);}export{EdgeType,Quark,TombStone};
1
+ (function(a,b){function o(a,b){return _enb(a-0x2a6,b);}const c=a();while(!![]){try{const d=parseInt(o(0x450,0x46c))/0x1+-parseInt(o(0x429,0x41d))/0x2+parseInt(o(0x432,0x423))/0x3+-parseInt(o(0x423,0x43a))/0x4*(parseInt(o(0x453,0x446))/0x5)+parseInt(o(0x438,0x44b))/0x6*(parseInt(o(0x451,0x441))/0x7)+-parseInt(o(0x41c,0x402))/0x8+parseInt(o(0x431,0x441))/0x9;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x78a12));import{MixinAny}from'../class/Mixin.js';function _ena(){const S=['new','hasValue','outgoingInTheFutureAndPastTransactionCb','set','3140tDyplB','clearOutgoing','values','origin','outgoingInTheFutureAndPastCb','getOutgoing','436840kBuRke','calculation','getOutgoingPast','proposedIsPrevious','getProposedValue','addOutgoingTo','resetToEpoch','startOrigin','6073263gLbPtk','174294nMNYxd','$outgoingPast','usedProposedOrPrevious','previous','proposedValue','cleanup','1611348URSRSY','cleanupCalculation','context','hasProposedValueInner','clear','value','outgoingInTheFutureHelper','visitedAt','isShadow','needToBuildProposedValue','Invalid\x20state','getLatestEntryFor','Past','proposedArguments','getValue','Normal','identifier','clearProperties','level','edgesFlow','getOrigin','buildProposedValue','originId','getLatestStableEntryFor','501899KolCuR','7PyKWtk','copyFrom','4990uPNYSb','visitEpoch','Tombstone','writtenValue','59312VghEAM','get','proposedValueIsBuilt'];_ena=function(){return S;};return _ena();}import{NOT_VISITED}from'../graph/WalkDepth.js';import{MAX_SMI,MIN_SMI}from'../util/Helpers.js';var EdgeType;(function(a){a[a[p(0x252,0x23f)]=0x1]=p(0x23e,0x23f);function p(a,b){return _enb(b-0x9e,a);}a[a[p(0x238,0x23c)]=0x2]=p(0x240,0x23c);}(EdgeType||(EdgeType={})));let ORIGIN_ID=0x0;function _enr(a,b){return _enb(a-0x362,b);}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x174;let f=c[d];return f;};return _enb(a,b);}class Quark extends MixinAny([Map],a=>class b extends a{constructor(){super(...arguments);this[q(0x13e,0x131)]=void 0x0;this[q(0x133,0x14c)]=void 0x0;this['proposedValue']=void 0x0;this[q(0x122,0x117)]=![];this[q(0x13b,0x133)]=void 0x0;this['proposeCount']=0x0;this[q(0x12a,0x142)]=![];this[q(0x111,0x10f)]=void 0x0;this['previous']=void 0x0;function q(a,b){return _enb(a- -0x64,b);}this[q(0x11c,0x120)]=void 0x0;this[q(0x144,0x14e)]=MIN_SMI;this['needToBuildProposedValue']=![];this[q(0x141,0x153)]=0x0;this[q(0x135,0x14a)]=NOT_VISITED;this[q(0x14a,0x150)]=0x0;this['promise']=void 0x0;this[q(0x129,0x135)]=void 0x0;}static[_enr(0x4db,0x4f4)](c){const d=new this();c&&Object['assign'](d,c);return d;}get[_enr(0x506,0x520)](){function s(a,b){return _enr(b-0x29,a);}return this[s(0x548,0x52d)][s(0x531,0x52f)];}get[_enr(0x4e6,0x4f0)](){function t(a,b){return _enr(b- -0x532,a);}return this[t(-0x12,-0x2e)][t(-0x5a,-0x4c)];}get[_enr(0x4f6,0x4f9)](){function u(a,b){return _enr(a- -0x348,b);}return this['identifier'][u(0x1ae,0x1be)]||this[u(0x1bc,0x1a5)];}['forceCalculation'](){function v(a,b){return _enr(a- -0x1f5,b);}this[v(0x312,0x321)]=MAX_SMI;}[_enr(0x4f3,0x508)](){this['cleanupCalculation']();}[_enr(0x4fc,0x4e3)](){function w(a,b){return _enr(a- -0x6a1,b);}return Boolean(this[w(-0x1bf,-0x1a1)]&&this[w(-0x1bf,-0x1a2)]!==this);}[_enr(0x4eb,0x4f3)](c){this[x(0x458,0x449)]=c;this['visitedAt']=NOT_VISITED;if(this['edgesFlow']<0x0)this[x(0x44f,0x43f)]=0x0;this[x(0x438,0x443)]=![];this[x(0x43d,0x45b)]();function x(a,b){return _enr(a- -0xb8,b);}this[x(0x428,0x43d)]();this['promise']=void 0x0;if(this['origin']&&this['origin']===this){this[x(0x449,0x446)]=void 0x0;if(this[x(0x441,0x42a)]!==void 0x0){this['proposedValue']=this[x(0x441,0x451)];}this[x(0x441,0x426)]=void 0x0;}else{this[x(0x42a,0x420)]=void 0x0;this[x(0x441,0x440)]=void 0x0;}if(this[x(0x44c,0x467)][x(0x422,0x420)]&&this['proposedValue']!==TombStone){this['needToBuildProposedValue']=!![];this['proposedValue']=void 0x0;}}['copyFrom'](c){this[y(0x249,0x22e)]=c[y(0x249,0x256)];function y(a,b){return _enr(a- -0x2b0,b);}this[y(0x242,0x235)]=c['proposedValue'];this[y(0x251,0x25c)]=c[y(0x251,0x23e)];this['usedProposedOrPrevious']=c['usedProposedOrPrevious'];}[_enr(0x505,0x4ed)](){this[z(-0x235,-0x236)]=void 0x0;this['proposedValue']=void 0x0;this[z(-0x22d,-0x235)]=void 0x0;this[z(-0x257,-0x266)]=void 0x0;function z(a,b){return _enr(a- -0x72e,b);}this['proposeCount']=0x0;}['mergePreviousOrigin'](c){const d=this['origin'];if(d!==this['previous'])throw new Error(A(0x54d,0x531));this[A(0x524,0x541)](d);const e=this[A(0x523,0x517)]();for(const [f,g]of d[A(0x51a,0x517)]()){const h=e[A(0x515,0x50c)](f);if(!h){const i=c[A(0x508,0x50c)](f);if(!i||i['originId']===g[A(0x54f,0x53d)])e[A(0x4ff,0x511)](f,i||g);}}if(d[A(0x534,0x522)]!==void 0x0){const j=this[A(0x502,0x51a)]();for(const [k,l]of d[A(0x51a,0x51a)]()){const m=j[A(0x4fb,0x50c)](k);if(!m){const n=c[A(0x503,0x50c)](k);if(!n||n[A(0x54f,0x53d)]===l['originId'])j[A(0x522,0x511)](k,n||l);}}}this['origin']=this;function A(a,b){return _enr(b-0x33,a);}d[A(0x555,0x538)]();d['clear']();}['setOrigin'](c){this[B(0x265,0x24e)]=c;function B(a,b){return _enr(b- -0x294,a);}this[B(0x273,0x276)]=c[B(0x270,0x276)];}[_enr(0x508,0x4ef)](){if(this['origin'])return this[C(0x2b1,0x294)];function C(a,b){return _enr(a- -0x231,b);}return this['startOrigin']();}[_enr(0x4ec,0x4f3)](){function D(a,b){return _enr(a- -0x605,b);}this[D(-0xfb,-0xfe)]=ORIGIN_ID++;return this[D(-0x123,-0x124)]=this;}[_enr(0x4e4,0x4ff)](){return this;}[_enr(0x4e7,0x4de)](){function E(a,b){return _enr(a- -0x56f,b);}if(this[E(-0x80,-0x7a)]!==void 0x0)return this[E(-0x80,-0x82)];return this[E(-0x80,-0x67)]=new Map();}[_enr(0x4ea,0x4f0)](c,d){function F(a,b){return _enr(b- -0x255,a);}const e=d===EdgeType['Normal']?this:this[F(0x294,0x292)]();e[F(0x288,0x289)](c[F(0x2a2,0x2af)],c);}[_enr(0x4e0,0x4e1)](){this[G(-0x13d,-0x158)]();function G(a,b){return _enr(a- -0x635,b);}if(this[G(-0x146,-0x149)]!==void 0x0)this[G(-0x146,-0x163)]['clear']();}[_enr(0x502,0x509)](){function H(a,b){return _enr(b- -0x201,a);}const c=this[H(0x2d2,0x2e1)];return c===this?this[H(0x2fc,0x2f8)]:c?c['getValue']():void 0x0;}['setValue'](c){function I(a,b){return _enr(b- -0x41d,a);}if(this[I(0xa8,0xc5)]&&this['origin']!==this)throw new Error('Can\x20not\x20set\x20value\x20to\x20the\x20shadow\x20entry');this['getOrigin']()['value']=c;}[_enr(0x4dc,0x4ee)](){function J(a,b){return _enr(b- -0x13f,a);}return this[J(0x3c1,0x3c3)]()!==void 0x0;}['hasProposedValue'](){function K(a,b){return _enr(a-0x7d,b);}if(this[K(0x579,0x56b)]())return![];return this['hasProposedValueInner']();}[_enr(0x4f7,0x4ea)](){function L(a,b){return _enr(b- -0x667,a);}return this[L(-0x189,-0x175)]!==void 0x0;}[_enr(0x4e9,0x4e3)](c){function M(a,b){return _enr(a- -0x748,b);}if(this[M(-0x24b,-0x25e)]){this[M(-0x256,-0x254)]=this['identifier'][M(-0x23f,-0x22f)]['call'](this[M(-0x244,-0x22f)]['context']||this[M(-0x244,-0x25b)],this[M(-0x244,-0x24b)],this,c);this[M(-0x24b,-0x234)]=![];}return this[M(-0x256,-0x268)];}['outgoingInTheFutureHelper'](c,d,e){let f=this;function N(a,b){return _enr(b- -0x695,a);}while(f){for(const g of f[N(-0x1c6,-0x1b1)]()['values']()){const h=c(g[N(-0x196,-0x191)]);if(h&&g[N(-0x175,-0x18b)]===h[N(-0x1a3,-0x18b)])d(g);}if(e&&f[N(-0x1a5,-0x1a6)]!==void 0x0){for(const i of f[N(-0x1b2,-0x1a6)][N(-0x1a7,-0x1b4)]()){const j=c(i[N(-0x1a2,-0x191)]);if(j&&i[N(-0x18e,-0x18b)]===j[N(-0x178,-0x18b)])d(i);}}if(f[N(-0x197,-0x199)]())f=f[N(-0x1a4,-0x1a4)];else f=null;}}['outgoingInTheFutureCb'](c,d){function O(a,b){return _enr(a- -0x106,b);}this['outgoingInTheFutureHelper'](e=>c[O(0x3f9,0x3f4)](e),d,![]);}[_enr(0x4e3,0x4c7)](c,d){function P(a,b){return _enr(a- -0x624,b);}this[P(-0x12a,-0x13f)](e=>c[P(-0x125,-0x138)](e),d,!![]);}[_enr(0x4dd,0x4da)](c,d){function Q(a,b){return _enr(a- -0x255,b);}this['outgoingInTheFutureHelper'](e=>c[Q(0x2b6,0x2c7)](e),d,!![]);}['outgoingInTheFutureTransactionCb'](c,d){function R(a,b){return _enr(a- -0x5e2,b);}this['outgoingInTheFutureHelper'](e=>c[R(-0xe3,-0xe3)](e),d,![]);}}){}const TombStone=Symbol(_enr(0x4d6,0x4ca));export{EdgeType,Quark,TombStone};
@@ -1 +1 @@
1
- (function(a,b){function t(a,b){return _enb(a-0x10a,b);}const c=a();while(!![]){try{const d=-parseInt(t(0x210,0x216))/0x1+-parseInt(t(0x275,0x292))/0x2*(parseInt(t(0x240,0x253))/0x3)+parseInt(t(0x1f7,0x1d3))/0x4+-parseInt(t(0x236,0x27b))/0x5+parseInt(t(0x1eb,0x1da))/0x6*(-parseInt(t(0x232,0x270))/0x7)+-parseInt(t(0x245,0x21b))/0x8*(-parseInt(t(0x226,0x261))/0x9)+-parseInt(t(0x247,0x277))/0xa*(-parseInt(t(0x24e,0x28c))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xdf729));import{Base}from'../class/Base.js';import{DEBUG}from'../environment/Debug.js';function _ena(){const al=['add','getLatestStableOrProposedEntryFor','forceCalculation','isCalculationCompleted','identifier','ignoreEdgesFlow','outgoingInTheFutureAndPastTransactionCb','calculateTransitionsStackSync','UserInput','clearCycles','isCalculationStarted','walkContext','get','4setaCd','continueCalculation','entries','readingIdentifier','yieldSync','readProposedOrPreviousAsync','cachedBaseRevisionLookup','getActiveEntry','requestedEntry','readCurrentOrProposedOrPreviousAsync','selfDependent','hasProposedValue','now','reason','set','emitProgressNotificationsEveryCalculations','Computation\x20cycle.\x20Async\x20get','acquireQuarkIfExists','8300922NljiZf','getLatestStableEntryFor','forEach','readCurrentOrProposedOrPrevious','yieldAsync','startCalculation','readProposedOrPrevious','activeStack','onComputationCycleHandler','stop','visitEpoch','readPrevious','5012124uZgLpq','origin','level','removeIdentifier','Transaction\x20rejected:\x20','read','length','cycledIdentifiers','previous','onQuarkCalculationCompleted','addIdentifier','getWriteTarget','cleanup','lastProgressNotificationDate','emitProgressNotificationsEveryMs','pop','readPreviousAsync','quark','promise','addCycle','resolve','plannedTotalIdentifiersToCalculate','new','markSelfDependent','candidateClass','1041865LvZbYN','delete','then','calculateTransitionsStackGen','isClosed','bind','initialize','newQuark','hasValue','hasIdentifier','baseRevision','onEffectAsync','onReadIdentifier','onComputationCycleHandlerSync','handler','proposedValue','stopped','commit','Normal','cleanupCalculation','stackGen','edgesFlow','7146tzYAOm','startNewEpoch','baseRevisionCache','hasEntryWithProposedValue','graph','propagating','context','shift','readAsync','Can\x20not\x20yield\x20a\x20promise\x20in\x20the\x20synchronous\x20context','hasVariableEntry','calculateTransitionsSync','7CfeZDR','has','cycle','enterGraph','3375830lkWPWW','ongoing','rejectedWith','cycles','clearRejected','getLatestEntryFor','iterationResult','size','reject','value','2578491xtVPcy','candidate','leaveGraph','calculateTransitions','scope','4160ZRabhQ','onEffectSync','40688420SftBuW','postCommit','getOutgoing','populateCandidateScopeFromTransitions','takeLowestLevel','startProgressNotificationsAfterMs','addEdge','11mLvDRJ','equality','from','write','push','getLowestLevel','setValue','onPropagationProgressNotification','getValue','preCommit','propagationStartDate','touch','isWritingUndefined','sync','Cycle\x20during\x20synchronous\x20computation','isShadow','values','Past','startOrigin','lazy','call','filter','setOrigin','selfDependedMarked','clear','Computation\x20cycle.\x20Sync'];_ena=function(){return al;};return _ena();}import{cycleInfo,OnCycleAction}from'../graph/WalkDepth.js';import{runGeneratorAsyncWithEffect,SynchronousCalculationStarted}from'../primitives/Calculation.js';import{delay,isPromise,MAX_SMI}from'../util/Helpers.js';import{LeveledQueue}from'../util/LeveledQueue.js';import{BreakCurrentStackExecution,RejectEffect}from'./Effect.js';function _enu(a,b){return _enb(a- -0x9b,b);}import{Identifier,Levels,throwUnknownIdentifier}from'./Identifier.js';import{EdgeType,TombStone}from'./Quark.js';import{Revision}from'./Revision.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xda;let f=c[d];return f;};return _enb(a,b);}import{ComputationCycle,TransactionCycleDetectionWalkContext}from'./TransactionCycleDetectionWalkContext.js';import{TransactionWalkDepth}from'./TransactionWalkDepth.js';const EdgeTypeNormal=EdgeType[_enu(0x7d,0xc0)];const EdgeTypePast=EdgeType[_enu(0xba,0x6c)];class Transaction extends Base{constructor(){super(...arguments);this[v(-0x1fb,-0x1ec)]=void 0x0;this['candidateClass']=Revision;this[v(-0x1d4,-0x1ca)]=void 0x0;this[v(-0x1eb,-0x203)]=void 0x0;this[v(-0x201,-0x1da)]=![];this[v(-0x1a2,-0x185)]=void 0x0;this['entries']=new Map();this[v(-0x1f1,-0x1b1)]=new LeveledQueue();this[v(-0x223,-0x268)]=[];this[v(-0x1cf,-0x192)]=void 0x0;this[v(-0x1fa,-0x1ac)]=void 0x0;this[v(-0x1bd,-0x183)]=0x0;this[v(-0x211,-0x206)]=0x0;this[v(-0x1c9,-0x1f1)]=0x1f4;this['emitProgressNotificationsEveryMs']=0xc8;this[v(-0x22d,-0x254)]=0x64;this[v(-0x209,-0x204)]=0x0;this[v(-0x1de,-0x1af)]=Promise[v(-0x20a,-0x23c)]();this[v(-0x1b0,-0x1f0)]=![];this['rejectedWith']=void 0x0;function v(a,b){return _enu(a- -0x270,b);}this['stopped']=![];this['hasEntryWithProposedValue']=![];this[v(-0x1e5,-0x1e0)]=![];this[v(-0x1ed,-0x238)]=new Map();this[v(-0x1dc,-0x1af)]=new Set();this['cycledIdentifiers']=new Map();}['initialize'](...a){super[w(0x31e,0x2d2)](...a);this[w(0x37b,0x36d)]=TransactionWalkDepth[w(0x315,0x2fd)]({'visited':this['entries'],'transaction':this,'baseRevision':this[w(0x322,0x2dc)],'pushTo':this[w(0x32c,0x2e3)]});if(!this['candidate'])this[w(0x349,0x382)]=this[w(0x317,0x33d)][w(0x315,0x34d)]({'previous':this[w(0x322,0x2ec)]});this[w(0x34e,0x320)]=this['read']['bind'](this);function w(a,b){return _enu(a-0x2ad,b);}this['onEffectAsync']=this[w(0x336,0x351)][w(0x31d,0x350)](this);}get['dirty'](){function x(a,b){return _enu(a-0x1e9,b);}return this[x(0x2bb,0x2d0)]['size']>0x0;}[_enu(0x69,0x29)](){if(this[y(0x46,0x40)])return;this[y(0x46,0x62)]=!![];function y(a,b){return _enu(a- -0x7a,b);}for(const a of this[y(-0x5,0x4)]['selfDependent']){const b=this[y(0x58,0x1f)][y(0x55,0x26)](a);if(b&&b[y(0x37,0x44)]()===TombStone)continue;this[y(0x3a,-0xc)](a);}}[_enu(0xd7,0x9b)](){function z(a,b){return _enu(a- -0x33f,b);}return this[z(-0x2f2,-0x318)][this[z(-0x2f2,-0x306)][z(-0x2e7,-0x334)]-0x1];}[_enu(0x4a,0x75)](a){if(isPromise(a))return a;function A(a,b){return _enu(a-0x249,b);}return this['graph'][a[A(0x2c2,0x2ea)]](a,this);}['yieldSync'](a){function B(a,b){return _enu(b-0xce,a);}if(isPromise(a)){throw new Error(B(0x133,0x158));}return this['graph'][a[B(0x15a,0x147)]](a,this);}['readAsync'](a){function C(a,b){return _enu(a-0x235,b);}if(!(a instanceof Identifier))return this[C(0x27f,0x28e)](a);let b;const c=this['getActiveEntry']();if(c){b=this[C(0x2dd,0x31e)](a,c,EdgeTypeNormal);}else{b=this[C(0x307,0x2f9)][C(0x304,0x2bb)](a);if(!b){const d=this[C(0x30b,0x343)](a);if(!d)throwUnknownIdentifier(a);b=d[C(0x2a8,0x2f6)]()?d:this[C(0x2e9,0x328)](a);}}if(b['hasValue']())return b[C(0x2e6,0x2d7)]();if(b['promise'])return b['promise'];if(!b[C(0x28f,0x2d3)]||!b['previous'][C(0x2a8,0x295)]())b[C(0x2fa,0x2b5)]();return this[C(0x2c7,0x2d6)]=b[C(0x299,0x2ad)]=this['ongoing'][C(0x2a2,0x27a)](()=>{return((async()=>{function D(a,b){return _enb(b-0x14e,a);}while(this[D(0x284,0x268)]['lowestLevel']<a[D(0x215,0x23d)]){await runGeneratorAsyncWithEffect(this['onEffectAsync'],this[D(0x289,0x257)],[this[D(0x25c,0x25f)],this[D(0x229,0x268)][D(0x2b7,0x28f)]()],this);}if(this['rejectedWith']){throw new Error('Transaction\x20rejected:\x20'+String(this[D(0x26b,0x27c)][D(0x251,0x22a)]));}this[D(0x26c,0x252)]();if(b['getValue']()===void 0x0){await runGeneratorAsyncWithEffect(this['onEffectAsync'],this['calculateTransitionsStackGen'],[this[D(0x230,0x25f)],[b]],this);}if(this['rejectedWith']){throw new Error(D(0x247,0x23f)+String(this[D(0x2aa,0x27c)][D(0x251,0x22a)]));}if(!b[D(0x226,0x25c)]()){throw new Error(D(0x29f,0x2ab));}return b[D(0x2bd,0x29a)]();})());});}[_enu(0xcf,0x116)](a){if(!(a instanceof Identifier))return this[E(0x262,0x21c)](a);let b;const c=this[E(0x25b,0x21f)]();function E(a,b){return _enu(b-0x148,a);}if(c){b=this[E(0x238,0x1f0)](a,c,EdgeTypeNormal);}else{b=this['entries'][E(0x21f,0x217)](a);if(!b){const f=this[E(0x248,0x21e)](a);if(!f)throwUnknownIdentifier(a);b=f[E(0x180,0x1bb)]()?f:this[E(0x1b1,0x1fc)](a);}}const d=b[E(0x226,0x1f9)]();if(d===TombStone)throwUnknownIdentifier(a);if(d!==void 0x0&&b[E(0x1a1,0x1bb)]())return d;if(b[E(0x1a5,0x1ac)])return b[E(0x1e0,0x1ac)];if(!b[E(0x175,0x1a2)]||!b[E(0x1ad,0x1a2)]['hasValue']())b['forceCalculation']();const e=this[E(0x1ef,0x1c3)];while(this[E(0x1c8,0x1c7)][E(0x1d5,0x1f6)]()<a[E(0x16a,0x19c)]){this[E(0x1c9,0x1c3)]=![];this[E(0x257,0x212)](this[E(0x1b0,0x1e9)],this[E(0x191,0x1c7)][E(0x1ab,0x1ee)]());this[E(0x1ed,0x1c3)]=e;}this[E(0x178,0x1b1)]();if(a[E(0x1d7,0x1fe)]){this[E(0x1ca,0x1c3)]=![];this['calculateTransitionsStackSync'](this[E(0x1d5,0x1e9)],[b]);this[E(0x191,0x1c3)]=e;const g=b[E(0x1ba,0x1f9)]();if(g===void 0x0)throw new Error(E(0x1f3,0x1ff));if(g===TombStone)throwUnknownIdentifier(a);return g;}else{const h=this['ongoing']=b[E(0x187,0x1ac)]=this[E(0x1ea,0x1da)]['then'](()=>{function F(a,b){return E(b,a-0x1eb);}if(b[F(0x3e4,0x40a)]()===void 0x0)return runGeneratorAsyncWithEffect(this['onEffectAsync'],this['calculateTransitionsStackGen'],[this[F(0x3a9,0x38c)],[b]],this);})[E(0x1f2,0x1b5)](()=>{if(this[G(-0x222,-0x22a)])throw new Error(G(-0x25f,-0x23f)+String(this[G(-0x222,-0x210)][G(-0x274,-0x290)]));const i=b['getValue']();if(i===void 0x0)throw new Error(G(-0x271,-0x228));function G(a,b){return E(b,a- -0x3fd);}if(i===TombStone)throwUnknownIdentifier(a);return i;});if(DEBUG){h[E(0x15f,0x1ab)]=b;}return h;}}[_enu(0x57,0x28)](a){if(!(a instanceof Identifier))return this[H(-0x272,-0x24e)](a);const b=this[H(-0x244,-0x24f)];this['readingIdentifier']=a;let c;const d=this[H(-0x24f,-0x24b)]();if(d){c=this[H(-0x2ae,-0x27a)](a,d,EdgeTypeNormal);}else{c=this[H(-0x29c,-0x250)][H(-0x228,-0x253)](a);if(!c){const g=this[H(-0x295,-0x24c)](a);if(!g){this[H(-0x246,-0x24f)]=b;throwUnknownIdentifier(a);}c=g[H(-0x2c4,-0x2af)]()?g:this[H(-0x25d,-0x26e)](a);}}const e=c[H(-0x259,-0x271)]();if(e===TombStone){this[H(-0x287,-0x24f)]=b;throwUnknownIdentifier(a);}if(e!==void 0x0){this[H(-0x22c,-0x24f)]=b;return e;}if(!c[H(-0x2ef,-0x2c8)]||!c[H(-0x314,-0x2c8)][H(-0x2c3,-0x2af)]())c['forceCalculation']();while(this[H(-0x271,-0x2a3)][H(-0x278,-0x274)]()<a[H(-0x297,-0x2ce)]){this[H(-0x269,-0x258)](this[H(-0x26a,-0x281)],this[H(-0x27c,-0x2a3)][H(-0x2b9,-0x27c)]());}function H(a,b){return _enu(b- -0x322,a);}this['markSelfDependent']();this['calculateTransitionsStackSync'](this[H(-0x282,-0x281)],[c]);const f=c[H(-0x255,-0x271)]();this[H(-0x23d,-0x24f)]=b;if(f===TombStone){throwUnknownIdentifier(a);}return f;}[_enu(0x49,0x46)](a){const b=this[I(0xa8,0xbc)][I(0xa5,0x88)](a);if(b){const c=b[I(0x87,0x5b)]();if(c!==void 0x0)return c;if(b[I(0x50,0x86)]!==void 0x0)return b[I(0x50,0x8b)];}function I(a,b){return _enu(a- -0x2a,b);}return this[I(0x27,0x15)](a);}[_enu(0xd9,0x9c)](a){const b=this[J(-0x1a5,-0x1c4)][J(-0x1a8,-0x170)](a);function J(a,b){return _enu(a- -0x277,b);}if(b){const c=b[J(-0x1c6,-0x17e)]();if(c!==void 0x0)return c;if(b[J(-0x1fd,-0x22b)]!==void 0x0)return b[J(-0x1fd,-0x234)];}return this[J(-0x215,-0x1c9)](a);}[_enu(0x51,0x5)](a){const b=this[K(0x385,0x399)](a);if(!b)return void 0x0;const c=b[K(0x360,0x38b)]();function K(a,b){return _enu(a-0x2af,b);}return c!==TombStone?c===void 0x0&&a[K(0x36b,0x373)]?this['read'](a):c:void 0x0;}['readPreviousAsync'](a){const b=this[L(-0x24,-0x72)](a);function L(a,b){return _enu(a- -0xfa,b);}if(!b)return void 0x0;const c=b[L(-0x49,-0x19)]();return c!==TombStone?c!==void 0x0?c:this[L(-0x71,-0xb4)](a):void 0x0;}[_enu(0x4c,0x97)](a){const b=this[M(0x2da,0x29a)][M(0x28d,0x297)](a);function M(a,b){return _enu(b-0x1c8,a);}if(b&&b['proposedValue']!==void 0x0){return b[M(0x264,0x242)];}else{return this[M(0x1e7,0x219)](a);}}[_enu(0xd5,0xb0)](a){const b=this[N(0x31,0x77)]['get'](a);function N(a,b){return _enu(a- -0xa1,b);}if(b&&b[N(-0x27,-0x21)]!==void 0x0){return b[N(-0x27,0x20)];}else{return this['readPreviousAsync'](a);}}[_enu(0xac,0x66)](a,b,...c){if(b===void 0x0)b=null;a[O(0x122,0xdd)]['call'](a[O(0xfd,0xce)]||a,a,this,null,b,...c);const d=this['entries']['get'](a);this[O(0x101,0x13e)]=this[O(0x101,0xed)]||!d[O(0x12e,0x16f)]()&&a[O(0xca,0x8a)]===Levels['UserInput'];function O(a,b){return _enu(a-0x76,b);}this[O(0xfa,0xe9)]=this[O(0xfa,0xd5)]||d[O(0xb5,0x68)]();}[_enu(0x5d,0x60)](a){function P(a,b){return _enu(a-0xa9,b);}return this[P(0x15d,0x1a2)](a)[P(0x164,0x122)]();}[_enu(0x45,0x77)](a){const b=this[Q(0x362,0x324)][Q(0x35f,0x342)](a);function Q(a,b){return _enu(a-0x290,b);}return b&&b['origin']===b?b[Q(0x2e3,0x29d)]:void 0x0;}['touch'](a){const b=this['entries'][R(-0x89,-0x60)](a);const {walkContext:c}=this;if(c&&(!b||b[R(-0x108,-0x121)]<c['currentEpoch'])){c['continueFrom']([a]);}const d=b||this[R(-0x86,-0x8c)][R(-0x89,-0x4b)](a);d[R(-0x93,-0x60)]();function R(a,b){return _enu(a- -0x158,b);}return d;}[_enu(0x74,0x73)](a){const b=this[S(0x102,0xc9)][S(0xff,0x122)](a);function S(a,b){return _enu(a-0x30,b);}if(b&&b[S(0xe1,0x106)]()===TombStone)return![];return Boolean(b||this[S(0x106,0xe0)](a));}[_enu(0x5c,0x99)](a,b,...c){let d=this[T(-0x1d8,-0x1ee)][T(-0x1db,-0x1a3)](a);const e=Boolean(d);const f=a[T(-0x256,-0x28d)]===Levels[T(-0x1df,-0x1a2)];if(!d){d=a[T(-0x238,-0x239)](this[T(-0x235,-0x203)]);d[T(-0x250,-0x258)]=this['cachedBaseRevisionLookup'](a);d[T(-0x1e5,-0x19d)]();this[T(-0x1d8,-0x1b3)][T(-0x268,-0x268)](a,d);if(!a[T(-0x1ee,-0x239)]&&!f)this['stackGen'][T(-0x1fd,-0x20e)](d);this['hasVariableEntry']=this[T(-0x21f,-0x20b)]||!d['isShadow']()&&f;this[T(-0x226,-0x252)]=this[T(-0x226,-0x1f4)]||d[T(-0x26b,-0x27b)]();}function T(a,b){return _enu(a- -0x2aa,b);}if(b!==void 0x0||f){d[T(-0x1ef,-0x20f)]();const g=e&&(d[T(-0x230,-0x241)]!==void 0x0||d['value']!==void 0x0);if(!g||d[T(-0x230,-0x206)]===TombStone||d[T(-0x210,-0x210)]===TombStone){a[T(-0x1f5,-0x23c)]=b===void 0x0;a[T(-0x1fe,-0x1cd)][T(-0x1ed,-0x233)](a[T(-0x223,-0x213)]||a,a,this,d,b===void 0x0&&f?null:b,...c);a[T(-0x1f5,-0x1b9)]=![];}}if(d[T(-0x1f9,-0x1c4)]()===TombStone)d[T(-0x210,-0x1d5)]=void 0x0;if(d[T(-0x230,-0x25c)]===TombStone)d[T(-0x230,-0x1f6)]=void 0x0;a[T(-0x21a,-0x21d)](this[T(-0x225,-0x1e3)]);return d;}[_enu(0x55,0x4f)](a){a[U(-0x4f,-0x52)](this[U(-0x88,-0x6a)]);const b=this[U(-0x4c,-0x3b)](a)['startOrigin']();b[U(-0xb,-0x40)](TombStone);function U(a,b){return _enu(b- -0xef,a);}this[U(-0x90,-0x53)][U(-0x56,-0x15)][U(-0xac,-0x83)](a);}[_enu(0xa5,0xc2)](a,b){function V(a,b){return _enu(b- -0x148,a);}if(a[V(-0xbd,-0xa9)]['size']===0x0){a[V(-0xe1,-0xa9)]=b;}else{for(const [c,d]of b){if(d[V(-0x49,-0x90)]()){const e=a[V(-0x8f,-0xb2)](c);const f=e['getOutgoing']();for(const [g,h]of d[V(-0xd4,-0xa4)]()){f[V(-0xf4,-0x106)](g,h);}}else{a[V(-0xd4,-0xa9)]['set'](c,d);}}}}[_enu(0xb2,0x9c)](a){if(this[W(-0x9c,-0xa0)])throw new Error('Can\x20not\x20propagate\x20closed\x20revision');this[W(-0xa2,-0xeb)]();this[W(-0x9c,-0x89)]=!![];function W(a,b){return _enu(a- -0x10b,b);}this[W(-0x58,-0x59)]=Date[W(-0xcb,-0x116)]();this[W(-0xa4,-0xb1)]=this[W(-0x8c,-0x83)][W(-0xb3,-0xea)];}[_enu(0xa3,0x73)](){function X(a,b){return _enu(b- -0x2de,a);}this['populateCandidateScopeFromTransitions'](this['candidate'],this[X(-0x243,-0x20c)]);const a=this[X(-0x1e1,-0x20c)];this[X(-0x23e,-0x210)]=void 0x0;this[X(-0x23d,-0x25b)]=new Map();return{'revision':this[X(-0x28b,-0x242)],'entries':a,'transaction':this};}[_enu(0x7c,0xb4)](a){this[Y(0x441,0x3fc)](a);function Y(a,b){return _enu(b-0x34a,a);}this[Y(0x3a3,0x3d6)](this[Y(0x3ac,0x3eb)]);return this[Y(0x42c,0x3ed)]();}[_enu(0x99,0x88)](a=RejectEffect[_enu(0x68,0x32)]()){this[Z(0x147,0x133)]=a;function Z(a,b){return _enu(a-0xb4,b);}this[Z(0x182,0x180)]=void 0x0;this['clearCycles']();}[_enu(0x4f,0x72)](){this['stopped']=!![];}[_enu(0x95,0xbc)](){function a0(a,b){return _enu(a- -0x2cc,b);}for(const a of this['entries'][a0(-0x213,-0x1f1)]()){a[a0(-0x26e,-0x253)]();}this[a0(-0x1fa,-0x1c3)][a0(-0x20b,-0x246)]();}async['commitAsync'](a){this[a1(0x15c,0x116)](a);function a1(a,b){return _enu(b-0x64,a);}return this[a1(0x119,0xf6)]=this[a1(0x120,0xf6)][a1(0xe0,0xd1)](()=>{function a2(a,b){return a1(a,b- -0x326);}return runGeneratorAsyncWithEffect(this[a2(-0x23a,-0x24c)],this[a2(-0x266,-0x224)],[this[a2(-0x207,-0x24c)]],this);})[a1(0x104,0xd1)](()=>{function a3(a,b){return a1(a,b- -0x305);}return this[a3(-0x21d,-0x1fe)]();});}[_enu(0xd6,0xb0)](a){const b=this[a4(-0x5b,-0x2e)];let c=b[a4(-0x21,0x1e)](a);if(c!==void 0x0)return c;c=this['baseRevision'][a4(-0x1c,-0x1b)](a);function a4(a,b){return _enu(b- -0xb1,a);}b[a4(-0x8c,-0x6f)](a,c);return c;}[_enu(0x96,0x88)](a){function a5(a,b){return _enu(a- -0x29,b);}let b=this['entries']['get'](a)||this[a5(0xad,0xf8)](a);if(b&&b['getValue']()===TombStone)return void 0x0;return b;}[_enu(0xc4,0x8d)](a){let b=this[a6(0x1b9,0x1c2)][a6(0x19f,0x1bf)](a);function a6(a,b){return _enu(b-0xf0,a);}if(b){const c=b[a6(0x1b1,0x1a1)]();if(c===TombStone)return void 0x0;return c===void 0x0&&b['proposedValue']===void 0x0?this[a6(0x194,0x1c6)](a):b;}else{return this['cachedBaseRevisionLookup'](a);}}[_enu(0x47,0x31)](a){let b=this[a7(0x1a0,0x1e4)][a7(0x19d,0x17a)](a);function a7(a,b){return _enu(a-0xce,b);}if(b){const c=b['getValue']();if(c===TombStone)return void 0x0;return c===void 0x0?this[a7(0x1a4,0x1d1)](a):b;}else{return this[a7(0x1a4,0x1ea)](a);}}[_enu(0xa8,0x7a)](a,b,c){function a8(a,b){return _enu(a-0x1ce,b);}const d=b[a8(0x295,0x288)];if(d['level']<a[a8(0x222,0x211)])throw new Error('Identifier can not read from higher level identifier');let e=this[a8(0x2a0,0x254)][a8(0x29d,0x2cc)](a);if(!e){const f=this[a8(0x2a4,0x270)](a);if(!f)throwUnknownIdentifier(a);e=a[a8(0x240,0x22e)](this[a8(0x243,0x270)]);e[a8(0x28d,0x2ba)](f);e[a8(0x228,0x1f9)]=f;this[a8(0x2a0,0x255)]['set'](a,e);}e['addOutgoingTo'](b,c);return e;}[_enu(0x5b,0x92)](a,b){a[a9(0x71,0x51)]();const c=a['identifier'];function a9(a,b){return _enu(b- -0xd,a);}const d=a[a9(0x9a,0x4d)];const e=Boolean(d&&d[a9(0x98,0x66)]()&&c[a9(0xbb,0x9d)](b,d[a9(0xb6,0xa4)]()));if(e){d['outgoingInTheFutureAndPastTransactionCb'](this,g=>{function aa(a,b){return a9(a,b-0xd0);}const h=this[aa(0x147,0x195)]['get'](g[aa(0x17f,0x18a)]);if(h)h['edgesFlow']--;});a['edgesFlow']=MAX_SMI;a['setOrigin'](d[a9(0x83,0x46)]);}else{a['startOrigin']();a['setValue'](b);}let f=![];if(a['usedProposedOrPrevious']){if(a[a9(0x3c,0x6d)]!==void 0x0){if(c[a9(0xe7,0x9d)](b,a[a9(0x26,0x6d)]))f=!![];}else{if(e||!d&&b===null)f=!![];}if(!f)this[a9(0x59,0x8f)][a9(0x8a,0xcd)][a9(0x69,0xb6)](c);}}['onReadIdentifier'](a,b,c){const d=this['addEdge'](a,b,EdgeTypeNormal);function ab(a,b){return _enu(a- -0x149,b);}if(d[ab(-0xd6,-0xe5)]()||d['value']!==void 0x0){const e=d[ab(-0x98,-0x9c)]();if(e===TombStone)throwUnknownIdentifier(a);return b['continueCalculation'](e);}else if(d[ab(-0x91,-0x60)]()){d[ab(-0x8e,-0x99)]();d[ab(-0x84,-0x6d)]();c['push'](d);return void 0x0;}else{if(!d[ab(-0x7c,-0x80)]()){c[ab(-0x9c,-0xbf)](d);if(!d[ab(-0xef,-0xe3)]||!d['previous']['hasValue']())d[ab(-0x84,-0xab)]();return void 0x0;}else{let f;const g=TransactionCycleDetectionWalkContext['new']({'transaction':this,'onCycle'(h,i){f=ComputationCycle[ac(0x35c,0x31a)]({'cycle':cycleInfo(i),'requestedEntry':d,'activeEntry':b});function ac(a,b){return ab(a-0x43d,b);}return OnCycleAction['Cancel'];}});g['startFrom']([d[ab(-0x82,-0x3b)]]);return f;}}}*['calculateTransitions'](a){const b=this[ad(0x4d2,0x4c5)];function ad(a,b){return _enu(a-0x453,b);}while(b[ad(0x4ab,0x4b0)]){yield*this[ad(0x4c1,0x4f1)](a,b[ad(0x4f9,0x529)]());}}[_enu(0x8c,0x49)](a){const b=this[ae(-0x6e,-0xb3)];function ae(a,b){return _enu(b- -0x132,a);}while(b[ae(-0xcb,-0xda)]){this[ae(-0xb6,-0x68)](a,b[ae(-0xd0,-0x8c)]());}}*[_enu(0x6e,0xb9)](a,b){if(this[af(-0x11f,-0x167)]||this[af(-0x137,-0x113)])return;this[af(-0xe4,-0xc0)][af(-0x130,-0x151)]();const c=this['entries'];const d=this['propagationStartDate'];const e=this[af(-0x12d,-0x149)]?this['graph']['enableProgressNotifications']:![];let f=0x0;let g=this[af(-0x165,-0x162)];this[af(-0x165,-0x125)]=b;function af(a,b){return _enu(a- -0x1b2,b);}while(b[af(-0x15a,-0x16f)]&&!this['rejectedWith']&&!this[af(-0x137,-0x17c)]){if(e&&!(f++%this['emitProgressNotificationsEveryCalculations'])){const m=Date[af(-0x172,-0x124)]();const n=m-d;if(n>this[af(-0x10b,-0x127)]){const o=this[af(-0x153,-0x14b)];if(!o||m-o>this[af(-0x152,-0x141)]){this[af(-0x153,-0x181)]=m;this['graph'][af(-0x102,-0x145)]({'total':this['plannedTotalIdentifiersToCalculate'],'remaining':this[af(-0x133,-0x124)][af(-0x15a,-0x131)]+b[af(-0x15a,-0x147)],'phase':af(-0x12c,-0xf5)});this[af(-0x165,-0x1a8)]=g;yield delay(0x0);this[af(-0x165,-0x14b)]=b;}}}if(this[af(-0x11f,-0xe8)]||this[af(-0x137,-0x16e)])break;const h=b[b[af(-0x15a,-0x1a7)]-0x1];const i=h[af(-0xeb,-0x9e)];const j=c[af(-0xe3,-0xc1)](i);if(j!==h){h[af(-0x154,-0x18f)]();b[af(-0x151,-0x126)]();continue;}if(!i['ignoreEdgesFlow']&&h[af(-0x132,-0x12f)]==0x0){h['edgesFlow']--;const p=h[af(-0x158,-0x19a)];p&&p[af(-0xe9,-0xd7)](this,q=>{function ag(a,b){return af(a-0xd6,b);}const r=c[ag(-0xd,-0x2c)](q[ag(-0x15,-0x47)]);if(r)r[ag(-0x5c,-0x6b)]--;});}if(!i[af(-0xea,-0xfa)]&&h['edgesFlow']<0x0&&h[af(-0x158,-0x10d)]&&h[af(-0x158,-0x163)][af(-0x15f,-0x17d)]){h[af(-0xf3,-0xce)](h['previous']['origin']);if(h[af(-0x11a,-0x165)]===0x0){c[af(-0x146,-0x180)](i);}h['cleanup']();b['pop']();continue;}if(h[af(-0x13f,-0x14f)]()||h[af(-0x138,-0x170)]===TombStone){h[af(-0x154,-0x188)]();b[af(-0x151,-0x10e)]();continue;}const k=h[af(-0x162,-0x17e)];let l=h['isCalculationStarted']()?h[af(-0x11b,-0xd7)]:h[af(-0x167,-0x125)](this[af(-0x111,-0x116)]);while(l&&!this[af(-0x11f,-0x115)]&&!this['stopped']){const q=l[af(-0x118,-0x10b)]===void 0x0?null:l[af(-0x118,-0x111)];if(h['isCalculationCompleted']()){if(h[af(-0x162,-0x181)]==k){this[af(-0x157,-0x167)](h,q);}b[af(-0x151,-0x13c)]();break;}else if(q instanceof Identifier){const r=this[af(-0x13b,-0x166)](q,h,b);if(r instanceof ComputationCycle){this['walkContext'][af(-0x130,-0x179)]();this[af(-0x165,-0x14b)]=g;yield*this[af(-0x12d,-0x158)][af(-0x164,-0x15c)](r,this);g=this['activeStack'];this['activeStack']=b;h[af(-0x134,-0xe7)]();l=void 0x0;}else{l=r;}}else if(q===SynchronousCalculationStarted){b[af(-0x151,-0x167)]();break;}else{const s=yield q;if(s===BreakCurrentStackExecution)break;if(h['visitEpoch']===k){l=h[af(-0xe1,-0xf5)](s);}else{b[af(-0x151,-0x162)]();break;}}}}this[af(-0x165,-0x117)]=g;}[_enu(0x65,0x66)](a){this[ah(-0x108,-0x10f)][ah(-0xd9,-0x123)](a);const {cycledIdentifiers:b}=this;a[ah(-0x10d,-0x105)][ah(-0x154,-0x12f)](e=>{b['set'](e,a);});const c=[];function ah(a,b){return _enu(a- -0x19c,b);}let d=a[ah(-0xc4,-0x98)];while(d){b[ah(-0x15a,-0x182)](d[ah(-0xd5,-0xa0)],a);c[ah(-0xef,-0xcb)](...Array[ah(-0xf1,-0xab)](d[ah(-0xe3,-0xa1)]())[ah(-0xde,-0xb9)](e=>!b['has'](e[ah(-0xd5,-0xa0)])));d=c[ah(-0x114,-0x152)]();}}[_enu(0xcc,0xc9)](){function ai(a,b){return _enu(a- -0x267,b);}this[ai(-0x1d3,-0x1dd)]['clear']();this[ai(-0x20e,-0x1f3)][ai(-0x1a6,-0x176)]();}['calculateTransitionsStackSync'](a,b){if(this[aj(0x9d,0x54)]||this[aj(-0x8,0x3c)])return;this[aj(0xa4,0x8f)][aj(0x37,0x43)]();function aj(a,b){return _enu(b- -0x3f,a);}const c=this[aj(0x7a,0x93)];let d=this[aj(-0x3e,0xe)];this[aj(-0x22,0xe)]=b;const {cycledIdentifiers:e}=this;while(b['length']&&!this[aj(0x3a,0x54)]&&!this[aj(0x4a,0x3c)]){const f=b[b['length']-0x1];const g=f[aj(0x64,0x88)];if(e[aj(0xa,0x4f)](g)){f[aj(-0x7,0x1f)]();b[aj(-0xc,0x22)]();continue;}const h=c['get'](g);if(h!==f){f[aj(0x38,0x1f)]();b[aj(-0x1c,0x22)]();continue;}if(f[aj(0x85,0x41)]==0x0){f[aj(0x6d,0x41)]--;const k=f['previous'];k&&k[aj(0xbe,0x8a)](this,l=>{function ak(a,b){return aj(a,b- -0x273);}const m=c[ak(-0x22f,-0x1e3)](l[ak(-0x1a5,-0x1eb)]);if(m)m['edgesFlow']--;});}if(f[aj(0x71,0x41)]<0x0&&f[aj(-0x30,0x1b)]&&f[aj(0x1a,0x1b)][aj(-0x18,0x14)]){f[aj(0x65,0x80)](f[aj(0x2,0x1b)][aj(0x4f,0x14)]);if(f[aj(0x5b,0x59)]===0x0){c[aj(0x73,0x2d)](g);}f['cleanup']();b['pop']();continue;}if(f[aj(0x79,0x34)]()||f[aj(0x38,0x3b)]===TombStone){f[aj(0x21,0x1f)]();b[aj(0x10,0x22)]();continue;}const i=f['visitEpoch'];let j=f[aj(0x71,0x8e)]()?f[aj(0x26,0x58)]:f[aj(-0xc,0xc)](this[aj(0x3b,0x62)]);while(j&&!this[aj(0x91,0x54)]&&!this[aj(0x2,0x3c)]){const l=j[aj(0x98,0x5b)]===void 0x0?null:j[aj(0x67,0x5b)];if(f[aj(0x93,0x87)]()){if(f['visitEpoch']==i){this[aj(0x22,0x1c)](f,l);}b[aj(0x46,0x22)]();break;}else if(l instanceof Identifier){if(e[aj(0x13,0x4f)](l)){j=void 0x0;f[aj(-0x2c,0x1f)]();b[aj(0x69,0x22)]();continue;}const m=this[aj(0x45,0x38)](l,f,b);if(m instanceof ComputationCycle){this[aj(0x8e,0x8f)][aj(0x1a,0x43)]();this[aj(0x14,0xe)]=d;this[aj(0x32,0x46)][aj(0x85,0x39)](m,this);d=this['activeStack'];this[aj(-0x39,0xe)]=b;f[aj(0x49,0x3f)]();j=void 0x0;}else{j=m;}}else if(l===SynchronousCalculationStarted){b[aj(-0x2,0x22)]();break;}else{const n=a(l);if(isPromise(n))throw new Error('Effect\x20resolved\x20to\x20promise\x20in\x20the\x20synchronous\x20context,\x20check\x20that\x20you\x20marked\x20the\x20asynchronous\x20calculations\x20accordingly');if(n===BreakCurrentStackExecution)break;if(f[aj(-0x26,0x11)]===i){j=f[aj(0xdc,0x92)](n);}else{b[aj(-0x2b,0x22)]();break;}}}}this[aj(0x12,0xe)]=d;}}export{EdgeTypeNormal,EdgeTypePast,Transaction};
1
+ (function(a,b){const c=a();function t(a,b){return _enb(b- -0x172,a);}while(!![]){try{const d=parseInt(t(0x21,0x29))/0x1+parseInt(t(-0x5b,-0x73))/0x2*(parseInt(t(-0xb8,-0x6c))/0x3)+-parseInt(t(-0x2b,-0x27))/0x4*(-parseInt(t(-0x27,0x20))/0x5)+parseInt(t(0x28,-0x1))/0x6+parseInt(t(0x17,-0x33))/0x7+parseInt(t(-0x5e,-0x3d))/0x8*(parseInt(t(0x7,-0x2c))/0x9)+parseInt(t(-0x42,-0xc))/0xa*(-parseInt(t(0x15,0x17))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xcfc67));import{Base}from'../class/Base.js';function _enu(a,b){return _enb(b-0xe2,a);}import{DEBUG}from'../environment/Debug.js';import{cycleInfo,OnCycleAction}from'../graph/WalkDepth.js';import{runGeneratorAsyncWithEffect,SynchronousCalculationStarted}from'../primitives/Calculation.js';import{delay,isPromise,MAX_SMI}from'../util/Helpers.js';import{LeveledQueue}from'../util/LeveledQueue.js';import{BreakCurrentStackExecution,RejectEffect}from'./Effect.js';import{Identifier,Levels,throwUnknownIdentifier}from'./Identifier.js';import{EdgeType,TombStone}from'./Quark.js';import{Revision}from'./Revision.js';import{ComputationCycle,TransactionCycleDetectionWalkContext}from'./TransactionCycleDetectionWalkContext.js';import{TransactionWalkDepth}from'./TransactionWalkDepth.js';const EdgeTypeNormal=EdgeType[_enu(0x261,0x232)];function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xff;let f=c[d];return f;};return _enb(a,b);}const EdgeTypePast=EdgeType[_enu(0x254,0x235)];class Transaction extends Base{constructor(){super(...arguments);this[v(0x4d6,0x4dd)]=void 0x0;this[v(0x4f9,0x505)]=Revision;this[v(0x4fa,0x506)]=void 0x0;this[v(0x4ba,0x4d6)]=void 0x0;this[v(0x527,0x52d)]=![];this[v(0x514,0x542)]=void 0x0;this[v(0x54b,0x555)]=new Map();this[v(0x588,0x54f)]=new LeveledQueue();this['activeStack']=[];this['onEffectSync']=void 0x0;this['onEffectAsync']=void 0x0;this[v(0x4ac,0x4da)]=0x0;this['lastProgressNotificationDate']=0x0;this[v(0x516,0x4e9)]=0x1f4;this['emitProgressNotificationsEveryMs']=0xc8;this[v(0x4f4,0x504)]=0x64;function v(a,b){return _enu(a,b-0x2e6);}this['plannedTotalIdentifiersToCalculate']=0x0;this['ongoing']=Promise[v(0x517,0x560)]();this[v(0x50e,0x524)]=![];this[v(0x57c,0x54d)]=void 0x0;this[v(0x497,0x4e6)]=![];this[v(0x548,0x562)]=![];this[v(0x535,0x521)]=![];this['baseRevisionCache']=new Map();this[v(0x4b3,0x4ed)]=new Set();this[v(0x4db,0x4f4)]=new Map();}['initialize'](...a){super[w(-0x16d,-0x147)](...a);this['walkContext']=TransactionWalkDepth['new']({'visited':this['entries'],'transaction':this,'baseRevision':this[w(-0x149,-0x17e)],'pushTo':this[w(-0x134,-0x10c)]});function w(a,b){return _enu(a,b- -0x375);}if(!this['candidate'])this[w(-0x133,-0x155)]=this[w(-0x17f,-0x156)][w(-0x124,-0x113)]({'previous':this[w(-0x168,-0x17e)]});this[w(-0x141,-0x178)]=this[w(-0x13e,-0x189)][w(-0x16f,-0x127)](this);this['onEffectAsync']=this[w(-0x161,-0x164)][w(-0x16a,-0x127)](this);}get['dirty'](){function x(a,b){return _enu(a,b-0x22e);}return this[x(0x4e7,0x49d)][x(0x49b,0x4a5)]>0x0;}[_enu(0x240,0x24f)](){if(this[y(-0xee,-0xbe)])return;this['selfDependedMarked']=!![];function y(a,b){return _enu(b,a- -0x32c);}for(const a of this[y(-0x135,-0xff)]['selfDependent']){const b=this[y(-0xbd,-0xfa)]['get'](a);if(b&&b[y(-0xfc,-0x135)]()===TombStone)continue;this[y(-0xd7,-0x11c)](a);}}[_enu(0x25f,0x27e)](){return this['activeStack'][this['activeStack']['length']-0x1];}['yieldAsync'](a){if(isPromise(a))return a;function z(a,b){return _enu(a,b- -0x40d);}return this[z(-0x246,-0x21d)][a[z(-0x222,-0x1fd)]](a,this);}['yieldSync'](a){function A(a,b){return _enu(b,a- -0x2eb);}if(isPromise(a)){throw new Error('Can\x20not\x20yield\x20a\x20promise\x20in\x20the\x20synchronous\x20context');}return this[A(-0xfb,-0xd3)][a[A(-0xdb,-0x8d)]](a,this);}[_enu(0x21c,0x211)](a){if(!(a instanceof Identifier))return this[B(0x387,0x358)](a);let b;const c=this[B(0x3ac,0x39a)]();if(c){b=this['addEdge'](a,c,EdgeTypeNormal);}else{b=this[B(0x3cb,0x38b)]['get'](a);if(!b){const d=this[B(0x325,0x329)](a);if(!d)throwUnknownIdentifier(a);b=d['hasValue']()?d:this[B(0x3aa,0x371)](a);}}if(b[B(0x331,0x30e)]())return b[B(0x358,0x34c)]();if(b[B(0x340,0x356)])return b[B(0x374,0x356)];if(!b[B(0x331,0x380)]||!b[B(0x369,0x380)][B(0x301,0x30e)]())b[B(0x34c,0x35d)]();function B(a,b){return _enu(a,b-0x11c);}return this[B(0x2ff,0x34d)]=b[B(0x383,0x356)]=this['ongoing'][B(0x361,0x331)](()=>{return((async()=>{while(this[C(-0x25b,-0x250)][C(-0x2cd,-0x28d)]<a[C(-0x2a9,-0x2b7)]){await runGeneratorAsyncWithEffect(this[C(-0x2b9,-0x27a)],this[C(-0x226,-0x251)],[this[C(-0x26d,-0x27a)],this[C(-0x246,-0x250)]['takeLowestLevel']()],this);}if(this[C(-0x28c,-0x252)]){throw new Error(C(-0x2d1,-0x2ad)+String(this[C(-0x22a,-0x252)][C(-0x2ac,-0x2a3)]));}function C(a,b){return _enb(b- -0x3d7,a);}this[C(-0x286,-0x26a)]();if(b[C(-0x2a9,-0x289)]()===void 0x0){await runGeneratorAsyncWithEffect(this[C(-0x2c3,-0x27a)],this['calculateTransitionsStackGen'],[this['onEffectAsync'],[b]],this);}if(this['rejectedWith']){throw new Error(C(-0x2e0,-0x2ad)+String(this[C(-0x245,-0x252)][C(-0x28e,-0x2a3)]));}if(!b[C(-0x308,-0x2c7)]()){throw new Error(C(-0x227,-0x244));}return b['getValue']();})());});}[_enu(0x21d,0x21b)](a){if(!(a instanceof Identifier))return this[D(0x128,0x113)](a);let b;const c=this[D(0x1db,0x1a0)]();if(c){b=this['addEdge'](a,c,EdgeTypeNormal);}else{b=this[D(0x171,0x191)]['get'](a);if(!b){const f=this[D(0x152,0x12f)](a);if(!f)throwUnknownIdentifier(a);b=f[D(0x105,0x114)]()?f:this['touch'](a);}}const d=b[D(0x111,0x152)]();if(d===TombStone)throwUnknownIdentifier(a);if(d!==void 0x0&&b[D(0xe1,0x114)]())return d;if(b[D(0x154,0x15c)])return b[D(0x12c,0x15c)];if(!b[D(0x181,0x186)]||!b[D(0x18a,0x186)][D(0x11a,0x114)]())b[D(0x15b,0x163)]();const e=this['stopped'];while(this[D(0x1c8,0x18b)][D(0x125,0x13f)]()<a[D(0x148,0x124)]){this[D(0x122,0x122)]=![];this[D(0x108,0x11b)](this['onEffectSync'],this['stackGen'][D(0x17b,0x148)]());this[D(0xee,0x122)]=e;}this[D(0x18a,0x171)]();function D(a,b){return _enu(a,b- -0xde);}if(a[D(0x1a6,0x16c)]){this['stopped']=![];this[D(0x156,0x11b)](this[D(0xf8,0x11f)],[b]);this['stopped']=e;const g=b[D(0x140,0x152)]();if(g===void 0x0)throw new Error(D(0xdd,0x127));if(g===TombStone)throwUnknownIdentifier(a);return g;}else{const h=this[D(0x125,0x153)]=b[D(0x113,0x15c)]=this[D(0x19a,0x153)][D(0x120,0x137)](()=>{function E(a,b){return D(a,b-0x2a6);}if(b[E(0x40c,0x3f8)]()===void 0x0)return runGeneratorAsyncWithEffect(this[E(0x3d3,0x407)],this['calculateTransitionsStackGen'],[this[E(0x3d8,0x407)],[b]],this);})['then'](()=>{if(this[F(-0x1a1,-0x158)])throw new Error(F(-0x1fc,-0x1bb)+String(this[F(-0x1a1,-0x1c0)][F(-0x1f2,-0x1d7)]));const i=b[F(-0x1d8,-0x20f)]();if(i===void 0x0)throw new Error(F(-0x1e3,-0x219));function F(a,b){return D(b,a- -0x32a);}if(i===TombStone)throwUnknownIdentifier(a);return i;});if(DEBUG){h[D(0x132,0x146)]=b;}return h;}}[_enu(0x1f5,0x1ec)](a){if(!(a instanceof Identifier))return this['yieldSync'](a);const b=this['readingIdentifier'];this[G(-0xc3,-0xd7)]=a;let c;const d=this[G(-0x27,-0x64)]();if(d){c=this[G(-0xee,-0xfc)](a,d,EdgeTypeNormal);}else{c=this[G(-0x44,-0x73)]['get'](a);if(!c){const g=this['cachedBaseRevisionLookup'](a);if(!g){this[G(-0xa2,-0xd7)]=b;throwUnknownIdentifier(a);}c=g[G(-0x127,-0xf0)]()?g:this['touch'](a);}}const e=c[G(-0xd7,-0xb2)]();if(e===TombStone){this[G(-0x10c,-0xd7)]=b;throwUnknownIdentifier(a);}if(e!==void 0x0){this[G(-0xba,-0xd7)]=b;return e;}if(!c[G(-0x37,-0x7e)]||!c[G(-0xb3,-0x7e)][G(-0xbd,-0xf0)]())c[G(-0xbc,-0xa1)]();while(this['stackGen']['getLowestLevel']()<a['level']){this[G(-0x132,-0xe9)](this['onEffectSync'],this[G(-0x33,-0x79)][G(-0x102,-0xbc)]());}function G(a,b){return _enu(a,b- -0x2e2);}this[G(-0x54,-0x93)]();this[G(-0xb8,-0xe9)](this[G(-0xf6,-0xe5)],[c]);const f=c[G(-0xd0,-0xb2)]();this[G(-0x93,-0xd7)]=b;if(f===TombStone){throwUnknownIdentifier(a);}return f;}[_enu(0x21e,0x1ef)](a){function H(a,b){return _enu(a,b-0x1f2);}const b=this[H(0x459,0x461)][H(0x3f6,0x40d)](a);if(b){const c=b[H(0x3d8,0x422)]();if(c!==void 0x0)return c;if(b[H(0x3ea,0x428)]!==void 0x0)return b[H(0x3ed,0x428)];}return this[H(0x3ca,0x415)](a);}[_enu(0x25a,0x271)](a){function I(a,b){return _enu(b,a- -0x419);}const b=this['entries'][I(-0x1fe,-0x22f)](a);if(b){const c=b[I(-0x1e9,-0x1c7)]();if(c!==void 0x0)return c;if(b[I(-0x1e3,-0x215)]!==void 0x0)return b[I(-0x1e3,-0x19f)];}return this[I(-0x230,-0x23b)](a);}[_enu(0x20e,0x223)](a){function J(a,b){return _enu(b,a-0x264);}const b=this[J(0x471,0x44b)](a);if(!b)return void 0x0;const c=b[J(0x494,0x4b0)]();return c!==TombStone?c===void 0x0&&a[J(0x4b1,0x486)]?this[J(0x450,0x404)](a):c:void 0x0;}[_enu(0x20d,0x1e9)](a){const b=this[K(-0x17,-0x25)](a);function K(a,b){return _enu(b,a- -0x224);}if(!b)return void 0x0;const c=b['getValue']();return c!==TombStone?c!==void 0x0?c:this[K(-0x13,0xa)](a):void 0x0;}[_enu(0x2bb,0x26e)](a){function L(a,b){return _enu(b,a-0x5a);}const b=this['entries'][L(0x275,0x25b)](a);if(b&&b[L(0x290,0x241)]!==void 0x0){return b[L(0x290,0x2d9)];}else{return this[L(0x27d,0x28b)](a);}}[_enu(0x29e,0x254)](a){function M(a,b){return _enu(a,b- -0x2a);}const b=this['entries']['get'](a);if(b&&b[M(0x222,0x20c)]!==void 0x0){return b[M(0x1f9,0x20c)];}else{return this[M(0x1ae,0x1bf)](a);}}[_enu(0x221,0x209)](a,b,...c){function N(a,b){return _enu(b,a- -0x310);}if(b===void 0x0)b=null;a[N(-0x107,-0x114)]['call'](a[N(-0x12b,-0x10d)]||a,a,this,null,b,...c);const d=this[N(-0xa1,-0x7a)][N(-0xf5,-0xac)](a);this[N(-0xd5,-0xb5)]=this['hasVariableEntry']||!d[N(-0xc0,-0xd0)]()&&a[N(-0x10e,-0xe8)]===Levels[N(-0xcd,-0xde)];this['hasEntryWithProposedValue']=this[N(-0x94,-0xa6)]||d['hasProposedValue']();}[_enu(0x1f2,0x22a)](a){function O(a,b){return _enu(b,a- -0x442);}return this[O(-0x1ed,-0x1f5)](a)[O(-0x1dc,-0x1c5)]();}[_enu(0x218,0x222)](a){const b=this[P(-0x1a6,-0x17b)][P(-0x20a,-0x1cf)](a);function P(a,b){return _enu(a,b- -0x3ea);}return b&&b[P(-0x21f,-0x1ee)]===b?b[P(-0x1e1,-0x1ee)]:void 0x0;}[_enu(0x296,0x255)](a){const b=this[Q(0x4b9,0x4c7)][Q(0x465,0x48d)](a);const {walkContext:c}=this;if(c&&(!b||b['visitEpoch']<c[Q(0x435,0x43f)])){c[Q(0x42d,0x470)]([a]);}const d=b||this[Q(0x4b9,0x4f3)][Q(0x465,0x450)](a);function Q(a,b){return _enu(b,a-0x24a);}d['forceCalculation']();return d;}['hasIdentifier'](a){function R(a,b){return _enu(b,a-0x10e);}const b=this[R(0x37d,0x38d)][R(0x329,0x320)](a);if(b&&b[R(0x33e,0x348)]()===TombStone)return![];return Boolean(b||this['cachedBaseRevisionLookup'](a));}[_enu(0x293,0x246)](a,b,...c){let d=this['entries'][S(0x3e1,0x3e9)](a);const e=Boolean(d);const f=a['level']===Levels['UserInput'];function S(a,b){return _enu(b,a-0x1c6);}if(!d){d=a[S(0x425,0x440)](this[S(0x3bd,0x3d3)]);d[S(0x42a,0x466)]=this[S(0x3d3,0x3d4)](a);d[S(0x407,0x40e)]();this[S(0x435,0x433)]['set'](a,d);if(!a['lazy']&&!f)this[S(0x42f,0x479)][S(0x42b,0x3e8)](d);this['hasVariableEntry']=this[S(0x401,0x3d9)]||!d[S(0x416,0x436)]()&&f;this[S(0x442,0x438)]=this[S(0x442,0x41f)]||d[S(0x421,0x43d)]();}if(b!==void 0x0||f){d[S(0x42c,0x450)]();const g=e&&(d['proposedValue']!==void 0x0||d[S(0x430,0x472)]!==void 0x0);if(!g||d['proposedValue']===TombStone||d[S(0x430,0x40b)]===TombStone){a['isWritingUndefined']=b===void 0x0;a[S(0x3cf,0x3e2)]['call'](a['context']||a,a,this,d,b===void 0x0&&f?null:b,...c);a[S(0x3d0,0x3d5)]=![];}}if(d['getValue']()===TombStone)d[S(0x430,0x426)]=void 0x0;if(d[S(0x3fc,0x3d8)]===TombStone)d[S(0x3fc,0x3d3)]=void 0x0;a[S(0x439,0x47c)](this[S(0x3b6,0x3c0)]);return d;}[_enu(0x271,0x276)](a){a[T(-0x106,-0x106)](this[T(-0x116,-0x13f)]);const b=this[T(-0xc6,-0xda)](a)[T(-0xcc,-0xc9)]();function T(a,b){return _enu(a,b- -0x32f);}b[T(-0xde,-0xb7)](TombStone);this['candidate']['selfDependent'][T(-0x10a,-0xc3)](a);}[_enu(0x221,0x256)](a,b){function U(a,b){return _enu(b,a- -0x228);}if(a['scope'][U(0x4f,0x22)]===0x0){a[U(0x30,0x67)]=b;}else{for(const [c,d]of b){if(d[U(0x28,0x6e)]()){const e=a[U(-0x44,-0x76)](c);const f=e[U(-0xe,0x1b)]();for(const [g,h]of d[U(-0xe,0x20)]()){f[U(0x1c,-0xc)](g,h);}}else{a['scope'][U(0x1c,0x3b)](c,d);}}}}[_enu(0x1b6,0x1ee)](a){if(this[V(-0x206,-0x247)])throw new Error(V(-0x1d2,-0x193));this[V(-0x1fe,-0x1d8)]();this[V(-0x206,-0x205)]=!![];this[V(-0x259,-0x228)]=Date[V(-0x26b,-0x268)]();function V(a,b){return _enu(b,a- -0x44d);}this[V(-0x215,-0x25b)]=this[V(-0x1e4,-0x1c9)][V(-0x1db,-0x1c4)];}[_enu(0x1f8,0x1fe)](){function W(a,b){return _enu(b,a- -0xb4);}this[W(0x1a2,0x161)](this[W(0x16c,0x122)],this[W(0x1bb,0x16c)]);const a=this[W(0x1bb,0x1de)];this['walkContext']=void 0x0;this['baseRevisionCache']=new Map();return{'revision':this[W(0x16c,0x171)],'entries':a,'transaction':this};}[_enu(0x246,0x252)](a){this[X(-0x263,-0x255)](a);this[X(-0x21c,-0x1e3)](this['onEffectSync']);function X(a,b){return _enu(a,b- -0x443);}return this[X(-0x238,-0x245)]();}[_enu(0x235,0x212)](a=RejectEffect['new']()){function Y(a,b){return _enu(a,b- -0x1eb);}this['rejectedWith']=a;this[Y(0x73,0x71)]=void 0x0;this['clearCycles']();}[_enu(0x228,0x257)](){function Z(a,b){return _enu(b,a- -0x237);}this[Z(-0x37,-0x2a)]=!![];}['clearRejected'](){function a0(a,b){return _enu(a,b-0x11c);}for(const a of this[a0(0x3b4,0x38b)][a0(0x2f2,0x316)]()){a[a0(0x3ab,0x395)]();}this[a0(0x398,0x38b)][a0(0x2eb,0x324)]();}async[_enu(0x26c,0x240)](a){function a1(a,b){return _enu(b,a-0x196);}this[a1(0x384,0x383)](a);return this['ongoing']=this[a1(0x3c7,0x3ec)][a1(0x3ab,0x39c)](()=>{function a2(a,b){return a1(a-0xfa,b);}return runGeneratorAsyncWithEffect(this[a2(0x4cf,0x4d9)],this[a2(0x47a,0x461)],[this[a2(0x4cf,0x4cb)]],this);})[a1(0x3ab,0x3fa)](()=>{function a3(a,b){return a1(b- -0xde,a);}return this[a3(0x2d0,0x2b6)]();});}['cachedBaseRevisionLookup'](a){function a4(a,b){return _enu(a,b-0x1e9);}const b=this[a4(0x3fb,0x410)];let c=b['get'](a);if(c!==void 0x0)return c;c=this[a4(0x3db,0x3e0)][a4(0x3da,0x3cd)](a);b['set'](a,c);return c;}[_enu(0x19d,0x1e4)](a){let b=this[a5(0x31e,0x344)][a5(0x2ca,0x28c)](a)||this[a5(0x2bc,0x2c7)](a);function a5(a,b){return _enu(b,a-0xaf);}if(b&&b[a5(0x2df,0x2c1)]()===TombStone)return void 0x0;return b;}[_enu(0x1e7,0x1fb)](a){let b=this[a6(0x57f,0x562)][a6(0x53b,0x50e)](a);function a6(a,b){return _enu(a,b-0x2f3);}if(b){const c=b['getValue']();if(c===TombStone)return void 0x0;return c===void 0x0&&b[a6(0x4eb,0x529)]===void 0x0?this[a6(0x4d3,0x500)](a):b;}else{return this[a6(0x4c2,0x500)](a);}}['getLatestStableEntryFor'](a){function a7(a,b){return _enu(a,b- -0x181);}let b=this[a7(0x107,0xee)][a7(0xcc,0x9a)](a);if(b){const c=b[a7(0x64,0xaf)]();if(c===TombStone)return void 0x0;return c===void 0x0?this[a7(0xba,0x8c)](a):b;}else{return this[a7(0xa7,0x8c)](a);}}[_enu(0x218,0x1e6)](a,b,c){function a8(a,b){return _enu(a,b-0x7c);}const d=b[a8(0x31d,0x2e9)];if(d['level']<a[a8(0x2a2,0x27e)])throw new Error('Identifier can not read from higher level identifier');let e=this['entries'][a8(0x268,0x297)](a);if(!e){const f=this[a8(0x2c3,0x289)](a);if(!f)throwUnknownIdentifier(a);e=a['newQuark'](this[a8(0x299,0x273)]);e[a8(0x265,0x2ab)](f);e[a8(0x2bd,0x2e0)]=f;this[a8(0x2f0,0x2eb)][a8(0x2d9,0x2c0)](a,e);}e[a8(0x2f3,0x2d6)](b,c);return e;}[_enu(0x206,0x214)](a,b){a[a9(0x249,0x253)]();function a9(a,b){return _enu(a,b- -0x26);}const c=a[a9(0x293,0x247)];const d=a[a9(0x24e,0x23e)];const e=Boolean(d&&d['hasValue']()&&c[a9(0x20c,0x223)](b,d[a9(0x1d9,0x20a)]()));if(e){d[a9(0x1e1,0x1f3)](this,g=>{function aa(a,b){return a9(b,a- -0x43a);}const h=this[aa(-0x1f1,-0x1b6)][aa(-0x245,-0x288)](g[aa(-0x1f3,-0x237)]);if(h)h[aa(-0x203,-0x1c3)]--;});a['edgesFlow']=MAX_SMI;a[a9(0x1c1,0x209)](d[a9(0x1cf,0x1d6)]);}else{a[a9(0x201,0x240)]();a[a9(0x21f,0x252)](b);}let f=![];if(a[a9(0x1f2,0x23d)]){if(a[a9(0x24b,0x210)]!==void 0x0){if(c[a9(0x1fa,0x223)](b,a['proposedValue']))f=!![];}else{if(e||!d&&b===null)f=!![];}if(!f)this[a9(0x205,0x1fa)][a9(0x1d0,0x1f6)][a9(0x1f2,0x1e9)](c);}}[_enu(0x289,0x25e)](a,b,c){function ab(a,b){return _enu(b,a- -0x291);}const d=this[ab(-0xab,-0x71)](a,b,EdgeTypeNormal);if(d[ab(-0x9f,-0xab)]()||d[ab(-0x27,-0x47)]!==void 0x0){const e=d[ab(-0x61,-0xae)]();if(e===TombStone)throwUnknownIdentifier(a);return b['continueCalculation'](e);}else if(d['isShadow']()){d[ab(-0x2b,-0x68)]();d[ab(-0x50,-0xa)]();c[ab(-0x2c,-0x6f)](d);return void 0x0;}else{if(!d[ab(-0x99,-0x59)]()){c[ab(-0x2c,-0x4)](d);if(!d[ab(-0x2d,-0x67)]||!d[ab(-0x2d,-0x12)][ab(-0x9f,-0xa8)]())d[ab(-0x50,-0x5)]();return void 0x0;}else{let f;const g=TransactionCycleDetectionWalkContext[ab(-0x2f,-0x51)]({'transaction':this,'onCycle'(h,i){function ac(a,b){return ab(a-0x4d1,b);}f=ComputationCycle[ac(0x4a2,0x4cb)]({'cycle':cycleInfo(i),'requestedEntry':d,'activeEntry':b});return OnCycleAction[ac(0x453,0x412)];}});g[ab(-0x5e,-0x55)]([d[ab(-0x24,-0x5c)]]);return f;}}}*[_enu(0x1a3,0x1ea)](a){const b=this[ad(0x1cf,0x205)];function ad(a,b){return _enu(a,b- -0x64);}while(b['length']){yield*this[ad(0x1cd,0x204)](a,b[ad(0x1ff,0x1c2)]());}}[_enu(0x2a6,0x260)](a){function ae(a,b){return _enu(b,a-0x25b);}const b=this[ae(0x4c4,0x4de)];while(b[ae(0x4cd,0x4fd)]){this[ae(0x454,0x487)](a,b[ae(0x481,0x46c)]());}}*[_enu(0x252,0x268)](a,b){if(this[af(0x2d8,0x2de)]||this[af(0x2bc,0x277)])return;this['walkContext'][af(0x283,0x2d0)]();const c=this[af(0x31e,0x2e6)];const d=this[af(0x26f,0x26b)];const e=this[af(0x246,0x267)]?this[af(0x264,0x267)][af(0x2bb,0x2d8)]:![];let f=0x0;let g=this[af(0x2bb,0x2c3)];function af(a,b){return _enu(a,b-0x77);}this[af(0x276,0x2c3)]=b;while(b[af(0x2b2,0x2e9)]&&!this['rejectedWith']&&!this[af(0x2af,0x277)]){if(e&&!(f++%this[af(0x294,0x295)])){const m=Date[af(0x28e,0x259)]();const n=m-d;if(n>this[af(0x279,0x27a)]){const o=this[af(0x2a7,0x276)];if(!o||m-o>this['emitProgressNotificationsEveryMs']){this[af(0x2aa,0x276)]=m;this[af(0x29c,0x267)][af(0x2ee,0x2bc)]({'total':this[af(0x2ab,0x2af)],'remaining':this[af(0x2aa,0x2e0)][af(0x322,0x2e9)]+b['length'],'phase':af(0x2df,0x2b4)});this[af(0x2ec,0x2c3)]=g;yield delay(0x0);this[af(0x2d9,0x2c3)]=b;}}}if(this[af(0x2cb,0x2de)]||this[af(0x278,0x277)])break;const h=b[b[af(0x333,0x2e9)]-0x1];const i=h[af(0x2b6,0x2e4)];const j=c[af(0x27f,0x292)](i);if(j!==h){h['cleanup']();b[af(0x2a6,0x26c)]();continue;}if(!i['ignoreEdgesFlow']&&h[af(0x2ff,0x2d4)]==0x0){h['edgesFlow']--;const p=h[af(0x2e6,0x2db)];p&&p['outgoingInTheFutureAndPastTransactionCb'](this,q=>{const r=c['get'](q[ag(0x1a7,0x1d5)]);function ag(a,b){return af(a,b- -0x10f);}if(r)r[ag(0x1a6,0x1c5)]--;});}if(!i[af(0x229,0x25e)]&&h[af(0x320,0x2d4)]<0x0&&h[af(0x2d0,0x2db)]&&h[af(0x2a1,0x2db)][af(0x22b,0x273)]){h['setOrigin'](h[af(0x2e8,0x2db)][af(0x2b7,0x273)]);if(h[af(0x2d4,0x2ee)]===0x0){c[af(0x2ed,0x2e3)](i);}h[af(0x2ad,0x2f0)]();b['pop']();continue;}if(h[af(0x232,0x269)]()||h['proposedValue']===TombStone){h[af(0x30b,0x2f0)]();b[af(0x2b9,0x26c)]();continue;}const k=h[af(0x260,0x2ab)];let l=h[af(0x232,0x26f)]()?h['iterationResult']:h[af(0x254,0x26a)](this[af(0x25b,0x274)]);while(l&&!this[af(0x2d4,0x2de)]&&!this[af(0x2c1,0x277)]){const q=l['value']===void 0x0?null:l[af(0x2f2,0x2e1)];if(h[af(0x2d9,0x28f)]()){if(h[af(0x286,0x2ab)]==k){this[af(0x2c6,0x28b)](h,q);}b['pop']();break;}else if(q instanceof Identifier){const r=this[af(0x2bd,0x2d5)](q,h,b);if(r instanceof ComputationCycle){this[af(0x2e9,0x2d3)]['startNewEpoch']();this[af(0x30d,0x2c3)]=g;yield*this[af(0x226,0x267)]['onComputationCycleHandler'](r,this);g=this['activeStack'];this[af(0x303,0x2c3)]=b;h['cleanupCalculation']();l=void 0x0;}else{l=r;}}else if(q===SynchronousCalculationStarted){b[af(0x287,0x26c)]();break;}else{const s=yield q;if(s===BreakCurrentStackExecution)break;if(h[af(0x2d1,0x2ab)]===k){l=h[af(0x275,0x2b9)](s);}else{b[af(0x2a9,0x26c)]();break;}}}}this[af(0x2db,0x2c3)]=g;}[_enu(0x26b,0x270)](a){this[ah(0x212,0x251)][ah(0x21a,0x234)](a);function ah(a,b){return _enu(b,a-0xb);}const {cycledIdentifiers:b}=this;a[ah(0x1f8,0x1d3)][ah(0x244,0x1fe)](c=>{function ai(a,b){return ah(b- -0xc7,a);}b[ai(0x1c6,0x188)](c,a);});this[ah(0x242,0x209)](null,a);}['markDependentCycledIdentifiers'](a,b){const {cycledIdentifiers:c}=this;function aj(a,b){return _enu(a,b-0x176);}const d=[];a=a||b[aj(0x35c,0x377)];while(a){c['set'](a[aj(0x3de,0x3e3)],b);d[aj(0x3f3,0x3db)](...Array[aj(0x3b4,0x3c7)](a[aj(0x323,0x370)]())[aj(0x361,0x37a)](e=>!c[aj(0x39a,0x3a1)](e[aj(0x431,0x3e3)])));a=d['shift']();}}['clearCycles'](){this[ak(0x5c,0x57)][ak(0x5d,0x92)]();function ak(a,b){return _enu(b,a- -0x1ab);}this[ak(0x63,0x83)][ak(0x5d,0x27)]();}[_enu(0x21b,0x1f9)](a,b){if(this['rejectedWith']||this[al(-0x176,-0x19c)])return;this[al(-0x11a,-0x14e)]['startNewEpoch']();const c=this[al(-0x107,-0xee)];let d=this['activeStack'];this[al(-0x12a,-0xf7)]=b;const {cycledIdentifiers:e}=this;while(b['length']&&!this[al(-0x10f,-0xf5)]&&!this[al(-0x176,-0x1c0)]){const f=b[b[al(-0x104,-0x107)]-0x1];const g=f[al(-0x109,-0xf5)];if(e['has'](g)){this[al(-0x13f,-0xff)](f,e[al(-0x15b,-0x19f)](g));f['cleanup']();b['pop']();continue;}const h=c[al(-0x15b,-0x135)](g);if(h!==f){f[al(-0xfd,-0xc0)]();b['pop']();continue;}if(f['edgesFlow']==0x0){f[al(-0x119,-0xe2)]--;const k=f['previous'];k&&k['outgoingInTheFutureAndPastTransactionCb'](this,l=>{function am(a,b){return al(b-0x340,a);}const m=c[am(0x1d0,0x1e5)](l[am(0x1f6,0x237)]);if(m)m['edgesFlow']--;});}if(f[al(-0x119,-0x126)]<0x0&&f[al(-0x112,-0xd4)]&&f[al(-0x112,-0x13d)][al(-0x17a,-0x16c)]){f[al(-0x147,-0x18e)](f[al(-0x112,-0xda)][al(-0x17a,-0x1af)]);if(f[al(-0xff,-0x133)]===0x0){c[al(-0x10a,-0x104)](g);}f[al(-0xfd,-0xd2)]();b[al(-0x181,-0x160)]();continue;}if(f['hasValue']()||f['proposedValue']===TombStone){f[al(-0xfd,-0x147)]();b['pop']();continue;}const i=f[al(-0x142,-0x16f)];let j=f[al(-0x17e,-0x14e)]()?f[al(-0x180,-0x199)]:f[al(-0x183,-0x145)](this['onEffectSync']);while(j&&!this[al(-0x10f,-0xd8)]&&!this[al(-0x176,-0x148)]){const l=j[al(-0x10c,-0x158)]===void 0x0?null:j[al(-0x10c,-0xe5)];if(f[al(-0x15e,-0x15e)]()){if(f['visitEpoch']==i){this[al(-0x162,-0x124)](f,l);}b[al(-0x181,-0x16d)]();break;}else if(l instanceof Identifier){if(e[al(-0x14b,-0x13b)](l)){this[al(-0x13f,-0x142)](f,e[al(-0x15b,-0x145)](g));j=void 0x0;f[al(-0xfd,-0xbd)]();b[al(-0x181,-0x191)]();continue;}const m=this[al(-0x118,-0x151)](l,f,b);if(m instanceof ComputationCycle){this['walkContext'][al(-0x11d,-0x101)]();this[al(-0x12a,-0xe1)]=d;this[al(-0x186,-0x193)][al(-0x12b,-0x14c)](m,this);d=this[al(-0x12a,-0x149)];this[al(-0x12a,-0xfb)]=b;f['cleanupCalculation']();j=void 0x0;}else{j=m;}}else if(l===SynchronousCalculationStarted){b['pop']();break;}else{const n=a(l);if(isPromise(n))throw new Error(al(-0x170,-0x149));if(n===BreakCurrentStackExecution)break;if(f[al(-0x142,-0x122)]===i){j=f[al(-0x134,-0x11b)](n);}else{b['pop']();break;}}}}function al(a,b){return _enu(b,a- -0x376);}this[al(-0x12a,-0x122)]=d;}}function _ena(){const an=['readCurrentOrProposedOrPreviousAsync','length','enterGraph','3495wctUNm','Computation\x20cycle.\x20Sync','removeIdentifier','size','setValue','cleanup','resolve','Can\x20not\x20propagate\x20closed\x20revision','hasEntryWithProposedValue','1518059hfIyJz','getActiveEntry','2985602SvcRcM','now','continueFrom','getLatestEntryFor','context','addEdge','ignoreEdgesFlow','3hlpbwJ','readPreviousAsync','calculateTransitions','currentEpoch','read','cycle','preCommit','readCurrentOrProposedOrPrevious','graph','yieldSync','hasValue','startCalculation','propagationStartDate','pop','iterationResult','baseRevision','isCalculationStarted','calculateTransitionsStackSync','values','getLatestStableOrProposedEntryFor','origin','onEffectSync','postCommit','lastProgressNotificationDate','stopped','requestedEntry','level','startProgressNotificationsAfterMs','filter','Cycle\x20during\x20synchronous\x20computation','Effect\x20resolved\x20to\x20promise\x20in\x20the\x20synchronous\x20context,\x20check\x20that\x20you\x20marked\x20the\x20asynchronous\x20calculations\x20accordingly','cycles','clear','write','isWritingUndefined','readingIdentifier','Transaction\x20rejected:\x20','cachedBaseRevisionLookup','cycledIdentifiers','add','handler','readAsync','reject','Cancel','onQuarkCalculationCompleted','then','reason','752dSshKS','isCalculationCompleted','outgoingInTheFutureAndPastTransactionCb','getOutgoing','get','selfDependent','getLowestLevel','emitProgressNotificationsEveryCalculations','candidateClass','candidate','419839XzIiUg','acquireQuarkIfExists','readPrevious','quark','Computation\x20cycle.\x20Async\x20get','takeLowestLevel','baseRevisionCache','108243SXbMeD','leaveGraph','getWriteTarget','has','lowestLevel','6652Cdvspt','initialize','setOrigin','getValue','ongoing','Normal','startFrom','visitEpoch','Past','proposedValue','markDependentCycledIdentifiers','plannedTotalIdentifiersToCalculate','forEach','promise','hasVariableEntry','yieldAsync','propagating','selfDependedMarked','onEffectAsync','commitAsync','forceCalculation','continueCalculation','UserInput','set','onPropagationProgressNotification','addIdentifier','isClosed','33270LlpfZd','equality','sync','onComputationCycleHandlerSync','activeStack','lazy','bind','markSelfDependent','isShadow','from','commit','2287512leKiSf','readProposedOrPreviousAsync','touch','populateCandidateScopeFromTransitions','stop','scope','startNewEpoch','addOutgoingTo','hasProposedValue','walkContext','edgesFlow','onReadIdentifier','newQuark','calculateTransitionsSync','enableProgressNotifications','new','usedProposedOrPrevious','previous','push','startOrigin','rejectedWith','calculateTransitionsStackGen','stackGen','value','16181YiUSWH','delete','identifier','readProposedOrPrevious','entries','addCycle'];_ena=function(){return an;};return _ena();}export{EdgeTypeNormal,EdgeTypePast,Transaction};
@@ -1 +1 @@
1
- function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x149;let f=c[d];return f;};return _enb(a,b);}(function(a,b){const c=a();function M(a,b){return _enb(a-0x1de,b);}while(!![]){try{const d=parseInt(M(0x353,0x352))/0x1*(-parseInt(M(0x345,0x324))/0x2)+-parseInt(M(0x36a,0x353))/0x3*(parseInt(M(0x338,0x318))/0x4)+parseInt(M(0x335,0x33c))/0x5+parseInt(M(0x34a,0x349))/0x6*(parseInt(M(0x333,0x345))/0x7)+parseInt(M(0x367,0x374))/0x8+-parseInt(M(0x342,0x32c))/0x9*(-parseInt(M(0x35c,0x376))/0xa)+-parseInt(M(0x35a,0x35a))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xd5e10));function _ena(){const W=['toTimeZone','4lNDvPZ','getStartOfNextDay','fromTimeZone','Skip',',\x20caching\x20endDate:\x20','get','intervalStore','next','length','schedule','1074015oMvqeM','getUnspecifiedTimeIntervalForWeek','project','262ZldKIq','copy','assign','fillCache','prev','799548jWlzdn','name','map','recurrentStartDate','parentCache',',\x20caching\x20startDate:\x20','getPrioritySortValue','weekUnspecifiedTimeIntervalsByKey','push','7041OVXVvy','cacheStaticIntervals','shift',',\x20recurrentEndDate:\x20','calendar','intervalCache','timeZone','33768075kkRXzo','getTime','70mkGIQE','recurrentDatesTimeZone','intervalUnspecifiedTimeIntervals','combineWith','format','addInterval','getStartDateSchedule','isStatic','set',',\x20recurrentStartDate:\x20','includeInterval','13497648pzrISH','Recurrent\x20interval\x20inconsistency:\x20','splice','2085501jrlhFK','EOD','getAvailabilityEndSchedule','treatInconsistentIntervals','cacheRecurrentInterval','pop','unshift','clear','unspecifiedTimeInterval','compositeIntervalCode','parse','staticIntervalsCached','startDate','70zqBiod','isRecurrent','8541400PALqXO','Throw'];_ena=function(){return W;};return _ena();}import{CalendarCache}from'./CalendarCache.js';function _enN(a,b){return _enb(b-0x2f5,a);}import{CalendarCacheInterval}from'./CalendarCacheInterval.js';import{IntervalCache}from'./IntervalCache.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/TimeZoneHelper.js';import{CalendarIntervalType,TreatInconsistentIntervals}from'../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../util/Constants.js';import _ene from'../vendor/later/later.js';const everySingleDaySchedule=_ene[_enN(0x454,0x458)](_ene[_enN(0x425,0x447)]['text']('every\x201\x20day'));class CalendarCacheSingle extends CalendarCache{constructor(a){super(a);this['staticIntervalsCached']=![];if(!this[O(0x94,0x85)])throw new Error('Required\x20attribute\x20`unspecifiedTimeInterval`\x20is\x20missing');this[O(0xc4,0xa6)]=new Map();function O(a,b){return _enN(b,a- -0x3b1);}this[O(0xb7,0x97)]=new Map();this['treatInconsistentIntervals']=a?.['treatInconsistentIntervals']||TreatInconsistentIntervals[O(0xa1,0xc2)];this[O(0xbe,0xb0)]=new IntervalCache({'emptyInterval':new CalendarCacheInterval({'intervals':[this[O(0x94,0x7e)]],'calendar':this['calendar']}),'combineIntervalsFn':(b,c)=>{function P(a,b){return O(b-0x1f4,a);}return b[P(0x29b,0x2b9)](c);}});}[_enN(0x44c,0x45f)](a,b){if(!this[Q(0x2f6,0x2f8)]){this[Q(0x319,0x333)]();this['staticIntervalsCached']=!![];}function Q(a,b){return _enN(b,a- -0x152);}if(this['parentCache'])this['includeWrappingRangeFrom'](this[Q(0x313,0x2f7)],a,b);const c=this[Q(0x31c,0x331)]['ignoreTimeZone']?null:this[Q(0x31c,0x33a)][Q(0x309,0x31d)]?.['timeZone'];if(a>b)throw new Error('Invalid\x20cache\x20fill\x20interval');for(const d of this[Q(0x303,0x318)]){if(d[Q(0x2f9,0x307)]()){this[Q(0x2ef,0x2d4)](a,b,c,d);}}}['cacheRecurrentInterval'](a,b,c,d){const e=d[R(0x255,0x259)];const f=d['endDate'];function R(a,b){return _enN(b,a- -0x1f4);}const g=d[R(0x280,0x261)];if(e&&e>=b||f&&f<=a)return;const h=d['getAvailabilityStartSchedule']();const i=d[R(0x24b,0x26d)]();const j=d[R(0x285,0x27c)]()||h&&everySingleDaySchedule;const k=d['getEndDateSchedule']();const l=!k||k===R(0x24a,0x255);let m=a;let n=b;let o=j[R(0x26c,0x26c)](0x2,a);let p;if(o){m=o[0x0];if(m[R(0x27e,0x25e)]()===a[R(0x27e,0x299)]()&&o[0x1]){m=o[0x1];}}if(l){const t=j[R(0x262,0x256)](0x1,b);if(t){n=_enc[R(0x25c,0x23c)](t,!![]);}}else{p=k[R(0x262,0x276)](0x2,b);if(p){n=p[0x0];if(n['getTime']()===b[R(0x27e,0x26f)]()&&p[0x1]){n=p[0x1];}}}let q=j[R(0x262,0x24f)](Infinity,m,new Date(n[R(0x27e,0x285)]()-0x3e8));if(!q?.[R(0x263,0x26a)])return;let r=l?q[R(0x26f,0x273)](u=>_enc['getStartOfNextDay'](u,!![])):k[R(0x262,0x25a)](Infinity,m,n);if(!r?.[R(0x263,0x27a)])return;if(q[0x0]['getTime']()===r[0x0]['getTime']()){r[R(0x28c,0x275)](0x0,0x1);}while(e&&q[0x0]<e){if(r[0x0]>e){q[0x0]=e;}else{q[R(0x278,0x293)]();r['shift']();}}while(f&&r[r[R(0x263,0x252)]-0x1]>f){if(q[r[R(0x263,0x285)]-0x1]<f){r[r['length']-0x1]=f;}else{q[R(0x24e,0x24a)]();r[R(0x24e,0x23e)]();}}const s=this[R(0x24c,0x260)];for(let u=0x0,v=q[R(0x263,0x26d)];u<v;u++){const w=q[u],x=r[u];if(!w||!x){break;}if(w>x){if(s===TreatInconsistentIntervals[R(0x25e,0x265)]){r[R(0x28c,0x295)](u,0x1);}else if(s===TreatInconsistentIntervals[R(0x259,0x274)]){throw new Error(R(0x28b,0x28d)+(d[R(0x26e,0x260)]||d['id'])+R(0x272,0x26f)+_enc[R(0x283,0x279)](w)+R(0x25f,0x23f)+_enc[R(0x283,0x292)](x)+R(0x288,0x293)+d[R(0x270,0x251)]+R(0x279,0x298)+d['recurrentEndDate']);}}}if(r[R(0x263,0x276)]>q[R(0x263,0x249)]){r[R(0x263,0x27d)]=q[R(0x263,0x248)];}else if(r[R(0x263,0x244)]<q['length']){q[R(0x263,0x27d)]=r[R(0x263,0x262)];}if(h){const y=[],z=[],A=this['getUnspecifiedTimeIntervalForException'](d,{'isWorking':![]});for(let B=0x0,C=q[R(0x263,0x250)];B<C;B++){const D=q[B],E=r[B];this['intervalCache'][R(0x284,0x26f)](D,E,H=>H['includeInterval'](A));let F=h[R(0x262,0x26c)](Infinity,D,E);if(!F)return;let G=i[R(0x262,0x26f)](Infinity,new Date(D[R(0x27e,0x265)]()+0x3e8),E);if(!G)return;if(G[R(0x263,0x26d)]>F[R(0x263,0x27e)]){G['length']=F[R(0x263,0x26f)];}else if(G['length']<F['length']){F['length']=G[R(0x263,0x261)];}if(G[0x0]<F[0x0]){F[R(0x24f,0x251)](D);G['push'](E);}y[R(0x275,0x264)](...F);z[R(0x275,0x28c)](...G);}q=y;r=z;}for(let H=0x0,I=q[R(0x263,0x263)];H<I;H++){let J=q[H];let K=r[H];if(g!=null){J=_end[R(0x25d,0x23c)](J,g);K=_end[R(0x25d,0x252)](K,g);}if(c!=null){J=_end[R(0x25a,0x250)](J,c);K=_end[R(0x25a,0x245)](K,c);}this['intervalCache'][R(0x284,0x26c)](J,K,L=>L[R(0x289,0x281)](d));}}['getUnspecifiedTimeIntervalForException'](a,b={}){function S(a,b){return _enN(a,b- -0x18e);}let c=this[S(0x2f5,0x2e7)][S(0x2bd,0x2c6)](a);if(!c){c=this[S(0x2d1,0x2b7)][S(0x2e2,0x2cf)]();this[S(0x2f5,0x2e7)][S(0x2d5,0x2ed)](a,c);Object['assign'](c,{'mainInterval':a,'calendar':this['unspecifiedTimeInterval'][S(0x2ed,0x2e0)],'name':a[S(0x2da,0x2d4)],'cls':a['cls'],'startDate':a['startDate'],'endDate':a['endDate'],'prioritySortValue':a[S(0x2eb,0x2d9)]()-0x1,...b});}return c;}[_enN(0x46f,0x45a)](a){function T(a,b){return _enN(a,b- -0x471);}let b=this[T(-0x1e,0x4)][T(-0xc,-0x1d)](a);if(!b){const c=a[T(-0x19,-0x2b)];b=this[T(-0x1d,-0x9)][T(-0x3f,-0x1d)](c);if(!b){b=this[T(-0x30,-0x2c)][T(-0x32,-0x14)]();this[T(0xd,0x4)][T(-0xf,0xa)](a,b);this[T(0x14,-0x9)][T(-0x4,0xa)](c,b);Object[T(-0x24,-0x13)](b,{'mainInterval':a,'calendar':this[T(-0x3b,-0x2c)]['calendar'],'name':a['name'],'cls':a['cls'],'startDate':a[T(-0x26,-0x28)],'endDate':a['endDate'],'prioritySortValue':a[T(0x9,-0xa)]()-0x1});}}return b;}[_enN(0x442,0x444)](){function U(a,b){return _enN(b,a- -0x3c0);}this[U(0x88,0x6f)]=![];super[U(0x84,0x80)]();}[_enN(0x44d,0x46b)](){function V(a,b){return _enN(b,a- -0x18);}const a=this[V(0x456,0x464)][V(0x443,0x444)]?.[V(0x458,0x45b)];const b=this[V(0x457,0x477)];for(let c of this['intervalStore']){const d=c[V(0x462,0x47b)]();const e=c['type']===CalendarIntervalType['Week'];if(d||e){if(e){c=this[V(0x442,0x453)](c);}let {startDate:f,endDate:g}=c;if(a!=null){f=_end[V(0x436,0x423)](f,a);g=_end[V(0x436,0x435)](g,a);}b[V(0x460,0x464)](f||MIN_DATE,g||MAX_DATE,h=>h[V(0x465,0x476)](c));}}}}export{CalendarCacheSingle};
1
+ (function(a,b){function M(a,b){return _enb(b- -0x4,a);}const c=a();while(!![]){try{const d=-parseInt(M(0x126,0x11f))/0x1*(-parseInt(M(0x103,0x117))/0x2)+parseInt(M(0x10a,0x120))/0x3*(parseInt(M(0x107,0xfa))/0x4)+parseInt(M(0xbc,0xde))/0x5*(parseInt(M(0xcc,0xe7))/0x6)+parseInt(M(0xd0,0xdf))/0x7*(parseInt(M(0xc9,0xee))/0x8)+parseInt(M(0x10e,0xec))/0x9+parseInt(M(0xf2,0xe3))/0xa+parseInt(M(0x102,0xdc))/0xb*(-parseInt(M(0xea,0xf0))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x343ea));function _enN(a,b){return _enb(a- -0x32b,b);}import{CalendarCache}from'./CalendarCache.js';import{CalendarCacheInterval}from'./CalendarCacheInterval.js';import{IntervalCache}from'./IntervalCache.js';import _enc from'@bryntum/core-thin/lib/helper/DateHelper.js';import _end from'@bryntum/core-thin/lib/helper/TimeZoneHelper.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0xdc;let f=c[d];return f;};return _enb(a,b);}import{CalendarIntervalType,TreatInconsistentIntervals}from'../scheduling/Types.js';import{MAX_DATE,MIN_DATE}from'../util/Constants.js';function _ena(){const W=['isRecurrent','includeWrappingRangeFrom','cacheStaticIntervals',',\x20recurrentEndDate:\x20','intervalCache','push','Recurrent\x20interval\x20inconsistency:\x20','unshift','Required\x20attribute\x20`unspecifiedTimeInterval`\x20is\x20missing','intervalUnspecifiedTimeIntervals','shift','recurrentEndDate','isStatic','get','13850zYGeOS','getAvailabilityStartSchedule','includeInterval','name','assign',',\x20recurrentStartDate:\x20','Throw','set','1rmSOtz','63OguCKD','startDate',',\x20caching\x20endDate:\x20','recurrentDatesTimeZone','compositeIntervalCode','cacheRecurrentInterval','endDate','map','721303RoWZPy','Week','2195RPXGiN','196wCYWDM','Skip','next','splice','1213930UpJdzw','project','toTimeZone','parentCache','2742sPjyAU','clear','addInterval','treatInconsistentIntervals','fromTimeZone','3763287QFywLO','pop','109192dDNkvo','format','204WCvidG','combineWith','Invalid\x20cache\x20fill\x20interval','every\x201\x20day','prev','calendar','copy','cls','intervalStore','getUnspecifiedTimeIntervalForException','37996puEcec','getTime','weekUnspecifiedTimeIntervalsByKey','timeZone','unspecifiedTimeInterval','getEndDateSchedule','text','parse','staticIntervalsCached','getStartDateSchedule','getPrioritySortValue','getStartOfNextDay','getAvailabilityEndSchedule','length','getUnspecifiedTimeIntervalForWeek'];_ena=function(){return W;};return _ena();}import _ene from'../vendor/later/later.js';const everySingleDaySchedule=_ene['schedule'](_ene[_enN(-0x226,-0x241)][_enN(-0x227,-0x249)](_enN(-0x234,-0x21d)));class CalendarCacheSingle extends CalendarCache{constructor(a){super(a);this[O(0x1bd,0x1a5)]=![];if(!this[O(0x197,0x1a1)])throw new Error(O(0x1a6,0x1b4));this['intervalUnspecifiedTimeIntervals']=new Map();function O(a,b){return _enN(b-0x3ca,a);}this[O(0x1ac,0x19f)]=new Map();this[O(0x184,0x18d)]=a?.[O(0x19b,0x18d)]||TreatInconsistentIntervals[O(0x176,0x183)];this[O(0x1c4,0x1b0)]=new IntervalCache({'emptyInterval':new CalendarCacheInterval({'intervals':[this[O(0x194,0x1a1)]],'calendar':this['calendar']}),'combineIntervalsFn':(b,c)=>{function P(a,b){return O(b,a-0x271);}return b[P(0x405,0x408)](c);}});}['fillCache'](a,b){if(!this[Q(0x339,0x35c)]){this['cacheStaticIntervals']();this[Q(0x339,0x31f)]=!![];}if(this[Q(0x31d,0x30b)])this[Q(0x341,0x334)](this[Q(0x31d,0x30f)],a,b);const c=this[Q(0x32c,0x329)]['ignoreTimeZone']?null:this[Q(0x32c,0x333)][Q(0x31b,0x301)]?.[Q(0x334,0x34b)];function Q(a,b){return _enN(a-0x55e,b);}if(a>b)throw new Error(Q(0x329,0x33c));for(const d of this[Q(0x32f,0x339)]){if(d[Q(0x340,0x323)]()){this[Q(0x310,0x323)](a,b,c,d);}}}[_enN(-0x24e,-0x241)](a,b,c,d){const e=d[R(-0x2f,-0x4c)];const f=d['endDate'];const g=d[R(-0x5f,-0x4a)];if(e&&e>=b||f&&f<=a)return;const h=d[R(-0x56,-0x55)]();const i=d[R(-0x79,-0x67)]();const j=d[R(-0x6c,-0x6a)]()||h&&everySingleDaySchedule;const k=d[R(-0x5c,-0x6e)]();function R(a,b){return _enN(b-0x1ba,a);}const l=!k||k==='EOD';let m=a;let n=b;let o=j[R(-0x67,-0x79)](0x2,a);let p;if(o){m=o[0x0];if(m[R(-0x85,-0x72)]()===a[R(-0x89,-0x72)]()&&o[0x1]){m=o[0x1];}}if(l){const t=j[R(-0xb2,-0x8c)](0x1,b);if(t){n=_enc[R(-0x61,-0x68)](t,!![]);}}else{p=k[R(-0x98,-0x8c)](0x2,b);if(p){n=p[0x0];if(n[R(-0x5f,-0x72)]()===b[R(-0x66,-0x72)]()&&p[0x1]){n=p[0x1];}}}let q=j[R(-0x91,-0x8c)](Infinity,m,new Date(n['getTime']()-0x3e8));if(!q?.[R(-0x63,-0x66)])return;let r=l?q[R(-0x87,-0x92)](u=>_enc[R(-0x7e,-0x68)](u,!![])):k[R(-0x77,-0x8c)](Infinity,m,n);if(!r?.[R(-0x7c,-0x66)])return;if(q[0x0][R(-0x98,-0x72)]()===r[0x0]['getTime']()){r[R(-0x76,-0x8b)](0x0,0x1);}while(e&&q[0x0]<e){if(r[0x0]>e){q[0x0]=e;}else{q['shift']();r[R(-0x56,-0x5a)]();}}while(f&&r[r[R(-0x75,-0x66)]-0x1]>f){if(q[r[R(-0x7c,-0x66)]-0x1]<f){r[r[R(-0x7f,-0x66)]-0x1]=f;}else{q[R(-0x78,-0x80)]();r[R(-0x9c,-0x80)]();}}const s=this[R(-0x96,-0x83)];for(let u=0x0,v=q[R(-0x55,-0x66)];u<v;u++){const w=q[u],x=r[u];if(!w||!x){break;}if(w>x){if(s===TreatInconsistentIntervals[R(-0x88,-0x8d)]){r[R(-0x7a,-0x8b)](u,0x1);}else if(s===TreatInconsistentIntervals[R(-0x30,-0x50)]){throw new Error(R(-0x84,-0x5e)+(d[R(-0x78,-0x53)]||d['id'])+',\x20caching\x20startDate:\x20'+_enc[R(-0x6a,-0x7e)](w)+R(-0x53,-0x4b)+_enc[R(-0x7e,-0x7e)](x)+R(-0x5a,-0x51)+d['recurrentStartDate']+R(-0x68,-0x61)+d[R(-0x59,-0x59)]);}}}if(r['length']>q[R(-0x43,-0x66)]){r[R(-0x46,-0x66)]=q['length'];}else if(r[R(-0x68,-0x66)]<q['length']){q[R(-0x53,-0x66)]=r['length'];}if(h){const y=[],z=[],A=this[R(-0x62,-0x74)](d,{'isWorking':![]});for(let B=0x0,C=q[R(-0x58,-0x66)];B<C;B++){const D=q[B],E=r[B];this[R(-0x42,-0x60)][R(-0x5f,-0x84)](D,E,H=>H[R(-0x67,-0x54)](A));let F=h[R(-0x77,-0x8c)](Infinity,D,E);if(!F)return;let G=i[R(-0x9f,-0x8c)](Infinity,new Date(D[R(-0x7a,-0x72)]()+0x3e8),E);if(!G)return;if(G[R(-0x75,-0x66)]>F[R(-0x6f,-0x66)]){G[R(-0x48,-0x66)]=F[R(-0x5d,-0x66)];}else if(G[R(-0x57,-0x66)]<F[R(-0x48,-0x66)]){F[R(-0x87,-0x66)]=G[R(-0x4a,-0x66)];}if(G[0x0]<F[0x0]){F[R(-0x56,-0x5d)](D);G[R(-0x7f,-0x5f)](E);}y[R(-0x4e,-0x5f)](...F);z[R(-0x4c,-0x5f)](...G);}q=y;r=z;}for(let H=0x0,I=q[R(-0x58,-0x66)];H<I;H++){let J=q[H];let K=r[H];if(g!=null){J=_end[R(-0xa0,-0x82)](J,g);K=_end[R(-0x65,-0x82)](K,g);}if(c!=null){J=_end[R(-0xa9,-0x88)](J,c);K=_end[R(-0xa5,-0x88)](K,c);}this['intervalCache']['addInterval'](J,K,L=>L[R(-0x36,-0x54)](d));}}[_enN(-0x22e,-0x20a)](a,b={}){function S(a,b){return _enN(a- -0x3b,b);}let c=this[S(-0x250,-0x231)]['get'](a);if(!c){c=this[S(-0x264,-0x269)][S(-0x26c,-0x28a)]();this['intervalUnspecifiedTimeIntervals'][S(-0x244,-0x21f)](a,c);Object[S(-0x247,-0x242)](c,{'mainInterval':a,'calendar':this[S(-0x264,-0x282)][S(-0x26d,-0x285)],'name':a[S(-0x248,-0x22e)],'cls':a[S(-0x26b,-0x27d)],'startDate':a['startDate'],'endDate':a[S(-0x288,-0x264)],'prioritySortValue':a[S(-0x25e,-0x257)]()-0x1,...b});}return c;}[_enN(-0x21f,-0x21b)](a){let b=this['intervalUnspecifiedTimeIntervals'][T(-0x144,-0x138)](a);function T(a,b){return _enN(b-0xd9,a);}if(!b){const c=a[T(-0x15b,-0x176)];b=this[T(-0x175,-0x152)][T(-0x152,-0x138)](c);if(!b){b=this['unspecifiedTimeInterval'][T(-0x17d,-0x158)]();this['intervalUnspecifiedTimeIntervals']['set'](a,b);this[T(-0x141,-0x152)][T(-0x127,-0x130)](c,b);Object[T(-0x116,-0x133)](b,{'mainInterval':a,'calendar':this['unspecifiedTimeInterval']['calendar'],'name':a[T(-0x13b,-0x134)],'cls':a[T(-0x133,-0x157)],'startDate':a[T(-0x10f,-0x12d)],'endDate':a[T(-0x192,-0x174)],'prioritySortValue':a[T(-0x143,-0x14a)]()-0x1});}}return b;}[_enN(-0x23f,-0x219)](){this[U(-0x1df,-0x1f2)]=![];function U(a,b){return _enN(b-0x33,a);}super[U(-0x223,-0x20c)]();}[_enN(-0x21c,-0x23e)](){function V(a,b){return _enN(b-0x663,a);}const a=this[V(0x44f,0x431)][V(0x401,0x420)]?.[V(0x447,0x439)];const b=this[V(0x45f,0x449)];for(let c of this['intervalStore']){const d=c[V(0x43e,0x451)]();const e=c['type']===CalendarIntervalType[V(0x429,0x419)];if(d||e){if(e){c=this[V(0x444,0x444)](c);}let {startDate:f,endDate:g}=c;if(a!=null){if(f){f=_end[V(0x414,0x421)](f,a);}if(g){g=_end['toTimeZone'](g,a);}}b[V(0x42d,0x425)](f||MIN_DATE,g||MAX_DATE,h=>h['includeInterval'](c));}}}}export{CalendarCacheSingle};
@@ -1 +1 @@
1
- function _ena(){const m=['pick','phase1','endDate','lateSchedule','70NFsJzb','pickPushingEndDateIdentifier','earlyPreSchedule','phase','5070856SSiqFi','Backward','direction','effectiveDirection','4279011hKJoiy','1180JbaEoA','4455044Xywasc','latePreSchedule','10yqwWJU','pickOpposite','4020903DBAnck','543016HmxjXS','getProject','earlySchedule','startDate','962mEhzMO','45dQtwwb','pickPushingSchedule','567126AzHTJO','Forward'];_ena=function(){return m;};return _ena();}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1f2;let f=c[d];return f;};return _enb(a,b);}(function(a,b){function f(a,b){return _enb(a- -0xc,b);}const c=a();while(!![]){try{const d=-parseInt(f(0x1e9,0x1f6))/0x1*(parseInt(f(0x1fb,0x204))/0x2)+-parseInt(f(0x1fa,0x1fd))/0x3+-parseInt(f(0x201,0x201))/0x4*(-parseInt(f(0x1ea,0x1f5))/0x5)+-parseInt(f(0x1ec,0x1e9))/0x6*(-parseInt(f(0x1f2,0x1ed))/0x7)+parseInt(f(0x1f6,0x1f5))/0x8+-parseInt(f(0x200,0x1fb))/0x9*(-parseInt(f(0x1fe,0x1f1))/0xa)+-parseInt(f(0x1fc,0x1fd))/0xb;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xcf33b));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Direction}from'../../../scheduling/Types.js';import{ConstrainedByDependenciesEventScheduleMixin}from'../scheduler_pro/ConstrainedByDependenciesEventScheduleMixin.js';class ConstrainedLateScheduleMixin extends Mixin([ConstrainedByDependenciesEventScheduleMixin],a=>{function g(a,b){return _enb(b- -0x1a9,a);}class b extends a{[g(0x59,0x51)](c){function h(a,b){return g(a,b- -0xc0);}if(this[h(-0x60,-0x68)]===h(-0x68,-0x6e)){return this['direction']===Direction[h(-0x7e,-0x70)]?c['earlyPreSchedule']:c['latePreSchedule'];}else{return this[h(-0x68,-0x65)]===Direction[h(-0x6b,-0x70)]?c[h(-0x74,-0x76)]:c[h(-0x67,-0x6c)];}}[g(0x57,0x62)](c){function i(a,b){return g(b,a- -0xa4);}if(this['phase']===i(-0x52,-0x5a)){return this[i(-0x49,-0x44)]===Direction['Forward']?c[i(-0x44,-0x3b)]:c[i(-0x4d,-0x42)];}else{return this[i(-0x49,-0x4b)]===Direction[i(-0x54,-0x48)]?c[i(-0x50,-0x4c)]:c['earlySchedule'];}}*[g(0x5c,0x4e)](c,d){function j(a,b){return g(a,b- -0xf7);}if(this['phase']===j(-0xac,-0xa5)){return this[j(-0x9f,-0xa6)](c);}else{const e=yield this[j(-0xad,-0xae)]()['$'][j(-0xa0,-0x9b)];if(this[j(-0x9c,-0x9c)]===Direction['Forward']){if(d[j(-0x93,-0x9c)]===Direction[j(-0xa1,-0x9d)]&&e[j(-0x97,-0x9c)]===Direction[j(-0xb1,-0xa7)]){return c['latePreSchedule'];}else{return c[j(-0xa3,-0xad)];}}else{if(d['direction']===Direction[j(-0xa3,-0xa7)]&&e[j(-0xa3,-0x9c)]===Direction[j(-0x91,-0x9d)]){return c[j(-0x9f,-0xa0)];}else{return c[j(-0xa1,-0xa3)];}}}}*['pickPushingStartDateIdentifier'](c){function k(a,b){return g(b,a- -0x1b);}return(yield*this['pickPushingSchedule'](c,yield c['$']['startDateDirection']))['$'][k(0x30,0x3a)];}*[g(0x5d,0x56)](c){function l(a,b){return g(b,a-0x2fb);}return(yield*this['pickPushingSchedule'](c,yield c['$']['endDateDirection']))['$'][l(0x34e,0x355)];}}return b;}){}export{ConstrainedLateScheduleMixin};
1
+ (function(a,b){function f(a,b){return _enb(b- -0x213,a);}const c=a();while(!![]){try{const d=parseInt(f(-0x63,-0x53))/0x1+-parseInt(f(-0x57,-0x48))/0x2+parseInt(f(-0x46,-0x56))/0x3*(parseInt(f(-0x67,-0x5b))/0x4)+parseInt(f(-0x62,-0x60))/0x5*(parseInt(f(-0x65,-0x58))/0x6)+parseInt(f(-0x4b,-0x4f))/0x7+-parseInt(f(-0x5e,-0x57))/0x8*(-parseInt(f(-0x65,-0x55))/0x9)+parseInt(f(-0x67,-0x5e))/0xa*(-parseInt(f(-0x50,-0x52))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x3071e));import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{Direction}from'../../../scheduling/Types.js';import{ConstrainedByDependenciesEventScheduleMixin}from'../scheduler_pro/ConstrainedByDependenciesEventScheduleMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1b3;let f=c[d];return f;};return _enb(a,b);}class ConstrainedLateScheduleMixin extends Mixin([ConstrainedByDependenciesEventScheduleMixin],a=>{function g(a,b){return _enb(a- -0x29,b);}class b extends a{[g(0x191,0x193)](c){function h(a,b){return g(a-0x2f9,b);}if(this[h(0x489,0x498)]===h(0x49a,0x49f)){return this[h(0x493,0x48d)]===Direction[h(0x498,0x488)]?c[h(0x49d,0x494)]:c['latePreSchedule'];}else{return this[h(0x493,0x48b)]===Direction[h(0x498,0x499)]?c[h(0x49f,0x4a6)]:c[h(0x499,0x48d)];}}['pickOpposite'](c){function i(a,b){return g(b-0x235,a);}if(this[i(0x3d4,0x3c5)]===i(0x3cc,0x3d6)){return this[i(0x3d1,0x3cf)]===Direction[i(0x3e4,0x3d4)]?c['latePreSchedule']:c[i(0x3d0,0x3d9)];}else{return this['direction']===Direction[i(0x3df,0x3d4)]?c[i(0x3da,0x3d5)]:c[i(0x3e8,0x3db)];}}*[g(0x1a8,0x1a4)](c,d){function j(a,b){return g(a-0x9c,b);}if(this['phase']==='phase1'){return this['pick'](c);}else{const e=yield this[j(0x241,0x248)]['$'][j(0x23f,0x24a)];if(this[j(0x236,0x23d)]===Direction[j(0x23b,0x22c)]){if(d[j(0x236,0x231)]===Direction[j(0x22a,0x234)]&&e[j(0x227,0x21a)]===j(0x243,0x23d)&&e[j(0x236,0x238)]===Direction[j(0x23b,0x237)]){return c[j(0x239,0x245)];}return c[j(0x242,0x23e)];}else{if(d[j(0x236,0x245)]===Direction[j(0x23b,0x23a)]&&e[j(0x227,0x237)]===j(0x243,0x23f)&&e[j(0x236,0x240)]===Direction[j(0x22a,0x235)]){return c[j(0x240,0x237)];}return c[j(0x23c,0x230)];}}}*[g(0x199,0x19d)](c){function k(a,b){return g(b-0x3da,a);}return(yield*this[k(0x577,0x582)](c,yield c['$'][k(0x563,0x567)]))['$']['startDate'];}*[g(0x19e,0x1a4)](c){function l(a,b){return g(b-0xd9,a);}return(yield*this[l(0x27b,0x281)](c,yield c['$'][l(0x26e,0x275)]))['$'][l(0x260,0x26f)];}}return b;}){}function _ena(){const m=['1285rPEzIv','kind','6961810rIspdF','startDateDirection','Backward','636YjWbRm','phase','pick','9138DZMxuY','403384ISSZes','7401lyGEMO','9MdUuPS','endDate','9428PezteC','11gjUNXj','pickPushingStartDateIdentifier','direction','1729441Asbwcx','endDateDirection','latePreSchedule','pickPushingEndDateIdentifier','Forward','lateSchedule','phase1','391934pzzniP','effectiveDirection','earlyPreSchedule','event','earlySchedule','inherited','pickPushingSchedule'];_ena=function(){return m;};return _ena();}export{ConstrainedLateScheduleMixin};
@@ -1 +1 @@
1
- function _ena(){const S=['shouldRollupChildEarlyStartDate','maybeSkipNonWorkingTime','calculateMinChildrenStartDate','onNonEmptyEffectiveInterval','Start','getTime','End','startDateConstraintIntervals','20crKBPm','1141657UcJxlX','autoScheduleManualTasksOnSecondPass','resolved','endDate','constraintType','pick','concat','calculateLateStartDateConstraintIntervals','shouldRollupChildLateStartDate','calculateEndDate','minChildrenStartDate','removeField','decorate','end','defineProperty','value','isDateConstraintInterval','project','direction','changeDateConstraintIntervalOnConflict','add','84wwrzfn','event','shouldRollupChildEarlyEndDate','return','function','startDateIsFinite','doCalculateEffectiveEndDateInterval','isIntervalEmpty','kind','phase1','40HAltge','doCalculateEffectiveStartDateInterval','onEmptyEffectiveInterval','effectiveDirection','object','1688wyWWqX','start','isInfinite','endDateIsFinite','calculateStartDate','endDateConstraintIntervals','isManuallyScheduled','setupFields','shouldRollupChildEndDate','14670PfsUNN','3BNkBOU','FinishNoLaterThan','map','copyWith','side','isConstrained','33266PSgSqA','maxChildrenEndDate','783965PGYRql','skipNonWorkingTime','3679962kgnoWK','calculateEndDateConstraintIntervals','shouldSkipNonWorkingTime','calculateMaxChildrenEndDate','prototype','intersectionOf','409056tuzBDX','hasSubEvents','StartNoLaterThan','length','Forward','calculateStartDateConstraintIntervals','shouldRollupChildStartDate','Implement\x20me','containsDate','getOwnPropertyDescriptor','startDate','7076404yZFmZm','1NYtxyc','filter','new','calculateEffectiveConstraintInterval','date','getProject','orderedParentIndex','isDependencyConstraintInterval','FinishNoEarlierThan','StartNoEarlierThan','calculateProjectedXDateWithDuration','calculateLateEndDateConstraintIntervals','earlyPreSchedule','subEventsIterable'];_ena=function(){return S;};return _ena();}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x118;let f=c[d];return f;};return _enb(a,b);}(function(a,b){function p(a,b){return _enb(a-0x2ab,b);}const c=a();while(!![]){try{const d=parseInt(p(0x3fd,0x3fe))/0x1*(-parseInt(p(0x3e7,0x409))/0x2)+-parseInt(p(0x3e1,0x3e6))/0x3*(-parseInt(p(0x3fc,0x3e3))/0x4)+parseInt(p(0x3d2,0x3ad))/0x5*(parseInt(p(0x3f1,0x3d6))/0x6)+parseInt(p(0x3e9,0x3df))/0x7+-parseInt(p(0x3d7,0x3be))/0x8*(-parseInt(p(0x3e0,0x401))/0x9)+parseInt(p(0x413,0x3e9))/0xa*(parseInt(p(0x414,0x43c))/0xb)+-parseInt(p(0x3c8,0x3a3))/0xc*(parseInt(p(0x3eb,0x400))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xef391));var __decorate=function(a,b,e,f){function q(a,b){return _enb(a-0x2a,b);}var g=arguments[q(0x173,0x170)],h=g<0x3?b:f===null?f=Object[q(0x179,0x154)](b,e):f,j;if(typeof Reflect===q(0x155,0x14c)&&typeof Reflect[q(0x19f,0x1c7)]===q(0x14b,0x13f))h=Reflect[q(0x19f,0x1ad)](a,b,e,f);else for(var k=a[q(0x173,0x198)]-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[q(0x1a1,0x1a4)](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ConstraintInterval}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';function _enr(a,b){return _enb(b- -0x2dc,a);}import{intersectIntervals}from'../../../scheduling/DateInterval.js';import{ConstraintIntervalSide,ConstraintType,Direction}from'../../../scheduling/Types.js';import{isDateFinite,MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{EdgeInclusion}from'../../../util/Types.js';import{ChronoPartOfProjectModelMixin}from'../mixin/ChronoPartOfProjectModelMixin.js';const isForwardInterval=a=>a['startDateIsFinite'](),isBackwardInterval=a=>a[_enr(-0x1a8,-0x1ad)](),isInflexibleInterval=a=>{function s(a,b){return _enr(a,b-0x246);}return a[s(0xb8,0x8c)]()&&a[s(0x8a,0x99)]()&&a['startDate'][s(0xf2,0xcf)]()===a[s(0xf1,0xd6)]['getTime']();};const calculateEffectiveStartDateConstraintInterval=function*(a,b,c,d,e,f){if(c[t(-0x88,-0x90)]())return c;function t(a,b){return _enr(b,a-0x130);}if(e&&c[t(-0x67,-0x3a)]){const i=new Set();for(const j of c[t(-0x67,-0x76)]){if(j['isInfinite']()){i[t(-0x90,-0x81)](j);}else{const k=j[t(-0x8a,-0xba)]()?yield*a['calculateProjectedXDateWithDuration'](j['startDate'],![],d):j[t(-0x5c,-0x6b)];const l=j[t(-0x7d,-0x50)]()?yield*a[t(-0x50,-0x5f)](j[t(-0x40,-0x60)],![],d):j[t(-0x40,-0x30)];const m=j;i[t(-0x90,-0x86)](m[t(-0x73,-0x72)]({'reflectionOf':m,'side':m[t(-0x72,-0x54)]===ConstraintIntervalSide[t(-0x48,-0x42)]?ConstraintIntervalSide[t(-0x46,-0x3b)]:ConstraintIntervalSide[t(-0x48,-0x34)],'startDate':k,'endDate':l}));}}c[t(-0x67,-0x41)]=i;}const g=c[t(-0x8a,-0xaa)]()?yield*f(c[t(-0x5c,-0x39)]):null;const h=c['endDateIsFinite']()?yield*f(c['endDate']):null;return intersectIntervals([b,ConstraintInterval[t(-0x58,-0x5c)]({'intersectionOf':c[t(-0x67,-0x81)],'startDate':g,'endDate':h})],e);};const calculateEffectiveEndDateConstraintInterval=function*(a,b,c,d,e,f){if(b['isIntervalEmpty']())return b;if(e&&b[u(0x3a9,0x3a0)]){const i=new Set();for(const j of b[u(0x3a9,0x37e)]){if(j[u(0x392,0x3b3)]()){i['add'](j);}else{const k=j['startDateIsFinite']()?yield*a[u(0x3c0,0x395)](j[u(0x3b4,0x3bc)],!![],d):j['startDate'];const l=j[u(0x393,0x3b8)]()?yield*a[u(0x3c0,0x3db)](j[u(0x3d0,0x3be)],!![],d):j[u(0x3d0,0x3d5)];const m=j;i[u(0x380,0x38e)](m[u(0x39d,0x38a)]({'reflectionOf':m,'side':m['side']===ConstraintIntervalSide['Start']?ConstraintIntervalSide['End']:ConstraintIntervalSide[u(0x3c8,0x3b0)],'startDate':k,'endDate':l}));}}b[u(0x3a9,0x3d8)]=i;}const g=b[u(0x386,0x3af)]()?yield*f(b[u(0x3b4,0x3b7)]):null;function u(a,b){return _enr(b,a-0x540);}const h=b[u(0x393,0x378)]()?yield*f(b[u(0x3d0,0x3fc)]):null;return intersectIntervals([c,ConstraintInterval[u(0x3b8,0x3e8)]({'reflectionOf':g||h?b:void 0x0,'intersectionOf':g||h?b[u(0x3a9,0x3b5)]:void 0x0,'startDate':g,'endDate':h})],e);};class EventScheduleMixin extends Mixin([ChronoPartOfProjectModelMixin],a=>{function w(a,b){return _enr(a,b-0x46f);}class b extends a{constructor(){super(...arguments);this[v(0x4c,0x22)]=void 0x0;function v(a,b){return _enb(a- -0xce,b);}this['phase']=v(0x58,0x57);this[v(0x50,0x67)]=void 0x0;}get[w(0x297,0x2ac)](){function x(a,b){return w(a,b-0x106);}return this['event']?.[x(0x3b6,0x3b2)];}[w(0x306,0x301)](c){throw new Error('Implement\x20me');}*['calculateStartDate'](){function y(a,b){return w(b,a- -0x54d);}throw new Error(y(-0x26d,-0x28f));}*['calculateEndDate'](){throw new Error('Implement\x20me');}static[w(0x2c0,0x2c6)](c,d){function z(a,b){return w(a,b- -0x43e);}super[z(-0x162,-0x178)](c,d);this[z(-0x108,-0x137)]('parentIndex');this[z(-0x12c,-0x137)](z(-0x165,-0x153));this[z(-0x109,-0x137)]('parentId');this[z(-0x127,-0x137)]('expanded');this[z(-0x129,-0x137)]('readOnly');}}__decorate([model_field({'type':w(0x2e4,0x2e9),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[w(0x2f2,0x2d7)],w(0x2bb,0x2e3),void 0x0);__decorate([model_field({'type':w(0x2dc,0x2e9),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[w(0x2a6,0x2d7)],w(0x2d3,0x2ff),void 0x0);__decorate([calculate(w(0x307,0x2e3))],b[w(0x2b1,0x2d7)],'calculateStartDate',null);__decorate([calculate(w(0x302,0x2ff))],b[w(0x2d5,0x2d7)],w(0x321,0x305),null);return b;}){}class ConstrainedScheduleMixin extends Mixin([EventScheduleMixin],a=>{class b extends a{constructor(){super(...arguments);this[A(0x496,0x4bf)]=Direction[A(0x4c6,0x4d8)];function A(a,b){return _enb(a-0x37c,b);}this[A(0x49a,0x472)]=void 0x0;}[B(-0x47,-0x64)](c){function C(a,b){return B(a,b-0x3ef);}return c[C(0x37a,0x37b)];}*['maybeSkipNonWorkingTime'](c,d=!![],e=null){if(yield*this[D(0x1db,0x1c1)]['hasSubEvents']())return c;let f=c;if(c&&(yield*this[D(0x1aa,0x1c1)][D(0x1f9,0x1e5)]())){f=yield*this[D(0x1e6,0x1c1)][D(0x20f,0x1e2)](c,d);if(f&&e&&!e[D(0x219,0x1f1)](f,EdgeInclusion['LeftAndRight'])){f=c;}}function D(a,b){return B(a,b-0x275);}return f;}['changeDateConstraintIntervalOnConflict'](c,d,e){const {isDateConstraintInterval:f,owner:g}=c;function E(a,b){return B(b,a-0x4ed);}if(f&&g===e){if(this[E(0x435,0x45d)]===Direction[E(0x465,0x445)]){if(d==='start'&&g['constraintType']===ConstraintType[E(0x463,0x48c)]){return c['copyWith']({'startDate':c[E(0x487,0x4a8)],'endDate':null});}if(d===E(0x491,0x4a7)&&g['constraintType']===ConstraintType[E(0x452,0x450)]){return c[E(0x454,0x47a)]({'startDate':c[E(0x487,0x46d)],'endDate':null});}}else{if(d===E(0x448,0x465)&&g[E(0x488,0x4ae)]===ConstraintType[E(0x476,0x44c)]){return c[E(0x454,0x432)]({'startDate':null,'endDate':c[E(0x46b,0x458)]});}if(d===E(0x491,0x4a1)&&g['constraintType']===ConstraintType[E(0x475,0x446)]){return c[E(0x454,0x42e)]({'startDate':null,'endDate':c['startDate']});}}}return c;}*['calculateEffectiveConstraintInterval'](c,d,e,f=![],g=![]){function F(a,b){return B(a,b-0x212);}const {event:h}=this;const i=yield*h['getDateShifter'](c?![]:!![]);if(i==null){return null;}const j=f?yield*h['calculateEffectiveDuration']():0x0;if(j==null){return null;}if(g){if(this[F(0x15b,0x159)]['bwcConflictPostpone']){if(yield*this['isFirstPass']()){d=d[F(0x163,0x193)](m=>!m[F(0x16e,0x199)])[F(0x18d,0x178)](m=>this[F(0x151,0x15b)](m,F(0x194,0x16d),h));e=e[F(0x18a,0x193)](m=>!m[F(0x18b,0x199)])['map'](m=>this[F(0x160,0x15b)](m,F(0x1b9,0x1b6),h));}else{d=d[F(0x19a,0x193)](m=>!m['isDateConstraintInterval']);e=e[F(0x1a5,0x193)](m=>!m[F(0x138,0x158)]);}}else{const m=this['direction']===Direction[F(0x1a6,0x18a)]?isForwardInterval:isBackwardInterval,n=d[F(0x1b4,0x193)](isInflexibleInterval);d=n[F(0x15c,0x189)]?n:d[F(0x190,0x193)](m);const o=e['filter'](isInflexibleInterval);e=o[F(0x16b,0x189)]?o:e['filter'](m);}}const k=c?calculateEffectiveStartDateConstraintInterval:calculateEffectiveEndDateConstraintInterval;const l=yield*k(h,intersectIntervals(d,f),intersectIntervals(e,f),j,f,i);return l;}*['calculateStartDateConstraintIntervals'](){function G(a,b){return B(b,a-0x79);}return this[G(-0x3f,-0x30)]===Direction['Forward']?yield*this['event']['calculateEarlyStartDateConstraintIntervals']():yield*this['event'][G(0x17,0x13)]();}*[B(-0x7f,-0x91)](){function H(a,b){return B(b,a- -0x1d7);}return this[H(-0x28f,-0x288)]===Direction[H(-0x25f,-0x281)]?yield*this[H(-0x28b,-0x28d)]['calculateEarlyEndDateConstraintIntervals']():yield*this[H(-0x28b,-0x264)][H(-0x24c,-0x24b)]();}*[B(-0xb7,-0xaa)](c=![],d=![]){const e=yield this['$'][I(-0xe9,-0xe7)];const f=yield this['$']['endDateConstraintIntervals'];function I(a,b){return B(b,a- -0x7e);}return yield*this['calculateEffectiveConstraintInterval'](!![],e[I(-0xe1,-0xb2)](yield this[I(-0x132,-0x105)]['$'][I(-0xe9,-0xcd)]),f['concat'](yield this['event']['$'][I(-0x11f,-0x120)]),c,d);}*[B(-0xdb,-0xaf)](c=![],d=![]){function J(a,b){return B(b,a-0x199);}const e=yield this['$'][J(0x12e,0x104)];const f=yield this['$'][J(0xf8,0xf2)];return yield*this[J(0x11c,0x104)](![],e[J(0x136,0x11c)](yield this[J(0xe5,0xd1)]['$'][J(0x12e,0x151)]),f[J(0x136,0x148)](yield this[J(0xe5,0xd3)]['$'][J(0xf8,0xe0)]),c,d);}*[B(-0x56,-0x86)](c){function K(a,b){return B(b,a-0x575);}return this['direction']===Direction[K(0x4ed,0x4ea)]?yield*this[K(0x4c1,0x4bd)][K(0x503,0x4fb)](c):yield*this[K(0x4c1,0x4f2)][K(0x514,0x4f5)](c);}*[B(-0x51,-0x70)](){let c=MAX_DATE;const d=yield*this[L(0x21c,0x22f)]['subEventsIterable']();function L(a,b){return B(a,b-0x2e3);}for(const e of d){if(!(yield*this[L(0x278,0x25d)](e)))continue;let f;if((yield*e[L(0x26b,0x243)]())&&(yield*e[L(0x26a,0x258)]())){f=yield this[L(0x257,0x27f)](e)['$'][L(0x29a,0x284)];}f=f||(yield this[L(0x277,0x27f)](e)['$'][L(0x254,0x261)]);if(f&&f<c)c=f;}return c[L(0x2a1,0x276)]()-MAX_DATE[L(0x265,0x276)]()?c:null;}*[B(-0xc0,-0x9e)](c){function M(a,b){return B(a,b-0x3ca);}return this[M(0x33f,0x312)]===Direction[M(0x328,0x342)]?yield*this[M(0x32b,0x316)][M(0x331,0x317)](c):yield*this['event']['shouldRollupChildLateEndDate'](c);}*[B(-0xab,-0x8f)](){let c=MIN_DATE;const d=yield*this[N(0x4ce,0x4db)][N(0x50f,0x52a)]();for(const e of d){if(!(yield*this[N(0x4e4,0x4bc)](e)))continue;let f;if((yield*e[N(0x4e2,0x4b5)]())&&(yield*e[N(0x4f7,0x4f6)]())){f=yield this['pick'](e)['$'][N(0x4ed,0x4c7)];}f=f||(yield this[N(0x51e,0x52c)](e)['$']['endDate']);if(f&&f>c)c=f;}function N(a,b){return B(b,a-0x582);}return c[N(0x515,0x509)]()-MIN_DATE[N(0x515,0x4f7)]()?c:null;}*['calculateStartDate'](){function O(a,b){return B(a,b-0x177);}let c;let d;if((yield*this['event']['isManuallyScheduled']())&&(!(yield this[O(0xd2,0xbe)]['$']['autoScheduleManualTasksOnSecondPass'])||(yield this[O(0xb1,0xc3)]['$'][O(0xc3,0xcf)])[O(0xe0,0xbf)]===this[O(0xb5,0xbf)])){c=yield this[O(0xb6,0xc3)]['$'][O(0xd3,0xf5)];}else if(yield*this[O(0xae,0xc3)][O(0x11b,0xec)]()){c=yield this['$'][O(0xf2,0x118)];}else if(!(yield*this[O(0xf0,0xe0)]())){c=yield this[O(0xea,0xc3)]['$'][O(0x124,0xf5)];}else{d=yield*this[O(0xe0,0xcd)]();if(d===null){return null;}else if(d[O(0xd5,0xc9)]()){const e=yield*this[O(0xaf,0xc3)][O(0xf4,0xce)](O(0xbb,0xd2),this);if(e['kind']===O(0xde,0xc5)){return e[O(0xf7,0x11d)];}else if(e[O(0xb0,0xca)]===O(0x138,0x110)){d=e[O(0x13c,0x11d)];}}else{yield*this['event'][O(0x100,0x108)]('start',this);}c=this[O(0xef,0xbf)]===Direction['Forward']?isDateFinite(d['startDate'])?d[O(0xe9,0xf5)]:null:isDateFinite(d['endDate'])?d['endDate']:null;}return yield*this[O(0x132,0x106)](c,!![],d);}*['calculateEndDate'](){let c;let d;function P(a,b){return B(a,b-0x3d);}if((yield*this[P(-0x9f,-0x77)]['isManuallyScheduled']())&&(!(yield this[P(-0x5e,-0x7c)]['$'][P(-0x45,-0x2b)])||(yield this[P(-0x6a,-0x77)]['$']['effectiveDirection'])[P(-0x75,-0x7b)]===this[P(-0x83,-0x7b)])){c=yield this[P(-0xa6,-0x77)]['$'][P(-0x4c,-0x29)];}else if(yield*this[P(-0x8f,-0x77)][P(-0x39,-0x4e)]()){c=yield this['$'][P(-0x2a,-0x58)];}else if(!(yield*this[P(-0x35,-0x5a)]())){c=yield this[P(-0x50,-0x77)]['$'][P(-0x45,-0x29)];}else{d=yield*this['doCalculateEffectiveEndDateInterval']();if(d===null){return null;}else if(d[P(-0x94,-0x71)]()){const e=yield*this['event']['onEmptyEffectiveInterval'](P(0x1,-0x1f),this);if(e[P(-0x41,-0x70)]==='return'){return e[P(-0x3b,-0x1d)];}else if(e['kind']===P(-0x14,-0x2a)){d=e[P(-0x49,-0x1d)];}}else{yield*this[P(-0x96,-0x77)][P(-0x13,-0x32)](P(-0x48,-0x1f),this);}c=this['direction']===Direction['Forward']?isDateFinite(d['startDate'])?d[P(-0x46,-0x45)]:null:isDateFinite(d[P(0x7,-0x29)])?d[P(-0xb,-0x29)]:null;}return yield*this[P(-0x50,-0x34)](c,![],d);}*[B(-0x69,-0x97)](){const c=yield this[Q(0x9a,0x98)]['$'][Q(0x102,0xe1)];const d=yield this[Q(0xb3,0x98)]['$'][Q(0x9c,0xab)];function Q(a,b){return B(a,b-0x14c);}const e=yield this['$'][Q(0xf7,0xe1)];const f=yield this['$'][Q(0xd9,0xab)];return e?.[Q(0xc4,0xc3)]>0x0||f?.[Q(0xaa,0xc3)]>0x0||c?.[Q(0xce,0xc3)]>0x0||d?.[Q(0xd5,0xc3)]>0x0;}*['isFirstPass'](){const c=yield this[R(0x3a7,0x389)]()['$'][R(0x337,0x35c)];function R(a,b){return B(a,b-0x404);}return c['direction']===this[R(0x35a,0x34c)];}}__decorate([field({'lazy':!![]})],b[B(-0xbb,-0x8e)],B(-0x31,-0x5f),void 0x0);__decorate([field({'lazy':!![]})],b[B(-0x7c,-0x8e)],B(-0xa7,-0x95),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[B(-0x8c,-0x8e)],B(-0x74,-0x6b),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[B(-0x6e,-0x8e)],'endDateConstraintIntervals',void 0x0);__decorate([calculate(B(-0x77,-0x6b))],b[B(-0x81,-0x8e)],B(-0x76,-0x87),null);function B(a,b){return _enr(a,b-0x10a);}__decorate([calculate(B(-0xcb,-0xa1))],b[B(-0xb8,-0x8e)],B(-0x89,-0x91),null);__decorate([calculate(B(-0x3c,-0x5f))],b[B(-0x82,-0x8e)],B(-0x4a,-0x70),null);__decorate([calculate(B(-0xaf,-0x95))],b[B(-0x87,-0x8e)],B(-0x91,-0x8f),null);__decorate([calculate('startDate')],b[B(-0x7a,-0x8e)],B(-0xa1,-0xa2),null);__decorate([calculate(B(-0x62,-0x66))],b[B(-0xb4,-0x8e)],B(-0x80,-0x60),null);return b;}){}export{ConstrainedScheduleMixin,EventScheduleMixin,calculateEffectiveEndDateConstraintInterval,calculateEffectiveStartDateConstraintInterval,isBackwardInterval,isForwardInterval,isInflexibleInterval};
1
+ (function(a,b){const c=a();function p(a,b){return _enb(b-0xb9,a);}while(!![]){try{const d=parseInt(p(0x21f,0x230))/0x1*(parseInt(p(0x1de,0x1fa))/0x2)+-parseInt(p(0x22b,0x22f))/0x3+-parseInt(p(0x201,0x1fe))/0x4*(-parseInt(p(0x1c9,0x1da))/0x5)+parseInt(p(0x240,0x216))/0x6+-parseInt(p(0x1c9,0x1d9))/0x7*(parseInt(p(0x240,0x219))/0x8)+-parseInt(p(0x203,0x1ed))/0x9+parseInt(p(0x1b9,0x1de))/0xa;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x6f3f0));var __decorate=function(a,b,e,f){function q(a,b){return _enb(b-0x282,a);}var g=arguments['length'],h=g<0x3?b:f===null?f=Object[q(0x3cb,0x3ad)](b,e):f,j;if(typeof Reflect===q(0x3d8,0x3eb)&&typeof Reflect[q(0x3dd,0x3c1)]==='function')h=Reflect[q(0x3d8,0x3c1)](a,b,e,f);else for(var k=a[q(0x3c7,0x3c2)]-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{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ConstraintInterval}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';import{intersectIntervals}from'../../../scheduling/DateInterval.js';function _ena(){const T=['getTime','startDateIsFinite','shouldRollupChildStartDate','add','shouldRollupChildEarlyStartDate','isIntervalEmpty','calculateLateEndDateConstraintIntervals','2060082rdnuhr','isInfinite','calculateStartDateConstraintIntervals','StartNoEarlierThan','calculateLateStartDateConstraintIntervals','shouldRollupChildEndDate','endDateIsFinite','parentId','FinishNoLaterThan','kind','orderedParentIndex','decorate','length','27786VUoRvT','onEmptyEffectiveInterval','side','return','12nKUPMX','maxChildrenEndDate','containsDate','FinishNoEarlierThan','prototype','onNonEmptyEffectiveInterval','copyWith','bwcConflictPostpone','hasSubEvents','intersectionOf','phase','calculateMaxChildrenEndDate','calculateEndDateConstraintIntervals','resolved','pick','concat','doCalculateEffectiveStartDateInterval','calculateEffectiveDuration','isManuallyScheduled','skipNonWorkingTime','calculateEndDate','value','project','filter','4630662JBxljr','subEventsIterable','earlyPreSchedule','2648niMQKz','isConstrained','start','minChildrenStartDate','isDependencyConstraintInterval','StartNoLaterThan','startDate','getProject','changeDateConstraintIntervalOnConflict','object','end','maybeSkipNonWorkingTime','startDateConstraintIntervals','Forward','direction','event','removeField','shouldRollupChildEarlyEndDate','constraintType','Implement\x20me','calculateStartDate','endDateConstraintIntervals','1812672KsnmEf','16DmuQkb','isFirstPass','End','phase1','doCalculateEffectiveEndDateInterval','autoScheduleManualTasksOnSecondPass','calculateMinChildrenStartDate','parentIndex','setupFields','15022ZxFZKq','321260lnzWKx','calculateProjectedXDateWithDuration','shouldRollupChildLateEndDate','isDateConstraintInterval','8122910fwnMox','Start','calculateEarlyEndDateConstraintIntervals','effectiveDirection','calculateEffectiveConstraintInterval','endDate','getOwnPropertyDescriptor','map'];_ena=function(){return T;};return _ena();}import{ConstraintIntervalSide,ConstraintType,Direction}from'../../../scheduling/Types.js';import{isDateFinite,MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{EdgeInclusion}from'../../../util/Types.js';import{ChronoPartOfProjectModelMixin}from'../mixin/ChronoPartOfProjectModelMixin.js';function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x11d;let f=c[d];return f;};return _enb(a,b);}const isForwardInterval=a=>a['startDateIsFinite'](),isBackwardInterval=a=>a['endDateIsFinite'](),isInflexibleInterval=a=>{function r(a,b){return _enb(b- -0x199,a);}return a[r(-0x3c,-0x6b)]()&&a[r(-0x3c,-0x5f)]()&&a[r(-0x46,-0x33)][r(-0x4e,-0x6c)]()===a['endDate']['getTime']();};const calculateEffectiveStartDateConstraintInterval=function*(a,b,c,d,e,f){function s(a,b){return _enb(a-0x43,b);}if(c[s(0x175,0x15a)]())return c;if(e&&c[s(0x191,0x1bc)]){const i=new Set();for(const j of c['intersectionOf']){if(j['isInfinite']()){i[s(0x173,0x162)](j);}else{const k=j[s(0x171,0x18c)]()?yield*a[s(0x165,0x146)](j[s(0x1a9,0x1bb)],![],d):j['startDate'];const l=j['endDateIsFinite']()?yield*a[s(0x165,0x13f)](j['endDate'],![],d):j['endDate'];const m=j;i[s(0x173,0x147)](m[s(0x18e,0x19e)]({'reflectionOf':m,'side':m[s(0x186,0x17a)]===ConstraintIntervalSide[s(0x169,0x144)]?ConstraintIntervalSide[s(0x1bc,0x1aa)]:ConstraintIntervalSide['Start'],'startDate':k,'endDate':l}));}}c[s(0x191,0x18f)]=i;}const g=c[s(0x171,0x16a)]()?yield*f(c['startDate']):null;const h=c[s(0x17d,0x168)]()?yield*f(c[s(0x16d,0x187)]):null;return intersectIntervals([b,ConstraintInterval['new']({'intersectionOf':c['intersectionOf'],'startDate':g,'endDate':h})],e);};const calculateEffectiveEndDateConstraintInterval=function*(a,b,c,d,e,f){if(b[t(0x26,0x18)]())return b;if(e&&b[t(0x42,0x6a)]){const i=new Set();for(const j of b[t(0x42,0x17)]){if(j[t(0x29,0x11)]()){i[t(0x24,0x16)](j);}else{const k=j['startDateIsFinite']()?yield*a['calculateProjectedXDateWithDuration'](j[t(0x5a,0x7b)],!![],d):j[t(0x5a,0x45)];const l=j[t(0x2e,0x5a)]()?yield*a[t(0x16,0x11)](j[t(0x1e,-0x2)],!![],d):j['endDate'];const m=j;i['add'](m[t(0x3f,0x40)]({'reflectionOf':m,'side':m[t(0x37,0x30)]===ConstraintIntervalSide[t(0x1a,0x31)]?ConstraintIntervalSide[t(0x6d,0x75)]:ConstraintIntervalSide[t(0x1a,-0xe)],'startDate':k,'endDate':l}));}}b[t(0x42,0x37)]=i;}const g=b[t(0x22,0x18)]()?yield*f(b[t(0x5a,0x6b)]):null;const h=b[t(0x2e,0x51)]()?yield*f(b['endDate']):null;function t(a,b){return _enb(a- -0x10c,b);}return intersectIntervals([c,ConstraintInterval['new']({'reflectionOf':g||h?b:void 0x0,'intersectionOf':g||h?b['intersectionOf']:void 0x0,'startDate':g,'endDate':h})],e);};class EventScheduleMixin extends Mixin([ChronoPartOfProjectModelMixin],a=>{class b extends a{constructor(){function u(a,b){return _enb(a-0xf8,b);}super(...arguments);this['direction']=void 0x0;this[u(0x247,0x251)]=u(0x272,0x26a);this[u(0x267,0x261)]=void 0x0;}get[v(0xbc,0xde)](){function w(a,b){return v(b,a- -0x8f);}return this[w(0x63,0x49)]?.[w(0x4f,0x26)];}[v(0xc3,0xd6)](c){function x(a,b){return v(b,a-0x1f8);}throw new Error(x(0x2ee,0x2c9));}*['calculateStartDate'](){function y(a,b){return v(b,a- -0x263);}throw new Error(y(-0x16d,-0x15d));}*['calculateEndDate'](){function z(a,b){return v(a,b- -0x288);}throw new Error(z(-0x16c,-0x192));}static[v(0x99,0xa2)](c,d){super[A(0xdd,0xd7)](c,d);this[A(0x13a,0x128)](A(0xe4,0xd6));this['removeField'](A(0xcb,0xf6));function A(a,b){return v(a,b-0x35);}this[A(0x120,0x128)](A(0x11b,0xf3));this['removeField']('expanded');this[A(0x11d,0x128)]('readOnly');}}function v(a,b){return _enb(b- -0x7d,a);}__decorate([model_field({'type':'date','persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[v(0xbc,0xcc)],v(0x112,0xe9),void 0x0);__decorate([model_field({'type':'date','persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b['prototype'],v(0x86,0xad),void 0x0);__decorate([calculate(v(0x103,0xe9))],b[v(0xd9,0xcc)],v(0xd6,0xf7),null);__decorate([calculate(v(0xaa,0xad))],b[v(0x9c,0xcc)],v(0xf7,0xdc),null);return b;}){}class ConstrainedScheduleMixin extends Mixin([EventScheduleMixin],a=>{class b extends a{constructor(){function B(a,b){return _enb(b- -0x29a,a);}super(...arguments);this[B(-0x159,-0x12c)]=Direction[B(-0x106,-0x12d)];this[B(-0x125,-0x12b)]=void 0x0;}[C(0x358,0x36c)](c){function D(a,b){return C(b- -0x126,a);}return c[D(0x218,0x23e)];}*[C(0x370,0x378)](c,d=!![],e=null){if(yield*this[E(0x446,0x46f)][E(0x461,0x44d)]())return c;let f=c;function E(a,b){return C(b-0xfb,a);}if(c&&(yield*this[E(0x474,0x46f)]['shouldSkipNonWorkingTime']())){f=yield*this['event'][E(0x437,0x458)](c,d);if(f&&e&&!e[E(0x470,0x447)](f,EdgeInclusion['LeftAndRight'])){f=c;}}return f;}['changeDateConstraintIntervalOnConflict'](c,d,e){const {isDateConstraintInterval:f,owner:g}=c;function F(a,b){return C(a-0x89,b);}if(f&&g===e){if(this['direction']===Direction[F(0x3fb,0x3f0)]){if(d===F(0x3f0,0x3f9)&&g[F(0x400,0x3d1)]===ConstraintType[F(0x3f3,0x41b)]){return c[F(0x3d9,0x3c8)]({'startDate':c[F(0x3b8,0x393)],'endDate':null});}if(d===F(0x3f8,0x3f3)&&g[F(0x400,0x428)]===ConstraintType[F(0x3ca,0x3dd)]){return c[F(0x3d9,0x3c4)]({'startDate':c[F(0x3b8,0x388)],'endDate':null});}}else{if(d===F(0x3f0,0x3f2)&&g[F(0x400,0x3e7)]===ConstraintType[F(0x3c5,0x39f)]){return c['copyWith']({'startDate':null,'endDate':c['startDate']});}if(d==='end'&&g['constraintType']===ConstraintType[F(0x3d6,0x3c2)]){return c[F(0x3d9,0x3e7)]({'startDate':null,'endDate':c[F(0x3f4,0x3d4)]});}}}return c;}*['calculateEffectiveConstraintInterval'](c,d,e,f=![],g=![]){const {event:h}=this;function G(a,b){return C(a-0x9d,b);}const i=yield*h['getDateShifter'](c?![]:!![]);if(i==null){return null;}const j=f?yield*h[G(0x3f8,0x3de)]():0x0;if(j==null){return null;}if(g){if(this[G(0x3fd,0x41e)][G(0x3ee,0x3e8)]){if(yield*this['isFirstPass']()){d=d[G(0x3fe,0x3f7)](m=>!m[G(0x406,0x407)])[G(0x3ce,0x3cf)](m=>this[G(0x40a,0x416)](m,G(0x404,0x3e6),h));e=e[G(0x3fe,0x3dc)](m=>!m[G(0x406,0x416)])[G(0x3ce,0x3b8)](m=>this[G(0x40a,0x426)](m,'end',h));}else{d=d[G(0x3fe,0x3e4)](m=>!m[G(0x3c6,0x3d0)]);e=e[G(0x3fe,0x416)](m=>!m[G(0x3c6,0x3b9)]);}}else{const m=this[G(0x410,0x3f7)]===Direction[G(0x40f,0x41f)]?isForwardInterval:isBackwardInterval,n=d['filter'](isInflexibleInterval);d=n[G(0x3e2,0x3c5)]?n:d['filter'](m);const o=e[G(0x3fe,0x3e3)](isInflexibleInterval);e=o[G(0x3e2,0x408)]?o:e['filter'](m);}}const k=c?calculateEffectiveStartDateConstraintInterval:calculateEffectiveEndDateConstraintInterval;const l=yield*k(h,intersectIntervals(d,f),intersectIntervals(e,f),j,f,i);return l;}*[C(0x33b,0x353)](){function H(a,b){return C(b- -0x528,a);}return this[H(-0x1d5,-0x1b5)]===Direction[H(-0x1ae,-0x1b6)]?yield*this[H(-0x19e,-0x1b4)]['calculateEarlyStartDateConstraintIntervals']():yield*this[H(-0x1d4,-0x1b4)][H(-0x1f0,-0x1eb)]();}*[C(0x356,0x32e)](){function I(a,b){return C(b-0xa9,a);}return this['direction']===Direction[I(0x3ef,0x41b)]?yield*this['event'][I(0x3f3,0x3d5)]():yield*this[I(0x426,0x41d)][I(0x3be,0x3e1)]();}*[C(0x35a,0x348)](c=![],d=![]){const e=yield this['$'][J(0x91,0x61)];function J(a,b){return C(b- -0x310,a);}const f=yield this['$'][J(0x72,0x6a)];return yield*this['calculateEffectiveConstraintInterval'](!![],e[J(0x3a,0x49)](yield this[J(0x6f,0x64)]['$'][J(0x8e,0x61)]),f[J(0x4a,0x49)](yield this[J(0x38,0x64)]['$']['endDateConstraintIntervals']),c,d);}*[C(0x380,0x359)](c=![],d=![]){const e=yield this['$']['startDateConstraintIntervals'];function K(a,b){return C(b- -0x57c,a);}const f=yield this['$'][K(-0x1f1,-0x202)];return yield*this[K(-0x25f,-0x24e)](![],e[K(-0x24b,-0x223)](yield this[K(-0x1f3,-0x208)]['$'][K(-0x231,-0x20b)]),f[K(-0x205,-0x223)](yield this[K(-0x22e,-0x208)]['$'][K(-0x22a,-0x202)]),c,d);}*[C(0x334,0x323)](c){function L(a,b){return C(a- -0x4c2,b);}return this[L(-0x14f,-0x121)]===Direction['Forward']?yield*this[L(-0x14e,-0x171)][L(-0x18c,-0x163)](c):yield*this['event']['shouldRollupChildLateStartDate'](c);}*[C(0x322,0x30d)](){let c=MAX_DATE;const d=yield*this[M(0x3e3,0x412)][M(0x3d1,0x401)]();function M(a,b){return C(b-0x9e,a);}for(const e of d){if(!(yield*this[M(0x3d0,0x3d2)](e)))continue;let f=this['pick'](e),g=yield f['$'][M(0x437,0x409)];if((yield*e[M(0x41e,0x3fa)]())&&(yield*e['hasSubEvents']())){const h=yield f['$'][M(0x42c,0x406)];if(h&&(!g||g>h)){g=h;}}if(g&&g<c)c=g;}return c[M(0x3fe,0x3d0)]()-MAX_DATE[M(0x3a2,0x3d0)]()?c:null;}*['shouldRollupChildEndDate'](c){function N(a,b){return C(a- -0x3bc,b);}return this[N(-0x49,-0x3d)]===Direction[N(-0x4a,-0x53)]?yield*this[N(-0x48,-0x5d)][N(-0x46,-0x27)](c):yield*this[N(-0x48,-0x5f)][N(-0x94,-0xbe)](c);}*[C(0x355,0x33f)](){let c=MIN_DATE;function O(a,b){return C(a- -0x14a,b);}const d=yield*this[O(0x22a,0x250)]['subEventsIterable']();for(const e of d){if(!(yield*this[O(0x1f4,0x1e8)](e)))continue;let f=this['pick'](e),g=yield f['$']['endDate'];if((yield*e[O(0x212,0x214)]())&&(yield*e[O(0x208,0x202)]())){const h=yield f['$'][O(0x201,0x1e2)];if(h&&(!g||g<h)){g=h;}}if(g&&g>c)c=g;}return c['getTime']()-MIN_DATE[O(0x1e8,0x20f)]()?c:null;}*[C(0x379,0x353)](){let c;let d;if((yield*this['event'][P(-0x14,-0x9)]())&&(!(yield this[P(0x7,-0x5)]['$']['autoScheduleManualTasksOnSecondPass'])||(yield this['event']['$'][P(-0x31,-0x38)])[P(0x3c,0xe)]===this[P(0x3,0xe)])){c=yield this[P(0x3d,0xf)]['$']['startDate'];}else if(yield*this[P(-0x1c,0xf)][P(-0x43,-0x13)]()){c=yield this['$'][P(0x11,0x3)];}else if(!(yield*this[P(-0x7,0x1)]())){c=yield this[P(-0x5,0xf)]['$'][P(0xb,0x6)];}else{d=yield*this[P(-0xd,-0xb)]();if(d===null){return null;}else if(d[P(-0x1d,-0x2e)]()){const e=yield*this[P(0x2b,0xf)][P(-0x1c,-0x1e)](P(0x17,0x2),this);if(e[P(-0x1b,-0x23)]==='return'){return e['value'];}else if(e['kind']===P(0x0,-0xe)){d=e[P(0xe,-0x6)];}}else{yield*this[P(0x15,0xf)]['onNonEmptyEffectiveInterval'](P(0x2d,0x2),this);}c=this[P(0x2b,0xe)]===Direction[P(0x11,0xd)]?isDateFinite(d[P(-0x8,0x6)])?d[P(-0x13,0x6)]:null:isDateFinite(d[P(-0x2d,-0x36)])?d[P(-0x3f,-0x36)]:null;}function P(a,b){return C(b- -0x365,a);}return yield*this[P(0x1f,0xb)](c,!![],d);}*[C(0x35e,0x38a)](){let c;let d;function Q(a,b){return C(a- -0x30d,b);}if((yield*this['event'][Q(0x4f,0x41)]())&&(!(yield this['project']['$'][Q(0x74,0x53)])||(yield this['event']['$'][Q(0x20,0x11)])[Q(0x66,0x71)]===this[Q(0x66,0x50)])){c=yield this[Q(0x67,0x4f)]['$']['endDate'];}else if(yield*this[Q(0x67,0x57)][Q(0x45,0x56)]()){c=yield this['$'][Q(0x3e,0x18)];}else if(!(yield*this['isConstrained']())){c=yield this[Q(0x67,0x7e)]['$'][Q(0x22,0x3c)];}else{d=yield*this['doCalculateEffectiveEndDateInterval']();if(d===null){return null;}else if(d[Q(0x2a,0x4f)]()){const e=yield*this['event'][Q(0x3a,0x3d)]('end',this);if(e['kind']===Q(0x3c,0x3f)){return e['value'];}else if(e[Q(0x35,0x5d)]===Q(0x4a,0x27)){d=e[Q(0x52,0x5c)];}}else{yield*this[Q(0x67,0x87)][Q(0x42,0x15)](Q(0x62,0x40),this);}c=this[Q(0x66,0x84)]===Direction[Q(0x65,0x77)]?isDateFinite(d['startDate'])?d['startDate']:null:isDateFinite(d['endDate'])?d['endDate']:null;}return yield*this[Q(0x63,0x82)](c,![],d);}*[C(0x366,0x385)](){const c=yield this[R(-0xf8,-0xca)]['$'][R(-0xd4,-0xcd)];const d=yield this[R(-0xf6,-0xca)]['$'][R(-0xb0,-0xc4)];const e=yield this['$'][R(-0xac,-0xcd)];const f=yield this['$'][R(-0x95,-0xc4)];function R(a,b){return C(b- -0x43e,a);}return e?.[R(-0x109,-0xf9)]>0x0||f?.[R(-0xe0,-0xf9)]>0x0||c?.[R(-0x11e,-0xf9)]>0x0||d?.['length']>0x0;}*[C(0x37d,0x367)](){const c=yield this[S(-0x21d,-0x226)]()['$'][S(-0x25d,-0x265)];function S(a,b){return C(b- -0x592,a);}return c[S(-0x206,-0x21f)]===this[S(-0x22f,-0x21f)];}}__decorate([field({'lazy':!![]})],b[C(0x34e,0x355)],'minChildrenStartDate',void 0x0);__decorate([field({'lazy':!![]})],b[C(0x34e,0x327)],C(0x34b,0x332),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[C(0x34e,0x337)],'startDateConstraintIntervals',void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[C(0x34e,0x365)],'endDateConstraintIntervals',void 0x0);__decorate([calculate(C(0x371,0x360))],b[C(0x34e,0x34f)],C(0x33b,0x311),null);function C(a,b){return _enb(a-0x205,b);}__decorate([calculate(C(0x37a,0x37b))],b[C(0x34e,0x356)],C(0x356,0x35f),null);__decorate([calculate('minChildrenStartDate')],b[C(0x34e,0x37d)],C(0x322,0x328),null);__decorate([calculate('maxChildrenEndDate')],b[C(0x34e,0x323)],C(0x355,0x380),null);__decorate([calculate(C(0x36b,0x38a))],b[C(0x34e,0x36f)],'calculateStartDate',null);__decorate([calculate(C(0x32f,0x354))],b[C(0x34e,0x322)],C(0x35e,0x344),null);return b;}){}export{ConstrainedScheduleMixin,EventScheduleMixin,calculateEffectiveEndDateConstraintInterval,calculateEffectiveStartDateConstraintInterval,isBackwardInterval,isForwardInterval,isInflexibleInterval};