@ckeditor/ckeditor5-revision-history 35.4.0 → 36.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/build/revision-history.js +2 -2
  2. package/build/translations/ug.js +1 -1
  3. package/lang/translations/af.po +1 -1
  4. package/lang/translations/ar.po +1 -1
  5. package/lang/translations/az.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en-gb.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es-co.po +1 -1
  19. package/lang/translations/es.po +1 -1
  20. package/lang/translations/et.po +1 -1
  21. package/lang/translations/fa.po +1 -1
  22. package/lang/translations/fi.po +1 -1
  23. package/lang/translations/fr.po +1 -1
  24. package/lang/translations/gl.po +1 -1
  25. package/lang/translations/he.po +1 -1
  26. package/lang/translations/hi.po +1 -1
  27. package/lang/translations/hr.po +1 -1
  28. package/lang/translations/hu.po +1 -1
  29. package/lang/translations/id.po +1 -1
  30. package/lang/translations/it.po +1 -1
  31. package/lang/translations/ja.po +1 -1
  32. package/lang/translations/jv.po +1 -1
  33. package/lang/translations/ko.po +1 -1
  34. package/lang/translations/ku.po +1 -1
  35. package/lang/translations/lt.po +1 -1
  36. package/lang/translations/lv.po +1 -1
  37. package/lang/translations/ms.po +1 -1
  38. package/lang/translations/ne.po +1 -1
  39. package/lang/translations/nl.po +1 -1
  40. package/lang/translations/no.po +1 -1
  41. package/lang/translations/pl.po +1 -1
  42. package/lang/translations/pt-br.po +1 -1
  43. package/lang/translations/pt.po +1 -1
  44. package/lang/translations/ro.po +1 -1
  45. package/lang/translations/ru.po +1 -1
  46. package/lang/translations/sk.po +1 -1
  47. package/lang/translations/sr-latn.po +1 -1
  48. package/lang/translations/sr.po +1 -1
  49. package/lang/translations/sv.po +1 -1
  50. package/lang/translations/th.po +1 -1
  51. package/lang/translations/tk.po +1 -1
  52. package/lang/translations/tr.po +1 -1
  53. package/lang/translations/tt.po +1 -1
  54. package/lang/translations/ug.po +2 -2
  55. package/lang/translations/uk.po +1 -1
  56. package/lang/translations/ur.po +1 -1
  57. package/lang/translations/vi.po +1 -1
  58. package/lang/translations/zh-cn.po +1 -1
  59. package/lang/translations/zh.po +1 -1
  60. package/package.json +7 -7
  61. package/src/changeitem.js +2 -2
  62. package/src/editor/revisionviewereditor.js +2 -2
  63. package/src/editor/revisionviewereditorui.js +2 -2
  64. package/src/editor/revisionviewereditoruiview.js +2 -2
  65. package/src/index.js +1 -1
  66. package/src/revision.js +2 -2
  67. package/src/revisiondiff.js +2 -2
  68. package/src/revisionhistory.js +2 -2
  69. package/src/revisionsrepository.js +2 -2
  70. package/src/revisiontracker.js +2 -2
  71. package/src/revisionviewer.js +2 -2
  72. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  73. package/src/ui/revision/revisionauthorview.js +2 -2
  74. package/src/ui/revision/revisionnameview.js +2 -2
  75. package/src/ui/revision/revisionview.js +2 -2
  76. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  77. package/src/ui/revision/subrevisionview.js +2 -2
  78. package/src/ui/revision/utils.js +2 -2
  79. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  80. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  81. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  82. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  83. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  84. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  85. package/src/ui/revisionssidebar/utils.js +2 -2
  86. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  87. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  88. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  89. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  90. package/src/utils/common-translations.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4be9=['_setAttribute','conversion','PendingActions','deletion','offsetSize','editor','requires','reinsert','getRoot','stickiness','_diffRoots','name','end','getCurrentRevisionId','sort','markers','view','_getViewJson','position','vid_end','finally','attributes','path','_removeMetaData','range','_clone','_transformMarkers','_handleMergeOperation','_applyOperations','data','getData','parent','toView','find','_handleOperation','initialData','getRevision','from','type','loadState','updateRevisions','get','getRange','createdAt','resolve','setRevisionData','createPositionAfter','toData','markerToData','dataDowncast','_cloneOperation','map','item','offset','createPositionAt','creator','_continueCurrentRevision','_setConversion','_touched','_makeIdsRoot','upcast','_bufferedUpdates','marker','buildRevisionData','_savedMetaData','reverse','$graveyard','element','addRevision','adapter','getOperations','getIndex','revision-start','_startingRevisionId','oldRange','_fixRange','_handleInsertOperation','_findInsertionIndex','userId','useFillerType','insertions','_bufferUpdate','shift','for','getNodeByPath','string','revision','nodeAfter','update','_baseIdsRoots','_addPendingAction','_getVidAttributeName','isEnabled','includes','keys','revision:','_insertChild','_reset','_loadRevisionData','_replaceEditorDataWithRevisionData','_saveMetaData','_startingVersion','dataToMarker','_lastFrom','_loadedStateData','getWalker','afterInit','paragraph','set','move','_makeModelFromViewString','_markers','has','default','getChild','_handleMarkerOperation','clear','getRevisionDocumentData','_generateTape','_calculateMetaData','vid','locale','_getPreviousFrom','elementEnd','diffData','push','_removeRevisionMarkers','_loadState','_isPendingUpdate','graveyardPosition','_getBaseVids','insert','previousPosition','getRootNames','clone','createRangeIn','_createCurrentRevision','baseVersion','collaboration.channelId','_touchedMarkers','addRevisionData','_getState','config','version','_markChanges','affectsData','toVersion','Initial\x20revision','documentFragment','source','filter','getOperation','deletions','_makeRevision','nodes','elementStart','_fixOperation','_prepareViewToSave','getChildren','vid_start','fromVersion','RealTimeCollaborationClient','roots','getLatestVersion','currentRevision','splitPosition','_handleMoveOperation','getMovedRangeStart','PENDING_ACTION_REVISION_HISTORY','_processRootBeforeSave','_getFromVersion','isReady','isPendingUpdate','size','childCount','_pendingAction','remove','then','_copyMarkers','tableCell','slice','createPositionFromPath','parse','revisionHistory.resumeUnsavedRevision','_saveEmptyMetaData','editing','_source','length','setSource','_execute','data-revision-','split','document','_createInitialRevision','_revisionId','startsWith','repository','createRange','pluginName','model','getTime','values','_createFromRanges','getUser','start','delete','_initialRevisionId','creatorId','reInit','children','rootName','createRevision','targetPosition','getTransformedByOperation','_rootNames','root','saveRevision','_idsRoots','_revisionDataBuilder','_update','stringify','history','sendBufferedUpdates','howMany','$text','text','init','authors','isEqual','Users','authorsIds','_baseRoots','newRange','_handleSplitOperation','getRevisions','forEach','_authorId','_fixPosition','RevisionsRepository','_lastTo','plugins','marked','sourcePosition','add','NEGATIVE_INFINITY','getAttribute'];(function(_0x335359,_0x4be91e){const _0x1ffc78=function(_0x4411d7){while(--_0x4411d7){_0x335359['push'](_0x335359['shift']());}};_0x1ffc78(++_0x4be91e);}(_0x4be9,0x13b));const _0x1ffc=function(_0x335359,_0x4be91e){_0x335359=_0x335359-0x0;let _0x1ffc78=_0x4be9[_0x335359];return _0x1ffc78;};import{Users as _0x49b043}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x208e89,PendingActions as _0x6a751b}from'ckeditor5/src/core';import{logWarning as _0x21e039,uid as _0xf0ab0d}from'ckeditor5/src/utils';import{Position as _0x29deb2,Range as _0x21882a,Element as _0x230a92,DocumentFragment as _0xfd6a74,ViewText as _0x4ede3d,ViewElement as _0x5af39b,ViewContainerElement as _0x2a8b8e,ViewAttributeElement as _0x490ea3,ViewEmptyElement as _0x176d2e,ViewRawElement as _0x170b85,ViewUIElement as _0x277a27,ViewDocumentFragment as _0x242b3a}from'ckeditor5/src/engine';import _0x510d8c from'./revisionsrepository';import{getTranslation as _0x2536e9}from'./utils/common-translations';const V={'c':_0x2a8b8e,'a':_0x490ea3,'e':_0x176d2e,'r':_0x170b85,'u':_0x277a27};export default class l extends _0x208e89{static get[_0x1ffc('0x81')](){return'RevisionTracker';}static get[_0x1ffc('0xb7')](){return[_0x49b043,_0x510d8c,_0x6a751b];}constructor(..._0x231433){super(..._0x231433),this['adapter']=null,this[_0x1ffc('0x27')]('isReady',!0x1),this[_0x1ffc('0x27')](_0x1ffc('0x17'),!0x0),this[_0x1ffc('0x5f')]=null;const _0x36b98e=_0xf0ab0d();this[_0x1ffc('0x75')]={'history':this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x98')],'getLatestVersion':()=>Promise[_0x1ffc('0xdd')](this['editor'][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x4a')]),'getCurrentRevisionId':()=>_0x36b98e},this[_0x1ffc('0x95')]=new T(this[_0x1ffc('0xb6')]),this[_0x1ffc('0x89')]=this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x45'))||'initial',this['set'](_0x1ffc('0x67'),!0x1),this['_bufferedUpdates']=new Map(),this[_0x1ffc('0xb6')][_0x1ffc('0x49')]['define'](_0x1ffc('0x72'),!0x0),this[_0x1ffc('0x23')]=null,this[_0x1ffc('0xb6')]['conversion'][_0x1ffc('0xe')](_0x1ffc('0xed'))[_0x1ffc('0x21')]({'view':_0x1ffc('0x11')});}[_0x1ffc('0x9d')](){this[_0x1ffc('0x7f')]=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa9')),this[_0x1ffc('0xea')](),this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['on']('ready',()=>{const _0xdf51c3=this[_0x1ffc('0x7f')]['getRevision'](0x0),_0xd5a98f=_0xdf51c3&&null===_0xdf51c3[_0x1ffc('0xe8')]?_0xdf51c3:null;if(this[_0x1ffc('0xe9')]=!!_0xd5a98f&&this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x72')),this[_0x1ffc('0xb6')]['plugins']['has'](_0x1ffc('0x5c'))){const _0x9ca637=this[_0x1ffc('0x75')][_0x1ffc('0xbe')](),_0x1ebeae=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x9ca637);if(_0x1ebeae)this[_0x1ffc('0x20')]=_0x1ebeae[_0x1ffc('0x5b')],this[_0x1ffc('0xe9')]=!0x1;else{const _0x2fa5d5=this[_0x1ffc('0x75')][_0x1ffc('0x98')]['_operations'][_0x1ffc('0xd2')](_0x5bf3cb=>!_0x5bf3cb['_isInit']),_0x2ed99e=_0x2fa5d5?_0x2fa5d5[_0x1ffc('0x44')]:this[_0x1ffc('0x75')]['history'][_0x1ffc('0x4a')];_0xdf51c3?(_0xdf51c3[_0x1ffc('0x4d')]<_0x2ed99e&&_0xdf51c3['_update']({'toVersion':_0x2ed99e}),this[_0x1ffc('0xe9')]?(this[_0x1ffc('0x75')][_0x1ffc('0xbe')]=()=>_0xd5a98f['id'],this['_startingVersion']=_0xd5a98f[_0x1ffc('0x5b')]):(this[_0x1ffc('0x20')]=_0xdf51c3[_0x1ffc('0x4d')],this[_0x1ffc('0xe9')]=!0x1)):(this[_0x1ffc('0x20')]=_0x2ed99e,this[_0x1ffc('0xe9')]=!0x1);}}else _0xd5a98f&&(this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')]['history'][_0x1ffc('0x4a')]=Math['max'](_0xd5a98f[_0x1ffc('0x4d')],this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x98')][_0x1ffc('0x4a')]),_0xd5a98f[_0x1ffc('0x5b')]===_0xd5a98f['toVersion']?(0x0!==_0xd5a98f['fromVersion']&&(this['_source'][_0x1ffc('0xbe')]=()=>_0xd5a98f['id']),this[_0x1ffc('0xe9')]=!0x1):this[_0x1ffc('0xe9')]&&(this['_source'][_0x1ffc('0xbe')]=()=>_0xd5a98f['id'],this[_0x1ffc('0x20')]=_0xd5a98f[_0x1ffc('0x5b')])),this[_0x1ffc('0xe9')]||(this[_0x1ffc('0x20')]=this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')]['version']);this[_0x1ffc('0x95')][_0x1ffc('0x9d')](this['_source'][_0x1ffc('0x98')]),this[_0x1ffc('0x7c')](this[_0x1ffc('0x20')]),this[_0x1ffc('0x43')](this[_0x1ffc('0x20')]),this[_0x1ffc('0x0')]&&this[_0x1ffc('0x99')]();}),this['bind'](_0x1ffc('0x66'))['to'](this,_0x1ffc('0x3b'),_0x355356=>!_0x355356);}async[_0x1ffc('0x25')](){if(this[_0x1ffc('0x7f')][_0x1ffc('0x76')]>0x0){const _0x24cbae=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](0x0),_0x10e11c=await this['getRevisionDocumentData'](_0x24cbae);this[_0x1ffc('0x1e')](_0x10e11c);}}[_0x1ffc('0x77')](_0x594511){this[_0x1ffc('0x75')]=_0x594511;}async[_0x1ffc('0x13')](){const _0x2c2133=await this[_0x1ffc('0x75')]['getLatestVersion']();if(_0x2c2133>this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]){await this[_0x1ffc('0x3a')]();const _0x14e100=this[_0x1ffc('0xf0')]({'revision':this['currentRevision'],'to':_0x2c2133});_0x14e100['authors']=_0x14e100['authorsIds'][_0x1ffc('0xe4')](_0x3b6bf8=>this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['getUser'](_0x3b6bf8)),this[_0x1ffc('0x5f')][_0x1ffc('0x96')](_0x14e100);}}async[_0x1ffc('0x3a')](){this['_continueCurrentRevision']&&!this[_0x1ffc('0x23')]&&(await this['_loadRevisionData'](this[_0x1ffc('0x5f')]),this[_0x1ffc('0x95')]['loadState'](this['currentRevision']),this[_0x1ffc('0x23')]={'fromVersion':this[_0x1ffc('0x5f')]['fromVersion'],'authors':this['currentRevision'][_0x1ffc('0x9e')][_0x1ffc('0x6f')]()});}async[_0x1ffc('0x93')](_0x7ad87d={},_0x5298e0=null){const _0x223480=[];await this['_loadState'](),this[_0x1ffc('0xe9')]=!0x1,_0x5298e0>this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]&&(_0x5298e0=null),null===_0x5298e0&&(_0x5298e0=await this[_0x1ffc('0x75')][_0x1ffc('0x5e')]());const _0x234d61=this[_0x1ffc('0x65')](_0x5298e0),_0x4c56b6=this[_0x1ffc('0xf0')]({'from':_0x234d61,'to':_0x5298e0});if(this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]<_0x5298e0){const _0x139810=this[_0x1ffc('0xf0')]({'revision':this[_0x1ffc('0x5f')],'from':_0x5298e0,'to':_0x5298e0});_0x139810[_0x1ffc('0x9e')]=[],_0x139810[_0x1ffc('0xa1')]=[],_0x139810['id']=this[_0x1ffc('0x5f')]['id'],this[_0x1ffc('0x5f')][_0x1ffc('0x96')](_0x139810,!0x0),delete _0x139810['authors'],_0x223480[_0x1ffc('0x38')](_0x139810);}_0x7ad87d[_0x1ffc('0x8a')]=this[_0x1ffc('0xb6')]['plugins'][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x7ad87d[_0x1ffc('0xbc')]=_0x7ad87d['name']||null,_0x7ad87d['id']=_0x7ad87d['id']||_0xf0ab0d(),_0x7ad87d={..._0x7ad87d,..._0x4c56b6};const _0x51bc4c=this[_0x1ffc('0x47')](_0x7ad87d);_0x223480['push'](_0x7ad87d);const _0x52f84e=this['repository'][_0x1ffc('0x2')](_0x51bc4c);if(0x0!==_0x52f84e){const _0x2fb4a7=this[_0x1ffc('0x7f')]['getRevision'](_0x52f84e-0x1);if(_0x2fb4a7[_0x1ffc('0x5b')]!==_0x5298e0){const _0x76b7a7=this[_0x1ffc('0x95')][_0x1ffc('0xcf')](_0x5298e0,_0x2fb4a7[_0x1ffc('0x4d')]),_0x3980c5={'id':_0x2fb4a7['id'],'diffData':_0x76b7a7[_0x1ffc('0x37')],'authorsIds':_0x76b7a7[_0x1ffc('0xa1')],'authors':_0x76b7a7['authorsIds'][_0x1ffc('0xe4')](_0x258c83=>this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))[_0x1ffc('0x86')](_0x258c83)),'fromVersion':_0x5298e0};_0x2fb4a7===this[_0x1ffc('0x5f')]&&(_0x3980c5[_0x1ffc('0xdc')]=new Date(_0x7ad87d[_0x1ffc('0xdc')][_0x1ffc('0x83')]()+0xa)),_0x2fb4a7[_0x1ffc('0x96')](_0x3980c5,!0x0),delete _0x3980c5[_0x1ffc('0x9e')],_0x223480[_0x1ffc('0x38')](_0x3980c5);}}if(this[_0x1ffc('0x0')]){for(const _0xb1f122 of _0x223480)this[_0x1ffc('0xc')](_0xb1f122['id'],_0xb1f122,!0x0);this[_0x1ffc('0x99')]();}return _0x51bc4c;}[_0x1ffc('0x47')](_0x4b6474){const _0x1413e9=this[_0x1ffc('0x7f')][_0x1ffc('0x8e')](_0x4b6474);return this[_0x1ffc('0x0')]&&_0x1413e9['on']('_update',(_0x7dc66a,_0x338e72,_0x5df22e)=>{_0x5df22e||(this['_bufferUpdate'](_0x338e72['id'],_0x338e72,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x1ffc('0xf5')](_0x1413e9,this[_0x1ffc('0x8')](_0x1413e9)),_0x1413e9;}async[_0x1ffc('0x30')](_0x5ba2bc){await this[_0x1ffc('0x1d')](_0x5ba2bc);const _0x3db561={};for(const _0x543fa9 in _0x5ba2bc[_0x1ffc('0x37')]){const _0x344345=this[_0x1ffc('0x39')](JSON[_0x1ffc('0x71')](_0x5ba2bc[_0x1ffc('0x37')][_0x543fa9][_0x1ffc('0xb')])),_0x37e103=this[_0x1ffc('0xb6')]['editing'][_0x1ffc('0xc1')][_0x1ffc('0x7b')],_0x29cb13=new _0x242b3a(_0x37e103,_0x344345[_0x1ffc('0xe4')](_0xc794e=>F(_0xc794e,this[_0x1ffc('0xb6')])));this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['processor'][_0x1ffc('0xa')](_0x1ffc('0xac')),_0x3db561[_0x543fa9]=this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['processor'][_0x1ffc('0xe0')](_0x29cb13),this['editor'][_0x1ffc('0xce')]['processor'][_0x1ffc('0xa')](_0x1ffc('0x2c'));}return _0x3db561;}[_0x1ffc('0x99')](){if(0x0===this[_0x1ffc('0xee')][_0x1ffc('0x68')])return;if(this[_0x1ffc('0x3b')])return;let _0x49465e=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xee')][_0x1ffc('0x84')]());this[_0x1ffc('0xee')][_0x1ffc('0x2f')]();for(let _0x50364c=0x0;_0x50364c<_0x49465e[_0x1ffc('0x76')];_0x50364c++){const _0x31edf1=_0x49465e[_0x50364c];let _0x1e97ce=!0x1;for(const _0x2c8355 of Object[_0x1ffc('0x19')](_0x31edf1))void 0x0===_0x31edf1[_0x2c8355]?delete _0x31edf1[_0x2c8355]:'id'!==_0x2c8355&&(_0x1e97ce=!0x0);_0x1e97ce||(_0x49465e[_0x50364c]=null);}if(_0x49465e=_0x49465e[_0x1ffc('0x51')](_0x5a5fbe=>null!==_0x5a5fbe),!_0x49465e[_0x1ffc('0x76')])return;for(let _0x20340d=0x0;_0x20340d<_0x49465e[_0x1ffc('0x76')];_0x20340d++){const _0x404c65=_0x49465e[_0x20340d];void 0x0!==_0x404c65[_0x1ffc('0x5b')]&&void 0x0===_0x404c65['toVersion']&&(_0x404c65['toVersion']=this['repository'][_0x1ffc('0xd5')](_0x404c65['id'])[_0x1ffc('0x4d')]),void 0x0!==_0x404c65[_0x1ffc('0x4d')]&&void 0x0===_0x404c65['fromVersion']&&(_0x404c65[_0x1ffc('0x5b')]=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x404c65['id'])[_0x1ffc('0x5b')]);}const _0x51f1f3=this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x45'));this[_0x1ffc('0x3b')]=!0x0,this[_0x1ffc('0x15')](),this[_0x1ffc('0x0')][_0x1ffc('0xd9')](_0x49465e,_0x51f1f3)[_0x1ffc('0xc5')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xa13f66=>{if(_0xa13f66)for(const _0x5c269c of _0xa13f66)this[_0x1ffc('0xde')]({'id':_0x5c269c['id'],'createdAt':_0x5c269c[_0x1ffc('0xdc')]});this['_removePendingAction'](),this[_0x1ffc('0x99')]();});}[_0x1ffc('0x1e')](_0x2b3fb8){let _0x4b1ca0=this['editor'][_0x1ffc('0x49')]['get'](_0x1ffc('0xd4'));if(void 0x0===_0x4b1ca0){_0x4b1ca0={};for(const _0x5847e5 of this['editor'][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x40')]())_0x4b1ca0[_0x5847e5]='';}'string'==typeof _0x4b1ca0&&(_0x4b1ca0={'main':_0x4b1ca0});let _0x465f3b=!0x1;for(const _0x8c01ba of Object[_0x1ffc('0x19')](_0x4b1ca0))_0x2b3fb8[_0x8c01ba]&&(_0x4b1ca0[_0x8c01ba]!==_0x2b3fb8[_0x8c01ba]&&''!==_0x4b1ca0[_0x8c01ba]['trim']()&&(_0x465f3b=!0x0),_0x4b1ca0[_0x8c01ba]=_0x2b3fb8[_0x8c01ba]);_0x465f3b&&_0x21e039('editor-initial-data-replaced-with-revision-data'),this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0x27')](_0x1ffc('0xd4'),_0x4b1ca0);}[_0x1ffc('0x15')](){if(!this[_0x1ffc('0x6a')]){const _0x4e36dc=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xb3'));this[_0x1ffc('0x6a')]=_0x4e36dc[_0x1ffc('0xae')](_0x2536e9(this[_0x1ffc('0xb6')][_0x1ffc('0x34')],_0x1ffc('0x63')));}}['_removePendingAction'](){this[_0x1ffc('0x6a')]&&(this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xb3'))[_0x1ffc('0x6b')](this[_0x1ffc('0x6a')]),this[_0x1ffc('0x6a')]=null);}['_findInsertionIndex'](_0x5e95a4){const _0x2adbf5=this[_0x1ffc('0x7f')][_0x1ffc('0xa5')]();_0x2adbf5[_0x1ffc('0xf2')]();let _0x325be0=0x0;for(;_0x325be0<_0x2adbf5['length'];){const _0x364305=_0x2adbf5[_0x325be0];if(_0x364305===this[_0x1ffc('0x5f')]){_0x325be0++;continue;}if(_0x364305['id']===this[_0x1ffc('0x89')])break;const _0x4bc3d8=_0x5e95a4[_0x1ffc('0x4d')]-_0x364305['toVersion']||_0x5e95a4[_0x1ffc('0x5b')]-_0x364305[_0x1ffc('0x5b')];if(_0x4bc3d8>0x0)break;if(_0x4bc3d8<0x0)_0x325be0++;else{if(!_0x5e95a4['creator']&&_0x364305[_0x1ffc('0xe8')])break;if(_0x364305[_0x1ffc('0xe8')]||!_0x5e95a4[_0x1ffc('0xe8')]){if(_0x5e95a4[_0x1ffc('0xdc')]>_0x364305[_0x1ffc('0xdc')])break;_0x325be0++;}else _0x325be0++;}}return _0x325be0;}[_0x1ffc('0xde')](_0x34fe2d){const _0xa8f35c=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x34fe2d['id']);if(_0x34fe2d['createdAt']&&(_0x34fe2d[_0x1ffc('0xdc')]=new Date(_0x34fe2d[_0x1ffc('0xdc')])),_0x34fe2d[_0x1ffc('0xa1')]){const _0x1e05cb=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'));_0x34fe2d['authors']=_0x34fe2d[_0x1ffc('0xa1')][_0x1ffc('0xe4')](_0x4d63e1=>_0x1e05cb[_0x1ffc('0x86')](_0x4d63e1));}_0xa8f35c[_0x1ffc('0x96')](_0x34fe2d,!0x0);}[_0x1ffc('0xf0')]({revision:_0x16a82d=null,from:_0x4594b0=null,to:_0xe62b03=null}){_0x4594b0=null!==_0x4594b0?_0x4594b0:_0x16a82d[_0x1ffc('0x5b')],_0xe62b03=null!==_0xe62b03?_0xe62b03:_0x16a82d[_0x1ffc('0x4d')];const _0x2c49cb=this[_0x1ffc('0x95')][_0x1ffc('0xcf')](_0x4594b0,_0xe62b03),_0x5e07ad={'diffData':_0x2c49cb[_0x1ffc('0x37')],'authorsIds':_0x2c49cb['authorsIds'],'fromVersion':_0x4594b0,'toVersion':_0xe62b03};if(!_0x16a82d||_0xe62b03!==_0x16a82d[_0x1ffc('0x4d')]){const _0x242e32=_0xe62b03-0x1,_0x383c27=this[_0x1ffc('0x75')][_0x1ffc('0x98')][_0x1ffc('0x52')](_0x242e32);_0x5e07ad['createdAt']=_0x383c27&&_0x383c27[_0x1ffc('0xdc')]||new Date();}if(this[_0x1ffc('0x23')]&&_0x4594b0===this[_0x1ffc('0x23')][_0x1ffc('0x5b')])for(const _0x196884 of this[_0x1ffc('0x23')][_0x1ffc('0x9e')])_0x5e07ad[_0x1ffc('0xa1')][_0x1ffc('0x18')](_0x196884['id'])||_0x5e07ad[_0x1ffc('0xa1')][_0x1ffc('0x38')](_0x196884['id']);return _0x5e07ad;}[_0x1ffc('0x1d')](_0x52d6b7){if(!_0x52d6b7||_0x52d6b7[_0x1ffc('0x37')])return Promise[_0x1ffc('0xdd')]();{const _0x6df019=this[_0x1ffc('0xb6')][_0x1ffc('0x49')]['get'](_0x1ffc('0x45'));return this[_0x1ffc('0x0')][_0x1ffc('0xd5')]({'channelId':_0x6df019,'revisionId':_0x52d6b7['id']})[_0x1ffc('0x6c')](_0x55be98=>{_0x52d6b7[_0x1ffc('0x37')]=_0x55be98[_0x1ffc('0x37')];});}}['_bufferUpdate'](_0x2977b3,_0x46d583,_0x53fe08){if(this['_bufferedUpdates'][_0x1ffc('0x2b')](_0x2977b3)){const _0x481f59=this[_0x1ffc('0xee')][_0x1ffc('0xda')](_0x2977b3);_0x46d583=_0x53fe08?{..._0x481f59,..._0x46d583}:{..._0x46d583,..._0x481f59};}this[_0x1ffc('0xee')]['set'](_0x2977b3,_0x46d583);}[_0x1ffc('0x65')](_0x487d1d){const _0x4ad7df=this[_0x1ffc('0x7f')][_0x1ffc('0xa5')]();_0x4ad7df['reverse'](),_0x4ad7df[_0x1ffc('0xd')]();const _0x52683a=_0x4ad7df[_0x1ffc('0xd2')](_0x2bb484=>_0x2bb484['toVersion']<=_0x487d1d)[_0x1ffc('0x4d')];return _0x52683a<this[_0x1ffc('0x20')]?this['_startingVersion']:_0x52683a;}[_0x1ffc('0x7c')](_0x3029dd){const _0x450f0a=this[_0x1ffc('0x7f')]['getRevision'](this[_0x1ffc('0x7f')]['length']-0x1);if(_0x450f0a)this['_initialRevisionId']=_0x450f0a['id'];else{const _0x5b716a=!this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x5d')][_0x1ffc('0xd2')](_0x16577d=>this[_0x1ffc('0xb6')][_0x1ffc('0x82')]['hasContent'](_0x16577d)),_0x266d20=this[_0x1ffc('0xb6')][_0x1ffc('0xab')]['get'](_0x1ffc('0xa0'))['me']['id'],_0x5102e0=_0x2536e9(this[_0x1ffc('0xb6')][_0x1ffc('0x34')],_0x5b716a?'Empty\x20document':_0x1ffc('0x4e'));this[_0x1ffc('0x54')]({'from':_0x3029dd,'to':_0x3029dd,'id':this['_initialRevisionId'],'name':_0x5102e0,'creatorId':_0x266d20});}}['_createCurrentRevision'](_0x39b599){const _0x3883d1=this[_0x1ffc('0x75')][_0x1ffc('0xbe')]();this['currentRevision']=this[_0x1ffc('0x7f')]['getRevision'](_0x3883d1),this[_0x1ffc('0x5f')]||(this[_0x1ffc('0x5f')]=this['_makeRevision']({'from':_0x39b599,'to':_0x39b599,'id':_0x3883d1,'name':'','creatorId':null}));}[_0x1ffc('0x54')]({name:_0x33ce5c,from:_0x205a64,to:_0x1138a3,creatorId:_0x4faee4,id:_0x5abe7e}){const _0x3af37d=this[_0x1ffc('0xf0')]({'from':_0x205a64,'to':_0x1138a3});_0x3af37d[_0x1ffc('0xbc')]=_0x33ce5c,_0x3af37d[_0x1ffc('0x8a')]=_0x4faee4,_0x3af37d['id']=_0x5abe7e;const _0x42af25=this['addRevisionData'](_0x3af37d);return this[_0x1ffc('0x0')]&&this['_bufferUpdate'](_0x3af37d['id'],_0x3af37d,!0x0),_0x42af25;}[_0x1ffc('0xea')](){this['editor'][_0x1ffc('0xb2')]['for'](_0x1ffc('0xe2'))[_0x1ffc('0xe1')]({'model':_0x1ffc('0x11')});}[_0x1ffc('0x39')](_0x497a73){return(_0x497a73=_0x497a73[_0x1ffc('0x51')](_0xe915c5=>!_0xe915c5[_0x1ffc('0xbc')]||_0x1ffc('0x3')!==_0xe915c5[_0x1ffc('0xbc')]&&'revision-end'!==_0xe915c5[_0x1ffc('0xbc')]))[_0x1ffc('0xa6')](_0xdb3849=>{_0x1ffc('0x10')!=typeof _0xdb3849&&(_0xdb3849['children']=this[_0x1ffc('0x39')](_0xdb3849[_0x1ffc('0x8c')]),_0xdb3849[_0x1ffc('0xc6')]=_0xdb3849[_0x1ffc('0xc6')][_0x1ffc('0x51')](_0x4c4c73=>!_0x4c4c73[0x0]['startsWith'](_0x1ffc('0x79'))));}),_0x497a73;}}function F(_0x22eae1,_0x36f7be){const _0x7846cf=_0x36f7be[_0x1ffc('0x74')][_0x1ffc('0xc1')][_0x1ffc('0x7b')];if(_0x1ffc('0x10')==typeof _0x22eae1)return new _0x4ede3d(_0x7846cf,_0x22eae1);{const _0x264591=_0x22eae1[_0x1ffc('0x8c')][_0x1ffc('0xe4')](_0x936a5f=>F(_0x936a5f,_0x36f7be));return new(V[_0x22eae1[(_0x1ffc('0xd7'))]]||_0x5af39b)(_0x7846cf,_0x22eae1[_0x1ffc('0xbc')],_0x22eae1[_0x1ffc('0xc6')],_0x264591);}}class T{constructor(_0x786bf){this[_0x1ffc('0xb6')]=_0x786bf,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x1ffc('0xaa')]=-0x1,this[_0x1ffc('0x2a')]=new Map(),this['_diffRoots']=new Map(),this[_0x1ffc('0xa2')]=new Map(),this[_0x1ffc('0x94')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x1ffc('0xeb')]=new Map(),this[_0x1ffc('0x46')]=new Map(),this[_0x1ffc('0x7d')]=0x1,this[_0x1ffc('0x91')]=this['editor'][_0x1ffc('0x82')]['document']['getRootNames'](),this['_rootNames'][_0x1ffc('0x38')]('$graveyard');}[_0x1ffc('0x9d')](_0x1318d8){this[_0x1ffc('0x50')]=_0x1318d8;const _0x3a0e45=new Map();for(const _0x5b5c6e of this[_0x1ffc('0x91')]){const _0x5c4ec4=J(this['editor']['model'][_0x1ffc('0x7b')][_0x1ffc('0xb9')](_0x5b5c6e));_0x3a0e45[_0x1ffc('0x27')](_0x5b5c6e,_0x5c4ec4);}const _0x24e1aa=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0xc0')])['map'](_0x4e5f02=>[_0x4e5f02['name'],_0x4e5f02[_0x1ffc('0xdb')]()]),_0x3a2ba2=this[_0x1ffc('0x50')][_0x1ffc('0x4a')];this[_0x1ffc('0x1f')](_0x3a2ba2,_0x3a0e45,_0x24e1aa),this['_startingRevisionId']=this[_0x1ffc('0x7d')];}[_0x1ffc('0xcf')](_0x1e5cd5,_0x221cc0){if(this[_0x1ffc('0x22')]===_0x1e5cd5&&this[_0x1ffc('0xaa')]<=_0x221cc0)this[_0x1ffc('0xf1')]['size']>0x1&&this[_0x1ffc('0xc8')](this[_0x1ffc('0xaa')]),this[_0x1ffc('0xcd')](this[_0x1ffc('0xaa')],_0x221cc0,!0x0);else{if(!this[_0x1ffc('0xf1')]['has'](_0x1e5cd5)){const _0x347443=this[_0x1ffc('0x35')](_0x1e5cd5);this[_0x1ffc('0x32')](_0x347443,_0x1e5cd5,!0x1);}this[_0x1ffc('0x32')](_0x1e5cd5,_0x221cc0,!0x0);}return this[_0x1ffc('0x22')]=_0x1e5cd5,this[_0x1ffc('0xaa')]=_0x221cc0,this['_getState']();}[_0x1ffc('0xd8')](_0x4af375){this[_0x1ffc('0x1c')](),this[_0x1ffc('0x22')]=_0x4af375[_0x1ffc('0x5b')],this[_0x1ffc('0xaa')]=_0x4af375[_0x1ffc('0x4d')];for(const _0x1670b2 in _0x4af375[_0x1ffc('0x37')]){const _0x211f1d=this[_0x1ffc('0x29')](_0x4af375[_0x1ffc('0x37')][_0x1670b2]['deletions']);_0x211f1d[_0x1ffc('0x8d')]=_0x1670b2,this[_0x1ffc('0xa2')][_0x1ffc('0x27')](_0x1670b2,_0x211f1d);const _0x287e8c=this[_0x1ffc('0xec')](_0x211f1d);this[_0x1ffc('0x14')][_0x1ffc('0x27')](_0x1670b2,_0x287e8c);for(const [_0x49c0ff,_0x54c4f0]of _0x211f1d[_0x1ffc('0xc0')]){if(!_0x49c0ff['startsWith']('revision:'))continue;const _0x55f1d7=_0x49c0ff['split'](':')[0x2];for(const _0x2ad630 of _0x54c4f0[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x245716=this['_getVidAttributeName'](_0x2ad630),_0x300f29=_0x1ffc('0x36')==_0x2ad630[_0x1ffc('0xd7')]?_0x2ad630['previousPosition'][_0x1ffc('0xc7')]['slice'](0x0,-0x1):_0x2ad630[_0x1ffc('0x3f')][_0x1ffc('0xc7')],_0x3fb031=_0x287e8c[_0x1ffc('0xf')](_0x300f29)[_0x1ffc('0xb0')](_0x245716);this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x3fb031,{'userId':_0x55f1d7});}}}this[_0x1ffc('0x4')]=this[_0x1ffc('0x7d')];const _0x3839f7=[...Array(this[_0x1ffc('0x7d')])[_0x1ffc('0x19')]()]['slice'](0x1)[_0x1ffc('0x51')](_0x3a4107=>!this[_0x1ffc('0xeb')][_0x1ffc('0x2b')](_0x3a4107));let _0xcf6814=0x0;for(const _0x19adb7 in _0x4af375[_0x1ffc('0x37')]){const _0x4a91ae=this[_0x1ffc('0x29')](_0x4af375[_0x1ffc('0x37')][_0x19adb7][_0x1ffc('0xb')]);_0x4a91ae[_0x1ffc('0x8d')]=_0x19adb7,this['_diffRoots']['set'](_0x19adb7,_0x4a91ae);const _0x1e765e=this[_0x1ffc('0xec')](_0x4a91ae,Number[_0x1ffc('0xaf')]);this['_idsRoots'][_0x1ffc('0x27')](_0x19adb7,_0x1e765e);for(const [_0x430c32,_0x1fad8d]of _0x4a91ae[_0x1ffc('0xc0')]){if(!_0x430c32['startsWith'](_0x1ffc('0x1a')))continue;const _0x16b410=_0x430c32[_0x1ffc('0x7a')](':')[0x2];for(const _0x12e65e of _0x1fad8d[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x3537d7=this[_0x1ffc('0x16')](_0x12e65e),_0x5f3de2=this[_0x1ffc('0x7d')]++,_0x3cda4d=_0x1ffc('0x36')==_0x12e65e['type']?_0x12e65e[_0x1ffc('0x3f')][_0x1ffc('0xc7')]['slice'](0x0,-0x1):_0x12e65e[_0x1ffc('0x3f')][_0x1ffc('0xc7')];_0x1e765e['getNodeByPath'](_0x3cda4d)[_0x1ffc('0xb1')](_0x3537d7,_0x5f3de2),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x5f3de2,{'userId':_0x16b410});}}for(const _0x1a1f97 of this[_0x1ffc('0xb6')]['model'][_0x1ffc('0x42')](_0x4a91ae)[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x5f2e57=this[_0x1ffc('0x16')](_0x1a1f97),_0x2d4ee4='elementEnd'==_0x1a1f97['type']?_0x1a1f97[_0x1ffc('0x3f')][_0x1ffc('0xc7')][_0x1ffc('0x6f')](0x0,-0x1):_0x1a1f97[_0x1ffc('0x3f')][_0x1ffc('0xc7')],_0x7d46fe=_0x1e765e['getNodeByPath'](_0x2d4ee4);_0x7d46fe[_0x1ffc('0xb0')](_0x5f2e57)>0x0||_0x7d46fe[_0x1ffc('0xb1')](_0x5f2e57,_0x3839f7[_0xcf6814++]);}const _0x33753b=new _0xfd6a74();_0x33753b['rootName']=_0x1ffc('0xf3'),this['_baseRoots']['set']('$graveyard',_0x33753b),this['_baseIdsRoots'][_0x1ffc('0x27')](_0x1ffc('0xf3'),this[_0x1ffc('0xec')](_0x33753b,0x1));const _0x1fdcf5=new _0xfd6a74();_0x1fdcf5['rootName']='$graveyard',this['_diffRoots'][_0x1ffc('0x27')]('$graveyard',_0x1fdcf5),this['_idsRoots'][_0x1ffc('0x27')]('$graveyard',this['_makeIdsRoot'](_0x1fdcf5,0x1));for(const [_0x42f563,_0x3bec41]of _0x4a91ae[_0x1ffc('0xc0')])_0x42f563[_0x1ffc('0x7e')]('revision:')||this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0x42f563,_0x3bec41);}const _0xe7bf0f=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xbb')])['map'](([_0x575e05,_0x233f6c])=>[_0x575e05,J(_0x233f6c)]);this[_0x1ffc('0x1f')](this['_lastTo'],_0xe7bf0f,this['_markers']);}[_0x1ffc('0x29')](_0x56d3f6){const _0xdbbc1f=JSON['parse'](_0x56d3f6),_0x5241fd=this[_0x1ffc('0xb6')][_0x1ffc('0x74')]['view'][_0x1ffc('0x7b')],_0x4c0ada=new _0x242b3a(_0x5241fd,_0xdbbc1f[_0x1ffc('0xe4')](_0x368908=>F(_0x368908,this[_0x1ffc('0xb6')])));return this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['toModel'](_0x4c0ada);}[_0x1ffc('0x73')](){const _0x2c6cca=new Map();for(const _0x3b4135 of this[_0x1ffc('0x91')]){const _0x43dc35=new _0xfd6a74();_0x43dc35[_0x1ffc('0x8d')]=_0x3b4135,_0x2c6cca[_0x1ffc('0x27')](_0x3b4135,_0x43dc35);}this[_0x1ffc('0x1f')](Number[_0x1ffc('0xaf')],_0x2c6cca,[]);}[_0x1ffc('0x1f')](_0x5a5b93,_0x559c31,_0x3b89b2){const _0x22424b=new Map(_0x559c31),_0x9a0d8e=new Map();for(const [_0x1003b7,_0x2e4cf0]of _0x3b89b2)_0x9a0d8e[_0x1ffc('0x27')](_0x1003b7,{'start':_0x2e4cf0[_0x1ffc('0x87')][_0x1ffc('0x41')](),'end':_0x2e4cf0['end'][_0x1ffc('0x41')](),'rootName':_0x2e4cf0[_0x1ffc('0x92')]['rootName']});this[_0x1ffc('0xf1')][_0x1ffc('0x27')](_0x5a5b93,{'roots':_0x22424b,'markers':_0x9a0d8e});}[_0x1ffc('0xc8')](_0x128ee4){this[_0x1ffc('0xf1')][_0x1ffc('0x88')](_0x128ee4);}[_0x1ffc('0x8b')](){this[_0x1ffc('0x1c')](),this[_0x1ffc('0x22')]=-0x1,this[_0x1ffc('0xaa')]=-0x1,this[_0x1ffc('0xf1')]['clear'](),this[_0x1ffc('0x9d')](this[_0x1ffc('0x50')]);}[_0x1ffc('0x1c')](){this[_0x1ffc('0xeb')][_0x1ffc('0x2f')](),this[_0x1ffc('0x46')][_0x1ffc('0x2f')](),this[_0x1ffc('0xbb')][_0x1ffc('0x2f')](),this['_baseRoots'][_0x1ffc('0x2f')](),this[_0x1ffc('0x94')][_0x1ffc('0x2f')](),this[_0x1ffc('0x14')][_0x1ffc('0x2f')](),this[_0x1ffc('0x2a')][_0x1ffc('0x2f')](),this[_0x1ffc('0x7d')]=0x1,this[_0x1ffc('0x4')]=this['_revisionId'];}[_0x1ffc('0xec')](_0x467a0d,_0xc202d5=null){let _0x43c073=null;_0x467a0d['is'](_0x1ffc('0x4f'))||(_0x43c073=new _0x230a92(_0x467a0d[_0x1ffc('0xbc')],{'vid_start':null===_0xc202d5?this[_0x1ffc('0x7d')]++:_0xc202d5++}));const _0x2e9cf5=[];for(const _0x11eb4e of _0x467a0d[_0x1ffc('0x59')]())if(_0x11eb4e['is'](_0x1ffc('0xf4'))){_0x2e9cf5[_0x1ffc('0x38')](this[_0x1ffc('0xec')](_0x11eb4e,_0xc202d5));const _0x3a73e5=_0x2e9cf5[_0x2e9cf5['length']-0x1];null!==_0xc202d5&&(_0xc202d5=_0x3a73e5['is'](_0x1ffc('0xf4'),_0x1ffc('0x9b'))?_0x3a73e5[_0x1ffc('0xb0')](_0x1ffc('0x33'))+0x1:_0x3a73e5['getAttribute']('vid_end')+0x1);}else for(let _0x5ad1b2=0x0;_0x5ad1b2<_0x11eb4e[_0x1ffc('0xb5')];_0x5ad1b2++)_0x2e9cf5['push'](new _0x230a92('$text',{'vid':null===_0xc202d5?this[_0x1ffc('0x7d')]++:_0xc202d5++}));if(_0x467a0d['is'](_0x1ffc('0x4f'))){const _0x3894bc=new _0xfd6a74(_0x2e9cf5);return _0x3894bc[_0x1ffc('0x8d')]=_0x467a0d['rootName'],_0x3894bc;}return _0x43c073[_0x1ffc('0xb1')](_0x1ffc('0xc4'),null===_0xc202d5?this['_revisionId']++:_0xc202d5++),_0x43c073[_0x1ffc('0x1b')](0x0,_0x2e9cf5),_0x43c073;}[_0x1ffc('0x32')](_0x3e928f,_0x5bf16a,_0x313ae1){this[_0x1ffc('0x1c')]();const {roots:_0x3dcd60,markers:_0x30aad3}=this[_0x1ffc('0xf1')][_0x1ffc('0xda')](_0x3e928f);this['_baseRoots']=new Map(_0x3dcd60);for(const [_0x5d2e2d,_0x5c8e99]of this[_0x1ffc('0xa2')])if('$graveyard'!==_0x5d2e2d&&(this[_0x1ffc('0xbb')][_0x1ffc('0x27')](_0x5d2e2d,J(_0x5c8e99)),_0x313ae1)){const _0x574b8a=this[_0x1ffc('0x7d')];this[_0x1ffc('0x94')][_0x1ffc('0x27')](_0x5d2e2d,this[_0x1ffc('0xec')](_0x5c8e99)),this[_0x1ffc('0x14')]['set'](_0x5d2e2d,this[_0x1ffc('0xec')](_0x5c8e99,_0x574b8a));}this['_startingRevisionId']=this[_0x1ffc('0x7d')],this['_diffRoots']['set'](_0x1ffc('0xf3'),J(this[_0x1ffc('0xa2')][_0x1ffc('0xda')]('$graveyard'))),_0x313ae1&&this[_0x1ffc('0x94')][_0x1ffc('0x27')]('$graveyard',this[_0x1ffc('0xec')](this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x1ffc('0xf3'))));for(const [_0x2d33f6,_0x104594]of _0x30aad3){const _0x59fa06=this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x104594[_0x1ffc('0x8d')]),_0x56c319=this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x104594[_0x1ffc('0x8d')]),_0x51e99a=new _0x21882a(this[_0x1ffc('0xa8')](_0x104594[_0x1ffc('0x87')],_0x59fa06),this[_0x1ffc('0xa8')](_0x104594[_0x1ffc('0xbd')],_0x59fa06)),_0x1901e9=this[_0x1ffc('0x6')](_0x51e99a,_0x56c319);_0x59fa06[_0x1ffc('0xc0')]['set'](_0x2d33f6,_0x51e99a),this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0x2d33f6,_0x1901e9);}this[_0x1ffc('0xcd')](_0x3e928f,_0x5bf16a,_0x313ae1);}[_0x1ffc('0xcd')](_0x5a0184,_0x46095b,_0x429a50){for(const _0x52f0c4 of this['source'][_0x1ffc('0x1')](_0x5a0184,_0x46095b))this[_0x1ffc('0xd3')](_0x52f0c4,_0x429a50);for(const _0x5bd46b of this[_0x1ffc('0xbb')][_0x1ffc('0x84')]())_0x5bd46b[_0x1ffc('0xc0')][_0x1ffc('0x2f')]();for(const [_0x16b88e,_0x50d225]of this[_0x1ffc('0x2a')]){this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x50d225['root'][_0x1ffc('0x8d')])[_0x1ffc('0xc0')][_0x1ffc('0x27')](_0x16b88e,_0x50d225[_0x1ffc('0x41')]());}this[_0x1ffc('0x1f')](_0x46095b,Array['from'](this['_diffRoots'])[_0x1ffc('0xe4')](([_0x2faa63,_0xb44f61])=>[_0x2faa63,J(_0xb44f61)]),this['_markers']);}['_getPreviousFrom'](_0x5e4d91){const _0x15fcd8=Array[_0x1ffc('0xd6')](this['_savedMetaData'][_0x1ffc('0x19')]());_0x15fcd8[_0x1ffc('0xbf')]((_0x1a477c,_0x5239f4)=>_0x1a477c-_0x5239f4),_0x15fcd8[_0x1ffc('0xf2')]();for(const _0x166f0b of _0x15fcd8)if(_0x166f0b<_0x5e4d91)return _0x166f0b;return this[_0x1ffc('0x73')](),Number[_0x1ffc('0xaf')];}['_copyMarkers'](_0x462bcb,_0x20c951){const _0x5b39df=Array['from'](_0x20c951['markers'])[_0x1ffc('0xe4')](([_0x1b7757,_0x5eda30])=>[_0x1b7757,this[_0x1ffc('0x6')](_0x5eda30,_0x462bcb)]);_0x462bcb[_0x1ffc('0xc0')]=new Map(_0x5b39df);}['_transformMarkers'](_0x5e02e6){for(const _0x50e713 of this['_markers']['values']()){const _0x2b6f74=_0x50e713[_0x1ffc('0x90')](_0x5e02e6),_0x462fc9=_0x21882a[_0x1ffc('0x85')](_0x2b6f74);_0x50e713['start']=_0x462fc9[_0x1ffc('0x87')],_0x50e713['end']=_0x462fc9['end'];}}['_handleOperation'](_0x202f10,_0x485c3a){const _0x55e23c=this['_cloneOperation'](_0x202f10,this[_0x1ffc('0xbb')]);if(_0x1ffc('0xef')!==_0x202f10['type']&&(_0x55e23c[_0x1ffc('0x78')](),this[_0x1ffc('0xcb')](_0x55e23c)),_0x485c3a)switch(_0x55e23c['type']){case _0x1ffc('0x3e'):this[_0x1ffc('0x7')](_0x202f10);break;case _0x1ffc('0x28'):case _0x1ffc('0x6b'):case _0x1ffc('0xb8'):this['_handleMoveOperation'](_0x202f10);break;case'merge':this[_0x1ffc('0xcc')](_0x202f10);break;case'split':this[_0x1ffc('0xa4')](_0x202f10);break;case _0x1ffc('0xef'):this[_0x1ffc('0x2e')](_0x202f10);}}['_cloneOperation'](_0x511c77,_0x54f405){const _0x2410fc=_0x511c77[_0x1ffc('0x41')]();return _0x2410fc[_0x1ffc('0xa7')]=_0x511c77[_0x1ffc('0xa7')],this['_fixOperation'](_0x2410fc,_0x54f405),_0x2410fc;}[_0x1ffc('0x3d')](_0x120214){return _0x120214[_0x1ffc('0xe4')](_0x2a0503=>{const _0x2de7ae=this[_0x1ffc('0x16')](_0x2a0503);return Number(_0x2a0503[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x2de7ae));});}['_generateTape'](_0x519b58,_0x19bbfc){if(_0x519b58['is']('element','$text'))_0x19bbfc[_0x1ffc('0x38')]({'item':_0x519b58,'type':'text'});else{_0x519b58['is'](_0x1ffc('0xf4'))&&_0x19bbfc['push']({'item':_0x519b58,'type':_0x1ffc('0x56')});for(const _0xbd0e85 of _0x519b58[_0x1ffc('0x59')]())this['_generateTape'](_0xbd0e85,_0x19bbfc);_0x519b58['is']('element')&&_0x19bbfc[_0x1ffc('0x38')]({'item':_0x519b58,'type':_0x1ffc('0x36')});}return _0x19bbfc;}[_0x1ffc('0x48')](){const _0x79aeb4=this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x40')](),_0x15588c=new Map(this[_0x1ffc('0xeb')]),_0x441f59=new Map(_0x15588c),_0x5d373d=new Map(),_0x590861={'insertions':{},'deletions':{}},_0x984c6e={'insertions':{},'deletions':{}},_0x1dbcbb=new Map();for(const _0x5cf460 of _0x79aeb4){const _0x33152e=this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x5cf460),_0xa1e812=this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x5cf460);_0x590861[_0x1ffc('0xb')][_0x5cf460]=J(_0x33152e),_0x590861['deletions'][_0x5cf460]=J(_0xa1e812),this[_0x1ffc('0x6d')](_0x590861['deletions'][_0x5cf460],_0xa1e812),this[_0x1ffc('0x6d')](_0x590861[_0x1ffc('0xb')][_0x5cf460],_0x33152e),_0x984c6e['insertions'][_0x5cf460]=this['_generateTape'](this[_0x1ffc('0x94')][_0x1ffc('0xda')](_0x5cf460),[]),_0x984c6e[_0x1ffc('0x53')][_0x5cf460]=this[_0x1ffc('0x31')](this['_baseIdsRoots'][_0x1ffc('0xda')](_0x5cf460),[]);}for(const _0x4fe41b of _0x79aeb4){const _0x1a2963=_0x984c6e['insertions'][_0x4fe41b];for(const _0x53e098 of _0x1a2963){const _0x485952=this[_0x1ffc('0x16')](_0x53e098),_0x291aef=_0x53e098[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x485952);_0x441f59[_0x1ffc('0x88')](_0x291aef),_0x291aef>=this[_0x1ffc('0x4')]&&_0x5d373d['set'](_0x291aef,_0x15588c[_0x1ffc('0xda')](_0x291aef));}}for(const _0x1d155d of _0x79aeb4){const _0x2963ca=_0x984c6e[_0x1ffc('0xb')][_0x1d155d],_0x51c2a7=this[_0x1ffc('0x3d')](_0x984c6e[_0x1ffc('0x53')][_0x1d155d]);let _0x3d198d=0x0;for(const _0x54b038 of _0x2963ca){const _0xb58278=this['_getVidAttributeName'](_0x54b038),_0x2de699=_0x54b038[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0xb58278);if(!_0x5d373d[_0x1ffc('0x2b')](_0x2de699)&&!_0x1dbcbb[_0x1ffc('0x2b')](_0x2de699)){if(_0x441f59[_0x1ffc('0x2b')](_0x2de699))_0x3d198d++;else{if(_0x2de699!=_0x51c2a7[_0x3d198d]){const _0x2aad84=_0x15588c[_0x1ffc('0xda')](_0x2de699)||_0x15588c[_0x1ffc('0xda')](_0x51c2a7[_0x3d198d]);for(;_0x2de699!=_0x51c2a7[_0x3d198d];)_0x441f59[_0x1ffc('0x2b')](_0x51c2a7[_0x3d198d])||(_0x1dbcbb[_0x1ffc('0x27')](_0x51c2a7[_0x3d198d],_0x2aad84),_0x15588c[_0x1ffc('0x27')](_0x51c2a7[_0x3d198d],_0x2aad84)),_0x3d198d++;}_0x3d198d++;}}}}for(const _0x29482e of _0x79aeb4){const _0x757487=_0x984c6e[_0x1ffc('0xb')][_0x29482e];for(const _0x223af9 of _0x757487){const _0x283ee2=this[_0x1ffc('0x16')](_0x223af9),_0x474179=_0x223af9['item'][_0x1ffc('0xb0')](_0x283ee2);if(_0x1dbcbb[_0x1ffc('0x2b')](_0x474179)){const _0x138e0e=_0x1dbcbb[_0x1ffc('0xda')](_0x474179);_0x441f59[_0x1ffc('0x2b')](_0x474179)||_0x441f59['set'](_0x474179,{..._0x138e0e}),_0x5d373d[_0x1ffc('0x27')](_0x474179,{..._0x138e0e});}}}for(const _0x499261 of _0x441f59['keys']())_0x499261>=this[_0x1ffc('0x4')]&&_0x441f59[_0x1ffc('0x88')](_0x499261);const _0x339e0c=new Map();for(const _0x44d418 of _0x79aeb4){let _0x2ed6ab=_0x984c6e[_0x1ffc('0xb')][_0x44d418];for(const _0x3208a8 of _0x2ed6ab)if(_0x3208a8[_0x1ffc('0xe5')]['is'](_0x1ffc('0xf4'),_0x1ffc('0x6e'))){const _0x5dee5a=this[_0x1ffc('0x16')](_0x3208a8),_0x3f45dc=_0x3208a8[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x5dee5a);if(_0x5d373d['has'](_0x3f45dc)){const _0x4e29cf=_0x3208a8[_0x1ffc('0xe5')][_0x1ffc('0xd0')][_0x1ffc('0xd0')]['getAttribute']('vid_start'),_0xde4faf=_0x339e0c['get'](_0x4e29cf)||new Set();_0xde4faf[_0x1ffc('0xae')](_0x5d373d[_0x1ffc('0xda')](_0x3f45dc)[_0x1ffc('0x9')]),_0x339e0c[_0x1ffc('0x27')](_0x4e29cf,_0xde4faf);}}_0x2ed6ab=_0x984c6e[_0x1ffc('0x53')][_0x44d418];for(const _0x46cab4 of _0x2ed6ab)if(_0x46cab4[_0x1ffc('0xe5')]['is'](_0x1ffc('0xf4'),_0x1ffc('0x6e'))){const _0x37dad9=this[_0x1ffc('0x16')](_0x46cab4),_0x538c0a=_0x46cab4[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x37dad9);if(_0x441f59[_0x1ffc('0x2b')](_0x538c0a)){const _0x1359ae=_0x46cab4['item'][_0x1ffc('0xd0')][_0x1ffc('0xd0')][_0x1ffc('0xb0')](_0x1ffc('0x5a')),_0x341df6=_0x339e0c[_0x1ffc('0xda')](_0x1359ae)||new Set();_0x341df6['add'](_0x441f59[_0x1ffc('0xda')](_0x538c0a)['userId']),_0x339e0c['set'](_0x1359ae,_0x341df6);}}for(const _0x4b4123 of _0x339e0c[_0x1ffc('0x19')]())(_0x5d373d[_0x1ffc('0x2b')](_0x4b4123)||_0x441f59['has'](_0x4b4123))&&_0x339e0c[_0x1ffc('0x88')](_0x4b4123);}for(const _0x17a890 of _0x79aeb4){const _0x1fe2e8=_0x984c6e[_0x1ffc('0xb')][_0x17a890];let _0x1bb34b=null,_0x96da53=null;for(const _0x4618f6 of _0x1fe2e8){const _0x9bd616=this[_0x1ffc('0x16')](_0x4618f6),_0x1bc636=_0x4618f6[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x9bd616),_0x19f596=_0x339e0c['get'](_0x1bc636);_0x19f596&&_0x1ffc('0x56')==_0x4618f6['type']&&(_0x1bb34b=Array[_0x1ffc('0xd6')](_0x19f596)[0x0],_0x96da53=_0x4618f6['item'][_0x1ffc('0xb0')](_0x1ffc('0xc4'))),_0x1bb34b&&(_0x441f59[_0x1ffc('0x27')](_0x1bc636,{'userId':_0x1bb34b}),_0x5d373d[_0x1ffc('0x27')](_0x1bc636,{'userId':_0x1bb34b})),_0x1bc636==_0x96da53&&(_0x1bb34b=null,_0x96da53=null);}}const _0x3c4d6d={},_0x49e611=new Set();for(const _0x49ffe8 of _0x79aeb4){const _0x5a7552=_0x590861[_0x1ffc('0x53')][_0x49ffe8],_0x5d7730=_0x590861[_0x1ffc('0xb')][_0x49ffe8];for(const {userId:_0x2b9e0c}of this[_0x1ffc('0x46')][_0x1ffc('0x84')]())null!==_0x2b9e0c&&_0x49e611[_0x1ffc('0xae')](_0x2b9e0c);this[_0x1ffc('0x4b')](_0x5d7730,_0x984c6e[_0x1ffc('0xb')][_0x49ffe8],_0x5d373d,'insertion',_0x49e611),this['_markChanges'](_0x5a7552,_0x984c6e[_0x1ffc('0x53')][_0x49ffe8],_0x441f59,_0x1ffc('0xb4'),_0x49e611),_0x3c4d6d[_0x49ffe8]={'insertions':this[_0x1ffc('0x58')](_0x5d7730),'deletions':this[_0x1ffc('0x58')](_0x5a7552)};}return{'diffData':_0x3c4d6d,'authorsIds':Array[_0x1ffc('0xd6')](_0x49e611)};}[_0x1ffc('0x64')](_0xb895ab){for(const [,_0x137bab]of _0xb895ab['markers']){const _0xfff0ef=_0x137bab['start']['getAncestors']()['filter'](_0x250bc4=>_0x1ffc('0x6e')==_0x250bc4['name']);for(const _0x5be3e4 of _0xfff0ef)0x1==_0x5be3e4[_0x1ffc('0x69')]&&_0x5be3e4[_0x1ffc('0x2d')](0x0)['is'](_0x1ffc('0xf4'),_0x1ffc('0x26'))&&_0x5be3e4[_0x1ffc('0x2d')](0x0)[_0x1ffc('0xb1')]('keepParagraph',!0x0);}}[_0x1ffc('0x58')](_0x4d9bd1){this[_0x1ffc('0x64')](_0x4d9bd1);const _0xd5ac9b=this[_0x1ffc('0xb6')][_0x1ffc('0xce')][_0x1ffc('0xd1')](_0x4d9bd1,{}),_0x524360=Array[_0x1ffc('0xd6')](_0xd5ac9b[_0x1ffc('0x59')]())[_0x1ffc('0xe4')](_0x550b03=>this[_0x1ffc('0xc2')](_0x550b03));return JSON[_0x1ffc('0x97')](_0x524360);}[_0x1ffc('0xc2')](_0x368ce2){if(_0x368ce2['is'](_0x1ffc('0x9c')))return _0x368ce2[_0x1ffc('0xce')];return{'type':Object[_0x1ffc('0x19')](V)['find'](_0x39cdf4=>_0x368ce2 instanceof V[_0x39cdf4]),'name':_0x368ce2[_0x1ffc('0xbc')],'attributes':Array[_0x1ffc('0xd6')](_0x368ce2['getAttributes']()),'children':Array[_0x1ffc('0xd6')](_0x368ce2[_0x1ffc('0x59')]())[_0x1ffc('0xe4')](_0x4fb103=>this[_0x1ffc('0xc2')](_0x4fb103))};}[_0x1ffc('0x4b')](_0x1d6085,_0x3b6f4d,_0x2b9968,_0x5d6384,_0x2a6386){let _0x456799=null,_0x1aee14=null,_0x39df5b=0x0;const _0x42edc1=this['editor'][_0x1ffc('0x82')];for(let _0x1e668a=0x0;_0x1e668a<_0x3b6f4d[_0x1ffc('0x76')];_0x1e668a++){const _0x2b1337=this[_0x1ffc('0x16')](_0x3b6f4d[_0x1e668a]),_0x12b433=_0x3b6f4d[_0x1e668a][_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x2b1337),_0x2baa21=_0x2b9968[_0x1ffc('0xda')](_0x12b433),_0x52b66d=_0x1e668a==_0x3b6f4d[_0x1ffc('0x76')]-0x1;(!_0x456799&&_0x2baa21&&(_0x456799=_0x2baa21,_0x1aee14=_0x3b6f4d[_0x1e668a]),_0x456799&&(!_0x2baa21||_0x2baa21[_0x1ffc('0x9')]!=_0x456799['userId']))&&(_0x44295d(_0x2baa21,j(_0x1aee14,_0x1d6085,_0x42edc1),j(_0x3b6f4d[_0x1e668a],_0x1d6085,_0x42edc1)),_0x456799=_0x2baa21||null,_0x1aee14=_0x2baa21?_0x3b6f4d[_0x1e668a]:null),_0x456799&&_0x52b66d&&_0x44295d(_0x2baa21,j(_0x1aee14,_0x1d6085,_0x42edc1),B(_0x3b6f4d[_0x1e668a],_0x1d6085,_0x42edc1));}function _0x44295d(_0x15b19c,_0x1382f1,_0x3e22e7){const _0x1ab7aa=_0x456799[_0x1ffc('0x9')],_0x19ec44=_0x1ffc('0x1a')+_0x5d6384+':'+_0x1ab7aa+':'+_0x39df5b++,_0x2c7f91=_0x42edc1[_0x1ffc('0x80')](_0x1382f1,_0x3e22e7);_0x1d6085[_0x1ffc('0xc0')][_0x1ffc('0x27')](_0x19ec44,_0x2c7f91),null!==_0x1ab7aa&&_0x2a6386[_0x1ffc('0xae')](_0x1ab7aa);}}['_getVidAttributeName'](_0xdaa4fd){switch(_0xdaa4fd[_0x1ffc('0xd7')]){case'elementStart':return _0x1ffc('0x5a');case _0x1ffc('0x36'):return _0x1ffc('0xc4');default:return _0x1ffc('0x33');}}[_0x1ffc('0x57')](_0x25ec9f,_0x478680){_0x25ec9f['baseVersion']=null;for(const _0x395ec7 in _0x25ec9f){if(_0x25ec9f[_0x395ec7]instanceof _0x29deb2){const _0x37a663=_0x478680[_0x1ffc('0xda')](_0x25ec9f[_0x395ec7][_0x1ffc('0x92')]['rootName']);_0x25ec9f[_0x395ec7]=this[_0x1ffc('0xa8')](_0x25ec9f[_0x395ec7],_0x37a663);}if(_0x25ec9f[_0x395ec7]instanceof _0x21882a){const _0x4ca2b9=_0x478680['get'](_0x25ec9f[_0x395ec7][_0x1ffc('0x92')][_0x1ffc('0x8d')]);_0x25ec9f[_0x395ec7]=this[_0x1ffc('0x6')](_0x25ec9f[_0x395ec7],_0x4ca2b9);}}_0x25ec9f[_0x1ffc('0x92')]&&(_0x25ec9f['root']=_0x478680[_0x1ffc('0xda')](_0x25ec9f['root'][_0x1ffc('0x8d')]));}['_fixRange'](_0x58e111,_0x40acc3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58e111[_0x1ffc('0x87')],_0x40acc3),this[_0x1ffc('0xa8')](_0x58e111[_0x1ffc('0xbd')],_0x40acc3));}[_0x1ffc('0xa8')](_0x1f28c5,_0x43b009){return this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x70')](_0x43b009,_0x1f28c5['path'],_0x1f28c5[_0x1ffc('0xba')]);}[_0x1ffc('0x7')](_0x10543a){const _0x70a88d=this[_0x1ffc('0x94')]['get'](_0x10543a[_0x1ffc('0xc3')][_0x1ffc('0x92')][_0x1ffc('0x8d')]),_0x3e0b1f=this['_fixPosition'](_0x10543a['position'],_0x70a88d),_0x5183b7=null===_0x10543a[_0x1ffc('0xa7')]?null:_0x10543a[_0x1ffc('0xa7')]||this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x353c85=_0x3e0b1f['parent'],_0x46ccfa=this['_revisionId'],_0x42d5b8=[];for(const _0x4a58f9 of _0x10543a[_0x1ffc('0x55')])if(_0x4a58f9['is'](_0x1ffc('0xf4')))_0x42d5b8[_0x1ffc('0x38')](this[_0x1ffc('0xec')](_0x4a58f9));else for(let _0x158f20=0x0;_0x158f20<_0x4a58f9[_0x1ffc('0xb5')];_0x158f20++)_0x42d5b8[_0x1ffc('0x38')](new _0x230a92('$text',{'vid':this[_0x1ffc('0x7d')]++}));const _0x88fc3e=this[_0x1ffc('0x7d')];for(let _0x221ca9=_0x46ccfa;_0x221ca9<_0x88fc3e;_0x221ca9++)this[_0x1ffc('0xeb')]['set'](_0x221ca9,{'userId':_0x5183b7});_0x353c85[_0x1ffc('0x1b')](_0x3e0b1f[_0x1ffc('0xe6')],_0x42d5b8);}[_0x1ffc('0x61')](_0x3a3068){(_0x3a3068=this[_0x1ffc('0xe3')](_0x3a3068,this[_0x1ffc('0x94')]))[_0x1ffc('0x78')]();const _0x4440cd=null===_0x3a3068[_0x1ffc('0xa7')]?null:_0x3a3068[_0x1ffc('0xa7')]||this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x3c86eb=_0x3a3068[_0x1ffc('0x62')](),_0xdf1417=_0x3c86eb['parent'],_0x84c461=_0x3c86eb['offset'];!function _0x11544b(_0x2522af,_0x548f3b,_0x519160,_0x31f363){for(let _0x13b7fa=_0x519160;_0x13b7fa<_0x31f363;_0x13b7fa++){const _0xae7a62=_0x548f3b['getChild'](_0x13b7fa);_0xae7a62['is']('element',_0x1ffc('0x9b'))?_0x2522af[_0x1ffc('0x27')](_0xae7a62[_0x1ffc('0xb0')]('vid'),{'userId':_0x4440cd}):(_0x2522af[_0x1ffc('0x27')](_0xae7a62['getAttribute'](_0x1ffc('0x5a')),{'userId':_0x4440cd}),_0x11544b(_0x2522af,_0xae7a62,0x0,_0xae7a62['childCount']),_0x2522af[_0x1ffc('0x27')](_0xae7a62[_0x1ffc('0xb0')](_0x1ffc('0xc4')),{'userId':_0x4440cd}));}}(this[_0x1ffc('0xeb')],_0xdf1417,_0x84c461,_0x84c461+_0x3a3068[_0x1ffc('0x9a')]);}[_0x1ffc('0xcc')](_0x2eb287){const _0xb147ed=null===(_0x2eb287=this[_0x1ffc('0xe3')](_0x2eb287,this[_0x1ffc('0x94')]))[_0x1ffc('0xa7')]?null:_0x2eb287[_0x1ffc('0xa7')]||this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0xfa0d99=_0x2eb287[_0x1ffc('0x8f')][_0x1ffc('0xd0')],_0x4b3f4b=_0x2eb287[_0x1ffc('0xad')]['parent'],_0x236fd5=_0xfa0d99[_0x1ffc('0xb0')](_0x1ffc('0xc4')),_0x411e45=_0x4b3f4b[_0x1ffc('0xb0')]('vid_start');_0xfa0d99[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x4b3f4b[_0x1ffc('0xb0')]('vid_end')),_0x4b3f4b[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x236fd5),this['_touched'][_0x1ffc('0x27')](_0x411e45,{'userId':_0xb147ed}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x236fd5,{'userId':_0xb147ed}),_0x2eb287[_0x1ffc('0x78')]();}[_0x1ffc('0xa4')](_0x17d998){const _0x31106f=null===(_0x17d998=this['_cloneOperation'](_0x17d998,this[_0x1ffc('0x94')]))[_0x1ffc('0xa7')]?null:_0x17d998[_0x1ffc('0xa7')]||this[_0x1ffc('0xb6')]['plugins'][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x1e1bdb=_0x17d998[_0x1ffc('0x3c')],_0x456a7f=_0x17d998[_0x1ffc('0x60')][_0x1ffc('0xd0')];_0x17d998['_execute']();const _0x5e40ca=_0x456a7f[_0x1ffc('0xb0')]('vid_end'),_0x1d8ced=_0x17d998['insertionPosition'][_0x1ffc('0x12')];if(_0x1e1bdb){const _0x226666=_0x1d8ced[_0x1ffc('0xb0')](_0x1ffc('0xc4')),_0x242fbe=_0x456a7f['getAttribute'](_0x1ffc('0xc4'));_0x456a7f['_setAttribute'](_0x1ffc('0xc4'),_0x226666),_0x1d8ced['_setAttribute'](_0x1ffc('0xc4'),_0x242fbe),this['_touched'][_0x1ffc('0x27')](_0x456a7f[_0x1ffc('0xb0')](_0x1ffc('0xc4')),{'userId':_0x31106f}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x1d8ced[_0x1ffc('0xb0')]('vid_start'),{'userId':_0x31106f});}else{const _0x5c8541=this['_revisionId']++,_0x3218cd=this['_revisionId']++;_0x456a7f['_setAttribute'](_0x1ffc('0xc4'),_0x5c8541),_0x1d8ced[_0x1ffc('0xb1')](_0x1ffc('0x5a'),_0x3218cd),_0x1d8ced[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x5e40ca),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x5c8541,{'userId':_0x31106f}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x3218cd,{'userId':_0x31106f});}}[_0x1ffc('0x2e')](_0xbed57d){if(!_0xbed57d[_0x1ffc('0x4c')])return;const _0x3778c2=(_0xbed57d=this[_0x1ffc('0xe3')](_0xbed57d,this[_0x1ffc('0xbb')]))[_0x1ffc('0x5')]?_0xbed57d['oldRange'][_0x1ffc('0x92')]:null,_0x3fe3c8=_0xbed57d[_0x1ffc('0xa3')]?_0xbed57d[_0x1ffc('0xa3')][_0x1ffc('0x92')]:null;_0x3778c2&&this[_0x1ffc('0x2a')][_0x1ffc('0x88')](_0xbed57d[_0x1ffc('0xbc')]),_0x3fe3c8&&this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0xbed57d['name'],_0xbed57d[_0x1ffc('0xa3')][_0x1ffc('0x41')]());const _0x86395b=null===_0xbed57d['_authorId']?null:_0xbed57d['_authorId']||this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x3a82ea=_0xbed57d[_0x1ffc('0xbc')];if(!this[_0x1ffc('0x46')]['has'](_0x3a82ea))return void this[_0x1ffc('0x46')]['set'](_0x3a82ea,{'range':_0xbed57d['oldRange'],'userId':_0x86395b});const _0x514d70=this[_0x1ffc('0x46')][_0x1ffc('0xda')](_0x3a82ea),_0x2e7047=_0x514d70[_0x1ffc('0xc9')],_0x6df361=_0xbed57d[_0x1ffc('0xa3')];null==_0x2e7047&&null==_0x6df361||_0x2e7047&&_0x6df361&&_0x2e7047[_0x1ffc('0x9f')](_0x6df361)?this['_touchedMarkers']['delete'](_0xbed57d['name']):_0x514d70[_0x1ffc('0x9')]=_0x86395b;}}function J(_0x3d701b){const _0x13e7da=new _0xfd6a74();_0x13e7da[_0x1ffc('0x8d')]=_0x3d701b['rootName'];for(const _0x32b2ad of _0x3d701b[_0x1ffc('0x59')]()){const _0x2e458c=_0x32b2ad[_0x1ffc('0xca')](!0x0);_0x13e7da['_appendChild'](_0x2e458c);}return _0x13e7da;}function j(_0x37dcb1,_0x30152c,_0x1e0d99){const _0x560ca7='elementEnd'==_0x37dcb1['type']?_0x1e0d99[_0x1ffc('0xe7')](_0x37dcb1[_0x1ffc('0xe5')],_0x1ffc('0xbd')):_0x1e0d99['createPositionBefore'](_0x37dcb1[_0x1ffc('0xe5')]);return _0x560ca7[_0x1ffc('0x92')]=_0x30152c,_0x560ca7;}function B(_0x188fd9,_0x55543a,_0x7c2cf8){const _0x3d79ee=_0x1ffc('0x56')==_0x188fd9['type']?_0x7c2cf8[_0x1ffc('0xe7')](_0x188fd9[_0x1ffc('0xe5')],0x0):_0x7c2cf8[_0x1ffc('0xdf')](_0x188fd9['item']);return _0x3d79ee['root']=_0x55543a,_0x3d79ee;}
