@ckeditor/ckeditor5-real-time-collaboration 41.0.0 → 41.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/build/real-time-collaboration.js +1 -1
  2. package/build/translations/he.js +1 -1
  3. package/lang/translations/he.po +1 -2
  4. package/package.json +5 -5
  5. package/src/augmentation.js +1 -1
  6. package/src/common-translations.js +1 -1
  7. package/src/config.d.ts +9 -1
  8. package/src/index.js +1 -1
  9. package/src/presencelist/presencelistui.d.ts +43 -1
  10. package/src/presencelist/presencelistui.js +1 -1
  11. package/src/presencelist/view/presencecounterview.js +1 -1
  12. package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
  13. package/src/presencelist/view/presencedropdownlistview.d.ts +14 -2
  14. package/src/presencelist/view/presencedropdownlistview.js +1 -1
  15. package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
  16. package/src/presencelist/view/presenceinlinelistview.js +1 -1
  17. package/src/presencelist/view/presencelistview.d.ts +10 -5
  18. package/src/presencelist/view/presencelistview.js +1 -1
  19. package/src/presencelist.js +1 -1
  20. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +1 -1
  21. package/src/realtimecollaborativecomments.js +1 -1
  22. package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
  23. package/src/realtimecollaborativeediting/sessions.d.ts +2 -0
  24. package/src/realtimecollaborativeediting/sessions.js +1 -1
  25. package/src/realtimecollaborativeediting/usermarkers.js +1 -1
  26. package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
  27. package/src/realtimecollaborativeediting.js +1 -1
  28. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
  29. package/src/realtimecollaborativerevisionhistory.js +1 -1
  30. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
  31. package/src/realtimecollaborativetrackchanges.js +1 -1
  32. package/theme/presencelist.css +22 -10
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x362e=['view','_sendBufferedOperations','_isConnected','toJSON','_getOperationsFromInitData','code','Permissions','InsertOperation','createdAt','history','_addKnownRoot','_disconnectionOperations','parse','_crash','RealTimeCollaborationClient','suppressErrorInCollaboration','_connectService','_service','push','setIdForTheLastOperation','realtimecollaborationclient-sendbufferedoperations','round','_clearPendingAction','disconnect','_knownRootNames','_lastServerVersion','_isLoaded','change:_isEditingAllowed','_currentBufferDelay','CommentsOnly','sessionId','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_shouldSendSelectionUpdate','version','_handleSendingSelectionMarkers','_offset','markers','includes','insert','_isInit','offset','_setPendingAction','_isPendingUpdate','operationsReceived','metadata','fire','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','add','sessionCreatedAt','wasUndone','apply','PENDING_ACTION_SENDING_DATA','bind','lastOperationId','_handleInitialConnectionData','_waitUntilSynced','_saveOperationInBuffer','get','_isAttached','realtimecollaborationclient-initservice-internal-error','pluginName','_connectAfterSessionHasBeenFlushed','collaboration.channelId','getIdOfTheLastOperation','_handleReceivedOperations','addRootAttribute','409','getUser','_isEditingAllowed','document:write','_sendBufferedOperationsDelayId','directChange','removeFromReconnectionStack','applyOperation','_operationToId','listenTo','_refreshUserSelectionMarkers','createPositionFromPath','_isDisconnection','createUserMarkerOperations','start','cloudDocumentVersion','getOperations','message','cs:removeUser','_handleExternalOperations','_handleReconnectionError','realtimecollaborationclient-initservice-incorrect-server-operation','realtimecollaborationclient-init-non-existent-root','editor','stop','destroy','unregister','locale','_compressor','high','set','isReadOnly','filter','real-time-collaboration','error','currentDocumentSession','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','fromJSON','_applyOperationsSet','baseVersion','_hasSelectionChanged','_fetchMissingUsers','config','_sendBufferedOperationsDelayed','_handleReconnectionResponse','loadRoot','position','change:_isPendingUpdate','clone','realtimecollaborationclient-init-connection-failed','document','reconnect','userId','addToReconnectionStack','getOperationAuthor','attributes','_hasSynchronizationProblem','sessionAdd:','_getAffectedRoot','_lastSyncedOperationId','move','_baseBufferDelay','__className','realtimecollaborationclient-handleserverresponse','disconnected','lastOperationAcceptedAt','register','has','CollaborativeEditingService','_bufferRootLoad','multi-root-editor-root-attributes-no-root','initData','root','editing','_ignoredOperations','enableReadOnlyMode','enqueueChange','connected','createRange','startsWith','cloudServices.bundleVersion','type','path','getRoot','wereChangesApplied','rtc-destroyed','getMany','_authorId','rootsAttributes','_bufferedOperations','marker','then','isUndoneOperation','map','_operationIdentifier','catch','plugins','requires','connect','off','lastSyncVersion','forEach','_disconnectService','batch','_loadRoot','_knownOperations','serverHistory','rootName','size','sendOperations','from','affectedSelectable','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_initThrowingOnDataSet','addUser','_decompressOperations','_pendingAction','addRoot','length','data','collaboration','_shouldSendUpdate','selection','rtc-offline','return','_initSessionsHandling','finally','addOperation','_compressOperations','string','_setUpDataInit','getConnectedSessions','disableReadOnlyMode','entries','channelSessions','keys','change:range','model','slice','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','_document','_channelId','lastDocumentSession','_handleServerResponse','reset','_updateServerHistory','roots','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','permissions','stopListening','createPositionAt','remove','state'];(function(_0x175766,_0x362e62){const _0x239f33=function(_0x273824){while(--_0x273824){_0x175766['push'](_0x175766['shift']());}};_0x239f33(++_0x362e62);}(_0x362e,0xc6));const _0x239f=function(_0x175766,_0x362e62){_0x175766=_0x175766-0x0;let _0x239f33=_0x362e[_0x175766];return _0x239f33;};import{Plugin as _0x23351e,PendingActions as _0x473e52}from'ckeditor5/src/core.js';import{CKEditorError as _0x23715f,version as _0x53edc8,uid as _0x53e6e7}from'ckeditor5/src/utils.js';import{Notification as _0x2b477a}from'ckeditor5/src/ui.js';import{transformSets as _0xe26049,NoOperation as _0x5501f9,InsertOperation as _0x558c0a,MarkerOperation as _0x2d779b,RootAttributeOperation as _0x3841ba,OperationFactory as _0x265b70,History as _0x25fa6e}from'ckeditor5/src/engine.js';import _0x21540b from'./websocketgateway.js';import _0x3b6ca5 from'./sessions.js';import _0x439865 from'./usermarkers.js';import{getTranslation as _0x23f419}from'../common-translations.js';import _0x12dec6 from'@ckeditor/ckeditor5-operations-compressor/src/compressor.js';import{Users as _0xf442aa}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x2fe19a}from'@ckeditor/ckeditor-cloud-services-collaboration';import{CollaborativeEditingService as _0x4f6cd2}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let $=0x1;class l extends _0x23351e{static get[_0x239f('0xb8')](){return[_0x21540b,_0x3b6ca5,_0x439865,_0x473e52,_0xf442aa,_0x2b477a];}static get[_0x239f('0x51')](){return _0x239f('0x23');}get[_0x239f('0x66')](){return this[_0x239f('0x2e')]+this[_0x239f('0x38')];}get[_0x239f('0x2e')](){return this['serverHistory'][_0x239f('0x36')]-this[_0x239f('0x38')];}get['lastSyncVersion'](){const _0x3559ab=this[_0x239f('0xc1')]['getOperations']();for(let _0x14a46b=_0x3559ab[_0x239f('0xcd')]-0x1;_0x14a46b>=0x0;_0x14a46b--){const _0x5524e3=_0x3559ab[_0x14a46b];if(!this[_0x239f('0x20')][_0x239f('0x9a')](_0x5524e3))return _0x5524e3[_0x239f('0x7e')]+0x1-this[_0x239f('0x38')];}return 0x0;}constructor(_0x4ffa43){if(super(_0x4ffa43),this['_offset']=0x0,this[_0x239f('0x33')]=null,this['serverHistory']=new _0x25fa6e(),this[_0x239f('0x6e')][_0x239f('0x81')]['define'](_0x239f('0xcf'),{}),this[_0x239f('0x9')]=this[_0x239f('0x6e')][_0x239f('0x81')]['get'](_0x239f('0x53')),!this[_0x239f('0x9')])throw new _0x23715f('collaboration-missing-channelid',this);const _0x3fa2ba=_0x4ffa43[_0x239f('0x81')][_0x239f('0x4e')](_0x239f('0xa7'))||_0x53edc8;this[_0x239f('0x26')]=new l[(_0x239f('0x9b'))](_0x3fa2ba,this['_channelId']),this['_document']=this[_0x239f('0x6e')][_0x239f('0x5')][_0x239f('0x89')],this[_0x239f('0x73')]=new _0x12dec6(),this['_bufferedOperations']=[],this[_0x239f('0xc0')]=new WeakSet(),this['_knownRootNames']=new Set(),this['set'](_0x239f('0x3f'),!0x1),this['set'](_0x239f('0x8f'),!0x1),this[_0x239f('0xcb')]=null,this[_0x239f('0x7f')]=!0x1,this[_0x239f('0x5b')]=null,this[_0x239f('0x94')]=0x12c,this[_0x239f('0x31')]=this[_0x239f('0x94')],this[_0x239f('0x92')]=null,this[_0x239f('0x20')]=new WeakSet(),this[_0x239f('0xb5')]=new Q(this[_0x239f('0x20')]);}['init'](){const _0x4cdac5=this[_0x239f('0x6e')],_0x345f72=_0x4cdac5[_0x239f('0xb7')][_0x239f('0x4e')](_0xf442aa),_0x1c7835=_0x4cdac5[_0x239f('0xb7')][_0x239f('0x4e')](_0x21540b);this[_0x239f('0x60')](_0x345f72,_0x239f('0x8d'),(_0x5bdafb,_0x5d0b3a)=>{const _0x264980=_0x5d0b3a[0x0];_0x264980['_authorId']&&(_0x5bdafb[_0x239f('0xd3')]=_0x345f72[_0x239f('0x58')](_0x264980['_authorId']),_0x5bdafb[_0x239f('0x6f')]()),null===_0x264980[_0x239f('0xae')]&&(_0x5bdafb[_0x239f('0xd3')]=null,_0x5bdafb[_0x239f('0x6f')]());},{'priority':_0x239f('0x74')}),this[_0x239f('0x60')](_0x4cdac5[_0x239f('0x5')]['document'][_0x239f('0xd1')],_0x239f('0x4'),(_0x2f5555,_0x4cfa46)=>{_0x4cfa46[_0x239f('0x5c')]&&this['_refreshUserSelectionMarkers']();}),this[_0x239f('0x60')](_0x4cdac5[_0x239f('0xa0')][_0x239f('0x15')],'change:hasDomSelection',()=>{this[_0x239f('0x61')]();}),this[_0x239f('0xc8')](),_0x4cdac5[_0x239f('0x5')]['on'](_0x239f('0x5e'),(_0x61d09b,_0x5ee80d)=>{const _0x4ce9b3=_0x5ee80d[0x0];_0x4ce9b3['isDocumentOperation']&&(this[_0x239f('0x4d')](_0x4ce9b3),this['_shouldSendUpdate']()&&this[_0x239f('0x82')]());}),this[_0x239f('0xd9')](),this['bind']('_isEditingAllowed')['to'](_0x1c7835,_0x239f('0x14'),this,'_hasSynchronizationProblem',(_0x26c02b,_0x139b47)=>_0x239f('0xa4')===_0x26c02b&&!_0x139b47),this['on'](_0x239f('0x30'),()=>{this[_0x239f('0x59')]?_0x4cdac5[_0x239f('0x0')]('rtc-offline'):_0x4cdac5[_0x239f('0xa2')](_0x239f('0xd2'));}),this[_0x239f('0x59')]?_0x4cdac5[_0x239f('0x0')]('rtc-offline'):_0x4cdac5[_0x239f('0xa2')](_0x239f('0xd2')),this[_0x239f('0x75')](_0x239f('0x17'),!0x1);}async[_0x239f('0x8a')](){const _0x433bfd=this[_0x239f('0x6e')][_0x239f('0xb7')][_0x239f('0x4e')](_0x3b6ca5),_0x435df0=this['editor'][_0x239f('0xb7')][_0x239f('0x4e')](_0x21540b);try{this[_0x239f('0x3f')]=!0x0,_0x433bfd[_0x239f('0x71')](this[_0x239f('0x9')]);const _0x2ddbae=await this[_0x239f('0x26')]['reconnect'](_0x435df0['connection'],this[_0x239f('0xbb')]);await this[_0x239f('0x83')](_0x2ddbae)&&(this[_0x239f('0x3f')]=!0x1,this[_0x239f('0x2b')]());const _0x345a20=await this['_service'][_0x239f('0xda')]();_0x433bfd['register'](this[_0x239f('0x9')],_0x345a20),this[_0x239f('0x37')](),this[_0x239f('0x17')]=!0x0;}catch(_0x41e2b1){if(function(_0x548b10){return'404'===_0x548b10[_0x239f('0x1a')];}(_0x41e2b1)&&this['sessionId'])await this[_0x239f('0x52')]();else{if(function(_0x1bfe16){return _0x239f('0x57')===_0x1bfe16[_0x239f('0x1a')];}(_0x41e2b1)){const _0x2e0f92=_0x23f419(this[_0x239f('0x6e')][_0x239f('0x72')],_0x239f('0xf'));this['_handleReconnectionError'](_0x2e0f92);}else{if(!(_0x41e2b1 instanceof K))throw _0x41e2b1;this[_0x239f('0x6b')]();}}}}['destroy'](){const _0x179acf=this[_0x239f('0x6e')]['plugins'][_0x239f('0x4e')](_0x21540b),_0x52352a=this['editor'][_0x239f('0xb7')][_0x239f('0x4e')](_0x3b6ca5);this['editor']['enableReadOnlyMode'](_0x239f('0xac')),_0x52352a[_0x239f('0x2')]['has'](this[_0x239f('0x9')])&&_0x52352a['unregister'](this[_0x239f('0x9')]),_0x179acf[_0x239f('0x5d')](this),this['_disconnectService'](),super['destroy']();}async[_0x239f('0x83')](_0x3704ba){if(this[_0x239f('0x33')]!==_0x3704ba[_0x239f('0x33')]&&this[_0x239f('0x92')]!==_0x3704ba[_0x239f('0x4a')])throw new K();return this['sessionId']=_0x3704ba['sessionId'],this[_0x239f('0xb')]([],{..._0x3704ba,'wereChangesApplied':!0x1,'data':_0x3704ba[_0x239f('0xce')]},_0x239f('0x8a'));}async[_0x239f('0x25')](_0x4da26a,_0x4de8ad=!0x1){const {connection:_0x3483dc}=this[_0x239f('0x6e')]['plugins'][_0x239f('0x4e')](_0x21540b);l['CollaborativeEditingService'][_0x239f('0xda')](_0x3483dc,this[_0x239f('0x9')])[_0x239f('0xb2')](_0x2c00a7=>this[_0x239f('0xd4')](_0x2c00a7))[_0x239f('0xb6')](_0xb36bf4=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0xb36bf4);}),this[_0x239f('0x60')](this['_service'],_0x239f('0x40'),this[_0x239f('0x55')][_0x239f('0x49')](this)),this['listenTo'](this[_0x239f('0x26')],_0x239f('0x79'),(_0x3b11cd,_0x116db8)=>{this[_0x239f('0x22')](_0x239f('0x50'),_0x116db8);}),this[_0x239f('0x60')](this[_0x239f('0x26')],_0x239f('0x97'),()=>{this[_0x239f('0x17')]=!0x1;});const _0x5260d3=this[_0x239f('0xb5')][_0x239f('0x54')](_0x4da26a);this[_0x239f('0x3f')]=!0x0;const _0x56c5e7=await this[_0x239f('0x26')][_0x239f('0xb9')](_0x3483dc,this[_0x239f('0xd7')](_0x4da26a),_0x5260d3);if(this[_0x239f('0x33')]=_0x56c5e7[_0x239f('0x33')],_0x4de8ad){if(!_0x56c5e7['wereChangesApplied'])return void this['_handleReconnectionError']();this[_0x239f('0x3f')]=!0x1,this[_0x239f('0x2b')](),this['serverHistory'][_0x239f('0xc')](),this[_0x239f('0x38')]=_0x56c5e7[_0x239f('0x3d')],this['serverHistory'][_0x239f('0x36')]=this[_0x239f('0x38')],await this['_handleServerResponse'](_0x4da26a,_0x56c5e7,'reconnection:\x20flushed\x20session');}else await this['_handleInitialConnectionData'](_0x56c5e7,_0x4da26a);this[_0x239f('0x37')](),this[_0x239f('0x17')]=!0x0;}['_handleSendingSelectionMarkers'](){const _0x45b9d3=this[_0x239f('0x6e')][_0x239f('0xb7')][_0x239f('0x4e')](_0x3b6ca5),_0x3f5ace=this[_0x239f('0x6e')]['plugins'][_0x239f('0x4e')](_0x439865),_0x288887=_0x45b9d3[_0x239f('0x2')]['get'](this[_0x239f('0x9')]);_0x288887&&_0x288887[_0x239f('0xcd')]>0x1?_0x3f5ace[_0x239f('0x64')]():this[_0x239f('0x60')](_0x45b9d3,_0x239f('0x90')+this[_0x239f('0x9')],()=>{0x2===_0x45b9d3[_0x239f('0x2')]['get'](this[_0x239f('0x9')])[_0x239f('0xcd')]&&_0x3f5ace[_0x239f('0x64')]();});}async['_handleReceivedOperations'](_0x1d001d,_0xec3d49,_0x5e1574,_0x1063e4){if(!this[_0x239f('0x3f')]&&this['_document'][_0x239f('0x36')]==_0xec3d49){const _0x4c84ad=this[_0x239f('0xca')](_0x5e1574,_0x1063e4);await this['_fetchMissingUsers'](_0x4c84ad),this[_0x239f('0x6a')](_0x4c84ad,_0xec3d49,_0x5e1574[_0x239f('0x4a')])||this['_crash'](_0x239f('0x6c'));}}async[_0x239f('0x52')](){this[_0x239f('0xbd')]();const {locale:_0x5e2981}=this[_0x239f('0x6e')];let _0x567465;try{_0x567465=await this[_0x239f('0x26')]['getDocumentDetails']();}catch(_0x37ea5f){const _0x292c3c=_0x23f419(_0x5e2981,_0x239f('0xc7'));return void this['_handleReconnectionError'](_0x292c3c);}const _0x416541=_0x567465[_0x239f('0x7a')]||_0x567465[_0x239f('0xa')];if(this[_0x239f('0x92')]===_0x416541[_0x239f('0x4a')])await this[_0x239f('0x25')](this[_0x239f('0x6e')][_0x239f('0x5')][_0x239f('0x89')][_0x239f('0x1e')][_0x239f('0x67')](),!0x0);else{const _0x4e7686=_0x23f419(_0x5e2981,_0x239f('0x34'));this['_handleReconnectionError'](_0x4e7686);}}[_0x239f('0xbd')](){this[_0x239f('0x26')][_0x239f('0x2c')](),this[_0x239f('0xb0')]=[],clearTimeout(this[_0x239f('0x5b')]),this[_0x239f('0x11')](this[_0x239f('0x26')]);}[_0x239f('0xd4')](_0x22ea5d){const _0x16c592=this[_0x239f('0x6e')][_0x239f('0xb7')][_0x239f('0x4e')](_0x3b6ca5);this['listenTo'](_0x16c592,_0x239f('0x90')+this[_0x239f('0x9')],(_0xa00093,{session:_0x3fe7f8})=>{if(_0x3fe7f8['id']===_0x16c592['mySessionId']){_0xa00093[_0x239f('0xba')]();const _0x594a6f=this[_0x239f('0x6e')][_0x239f('0xb7')]['has'](_0x239f('0x32'))&&this['editor'][_0x239f('0xb7')][_0x239f('0x4e')](_0x239f('0x32'));let _0x4e7405=_0x3fe7f8[_0x239f('0x10')];_0x594a6f&&_0x594a6f['isEnabled']&&(_0x4e7405=_0x4e7405[_0x239f('0x77')](_0xa34fe8=>_0x239f('0x5a')!==_0xa34fe8)),this['editor']['plugins'][_0x239f('0x4e')](_0x239f('0x1b'))['setPermissions'](_0x4e7405,this[_0x239f('0x9')]);}}),_0x16c592[_0x239f('0x99')](this['_channelId'],_0x22ea5d);}[_0x239f('0xc8')](){const _0x49d9cc=this['editor']['data']['set'];this[_0x239f('0x6e')][_0x239f('0xce')]['set']=(..._0x571506)=>{if(!_0x571506[_0x571506['length']-0x1][_0x239f('0x24')])throw new _0x23715f(_0x239f('0x43'),this);_0x49d9cc[_0x239f('0x47')](this[_0x239f('0x6e')][_0x239f('0xce')],_0x571506);};}[_0x239f('0xd9')](){this['editor'][_0x239f('0xce')]['on']('init',(_0x1c9dd0,[_0x1846ff])=>{if(this[_0x239f('0x8')]['version'])throw new _0x23715f('realtimecollaborationclient-init-document-already-initialized',this);_0x1c9dd0[_0x239f('0x6f')](),this[_0x239f('0x3e')]();const _0x16c1e6=this[_0x239f('0x6e')][_0x239f('0x81')][_0x239f('0x4e')](_0x239f('0xaf')),_0xdcb32e=this['_getOperationsFromInitData'](_0x1846ff,_0x16c1e6);0x0==_0xdcb32e['length']&&_0xdcb32e[_0x239f('0x27')](new _0x5501f9(0x0)),_0x1c9dd0[_0x239f('0xd3')]=this[_0x239f('0x25')](_0xdcb32e)[_0x239f('0xb2')](()=>{this[_0x239f('0x6e')][_0x239f('0xb7')]['get'](_0x21540b)[_0x239f('0x8c')](this),this['editor'][_0x239f('0xce')][_0x239f('0x42')]('ready');})[_0x239f('0xb6')](_0xcdb577=>this[_0x239f('0x22')](_0x239f('0x88'),_0xcdb577))[_0x239f('0xd5')](()=>this[_0x239f('0x2b')]());},{'priority':_0x239f('0x74')}),this[_0x239f('0x6e')]['on'](_0x239f('0x84'),async(_0x4ab7f0,[_0x36db4a,_0x3b361a])=>{_0x4ab7f0[_0x239f('0x6f')]();const _0x25be1a=this[_0x239f('0x6e')][_0x239f('0x5')][_0x239f('0x89')][_0x239f('0xaa')](_0x36db4a);if(!this['_knownRootNames'][_0x239f('0x9a')](_0x36db4a)){const _0x48d191=_0x3b361a&&_0x3b361a['data']?_0x3b361a['data']:'',_0x41a55a=_0x3b361a&&_0x3b361a[_0x239f('0x8e')]?_0x3b361a['attributes']:{};await this[_0x239f('0xbf')](_0x36db4a,_0x48d191,_0x41a55a);}this[_0x239f('0x6e')][_0x239f('0x5')][_0x239f('0xa3')]({'isUndoable':!0x1},()=>{_0x25be1a[_0x239f('0x2f')]=!0x0,this[_0x239f('0x6e')]['model']['document']['differ'][_0x239f('0x9c')](_0x25be1a);});},{'priority':_0x239f('0x74')});}async[_0x239f('0x80')](_0x25228){const _0x2b2318=this[_0x239f('0x6e')][_0x239f('0xb7')][_0x239f('0x4e')](_0xf442aa),{connection:_0x12da40}=this[_0x239f('0x6e')]['plugins'][_0x239f('0x4e')](_0x21540b),_0x2612a1=new Set();for(const _0x510bde of _0x25228){const _0x428d62=_0x510bde[_0x239f('0xae')];_0x428d62&&!_0x2b2318[_0x239f('0x58')](_0x428d62)&&_0x2612a1['add'](_0x428d62);}if(0x0===_0x2612a1[_0x239f('0xc3')])return;const _0x261a15=await _0x2fe19a[_0x239f('0xad')](_0x12da40,Array[_0x239f('0xc5')](_0x2612a1));for(const _0x2087f1 of _0x261a15)_0x2b2318['getUser'](_0x2087f1['id'])||_0x2b2318[_0x239f('0xc9')](_0x2087f1);}['_getOperationsFromInitData'](_0x27ae5c,_0x2668ba={}){const _0x3cc136=this[_0x239f('0x6e')][_0x239f('0x5')],_0x56f3bb=[];let _0x3d5e36=0x0;const _0x3de18c=_0x239f('0xd8')==typeof _0x27ae5c?{'main':_0x27ae5c}:_0x27ae5c;for(const _0x12f472 of Object[_0x239f('0x3')](_0x3de18c)){if(!this[_0x239f('0x8')][_0x239f('0xe')][_0x239f('0x9a')](_0x12f472))throw new _0x23715f(_0x239f('0x6d'),this);const _0x5d6589=this['editor'][_0x239f('0xce')][_0x239f('0x21')](_0x3de18c[_0x12f472]),_0x2afed4=this[_0x239f('0x8')][_0x239f('0xaa')](_0x12f472),_0x44f8fc=new _0x558c0a(_0x3cc136[_0x239f('0x12')](_0x2afed4,0x0),_0x5d6589,_0x3d5e36++);_0x56f3bb['push'](_0x44f8fc);for(const [_0x2ed941,_0x574308]of _0x5d6589[_0x239f('0x39')]){const _0x361efd=_0x3cc136[_0x239f('0xa5')](_0x3cc136[_0x239f('0x62')](_0x2afed4,_0x574308[_0x239f('0x65')]['path'][_0x239f('0x6')]()),_0x3cc136[_0x239f('0x62')](_0x2afed4,_0x574308['end'][_0x239f('0xa9')][_0x239f('0x6')]())),_0x5c12af=new _0x2d779b(_0x2ed941,null,_0x361efd,_0x3cc136[_0x239f('0x39')],!0x0,_0x3d5e36++);_0x56f3bb[_0x239f('0x27')](_0x5c12af);}}if(_0x2668ba)for(const [_0x5659d1,_0x2dc9ff]of Object[_0x239f('0x1')](_0x2668ba)){const _0x278c18=_0x3cc136['document'][_0x239f('0xaa')](_0x5659d1);if(!_0x278c18)throw new _0x23715f(_0x239f('0x9d'),null);for(const [_0x5c7dc5,_0x2901d1]of Object[_0x239f('0x1')](_0x2dc9ff))if(null!==_0x2901d1){const _0x481a66=new _0x3841ba(_0x278c18,_0x5c7dc5,null,_0x2901d1,_0x3d5e36++);_0x56f3bb[_0x239f('0x27')](_0x481a66);}}return _0x56f3bb;}async[_0x239f('0xbf')](_0x2d2390,_0x4004d9,_0x3e597c){this[_0x239f('0x19')]({[_0x2d2390]:_0x4004d9},{[_0x2d2390]:_0x3e597c})['forEach']((_0x2c14e6,_0x5463d1)=>{_0x2c14e6[_0x239f('0x7e')]=this[_0x239f('0x8')][_0x239f('0x36')]+_0x5463d1,_0x2c14e6['_isInit']=!0x0,this[_0x239f('0x4d')](_0x2c14e6);}),this[_0x239f('0x82')](),await this[_0x239f('0x4c')]();}async[_0x239f('0x4b')](_0x1a1804,_0x20c969){let _0x5432db;this['_offset']=_0x1a1804[_0x239f('0x3d')];const _0x23850c=_0x1a1804[_0x239f('0xab')]&&!_0x1a1804[_0x239f('0x9e')],_0x3a6d09=_0x23850c?0x0:_0x1a1804[_0x239f('0xce')][_0x239f('0x7e')];if(_0x20c969[_0x239f('0xbc')](_0x3fdbba=>{_0x3fdbba[_0x239f('0x3c')]=!0x0,_0x3fdbba['createdAt']=_0x1a1804[_0x239f('0x45')],_0x3fdbba[_0x239f('0xae')]=null;}),_0x23850c)_0x5432db=_0x20c969,this[_0x239f('0x7d')](_0x5432db,_0x23850c);else{if(_0x1a1804[_0x239f('0x9e')]){const _0x354b02=this['_getOperationsFromInitData'](_0x1a1804[_0x239f('0x9e')]);this[_0x239f('0x8')][_0x239f('0x1e')][_0x239f('0x36')]=-_0x354b02[_0x239f('0xcd')],_0x354b02[_0x239f('0xbc')](_0x2d6204=>{_0x2d6204[_0x239f('0x7e')]-=_0x354b02[_0x239f('0xcd')],_0x2d6204['createdAt']=_0x1a1804[_0x239f('0x45')],_0x2d6204[_0x239f('0x3c')]=!0x0,_0x2d6204['_authorId']=null;}),this['_applyOperationsSet'](_0x354b02,!0x0),this[_0x239f('0xc1')][_0x239f('0x36')]=-_0x354b02['length']+this['_offset'],this[_0x239f('0xd')](_0x354b02);}this['_document']['history'][_0x239f('0x36')]=_0x3a6d09,_0x5432db=this['_decompressOperations'](_0x1a1804[_0x239f('0xce')],_0x1a1804['metadata']),await this['_fetchMissingUsers'](_0x5432db),this[_0x239f('0x7d')](_0x5432db,_0x23850c);}_0x1a1804[_0x239f('0x4a')]&&(this[_0x239f('0xb5')][_0x239f('0x28')](_0x5432db,_0x1a1804[_0x239f('0x4a')]),this[_0x239f('0x92')]=_0x1a1804[_0x239f('0x4a')]),this[_0x239f('0xc1')][_0x239f('0x36')]=_0x3a6d09+this['_offset'],this[_0x239f('0xd')](_0x5432db),_0x20c969[_0x239f('0x77')](_0x55cb11=>{const _0x3c5b69=this[_0x239f('0x91')](_0x55cb11);return _0x3c5b69&&!this[_0x239f('0x2d')][_0x239f('0x9a')](_0x3c5b69);})[_0x239f('0xbc')]((_0xced3ec,_0x3ac5b3)=>{_0xced3ec[_0x239f('0x7e')]=this[_0x239f('0x8')][_0x239f('0x36')]+_0x3ac5b3,this[_0x239f('0x4d')](_0xced3ec);}),this[_0x239f('0xd0')]()?(this[_0x239f('0x31')]=0x0,this[_0x239f('0x82')](!0x0),await this[_0x239f('0x4c')]()):(this[_0x239f('0x3f')]=!0x1,this[_0x239f('0x2b')]());}[_0x239f('0x22')](_0x3d32bc,_0x31c1e1){throw this[_0x239f('0x3f')]=!0x0,_0x31c1e1&&console[_0x239f('0x79')](_0x31c1e1),new _0x23715f(_0x3d32bc,this[_0x239f('0x6e')]);}[_0x239f('0x4d')](_0x4eb36a){this[_0x239f('0xc0')][_0x239f('0x9a')](_0x4eb36a)||(this['_knownOperations']['add'](_0x4eb36a),this['_bufferedOperations'][_0x239f('0x27')](_0x4eb36a),this['_pendingAction']||'marker'==_0x4eb36a[_0x239f('0xa8')]&&!_0x4eb36a['affectsData']||this['_setPendingAction']());}[_0x239f('0x82')](_0x3d3245=!0x1){!_0x3d3245&&this[_0x239f('0x3f')]||(this[_0x239f('0x3f')]=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this[_0x239f('0x16')]()['then'](_0x9a1f2b=>{_0x9a1f2b&&(this[_0x239f('0x2b')](),this['_isPendingUpdate']=!0x1);})[_0x239f('0xb6')](_0x43d74b=>{if(this['_clearPendingAction'](),this[_0x239f('0x3f')]=!0x1,!function(_0x112fd9){return _0x112fd9['message'][_0x239f('0xa6')]('cloud-services-internal-error:\x20Not\x20connected.')||_0x112fd9[_0x239f('0x68')][_0x239f('0xa6')](_0x239f('0x7'))||_0x112fd9[_0x239f('0x68')]['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}(_0x43d74b))throw _0x43d74b;});},this[_0x239f('0x31')]));}['_waitUntilSynced'](){return new Promise(_0x28650e=>{this['on'](_0x239f('0x86'),()=>{_0x28650e();});});}async[_0x239f('0x16')](){const _0x2d8588=this[_0x239f('0x6e')]['plugins'][_0x239f('0x4e')](_0x439865);if(this[_0x239f('0x35')]()&&(_0x2d8588['createUserMarkerOperations'](),this[_0x239f('0x7f')]=!0x1),!this[_0x239f('0xd0')]())return!0x0;const _0x196364=[...this[_0x239f('0xb0')]];for(const _0xa101ae of _0x196364)_0xa101ae['wasUndone']=this['_document'][_0x239f('0x1e')][_0x239f('0xb3')](_0xa101ae);const _0x23d959=this[_0x239f('0xb5')][_0x239f('0x54')](_0x196364),_0x56ba51=$++,_0x22b373=this[_0x239f('0xd7')](_0x196364),_0x5e851d=await this[_0x239f('0x26')][_0x239f('0xc4')](_0x22b373,_0x22b373[_0x239f('0x7e')],_0x23d959);try{return await this['_handleServerResponse'](_0x196364,_0x5e851d,_0x56ba51);}catch(_0x35d31b){return this[_0x239f('0x22')](_0x239f('0x29'),_0x35d31b);}}async['_handleServerResponse'](_0x1e96eb,_0x47b0b2,_0x2947ab){if(_0x239f('0x79')in _0x47b0b2)throw _0x47b0b2[_0x239f('0x79')];let _0x280501=!0x1;if(_0x47b0b2[_0x239f('0xab')]){_0x47b0b2[_0x239f('0x4a')]&&(this[_0x239f('0x92')]=_0x47b0b2[_0x239f('0x4a')]),this['_bufferedOperations']=this[_0x239f('0xb0')][_0x239f('0x77')](_0x583ea4=>!_0x1e96eb[_0x239f('0x3a')](_0x583ea4));for(const _0x1ed323 of _0x1e96eb)_0x1ed323[_0x239f('0x1d')]=_0x239f('0x98')in _0x47b0b2&&_0x47b0b2['lastOperationAcceptedAt']||void 0x0;J(_0x1e96eb,_0x47b0b2[_0x239f('0x36')]-_0x1e96eb['length']),this[_0x239f('0xd')](_0x1e96eb);const _0x545744=_0x1e96eb[_0x239f('0x77')](_0x539252=>{if(!_0x539252[_0x239f('0x3c')])return!0x1;const _0x1c7b3c=this['_getAffectedRoot'](_0x539252);return _0x1c7b3c&&!this[_0x239f('0x2d')]['has'](_0x1c7b3c);});J(_0x545744,this[_0x239f('0x8')][_0x239f('0x36')]),this[_0x239f('0x7d')](_0x545744),_0x280501=!0x0,this['_currentBufferDelay']=this[_0x239f('0x94')];}else{const _0x2e8b5=this[_0x239f('0xca')](_0x47b0b2[_0x239f('0xce')],_0x47b0b2[_0x239f('0x41')])['filter'](_0xa6c001=>_0xa6c001[_0x239f('0x7e')]>=this[_0x239f('0x2e')]);_0x2e8b5[_0x239f('0xbc')](_0x53b493=>this['_addKnownRoot'](_0x53b493)),this[_0x239f('0xb0')]=this[_0x239f('0xb0')][_0x239f('0x77')](_0x424b4d=>!_0x424b4d[_0x239f('0x3c')]||!this['_knownRootNames'][_0x239f('0x9a')](this['_getAffectedRoot'](_0x424b4d))),this[_0x239f('0xb0')][_0x239f('0xcd')]&&J(this[_0x239f('0xb0')],this['_bufferedOperations'][0x0]['baseVersion']),await this[_0x239f('0x80')](_0x2e8b5),_0x280501=this[_0x239f('0x6a')](_0x2e8b5,_0x47b0b2['version'],_0x47b0b2[_0x239f('0x4a')]),this[_0x239f('0x31')]=Math[_0x239f('0x2a')](this['_currentBufferDelay']/0x2);}return _0x280501?!this[_0x239f('0xd0')]()||(this[_0x239f('0x82')](!0x0),!0x1):this[_0x239f('0x22')](_0x239f('0x96'));}[_0x239f('0x6a')](_0x39053e,_0x267b38,_0x2ba881){try{const _0x2f5d4d={'document':this[_0x239f('0x8')],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0xe860e3,operationsB:_0x232dd8,originalOperations:_0x2ec78f}=_0xe26049(_0x39053e,this[_0x239f('0xb0')],_0x2f5d4d);J(_0xe860e3,this[_0x239f('0x8')][_0x239f('0x36')]),J(_0x232dd8,_0x267b38);for(const _0x48b68f of _0xe860e3){const _0x392f31=_0x2ec78f[_0x239f('0x4e')](_0x48b68f);_0x48b68f[_0x239f('0xae')]=_0x392f31?_0x392f31[_0x239f('0xae')]:null;}_0x2ba881&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x39053e,_0x2ba881),this['_lastSyncedOperationId']=_0x2ba881),this[_0x239f('0xb0')]=[..._0x232dd8],this[_0x239f('0x7d')](_0xe860e3),this[_0x239f('0xd')](_0x39053e);}catch(_0x5828f2){return console[_0x239f('0x79')](_0x5828f2),!0x1;}return!0x0;}[_0x239f('0x7d')](_0x31a287,_0x376b2e=!0x1){this[_0x239f('0x6e')][_0x239f('0x5')][_0x239f('0xa3')]({'isUndoable':!0x1,'isLocal':!0x1},_0x455115=>{for(const _0x2fd31c of _0x31a287)this[_0x239f('0xc0')][_0x239f('0x44')](_0x2fd31c),this[_0x239f('0x1f')](_0x2fd31c),_0x455115[_0x239f('0xbe')][_0x239f('0xd6')](_0x2fd31c),this[_0x239f('0x6e')]['model'][_0x239f('0x5e')](_0x2fd31c);});}['_addKnownRoot'](_0x4cb62a){const _0x8a0372=this[_0x239f('0x91')](_0x4cb62a);_0x8a0372&&this[_0x239f('0x2d')][_0x239f('0x44')](_0x8a0372);}[_0x239f('0x91')](_0x1f3805){let _0x50efc8,_0x25e9fc;switch(_0x1f3805[_0x239f('0xa8')]){case _0x239f('0x3b'):_0x50efc8=_0x1f3805['position'][_0x239f('0x9f')];break;case _0x239f('0xb1'):if(_0x25e9fc=_0x1f3805['newRange'],!_0x25e9fc)return null;_0x50efc8=_0x25e9fc[_0x239f('0x9f')];break;case _0x239f('0x56'):_0x50efc8=_0x1f3805[_0x239f('0x9f')];break;case _0x239f('0xcc'):_0x50efc8=_0x1f3805[_0x239f('0xc6')];break;case _0x239f('0x93'):_0x50efc8=_0x1f3805['targetPosition']['root'];break;default:return null;}return _0x50efc8[_0x239f('0xc2')];}[_0x239f('0xd')](_0x553c09){_0x553c09[_0x239f('0xbc')](_0x5e6015=>{const _0x17e2e8=_0x5e6015[_0x239f('0x87')]();_0x17e2e8[_0x239f('0xae')]=_0x5e6015['_authorId'],_0x17e2e8[_0x239f('0x3c')]=!!_0x5e6015['_isInit'],_0x17e2e8['createdAt']=_0x5e6015['createdAt'],_0x17e2e8[_0x239f('0x7e')]+=this[_0x239f('0x38')],_0x5e6015[_0x239f('0x63')]&&this[_0x239f('0x20')][_0x239f('0x44')](_0x17e2e8),this[_0x239f('0xc1')][_0x239f('0xd6')](_0x17e2e8);});}[_0x239f('0x6b')](_0x3608e9){const _0x481dff=this[_0x239f('0x6e')]['plugins'][_0x239f('0x4e')]('Notification'),_0x31f44b=this[_0x239f('0x6e')][_0x239f('0x72')];_0x3608e9||(_0x3608e9=_0x23f419(_0x31f44b,_0x239f('0x7b'))),_0x481dff['showWarning'](_0x3608e9,{'title':_0x23f419(_0x31f44b,'Synchronization\x20issue'),'namespace':_0x239f('0x78')}),this[_0x239f('0x8f')]=!0x0,clearTimeout(this[_0x239f('0x5b')]),this[_0x239f('0xb0')]=[],this['editor']['plugins'][_0x239f('0x4e')](_0x21540b)[_0x239f('0x70')]();}['_setPendingAction'](){this[_0x239f('0xcb')]||(this[_0x239f('0xcb')]=this['editor']['plugins'][_0x239f('0x4e')](_0x473e52)[_0x239f('0x44')](_0x23f419(this['editor'][_0x239f('0x72')],_0x239f('0x48'))));}[_0x239f('0x2b')](){this[_0x239f('0xcb')]&&(this[_0x239f('0x6e')]['plugins']['get'](_0x473e52)[_0x239f('0x13')](this[_0x239f('0xcb')]),this[_0x239f('0xcb')]=null);}[_0x239f('0xd7')](_0x41245e){const _0xad3fe2=_0x41245e[_0x239f('0xb4')](_0x34d699=>_0x34d699[_0x239f('0x18')]());return this[_0x239f('0x73')]['compress'](_0xad3fe2);}[_0x239f('0xca')](_0x509615,_0x31dfa3){return this[_0x239f('0x73')]['decompress'](_0x509615)[_0x239f('0xb4')]((_0x17a720,_0x165b36)=>{const _0x3d473a='init'==_0x31dfa3[_0x165b36][_0x239f('0xa8')];if(_0x239f('0x1c')==_0x17a720[_0x239f('0x95')]){const _0x5ea960=_0x17a720[_0x239f('0x85')][_0x239f('0x9f')];!this[_0x239f('0x8')][_0x239f('0xaa')](_0x5ea960)&&(this['_document']['createRoot']('$root',_0x5ea960)[_0x239f('0x4f')]=!0x1);}const _0x1658fb=_0x265b70[_0x239f('0x7c')](_0x17a720,this['_document']);return _0x1658fb['wasUndone']=_0x17a720[_0x239f('0x46')],_0x1658fb['_isInit']=_0x3d473a,_0x1658fb[_0x239f('0xae')]=_0x3d473a?null:_0x31dfa3[_0x165b36][_0x239f('0x8b')],_0x1658fb[_0x239f('0x63')]=_0x239f('0x69')===_0x31dfa3[_0x165b36][_0x239f('0xa8')],_0x1658fb['createdAt']=_0x31dfa3[_0x165b36][_0x239f('0x1d')],_0x1658fb;});}[_0x239f('0x61')](){this[_0x239f('0x7f')]=!0x0,this[_0x239f('0x35')]()?this[_0x239f('0x82')]():this[_0x239f('0x7f')]=!0x1;}[_0x239f('0x35')](){const _0x5e27cd=this['editor'][_0x239f('0xb7')][_0x239f('0x4e')](_0x3b6ca5)['channelSessions'][_0x239f('0x4e')](this[_0x239f('0x9')]);return!this[_0x239f('0x6e')][_0x239f('0x76')]&&!!_0x5e27cd&&_0x5e27cd[_0x239f('0xcd')]>0x1&&this[_0x239f('0x7f')];}[_0x239f('0xd0')](){return this['_bufferedOperations'][_0x239f('0xcd')]>0x0||this['_shouldSendSelectionUpdate']();}}l[_0x239f('0x9b')]=_0x4f6cd2;export default l;class K extends Error{}function J(_0x119a13,_0xc108b6){for(const _0x58a2e6 of _0x119a13)_0x58a2e6[_0x239f('0x7e')]=_0xc108b6++;}class Q{constructor(_0xd897ef){this['_ignoredOperations']=_0xd897ef,this['_operationToId']=new WeakMap();}['getIdOfTheLastOperation'](_0x4b5b47){let _0xbd495b=_0x4b5b47[_0x239f('0xcd')];for(;_0xbd495b--;){const _0x3ba08d=_0x4b5b47[_0xbd495b];if(!this[_0x239f('0xa1')][_0x239f('0x9a')](_0x3ba08d)){if(!this[_0x239f('0x5f')]['has'](_0x3ba08d)){const _0x4faf95=_0x53e6e7()['slice'](0x1,0x12);this[_0x239f('0x5f')][_0x239f('0x75')](_0x3ba08d,_0x4faf95);}return this['_operationToId']['get'](_0x3ba08d);}}}[_0x239f('0x28')](_0x5519b7,_0x261471){if(!_0x261471)return;let _0x519e88=_0x5519b7[_0x239f('0xcd')];for(;_0x519e88--;){const _0x1a201a=_0x5519b7[_0x519e88];this[_0x239f('0xa1')][_0x239f('0x9a')](_0x1a201a)||this[_0x239f('0x5f')][_0x239f('0x75')](_0x1a201a,_0x261471);}}}
23
+ const _0x15f1b2=_0xe987;(function(_0x55726c,_0x3b8d00){const _0xfc09be=_0xe987,_0x3e4363=_0x55726c();while(!![]){try{const _0x49522d=parseInt(_0xfc09be(0x1f3))/0x1*(-parseInt(_0xfc09be(0x25f))/0x2)+-parseInt(_0xfc09be(0x1e5))/0x3*(parseInt(_0xfc09be(0x2a4))/0x4)+-parseInt(_0xfc09be(0x29b))/0x5+-parseInt(_0xfc09be(0x20b))/0x6*(-parseInt(_0xfc09be(0x1e4))/0x7)+parseInt(_0xfc09be(0x20c))/0x8*(parseInt(_0xfc09be(0x24b))/0x9)+-parseInt(_0xfc09be(0x24e))/0xa*(parseInt(_0xfc09be(0x1e6))/0xb)+parseInt(_0xfc09be(0x213))/0xc*(parseInt(_0xfc09be(0x296))/0xd);if(_0x49522d===_0x3b8d00)break;else _0x3e4363['push'](_0x3e4363['shift']());}catch(_0x2c74b2){_0x3e4363['push'](_0x3e4363['shift']());}}}(_0xc8b7,0xc4bd2));function _0xc8b7(){const _0x53c557=['removeFromReconnectionStack','keys','$root','_pendingAction','error','attributes','start','loadRoot','connection','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','affectsData','_knownOperations','change:_isEditingAllowed','reconnection:\x20flushed\x20session','_handleServerResponse','plugins','1632429qILQRU','type','end','9554570tBlUzS','filter','_applyOperationsSet','roots','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','requires','config','_compressOperations','_sendBufferedOperationsDelayed','stopListening','parse','document:write','insert','isDocumentOperation','cloud-services-internal-error:\x20Request\x20timeout.','_crash','rtc-offline','2332KtYFIo','_handleReceivedOperations','_updateServerHistory','real-time-collaboration','decompress','mySessionId','newRange','then','collaboration-missing-channelid','_handleSendingSelectionMarkers','_knownRootNames','connected','lastDocumentSession','unregister','rootsAttributes','editing','stop','from','_fetchMissingUsers','_isInit','InsertOperation','_addKnownRoot','ready','_lastServerVersion','get','serverHistory','Synchronization\x20issue','map','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','version','_decompressOperations','_bufferedOperations','_channelId','has','isReadOnly','createRange','_shouldSendSelectionUpdate','rootName','suppressErrorInCollaboration','listenTo','marker','_handleInitialConnectionData','length','_initThrowingOnDataSet','isEnabled','lastSyncVersion','getOperationAuthor','rtc-destroyed','_loadRoot','locale','applyOperation','createPositionAt','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_baseBufferDelay','markers','31988879DwtMUE','Notification','size','add','_document','5255770HyoDUm','isUndoneOperation','slice','move','_getAffectedRoot','setIdForTheLastOperation','_saveOperationInBuffer','_sendBufferedOperations','push','21236EEBmGf','reset','disableReadOnlyMode','_isLoaded','RealTimeCollaborationClient','sessionAdd:','_handleReconnectionResponse','setPermissions','getDocumentDetails','connect','return','destroy','realtimecollaborationclient-init-connection-failed','realtimecollaborationclient-init-document-already-initialized','differ','history','sessionId','_disconnectService','createUserMarkerOperations','_connectService','collaboration','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','entries','CollaborativeEditingService','collaboration.channelId','createdAt','targetPosition','data','channelSessions','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','batch','_setPendingAction','forEach','editor','_refreshUserSelectionMarkers','realtimecollaborationclient-handleserverresponse','addToReconnectionStack','_isDisconnection','realtimecollaborationclient-init-session-connection-error','code','cloudServices.bundleVersion','getConnectedSessions','_authorId','change:_isPendingUpdate','state','_isAttached','cs:removeUser','view','404','getMany','_sendBufferedOperationsDelayId','createPositionFromPath','sendOperations','bind','initData','showWarning','_handleReconnectionError','_offset','round','position','addOperation','toJSON','off','fromJSON','_compressor','message','_currentBufferDelay','_lastSyncedOperationId','init','10663583rbwxGO','246phLKoC','11frCVtq','offset','realtimecollaborationclient-initservice-incorrect-server-operation','_shouldSendUpdate','reconnect','_isEditingAllowed','createRoot','_operationIdentifier','_handleExternalOperations','addRootAttribute','string','_connectAfterSessionHasBeenFlushed','userId','787sFAmtU','realtimecollaborationclient-sendbufferedoperations','change:range','addRoot','getOperations','define','permissions','cloudDocumentVersion','getUser','catch','register','_waitUntilSynced','metadata','Permissions','_clearPendingAction','_ignoredOperations','clone','CommentsOnly','_bufferRootLoad','remove','enableReadOnlyMode','finally','_service','_initSessionsHandling','6rdiJjk','8lZLgLo','sessionCreatedAt','_disconnectionOperations','operationsReceived','disconnect','selection','affectedSelectable','12OKOokl','realtimecollaborationclient-init-non-existent-root','currentDocumentSession','wereChangesApplied','_isConnected','apply','model','409','PENDING_ACTION_SENDING_DATA','getRoot','multi-root-editor-root-attributes-no-root','_operationToId','enqueueChange','cloud-services-internal-error:\x20Not\x20connected.','includes','_setUpDataInit','baseVersion','wasUndone','lastOperationId','getIdOfTheLastOperation','fire','lastOperationAcceptedAt','change:hasDomSelection','startsWith','pluginName','_getOperationsFromInitData','realtimecollaborationclient-initservice-internal-error','set','__className','high','directChange','_hasSynchronizationProblem','document','root','disconnected','compress','_isPendingUpdate','addUser','path','_hasSelectionChanged'];_0xc8b7=function(){return _0x53c557;};return _0xc8b7();}import{Plugin as _0x1af19a,PendingActions as _0xcd2b6f}from'ckeditor5/src/core.js';import{CKEditorError as _0x3e3c6b,version as _0xdd2914,uid as _0x281225}from'ckeditor5/src/utils.js';import{Notification as _0x1a2199}from'ckeditor5/src/ui.js';import{transformSets as _0x1c4b42,NoOperation as _0x3b7393,InsertOperation as _0x5d7584,MarkerOperation as _0x369d60,RootAttributeOperation as _0x29fcae,OperationFactory as _0x4191b8,History as _0x1d8f17}from'ckeditor5/src/engine.js';import _0x4db621 from'./websocketgateway.js';import _0x5ad414 from'./sessions.js';import _0x28f308 from'./usermarkers.js';import{getTranslation as _0xe23eda}from'../common-translations.js';import _0x19e7c3 from'@ckeditor/ckeditor5-operations-compressor/src/compressor.js';import{Users as _0x2b9913}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x49b26c}from'@ckeditor/ckeditor-cloud-services-collaboration';import{CollaborativeEditingService as _0x24a5a8}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let K=0x1;class l extends _0x1af19a{static get[_0x15f1b2(0x253)](){return[_0x4db621,_0x5ad414,_0x28f308,_0xcd2b6f,_0x2b9913,_0x1a2199];}static get[_0x15f1b2(0x22b)](){const _0x56a639=_0x15f1b2;return _0x56a639(0x2a8);}get[_0x15f1b2(0x1fa)](){const _0x47d292=_0x15f1b2;return this[_0x47d292(0x276)]+this[_0x47d292(0x2dd)];}get[_0x15f1b2(0x276)](){const _0x4ef08f=_0x15f1b2;return this[_0x4ef08f(0x278)][_0x4ef08f(0x27c)]-this[_0x4ef08f(0x2dd)];}get[_0x15f1b2(0x28c)](){const _0x262753=_0x15f1b2,_0x24cca1=this[_0x262753(0x278)][_0x262753(0x1f7)]();for(let _0xba454d=_0x24cca1[_0x262753(0x289)]-0x1;_0xba454d>=0x0;_0xba454d--){const _0x28634e=_0x24cca1[_0xba454d];if(!this[_0x262753(0x20e)][_0x262753(0x280)](_0x28634e))return _0x28634e[_0x262753(0x223)]+0x1-this[_0x262753(0x2dd)];}return 0x0;}constructor(_0x4406b0){const _0x1e00f8=_0x15f1b2;if(super(_0x4406b0),this[_0x1e00f8(0x2dd)]=0x0,this[_0x1e00f8(0x2b4)]=null,this[_0x1e00f8(0x278)]=new _0x1d8f17(),this[_0x1e00f8(0x2c5)][_0x1e00f8(0x254)][_0x1e00f8(0x1f8)](_0x1e00f8(0x2b8),{}),this[_0x1e00f8(0x27f)]=this[_0x1e00f8(0x2c5)][_0x1e00f8(0x254)][_0x1e00f8(0x277)](_0x1e00f8(0x2bc)),!this[_0x1e00f8(0x27f)])throw new _0x3e3c6b(_0x1e00f8(0x267),this);const _0x7e5d5b=_0x4406b0[_0x1e00f8(0x254)][_0x1e00f8(0x277)](_0x1e00f8(0x2cc))||_0xdd2914;this[_0x1e00f8(0x209)]=new l[(_0x1e00f8(0x2bb))](_0x7e5d5b,this[_0x1e00f8(0x27f)]),this[_0x1e00f8(0x29a)]=this[_0x1e00f8(0x2c5)][_0x1e00f8(0x219)][_0x1e00f8(0x233)],this[_0x1e00f8(0x2e4)]=new _0x19e7c3(),this[_0x1e00f8(0x27e)]=[],this[_0x1e00f8(0x246)]=new WeakSet(),this[_0x1e00f8(0x269)]=new Set(),this[_0x1e00f8(0x22e)](_0x1e00f8(0x237),!0x1),this[_0x1e00f8(0x22e)](_0x1e00f8(0x232),!0x1),this[_0x1e00f8(0x23e)]=null,this[_0x1e00f8(0x23a)]=!0x1,this[_0x1e00f8(0x2d6)]=null,this[_0x1e00f8(0x294)]=0x12c,this[_0x1e00f8(0x2e6)]=this[_0x1e00f8(0x294)],this[_0x1e00f8(0x1e2)]=null,this[_0x1e00f8(0x20e)]=new WeakSet(),this[_0x1e00f8(0x1ed)]=new X(this[_0x1e00f8(0x20e)]);}[_0x15f1b2(0x1e3)](){const _0x343c5d=_0x15f1b2,_0x332496=this[_0x343c5d(0x2c5)],_0x2a7f5f=_0x332496[_0x343c5d(0x24a)][_0x343c5d(0x277)](_0x2b9913),_0x5126af=_0x332496[_0x343c5d(0x24a)][_0x343c5d(0x277)](_0x4db621);this[_0x343c5d(0x286)](_0x2a7f5f,_0x343c5d(0x28d),(_0x1d1b9d,_0xcd32d)=>{const _0x3e0a59=_0x343c5d,_0x4378f2=_0xcd32d[0x0];_0x4378f2[_0x3e0a59(0x2ce)]&&(_0x1d1b9d[_0x3e0a59(0x2ae)]=_0x2a7f5f[_0x3e0a59(0x1fb)](_0x4378f2[_0x3e0a59(0x2ce)]),_0x1d1b9d[_0x3e0a59(0x26f)]()),null===_0x4378f2[_0x3e0a59(0x2ce)]&&(_0x1d1b9d[_0x3e0a59(0x2ae)]=null,_0x1d1b9d[_0x3e0a59(0x26f)]());},{'priority':_0x343c5d(0x230)}),this[_0x343c5d(0x286)](_0x332496[_0x343c5d(0x219)][_0x343c5d(0x233)][_0x343c5d(0x211)],_0x343c5d(0x1f5),(_0x25a83b,_0x20a25f)=>{const _0x4d3eff=_0x343c5d;_0x20a25f[_0x4d3eff(0x231)]&&this[_0x4d3eff(0x2c6)]();}),this[_0x343c5d(0x286)](_0x332496[_0x343c5d(0x26e)][_0x343c5d(0x2d3)],_0x343c5d(0x229),()=>{const _0x4d05b1=_0x343c5d;this[_0x4d05b1(0x2c6)]();}),this[_0x343c5d(0x28a)](),_0x332496[_0x343c5d(0x219)]['on'](_0x343c5d(0x291),(_0x5f353f,_0x578a95)=>{const _0x297ef0=_0x343c5d,_0x53220a=_0x578a95[0x0];_0x53220a[_0x297ef0(0x25b)]&&(this[_0x297ef0(0x2a1)](_0x53220a),this[_0x297ef0(0x1e9)]()&&this[_0x297ef0(0x256)]());}),this[_0x343c5d(0x222)](),this[_0x343c5d(0x2d9)](_0x343c5d(0x1eb))['to'](_0x5126af,_0x343c5d(0x2d0),this,_0x343c5d(0x232),(_0x28c60d,_0x18b450)=>_0x343c5d(0x26a)===_0x28c60d&&!_0x18b450),this['on'](_0x343c5d(0x247),()=>{const _0x2bea5c=_0x343c5d;this[_0x2bea5c(0x1eb)]?_0x332496[_0x2bea5c(0x2a6)](_0x2bea5c(0x25e)):_0x332496[_0x2bea5c(0x207)](_0x2bea5c(0x25e));}),this[_0x343c5d(0x1eb)]?_0x332496[_0x343c5d(0x2a6)](_0x343c5d(0x25e)):_0x332496[_0x343c5d(0x207)](_0x343c5d(0x25e)),this[_0x343c5d(0x22e)](_0x343c5d(0x217),!0x1);}async[_0x15f1b2(0x1ea)](){const _0x2f208e=_0x15f1b2,_0x5b13db=this[_0x2f208e(0x2c5)][_0x2f208e(0x24a)][_0x2f208e(0x277)](_0x5ad414),_0x3b13b4=this[_0x2f208e(0x2c5)][_0x2f208e(0x24a)][_0x2f208e(0x277)](_0x4db621);try{this[_0x2f208e(0x237)]=!0x0,_0x5b13db[_0x2f208e(0x26c)](this[_0x2f208e(0x27f)]);const _0x24fe67=await this[_0x2f208e(0x209)][_0x2f208e(0x1ea)](_0x3b13b4[_0x2f208e(0x243)],this[_0x2f208e(0x28c)]);await this[_0x2f208e(0x2aa)](_0x24fe67)&&(this[_0x2f208e(0x237)]=!0x1,this[_0x2f208e(0x201)]());const _0x11f5b2=await this[_0x2f208e(0x209)][_0x2f208e(0x2cd)]();_0x5b13db[_0x2f208e(0x1fd)](this[_0x2f208e(0x27f)],_0x11f5b2),this[_0x2f208e(0x268)](),this[_0x2f208e(0x217)]=!0x0;}catch(_0x223ed7){if(function(_0xa238d6){const _0x4c6461=_0x2f208e;return _0x4c6461(0x2d4)===_0xa238d6[_0x4c6461(0x2cb)];}(_0x223ed7)&&this[_0x2f208e(0x2b4)])await this[_0x2f208e(0x1f1)]();else{if(function(_0x4d1037){const _0x1e2571=_0x2f208e;return _0x1e2571(0x21a)===_0x4d1037[_0x1e2571(0x2cb)];}(_0x223ed7)){const _0x3047f4=_0xe23eda(this[_0x2f208e(0x2c5)][_0x2f208e(0x290)],_0x2f208e(0x293));this[_0x2f208e(0x2dc)](_0x3047f4);}else{if(!(_0x223ed7 instanceof J))throw _0x223ed7;this[_0x2f208e(0x2dc)]();}}}}[_0x15f1b2(0x2af)](){const _0x55ce4e=_0x15f1b2,_0x22228b=this[_0x55ce4e(0x2c5)][_0x55ce4e(0x24a)][_0x55ce4e(0x277)](_0x4db621),_0x196da2=this[_0x55ce4e(0x2c5)][_0x55ce4e(0x24a)][_0x55ce4e(0x277)](_0x5ad414);this[_0x55ce4e(0x2c5)][_0x55ce4e(0x207)](_0x55ce4e(0x28e)),_0x196da2[_0x55ce4e(0x2c0)][_0x55ce4e(0x280)](this[_0x55ce4e(0x27f)])&&_0x196da2[_0x55ce4e(0x26c)](this[_0x55ce4e(0x27f)]),_0x22228b[_0x55ce4e(0x23b)](this),this[_0x55ce4e(0x2b5)](),super[_0x55ce4e(0x2af)]();}async[_0x15f1b2(0x2aa)](_0x3e0c47){const _0x13c95e=_0x15f1b2;if(this[_0x13c95e(0x2b4)]!==_0x3e0c47[_0x13c95e(0x2b4)]&&this[_0x13c95e(0x1e2)]!==_0x3e0c47[_0x13c95e(0x225)])throw new J();return this[_0x13c95e(0x2b4)]=_0x3e0c47[_0x13c95e(0x2b4)],this[_0x13c95e(0x249)]([],{..._0x3e0c47,'wereChangesApplied':!0x1,'data':_0x3e0c47[_0x13c95e(0x2bf)]},_0x13c95e(0x1ea));}async[_0x15f1b2(0x2b7)](_0x17bd48,_0x2146cf=!0x1){const _0x593898=_0x15f1b2,{connection:_0x436d34}=this[_0x593898(0x2c5)][_0x593898(0x24a)][_0x593898(0x277)](_0x4db621);l[_0x593898(0x2bb)][_0x593898(0x2cd)](_0x436d34,this[_0x593898(0x27f)])[_0x593898(0x266)](_0x2167ee=>this[_0x593898(0x20a)](_0x2167ee))[_0x593898(0x1fc)](_0x14f230=>{const _0x2467a2=_0x593898;this[_0x2467a2(0x25d)](_0x2467a2(0x2ca),_0x14f230);}),this[_0x593898(0x286)](this[_0x593898(0x209)],_0x593898(0x20f),this[_0x593898(0x260)][_0x593898(0x2d9)](this)),this[_0x593898(0x286)](this[_0x593898(0x209)],_0x593898(0x23f),(_0x43eaea,_0x2c1cee)=>{const _0x43cf17=_0x593898;this[_0x43cf17(0x25d)](_0x43cf17(0x22d),_0x2c1cee);}),this[_0x593898(0x286)](this[_0x593898(0x209)],_0x593898(0x235),()=>{const _0x288a63=_0x593898;this[_0x288a63(0x217)]=!0x1;});const _0x2c731f=this[_0x593898(0x1ed)][_0x593898(0x226)](_0x17bd48);this[_0x593898(0x237)]=!0x0;const _0x4cefb3=await this[_0x593898(0x209)][_0x593898(0x2ad)](_0x436d34,this[_0x593898(0x255)](_0x17bd48),_0x2c731f);if(this[_0x593898(0x2b4)]=_0x4cefb3[_0x593898(0x2b4)],_0x2146cf){if(!_0x4cefb3[_0x593898(0x216)])return void this[_0x593898(0x2dc)]();this[_0x593898(0x237)]=!0x1,this[_0x593898(0x201)](),this[_0x593898(0x278)][_0x593898(0x2a5)](),this[_0x593898(0x2dd)]=_0x4cefb3[_0x593898(0x1e7)],this[_0x593898(0x278)][_0x593898(0x27c)]=this[_0x593898(0x2dd)],await this[_0x593898(0x249)](_0x17bd48,_0x4cefb3,_0x593898(0x248));}else await this[_0x593898(0x288)](_0x4cefb3,_0x17bd48);this[_0x593898(0x268)](),this[_0x593898(0x217)]=!0x0;}[_0x15f1b2(0x268)](){const _0x27f918=_0x15f1b2,_0x14b7fa=this[_0x27f918(0x2c5)][_0x27f918(0x24a)][_0x27f918(0x277)](_0x5ad414),_0x38e1e2=this[_0x27f918(0x2c5)][_0x27f918(0x24a)][_0x27f918(0x277)](_0x28f308),_0x37d20d=_0x14b7fa[_0x27f918(0x2c0)][_0x27f918(0x277)](this[_0x27f918(0x27f)]);_0x37d20d&&_0x37d20d[_0x27f918(0x289)]>0x1?_0x38e1e2[_0x27f918(0x2b6)]():this[_0x27f918(0x286)](_0x14b7fa,_0x27f918(0x2a9)+this[_0x27f918(0x27f)],()=>{const _0x4cda75=_0x27f918;0x2===_0x14b7fa[_0x4cda75(0x2c0)][_0x4cda75(0x277)](this[_0x4cda75(0x27f)])[_0x4cda75(0x289)]&&_0x38e1e2[_0x4cda75(0x2b6)]();});}async[_0x15f1b2(0x260)](_0x26edb7,_0x347a6d,_0x1e3526,_0x1950f4){const _0x3496cd=_0x15f1b2;if(!this[_0x3496cd(0x237)]&&this[_0x3496cd(0x29a)][_0x3496cd(0x27c)]==_0x347a6d){const _0x258978=this[_0x3496cd(0x27d)](_0x1e3526,_0x1950f4);await this[_0x3496cd(0x271)](_0x258978),this[_0x3496cd(0x1ee)](_0x258978,_0x347a6d,_0x1e3526[_0x3496cd(0x225)])||this[_0x3496cd(0x25d)](_0x3496cd(0x1e8));}}async[_0x15f1b2(0x1f1)](){const _0x3601ec=_0x15f1b2;this[_0x3601ec(0x2b5)]();const {locale:_0x35e22e}=this[_0x3601ec(0x2c5)];let _0x1361ac;try{_0x1361ac=await this[_0x3601ec(0x209)][_0x3601ec(0x2ac)]();}catch(_0x59de44){const _0x196f3a=_0xe23eda(_0x35e22e,_0x3601ec(0x2b9));return void this[_0x3601ec(0x2dc)](_0x196f3a);}const _0x308a16=_0x1361ac[_0x3601ec(0x215)]||_0x1361ac[_0x3601ec(0x26b)];if(this[_0x3601ec(0x1e2)]===_0x308a16[_0x3601ec(0x225)])await this[_0x3601ec(0x2b7)](this[_0x3601ec(0x2c5)][_0x3601ec(0x219)][_0x3601ec(0x233)][_0x3601ec(0x2b3)][_0x3601ec(0x1f7)](),!0x0);else{const _0x1e58f1=_0xe23eda(_0x35e22e,_0x3601ec(0x252));this[_0x3601ec(0x2dc)](_0x1e58f1);}}[_0x15f1b2(0x2b5)](){const _0x159615=_0x15f1b2;this[_0x159615(0x209)][_0x159615(0x210)](),this[_0x159615(0x27e)]=[],clearTimeout(this[_0x159615(0x2d6)]),this[_0x159615(0x257)](this[_0x159615(0x209)]);}[_0x15f1b2(0x20a)](_0x208d8c){const _0x155722=_0x15f1b2,_0x53dff8=this[_0x155722(0x2c5)][_0x155722(0x24a)][_0x155722(0x277)](_0x5ad414);this[_0x155722(0x286)](_0x53dff8,_0x155722(0x2a9)+this[_0x155722(0x27f)],(_0xc2e508,{session:_0x49315a})=>{const _0x389651=_0x155722;if(_0x49315a['id']===_0x53dff8[_0x389651(0x264)]){_0xc2e508[_0x389651(0x2e2)]();const _0x223f8c=this[_0x389651(0x2c5)][_0x389651(0x24a)][_0x389651(0x280)](_0x389651(0x204))&&this[_0x389651(0x2c5)][_0x389651(0x24a)][_0x389651(0x277)](_0x389651(0x204));let _0x2ae955=_0x49315a[_0x389651(0x1f9)];_0x223f8c&&_0x223f8c[_0x389651(0x28b)]&&(_0x2ae955=_0x2ae955[_0x389651(0x24f)](_0x451695=>_0x389651(0x259)!==_0x451695)),this[_0x389651(0x2c5)][_0x389651(0x24a)][_0x389651(0x277)](_0x389651(0x200))[_0x389651(0x2ab)](_0x2ae955,this[_0x389651(0x27f)]);}}),_0x53dff8[_0x155722(0x1fd)](this[_0x155722(0x27f)],_0x208d8c);}[_0x15f1b2(0x28a)](){const _0x258cb5=_0x15f1b2,_0x43c95d=this[_0x258cb5(0x2c5)][_0x258cb5(0x2bf)][_0x258cb5(0x22e)];this[_0x258cb5(0x2c5)][_0x258cb5(0x2bf)][_0x258cb5(0x22e)]=(..._0x13c3fb)=>{const _0x5cb7c0=_0x258cb5;if(!_0x13c3fb[_0x13c3fb[_0x5cb7c0(0x289)]-0x1][_0x5cb7c0(0x285)])throw new _0x3e3c6b(_0x5cb7c0(0x244),this);_0x43c95d[_0x5cb7c0(0x218)](this[_0x5cb7c0(0x2c5)][_0x5cb7c0(0x2bf)],_0x13c3fb);};}[_0x15f1b2(0x222)](){const _0x1fbdcc=_0x15f1b2;this[_0x1fbdcc(0x2c5)][_0x1fbdcc(0x2bf)]['on'](_0x1fbdcc(0x1e3),(_0xb7abf0,[_0x3d0bf8])=>{const _0xaf34ef=_0x1fbdcc;if(this[_0xaf34ef(0x29a)][_0xaf34ef(0x27c)])throw new _0x3e3c6b(_0xaf34ef(0x2b1),this);_0xb7abf0[_0xaf34ef(0x26f)](),this[_0xaf34ef(0x2c3)]();const _0x23e62f=this[_0xaf34ef(0x2c5)][_0xaf34ef(0x254)][_0xaf34ef(0x277)](_0xaf34ef(0x26d)),_0x591c14=this[_0xaf34ef(0x22c)](_0x3d0bf8,_0x23e62f);0x0==_0x591c14[_0xaf34ef(0x289)]&&_0x591c14[_0xaf34ef(0x2a3)](new _0x3b7393(0x0)),_0xb7abf0[_0xaf34ef(0x2ae)]=this[_0xaf34ef(0x2b7)](_0x591c14)[_0xaf34ef(0x266)](()=>{const _0x7786bb=_0xaf34ef;this[_0x7786bb(0x2c5)][_0x7786bb(0x24a)][_0x7786bb(0x277)](_0x4db621)[_0x7786bb(0x2c8)](this),this[_0x7786bb(0x2c5)][_0x7786bb(0x2bf)][_0x7786bb(0x227)](_0x7786bb(0x275));})[_0xaf34ef(0x1fc)](_0x4596d7=>this[_0xaf34ef(0x25d)](_0xaf34ef(0x2b0),_0x4596d7))[_0xaf34ef(0x208)](()=>this[_0xaf34ef(0x201)]());},{'priority':_0x1fbdcc(0x230)}),this[_0x1fbdcc(0x2c5)]['on'](_0x1fbdcc(0x242),async(_0x36e508,[_0x5ecd86,_0x4c65f6])=>{const _0x3bf994=_0x1fbdcc;_0x36e508[_0x3bf994(0x26f)]();const _0x4d4608=this[_0x3bf994(0x2c5)][_0x3bf994(0x219)][_0x3bf994(0x233)][_0x3bf994(0x21c)](_0x5ecd86);if(!this[_0x3bf994(0x269)][_0x3bf994(0x280)](_0x5ecd86)){const _0x4af6a2=_0x4c65f6&&_0x4c65f6[_0x3bf994(0x2bf)]?_0x4c65f6[_0x3bf994(0x2bf)]:'',_0x3d0684=_0x4c65f6&&_0x4c65f6[_0x3bf994(0x240)]?_0x4c65f6[_0x3bf994(0x240)]:{};await this[_0x3bf994(0x28f)](_0x5ecd86,_0x4af6a2,_0x3d0684);}this[_0x3bf994(0x2c5)][_0x3bf994(0x219)][_0x3bf994(0x21f)]({'isUndoable':!0x1},()=>{const _0x1fdbcd=_0x3bf994;_0x4d4608[_0x1fdbcd(0x2a7)]=!0x0,this[_0x1fdbcd(0x2c5)][_0x1fdbcd(0x219)][_0x1fdbcd(0x233)][_0x1fdbcd(0x2b2)][_0x1fdbcd(0x205)](_0x4d4608);});},{'priority':_0x1fbdcc(0x230)});}async[_0x15f1b2(0x271)](_0x10bc94){const _0x4e4b68=_0x15f1b2,_0x44c5c8=this[_0x4e4b68(0x2c5)][_0x4e4b68(0x24a)][_0x4e4b68(0x277)](_0x2b9913),{connection:_0x3a4888}=this[_0x4e4b68(0x2c5)][_0x4e4b68(0x24a)][_0x4e4b68(0x277)](_0x4db621),_0x31b8a6=new Set();for(const _0x2b8c61 of _0x10bc94){const _0x18fdcb=_0x2b8c61[_0x4e4b68(0x2ce)];_0x18fdcb&&!_0x44c5c8[_0x4e4b68(0x1fb)](_0x18fdcb)&&_0x31b8a6[_0x4e4b68(0x299)](_0x18fdcb);}if(0x0===_0x31b8a6[_0x4e4b68(0x298)])return;const _0x25c861=await _0x49b26c[_0x4e4b68(0x2d5)](_0x3a4888,Array[_0x4e4b68(0x270)](_0x31b8a6));for(const _0x1fb7b0 of _0x25c861)_0x44c5c8[_0x4e4b68(0x1fb)](_0x1fb7b0['id'])||_0x44c5c8[_0x4e4b68(0x238)](_0x1fb7b0);}[_0x15f1b2(0x22c)](_0x3a514e,_0x37de7b={}){const _0x53fc31=_0x15f1b2,_0x455fd9=this[_0x53fc31(0x2c5)][_0x53fc31(0x219)],_0x721e42=[];let _0x3a5680=0x0;const _0x3e1842=_0x53fc31(0x1f0)==typeof _0x3a514e?{'main':_0x3a514e}:_0x3a514e;for(const _0xae09cf of Object[_0x53fc31(0x23c)](_0x3e1842)){if(!this[_0x53fc31(0x29a)][_0x53fc31(0x251)][_0x53fc31(0x280)](_0xae09cf))throw new _0x3e3c6b(_0x53fc31(0x214),this);const _0x379e0e=this[_0x53fc31(0x2c5)][_0x53fc31(0x2bf)][_0x53fc31(0x258)](_0x3e1842[_0xae09cf]),_0x431d8a=this[_0x53fc31(0x29a)][_0x53fc31(0x21c)](_0xae09cf),_0x4a2f95=new _0x5d7584(_0x455fd9[_0x53fc31(0x292)](_0x431d8a,0x0),_0x379e0e,_0x3a5680++);_0x721e42[_0x53fc31(0x2a3)](_0x4a2f95);for(const [_0x3589bb,_0x4b69bb]of _0x379e0e[_0x53fc31(0x295)]){const _0x48b113=_0x455fd9[_0x53fc31(0x282)](_0x455fd9[_0x53fc31(0x2d7)](_0x431d8a,_0x4b69bb[_0x53fc31(0x241)][_0x53fc31(0x239)][_0x53fc31(0x29d)]()),_0x455fd9[_0x53fc31(0x2d7)](_0x431d8a,_0x4b69bb[_0x53fc31(0x24d)][_0x53fc31(0x239)][_0x53fc31(0x29d)]())),_0x3b29ed=new _0x369d60(_0x3589bb,null,_0x48b113,_0x455fd9[_0x53fc31(0x295)],!0x0,_0x3a5680++);_0x721e42[_0x53fc31(0x2a3)](_0x3b29ed);}}if(_0x37de7b)for(const [_0x4b4446,_0x4c6cb1]of Object[_0x53fc31(0x2ba)](_0x37de7b)){const _0x142fc8=_0x455fd9[_0x53fc31(0x233)][_0x53fc31(0x21c)](_0x4b4446);if(!_0x142fc8)throw new _0x3e3c6b(_0x53fc31(0x21d),null);for(const [_0x4ea1e1,_0x5c97fe]of Object[_0x53fc31(0x2ba)](_0x4c6cb1))if(null!==_0x5c97fe){const _0x4e65f3=new _0x29fcae(_0x142fc8,_0x4ea1e1,null,_0x5c97fe,_0x3a5680++);_0x721e42[_0x53fc31(0x2a3)](_0x4e65f3);}}return _0x721e42;}async[_0x15f1b2(0x28f)](_0x3fcdef,_0x11ab54,_0x3236ea){const _0xd5b12=_0x15f1b2;this[_0xd5b12(0x22c)]({[_0x3fcdef]:_0x11ab54},{[_0x3fcdef]:_0x3236ea})[_0xd5b12(0x2c4)]((_0x2439ec,_0x142025)=>{const _0x1ec4da=_0xd5b12;_0x2439ec[_0x1ec4da(0x223)]=this[_0x1ec4da(0x29a)][_0x1ec4da(0x27c)]+_0x142025,_0x2439ec[_0x1ec4da(0x272)]=!0x0,this[_0x1ec4da(0x2a1)](_0x2439ec);}),this[_0xd5b12(0x256)](),await this[_0xd5b12(0x1fe)]();}async[_0x15f1b2(0x288)](_0x4d89f7,_0x249115){const _0x10c66f=_0x15f1b2;let _0x4633c7;this[_0x10c66f(0x2dd)]=_0x4d89f7[_0x10c66f(0x1e7)];const _0x543240=_0x4d89f7[_0x10c66f(0x216)]&&!_0x4d89f7[_0x10c66f(0x2da)],_0x283caa=_0x543240?0x0:_0x4d89f7[_0x10c66f(0x2bf)][_0x10c66f(0x223)];if(_0x249115[_0x10c66f(0x2c4)](_0x4fef6c=>{const _0x497cbb=_0x10c66f;_0x4fef6c[_0x497cbb(0x272)]=!0x0,_0x4fef6c[_0x497cbb(0x2bd)]=_0x4d89f7[_0x497cbb(0x20d)],_0x4fef6c[_0x497cbb(0x2ce)]=null;}),_0x543240)_0x4633c7=_0x249115,this[_0x10c66f(0x250)](_0x4633c7,_0x543240);else{if(_0x4d89f7[_0x10c66f(0x2da)]){const _0xb32a14=this[_0x10c66f(0x22c)](_0x4d89f7[_0x10c66f(0x2da)]);this[_0x10c66f(0x29a)][_0x10c66f(0x2b3)][_0x10c66f(0x27c)]=-_0xb32a14[_0x10c66f(0x289)],_0xb32a14[_0x10c66f(0x2c4)](_0x33d4e6=>{const _0x5f3e87=_0x10c66f;_0x33d4e6[_0x5f3e87(0x223)]-=_0xb32a14[_0x5f3e87(0x289)],_0x33d4e6[_0x5f3e87(0x2bd)]=_0x4d89f7[_0x5f3e87(0x20d)],_0x33d4e6[_0x5f3e87(0x272)]=!0x0,_0x33d4e6[_0x5f3e87(0x2ce)]=null;}),this[_0x10c66f(0x250)](_0xb32a14,!0x0),this[_0x10c66f(0x278)][_0x10c66f(0x27c)]=-_0xb32a14[_0x10c66f(0x289)]+this[_0x10c66f(0x2dd)],this[_0x10c66f(0x261)](_0xb32a14);}this[_0x10c66f(0x29a)][_0x10c66f(0x2b3)][_0x10c66f(0x27c)]=_0x283caa,_0x4633c7=this[_0x10c66f(0x27d)](_0x4d89f7[_0x10c66f(0x2bf)],_0x4d89f7[_0x10c66f(0x1ff)]),await this[_0x10c66f(0x271)](_0x4633c7),this[_0x10c66f(0x250)](_0x4633c7,_0x543240);}_0x4d89f7[_0x10c66f(0x225)]&&(this[_0x10c66f(0x1ed)][_0x10c66f(0x2a0)](_0x4633c7,_0x4d89f7[_0x10c66f(0x225)]),this[_0x10c66f(0x1e2)]=_0x4d89f7[_0x10c66f(0x225)]),this[_0x10c66f(0x278)][_0x10c66f(0x27c)]=_0x283caa+this[_0x10c66f(0x2dd)],this[_0x10c66f(0x261)](_0x4633c7),_0x249115[_0x10c66f(0x24f)](_0x46d669=>{const _0x515407=_0x10c66f,_0xec45d7=this[_0x515407(0x29f)](_0x46d669);return _0xec45d7&&!this[_0x515407(0x269)][_0x515407(0x280)](_0xec45d7);})[_0x10c66f(0x2c4)]((_0x5d551b,_0x583a5d)=>{const _0x171511=_0x10c66f;_0x5d551b[_0x171511(0x223)]=this[_0x171511(0x29a)][_0x171511(0x27c)]+_0x583a5d,this[_0x171511(0x2a1)](_0x5d551b);}),this[_0x10c66f(0x1e9)]()?(this[_0x10c66f(0x2e6)]=0x0,this[_0x10c66f(0x256)](!0x0),await this[_0x10c66f(0x1fe)]()):(this[_0x10c66f(0x237)]=!0x1,this[_0x10c66f(0x201)]());}[_0x15f1b2(0x25d)](_0x1309fa,_0x42950f){const _0x365f=_0x15f1b2;throw this[_0x365f(0x237)]=!0x0,_0x42950f&&console[_0x365f(0x23f)](_0x42950f),new _0x3e3c6b(_0x1309fa,this[_0x365f(0x2c5)]);}[_0x15f1b2(0x2a1)](_0x4d90e0){const _0x146ba9=_0x15f1b2;this[_0x146ba9(0x246)][_0x146ba9(0x280)](_0x4d90e0)||(this[_0x146ba9(0x246)][_0x146ba9(0x299)](_0x4d90e0),this[_0x146ba9(0x27e)][_0x146ba9(0x2a3)](_0x4d90e0),this[_0x146ba9(0x23e)]||_0x146ba9(0x287)==_0x4d90e0[_0x146ba9(0x24c)]&&!_0x4d90e0[_0x146ba9(0x245)]||this[_0x146ba9(0x2c3)]());}[_0x15f1b2(0x256)](_0x474338=!0x1){const _0x53385f=_0x15f1b2;!_0x474338&&this[_0x53385f(0x237)]||(this[_0x53385f(0x237)]=!0x0,clearTimeout(this[_0x53385f(0x2d6)]),this[_0x53385f(0x2d6)]=setTimeout(()=>{const _0x52b96e=_0x53385f;this[_0x52b96e(0x2a2)]()[_0x52b96e(0x266)](_0x203fd3=>{const _0x5d5bad=_0x52b96e;_0x203fd3&&(this[_0x5d5bad(0x201)](),this[_0x5d5bad(0x237)]=!0x1);})[_0x52b96e(0x1fc)](_0x4a357f=>{const _0x22aaa2=_0x52b96e;if(this[_0x22aaa2(0x201)](),this[_0x22aaa2(0x237)]=!0x1,!function(_0x38dcc6){const _0x12eac9=_0x22aaa2;return _0x38dcc6[_0x12eac9(0x2e5)][_0x12eac9(0x22a)](_0x12eac9(0x220))||_0x38dcc6[_0x12eac9(0x2e5)][_0x12eac9(0x22a)](_0x12eac9(0x2c1))||_0x38dcc6[_0x12eac9(0x2e5)][_0x12eac9(0x22a)](_0x12eac9(0x25c));}(_0x4a357f))throw _0x4a357f;});},this[_0x53385f(0x2e6)]));}[_0x15f1b2(0x1fe)](){return new Promise(_0x5ebb8c=>{const _0x27e711=_0xe987;this['on'](_0x27e711(0x2cf),()=>{_0x5ebb8c();});});}async[_0x15f1b2(0x2a2)](){const _0x5afed1=_0x15f1b2,_0x68d320=this[_0x5afed1(0x2c5)][_0x5afed1(0x24a)][_0x5afed1(0x277)](_0x28f308);if(this[_0x5afed1(0x283)]()&&(_0x68d320[_0x5afed1(0x2b6)](),this[_0x5afed1(0x23a)]=!0x1),!this[_0x5afed1(0x1e9)]())return!0x0;const _0x5f2c5e=[...this[_0x5afed1(0x27e)]];for(const _0x5cee62 of _0x5f2c5e)_0x5cee62[_0x5afed1(0x224)]=this[_0x5afed1(0x29a)][_0x5afed1(0x2b3)][_0x5afed1(0x29c)](_0x5cee62);const _0x5bd040=this[_0x5afed1(0x1ed)][_0x5afed1(0x226)](_0x5f2c5e),_0x5c69f8=K++,_0x22b553=this[_0x5afed1(0x255)](_0x5f2c5e),_0x1c099e=await this[_0x5afed1(0x209)][_0x5afed1(0x2d8)](_0x22b553,_0x22b553[_0x5afed1(0x223)],_0x5bd040);try{return await this[_0x5afed1(0x249)](_0x5f2c5e,_0x1c099e,_0x5c69f8);}catch(_0x1d1ef3){return this[_0x5afed1(0x25d)](_0x5afed1(0x1f4),_0x1d1ef3);}}async[_0x15f1b2(0x249)](_0x364e97,_0x44b6eb,_0x3cfd2c){const _0x47683a=_0x15f1b2;if(_0x47683a(0x23f)in _0x44b6eb)throw _0x44b6eb[_0x47683a(0x23f)];let _0x202dde=!0x1;if(_0x44b6eb[_0x47683a(0x216)]){_0x44b6eb[_0x47683a(0x225)]&&(this[_0x47683a(0x1e2)]=_0x44b6eb[_0x47683a(0x225)]),this[_0x47683a(0x27e)]=this[_0x47683a(0x27e)][_0x47683a(0x24f)](_0x3953ba=>!_0x364e97[_0x47683a(0x221)](_0x3953ba));for(const _0x5847e3 of _0x364e97)_0x5847e3[_0x47683a(0x2bd)]=_0x47683a(0x228)in _0x44b6eb&&_0x44b6eb[_0x47683a(0x228)]||void 0x0;Q(_0x364e97,_0x44b6eb[_0x47683a(0x27c)]-_0x364e97[_0x47683a(0x289)]),this[_0x47683a(0x261)](_0x364e97);const _0x56da62=_0x364e97[_0x47683a(0x24f)](_0x15928c=>{const _0x19c324=_0x47683a;if(!_0x15928c[_0x19c324(0x272)])return!0x1;const _0x4a1f0e=this[_0x19c324(0x29f)](_0x15928c);return _0x4a1f0e&&!this[_0x19c324(0x269)][_0x19c324(0x280)](_0x4a1f0e);});Q(_0x56da62,this[_0x47683a(0x29a)][_0x47683a(0x27c)]),this[_0x47683a(0x250)](_0x56da62),_0x202dde=!0x0,this[_0x47683a(0x2e6)]=this[_0x47683a(0x294)];}else{const _0x11aa56=this[_0x47683a(0x27d)](_0x44b6eb[_0x47683a(0x2bf)],_0x44b6eb[_0x47683a(0x1ff)])[_0x47683a(0x24f)](_0x1aa0d6=>_0x1aa0d6[_0x47683a(0x223)]>=this[_0x47683a(0x276)]);_0x11aa56[_0x47683a(0x2c4)](_0x48b2e2=>this[_0x47683a(0x274)](_0x48b2e2)),this[_0x47683a(0x27e)]=this[_0x47683a(0x27e)][_0x47683a(0x24f)](_0x22fb31=>!_0x22fb31[_0x47683a(0x272)]||!this[_0x47683a(0x269)][_0x47683a(0x280)](this[_0x47683a(0x29f)](_0x22fb31))),this[_0x47683a(0x27e)][_0x47683a(0x289)]&&Q(this[_0x47683a(0x27e)],this[_0x47683a(0x27e)][0x0][_0x47683a(0x223)]),await this[_0x47683a(0x271)](_0x11aa56),_0x202dde=this[_0x47683a(0x1ee)](_0x11aa56,_0x44b6eb[_0x47683a(0x27c)],_0x44b6eb[_0x47683a(0x225)]),this[_0x47683a(0x2e6)]=Math[_0x47683a(0x2de)](this[_0x47683a(0x2e6)]/0x2);}return _0x202dde?!this[_0x47683a(0x1e9)]()||(this[_0x47683a(0x256)](!0x0),!0x1):this[_0x47683a(0x25d)](_0x47683a(0x2c7));}[_0x15f1b2(0x1ee)](_0x165d6f,_0x28c9c8,_0x26e1d9){const _0x284631=_0x15f1b2;try{const _0xa04dbf={'document':this[_0x284631(0x29a)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x3142e2,operationsB:_0x373122,originalOperations:_0x2fe498}=_0x1c4b42(_0x165d6f,this[_0x284631(0x27e)],_0xa04dbf);Q(_0x3142e2,this[_0x284631(0x29a)][_0x284631(0x27c)]),Q(_0x373122,_0x28c9c8);for(const _0x3f821a of _0x3142e2){const _0xc46d99=_0x2fe498[_0x284631(0x277)](_0x3f821a);_0x3f821a[_0x284631(0x2ce)]=_0xc46d99?_0xc46d99[_0x284631(0x2ce)]:null;}_0x26e1d9&&(this[_0x284631(0x1ed)][_0x284631(0x2a0)](_0x165d6f,_0x26e1d9),this[_0x284631(0x1e2)]=_0x26e1d9),this[_0x284631(0x27e)]=[..._0x373122],this[_0x284631(0x250)](_0x3142e2),this[_0x284631(0x261)](_0x165d6f);}catch(_0x2f95f1){return console[_0x284631(0x23f)](_0x2f95f1),!0x1;}return!0x0;}[_0x15f1b2(0x250)](_0xfce2a,_0xccd5d0=!0x1){const _0x5a9dd3=_0x15f1b2;this[_0x5a9dd3(0x2c5)][_0x5a9dd3(0x219)][_0x5a9dd3(0x21f)]({'isUndoable':!0x1,'isLocal':!0x1},_0x533122=>{const _0x2f702e=_0x5a9dd3;for(const _0x804cc9 of _0xfce2a)this[_0x2f702e(0x246)][_0x2f702e(0x299)](_0x804cc9),this[_0x2f702e(0x274)](_0x804cc9),_0x533122[_0x2f702e(0x2c2)][_0x2f702e(0x2e0)](_0x804cc9),this[_0x2f702e(0x2c5)][_0x2f702e(0x219)][_0x2f702e(0x291)](_0x804cc9);});}[_0x15f1b2(0x274)](_0x57b1c1){const _0x5bdc40=_0x15f1b2,_0x4e7323=this[_0x5bdc40(0x29f)](_0x57b1c1);_0x4e7323&&this[_0x5bdc40(0x269)][_0x5bdc40(0x299)](_0x4e7323);}[_0x15f1b2(0x29f)](_0x4d7ee3){const _0x43be2b=_0x15f1b2;let _0xc4a0f2,_0x13325f;switch(_0x4d7ee3[_0x43be2b(0x24c)]){case _0x43be2b(0x25a):_0xc4a0f2=_0x4d7ee3[_0x43be2b(0x2df)][_0x43be2b(0x234)];break;case _0x43be2b(0x287):if(_0x13325f=_0x4d7ee3[_0x43be2b(0x265)],!_0x13325f)return null;_0xc4a0f2=_0x13325f[_0x43be2b(0x234)];break;case _0x43be2b(0x1ef):_0xc4a0f2=_0x4d7ee3[_0x43be2b(0x234)];break;case _0x43be2b(0x1f6):_0xc4a0f2=_0x4d7ee3[_0x43be2b(0x212)];break;case _0x43be2b(0x29e):_0xc4a0f2=_0x4d7ee3[_0x43be2b(0x2be)][_0x43be2b(0x234)];break;default:return null;}return _0xc4a0f2[_0x43be2b(0x284)];}[_0x15f1b2(0x261)](_0x158bfb){const _0x56a13d=_0x15f1b2;_0x158bfb[_0x56a13d(0x2c4)](_0x50c124=>{const _0x32cf59=_0x56a13d,_0x51dc75=_0x50c124[_0x32cf59(0x203)]();_0x51dc75[_0x32cf59(0x2ce)]=_0x50c124[_0x32cf59(0x2ce)],_0x51dc75[_0x32cf59(0x272)]=!!_0x50c124[_0x32cf59(0x272)],_0x51dc75[_0x32cf59(0x2bd)]=_0x50c124[_0x32cf59(0x2bd)],_0x51dc75[_0x32cf59(0x223)]+=this[_0x32cf59(0x2dd)],_0x50c124[_0x32cf59(0x2c9)]&&this[_0x32cf59(0x20e)][_0x32cf59(0x299)](_0x51dc75),this[_0x32cf59(0x278)][_0x32cf59(0x2e0)](_0x51dc75);});}[_0x15f1b2(0x2dc)](_0x1e0090){const _0x37ab0b=_0x15f1b2,_0x1d710c=this[_0x37ab0b(0x2c5)][_0x37ab0b(0x24a)][_0x37ab0b(0x277)](_0x37ab0b(0x297)),_0x57f61f=this[_0x37ab0b(0x2c5)][_0x37ab0b(0x290)];_0x1e0090||(_0x1e0090=_0xe23eda(_0x57f61f,_0x37ab0b(0x27b))),_0x1d710c[_0x37ab0b(0x2db)](_0x1e0090,{'title':_0xe23eda(_0x57f61f,_0x37ab0b(0x279)),'namespace':_0x37ab0b(0x262)}),this[_0x37ab0b(0x232)]=!0x0,clearTimeout(this[_0x37ab0b(0x2d6)]),this[_0x37ab0b(0x27e)]=[],this[_0x37ab0b(0x2c5)][_0x37ab0b(0x24a)][_0x37ab0b(0x277)](_0x4db621)[_0x37ab0b(0x2af)]();}[_0x15f1b2(0x2c3)](){const _0x26ffbe=_0x15f1b2;this[_0x26ffbe(0x23e)]||(this[_0x26ffbe(0x23e)]=this[_0x26ffbe(0x2c5)][_0x26ffbe(0x24a)][_0x26ffbe(0x277)](_0xcd2b6f)[_0x26ffbe(0x299)](_0xe23eda(this[_0x26ffbe(0x2c5)][_0x26ffbe(0x290)],_0x26ffbe(0x21b))));}[_0x15f1b2(0x201)](){const _0x29ab19=_0x15f1b2;this[_0x29ab19(0x23e)]&&(this[_0x29ab19(0x2c5)][_0x29ab19(0x24a)][_0x29ab19(0x277)](_0xcd2b6f)[_0x29ab19(0x206)](this[_0x29ab19(0x23e)]),this[_0x29ab19(0x23e)]=null);}[_0x15f1b2(0x255)](_0x416910){const _0x1fae25=_0x15f1b2,_0x260843=_0x416910[_0x1fae25(0x27a)](_0x952ddb=>_0x952ddb[_0x1fae25(0x2e1)]());return this[_0x1fae25(0x2e4)][_0x1fae25(0x236)](_0x260843);}[_0x15f1b2(0x27d)](_0x288cf8,_0x5b3496){const _0x14f465=_0x15f1b2;return this[_0x14f465(0x2e4)][_0x14f465(0x263)](_0x288cf8)[_0x14f465(0x27a)]((_0x18a9df,_0x5582e1)=>{const _0x4070fa=_0x14f465,_0x25a0bb=_0x4070fa(0x1e3)==_0x5b3496[_0x5582e1][_0x4070fa(0x24c)];if(_0x4070fa(0x273)==_0x18a9df[_0x4070fa(0x22f)]){const _0x273683=_0x18a9df[_0x4070fa(0x2df)][_0x4070fa(0x234)];!this[_0x4070fa(0x29a)][_0x4070fa(0x21c)](_0x273683)&&(this[_0x4070fa(0x29a)][_0x4070fa(0x1ec)](_0x4070fa(0x23d),_0x273683)[_0x4070fa(0x2d1)]=!0x1);}const _0x5ac702=_0x4191b8[_0x4070fa(0x2e3)](_0x18a9df,this[_0x4070fa(0x29a)]);return _0x5ac702[_0x4070fa(0x224)]=_0x18a9df[_0x4070fa(0x224)],_0x5ac702[_0x4070fa(0x272)]=_0x25a0bb,_0x5ac702[_0x4070fa(0x2ce)]=_0x25a0bb?null:_0x5b3496[_0x5582e1][_0x4070fa(0x1f2)],_0x5ac702[_0x4070fa(0x2c9)]=_0x4070fa(0x2d2)===_0x5b3496[_0x5582e1][_0x4070fa(0x24c)],_0x5ac702[_0x4070fa(0x2bd)]=_0x5b3496[_0x5582e1][_0x4070fa(0x2bd)],_0x5ac702;});}[_0x15f1b2(0x2c6)](){const _0x25612b=_0x15f1b2;this[_0x25612b(0x23a)]=!0x0,this[_0x25612b(0x283)]()?this[_0x25612b(0x256)]():this[_0x25612b(0x23a)]=!0x1;}[_0x15f1b2(0x283)](){const _0x257096=_0x15f1b2,_0x49d003=this[_0x257096(0x2c5)][_0x257096(0x24a)][_0x257096(0x277)](_0x5ad414)[_0x257096(0x2c0)][_0x257096(0x277)](this[_0x257096(0x27f)]);return!this[_0x257096(0x2c5)][_0x257096(0x281)]&&!!_0x49d003&&_0x49d003[_0x257096(0x289)]>0x1&&this[_0x257096(0x23a)];}[_0x15f1b2(0x1e9)](){const _0x4346b9=_0x15f1b2;return this[_0x4346b9(0x27e)][_0x4346b9(0x289)]>0x0||this[_0x4346b9(0x283)]();}}l[_0x15f1b2(0x2bb)]=_0x24a5a8;export default l;class J extends Error{}function _0xe987(_0x3d6751,_0xce316){const _0xc8b7e5=_0xc8b7();return _0xe987=function(_0xe98737,_0x1dd009){_0xe98737=_0xe98737-0x1e2;let _0x51c27a=_0xc8b7e5[_0xe98737];return _0x51c27a;},_0xe987(_0x3d6751,_0xce316);}function Q(_0x4bcfde,_0x58e95d){const _0x1d7ac3=_0x15f1b2;for(const _0x95d0e2 of _0x4bcfde)_0x95d0e2[_0x1d7ac3(0x223)]=_0x58e95d++;}class X{constructor(_0x22375f){const _0x1cb076=_0x15f1b2;this[_0x1cb076(0x202)]=_0x22375f,this[_0x1cb076(0x21e)]=new WeakMap();}[_0x15f1b2(0x226)](_0x1132ea){const _0x13a824=_0x15f1b2;let _0x44feda=_0x1132ea[_0x13a824(0x289)];for(;_0x44feda--;){const _0x110482=_0x1132ea[_0x44feda];if(!this[_0x13a824(0x202)][_0x13a824(0x280)](_0x110482)){if(!this[_0x13a824(0x21e)][_0x13a824(0x280)](_0x110482)){const _0x2b8f6f=_0x281225()[_0x13a824(0x29d)](0x1,0x12);this[_0x13a824(0x21e)][_0x13a824(0x22e)](_0x110482,_0x2b8f6f);}return this[_0x13a824(0x21e)][_0x13a824(0x277)](_0x110482);}}}[_0x15f1b2(0x2a0)](_0x167a1c,_0x171b4a){const _0x450eb0=_0x15f1b2;if(!_0x171b4a)return;let _0x554d71=_0x167a1c[_0x450eb0(0x289)];for(;_0x554d71--;){const _0x5502c5=_0x167a1c[_0x554d71];this[_0x450eb0(0x202)][_0x450eb0(0x280)](_0x5502c5)||this[_0x450eb0(0x21e)][_0x450eb0(0x22e)](_0x5502c5,_0x171b4a);}}}
@@ -53,6 +53,8 @@ export default class Sessions extends ContextPlugin {
53
53
  channelConnectedUsers: Map<string, Collection<ISocket>>;
54
54
  /**
55
55
  * A collection of users currently connected to all channels.
56
+ *
57
+ * A local user is always the first element in this collection.
56
58
  */
57
59
  allConnectedUsers: Collection<User>;
58
60
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c8c=['set','_users','_registeredSessions','_uniqueUsersCount','add','getUser','listenTo','user','getUserBySessionId','Sessions','delete','fire','context','pluginName','unregister','state','mySessionId','values','connected','requires','clear','sessions-register-already-registered','remove','sessions-unregister-not-exist','init','assign','change:state','getUserRole','stopListening','defineMe','channelConnectedUsers','getUserSessions','plugins','size','addUser','_createUser','forEach','sessionId','_handleSessionRemove','connection','get','has','register','_handleSessionAdd','allConnectedUsers','sessionAdd:','channelSessions'];(function(_0x1b20f9,_0x1c8ca8){const _0xb5d4bf=function(_0x42ef1){while(--_0x42ef1){_0x1b20f9['push'](_0x1b20f9['shift']());}};_0xb5d4bf(++_0x1c8ca8);}(_0x1c8c,0xd6));const _0xb5d4=function(_0x1b20f9,_0x1c8ca8){_0x1b20f9=_0x1b20f9-0x0;let _0xb5d4bf=_0x1c8c[_0x1b20f9];return _0xb5d4bf;};import{ContextPlugin as _0x3f9000}from'ckeditor5/src/core.js';import{Collection as _0x441606,CKEditorError as _0x267c18}from'ckeditor5/src/utils.js';import _0x84d98 from'./websocketgateway.js';import{Users as _0x2bfb28}from'ckeditor5-collaboration/src/collaboration-core.js';export default class r extends _0x3f9000{static get[_0xb5d4('0x22')](){return _0xb5d4('0x1e');}static get[_0xb5d4('0x28')](){return[_0x84d98,_0x2bfb28];}constructor(_0xb80401){super(_0xb80401),this['channelSessions']=new Map(),this[_0xb5d4('0x4')]=new Map(),this[_0xb5d4('0x12')]=new _0x441606(),this[_0xb5d4('0x17')]=new Map(),this[_0xb5d4('0x18')]=0x0,this[_0xb5d4('0x16')]=this['context'][_0xb5d4('0x6')][_0xb5d4('0xe')](_0x2bfb28);}[_0xb5d4('0x2d')](){const _0x55808d=this[_0xb5d4('0x21')][_0xb5d4('0x6')][_0xb5d4('0xe')](_0x84d98);this[_0xb5d4('0x1b')](_0x55808d,_0xb5d4('0x0'),(_0x125c1e,_0x3317e7,_0x400424)=>{if(_0xb5d4('0x27')!==_0x400424)this[_0xb5d4('0x14')][_0xb5d4('0xa')](_0x23f1b4=>_0x23f1b4['clear']()),this['channelConnectedUsers'][_0xb5d4('0xa')](_0x23288b=>_0x23288b['clear']()),this[_0xb5d4('0x12')][_0xb5d4('0x29')]();else for(const [_0x1f852c,_0x3511b8]of this[_0xb5d4('0x17')])for(const _0x4ba853 of _0x3511b8)this[_0xb5d4('0x11')](_0x1f852c,_0x4ba853);}),this[_0xb5d4('0x9')](_0x55808d[_0xb5d4('0xd')]['me'],!0x0);}[_0xb5d4('0x10')](_0x1e0071,_0x1d5870){if(this[_0xb5d4('0x17')][_0xb5d4('0xf')](_0x1e0071))throw new _0x267c18(_0xb5d4('0x2a'),null,{'channelId':_0x1e0071});this[_0xb5d4('0x17')][_0xb5d4('0x15')](_0x1e0071,_0x1d5870),this[_0xb5d4('0x14')][_0xb5d4('0x15')](_0x1e0071,new _0x441606()),this['channelConnectedUsers']['set'](_0x1e0071,new _0x441606()),this[_0xb5d4('0x1b')](_0x1d5870,_0xb5d4('0x19'),(_0x5bf132,_0x1967e3)=>this[_0xb5d4('0x11')](_0x1e0071,_0x1967e3)),this['listenTo'](_0x1d5870,_0xb5d4('0x2b'),(_0x2d933d,_0x4308d4)=>this[_0xb5d4('0xc')](_0x1e0071,_0x4308d4));for(const _0x3ed21e of _0x1d5870)this[_0xb5d4('0x11')](_0x1e0071,_0x3ed21e);}[_0xb5d4('0x23')](_0x443057){if(!this['_registeredSessions']['has'](_0x443057))throw new _0x267c18(_0xb5d4('0x2c'),null,{'channelId':_0x443057});const _0x2a1568=this[_0xb5d4('0x17')][_0xb5d4('0xe')](_0x443057);this[_0xb5d4('0x2')](_0x2a1568);for(const _0x49ee13 of _0x2a1568)_0xb5d4('0x27')===this['context'][_0xb5d4('0x6')][_0xb5d4('0xe')](_0x84d98)[_0xb5d4('0x24')]&&this[_0xb5d4('0xc')](_0x443057,_0x49ee13);this[_0xb5d4('0x17')][_0xb5d4('0x1f')](_0x443057),this['channelSessions'][_0xb5d4('0x1f')](_0x443057),this[_0xb5d4('0x4')][_0xb5d4('0x1f')](_0x443057);}get[_0xb5d4('0x25')](){return this[_0xb5d4('0x21')][_0xb5d4('0x6')][_0xb5d4('0xe')](_0x84d98)['connection'][_0xb5d4('0xb')];}[_0xb5d4('0x1d')](_0x14a3a0){for(const _0x50a407 of this[_0xb5d4('0x14')]['values']())for(const _0x4f3ee8 of _0x50a407)if(_0x4f3ee8['id']===_0x14a3a0)return _0x4f3ee8[_0xb5d4('0x1c')];}['getUserSessions'](_0x216aeb,_0x16ff6d){const _0x3e5282=_0x16ff6d?[this[_0xb5d4('0x14')][_0xb5d4('0xe')](_0x16ff6d)]:this[_0xb5d4('0x14')][_0xb5d4('0x26')](),_0x51673c=new Set();for(const _0x3b0b1d of _0x3e5282)for(const _0x5e2ca8 of _0x3b0b1d)_0x5e2ca8[_0xb5d4('0x1c')]['id']===_0x216aeb['id']&&_0x51673c[_0xb5d4('0x19')](_0x5e2ca8['id']);return _0x51673c;}[_0xb5d4('0x1')](_0x10fe3b){for(const _0x3b54d9 of this[_0xb5d4('0x14')][_0xb5d4('0x26')]())for(const _0x23fa5d of _0x3b54d9)if(_0x23fa5d[_0xb5d4('0x1c')]===_0x10fe3b)return _0x23fa5d['role'];}[_0xb5d4('0x11')](_0x2e0f14,_0x3deee2){if('connected'!==this[_0xb5d4('0x21')][_0xb5d4('0x6')]['get'](_0x84d98)[_0xb5d4('0x24')])return;const _0x4e8706=_0x3deee2[_0xb5d4('0x1c')],_0x568aa5=this[_0xb5d4('0x16')][_0xb5d4('0x1a')](_0x4e8706['id'])||this[_0xb5d4('0x9')](_0x4e8706),_0x491474=Object[_0xb5d4('0x2e')]({},_0x3deee2,{'user':_0x568aa5});this['channelSessions'][_0xb5d4('0xe')](_0x2e0f14)[_0xb5d4('0x19')](_0x491474);const _0x21bb3f=this['channelConnectedUsers'][_0xb5d4('0xe')](_0x2e0f14);_0x21bb3f[_0xb5d4('0xf')](_0x568aa5['id'])||_0x21bb3f['add'](_0x568aa5),this[_0xb5d4('0x12')][_0xb5d4('0xf')](_0x568aa5['id'])||this[_0xb5d4('0x12')]['add'](_0x568aa5),this[_0xb5d4('0x20')](_0xb5d4('0x13')+_0x2e0f14,{'channelId':_0x2e0f14,'session':_0x491474});}[_0xb5d4('0xc')](_0x562eac,_0x15c78e){if(_0xb5d4('0x27')!==this[_0xb5d4('0x21')][_0xb5d4('0x6')]['get'](_0x84d98)[_0xb5d4('0x24')])return;const _0x5dfdce=this['channelConnectedUsers'][_0xb5d4('0xe')](_0x562eac),_0x308fdb=_0x15c78e['user'];_0x308fdb['id']&&(this[_0xb5d4('0x14')][_0xb5d4('0xe')](_0x562eac)[_0xb5d4('0x2b')](_0x15c78e['id']),_0x5dfdce[_0xb5d4('0xf')](_0x308fdb['id'])&&!this['getUserSessions'](_0x308fdb,_0x562eac)[_0xb5d4('0x7')]&&_0x5dfdce[_0xb5d4('0x2b')](_0x308fdb['id']),this[_0xb5d4('0x12')][_0xb5d4('0xe')](_0x308fdb['id'])&&!this[_0xb5d4('0x5')](_0x308fdb)[_0xb5d4('0x7')]&&this['allConnectedUsers']['remove'](_0x308fdb['id']));}['_createUser'](_0x92ff5,_0xf89a94){const _0x38c7f2=this[_0xb5d4('0x16')][_0xb5d4('0x8')](_0x92ff5);return _0xf89a94&&this[_0xb5d4('0x16')][_0xb5d4('0x3')](_0x92ff5['id']),_0x38c7f2['orderNumber']=this['_uniqueUsersCount']++,_0x38c7f2;}}
23
+ function _0xff7d(){const _0x3fcae6=['3158985ceGonT','plugins','state','_registeredSessions','delete','user','sessionId','role','remove','values','pluginName','has','2488dOPuCz','context','148248avCTIK','_createUser','register','channelSessions','listenTo','fire','connection','addUser','584280sICkyC','channelConnectedUsers','connected','_users','5720071zIQPZM','getUserRole','forEach','isMe','getUserSessions','add','_handleSessionRemove','unregister','init','_uniqueUsersCount','get','clear','sessions-unregister-not-exist','getUser','_handleSessionAdd','1054832uiaXZj','getUserBySessionId','sessions-register-already-registered','size','mySessionId','Sessions','3274FeMSST','537wUVzeM','allConnectedUsers','requires','defineMe','assign','stopListening','sessionAdd:','52749DxRUfo','change:state','orderNumber','set'];_0xff7d=function(){return _0x3fcae6;};return _0xff7d();}const _0x1935fa=_0x5757;function _0x5757(_0x27e67f,_0x4c64af){const _0xff7d2=_0xff7d();return _0x5757=function(_0x57576e,_0x44c889){_0x57576e=_0x57576e-0x197;let _0x21fd18=_0xff7d2[_0x57576e];return _0x21fd18;},_0x5757(_0x27e67f,_0x4c64af);}(function(_0x1bed8c,_0x21a79d){const _0x2cd59a=_0x5757,_0x1a7aed=_0x1bed8c();while(!![]){try{const _0x29c5aa=-parseInt(_0x2cd59a(0x1b4))/0x1*(-parseInt(_0x2cd59a(0x1b3))/0x2)+parseInt(_0x2cd59a(0x1cd))/0x3+parseInt(_0x2cd59a(0x1ad))/0x4+parseInt(_0x2cd59a(0x1bf))/0x5+-parseInt(_0x2cd59a(0x19a))/0x6+parseInt(_0x2cd59a(0x19e))/0x7+parseInt(_0x2cd59a(0x1cb))/0x8*(-parseInt(_0x2cd59a(0x1bb))/0x9);if(_0x29c5aa===_0x21a79d)break;else _0x1a7aed['push'](_0x1a7aed['shift']());}catch(_0x38561f){_0x1a7aed['push'](_0x1a7aed['shift']());}}}(_0xff7d,0xb0060));import{ContextPlugin as _0x3da629}from'ckeditor5/src/core.js';import{Collection as _0x5956f9,CKEditorError as _0x2fc7ea}from'ckeditor5/src/utils.js';import _0x1e6b12 from'./websocketgateway.js';import{Users as _0x47c146}from'ckeditor5-collaboration/src/collaboration-core.js';export default class r extends _0x3da629{static get[_0x1935fa(0x1c9)](){const _0x2751cf=_0x1935fa;return _0x2751cf(0x1b2);}static get[_0x1935fa(0x1b6)](){return[_0x1e6b12,_0x47c146];}constructor(_0x4e79fc){const _0x37b3f6=_0x1935fa;super(_0x4e79fc),this[_0x37b3f6(0x1d0)]=new Map(),this[_0x37b3f6(0x19b)]=new Map(),this[_0x37b3f6(0x1b5)]=new _0x5956f9(),this[_0x37b3f6(0x1c2)]=new Map(),this[_0x37b3f6(0x1a7)]=0x0,this[_0x37b3f6(0x19d)]=this[_0x37b3f6(0x1cc)][_0x37b3f6(0x1c0)][_0x37b3f6(0x1a8)](_0x47c146);}[_0x1935fa(0x1a6)](){const _0x168123=_0x1935fa,_0x94111d=this[_0x168123(0x1cc)][_0x168123(0x1c0)][_0x168123(0x1a8)](_0x1e6b12);this[_0x168123(0x1d1)](_0x94111d,_0x168123(0x1bc),(_0x1696ea,_0x8e38de,_0xd05f16)=>{const _0x2520e3=_0x168123;if(_0x2520e3(0x19c)!==_0xd05f16)this[_0x2520e3(0x1d0)][_0x2520e3(0x1a0)](_0x68437a=>_0x68437a[_0x2520e3(0x1a9)]()),this[_0x2520e3(0x19b)][_0x2520e3(0x1a0)](_0x19f255=>_0x19f255[_0x2520e3(0x1a9)]()),this[_0x2520e3(0x1b5)][_0x2520e3(0x1a9)]();else{for(const [_0x28d763,_0x5e2f42]of this[_0x2520e3(0x1c2)])for(const _0x39b8a4 of _0x5e2f42)this[_0x2520e3(0x1ac)](_0x28d763,_0x39b8a4);}}),this[_0x168123(0x1ce)](_0x94111d[_0x168123(0x198)]['me'],!0x0);}[_0x1935fa(0x1cf)](_0x4affe8,_0x223d3d){const _0x1cd099=_0x1935fa;if(this[_0x1cd099(0x1c2)][_0x1cd099(0x1ca)](_0x4affe8))throw new _0x2fc7ea(_0x1cd099(0x1af),null,{'channelId':_0x4affe8});this[_0x1cd099(0x1c2)][_0x1cd099(0x1be)](_0x4affe8,_0x223d3d),this[_0x1cd099(0x1d0)][_0x1cd099(0x1be)](_0x4affe8,new _0x5956f9()),this[_0x1cd099(0x19b)][_0x1cd099(0x1be)](_0x4affe8,new _0x5956f9()),this[_0x1cd099(0x1d1)](_0x223d3d,_0x1cd099(0x1a3),(_0x5a34f3,_0x219a4e)=>this[_0x1cd099(0x1ac)](_0x4affe8,_0x219a4e)),this[_0x1cd099(0x1d1)](_0x223d3d,_0x1cd099(0x1c7),(_0x52ed85,_0x54408d)=>this[_0x1cd099(0x1a4)](_0x4affe8,_0x54408d));for(const _0x457704 of _0x223d3d)this[_0x1cd099(0x1ac)](_0x4affe8,_0x457704);}[_0x1935fa(0x1a5)](_0x4bbe87){const _0xd11061=_0x1935fa;if(!this[_0xd11061(0x1c2)][_0xd11061(0x1ca)](_0x4bbe87))throw new _0x2fc7ea(_0xd11061(0x1aa),null,{'channelId':_0x4bbe87});const _0x21df8d=this[_0xd11061(0x1c2)][_0xd11061(0x1a8)](_0x4bbe87);this[_0xd11061(0x1b9)](_0x21df8d);for(const _0x55ea64 of _0x21df8d)_0xd11061(0x19c)===this[_0xd11061(0x1cc)][_0xd11061(0x1c0)][_0xd11061(0x1a8)](_0x1e6b12)[_0xd11061(0x1c1)]&&this[_0xd11061(0x1a4)](_0x4bbe87,_0x55ea64);this[_0xd11061(0x1c2)][_0xd11061(0x1c3)](_0x4bbe87),this[_0xd11061(0x1d0)][_0xd11061(0x1c3)](_0x4bbe87),this[_0xd11061(0x19b)][_0xd11061(0x1c3)](_0x4bbe87);}get[_0x1935fa(0x1b1)](){const _0xeb5fa3=_0x1935fa;return this[_0xeb5fa3(0x1cc)][_0xeb5fa3(0x1c0)][_0xeb5fa3(0x1a8)](_0x1e6b12)[_0xeb5fa3(0x198)][_0xeb5fa3(0x1c5)];}[_0x1935fa(0x1ae)](_0x5b9cf7){const _0x46171e=_0x1935fa;for(const _0x49a647 of this[_0x46171e(0x1d0)][_0x46171e(0x1c8)]())for(const _0x42a42e of _0x49a647)if(_0x42a42e['id']===_0x5b9cf7)return _0x42a42e[_0x46171e(0x1c4)];}[_0x1935fa(0x1a2)](_0x417de8,_0x10b8c9){const _0x3d4672=_0x1935fa,_0x4bbe2f=_0x10b8c9?[this[_0x3d4672(0x1d0)][_0x3d4672(0x1a8)](_0x10b8c9)]:this[_0x3d4672(0x1d0)][_0x3d4672(0x1c8)](),_0x862893=new Set();for(const _0x1ed9f8 of _0x4bbe2f)for(const _0xed4e21 of _0x1ed9f8)_0xed4e21[_0x3d4672(0x1c4)]['id']===_0x417de8['id']&&_0x862893[_0x3d4672(0x1a3)](_0xed4e21['id']);return _0x862893;}[_0x1935fa(0x19f)](_0xe1f274){const _0x3a7528=_0x1935fa;for(const _0x4476c7 of this[_0x3a7528(0x1d0)][_0x3a7528(0x1c8)]())for(const _0x47c1f7 of _0x4476c7)if(_0x47c1f7[_0x3a7528(0x1c4)]===_0xe1f274)return _0x47c1f7[_0x3a7528(0x1c6)];}[_0x1935fa(0x1ac)](_0x6db9e9,_0x4e9271){const _0x12a459=_0x1935fa;if(_0x12a459(0x19c)!==this[_0x12a459(0x1cc)][_0x12a459(0x1c0)][_0x12a459(0x1a8)](_0x1e6b12)[_0x12a459(0x1c1)])return;const _0x5669e2=_0x4e9271[_0x12a459(0x1c4)],_0x557765=this[_0x12a459(0x19d)][_0x12a459(0x1ab)](_0x5669e2['id'])||this[_0x12a459(0x1ce)](_0x5669e2),_0xc3334f=Object[_0x12a459(0x1b8)]({},_0x4e9271,{'user':_0x557765});this[_0x12a459(0x1d0)][_0x12a459(0x1a8)](_0x6db9e9)[_0x12a459(0x1a3)](_0xc3334f);const _0x3a45eb=this[_0x12a459(0x19b)][_0x12a459(0x1a8)](_0x6db9e9);_0x3a45eb[_0x12a459(0x1ca)](_0x557765['id'])||_0x3a45eb[_0x12a459(0x1a3)](_0x557765),this[_0x12a459(0x1b5)][_0x12a459(0x1ca)](_0x557765['id'])||this[_0x12a459(0x1b5)][_0x12a459(0x1a3)](_0x557765,_0x557765[_0x12a459(0x1a1)]?0x0:void 0x0),this[_0x12a459(0x197)](_0x12a459(0x1ba)+_0x6db9e9,{'channelId':_0x6db9e9,'session':_0xc3334f});}[_0x1935fa(0x1a4)](_0x1c2930,_0x24253a){const _0x5c778a=_0x1935fa;if(_0x5c778a(0x19c)!==this[_0x5c778a(0x1cc)][_0x5c778a(0x1c0)][_0x5c778a(0x1a8)](_0x1e6b12)[_0x5c778a(0x1c1)])return;const _0x194fd=this[_0x5c778a(0x19b)][_0x5c778a(0x1a8)](_0x1c2930),_0x5b99a2=_0x24253a[_0x5c778a(0x1c4)];_0x5b99a2['id']&&(this[_0x5c778a(0x1d0)][_0x5c778a(0x1a8)](_0x1c2930)[_0x5c778a(0x1c7)](_0x24253a['id']),_0x194fd[_0x5c778a(0x1ca)](_0x5b99a2['id'])&&!this[_0x5c778a(0x1a2)](_0x5b99a2,_0x1c2930)[_0x5c778a(0x1b0)]&&_0x194fd[_0x5c778a(0x1c7)](_0x5b99a2['id']),this[_0x5c778a(0x1b5)][_0x5c778a(0x1a8)](_0x5b99a2['id'])&&!this[_0x5c778a(0x1a2)](_0x5b99a2)[_0x5c778a(0x1b0)]&&this[_0x5c778a(0x1b5)][_0x5c778a(0x1c7)](_0x5b99a2['id']));}[_0x1935fa(0x1ce)](_0x3914ae,_0x2f9795){const _0x241232=_0x1935fa,_0x490568=this[_0x241232(0x19d)][_0x241232(0x199)](_0x3914ae);return _0x2f9795&&this[_0x241232(0x19d)][_0x241232(0x1b7)](_0x3914ae['id']),_0x490568[_0x241232(0x1bd)]=this[_0x241232(0x1a7)]++,_0x490568;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3411=['contenteditable','for','ck-user__marker\x20','editingDowncast','removeMarker','updateMarker','view','schema','name','user:position','has','getCustomProperty','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>⁠','newRange','color','afterInit','editing','getRange','fromRange','hasContent','oldRange','getUserBySessionId','markerToHighlight','getContainedElement','start','batch','change','getNearestSelectionRange','_createdBatches','model','split','render','UserMarkers','requires','init','user:position:','isInline','get','user:','update:user:range','createUserMarkerOperations','change:range','marker','selection','set','toRange','conversion','document','markerName','undo','getAttribute','mySessionId','clear','deletionPosition','tableCell','plugins','ck-user__selection','root','enqueueChange','userPositionMarker','addMarker','end','hasDomSelection','createUIElement','isSimilar','getFirstRange','commands','createRange','parent','checkChild','toDomElement','$text','isCollapsed','isLimit','span','$graveyard','user:range:','editor','user:range','isObject','setCustomProperty','data-session-id','getPositions','rootName','delete','markers','startsWith','size'];(function(_0x73905e,_0x3411eb){const _0x37a3ce=function(_0x39b199){while(--_0x39b199){_0x73905e['push'](_0x73905e['shift']());}};_0x37a3ce(++_0x3411eb);}(_0x3411,0x82));const _0x37a3=function(_0x73905e,_0x3411eb){_0x73905e=_0x73905e-0x0;let _0x37a3ce=_0x3411[_0x73905e];return _0x37a3ce;};import{Plugin as _0x5bdef5}from'ckeditor5/src/core.js';import _0x575b3f from'./sessions.js';import{LiveRange as _0x5d4109}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export default class W extends _0x5bdef5{static get[_0x37a3('0x4f')](){return[_0x575b3f];}static get['pluginName'](){return _0x37a3('0x4e');}[_0x37a3('0x50')](){const _0x3bf287=this['editor'],_0x5ed86a=_0x3bf287['plugins']['get'](_0x575b3f);_0x3bf287['conversion'][_0x37a3('0x2f')](_0x37a3('0x31'))['markerToElement']({'model':_0x37a3('0x37'),'view':(_0x377449,{writer:_0x16fb46})=>function(_0x395bbc,_0x3461b4,_0x30e2ee,_0x379aef){const _0x3bd57c=_0x395bbc[_0x37a3('0x6')]['split'](':')[0x2],_0x5da60c=_0x30e2ee[_0x37a3('0x43')](_0x3bd57c);if(!_0x5da60c||_0x3bd57c===_0x30e2ee[_0x37a3('0x9')])return;if(!_0x379aef[_0x37a3('0x4b')]['schema'][_0x37a3('0x1b')](_0x395bbc['markerRange'][_0x37a3('0x46')],_0x37a3('0x1d')))return;const _0x2116ed={'class':_0x37a3('0x30')+_0x5da60c[_0x37a3('0x3c')]['getMarkerClass'](),'data-name':_0x5da60c[_0x37a3('0x36')],'data-session-id':_0x3bd57c},_0x275642=_0x379aef[_0x37a3('0x4b')][_0x37a3('0x2b')]['get'](_0x395bbc[_0x37a3('0x6')]),_0xec9282=_0x275642['getStart'](),_0x462ece=_0xec9282['nodeAfter'],_0xcc7e93=_0x379aef[_0x37a3('0x4b')][_0x37a3('0x35')];if(_0x462ece&&_0xcc7e93[_0x37a3('0x25')](_0x462ece)&&_0xcc7e93[_0x37a3('0x52')](_0x462ece)&&!_0x379aef[_0x37a3('0x4b')][_0x37a3('0x2b')][_0x37a3('0x53')](_0x37a3('0x22')+_0x3bd57c)[_0x37a3('0x3f')]()[_0x37a3('0x1e')])return;const _0x291072=_0xec9282[_0x37a3('0x1a')];return _0x379aef[_0x37a3('0x4b')][_0x37a3('0x35')][_0x37a3('0x1f')](_0x291072)&&!_0x379aef[_0x37a3('0x4b')][_0x37a3('0x41')](_0x291072)&&(_0x2116ed[_0x37a3('0x2e')]=!0x1),function(_0x1d7978,_0x2f492a){const _0x1e3595=_0x1d7978[_0x37a3('0x15')](_0x37a3('0x20'),_0x2f492a);return _0x1d7978[_0x37a3('0x26')](_0x37a3('0x11'),!0x0,_0x1e3595),_0x1e3595[_0x37a3('0x4d')]=function(_0x3c571f){const _0x43a350=this[_0x37a3('0x1c')](_0x3c571f);return _0x43a350['innerHTML']=_0x37a3('0x3a'),_0x43a350;},_0x1e3595[_0x37a3('0x16')]=function(_0x19c019){return!(!this[_0x37a3('0x39')](_0x37a3('0x11'))||!_0x19c019['getCustomProperty'](_0x37a3('0x11'))||this['getAttribute'](_0x37a3('0x27'))!=_0x19c019[_0x37a3('0x8')]('data-session-id'));},_0x1e3595;}(_0x3461b4,_0x2116ed);}(_0x377449,_0x16fb46,_0x5ed86a,_0x3bf287)}),_0x3bf287[_0x37a3('0x4')]['for'](_0x37a3('0x31'))[_0x37a3('0x44')]({'model':_0x37a3('0x24'),'view':_0x464924=>function(_0x36b930,_0x227a44){const _0x400dd5=_0x36b930[_0x37a3('0x6')][_0x37a3('0x4c')](':')[0x2];if(_0x400dd5===_0x227a44[_0x37a3('0x9')])return null;const _0x22a48d=_0x227a44[_0x37a3('0x43')](_0x400dd5);if(!_0x22a48d)return{'id':_0x400dd5,'classes':[]};return{'id':_0x400dd5,'classes':[_0x37a3('0xe'),_0x22a48d[_0x37a3('0x3c')]['getSelectionClass']()],'attributes':{'data-session-id':_0x400dd5},'priority':0x7d0+_0x22a48d['orderNumber']};}(_0x464924,_0x5ed86a)}),function(_0x1d4298){const _0x180cce=_0x1d4298['model'],_0xe9e9e5=new Map(),_0x20c96a=_0x1d4298[_0x37a3('0xd')][_0x37a3('0x53')](_0x575b3f);_0x180cce[_0x37a3('0x2b')]['on'](_0x37a3('0x55'),(_0x1b8314,_0x470964,_0xee797f,_0x2b8c3c)=>{if(!_0x2b8c3c&&_0xe9e9e5['get'](_0x470964['name']))return _0xe9e9e5['get'](_0x470964[_0x37a3('0x36')])['detach'](),void _0xe9e9e5[_0x37a3('0x2a')](_0x470964[_0x37a3('0x36')]);const _0x300945=_0x470964[_0x37a3('0x36')]['split'](':')[0x2];if(_0x300945===_0x20c96a[_0x37a3('0x9')])return;const _0x33c613=_0x37a3('0x51')+_0x300945;_0x180cce[_0x37a3('0x2b')][_0x37a3('0x38')](_0x33c613)&&_0x1d4298[_0x37a3('0x3e')]['reconvertMarker'](_0x33c613),_0x470964['on'](_0x37a3('0x57'),(_0x53fb1d,_0x3b4f46,_0x13fa92)=>{if(_0x37a3('0x21')!=_0x3b4f46[_0x37a3('0xf')][_0x37a3('0x29')]&&'$graveyard'==_0x470964[_0x37a3('0x3f')]()[_0x37a3('0xf')]['rootName']&&!_0xe9e9e5[_0x37a3('0x38')](_0x470964[_0x37a3('0x36')])){const _0x52acf4=_0x180cce['schema']['getNearestSelectionRange'](_0x13fa92['deletionPosition']);if(_0x52acf4){const _0x3619e9=_0x5d4109[_0x37a3('0x40')](_0x52acf4);_0xe9e9e5[_0x37a3('0x2')](_0x470964[_0x37a3('0x36')],_0x3619e9),_0x3619e9['on'](_0x37a3('0x57'),(_0x2196c1,_0x5c26db,_0x45e46c)=>{if(_0x37a3('0x21')==_0x3619e9[_0x37a3('0xf')][_0x37a3('0x29')]){const _0x9d118f=_0x180cce['schema'][_0x37a3('0x49')](_0x45e46c[_0x37a3('0xb')]);_0x9d118f?(_0x3619e9[_0x37a3('0x46')]=_0x9d118f[_0x37a3('0x46')],_0x3619e9['end']=_0x9d118f[_0x37a3('0x13')]):(_0xe9e9e5[_0x37a3('0x2a')](_0x470964[_0x37a3('0x36')]),_0x3619e9['detach']());}});}}});}),_0x180cce['document']['on'](_0x37a3('0x48'),()=>{_0xe9e9e5[_0x37a3('0x2d')]>0x0&&_0x180cce[_0x37a3('0x10')]({'isUndoable':!0x1},_0x2eb7bd=>{for(const [_0x428c7a,_0x197e15]of _0xe9e9e5)'$graveyard'==_0x180cce[_0x37a3('0x2b')]['get'](_0x428c7a)[_0x37a3('0x3f')]()[_0x37a3('0xf')][_0x37a3('0x29')]&&(Y(_0x428c7a['split'](':')[0x2],_0x197e15[_0x37a3('0x3')](),_0x180cce,_0x2eb7bd),_0x197e15['detach']());_0xe9e9e5[_0x37a3('0xa')]();});});}(_0x3bf287);}[_0x37a3('0x3d')](){const _0xd4fa9c=this[_0x37a3('0x23')],_0x9e7278=_0xd4fa9c[_0x37a3('0x18')]['get'](_0x37a3('0x7'));_0x9e7278&&_0xd4fa9c[_0x37a3('0x4b')]['on']('applyOperation',(_0x25a51b,_0x558ded)=>{const _0x19bc21=_0x558ded[0x0];if(_0x37a3('0x0')!=_0x19bc21['type']||!_0x19bc21[_0x37a3('0x36')][_0x37a3('0x2c')](_0x37a3('0x54')))return;const _0x312a1c=_0x19bc21[_0x37a3('0x47')];_0x9e7278[_0x37a3('0x4a')][_0x37a3('0x38')](_0x312a1c)&&(_0x19bc21[_0x37a3('0x3b')]=_0x19bc21['oldRange']?_0xd4fa9c[_0x37a3('0x4b')][_0x37a3('0x19')](_0x19bc21[_0x37a3('0x42')][_0x37a3('0x46')],_0x19bc21['oldRange'][_0x37a3('0x13')]):null);},{'priority':'highest'});}[_0x37a3('0x56')](){const _0x262853=this[_0x37a3('0x23')],_0x5d9d30=_0x262853['model'][_0x37a3('0x5')],_0x4742f3=_0x262853['plugins'][_0x37a3('0x53')](_0x575b3f);_0x262853[_0x37a3('0x4b')][_0x37a3('0x10')]({'isUndoable':!0x1},_0x2ceb8b=>{const _0x571017=_0x37a3('0x22')+_0x4742f3['mySessionId'],_0x302b94=_0x37a3('0x51')+_0x4742f3[_0x37a3('0x9')],_0x2949fa=_0x262853[_0x37a3('0x4b')][_0x37a3('0x2b')]['has'](_0x571017);_0x262853[_0x37a3('0x3e')][_0x37a3('0x34')][_0x37a3('0x14')]?Y(_0x4742f3[_0x37a3('0x9')],_0x5d9d30[_0x37a3('0x1')][_0x37a3('0x17')](),_0x262853[_0x37a3('0x4b')],_0x2ceb8b):_0x2949fa&&(_0x2ceb8b[_0x37a3('0x32')](_0x571017),_0x2ceb8b[_0x37a3('0x32')](_0x302b94));});}}function Y(_0x4119b0,_0x40c34a,_0x3cb6f0,_0x38fb85){const _0xee470d=_0x37a3('0x22')+_0x4119b0,_0x10e2ed=_0x37a3('0x51')+_0x4119b0,_0x463b76=_0x40c34a[_0x37a3('0x45')]();let _0x14b8cb=_0x40c34a[_0x37a3('0x46')];_0x463b76&&_0x463b76['is']('element',_0x37a3('0xc'))&&(_0x14b8cb=function(_0x37cd11,_0x51a9ab){for(const _0x38ad14 of _0x37cd11[_0x37a3('0x28')]())if(_0x51a9ab[_0x37a3('0x35')][_0x37a3('0x1b')](_0x38ad14,'$text'))return _0x38ad14;}(_0x40c34a,_0x3cb6f0),_0x40c34a=_0x38fb85[_0x37a3('0x19')](_0x14b8cb));const _0x5d651a=_0x38fb85['createRange'](_0x14b8cb);_0x3cb6f0['markers'][_0x37a3('0x38')](_0xee470d)?(_0x38fb85[_0x37a3('0x33')](_0xee470d,{'range':_0x40c34a}),_0x38fb85['updateMarker'](_0x10e2ed,{'range':_0x5d651a})):(_0x38fb85[_0x37a3('0x12')](_0xee470d,{'range':_0x40c34a,'usingOperation':!0x0}),_0x38fb85[_0x37a3('0x12')](_0x10e2ed,{'range':_0x5d651a,'usingOperation':!0x0}));}
23
+ const _0x46fd5d=_0x5eb4;(function(_0x1f336b,_0x266976){const _0x20df6a=_0x5eb4,_0xb1626d=_0x1f336b();while(!![]){try{const _0x3ae066=parseInt(_0x20df6a(0x194))/0x1*(-parseInt(_0x20df6a(0x1b7))/0x2)+parseInt(_0x20df6a(0x1ca))/0x3+parseInt(_0x20df6a(0x1e7))/0x4+parseInt(_0x20df6a(0x1b1))/0x5*(parseInt(_0x20df6a(0x1b5))/0x6)+parseInt(_0x20df6a(0x1e9))/0x7*(-parseInt(_0x20df6a(0x18c))/0x8)+parseInt(_0x20df6a(0x1f4))/0x9*(-parseInt(_0x20df6a(0x1d8))/0xa)+-parseInt(_0x20df6a(0x192))/0xb*(parseInt(_0x20df6a(0x1aa))/0xc);if(_0x3ae066===_0x266976)break;else _0xb1626d['push'](_0xb1626d['shift']());}catch(_0x707254){_0xb1626d['push'](_0xb1626d['shift']());}}}(_0x4db2,0x6f45b));import{Plugin as _0xe24bf9}from'ckeditor5/src/core.js';import _0x144065 from'./sessions.js';import{LiveRange as _0x503eee}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export default class H extends _0xe24bf9{static get[_0x46fd5d(0x1be)](){return[_0x144065];}static get[_0x46fd5d(0x1eb)](){const _0x295cc8=_0x46fd5d;return _0x295cc8(0x1ed);}[_0x46fd5d(0x1bf)](){const _0x1f591a=_0x46fd5d,_0x161c07=this[_0x1f591a(0x1d0)],_0x3a31f4=_0x161c07[_0x1f591a(0x1e0)][_0x1f591a(0x1b9)](_0x144065);_0x161c07[_0x1f591a(0x1d4)][_0x1f591a(0x1ce)](_0x1f591a(0x1c1))[_0x1f591a(0x1f9)]({'model':_0x1f591a(0x1c9),'view':(_0x4bbfd6,{writer:_0x39ace7})=>function(_0xc9d1e4,_0x4dbd4f,_0x2b7080,_0x2b6dda){const _0x4b2bb3=_0x1f591a,_0x577c31=_0xc9d1e4[_0x4b2bb3(0x1ef)][_0x4b2bb3(0x1e3)](':')[0x2],_0xf42dcd=_0x2b7080[_0x4b2bb3(0x18e)](_0x577c31);if(!_0xf42dcd||_0x577c31===_0x2b7080[_0x4b2bb3(0x1f8)])return;if(!_0x2b6dda[_0x4b2bb3(0x1bc)][_0x4b2bb3(0x19d)][_0x4b2bb3(0x1c6)](_0xc9d1e4[_0x4b2bb3(0x19e)][_0x4b2bb3(0x1ba)],_0x4b2bb3(0x1f3)))return;const _0x6f34dc={'class':_0x4b2bb3(0x1d7)+_0xf42dcd[_0x4b2bb3(0x1cd)][_0x4b2bb3(0x190)](),'data-name':_0xf42dcd[_0x4b2bb3(0x191)],'data-session-id':_0x577c31},_0x56ad74=_0x2b6dda[_0x4b2bb3(0x1bc)][_0x4b2bb3(0x1a2)][_0x4b2bb3(0x1b9)](_0xc9d1e4[_0x4b2bb3(0x1ef)]),_0x29a7ad=_0x56ad74[_0x4b2bb3(0x1b8)](),_0x992eab=_0x29a7ad[_0x4b2bb3(0x197)],_0x580c1e=_0x2b6dda[_0x4b2bb3(0x1bc)][_0x4b2bb3(0x19d)];if(_0x992eab&&_0x580c1e[_0x4b2bb3(0x19c)](_0x992eab)&&_0x580c1e[_0x4b2bb3(0x1ee)](_0x992eab)&&!_0x2b6dda[_0x4b2bb3(0x1bc)][_0x4b2bb3(0x1a2)][_0x4b2bb3(0x1b9)](_0x4b2bb3(0x193)+_0x577c31)[_0x4b2bb3(0x1b6)]()[_0x4b2bb3(0x1de)])return;const _0x4e153f=_0x29a7ad[_0x4b2bb3(0x1a9)];return _0x2b6dda[_0x4b2bb3(0x1bc)][_0x4b2bb3(0x19d)][_0x4b2bb3(0x18d)](_0x4e153f)&&!_0x2b6dda[_0x4b2bb3(0x1bc)][_0x4b2bb3(0x1ec)](_0x4e153f)&&(_0x6f34dc[_0x4b2bb3(0x18b)]=!0x1),function(_0x5a6c58,_0x54dff9){const _0x132a6c=_0x4b2bb3,_0x8620b5=_0x5a6c58[_0x132a6c(0x198)](_0x132a6c(0x1f6),_0x54dff9);return _0x5a6c58[_0x132a6c(0x1ae)](_0x132a6c(0x18f),!0x0,_0x8620b5),_0x8620b5[_0x132a6c(0x189)]=function(_0x156b97){const _0x2d2f33=_0x132a6c,_0x39be56=this[_0x2d2f33(0x1e4)](_0x156b97);return _0x39be56[_0x2d2f33(0x1d5)]=_0x2d2f33(0x1f1),_0x39be56;},_0x8620b5[_0x132a6c(0x1a0)]=function(_0x41d3e8){const _0x3fa8a7=_0x132a6c;return!(!this[_0x3fa8a7(0x1bb)](_0x3fa8a7(0x18f))||!_0x41d3e8[_0x3fa8a7(0x1bb)](_0x3fa8a7(0x18f))||this[_0x3fa8a7(0x1ad)](_0x3fa8a7(0x1db))!=_0x41d3e8[_0x3fa8a7(0x1ad)](_0x3fa8a7(0x1db)));},_0x8620b5;}(_0x4dbd4f,_0x6f34dc);}(_0x4bbfd6,_0x39ace7,_0x3a31f4,_0x161c07)}),_0x161c07[_0x1f591a(0x1d4)][_0x1f591a(0x1ce)](_0x1f591a(0x1c1))[_0x1f591a(0x1a1)]({'model':_0x1f591a(0x1b4),'view':_0x3edfb5=>function(_0x4efbd1,_0x48f41c){const _0x53732e=_0x1f591a,_0x59d316=_0x4efbd1[_0x53732e(0x1ef)][_0x53732e(0x1e3)](':')[0x2];if(_0x59d316===_0x48f41c[_0x53732e(0x1f8)])return null;const _0x1ea5c1=_0x48f41c[_0x53732e(0x18e)](_0x59d316);if(!_0x1ea5c1)return{'id':_0x59d316,'classes':[]};return{'id':_0x59d316,'classes':[_0x53732e(0x1e6),_0x1ea5c1[_0x53732e(0x1cd)][_0x53732e(0x18a)]()],'attributes':{'data-session-id':_0x59d316},'priority':0x7d0+_0x1ea5c1[_0x53732e(0x1c2)]};}(_0x3edfb5,_0x3a31f4)}),function(_0x2c2e23){const _0x1b9dea=_0x1f591a,_0x42e0fd=_0x2c2e23[_0x1b9dea(0x1bc)],_0x4ab7a2=new Map(),_0x550244=_0x2c2e23[_0x1b9dea(0x1e0)][_0x1b9dea(0x1b9)](_0x144065);_0x42e0fd[_0x1b9dea(0x1a2)]['on'](_0x1b9dea(0x1dc),(_0x5eafac,_0x2f49ef,_0x3c8599,_0x1b98a5)=>{const _0x33e388=_0x1b9dea;if(!_0x1b98a5&&_0x4ab7a2[_0x33e388(0x1b9)](_0x2f49ef[_0x33e388(0x191)]))return _0x4ab7a2[_0x33e388(0x1b9)](_0x2f49ef[_0x33e388(0x191)])[_0x33e388(0x1f0)](),void _0x4ab7a2[_0x33e388(0x1e1)](_0x2f49ef[_0x33e388(0x191)]);const _0x51d8dc=_0x2f49ef[_0x33e388(0x191)][_0x33e388(0x1e3)](':')[0x2];if(_0x51d8dc===_0x550244[_0x33e388(0x1f8)])return;const _0x1e60c2=_0x33e388(0x199)+_0x51d8dc;_0x42e0fd[_0x33e388(0x1a2)][_0x33e388(0x1da)](_0x1e60c2)&&_0x2c2e23[_0x33e388(0x1d6)][_0x33e388(0x1cc)](_0x1e60c2),_0x2f49ef['on'](_0x33e388(0x1a5),(_0x5581e0,_0x1ef4e0,_0x810252)=>{const _0x3f8d0f=_0x33e388;if(_0x3f8d0f(0x1a8)!=_0x1ef4e0[_0x3f8d0f(0x195)][_0x3f8d0f(0x1d1)]&&_0x3f8d0f(0x1a8)==_0x2f49ef[_0x3f8d0f(0x1b6)]()[_0x3f8d0f(0x195)][_0x3f8d0f(0x1d1)]&&!_0x4ab7a2[_0x3f8d0f(0x1da)](_0x2f49ef[_0x3f8d0f(0x191)])){const _0x492e4d=_0x42e0fd[_0x3f8d0f(0x19d)][_0x3f8d0f(0x187)](_0x810252[_0x3f8d0f(0x1c5)]);if(_0x492e4d){const _0x3a184f=_0x503eee[_0x3f8d0f(0x1c8)](_0x492e4d);_0x4ab7a2[_0x3f8d0f(0x1c3)](_0x2f49ef[_0x3f8d0f(0x191)],_0x3a184f),_0x3a184f['on'](_0x3f8d0f(0x1a5),(_0x387ea4,_0x1565ae,_0x24e615)=>{const _0x2b46d6=_0x3f8d0f;if(_0x2b46d6(0x1a8)==_0x3a184f[_0x2b46d6(0x195)][_0x2b46d6(0x1d1)]){const _0x48c3fc=_0x42e0fd[_0x2b46d6(0x19d)][_0x2b46d6(0x187)](_0x24e615[_0x2b46d6(0x1c5)]);_0x48c3fc?(_0x3a184f[_0x2b46d6(0x1ba)]=_0x48c3fc[_0x2b46d6(0x1ba)],_0x3a184f[_0x2b46d6(0x1f7)]=_0x48c3fc[_0x2b46d6(0x1f7)]):(_0x4ab7a2[_0x2b46d6(0x1e1)](_0x2f49ef[_0x2b46d6(0x191)]),_0x3a184f[_0x2b46d6(0x1f0)]());}});}}});}),_0x42e0fd[_0x1b9dea(0x1c4)]['on'](_0x1b9dea(0x1b3),()=>{const _0x3a1a7f=_0x1b9dea;_0x4ab7a2[_0x3a1a7f(0x19f)]>0x0&&_0x42e0fd[_0x3a1a7f(0x188)]({'isUndoable':!0x1},_0x575026=>{const _0xacca92=_0x3a1a7f;for(const [_0x131491,_0x68a819]of _0x4ab7a2)_0xacca92(0x1a8)==_0x42e0fd[_0xacca92(0x1a2)][_0xacca92(0x1b9)](_0x131491)[_0xacca92(0x1b6)]()[_0xacca92(0x195)][_0xacca92(0x1d1)]&&(Z(_0x131491[_0xacca92(0x1e3)](':')[0x2],_0x68a819[_0xacca92(0x1cf)](),_0x42e0fd,_0x575026),_0x68a819[_0xacca92(0x1f0)]());_0x4ab7a2[_0xacca92(0x1c7)]();});});}(_0x161c07);}[_0x46fd5d(0x1d3)](){const _0x357517=_0x46fd5d,_0x3c127e=this[_0x357517(0x1d0)],_0x3da800=_0x3c127e[_0x357517(0x1af)][_0x357517(0x1b9)](_0x357517(0x1c0));_0x3da800&&_0x3c127e[_0x357517(0x1bc)]['on'](_0x357517(0x1e8),(_0x1708b6,_0x2a1b0a)=>{const _0x3c58df=_0x357517,_0x532a9f=_0x2a1b0a[0x0];if(_0x3c58df(0x1b2)!=_0x532a9f[_0x3c58df(0x1df)]||!_0x532a9f[_0x3c58df(0x191)][_0x3c58df(0x196)](_0x3c58df(0x1a4)))return;const _0x3f4b86=_0x532a9f[_0x3c58df(0x1d9)];_0x3da800[_0x3c58df(0x1d2)][_0x3c58df(0x1da)](_0x3f4b86)&&(_0x532a9f[_0x3c58df(0x1f2)]=_0x532a9f[_0x3c58df(0x1f5)]?_0x3c127e[_0x3c58df(0x1bc)][_0x3c58df(0x1e5)](_0x532a9f[_0x3c58df(0x1f5)][_0x3c58df(0x1ba)],_0x532a9f[_0x3c58df(0x1f5)][_0x3c58df(0x1f7)]):null);},{'priority':_0x357517(0x1e2)});}[_0x46fd5d(0x1ac)](){const _0x2fee25=_0x46fd5d,_0x1823d0=this[_0x2fee25(0x1d0)],_0x2c4ae3=_0x1823d0[_0x2fee25(0x1bc)][_0x2fee25(0x1c4)],_0x777892=_0x1823d0[_0x2fee25(0x1e0)][_0x2fee25(0x1b9)](_0x144065);_0x1823d0[_0x2fee25(0x1bc)][_0x2fee25(0x188)]({'isUndoable':!0x1},_0x507fe3=>{const _0x46381e=_0x2fee25,_0x2aa929=_0x46381e(0x193)+_0x777892[_0x46381e(0x1f8)],_0x52805e=_0x46381e(0x199)+_0x777892[_0x46381e(0x1f8)],_0x2d5ecd=_0x1823d0[_0x46381e(0x1bc)][_0x46381e(0x1a2)][_0x46381e(0x1da)](_0x2aa929);_0x1823d0[_0x46381e(0x1d6)][_0x46381e(0x19b)][_0x46381e(0x1a7)]?Z(_0x777892[_0x46381e(0x1f8)],_0x2c4ae3[_0x46381e(0x1b0)][_0x46381e(0x1ea)](),_0x1823d0[_0x46381e(0x1bc)],_0x507fe3):_0x2d5ecd&&(_0x507fe3[_0x46381e(0x1dd)](_0x2aa929),_0x507fe3[_0x46381e(0x1dd)](_0x52805e));});}}function _0x5eb4(_0xc24680,_0x250746){const _0x4db2ae=_0x4db2();return _0x5eb4=function(_0x5eb482,_0x338603){_0x5eb482=_0x5eb482-0x187;let _0x16f8e2=_0x4db2ae[_0x5eb482];return _0x16f8e2;},_0x5eb4(_0xc24680,_0x250746);}function Z(_0x455b26,_0x474b74,_0x694bf3,_0x1e5091){const _0x2e32d1=_0x46fd5d,_0x2f25d1=_0x2e32d1(0x193)+_0x455b26,_0x587f8b=_0x2e32d1(0x199)+_0x455b26,_0x4f4e7e=_0x474b74[_0x2e32d1(0x1ab)]();let _0x46c762=_0x474b74[_0x2e32d1(0x1ba)];_0x4f4e7e&&_0x4f4e7e['is'](_0x2e32d1(0x1cb),_0x2e32d1(0x19a))&&(_0x46c762=function(_0x5f1cf1,_0x29ca3a){const _0x133ebd=_0x2e32d1;for(const _0x2ec693 of _0x5f1cf1[_0x133ebd(0x1bd)]())if(_0x29ca3a[_0x133ebd(0x19d)][_0x133ebd(0x1c6)](_0x2ec693,_0x133ebd(0x1f3)))return _0x2ec693;}(_0x474b74,_0x694bf3),_0x474b74=_0x1e5091[_0x2e32d1(0x1e5)](_0x46c762));const _0x151bac=_0x1e5091[_0x2e32d1(0x1e5)](_0x46c762);_0x694bf3[_0x2e32d1(0x1a2)][_0x2e32d1(0x1da)](_0x2f25d1)?(_0x1e5091[_0x2e32d1(0x1a3)](_0x2f25d1,{'range':_0x474b74}),_0x1e5091[_0x2e32d1(0x1a3)](_0x587f8b,{'range':_0x151bac})):(_0x1e5091[_0x2e32d1(0x1a6)](_0x2f25d1,{'range':_0x474b74,'usingOperation':!0x0}),_0x1e5091[_0x2e32d1(0x1a6)](_0x587f8b,{'range':_0x151bac,'usingOperation':!0x0}));}function _0x4db2(){const _0x4ff5be=['type','plugins','delete','highest','split','toDomElement','createRange','ck-user__selection','3500976OSYluQ','applyOperation','7nfBNqg','getFirstRange','pluginName','hasContent','UserMarkers','isInline','markerName','detach','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>⁠','newRange','$text','9FXLGzh','oldRange','span','end','mySessionId','markerToElement','getNearestSelectionRange','enqueueChange','render','getSelectionClass','contenteditable','1718168tPXfkk','isLimit','getUserBySessionId','userPositionMarker','getMarkerClass','name','11JaDldp','user:range:','8xLahAc','root','startsWith','nodeAfter','createUIElement','user:position:','tableCell','view','isObject','schema','markerRange','size','isSimilar','markerToHighlight','markers','updateMarker','user:','change:range','addMarker','hasDomSelection','$graveyard','parent','4016532HBxwVp','getContainedElement','createUserMarkerOperations','getAttribute','setCustomProperty','commands','selection','50YJemun','marker','change','user:range','6042QTBwCk','getRange','87664JFrZkg','getStart','get','start','getCustomProperty','model','getPositions','requires','init','undo','editingDowncast','orderNumber','set','document','deletionPosition','checkChild','clear','fromRange','user:position','2264016lIfKwz','element','reconvertMarker','color','for','toRange','editor','rootName','_createdBatches','afterInit','conversion','innerHTML','editing','ck-user__marker\x20','2840770NColPj','batch','has','data-session-id','update:user:range','removeMarker','isCollapsed'];_0x4db2=function(){return _0x4ff5be;};return _0x4db2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33e5=['DISCONNECTED','error','online','showWarning','from','catch','cloudservices-init','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','pluginName','state','_shouldPluginsReconnect','then','cloudservices-reconnection-error','set','removeFromReconnectionStack','has','get','config','WebSocketGateway','_domEmitter','all','webSocketUrl','Connected\x20users\x20limit\x20exceeded','websocketgateway-missing-token','connection','CONNECTED','define','_isBrowserOffline','CONNECTING','offline','cloudServices.connectionTimeout','init','plugins','token','add','isInReconnectionStack','websocketgateway-invalid-plugin-interface','cloudServices.requestTimeout','_reconnect','CloudServices','disconnect','context','connected','_reconnectionStack','change:me','listenTo','stopListening','destroy','create','reconnect','websocketgateway-missing-websocket-url','requires'];(function(_0x970154,_0x33e54d){const _0x12ce62=function(_0x2773d2){while(--_0x2773d2){_0x970154['push'](_0x970154['shift']());}};_0x12ce62(++_0x33e54d);}(_0x33e5,0x8b));const _0x12ce=function(_0x970154,_0x33e54d){_0x970154=_0x970154-0x0;let _0x12ce62=_0x33e5[_0x970154];return _0x12ce62;};import{ContextPlugin as _0x2eb538}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x168adb,CKEditorError as _0x5527c5}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0xb41d58,WEB_SOCKET_GATEWAY_STATES as _0x3c55af}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x92b4ff}from'ckeditor5/src/ui.js';class c extends _0x2eb538{static get[_0x12ce('0x10')](){return[_0x12ce('0x4'),_0x92b4ff];}static get[_0x12ce('0x19')](){return'WebSocketGateway';}constructor(_0x129931){super(_0x129931),this['set']('state',_0x3c55af[_0x12ce('0x2a')]),this[_0x12ce('0x1e')](_0x12ce('0x2c'),!0x1),this['_reconnectionStack']=new Set(),this[_0x12ce('0x1b')]=!0x1,this[_0x12ce('0x24')]=Object[_0x12ce('0xd')](_0x168adb);}[_0x12ce('0x30')](){const _0x273d98=this[_0x12ce('0x6')],_0xb63777=_0x273d98[_0x12ce('0x31')][_0x12ce('0x21')]('CloudServices'),_0x180241=_0x273d98[_0x12ce('0x31')]['get'](_0x92b4ff);if(!_0xb63777[_0x12ce('0x32')])throw new _0x5527c5(_0x12ce('0x28'),this);if(!_0xb63777['webSocketUrl'])throw new _0x5527c5(_0x12ce('0xf'),this);return this[_0x12ce('0x24')][_0x12ce('0xa')](window,_0x12ce('0x2e'),()=>this[_0x12ce('0x2c')]=!0x0),this[_0x12ce('0x24')][_0x12ce('0xa')](window,_0x12ce('0x13'),()=>this[_0x12ce('0x2c')]=!0x1),this[_0x12ce('0x6')][_0x12ce('0x22')][_0x12ce('0x2b')]('cloudServices.connectionTimeout',0xa),this['context'][_0x12ce('0x22')][_0x12ce('0x2b')]('cloudServices.requestTimeout',0x14),c[_0x12ce('0x23')]['connect'](_0xb63777[_0x12ce('0x32')],_0xb63777[_0x12ce('0x26')],{'timeout':0x3e8*this[_0x12ce('0x6')]['config'][_0x12ce('0x21')](_0x12ce('0x2f')),'requestTimeout':0x3e8*this[_0x12ce('0x6')][_0x12ce('0x22')][_0x12ce('0x21')](_0x12ce('0x2'))})[_0x12ce('0x1c')](_0x5a253a=>{if(this[_0x12ce('0x29')]=_0x5a253a,this['bind'](_0x12ce('0x1a'))['to'](_0x5a253a,'state',this,_0x12ce('0x2c'),(_0x5818dc,_0x4652b6)=>(_0x12ce('0x7')!==_0x5818dc&&(this[_0x12ce('0x1b')]=!0x0),_0x4652b6||_0x5818dc!==_0x3c55af[_0x12ce('0x2a')]?_0x3c55af['DISCONNECTED']:this['state']==_0x3c55af[_0x12ce('0x11')]&&this[_0x12ce('0x1b')]?(this[_0x12ce('0x1b')]=!0x1,this[_0x12ce('0x3')](),_0x3c55af[_0x12ce('0x2d')]):_0x3c55af[_0x12ce('0x2a')])),this[_0x12ce('0x29')]['on'](_0x12ce('0x12'),(_0x49e4a5,_0x1fa028)=>{if('limitExceeded'!==_0x1fa028['code'])throw console[_0x12ce('0x12')](_0x1fa028),new _0x5527c5(_0x12ce('0x17'),null,{'originalError':_0x1fa028});_0x180241[_0x12ce('0x14')](_0x12ce('0x18'),{'title':_0x12ce('0x27'),'namespace':'real-time-collaboration'});}),!_0x5a253a['me'])return new Promise(_0x5a12ad=>_0x5a253a['on'](_0x12ce('0x9'),_0x5a12ad));})[_0x12ce('0x16')](_0x3c91c3=>{throw console[_0x12ce('0x12')](_0x3c91c3),new _0x5527c5(_0x12ce('0x17'),null,{'originalError':_0x3c91c3});});}['addToReconnectionStack'](_0x436761){if('function'!=typeof _0x436761[_0x12ce('0xe')])throw new _0x5527c5(_0x12ce('0x1'),this);if(this['isInReconnectionStack'](_0x436761))throw new _0x5527c5('websocketgateway-plugin-already-registered',this,{'name':_0x436761['constructor'][_0x12ce('0x19')]});this[_0x12ce('0x8')][_0x12ce('0x33')](_0x436761);}[_0x12ce('0x1f')](_0x3b16ed){this[_0x12ce('0x8')]['delete'](_0x3b16ed);}[_0x12ce('0x0')](_0x1e9c53){return this[_0x12ce('0x8')][_0x12ce('0x20')](_0x1e9c53);}[_0x12ce('0x3')](){return this[_0x12ce('0x29')]['reconnect']()['then'](()=>Promise[_0x12ce('0x25')](Array[_0x12ce('0x15')](this['_reconnectionStack'],_0x44ed9c=>_0x44ed9c[_0x12ce('0xe')]())))[_0x12ce('0x1c')](()=>this[_0x12ce('0x1a')]=_0x3c55af[_0x12ce('0x2a')])[_0x12ce('0x16')](_0x1b6e97=>{throw console[_0x12ce('0x12')](_0x1b6e97),new _0x5527c5(_0x12ce('0x1d'),this[_0x12ce('0x6')]);});}['destroy'](){this[_0x12ce('0x29')]&&this['connection'][_0x12ce('0x5')](),this[_0x12ce('0x1a')]=_0x3c55af['DISCONNECTED'],this[_0x12ce('0x24')][_0x12ce('0xb')](),super[_0x12ce('0xc')]();}}c[_0x12ce('0x23')]=_0xb41d58,c['initialReconnectionInterval']=0x3e8;export default c;
23
+ function _0x1d38(){const _0x1c6219=['delete','add','plugins','listenTo','from','5772030NzjLYE','22HwBjFJ','bind','disconnect','create','1443458zWjxOt','_reconnect','function','isInReconnectionStack','4004ohqlRq','cloudservices-reconnection-error','_isBrowserOffline','offline','connected','set','pluginName','1DbEDNg','config','_shouldPluginsReconnect','constructor','init','then','error','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','DISCONNECTED','WebSocketGateway','showWarning','online','1350468KmgCuT','cloudServices.connectionTimeout','context','_domEmitter','limitExceeded','token','4958429kqTgwn','5170ZgqeLV','_reconnectionStack','CONNECTED','catch','CloudServices','websocketgateway-missing-websocket-url','connect','real-time-collaboration','Connected\x20users\x20limit\x20exceeded','websocketgateway-invalid-plugin-interface','stopListening','reconnect','6DqOMfW','cloudServices.requestTimeout','state','11586195QcHKZA','websocketgateway-plugin-already-registered','webSocketUrl','connection','initialReconnectionInterval','CONNECTING','removeFromReconnectionStack','2984208PrapIv','get','destroy','define','change:me','code','cloudservices-init','all','websocketgateway-missing-token','has','requires','addToReconnectionStack'];_0x1d38=function(){return _0x1c6219;};return _0x1d38();}const _0x45b7c1=_0x24b8;(function(_0x23272f,_0x300bc6){const _0x3459a2=_0x24b8,_0x5a8b18=_0x23272f();while(!![]){try{const _0x1eea5f=parseInt(_0x3459a2(0x74))/0x1*(-parseInt(_0x3459a2(0xb3))/0x2)+-parseInt(_0x3459a2(0x80))/0x3+-parseInt(_0x3459a2(0xb7))/0x4*(-parseInt(_0x3459a2(0x87))/0x5)+parseInt(_0x3459a2(0x93))/0x6*(parseInt(_0x3459a2(0x86))/0x7)+parseInt(_0x3459a2(0x9d))/0x8+-parseInt(_0x3459a2(0x96))/0x9+-parseInt(_0x3459a2(0xae))/0xa*(-parseInt(_0x3459a2(0xaf))/0xb);if(_0x1eea5f===_0x300bc6)break;else _0x5a8b18['push'](_0x5a8b18['shift']());}catch(_0xf4fe16){_0x5a8b18['push'](_0x5a8b18['shift']());}}}(_0x1d38,0xc6235));import{ContextPlugin as _0x11d91e}from'ckeditor5/src/core.js';function _0x24b8(_0x44affd,_0x140630){const _0x1d38cc=_0x1d38();return _0x24b8=function(_0x24b855,_0x21ab04){_0x24b855=_0x24b855-0x73;let _0x4813c9=_0x1d38cc[_0x24b855];return _0x4813c9;},_0x24b8(_0x44affd,_0x140630);}import{DomEmitterMixin as _0x1ce05d,CKEditorError as _0x270d7d}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x131008,WEB_SOCKET_GATEWAY_STATES as _0xf52efc}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x18fc37}from'ckeditor5/src/ui.js';class c extends _0x11d91e{static get[_0x45b7c1(0xa7)](){const _0x5911d0=_0x45b7c1;return[_0x5911d0(0x8b),_0x18fc37];}static get[_0x45b7c1(0x73)](){const _0x591e11=_0x45b7c1;return _0x591e11(0x7d);}constructor(_0x35e89c){const _0x1cf9b6=_0x45b7c1;super(_0x35e89c),this[_0x1cf9b6(0xbc)](_0x1cf9b6(0x95),_0xf52efc[_0x1cf9b6(0x89)]),this[_0x1cf9b6(0xbc)](_0x1cf9b6(0xb9),!0x1),this[_0x1cf9b6(0x88)]=new Set(),this[_0x1cf9b6(0x76)]=!0x1,this[_0x1cf9b6(0x83)]=Object[_0x1cf9b6(0xb2)](_0x1ce05d);}[_0x45b7c1(0x78)](){const _0xd01468=_0x45b7c1,_0x2b6362=this[_0xd01468(0x82)],_0x5af617=_0x2b6362[_0xd01468(0xab)][_0xd01468(0x9e)](_0xd01468(0x8b)),_0x1c606f=_0x2b6362[_0xd01468(0xab)][_0xd01468(0x9e)](_0x18fc37);if(!_0x5af617[_0xd01468(0x85)])throw new _0x270d7d(_0xd01468(0xa5),this);if(!_0x5af617[_0xd01468(0x98)])throw new _0x270d7d(_0xd01468(0x8c),this);return this[_0xd01468(0x83)][_0xd01468(0xac)](window,_0xd01468(0xba),()=>this[_0xd01468(0xb9)]=!0x0),this[_0xd01468(0x83)][_0xd01468(0xac)](window,_0xd01468(0x7f),()=>this[_0xd01468(0xb9)]=!0x1),this[_0xd01468(0x82)][_0xd01468(0x75)][_0xd01468(0xa0)](_0xd01468(0x81),0xa),this[_0xd01468(0x82)][_0xd01468(0x75)][_0xd01468(0xa0)](_0xd01468(0x94),0x14),c[_0xd01468(0x7d)][_0xd01468(0x8d)](_0x5af617[_0xd01468(0x85)],_0x5af617[_0xd01468(0x98)],{'timeout':0x3e8*this[_0xd01468(0x82)][_0xd01468(0x75)][_0xd01468(0x9e)](_0xd01468(0x81)),'requestTimeout':0x3e8*this[_0xd01468(0x82)][_0xd01468(0x75)][_0xd01468(0x9e)](_0xd01468(0x94))})[_0xd01468(0x79)](_0x45c017=>{const _0x30588b=_0xd01468;if(this[_0x30588b(0x99)]=_0x45c017,this[_0x30588b(0xb0)](_0x30588b(0x95))['to'](_0x45c017,_0x30588b(0x95),this,_0x30588b(0xb9),(_0x273b11,_0x2087af)=>(_0x30588b(0xbb)!==_0x273b11&&(this[_0x30588b(0x76)]=!0x0),_0x2087af||_0x273b11!==_0xf52efc[_0x30588b(0x89)]?_0xf52efc[_0x30588b(0x7c)]:this[_0x30588b(0x95)]==_0xf52efc[_0x30588b(0x7c)]&&this[_0x30588b(0x76)]?(this[_0x30588b(0x76)]=!0x1,this[_0x30588b(0xb4)](),_0xf52efc[_0x30588b(0x9b)]):_0xf52efc[_0x30588b(0x89)])),this[_0x30588b(0x99)]['on'](_0x30588b(0x7a),(_0x1d43eb,_0x10fb74)=>{const _0xf4b2a7=_0x30588b;if(_0xf4b2a7(0x84)!==_0x10fb74[_0xf4b2a7(0xa2)])throw console[_0xf4b2a7(0x7a)](_0x10fb74),new _0x270d7d(_0xf4b2a7(0xa3),null,{'originalError':_0x10fb74});_0x1c606f[_0xf4b2a7(0x7e)](_0xf4b2a7(0x7b),{'title':_0xf4b2a7(0x8f),'namespace':_0xf4b2a7(0x8e)});}),!_0x45c017['me'])return new Promise(_0x2a83e7=>_0x45c017['on'](_0x30588b(0xa1),_0x2a83e7));})[_0xd01468(0x8a)](_0x2937d5=>{const _0x322f82=_0xd01468;throw console[_0x322f82(0x7a)](_0x2937d5),new _0x270d7d(_0x322f82(0xa3),null,{'originalError':_0x2937d5});});}[_0x45b7c1(0xa8)](_0x182770){const _0x14998f=_0x45b7c1;if(_0x14998f(0xb5)!=typeof _0x182770[_0x14998f(0x92)])throw new _0x270d7d(_0x14998f(0x90),this);if(this[_0x14998f(0xb6)](_0x182770))throw new _0x270d7d(_0x14998f(0x97),this,{'name':_0x182770[_0x14998f(0x77)][_0x14998f(0x73)]});this[_0x14998f(0x88)][_0x14998f(0xaa)](_0x182770);}[_0x45b7c1(0x9c)](_0x2f8a6b){const _0x415b07=_0x45b7c1;this[_0x415b07(0x88)][_0x415b07(0xa9)](_0x2f8a6b);}[_0x45b7c1(0xb6)](_0x13e411){const _0x540eba=_0x45b7c1;return this[_0x540eba(0x88)][_0x540eba(0xa6)](_0x13e411);}[_0x45b7c1(0xb4)](){const _0x3b38a4=_0x45b7c1;return this[_0x3b38a4(0x99)][_0x3b38a4(0x92)]()[_0x3b38a4(0x79)](()=>Promise[_0x3b38a4(0xa4)](Array[_0x3b38a4(0xad)](this[_0x3b38a4(0x88)],_0x4c8d66=>_0x4c8d66[_0x3b38a4(0x92)]())))[_0x3b38a4(0x79)](()=>this[_0x3b38a4(0x95)]=_0xf52efc[_0x3b38a4(0x89)])[_0x3b38a4(0x8a)](_0x4cef5a=>{const _0x1d2678=_0x3b38a4;throw console[_0x1d2678(0x7a)](_0x4cef5a),new _0x270d7d(_0x1d2678(0xb8),this[_0x1d2678(0x82)]);});}[_0x45b7c1(0x9f)](){const _0x5c412c=_0x45b7c1;this[_0x5c412c(0x99)]&&this[_0x5c412c(0x99)][_0x5c412c(0xb1)](),this[_0x5c412c(0x95)]=_0xf52efc[_0x5c412c(0x7c)],this[_0x5c412c(0x83)][_0x5c412c(0x91)](),super[_0x5c412c(0x9f)]();}}c[_0x45b7c1(0x7d)]=_0x131008,c[_0x45b7c1(0x9a)]=0x3e8;export default c;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x39f6=['RealTimeCollaborativeEditing','requires','pluginName'];(function(_0x57aff6,_0x39f690){var _0x4e1952=function(_0x46acc9){while(--_0x46acc9){_0x57aff6['push'](_0x57aff6['shift']());}};_0x4e1952(++_0x39f690);}(_0x39f6,0x1d4));var _0x4e19=function(_0x57aff6,_0x39f690){_0x57aff6=_0x57aff6-0x0;var _0x4e1952=_0x39f6[_0x57aff6];return _0x4e1952;};import{Plugin as _0x2e2374}from'ckeditor5/src/core.js';import _0x5a10e8 from'./realtimecollaborativeediting/realtimecollaborationclient.js';export default class n extends _0x2e2374{static get[_0x4e19('0x1')](){return[_0x5a10e8];}static get[_0x4e19('0x2')](){return _0x4e19('0x0');}}
23
+ function _0x4065(){var _0x255018=['8jePUay','RealTimeCollaborativeEditing','4aotwVN','pluginName','172MEVoWI','520FbvKQL','requires','19083rPUuaB','662430BQfvvH','25047nZiJfU','700581BnSXoO','12RVeqAD','3568191JygrnU','132644AxcMkx','1435278neVBrs'];_0x4065=function(){return _0x255018;};return _0x4065();}function _0x24d8(_0xf9ad42,_0x30940e){var _0x406581=_0x4065();return _0x24d8=function(_0x24d8b5,_0x4a4b1e){_0x24d8b5=_0x24d8b5-0x1a9;var _0x2a0ca8=_0x406581[_0x24d8b5];return _0x2a0ca8;},_0x24d8(_0xf9ad42,_0x30940e);}var _0x44d0b8=_0x24d8;(function(_0x3f2cef,_0x36737a){var _0x2007f5=_0x24d8,_0x96b662=_0x3f2cef();while(!![]){try{var _0x58cc86=-parseInt(_0x2007f5(0x1b5))/0x1*(-parseInt(_0x2007f5(0x1b1))/0x2)+-parseInt(_0x2007f5(0x1ab))/0x3*(-parseInt(_0x2007f5(0x1b7))/0x4)+-parseInt(_0x2007f5(0x1ac))/0x5+parseInt(_0x2007f5(0x1b2))/0x6+parseInt(_0x2007f5(0x1ae))/0x7*(-parseInt(_0x2007f5(0x1b3))/0x8)+parseInt(_0x2007f5(0x1ad))/0x9*(parseInt(_0x2007f5(0x1a9))/0xa)+parseInt(_0x2007f5(0x1b0))/0xb*(-parseInt(_0x2007f5(0x1af))/0xc);if(_0x58cc86===_0x36737a)break;else _0x96b662['push'](_0x96b662['shift']());}catch(_0x58c90){_0x96b662['push'](_0x96b662['shift']());}}}(_0x4065,0x594de));import{Plugin as _0x5d686b}from'ckeditor5/src/core.js';import _0x219285 from'./realtimecollaborativeediting/realtimecollaborationclient.js';export default class n extends _0x5d686b{static get[_0x44d0b8(0x1aa)](){return[_0x219285];}static get[_0x44d0b8(0x1b6)](){var _0xf07aca=_0x44d0b8;return _0xf07aca(0x1b4);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59c9=['connection','_revisionTracker','state','authors','change:_isConnected','off','get','requires','max','RevisionTracker','_update','listenTo','cloud-services-internal-error:\x20Not\x20connected.','map','creatorId','_revisionHistoryService','_waitForServiceReady','getUser','remove','_createCurrentRevision','adapter','addRevisionData','isConnected','_fetchMissingUsers','getRevision','bind','revisionsUpdated','repository','getOperations','fromVersion','currentRevision','_getLatestVersionFromServerOperations','connect','marker','isBundleUploaded','sessionId','code','length','has','serverHistory','type','reInit','plugins','keys','RevisionHistoryService','startsWith','add','once','init','_handleRevisionsUpdate','destroy','config','change:_isPendingUpdate','sendBufferedUpdates','from','buildRevisionData','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_preventResendingRevisionData','diffData','collaboration.channelId','_lastRequestId','message','toVersion','_bufferUpdate','400','updateRevisions','reverse','baseVersion','_revisions','cloudServices.bundleVersion','_revisionDataBuilder','then','_bufferedUpdates','reconnect','cloud-services-internal-error:\x20Request\x20timeout.','CONNECTED','_startingVersion','affectsData','setRevisionData','catch','_fixRevision','_getLatestVersion','_offset','_isConnected','getMany','createdAt','editor','authorsIds','data','_oldOffset'];(function(_0x1a8978,_0x59c99a){const _0x57b9d2=function(_0x462efb){while(--_0x462efb){_0x1a8978['push'](_0x1a8978['shift']());}};_0x57b9d2(++_0x59c99a);}(_0x59c9,0xd3));const _0x57b9=function(_0x1a8978,_0x59c99a){_0x1a8978=_0x1a8978-0x0;let _0x57b9d2=_0x59c9[_0x1a8978];return _0x57b9d2;};import{Plugin as _0x773748}from'ckeditor5/src/core.js';import{version as _0x49d29c}from'ckeditor5/src/utils.js';import{Users as _0x2aeee1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3090fe from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x562384 from'../realtimecollaborativeediting/websocketgateway.js';import _0x25ed7d from'../realtimecollaborativeediting/sessions.js';import{User as _0x539cc0}from'@ckeditor/ckeditor-cloud-services-collaboration';import{RevisionHistoryService as _0x3c8916,EditorService as _0x2f85a7,WEB_SOCKET_GATEWAY_STATES as _0x52dbb4}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class v extends _0x773748{static get[_0x57b9('0x42')](){return[_0x562384,_0x3090fe,_0x57b9('0x44'),_0x25ed7d,_0x2aeee1];}constructor(_0x35c9d7){super(_0x35c9d7);const _0x389826=this[_0x57b9('0x37')][_0x57b9('0x14')][_0x57b9('0x41')](_0x57b9('0x1c'));this['_lastRequestId']=null,this[_0x57b9('0x3c')]=this['editor'][_0x57b9('0xb')][_0x57b9('0x41')]('RevisionTracker'),this[_0x57b9('0x4a')]=new v[(_0x57b9('0xd'))](_0x389826);}async[_0x57b9('0x11')](){const _0x35ac4f=this['editor'][_0x57b9('0xb')][_0x57b9('0x41')](_0x3090fe),_0x2149d6=_0x35ac4f[_0x57b9('0x8')],_0x29952c=this['editor'][_0x57b9('0xb')]['get'](_0x562384);this['_revisionTracker']['setSource']({'history':_0x2149d6,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x35ac4f['sessionId']});const _0x10ec1c=this[_0x57b9('0x37')][_0x57b9('0x14')][_0x57b9('0x41')](_0x57b9('0x26'))||_0x49d29c,_0x2ec990=await _0x2f85a7[_0x57b9('0x3')](_0x29952c[_0x57b9('0x3b')],_0x10ec1c);this[_0x57b9('0x3c')][_0x57b9('0x4f')]={'getRevision':async({revisionId:_0x8e5408})=>(await this[_0x57b9('0x4b')](),await this[_0x57b9('0x4a')][_0x57b9('0x53')](_0x8e5408)),'updateRevisions':async _0x518e18=>{await this[_0x57b9('0x4b')]();const _0xff67b=this['_revisionTracker'][_0x57b9('0x59')];if(_0x2ec990&&0x1===_0x518e18[_0x57b9('0x6')]&&_0x518e18[0x0]['id']===_0xff67b['id'])return _0x518e18;for(const _0x4bf3f0 of _0x518e18)_0x4bf3f0['id']===_0xff67b['id']&&(_0x4bf3f0['isEmptyCurrent']=_0x4bf3f0[_0x57b9('0x58')]===_0x4bf3f0[_0x57b9('0x1f')]);return this['_revisionHistoryService'][_0x57b9('0x22')](_0x518e18,this[_0x57b9('0x1d')])[_0x57b9('0x28')](_0x3af3c1=>(this[_0x57b9('0x1d')]=_0x3af3c1,_0x518e18))[_0x57b9('0x30')](_0x19307f=>{if(st(_0x19307f)||_0x57b9('0x21')===_0x19307f[_0x57b9('0x5')]&&void 0x0!==_0x19307f[_0x57b9('0x39')]['wrongRequestId']){for(const _0x372202 of _0x518e18){!this[_0x57b9('0x3c')][_0x57b9('0x56')]['getRevision'](_0x372202['id'])||this[_0x57b9('0x3c')][_0x57b9('0x20')](_0x372202['id'],_0x372202,!0x1);}if(st(_0x19307f))throw _0x19307f;return _0x518e18;}throw _0x19307f;});}},this[_0x57b9('0x46')](this['_revisionHistoryService'],_0x57b9('0x55'),(_0x1d7b97,{revisionsData:_0x1055b3,requestId:_0x3bc5b5})=>{Math[_0x57b9('0x43')](..._0x1055b3['map'](_0x24a7fc=>_0x24a7fc[_0x57b9('0x1f')]))>this[_0x57b9('0x0')]()-0x1?this['_getLatestVersion']()[_0x57b9('0x28')](()=>{this[_0x57b9('0x12')](_0x1055b3,_0x3bc5b5);}):this[_0x57b9('0x12')](_0x1055b3,_0x3bc5b5);});const {revisions:_0x358a25,requestId:_0xe5a412}=await this[_0x57b9('0x4a')][_0x57b9('0x1')](_0x29952c[_0x57b9('0x3b')]);_0x29952c['addToReconnectionStack'](this),this['_lastRequestId']=_0xe5a412,await this[_0x57b9('0x52')](_0x358a25);for(const _0x111520 of _0x358a25)this[_0x57b9('0x3c')][_0x57b9('0x50')](_0x111520);this[_0x57b9('0x46')](_0x35ac4f,'change:_isConnected',(_0x27ec50,_0x10c3d4,_0x29ef01)=>{_0x29ef01&&(this[_0x57b9('0x3a')]=_0x35ac4f[_0x57b9('0x33')],_0x27ec50[_0x57b9('0x40')]());}),this[_0x57b9('0x3c')][_0x57b9('0x54')]('isEnabled')['to'](_0x29952c,_0x57b9('0x3d'),_0x225d3e=>_0x225d3e===_0x52dbb4[_0x57b9('0x2c')]);}async[_0x57b9('0x2a')](){const _0x42348f=this[_0x57b9('0x37')][_0x57b9('0xb')]['get'](_0x562384),_0x22ef2e=this[_0x57b9('0x37')][_0x57b9('0xb')][_0x57b9('0x41')](_0x3090fe),_0x30561a=async()=>{const _0x453275=this[_0x57b9('0x3c')][_0x57b9('0x59')],_0x4dccc5=_0x453275['id'],_0x1af4fa=_0x4dccc5!==_0x22ef2e[_0x57b9('0x4')];if(_0x1af4fa){const _0x124bdd=_0x22ef2e[_0x57b9('0x33')]-this[_0x57b9('0x3a')],_0x1d3907=this[_0x57b9('0x0')]();this['_revisionTracker'][_0x57b9('0x27')][_0x57b9('0xa')]();if(_0x453275[_0x57b9('0x1f')]+_0x124bdd!==_0x1d3907){const _0x473c4c=_0x453275['fromVersion']+_0x124bdd,_0x53de59=this['editor']['plugins'][_0x57b9('0x41')](_0x2aeee1),_0x58d702=this[_0x57b9('0x3c')]['buildRevisionData']({'revision':_0x453275,'from':_0x473c4c,'to':_0x1d3907});_0x58d702['id']=_0x453275['id'];const _0x13dde6=_0x58d702[_0x57b9('0x38')][_0x57b9('0x48')](_0x89b6f7=>_0x53de59['getUser'](_0x89b6f7));_0x453275['_update']({..._0x58d702,'authors':_0x13dde6},!0x0),this[_0x57b9('0x3c')][_0x57b9('0x20')](_0x453275['id'],_0x58d702,!0x0);}this[_0x57b9('0x3c')][_0x57b9('0x2d')]=_0x1d3907,(_0x453275[_0x57b9('0x1f')]===_0x453275['fromVersion']&&!this[_0x57b9('0x3c')][_0x57b9('0x29')][_0x57b9('0x7')](_0x4dccc5)&&this[_0x57b9('0x3c')][_0x57b9('0x56')][_0x57b9('0x25')][_0x57b9('0x4d')](_0x4dccc5),this[_0x57b9('0x3c')][_0x57b9('0x4e')](_0x1d3907));}const {revisions:_0x5ab688,requestId:_0x18cc0c}=await this[_0x57b9('0x4a')]['reconnect'](_0x42348f[_0x57b9('0x3b')],this[_0x57b9('0x1d')]);_0x1af4fa&&_0x5ab688[_0x57b9('0x6')]>0x0?_0x22ef2e['_handleReconnectionError']():(await this[_0x57b9('0x52')](_0x5ab688),this[_0x57b9('0x12')](_0x5ab688,_0x18cc0c),this[_0x57b9('0x3c')][_0x57b9('0x16')]());};return _0x22ef2e[_0x57b9('0x34')]?_0x30561a():new Promise((_0x10630a,_0x4f2ec6)=>{_0x22ef2e['once'](_0x57b9('0x3f'),()=>{_0x30561a()[_0x57b9('0x28')](_0x10630a)[_0x57b9('0x30')](_0x4f2ec6);});});}[_0x57b9('0x13')](){super[_0x57b9('0x13')]();}async[_0x57b9('0x4b')](){this[_0x57b9('0x4a')][_0x57b9('0x51')]||await new Promise(_0x2c18c5=>{this[_0x57b9('0x46')](this['_revisionHistoryService'],'connected',_0x5b68b4=>{_0x5b68b4['off'](),_0x2c18c5();});});}['_getLatestVersionFromServerOperations'](){const _0x42b5e7=this['editor'][_0x57b9('0xb')]['get'](_0x3090fe)['serverHistory'][_0x57b9('0x57')]()[_0x57b9('0x23')]();for(const _0x4e30f2 of _0x42b5e7)if(_0x57b9('0x2')!==_0x4e30f2[_0x57b9('0x9')]||_0x4e30f2[_0x57b9('0x2e')])return _0x4e30f2[_0x57b9('0x24')]+0x1;}[_0x57b9('0x32')](){const _0x3dc485=this[_0x57b9('0x37')][_0x57b9('0xb')][_0x57b9('0x41')](_0x3090fe);return new Promise(_0x4b73aa=>{_0x3dc485['_isPendingUpdate']?_0x3dc485[_0x57b9('0x10')](_0x57b9('0x15'),()=>{_0x4b73aa(this[_0x57b9('0x0')]());}):_0x4b73aa(this[_0x57b9('0x0')]());});}[_0x57b9('0x12')](_0x2c04a7,_0x22b777){const _0x4f9f3a=this[_0x57b9('0x3c')]['repository'];this['_lastRequestId']=_0x22b777;for(const _0x1cad03 of _0x2c04a7){const _0x2b3c6=_0x4f9f3a[_0x57b9('0x53')](_0x1cad03['id']);if(_0x2b3c6){if((_0x1cad03[_0x57b9('0x58')]||_0x1cad03[_0x57b9('0x1f')])&&(_0x1cad03[_0x57b9('0x1b')]=null),_0x2b3c6===this['_revisionTracker'][_0x57b9('0x59')]){const _0x296f8d=Math[_0x57b9('0x43')](_0x2b3c6[_0x57b9('0x1f')],_0x1cad03[_0x57b9('0x1f')]),_0x1b6448=Math['max'](_0x2b3c6['fromVersion'],_0x1cad03['fromVersion']);let _0x41dad7;_0x2b3c6['toVersion']===_0x1cad03[_0x57b9('0x1f')]&&_0x2b3c6[_0x57b9('0x58')]===_0x1cad03['fromVersion']?(_0x41dad7=!0x0,this[_0x57b9('0x1a')](_0x1cad03)):_0x1cad03[_0x57b9('0x1f')]===_0x296f8d&&_0x1cad03[_0x57b9('0x58')]===_0x1b6448?_0x41dad7=!0x1:(_0x2b3c6[_0x57b9('0x1f')]===_0x296f8d&&_0x2b3c6[_0x57b9('0x58')]===_0x1b6448||this[_0x57b9('0x31')]({'revision':_0x2b3c6,'from':_0x1b6448,'to':_0x296f8d}),_0x41dad7=!0x0),_0x41dad7&&(delete _0x1cad03[_0x57b9('0x58')],delete _0x1cad03['toVersion'],delete _0x1cad03[_0x57b9('0x1b')],delete _0x1cad03[_0x57b9('0x36')],delete _0x1cad03['authorsIds']);}this['_revisionTracker'][_0x57b9('0x2f')](_0x1cad03),this[_0x57b9('0x1a')](_0x1cad03);}else this[_0x57b9('0x3c')][_0x57b9('0x50')](_0x1cad03);}const _0x15c9c7=_0x4f9f3a['getRevisions']();_0x15c9c7[_0x57b9('0x23')]();for(let _0x18b472=0x0;_0x18b472<_0x15c9c7['length']-0x1;_0x18b472++){const _0x1b8463=_0x15c9c7[_0x18b472],_0x25efd8=_0x15c9c7[_0x18b472+0x1];if(_0x1b8463['fromVersion']<_0x25efd8[_0x57b9('0x1f')]){const _0xafe1e=_0x25efd8['toVersion'],_0x4351a7=Math[_0x57b9('0x43')](_0xafe1e,_0x1b8463['toVersion']);this[_0x57b9('0x31')]({'revision':_0x1b8463,'from':_0xafe1e,'to':_0x4351a7});}}}[_0x57b9('0x31')]({revision:_0x550b2c,from:_0x24068f,to:_0x2abfd7}={}){const _0x40f28e=this[_0x57b9('0x37')][_0x57b9('0xb')][_0x57b9('0x41')](_0x2aeee1),_0x2b901c=this[_0x57b9('0x3c')][_0x57b9('0x18')]({'revision':_0x550b2c,'from':_0x24068f,'to':_0x2abfd7});_0x2b901c[_0x57b9('0x3e')]=_0x2b901c[_0x57b9('0x38')][_0x57b9('0x48')](_0x466a11=>_0x40f28e[_0x57b9('0x4c')](_0x466a11)),_0x550b2c[_0x57b9('0x45')](_0x2b901c);}[_0x57b9('0x1a')](_0x1d00b8){const _0x17cea1={};_0x17cea1['id']=_0x1d00b8['id'];for(const _0x2533d9 of Object[_0x57b9('0xc')](_0x1d00b8))'id'!==_0x2533d9&&(_0x17cea1[_0x2533d9]=void 0x0);this[_0x57b9('0x3c')][_0x57b9('0x20')](_0x17cea1['id'],_0x17cea1,!0x0);}async[_0x57b9('0x52')](_0x5af32c){const _0x3922f5=this['editor'][_0x57b9('0xb')][_0x57b9('0x41')](_0x2aeee1),{connection:_0x1f98c2}=this['editor']['plugins'][_0x57b9('0x41')](_0x562384),_0x3fca46=new Set();for(const _0x13dc3c of _0x5af32c){for(const _0x2f72e3 of _0x13dc3c['authorsIds'])_0x2dfc4d(_0x2f72e3);_0x13dc3c[_0x57b9('0x49')]&&_0x2dfc4d(_0x13dc3c['creatorId']);}if(0x0===_0x3fca46['size'])return;const _0x205869=await _0x539cc0[_0x57b9('0x35')](_0x1f98c2,Array[_0x57b9('0x17')](_0x3fca46));for(const _0x3087be of _0x205869)_0x3922f5[_0x57b9('0x4c')](_0x3087be['id'])||_0x3922f5['addUser'](_0x3087be);function _0x2dfc4d(_0x25c019){_0x3922f5[_0x57b9('0x4c')](_0x25c019)||_0x3fca46[_0x57b9('0xf')](_0x25c019);}}}v[_0x57b9('0xd')]=_0x3c8916;export default v;function st(_0x55f07c){return _0x55f07c[_0x57b9('0x1e')]['startsWith'](_0x57b9('0x19'))||_0x55f07c['message'][_0x57b9('0xe')](_0x57b9('0x47'))||_0x55f07c['message'][_0x57b9('0xe')](_0x57b9('0x2b'));}
23
+ const _0x543568=_0x35de;(function(_0x20cb9d,_0x343903){const _0x3f0392=_0x35de,_0x4ead4b=_0x20cb9d();while(!![]){try{const _0x25a9ac=-parseInt(_0x3f0392(0x163))/0x1+parseInt(_0x3f0392(0x142))/0x2*(-parseInt(_0x3f0392(0x117))/0x3)+-parseInt(_0x3f0392(0x15f))/0x4*(-parseInt(_0x3f0392(0x16d))/0x5)+parseInt(_0x3f0392(0x110))/0x6*(parseInt(_0x3f0392(0x167))/0x7)+-parseInt(_0x3f0392(0x172))/0x8*(parseInt(_0x3f0392(0x13c))/0x9)+-parseInt(_0x3f0392(0x14d))/0xa*(parseInt(_0x3f0392(0x129))/0xb)+parseInt(_0x3f0392(0x17a))/0xc;if(_0x25a9ac===_0x343903)break;else _0x4ead4b['push'](_0x4ead4b['shift']());}catch(_0x3383e6){_0x4ead4b['push'](_0x4ead4b['shift']());}}}(_0x8d76,0x8d4e4));import{Plugin as _0x358fa3}from'ckeditor5/src/core.js';import{version as _0x25cec0}from'ckeditor5/src/utils.js';import{Users as _0x429f0e}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x24050f from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x5aa4d3 from'../realtimecollaborativeediting/websocketgateway.js';import _0x142b4d from'../realtimecollaborativeediting/sessions.js';function _0x8d76(){const _0xe0320e=['collaboration.channelId','6ZBfred','remove','get','destroy','CONNECTED','change:_isPendingUpdate','reconnect','currentRevision','buildRevisionData','change:_isConnected','400','marker','getOperations','connect','RevisionTracker','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','connected','startsWith','709841hamGWV','code','_revisionTracker','toVersion','config','addRevisionData','wrongRequestId','from','catch','_fetchMissingUsers','isEnabled','_getLatestVersionFromServerOperations','adapter','_offset','add','connection','affectsData','_update','has','13401CzKlgf','cloud-services-internal-error:\x20Not\x20connected.','isEmptyCurrent','data','listenTo','map','954734WtTuAj','_revisionHistoryService','_oldOffset','creatorId','_isPendingUpdate','reverse','editor','sessionId','_fixRevision','_handleRevisionsUpdate','updateRevisions','20EuENyz','max','setRevisionData','RevisionHistoryService','createdAt','addUser','isConnected','plugins','_lastRequestId','init','_revisionDataBuilder','state','fromVersion','reInit','_createCurrentRevision','_startingVersion','once','off','12tiLoMK','_waitForServiceReady','requires','type','1107844GNYdvo','getUser','message','isBundleUploaded','2109485CRyhpX','bind','_getLatestVersion','setSource','addToReconnectionStack','size','15010pVwAzp','then','_bufferedUpdates','length','cloudServices.bundleVersion','5368clKpUs','getMany','keys','authors','getRevisions','_isConnected','_handleReconnectionError','sendBufferedUpdates','34277712EcNhhJ','_revisions','authorsIds','serverHistory','getRevision','_preventResendingRevisionData','baseVersion','18fmPqQk','diffData','revisionsUpdated','repository','cloud-services-internal-error:\x20Request\x20timeout.','_bufferUpdate'];_0x8d76=function(){return _0xe0320e;};return _0x8d76();}import{User as _0x55cd8a}from'@ckeditor/ckeditor-cloud-services-collaboration';import{RevisionHistoryService as _0x3496fb,EditorService as _0x347230,WEB_SOCKET_GATEWAY_STATES as _0x13fb1c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class v extends _0x358fa3{static get[_0x543568(0x161)](){const _0x42c0ef=_0x543568;return[_0x5aa4d3,_0x24050f,_0x42c0ef(0x125),_0x142b4d,_0x429f0e];}constructor(_0x1d29bc){const _0x4133c5=_0x543568;super(_0x1d29bc);const _0x1ee7a4=this[_0x4133c5(0x148)][_0x4133c5(0x12d)][_0x4133c5(0x119)](_0x4133c5(0x116));this[_0x4133c5(0x155)]=null,this[_0x4133c5(0x12b)]=this[_0x4133c5(0x148)][_0x4133c5(0x154)][_0x4133c5(0x119)](_0x4133c5(0x125)),this[_0x4133c5(0x143)]=new v[(_0x4133c5(0x150))](_0x1ee7a4);}async[_0x543568(0x156)](){const _0x2b0111=_0x543568,_0x3ec2ee=this[_0x2b0111(0x148)][_0x2b0111(0x154)][_0x2b0111(0x119)](_0x24050f),_0x18e77c=_0x3ec2ee[_0x2b0111(0x10c)],_0x18fde8=this[_0x2b0111(0x148)][_0x2b0111(0x154)][_0x2b0111(0x119)](_0x5aa4d3);this[_0x2b0111(0x12b)][_0x2b0111(0x16a)]({'history':_0x18e77c,'getLatestVersion':()=>this[_0x2b0111(0x169)](),'getCurrentRevisionId':()=>_0x3ec2ee[_0x2b0111(0x149)]});const _0x4fca8c=this[_0x2b0111(0x148)][_0x2b0111(0x12d)][_0x2b0111(0x119)](_0x2b0111(0x171))||_0x25cec0,_0x5f24d3=await _0x347230[_0x2b0111(0x166)](_0x18fde8[_0x2b0111(0x138)],_0x4fca8c);this[_0x2b0111(0x12b)][_0x2b0111(0x135)]={'getRevision':async({revisionId:_0x283918})=>(await this[_0x2b0111(0x160)](),await this[_0x2b0111(0x143)][_0x2b0111(0x10d)](_0x283918)),'updateRevisions':async _0x36faa7=>{const _0x5ae956=_0x2b0111;await this[_0x5ae956(0x160)]();const _0x26a261=this[_0x5ae956(0x12b)][_0x5ae956(0x11e)];if(_0x5f24d3&&0x1===_0x36faa7[_0x5ae956(0x170)]&&_0x36faa7[0x0]['id']===_0x26a261['id'])return _0x36faa7;for(const _0x2601d5 of _0x36faa7)_0x2601d5['id']===_0x26a261['id']&&(_0x2601d5[_0x5ae956(0x13e)]=_0x2601d5[_0x5ae956(0x159)]===_0x2601d5[_0x5ae956(0x12c)]);return this[_0x5ae956(0x143)][_0x5ae956(0x14c)](_0x36faa7,this[_0x5ae956(0x155)])[_0x5ae956(0x16e)](_0x4ffe7d=>(this[_0x5ae956(0x155)]=_0x4ffe7d,_0x36faa7))[_0x5ae956(0x131)](_0x1dea4f=>{const _0x16230e=_0x5ae956;if(st(_0x1dea4f)||_0x16230e(0x121)===_0x1dea4f[_0x16230e(0x12a)]&&void 0x0!==_0x1dea4f[_0x16230e(0x13f)][_0x16230e(0x12f)]){for(const _0x1450d6 of _0x36faa7){!this[_0x16230e(0x12b)][_0x16230e(0x113)][_0x16230e(0x10d)](_0x1450d6['id'])||this[_0x16230e(0x12b)][_0x16230e(0x115)](_0x1450d6['id'],_0x1450d6,!0x1);}if(st(_0x1dea4f))throw _0x1dea4f;return _0x36faa7;}throw _0x1dea4f;});}},this[_0x2b0111(0x140)](this[_0x2b0111(0x143)],_0x2b0111(0x112),(_0x45de45,{revisionsData:_0x4cc9fe,requestId:_0x5c8a9a})=>{const _0x26d22a=_0x2b0111;Math[_0x26d22a(0x14e)](..._0x4cc9fe[_0x26d22a(0x141)](_0x7df6e6=>_0x7df6e6[_0x26d22a(0x12c)]))>this[_0x26d22a(0x134)]()-0x1?this[_0x26d22a(0x169)]()[_0x26d22a(0x16e)](()=>{const _0x4bc4e0=_0x26d22a;this[_0x4bc4e0(0x14b)](_0x4cc9fe,_0x5c8a9a);}):this[_0x26d22a(0x14b)](_0x4cc9fe,_0x5c8a9a);});const {revisions:_0x1d1fed,requestId:_0xd28a9f}=await this[_0x2b0111(0x143)][_0x2b0111(0x124)](_0x18fde8[_0x2b0111(0x138)]);_0x18fde8[_0x2b0111(0x16b)](this),this[_0x2b0111(0x155)]=_0xd28a9f,await this[_0x2b0111(0x132)](_0x1d1fed);for(const _0x1684cd of _0x1d1fed)this[_0x2b0111(0x12b)][_0x2b0111(0x12e)](_0x1684cd);this[_0x2b0111(0x140)](_0x3ec2ee,_0x2b0111(0x120),(_0x23eed4,_0x8dd1bf,_0x27f550)=>{const _0x7c9c71=_0x2b0111;_0x27f550&&(this[_0x7c9c71(0x144)]=_0x3ec2ee[_0x7c9c71(0x136)],_0x23eed4[_0x7c9c71(0x15e)]());}),this[_0x2b0111(0x12b)][_0x2b0111(0x168)](_0x2b0111(0x133))['to'](_0x18fde8,_0x2b0111(0x158),_0x266f09=>_0x266f09===_0x13fb1c[_0x2b0111(0x11b)]);}async[_0x543568(0x11d)](){const _0x5088af=_0x543568,_0x580fc8=this[_0x5088af(0x148)][_0x5088af(0x154)][_0x5088af(0x119)](_0x5aa4d3),_0x5804a3=this[_0x5088af(0x148)][_0x5088af(0x154)][_0x5088af(0x119)](_0x24050f),_0x27cfa0=async()=>{const _0x26d8b0=_0x5088af,_0x4f6f29=this[_0x26d8b0(0x12b)][_0x26d8b0(0x11e)],_0x7fba97=_0x4f6f29['id'],_0x3d364c=_0x7fba97!==_0x5804a3[_0x26d8b0(0x149)];if(_0x3d364c){const _0x4d3442=_0x5804a3[_0x26d8b0(0x136)]-this[_0x26d8b0(0x144)],_0x33c4f9=this[_0x26d8b0(0x134)]();this[_0x26d8b0(0x12b)][_0x26d8b0(0x157)][_0x26d8b0(0x15a)]();if(_0x4f6f29[_0x26d8b0(0x12c)]+_0x4d3442!==_0x33c4f9){const _0x982e3b=_0x4f6f29[_0x26d8b0(0x159)]+_0x4d3442,_0x5e25ec=this[_0x26d8b0(0x148)][_0x26d8b0(0x154)][_0x26d8b0(0x119)](_0x429f0e),_0x5459de=this[_0x26d8b0(0x12b)][_0x26d8b0(0x11f)]({'revision':_0x4f6f29,'from':_0x982e3b,'to':_0x33c4f9});_0x5459de['id']=_0x4f6f29['id'];const _0x920202=_0x5459de[_0x26d8b0(0x10b)][_0x26d8b0(0x141)](_0xe0f09b=>_0x5e25ec[_0x26d8b0(0x164)](_0xe0f09b));_0x4f6f29[_0x26d8b0(0x13a)]({..._0x5459de,'authors':_0x920202},!0x0),this[_0x26d8b0(0x12b)][_0x26d8b0(0x115)](_0x4f6f29['id'],_0x5459de,!0x0);}this[_0x26d8b0(0x12b)][_0x26d8b0(0x15c)]=_0x33c4f9,(_0x4f6f29[_0x26d8b0(0x12c)]===_0x4f6f29[_0x26d8b0(0x159)]&&!this[_0x26d8b0(0x12b)][_0x26d8b0(0x16f)][_0x26d8b0(0x13b)](_0x7fba97)&&this[_0x26d8b0(0x12b)][_0x26d8b0(0x113)][_0x26d8b0(0x10a)][_0x26d8b0(0x118)](_0x7fba97),this[_0x26d8b0(0x12b)][_0x26d8b0(0x15b)](_0x33c4f9));}const {revisions:_0x42d9b4,requestId:_0xe99253}=await this[_0x26d8b0(0x143)][_0x26d8b0(0x11d)](_0x580fc8[_0x26d8b0(0x138)],this[_0x26d8b0(0x155)]);_0x3d364c&&_0x42d9b4[_0x26d8b0(0x170)]>0x0?_0x5804a3[_0x26d8b0(0x178)]():(await this[_0x26d8b0(0x132)](_0x42d9b4),this[_0x26d8b0(0x14b)](_0x42d9b4,_0xe99253),this[_0x26d8b0(0x12b)][_0x26d8b0(0x179)]());};return _0x5804a3[_0x5088af(0x177)]?_0x27cfa0():new Promise((_0x41be7d,_0x34ea92)=>{const _0x57f208=_0x5088af;_0x5804a3[_0x57f208(0x15d)](_0x57f208(0x120),()=>{const _0x427a50=_0x57f208;_0x27cfa0()[_0x427a50(0x16e)](_0x41be7d)[_0x427a50(0x131)](_0x34ea92);});});}[_0x543568(0x11a)](){const _0x17ddbb=_0x543568;super[_0x17ddbb(0x11a)]();}async[_0x543568(0x160)](){const _0x5316ec=_0x543568;this[_0x5316ec(0x143)][_0x5316ec(0x153)]||await new Promise(_0x401722=>{const _0x4986e0=_0x5316ec;this[_0x4986e0(0x140)](this[_0x4986e0(0x143)],_0x4986e0(0x127),_0x5f271e=>{const _0x9fdef0=_0x4986e0;_0x5f271e[_0x9fdef0(0x15e)](),_0x401722();});});}[_0x543568(0x134)](){const _0x5f1959=_0x543568,_0x166097=this[_0x5f1959(0x148)][_0x5f1959(0x154)][_0x5f1959(0x119)](_0x24050f)[_0x5f1959(0x10c)][_0x5f1959(0x123)]()[_0x5f1959(0x147)]();for(const _0x572d3d of _0x166097)if(_0x5f1959(0x122)!==_0x572d3d[_0x5f1959(0x162)]||_0x572d3d[_0x5f1959(0x139)])return _0x572d3d[_0x5f1959(0x10f)]+0x1;}[_0x543568(0x169)](){const _0x123c3a=_0x543568,_0x13ede3=this[_0x123c3a(0x148)][_0x123c3a(0x154)][_0x123c3a(0x119)](_0x24050f);return new Promise(_0x8c9c8d=>{const _0x41a1d2=_0x123c3a;_0x13ede3[_0x41a1d2(0x146)]?_0x13ede3[_0x41a1d2(0x15d)](_0x41a1d2(0x11c),()=>{const _0x2fa4b7=_0x41a1d2;_0x8c9c8d(this[_0x2fa4b7(0x134)]());}):_0x8c9c8d(this[_0x41a1d2(0x134)]());});}[_0x543568(0x14b)](_0x4db942,_0x2f03da){const _0x41a23c=_0x543568,_0x4485ef=this[_0x41a23c(0x12b)][_0x41a23c(0x113)];this[_0x41a23c(0x155)]=_0x2f03da;for(const _0x73b820 of _0x4db942){const _0x2ba11f=_0x4485ef[_0x41a23c(0x10d)](_0x73b820['id']);if(_0x2ba11f){if((_0x73b820[_0x41a23c(0x159)]||_0x73b820[_0x41a23c(0x12c)])&&(_0x73b820[_0x41a23c(0x111)]=null),_0x2ba11f===this[_0x41a23c(0x12b)][_0x41a23c(0x11e)]){const _0x3f2445=Math[_0x41a23c(0x14e)](_0x2ba11f[_0x41a23c(0x12c)],_0x73b820[_0x41a23c(0x12c)]),_0x10addf=Math[_0x41a23c(0x14e)](_0x2ba11f[_0x41a23c(0x159)],_0x73b820[_0x41a23c(0x159)]);let _0x58a2ba;_0x2ba11f[_0x41a23c(0x12c)]===_0x73b820[_0x41a23c(0x12c)]&&_0x2ba11f[_0x41a23c(0x159)]===_0x73b820[_0x41a23c(0x159)]?(_0x58a2ba=!0x0,this[_0x41a23c(0x10e)](_0x73b820)):_0x73b820[_0x41a23c(0x12c)]===_0x3f2445&&_0x73b820[_0x41a23c(0x159)]===_0x10addf?_0x58a2ba=!0x1:(_0x2ba11f[_0x41a23c(0x12c)]===_0x3f2445&&_0x2ba11f[_0x41a23c(0x159)]===_0x10addf||this[_0x41a23c(0x14a)]({'revision':_0x2ba11f,'from':_0x10addf,'to':_0x3f2445}),_0x58a2ba=!0x0),_0x58a2ba&&(delete _0x73b820[_0x41a23c(0x159)],delete _0x73b820[_0x41a23c(0x12c)],delete _0x73b820[_0x41a23c(0x111)],delete _0x73b820[_0x41a23c(0x151)],delete _0x73b820[_0x41a23c(0x10b)]);}this[_0x41a23c(0x12b)][_0x41a23c(0x14f)](_0x73b820),this[_0x41a23c(0x10e)](_0x73b820);}else this[_0x41a23c(0x12b)][_0x41a23c(0x12e)](_0x73b820);}const _0x1a9331=_0x4485ef[_0x41a23c(0x176)]();_0x1a9331[_0x41a23c(0x147)]();for(let _0x478cc6=0x0;_0x478cc6<_0x1a9331[_0x41a23c(0x170)]-0x1;_0x478cc6++){const _0x468e8e=_0x1a9331[_0x478cc6],_0x10d3ab=_0x1a9331[_0x478cc6+0x1];if(_0x468e8e[_0x41a23c(0x159)]<_0x10d3ab[_0x41a23c(0x12c)]){const _0x1583d7=_0x10d3ab[_0x41a23c(0x12c)],_0x5cab8f=Math[_0x41a23c(0x14e)](_0x1583d7,_0x468e8e[_0x41a23c(0x12c)]);this[_0x41a23c(0x14a)]({'revision':_0x468e8e,'from':_0x1583d7,'to':_0x5cab8f});}}}[_0x543568(0x14a)]({revision:_0x5660f9,from:_0x2fb60c,to:_0x214a81}={}){const _0x316bc2=_0x543568,_0x12dd0f=this[_0x316bc2(0x148)][_0x316bc2(0x154)][_0x316bc2(0x119)](_0x429f0e),_0x1c2285=this[_0x316bc2(0x12b)][_0x316bc2(0x11f)]({'revision':_0x5660f9,'from':_0x2fb60c,'to':_0x214a81});_0x1c2285[_0x316bc2(0x175)]=_0x1c2285[_0x316bc2(0x10b)][_0x316bc2(0x141)](_0x20ba2c=>_0x12dd0f[_0x316bc2(0x164)](_0x20ba2c)),_0x5660f9[_0x316bc2(0x13a)](_0x1c2285);}[_0x543568(0x10e)](_0xf5ae70){const _0x51a5c6=_0x543568,_0xa1a7d4={};_0xa1a7d4['id']=_0xf5ae70['id'];for(const _0x54fea8 of Object[_0x51a5c6(0x174)](_0xf5ae70))'id'!==_0x54fea8&&(_0xa1a7d4[_0x54fea8]=void 0x0);this[_0x51a5c6(0x12b)][_0x51a5c6(0x115)](_0xa1a7d4['id'],_0xa1a7d4,!0x0);}async[_0x543568(0x132)](_0x2ffc89){const _0x1fbbd3=_0x543568,_0x469812=this[_0x1fbbd3(0x148)][_0x1fbbd3(0x154)][_0x1fbbd3(0x119)](_0x429f0e),{connection:_0x4f502f}=this[_0x1fbbd3(0x148)][_0x1fbbd3(0x154)][_0x1fbbd3(0x119)](_0x5aa4d3),_0x2f82f3=new Set();for(const _0xdf2455 of _0x2ffc89){for(const _0x559e26 of _0xdf2455[_0x1fbbd3(0x10b)])_0x18d019(_0x559e26);_0xdf2455[_0x1fbbd3(0x145)]&&_0x18d019(_0xdf2455[_0x1fbbd3(0x145)]);}if(0x0===_0x2f82f3[_0x1fbbd3(0x16c)])return;const _0x2d9380=await _0x55cd8a[_0x1fbbd3(0x173)](_0x4f502f,Array[_0x1fbbd3(0x130)](_0x2f82f3));for(const _0x53998f of _0x2d9380)_0x469812[_0x1fbbd3(0x164)](_0x53998f['id'])||_0x469812[_0x1fbbd3(0x152)](_0x53998f);function _0x18d019(_0x3ab8cb){const _0x350455=_0x1fbbd3;_0x469812[_0x350455(0x164)](_0x3ab8cb)||_0x2f82f3[_0x350455(0x137)](_0x3ab8cb);}}}v[_0x543568(0x150)]=_0x3496fb;export default v;function _0x35de(_0x5cdaca,_0x530ce5){const _0x8d76ab=_0x8d76();return _0x35de=function(_0x35de1c,_0xa8f080){_0x35de1c=_0x35de1c-0x10a;let _0x5cc117=_0x8d76ab[_0x35de1c];return _0x5cc117;},_0x35de(_0x5cdaca,_0x530ce5);}function st(_0x30b17d){const _0x5c5edf=_0x543568;return _0x30b17d[_0x5c5edf(0x165)][_0x5c5edf(0x128)](_0x5c5edf(0x126))||_0x30b17d[_0x5c5edf(0x165)][_0x5c5edf(0x128)](_0x5c5edf(0x13d))||_0x30b17d[_0x5c5edf(0x165)][_0x5c5edf(0x128)](_0x5c5edf(0x114));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5ca9=['pluginName'];(function(_0x8b8a3e,_0x5ca9a9){var _0x34774f=function(_0x33d523){while(--_0x33d523){_0x8b8a3e['push'](_0x8b8a3e['shift']());}};_0x34774f(++_0x5ca9a9);}(_0x5ca9,0x88));var _0x3477=function(_0x8b8a3e,_0x5ca9a9){_0x8b8a3e=_0x8b8a3e-0x0;var _0x34774f=_0x5ca9[_0x8b8a3e];return _0x34774f;};import{Plugin as _0x2e2a45}from'ckeditor5/src/core.js';import _0x491c2a from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js';import _0x5e7e from'./realtimecollaborativeediting.js';export default class d extends _0x2e2a45{static get['requires'](){return['RevisionHistory',_0x491c2a,_0x5e7e];}static get[_0x3477('0x0')](){return'RealTimeCollaborativeRevisionHistory';}}
23
+ function _0x2c23(_0x183f0f,_0x53ea0f){var _0x58de9f=_0x58de();return _0x2c23=function(_0x2c2389,_0xf94e7a){_0x2c2389=_0x2c2389-0x1ed;var _0x39ba9e=_0x58de9f[_0x2c2389];return _0x39ba9e;},_0x2c23(_0x183f0f,_0x53ea0f);}var _0x5c26e6=_0x2c23;(function(_0x3c4197,_0x3d8918){var _0x35f9cf=_0x2c23,_0x28b438=_0x3c4197();while(!![]){try{var _0x2d5e5d=-parseInt(_0x35f9cf(0x1f6))/0x1+parseInt(_0x35f9cf(0x1f5))/0x2*(parseInt(_0x35f9cf(0x1f0))/0x3)+parseInt(_0x35f9cf(0x1f8))/0x4+parseInt(_0x35f9cf(0x1fb))/0x5*(-parseInt(_0x35f9cf(0x1f7))/0x6)+-parseInt(_0x35f9cf(0x1ee))/0x7*(-parseInt(_0x35f9cf(0x1ef))/0x8)+parseInt(_0x35f9cf(0x1f4))/0x9*(parseInt(_0x35f9cf(0x1f1))/0xa)+-parseInt(_0x35f9cf(0x1ed))/0xb;if(_0x2d5e5d===_0x3d8918)break;else _0x28b438['push'](_0x28b438['shift']());}catch(_0x2569b2){_0x28b438['push'](_0x28b438['shift']());}}}(_0x58de,0x6b867));function _0x58de(){var _0x1db52f=['867346vlPBDG','823963HKjJQb','722808rsRhJf','870880QIPXBW','RevisionHistory','pluginName','20EpBtyN','1610653YoadSJ','28qJWJeO','193208zlgRCj','6PyiQiR','7110110BRqwHU','requires','RealTimeCollaborativeRevisionHistory','9hSqCov'];_0x58de=function(){return _0x1db52f;};return _0x58de();}import{Plugin as _0x1a22fa}from'ckeditor5/src/core.js';import _0x3dc99d from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js';import _0x11afd9 from'./realtimecollaborativeediting.js';export default class d extends _0x1a22fa{static get[_0x5c26e6(0x1f2)](){var _0x1b8a5d=_0x5c26e6;return[_0x1b8a5d(0x1f9),_0x3dc99d,_0x11afd9];}static get[_0x5c26e6(0x1fa)](){var _0x23dcab=_0x5c26e6;return _0x23dcab(0x1f3);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cab=['adapter','find','init','data','listenTo','off','open','values','cloud-services-internal-error:\x20Not\x20connected.','then','getMany','addSuggestionData','isConnected','collaboration.channelId','reconnect','_saved','getUser','catch','requires','TrackChangesService','add','state','connection','cloud-services-internal-error:\x20Request\x20timeout.','_fetchMissingUsersForThreads','size','startsWith','update','get','set','hasSuggestion','editor','message','config','TrackChangesEditing','plugins','addToReconnectionStack','originalSuggestionId','_bufferedRequests','getSuggestion','from','connected','_trackChangesService','attributes','_waitForServiceReady'];(function(_0xe5a912,_0x5caba3){const _0x26e730=function(_0x51c6f7){while(--_0x51c6f7){_0xe5a912['push'](_0xe5a912['shift']());}};_0x26e730(++_0x5caba3);}(_0x5cab,0xa0));const _0x26e7=function(_0xe5a912,_0x5caba3){_0xe5a912=_0xe5a912-0x0;let _0x26e730=_0x5cab[_0xe5a912];return _0x26e730;};import{Plugin as _0x8ba03d}from'ckeditor5/src/core.js';import{TrackChangesService as _0x1524e1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{User as _0x2c31d7}from'@ckeditor/ckeditor-cloud-services-collaboration';import _0x43be1e from'../realtimecollaborativeediting/websocketgateway.js';import _0x344411 from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x3fe5cd}from'ckeditor5-collaboration/src/collaboration-core.js';export default class g extends _0x8ba03d{static get[_0x26e7('0x26')](){return[_0x344411,_0x26e7('0x9'),_0x43be1e];}constructor(_0x2e1072){super(_0x2e1072);const _0x1e7cca=this[_0x26e7('0x6')][_0x26e7('0x8')][_0x26e7('0x3')](_0x26e7('0x21'));this[_0x26e7('0xd')]=new Map(),this[_0x26e7('0x11')]=new g[(_0x26e7('0x27'))](_0x1e7cca);}[_0x26e7('0x16')](){const _0x5b4238=this[_0x26e7('0x6')][_0x26e7('0xa')][_0x26e7('0x3')](_0x43be1e),_0x47c09c=this[_0x26e7('0x6')][_0x26e7('0xa')]['get'](_0x26e7('0x9'));return _0x47c09c[_0x26e7('0x14')]={'getSuggestion':async _0x48587e=>{await this[_0x26e7('0x13')]();const _0xf13019=await this[_0x26e7('0x11')][_0x26e7('0x3')](_0x48587e)[_0x26e7('0x25')](B);return await this[_0x26e7('0x2c')]([_0xf13019]),_0xf13019;},'addSuggestion':async({id:_0x2850b1,type:_0x1bd151,data:_0x247070,originalSuggestionId:_0x5a46d5,attributes:_0x45b840})=>{await this['_waitForServiceReady']();const _0x20b3cd={'id':_0x2850b1,'type':_0x1bd151,'data':_0x247070,'originalSuggestionId':_0x5a46d5,'attributes':_0x45b840},_0x1f5f7a=await this[_0x26e7('0x11')][_0x26e7('0x28')](_0x2850b1,_0x1bd151,_0x247070,_0x5a46d5,_0x45b840)['catch'](_0x5561ce=>{if(st(_0x5561ce))return new Promise(_0xeb332c=>{this['_bufferedRequests'][_0x26e7('0x4')](_0x2850b1,{'resolve':_0xeb332c,'suggestionData':_0x20b3cd});});throw _0x5561ce;});return this[_0x26e7('0xd')]['delete'](_0x2850b1),_0x1f5f7a;},'updateSuggestion':async(_0x33a416,_0x26686d)=>{if(await this[_0x26e7('0x13')](),_0x26e7('0x1a')!==_0x26686d[_0x26e7('0x29')])return this[_0x26e7('0x11')][_0x26e7('0x2')](_0x33a416,_0x26686d)[_0x26e7('0x25')](B);}},this['listenTo'](this[_0x26e7('0x11')],'suggestionUpdated',(_0x29d31e,_0x330d45)=>{_0x47c09c[_0x26e7('0x5')](_0x330d45['id'])&&(_0x47c09c[_0x26e7('0xe')](_0x330d45['id'])[_0x26e7('0x12')]=_0x330d45[_0x26e7('0x12')]);}),this[_0x26e7('0x11')]['connect'](_0x5b4238[_0x26e7('0x2a')])[_0x26e7('0x1d')](_0xb3b43=>(_0x5b4238[_0x26e7('0xb')](this),this[_0x26e7('0x2c')](_0xb3b43)['then'](()=>{for(const _0x230e6a of _0xb3b43){_0x47c09c[_0x26e7('0x1f')](_0x230e6a)[_0x26e7('0x23')]=!0x0;}})));}async[_0x26e7('0x22')](){const _0x45b35b=this['editor']['plugins'][_0x26e7('0x3')]('TrackChangesEditing'),{connection:_0x2bcee4}=this['editor'][_0x26e7('0xa')][_0x26e7('0x3')](_0x43be1e),_0x485cb0=await this['_trackChangesService']['connect'](_0x2bcee4);await this[_0x26e7('0x2c')](_0x485cb0);for(const {suggestionData:_0xb538b4,resolve:_0x1baf08}of this[_0x26e7('0xd')][_0x26e7('0x1b')]()){let _0x51a5a9=_0x485cb0[_0x26e7('0x15')](_0x3b4829=>_0x3b4829['id']===_0xb538b4['id']);_0x51a5a9||(_0x51a5a9=await this[_0x26e7('0x11')][_0x26e7('0x28')](_0xb538b4['id'],_0xb538b4['type'],_0xb538b4[_0x26e7('0x17')],_0xb538b4[_0x26e7('0xc')])),_0x1baf08(_0x51a5a9);}for(const _0x5666bb of _0x485cb0)_0x45b35b[_0x26e7('0x5')](_0x5666bb['id'])||_0x45b35b['addSuggestionData'](_0x5666bb);}async[_0x26e7('0x13')](){this[_0x26e7('0x11')][_0x26e7('0x20')]||await new Promise(_0x304bc8=>{this[_0x26e7('0x18')](this['_trackChangesService'],_0x26e7('0x10'),_0x488f64=>{_0x488f64[_0x26e7('0x19')](),_0x304bc8();});});}async[_0x26e7('0x2c')](_0x2288b2){const _0x378671=this[_0x26e7('0x6')][_0x26e7('0xa')][_0x26e7('0x3')](_0x3fe5cd),{connection:_0x51cefa}=this[_0x26e7('0x6')]['plugins'][_0x26e7('0x3')](_0x43be1e),_0x4e3400=new Set();for(const {authorId:_0x2f06d9}of _0x2288b2)_0x378671[_0x26e7('0x24')](_0x2f06d9)||_0x4e3400[_0x26e7('0x28')](_0x2f06d9);if(0x0===_0x4e3400[_0x26e7('0x0')])return;const _0x3c1a5b=await _0x2c31d7[_0x26e7('0x1e')](_0x51cefa,Array[_0x26e7('0xf')](_0x4e3400));for(const _0x4ccfad of _0x3c1a5b)_0x378671[_0x26e7('0x24')](_0x4ccfad['id'])||_0x378671['addUser'](_0x4ccfad);}}function B(_0x281f12){if(st(_0x281f12))return new Promise(()=>{});throw _0x281f12;}function st(_0x34ddd4){return _0x34ddd4[_0x26e7('0x7')][_0x26e7('0x1')](_0x26e7('0x1c'))||_0x34ddd4[_0x26e7('0x7')]['startsWith'](_0x26e7('0x2b'));}g[_0x26e7('0x27')]=_0x1524e1;
23
+ function _0x2f80(){const _0x6f74c4=['3434952obIrhw','getSuggestion','getMany','8CpsXLa','isConnected','listenTo','open','values','_fetchMissingUsersForThreads','getUser','10615Lqjoxt','originalSuggestionId','TrackChangesService','40270XEPVXX','addSuggestionData','catch','then','get','editor','cloud-services-internal-error:\x20Not\x20connected.','addUser','1103649NlsVOa','TrackChangesEditing','suggestionUpdated','init','9430525vGsTJV','cloud-services-internal-error:\x20Request\x20timeout.','collaboration.channelId','adapter','from','_waitForServiceReady','4dmHnor','_trackChangesService','connect','2xMrfTc','size','config','_saved','data','connected','find','update','attributes','requires','type','23301hDExLa','message','connection','set','delete','hasSuggestion','reconnect','9947763CWBTxd','addToReconnectionStack','off','plugins','startsWith','11869795EFQSlD','_bufferedRequests','add','state'];_0x2f80=function(){return _0x6f74c4;};return _0x2f80();}const _0x20067e=_0x50be;(function(_0x4cc133,_0x4febf2){const _0x5c6636=_0x50be,_0x514b78=_0x4cc133();while(!![]){try{const _0x2ccd17=-parseInt(_0x5c6636(0x109))/0x1*(parseInt(_0x5c6636(0x13b))/0x2)+-parseInt(_0x5c6636(0x12e))/0x3*(parseInt(_0x5c6636(0x138))/0x4)+parseInt(_0x5c6636(0x132))/0x5+parseInt(_0x5c6636(0x119))/0x6+parseInt(_0x5c6636(0x115))/0x7+-parseInt(_0x5c6636(0x11c))/0x8*(-parseInt(_0x5c6636(0x110))/0x9)+parseInt(_0x5c6636(0x126))/0xa*(-parseInt(_0x5c6636(0x123))/0xb);if(_0x2ccd17===_0x4febf2)break;else _0x514b78['push'](_0x514b78['shift']());}catch(_0xe342df){_0x514b78['push'](_0x514b78['shift']());}}}(_0x2f80,0xefd4e));import{Plugin as _0x2ea025}from'ckeditor5/src/core.js';import{TrackChangesService as _0x109335}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{User as _0x553113}from'@ckeditor/ckeditor-cloud-services-collaboration';import _0x32e8c8 from'../realtimecollaborativeediting/websocketgateway.js';function _0x50be(_0x11b268,_0x45422d){const _0x2f8019=_0x2f80();return _0x50be=function(_0x50be4,_0x14ff7b){_0x50be4=_0x50be4-0x100;let _0x483de4=_0x2f8019[_0x50be4];return _0x483de4;},_0x50be(_0x11b268,_0x45422d);}import _0x35e6ab from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x650d3c}from'ckeditor5-collaboration/src/collaboration-core.js';export default class g extends _0x2ea025{static get[_0x20067e(0x107)](){const _0x521ff0=_0x20067e;return[_0x35e6ab,_0x521ff0(0x12f),_0x32e8c8];}constructor(_0x4d418f){const _0x58fed8=_0x20067e;super(_0x4d418f);const _0x9514a6=this[_0x58fed8(0x12b)][_0x58fed8(0x100)][_0x58fed8(0x12a)](_0x58fed8(0x134));this[_0x58fed8(0x116)]=new Map(),this[_0x58fed8(0x139)]=new g[(_0x58fed8(0x125))](_0x9514a6);}[_0x20067e(0x131)](){const _0x120c50=_0x20067e,_0x33c064=this[_0x120c50(0x12b)][_0x120c50(0x113)][_0x120c50(0x12a)](_0x32e8c8),_0x2521fb=this[_0x120c50(0x12b)][_0x120c50(0x113)][_0x120c50(0x12a)](_0x120c50(0x12f));return _0x2521fb[_0x120c50(0x135)]={'getSuggestion':async _0x1d1813=>{const _0x1234d7=_0x120c50;await this[_0x1234d7(0x137)]();const _0x1b11f9=await this[_0x1234d7(0x139)][_0x1234d7(0x12a)](_0x1d1813)[_0x1234d7(0x128)](B);return await this[_0x1234d7(0x121)]([_0x1b11f9]),_0x1b11f9;},'addSuggestion':async({id:_0x3459a9,type:_0x39d882,data:_0x51cc4a,originalSuggestionId:_0x4a6baa,attributes:_0x3aec8b})=>{const _0x565c61=_0x120c50;await this[_0x565c61(0x137)]();const _0x41c0e8={'id':_0x3459a9,'type':_0x39d882,'data':_0x51cc4a,'originalSuggestionId':_0x4a6baa,'attributes':_0x3aec8b},_0x4d1c67=await this[_0x565c61(0x139)][_0x565c61(0x117)](_0x3459a9,_0x39d882,_0x51cc4a,_0x4a6baa,_0x3aec8b)[_0x565c61(0x128)](_0x3179cd=>{if(st(_0x3179cd))return new Promise(_0x25135e=>{const _0x46d5d8=_0x50be;this[_0x46d5d8(0x116)][_0x46d5d8(0x10c)](_0x3459a9,{'resolve':_0x25135e,'suggestionData':_0x41c0e8});});throw _0x3179cd;});return this[_0x565c61(0x116)][_0x565c61(0x10d)](_0x3459a9),_0x4d1c67;},'updateSuggestion':async(_0x1e0dca,_0x47ca91)=>{const _0x772153=_0x120c50;if(await this[_0x772153(0x137)](),_0x772153(0x11f)!==_0x47ca91[_0x772153(0x118)])return this[_0x772153(0x139)][_0x772153(0x105)](_0x1e0dca,_0x47ca91)[_0x772153(0x128)](B);}},this[_0x120c50(0x11e)](this[_0x120c50(0x139)],_0x120c50(0x130),(_0x3124b8,_0x24c475)=>{const _0x1fb4d2=_0x120c50;_0x2521fb[_0x1fb4d2(0x10e)](_0x24c475['id'])&&(_0x2521fb[_0x1fb4d2(0x11a)](_0x24c475['id'])[_0x1fb4d2(0x106)]=_0x24c475[_0x1fb4d2(0x106)]);}),this[_0x120c50(0x139)][_0x120c50(0x13a)](_0x33c064[_0x120c50(0x10b)])[_0x120c50(0x129)](_0x1097cb=>(_0x33c064[_0x120c50(0x111)](this),this[_0x120c50(0x121)](_0x1097cb)[_0x120c50(0x129)](()=>{const _0x2bdc86=_0x120c50;for(const _0x2b0e3b of _0x1097cb){_0x2521fb[_0x2bdc86(0x127)](_0x2b0e3b)[_0x2bdc86(0x101)]=!0x0;}})));}async[_0x20067e(0x10f)](){const _0x3165db=_0x20067e,_0x49e647=this[_0x3165db(0x12b)][_0x3165db(0x113)][_0x3165db(0x12a)](_0x3165db(0x12f)),{connection:_0x49223a}=this[_0x3165db(0x12b)][_0x3165db(0x113)][_0x3165db(0x12a)](_0x32e8c8),_0x2cc3c0=await this[_0x3165db(0x139)][_0x3165db(0x13a)](_0x49223a);await this[_0x3165db(0x121)](_0x2cc3c0);for(const {suggestionData:_0x305af0,resolve:_0x5bb7d2}of this[_0x3165db(0x116)][_0x3165db(0x120)]()){let _0x33863c=_0x2cc3c0[_0x3165db(0x104)](_0x1fe43f=>_0x1fe43f['id']===_0x305af0['id']);_0x33863c||(_0x33863c=await this[_0x3165db(0x139)][_0x3165db(0x117)](_0x305af0['id'],_0x305af0[_0x3165db(0x108)],_0x305af0[_0x3165db(0x102)],_0x305af0[_0x3165db(0x124)])),_0x5bb7d2(_0x33863c);}for(const _0x15d4db of _0x2cc3c0)_0x49e647[_0x3165db(0x10e)](_0x15d4db['id'])||_0x49e647[_0x3165db(0x127)](_0x15d4db);}async[_0x20067e(0x137)](){const _0x54ceb8=_0x20067e;this[_0x54ceb8(0x139)][_0x54ceb8(0x11d)]||await new Promise(_0x24d261=>{const _0x298a6d=_0x54ceb8;this[_0x298a6d(0x11e)](this[_0x298a6d(0x139)],_0x298a6d(0x103),_0x4a3212=>{const _0xefd5d8=_0x298a6d;_0x4a3212[_0xefd5d8(0x112)](),_0x24d261();});});}async[_0x20067e(0x121)](_0x2bc098){const _0x498095=_0x20067e,_0xf45366=this[_0x498095(0x12b)][_0x498095(0x113)][_0x498095(0x12a)](_0x650d3c),{connection:_0x10b19c}=this[_0x498095(0x12b)][_0x498095(0x113)][_0x498095(0x12a)](_0x32e8c8),_0x286779=new Set();for(const {authorId:_0x583ef5}of _0x2bc098)_0xf45366[_0x498095(0x122)](_0x583ef5)||_0x286779[_0x498095(0x117)](_0x583ef5);if(0x0===_0x286779[_0x498095(0x13c)])return;const _0x451f9f=await _0x553113[_0x498095(0x11b)](_0x10b19c,Array[_0x498095(0x136)](_0x286779));for(const _0xf2d4d5 of _0x451f9f)_0xf45366[_0x498095(0x122)](_0xf2d4d5['id'])||_0xf45366[_0x498095(0x12d)](_0xf2d4d5);}}function B(_0x33a473){if(st(_0x33a473))return new Promise(()=>{});throw _0x33a473;}function st(_0xf28744){const _0xedc138=_0x20067e;return _0xf28744[_0xedc138(0x10a)][_0xedc138(0x114)](_0xedc138(0x12c))||_0xf28744[_0xedc138(0x10a)][_0xedc138(0x114)](_0xedc138(0x133));}g[_0x20067e(0x125)]=_0x109335;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3c1b=['RealTimeCollaborativeTrackChanges','pluginName'];(function(_0x4f4465,_0x3c1bd1){var _0x421d6b=function(_0x30f016){while(--_0x30f016){_0x4f4465['push'](_0x4f4465['shift']());}};_0x421d6b(++_0x3c1bd1);}(_0x3c1b,0x1b1));var _0x421d=function(_0x4f4465,_0x3c1bd1){_0x4f4465=_0x4f4465-0x0;var _0x421d6b=_0x3c1b[_0x4f4465];return _0x421d6b;};import{Plugin as _0x3608f5}from'ckeditor5/src/core.js';import _0x220b0c from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js';import _0x3bf0d3 from'./realtimecollaborativecomments.js';export default class p extends _0x3608f5{static get['requires'](){return[_0x3bf0d3,_0x220b0c,'TrackChanges'];}static get[_0x421d('0x0')](){return _0x421d('0x1');}}
23
+ var _0x4c7ae3=_0x55a0;function _0x2679(){var _0xa632ab=['1294984wZKOhC','pluginName','TrackChanges','22191498iSBHtg','82714EKFbGJ','897477nXeLiQ','75Aaeybu','10rZWtlk','requires','82520nhxHja','1801962KOJiRx','3850835pGjhzo','826OfGAZC','RealTimeCollaborativeTrackChanges'];_0x2679=function(){return _0xa632ab;};return _0x2679();}(function(_0x45f3f3,_0x11b055){var _0x46c492=_0x55a0,_0x2c93aa=_0x45f3f3();while(!![]){try{var _0x3e4f41=parseInt(_0x46c492(0x14f))/0x1+-parseInt(_0x46c492(0x14e))/0x2*(parseInt(_0x46c492(0x150))/0x3)+parseInt(_0x46c492(0x158))/0x4+-parseInt(_0x46c492(0x155))/0x5+parseInt(_0x46c492(0x154))/0x6+-parseInt(_0x46c492(0x156))/0x7*(parseInt(_0x46c492(0x153))/0x8)+parseInt(_0x46c492(0x14d))/0x9*(parseInt(_0x46c492(0x151))/0xa);if(_0x3e4f41===_0x11b055)break;else _0x2c93aa['push'](_0x2c93aa['shift']());}catch(_0x4ecddd){_0x2c93aa['push'](_0x2c93aa['shift']());}}}(_0x2679,0xebd7a));import{Plugin as _0x12e9b0}from'ckeditor5/src/core.js';import _0x4cf573 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js';function _0x55a0(_0x26e0b8,_0x3729d2){var _0x267999=_0x2679();return _0x55a0=function(_0x55a04c,_0x319465){_0x55a04c=_0x55a04c-0x14b;var _0x27e94e=_0x267999[_0x55a04c];return _0x27e94e;},_0x55a0(_0x26e0b8,_0x3729d2);}import _0x4da7a3 from'./realtimecollaborativecomments.js';export default class p extends _0x12e9b0{static get[_0x4c7ae3(0x152)](){var _0x4ee183=_0x4c7ae3;return[_0x4da7a3,_0x4cf573,_0x4ee183(0x14c)];}static get[_0x4c7ae3(0x14b)](){var _0x3313ce=_0x4c7ae3;return _0x3313ce(0x157);}}