@ckeditor/ckeditor5-revision-history 33.0.0 → 34.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/revision-history.js +5 -0
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/az.js +1 -0
  6. package/build/translations/bs.js +1 -0
  7. package/build/translations/cs.js +1 -0
  8. package/build/translations/da.js +1 -0
  9. package/build/translations/de-ch.js +1 -0
  10. package/build/translations/de.js +1 -0
  11. package/build/translations/el.js +1 -0
  12. package/build/translations/en-au.js +1 -0
  13. package/build/translations/en-gb.js +1 -0
  14. package/build/translations/es.js +1 -0
  15. package/build/translations/et.js +1 -0
  16. package/build/translations/fa.js +1 -0
  17. package/build/translations/fr.js +1 -0
  18. package/build/translations/gl.js +1 -0
  19. package/build/translations/he.js +1 -0
  20. package/build/translations/hi.js +1 -0
  21. package/build/translations/hr.js +1 -0
  22. package/build/translations/hu.js +1 -0
  23. package/build/translations/id.js +1 -0
  24. package/build/translations/it.js +1 -0
  25. package/build/translations/ja.js +1 -0
  26. package/build/translations/jv.js +1 -0
  27. package/build/translations/ko.js +1 -0
  28. package/build/translations/ku.js +1 -0
  29. package/build/translations/lv.js +1 -0
  30. package/build/translations/ne.js +1 -0
  31. package/build/translations/nl.js +1 -0
  32. package/build/translations/no.js +1 -0
  33. package/build/translations/pl.js +1 -0
  34. package/build/translations/pt-br.js +1 -0
  35. package/build/translations/ro.js +1 -0
  36. package/build/translations/ru.js +1 -0
  37. package/build/translations/sk.js +1 -0
  38. package/build/translations/sr-latn.js +1 -0
  39. package/build/translations/sr.js +1 -0
  40. package/build/translations/tk.js +1 -0
  41. package/build/translations/tr.js +1 -0
  42. package/build/translations/ug.js +1 -0
  43. package/build/translations/uk.js +1 -0
  44. package/build/translations/ur.js +1 -0
  45. package/build/translations/vi.js +1 -0
  46. package/build/translations/zh-cn.js +1 -0
  47. package/build/translations/zh.js +1 -0
  48. package/lang/translations/af.po +123 -0
  49. package/lang/translations/en-au.po +25 -25
  50. package/lang/translations/es.po +2 -1
  51. package/lang/translations/fr.po +2 -1
  52. package/lang/translations/gl.po +5 -5
  53. package/lang/translations/hr.po +6 -6
  54. package/lang/translations/it.po +2 -1
  55. package/lang/translations/jv.po +122 -0
  56. package/lang/translations/lv.po +27 -27
  57. package/lang/translations/pt-br.po +5 -4
  58. package/lang/translations/sk.po +27 -27
  59. package/lang/translations/ur.po +123 -0
  60. package/lang/translations/zh-cn.po +24 -24
  61. package/package.json +8 -11
  62. package/src/changeitem.js +1 -1
  63. package/src/editor/revisionviewereditor.js +23 -0
  64. package/src/editor/revisionviewereditorui.js +23 -0
  65. package/src/editor/revisionviewereditoruiview.js +23 -0
  66. package/src/index.js +23 -0
  67. package/src/revision.js +1 -1
  68. package/src/revisiondiff.js +1 -1
  69. package/src/revisionhistory.js +1 -1
  70. package/src/revisionsrepository.js +1 -1
  71. package/src/revisiontracker.js +1 -1
  72. package/src/revisionviewer.js +1 -1
  73. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  74. package/src/ui/revision/revisionauthorview.js +1 -1
  75. package/src/ui/revision/revisionnameview.js +1 -1
  76. package/src/ui/revision/revisionview.js +1 -1
  77. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  78. package/src/ui/revision/subrevisionview.js +1 -1
  79. package/src/ui/revision/utils.js +1 -1
  80. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  81. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  82. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  83. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  84. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  85. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  86. package/src/ui/revisionssidebar/utils.js +1 -1
  87. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  88. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  89. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  90. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  91. package/src/utils/common-translations.js +23 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5572e8 from'@ckeditor/ckeditor5-collaboration-core/src/users';import _0x2d5f00 from'@ckeditor/ckeditor5-core/src/plugin';import _0x2a1e58 from'@ckeditor/ckeditor5-core/src/pendingactions';import _0x5483c4 from'@ckeditor/ckeditor5-engine/src/model/position';import _0x3e15c5 from'@ckeditor/ckeditor5-engine/src/model/range';import _0x2582ac from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import{_insert as _0x140961,_setAttribute as _0x42fcc7}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0x427c92 from'./revisionsrepository';import _0x4aa2c6 from'@ckeditor/ckeditor5-engine/src/view/documentfragment';import _0x47e29e from'@ckeditor/ckeditor5-engine/src/view/text';import _0x321312 from'@ckeditor/ckeditor5-engine/src/view/element';import{uid as _0xc37ea9}from'ckeditor5/src/utils';export default class u extends _0x2d5f00{static get['pluginName'](){return'RevisionTracker';}static get['requires'](){return[_0x5572e8,_0x427c92,_0x2a1e58];}constructor(..._0x5356f9){super(..._0x5356f9),this['adapter']=null,this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['currentRevision']=null;const _0x3f1300=_0xc37ea9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3f1300},this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['set']('isPendingUpdate',!0x1),this['_bufferedUpdates']=new Map();}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{if(this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x25639=this['_source']['getCurrentRevisionId'](),_0x297adb=this['repository']['getRevision'](_0x25639);this['_startingVersion']=_0x297adb?_0x297adb['fromVersion']:this['_source']['history']['_operations'][this['_source']['history']['_operations']['length']-0x1]['baseVersion']+0x1;}else{const _0x40da29=this['repository']['getRevisions']()['find'](_0x11b9cf=>null===_0x11b9cf['creator']);if(_0x40da29){if(this['editor']['model']['document']['version']=_0x40da29['toVersion'],_0x40da29['fromVersion']===_0x40da29['toVersion'])this['_source']['getCurrentRevisionId']=()=>_0x40da29['id'];else{const _0x552d08=this['editor']['plugins']['get']('Users')['me'];_0x40da29['creator']=_0x552d08,_0x40da29['_update']({'creatorId':_0x552d08['id']});}}this['_startingVersion']=this['editor']['model']['document']['version'];}this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x264150=>!_0x264150);}['setSource'](_0xeff47e){this['_source']=_0xeff47e;}async['update'](){const _0x58b014=await this['_source']['getLatestVersion']();if(_0x58b014>this['currentRevision']['toVersion']){const _0x4ac75=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x58b014});_0x4ac75['authors']=_0x4ac75['authorsIds']['map'](_0x45e679=>this['editor']['plugins']['get']('Users')['getUser'](_0x45e679)),this['currentRevision']['_update'](_0x4ac75);}}async['saveRevision'](_0x30740b={},_0x4224ab=null){const _0x1009ec=[];if(_0x4224ab>this['currentRevision']['toVersion']&&(_0x4224ab=null),null===_0x4224ab&&(_0x4224ab=await this['_source']['getLatestVersion']()),this['currentRevision']['toVersion']<_0x4224ab){const _0x2d830b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4224ab,'to':_0x4224ab});_0x2d830b['authors']=[],_0x2d830b['authorsIds']=[],_0x2d830b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2d830b,!0x0),delete _0x2d830b['authors'],_0x1009ec['push'](_0x2d830b);}const _0x159396=this['editor']['plugins']['get']('Users')['me'],_0x51f7cd=this['_getFromVersion'](_0x4224ab),_0x3cfb10=this['buildRevisionData']({'from':_0x51f7cd,'to':_0x4224ab});_0x30740b['creatorId']=_0x159396['id'],_0x30740b['name']=_0x30740b['name']||null,_0x30740b['id']=_0x30740b['id']||_0xc37ea9(),_0x30740b={..._0x30740b,..._0x3cfb10};const _0x16acde=this['addRevisionData'](_0x30740b);_0x1009ec['push'](_0x30740b);const _0x5890a3=this['repository']['getIndex'](_0x16acde);if(0x0!==_0x5890a3){const _0x3d3055=this['repository']['getRevision'](_0x5890a3-0x1);if(_0x3d3055['fromVersion']!==_0x4224ab){const _0x35341c=this['_revisionDataBuilder']['getData'](_0x4224ab,_0x3d3055['toVersion']),_0x52a7c0={'id':_0x3d3055['id'],'diffData':_0x35341c['diffData'],'authorsIds':_0x35341c['authorsIds'],'authors':_0x35341c['authorsIds']['map'](_0x31f8bb=>this['editor']['plugins']['get']('Users')['getUser'](_0x31f8bb)),'fromVersion':_0x4224ab};_0x3d3055===this['currentRevision']&&(_0x52a7c0['createdAt']=new Date(_0x30740b['createdAt']['getTime']()+0xa)),_0x3d3055['_update'](_0x52a7c0,!0x0),delete _0x52a7c0['authors'],_0x1009ec['push'](_0x52a7c0);}}if(this['adapter']){for(const _0x4dd443 of _0x1009ec)this['_bufferUpdate'](_0x4dd443['id'],_0x4dd443,!0x0);this['sendBufferedUpdates']();}return _0x16acde;}['addRevisionData'](_0x95f165){const _0x5d63e0=this['repository']['createRevision'](_0x95f165);return this['adapter']&&_0x5d63e0['on']('_update',(_0x5b1e20,_0x1b30cc,_0x31f1dd)=>{_0x31f1dd||(this['_bufferUpdate'](_0x1b30cc['id'],_0x1b30cc,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5d63e0,this['_findInsertionIndex'](_0x5d63e0)),_0x5d63e0;}async['getRevisionDocumentData'](_0x35ba45){await this['_loadRevisionData'](_0x35ba45);const _0x150ef2={};for(const _0x12a85b in _0x35ba45['diffData']){const _0x2eed39=this['_removeRevisionMarkers'](JSON['parse'](_0x35ba45['diffData'][_0x12a85b]['insertions'])),_0x236f84=this['editor']['editing']['view']['document'],_0x5a531d=new _0x4aa2c6(_0x236f84,_0x2eed39['map'](_0x3c25d9=>this['_getViewObj'](_0x3c25d9)));_0x150ef2[_0x12a85b]=this['editor']['data']['processor']['toData'](_0x5a531d);}return _0x150ef2;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5c24ee=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xf942fb=0x0;_0xf942fb<_0x5c24ee['length'];_0xf942fb++){const _0x3ff9cd=_0x5c24ee[_0xf942fb];let _0x375bd1=!0x1;for(const _0xe68420 of Object['keys'](_0x3ff9cd))void 0x0===_0x3ff9cd[_0xe68420]?delete _0x3ff9cd[_0xe68420]:'id'!==_0xe68420&&(_0x375bd1=!0x0);_0x375bd1||(_0x5c24ee[_0xf942fb]=null);}if(_0x5c24ee=_0x5c24ee['filter'](_0x62ae2=>null!==_0x62ae2),!_0x5c24ee['length'])return;for(let _0x15c71a=0x0;_0x15c71a<_0x5c24ee['length'];_0x15c71a++){const _0x4fe0af=_0x5c24ee[_0x15c71a];void 0x0!==_0x4fe0af['fromVersion']&&void 0x0===_0x4fe0af['toVersion']&&(_0x4fe0af['toVersion']=this['repository']['getRevision'](_0x4fe0af['id'])['toVersion']),void 0x0!==_0x4fe0af['toVersion']&&void 0x0===_0x4fe0af['fromVersion']&&(_0x4fe0af['fromVersion']=this['repository']['getRevision'](_0x4fe0af['id'])['fromVersion']);}const _0x433b23=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5c24ee,_0x433b23)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](()=>{this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_addPendingAction'](){const t=this['editor']['t'];if(!this['_pendingAction']){const _0x287760=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x287760['add'](t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'}));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5d395e){const _0x1d4d23=this['repository']['getRevisions']();_0x1d4d23['reverse']();let _0x8416ff=0x0;for(;_0x8416ff<_0x1d4d23['length'];){const _0x5a8bb5=_0x1d4d23[_0x8416ff];if(_0x5a8bb5['id']===this['_initialRevisionId'])break;const _0x42dd20=_0x5d395e['toVersion']-_0x5a8bb5['toVersion']||_0x5d395e['fromVersion']-_0x5a8bb5['fromVersion'];if(_0x42dd20>0x0)break;if(_0x42dd20<0x0)_0x8416ff++;else{if(!_0x5d395e['creator']&&_0x5a8bb5['creator'])break;if(_0x5a8bb5['creator']||!_0x5d395e['creator']){if(_0x5d395e['createdAt']>_0x5a8bb5['createdAt'])break;_0x8416ff++;}else _0x8416ff++;}}return _0x8416ff;}['setRevisionData'](_0x1d64e6){const _0x341883=this['repository']['getRevision'](_0x1d64e6['id']);if(_0x1d64e6['createdAt']&&(_0x1d64e6['createdAt']=new Date(_0x1d64e6['createdAt'])),_0x1d64e6['authorsIds']){const _0x2b76b9=this['editor']['plugins']['get']('Users');_0x1d64e6['authors']=_0x1d64e6['authorsIds']['map'](_0x53da8c=>_0x2b76b9['getUser'](_0x53da8c));}_0x341883['_update'](_0x1d64e6,!0x0);}['buildRevisionData']({revision:_0x7e919f=null,from:_0x16b440=null,to:_0xcc63f9=null}){_0x16b440=null!==_0x16b440?_0x16b440:_0x7e919f['fromVersion'],_0xcc63f9=null!==_0xcc63f9?_0xcc63f9:_0x7e919f['toVersion'];const _0xf4885d=this['_revisionDataBuilder']['getData'](_0x16b440,_0xcc63f9),_0x379a03={'diffData':_0xf4885d['diffData'],'authorsIds':_0xf4885d['authorsIds'],'fromVersion':_0x16b440,'toVersion':_0xcc63f9};return _0x7e919f&&_0xcc63f9===_0x7e919f['toVersion']||(_0x379a03['createdAt']=new Date()),_0x379a03;}['_loadRevisionData'](_0x5855f9){if(!_0x5855f9||_0x5855f9['diffData'])return Promise['resolve']();{const _0x543d7a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x543d7a,'revisionId':_0x5855f9['id']})['then'](_0x588be3=>{_0x5855f9['diffData']=_0x588be3['diffData'];});}}['_bufferUpdate'](_0x4b5d19,_0x536c65,_0x4c2ad0){if(this['_bufferedUpdates']['has'](_0x4b5d19)){const _0x576a7e=this['_bufferedUpdates']['get'](_0x4b5d19);_0x536c65=_0x4c2ad0?{..._0x576a7e,..._0x536c65}:{..._0x536c65,..._0x576a7e};}this['_bufferedUpdates']['set'](_0x4b5d19,_0x536c65);}['_getFromVersion'](_0x236a98){const _0x5c5b29=this['repository']['getRevisions']();_0x5c5b29['reverse'](),_0x5c5b29['shift']();const _0x102f19=_0x5c5b29['find'](_0x346981=>_0x346981['toVersion']<=_0x236a98)['toVersion'];return _0x102f19<this['_startingVersion']?this['_startingVersion']:_0x102f19;}['_createInitialRevision'](_0x5efdd9){const _0xc002d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xc002d)this['_initialRevisionId']=_0xc002d['id'];else{const t=this['editor']['t'],_0x207751=!this['editor']['model']['document']['roots']['find'](_0x3002ae=>this['editor']['model']['hasContent'](_0x3002ae)),_0x4bd358=this['editor']['plugins']['get']('Users')['me']['id'],_0x451f74=t(_0x207751?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5efdd9,'to':_0x5efdd9,'id':this['_initialRevisionId'],'name':_0x451f74,'creatorId':_0x4bd358});}}['_createCurrentRevision'](_0x30179f){const _0x4ef6ed=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4ef6ed),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x30179f,'to':_0x30179f,'id':_0x4ef6ed}));}['_makeRevision']({name:_0x4fbf7f,from:_0x4953dd,to:_0x57351c,creatorId:_0x2d00b3,id:_0x3a6425}){const _0x1830d0=this['buildRevisionData']({'from':_0x4953dd,'to':_0x57351c});_0x4fbf7f&&(_0x1830d0['name']=_0x4fbf7f),_0x2d00b3&&(_0x1830d0['creatorId']=_0x2d00b3),_0x1830d0['id']=_0x3a6425;const _0x537573=this['addRevisionData'](_0x1830d0);return this['adapter']&&this['_bufferUpdate'](_0x1830d0['id'],_0x1830d0,!0x0),_0x537573;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1f89ec){return(_0x1f89ec=_0x1f89ec['filter'](_0x1613b9=>!_0x1613b9['name']||'revision-start'!==_0x1613b9['name']&&'revision-end'!==_0x1613b9['name']))['forEach'](_0x590cb3=>{'string'!=typeof _0x590cb3&&(_0x590cb3['children']=this['_removeRevisionMarkers'](_0x590cb3['children']),_0x590cb3['attributes']=_0x590cb3['attributes']['filter'](_0xc2ad86=>!_0xc2ad86[0x0]['startsWith']('data-revision-')));}),_0x1f89ec;}['_getViewObj'](_0x4b7d06){const _0x5a4442=this['editor']['editing']['view']['document'];if('string'==typeof _0x4b7d06)return new _0x47e29e(_0x5a4442,_0x4b7d06);{const _0x426f59=_0x4b7d06['children']['map'](_0x3f8cf3=>this['_getViewObj'](_0x3f8cf3));return new _0x321312(_0x5a4442,_0x4b7d06['name'],_0x4b7d06['attributes'],_0x426f59);}}}class V{constructor(_0x557e59){this['editor']=_0x557e59,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_baseRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_revisionId']=0x0,this['_rootNames']=this['editor']['model']['document']['getRootNames'](),this['_rootNames']['push']('$graveyard');}['init'](_0x92730c){this['source']=_0x92730c;const _0x3ac65d=new Map();for(const _0x5e12fc of this['_rootNames']){const _0x3bfdfd=P(this['editor']['model']['document']['getRoot'](_0x5e12fc));for(const _0x129f9b of this['editor']['model']['createRangeIn'](_0x3bfdfd)['getWalker']({'singleCharacters':!0x0})){const _0x478071=this['_getVidAttributeName'](_0x129f9b),_0x5b71e0=_0x129f9b['item'],_0x3eccf8=this['_revisionId']++;_0x42fcc7(this['editor']['model']['createRangeOn'](_0x5b71e0),_0x478071,_0x3eccf8);}_0x3ac65d['set'](_0x5e12fc,_0x3bfdfd);}const _0x50d56a=Array['from'](this['editor']['model']['markers'])['map'](_0xa1424e=>[_0xa1424e['name'],_0xa1424e['getRange']()]),_0x383ed7=this['source']['_operations'][this['source']['_operations']['length']-0x1]['baseVersion']+0x1;this['_saveMetaData'](_0x383ed7,_0x3ac65d,_0x50d56a),this['_startingRevisionId']=this['_revisionId'];}['getData'](_0x215f7b,_0x1ad066){if(this['_lastFrom']===_0x215f7b&&this['_lastTo']<=_0x1ad066)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1ad066);else{if(!this['_savedMetaData']['has'](_0x215f7b)){const _0x166e10=this['_getPreviousFrom'](_0x215f7b);this['_calculateMetaData'](_0x166e10,_0x215f7b);}this['_calculateMetaData'](_0x215f7b,_0x1ad066);}return this['_lastFrom']=_0x215f7b,this['_lastTo']=_0x1ad066,this['_getState']();}['_saveEmptyMetaData'](_0x3da457){const _0x17dcc8=new Map();for(const _0x1cbb9 of this['_rootNames']){const _0x5a9d25=new _0x2582ac();_0x5a9d25['rootName']=_0x1cbb9,_0x17dcc8['set'](_0x1cbb9,_0x5a9d25);}this['_saveMetaData'](_0x3da457,_0x17dcc8,[]);}['_saveMetaData'](_0x3a94e2,_0x2eb206,_0x2a9163){const _0x2000ac=new Map(_0x2eb206),_0x470f2f=new Map();for(const [_0xf81703,_0x178ae0]of _0x2a9163)_0x470f2f['set'](_0xf81703,{'start':_0x178ae0['start']['clone'](),'end':_0x178ae0['end']['clone'](),'rootName':_0x178ae0['root']['rootName']});this['_savedMetaData']['set'](_0x3a94e2,{'roots':_0x2000ac,'markers':_0x470f2f});}['_removeMetaData'](_0x15d042){this['_savedMetaData']['delete'](_0x15d042);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_diffRoots']['clear'](),this['_baseRoots']['clear'](),this['_markers']['clear'](),this['_startingRevisionId']=this['_revisionId'];}['_calculateMetaData'](_0x5ecf3f,_0x3802e0){this['_reset']();const {roots:_0x161d14,markers:_0xe7ca09}=this['_savedMetaData']['get'](_0x5ecf3f);this['_baseRoots']=new Map(_0x161d14),this['_fixGraveyardVids'](this['_baseRoots']['get']('$graveyard'));for(const [_0x14e18e,_0x5e1019]of this['_baseRoots'])this['_diffRoots']['set'](_0x14e18e,P(_0x5e1019));for(const [_0x36e45a,_0x3e462f]of _0xe7ca09){const _0x52f6d6=this['_baseRoots']['get'](_0x3e462f['rootName']),_0x436c26=this['_diffRoots']['get'](_0x3e462f['rootName']),_0x2048a0=new _0x3e15c5(this['_fixPosition'](_0x3e462f['start'],_0x52f6d6),this['_fixPosition'](_0x3e462f['end'],_0x52f6d6)),_0xeebe91=this['_fixRange'](_0x2048a0,_0x436c26);_0x52f6d6['markers']['set'](_0x36e45a,_0x2048a0),this['_markers']['set'](_0x36e45a,_0xeebe91);}this['_applyOperations'](_0x5ecf3f,_0x3802e0);}['_applyOperations'](_0x25476f,_0x43f855){for(const _0x12601a of this['source']['getOperations'](_0x25476f,_0x43f855))this['_handleOperation'](_0x12601a);for(const _0x329c79 of this['_diffRoots']['values']())_0x329c79['markers']['clear']();for(const [_0x5d4647,_0x15b2d5]of this['_markers']){this['_diffRoots']['get'](_0x15b2d5['root']['rootName'])['markers']['set'](_0x5d4647,_0x15b2d5['clone']());}this['_saveMetaData'](_0x43f855,Array['from'](this['_diffRoots'])['map'](([_0x4bb5dc,_0x224b66])=>[_0x4bb5dc,P(_0x224b66)]),this['_markers']);}['_getPreviousFrom'](_0x117f67){const _0x3011cc=Array['from'](this['_savedMetaData']['keys']());_0x3011cc['sort']((_0x1250c7,_0x5d211c)=>_0x1250c7-_0x5d211c),_0x3011cc['reverse']();for(const _0x3fc7a9 of _0x3011cc)if(_0x3fc7a9<_0x117f67)return _0x3fc7a9;const _0x14ff7b=this['source']['_operations'][0x0]['baseVersion'];return this['_saveEmptyMetaData'](_0x14ff7b),_0x14ff7b;}['_fixGraveyardVids'](_0x3c77fa){for(const _0x4f5617 of _0x3c77fa['getChildren']())_0x4f5617['is']('text')?_0x4f5617['_setAttribute']('vid',this['_revisionId']++):(_0x4f5617['_setAttribute']('vid_start',this['_revisionId']++),this['_fixGraveyardVids'](_0x4f5617),_0x4f5617['_setAttribute']('vid_end',this['_revisionId']++));}['_copyMarkers'](_0x328b31,_0xaf05f0){const _0x24f11a=Array['from'](_0xaf05f0['markers'])['map'](([_0x4c5751,_0x5e6c12])=>[_0x4c5751,this['_fixRange'](_0x5e6c12,_0x328b31)]);_0x328b31['markers']=new Map(_0x24f11a);}['_transformMarkers'](_0x1e7168){for(const _0xdd8a59 of this['_markers']['values']()){const _0x294eb6=_0xdd8a59['getTransformedByOperation'](_0x1e7168),_0x56fa70=_0x3e15c5['_createFromRanges'](_0x294eb6);_0xdd8a59['start']=_0x56fa70['start'],_0xdd8a59['end']=_0x56fa70['end'];}}['_handleOperation'](_0x2de492){const _0x43cf4c=_0x2de492['clone']();switch(_0x43cf4c['_authorId']=_0x2de492['_authorId'],this['_fixOperation'](_0x43cf4c,this['_diffRoots']),_0x43cf4c['type']){case'insert':this['_handleInsertOperation'](_0x43cf4c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x43cf4c);break;case'merge':this['_handleMergeOperation'](_0x43cf4c);break;case'split':this['_handleSplitOperation'](_0x43cf4c);break;case'addAttribute':case'changeAttribute':case'removeAttribute':case'rename':_0x43cf4c['_execute']();break;case'marker':this['_handleMarkerOperation'](_0x43cf4c);}this['_transformMarkers'](_0x43cf4c);}['_getBaseVids'](_0x176ad3){return _0x176ad3['map'](_0x549787=>{const _0xff8060=this['_getVidAttributeName'](_0x549787);return Number(_0x549787['item']['getAttribute'](_0xff8060));});}['_generateTape'](_0xafc319,_0x20f035){if(_0xafc319['is']('text'))_0x20f035['push']({'item':_0xafc319,'type':'text'});else{_0xafc319['is']('element')&&_0x20f035['push']({'item':_0xafc319,'type':'elementStart'});for(const _0x3ac0f1 of _0xafc319['getChildren']())this['_generateTape'](_0x3ac0f1,_0x20f035);_0xafc319['is']('element')&&_0x20f035['push']({'item':_0xafc319,'type':'elementEnd'});}return _0x20f035;}['_getState'](){const _0x5ed1d4=this['editor']['model']['document']['getRootNames'](),_0x217d14=new Map(this['_touched']),_0x52463d=new Map(_0x217d14),_0x2e7d1c=new Map(),_0x9a17bf={'insertions':{},'deletions':{}},_0x2af28c={'insertions':{},'deletions':{}},_0x537918=new Map();for(const _0x29200c of _0x5ed1d4){const _0x339d06=this['_diffRoots']['get'](_0x29200c),_0x113c33=this['_baseRoots']['get'](_0x29200c);_0x9a17bf['insertions'][_0x29200c]=P(_0x339d06),_0x9a17bf['deletions'][_0x29200c]=P(_0x113c33),this['_copyMarkers'](_0x9a17bf['deletions'][_0x29200c],_0x113c33),this['_copyMarkers'](_0x9a17bf['insertions'][_0x29200c],_0x339d06),_0x2af28c['insertions'][_0x29200c]=this['_generateTape'](_0x9a17bf['insertions'][_0x29200c],[]),_0x2af28c['deletions'][_0x29200c]=this['_generateTape'](_0x9a17bf['deletions'][_0x29200c],[]);}for(const _0x3475ff of _0x5ed1d4){const _0x68055c=_0x2af28c['insertions'][_0x3475ff];for(const _0x487bf9 of _0x68055c){const _0x13dbc7=this['_getVidAttributeName'](_0x487bf9),_0x4166e2=_0x487bf9['item']['getAttribute'](_0x13dbc7);_0x52463d['delete'](_0x4166e2),_0x4166e2>=this['_startingRevisionId']&&!_0x2e7d1c['has'](_0x4166e2)&&_0x2e7d1c['set'](_0x4166e2,_0x217d14['get'](_0x4166e2));}}for(const _0x11b15d of _0x5ed1d4){const _0x2e5081=_0x2af28c['insertions'][_0x11b15d],_0x4e6ce5=this['_getBaseVids'](_0x2af28c['deletions'][_0x11b15d]);let _0x3044ab=0x0;for(const _0x29afe7 of _0x2e5081){const _0x567d0c=this['_getVidAttributeName'](_0x29afe7),_0x157ced=_0x29afe7['item']['getAttribute'](_0x567d0c);if(!_0x2e7d1c['has'](_0x157ced)&&!_0x537918['has'](_0x157ced)){if(_0x52463d['has'](_0x157ced))_0x3044ab++;else{if(_0x157ced!=_0x4e6ce5[_0x3044ab]){const _0x31481a=_0x217d14['get'](_0x157ced)||_0x217d14['get'](_0x4e6ce5[_0x3044ab]);for(;_0x157ced!=_0x4e6ce5[_0x3044ab];)_0x52463d['has'](_0x4e6ce5[_0x3044ab])||(_0x537918['set'](_0x4e6ce5[_0x3044ab],_0x31481a),_0x217d14['set'](_0x4e6ce5[_0x3044ab],_0x31481a)),_0x3044ab++;}_0x3044ab++;}}}}for(const _0x4b833b of _0x5ed1d4){const _0x35ef49=_0x2af28c['insertions'][_0x4b833b];for(const _0x17e706 of _0x35ef49){const _0x17ff46=this['_getVidAttributeName'](_0x17e706),_0x48a087=_0x17e706['item']['getAttribute'](_0x17ff46);if(_0x537918['has'](_0x48a087)){const _0x557cff=_0x537918['get'](_0x48a087);_0x52463d['has'](_0x48a087)||_0x52463d['set'](_0x48a087,{..._0x557cff});const _0x4ef090=this['_revisionId']++;_0x42fcc7(this['editor']['model']['createRangeOn'](_0x17e706['item']),_0x17ff46,_0x4ef090),_0x2e7d1c['set'](_0x4ef090,{..._0x557cff}),_0x217d14['set'](_0x4ef090,{..._0x557cff});}}}for(const _0x3bf7b8 of _0x52463d['keys']())_0x3bf7b8>=this['_startingRevisionId']&&_0x52463d['delete'](_0x3bf7b8);const _0x4f373a=new Map();for(const _0xfc4ed2 of _0x5ed1d4){let _0x1541ea=_0x2af28c['insertions'][_0xfc4ed2];for(const _0x34009f of _0x1541ea)if(_0x34009f['item']['is']('element','tableCell')){const _0xb59c38=this['_getVidAttributeName'](_0x34009f),_0x480b7a=_0x34009f['item']['getAttribute'](_0xb59c38);if(_0x2e7d1c['has'](_0x480b7a)){const _0x5533f7=_0x34009f['item']['parent']['parent']['getAttribute']('vid_start'),_0x394fd9=_0x4f373a['get'](_0x5533f7)||new Set();_0x394fd9['add'](_0x2e7d1c['get'](_0x480b7a)['userId']),_0x4f373a['set'](_0x5533f7,_0x394fd9);}}_0x1541ea=_0x2af28c['deletions'][_0xfc4ed2];for(const _0x1c1a7a of _0x1541ea)if(_0x1c1a7a['item']['is']('element','tableCell')){const _0x4099a6=this['_getVidAttributeName'](_0x1c1a7a),_0x28d131=_0x1c1a7a['item']['getAttribute'](_0x4099a6);if(_0x52463d['has'](_0x28d131)){const _0x136d05=_0x1c1a7a['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a982b=_0x4f373a['get'](_0x136d05)||new Set();_0x3a982b['add'](_0x52463d['get'](_0x28d131)['userId']),_0x4f373a['set'](_0x136d05,_0x3a982b);}}for(const _0x45fc2f of _0x4f373a['keys']())(_0x2e7d1c['has'](_0x45fc2f)||_0x52463d['has'](_0x45fc2f))&&_0x4f373a['delete'](_0x45fc2f);}for(const _0x485b7c of _0x5ed1d4){const _0x2d9ea0=_0x2af28c['insertions'][_0x485b7c];let _0x461902=null,_0x3c6985=null;for(const _0x4b1466 of _0x2d9ea0){const _0x346a4b=this['_getVidAttributeName'](_0x4b1466),_0x274f64=_0x4b1466['item']['getAttribute'](_0x346a4b),_0x22f48d=_0x4f373a['get'](_0x274f64);if(_0x22f48d&&'elementStart'==_0x4b1466['type']&&(_0x461902=Array['from'](_0x22f48d)[0x0],_0x3c6985=_0x4b1466['item']['getAttribute']('vid_end')),_0x461902){const _0x29515a=this['_getVidAttributeName'](_0x4b1466),_0x4b982e=_0x4b1466['item']['getAttribute'](_0x29515a),_0x2a9912=this['_revisionId']++;_0x52463d['set'](_0x4b982e,{'userId':_0x461902}),_0x2e7d1c['set'](_0x2a9912,{'userId':_0x461902}),_0x42fcc7(this['editor']['model']['createRangeOn'](_0x4b1466['item']),_0x29515a,_0x2a9912);}_0x274f64==_0x3c6985&&(_0x461902=null,_0x3c6985=null);}}const _0x4b3cd0={},_0x1b45e9=new Set();for(const _0x380a87 of _0x5ed1d4){const _0x10f1ed=_0x9a17bf['deletions'][_0x380a87],_0x52a4a1=_0x9a17bf['insertions'][_0x380a87];for(const {userId:_0x296f75}of this['_touchedMarkers']['values']())null!==_0x296f75&&_0x1b45e9['add'](_0x296f75);this['_markChanges'](_0x52a4a1,_0x2af28c['insertions'][_0x380a87],_0x2e7d1c,'insertion',_0x1b45e9),this['_markChanges'](_0x10f1ed,_0x2af28c['deletions'][_0x380a87],_0x52463d,'deletion',_0x1b45e9),this['_removeVids'](_0x52a4a1),this['_removeVids'](_0x10f1ed),_0x4b3cd0[_0x380a87]={'insertions':this['_prepareViewToSave'](_0x52a4a1),'deletions':this['_prepareViewToSave'](_0x10f1ed)};}return{'diffData':_0x4b3cd0,'authorsIds':Array['from'](_0x1b45e9)};}['_processRootBeforeSave'](_0x30a67d){for(const [_0x2a0ed6,_0x2a0d3c]of _0x30a67d['markers']){if(!_0x2a0ed6['startsWith']('revision:'))continue;const _0x11c10b=_0x2a0d3c['start']['getAncestors']()['filter'](_0x3f2bfc=>'tableCell'==_0x3f2bfc['name']);for(const _0x3c6f6e of _0x11c10b)0x1==_0x3c6f6e['childCount']&&_0x3c6f6e['getChild'](0x0)['is']('element','paragraph')&&_0x3c6f6e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1fed73){this['_processRootBeforeSave'](_0x1fed73);const _0x517858=this['editor']['data']['toView'](_0x1fed73,{}),_0x35968f=Array['from'](_0x517858['getChildren']())['map'](_0xa0e4fa=>this['_getViewObj'](_0xa0e4fa));return JSON['stringify'](_0x35968f);}['_getViewObj'](_0x5908ac){return _0x5908ac['is']('text')?_0x5908ac['data']:{'name':_0x5908ac['name'],'attributes':Array['from'](_0x5908ac['getAttributes']()),'children':Array['from'](_0x5908ac['getChildren']())['map'](_0x476024=>this['_getViewObj'](_0x476024))};}['_removeVids'](_0x209a4a){const _0x51d444=_0x209a4a['_removeChildren'](0x0,_0x209a4a['childCount']);for(const _0x1e24ef of _0x51d444)_0x1e24ef['is']('text')?_0x1e24ef['_removeAttribute']('vid'):(_0x1e24ef['_removeAttribute']('vid_start'),_0x1e24ef['_removeAttribute']('vid_end'),this['_removeVids'](_0x1e24ef));_0x140961(this['editor']['model']['createPositionAt'](_0x209a4a,0x0),_0x51d444);}['_markChanges'](_0x3f1d28,_0x4e2e98,_0x19be75,_0x1eb563,_0x48e81e){let _0x5f21bd=null,_0x2c324b=null,_0x6cec42=0x0;const _0x4b6701=this['editor']['model'];for(let _0x4540fe=0x0;_0x4540fe<_0x4e2e98['length'];_0x4540fe++){const _0x27084c=this['_getVidAttributeName'](_0x4e2e98[_0x4540fe]),_0x71a82e=_0x4e2e98[_0x4540fe]['item']['getAttribute'](_0x27084c),_0x460fac=_0x19be75['get'](_0x71a82e),_0x2b74e6=_0x4540fe==_0x4e2e98['length']-0x1;(!_0x5f21bd&&_0x460fac&&(_0x5f21bd=_0x460fac,_0x2c324b=_0x4e2e98[_0x4540fe]),_0x5f21bd&&(!_0x460fac||_0x460fac['userId']!=_0x5f21bd['userId']))&&(_0x4d5236(_0x460fac,N(_0x2c324b,_0x4b6701),N(_0x4e2e98[_0x4540fe],_0x4b6701)),_0x5f21bd=_0x460fac||null,_0x2c324b=_0x460fac?_0x4e2e98[_0x4540fe]:null),_0x5f21bd&&_0x2b74e6&&_0x4d5236(_0x460fac,N(_0x2c324b,_0x4b6701),E(_0x4e2e98[_0x4540fe],_0x4b6701));}function _0x4d5236(_0x46cc9e,_0x2bfdd0,_0x3e5f6a){const _0x35f30d=_0x5f21bd['userId'],_0x313ac6='revision:'+_0x1eb563+':'+_0x35f30d+':'+_0x6cec42++,_0x47bdaa=_0x4b6701['createRange'](_0x2bfdd0,_0x3e5f6a);_0x3f1d28['markers']['set'](_0x313ac6,_0x47bdaa),null!==_0x35f30d&&_0x48e81e['add'](_0x35f30d);}}['_getVidAttributeName'](_0xd6f39b){switch(_0xd6f39b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x319c52,_0x44807b){_0x319c52['baseVersion']=null;for(const _0x4b50cd in _0x319c52){if(_0x319c52[_0x4b50cd]instanceof _0x5483c4){const _0x503be5=_0x44807b['get'](_0x319c52[_0x4b50cd]['root']['rootName']);_0x319c52[_0x4b50cd]=this['_fixPosition'](_0x319c52[_0x4b50cd],_0x503be5);}if(_0x319c52[_0x4b50cd]instanceof _0x3e15c5){const _0x2ec854=_0x44807b['get'](_0x319c52[_0x4b50cd]['root']['rootName']);_0x319c52[_0x4b50cd]=this['_fixRange'](_0x319c52[_0x4b50cd],_0x2ec854);}}_0x319c52['root']&&(_0x319c52['root']=_0x44807b['get'](_0x319c52['root']['rootName']));}['_fixRange'](_0x642c4b,_0x100cee){return this['editor']['model']['createRange'](this['_fixPosition'](_0x642c4b['start'],_0x100cee),this['_fixPosition'](_0x642c4b['end'],_0x100cee));}['_fixPosition'](_0x346825,_0x2e628a){return this['editor']['model']['createPositionFromPath'](_0x2e628a,_0x346825['path'],_0x346825['stickiness']);}['_handleInsertOperation'](_0x47d1be){_0x47d1be['_execute']();const _0x5633ff=null===_0x47d1be['_authorId']?null:_0x47d1be['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d31c3=this['editor']['model']['createRange'](_0x47d1be['position'],_0x47d1be['position']['getShiftedBy'](_0x47d1be['howMany']));for(const _0x2201a3 of _0x1d31c3['getWalker']({'singleCharacters':!0x0})){const _0x3f8fee=this['_getVidAttributeName'](_0x2201a3),_0x5870a3=this['_revisionId']++;_0x42fcc7(this['editor']['model']['createRangeOn'](_0x2201a3['item']),_0x3f8fee,_0x5870a3),this['_touched']['set'](_0x5870a3,{'userId':_0x5633ff});}}['_handleMoveOperation'](_0x4e9fc2){_0x4e9fc2['_execute']();const _0x59beb1=null===_0x4e9fc2['_authorId']?null:_0x4e9fc2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b5815=_0x4e9fc2['getMovedRangeStart'](),_0x34a7d7=this['editor']['model']['createRange'](_0x1b5815,_0x1b5815['getShiftedBy'](_0x4e9fc2['howMany']));for(const _0x244ee9 of _0x34a7d7['getWalker']({'singleCharacters':!0x0})){const _0x3cd885=this['_getVidAttributeName'](_0x244ee9),_0x5b320d=_0x244ee9['item']['getAttribute'](_0x3cd885);this['_touched']['set'](_0x5b320d,{'userId':_0x59beb1});}}['_handleMergeOperation'](_0x27fce7){const _0x3d49f4=null===_0x27fce7['_authorId']?null:_0x27fce7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e1433=_0x27fce7['targetPosition']['parent'],_0x3bb81b=_0x27fce7['sourcePosition']['parent'],_0x58f9e7=_0x5e1433['getAttribute']('vid_end'),_0x28f158=_0x3bb81b['getAttribute']('vid_start');_0x42fcc7(this['editor']['model']['createRangeOn'](_0x5e1433),'vid_end',_0x3bb81b['getAttribute']('vid_end')),_0x42fcc7(this['editor']['model']['createRangeOn'](_0x3bb81b),'vid_end',_0x58f9e7),this['_touched']['set'](_0x28f158,{'userId':_0x3d49f4}),this['_touched']['set'](_0x58f9e7,{'userId':_0x3d49f4}),_0x27fce7['_execute']();}['_handleSplitOperation'](_0x3c77d0){const _0x3693d6=null===_0x3c77d0['_authorId']?null:_0x3c77d0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b49c8=_0x3c77d0['graveyardPosition'],_0x5beaf5=_0x3c77d0['splitPosition']['parent'];_0x3c77d0['_execute']();const _0x19b255=_0x5beaf5['getAttribute']('vid_end'),_0x376efc=_0x3c77d0['insertionPosition']['nodeAfter'];if(_0x2b49c8){const _0x276453=_0x376efc['getAttribute']('vid_end'),_0x4b5e65=_0x5beaf5['getAttribute']('vid_end');_0x42fcc7(this['editor']['model']['createRangeOn'](_0x5beaf5),'vid_end',_0x276453),_0x42fcc7(this['editor']['model']['createRangeOn'](_0x376efc),'vid_end',_0x4b5e65),this['_touched']['set'](_0x5beaf5['getAttribute']('vid_end'),{'userId':_0x3693d6}),this['_touched']['set'](_0x376efc['getAttribute']('vid_start'),{'userId':_0x3693d6});}else{const _0x9d8e8d=this['_revisionId']++,_0x30f362=this['_revisionId']++;_0x42fcc7(this['editor']['model']['createRangeOn'](_0x5beaf5),'vid_end',_0x9d8e8d),_0x42fcc7(this['editor']['model']['createRangeOn'](_0x376efc),'vid_start',_0x30f362),_0x42fcc7(this['editor']['model']['createRangeOn'](_0x376efc),'vid_end',_0x19b255),this['_touched']['set'](_0x9d8e8d,{'userId':_0x3693d6}),this['_touched']['set'](_0x30f362,{'userId':_0x3693d6});}}['_handleMarkerOperation'](_0x5d383f){if(!_0x5d383f['affectsData'])return;const _0x13e5e5=_0x5d383f['oldRange']?_0x5d383f['oldRange']['root']:null,_0x1f9fdc=_0x5d383f['newRange']?_0x5d383f['newRange']['root']:null;_0x13e5e5&&this['_markers']['delete'](_0x5d383f['name']),_0x1f9fdc&&this['_markers']['set'](_0x5d383f['name'],_0x5d383f['newRange']['clone']());const _0x14b604=null===_0x5d383f['_authorId']?null:_0x5d383f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3920cf=_0x5d383f['name'];if(!this['_touchedMarkers']['has'](_0x3920cf))return void this['_touchedMarkers']['set'](_0x3920cf,{'range':_0x5d383f['oldRange'],'userId':_0x14b604});const _0x1476e5=this['_touchedMarkers']['get'](_0x3920cf),_0x5c2119=_0x1476e5['range'],_0x478c64=_0x5d383f['newRange'];null==_0x5c2119&&null==_0x478c64||_0x5c2119&&_0x478c64&&_0x5c2119['isEqual'](_0x478c64)?this['_touchedMarkers']['delete'](_0x5d383f['name']):_0x1476e5['userId']=_0x14b604;}}function P(_0x5cc548){const _0x3fe843=new _0x2582ac();_0x3fe843['rootName']=_0x5cc548['rootName'];for(const _0x1a0e24 of _0x5cc548['getChildren']()){const _0x3a327e=_0x1a0e24['_clone'](!0x0);_0x3fe843['_appendChild'](_0x3a327e);}return _0x3fe843;}function N(_0x22edba,_0x2ae3d2){return'elementEnd'==_0x22edba['type']?_0x2ae3d2['createPositionAt'](_0x22edba['item'],'end'):_0x2ae3d2['createPositionBefore'](_0x22edba['item']);}function E(_0x5511ef,_0x34d061){return'elementStart'==_0x5511ef['type']?_0x34d061['createPositionAt'](_0x5511ef['item'],0x0):_0x34d061['createPositionAfter'](_0x5511ef['item']);}
23
+ const _0x1e70=['_lastFrom','diffData','getOperations','clone','dataDowncast','createPositionAfter','_authorId','size','vid_start','getRootNames','name','_findInsertionIndex','reverse','from','elementEnd','_revisionDataBuilder','keys','init','_copyMarkers','_cloneOperation','_saveEmptyMetaData','element','isPendingUpdate','map','elementStart','finally','_operations','RevisionsRepository','history','processor','children','version','_getFromVersion','updateRevisions','editor','marker','offset','_startingRevisionId','_makeRevision','_createCurrentRevision','_getPreviousFrom','_idsRoots','source','RealTimeCollaborationClient','max','_update','_calculateMetaData','userId','_clone','_makeModelFromViewString','createPositionBefore','_pendingAction','_transformMarkers','root','baseVersion','_handleMarkerOperation','_getBaseVids','_source','plugins','resolve','type','push','_fixOperation','getLatestVersion','buildRevisionData','getAncestors','collaboration.channelId','remove','oldRange','_handleMoveOperation','vid_end','start','Users','_isInit','getOperation','getWalker','_insertChild','getTransformedByOperation','documentFragment','isEqual','_makeIdsRoot','newRange','_appendChild','_isPendingUpdate','split','NEGATIVE_INFINITY','Initial\x20revision','_revisionId','getRange','getRevision','define','_handleMergeOperation','sourcePosition','add','getAttribute','roots','targetPosition','_savedMetaData','_getState','filter','sendBufferedUpdates','_execute','update','toView','creatorId','getNodeByPath','markerToData','upcast','_markers','set','_saveMetaData','_processRootBeforeSave','_continueCurrentRevision','revision','saveRevision','ready','_startingVersion','currentRevision','_rootNames','Empty\x20document','getChildren','clear','_bufferedUpdates','_touchedMarkers','hasContent','getCurrentRevisionId','_applyOperations','dataToMarker','loadState','trim','data-revision-','initial','_handleInsertOperation','requires','createRevision','creator','getUser','isReady','data','getChild','has','conversion','authorsIds','offsetSize','PendingActions','previousPosition','_getVidAttributeName','values','_handleOperation','locale','startsWith','position','range','_fixRange','_lastTo','for','adapter','insertions','paragraph','rootName','delete','get','stringify','_getViewJson','pluginName','$graveyard','length','createdAt','initialData','_loadState','_replaceEditorDataWithRevisionData','createPositionAt','getRoot','getTime','toData','includes','_addPendingAction','editor-initial-data-replaced-with-revision-data','_loadRevisionData','document','markers','_removeMetaData','end','path','_handleSplitOperation','addRevisionData','insertionPosition','_fixPosition','keepParagraph','sort','_reset','_diffRoots','_initialRevisionId','setRevisionData','_setConversion','repository','vid','authors','insert','splitPosition','find','_removePendingAction','_setAttribute','fromVersion','$text','view','_bufferUpdate','merge','_removeRevisionMarkers','forEach','getData','string','slice','_baseRoots','_prepareViewToSave','toModel','reinsert','toVersion','editing','item','tableCell','_generateTape','deletions','revisionHistory.resumeUnsavedRevision','revision-start','createRangeIn','getMovedRangeStart','setSource','getRevisions','_baseIdsRoots','_touched','then','revision:','_markChanges','_loadedStateData','model','attributes','createPositionFromPath','getRevisionDocumentData','parent','config','childCount','graveyardPosition'];(function(_0x27e214,_0x1e7002){const _0x198a51=function(_0x2efb81){while(--_0x2efb81){_0x27e214['push'](_0x27e214['shift']());}};_0x198a51(++_0x1e7002);}(_0x1e70,0x10b));const _0x198a=function(_0x27e214,_0x1e7002){_0x27e214=_0x27e214-0x0;let _0x198a51=_0x1e70[_0x27e214];return _0x198a51;};import{Users as _0x10cad1}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x4f0909,PendingActions as _0x4e5575}from'ckeditor5/src/core';import{logWarning as _0x46de1d,uid as _0x5e2cce}from'ckeditor5/src/utils';import{Position as _0x56f436,Range as _0x2cb92c,Element as _0xb89447,DocumentFragment as _0x2d8a24,ViewText as _0x44defc,ViewElement as _0x40dd9f,ViewContainerElement as _0x48a158,ViewAttributeElement as _0x219339,ViewEmptyElement as _0x4b838d,ViewRawElement as _0x1e3d4f,ViewUIElement as _0xd7b8e2,ViewDocumentFragment as _0x87dfb3}from'ckeditor5/src/engine';import _0x3a8a97 from'./revisionsrepository';import{getTranslation as _0x4445bc}from'./utils/common-translations';const T={'c':_0x48a158,'a':_0x219339,'e':_0x4b838d,'r':_0x1e3d4f,'u':_0xd7b8e2};export default class l extends _0x4f0909{static get[_0x198a('0x8c')](){return'RevisionTracker';}static get[_0x198a('0x6d')](){return[_0x10cad1,_0x3a8a97,_0x4e5575];}constructor(..._0x3a7980){super(..._0x3a7980),this['adapter']=null,this[_0x198a('0x55')](_0x198a('0x71'),!0x1),this[_0x198a('0x55')]('isEnabled',!0x0),this['currentRevision']=null;const _0xe76eeb=_0x5e2cce();this[_0x198a('0x21')]={'history':this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')]['history'],'getLatestVersion':()=>Promise[_0x198a('0x23')](this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x7')]),'getCurrentRevisionId':()=>_0xe76eeb},this['_revisionDataBuilder']=new j(this[_0x198a('0xa')]),this[_0x198a('0xa8')]=this['editor'][_0x198a('0xd8')][_0x198a('0x89')](_0x198a('0x2a'))||_0x198a('0x6b'),this[_0x198a('0x55')](_0x198a('0xf1'),!0x1),this[_0x198a('0x62')]=new Map(),this[_0x198a('0xa')][_0x198a('0xd8')][_0x198a('0x42')](_0x198a('0xc7'),!0x0),this[_0x198a('0xd2')]=null,this[_0x198a('0xa')][_0x198a('0x75')][_0x198a('0x83')](_0x198a('0x53'))[_0x198a('0x67')]({'view':_0x198a('0x59')});}[_0x198a('0xec')](){this[_0x198a('0xab')]=this[_0x198a('0xa')]['plugins'][_0x198a('0x89')](_0x198a('0x3')),this[_0x198a('0xaa')](),this[_0x198a('0xa')]['data']['on'](_0x198a('0x5b'),()=>{const _0x23b5b0=this[_0x198a('0xab')][_0x198a('0x41')](0x0),_0x3c53a1=_0x23b5b0&&null===_0x23b5b0[_0x198a('0x6f')]?_0x23b5b0:null;if(this['_continueCurrentRevision']=!!_0x3c53a1&&this[_0x198a('0xa')][_0x198a('0xd8')]['get']('revisionHistory.resumeUnsavedRevision'),this[_0x198a('0xa')][_0x198a('0x22')][_0x198a('0x74')](_0x198a('0x13'))){const _0x14530a=this[_0x198a('0x21')]['getCurrentRevisionId'](),_0x3c7b83=this[_0x198a('0xab')][_0x198a('0x41')](_0x14530a);if(_0x3c7b83)this[_0x198a('0x5c')]=_0x3c7b83[_0x198a('0xb3')],this[_0x198a('0x58')]=!0x1;else{const _0x9b7fc2=this[_0x198a('0x21')][_0x198a('0x4')][_0x198a('0x2')][_0x198a('0xb0')](_0x2d8bb7=>!_0x2d8bb7[_0x198a('0x31')]),_0x4d5f22=_0x9b7fc2?_0x9b7fc2[_0x198a('0x1e')]:this[_0x198a('0x21')]['history'][_0x198a('0x7')];_0x23b5b0?(_0x23b5b0[_0x198a('0xc1')]<_0x4d5f22&&_0x23b5b0[_0x198a('0x15')]({'toVersion':_0x4d5f22}),this[_0x198a('0x58')]?(this[_0x198a('0x21')][_0x198a('0x65')]=()=>_0x3c53a1['id'],this['_startingVersion']=_0x3c53a1['fromVersion']):(this[_0x198a('0x5c')]=_0x23b5b0[_0x198a('0xc1')],this[_0x198a('0x58')]=!0x1)):(this[_0x198a('0x5c')]=_0x4d5f22,this[_0x198a('0x58')]=!0x1);}}else _0x3c53a1&&(this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x4')][_0x198a('0x7')]=Math[_0x198a('0x14')](_0x3c53a1[_0x198a('0xc1')],this[_0x198a('0xa')]['model'][_0x198a('0x9b')][_0x198a('0x4')][_0x198a('0x7')]),_0x3c53a1[_0x198a('0xb3')]===_0x3c53a1[_0x198a('0xc1')]?(0x0!==_0x3c53a1['fromVersion']&&(this[_0x198a('0x21')][_0x198a('0x65')]=()=>_0x3c53a1['id']),this['_continueCurrentRevision']=!0x1):this[_0x198a('0x58')]&&(this[_0x198a('0x21')]['getCurrentRevisionId']=()=>_0x3c53a1['id'],this['_startingVersion']=_0x3c53a1[_0x198a('0xb3')])),this[_0x198a('0x58')]||(this[_0x198a('0x5c')]=this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x7')]);this[_0x198a('0xea')][_0x198a('0xec')](this['_source'][_0x198a('0x4')]),this['_createInitialRevision'](this[_0x198a('0x5c')]),this[_0x198a('0xf')](this[_0x198a('0x5c')]),this[_0x198a('0x84')]&&this['sendBufferedUpdates']();}),this['bind'](_0x198a('0x71'))['to'](this,_0x198a('0x3b'),_0x47192e=>!_0x47192e);}async['afterInit'](){if(this[_0x198a('0xab')][_0x198a('0x8e')]>0x0){const _0x268060=this[_0x198a('0xab')][_0x198a('0x41')](0x0),_0x2f2542=await this[_0x198a('0xd6')](_0x268060);this[_0x198a('0x92')](_0x2f2542);}}[_0x198a('0xcb')](_0x2ee91a){this['_source']=_0x2ee91a;}async[_0x198a('0x4e')](){const _0x5a51ee=await this[_0x198a('0x21')][_0x198a('0x27')]();if(_0x5a51ee>this[_0x198a('0x5d')][_0x198a('0xc1')]){await this[_0x198a('0x91')]();const _0x3fc894=this[_0x198a('0x28')]({'revision':this[_0x198a('0x5d')],'to':_0x5a51ee});_0x3fc894['authors']=_0x3fc894[_0x198a('0x76')][_0x198a('0xf2')](_0xf2c361=>this[_0x198a('0xa')][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))[_0x198a('0x70')](_0xf2c361)),this[_0x198a('0x5d')]['_update'](_0x3fc894);}}async[_0x198a('0x91')](){this[_0x198a('0x58')]&&!this[_0x198a('0xd2')]&&(await this['_loadRevisionData'](this[_0x198a('0x5d')]),this[_0x198a('0xea')][_0x198a('0x68')](this[_0x198a('0x5d')]),this[_0x198a('0xd2')]={'fromVersion':this[_0x198a('0x5d')][_0x198a('0xb3')],'authors':this[_0x198a('0x5d')][_0x198a('0xad')]['slice']()});}async[_0x198a('0x5a')](_0x153cb7={},_0x542ced=null){const _0x4d72a3=[];await this[_0x198a('0x91')](),this[_0x198a('0x58')]=!0x1,_0x542ced>this[_0x198a('0x5d')][_0x198a('0xc1')]&&(_0x542ced=null),null===_0x542ced&&(_0x542ced=await this[_0x198a('0x21')][_0x198a('0x27')]());const _0xe1d9d0=this['_getFromVersion'](_0x542ced),_0x55566e=this['buildRevisionData']({'from':_0xe1d9d0,'to':_0x542ced});if(this[_0x198a('0x5d')]['toVersion']<_0x542ced){const _0x5393a2=this[_0x198a('0x28')]({'revision':this['currentRevision'],'from':_0x542ced,'to':_0x542ced});_0x5393a2['authors']=[],_0x5393a2[_0x198a('0x76')]=[],_0x5393a2['id']=this[_0x198a('0x5d')]['id'],this[_0x198a('0x5d')][_0x198a('0x15')](_0x5393a2,!0x0),delete _0x5393a2['authors'],_0x4d72a3[_0x198a('0x25')](_0x5393a2);}_0x153cb7[_0x198a('0x50')]=this[_0x198a('0xa')][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x153cb7[_0x198a('0xe5')]=_0x153cb7['name']||null,_0x153cb7['id']=_0x153cb7['id']||_0x5e2cce(),_0x153cb7={..._0x153cb7,..._0x55566e};const _0x154d4c=this['addRevisionData'](_0x153cb7);_0x4d72a3[_0x198a('0x25')](_0x153cb7);const _0xf5eabc=this['repository']['getIndex'](_0x154d4c);if(0x0!==_0xf5eabc){const _0x3c9d1b=this[_0x198a('0xab')][_0x198a('0x41')](_0xf5eabc-0x1);if(_0x3c9d1b[_0x198a('0xb3')]!==_0x542ced){const _0x165fe2=this[_0x198a('0xea')][_0x198a('0xba')](_0x542ced,_0x3c9d1b['toVersion']),_0x1395b3={'id':_0x3c9d1b['id'],'diffData':_0x165fe2[_0x198a('0xdc')],'authorsIds':_0x165fe2[_0x198a('0x76')],'authors':_0x165fe2[_0x198a('0x76')][_0x198a('0xf2')](_0x5256a7=>this[_0x198a('0xa')]['plugins'][_0x198a('0x89')](_0x198a('0x30'))[_0x198a('0x70')](_0x5256a7)),'fromVersion':_0x542ced};_0x3c9d1b===this[_0x198a('0x5d')]&&(_0x1395b3[_0x198a('0x8f')]=new Date(_0x153cb7['createdAt'][_0x198a('0x95')]()+0xa)),_0x3c9d1b['_update'](_0x1395b3,!0x0),delete _0x1395b3[_0x198a('0xad')],_0x4d72a3[_0x198a('0x25')](_0x1395b3);}}if(this[_0x198a('0x84')]){for(const _0x3c126a of _0x4d72a3)this['_bufferUpdate'](_0x3c126a['id'],_0x3c126a,!0x0);this[_0x198a('0x4c')]();}return _0x154d4c;}[_0x198a('0xa1')](_0x301afd){const _0x290348=this[_0x198a('0xab')][_0x198a('0x6e')](_0x301afd);return this[_0x198a('0x84')]&&_0x290348['on'](_0x198a('0x15'),(_0x45e8af,_0x26ea7a,_0x55158f)=>{_0x55158f||(this['_bufferUpdate'](_0x26ea7a['id'],_0x26ea7a,!0x0),this[_0x198a('0x4c')]());}),this[_0x198a('0xab')]['addRevision'](_0x290348,this[_0x198a('0xe6')](_0x290348)),_0x290348;}async[_0x198a('0xd6')](_0x5338bd){await this[_0x198a('0x9a')](_0x5338bd);const _0x2220c3={};for(const _0x231a0f in _0x5338bd[_0x198a('0xdc')]){const _0x3cec74=this['_removeRevisionMarkers'](JSON['parse'](_0x5338bd[_0x198a('0xdc')][_0x231a0f][_0x198a('0x85')])),_0x23fd3b=this[_0x198a('0xa')]['editing'][_0x198a('0xb5')][_0x198a('0x9b')],_0x6d548c=new _0x87dfb3(_0x23fd3b,_0x3cec74[_0x198a('0xf2')](_0x414200=>J(_0x414200,this[_0x198a('0xa')])));_0x2220c3[_0x231a0f]=this[_0x198a('0xa')][_0x198a('0x72')][_0x198a('0x5')][_0x198a('0x96')](_0x6d548c);}return _0x2220c3;}['sendBufferedUpdates'](){if(0x0===this[_0x198a('0x62')][_0x198a('0xe2')])return;if(this[_0x198a('0x3b')])return;let _0x4a4c0f=Array[_0x198a('0xe8')](this[_0x198a('0x62')][_0x198a('0x7b')]());this[_0x198a('0x62')]['clear']();for(let _0x11330a=0x0;_0x11330a<_0x4a4c0f[_0x198a('0x8e')];_0x11330a++){const _0xf643a2=_0x4a4c0f[_0x11330a];let _0x5eb358=!0x1;for(const _0x4522d6 of Object[_0x198a('0xeb')](_0xf643a2))void 0x0===_0xf643a2[_0x4522d6]?delete _0xf643a2[_0x4522d6]:'id'!==_0x4522d6&&(_0x5eb358=!0x0);_0x5eb358||(_0x4a4c0f[_0x11330a]=null);}if(_0x4a4c0f=_0x4a4c0f['filter'](_0x235b01=>null!==_0x235b01),!_0x4a4c0f[_0x198a('0x8e')])return;for(let _0x4d7f00=0x0;_0x4d7f00<_0x4a4c0f[_0x198a('0x8e')];_0x4d7f00++){const _0x1332e4=_0x4a4c0f[_0x4d7f00];void 0x0!==_0x1332e4['fromVersion']&&void 0x0===_0x1332e4['toVersion']&&(_0x1332e4[_0x198a('0xc1')]=this[_0x198a('0xab')]['getRevision'](_0x1332e4['id'])['toVersion']),void 0x0!==_0x1332e4[_0x198a('0xc1')]&&void 0x0===_0x1332e4['fromVersion']&&(_0x1332e4[_0x198a('0xb3')]=this[_0x198a('0xab')]['getRevision'](_0x1332e4['id'])[_0x198a('0xb3')]);}const _0x55324e=this[_0x198a('0xa')]['config'][_0x198a('0x89')](_0x198a('0x2a'));this[_0x198a('0x3b')]=!0x0,this[_0x198a('0x98')](),this[_0x198a('0x84')][_0x198a('0x9')](_0x4a4c0f,_0x55324e)[_0x198a('0x1')](()=>{this['_isPendingUpdate']=!0x1;})[_0x198a('0xcf')](_0x53c457=>{if(_0x53c457)for(const _0x13b66c of _0x53c457)this[_0x198a('0xa9')]({'id':_0x13b66c['id'],'createdAt':_0x13b66c[_0x198a('0x8f')]});this[_0x198a('0xb1')](),this[_0x198a('0x4c')]();});}[_0x198a('0x92')](_0x542a02){let _0x208671=this['editor'][_0x198a('0xd8')][_0x198a('0x89')](_0x198a('0x90'));if(void 0x0===_0x208671){_0x208671={};for(const _0x370a43 of this['editor']['model'][_0x198a('0x9b')][_0x198a('0xe4')]())_0x208671[_0x370a43]='';}'string'==typeof _0x208671&&(_0x208671={'main':_0x208671});let _0x2e6657=!0x1;for(const _0x3e1ea5 of Object['keys'](_0x208671))_0x542a02[_0x3e1ea5]&&(_0x208671[_0x3e1ea5]!==_0x542a02[_0x3e1ea5]&&''!==_0x208671[_0x3e1ea5][_0x198a('0x69')]()&&(_0x2e6657=!0x0),_0x208671[_0x3e1ea5]=_0x542a02[_0x3e1ea5]);_0x2e6657&&_0x46de1d(_0x198a('0x99')),this[_0x198a('0xa')][_0x198a('0xd8')][_0x198a('0x55')](_0x198a('0x90'),_0x208671);}['_addPendingAction'](){if(!this[_0x198a('0x1b')]){const _0x18fb5d=this[_0x198a('0xa')][_0x198a('0x22')]['get']('PendingActions');this[_0x198a('0x1b')]=_0x18fb5d[_0x198a('0x45')](_0x4445bc(this[_0x198a('0xa')][_0x198a('0x7d')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x198a('0xb1')](){this[_0x198a('0x1b')]&&(this['editor'][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x78'))[_0x198a('0x2b')](this[_0x198a('0x1b')]),this[_0x198a('0x1b')]=null);}[_0x198a('0xe6')](_0x3bd67e){const _0x37ef25=this[_0x198a('0xab')][_0x198a('0xcc')]();_0x37ef25[_0x198a('0xe7')]();let _0x825977=0x0;for(;_0x825977<_0x37ef25['length'];){const _0x1080dc=_0x37ef25[_0x825977];if(_0x1080dc===this[_0x198a('0x5d')]){_0x825977++;continue;}if(_0x1080dc['id']===this[_0x198a('0xa8')])break;const _0x4fd158=_0x3bd67e['toVersion']-_0x1080dc[_0x198a('0xc1')]||_0x3bd67e['fromVersion']-_0x1080dc[_0x198a('0xb3')];if(_0x4fd158>0x0)break;if(_0x4fd158<0x0)_0x825977++;else{if(!_0x3bd67e[_0x198a('0x6f')]&&_0x1080dc['creator'])break;if(_0x1080dc[_0x198a('0x6f')]||!_0x3bd67e[_0x198a('0x6f')]){if(_0x3bd67e[_0x198a('0x8f')]>_0x1080dc[_0x198a('0x8f')])break;_0x825977++;}else _0x825977++;}}return _0x825977;}[_0x198a('0xa9')](_0x626e4){const _0x4fe067=this['repository']['getRevision'](_0x626e4['id']);if(_0x626e4[_0x198a('0x8f')]&&(_0x626e4[_0x198a('0x8f')]=new Date(_0x626e4['createdAt'])),_0x626e4[_0x198a('0x76')]){const _0xc61c16=this['editor']['plugins'][_0x198a('0x89')](_0x198a('0x30'));_0x626e4[_0x198a('0xad')]=_0x626e4['authorsIds'][_0x198a('0xf2')](_0x151b59=>_0xc61c16[_0x198a('0x70')](_0x151b59));}_0x4fe067[_0x198a('0x15')](_0x626e4,!0x0);}[_0x198a('0x28')]({revision:_0x25a17c=null,from:_0x4b0fb6=null,to:_0x4a8642=null}){_0x4b0fb6=null!==_0x4b0fb6?_0x4b0fb6:_0x25a17c[_0x198a('0xb3')],_0x4a8642=null!==_0x4a8642?_0x4a8642:_0x25a17c[_0x198a('0xc1')];const _0xf9156=this[_0x198a('0xea')][_0x198a('0xba')](_0x4b0fb6,_0x4a8642),_0x563f4d={'diffData':_0xf9156[_0x198a('0xdc')],'authorsIds':_0xf9156[_0x198a('0x76')],'fromVersion':_0x4b0fb6,'toVersion':_0x4a8642};if(!_0x25a17c||_0x4a8642!==_0x25a17c[_0x198a('0xc1')]){const _0x2d73eb=_0x4a8642-0x1,_0x2902e2=this['_source'][_0x198a('0x4')][_0x198a('0x32')](_0x2d73eb);_0x563f4d[_0x198a('0x8f')]=_0x2902e2&&_0x2902e2['createdAt']||new Date();}if(this[_0x198a('0xd2')]&&_0x4b0fb6===this[_0x198a('0xd2')][_0x198a('0xb3')])for(const _0x3633d1 of this[_0x198a('0xd2')]['authors'])_0x563f4d['authorsIds'][_0x198a('0x97')](_0x3633d1['id'])||_0x563f4d[_0x198a('0x76')]['push'](_0x3633d1['id']);return _0x563f4d;}[_0x198a('0x9a')](_0x319502){if(!_0x319502||_0x319502[_0x198a('0xdc')])return Promise[_0x198a('0x23')]();{const _0x4116a8=this['editor']['config']['get'](_0x198a('0x2a'));return this['adapter']['getRevision']({'channelId':_0x4116a8,'revisionId':_0x319502['id']})[_0x198a('0xcf')](_0x88d0c3=>{_0x319502[_0x198a('0xdc')]=_0x88d0c3[_0x198a('0xdc')];});}}[_0x198a('0xb6')](_0x3fba2b,_0x2f74f5,_0x1d84cd){if(this[_0x198a('0x62')][_0x198a('0x74')](_0x3fba2b)){const _0x355b0f=this['_bufferedUpdates']['get'](_0x3fba2b);_0x2f74f5=_0x1d84cd?{..._0x355b0f,..._0x2f74f5}:{..._0x2f74f5,..._0x355b0f};}this['_bufferedUpdates'][_0x198a('0x55')](_0x3fba2b,_0x2f74f5);}[_0x198a('0x8')](_0x3323aa){const _0x419c9d=this['repository']['getRevisions']();_0x419c9d[_0x198a('0xe7')](),_0x419c9d['shift']();const _0x9ef636=_0x419c9d['find'](_0x13351b=>_0x13351b[_0x198a('0xc1')]<=_0x3323aa)['toVersion'];return _0x9ef636<this[_0x198a('0x5c')]?this['_startingVersion']:_0x9ef636;}['_createInitialRevision'](_0x4e8c3b){const _0x2548ce=this['repository'][_0x198a('0x41')](this['repository'][_0x198a('0x8e')]-0x1);if(_0x2548ce)this['_initialRevisionId']=_0x2548ce['id'];else{const _0x1b37dc=!this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x47')]['find'](_0x419b08=>this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x64')](_0x419b08)),_0x41dd12=this[_0x198a('0xa')]['plugins'][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x175032=_0x4445bc(this[_0x198a('0xa')]['locale'],_0x1b37dc?_0x198a('0x5f'):_0x198a('0x3e'));this[_0x198a('0xe')]({'from':_0x4e8c3b,'to':_0x4e8c3b,'id':this[_0x198a('0xa8')],'name':_0x175032,'creatorId':_0x41dd12});}}[_0x198a('0xf')](_0x552405){const _0x23ffc6=this[_0x198a('0x21')][_0x198a('0x65')]();this['currentRevision']=this[_0x198a('0xab')][_0x198a('0x41')](_0x23ffc6),this['currentRevision']||(this[_0x198a('0x5d')]=this[_0x198a('0xe')]({'from':_0x552405,'to':_0x552405,'id':_0x23ffc6,'name':'','creatorId':null}));}[_0x198a('0xe')]({name:_0x14fa61,from:_0x403f09,to:_0x52381f,creatorId:_0x3cf378,id:_0x4d5e59}){const _0x14aaed=this[_0x198a('0x28')]({'from':_0x403f09,'to':_0x52381f});_0x14aaed['name']=_0x14fa61,_0x14aaed['creatorId']=_0x3cf378,_0x14aaed['id']=_0x4d5e59;const _0x4365a8=this['addRevisionData'](_0x14aaed);return this['adapter']&&this[_0x198a('0xb6')](_0x14aaed['id'],_0x14aaed,!0x0),_0x4365a8;}[_0x198a('0xaa')](){this['editor'][_0x198a('0x75')][_0x198a('0x83')](_0x198a('0xdf'))[_0x198a('0x52')]({'model':'revision'});}[_0x198a('0xb8')](_0x41c991){return(_0x41c991=_0x41c991[_0x198a('0x4b')](_0x4ee5e4=>!_0x4ee5e4[_0x198a('0xe5')]||_0x198a('0xc8')!==_0x4ee5e4[_0x198a('0xe5')]&&'revision-end'!==_0x4ee5e4[_0x198a('0xe5')]))[_0x198a('0xb9')](_0x230462=>{_0x198a('0xbb')!=typeof _0x230462&&(_0x230462[_0x198a('0x6')]=this['_removeRevisionMarkers'](_0x230462[_0x198a('0x6')]),_0x230462['attributes']=_0x230462[_0x198a('0xd4')]['filter'](_0x25f3f9=>!_0x25f3f9[0x0][_0x198a('0x7e')](_0x198a('0x6a'))));}),_0x41c991;}}function J(_0x510d8e,_0xe4083a){const _0x5c3eba=_0xe4083a['editing'][_0x198a('0xb5')][_0x198a('0x9b')];if('string'==typeof _0x510d8e)return new _0x44defc(_0x5c3eba,_0x510d8e);{const _0x423aa3=_0x510d8e[_0x198a('0x6')][_0x198a('0xf2')](_0x18fefb=>J(_0x18fefb,_0xe4083a));return new(T[_0x510d8e[(_0x198a('0x24'))]]||_0x40dd9f)(_0x5c3eba,_0x510d8e[_0x198a('0xe5')],_0x510d8e[_0x198a('0xd4')],_0x423aa3);}}class j{constructor(_0x44dfb8){this['editor']=_0x44dfb8,this[_0x198a('0x49')]=new Map(),this[_0x198a('0xdb')]=-0x1,this[_0x198a('0x82')]=-0x1,this['_markers']=new Map(),this[_0x198a('0xa7')]=new Map(),this[_0x198a('0xbd')]=new Map(),this[_0x198a('0x11')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x198a('0xce')]=new Map(),this[_0x198a('0x63')]=new Map(),this[_0x198a('0x3f')]=0x1,this['_rootNames']=this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0xe4')](),this[_0x198a('0x5e')]['push'](_0x198a('0x8d'));}[_0x198a('0xec')](_0x3b7e17){this[_0x198a('0x12')]=_0x3b7e17;const _0x1a9fe3=new Map();for(const _0x23ff18 of this[_0x198a('0x5e')]){const _0x448148=B(this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x94')](_0x23ff18));_0x1a9fe3[_0x198a('0x55')](_0x23ff18,_0x448148);}const _0x18e15e=Array[_0x198a('0xe8')](this[_0x198a('0xa')][_0x198a('0xd3')]['markers'])['map'](_0x577f59=>[_0x577f59['name'],_0x577f59[_0x198a('0x40')]()]),_0x4dfa58=this[_0x198a('0x12')][_0x198a('0x7')];this[_0x198a('0x56')](_0x4dfa58,_0x1a9fe3,_0x18e15e),this[_0x198a('0xd')]=this['_revisionId'];}['getData'](_0x4305b1,_0x2694a8){if(this[_0x198a('0xdb')]===_0x4305b1&&this[_0x198a('0x82')]<=_0x2694a8)this[_0x198a('0x49')][_0x198a('0xe2')]>0x1&&this['_removeMetaData'](this[_0x198a('0x82')]),this[_0x198a('0x66')](this[_0x198a('0x82')],_0x2694a8,!0x0);else{if(!this[_0x198a('0x49')][_0x198a('0x74')](_0x4305b1)){const _0x2efaa1=this['_getPreviousFrom'](_0x4305b1);this['_calculateMetaData'](_0x2efaa1,_0x4305b1,!0x1);}this[_0x198a('0x16')](_0x4305b1,_0x2694a8,!0x0);}return this[_0x198a('0xdb')]=_0x4305b1,this[_0x198a('0x82')]=_0x2694a8,this['_getState']();}['loadState'](_0x328b1a){this['_reset'](),this['_lastFrom']=_0x328b1a[_0x198a('0xb3')],this[_0x198a('0x82')]=_0x328b1a['toVersion'];for(const _0x59415c in _0x328b1a[_0x198a('0xdc')]){const _0x464837=this[_0x198a('0x19')](_0x328b1a[_0x198a('0xdc')][_0x59415c][_0x198a('0xc6')]);_0x464837[_0x198a('0x87')]=_0x59415c,this[_0x198a('0xbd')][_0x198a('0x55')](_0x59415c,_0x464837);const _0x4b0fec=this[_0x198a('0x38')](_0x464837);this[_0x198a('0xcd')][_0x198a('0x55')](_0x59415c,_0x4b0fec);for(const [_0x12f847,_0x23f5ee]of _0x464837[_0x198a('0x9c')]){if(!_0x12f847[_0x198a('0x7e')]('revision:'))continue;const _0x42fa29=_0x12f847[_0x198a('0x3c')](':')[0x2];for(const _0x533091 of _0x23f5ee[_0x198a('0x33')]({'singleCharacters':!0x0})){const _0x4a6f5b=this[_0x198a('0x7a')](_0x533091),_0x4aa858=_0x198a('0xe9')==_0x533091[_0x198a('0x24')]?_0x533091[_0x198a('0x79')][_0x198a('0x9f')]['slice'](0x0,-0x1):_0x533091[_0x198a('0x79')][_0x198a('0x9f')],_0x21b5c0=_0x4b0fec[_0x198a('0x51')](_0x4aa858)[_0x198a('0x46')](_0x4a6f5b);this[_0x198a('0xce')][_0x198a('0x55')](_0x21b5c0,{'userId':_0x42fa29});}}}this['_startingRevisionId']=this[_0x198a('0x3f')];const _0x4b211c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)[_0x198a('0x4b')](_0xc1d46b=>!this[_0x198a('0xce')][_0x198a('0x74')](_0xc1d46b));let _0x8afa46=0x0;for(const _0x50ce2d in _0x328b1a['diffData']){const _0x41a89b=this[_0x198a('0x19')](_0x328b1a[_0x198a('0xdc')][_0x50ce2d][_0x198a('0x85')]);_0x41a89b[_0x198a('0x87')]=_0x50ce2d,this[_0x198a('0xa7')][_0x198a('0x55')](_0x50ce2d,_0x41a89b);const _0x157e97=this['_makeIdsRoot'](_0x41a89b,Number[_0x198a('0x3d')]);this[_0x198a('0x11')][_0x198a('0x55')](_0x50ce2d,_0x157e97);for(const [_0x1d4155,_0xf080de]of _0x41a89b['markers']){if(!_0x1d4155[_0x198a('0x7e')](_0x198a('0xd0')))continue;const _0x5a2dc2=_0x1d4155[_0x198a('0x3c')](':')[0x2];for(const _0x36f255 of _0xf080de[_0x198a('0x33')]({'singleCharacters':!0x0})){const _0x180b46=this[_0x198a('0x7a')](_0x36f255),_0x3d5257=this[_0x198a('0x3f')]++,_0x10dbfb=_0x198a('0xe9')==_0x36f255['type']?_0x36f255[_0x198a('0x79')]['path']['slice'](0x0,-0x1):_0x36f255[_0x198a('0x79')]['path'];_0x157e97[_0x198a('0x51')](_0x10dbfb)[_0x198a('0xb2')](_0x180b46,_0x3d5257),this[_0x198a('0xce')][_0x198a('0x55')](_0x3d5257,{'userId':_0x5a2dc2});}}for(const _0x45fa1b of this['editor']['model'][_0x198a('0xc9')](_0x41a89b)['getWalker']({'singleCharacters':!0x0})){const _0x117893=this[_0x198a('0x7a')](_0x45fa1b),_0x370d2f=_0x198a('0xe9')==_0x45fa1b[_0x198a('0x24')]?_0x45fa1b['previousPosition'][_0x198a('0x9f')][_0x198a('0xbc')](0x0,-0x1):_0x45fa1b[_0x198a('0x79')][_0x198a('0x9f')],_0x4b4bc0=_0x157e97[_0x198a('0x51')](_0x370d2f);_0x4b4bc0[_0x198a('0x46')](_0x117893)>0x0||_0x4b4bc0['_setAttribute'](_0x117893,_0x4b211c[_0x8afa46++]);}const _0x47f54c=new _0x2d8a24();_0x47f54c['rootName']=_0x198a('0x8d'),this['_baseRoots'][_0x198a('0x55')]('$graveyard',_0x47f54c),this[_0x198a('0xcd')][_0x198a('0x55')](_0x198a('0x8d'),this[_0x198a('0x38')](_0x47f54c,0x1));const _0x5a6c1c=new _0x2d8a24();_0x5a6c1c['rootName']=_0x198a('0x8d'),this['_diffRoots']['set'](_0x198a('0x8d'),_0x5a6c1c),this[_0x198a('0x11')][_0x198a('0x55')](_0x198a('0x8d'),this[_0x198a('0x38')](_0x5a6c1c,0x1));for(const [_0x5d56d1,_0x6ed3]of _0x41a89b[_0x198a('0x9c')])_0x5d56d1[_0x198a('0x7e')](_0x198a('0xd0'))||this['_markers']['set'](_0x5d56d1,_0x6ed3);}const _0x180106=Array[_0x198a('0xe8')](this['_diffRoots'])[_0x198a('0xf2')](([_0xfe936b,_0x46f011])=>[_0xfe936b,B(_0x46f011)]);this[_0x198a('0x56')](this[_0x198a('0x82')],_0x180106,this[_0x198a('0x54')]);}[_0x198a('0x19')](_0x45825b){const _0x59cc5e=JSON['parse'](_0x45825b),_0x47348f=this[_0x198a('0xa')][_0x198a('0xc2')][_0x198a('0xb5')][_0x198a('0x9b')],_0x2bc426=new _0x87dfb3(_0x47348f,_0x59cc5e[_0x198a('0xf2')](_0x1d135f=>J(_0x1d135f,this['editor'])));return this[_0x198a('0xa')]['data'][_0x198a('0xbf')](_0x2bc426);}['_saveEmptyMetaData'](){const _0x29da2f=new Map();for(const _0x989ca5 of this['_rootNames']){const _0x4063bf=new _0x2d8a24();_0x4063bf['rootName']=_0x989ca5,_0x29da2f[_0x198a('0x55')](_0x989ca5,_0x4063bf);}this[_0x198a('0x56')](Number['NEGATIVE_INFINITY'],_0x29da2f,[]);}[_0x198a('0x56')](_0x3ac23b,_0x2aa45b,_0x586bfe){const _0x514e12=new Map(_0x2aa45b),_0x480d80=new Map();for(const [_0x2d248b,_0x36dec5]of _0x586bfe)_0x480d80['set'](_0x2d248b,{'start':_0x36dec5['start'][_0x198a('0xde')](),'end':_0x36dec5['end'][_0x198a('0xde')](),'rootName':_0x36dec5['root'][_0x198a('0x87')]});this['_savedMetaData'][_0x198a('0x55')](_0x3ac23b,{'roots':_0x514e12,'markers':_0x480d80});}[_0x198a('0x9d')](_0x18a715){this[_0x198a('0x49')][_0x198a('0x88')](_0x18a715);}['reInit'](){this['_reset'](),this[_0x198a('0xdb')]=-0x1,this[_0x198a('0x82')]=-0x1,this[_0x198a('0x49')][_0x198a('0x61')](),this['init'](this[_0x198a('0x12')]);}[_0x198a('0xa6')](){this[_0x198a('0xce')][_0x198a('0x61')](),this['_touchedMarkers']['clear'](),this[_0x198a('0xa7')][_0x198a('0x61')](),this[_0x198a('0xbd')]['clear'](),this[_0x198a('0x11')][_0x198a('0x61')](),this[_0x198a('0xcd')][_0x198a('0x61')](),this[_0x198a('0x54')][_0x198a('0x61')](),this[_0x198a('0x3f')]=0x1,this[_0x198a('0xd')]=this[_0x198a('0x3f')];}['_makeIdsRoot'](_0x2b7c03,_0x768eb7=null){let _0x1164c5=null;_0x2b7c03['is'](_0x198a('0x36'))||(_0x1164c5=new _0xb89447(_0x2b7c03[_0x198a('0xe5')],{'vid_start':null===_0x768eb7?this[_0x198a('0x3f')]++:_0x768eb7++}));const _0x2ab746=[];for(const _0x247304 of _0x2b7c03[_0x198a('0x60')]())if(_0x247304['is'](_0x198a('0xf0'))){_0x2ab746['push'](this[_0x198a('0x38')](_0x247304,_0x768eb7));const _0x2493dd=_0x2ab746[_0x2ab746[_0x198a('0x8e')]-0x1];null!==_0x768eb7&&(_0x768eb7=_0x2493dd['is']('element',_0x198a('0xb4'))?_0x2493dd[_0x198a('0x46')](_0x198a('0xac'))+0x1:_0x2493dd['getAttribute']('vid_end')+0x1);}else for(let _0x1cc4d6=0x0;_0x1cc4d6<_0x247304['offsetSize'];_0x1cc4d6++)_0x2ab746[_0x198a('0x25')](new _0xb89447(_0x198a('0xb4'),{'vid':null===_0x768eb7?this[_0x198a('0x3f')]++:_0x768eb7++}));if(_0x2b7c03['is']('documentFragment')){const _0x2d6139=new _0x2d8a24(_0x2ab746);return _0x2d6139[_0x198a('0x87')]=_0x2b7c03[_0x198a('0x87')],_0x2d6139;}return _0x1164c5['_setAttribute'](_0x198a('0x2e'),null===_0x768eb7?this[_0x198a('0x3f')]++:_0x768eb7++),_0x1164c5[_0x198a('0x34')](0x0,_0x2ab746),_0x1164c5;}[_0x198a('0x16')](_0x117f10,_0x22e267,_0x124047){this[_0x198a('0xa6')]();const {roots:_0x310386,markers:_0x52d981}=this['_savedMetaData'][_0x198a('0x89')](_0x117f10);this['_baseRoots']=new Map(_0x310386);for(const [_0xcd65ba,_0x46ff67]of this[_0x198a('0xbd')])if(_0x198a('0x8d')!==_0xcd65ba&&(this['_diffRoots'][_0x198a('0x55')](_0xcd65ba,B(_0x46ff67)),_0x124047)){const _0x5ec97a=this['_revisionId'];this['_idsRoots'][_0x198a('0x55')](_0xcd65ba,this[_0x198a('0x38')](_0x46ff67)),this['_baseIdsRoots'][_0x198a('0x55')](_0xcd65ba,this[_0x198a('0x38')](_0x46ff67,_0x5ec97a));}this[_0x198a('0xd')]=this[_0x198a('0x3f')],this['_diffRoots']['set']('$graveyard',B(this[_0x198a('0xbd')][_0x198a('0x89')](_0x198a('0x8d')))),_0x124047&&this[_0x198a('0x11')][_0x198a('0x55')](_0x198a('0x8d'),this[_0x198a('0x38')](this[_0x198a('0xbd')]['get'](_0x198a('0x8d'))));for(const [_0x5776de,_0x494d04]of _0x52d981){const _0x555419=this['_baseRoots'][_0x198a('0x89')](_0x494d04[_0x198a('0x87')]),_0x44c2ea=this[_0x198a('0xa7')][_0x198a('0x89')](_0x494d04['rootName']),_0x2f8946=new _0x2cb92c(this['_fixPosition'](_0x494d04[_0x198a('0x2f')],_0x555419),this[_0x198a('0xa3')](_0x494d04[_0x198a('0x9e')],_0x555419)),_0xb85b4a=this[_0x198a('0x81')](_0x2f8946,_0x44c2ea);_0x555419[_0x198a('0x9c')][_0x198a('0x55')](_0x5776de,_0x2f8946),this[_0x198a('0x54')][_0x198a('0x55')](_0x5776de,_0xb85b4a);}this[_0x198a('0x66')](_0x117f10,_0x22e267,_0x124047);}[_0x198a('0x66')](_0x49dc50,_0x437649,_0x423ad7){for(const _0x28bc89 of this[_0x198a('0x12')][_0x198a('0xdd')](_0x49dc50,_0x437649))this['_handleOperation'](_0x28bc89,_0x423ad7);for(const _0x348885 of this[_0x198a('0xa7')]['values']())_0x348885[_0x198a('0x9c')][_0x198a('0x61')]();for(const [_0x2866f7,_0x5d98c5]of this[_0x198a('0x54')]){this[_0x198a('0xa7')][_0x198a('0x89')](_0x5d98c5[_0x198a('0x1d')][_0x198a('0x87')])[_0x198a('0x9c')]['set'](_0x2866f7,_0x5d98c5[_0x198a('0xde')]());}this[_0x198a('0x56')](_0x437649,Array[_0x198a('0xe8')](this[_0x198a('0xa7')])[_0x198a('0xf2')](([_0x465831,_0x262a40])=>[_0x465831,B(_0x262a40)]),this[_0x198a('0x54')]);}[_0x198a('0x10')](_0xf7e1ce){const _0x40d906=Array[_0x198a('0xe8')](this[_0x198a('0x49')]['keys']());_0x40d906[_0x198a('0xa5')]((_0x311854,_0xc01a89)=>_0x311854-_0xc01a89),_0x40d906[_0x198a('0xe7')]();for(const _0x538512 of _0x40d906)if(_0x538512<_0xf7e1ce)return _0x538512;return this[_0x198a('0xef')](),Number[_0x198a('0x3d')];}[_0x198a('0xed')](_0xe36cd6,_0x30e461){const _0x5c6949=Array[_0x198a('0xe8')](_0x30e461['markers'])['map'](([_0x2bc380,_0x4206ad])=>[_0x2bc380,this[_0x198a('0x81')](_0x4206ad,_0xe36cd6)]);_0xe36cd6[_0x198a('0x9c')]=new Map(_0x5c6949);}[_0x198a('0x1c')](_0x2ff51f){for(const _0x1ca6bf of this[_0x198a('0x54')][_0x198a('0x7b')]()){const _0x5631fe=_0x1ca6bf[_0x198a('0x35')](_0x2ff51f),_0x5adb93=_0x2cb92c['_createFromRanges'](_0x5631fe);_0x1ca6bf['start']=_0x5adb93[_0x198a('0x2f')],_0x1ca6bf[_0x198a('0x9e')]=_0x5adb93[_0x198a('0x9e')];}}[_0x198a('0x7c')](_0x4f50b3,_0x2e5862){const _0x34d3c9=this['_cloneOperation'](_0x4f50b3,this[_0x198a('0xa7')]);if(_0x198a('0xb')!==_0x4f50b3[_0x198a('0x24')]&&(_0x34d3c9[_0x198a('0x4d')](),this[_0x198a('0x1c')](_0x34d3c9)),_0x2e5862)switch(_0x34d3c9[_0x198a('0x24')]){case _0x198a('0xae'):this[_0x198a('0x6c')](_0x4f50b3);break;case'move':case _0x198a('0x2b'):case _0x198a('0xc0'):this[_0x198a('0x2d')](_0x4f50b3);break;case _0x198a('0xb7'):this[_0x198a('0x43')](_0x4f50b3);break;case'split':this[_0x198a('0xa0')](_0x4f50b3);break;case _0x198a('0xb'):this[_0x198a('0x1f')](_0x4f50b3);}}['_cloneOperation'](_0x4f8a57,_0x3500ba){const _0x2d9032=_0x4f8a57[_0x198a('0xde')]();return _0x2d9032['_authorId']=_0x4f8a57[_0x198a('0xe1')],this[_0x198a('0x26')](_0x2d9032,_0x3500ba),_0x2d9032;}[_0x198a('0x20')](_0x186960){return _0x186960[_0x198a('0xf2')](_0x48639e=>{const _0x19b771=this['_getVidAttributeName'](_0x48639e);return Number(_0x48639e['item'][_0x198a('0x46')](_0x19b771));});}[_0x198a('0xc5')](_0x45ca7a,_0x28c73a){if(_0x45ca7a['is'](_0x198a('0xf0'),_0x198a('0xb4')))_0x28c73a[_0x198a('0x25')]({'item':_0x45ca7a,'type':'text'});else{_0x45ca7a['is'](_0x198a('0xf0'))&&_0x28c73a[_0x198a('0x25')]({'item':_0x45ca7a,'type':_0x198a('0x0')});for(const _0x1ed18c of _0x45ca7a['getChildren']())this[_0x198a('0xc5')](_0x1ed18c,_0x28c73a);_0x45ca7a['is']('element')&&_0x28c73a[_0x198a('0x25')]({'item':_0x45ca7a,'type':'elementEnd'});}return _0x28c73a;}[_0x198a('0x4a')](){const _0xbb628=this[_0x198a('0xa')][_0x198a('0xd3')]['document']['getRootNames'](),_0x3bc9a4=new Map(this[_0x198a('0xce')]),_0x59bf5a=new Map(_0x3bc9a4),_0x5857d8=new Map(),_0x69e996={'insertions':{},'deletions':{}},_0x10127={'insertions':{},'deletions':{}},_0x389c1b=new Map();for(const _0x34f926 of _0xbb628){const _0x510b82=this['_diffRoots']['get'](_0x34f926),_0x5980ed=this[_0x198a('0xbd')][_0x198a('0x89')](_0x34f926);_0x69e996[_0x198a('0x85')][_0x34f926]=B(_0x510b82),_0x69e996[_0x198a('0xc6')][_0x34f926]=B(_0x5980ed),this['_copyMarkers'](_0x69e996[_0x198a('0xc6')][_0x34f926],_0x5980ed),this[_0x198a('0xed')](_0x69e996['insertions'][_0x34f926],_0x510b82),_0x10127['insertions'][_0x34f926]=this['_generateTape'](this[_0x198a('0x11')]['get'](_0x34f926),[]),_0x10127[_0x198a('0xc6')][_0x34f926]=this[_0x198a('0xc5')](this['_baseIdsRoots'][_0x198a('0x89')](_0x34f926),[]);}for(const _0x45e2b0 of _0xbb628){const _0x43ab5f=_0x10127[_0x198a('0x85')][_0x45e2b0];for(const _0x2a9fbd of _0x43ab5f){const _0x19e776=this[_0x198a('0x7a')](_0x2a9fbd),_0x4ffad0=_0x2a9fbd['item'][_0x198a('0x46')](_0x19e776);_0x59bf5a[_0x198a('0x88')](_0x4ffad0),_0x4ffad0>=this[_0x198a('0xd')]&&_0x5857d8[_0x198a('0x55')](_0x4ffad0,_0x3bc9a4[_0x198a('0x89')](_0x4ffad0));}}for(const _0x36c9d7 of _0xbb628){const _0x4d2f58=_0x10127[_0x198a('0x85')][_0x36c9d7],_0x840302=this['_getBaseVids'](_0x10127['deletions'][_0x36c9d7]);let _0x41e68e=0x0;for(const _0x122779 of _0x4d2f58){const _0x50b7e1=this[_0x198a('0x7a')](_0x122779),_0x3acea0=_0x122779[_0x198a('0xc3')][_0x198a('0x46')](_0x50b7e1);if(!_0x5857d8[_0x198a('0x74')](_0x3acea0)&&!_0x389c1b['has'](_0x3acea0)){if(_0x59bf5a[_0x198a('0x74')](_0x3acea0))_0x41e68e++;else{if(_0x3acea0!=_0x840302[_0x41e68e]){const _0x74eaf9=_0x3bc9a4[_0x198a('0x89')](_0x3acea0)||_0x3bc9a4[_0x198a('0x89')](_0x840302[_0x41e68e]);for(;_0x3acea0!=_0x840302[_0x41e68e];)_0x59bf5a[_0x198a('0x74')](_0x840302[_0x41e68e])||(_0x389c1b[_0x198a('0x55')](_0x840302[_0x41e68e],_0x74eaf9),_0x3bc9a4[_0x198a('0x55')](_0x840302[_0x41e68e],_0x74eaf9)),_0x41e68e++;}_0x41e68e++;}}}}for(const _0x107ff2 of _0xbb628){const _0x149960=_0x10127['insertions'][_0x107ff2];for(const _0x14076f of _0x149960){const _0x269e30=this[_0x198a('0x7a')](_0x14076f),_0x69d4a7=_0x14076f['item'][_0x198a('0x46')](_0x269e30);if(_0x389c1b[_0x198a('0x74')](_0x69d4a7)){const _0x3621d4=_0x389c1b[_0x198a('0x89')](_0x69d4a7);_0x59bf5a[_0x198a('0x74')](_0x69d4a7)||_0x59bf5a[_0x198a('0x55')](_0x69d4a7,{..._0x3621d4}),_0x5857d8['set'](_0x69d4a7,{..._0x3621d4});}}}for(const _0x5321fc of _0x59bf5a[_0x198a('0xeb')]())_0x5321fc>=this[_0x198a('0xd')]&&_0x59bf5a[_0x198a('0x88')](_0x5321fc);const _0x3899bd=new Map();for(const _0x2b69e1 of _0xbb628){let _0x3e8a1e=_0x10127[_0x198a('0x85')][_0x2b69e1];for(const _0x301c60 of _0x3e8a1e)if(_0x301c60[_0x198a('0xc3')]['is'](_0x198a('0xf0'),_0x198a('0xc4'))){const _0xb17319=this[_0x198a('0x7a')](_0x301c60),_0x300fc8=_0x301c60['item'][_0x198a('0x46')](_0xb17319);if(_0x5857d8[_0x198a('0x74')](_0x300fc8)){const _0x27941f=_0x301c60[_0x198a('0xc3')][_0x198a('0xd7')]['parent']['getAttribute']('vid_start'),_0x29fa34=_0x3899bd[_0x198a('0x89')](_0x27941f)||new Set();_0x29fa34[_0x198a('0x45')](_0x5857d8[_0x198a('0x89')](_0x300fc8)[_0x198a('0x17')]),_0x3899bd[_0x198a('0x55')](_0x27941f,_0x29fa34);}}_0x3e8a1e=_0x10127[_0x198a('0xc6')][_0x2b69e1];for(const _0x1f8678 of _0x3e8a1e)if(_0x1f8678[_0x198a('0xc3')]['is']('element','tableCell')){const _0x57fda7=this[_0x198a('0x7a')](_0x1f8678),_0x29a75f=_0x1f8678[_0x198a('0xc3')][_0x198a('0x46')](_0x57fda7);if(_0x59bf5a[_0x198a('0x74')](_0x29a75f)){const _0x4f07db=_0x1f8678[_0x198a('0xc3')][_0x198a('0xd7')][_0x198a('0xd7')]['getAttribute'](_0x198a('0xe3')),_0x5dccad=_0x3899bd['get'](_0x4f07db)||new Set();_0x5dccad['add'](_0x59bf5a[_0x198a('0x89')](_0x29a75f)[_0x198a('0x17')]),_0x3899bd['set'](_0x4f07db,_0x5dccad);}}for(const _0x1aff3c of _0x3899bd[_0x198a('0xeb')]())(_0x5857d8[_0x198a('0x74')](_0x1aff3c)||_0x59bf5a[_0x198a('0x74')](_0x1aff3c))&&_0x3899bd[_0x198a('0x88')](_0x1aff3c);}for(const _0x1f110a of _0xbb628){const _0x2700e2=_0x10127[_0x198a('0x85')][_0x1f110a];let _0x23ccd0=null,_0x25bdb5=null;for(const _0x25daca of _0x2700e2){const _0x1e3a9d=this['_getVidAttributeName'](_0x25daca),_0x3d6e62=_0x25daca[_0x198a('0xc3')][_0x198a('0x46')](_0x1e3a9d),_0x48ea5a=_0x3899bd[_0x198a('0x89')](_0x3d6e62);_0x48ea5a&&_0x198a('0x0')==_0x25daca[_0x198a('0x24')]&&(_0x23ccd0=Array[_0x198a('0xe8')](_0x48ea5a)[0x0],_0x25bdb5=_0x25daca[_0x198a('0xc3')][_0x198a('0x46')](_0x198a('0x2e'))),_0x23ccd0&&(_0x59bf5a[_0x198a('0x55')](_0x3d6e62,{'userId':_0x23ccd0}),_0x5857d8[_0x198a('0x55')](_0x3d6e62,{'userId':_0x23ccd0})),_0x3d6e62==_0x25bdb5&&(_0x23ccd0=null,_0x25bdb5=null);}}const _0x2258f5={},_0x2eea50=new Set();for(const _0x1425f3 of _0xbb628){const _0x2cc6aa=_0x69e996[_0x198a('0xc6')][_0x1425f3],_0x4f5746=_0x69e996[_0x198a('0x85')][_0x1425f3];for(const {userId:_0x1eeaac}of this['_touchedMarkers'][_0x198a('0x7b')]())null!==_0x1eeaac&&_0x2eea50[_0x198a('0x45')](_0x1eeaac);this[_0x198a('0xd1')](_0x4f5746,_0x10127[_0x198a('0x85')][_0x1425f3],_0x5857d8,'insertion',_0x2eea50),this[_0x198a('0xd1')](_0x2cc6aa,_0x10127[_0x198a('0xc6')][_0x1425f3],_0x59bf5a,'deletion',_0x2eea50),_0x2258f5[_0x1425f3]={'insertions':this[_0x198a('0xbe')](_0x4f5746),'deletions':this[_0x198a('0xbe')](_0x2cc6aa)};}return{'diffData':_0x2258f5,'authorsIds':Array['from'](_0x2eea50)};}[_0x198a('0x57')](_0x42b91b){for(const [,_0xab769a]of _0x42b91b['markers']){const _0x1ef80b=_0xab769a[_0x198a('0x2f')][_0x198a('0x29')]()[_0x198a('0x4b')](_0x521110=>_0x198a('0xc4')==_0x521110[_0x198a('0xe5')]);for(const _0x3d61c7 of _0x1ef80b)0x1==_0x3d61c7[_0x198a('0xd9')]&&_0x3d61c7['getChild'](0x0)['is'](_0x198a('0xf0'),_0x198a('0x86'))&&_0x3d61c7['getChild'](0x0)[_0x198a('0xb2')](_0x198a('0xa4'),!0x0);}}['_prepareViewToSave'](_0xa42b20){this[_0x198a('0x57')](_0xa42b20);const _0x231cac=this[_0x198a('0xa')][_0x198a('0x72')][_0x198a('0x4f')](_0xa42b20,{}),_0x5cc4b5=Array['from'](_0x231cac[_0x198a('0x60')]())['map'](_0x5d40da=>this[_0x198a('0x8b')](_0x5d40da));return JSON[_0x198a('0x8a')](_0x5cc4b5);}['_getViewJson'](_0x4582ed){if(_0x4582ed['is']('text'))return _0x4582ed[_0x198a('0x72')];return{'type':Object[_0x198a('0xeb')](T)[_0x198a('0xb0')](_0xb00526=>_0x4582ed instanceof T[_0xb00526]),'name':_0x4582ed[_0x198a('0xe5')],'attributes':Array[_0x198a('0xe8')](_0x4582ed['getAttributes']()),'children':Array[_0x198a('0xe8')](_0x4582ed[_0x198a('0x60')]())[_0x198a('0xf2')](_0x253d44=>this[_0x198a('0x8b')](_0x253d44))};}[_0x198a('0xd1')](_0x36c9a3,_0x2d775c,_0x34e75d,_0x470459,_0x4c8f65){let _0x43ca09=null,_0x1c3969=null,_0x39febf=0x0;const _0x31d07b=this[_0x198a('0xa')][_0x198a('0xd3')];for(let _0x4e2aa7=0x0;_0x4e2aa7<_0x2d775c['length'];_0x4e2aa7++){const _0x569524=this[_0x198a('0x7a')](_0x2d775c[_0x4e2aa7]),_0x3b864b=_0x2d775c[_0x4e2aa7][_0x198a('0xc3')][_0x198a('0x46')](_0x569524),_0x3c4d43=_0x34e75d['get'](_0x3b864b),_0x8d6627=_0x4e2aa7==_0x2d775c[_0x198a('0x8e')]-0x1;(!_0x43ca09&&_0x3c4d43&&(_0x43ca09=_0x3c4d43,_0x1c3969=_0x2d775c[_0x4e2aa7]),_0x43ca09&&(!_0x3c4d43||_0x3c4d43[_0x198a('0x17')]!=_0x43ca09[_0x198a('0x17')]))&&(_0x16bd9a(_0x3c4d43,q(_0x1c3969,_0x36c9a3,_0x31d07b),q(_0x2d775c[_0x4e2aa7],_0x36c9a3,_0x31d07b)),_0x43ca09=_0x3c4d43||null,_0x1c3969=_0x3c4d43?_0x2d775c[_0x4e2aa7]:null),_0x43ca09&&_0x8d6627&&_0x16bd9a(_0x3c4d43,q(_0x1c3969,_0x36c9a3,_0x31d07b),G(_0x2d775c[_0x4e2aa7],_0x36c9a3,_0x31d07b));}function _0x16bd9a(_0x33df12,_0x1005a3,_0x2a69b0){const _0x4b0177=_0x43ca09[_0x198a('0x17')],_0x2dbe21='revision:'+_0x470459+':'+_0x4b0177+':'+_0x39febf++,_0x2c054b=_0x31d07b['createRange'](_0x1005a3,_0x2a69b0);_0x36c9a3[_0x198a('0x9c')]['set'](_0x2dbe21,_0x2c054b),null!==_0x4b0177&&_0x4c8f65[_0x198a('0x45')](_0x4b0177);}}[_0x198a('0x7a')](_0x51214e){switch(_0x51214e[_0x198a('0x24')]){case'elementStart':return _0x198a('0xe3');case _0x198a('0xe9'):return _0x198a('0x2e');default:return _0x198a('0xac');}}['_fixOperation'](_0x185a79,_0x312557){_0x185a79[_0x198a('0x1e')]=null;for(const _0x415527 in _0x185a79){if(_0x185a79[_0x415527]instanceof _0x56f436){const _0x4dd211=_0x312557[_0x198a('0x89')](_0x185a79[_0x415527][_0x198a('0x1d')]['rootName']);_0x185a79[_0x415527]=this[_0x198a('0xa3')](_0x185a79[_0x415527],_0x4dd211);}if(_0x185a79[_0x415527]instanceof _0x2cb92c){const _0x547c13=_0x312557['get'](_0x185a79[_0x415527]['root']['rootName']);_0x185a79[_0x415527]=this[_0x198a('0x81')](_0x185a79[_0x415527],_0x547c13);}}_0x185a79[_0x198a('0x1d')]&&(_0x185a79['root']=_0x312557[_0x198a('0x89')](_0x185a79['root']['rootName']));}[_0x198a('0x81')](_0x115835,_0x2be847){return this[_0x198a('0xa')]['model']['createRange'](this['_fixPosition'](_0x115835[_0x198a('0x2f')],_0x2be847),this[_0x198a('0xa3')](_0x115835[_0x198a('0x9e')],_0x2be847));}[_0x198a('0xa3')](_0x22f84b,_0xbdd4b3){return this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0xd5')](_0xbdd4b3,_0x22f84b[_0x198a('0x9f')],_0x22f84b['stickiness']);}['_handleInsertOperation'](_0x3d5a54){const _0x48d949=this[_0x198a('0x11')][_0x198a('0x89')](_0x3d5a54['position']['root'][_0x198a('0x87')]),_0x3231b6=this[_0x198a('0xa3')](_0x3d5a54[_0x198a('0x7f')],_0x48d949),_0x2f9bb4=null===_0x3d5a54[_0x198a('0xe1')]?null:_0x3d5a54[_0x198a('0xe1')]||this['editor'][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x4a0e95=_0x3231b6[_0x198a('0xd7')],_0x329d49=this['_revisionId'],_0x306beb=[];for(const _0x3b97b5 of _0x3d5a54['nodes'])if(_0x3b97b5['is']('element'))_0x306beb[_0x198a('0x25')](this[_0x198a('0x38')](_0x3b97b5));else for(let _0x17b94d=0x0;_0x17b94d<_0x3b97b5[_0x198a('0x77')];_0x17b94d++)_0x306beb[_0x198a('0x25')](new _0xb89447('$text',{'vid':this['_revisionId']++}));const _0x52932c=this['_revisionId'];for(let _0x27f413=_0x329d49;_0x27f413<_0x52932c;_0x27f413++)this[_0x198a('0xce')][_0x198a('0x55')](_0x27f413,{'userId':_0x2f9bb4});_0x4a0e95[_0x198a('0x34')](_0x3231b6[_0x198a('0xc')],_0x306beb);}[_0x198a('0x2d')](_0x36b6bd){(_0x36b6bd=this['_cloneOperation'](_0x36b6bd,this['_idsRoots']))['_execute']();const _0x22bc53=null===_0x36b6bd['_authorId']?null:_0x36b6bd[_0x198a('0xe1')]||this['editor'][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x2ea2a3=_0x36b6bd[_0x198a('0xca')](),_0x264fcf=_0x2ea2a3[_0x198a('0xd7')],_0x1703a8=_0x2ea2a3[_0x198a('0xc')];!function _0x20b10a(_0x3e73be,_0x52a28c,_0x2271e3,_0x556335){for(let _0x177a51=_0x2271e3;_0x177a51<_0x556335;_0x177a51++){const _0x25fc70=_0x52a28c[_0x198a('0x73')](_0x177a51);_0x25fc70['is'](_0x198a('0xf0'),_0x198a('0xb4'))?_0x3e73be['set'](_0x25fc70[_0x198a('0x46')](_0x198a('0xac')),{'userId':_0x22bc53}):(_0x3e73be[_0x198a('0x55')](_0x25fc70[_0x198a('0x46')](_0x198a('0xe3')),{'userId':_0x22bc53}),_0x20b10a(_0x3e73be,_0x25fc70,0x0,_0x25fc70[_0x198a('0xd9')]),_0x3e73be[_0x198a('0x55')](_0x25fc70['getAttribute'](_0x198a('0x2e')),{'userId':_0x22bc53}));}}(this[_0x198a('0xce')],_0x264fcf,_0x1703a8,_0x1703a8+_0x36b6bd['howMany']);}[_0x198a('0x43')](_0x47d439){const _0x347483=null===(_0x47d439=this[_0x198a('0xee')](_0x47d439,this[_0x198a('0x11')]))['_authorId']?null:_0x47d439[_0x198a('0xe1')]||this[_0x198a('0xa')][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x4d865e=_0x47d439[_0x198a('0x48')]['parent'],_0x159274=_0x47d439[_0x198a('0x44')][_0x198a('0xd7')],_0x222cc9=_0x4d865e[_0x198a('0x46')](_0x198a('0x2e')),_0x4ec756=_0x159274[_0x198a('0x46')](_0x198a('0xe3'));_0x4d865e['_setAttribute'](_0x198a('0x2e'),_0x159274[_0x198a('0x46')](_0x198a('0x2e'))),_0x159274[_0x198a('0xb2')](_0x198a('0x2e'),_0x222cc9),this[_0x198a('0xce')][_0x198a('0x55')](_0x4ec756,{'userId':_0x347483}),this['_touched'][_0x198a('0x55')](_0x222cc9,{'userId':_0x347483}),_0x47d439[_0x198a('0x4d')]();}[_0x198a('0xa0')](_0x3dfba7){const _0x1078cf=null===(_0x3dfba7=this[_0x198a('0xee')](_0x3dfba7,this[_0x198a('0x11')]))[_0x198a('0xe1')]?null:_0x3dfba7['_authorId']||this[_0x198a('0xa')][_0x198a('0x22')]['get'](_0x198a('0x30'))['me']['id'],_0x535bd4=_0x3dfba7[_0x198a('0xda')],_0x5e53c7=_0x3dfba7[_0x198a('0xaf')][_0x198a('0xd7')];_0x3dfba7['_execute']();const _0x5ee22e=_0x5e53c7[_0x198a('0x46')]('vid_end'),_0x530938=_0x3dfba7[_0x198a('0xa2')]['nodeAfter'];if(_0x535bd4){const _0x515721=_0x530938['getAttribute']('vid_end'),_0x422458=_0x5e53c7['getAttribute'](_0x198a('0x2e'));_0x5e53c7[_0x198a('0xb2')]('vid_end',_0x515721),_0x530938[_0x198a('0xb2')]('vid_end',_0x422458),this[_0x198a('0xce')][_0x198a('0x55')](_0x5e53c7['getAttribute']('vid_end'),{'userId':_0x1078cf}),this[_0x198a('0xce')]['set'](_0x530938[_0x198a('0x46')](_0x198a('0xe3')),{'userId':_0x1078cf});}else{const _0x348e33=this[_0x198a('0x3f')]++,_0x2b683d=this['_revisionId']++;_0x5e53c7[_0x198a('0xb2')]('vid_end',_0x348e33),_0x530938[_0x198a('0xb2')]('vid_start',_0x2b683d),_0x530938[_0x198a('0xb2')](_0x198a('0x2e'),_0x5ee22e),this['_touched']['set'](_0x348e33,{'userId':_0x1078cf}),this[_0x198a('0xce')]['set'](_0x2b683d,{'userId':_0x1078cf});}}[_0x198a('0x1f')](_0x4c58ce){if(!_0x4c58ce['affectsData'])return;const _0xa59afc=(_0x4c58ce=this[_0x198a('0xee')](_0x4c58ce,this[_0x198a('0xa7')]))[_0x198a('0x2c')]?_0x4c58ce['oldRange'][_0x198a('0x1d')]:null,_0x127b8c=_0x4c58ce[_0x198a('0x39')]?_0x4c58ce[_0x198a('0x39')][_0x198a('0x1d')]:null;_0xa59afc&&this[_0x198a('0x54')][_0x198a('0x88')](_0x4c58ce['name']),_0x127b8c&&this[_0x198a('0x54')]['set'](_0x4c58ce[_0x198a('0xe5')],_0x4c58ce[_0x198a('0x39')][_0x198a('0xde')]());const _0x10f133=null===_0x4c58ce[_0x198a('0xe1')]?null:_0x4c58ce[_0x198a('0xe1')]||this['editor'][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x3a4306=_0x4c58ce['name'];if(!this['_touchedMarkers'][_0x198a('0x74')](_0x3a4306))return void this['_touchedMarkers'][_0x198a('0x55')](_0x3a4306,{'range':_0x4c58ce[_0x198a('0x2c')],'userId':_0x10f133});const _0xcab262=this[_0x198a('0x63')][_0x198a('0x89')](_0x3a4306),_0x51658f=_0xcab262[_0x198a('0x80')],_0x589d90=_0x4c58ce[_0x198a('0x39')];null==_0x51658f&&null==_0x589d90||_0x51658f&&_0x589d90&&_0x51658f[_0x198a('0x37')](_0x589d90)?this[_0x198a('0x63')][_0x198a('0x88')](_0x4c58ce[_0x198a('0xe5')]):_0xcab262['userId']=_0x10f133;}}function B(_0x4f3c93){const _0x420083=new _0x2d8a24();_0x420083[_0x198a('0x87')]=_0x4f3c93[_0x198a('0x87')];for(const _0x24a77b of _0x4f3c93[_0x198a('0x60')]()){const _0x5a4de5=_0x24a77b[_0x198a('0x18')](!0x0);_0x420083[_0x198a('0x3a')](_0x5a4de5);}return _0x420083;}function q(_0x802ab6,_0x595168,_0x1236e2){const _0x72a6ea='elementEnd'==_0x802ab6[_0x198a('0x24')]?_0x1236e2[_0x198a('0x93')](_0x802ab6[_0x198a('0xc3')],'end'):_0x1236e2[_0x198a('0x1a')](_0x802ab6[_0x198a('0xc3')]);return _0x72a6ea[_0x198a('0x1d')]=_0x595168,_0x72a6ea;}function G(_0x2953a5,_0x2e5a86,_0xef642f){const _0x1cf9e7=_0x198a('0x0')==_0x2953a5[_0x198a('0x24')]?_0xef642f[_0x198a('0x93')](_0x2953a5['item'],0x0):_0xef642f[_0x198a('0xe0')](_0x2953a5[_0x198a('0xc3')]);return _0x1cf9e7[_0x198a('0x1d')]=_0x2e5a86,_0x1cf9e7;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d20=['isContent','config','getAttribute','mouseover','add','addClass','removeClass','_refreshStartEndIndex','isIncorrect','pluginName','isLimit','name','_markInsertions','level','isBlock','span','diff','merge','pairId','addHighlight','toViewPosition','splice','commands','change','isAfter','_balloon','type','createPositionAt','_cleanMarkers','markersEnd','error','highest','newRevisionId','start','isNavigationMode','isEqual','_changeIdToChange','_step','elementToAttribute','plugins','_joinTapes','findIndex','wrap','getChild','useFillerType','abs','uiElement','destroy','isSuggestion','split','model','isAdded','view','_markMismatchedRemovedTags','unshift','isReadOnly','readOnlyMode','ck-suggestion-marker','vid','conversion','ck-suggestion-preview-marker-','isAtStart','setAttribute','markerName','text','ck-suggestion-marker--active','refresh','includes','htmlProcessor','getRevisionData','_revisions','forward','_markSuggestions','_removeMissingPairs','getRevision','markersStart','markerToHighlight','numberOfChanges','createRangeIn','removeMarker:revision','document','unbindElementFromMarkerName','_makeModelFromTape','filter','authors','suggestion','currentChangeNumber','processor','_getViewForChange','length','_getChangeFromId','downcastDispatcher','high','_setDistance','_changeView','softBreak','bind','revision:','_getRevisionsRange','schema','restoreRevision','vid_end','createPositionAfter','keys','execute','markers','editor','getItems','then','change:activeChange','side','collaboration.channelId','previousPosition','_setConversion','nextSibling','catch','diffData','toModel','distance','return','hasAttribute','reconvertMarker','stopListening','insertion','writer','clear','end','elementEnd','code','consume','getRoot','activeChange','getAttributes','vid_start','isAddSuggestion','isAtEnd','backward','isRemoved','addMarker:revision','toViewElement','attributes','forEach','isCollapsed','toViewRange','test','item','children','element','marked','userId','loadRevisionData','getIndex','has','showPreviousChange','startIndex','shift','string','_removeUnsupportedChanges','getWalker','POSITIVE_INFINITY','offsetSize','addRevision','revision','for','parent','stop','-new','data-change-id','insert','_processTape','startsWith','all','deletion','_makeTape','RevisionViewer','data','enqueueChange','createUIElement','adapter','maxOffset','_markMarkers','mapper','delete','observeMarkers','element:pre','resolve','addRevisionData','_setData','set','change:isReadOnly','change:numberOfChanges','revision-start','push','low','_fixObsoleteTags','viewItem','_makeModelFromViewString','consumable','revisionHistory','createAttributeElement','change:isReady','showNextChange','changes','_target','isRemoveSuggestion','getCustomProperty','init','locale','_threeWayMerge','modelRange','compare','markerToData','_initInteractions','oldRevisionId','_getViewObj','getRootNames','isReady','markerRange','roots','revisionHistoryLabel','endIndex','ck-suggestion-marker-','insertions','target','toData','remove','bindElementToMarker','_getDiff','range','_cleanUp','repository','get','upcast','isEnabled','from','isBefore','_removeRevisionMarkers','ck-editor__editable__overlay','checkAttribute','index','createPositionBefore','editing','nodeAfter','nextPosition','concat','listenTo','activeView','selection','map','createRange','slice','_update','deletions','parse','markerNameToElements','hasClass','addMarker:suggestion:insertion','elementStart','dataToMarker','change:isEnabled','_findChangeIdFromDomTarget','getShiftedBy','editingDowncast'];(function(_0x553b91,_0x4d20ea){const _0x417e37=function(_0x24f74e){while(--_0x24f74e){_0x553b91['push'](_0x553b91['shift']());}};_0x417e37(++_0x4d20ea);}(_0x4d20,0x1ca));const _0x417e=function(_0x553b91,_0x4d20ea){_0x553b91=_0x553b91-0x0;let _0x417e37=_0x4d20[_0x553b91];return _0x417e37;};import _0x4c4d0a from'@ckeditor/ckeditor5-collaboration-core/src/users';import{Plugin as _0x807d81,Command as _0x1f4fbf}from'ckeditor5/src/core';import{ObservableMixin as _0xadd479,mix as _0x305c76}from'ckeditor5/src/utils';import _0x399529 from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import _0x1b27cc from'@ckeditor/ckeditor5-engine/src/model/element';import _0x1eb788 from'@ckeditor/ckeditor5-engine/src/model/text';import _0x15b06a from'@ckeditor/ckeditor5-engine/src/view/documentfragment';import _0x5cba3d from'@ckeditor/ckeditor5-engine/src/view/text';import _0x5953b7 from'@ckeditor/ckeditor5-engine/src/view/element';import{_insert as _0x51ea26}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0x4d7cf3 from'./ui/revisionviewer/changedetailsview';import _0x105830 from'@ckeditor/ckeditor5-collaboration-core/src/utils/getmarkerdomelement';import{scrollViewportToShowTarget as _0x108b69}from'@ckeditor/ckeditor5-utils/src/dom/scroll';import{ContextualBalloon as _0x4a0d49}from'ckeditor5/src/ui';import _0x54ba9c from'./revisionsrepository';import _0x39b132 from'./changeitem';import _0x33c669 from'./revisiondiff';import'../theme/revisionviewer.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestion.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestionmarker.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/horizontalline.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/image.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/mediaembed.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/pagebreak.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/table.css';export default class R extends _0x807d81{static get[_0x417e('0x4d')](){return'RevisionViewer';}static get['requires'](){return[_0x4c4d0a,_0x4a0d49,_0x54ba9c];}constructor(..._0x48ee38){super(..._0x48ee38),this[_0x417e('0x23')]=this[_0x417e('0xae')][_0x417e('0x6b')][_0x417e('0x24')]('RevisionsRepository'),this['set']('activeChange',null),this[_0x417e('0x100')](_0x417e('0x33'),null),this[_0x417e('0x100')](_0x417e('0x54'),null),this[_0x417e('0x100')](_0x417e('0x15'),!0x1),this['set'](_0x417e('0x26'),!0x0),this['on'](_0x417e('0x40'),(_0x41e280,_0x464a8b,_0x49cc29)=>{this[_0x417e('0xc7')]=null,this[_0x417e('0x33')]=null,this[_0x417e('0xae')]['editing'][_0x417e('0x78')][_0x417e('0x5b')](_0x15c602=>{for(const _0x40e294 of this['editor'][_0x417e('0x2e')][_0x417e('0x78')][_0x417e('0x94')][_0x417e('0x17')])_0x49cc29?_0x15c602[_0x417e('0x4a')](_0x417e('0x2a'),_0x40e294):_0x15c602[_0x417e('0x49')](_0x417e('0x2a'),_0x40e294);});}),this[_0x417e('0xa4')](_0x417e('0x66'))['to'](this,_0x417e('0xc7'),_0x34448d=>null!==_0x34448d),this['bind'](_0x417e('0x9a'))['to'](this,_0x417e('0x15'),this,_0x417e('0x54'),this,_0x417e('0xc7'),(_0x5e9871,_0x15b009,_0x4bb451)=>_0x5e9871&&_0x4bb451?_0x15b009['changes'][_0x417e('0xdb')](_0x4bb451):0x0),this[_0x417e('0xa4')](_0x417e('0x91'))['to'](this,_0x417e('0x15'),this,_0x417e('0x54'),(_0x4aebde,_0x142417)=>_0x4aebde?_0x142417[_0x417e('0x7')][_0x417e('0x9d')]:0x0),this['_changeView']=null,this[_0x417e('0x68')]=new Map(),this['adapter']=null,this[_0x417e('0x5d')]=this['editor']['plugins']['get'](_0x4a0d49);}[_0x417e('0xb')](){const _0x86c2a3=this[_0x417e('0xae')];_0x86c2a3[_0x417e('0xf3')][_0x417e('0x88')][_0x417e('0x70')](_0x417e('0xd8'));const _0xd98674=new B(_0x86c2a3,{'direction':_0x417e('0xcc')}),_0x8433a2=new B(_0x86c2a3,{'direction':_0x417e('0x8b')});_0x86c2a3[_0x417e('0x5a')]['add'](_0x417e('0xdd'),_0xd98674),_0x86c2a3[_0x417e('0x5a')][_0x417e('0x48')](_0x417e('0x6'),_0x8433a2),_0x86c2a3[_0x417e('0x5a')][_0x417e('0x48')](_0x417e('0xa8'),new z(_0x86c2a3)),this['on'](_0x417e('0x102'),()=>{_0xd98674[_0x417e('0x86')](),_0x8433a2[_0x417e('0x86')]();}),this['_setConversion'](),this[_0x417e('0x11')](),_0x86c2a3[_0x417e('0x7b')]=!0x0;}async[_0x417e('0x89')](_0x42806c){await this[_0x417e('0xda')](_0x42806c);const _0x4f552c={};for(const _0x35192e in _0x42806c[_0x417e('0xb8')]){const _0x2e0f93=this['_removeRevisionMarkers'](JSON[_0x417e('0x3a')](_0x42806c[_0x417e('0xb8')][_0x35192e][_0x417e('0x1b')])),_0x358669=this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x78')][_0x417e('0x94')],_0x577725=new _0x15b06a(_0x358669,_0x2e0f93[_0x417e('0x35')](_0x31b7a=>this[_0x417e('0x13')](_0x31b7a)));_0x4f552c[_0x35192e]=this[_0x417e('0xae')][_0x417e('0xf3')][_0x417e('0x9b')][_0x417e('0x1d')](_0x577725);}return _0x4f552c;}[_0x417e('0x29')](_0x38abb2){return(_0x38abb2=_0x38abb2['filter'](_0x477334=>!_0x477334[_0x417e('0x4f')]||_0x417e('0x103')!==_0x477334[_0x417e('0x4f')]&&'revision-end'!==_0x477334[_0x417e('0x4f')]))['forEach'](_0x385586=>{_0x417e('0xe0')!=typeof _0x385586&&(_0x385586[_0x417e('0xd6')]=this[_0x417e('0x29')](_0x385586[_0x417e('0xd6')]),_0x385586['attributes']=_0x385586[_0x417e('0xd0')]['filter'](_0x4219e1=>!_0x4219e1[0x0][_0x417e('0xee')]('data-revision-')));}),_0x38abb2;}[_0x417e('0xf')](_0x3d4c46,_0x5b2806,_0x2b6446=!0x1){if(!this['isEnabled'])return;const _0x15c48a=this[_0x417e('0x23')],_0x30b7a8='string'==typeof _0x3d4c46?_0x15c48a[_0x417e('0x8e')](_0x3d4c46):_0x3d4c46,_0x42d560=_0x417e('0xe0')==typeof _0x5b2806?_0x15c48a[_0x417e('0x8e')](_0x5b2806):_0x5b2806,_0x47656d=_0x30b7a8['id'],_0x5855d7=_0x42d560?_0x42d560['id']:null;if(!_0x2b6446&&this[_0x417e('0x54')]&&this['diff'][_0x417e('0x64')]===_0x47656d&&this[_0x417e('0x54')][_0x417e('0x12')]===_0x5855d7)return Promise[_0x417e('0xfd')]();this[_0x417e('0x15')]=!0x1,this[_0x417e('0x33')]=null,this[_0x417e('0x54')]=new _0x33c669(_0x47656d,_0x5855d7);const _0x3d6bd1=this['_getRevisionsRange'](_0x30b7a8,_0x42d560,!0x0)[_0x417e('0x35')](_0x3607ae=>this[_0x417e('0xda')](_0x3607ae));return _0x3d6bd1[_0x417e('0x104')](new Promise(_0x3dd6c2=>{setTimeout(_0x3dd6c2,0x14);})),Promise[_0x417e('0xef')](_0x3d6bd1)[_0x417e('0xb0')](()=>{if(!this[_0x417e('0x26')])return;this[_0x417e('0x22')]();const _0x6616fd=this['_getDiff'](_0x47656d,_0x5855d7);this['diff'][_0x417e('0xff')](_0x6616fd);for(const _0x395f1c of this[_0x417e('0x54')][_0x417e('0x7')])this['_changeIdToChange'][_0x417e('0x100')](_0x395f1c['id'],_0x395f1c);this[_0x417e('0xae')][_0x417e('0x76')][_0x417e('0xf4')]({'isUndoable':!0x1},_0x5ee5d3=>{for(const _0x4b985f of Object['keys'](_0x6616fd[_0x417e('0x76')])){const _0x2aa49f=this['editor'][_0x417e('0x76')][_0x417e('0x94')][_0x417e('0xc6')](_0x4b985f);_0x5ee5d3[_0x417e('0x1e')](_0x5ee5d3[_0x417e('0x92')](_0x2aa49f)),_0x5ee5d3[_0x417e('0xec')](_0x6616fd[_0x417e('0x76')][_0x4b985f],_0x2aa49f,0x0);}}),this[_0x417e('0x15')]=!0x0;})[_0x417e('0xb7')](_0x38c13c=>{console[_0x417e('0x62')](_0x38c13c),this[_0x417e('0x15')]=!0x0;});}['destroy'](){this[_0x417e('0x33')]=null,this['_changeView']&&this[_0x417e('0xa2')][_0x417e('0x73')]();}[_0x417e('0xfe')](_0x5272b3,_0x5f4693){const _0x5b5abb=this[_0x417e('0x23')]['createRevision'](_0x5272b3);return _0x5b5abb['on'](_0x417e('0x38'),(_0x32883a,_0x171129,_0x3fb2b1)=>_0x5f4693(_0x171129,_0x3fb2b1,_0x5b5abb)),this[_0x417e('0x23')][_0x417e('0xe5')](_0x5b5abb),_0x5b5abb;}[_0x417e('0xda')](_0x17c8b3){if(!_0x17c8b3||_0x17c8b3[_0x417e('0xb8')])return Promise[_0x417e('0xfd')]();{const _0x545b71=this[_0x417e('0xae')][_0x417e('0x45')]['get'](_0x417e('0xb3'));return this[_0x417e('0xf6')][_0x417e('0x8e')]({'channelId':_0x545b71,'revisionId':_0x17c8b3['id']})[_0x417e('0xb0')](_0x2f3cb7=>{_0x17c8b3[_0x417e('0x38')]({'diffData':_0x2f3cb7[_0x417e('0xb8')]},!0x0);});}}[_0x417e('0x22')](){this['activeChange']=null,this[_0x417e('0x60')](),this[_0x417e('0xa2')]&&this[_0x417e('0xa2')][_0x417e('0x73')](),this[_0x417e('0xa2')]=null,this['_changeIdToChange'][_0x417e('0xc1')]();}[_0x417e('0xf1')](_0x25253a){const _0x2bbcbc=Array['from'](_0x25253a['markers'])[_0x417e('0x97')](([_0x290b29,_0xf123be])=>_0x290b29[_0x417e('0xee')](_0x417e('0xa5'))&&!_0xf123be[_0x417e('0xd2')]),_0x5c8855=Array[_0x417e('0x27')](this['editor'][_0x417e('0x76')]['createRangeIn'](_0x25253a)[_0x417e('0xe2')]({'singleCharacters':!0x0}));if(0x0!=_0x2bbcbc['length'])for(const _0x1a81ef of _0x5c8855){const [_0x1423b4,_0x5a2325]=_0x2bbcbc[0x0],[,_0x2bd7fa,_0x12a6d8]=_0x1423b4[_0x417e('0x75')](':');if(_0x5a2325['end'][_0x417e('0x67')](_0x1a81ef['nextPosition'])&&_0x2bbcbc[_0x417e('0xdf')](),(_0x1a81ef[_0x417e('0xb4')][_0x417e('0x67')](_0x5a2325['start'])||_0x1a81ef['previousPosition'][_0x417e('0x5c')](_0x5a2325['start']))&&('insertion'==_0x2bd7fa?_0x1a81ef[_0x417e('0x77')]={'userId':_0x12a6d8}:_0x417e('0xf0')==_0x2bd7fa&&(_0x1a81ef['isRemoved']={'userId':_0x12a6d8})),0x0==_0x2bbcbc[_0x417e('0x9d')])break;}return _0x5c8855;}[_0x417e('0x4b')](_0x56d991){const _0x408699=new Map();for(let _0x266072=0x0;_0x266072<_0x56d991['length'];_0x266072++)'text'===_0x56d991[_0x266072]['type']?(_0x56d991[_0x266072][_0x417e('0xd5')][_0x417e('0xde')]=_0x266072,_0x56d991[_0x266072][_0x417e('0xd5')]['endIndex']=_0x266072):(_0x417e('0x3e')===_0x56d991[_0x266072][_0x417e('0x5e')]?_0x56d991[_0x266072]['item']['startIndex']=_0x266072:_0x417e('0xc3')===_0x56d991[_0x266072]['type']&&(_0x56d991[_0x266072]['item']['endIndex']=_0x266072),_0x408699[_0x417e('0x100')](_0x56d991[_0x266072]['id'],_0x266072));for(const _0x5b1814 of _0x408699['values']())'elementStart'===_0x56d991[_0x5b1814]['type']?_0x56d991[_0x5b1814][_0x417e('0xd5')]['endIndex']=_0x408699[_0x417e('0x24')](_0x56d991[_0x5b1814][_0x417e('0x56')]):_0x417e('0xc3')===_0x56d991[_0x5b1814]['type']&&(_0x56d991[_0x5b1814][_0x417e('0xd5')][_0x417e('0xde')]=_0x408699[_0x417e('0x24')](_0x56d991[_0x5b1814]['pairId']));}[_0x417e('0xed')](_0x35e6b0){for(let _0x33896b=0x0;_0x33896b<_0x35e6b0[_0x417e('0x9d')];_0x33896b++){if(_0x417e('0x3e')===_0x35e6b0[_0x33896b]['type'])_0x35e6b0[_0x33896b]['item']['startIndex']=_0x33896b;else{if(_0x417e('0xc3')===_0x35e6b0[_0x33896b][_0x417e('0x5e')]){_0x35e6b0[_0x33896b][_0x417e('0xd5')]['endIndex']=_0x33896b;const _0x60babd=_0x35e6b0[_0x33896b]['item'][_0x417e('0xde')];_0x35e6b0[_0x60babd][_0x417e('0x56')]=_0x35e6b0[_0x33896b]['id'],_0x35e6b0[_0x33896b][_0x417e('0x56')]=_0x35e6b0[_0x60babd]['id'];}else _0x35e6b0[_0x33896b][_0x417e('0xd5')]['startIndex']=_0x33896b,_0x35e6b0[_0x33896b]['item']['endIndex']=_0x33896b,_0x35e6b0[_0x33896b]['pairId']=null;}_0x35e6b0[_0x33896b][_0x417e('0x8f')]||(_0x35e6b0[_0x33896b][_0x417e('0x8f')]=[],_0x35e6b0[_0x33896b]['markersEnd']=[]);}}[_0x417e('0x50')](_0x280f6a,_0x583fe1){const _0x493728=_0x280f6a[_0x417e('0x97')](_0x348862=>!_0x348862[_0x417e('0x77')]);for(let _0x4562e3=0x0;_0x4562e3<_0x583fe1['length'];_0x4562e3++)_0x583fe1[_0x4562e3][_0x417e('0x77')]&&(_0x493728[_0x4562e3]['isAdded']=_0x583fe1[_0x4562e3][_0x417e('0x77')]);}[_0x417e('0x1')](_0x385d85){const _0x371632=JSON[_0x417e('0x3a')](_0x385d85),_0x18daa9=this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x78')][_0x417e('0x94')],_0x3d1a42=new _0x15b06a(_0x18daa9,_0x371632[_0x417e('0x35')](_0x46f7f0=>this[_0x417e('0x13')](_0x46f7f0)));return this[_0x417e('0xae')][_0x417e('0xf3')][_0x417e('0xb9')](_0x3d1a42);}[_0x417e('0x13')](_0x27ff11){const _0x525ca5=this[_0x417e('0xae')][_0x417e('0x2e')]['view'][_0x417e('0x94')];if(_0x417e('0xe0')==typeof _0x27ff11)return new _0x5cba3d(_0x525ca5,_0x27ff11);{const _0x5370e1=_0x27ff11[_0x417e('0xd6')][_0x417e('0x35')](_0x1c5657=>this[_0x417e('0x13')](_0x1c5657));return new _0x5953b7(_0x525ca5,_0x27ff11[_0x417e('0x4f')],_0x27ff11[_0x417e('0xd0')],_0x5370e1);}}[_0x417e('0x20')](_0x526b92,_0x5f450f=null){const _0x55ecb3=this[_0x417e('0x23')]['getRevision'](_0x526b92),_0x125ed8=_0x5f450f?this['repository'][_0x417e('0x8e')](_0x5f450f):null,_0x28d112=this[_0x417e('0xa6')](_0x55ecb3,_0x125ed8),_0x357649=_0x28d112[_0x28d112[_0x417e('0x9d')]-0x1],_0x5ae10b=new Map();for(const _0x2f7cb5 of _0x28d112){_0x2f7cb5['model']={};for(const _0x2a2ae7 of _0x2f7cb5[_0x417e('0x98')])_0x5ae10b[_0x417e('0x100')](_0x2a2ae7['id'],_0x2a2ae7);for(const _0x27302e of this[_0x417e('0xae')]['model'][_0x417e('0x94')][_0x417e('0x14')]())_0x2f7cb5[_0x417e('0xb8')][_0x27302e]||(_0x2f7cb5['diffData'][_0x27302e]={'insertions':'[]','deletions':'[]'}),_0x2f7cb5[_0x417e('0x76')][_0x27302e]={'insertions':this['_makeModelFromViewString'](_0x2f7cb5[_0x417e('0xb8')][_0x27302e]['insertions']),'deletions':this['_makeModelFromViewString'](_0x2f7cb5[_0x417e('0xb8')][_0x27302e][_0x417e('0x39')])};}const _0x449b66={'model':{},'changes':[]};for(const _0x473bd4 of this[_0x417e('0xae')][_0x417e('0x76')][_0x417e('0x94')]['getRootNames']()){let _0x5c996e=null,_0x5139a6=0x0;const _0x48a54d=new Map(Array[_0x417e('0x27')](_0x55ecb3['model'][_0x473bd4]['insertions'][_0x417e('0xad')])[_0x417e('0x97')](([_0x31e79c])=>!_0x31e79c[_0x417e('0xee')](_0x417e('0xa5'))));let _0x555fbf=0x0;for(const _0x4b3a5e of _0x28d112){const _0x8ab3e4=this[_0x417e('0xf1')](_0x4b3a5e[_0x417e('0x76')][_0x473bd4][_0x417e('0x1b')]);_0x4b3a5e==_0x55ecb3?(_0x5c996e=_0x8ab3e4,_0x5139a6=_0x5c996e['length'],_0x5c996e[_0x417e('0xd1')](_0x4e3e4b=>{_0x4e3e4b['id']=_0x555fbf++;}),this[_0x417e('0xed')](_0x5c996e)):this[_0x417e('0x50')](_0x5c996e,_0x8ab3e4);const _0x489088=_0x5c996e['filter'](_0x34b72f=>!_0x34b72f[_0x417e('0x77')])[_0x417e('0x35')](_0x23ed54=>_0x23ed54['id']);let _0x381651=0x0;const _0x59fd94=this[_0x417e('0xf1')](_0x4b3a5e[_0x417e('0x76')][_0x473bd4]['deletions']);_0x59fd94[_0x417e('0xd1')](_0x29baa8=>{_0x29baa8[_0x417e('0xcd')]?_0x29baa8['id']=_0x5139a6++:_0x29baa8['id']=_0x489088[_0x381651++];}),this[_0x417e('0xed')](_0x59fd94),this[_0x417e('0xa1')](_0x5c996e,_0x417e('0x77')),this[_0x417e('0xa1')](_0x59fd94,_0x417e('0xcd')),_0x4b3a5e==_0x55ecb3&&this[_0x417e('0xf8')](_0x5c996e,_0x48a54d),_0x5c996e=this[_0x417e('0x6c')](_0x5c996e,_0x59fd94),this[_0x417e('0x4b')](_0x5c996e),this[_0x417e('0xa1')](_0x5c996e,'isRemoved');}_0x5c996e=_0x5c996e[_0x417e('0x97')](_0x35b65f=>!(_0x35b65f[_0x417e('0x77')]&&_0x35b65f[_0x417e('0xcd')]));const _0x3ff849=new Map(_0x357649[_0x417e('0x76')][_0x473bd4][_0x417e('0x39')]['markers']),_0x1eb93f=new Set(_0x48a54d[_0x417e('0xab')]());for(const _0xb68cd4 of _0x3ff849[_0x417e('0xab')]())_0x1eb93f[_0x417e('0xfa')](_0xb68cd4);this[_0x417e('0x8c')](_0x5c996e,_0x1eb93f),this['_fixObsoleteTags'](_0x5c996e),_0x5c996e=this[_0x417e('0x8d')](_0x5c996e),_0x5c996e=this[_0x417e('0x79')](_0x5c996e),_0x5c996e=this[_0x417e('0xe1')](_0x5c996e);const {root:_0x3f8030,changes:_0xa7ea8}=this[_0x417e('0x96')](_0x5c996e,_0x5ae10b);_0x449b66[_0x417e('0x76')][_0x473bd4]=_0x3f8030,_0x449b66[_0x417e('0x7')]=_0x449b66[_0x417e('0x7')][_0x417e('0x31')](_0xa7ea8);}return _0x449b66;}[_0x417e('0xf8')](_0x4a4c2a,_0x18d67f){for(let _0x10128a=0x0;_0x10128a<_0x4a4c2a['length'];_0x10128a++)for(const [_0x5f0643,_0x4b54a8]of _0x18d67f)_0x4b54a8[_0x417e('0x65')][_0x417e('0x67')](_0x4a4c2a[_0x10128a][_0x417e('0xb4')])&&_0x4a4c2a[_0x10128a]['markersStart']['push'](_0x5f0643),_0x4b54a8['end'][_0x417e('0x67')](_0x4a4c2a[_0x10128a][_0x417e('0x30')])&&_0x4a4c2a[_0x10128a][_0x417e('0x61')][_0x417e('0x104')](_0x5f0643);}['_joinTapes'](_0x4e5bef,_0x34c4b8){let _0x63bd16=[],_0x43cc13=0x0,_0x4acec2=0x0;for(;_0x43cc13<_0x4e5bef[_0x417e('0x9d')]||_0x4acec2<_0x34c4b8[_0x417e('0x9d')];){const _0x10462a=_0x4e5bef[_0x43cc13]||{},_0x4471ca=_0x34c4b8[_0x4acec2]||{};if(_0x10462a['id']==_0x4471ca['id'])_0x43cc13++,_0x4acec2++,_0x63bd16[_0x417e('0x104')](_0x10462a);else{if(_0x4471ca[_0x417e('0xcd')]&&_0x10462a[_0x417e('0x77')]){const {commonTape:_0x111406,iEnd:_0x55185d,jEnd:_0x3181ee}=this[_0x417e('0xd')](_0x4e5bef,_0x43cc13,_0x34c4b8,_0x4acec2);_0x63bd16=_0x63bd16[_0x417e('0x31')](_0x111406),_0x43cc13=_0x55185d,_0x4acec2=_0x3181ee;}else _0x4471ca[_0x417e('0xcd')]?(_0x4acec2++,_0x63bd16[_0x417e('0x104')](_0x4471ca)):(_0x43cc13++,_0x63bd16[_0x417e('0x104')](_0x10462a));}}return _0x63bd16;}[_0x417e('0x8c')](_0x22f7e2,_0xd48f6b){const _0x2484ad=[];for(let _0x127ddc=0x0;_0x127ddc<_0x22f7e2[_0x417e('0x9d')];_0x127ddc++){for(let _0x11e682=0x0;_0x11e682<_0x22f7e2[_0x127ddc][_0x417e('0x8f')][_0x417e('0x9d')];_0x11e682++){const _0x36cf75=_0x22f7e2[_0x127ddc][_0x417e('0x8f')][_0x11e682];if(!_0xd48f6b[_0x417e('0xdc')](_0x36cf75))continue;const {group:_0x3c7723,type:_0x2a057a,authorId:_0x572f38}=_0x296657(_0x36cf75);_0x417e('0x99')!=_0x3c7723||'insertion'!=_0x2a057a&&'deletion'!=_0x2a057a||(_0x2484ad[_0x417e('0x7a')]({'type':_0x2a057a,'name':_0x36cf75,'userId':_0x572f38}),_0x22f7e2[_0x127ddc][_0x417e('0x8f')][_0x417e('0x59')](_0x11e682,0x1),_0x11e682--);}_0x137096(_0x22f7e2[_0x127ddc]);for(let _0x144ae6=0x0;_0x144ae6<_0x22f7e2[_0x127ddc][_0x417e('0x61')]['length'];_0x144ae6++){const _0x2bb8c6=_0x22f7e2[_0x127ddc][_0x417e('0x61')][_0x144ae6];if(!_0xd48f6b[_0x417e('0xdc')](_0x2bb8c6))continue;const {group:_0x98679d,type:_0xdb99d7}=_0x296657(_0x2bb8c6);if(_0x417e('0x99')!=_0x98679d||'insertion'!=_0xdb99d7&&'deletion'!=_0xdb99d7)continue;_0x22f7e2[_0x127ddc]['markersEnd'][_0x417e('0x59')](_0x144ae6,0x1),_0x144ae6--;const _0x4a9f90=_0x2484ad[_0x417e('0x6d')](_0x17e87d=>_0x17e87d['name']==_0x2bb8c6);_0x4a9f90>-0x1&&_0x2484ad[_0x417e('0x59')](_0x4a9f90,0x1);}}function _0x296657(_0x2c6b0e){const _0x5172e8=_0x2c6b0e['split'](':');return{'group':_0x5172e8[0x0],'type':_0x5172e8[0x1],'subType':_0x5172e8[_0x417e('0x9d')]>=0x5?_0x5172e8[0x2]:null,'id':_0x5172e8[_0x417e('0x9d')]<0x5?_0x5172e8[0x2]:_0x5172e8[0x3],'authorId':_0x5172e8[_0x417e('0x9d')]<0x5?_0x5172e8[0x3]:_0x5172e8[0x4],'markerCount':0x6==_0x5172e8[_0x417e('0x9d')]?_0x5172e8[0x5]:null};}function _0x137096(_0x1cacdb){for(let _0x180599=0x0;_0x180599<_0x2484ad[_0x417e('0x9d')];_0x180599++){if(_0x1cacdb[_0x417e('0x77')]&&'insertion'==_0x2484ad[_0x180599]['type'])return _0x1cacdb[_0x417e('0xca')]=_0x2484ad[_0x180599],void delete _0x1cacdb[_0x417e('0x77')];if(!_0x1cacdb[_0x417e('0x77')]&&!_0x1cacdb[_0x417e('0xcd')]&&_0x417e('0xf0')==_0x2484ad[_0x180599][_0x417e('0x5e')])return void(_0x1cacdb[_0x417e('0x9')]=_0x2484ad[_0x180599]);}}}[_0x417e('0xa1')](_0x56bd5c,_0x1dfa8b){let _0x171c4f=0x0,_0x451711=!0x1;const _0x4427fe=new Map();for(const _0x1796d7 of _0x56bd5c)_0x1796d7[_0x1dfa8b]?_0x451711&&(_0x171c4f++,_0x451711=!0x1):(_0x171c4f++,_0x451711=!0x0),_0x4427fe[_0x417e('0x100')](_0x1796d7['id'],_0x171c4f);for(let _0x3a0d8b=0x0;_0x3a0d8b<_0x56bd5c[_0x417e('0x9d')];_0x3a0d8b++){if('isRemoved'==_0x1dfa8b&&_0x56bd5c[_0x3a0d8b][_0x417e('0x77')]||_0x417e('0x77')==_0x1dfa8b&&_0x56bd5c[_0x3a0d8b]['isRemoved'])continue;if(_0x417e('0x84')==_0x56bd5c[_0x3a0d8b][_0x417e('0x5e')]){_0x56bd5c[_0x3a0d8b]['distance']=0x0;continue;}const _0x391a73=_0x4427fe[_0x417e('0x24')](_0x56bd5c[_0x3a0d8b][_0x417e('0x56')]),_0x3f0ccb=_0x4427fe[_0x417e('0x24')](_0x56bd5c[_0x3a0d8b]['id']);_0x56bd5c[_0x3a0d8b][_0x417e('0xba')]=_0x391a73-_0x3f0ccb;}}[_0x417e('0xa6')](_0x841f54,_0x425e07,_0x8724d8=!0x1){const _0x979b05=[];let _0x3c606c=this[_0x417e('0x23')]['getIndex'](_0x841f54),_0x502594=this[_0x417e('0x23')]['getIndex'](_0x425e07);for(-0x1==_0x502594&&(_0x502594=this['repository'][_0x417e('0x8a')][_0x417e('0x9d')],_0x8724d8=!0x1);_0x3c606c<_0x502594;)_0x979b05['push'](this['repository'][_0x417e('0x8e')](_0x3c606c)),_0x3c606c++;return _0x8724d8&&_0x979b05[_0x417e('0x104')](this[_0x417e('0x23')]['getRevision'](_0x3c606c)),_0x979b05;}[_0x417e('0xd')](_0x1b7429,_0x3f8a37,_0xbb3754,_0x273549){const _0x595aa7=this[_0x417e('0xae')][_0x417e('0x76')][_0x417e('0xa7')];let _0x119953=_0x3f8a37;for(;_0x1b7429[_0x119953]&&_0x1b7429[_0x119953]['isAdded'];)_0x119953++;let _0x3ff88d=_0x273549;for(;_0xbb3754[_0x3ff88d]&&_0xbb3754[_0x3ff88d][_0x417e('0xcd')];)_0x3ff88d++;_0x388387(_0x1b7429,_0x3f8a37,_0x119953),_0x388387(_0xbb3754,_0x273549,_0x3ff88d);const _0x32a40a=_0xbb3754[_0x417e('0x37')](_0x273549,_0x3ff88d)['concat'](_0x1b7429['slice'](_0x3f8a37,_0x119953));return _0x32a40a['sort']((_0x400f70,_0xcc05bd)=>_0x400f70[_0x417e('0xb2')]!=_0xcc05bd[_0x417e('0xb2')]?_0x400f70['side']-_0xcc05bd[_0x417e('0xb2')]:_0x400f70[_0x417e('0x51')]!=_0xcc05bd[_0x417e('0x51')]?_0x400f70[_0x417e('0x51')]-_0xcc05bd[_0x417e('0x51')]:_0x400f70['distance']!=_0xcc05bd['distance']?_0xcc05bd[_0x417e('0xba')]-_0x400f70[_0x417e('0xba')]:!!_0x400f70[_0x417e('0x77')]!=!!_0xcc05bd[_0x417e('0x77')]?-0x1==_0x400f70[_0x417e('0xb2')]||0x0==_0x400f70[_0x417e('0xb2')]?_0x400f70[_0x417e('0x77')]?-0x1:0x1:_0x400f70['isAdded']?0x1:-0x1:_0x400f70['index']-_0xcc05bd['index']),{'commonTape':_0x32a40a,'iEnd':_0x119953,'jEnd':_0x3ff88d};function _0x388387(_0x23561c,_0x1af6c3,_0x5ce387){let _0x3cfa8e=-0x1,_0x12674d=Number[_0x417e('0xe3')],_0x5698c5=!0x0;for(let _0x3c47fb=_0x1af6c3;_0x3c47fb<_0x5ce387;_0x3c47fb++)if(_0x595aa7['isInline'](_0x23561c[_0x3c47fb][_0x417e('0xd5')])||(_0x5698c5=!0x1),_0x23561c[_0x3c47fb]['item'][_0x417e('0xde')]<_0x1af6c3&&(_0x3cfa8e=_0x3c47fb),_0x23561c[_0x3c47fb][_0x417e('0xd5')][_0x417e('0x19')]>=_0x5ce387){_0x12674d=_0x3c47fb;break;}_0x5698c5&&(_0x3cfa8e=_0x5ce387-0x1);for(let _0x2ac293=_0x1af6c3;_0x2ac293<_0x5ce387;_0x2ac293++)_0x23561c[_0x2ac293][_0x417e('0xb2')]=_0x2ac293<=_0x3cfa8e?-0x1:_0x2ac293<_0x12674d?0x0:0x1,_0x23561c[_0x2ac293][_0x417e('0x2c')]=_0x2ac293;let _0xaba20b=0x0;for(let _0x4d8967=_0x1af6c3;_0x4d8967<=_0x3cfa8e;_0x4d8967++)0x0==_0x23561c[_0x4d8967][_0x417e('0xba')]?_0x23561c[_0x4d8967][_0x417e('0x51')]=_0xaba20b:(_0xaba20b++,_0x23561c[_0x4d8967][_0x417e('0x51')]=_0xaba20b,_0xaba20b++);for(let _0x148964=_0x1af6c3;_0x148964<_0x5ce387;_0x148964++)0x0==_0x23561c[_0x148964]['side']&&(_0x23561c[_0x148964][_0x417e('0x51')]=_0xaba20b);_0xaba20b=0x0;for(let _0x56d518=_0x5ce387-0x1;_0x56d518>=_0x12674d;_0x56d518--)0x0==_0x23561c[_0x56d518]['distance']?_0x23561c[_0x56d518][_0x417e('0x51')]=_0xaba20b:(_0xaba20b--,_0x23561c[_0x56d518][_0x417e('0x51')]=_0xaba20b,_0xaba20b--);}}[_0x417e('0x106')](_0x1328fb){const _0x14059b=new Map(),_0x141220=this[_0x417e('0xae')]['model'][_0x417e('0xa7')];for(let _0x9db257=0x1;_0x9db257<_0x1328fb[_0x417e('0x9d')];_0x9db257++){let _0xa69ca0,_0x2d306c,_0x389aa3;const _0x1c379f=_0x1328fb[_0x9db257],_0x24149b=_0x1328fb[_0x9db257-0x1];if(_0x417e('0x84')==_0x1c379f[_0x417e('0x5e')])continue;if(_0x1c379f[_0x417e('0x5e')]!=_0x24149b['type'])continue;if(!_0x141220['isBlock'](_0x24149b['item'])||_0x141220[_0x417e('0x4e')](_0x24149b['item']))continue;if(!_0x141220[_0x417e('0x52')](_0x1c379f[_0x417e('0xd5')])||_0x141220[_0x417e('0x4e')](_0x1c379f[_0x417e('0xd5')]))continue;if((_0x1328fb[_0x9db257][_0x417e('0x77')]||_0x1328fb[_0x9db257][_0x417e('0xca')])&&_0x1328fb[_0x9db257-0x1][_0x417e('0xcd')])_0xa69ca0=_0x1328fb[_0x9db257],_0x2d306c=_0x1328fb[_0x9db257-0x1],_0x389aa3=_0x9db257-0x1;else{if(!_0x1328fb[_0x9db257][_0x417e('0xcd')]||!_0x1328fb[_0x9db257-0x1]['isAdded']&&!_0x1328fb[_0x9db257-0x1][_0x417e('0xca')])continue;_0xa69ca0=_0x1328fb[_0x9db257-0x1],_0x2d306c=_0x1328fb[_0x9db257],_0x389aa3=_0x9db257;}const _0x532fd0=_0xa69ca0['level']==_0x2d306c[_0x417e('0x51')],_0x8a1632=Math[_0x417e('0x71')](_0xa69ca0[_0x417e('0x51')])<Math[_0x417e('0x71')](_0x2d306c[_0x417e('0x51')])&&0x0==_0x2d306c[_0x417e('0xba')];(_0x532fd0||_0x8a1632)&&(_0x14059b[_0x417e('0x100')](_0x2d306c['id'],_0xa69ca0['id']),_0x1328fb['splice'](_0x389aa3,0x1),_0x9db257--,_0xa69ca0[_0x417e('0x77')]=!0x1);}for(let _0x25eaa7=0x0;_0x25eaa7<_0x1328fb[_0x417e('0x9d')];_0x25eaa7++)_0x14059b[_0x417e('0xdc')](_0x1328fb[_0x25eaa7]['pairId'])&&(_0x1328fb[_0x25eaa7]['pairId']=_0x14059b[_0x417e('0x24')](_0x1328fb[_0x25eaa7][_0x417e('0x56')]));}[_0x417e('0x8d')](_0x2fe93d){const _0x56406d=new Set(_0x2fe93d['map'](_0x3180b3=>_0x3180b3['id']));for(let _0x29d27e=0x0;_0x29d27e<_0x2fe93d[_0x417e('0x9d')];_0x29d27e++)_0x56406d[_0x417e('0xdc')](_0x2fe93d[_0x29d27e][_0x417e('0x56')])||0x0==_0x2fe93d[_0x29d27e][_0x417e('0xba')]||(_0x2fe93d[_0x29d27e][_0x417e('0x4c')]=!0x0);return _0x2fe93d['filter'](_0x4f8cbe=>!_0x4f8cbe[_0x417e('0x4c')]);}[_0x417e('0x79')](_0x28c6da){const _0x1232f9=new Set();for(let _0x5c7ee9=0x0;_0x5c7ee9<_0x28c6da[_0x417e('0x9d')];_0x5c7ee9++){if(_0x1232f9['has'](_0x28c6da[_0x5c7ee9]['id'])&&_0x28c6da[_0x5c7ee9]['isRemoved']&&(_0x28c6da[_0x5c7ee9]['isIncorrect']=!0x0),_0x28c6da[_0x5c7ee9]['isIncorrect'])continue;if(0x0==_0x28c6da[_0x5c7ee9][_0x417e('0xba')])continue;if(_0x417e('0x3e')!=_0x28c6da[_0x5c7ee9][_0x417e('0x5e')])continue;if(null==_0x28c6da[_0x5c7ee9][_0x417e('0x56')])continue;let _0x5e279c=_0x5c7ee9+0x1,_0x17c1c6=0x0;for(;_0x28c6da[_0x5e279c]['id']!=_0x28c6da[_0x5c7ee9][_0x417e('0x56')];)_0x417e('0x3e')==_0x28c6da[_0x5e279c][_0x417e('0x5e')]?_0x17c1c6++:_0x417e('0xc3')==_0x28c6da[_0x5e279c][_0x417e('0x5e')]&&_0x17c1c6--,_0x5e279c++;if(0x0!=_0x17c1c6){if(_0x28c6da[_0x5c7ee9][_0x417e('0xcd')])_0x28c6da[_0x5c7ee9][_0x417e('0x4c')]=!0x0;else for(;_0x5e279c!=_0x5c7ee9;)_0x28c6da[_0x5e279c][_0x417e('0xcd')]&&0x0!=_0x28c6da[_0x5e279c]['distance']&&(_0x28c6da[_0x5e279c][_0x417e('0x4c')]=!0x0,_0x1232f9[_0x417e('0x48')](_0x28c6da[_0x5e279c][_0x417e('0x56')])),_0x5e279c--;}}return _0x28c6da['filter'](_0x5fb23a=>!_0x5fb23a[_0x417e('0x4c')]);}[_0x417e('0xe1')](_0x2e7b6a){const _0x361fb0=this[_0x417e('0xae')]['model'][_0x417e('0xa7')];for(let _0x684577=0x0;_0x684577<_0x2e7b6a[_0x417e('0x9d')];_0x684577++){if(!(_0x2e7b6a[_0x684577]['isAdded']||_0x2e7b6a[_0x684577]['isAddSuggestion']||_0x2e7b6a[_0x684577][_0x417e('0xcd')]||_0x2e7b6a[_0x684577][_0x417e('0x9')]))continue;if(0x0==_0x2e7b6a[_0x684577][_0x417e('0xba')])continue;const _0x20c2f0=_0x2e7b6a[_0x684577][_0x417e('0xd5')];_0x361fb0[_0x417e('0x52')](_0x20c2f0)||_0x361fb0[_0x417e('0x4e')](_0x20c2f0)||(_0x2e7b6a[_0x684577]['isAdded']&&delete _0x2e7b6a[_0x684577]['isAdded'],_0x2e7b6a[_0x684577][_0x417e('0xca')]&&delete _0x2e7b6a[_0x684577][_0x417e('0xca')],_0x2e7b6a[_0x684577][_0x417e('0x9')]&&delete _0x2e7b6a[_0x684577][_0x417e('0x9')],_0x2e7b6a[_0x684577][_0x417e('0xcd')]&&(_0x2e7b6a[_0x684577][_0x417e('0x4c')]=!0x0));}return _0x2e7b6a[_0x417e('0x97')](_0x485f9e=>!_0x485f9e['isIncorrect']);}[_0x417e('0x96')](_0x2a97ce,_0x30b18c){const _0x31afdc=new _0x399529(),_0x5a52a8=[],_0x5721ac=new Map(),_0x31a279=this['editor'][_0x417e('0x76')],_0x213024=_0x31a279[_0x417e('0xa7')],_0x164b59=[_0x31afdc],_0x5fd555={},_0x40e774={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};for(let _0x139995=0x0;_0x139995<_0x2a97ce[_0x417e('0x9d')];_0x139995++){let _0x3228d4,_0xb43f0f;if(_0x417e('0x3e')===_0x2a97ce[_0x139995]['type']){const _0x2ffaa5=new _0x1b27cc(_0x2a97ce[_0x139995][_0x417e('0xd5')][_0x417e('0x4f')],_0x2a97ce[_0x139995][_0x417e('0xd5')]['getAttributes']());_0x3228d4=_0x31a279[_0x417e('0x5f')](_0x164b59[0x0],_0x417e('0xc2')),_0x51ea26(_0x3228d4,_0x2ffaa5),_0xb43f0f=_0x31a279['createPositionAt'](_0x2ffaa5,0x0),_0x164b59[_0x417e('0x7a')](_0x2ffaa5);}else{if(_0x417e('0xc3')===_0x2a97ce[_0x139995][_0x417e('0x5e')]){const _0x3f6d2c=_0x164b59[_0x417e('0xdf')]();_0x3228d4=_0x31a279['createPositionAt'](_0x3f6d2c,_0x417e('0xc2')),_0xb43f0f=_0x31a279[_0x417e('0xaa')](_0x3f6d2c);}else{const _0x141ec4=new _0x1eb788(_0x2a97ce[_0x139995][_0x417e('0xd5')][_0x417e('0xf3')],_0x2a97ce[_0x139995][_0x417e('0xd5')][_0x417e('0xc8')]());_0x3228d4=_0x31a279[_0x417e('0x5f')](_0x164b59[0x0],_0x417e('0xc2')),_0x51ea26(_0x3228d4,_0x141ec4),_0xb43f0f=_0x3228d4[_0x417e('0x42')](_0x2a97ce[_0x139995][_0x417e('0xd5')][_0x417e('0xe4')]);}}for(const _0x39b90e of _0x2a97ce[_0x139995][_0x417e('0x8f')])_0x5721ac[_0x417e('0x100')](_0x39b90e,{'start':_0x3228d4,'end':null});_0x548e0d(_0x417e('0x9'),_0x139995,_0x3228d4,_0xb43f0f),_0x548e0d(_0x417e('0xca'),_0x139995,_0x3228d4,_0xb43f0f),_0x548e0d(_0x417e('0xcd'),_0x139995,_0x3228d4,_0xb43f0f),_0x548e0d(_0x417e('0x77'),_0x139995,_0x3228d4,_0xb43f0f);for(const _0x136e53 of _0x2a97ce[_0x139995][_0x417e('0x61')]){_0x5721ac[_0x417e('0x24')](_0x136e53)['end']=_0xb43f0f;}}for(const [_0x5e7863,_0x47bf12]of _0x5721ac){const _0x57c2ae=this[_0x417e('0xae')][_0x417e('0x76')][_0x417e('0x36')](_0x47bf12[_0x417e('0x65')],_0x47bf12['end']);_0x31afdc[_0x417e('0xad')][_0x417e('0x100')](_0x5e7863,_0x57c2ae);}return _0x5a52a8['sort']((_0x2e51ca,_0x497d74)=>{const _0x4a20b9=_0x31afdc[_0x417e('0xad')][_0x417e('0x24')]('revision:'+_0x2e51ca['id']),_0x42b8e2=_0x31afdc[_0x417e('0xad')][_0x417e('0x24')](_0x417e('0xa5')+_0x497d74['id']);return _0x4a20b9[_0x417e('0x65')][_0x417e('0x28')](_0x42b8e2[_0x417e('0x65')])?-0x1:_0x4a20b9[_0x417e('0x65')][_0x417e('0x5c')](_0x42b8e2[_0x417e('0x65')])?0x1:_0x4a20b9['end'][_0x417e('0x28')](_0x42b8e2[_0x417e('0xc2')])?-0x1:_0x4a20b9[_0x417e('0xc2')]['isAfter'](_0x42b8e2[_0x417e('0xc2')])?0x1:_0x417e('0x48')===_0x2e51ca[_0x417e('0x5e')]?-0x1:0x1;}),{'root':_0x31afdc,'changes':_0x5a52a8};function _0x548e0d(_0x4e3f38,_0x160126,_0x3ac638,_0x49489b){const _0x3be0a3=!!_0x2a97ce[_0x160126][_0x4e3f38],_0x147870=_0x3be0a3?_0x2a97ce[_0x160126][_0x4e3f38][_0x417e('0xd9')]:null,_0x3c671e=_0x160126===_0x2a97ce['length']-0x1,_0xf5d249=_0x40e774[_0x4e3f38][0x0],_0x43f61f=_0x213024['isObject'](_0x2a97ce[_0x160126][_0x417e('0xd5')]);!_0x5fd555[_0x4e3f38]&&_0x3be0a3?_0x5fd555[_0x4e3f38]={'start':_0x3ac638,'tapeItem':_0x2a97ce[_0x160126],'userId':_0x147870,'type':_0x4e3f38}:_0x5fd555[_0x4e3f38]&&!_0x3be0a3?(_0x5fd555[_0x4e3f38][_0x417e('0xc2')]=_0x3ac638,_0x2a0671(_0x5fd555[_0x4e3f38]),_0x5fd555[_0x4e3f38]=null):_0x5fd555[_0x4e3f38]&&_0x3be0a3&&_0x5fd555[_0x4e3f38][_0x417e('0xd9')]!==_0x147870&&(_0x5fd555[_0x4e3f38][_0x417e('0xc2')]=_0x3ac638,_0xf5d249&&_0xf5d249['userId']===_0x5fd555[_0x4e3f38][_0x417e('0xd9')]||_0x2a0671(_0x5fd555[_0x4e3f38]),_0x5fd555[_0x4e3f38]={'start':_0x3ac638,'tapeItem':_0x2a97ce[_0x160126],'userId':_0x147870,'type':_0x4e3f38}),_0x5fd555[_0x4e3f38]&&_0x43f61f&&(_0x417e('0x3e')!==_0x2a97ce[_0x160126][_0x417e('0x5e')]||_0xf5d249&&_0xf5d249[_0x417e('0xd9')]===_0x147870||_0x40e774[_0x4e3f38][_0x417e('0x7a')]({'userId':_0x147870,'object':_0x2a97ce[_0x160126][_0x417e('0xd5')],'change':_0x5fd555[_0x4e3f38]}),_0x417e('0xc3')===_0x2a97ce[_0x160126]['type']&&_0xf5d249&&_0xf5d249['object']===_0x2a97ce[_0x160126][_0x417e('0xd5')]&&(_0x40e774[_0x4e3f38]['shift'](),_0x5fd555[_0x4e3f38]=_0xf5d249[_0x417e('0x5b')])),_0x5fd555[_0x4e3f38]&&_0x3c671e&&(_0x5fd555[_0x4e3f38][_0x417e('0xc2')]=_0x49489b,_0x2a0671(_0x5fd555[_0x4e3f38]),_0x5fd555[_0x4e3f38]=null);}function _0x2a0671({start:_0x917c2e,end:_0x5ce5d1,tapeItem:_0x5778cf,userId:_0x440333,type:_0x2295bb}){const _0x168eb7=_0x5778cf['item'],_0x295115=_0x31a279[_0x417e('0xa7')]['isBlock'](_0x168eb7)&&!_0x31a279[_0x417e('0xa7')]['isLimit'](_0x168eb7),_0x10a1de=_0x917c2e[_0x417e('0x2f')]==_0x5ce5d1[_0x417e('0xe8')]&&_0x5ce5d1[_0x417e('0x81')];if(_0x295115&&_0x10a1de)return;const _0x52344f=_0x31a279['createRange'](_0x917c2e,_0x5ce5d1),_0x2a84a7=_0x30b18c[_0x417e('0x24')](_0x440333),_0x2868e1=new _0x39b132({'author':_0x2a84a7,'type':_0x417e('0x77')==_0x2295bb||_0x417e('0xca')==_0x2295bb?_0x417e('0x48'):'remove','data':{'isSuggestion':_0x417e('0xca')==_0x2295bb||'isRemoveSuggestion'==_0x2295bb},'createdAt':new Date()});_0x5a52a8['push'](_0x2868e1),_0x31afdc[_0x417e('0xad')]['set'](_0x417e('0xa5')+_0x2868e1['id'],_0x52344f);}}[_0x417e('0xb5')](){this[_0x417e('0xae')][_0x417e('0x7f')][_0x417e('0xe7')](_0x417e('0x25'))[_0x417e('0x3f')]({'view':'revision'}),this[_0x417e('0xae')][_0x417e('0x7f')]['for'](_0x417e('0x43'))['markerToHighlight']({'model':'revision','view':_0x4557d3=>{const _0x39e7e8=_0x4557d3[_0x417e('0x83')][_0x417e('0x75')](':')[0x1],_0x15b61d=this[_0x417e('0x9e')](_0x39e7e8);if(!_0x15b61d)return null;const _0x31c775=_0x417e('0x48')==_0x15b61d[_0x417e('0x5e')]?'insertion':_0x417e('0xf0'),_0xdfac3c=[_0x417e('0x7d'),_0x417e('0x1a')+_0x31c775];return _0x15b61d[_0x417e('0xf3')]['isSuggestion']&&_0xdfac3c['push']('ck-suggestion-marker-'+_0x31c775+_0x417e('0xea')),this[_0x417e('0xc7')]==_0x15b61d&&_0xdfac3c[_0x417e('0x104')](_0x417e('0x85')),{'classes':_0xdfac3c,'attributes':{'data-change-id':_0x39e7e8}};}}),this[_0x417e('0xae')][_0x417e('0x7f')]['for']('upcast')[_0x417e('0x48')](_0x490acb=>{_0x490acb['on'](_0x417e('0xfc'),(_0x42fb76,_0x529245,_0x43132e)=>{const _0x15baae=_0x529245['viewItem'][_0x417e('0x6f')](0x0);if(!_0x15baae||!_0x15baae['is'](_0x417e('0xd7'),_0x417e('0xc4')))return;if(!_0x43132e[_0x417e('0x2')][_0x417e('0xc5')](_0x15baae,{'attributes':[_0x417e('0xc9'),_0x417e('0xa9')]}))return;const _0x2d86f5=_0x529245['modelRange'][_0x417e('0x65')][_0x417e('0x2f')];_0x43132e[_0x417e('0xc0')]['setAttribute'](_0x417e('0xc9'),_0x15baae[_0x417e('0x46')](_0x417e('0xc9')),_0x2d86f5),_0x43132e[_0x417e('0xc0')][_0x417e('0x82')](_0x417e('0xa9'),_0x15baae['getAttribute'](_0x417e('0xa9')),_0x2d86f5);},{'priority':_0x417e('0x105')});}),this[_0x417e('0xae')][_0x417e('0x7f')][_0x417e('0xe7')](_0x417e('0x25'))[_0x417e('0x48')](_0x9ff3c6=>{_0x9ff3c6['on'](_0x417e('0xd7'),(_0xf41322,_0x1bda72,_0x2b111b)=>{if(!_0x2b111b['consumable'][_0x417e('0xc5')](_0x1bda72['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1bda72[_0x417e('0xe')][_0x417e('0xd2')])return;const _0x5cec47=_0x1bda72[_0x417e('0xe')]['start'][_0x417e('0x2f')];_0x5cec47[_0x417e('0xbc')](_0x417e('0xc9'))||_0x5cec47['hasAttribute'](_0x417e('0x7e'))||(_0x2b111b[_0x417e('0xc0')][_0x417e('0x82')](_0x417e('0xc9'),_0x1bda72[_0x417e('0x0')][_0x417e('0x46')](_0x417e('0xc9')),_0x5cec47),_0x2b111b[_0x417e('0xc0')][_0x417e('0x82')]('vid_end',_0x1bda72['viewItem'][_0x417e('0x46')](_0x417e('0xa9')),_0x5cec47));},{'priority':'low'});}),this[_0x417e('0xae')]['conversion'][_0x417e('0xe7')](_0x417e('0x25'))[_0x417e('0x6a')]({'view':{'name':_0x417e('0x53'),'attributes':{'vid':!0x0}},'model':{'key':_0x417e('0x7e'),'value':_0xc8e268=>_0xc8e268[_0x417e('0x46')](_0x417e('0x7e'))}}),this[_0x417e('0xae')]['model'][_0x417e('0xa7')]['on'](_0x417e('0x2b'),(_0x4f938d,[,_0x2e52e1])=>{['vid_start',_0x417e('0xa9'),_0x417e('0x7e')][_0x417e('0x87')](_0x2e52e1)&&(_0x4f938d[_0x417e('0xbb')]=!0x0,_0x4f938d[_0x417e('0xe9')]());},{'priority':_0x417e('0x63')}),this[_0x417e('0xae')]['conversion'][_0x417e('0xe7')]('dataDowncast')['add'](_0x1f8874=>{_0x1f8874['on']('attribute:vid',(_0x42970c,_0x4cb5a7,_0x57a756)=>{if('\x20'!=_0x4cb5a7[_0x417e('0xd5')]['data']||_0x4cb5a7['item']['parent'][_0x417e('0xf7')]>0x1)return;if(!_0x57a756[_0x417e('0x2')][_0x417e('0xc5')](_0x4cb5a7[_0x417e('0xd5')],_0x42970c[_0x417e('0x4f')]))return;const _0x202759=_0x57a756[_0x417e('0xc0')],_0x4839d8=_0x57a756[_0x417e('0xf9')][_0x417e('0xd3')](_0x4cb5a7[_0x417e('0x21')]);_0x202759[_0x417e('0x6e')](_0x4839d8,_0x202759[_0x417e('0x4')](_0x417e('0x53')));});}),this[_0x417e('0xae')][_0x417e('0x7f')]['for']('dataDowncast')['markerToData']({'model':_0x417e('0xe6')}),this['editor'][_0x417e('0x2e')][_0x417e('0x9f')]['on'](_0x417e('0xce'),function(_0x3f533b){const _0x4714b2=_0x3f533b['plugins'][_0x417e('0x24')](_0x417e('0xf2'));return(_0x363efd,_0x270c6b,_0x4d4e0f)=>{const _0x48a56d=_0x270c6b[_0x417e('0x83')][_0x417e('0x75')](':')[0x1],_0x33be4a=_0x4714b2[_0x417e('0x9e')](_0x48a56d);if(!_0x33be4a)return null;const _0x2f7124=_0x417e('0x48')==_0x33be4a[_0x417e('0x5e')]?_0x417e('0x75'):'merge';if(!_0x4d4e0f[_0x417e('0x2')][_0x417e('0xd4')](_0x270c6b[_0x417e('0x16')],_0x363efd[_0x417e('0x4f')]))return;const _0x57f0aa=_0x270c6b[_0x417e('0x16')][_0x417e('0xe2')](),_0x1302ad=_0x270c6b['markerRange']['start'],_0x34a385=_0x3f533b[_0x417e('0x76')]['schema'];let _0x11e159=null,_0x52d3ee=null,_0x599e3c=!0x1,_0x38e7c8=!0x1;for(const _0x4951ba of _0x57f0aa){const _0x5ef510=_0x4951ba[_0x417e('0xd5')];_0x599e3c=_0x599e3c||_0x34a385[_0x417e('0x44')](_0x5ef510);const _0x132f52=_0x4d4e0f[_0x417e('0xf9')][_0x417e('0xcf')](_0x5ef510);if(_0x132f52&&_0x132f52[_0x417e('0xa')]('addHighlight'))return;_0x417e('0xc3')==_0x4951ba[_0x417e('0x5e')]&&(_0x34a385[_0x417e('0x52')](_0x5ef510)&&!_0x34a385[_0x417e('0x4e')](_0x5ef510)&&(_0x5ef510['nextSibling']||_0x1302ad['isAtEnd']?_0x11e159&&_0x11e159['parent']==_0x5ef510||(_0x11e159=_0x5ef510,_0xabd9f1(_0x4951ba[_0x417e('0xb4')]),_0x38e7c8=!0x0):_0x52d3ee=_0x52d3ee||_0x4951ba[_0x417e('0xb4')]));}function _0xabd9f1(_0x1b4451){const _0x3c196b=_0x4d4e0f[_0x417e('0xc0')]['createUIElement']('span',{'class':_0x417e('0x1a')+_0x2f7124}),_0x1f1e3d=_0x4d4e0f[_0x417e('0xf9')][_0x417e('0x58')](_0x1b4451);_0x33be4a[_0x417e('0xf3')][_0x417e('0x74')]&&_0x4d4e0f[_0x417e('0xc0')]['addClass'](_0x417e('0x1a')+_0x2f7124+_0x417e('0xea'),_0x3c196b),_0x4714b2[_0x417e('0xc7')]==_0x33be4a&&_0x4d4e0f[_0x417e('0xc0')][_0x417e('0x49')](_0x417e('0x85'),_0x3c196b),_0x4d4e0f[_0x417e('0xc0')]['insert'](_0x1f1e3d,_0x3c196b),_0x4d4e0f[_0x417e('0xf9')][_0x417e('0x1f')](_0x3c196b,_0x270c6b[_0x417e('0x83')]);}_0x599e3c||_0x38e7c8||!_0x52d3ee||_0xabd9f1(_0x52d3ee);};}(this[_0x417e('0xae')]),{'priority':_0x417e('0xa0')}),this[_0x417e('0xae')][_0x417e('0x2e')]['downcastDispatcher']['on'](_0x417e('0x93'),(_0x6ca32e,_0xec8613,_0x262e22)=>{const _0x19424b=_0x262e22[_0x417e('0xf9')]['markerNameToElements'](_0xec8613[_0x417e('0x83')]);if(_0x19424b)for(const _0xcd23bb of _0x19424b)(_0xcd23bb[_0x417e('0x3c')]('ck-suggestion-marker-split')||_0xcd23bb[_0x417e('0x3c')]('ck-suggestion-marker-merge'))&&(_0x262e22[_0x417e('0xf9')][_0x417e('0x95')](_0xcd23bb,_0xec8613[_0x417e('0x83')]),_0x262e22['writer'][_0x417e('0x1e')](_0xcd23bb));},{'priority':_0x417e('0xa0')}),this['editor'][_0x417e('0x2e')][_0x417e('0x9f')]['on'](_0x417e('0xce'),(_0x51e74a,_0x1d2a13,_0x199a25)=>{const _0x5da68e=_0x1d2a13[_0x417e('0x83')][_0x417e('0x75')](':')[0x1],_0xd83c3a=this[_0x417e('0x9e')](_0x5da68e);if(!_0xd83c3a)return null;const _0x4999d0='add'==_0xd83c3a[_0x417e('0x5e')]?_0x417e('0x75'):'merge';if(_0x199a25['consumable'][_0x417e('0xd4')](_0x1d2a13[_0x417e('0x16')],_0x51e74a[_0x417e('0x4f')]))for(const _0x3fde04 of _0x1d2a13[_0x417e('0x16')][_0x417e('0xaf')]()){if(!_0x3fde04['is']('element',_0x417e('0xa3')))continue;const _0x5e201e=_0x199a25[_0x417e('0xc0')][_0x417e('0xf5')](_0x417e('0x53'),{'class':_0x417e('0x1a')+_0x4999d0}),_0x1b3570=_0x199a25['mapper'][_0x417e('0x58')](this[_0x417e('0xae')]['model'][_0x417e('0x2d')](_0x3fde04));_0xd83c3a['data'][_0x417e('0x74')]&&_0x199a25[_0x417e('0xc0')]['addClass'](_0x417e('0x1a')+_0x4999d0+_0x417e('0xea'),_0x5e201e),this[_0x417e('0xc7')]==_0xd83c3a&&_0x199a25[_0x417e('0xc0')][_0x417e('0x49')]('ck-suggestion-marker--active',_0x5e201e),_0x199a25[_0x417e('0xc0')][_0x417e('0xec')](_0x1b3570,_0x5e201e),_0x199a25[_0x417e('0xf9')]['bindElementToMarker'](_0x5e201e,_0x1d2a13[_0x417e('0x83')]);}},{'priority':_0x417e('0xa0')}),this[_0x417e('0xae')]['conversion'][_0x417e('0xe7')](_0x417e('0x25'))[_0x417e('0x3f')]({'view':_0x417e('0x99')}),this[_0x417e('0xae')]['conversion'][_0x417e('0xe7')]('dataDowncast')[_0x417e('0x10')]({'model':_0x417e('0x99')}),this[_0x417e('0xae')][_0x417e('0x7f')][_0x417e('0xe7')](_0x417e('0x43'))[_0x417e('0x90')]({'model':'suggestion','view':_0x44ba43=>{const _0x1edd92=_0x44ba43[_0x417e('0x83')][_0x417e('0x75')](':')[0x1];return _0x417e('0xbf')!=_0x1edd92&&'deletion'!=_0x1edd92?null:{'classes':['ck-suggestion-preview-marker',_0x417e('0x80')+_0x1edd92]};}}),this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x9f')]['on']('addMarker:suggestion:deletion',q(this[_0x417e('0xae')],_0x417e('0x55')),{'priority':_0x417e('0xa0')}),this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x9f')]['on'](_0x417e('0x3d'),q(this[_0x417e('0xae')],_0x417e('0x75')),{'priority':_0x417e('0xa0')}),this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x9f')]['on']('removeMarker:suggestion',(_0x1bf960,_0x7ab99c,_0x1200fc)=>{const _0x3abc3b=_0x1200fc[_0x417e('0xf9')][_0x417e('0x3b')](_0x7ab99c['markerName']);if(_0x3abc3b)for(const _0xd54e11 of _0x3abc3b)_0xd54e11['is'](_0x417e('0x72'))&&(_0x1200fc[_0x417e('0xf9')][_0x417e('0x95')](_0xd54e11,_0x7ab99c[_0x417e('0x83')]),_0x1200fc['writer'][_0x417e('0x1e')](_0xd54e11));},{'priority':_0x417e('0xa0')});}[_0x417e('0x9e')](_0x4b8778){return this[_0x417e('0x68')]['get'](_0x4b8778);}['_getViewForChange'](_0x4849aa){this[_0x417e('0xa2')]&&this[_0x417e('0xa2')][_0x417e('0x73')](),this[_0x417e('0xa2')]=new _0x4d7cf3(this[_0x417e('0xae')][_0x417e('0xc')],_0x4849aa);const _0x226a70=this[_0x417e('0xae')]['model'][_0x417e('0xad')][_0x417e('0x24')]('revision:'+_0x4849aa['id']);return this[_0x417e('0xa2')][_0x417e('0x8')]=()=>_0x105830(this[_0x417e('0xae')][_0x417e('0x2e')],_0x226a70),this[_0x417e('0xa2')];}[_0x417e('0x11')](){this['editor'][_0x417e('0x76')]['document'][_0x417e('0x34')][_0x417e('0xfb')]('revision'),this['on']('change:activeView',(_0x228099,_0x32183a,_0x26b2e2,_0x4085e6)=>{_0x4085e6&&this[_0x417e('0x5d')][_0x417e('0x1e')](_0x4085e6),_0x26b2e2&&(this[_0x417e('0x5d')]['add']({'view':_0x26b2e2,'stackId':_0x417e('0x18'),'position':{'target':_0x26b2e2[_0x417e('0x8')]}}),this[_0x417e('0x5d')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x417e('0xb1'),(_0xb49b19,_0x4e51d1,_0x445575,_0xbdecb9)=>{this[_0x417e('0x33')]=_0x445575?this[_0x417e('0x9c')](_0x445575):null,this[_0x417e('0xae')]['model'][_0x417e('0x5b')](()=>{const _0x909990=this[_0x417e('0xae')]['editing'];_0xbdecb9&&_0x909990['reconvertMarker']('revision:'+_0xbdecb9['id']),_0x445575&&_0x909990[_0x417e('0xbd')](_0x417e('0xa5')+_0x445575['id']);});}),this[_0x417e('0x32')](this['editor'][_0x417e('0x2e')][_0x417e('0x78')]['document'],_0x417e('0x47'),(_0x261ace,_0x12b4e5)=>{if(this['activeChange'])return;const _0x17dec3=this[_0x417e('0x41')](_0x12b4e5['target']),_0x17ed13=this['_changeIdToChange'][_0x417e('0x24')](_0x17dec3);this[_0x417e('0x33')]=_0x17ed13?this['_getViewForChange'](_0x17ed13):null;}),this[_0x417e('0x32')](this[_0x417e('0xae')]['editing'][_0x417e('0x78')]['document'],'mousedown',(_0x3a0bb9,_0x11f7b4)=>{const _0x296bce=this[_0x417e('0x41')](_0x11f7b4[_0x417e('0x1c')]),_0x31c836=this['_changeIdToChange'][_0x417e('0x24')](_0x296bce);this[_0x417e('0xc7')]=_0x31c836||null;});}[_0x417e('0x41')](_0x9028df){do{const _0x7b5c74=_0x9028df[_0x417e('0x46')](_0x417e('0xeb'));if(_0x7b5c74)return _0x7b5c74;_0x9028df=_0x9028df[_0x417e('0xe8')];}while(_0x9028df);return null;}[_0x417e('0x60')](){this['editor'][_0x417e('0x76')][_0x417e('0x5b')](_0x303998=>{for(const _0x377648 of this[_0x417e('0xae')][_0x417e('0x76')]['markers'])_0x303998['removeMarker'](_0x377648);});}}function q(_0x5f4b9c,_0x5caf0f){return(_0x51ddd3,_0x2eebb2,_0xfed8aa)=>{if(!_0xfed8aa[_0x417e('0x2')][_0x417e('0xd4')](_0x2eebb2[_0x417e('0x16')],_0x51ddd3[_0x417e('0x4f')]))return;const _0x5bf363=_0x2eebb2[_0x417e('0x16')][_0x417e('0xe2')](),_0x176e95=_0x2eebb2['markerRange'][_0x417e('0x65')],_0x4ed563=_0x5f4b9c[_0x417e('0x76')][_0x417e('0xa7')];let _0x32e77a=null,_0x5313f6=null,_0x585374=!0x1,_0x294feb=!0x1;for(const _0x1a7c9f of _0x5bf363){const _0x400416=_0x1a7c9f[_0x417e('0xd5')];_0x585374=_0x585374||_0x4ed563['isContent'](_0x400416);const _0x15d8a8=_0xfed8aa[_0x417e('0xf9')][_0x417e('0xcf')](_0x400416);if(_0x15d8a8&&_0x15d8a8[_0x417e('0xa')](_0x417e('0x57')))return;_0x417e('0xc3')==_0x1a7c9f[_0x417e('0x5e')]&&(_0x4ed563[_0x417e('0x52')](_0x400416)&&!_0x4ed563[_0x417e('0x4e')](_0x400416)&&(_0x400416[_0x417e('0xb6')]||_0x176e95[_0x417e('0xcb')]?_0x32e77a&&_0x32e77a[_0x417e('0xe8')]==_0x400416||(_0x32e77a=_0x400416,_0x1c5d9a(_0x1a7c9f[_0x417e('0xb4')]),_0x294feb=!0x0):_0x5313f6=_0x5313f6||_0x1a7c9f[_0x417e('0xb4')]));}function _0x1c5d9a(_0x58704f){const _0x5a4d87=_0xfed8aa[_0x417e('0xf9')]['toViewPosition'](_0x58704f),_0x46cf3d=_0xfed8aa[_0x417e('0xc0')][_0x417e('0xf5')](_0x417e('0x53'),{'class':'ck-suggestion-preview-marker-'+_0x5caf0f});_0xfed8aa['writer']['insert'](_0x5a4d87,_0x46cf3d),_0xfed8aa[_0x417e('0xf9')][_0x417e('0x1f')](_0x46cf3d,_0x2eebb2[_0x417e('0x83')]);}_0x585374||_0x294feb||!_0x5313f6||_0x1c5d9a(_0x5313f6);};}_0x305c76(R,_0xadd479);class z extends _0x1f4fbf{constructor(_0x526f0d){super(_0x526f0d);const _0x968890=_0x526f0d[_0x417e('0x6b')][_0x417e('0x24')](R);this[_0x417e('0xbe')](_0x526f0d,_0x417e('0x101')),this['clearForceDisabled'](_0x417e('0x7c')),this[_0x417e('0x32')](_0x968890,'change:isReady',()=>this[_0x417e('0x86')]()),this[_0x417e('0x32')](_0x968890,_0x417e('0x40'),()=>this[_0x417e('0x86')]());}[_0x417e('0xac')](){const _0x53e098=this[_0x417e('0xae')],_0x412b79=_0x53e098[_0x417e('0x6b')][_0x417e('0x24')](R),_0x5a608a=_0x412b79['isReady']?_0x412b79[_0x417e('0x54')]['newRevisionId']:null;_0x53e098[_0x417e('0x45')][_0x417e('0x24')](_0x417e('0x3'))['restoreRevisionCallback'](_0x5a608a);}[_0x417e('0x86')](){const {isReady:_0x9c215e,isEnabled:_0x26d878}=this[_0x417e('0xae')]['plugins'][_0x417e('0x24')](R);this[_0x417e('0x26')]=_0x9c215e&&_0x26d878;}}class B extends _0x1f4fbf{constructor(_0x548ee9,{direction:_0x29814c}){super(_0x548ee9);const _0x34bf21=_0x548ee9[_0x417e('0x6b')][_0x417e('0x24')](R);this[_0x417e('0xbe')](_0x548ee9,_0x417e('0x101')),this['clearForceDisabled']('readOnlyMode'),this[_0x417e('0x69')]=_0x417e('0x8b')===_0x29814c?0x1:-0x1,this[_0x417e('0x32')](_0x34bf21,_0x417e('0x5'),()=>this[_0x417e('0x86')]()),this[_0x417e('0x32')](_0x34bf21,_0x417e('0x40'),()=>this[_0x417e('0x86')]());}['execute'](){const _0x33f92d=this[_0x417e('0xae')],_0x37e33c=_0x33f92d['plugins']['get'](R),{isNavigationMode:_0xed229a,currentChangeNumber:_0x4e9baf}=_0x37e33c;_0x37e33c[_0x417e('0xc7')]=_0xed229a?_0x37e33c[_0x417e('0x54')][_0x417e('0x7')]['get'](_0x4e9baf+this['_step']):_0x37e33c[_0x417e('0x54')][_0x417e('0x7')]['first'];const _0x560104=_0x33f92d['model'][_0x417e('0xad')][_0x417e('0x24')](_0x417e('0xa5')+_0x37e33c[_0x417e('0xc7')]['id']),_0x3e7fbe=_0x105830(_0x33f92d['editing'],_0x560104);_0x108b69({'target':_0x3e7fbe,'viewportOffset':0x28});}[_0x417e('0x86')](){const {isNavigationMode:_0x197d39,currentChangeNumber:_0x210a42,numberOfChanges:_0x1e7746,isReady:_0x29879e,isEnabled:_0x59bf6f}=this[_0x417e('0xae')][_0x417e('0x6b')]['get'](R);this[_0x417e('0x26')]=!!(_0x59bf6f&&_0x29879e&&_0x1e7746)&&(!_0x197d39||(0x1===this[_0x417e('0x69')]?_0x210a42<_0x1e7746-0x1:_0x210a42>0x0));}}
23
+ const _0x4270=['ck-suggestion-preview-marker-','_markInsertions','elementToAttribute','_fixObsoleteTags','selection','markerNameToElements','markerToHighlight','_step','merge','newRevisionId','ck-suggestion-marker-split','editing','abs','_update','change:numberOfChanges','clearForceDisabled','downcastDispatcher','writer','getItems','forEach','end','sort','_getViewForChange','conversion','roots','useFillerType','data','bind','shift','from','_setData','_balloon','ck-editor__editable__overlay','low','htmlProcessor','ck-suggestion-marker-','nodeAfter','_cleanMarkers','checkAttribute','addMarker:suggestion:deletion','name','map','change:isEnabled','getRevision','setAttribute','filter','return','clear','isIncorrect','attribute:vid','split','isContent','removeMarker:revision','isCollapsed','error','endIndex','previousPosition','data-revision-','createRange','hasClass','values','markers','unshift','revision:','addRevision','object','isAtStart','vid','_processTape','collaboration.channelId','diffData','createAttributeElement','item','restoreRevision','getCustomProperty','_removeMissingPairs','length','toViewRange','upcast','highest','plugins','distance','backward','dataDowncast','vid_start','showNextChange','isAdded','_threeWayMerge','isLimit','loadRevisionData','push','revision-start','type','isRemoved','deletion','parse','editingDowncast','changes','schema','target','_removeUnsupportedChanges','range','mouseover','data-change-id','offsetSize','listenTo','_makeTape','attributes','unbindElementFromMarkerName','_removeRevisionMarkers','stop','_changeIdToChange','restoreRevisionCallback','elementStart','_makeModelFromViewString','isAfter','bindElementToMarker','pluginName','_markMarkers','isReady','document','isAtEnd','isAddSuggestion','revision-end','insertion','get','getRootNames','startIndex','_markMismatchedRemovedTags','addRevisionData','pairId','_joinTapes','consumable','_getViewObj','_changeView','resolve','children','getWalker','change:isReady','<p></p>','getRevisionData','forward','findIndex','_setConversion','add','currentChangeNumber','_refreshStartEndIndex','revisionHistory','delete','nextPosition','revision','_cleanUp','_findChangeIdFromDomTarget','_makeModelFromTape','element:pre','insertions','getIndex','config','done','getAttribute','string','addClass','toData','text','change:activeView','level','modelRange','requires','isBlock','change','removeMarker:suggestion','for','pop','_initInteractions','POSITIVE_INFINITY','diff','keys','consume','createRangeIn','hasAttribute','elementEnd','createUIElement','addHighlight','revisionHistoryLabel','high','startsWith','_markSuggestions','nextSibling','init','_getChangeFromId','index','revision-viewer','activeView','createPositionBefore','start','ck-suggestion-marker--active','addMarker:suggestion:insertion','stopListening','-new','repository','splice','_appendChild','then','side','marked','compare','destroy','removeMarker','activeChange','deletions','createPositionFromPath','_getRevisionsRange','adapter','remove','showStack','editor','span','mapper','_setDistance','isRemoveSuggestion','vid_end','viewItem','set','ck-suggestion-marker','enqueueChange','removeClass','markerName','_getDiff','isEqual','code','change:isReadOnly','authors','test','concat','view','_data','enableReadOnlyMode','markersStart','dataToMarker','isInline','element','markerRange','toViewElement','oldRevisionId','isNavigationMode','insert','isEnabled','mousedown','_target','observeMarkers','addMarker:revision','userId','suggestion','toModel','next','RevisionViewer','markersEnd','getChild','has','model','isSuggestion','ck-suggestion-marker-merge','refresh','parent','markerToData','slice','getAttributes','_revisions','commands','toViewPosition'];(function(_0x448128,_0x4270e1){const _0x143fff=function(_0x36cb2c){while(--_0x36cb2c){_0x448128['push'](_0x448128['shift']());}};_0x143fff(++_0x4270e1);}(_0x4270,0x184));const _0x143f=function(_0x448128,_0x4270e1){_0x448128=_0x448128-0x0;let _0x143fff=_0x4270[_0x448128];return _0x143fff;};import{Plugin as _0x24c73f,Command as _0x57e198}from'ckeditor5/src/core';import{ObservableMixin as _0x1aefaa,mix as _0x3dc86b,scrollViewportToShowTarget as _0xf073a9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x362e05}from'ckeditor5/src/ui';import{DocumentFragment as _0x4ed0d2,Element as _0x321fa5,Text as _0x53c349,ViewDocumentFragment as _0x19ab2d,ViewText as _0x1a9f01,ViewElement as _0x1630a,ViewContainerElement as _0x323b08,ViewAttributeElement as _0xfb792b,ViewEmptyElement as _0x53d9ea,ViewRawElement as _0xbf0f4f,ViewUIElement as _0x212ac3}from'ckeditor5/src/engine';import{Users as _0x655d5a,getMarkerDomElement as _0x131b2e}from'ckeditor5-collaboration/src/collaboration-core';import _0x220785 from'./ui/revisionviewer/changedetailsview';import _0x130cbc from'./revisionsrepository';import _0x1d3e57 from'./changeitem';import _0x41b7eb from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x323b08,'a':_0xfb792b,'e':_0x53d9ea,'r':_0xbf0f4f,'u':_0x212ac3};export default class R extends _0x24c73f{static get[_0x143f('0x10d')](){return _0x143f('0x89');}static get[_0x143f('0x31')](){return[_0x655d5a,_0x362e05,_0x130cbc];}constructor(..._0x3f0c16){super(..._0x3f0c16),this['repository']=this['editor'][_0x143f('0xe8')][_0x143f('0x7')]('RevisionsRepository'),this['set'](_0x143f('0x5a'),null),this['set'](_0x143f('0x4a'),null),this[_0x143f('0x68')]('diff',null),this['set'](_0x143f('0x1'),!0x1),this[_0x143f('0x68')](_0x143f('0x80'),!0x0),this['on']('change:isEnabled',(_0x18ce37,_0x55fcdf,_0x1351e8)=>{this[_0x143f('0x5a')]=null,this[_0x143f('0x4a')]=null,this[_0x143f('0x61')]['editing'][_0x143f('0x74')][_0x143f('0x33')](_0x2ab081=>{for(const _0x4aea73 of this[_0x143f('0x61')][_0x143f('0xa3')]['view']['document'][_0x143f('0xb0')])_0x1351e8?_0x2ab081[_0x143f('0x6b')](_0x143f('0xb8'),_0x4aea73):_0x2ab081[_0x143f('0x2b')](_0x143f('0xb8'),_0x4aea73);});}),this[_0x143f('0xb3')](_0x143f('0x7e'))['to'](this,_0x143f('0x5a'),_0x53b9e6=>null!==_0x53b9e6),this[_0x143f('0xb3')](_0x143f('0x1b'))['to'](this,'isReady',this,_0x143f('0x39'),this,_0x143f('0x5a'),(_0x55fad0,_0x2dfe17,_0x992e4)=>_0x55fad0&&_0x992e4?_0x2dfe17[_0x143f('0xf9')][_0x143f('0x26')](_0x992e4):0x0),this['bind']('numberOfChanges')['to'](this,_0x143f('0x1'),this,'diff',(_0x466966,_0x456473)=>_0x466966?_0x456473[_0x143f('0xf9')][_0x143f('0xe4')]:0x0),this[_0x143f('0x10')]=null,this[_0x143f('0x107')]=new Map(),this[_0x143f('0x5e')]=null,this[_0x143f('0xb7')]=this['editor'][_0x143f('0xe8')][_0x143f('0x7')](_0x362e05);}[_0x143f('0x46')](){const _0x4830ee=this[_0x143f('0x61')];_0x4830ee[_0x143f('0xb2')][_0x143f('0xba')][_0x143f('0xb1')](_0x143f('0x56'));const _0x26e593=new et(_0x4830ee,{'direction':_0x143f('0xea')}),_0x41968c=new et(_0x4830ee,{'direction':_0x143f('0x17')});_0x4830ee['commands'][_0x143f('0x1a')]('showPreviousChange',_0x26e593),_0x4830ee['commands'][_0x143f('0x1a')](_0x143f('0xed'),_0x41968c),_0x4830ee[_0x143f('0x96')]['add'](_0x143f('0xe1'),new tt(_0x4830ee)),this['on'](_0x143f('0xa6'),()=>{_0x26e593[_0x143f('0x90')](),_0x41968c['refresh']();}),this[_0x143f('0x19')](),this[_0x143f('0x37')](),_0x4830ee[_0x143f('0x76')](_0x143f('0x49'));}async[_0x143f('0x16')](_0x368daa){await this['loadRevisionData'](_0x368daa);const _0x29dfee={};for(const _0xd03a0a in _0x368daa[_0x143f('0xde')]){const _0x5dc447=this['_removeRevisionMarkers'](JSON[_0x143f('0xf7')](_0x368daa[_0x143f('0xde')][_0xd03a0a][_0x143f('0x25')])),_0x1446a6=this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0x74')][_0x143f('0x2')],_0x36ab18=new _0x19ab2d(_0x1446a6,_0x5dc447['map'](_0x5aa81f=>this[_0x143f('0xf')](_0x5aa81f)));_0x29dfee[_0xd03a0a]=this[_0x143f('0x61')][_0x143f('0xb2')]['processor'][_0x143f('0x2c')](_0x36ab18);}return _0x29dfee;}[_0x143f('0x105')](_0x3f9e13){return(_0x3f9e13=_0x3f9e13[_0x143f('0xc5')](_0x150974=>!_0x150974[_0x143f('0xc0')]||_0x143f('0xf3')!==_0x150974[_0x143f('0xc0')]&&_0x143f('0x5')!==_0x150974[_0x143f('0xc0')]))[_0x143f('0xab')](_0x42cdeb=>{_0x143f('0x2a')!=typeof _0x42cdeb&&(_0x42cdeb['children']=this['_removeRevisionMarkers'](_0x42cdeb[_0x143f('0x12')]),_0x42cdeb[_0x143f('0x103')]=_0x42cdeb['attributes'][_0x143f('0xc5')](_0x2bbdb1=>!_0x2bbdb1[0x0][_0x143f('0x43')](_0x143f('0xd1'))));}),_0x3f9e13;}[_0x143f('0x57')](_0x5549fe,_0x217ee6,_0x106e38=!0x1){if(!this[_0x143f('0x80')])return;const _0x1cb974=this['diff'],_0x23cec5=this['repository'],_0x25fad9=_0x143f('0x2a')==typeof _0x5549fe?_0x23cec5['getRevision'](_0x5549fe):_0x5549fe,_0x284f78='string'==typeof _0x217ee6?_0x23cec5[_0x143f('0xc3')](_0x217ee6):_0x217ee6,_0xefeb33=_0x25fad9['id'],_0x397ff2=_0x284f78?_0x284f78['id']:null;if(!_0x106e38&&this[_0x143f('0x39')]&&this[_0x143f('0x39')][_0x143f('0xa1')]===_0xefeb33&&this[_0x143f('0x39')][_0x143f('0x7d')]===_0x397ff2)return Promise[_0x143f('0x11')]();this[_0x143f('0x1')]=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new _0x41b7eb(_0xefeb33,_0x397ff2);const _0x4a1bb8=this[_0x143f('0x5d')](_0x25fad9,_0x284f78,!0x0)[_0x143f('0xc1')](_0x1793a0=>this[_0x143f('0xf1')](_0x1793a0));return _0x4a1bb8[_0x143f('0xf2')](new Promise(_0x47e0c0=>{setTimeout(_0x47e0c0,0x14);})),Promise['all'](_0x4a1bb8)[_0x143f('0x54')](()=>{if(!this['isEnabled'])return;this[_0x143f('0x21')]();const _0x51b85d=this[_0x143f('0x6d')](_0xefeb33,_0x397ff2);this[_0x143f('0x39')][_0x143f('0xb6')](_0x51b85d);for(const _0x12051b of this[_0x143f('0x39')][_0x143f('0xf9')])this[_0x143f('0x107')]['set'](_0x12051b['id'],_0x12051b);this[_0x143f('0x61')]['model'][_0x143f('0x6a')]({'isUndoable':!0x1},_0xec6aba=>{for(const _0x2c5ea9 of Object['keys'](_0x51b85d[_0x143f('0x8d')])){const _0xaa2320=this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0x2')]['getRoot'](_0x2c5ea9);_0xec6aba[_0x143f('0x5f')](_0xec6aba[_0x143f('0x3c')](_0xaa2320)),_0xec6aba[_0x143f('0x7f')](_0x51b85d[_0x143f('0x8d')][_0x2c5ea9],_0xaa2320,0x0);}}),this[_0x143f('0x1')]=!0x0;})['catch'](_0x3cd3bc=>{console[_0x143f('0xce')](_0x3cd3bc),this['_cleanUp'](),_0x1cb974?this['diff']=_0x1cb974:this['editor']['setData'](_0x143f('0x15')),this['isReady']=!0x0;});}[_0x143f('0x58')](){this[_0x143f('0x4a')]=null,this[_0x143f('0x10')]&&this[_0x143f('0x10')][_0x143f('0x58')]();}[_0x143f('0xb')](_0x58dcca,_0x58cab8){const _0x482ba4=this[_0x143f('0x51')]['createRevision'](_0x58dcca);return _0x482ba4['on']('_update',(_0x107ea0,_0x22d652,_0x4ef28a)=>_0x58cab8(_0x22d652,_0x4ef28a,_0x482ba4)),this['repository'][_0x143f('0xd8')](_0x482ba4),_0x482ba4;}[_0x143f('0xf1')](_0x5d9ed9){if(!_0x5d9ed9||_0x5d9ed9[_0x143f('0xde')])return Promise[_0x143f('0x11')]();{const _0x247f68=this[_0x143f('0x61')][_0x143f('0x27')][_0x143f('0x7')](_0x143f('0xdd'));return this['adapter'][_0x143f('0xc3')]({'channelId':_0x247f68,'revisionId':_0x5d9ed9['id']})[_0x143f('0x54')](_0x55d7b5=>{_0x5d9ed9[_0x143f('0xa5')]({'diffData':_0x55d7b5[_0x143f('0xde')]},!0x0);});}}['_cleanUp'](){this[_0x143f('0x5a')]=null,this[_0x143f('0xbd')](),this[_0x143f('0x10')]&&this[_0x143f('0x10')][_0x143f('0x58')](),this['_changeView']=null,this[_0x143f('0x107')][_0x143f('0xc7')]();}[_0x143f('0x102')](_0x363bc4){const _0x4c31e8=Array['from'](_0x363bc4['markers'])[_0x143f('0xc5')](([_0x8cc438,_0x6b313d])=>_0x8cc438[_0x143f('0x43')](_0x143f('0xd7'))&&!_0x6b313d['isCollapsed']),_0x1f6aaa=Array[_0x143f('0xb5')](this[_0x143f('0x61')][_0x143f('0x8d')]['createRangeIn'](_0x363bc4)[_0x143f('0x13')]({'singleCharacters':!0x0}));if(0x0!=_0x4c31e8[_0x143f('0xe4')])for(const _0x36b2fd of _0x1f6aaa){const [_0x11aa9e,_0x55c89e]=_0x4c31e8[0x0],[,_0x4a4535,_0x31d587]=_0x11aa9e[_0x143f('0xca')](':');if(_0x55c89e[_0x143f('0xac')]['isEqual'](_0x36b2fd['nextPosition'])&&_0x4c31e8[_0x143f('0xb4')](),(_0x36b2fd[_0x143f('0xd0')][_0x143f('0x6e')](_0x55c89e[_0x143f('0x4c')])||_0x36b2fd[_0x143f('0xd0')][_0x143f('0x10b')](_0x55c89e['start']))&&(_0x143f('0x6')==_0x4a4535?_0x36b2fd[_0x143f('0xee')]={'userId':_0x31d587}:_0x143f('0xf6')==_0x4a4535&&(_0x36b2fd[_0x143f('0xf5')]={'userId':_0x31d587})),0x0==_0x4c31e8[_0x143f('0xe4')])break;}return _0x1f6aaa;}[_0x143f('0x1c')](_0x4c0d75){const _0x2066a5=new Map();for(let _0x345bf3=0x0;_0x345bf3<_0x4c0d75[_0x143f('0xe4')];_0x345bf3++)_0x143f('0x2d')===_0x4c0d75[_0x345bf3]['type']?(_0x4c0d75[_0x345bf3][_0x143f('0xe0')][_0x143f('0x9')]=_0x345bf3,_0x4c0d75[_0x345bf3][_0x143f('0xe0')][_0x143f('0xcf')]=_0x345bf3):(_0x143f('0x109')===_0x4c0d75[_0x345bf3]['type']?_0x4c0d75[_0x345bf3][_0x143f('0xe0')][_0x143f('0x9')]=_0x345bf3:'elementEnd'===_0x4c0d75[_0x345bf3][_0x143f('0xf4')]&&(_0x4c0d75[_0x345bf3][_0x143f('0xe0')]['endIndex']=_0x345bf3),_0x2066a5[_0x143f('0x68')](_0x4c0d75[_0x345bf3]['id'],_0x345bf3));for(const _0x81a481 of _0x2066a5[_0x143f('0xd4')]())_0x143f('0x109')===_0x4c0d75[_0x81a481][_0x143f('0xf4')]?_0x4c0d75[_0x81a481][_0x143f('0xe0')][_0x143f('0xcf')]=_0x2066a5[_0x143f('0x7')](_0x4c0d75[_0x81a481][_0x143f('0xc')]):'elementEnd'===_0x4c0d75[_0x81a481][_0x143f('0xf4')]&&(_0x4c0d75[_0x81a481][_0x143f('0xe0')][_0x143f('0x9')]=_0x2066a5[_0x143f('0x7')](_0x4c0d75[_0x81a481][_0x143f('0xc')]));}[_0x143f('0xdc')](_0x34c32d){for(let _0x4ec7a1=0x0;_0x4ec7a1<_0x34c32d[_0x143f('0xe4')];_0x4ec7a1++){if(_0x143f('0x109')===_0x34c32d[_0x4ec7a1][_0x143f('0xf4')])_0x34c32d[_0x4ec7a1]['item'][_0x143f('0x9')]=_0x4ec7a1;else{if(_0x143f('0x3e')===_0x34c32d[_0x4ec7a1][_0x143f('0xf4')]){_0x34c32d[_0x4ec7a1][_0x143f('0xe0')]['endIndex']=_0x4ec7a1;const _0x17b288=_0x34c32d[_0x4ec7a1][_0x143f('0xe0')][_0x143f('0x9')];_0x34c32d[_0x17b288][_0x143f('0xc')]=_0x34c32d[_0x4ec7a1]['id'],_0x34c32d[_0x4ec7a1][_0x143f('0xc')]=_0x34c32d[_0x17b288]['id'];}else _0x34c32d[_0x4ec7a1][_0x143f('0xe0')]['startIndex']=_0x4ec7a1,_0x34c32d[_0x4ec7a1][_0x143f('0xe0')][_0x143f('0xcf')]=_0x4ec7a1,_0x34c32d[_0x4ec7a1][_0x143f('0xc')]=null;}_0x34c32d[_0x4ec7a1][_0x143f('0x77')]||(_0x34c32d[_0x4ec7a1][_0x143f('0x77')]=[],_0x34c32d[_0x4ec7a1][_0x143f('0x8a')]=[]);}}[_0x143f('0x99')](_0x1432f5,_0x2eb6e9){const _0x353486=_0x1432f5[_0x143f('0xc5')](_0x409aff=>!_0x409aff[_0x143f('0xee')]);for(let _0x2c10e0=0x0;_0x2c10e0<_0x2eb6e9[_0x143f('0xe4')];_0x2c10e0++)_0x2eb6e9[_0x2c10e0]['isAdded']&&(_0x353486[_0x2c10e0][_0x143f('0xee')]=_0x2eb6e9[_0x2c10e0]['isAdded']);}['_makeModelFromViewString'](_0x264b5d){const _0x160da3=JSON[_0x143f('0xf7')](_0x264b5d),_0x2f81f7=this[_0x143f('0x61')][_0x143f('0xa3')]['view'][_0x143f('0x2')],_0x3b1576=new _0x19ab2d(_0x2f81f7,_0x160da3[_0x143f('0xc1')](_0x413130=>this[_0x143f('0xf')](_0x413130)));return this[_0x143f('0x61')][_0x143f('0xb2')][_0x143f('0x87')](_0x3b1576);}[_0x143f('0xf')](_0x6d2f58){const _0x42ffcc=this['editor'][_0x143f('0xa3')][_0x143f('0x74')][_0x143f('0x2')];if(_0x143f('0x2a')==typeof _0x6d2f58)return new _0x1a9f01(_0x42ffcc,_0x6d2f58);{const _0x36e576=_0x6d2f58['children'][_0x143f('0xc1')](_0x424de7=>this[_0x143f('0xf')](_0x424de7));return new(Y[_0x6d2f58['type']]||_0x1630a)(_0x42ffcc,_0x6d2f58['name'],_0x6d2f58['attributes'],_0x36e576);}}[_0x143f('0x6d')](_0x2dbbd4,_0x3eaee4=null){const _0x59c88f=this['repository']['getRevision'](_0x2dbbd4),_0x330b7c=_0x3eaee4?this[_0x143f('0x51')]['getRevision'](_0x3eaee4):null,_0x2cd5db=this[_0x143f('0x5d')](_0x59c88f,_0x330b7c),_0x2b4e0f=_0x2cd5db[_0x2cd5db[_0x143f('0xe4')]-0x1],_0x4b4a85=new Map();for(const _0x541db4 of _0x2cd5db){_0x541db4[_0x143f('0x8d')]={};for(const _0x15defe of _0x541db4[_0x143f('0x71')])_0x4b4a85[_0x143f('0x68')](_0x15defe['id'],_0x15defe);for(const _0xdbc208 of this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0x2')][_0x143f('0x8')]())_0x541db4[_0x143f('0xde')][_0xdbc208]||(_0x541db4[_0x143f('0xde')][_0xdbc208]={'insertions':'[]','deletions':'[]'}),_0x541db4[_0x143f('0x8d')][_0xdbc208]={'insertions':this[_0x143f('0x10a')](_0x541db4[_0x143f('0xde')][_0xdbc208][_0x143f('0x25')]),'deletions':this[_0x143f('0x10a')](_0x541db4['diffData'][_0xdbc208][_0x143f('0x5b')])};}const _0x37847c={'model':{},'changes':[]};for(const _0x38fc7a of this[_0x143f('0x61')]['model'][_0x143f('0x2')][_0x143f('0x8')]()){let _0x2a0c62=null,_0x47aa93=0x0;const _0x72a47d=new Map(Array[_0x143f('0xb5')](_0x59c88f[_0x143f('0x8d')][_0x38fc7a][_0x143f('0x25')][_0x143f('0xd5')])[_0x143f('0xc5')](([_0x3e500f])=>!_0x3e500f[_0x143f('0x43')](_0x143f('0xd7'))));let _0x42165f=0x0;for(const _0x4449a2 of _0x2cd5db){const _0x5b383e=this[_0x143f('0x102')](_0x4449a2[_0x143f('0x8d')][_0x38fc7a][_0x143f('0x25')]);_0x4449a2==_0x59c88f?(_0x2a0c62=_0x5b383e,_0x47aa93=_0x2a0c62[_0x143f('0xe4')],_0x2a0c62[_0x143f('0xab')](_0x571b67=>{_0x571b67['id']=_0x42165f++;}),this[_0x143f('0xdc')](_0x2a0c62)):this['_markInsertions'](_0x2a0c62,_0x5b383e);const _0x2f14e6=_0x2a0c62[_0x143f('0xc5')](_0x3d7fb5=>!_0x3d7fb5[_0x143f('0xee')])['map'](_0x572e77=>_0x572e77['id']);let _0x2c9297=0x0;const _0x2c7047=this[_0x143f('0x102')](_0x4449a2['model'][_0x38fc7a][_0x143f('0x5b')]);_0x2c7047[_0x143f('0xab')](_0x9277d7=>{_0x9277d7['isRemoved']?_0x9277d7['id']=_0x47aa93++:_0x9277d7['id']=_0x2f14e6[_0x2c9297++];}),this[_0x143f('0xdc')](_0x2c7047),this['_setDistance'](_0x2a0c62,_0x143f('0xee')),this['_setDistance'](_0x2c7047,'isRemoved'),_0x4449a2==_0x59c88f&&this[_0x143f('0x0')](_0x2a0c62,_0x72a47d),_0x2a0c62=this[_0x143f('0xd')](_0x2a0c62,_0x2c7047),this[_0x143f('0x1c')](_0x2a0c62),this[_0x143f('0x64')](_0x2a0c62,_0x143f('0xf5'));}_0x2a0c62=_0x2a0c62[_0x143f('0xc5')](_0x4d3a47=>!(_0x4d3a47[_0x143f('0xee')]&&_0x4d3a47[_0x143f('0xf5')]));const _0x3ded57=new Map(_0x2b4e0f[_0x143f('0x8d')][_0x38fc7a][_0x143f('0x5b')][_0x143f('0xd5')]),_0x252800=new Set(_0x72a47d[_0x143f('0x3a')]());for(const _0x10929a of _0x3ded57['keys']())_0x252800[_0x143f('0x1e')](_0x10929a);this[_0x143f('0x44')](_0x2a0c62,_0x252800),this[_0x143f('0x9b')](_0x2a0c62),_0x2a0c62=this[_0x143f('0xe3')](_0x2a0c62),_0x2a0c62=this[_0x143f('0xa')](_0x2a0c62),_0x2a0c62=this[_0x143f('0xfc')](_0x2a0c62);const {root:_0x4aac77,changes:_0x1fe66a}=this[_0x143f('0x23')](_0x2a0c62,_0x4b4a85);_0x37847c['model'][_0x38fc7a]=_0x4aac77,_0x37847c[_0x143f('0xf9')]=_0x37847c['changes']['concat'](_0x1fe66a);}return _0x37847c;}[_0x143f('0x0')](_0x5c5b5f,_0x559d36){for(let _0x112f51=0x0;_0x112f51<_0x5c5b5f[_0x143f('0xe4')];_0x112f51++)for(const [_0x513674,_0x280cf0]of _0x559d36)_0x280cf0[_0x143f('0x4c')][_0x143f('0x6e')](_0x5c5b5f[_0x112f51][_0x143f('0xd0')])&&_0x5c5b5f[_0x112f51][_0x143f('0x77')][_0x143f('0xf2')](_0x513674),_0x280cf0['end'][_0x143f('0x6e')](_0x5c5b5f[_0x112f51][_0x143f('0x1f')])&&_0x5c5b5f[_0x112f51][_0x143f('0x8a')][_0x143f('0xf2')](_0x513674);}['_joinTapes'](_0x129520,_0xd439cb){let _0x564ee7=[],_0x2d3aaa=0x0,_0x20ed3d=0x0;for(;_0x2d3aaa<_0x129520[_0x143f('0xe4')]||_0x20ed3d<_0xd439cb[_0x143f('0xe4')];){const _0x3b91cd=_0x129520[_0x2d3aaa]||{},_0x11e503=_0xd439cb[_0x20ed3d]||{};if(_0x3b91cd['id']==_0x11e503['id'])_0x2d3aaa++,_0x20ed3d++,_0x564ee7[_0x143f('0xf2')](_0x3b91cd);else{if(_0x11e503['isRemoved']&&_0x3b91cd[_0x143f('0xee')]){const {commonTape:_0x7cf85d,iEnd:_0x277461,jEnd:_0x284b54}=this[_0x143f('0xef')](_0x129520,_0x2d3aaa,_0xd439cb,_0x20ed3d);_0x564ee7=_0x564ee7[_0x143f('0x73')](_0x7cf85d),_0x2d3aaa=_0x277461,_0x20ed3d=_0x284b54;}else _0x11e503[_0x143f('0xf5')]?(_0x20ed3d++,_0x564ee7[_0x143f('0xf2')](_0x11e503)):(_0x2d3aaa++,_0x564ee7[_0x143f('0xf2')](_0x3b91cd));}}return _0x564ee7;}[_0x143f('0x44')](_0x31bffc,_0x3b7dbb){const _0x21efa2=[];for(let _0x793ba0=0x0;_0x793ba0<_0x31bffc[_0x143f('0xe4')];_0x793ba0++){for(let _0x27d30e=0x0;_0x27d30e<_0x31bffc[_0x793ba0][_0x143f('0x77')][_0x143f('0xe4')];_0x27d30e++){const _0x378e44=_0x31bffc[_0x793ba0][_0x143f('0x77')][_0x27d30e];if(!_0x3b7dbb['has'](_0x378e44))continue;const {group:_0x4f475c,type:_0x176533,authorId:_0x1d4731}=_0x33823b(_0x378e44);_0x143f('0x86')!=_0x4f475c||_0x143f('0x6')!=_0x176533&&_0x143f('0xf6')!=_0x176533||(_0x21efa2[_0x143f('0xd6')]({'type':_0x176533,'name':_0x378e44,'userId':_0x1d4731}),_0x31bffc[_0x793ba0][_0x143f('0x77')]['splice'](_0x27d30e,0x1),_0x27d30e--);}_0x4d3054(_0x31bffc[_0x793ba0]);for(let _0x185580=0x0;_0x185580<_0x31bffc[_0x793ba0][_0x143f('0x8a')][_0x143f('0xe4')];_0x185580++){const _0x307123=_0x31bffc[_0x793ba0]['markersEnd'][_0x185580];if(!_0x3b7dbb[_0x143f('0x8c')](_0x307123))continue;const {group:_0x240c72,type:_0x3b256d}=_0x33823b(_0x307123);if(_0x143f('0x86')!=_0x240c72||_0x143f('0x6')!=_0x3b256d&&'deletion'!=_0x3b256d)continue;_0x31bffc[_0x793ba0]['markersEnd'][_0x143f('0x52')](_0x185580,0x1),_0x185580--;const _0x21c2f8=_0x21efa2[_0x143f('0x18')](_0x5a6d6a=>_0x5a6d6a[_0x143f('0xc0')]==_0x307123);_0x21c2f8>-0x1&&_0x21efa2[_0x143f('0x52')](_0x21c2f8,0x1);}}function _0x33823b(_0x149d81){const _0x3e00bf=_0x149d81[_0x143f('0xca')](':');return{'group':_0x3e00bf[0x0],'type':_0x3e00bf[0x1],'subType':_0x3e00bf[_0x143f('0xe4')]>=0x5?_0x3e00bf[0x2]:null,'id':_0x3e00bf[_0x143f('0xe4')]<0x5?_0x3e00bf[0x2]:_0x3e00bf[0x3],'authorId':_0x3e00bf[_0x143f('0xe4')]<0x5?_0x3e00bf[0x3]:_0x3e00bf[0x4],'markerCount':0x6==_0x3e00bf[_0x143f('0xe4')]?_0x3e00bf[0x5]:null};}function _0x4d3054(_0x281522){for(let _0x2e5eae=0x0;_0x2e5eae<_0x21efa2[_0x143f('0xe4')];_0x2e5eae++){if(_0x281522[_0x143f('0xee')]&&'insertion'==_0x21efa2[_0x2e5eae]['type'])return _0x281522[_0x143f('0x4')]=_0x21efa2[_0x2e5eae],void delete _0x281522[_0x143f('0xee')];if(!_0x281522['isAdded']&&!_0x281522['isRemoved']&&'deletion'==_0x21efa2[_0x2e5eae][_0x143f('0xf4')])return void(_0x281522[_0x143f('0x65')]=_0x21efa2[_0x2e5eae]);}}}[_0x143f('0x64')](_0x2951b3,_0x3bb96b){let _0x4c46ea=0x0,_0x1ae34a=!0x1;const _0x1c192f=new Map();for(const _0x240696 of _0x2951b3)_0x240696[_0x3bb96b]?_0x1ae34a&&(_0x4c46ea++,_0x1ae34a=!0x1):(_0x4c46ea++,_0x1ae34a=!0x0),_0x1c192f[_0x143f('0x68')](_0x240696['id'],_0x4c46ea);for(let _0x840265=0x0;_0x840265<_0x2951b3['length'];_0x840265++){if(_0x143f('0xf5')==_0x3bb96b&&_0x2951b3[_0x840265]['isAdded']||_0x143f('0xee')==_0x3bb96b&&_0x2951b3[_0x840265][_0x143f('0xf5')])continue;if(_0x143f('0x2d')==_0x2951b3[_0x840265]['type']){_0x2951b3[_0x840265][_0x143f('0xe9')]=0x0;continue;}const _0x5699ec=_0x1c192f[_0x143f('0x7')](_0x2951b3[_0x840265][_0x143f('0xc')]),_0x5324e0=_0x1c192f[_0x143f('0x7')](_0x2951b3[_0x840265]['id']);_0x2951b3[_0x840265][_0x143f('0xe9')]=_0x5699ec-_0x5324e0;}}[_0x143f('0x5d')](_0xb9dda0,_0x4c6510,_0x4fcab9=!0x1){const _0x5ac9d6=[];let _0x3b8827=this[_0x143f('0x51')][_0x143f('0x26')](_0xb9dda0),_0x2cff60=this['repository'][_0x143f('0x26')](_0x4c6510);for(-0x1==_0x2cff60&&(_0x2cff60=this['repository'][_0x143f('0x95')][_0x143f('0xe4')],_0x4fcab9=!0x1);_0x3b8827<_0x2cff60;)_0x5ac9d6[_0x143f('0xf2')](this[_0x143f('0x51')][_0x143f('0xc3')](_0x3b8827)),_0x3b8827++;return _0x4fcab9&&_0x5ac9d6['push'](this[_0x143f('0x51')]['getRevision'](_0x3b8827)),_0x5ac9d6;}[_0x143f('0xef')](_0x296e39,_0x40d82c,_0x53c33f,_0x3c9a1c){const _0x596486=this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0xfa')];let _0x1e54ee=_0x40d82c;for(;_0x296e39[_0x1e54ee]&&_0x296e39[_0x1e54ee][_0x143f('0xee')];)_0x1e54ee++;let _0x16599a=_0x3c9a1c;for(;_0x53c33f[_0x16599a]&&_0x53c33f[_0x16599a][_0x143f('0xf5')];)_0x16599a++;_0x2b3d69(_0x296e39,_0x40d82c,_0x1e54ee),_0x2b3d69(_0x53c33f,_0x3c9a1c,_0x16599a);const _0x1c911c=_0x53c33f['slice'](_0x3c9a1c,_0x16599a)[_0x143f('0x73')](_0x296e39[_0x143f('0x93')](_0x40d82c,_0x1e54ee));return _0x1c911c[_0x143f('0xad')]((_0x583d8f,_0x2a53b3)=>_0x583d8f[_0x143f('0x55')]!=_0x2a53b3[_0x143f('0x55')]?_0x583d8f['side']-_0x2a53b3[_0x143f('0x55')]:_0x583d8f[_0x143f('0x2f')]!=_0x2a53b3[_0x143f('0x2f')]?_0x583d8f[_0x143f('0x2f')]-_0x2a53b3[_0x143f('0x2f')]:_0x583d8f[_0x143f('0xe9')]!=_0x2a53b3['distance']?_0x2a53b3[_0x143f('0xe9')]-_0x583d8f['distance']:!!_0x583d8f[_0x143f('0xee')]!=!!_0x2a53b3[_0x143f('0xee')]?-0x1==_0x583d8f['side']||0x0==_0x583d8f['side']?_0x583d8f[_0x143f('0xee')]?-0x1:0x1:_0x583d8f[_0x143f('0xee')]?0x1:-0x1:_0x583d8f['index']-_0x2a53b3[_0x143f('0x48')]),{'commonTape':_0x1c911c,'iEnd':_0x1e54ee,'jEnd':_0x16599a};function _0x2b3d69(_0x2cb50e,_0x40f358,_0x4f79dd){let _0x58bdef=-0x1,_0x24226b=Number[_0x143f('0x38')],_0x5a1e58=!0x0;for(let _0x473ee4=_0x40f358;_0x473ee4<_0x4f79dd;_0x473ee4++)if(_0x596486[_0x143f('0x79')](_0x2cb50e[_0x473ee4][_0x143f('0xe0')])||(_0x5a1e58=!0x1),_0x2cb50e[_0x473ee4][_0x143f('0xe0')][_0x143f('0x9')]<_0x40f358&&(_0x58bdef=_0x473ee4),_0x2cb50e[_0x473ee4]['item'][_0x143f('0xcf')]>=_0x4f79dd){_0x24226b=_0x473ee4;break;}_0x5a1e58&&(_0x58bdef=_0x4f79dd-0x1);for(let _0x114dcf=_0x40f358;_0x114dcf<_0x4f79dd;_0x114dcf++)_0x2cb50e[_0x114dcf][_0x143f('0x55')]=_0x114dcf<=_0x58bdef?-0x1:_0x114dcf<_0x24226b?0x0:0x1,_0x2cb50e[_0x114dcf][_0x143f('0x48')]=_0x114dcf;let _0x45fd2c=0x0;for(let _0x575424=_0x40f358;_0x575424<=_0x58bdef;_0x575424++)0x0==_0x2cb50e[_0x575424][_0x143f('0xe9')]?_0x2cb50e[_0x575424][_0x143f('0x2f')]=_0x45fd2c:(_0x45fd2c++,_0x2cb50e[_0x575424]['level']=_0x45fd2c,_0x45fd2c++);for(let _0x1886ce=_0x40f358;_0x1886ce<_0x4f79dd;_0x1886ce++)0x0==_0x2cb50e[_0x1886ce]['side']&&(_0x2cb50e[_0x1886ce][_0x143f('0x2f')]=_0x45fd2c);_0x45fd2c=0x0;for(let _0x367ec2=_0x4f79dd-0x1;_0x367ec2>=_0x24226b;_0x367ec2--)0x0==_0x2cb50e[_0x367ec2]['distance']?_0x2cb50e[_0x367ec2][_0x143f('0x2f')]=_0x45fd2c:(_0x45fd2c--,_0x2cb50e[_0x367ec2][_0x143f('0x2f')]=_0x45fd2c,_0x45fd2c--);}}[_0x143f('0x9b')](_0x5ad8f3){const _0x3c4e4a=new Map(),_0x220179=this[_0x143f('0x61')]['model'][_0x143f('0xfa')];for(let _0x10451a=0x1;_0x10451a<_0x5ad8f3[_0x143f('0xe4')];_0x10451a++){let _0x4ebcbe,_0x4bf5df,_0x524abf;const _0x14e9ae=_0x5ad8f3[_0x10451a],_0x214a60=_0x5ad8f3[_0x10451a-0x1];if(_0x143f('0x2d')==_0x14e9ae['type'])continue;if(_0x14e9ae['type']!=_0x214a60[_0x143f('0xf4')])continue;if(!_0x220179[_0x143f('0x32')](_0x214a60[_0x143f('0xe0')])||_0x220179[_0x143f('0xf0')](_0x214a60[_0x143f('0xe0')]))continue;if(!_0x220179[_0x143f('0x32')](_0x14e9ae[_0x143f('0xe0')])||_0x220179['isLimit'](_0x14e9ae['item']))continue;if((_0x5ad8f3[_0x10451a][_0x143f('0xee')]||_0x5ad8f3[_0x10451a]['isAddSuggestion'])&&_0x5ad8f3[_0x10451a-0x1][_0x143f('0xf5')])_0x4ebcbe=_0x5ad8f3[_0x10451a],_0x4bf5df=_0x5ad8f3[_0x10451a-0x1],_0x524abf=_0x10451a-0x1;else{if(!_0x5ad8f3[_0x10451a]['isRemoved']||!_0x5ad8f3[_0x10451a-0x1]['isAdded']&&!_0x5ad8f3[_0x10451a-0x1]['isAddSuggestion'])continue;_0x4ebcbe=_0x5ad8f3[_0x10451a-0x1],_0x4bf5df=_0x5ad8f3[_0x10451a],_0x524abf=_0x10451a;}const _0x2cf04b=_0x4ebcbe['level']==_0x4bf5df[_0x143f('0x2f')],_0x2cc9c8=Math[_0x143f('0xa4')](_0x4ebcbe[_0x143f('0x2f')])<Math[_0x143f('0xa4')](_0x4bf5df[_0x143f('0x2f')])&&0x0==_0x4bf5df['distance'];(_0x2cf04b||_0x2cc9c8)&&(_0x3c4e4a[_0x143f('0x68')](_0x4bf5df['id'],_0x4ebcbe['id']),_0x5ad8f3[_0x143f('0x52')](_0x524abf,0x1),_0x10451a--,_0x4ebcbe[_0x143f('0xee')]=!0x1);}for(let _0x1020ba=0x0;_0x1020ba<_0x5ad8f3[_0x143f('0xe4')];_0x1020ba++)_0x3c4e4a['has'](_0x5ad8f3[_0x1020ba]['pairId'])&&(_0x5ad8f3[_0x1020ba][_0x143f('0xc')]=_0x3c4e4a[_0x143f('0x7')](_0x5ad8f3[_0x1020ba][_0x143f('0xc')]));}['_removeMissingPairs'](_0x2ccbd2){const _0x1b29e2=new Set(_0x2ccbd2[_0x143f('0xc1')](_0x236cdf=>_0x236cdf['id']));for(let _0x21fbd8=0x0;_0x21fbd8<_0x2ccbd2[_0x143f('0xe4')];_0x21fbd8++)_0x1b29e2[_0x143f('0x8c')](_0x2ccbd2[_0x21fbd8][_0x143f('0xc')])||0x0==_0x2ccbd2[_0x21fbd8][_0x143f('0xe9')]||(_0x2ccbd2[_0x21fbd8]['isIncorrect']=!0x0);return _0x2ccbd2[_0x143f('0xc5')](_0x4c26c5=>!_0x4c26c5[_0x143f('0xc8')]);}[_0x143f('0xa')](_0x117fbd){const _0x479b49=new Set();for(let _0x337afb=0x0;_0x337afb<_0x117fbd[_0x143f('0xe4')];_0x337afb++){if(_0x479b49[_0x143f('0x8c')](_0x117fbd[_0x337afb]['id'])&&_0x117fbd[_0x337afb]['isRemoved']&&(_0x117fbd[_0x337afb][_0x143f('0xc8')]=!0x0),_0x117fbd[_0x337afb][_0x143f('0xc8')])continue;if(0x0==_0x117fbd[_0x337afb]['distance'])continue;if('elementStart'!=_0x117fbd[_0x337afb][_0x143f('0xf4')])continue;if(null==_0x117fbd[_0x337afb][_0x143f('0xc')])continue;let _0x59b5e6=_0x337afb+0x1,_0x294a0a=0x0;for(;_0x117fbd[_0x59b5e6]['id']!=_0x117fbd[_0x337afb][_0x143f('0xc')];)_0x143f('0x109')==_0x117fbd[_0x59b5e6]['type']?_0x294a0a++:_0x143f('0x3e')==_0x117fbd[_0x59b5e6][_0x143f('0xf4')]&&_0x294a0a--,_0x59b5e6++;if(0x0!=_0x294a0a){if(_0x117fbd[_0x337afb][_0x143f('0xf5')])_0x117fbd[_0x337afb][_0x143f('0xc8')]=!0x0;else for(;_0x59b5e6!=_0x337afb;)_0x117fbd[_0x59b5e6][_0x143f('0xf5')]&&0x0!=_0x117fbd[_0x59b5e6][_0x143f('0xe9')]&&(_0x117fbd[_0x59b5e6][_0x143f('0xc8')]=!0x0,_0x479b49[_0x143f('0x1a')](_0x117fbd[_0x59b5e6][_0x143f('0xc')])),_0x59b5e6--;}}return _0x117fbd[_0x143f('0xc5')](_0xda37a0=>!_0xda37a0[_0x143f('0xc8')]);}[_0x143f('0xfc')](_0x505dd0){const _0x80ee76=this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0xfa')];for(let _0x18fdaf=0x0;_0x18fdaf<_0x505dd0['length'];_0x18fdaf++){if(!(_0x505dd0[_0x18fdaf][_0x143f('0xee')]||_0x505dd0[_0x18fdaf][_0x143f('0x4')]||_0x505dd0[_0x18fdaf][_0x143f('0xf5')]||_0x505dd0[_0x18fdaf][_0x143f('0x65')]))continue;if(0x0==_0x505dd0[_0x18fdaf][_0x143f('0xe9')])continue;const _0x2a885a=_0x505dd0[_0x18fdaf][_0x143f('0xe0')];_0x80ee76['isBlock'](_0x2a885a)||_0x80ee76[_0x143f('0xf0')](_0x2a885a)||(_0x505dd0[_0x18fdaf][_0x143f('0xee')]&&delete _0x505dd0[_0x18fdaf][_0x143f('0xee')],_0x505dd0[_0x18fdaf][_0x143f('0x4')]&&delete _0x505dd0[_0x18fdaf][_0x143f('0x4')],_0x505dd0[_0x18fdaf]['isRemoveSuggestion']&&delete _0x505dd0[_0x18fdaf]['isRemoveSuggestion'],_0x505dd0[_0x18fdaf][_0x143f('0xf5')]&&(_0x505dd0[_0x18fdaf][_0x143f('0xc8')]=!0x0));}return _0x505dd0[_0x143f('0xc5')](_0x2c5fe4=>!_0x2c5fe4[_0x143f('0xc8')]);}[_0x143f('0x23')](_0x2169e5,_0x258978){const _0x490af7=new _0x4ed0d2(),_0xb9a78f=[],_0x59ce76=new Map(),_0x3d35e4=this[_0x143f('0x61')][_0x143f('0x8d')],_0x1ef2f6=_0x3d35e4[_0x143f('0xfa')],_0x45bcb8=[_0x490af7],_0x9f124d={},_0x1429ef={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x234fa1=null;const _0x490612=[0x0];for(let _0x2f08a8=0x0;_0x2f08a8<_0x2169e5['length'];_0x2f08a8++){let _0xcd23cd,_0x31ef20;if(_0x143f('0x109')===_0x2169e5[_0x2f08a8][_0x143f('0xf4')]){_0xcd23cd=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612);const _0x1c5e6a=new _0x321fa5(_0x2169e5[_0x2f08a8][_0x143f('0xe0')][_0x143f('0xc0')],_0x2169e5[_0x2f08a8][_0x143f('0xe0')][_0x143f('0x94')]());_0x45bcb8[0x0][_0x143f('0x53')](_0x1c5e6a),_0x490612[_0x143f('0xf2')](0x0),_0x45bcb8[_0x143f('0xd6')](_0x1c5e6a),_0x31ef20=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612),_0x234fa1=null;}else{if(_0x143f('0x3e')===_0x2169e5[_0x2f08a8][_0x143f('0xf4')])_0x45bcb8[_0x143f('0xb4')](),_0xcd23cd=_0x3d35e4['createPositionFromPath'](_0x490af7,_0x490612),_0x490612[_0x143f('0x36')](),_0x490612[_0x490612[_0x143f('0xe4')]-0x1]++,_0x31ef20=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612),_0x234fa1=null;else{if(_0xcd23cd=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612),_0x234fa1&&_0x50f8eb(_0x234fa1,_0x2169e5[_0x2f08a8][_0x143f('0xe0')]))_0x234fa1[_0x143f('0x75')]+=_0x2169e5[_0x2f08a8][_0x143f('0xe0')][_0x143f('0xb2')];else{const _0x1210d3=new _0x53c349(_0x2169e5[_0x2f08a8]['item'][_0x143f('0xb2')],_0x2169e5[_0x2f08a8][_0x143f('0xe0')][_0x143f('0x94')]());_0x45bcb8[0x0][_0x143f('0x53')](_0x1210d3),_0x234fa1=_0x1210d3;}_0x490612[_0x490612[_0x143f('0xe4')]-0x1]+=_0x2169e5[_0x2f08a8]['item'][_0x143f('0x100')],_0x31ef20=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612);}}for(const _0x19f469 of _0x2169e5[_0x2f08a8][_0x143f('0x77')])_0x59ce76[_0x143f('0x68')](_0x19f469,{'start':_0xcd23cd,'end':null});_0x1b44b7('isRemoveSuggestion',_0x2f08a8,_0xcd23cd,_0x31ef20),_0x1b44b7(_0x143f('0x4'),_0x2f08a8,_0xcd23cd,_0x31ef20),_0x1b44b7(_0x143f('0xf5'),_0x2f08a8,_0xcd23cd,_0x31ef20),_0x1b44b7(_0x143f('0xee'),_0x2f08a8,_0xcd23cd,_0x31ef20);for(const _0x4a3faf of _0x2169e5[_0x2f08a8][_0x143f('0x8a')]){_0x59ce76['get'](_0x4a3faf)[_0x143f('0xac')]=_0x31ef20;}}for(const [_0xb6fec2,_0x16814c]of _0x59ce76){const _0x46716f=this[_0x143f('0x61')][_0x143f('0x8d')]['createRange'](_0x16814c[_0x143f('0x4c')],_0x16814c['end']);_0x490af7[_0x143f('0xd5')][_0x143f('0x68')](_0xb6fec2,_0x46716f);}return _0xb9a78f[_0x143f('0xad')]((_0x3c2273,_0x196a94)=>{const _0x563f7c=_0x490af7[_0x143f('0xd5')]['get'](_0x143f('0xd7')+_0x3c2273['id']),_0x4e7949=_0x490af7[_0x143f('0xd5')][_0x143f('0x7')](_0x143f('0xd7')+_0x196a94['id']);return _0x563f7c['start']['isBefore'](_0x4e7949[_0x143f('0x4c')])?-0x1:_0x563f7c['start']['isAfter'](_0x4e7949[_0x143f('0x4c')])?0x1:_0x563f7c[_0x143f('0xac')]['isBefore'](_0x4e7949[_0x143f('0xac')])?-0x1:_0x563f7c[_0x143f('0xac')]['isAfter'](_0x4e7949[_0x143f('0xac')])?0x1:_0x143f('0x1a')===_0x3c2273['type']?-0x1:0x1;}),{'root':_0x490af7,'changes':_0xb9a78f};function _0x1b44b7(_0x498a32,_0x9edbfa,_0x5a612f,_0x261dfe){const _0x3ec51c=!!_0x2169e5[_0x9edbfa][_0x498a32],_0x3c9692=_0x3ec51c?_0x2169e5[_0x9edbfa][_0x498a32][_0x143f('0x85')]:null,_0x557f52=_0x9edbfa===_0x2169e5['length']-0x1,_0x564eb3=_0x1429ef[_0x498a32][0x0],_0x3b9fcb=_0x1ef2f6['isObject'](_0x2169e5[_0x9edbfa][_0x143f('0xe0')]);!_0x9f124d[_0x498a32]&&_0x3ec51c?_0x9f124d[_0x498a32]={'start':_0x5a612f,'tapeItem':_0x2169e5[_0x9edbfa],'userId':_0x3c9692,'type':_0x498a32}:_0x9f124d[_0x498a32]&&!_0x3ec51c?(_0x9f124d[_0x498a32][_0x143f('0xac')]=_0x5a612f,_0x353052(_0x9f124d[_0x498a32]),_0x9f124d[_0x498a32]=null):_0x9f124d[_0x498a32]&&_0x3ec51c&&_0x9f124d[_0x498a32][_0x143f('0x85')]!==_0x3c9692&&(_0x9f124d[_0x498a32][_0x143f('0xac')]=_0x5a612f,_0x564eb3&&_0x564eb3[_0x143f('0x85')]===_0x9f124d[_0x498a32][_0x143f('0x85')]||_0x353052(_0x9f124d[_0x498a32]),_0x9f124d[_0x498a32]={'start':_0x5a612f,'tapeItem':_0x2169e5[_0x9edbfa],'userId':_0x3c9692,'type':_0x498a32}),_0x9f124d[_0x498a32]&&_0x3b9fcb&&('elementStart'!==_0x2169e5[_0x9edbfa][_0x143f('0xf4')]||_0x564eb3&&_0x564eb3[_0x143f('0x85')]===_0x3c9692||_0x1429ef[_0x498a32][_0x143f('0xd6')]({'userId':_0x3c9692,'object':_0x2169e5[_0x9edbfa][_0x143f('0xe0')],'change':_0x9f124d[_0x498a32]}),_0x143f('0x3e')===_0x2169e5[_0x9edbfa][_0x143f('0xf4')]&&_0x564eb3&&_0x564eb3[_0x143f('0xd9')]===_0x2169e5[_0x9edbfa][_0x143f('0xe0')]&&(_0x1429ef[_0x498a32][_0x143f('0xb4')](),_0x9f124d[_0x498a32]=_0x564eb3['change'])),_0x9f124d[_0x498a32]&&_0x557f52&&(_0x9f124d[_0x498a32]['end']=_0x261dfe,_0x353052(_0x9f124d[_0x498a32]),_0x9f124d[_0x498a32]=null);}function _0x353052({start:_0x4c48a4,end:_0x25ec04,tapeItem:_0x47d1d9,userId:_0x1272d4,type:_0x1773d4}){const _0x582f21=_0x47d1d9[_0x143f('0xe0')],_0x3e5220=_0x3d35e4['schema'][_0x143f('0x32')](_0x582f21)&&!_0x3d35e4[_0x143f('0xfa')][_0x143f('0xf0')](_0x582f21),_0x12ea0f=_0x4c48a4['nodeAfter']==_0x25ec04[_0x143f('0x91')]&&_0x25ec04[_0x143f('0xda')];if(_0x3e5220&&_0x12ea0f)return;const _0x328a5b=_0x3d35e4[_0x143f('0xd2')](_0x4c48a4,_0x25ec04),_0x1a8a7f=_0x258978['get'](_0x1272d4),_0x1800b9=new _0x1d3e57({'author':_0x1a8a7f,'type':_0x143f('0xee')==_0x1773d4||'isAddSuggestion'==_0x1773d4?_0x143f('0x1a'):_0x143f('0x5f'),'data':{'isSuggestion':_0x143f('0x4')==_0x1773d4||_0x143f('0x65')==_0x1773d4},'createdAt':new Date()});_0xb9a78f[_0x143f('0xf2')](_0x1800b9),_0x490af7[_0x143f('0xd5')][_0x143f('0x68')](_0x143f('0xd7')+_0x1800b9['id'],_0x328a5b);}function _0x50f8eb(_0x337783,_0x544444){const _0x2f7391=_0x337783[_0x143f('0x94')](),_0x3c2247=_0x544444['getAttributes']();for(const _0x443129 of _0x2f7391){if(_0x443129[0x1]!==_0x544444[_0x143f('0x29')](_0x443129[0x0]))return!0x1;_0x3c2247[_0x143f('0x88')]();}return _0x3c2247[_0x143f('0x88')]()[_0x143f('0x28')];}}['_setConversion'](){this[_0x143f('0x61')]['conversion'][_0x143f('0x35')](_0x143f('0xe6'))[_0x143f('0x78')]({'view':'revision'}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xf8'))['markerToHighlight']({'model':_0x143f('0x20'),'view':_0x1397d0=>{const _0x2adb03=_0x1397d0[_0x143f('0x6c')][_0x143f('0xca')](':')[0x1],_0x3a436c=this[_0x143f('0x47')](_0x2adb03);if(!_0x3a436c)return null;const _0x31d328=_0x143f('0x1a')==_0x3a436c['type']?_0x143f('0x6'):'deletion',_0x375fd0=[_0x143f('0x69'),_0x143f('0xbb')+_0x31d328];return _0x3a436c[_0x143f('0xb2')]['isSuggestion']&&_0x375fd0[_0x143f('0xf2')]('ck-suggestion-marker-'+_0x31d328+_0x143f('0x50')),this['activeChange']==_0x3a436c&&_0x375fd0[_0x143f('0xf2')](_0x143f('0x4d')),{'classes':_0x375fd0,'attributes':{'data-change-id':_0x2adb03}};}}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xe6'))[_0x143f('0x1a')](_0xe7c1ea=>{_0xe7c1ea['on'](_0x143f('0x24'),(_0x503912,_0x6bbbb7,_0x28e087)=>{const _0x277d1=_0x6bbbb7[_0x143f('0x67')][_0x143f('0x8b')](0x0);if(!_0x277d1||!_0x277d1['is'](_0x143f('0x7a'),_0x143f('0x6f')))return;if(!_0x28e087['consumable'][_0x143f('0x3b')](_0x277d1,{'attributes':[_0x143f('0xec'),'vid_end']}))return;const _0x41ec0d=_0x6bbbb7['modelRange'][_0x143f('0x4c')]['nodeAfter'];_0x28e087[_0x143f('0xa9')][_0x143f('0xc4')](_0x143f('0xec'),_0x277d1[_0x143f('0x29')](_0x143f('0xec')),_0x41ec0d),_0x28e087['writer'][_0x143f('0xc4')](_0x143f('0x66'),_0x277d1[_0x143f('0x29')](_0x143f('0x66')),_0x41ec0d);},{'priority':_0x143f('0xb9')});}),this[_0x143f('0x61')]['conversion']['for'](_0x143f('0xe6'))['add'](_0x55a98f=>{_0x55a98f['on'](_0x143f('0x7a'),(_0x4feb4c,_0x2376bb,_0x1a834b)=>{if(!_0x1a834b['consumable']['consume'](_0x2376bb[_0x143f('0x67')],{'attributes':[_0x143f('0xec'),_0x143f('0x66')]}))return;if(_0x2376bb[_0x143f('0x30')][_0x143f('0xcd')])return;const _0x315e91=_0x2376bb[_0x143f('0x30')][_0x143f('0x4c')][_0x143f('0xbc')];_0x315e91[_0x143f('0x3d')]('vid_start')||_0x315e91[_0x143f('0x3d')](_0x143f('0xdb'))||(_0x1a834b[_0x143f('0xa9')][_0x143f('0xc4')]('vid_start',_0x2376bb[_0x143f('0x67')]['getAttribute']('vid_start'),_0x315e91),_0x1a834b[_0x143f('0xa9')]['setAttribute'](_0x143f('0x66'),_0x2376bb['viewItem'][_0x143f('0x29')](_0x143f('0x66')),_0x315e91));},{'priority':_0x143f('0xb9')});}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xe6'))[_0x143f('0x9a')]({'view':{'name':_0x143f('0x62'),'attributes':{'vid':!0x0}},'model':{'key':_0x143f('0xdb'),'value':_0x1d76a1=>_0x1d76a1[_0x143f('0x29')](_0x143f('0xdb'))}}),this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0xfa')]['on'](_0x143f('0xbe'),(_0x1e9f86,[,_0x5002a5])=>{[_0x143f('0xec'),_0x143f('0x66'),_0x143f('0xdb')]['includes'](_0x5002a5)&&(_0x1e9f86[_0x143f('0xc6')]=!0x0,_0x1e9f86[_0x143f('0x106')]());},{'priority':_0x143f('0xe7')}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xeb'))[_0x143f('0x1a')](_0x81f337=>{_0x81f337['on'](_0x143f('0xc9'),(_0x2681f6,_0x12cdb8,_0x2c1568)=>{if('\x20'!=_0x12cdb8['item'][_0x143f('0xb2')]||_0x12cdb8[_0x143f('0xe0')][_0x143f('0x91')]['maxOffset']>0x1)return;if(!_0x2c1568['consumable'][_0x143f('0x3b')](_0x12cdb8['item'],_0x2681f6['name']))return;const _0x1b1bad=_0x2c1568[_0x143f('0xa9')],_0x5f46b8=_0x2c1568[_0x143f('0x63')][_0x143f('0xe5')](_0x12cdb8[_0x143f('0xfd')]);_0x1b1bad['wrap'](_0x5f46b8,_0x1b1bad[_0x143f('0xdf')]('span'));});}),this['editor'][_0x143f('0xaf')][_0x143f('0x35')]('dataDowncast')[_0x143f('0x92')]({'model':_0x143f('0x20')}),this[_0x143f('0x61')]['editing'][_0x143f('0xa8')]['on'](_0x143f('0x84'),function(_0x554f03){const _0x13c317=_0x554f03[_0x143f('0xe8')][_0x143f('0x7')]('RevisionViewer');return(_0x514774,_0x587e35,_0x267e90)=>{const _0x56c9f2=_0x587e35['markerName'][_0x143f('0xca')](':')[0x1],_0x10790a=_0x13c317['_getChangeFromId'](_0x56c9f2);if(!_0x10790a)return null;const _0x579bf2='add'==_0x10790a[_0x143f('0xf4')]?'split':_0x143f('0xa0');if(!_0x267e90['consumable'][_0x143f('0x72')](_0x587e35[_0x143f('0x7b')],_0x514774['name']))return;const _0x55d53a=_0x587e35[_0x143f('0x7b')]['getWalker'](),_0x510343=_0x587e35[_0x143f('0x7b')]['start'],_0x239853=_0x554f03[_0x143f('0x8d')][_0x143f('0xfa')];let _0x77d929=null,_0x10e794=null,_0x23b41b=!0x1,_0x12ebf1=!0x1;for(const _0x22471a of _0x55d53a){const _0x45fdc8=_0x22471a[_0x143f('0xe0')];_0x23b41b=_0x23b41b||_0x239853[_0x143f('0xcb')](_0x45fdc8);const _0x1c679c=_0x267e90[_0x143f('0x63')][_0x143f('0x7c')](_0x45fdc8);if(_0x1c679c&&_0x1c679c[_0x143f('0xe2')]('addHighlight'))return;_0x143f('0x3e')==_0x22471a[_0x143f('0xf4')]&&(_0x239853[_0x143f('0x32')](_0x45fdc8)&&!_0x239853[_0x143f('0xf0')](_0x45fdc8)&&(_0x45fdc8[_0x143f('0x45')]||_0x510343[_0x143f('0x3')]?_0x77d929&&_0x77d929[_0x143f('0x91')]==_0x45fdc8||(_0x77d929=_0x45fdc8,_0x59b2b7(_0x22471a['previousPosition']),_0x12ebf1=!0x0):_0x10e794=_0x10e794||_0x22471a[_0x143f('0xd0')]));}function _0x59b2b7(_0x385ef3){const _0x4d2b01=_0x267e90[_0x143f('0xa9')][_0x143f('0x3f')](_0x143f('0x62'),{'class':_0x143f('0xbb')+_0x579bf2}),_0x4569f4=_0x267e90[_0x143f('0x63')][_0x143f('0x97')](_0x385ef3);_0x10790a[_0x143f('0xb2')][_0x143f('0x8e')]&&_0x267e90[_0x143f('0xa9')]['addClass'](_0x143f('0xbb')+_0x579bf2+_0x143f('0x50'),_0x4d2b01),_0x13c317[_0x143f('0x5a')]==_0x10790a&&_0x267e90[_0x143f('0xa9')][_0x143f('0x2b')]('ck-suggestion-marker--active',_0x4d2b01),_0x267e90['writer'][_0x143f('0x7f')](_0x4569f4,_0x4d2b01),_0x267e90[_0x143f('0x63')][_0x143f('0x10c')](_0x4d2b01,_0x587e35['markerName']);}_0x23b41b||_0x12ebf1||!_0x10e794||_0x59b2b7(_0x10e794);};}(this['editor']),{'priority':_0x143f('0x42')}),this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0xa8')]['on'](_0x143f('0xcc'),(_0x3ddd37,_0xf8bc47,_0x18a2f7)=>{const _0x3003d9=_0x18a2f7['mapper'][_0x143f('0x9d')](_0xf8bc47[_0x143f('0x6c')]);if(_0x3003d9)for(const _0x3b1b92 of _0x3003d9)(_0x3b1b92[_0x143f('0xd3')](_0x143f('0xa2'))||_0x3b1b92[_0x143f('0xd3')](_0x143f('0x8f')))&&(_0x18a2f7[_0x143f('0x63')][_0x143f('0x104')](_0x3b1b92,_0xf8bc47[_0x143f('0x6c')]),_0x18a2f7[_0x143f('0xa9')][_0x143f('0x5f')](_0x3b1b92));},{'priority':_0x143f('0x42')}),this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0xa8')]['on'](_0x143f('0x84'),(_0x2b0ff8,_0x2fdba6,_0x2190d6)=>{const _0x15be62=_0x2fdba6[_0x143f('0x6c')]['split'](':')[0x1],_0x4eb7e1=this[_0x143f('0x47')](_0x15be62);if(!_0x4eb7e1)return null;const _0x5bf929='add'==_0x4eb7e1[_0x143f('0xf4')]?_0x143f('0xca'):_0x143f('0xa0');if(_0x2190d6['consumable'][_0x143f('0x72')](_0x2fdba6['markerRange'],_0x2b0ff8[_0x143f('0xc0')]))for(const _0x11897b of _0x2fdba6[_0x143f('0x7b')][_0x143f('0xaa')]()){if(!_0x11897b['is'](_0x143f('0x7a'),'softBreak'))continue;const _0xa5a438=_0x2190d6[_0x143f('0xa9')][_0x143f('0x3f')](_0x143f('0x62'),{'class':_0x143f('0xbb')+_0x5bf929}),_0x41698f=_0x2190d6['mapper'][_0x143f('0x97')](this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0x4b')](_0x11897b));_0x4eb7e1[_0x143f('0xb2')][_0x143f('0x8e')]&&_0x2190d6['writer'][_0x143f('0x2b')]('ck-suggestion-marker-'+_0x5bf929+'-new',_0xa5a438),this['activeChange']==_0x4eb7e1&&_0x2190d6['writer'][_0x143f('0x2b')](_0x143f('0x4d'),_0xa5a438),_0x2190d6[_0x143f('0xa9')][_0x143f('0x7f')](_0x41698f,_0xa5a438),_0x2190d6['mapper'][_0x143f('0x10c')](_0xa5a438,_0x2fdba6['markerName']);}},{'priority':_0x143f('0x42')}),this['editor'][_0x143f('0xaf')]['for'](_0x143f('0xe6'))[_0x143f('0x78')]({'view':_0x143f('0x86')}),this[_0x143f('0x61')]['conversion']['for']('dataDowncast')['markerToData']({'model':_0x143f('0x86')}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xf8'))[_0x143f('0x9e')]({'model':_0x143f('0x86'),'view':_0x47efb3=>{const _0x273b1c=_0x47efb3[_0x143f('0x6c')]['split'](':')[0x1];return _0x143f('0x6')!=_0x273b1c&&_0x143f('0xf6')!=_0x273b1c?null:{'classes':['ck-suggestion-preview-marker',_0x143f('0x98')+_0x273b1c]};}}),this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0xa8')]['on'](_0x143f('0xbf'),Z(this['editor'],_0x143f('0xa0')),{'priority':_0x143f('0x42')}),this[_0x143f('0x61')][_0x143f('0xa3')]['downcastDispatcher']['on'](_0x143f('0x4e'),Z(this[_0x143f('0x61')],_0x143f('0xca')),{'priority':_0x143f('0x42')}),this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0xa8')]['on'](_0x143f('0x34'),(_0x221f94,_0x12c099,_0x24ef69)=>{const _0x2296c5=_0x24ef69[_0x143f('0x63')][_0x143f('0x9d')](_0x12c099[_0x143f('0x6c')]);if(_0x2296c5)for(const _0x39d2ee of _0x2296c5)_0x39d2ee['is']('uiElement')&&(_0x24ef69[_0x143f('0x63')][_0x143f('0x104')](_0x39d2ee,_0x12c099['markerName']),_0x24ef69['writer']['remove'](_0x39d2ee));},{'priority':_0x143f('0x42')});}[_0x143f('0x47')](_0x483c9e){return this[_0x143f('0x107')][_0x143f('0x7')](_0x483c9e);}['_getViewForChange'](_0x635459){this['_changeView']&&this[_0x143f('0x10')][_0x143f('0x58')](),this[_0x143f('0x10')]=new _0x220785(this[_0x143f('0x61')]['locale'],_0x635459);const _0x16d769=this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0xd5')][_0x143f('0x7')](_0x143f('0xd7')+_0x635459['id']);return this[_0x143f('0x10')]['_target']=()=>_0x131b2e(this['editor']['editing'],_0x16d769),this[_0x143f('0x10')];}[_0x143f('0x37')](){this['editor'][_0x143f('0x8d')][_0x143f('0x2')][_0x143f('0x9c')][_0x143f('0x83')]('revision'),this['on'](_0x143f('0x2e'),(_0x261da6,_0x69c94e,_0x4d4c95,_0x1f0527)=>{_0x1f0527&&this['_balloon'][_0x143f('0x5f')](_0x1f0527),_0x4d4c95&&(this[_0x143f('0xb7')]['add']({'view':_0x4d4c95,'stackId':'revisionHistoryLabel','position':{'target':_0x4d4c95[_0x143f('0x82')]}}),this['_balloon'][_0x143f('0x60')](_0x143f('0x41')));}),this['on']('change:activeChange',(_0x3243f8,_0x4bdaa0,_0x2dd994,_0x57b8c1)=>{this[_0x143f('0x4a')]=_0x2dd994?this[_0x143f('0xae')](_0x2dd994):null,this['editor'][_0x143f('0x8d')][_0x143f('0x33')](()=>{const _0x4059ae=this[_0x143f('0x61')][_0x143f('0xa3')];_0x57b8c1&&_0x4059ae['reconvertMarker'](_0x143f('0xd7')+_0x57b8c1['id']),_0x2dd994&&_0x4059ae['reconvertMarker'](_0x143f('0xd7')+_0x2dd994['id']);});}),this[_0x143f('0x101')](this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0x74')]['document'],_0x143f('0xfe'),(_0x3df958,_0x516783)=>{if(this['activeChange'])return;const _0x7c0987=this[_0x143f('0x22')](_0x516783[_0x143f('0xfb')]),_0x4edde9=this[_0x143f('0x107')][_0x143f('0x7')](_0x7c0987);this[_0x143f('0x4a')]=_0x4edde9?this['_getViewForChange'](_0x4edde9):null;}),this[_0x143f('0x101')](this['editor'][_0x143f('0xa3')]['view']['document'],_0x143f('0x81'),(_0x15e12b,_0x338bcb)=>{const _0x36fca6=this[_0x143f('0x22')](_0x338bcb[_0x143f('0xfb')]),_0x3c79e1=this[_0x143f('0x107')][_0x143f('0x7')](_0x36fca6);this['activeChange']=_0x3c79e1||null;});}[_0x143f('0x22')](_0x487bed){do{const _0x1245ca=_0x487bed['getAttribute'](_0x143f('0xff'));if(_0x1245ca)return _0x1245ca;_0x487bed=_0x487bed[_0x143f('0x91')];}while(_0x487bed);return null;}[_0x143f('0xbd')](){this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0x33')](_0x329c22=>{for(const _0x24fbac of this['editor'][_0x143f('0x8d')][_0x143f('0xd5')])_0x329c22[_0x143f('0x59')](_0x24fbac);});}}function Z(_0x3f13e9,_0xe8382d){return(_0x1e9af0,_0x3a6dd9,_0x1a52b4)=>{if(!_0x1a52b4[_0x143f('0xe')]['test'](_0x3a6dd9[_0x143f('0x7b')],_0x1e9af0[_0x143f('0xc0')]))return;const _0x23195d=_0x3a6dd9['markerRange'][_0x143f('0x13')](),_0x34faa3=_0x3a6dd9[_0x143f('0x7b')]['start'],_0x3aa246=_0x3f13e9[_0x143f('0x8d')][_0x143f('0xfa')];let _0x256a6b=null,_0x367a4f=null,_0x89cc0f=!0x1,_0x167563=!0x1;for(const _0x1dd4da of _0x23195d){const _0x2966ca=_0x1dd4da[_0x143f('0xe0')];_0x89cc0f=_0x89cc0f||_0x3aa246[_0x143f('0xcb')](_0x2966ca);const _0xea9c3d=_0x1a52b4[_0x143f('0x63')][_0x143f('0x7c')](_0x2966ca);if(_0xea9c3d&&_0xea9c3d[_0x143f('0xe2')](_0x143f('0x40')))return;_0x143f('0x3e')==_0x1dd4da[_0x143f('0xf4')]&&(_0x3aa246['isBlock'](_0x2966ca)&&!_0x3aa246[_0x143f('0xf0')](_0x2966ca)&&(_0x2966ca[_0x143f('0x45')]||_0x34faa3[_0x143f('0x3')]?_0x256a6b&&_0x256a6b[_0x143f('0x91')]==_0x2966ca||(_0x256a6b=_0x2966ca,_0x4a23e4(_0x1dd4da[_0x143f('0xd0')]),_0x167563=!0x0):_0x367a4f=_0x367a4f||_0x1dd4da[_0x143f('0xd0')]));}function _0x4a23e4(_0x56a906){const _0x2046a3=_0x1a52b4['mapper']['toViewPosition'](_0x56a906),_0x4244fa=_0x1a52b4['writer'][_0x143f('0x3f')](_0x143f('0x62'),{'class':'ck-suggestion-preview-marker-'+_0xe8382d});_0x1a52b4[_0x143f('0xa9')]['insert'](_0x2046a3,_0x4244fa),_0x1a52b4[_0x143f('0x63')]['bindElementToMarker'](_0x4244fa,_0x3a6dd9[_0x143f('0x6c')]);}_0x89cc0f||_0x167563||!_0x367a4f||_0x4a23e4(_0x367a4f);};}_0x3dc86b(R,_0x1aefaa);class tt extends _0x57e198{constructor(_0x2c6a1a){super(_0x2c6a1a);const _0x1443b2=_0x2c6a1a['plugins'][_0x143f('0x7')](R);this['stopListening'](_0x2c6a1a,_0x143f('0x70')),this[_0x143f('0xa7')]('readOnlyMode'),this['listenTo'](_0x1443b2,_0x143f('0x14'),()=>this[_0x143f('0x90')]()),this['listenTo'](_0x1443b2,_0x143f('0xc2'),()=>this[_0x143f('0x90')]());}['execute'](){const _0xa3ec9=this['editor'],_0x102a30=_0xa3ec9['plugins'][_0x143f('0x7')](R),_0x464f2e=_0x102a30[_0x143f('0x1')]?_0x102a30[_0x143f('0x39')][_0x143f('0xa1')]:null;_0xa3ec9['config']['get'](_0x143f('0x1d'))[_0x143f('0x108')](_0x464f2e);}[_0x143f('0x90')](){const {isReady:_0x546171,isEnabled:_0x405eae}=this[_0x143f('0x61')][_0x143f('0xe8')]['get'](R);this['isEnabled']=_0x546171&&_0x405eae;}}class et extends _0x57e198{constructor(_0x26e30f,{direction:_0x254681}){super(_0x26e30f);const _0x4050c0=_0x26e30f[_0x143f('0xe8')][_0x143f('0x7')](R);this[_0x143f('0x4f')](_0x26e30f,'change:isReadOnly'),this[_0x143f('0xa7')]('readOnlyMode'),this[_0x143f('0x9f')]=_0x143f('0x17')===_0x254681?0x1:-0x1,this[_0x143f('0x101')](_0x4050c0,_0x143f('0x14'),()=>this['refresh']()),this[_0x143f('0x101')](_0x4050c0,_0x143f('0xc2'),()=>this['refresh']());}['execute'](){const _0x45f8c6=this['editor'],_0x34659f=_0x45f8c6[_0x143f('0xe8')][_0x143f('0x7')](R),{isNavigationMode:_0x1b0b2b,currentChangeNumber:_0x16be8a}=_0x34659f;_0x34659f[_0x143f('0x5a')]=_0x1b0b2b?_0x34659f['diff'][_0x143f('0xf9')]['get'](_0x16be8a+this[_0x143f('0x9f')]):_0x34659f['diff'][_0x143f('0xf9')]['first'];const _0x32352d=_0x45f8c6[_0x143f('0x8d')][_0x143f('0xd5')][_0x143f('0x7')](_0x143f('0xd7')+_0x34659f[_0x143f('0x5a')]['id']),_0x41718a=_0x131b2e(_0x45f8c6[_0x143f('0xa3')],_0x32352d);_0xf073a9({'target':_0x41718a,'viewportOffset':0x28});}[_0x143f('0x90')](){const {isNavigationMode:_0x236d74,currentChangeNumber:_0x552d53,numberOfChanges:_0x26ba4a,isReady:_0x4c1c80,isEnabled:_0x456c21}=this[_0x143f('0x61')][_0x143f('0xe8')]['get'](R);this[_0x143f('0x80')]=!!(_0x456c21&&_0x4c1c80&&_0x26ba4a)&&(!_0x236d74||(0x1===this['_step']?_0x552d53<_0x26ba4a-0x1:_0x552d53>0x0));}}