23
+ const _0x450b=['RevisionsRepository','editor','_removeRevisionMarkers','clear','_startingRevisionId','bind','revision-end','addRevision','saveRevision','_getState','attributes','forEach','parse','merge','createRevision','revision:','_getBaseVids','item','_saveMetaData','get','_touched','_pendingAction','conversion','repository','_savedMetaData','update','createPositionFromPath','toView','_loadRevisionData','_handleMergeOperation','keys','affectsData','_prepareViewToSave','set','_getPreviousFrom','processor','insertionPosition','getChild','reverse','reinsert','path','useFillerType','sort','addRevisionData','_createFromRanges','version','marker','history','offsetSize','elementStart','_copyMarkers','values','_revisionDataBuilder','_handleMarkerOperation','_fixPosition','has','Users','PendingActions','getOperation','loadState','insertion','splitPosition','_isPendingUpdate','remove','length','_markers','pluginName','_calculateMetaData','_lastFrom','targetPosition','from','add','define','_touchedMarkers','position','plugins','parent','deletion','buildRevisionData','createPositionBefore','root','range','isEnabled','oldRange','deletions','max','isEqual','upcast','toVersion','stickiness','rootName','_removePendingAction','getRevisions','adapter','element','vid_start','init','start','_authorId','_setConversion','_execute','locale','_idsRoots','nodes','_cloneOperation','revisionHistory.resumeUnsavedRevision','getChildren','createPositionAt','offset','_createCurrentRevision','split','_initialRevisionId','_markChanges','_makeRevision','currentRevision','view','tableCell','_reset','vid','_generateTape','authors','_replaceEditorDataWithRevisionData','_addPendingAction','insertions','collaboration.channelId','_startingVersion','getRevision','trim','_source','documentFragment','_operations','creator','newRange','getData','default','then','sendBufferedUpdates','initialData','getRevisionDocumentData','end','insert','revision','createdAt','getLatestVersion','_removeMetaData','_handleOperation','stringify','_makeModelFromViewString','getTransformedByOperation','getAncestors','elementEnd','_handleSplitOperation','data','push','fromVersion','initial','_bufferUpdate','type','RevisionTracker','slice','editing','graveyardPosition','getCurrentRevisionId','previousPosition','_getVidAttributeName','string','$graveyard','_update','text','hasContent','markerToData','getUser','for','config','vid_end','children','_clone','_createInitialRevision','_revisionId','getAttribute','size','_continueCurrentRevision','_loadedStateData','keepParagraph','nodeAfter','_diffRoots','updateRevisions','source','_bufferedUpdates','find','getRootNames','toModel','move','data-revision-','document','createRangeIn','$text','ready','_loadState','startsWith','_fixOperation','getNodeByPath','afterInit','toData','_lastTo','resolve','map','sourcePosition','_fixRange','_rootNames','getTime','model','reInit','diffData','baseVersion','_findInsertionIndex','_handleMoveOperation','authorsIds','filter','howMany','_transformMarkers','_setAttribute','_baseRoots','getWalker','_processRootBeforeSave','markers','setRevisionData','getAttributes','childCount','_applyOperations','NEGATIVE_INFINITY','creatorId','_handleInsertOperation','userId','isReady','RealTimeCollaborationClient','_baseIdsRoots','_getViewJson','_getFromVersion','name','roots','_makeIdsRoot','delete','createRange','clone'];(function(_0x4bcc33,_0x450b7e){const _0x5c6d95=function(_0x27b188){while(--_0x27b188){_0x4bcc33['push'](_0x4bcc33['shift']());}};_0x5c6d95(++_0x450b7e);}(_0x450b,0x1a2));const _0x5c6d=function(_0x4bcc33,_0x450b7e){_0x4bcc33=_0x4bcc33-0x0;let _0x5c6d95=_0x450b[_0x4bcc33];return _0x5c6d95;};import{Users as _0x110f5e}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x881c2f,PendingActions as _0x1cb1d5}from'ckeditor5/src/core';import{logWarning as _0x1ebf2e,uid as _0x187adc}from'ckeditor5/src/utils';import{Position as _0x302755,Range as _0x4bafe2,Element as _0x32778a,DocumentFragment as _0x5c8a1f,ViewText as _0xfc94e1,ViewElement as _0xa5b306,ViewContainerElement as _0x1a386b,ViewAttributeElement as _0x243804,ViewEmptyElement as _0xf4c31b,ViewRawElement as _0x1c1300,ViewUIElement as _0x49ced0,ViewDocumentFragment as _0x4ceba3}from'ckeditor5/src/engine';import _0x1ecbb8 from'./revisionsrepository';import{getTranslation as _0x2e38bf}from'./utils/common-translations';const V={'c':_0x1a386b,'a':_0x243804,'e':_0xf4c31b,'r':_0x1c1300,'u':_0x49ced0};export default class l extends _0x881c2f{static get[_0x5c6d('0x8a')](){return _0x5c6d('0xe6');}static get['requires'](){return[_0x110f5e,_0x1ecbb8,_0x1cb1d5];}constructor(..._0x4fd498){super(..._0x4fd498),this[_0x5c6d('0xa5')]=null,this['set'](_0x5c6d('0x3d'),!0x1),this[_0x5c6d('0x69')](_0x5c6d('0x9a'),!0x0),this[_0x5c6d('0xba')]=null;const _0x533961=_0x187adc();this[_0x5c6d('0xc8')]={'history':this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x15')][_0x5c6d('0x77')],'getLatestVersion':()=>Promise['resolve'](this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x15')][_0x5c6d('0x75')]),'getCurrentRevisionId':()=>_0x533961},this['_revisionDataBuilder']=new T(this[_0x5c6d('0x49')]),this[_0x5c6d('0xb7')]=this['editor']['config'][_0x5c6d('0x5b')](_0x5c6d('0xc4'))||_0x5c6d('0xe3'),this[_0x5c6d('0x69')]('isPendingUpdate',!0x1),this[_0x5c6d('0xf')]=new Map(),this[_0x5c6d('0x49')]['config'][_0x5c6d('0x90')](_0x5c6d('0xb1'),!0x0),this[_0x5c6d('0x9')]=null,this[_0x5c6d('0x49')][_0x5c6d('0x5e')][_0x5c6d('0xf4')](_0x5c6d('0x9f'))['dataToMarker']({'view':'revision'});}['init'](){this[_0x5c6d('0x5f')]=this['editor']['plugins'][_0x5c6d('0x5b')](_0x5c6d('0x48')),this[_0x5c6d('0xab')](),this[_0x5c6d('0x49')][_0x5c6d('0xe0')]['on'](_0x5c6d('0x18'),()=>{const _0x56cc3b=this[_0x5c6d('0x5f')]['getRevision'](0x0),_0x1f38a7=_0x56cc3b&&null===_0x56cc3b['creator']?_0x56cc3b:null;if(this[_0x5c6d('0x8')]=!!_0x1f38a7&&this[_0x5c6d('0x49')]['config'][_0x5c6d('0x5b')](_0x5c6d('0xb1')),this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x7f')](_0x5c6d('0x3e'))){const _0x3d10d8=this['_source']['getCurrentRevisionId'](),_0x5efe75=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](_0x3d10d8);if(_0x5efe75)this['_startingVersion']=_0x5efe75[_0x5c6d('0xe2')],this[_0x5c6d('0x8')]=!0x1;else{const _0x28e2a1=this['_source'][_0x5c6d('0x77')][_0x5c6d('0xca')][_0x5c6d('0x10')](_0x4e82d2=>!_0x4e82d2['_isInit']),_0xb603e1=_0x28e2a1?_0x28e2a1['baseVersion']:this[_0x5c6d('0xc8')][_0x5c6d('0x77')][_0x5c6d('0x75')];_0x56cc3b?(_0x56cc3b[_0x5c6d('0xa0')]<_0xb603e1&&_0x56cc3b[_0x5c6d('0xef')]({'toVersion':_0xb603e1}),this[_0x5c6d('0x8')]?(this[_0x5c6d('0xc8')][_0x5c6d('0xea')]=()=>_0x1f38a7['id'],this[_0x5c6d('0xc5')]=_0x1f38a7[_0x5c6d('0xe2')]):(this[_0x5c6d('0xc5')]=_0x56cc3b['toVersion'],this[_0x5c6d('0x8')]=!0x1)):(this[_0x5c6d('0xc5')]=_0xb603e1,this[_0x5c6d('0x8')]=!0x1);}}else _0x1f38a7&&(this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x15')]['history'][_0x5c6d('0x75')]=Math[_0x5c6d('0x9d')](_0x1f38a7[_0x5c6d('0xa0')],this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x15')][_0x5c6d('0x77')][_0x5c6d('0x75')]),_0x1f38a7['fromVersion']===_0x1f38a7[_0x5c6d('0xa0')]?(0x0!==_0x1f38a7[_0x5c6d('0xe2')]&&(this[_0x5c6d('0xc8')][_0x5c6d('0xea')]=()=>_0x1f38a7['id']),this[_0x5c6d('0x8')]=!0x1):this[_0x5c6d('0x8')]&&(this[_0x5c6d('0xc8')]['getCurrentRevisionId']=()=>_0x1f38a7['id'],this[_0x5c6d('0xc5')]=_0x1f38a7[_0x5c6d('0xe2')])),this['_continueCurrentRevision']||(this[_0x5c6d('0xc5')]=this['editor']['model'][_0x5c6d('0x15')]['version']);this[_0x5c6d('0x7c')][_0x5c6d('0xa8')](this['_source'][_0x5c6d('0x77')]),this[_0x5c6d('0x4')](this['_startingVersion']),this[_0x5c6d('0xb5')](this[_0x5c6d('0xc5')]),this[_0x5c6d('0xa5')]&&this[_0x5c6d('0xd0')]();}),this[_0x5c6d('0x4d')](_0x5c6d('0x3d'))['to'](this,_0x5c6d('0x86'),_0x42adaf=>!_0x42adaf);}async[_0x5c6d('0x1d')](){if(this[_0x5c6d('0x5f')][_0x5c6d('0x88')]>0x0){const _0x46f72a=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](0x0),_0x2695c9=await this[_0x5c6d('0xd2')](_0x46f72a);this[_0x5c6d('0xc1')](_0x2695c9);}}['setSource'](_0x2c4a46){this[_0x5c6d('0xc8')]=_0x2c4a46;}async[_0x5c6d('0x61')](){const _0x14c163=await this[_0x5c6d('0xc8')]['getLatestVersion']();if(_0x14c163>this[_0x5c6d('0xba')]['toVersion']){await this[_0x5c6d('0x19')]();const _0xab4880=this[_0x5c6d('0x96')]({'revision':this[_0x5c6d('0xba')],'to':_0x14c163});_0xab4880[_0x5c6d('0xc0')]=_0xab4880[_0x5c6d('0x2c')][_0x5c6d('0x21')](_0x1f5b43=>this['editor']['plugins'][_0x5c6d('0x5b')](_0x5c6d('0x80'))[_0x5c6d('0xf3')](_0x1f5b43)),this[_0x5c6d('0xba')][_0x5c6d('0xef')](_0xab4880);}}async['_loadState'](){this[_0x5c6d('0x8')]&&!this[_0x5c6d('0x9')]&&(await this[_0x5c6d('0x64')](this['currentRevision']),this[_0x5c6d('0x7c')][_0x5c6d('0x83')](this[_0x5c6d('0xba')]),this[_0x5c6d('0x9')]={'fromVersion':this[_0x5c6d('0xba')]['fromVersion'],'authors':this[_0x5c6d('0xba')][_0x5c6d('0xc0')][_0x5c6d('0xe7')]()});}async[_0x5c6d('0x50')](_0x2b99f4={},_0x31b66e=null){const _0x3e4808=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31b66e>this[_0x5c6d('0xba')]['toVersion']&&(_0x31b66e=null),null===_0x31b66e&&(_0x31b66e=await this[_0x5c6d('0xc8')][_0x5c6d('0xd7')]());const _0x5a12a0=this['_getFromVersion'](_0x31b66e),_0x32a7be=this[_0x5c6d('0x96')]({'from':_0x5a12a0,'to':_0x31b66e});if(this['currentRevision'][_0x5c6d('0xa0')]<_0x31b66e){const _0x4cae31=this['buildRevisionData']({'revision':this[_0x5c6d('0xba')],'from':_0x31b66e,'to':_0x31b66e});_0x4cae31[_0x5c6d('0xc0')]=[],_0x4cae31['authorsIds']=[],_0x4cae31['id']=this[_0x5c6d('0xba')]['id'],this[_0x5c6d('0xba')]['_update'](_0x4cae31,!0x0),delete _0x4cae31[_0x5c6d('0xc0')],_0x3e4808[_0x5c6d('0xe1')](_0x4cae31);}_0x2b99f4[_0x5c6d('0x3a')]=this[_0x5c6d('0x49')]['plugins'][_0x5c6d('0x5b')](_0x5c6d('0x80'))['me']['id'],_0x2b99f4[_0x5c6d('0x42')]=_0x2b99f4[_0x5c6d('0x42')]||null,_0x2b99f4['id']=_0x2b99f4['id']||_0x187adc(),_0x2b99f4={..._0x2b99f4,..._0x32a7be};const _0x1b6a9d=this[_0x5c6d('0x73')](_0x2b99f4);_0x3e4808[_0x5c6d('0xe1')](_0x2b99f4);const _0xf2a456=this[_0x5c6d('0x5f')]['getIndex'](_0x1b6a9d);if(0x0!==_0xf2a456){const _0xdc3099=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](_0xf2a456-0x1);if(_0xdc3099[_0x5c6d('0xe2')]!==_0x31b66e){const _0x3f7daf=this[_0x5c6d('0x7c')][_0x5c6d('0xcd')](_0x31b66e,_0xdc3099[_0x5c6d('0xa0')]),_0x1570fa={'id':_0xdc3099['id'],'diffData':_0x3f7daf[_0x5c6d('0x28')],'authorsIds':_0x3f7daf[_0x5c6d('0x2c')],'authors':_0x3f7daf[_0x5c6d('0x2c')][_0x5c6d('0x21')](_0x1a199d=>this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')](_0x5c6d('0x80'))[_0x5c6d('0xf3')](_0x1a199d)),'fromVersion':_0x31b66e};_0xdc3099===this[_0x5c6d('0xba')]&&(_0x1570fa[_0x5c6d('0xd6')]=new Date(_0x2b99f4[_0x5c6d('0xd6')][_0x5c6d('0x25')]()+0xa)),_0xdc3099[_0x5c6d('0xef')](_0x1570fa,!0x0),delete _0x1570fa[_0x5c6d('0xc0')],_0x3e4808['push'](_0x1570fa);}}if(this[_0x5c6d('0xa5')]){for(const _0x50ba19 of _0x3e4808)this['_bufferUpdate'](_0x50ba19['id'],_0x50ba19,!0x0);this[_0x5c6d('0xd0')]();}return _0x1b6a9d;}[_0x5c6d('0x73')](_0x86fd97){const _0x3c0a2e=this[_0x5c6d('0x5f')][_0x5c6d('0x56')](_0x86fd97);return this[_0x5c6d('0xa5')]&&_0x3c0a2e['on'](_0x5c6d('0xef'),(_0x313930,_0x33cfe5,_0x597451)=>{_0x597451||(this['_bufferUpdate'](_0x33cfe5['id'],_0x33cfe5,!0x0),this[_0x5c6d('0xd0')]());}),this[_0x5c6d('0x5f')][_0x5c6d('0x4f')](_0x3c0a2e,this['_findInsertionIndex'](_0x3c0a2e)),_0x3c0a2e;}async[_0x5c6d('0xd2')](_0x40fcf9){await this[_0x5c6d('0x64')](_0x40fcf9);const _0x4c3274={};for(const _0x38fdf2 in _0x40fcf9[_0x5c6d('0x28')]){const _0x1520f6=this[_0x5c6d('0x4a')](JSON[_0x5c6d('0x54')](_0x40fcf9[_0x5c6d('0x28')][_0x38fdf2][_0x5c6d('0xc3')])),_0x191354=this[_0x5c6d('0x49')][_0x5c6d('0xe8')][_0x5c6d('0xbb')][_0x5c6d('0x15')],_0x3b4e00=new _0x4ceba3(_0x191354,_0x1520f6[_0x5c6d('0x21')](_0x576925=>F(_0x576925,this['editor'])));this['editor']['data'][_0x5c6d('0x6b')][_0x5c6d('0x71')]('marked'),_0x4c3274[_0x38fdf2]=this[_0x5c6d('0x49')][_0x5c6d('0xe0')][_0x5c6d('0x6b')][_0x5c6d('0x1e')](_0x3b4e00),this[_0x5c6d('0x49')][_0x5c6d('0xe0')]['processor'][_0x5c6d('0x71')](_0x5c6d('0xce'));}return _0x4c3274;}[_0x5c6d('0xd0')](){if(0x0===this[_0x5c6d('0xf')][_0x5c6d('0x7')])return;if(this[_0x5c6d('0x86')])return;let _0xf7efca=Array[_0x5c6d('0x8e')](this[_0x5c6d('0xf')][_0x5c6d('0x7b')]());this[_0x5c6d('0xf')]['clear']();for(let _0x1a4c71=0x0;_0x1a4c71<_0xf7efca[_0x5c6d('0x88')];_0x1a4c71++){const _0x22c1cb=_0xf7efca[_0x1a4c71];let _0x40845f=!0x1;for(const _0x574289 of Object[_0x5c6d('0x66')](_0x22c1cb))void 0x0===_0x22c1cb[_0x574289]?delete _0x22c1cb[_0x574289]:'id'!==_0x574289&&(_0x40845f=!0x0);_0x40845f||(_0xf7efca[_0x1a4c71]=null);}if(_0xf7efca=_0xf7efca[_0x5c6d('0x2d')](_0x39d1fa=>null!==_0x39d1fa),!_0xf7efca['length'])return;for(let _0x4d873a=0x0;_0x4d873a<_0xf7efca[_0x5c6d('0x88')];_0x4d873a++){const _0x304de2=_0xf7efca[_0x4d873a];void 0x0!==_0x304de2[_0x5c6d('0xe2')]&&void 0x0===_0x304de2[_0x5c6d('0xa0')]&&(_0x304de2[_0x5c6d('0xa0')]=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](_0x304de2['id'])[_0x5c6d('0xa0')]),void 0x0!==_0x304de2['toVersion']&&void 0x0===_0x304de2[_0x5c6d('0xe2')]&&(_0x304de2['fromVersion']=this[_0x5c6d('0x5f')][_0x5c6d('0xc6')](_0x304de2['id'])[_0x5c6d('0xe2')]);}const _0x55f3fb=this[_0x5c6d('0x49')]['config'][_0x5c6d('0x5b')](_0x5c6d('0xc4'));this[_0x5c6d('0x86')]=!0x0,this[_0x5c6d('0xc2')](),this[_0x5c6d('0xa5')][_0x5c6d('0xd')](_0xf7efca,_0x55f3fb)['finally'](()=>{this[_0x5c6d('0x86')]=!0x1;})[_0x5c6d('0xcf')](_0x24a803=>{if(_0x24a803)for(const _0x5e5658 of _0x24a803)this[_0x5c6d('0x35')]({'id':_0x5e5658['id'],'createdAt':_0x5e5658[_0x5c6d('0xd6')]});this[_0x5c6d('0xa3')](),this['sendBufferedUpdates']();});}[_0x5c6d('0xc1')](_0x5ca096){let _0x32ae1d=this[_0x5c6d('0x49')][_0x5c6d('0x0')][_0x5c6d('0x5b')](_0x5c6d('0xd1'));if(void 0x0===_0x32ae1d){_0x32ae1d={};for(const _0x5b6d34 of this[_0x5c6d('0x49')]['model'][_0x5c6d('0x15')]['getRootNames']())_0x32ae1d[_0x5b6d34]='';}'string'==typeof _0x32ae1d&&(_0x32ae1d={'main':_0x32ae1d});let _0xad20be=!0x1;for(const _0x1e77e7 of Object[_0x5c6d('0x66')](_0x32ae1d))_0x5ca096[_0x1e77e7]&&(_0x32ae1d[_0x1e77e7]!==_0x5ca096[_0x1e77e7]&&''!==_0x32ae1d[_0x1e77e7][_0x5c6d('0xc7')]()&&(_0xad20be=!0x0),_0x32ae1d[_0x1e77e7]=_0x5ca096[_0x1e77e7]);_0xad20be&&_0x1ebf2e('editor-initial-data-replaced-with-revision-data'),this[_0x5c6d('0x49')][_0x5c6d('0x0')][_0x5c6d('0x69')](_0x5c6d('0xd1'),_0x32ae1d);}['_addPendingAction'](){if(!this[_0x5c6d('0x5d')]){const _0x520d64=this['editor'][_0x5c6d('0x93')]['get'](_0x5c6d('0x81'));this[_0x5c6d('0x5d')]=_0x520d64['add'](_0x2e38bf(this[_0x5c6d('0x49')][_0x5c6d('0xad')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x5c6d('0x5d')]&&(this[_0x5c6d('0x49')]['plugins']['get'](_0x5c6d('0x81'))['remove'](this[_0x5c6d('0x5d')]),this[_0x5c6d('0x5d')]=null);}[_0x5c6d('0x2a')](_0x1b4562){const _0x1f759a=this[_0x5c6d('0x5f')][_0x5c6d('0xa4')]();_0x1f759a[_0x5c6d('0x6e')]();let _0x515c81=0x0;for(;_0x515c81<_0x1f759a[_0x5c6d('0x88')];){const _0x1e3461=_0x1f759a[_0x515c81];if(_0x1e3461===this[_0x5c6d('0xba')]){_0x515c81++;continue;}if(_0x1e3461['id']===this[_0x5c6d('0xb7')])break;const _0x490633=_0x1b4562[_0x5c6d('0xa0')]-_0x1e3461[_0x5c6d('0xa0')]||_0x1b4562[_0x5c6d('0xe2')]-_0x1e3461[_0x5c6d('0xe2')];if(_0x490633>0x0)break;if(_0x490633<0x0)_0x515c81++;else{if(!_0x1b4562['creator']&&_0x1e3461[_0x5c6d('0xcb')])break;if(_0x1e3461[_0x5c6d('0xcb')]||!_0x1b4562['creator']){if(_0x1b4562[_0x5c6d('0xd6')]>_0x1e3461[_0x5c6d('0xd6')])break;_0x515c81++;}else _0x515c81++;}}return _0x515c81;}[_0x5c6d('0x35')](_0x35815f){const _0x3a4efa=this['repository']['getRevision'](_0x35815f['id']);if(_0x35815f['createdAt']&&(_0x35815f[_0x5c6d('0xd6')]=new Date(_0x35815f[_0x5c6d('0xd6')])),_0x35815f[_0x5c6d('0x2c')]){const _0xfe923d=this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')](_0x5c6d('0x80'));_0x35815f[_0x5c6d('0xc0')]=_0x35815f[_0x5c6d('0x2c')][_0x5c6d('0x21')](_0xbe3836=>_0xfe923d[_0x5c6d('0xf3')](_0xbe3836));}_0x3a4efa[_0x5c6d('0xef')](_0x35815f,!0x0);}[_0x5c6d('0x96')]({revision:_0x1095a1=null,from:_0x173d39=null,to:_0x39b6e2=null}){_0x173d39=null!==_0x173d39?_0x173d39:_0x1095a1[_0x5c6d('0xe2')],_0x39b6e2=null!==_0x39b6e2?_0x39b6e2:_0x1095a1['toVersion'];const _0x2907fe=this[_0x5c6d('0x7c')][_0x5c6d('0xcd')](_0x173d39,_0x39b6e2),_0xbf231a={'diffData':_0x2907fe[_0x5c6d('0x28')],'authorsIds':_0x2907fe[_0x5c6d('0x2c')],'fromVersion':_0x173d39,'toVersion':_0x39b6e2};if(!_0x1095a1||_0x39b6e2!==_0x1095a1[_0x5c6d('0xa0')]){const _0x17d4f0=_0x39b6e2-0x1,_0x182040=this[_0x5c6d('0xc8')][_0x5c6d('0x77')][_0x5c6d('0x82')](_0x17d4f0);_0xbf231a[_0x5c6d('0xd6')]=_0x182040&&_0x182040['createdAt']||new Date();}if(this['_loadedStateData']&&_0x173d39===this['_loadedStateData']['fromVersion'])for(const _0xf4d0f8 of this['_loadedStateData']['authors'])_0xbf231a[_0x5c6d('0x2c')]['includes'](_0xf4d0f8['id'])||_0xbf231a['authorsIds']['push'](_0xf4d0f8['id']);return _0xbf231a;}['_loadRevisionData'](_0x25bc5b){if(!_0x25bc5b||_0x25bc5b['diffData'])return Promise[_0x5c6d('0x20')]();{const _0x3bc209=this[_0x5c6d('0x49')]['config'][_0x5c6d('0x5b')]('collaboration.channelId');return this[_0x5c6d('0xa5')][_0x5c6d('0xc6')]({'channelId':_0x3bc209,'revisionId':_0x25bc5b['id']})[_0x5c6d('0xcf')](_0x53ac2e=>{_0x25bc5b['diffData']=_0x53ac2e['diffData'];});}}[_0x5c6d('0xe4')](_0x187111,_0x5304c5,_0x4c2040){if(this[_0x5c6d('0xf')][_0x5c6d('0x7f')](_0x187111)){const _0x473bf5=this[_0x5c6d('0xf')][_0x5c6d('0x5b')](_0x187111);_0x5304c5=_0x4c2040?{..._0x473bf5,..._0x5304c5}:{..._0x5304c5,..._0x473bf5};}this[_0x5c6d('0xf')][_0x5c6d('0x69')](_0x187111,_0x5304c5);}[_0x5c6d('0x41')](_0x6a5ac){const _0x530438=this[_0x5c6d('0x5f')][_0x5c6d('0xa4')]();_0x530438[_0x5c6d('0x6e')](),_0x530438['shift']();const _0x271f78=_0x530438[_0x5c6d('0x10')](_0x2e06b4=>_0x2e06b4['toVersion']<=_0x6a5ac)[_0x5c6d('0xa0')];return _0x271f78<this[_0x5c6d('0xc5')]?this[_0x5c6d('0xc5')]:_0x271f78;}[_0x5c6d('0x4')](_0x57bc4f){const _0x839358=this[_0x5c6d('0x5f')]['getRevision'](this[_0x5c6d('0x5f')][_0x5c6d('0x88')]-0x1);if(_0x839358)this[_0x5c6d('0xb7')]=_0x839358['id'];else{const _0x4d59a6=!this['editor'][_0x5c6d('0x26')]['document'][_0x5c6d('0x43')][_0x5c6d('0x10')](_0x4e7192=>this[_0x5c6d('0x49')]['model'][_0x5c6d('0xf1')](_0x4e7192)),_0x1be2e1=this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')]('Users')['me']['id'],_0x43aadf=_0x2e38bf(this[_0x5c6d('0x49')][_0x5c6d('0xad')],_0x4d59a6?'Empty\x20document':'Initial\x20revision');this[_0x5c6d('0xb9')]({'from':_0x57bc4f,'to':_0x57bc4f,'id':this[_0x5c6d('0xb7')],'name':_0x43aadf,'creatorId':_0x1be2e1});}}[_0x5c6d('0xb5')](_0xb4beae){const _0x307be5=this[_0x5c6d('0xc8')][_0x5c6d('0xea')]();this[_0x5c6d('0xba')]=this['repository'][_0x5c6d('0xc6')](_0x307be5),this['currentRevision']||(this[_0x5c6d('0xba')]=this['_makeRevision']({'from':_0xb4beae,'to':_0xb4beae,'id':_0x307be5,'name':'','creatorId':null}));}[_0x5c6d('0xb9')]({name:_0x5caab9,from:_0x4ddc8b,to:_0x35034a,creatorId:_0x114a20,id:_0x1be6f8}){const _0x2b0582=this[_0x5c6d('0x96')]({'from':_0x4ddc8b,'to':_0x35034a});_0x2b0582[_0x5c6d('0x42')]=_0x5caab9,_0x2b0582[_0x5c6d('0x3a')]=_0x114a20,_0x2b0582['id']=_0x1be6f8;const _0x2df321=this[_0x5c6d('0x73')](_0x2b0582);return this[_0x5c6d('0xa5')]&&this[_0x5c6d('0xe4')](_0x2b0582['id'],_0x2b0582,!0x0),_0x2df321;}[_0x5c6d('0xab')](){this['editor']['conversion']['for']('dataDowncast')[_0x5c6d('0xf2')]({'model':_0x5c6d('0xd5')});}['_removeRevisionMarkers'](_0x5deec9){return(_0x5deec9=_0x5deec9['filter'](_0x1d9071=>!_0x1d9071['name']||'revision-start'!==_0x1d9071[_0x5c6d('0x42')]&&_0x5c6d('0x4e')!==_0x1d9071[_0x5c6d('0x42')]))[_0x5c6d('0x53')](_0x1c21b5=>{_0x5c6d('0xed')!=typeof _0x1c21b5&&(_0x1c21b5[_0x5c6d('0x2')]=this[_0x5c6d('0x4a')](_0x1c21b5[_0x5c6d('0x2')]),_0x1c21b5[_0x5c6d('0x52')]=_0x1c21b5[_0x5c6d('0x52')][_0x5c6d('0x2d')](_0x589e13=>!_0x589e13[0x0][_0x5c6d('0x1a')](_0x5c6d('0x14'))));}),_0x5deec9;}}function F(_0x2f0975,_0x1f3a66){const _0x264fcc=_0x1f3a66['editing'][_0x5c6d('0xbb')][_0x5c6d('0x15')];if(_0x5c6d('0xed')==typeof _0x2f0975)return new _0xfc94e1(_0x264fcc,_0x2f0975);{const _0x5b7868=_0x2f0975[_0x5c6d('0x2')][_0x5c6d('0x21')](_0x4ac7b0=>F(_0x4ac7b0,_0x1f3a66));return new(V[_0x2f0975['type']]||_0xa5b306)(_0x264fcc,_0x2f0975[_0x5c6d('0x42')],_0x2f0975[_0x5c6d('0x52')],_0x5b7868);}}class T{constructor(_0x3f0aee){this[_0x5c6d('0x49')]=_0x3f0aee,this[_0x5c6d('0x60')]=new Map(),this[_0x5c6d('0x8c')]=-0x1,this[_0x5c6d('0x1f')]=-0x1,this[_0x5c6d('0x89')]=new Map(),this['_diffRoots']=new Map(),this[_0x5c6d('0x31')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0x5c6d('0x5c')]=new Map(),this[_0x5c6d('0x91')]=new Map(),this[_0x5c6d('0x5')]=0x1,this['_rootNames']=this['editor'][_0x5c6d('0x26')][_0x5c6d('0x15')][_0x5c6d('0x11')](),this[_0x5c6d('0x24')][_0x5c6d('0xe1')](_0x5c6d('0xee'));}[_0x5c6d('0xa8')](_0x21fc2b){this[_0x5c6d('0xe')]=_0x21fc2b;const _0x5f357e=new Map();for(const _0x365799 of this[_0x5c6d('0x24')]){const _0x2cb670=J(this[_0x5c6d('0x49')]['model'][_0x5c6d('0x15')]['getRoot'](_0x365799));_0x5f357e['set'](_0x365799,_0x2cb670);}const _0x5775b1=Array[_0x5c6d('0x8e')](this['editor'][_0x5c6d('0x26')]['markers'])[_0x5c6d('0x21')](_0x5d0a84=>[_0x5d0a84[_0x5c6d('0x42')],_0x5d0a84['getRange']()]),_0x52fd15=this[_0x5c6d('0xe')]['version'];this[_0x5c6d('0x5a')](_0x52fd15,_0x5f357e,_0x5775b1),this[_0x5c6d('0x4c')]=this[_0x5c6d('0x5')];}['getData'](_0x48b6d9,_0x469412){if(this[_0x5c6d('0x8c')]===_0x48b6d9&&this[_0x5c6d('0x1f')]<=_0x469412)this[_0x5c6d('0x60')][_0x5c6d('0x7')]>0x1&&this[_0x5c6d('0xd8')](this['_lastTo']),this[_0x5c6d('0x38')](this[_0x5c6d('0x1f')],_0x469412,!0x0);else{if(!this[_0x5c6d('0x60')][_0x5c6d('0x7f')](_0x48b6d9)){const _0x12a66b=this[_0x5c6d('0x6a')](_0x48b6d9);this[_0x5c6d('0x8b')](_0x12a66b,_0x48b6d9,!0x1);}this[_0x5c6d('0x8b')](_0x48b6d9,_0x469412,!0x0);}return this[_0x5c6d('0x8c')]=_0x48b6d9,this[_0x5c6d('0x1f')]=_0x469412,this[_0x5c6d('0x51')]();}[_0x5c6d('0x83')](_0x1747cb){this['_reset'](),this[_0x5c6d('0x8c')]=_0x1747cb[_0x5c6d('0xe2')],this['_lastTo']=_0x1747cb[_0x5c6d('0xa0')];for(const _0x10af6a in _0x1747cb[_0x5c6d('0x28')]){const _0x463982=this[_0x5c6d('0xdb')](_0x1747cb['diffData'][_0x10af6a][_0x5c6d('0x9c')]);_0x463982['rootName']=_0x10af6a,this[_0x5c6d('0x31')][_0x5c6d('0x69')](_0x10af6a,_0x463982);const _0x1291a8=this['_makeIdsRoot'](_0x463982);this[_0x5c6d('0x3f')]['set'](_0x10af6a,_0x1291a8);for(const [_0x370e19,_0x162c2f]of _0x463982[_0x5c6d('0x34')]){if(!_0x370e19['startsWith']('revision:'))continue;const _0x3bb01b=_0x370e19[_0x5c6d('0xb6')](':')[0x2];for(const _0x384cae of _0x162c2f[_0x5c6d('0x32')]({'singleCharacters':!0x0})){const _0x40546d=this[_0x5c6d('0xec')](_0x384cae),_0x5995e1=_0x5c6d('0xde')==_0x384cae['type']?_0x384cae['previousPosition'][_0x5c6d('0x70')][_0x5c6d('0xe7')](0x0,-0x1):_0x384cae['previousPosition'][_0x5c6d('0x70')],_0x499266=_0x1291a8[_0x5c6d('0x1c')](_0x5995e1)[_0x5c6d('0x6')](_0x40546d);this[_0x5c6d('0x5c')][_0x5c6d('0x69')](_0x499266,{'userId':_0x3bb01b});}}}this[_0x5c6d('0x4c')]=this[_0x5c6d('0x5')];const _0xd2a5d0=[...Array(this[_0x5c6d('0x5')])[_0x5c6d('0x66')]()][_0x5c6d('0xe7')](0x1)[_0x5c6d('0x2d')](_0x24466b=>!this['_touched'][_0x5c6d('0x7f')](_0x24466b));let _0x5d012d=0x0;for(const _0x203ca2 in _0x1747cb[_0x5c6d('0x28')]){const _0xbebc13=this[_0x5c6d('0xdb')](_0x1747cb[_0x5c6d('0x28')][_0x203ca2][_0x5c6d('0xc3')]);_0xbebc13[_0x5c6d('0xa2')]=_0x203ca2,this[_0x5c6d('0xc')][_0x5c6d('0x69')](_0x203ca2,_0xbebc13);const _0x1f5a08=this[_0x5c6d('0x44')](_0xbebc13,Number['NEGATIVE_INFINITY']);this[_0x5c6d('0xae')][_0x5c6d('0x69')](_0x203ca2,_0x1f5a08);for(const [_0x145f36,_0xcb7670]of _0xbebc13[_0x5c6d('0x34')]){if(!_0x145f36['startsWith']('revision:'))continue;const _0x5b141f=_0x145f36[_0x5c6d('0xb6')](':')[0x2];for(const _0x1d4edf of _0xcb7670[_0x5c6d('0x32')]({'singleCharacters':!0x0})){const _0x5e33b3=this[_0x5c6d('0xec')](_0x1d4edf),_0x450b66=this[_0x5c6d('0x5')]++,_0xc5ebda=_0x5c6d('0xde')==_0x1d4edf['type']?_0x1d4edf['previousPosition'][_0x5c6d('0x70')][_0x5c6d('0xe7')](0x0,-0x1):_0x1d4edf[_0x5c6d('0xeb')][_0x5c6d('0x70')];_0x1f5a08['getNodeByPath'](_0xc5ebda)['_setAttribute'](_0x5e33b3,_0x450b66),this[_0x5c6d('0x5c')]['set'](_0x450b66,{'userId':_0x5b141f});}}for(const _0x4cc740 of this['editor'][_0x5c6d('0x26')][_0x5c6d('0x16')](_0xbebc13)[_0x5c6d('0x32')]({'singleCharacters':!0x0})){const _0x2f2290=this[_0x5c6d('0xec')](_0x4cc740),_0x72df2b='elementEnd'==_0x4cc740[_0x5c6d('0xe5')]?_0x4cc740[_0x5c6d('0xeb')][_0x5c6d('0x70')][_0x5c6d('0xe7')](0x0,-0x1):_0x4cc740[_0x5c6d('0xeb')][_0x5c6d('0x70')],_0x2c631d=_0x1f5a08[_0x5c6d('0x1c')](_0x72df2b);_0x2c631d[_0x5c6d('0x6')](_0x2f2290)>0x0||_0x2c631d['_setAttribute'](_0x2f2290,_0xd2a5d0[_0x5d012d++]);}const _0x2c2cb4=new _0x5c8a1f();_0x2c2cb4[_0x5c6d('0xa2')]=_0x5c6d('0xee'),this[_0x5c6d('0x31')][_0x5c6d('0x69')]('$graveyard',_0x2c2cb4),this[_0x5c6d('0x3f')]['set'](_0x5c6d('0xee'),this['_makeIdsRoot'](_0x2c2cb4,0x1));const _0x43dcf4=new _0x5c8a1f();_0x43dcf4[_0x5c6d('0xa2')]=_0x5c6d('0xee'),this[_0x5c6d('0xc')][_0x5c6d('0x69')](_0x5c6d('0xee'),_0x43dcf4),this[_0x5c6d('0xae')]['set'](_0x5c6d('0xee'),this[_0x5c6d('0x44')](_0x43dcf4,0x1));for(const [_0x519884,_0x315842]of _0xbebc13[_0x5c6d('0x34')])_0x519884[_0x5c6d('0x1a')](_0x5c6d('0x57'))||this[_0x5c6d('0x89')][_0x5c6d('0x69')](_0x519884,_0x315842);}const _0x4aed63=Array[_0x5c6d('0x8e')](this['_diffRoots'])[_0x5c6d('0x21')](([_0x591a72,_0x6c84d6])=>[_0x591a72,J(_0x6c84d6)]);this[_0x5c6d('0x5a')](this['_lastTo'],_0x4aed63,this['_markers']);}['_makeModelFromViewString'](_0x3f346e){const _0x56b5d2=JSON[_0x5c6d('0x54')](_0x3f346e),_0xf83a3f=this[_0x5c6d('0x49')][_0x5c6d('0xe8')][_0x5c6d('0xbb')]['document'],_0x3bc273=new _0x4ceba3(_0xf83a3f,_0x56b5d2[_0x5c6d('0x21')](_0x4b6a42=>F(_0x4b6a42,this[_0x5c6d('0x49')])));return this['editor'][_0x5c6d('0xe0')][_0x5c6d('0x12')](_0x3bc273);}['_saveEmptyMetaData'](){const _0x35088f=new Map();for(const _0x2d2097 of this[_0x5c6d('0x24')]){const _0x4dae75=new _0x5c8a1f();_0x4dae75[_0x5c6d('0xa2')]=_0x2d2097,_0x35088f[_0x5c6d('0x69')](_0x2d2097,_0x4dae75);}this[_0x5c6d('0x5a')](Number[_0x5c6d('0x39')],_0x35088f,[]);}[_0x5c6d('0x5a')](_0x3fc4ca,_0x2701b9,_0x185cf0){const _0x31efb8=new Map(_0x2701b9),_0x1ec6df=new Map();for(const [_0x532837,_0x554310]of _0x185cf0)_0x1ec6df[_0x5c6d('0x69')](_0x532837,{'start':_0x554310[_0x5c6d('0xa9')]['clone'](),'end':_0x554310[_0x5c6d('0xd3')][_0x5c6d('0x47')](),'rootName':_0x554310['root'][_0x5c6d('0xa2')]});this[_0x5c6d('0x60')][_0x5c6d('0x69')](_0x3fc4ca,{'roots':_0x31efb8,'markers':_0x1ec6df});}[_0x5c6d('0xd8')](_0x349484){this[_0x5c6d('0x60')][_0x5c6d('0x45')](_0x349484);}[_0x5c6d('0x27')](){this[_0x5c6d('0xbd')](),this[_0x5c6d('0x8c')]=-0x1,this[_0x5c6d('0x1f')]=-0x1,this['_savedMetaData']['clear'](),this[_0x5c6d('0xa8')](this['source']);}[_0x5c6d('0xbd')](){this[_0x5c6d('0x5c')][_0x5c6d('0x4b')](),this['_touchedMarkers']['clear'](),this[_0x5c6d('0xc')][_0x5c6d('0x4b')](),this['_baseRoots']['clear'](),this[_0x5c6d('0xae')]['clear'](),this['_baseIdsRoots'][_0x5c6d('0x4b')](),this[_0x5c6d('0x89')][_0x5c6d('0x4b')](),this[_0x5c6d('0x5')]=0x1,this[_0x5c6d('0x4c')]=this['_revisionId'];}[_0x5c6d('0x44')](_0x37c389,_0x14862b=null){let _0x19b24c=null;_0x37c389['is'](_0x5c6d('0xc9'))||(_0x19b24c=new _0x32778a(_0x37c389[_0x5c6d('0x42')],{'vid_start':null===_0x14862b?this[_0x5c6d('0x5')]++:_0x14862b++}));const _0xfd85cc=[];for(const _0x4f6d2f of _0x37c389[_0x5c6d('0xb2')]())if(_0x4f6d2f['is']('element')){_0xfd85cc[_0x5c6d('0xe1')](this[_0x5c6d('0x44')](_0x4f6d2f,_0x14862b));const _0x25d93e=_0xfd85cc[_0xfd85cc['length']-0x1];null!==_0x14862b&&(_0x14862b=_0x25d93e['is']('element',_0x5c6d('0x17'))?_0x25d93e[_0x5c6d('0x6')]('vid')+0x1:_0x25d93e[_0x5c6d('0x6')](_0x5c6d('0x1'))+0x1);}else for(let _0x51d40b=0x0;_0x51d40b<_0x4f6d2f[_0x5c6d('0x78')];_0x51d40b++)_0xfd85cc[_0x5c6d('0xe1')](new _0x32778a(_0x5c6d('0x17'),{'vid':null===_0x14862b?this[_0x5c6d('0x5')]++:_0x14862b++}));if(_0x37c389['is'](_0x5c6d('0xc9'))){const _0x35d0ae=new _0x5c8a1f(_0xfd85cc);return _0x35d0ae[_0x5c6d('0xa2')]=_0x37c389['rootName'],_0x35d0ae;}return _0x19b24c[_0x5c6d('0x30')]('vid_end',null===_0x14862b?this[_0x5c6d('0x5')]++:_0x14862b++),_0x19b24c['_insertChild'](0x0,_0xfd85cc),_0x19b24c;}[_0x5c6d('0x8b')](_0x2ecde6,_0x316241,_0x1d71a0){this[_0x5c6d('0xbd')]();const {roots:_0x177475,markers:_0x57fa92}=this['_savedMetaData'][_0x5c6d('0x5b')](_0x2ecde6);this[_0x5c6d('0x31')]=new Map(_0x177475);for(const [_0x535261,_0x2c1413]of this[_0x5c6d('0x31')])if(_0x5c6d('0xee')!==_0x535261&&(this['_diffRoots']['set'](_0x535261,J(_0x2c1413)),_0x1d71a0)){const _0xec1ec0=this[_0x5c6d('0x5')];this['_idsRoots']['set'](_0x535261,this[_0x5c6d('0x44')](_0x2c1413)),this[_0x5c6d('0x3f')][_0x5c6d('0x69')](_0x535261,this[_0x5c6d('0x44')](_0x2c1413,_0xec1ec0));}this[_0x5c6d('0x4c')]=this['_revisionId'],this[_0x5c6d('0xc')]['set'](_0x5c6d('0xee'),J(this['_baseRoots'][_0x5c6d('0x5b')](_0x5c6d('0xee')))),_0x1d71a0&&this[_0x5c6d('0xae')][_0x5c6d('0x69')](_0x5c6d('0xee'),this[_0x5c6d('0x44')](this['_baseRoots'][_0x5c6d('0x5b')](_0x5c6d('0xee'))));for(const [_0x442838,_0x5c01d1]of _0x57fa92){const _0x3458be=this[_0x5c6d('0x31')][_0x5c6d('0x5b')](_0x5c01d1[_0x5c6d('0xa2')]),_0x5cd135=this[_0x5c6d('0xc')][_0x5c6d('0x5b')](_0x5c01d1[_0x5c6d('0xa2')]),_0x18fb1e=new _0x4bafe2(this['_fixPosition'](_0x5c01d1[_0x5c6d('0xa9')],_0x3458be),this[_0x5c6d('0x7e')](_0x5c01d1[_0x5c6d('0xd3')],_0x3458be)),_0x5b3622=this[_0x5c6d('0x23')](_0x18fb1e,_0x5cd135);_0x3458be[_0x5c6d('0x34')]['set'](_0x442838,_0x18fb1e),this[_0x5c6d('0x89')][_0x5c6d('0x69')](_0x442838,_0x5b3622);}this[_0x5c6d('0x38')](_0x2ecde6,_0x316241,_0x1d71a0);}['_applyOperations'](_0xc6a9eb,_0x4a3480,_0x3e5a7e){for(const _0x124375 of this[_0x5c6d('0xe')]['getOperations'](_0xc6a9eb,_0x4a3480))this[_0x5c6d('0xd9')](_0x124375,_0x3e5a7e);for(const _0x2fe03d of this['_diffRoots'][_0x5c6d('0x7b')]())_0x2fe03d[_0x5c6d('0x34')]['clear']();for(const [_0x4d005e,_0x2bc741]of this[_0x5c6d('0x89')]){this[_0x5c6d('0xc')][_0x5c6d('0x5b')](_0x2bc741[_0x5c6d('0x98')][_0x5c6d('0xa2')])[_0x5c6d('0x34')][_0x5c6d('0x69')](_0x4d005e,_0x2bc741[_0x5c6d('0x47')]());}this[_0x5c6d('0x5a')](_0x4a3480,Array['from'](this[_0x5c6d('0xc')])[_0x5c6d('0x21')](([_0x2f643e,_0x5c2eaf])=>[_0x2f643e,J(_0x5c2eaf)]),this[_0x5c6d('0x89')]);}[_0x5c6d('0x6a')](_0x55aeb0){const _0x17378b=Array['from'](this[_0x5c6d('0x60')][_0x5c6d('0x66')]());_0x17378b[_0x5c6d('0x72')]((_0x4f3193,_0x233ec5)=>_0x4f3193-_0x233ec5),_0x17378b['reverse']();for(const _0x2c2681 of _0x17378b)if(_0x2c2681<_0x55aeb0)return _0x2c2681;return this['_saveEmptyMetaData'](),Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5569c5,_0x1571c3){const _0x43b713=Array[_0x5c6d('0x8e')](_0x1571c3[_0x5c6d('0x34')])[_0x5c6d('0x21')](([_0x51b056,_0x331d8a])=>[_0x51b056,this[_0x5c6d('0x23')](_0x331d8a,_0x5569c5)]);_0x5569c5[_0x5c6d('0x34')]=new Map(_0x43b713);}[_0x5c6d('0x2f')](_0x4a6caf){for(const _0x3bf35e of this[_0x5c6d('0x89')][_0x5c6d('0x7b')]()){const _0x2ae764=_0x3bf35e[_0x5c6d('0xdc')](_0x4a6caf),_0x59a178=_0x4bafe2[_0x5c6d('0x74')](_0x2ae764);_0x3bf35e[_0x5c6d('0xa9')]=_0x59a178['start'],_0x3bf35e['end']=_0x59a178[_0x5c6d('0xd3')];}}['_handleOperation'](_0x36573a,_0x16558a){const _0x163f7f=this[_0x5c6d('0xb0')](_0x36573a,this[_0x5c6d('0xc')]);if(_0x5c6d('0x76')!==_0x36573a['type']&&(_0x163f7f[_0x5c6d('0xac')](),this[_0x5c6d('0x2f')](_0x163f7f)),_0x16558a)switch(_0x163f7f[_0x5c6d('0xe5')]){case _0x5c6d('0xd4'):this[_0x5c6d('0x3b')](_0x36573a);break;case _0x5c6d('0x13'):case _0x5c6d('0x87'):case _0x5c6d('0x6f'):this[_0x5c6d('0x2b')](_0x36573a);break;case _0x5c6d('0x55'):this[_0x5c6d('0x65')](_0x36573a);break;case _0x5c6d('0xb6'):this[_0x5c6d('0xdf')](_0x36573a);break;case _0x5c6d('0x76'):this['_handleMarkerOperation'](_0x36573a);}}['_cloneOperation'](_0x3babc1,_0x41426e){const _0x4feb26=_0x3babc1[_0x5c6d('0x47')]();return _0x4feb26['_authorId']=_0x3babc1['_authorId'],this[_0x5c6d('0x1b')](_0x4feb26,_0x41426e),_0x4feb26;}['_getBaseVids'](_0xdfd8f2){return _0xdfd8f2[_0x5c6d('0x21')](_0x10b44f=>{const _0x1e20d2=this[_0x5c6d('0xec')](_0x10b44f);return Number(_0x10b44f['item']['getAttribute'](_0x1e20d2));});}[_0x5c6d('0xbf')](_0x1a84f9,_0x5bb818){if(_0x1a84f9['is'](_0x5c6d('0xa6'),_0x5c6d('0x17')))_0x5bb818[_0x5c6d('0xe1')]({'item':_0x1a84f9,'type':_0x5c6d('0xf0')});else{_0x1a84f9['is']('element')&&_0x5bb818[_0x5c6d('0xe1')]({'item':_0x1a84f9,'type':_0x5c6d('0x79')});for(const _0x5dc22a of _0x1a84f9[_0x5c6d('0xb2')]())this['_generateTape'](_0x5dc22a,_0x5bb818);_0x1a84f9['is'](_0x5c6d('0xa6'))&&_0x5bb818[_0x5c6d('0xe1')]({'item':_0x1a84f9,'type':'elementEnd'});}return _0x5bb818;}['_getState'](){const _0x5c3008=this[_0x5c6d('0x49')][_0x5c6d('0x26')]['document'][_0x5c6d('0x11')](),_0x41418b=new Map(this[_0x5c6d('0x5c')]),_0x291493=new Map(_0x41418b),_0x7ef5eb=new Map(),_0xab11c8={'insertions':{},'deletions':{}},_0x542964={'insertions':{},'deletions':{}},_0x468d9b=new Map();for(const _0x3a0bbf of _0x5c3008){const _0x1f0a29=this[_0x5c6d('0xc')][_0x5c6d('0x5b')](_0x3a0bbf),_0x22e2f0=this[_0x5c6d('0x31')]['get'](_0x3a0bbf);_0xab11c8[_0x5c6d('0xc3')][_0x3a0bbf]=J(_0x1f0a29),_0xab11c8[_0x5c6d('0x9c')][_0x3a0bbf]=J(_0x22e2f0),this[_0x5c6d('0x7a')](_0xab11c8[_0x5c6d('0x9c')][_0x3a0bbf],_0x22e2f0),this[_0x5c6d('0x7a')](_0xab11c8[_0x5c6d('0xc3')][_0x3a0bbf],_0x1f0a29),_0x542964['insertions'][_0x3a0bbf]=this[_0x5c6d('0xbf')](this[_0x5c6d('0xae')]['get'](_0x3a0bbf),[]),_0x542964[_0x5c6d('0x9c')][_0x3a0bbf]=this['_generateTape'](this[_0x5c6d('0x3f')][_0x5c6d('0x5b')](_0x3a0bbf),[]);}for(const _0x23c0cb of _0x5c3008){const _0x5a1bd3=_0x542964[_0x5c6d('0xc3')][_0x23c0cb];for(const _0x18e984 of _0x5a1bd3){const _0x19d286=this[_0x5c6d('0xec')](_0x18e984),_0x5aa93a=_0x18e984[_0x5c6d('0x59')][_0x5c6d('0x6')](_0x19d286);_0x291493[_0x5c6d('0x45')](_0x5aa93a),_0x5aa93a>=this[_0x5c6d('0x4c')]&&_0x7ef5eb[_0x5c6d('0x69')](_0x5aa93a,_0x41418b[_0x5c6d('0x5b')](_0x5aa93a));}}for(const _0x4c2184 of _0x5c3008){const _0x4340ee=_0x542964[_0x5c6d('0xc3')][_0x4c2184],_0x25e346=this[_0x5c6d('0x58')](_0x542964[_0x5c6d('0x9c')][_0x4c2184]);let _0x14e679=0x0;for(const _0x12ce04 of _0x4340ee){const _0x3fc921=this['_getVidAttributeName'](_0x12ce04),_0x212e45=_0x12ce04[_0x5c6d('0x59')]['getAttribute'](_0x3fc921);if(!_0x7ef5eb[_0x5c6d('0x7f')](_0x212e45)&&!_0x468d9b['has'](_0x212e45)){if(_0x291493[_0x5c6d('0x7f')](_0x212e45))_0x14e679++;else{if(_0x212e45!=_0x25e346[_0x14e679]){const _0x28c74a=_0x41418b[_0x5c6d('0x5b')](_0x212e45)||_0x41418b[_0x5c6d('0x5b')](_0x25e346[_0x14e679]);for(;_0x212e45!=_0x25e346[_0x14e679];)_0x291493[_0x5c6d('0x7f')](_0x25e346[_0x14e679])||(_0x468d9b[_0x5c6d('0x69')](_0x25e346[_0x14e679],_0x28c74a),_0x41418b[_0x5c6d('0x69')](_0x25e346[_0x14e679],_0x28c74a)),_0x14e679++;}_0x14e679++;}}}}for(const _0x46e076 of _0x5c3008){const _0xf8b7f2=_0x542964[_0x5c6d('0xc3')][_0x46e076];for(const _0x298749 of _0xf8b7f2){const _0x6ef235=this[_0x5c6d('0xec')](_0x298749),_0x285268=_0x298749['item']['getAttribute'](_0x6ef235);if(_0x468d9b['has'](_0x285268)){const _0x32e1cb=_0x468d9b[_0x5c6d('0x5b')](_0x285268);_0x291493[_0x5c6d('0x7f')](_0x285268)||_0x291493[_0x5c6d('0x69')](_0x285268,{..._0x32e1cb}),_0x7ef5eb[_0x5c6d('0x69')](_0x285268,{..._0x32e1cb});}}}for(const _0xd0e85c of _0x291493['keys']())_0xd0e85c>=this[_0x5c6d('0x4c')]&&_0x291493[_0x5c6d('0x45')](_0xd0e85c);const _0x159f9c=new Map();for(const _0x49d1de of _0x5c3008){let _0x3efe2a=_0x542964[_0x5c6d('0xc3')][_0x49d1de];for(const _0x271173 of _0x3efe2a)if(_0x271173[_0x5c6d('0x59')]['is'](_0x5c6d('0xa6'),_0x5c6d('0xbc'))){const _0x375e18=this['_getVidAttributeName'](_0x271173),_0x438e86=_0x271173[_0x5c6d('0x59')][_0x5c6d('0x6')](_0x375e18);if(_0x7ef5eb[_0x5c6d('0x7f')](_0x438e86)){const _0x7b1b36=_0x271173[_0x5c6d('0x59')][_0x5c6d('0x94')]['parent'][_0x5c6d('0x6')](_0x5c6d('0xa7')),_0x2a95dc=_0x159f9c['get'](_0x7b1b36)||new Set();_0x2a95dc[_0x5c6d('0x8f')](_0x7ef5eb['get'](_0x438e86)['userId']),_0x159f9c['set'](_0x7b1b36,_0x2a95dc);}}_0x3efe2a=_0x542964[_0x5c6d('0x9c')][_0x49d1de];for(const _0x291e1d of _0x3efe2a)if(_0x291e1d[_0x5c6d('0x59')]['is']('element',_0x5c6d('0xbc'))){const _0x5eeaca=this[_0x5c6d('0xec')](_0x291e1d),_0x2b4dbc=_0x291e1d[_0x5c6d('0x59')]['getAttribute'](_0x5eeaca);if(_0x291493[_0x5c6d('0x7f')](_0x2b4dbc)){const _0x2e3d3b=_0x291e1d[_0x5c6d('0x59')][_0x5c6d('0x94')]['parent'][_0x5c6d('0x6')](_0x5c6d('0xa7')),_0x32fab2=_0x159f9c[_0x5c6d('0x5b')](_0x2e3d3b)||new Set();_0x32fab2[_0x5c6d('0x8f')](_0x291493[_0x5c6d('0x5b')](_0x2b4dbc)[_0x5c6d('0x3c')]),_0x159f9c['set'](_0x2e3d3b,_0x32fab2);}}for(const _0x434d90 of _0x159f9c[_0x5c6d('0x66')]())(_0x7ef5eb[_0x5c6d('0x7f')](_0x434d90)||_0x291493[_0x5c6d('0x7f')](_0x434d90))&&_0x159f9c[_0x5c6d('0x45')](_0x434d90);}for(const _0x22bdfa of _0x5c3008){const _0x37e0ae=_0x542964[_0x5c6d('0xc3')][_0x22bdfa];let _0x398451=null,_0x4f505a=null;for(const _0x4bf46d of _0x37e0ae){const _0x564e7f=this['_getVidAttributeName'](_0x4bf46d),_0x44ac76=_0x4bf46d[_0x5c6d('0x59')]['getAttribute'](_0x564e7f),_0x2fc53b=_0x159f9c[_0x5c6d('0x5b')](_0x44ac76);_0x2fc53b&&_0x5c6d('0x79')==_0x4bf46d['type']&&(_0x398451=Array['from'](_0x2fc53b)[0x0],_0x4f505a=_0x4bf46d[_0x5c6d('0x59')][_0x5c6d('0x6')](_0x5c6d('0x1'))),_0x398451&&(_0x291493[_0x5c6d('0x69')](_0x44ac76,{'userId':_0x398451}),_0x7ef5eb['set'](_0x44ac76,{'userId':_0x398451})),_0x44ac76==_0x4f505a&&(_0x398451=null,_0x4f505a=null);}}const _0x55eb86={},_0x3f1488=new Set();for(const _0x1d0c1b of _0x5c3008){const _0xc571e8=_0xab11c8[_0x5c6d('0x9c')][_0x1d0c1b],_0x532b7d=_0xab11c8[_0x5c6d('0xc3')][_0x1d0c1b];for(const {userId:_0x538a43}of this[_0x5c6d('0x91')][_0x5c6d('0x7b')]())null!==_0x538a43&&_0x3f1488[_0x5c6d('0x8f')](_0x538a43);this[_0x5c6d('0xb8')](_0x532b7d,_0x542964['insertions'][_0x1d0c1b],_0x7ef5eb,_0x5c6d('0x84'),_0x3f1488),this[_0x5c6d('0xb8')](_0xc571e8,_0x542964[_0x5c6d('0x9c')][_0x1d0c1b],_0x291493,_0x5c6d('0x95'),_0x3f1488),_0x55eb86[_0x1d0c1b]={'insertions':this[_0x5c6d('0x68')](_0x532b7d),'deletions':this['_prepareViewToSave'](_0xc571e8)};}return{'diffData':_0x55eb86,'authorsIds':Array[_0x5c6d('0x8e')](_0x3f1488)};}['_processRootBeforeSave'](_0x30aa81){for(const [,_0x1ee6dc]of _0x30aa81[_0x5c6d('0x34')]){const _0x40ff34=_0x1ee6dc[_0x5c6d('0xa9')][_0x5c6d('0xdd')]()['filter'](_0xf5a855=>_0x5c6d('0xbc')==_0xf5a855[_0x5c6d('0x42')]);for(const _0x339341 of _0x40ff34)0x1==_0x339341['childCount']&&_0x339341[_0x5c6d('0x6d')](0x0)['is'](_0x5c6d('0xa6'),'paragraph')&&_0x339341['getChild'](0x0)[_0x5c6d('0x30')](_0x5c6d('0xa'),!0x0);}}['_prepareViewToSave'](_0x6c4154){this[_0x5c6d('0x33')](_0x6c4154);const _0xc218c5=this[_0x5c6d('0x49')][_0x5c6d('0xe0')][_0x5c6d('0x63')](_0x6c4154,{}),_0x43988c=Array[_0x5c6d('0x8e')](_0xc218c5[_0x5c6d('0xb2')]())['map'](_0xbaaa8d=>this[_0x5c6d('0x40')](_0xbaaa8d));return JSON[_0x5c6d('0xda')](_0x43988c);}[_0x5c6d('0x40')](_0x115eaf){if(_0x115eaf['is'](_0x5c6d('0xf0')))return _0x115eaf['data'];return{'type':Object[_0x5c6d('0x66')](V)['find'](_0x29bc5f=>_0x115eaf instanceof V[_0x29bc5f]),'name':_0x115eaf[_0x5c6d('0x42')],'attributes':Array[_0x5c6d('0x8e')](_0x115eaf[_0x5c6d('0x36')]()),'children':Array[_0x5c6d('0x8e')](_0x115eaf[_0x5c6d('0xb2')]())[_0x5c6d('0x21')](_0x3dcf4b=>this[_0x5c6d('0x40')](_0x3dcf4b))};}[_0x5c6d('0xb8')](_0x571ebd,_0x2c6fa3,_0x359936,_0x23edb9,_0x2b49e6){let _0x1d664f=null,_0x1b7630=null,_0x1bd654=0x0;const _0x12ddca=this[_0x5c6d('0x49')]['model'];for(let _0x4bfb53=0x0;_0x4bfb53<_0x2c6fa3[_0x5c6d('0x88')];_0x4bfb53++){const _0x2efcc0=this[_0x5c6d('0xec')](_0x2c6fa3[_0x4bfb53]),_0x439116=_0x2c6fa3[_0x4bfb53][_0x5c6d('0x59')]['getAttribute'](_0x2efcc0),_0x280d75=_0x359936['get'](_0x439116),_0x41b6ee=_0x4bfb53==_0x2c6fa3[_0x5c6d('0x88')]-0x1;(!_0x1d664f&&_0x280d75&&(_0x1d664f=_0x280d75,_0x1b7630=_0x2c6fa3[_0x4bfb53]),_0x1d664f&&(!_0x280d75||_0x280d75[_0x5c6d('0x3c')]!=_0x1d664f[_0x5c6d('0x3c')]))&&(_0xa6794b(_0x280d75,j(_0x1b7630,_0x571ebd,_0x12ddca),j(_0x2c6fa3[_0x4bfb53],_0x571ebd,_0x12ddca)),_0x1d664f=_0x280d75||null,_0x1b7630=_0x280d75?_0x2c6fa3[_0x4bfb53]:null),_0x1d664f&&_0x41b6ee&&_0xa6794b(_0x280d75,j(_0x1b7630,_0x571ebd,_0x12ddca),B(_0x2c6fa3[_0x4bfb53],_0x571ebd,_0x12ddca));}function _0xa6794b(_0x36b51a,_0x56bc44,_0x226d0b){const _0xd94df9=_0x1d664f[_0x5c6d('0x3c')],_0x4ac696=_0x5c6d('0x57')+_0x23edb9+':'+_0xd94df9+':'+_0x1bd654++,_0x4b828b=_0x12ddca[_0x5c6d('0x46')](_0x56bc44,_0x226d0b);_0x571ebd[_0x5c6d('0x34')]['set'](_0x4ac696,_0x4b828b),null!==_0xd94df9&&_0x2b49e6['add'](_0xd94df9);}}[_0x5c6d('0xec')](_0x5554ad){switch(_0x5554ad[_0x5c6d('0xe5')]){case _0x5c6d('0x79'):return'vid_start';case _0x5c6d('0xde'):return _0x5c6d('0x1');default:return _0x5c6d('0xbe');}}[_0x5c6d('0x1b')](_0x32a910,_0xf66555){_0x32a910[_0x5c6d('0x29')]=null;for(const _0x2df786 in _0x32a910){if(_0x32a910[_0x2df786]instanceof _0x302755){const _0x29d1a9=_0xf66555['get'](_0x32a910[_0x2df786][_0x5c6d('0x98')]['rootName']);_0x32a910[_0x2df786]=this[_0x5c6d('0x7e')](_0x32a910[_0x2df786],_0x29d1a9);}if(_0x32a910[_0x2df786]instanceof _0x4bafe2){const _0x6b292=_0xf66555[_0x5c6d('0x5b')](_0x32a910[_0x2df786][_0x5c6d('0x98')][_0x5c6d('0xa2')]);_0x32a910[_0x2df786]=this[_0x5c6d('0x23')](_0x32a910[_0x2df786],_0x6b292);}}_0x32a910['root']&&(_0x32a910[_0x5c6d('0x98')]=_0xf66555[_0x5c6d('0x5b')](_0x32a910[_0x5c6d('0x98')][_0x5c6d('0xa2')]));}[_0x5c6d('0x23')](_0x13641d,_0x44c8c3){return this['editor'][_0x5c6d('0x26')][_0x5c6d('0x46')](this[_0x5c6d('0x7e')](_0x13641d[_0x5c6d('0xa9')],_0x44c8c3),this[_0x5c6d('0x7e')](_0x13641d[_0x5c6d('0xd3')],_0x44c8c3));}[_0x5c6d('0x7e')](_0x3e2958,_0x5a7fdb){return this[_0x5c6d('0x49')][_0x5c6d('0x26')][_0x5c6d('0x62')](_0x5a7fdb,_0x3e2958[_0x5c6d('0x70')],_0x3e2958[_0x5c6d('0xa1')]);}[_0x5c6d('0x3b')](_0x1e714c){const _0x5c7e45=this['_idsRoots'][_0x5c6d('0x5b')](_0x1e714c[_0x5c6d('0x92')][_0x5c6d('0x98')]['rootName']),_0xfa925b=this[_0x5c6d('0x7e')](_0x1e714c[_0x5c6d('0x92')],_0x5c7e45),_0x2b97ca=null===_0x1e714c['_authorId']?null:_0x1e714c[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')]['get']('Users')['me']['id'],_0x1d1032=_0xfa925b['parent'],_0x3c9f30=this[_0x5c6d('0x5')],_0x5b08d5=[];for(const _0x5cad70 of _0x1e714c[_0x5c6d('0xaf')])if(_0x5cad70['is']('element'))_0x5b08d5['push'](this[_0x5c6d('0x44')](_0x5cad70));else for(let _0xc30caf=0x0;_0xc30caf<_0x5cad70['offsetSize'];_0xc30caf++)_0x5b08d5[_0x5c6d('0xe1')](new _0x32778a(_0x5c6d('0x17'),{'vid':this[_0x5c6d('0x5')]++}));const _0x1f4c7e=this[_0x5c6d('0x5')];for(let _0x4aa123=_0x3c9f30;_0x4aa123<_0x1f4c7e;_0x4aa123++)this[_0x5c6d('0x5c')][_0x5c6d('0x69')](_0x4aa123,{'userId':_0x2b97ca});_0x1d1032['_insertChild'](_0xfa925b[_0x5c6d('0xb4')],_0x5b08d5);}[_0x5c6d('0x2b')](_0x27a67a){(_0x27a67a=this[_0x5c6d('0xb0')](_0x27a67a,this[_0x5c6d('0xae')]))[_0x5c6d('0xac')]();const _0x44aace=null===_0x27a67a[_0x5c6d('0xaa')]?null:_0x27a67a[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')](_0x5c6d('0x80'))['me']['id'],_0x5111fc=_0x27a67a['getMovedRangeStart'](),_0x26998b=_0x5111fc[_0x5c6d('0x94')],_0x1730c0=_0x5111fc[_0x5c6d('0xb4')];!function _0x296c64(_0x5a5427,_0x505919,_0x3ffe13,_0x3b989b){for(let _0x1bb696=_0x3ffe13;_0x1bb696<_0x3b989b;_0x1bb696++){const _0x460bd7=_0x505919[_0x5c6d('0x6d')](_0x1bb696);_0x460bd7['is'](_0x5c6d('0xa6'),_0x5c6d('0x17'))?_0x5a5427[_0x5c6d('0x69')](_0x460bd7['getAttribute'](_0x5c6d('0xbe')),{'userId':_0x44aace}):(_0x5a5427[_0x5c6d('0x69')](_0x460bd7[_0x5c6d('0x6')]('vid_start'),{'userId':_0x44aace}),_0x296c64(_0x5a5427,_0x460bd7,0x0,_0x460bd7[_0x5c6d('0x37')]),_0x5a5427['set'](_0x460bd7['getAttribute']('vid_end'),{'userId':_0x44aace}));}}(this[_0x5c6d('0x5c')],_0x26998b,_0x1730c0,_0x1730c0+_0x27a67a[_0x5c6d('0x2e')]);}[_0x5c6d('0x65')](_0x301648){const _0x4e53ce=null===(_0x301648=this['_cloneOperation'](_0x301648,this['_idsRoots']))[_0x5c6d('0xaa')]?null:_0x301648[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')](_0x5c6d('0x80'))['me']['id'],_0x122feb=_0x301648[_0x5c6d('0x8d')][_0x5c6d('0x94')],_0x35d225=_0x301648[_0x5c6d('0x22')][_0x5c6d('0x94')],_0x559904=_0x122feb['getAttribute'](_0x5c6d('0x1')),_0x376c0f=_0x35d225['getAttribute']('vid_start');_0x122feb['_setAttribute'](_0x5c6d('0x1'),_0x35d225['getAttribute']('vid_end')),_0x35d225[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x559904),this['_touched'][_0x5c6d('0x69')](_0x376c0f,{'userId':_0x4e53ce}),this['_touched'][_0x5c6d('0x69')](_0x559904,{'userId':_0x4e53ce}),_0x301648[_0x5c6d('0xac')]();}[_0x5c6d('0xdf')](_0x109ffb){const _0x485705=null===(_0x109ffb=this[_0x5c6d('0xb0')](_0x109ffb,this[_0x5c6d('0xae')]))[_0x5c6d('0xaa')]?null:_0x109ffb[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')]['get']('Users')['me']['id'],_0x34b17c=_0x109ffb[_0x5c6d('0xe9')],_0x143fc5=_0x109ffb[_0x5c6d('0x85')][_0x5c6d('0x94')];_0x109ffb[_0x5c6d('0xac')]();const _0x1ae10a=_0x143fc5[_0x5c6d('0x6')](_0x5c6d('0x1')),_0x146f9c=_0x109ffb[_0x5c6d('0x6c')][_0x5c6d('0xb')];if(_0x34b17c){const _0x5b2771=_0x146f9c[_0x5c6d('0x6')](_0x5c6d('0x1')),_0x4aa338=_0x143fc5[_0x5c6d('0x6')](_0x5c6d('0x1'));_0x143fc5[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x5b2771),_0x146f9c[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x4aa338),this[_0x5c6d('0x5c')][_0x5c6d('0x69')](_0x143fc5[_0x5c6d('0x6')](_0x5c6d('0x1')),{'userId':_0x485705}),this[_0x5c6d('0x5c')]['set'](_0x146f9c[_0x5c6d('0x6')](_0x5c6d('0xa7')),{'userId':_0x485705});}else{const _0x2de100=this[_0x5c6d('0x5')]++,_0x5f3230=this[_0x5c6d('0x5')]++;_0x143fc5[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x2de100),_0x146f9c['_setAttribute']('vid_start',_0x5f3230),_0x146f9c[_0x5c6d('0x30')](_0x5c6d('0x1'),_0x1ae10a),this[_0x5c6d('0x5c')][_0x5c6d('0x69')](_0x2de100,{'userId':_0x485705}),this['_touched']['set'](_0x5f3230,{'userId':_0x485705});}}[_0x5c6d('0x7d')](_0x3b00f6){if(!_0x3b00f6[_0x5c6d('0x67')])return;const _0x2b2a84=(_0x3b00f6=this[_0x5c6d('0xb0')](_0x3b00f6,this['_diffRoots']))['oldRange']?_0x3b00f6[_0x5c6d('0x9b')]['root']:null,_0x2b9d50=_0x3b00f6[_0x5c6d('0xcc')]?_0x3b00f6[_0x5c6d('0xcc')][_0x5c6d('0x98')]:null;_0x2b2a84&&this[_0x5c6d('0x89')][_0x5c6d('0x45')](_0x3b00f6[_0x5c6d('0x42')]),_0x2b9d50&&this['_markers'][_0x5c6d('0x69')](_0x3b00f6[_0x5c6d('0x42')],_0x3b00f6['newRange'][_0x5c6d('0x47')]());const _0xccd8e6=null===_0x3b00f6['_authorId']?null:_0x3b00f6[_0x5c6d('0xaa')]||this[_0x5c6d('0x49')][_0x5c6d('0x93')][_0x5c6d('0x5b')]('Users')['me']['id'],_0x41ef6b=_0x3b00f6[_0x5c6d('0x42')];if(!this[_0x5c6d('0x91')][_0x5c6d('0x7f')](_0x41ef6b))return void this[_0x5c6d('0x91')][_0x5c6d('0x69')](_0x41ef6b,{'range':_0x3b00f6[_0x5c6d('0x9b')],'userId':_0xccd8e6});const _0x3b25a0=this[_0x5c6d('0x91')][_0x5c6d('0x5b')](_0x41ef6b),_0x49185c=_0x3b25a0[_0x5c6d('0x99')],_0x36bc64=_0x3b00f6[_0x5c6d('0xcc')];null==_0x49185c&&null==_0x36bc64||_0x49185c&&_0x36bc64&&_0x49185c[_0x5c6d('0x9e')](_0x36bc64)?this[_0x5c6d('0x91')]['delete'](_0x3b00f6['name']):_0x3b25a0['userId']=_0xccd8e6;}}function J(_0x2aa62e){const _0x2962c8=new _0x5c8a1f();_0x2962c8[_0x5c6d('0xa2')]=_0x2aa62e[_0x5c6d('0xa2')];for(const _0x293abb of _0x2aa62e['getChildren']()){const _0x19b08f=_0x293abb[_0x5c6d('0x3')](!0x0);_0x2962c8['_appendChild'](_0x19b08f);}return _0x2962c8;}function j(_0x568906,_0x47672a,_0x599a82){const _0x1b5541=_0x5c6d('0xde')==_0x568906['type']?_0x599a82[_0x5c6d('0xb3')](_0x568906[_0x5c6d('0x59')],'end'):_0x599a82[_0x5c6d('0x97')](_0x568906[_0x5c6d('0x59')]);return _0x1b5541[_0x5c6d('0x98')]=_0x47672a,_0x1b5541;}function B(_0x279138,_0x53dc4b,_0x36ff34){const _0x3fe4a7=_0x5c6d('0x79')==_0x279138[_0x5c6d('0xe5')]?_0x36ff34[_0x5c6d('0xb3')](_0x279138[_0x5c6d('0x59')],0x0):_0x36ff34['createPositionAfter'](_0x279138[_0x5c6d('0x59')]);return _0x3fe4a7[_0x5c6d('0x98')]=_0x53dc4b,_0x3fe4a7;}