@ckeditor/ckeditor5-track-changes 37.1.0 → 38.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/en-au.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/he.js +1 -1
  16. package/build/translations/hi.js +1 -1
  17. package/build/translations/hr.js +1 -1
  18. package/build/translations/hu.js +1 -1
  19. package/build/translations/id.js +1 -1
  20. package/build/translations/it.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/lv.js +1 -1
  25. package/build/translations/ms.js +1 -1
  26. package/build/translations/nl.js +1 -1
  27. package/build/translations/no.js +1 -1
  28. package/build/translations/pl.js +1 -1
  29. package/build/translations/pt-br.js +1 -1
  30. package/build/translations/pt.js +1 -1
  31. package/build/translations/ro.js +1 -1
  32. package/build/translations/ru.js +1 -1
  33. package/build/translations/sk.js +1 -1
  34. package/build/translations/sr-latn.js +1 -1
  35. package/build/translations/sr.js +1 -1
  36. package/build/translations/sv.js +1 -1
  37. package/build/translations/th.js +1 -1
  38. package/build/translations/tr.js +1 -1
  39. package/build/translations/uk.js +1 -1
  40. package/build/translations/vi.js +1 -1
  41. package/build/translations/zh-cn.js +1 -1
  42. package/build/translations/zh.js +1 -1
  43. package/lang/translations/ar.po +7 -7
  44. package/lang/translations/bg.po +3 -3
  45. package/lang/translations/bn.po +3 -3
  46. package/lang/translations/ca.po +3 -3
  47. package/lang/translations/cs.po +5 -5
  48. package/lang/translations/da.po +3 -3
  49. package/lang/translations/de.po +3 -3
  50. package/lang/translations/el.po +3 -3
  51. package/lang/translations/en-au.po +23 -23
  52. package/lang/translations/es.po +4 -4
  53. package/lang/translations/et.po +3 -3
  54. package/lang/translations/fi.po +3 -3
  55. package/lang/translations/fr.po +4 -4
  56. package/lang/translations/he.po +5 -5
  57. package/lang/translations/hi.po +3 -3
  58. package/lang/translations/hr.po +26 -26
  59. package/lang/translations/hu.po +3 -3
  60. package/lang/translations/id.po +2 -2
  61. package/lang/translations/it.po +4 -4
  62. package/lang/translations/ja.po +2 -2
  63. package/lang/translations/ko.po +2 -2
  64. package/lang/translations/lt.po +5 -5
  65. package/lang/translations/lv.po +4 -4
  66. package/lang/translations/ms.po +2 -2
  67. package/lang/translations/nl.po +3 -3
  68. package/lang/translations/no.po +3 -3
  69. package/lang/translations/pl.po +5 -5
  70. package/lang/translations/pt-br.po +4 -4
  71. package/lang/translations/pt.po +4 -4
  72. package/lang/translations/ro.po +4 -4
  73. package/lang/translations/ru.po +5 -5
  74. package/lang/translations/sk.po +5 -5
  75. package/lang/translations/sr-latn.po +4 -4
  76. package/lang/translations/sr.po +4 -4
  77. package/lang/translations/sv.po +3 -3
  78. package/lang/translations/th.po +2 -2
  79. package/lang/translations/tr.po +3 -3
  80. package/lang/translations/uk.po +5 -5
  81. package/lang/translations/vi.po +2 -2
  82. package/lang/translations/zh-cn.po +2 -2
  83. package/lang/translations/zh.po +2 -2
  84. package/package.json +3 -3
  85. package/src/commands/acceptsuggestioncommand.js +1 -1
  86. package/src/commands/discardsuggestioncommand.js +1 -1
  87. package/src/commands/executeonallsuggestionscommand.js +1 -1
  88. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  89. package/src/commands/trackchangescommand.js +1 -1
  90. package/src/integrations/alignment.js +1 -1
  91. package/src/integrations/basicstyles.js +1 -1
  92. package/src/integrations/blockquote.js +1 -1
  93. package/src/integrations/ckbox.js +1 -1
  94. package/src/integrations/codeblock.js +1 -1
  95. package/src/integrations/comments.js +1 -1
  96. package/src/integrations/deletecommand.js +1 -1
  97. package/src/integrations/documentlist.js +1 -1
  98. package/src/integrations/documentlistproperties.js +1 -1
  99. package/src/integrations/entercommand.js +1 -1
  100. package/src/integrations/findandreplace.js +1 -1
  101. package/src/integrations/font.js +1 -1
  102. package/src/integrations/formatpainter.js +1 -1
  103. package/src/integrations/heading.js +1 -1
  104. package/src/integrations/highlight.js +1 -1
  105. package/src/integrations/horizontalline.js +1 -1
  106. package/src/integrations/htmlembed.js +1 -1
  107. package/src/integrations/image.js +1 -1
  108. package/src/integrations/imagereplace.js +1 -1
  109. package/src/integrations/importword.js +1 -1
  110. package/src/integrations/indent.js +1 -1
  111. package/src/integrations/inputcommand.js +1 -1
  112. package/src/integrations/link.js +1 -1
  113. package/src/integrations/list.js +1 -1
  114. package/src/integrations/listproperties.js +1 -1
  115. package/src/integrations/mediaembed.js +1 -1
  116. package/src/integrations/mention.js +1 -1
  117. package/src/integrations/pagebreak.js +1 -1
  118. package/src/integrations/paragraph.js +1 -1
  119. package/src/integrations/removeformat.js +1 -1
  120. package/src/integrations/restrictededitingmode.js +1 -1
  121. package/src/integrations/shiftentercommand.js +1 -1
  122. package/src/integrations/standardeditingmode.js +1 -1
  123. package/src/integrations/style.js +1 -1
  124. package/src/integrations/table.js +1 -1
  125. package/src/integrations/tablecaption.js +1 -1
  126. package/src/integrations/tableclipboard.js +1 -1
  127. package/src/integrations/tablecolumnresize.js +1 -1
  128. package/src/integrations/tableheadings.js +1 -1
  129. package/src/integrations/tablemergesplit.js +1 -1
  130. package/src/integrations/tableofcontents.js +1 -1
  131. package/src/integrations/tableproperties.js +1 -1
  132. package/src/integrations/template.js +1 -1
  133. package/src/integrations/title.js +1 -1
  134. package/src/integrations/undo.js +1 -1
  135. package/src/integrations/utils.js +1 -1
  136. package/src/suggestion.js +1 -1
  137. package/src/suggestiondescriptionfactory.js +1 -1
  138. package/src/trackchanges.d.ts +23 -5
  139. package/src/trackchanges.js +1 -1
  140. package/src/trackchangesconfig.d.ts +23 -5
  141. package/src/trackchangesdata.js +1 -1
  142. package/src/trackchangesediting.js +1 -1
  143. package/src/trackchangesui.js +1 -1
  144. package/src/ui/suggestioncontroller.js +1 -1
  145. package/src/ui/view/basesuggestionthreadview.js +1 -1
  146. package/src/ui/view/suggestionthreadview.js +1 -1
  147. package/src/utils/common-translations.js +1 -1
  148. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4a2f=['addSuggestionData','plugins','getSuggestion','TrackChanges','addSuggestion','get','editor','pluginName','Comments','getSuggestions','adapter'];(function(_0x3b39aa,_0x4a2f33){var _0x53f447=function(_0x15106d){while(--_0x15106d){_0x3b39aa['push'](_0x3b39aa['shift']());}};_0x53f447(++_0x4a2f33);}(_0x4a2f,0x15d));var _0x53f4=function(_0x3b39aa,_0x4a2f33){_0x3b39aa=_0x3b39aa-0x0;var _0x53f447=_0x4a2f[_0x3b39aa];return _0x53f447;};import{Plugin as _0x554796}from'ckeditor5/src/core';import _0x205ddd from'./trackchangesui';import _0x54b419 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x554796{static get['requires'](){return[_0x54b419,_0x205ddd,_0x53f4('0x0')];}static get[_0x53f4('0xa')](){return _0x53f4('0x6');}set['adapter'](_0x181426){this[_0x53f4('0x9')]['plugins'][_0x53f4('0x8')](_0x54b419)[_0x53f4('0x2')]=_0x181426;}get[_0x53f4('0x2')](){return this[_0x53f4('0x9')]['plugins']['get'](_0x54b419)[_0x53f4('0x2')];}[_0x53f4('0x7')](_0x424951){return this[_0x53f4('0x9')][_0x53f4('0x4')][_0x53f4('0x8')](_0x54b419)[_0x53f4('0x3')](_0x424951);}[_0x53f4('0x1')]({skipNotAttached:_0x371c9c=!0x1,toJSON:_0x55ea58=!0x1}={}){return this[_0x53f4('0x9')][_0x53f4('0x4')]['get'](_0x54b419)['getSuggestions']({'skipNotAttached':_0x371c9c,'toJSON':_0x55ea58});}[_0x53f4('0x5')](_0x310e01){return this[_0x53f4('0x9')][_0x53f4('0x4')]['get'](_0x54b419)['getSuggestion'](_0x310e01);}}
23
+ var _0x3a83=['editor','plugins','Comments','getSuggestion','adapter','TrackChanges','addSuggestion','get','requires','addSuggestionData','getSuggestions','pluginName'];(function(_0x853465,_0x3a83bf){var _0x52f52f=function(_0x58b852){while(--_0x58b852){_0x853465['push'](_0x853465['shift']());}};_0x52f52f(++_0x3a83bf);}(_0x3a83,0x86));var _0x52f5=function(_0x853465,_0x3a83bf){_0x853465=_0x853465-0x0;var _0x52f52f=_0x3a83[_0x853465];return _0x52f52f;};import{Plugin as _0x1646ab}from'ckeditor5/src/core';import _0x1d74e7 from'./trackchangesui';import _0x5e29ff from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x1646ab{static get[_0x52f5('0x6')](){return[_0x5e29ff,_0x1d74e7,_0x52f5('0x0')];}static get[_0x52f5('0x9')](){return _0x52f5('0x3');}set[_0x52f5('0x2')](_0x136a77){this[_0x52f5('0xa')][_0x52f5('0xb')][_0x52f5('0x5')](_0x5e29ff)[_0x52f5('0x2')]=_0x136a77;}get['adapter'](){return this['editor']['plugins'][_0x52f5('0x5')](_0x5e29ff)[_0x52f5('0x2')];}[_0x52f5('0x4')](_0x43f929){return this['editor']['plugins'][_0x52f5('0x5')](_0x5e29ff)[_0x52f5('0x7')](_0x43f929);}[_0x52f5('0x8')]({skipNotAttached:_0x1d88c0=!0x1,toJSON:_0x5630a1=!0x1}={}){return this['editor'][_0x52f5('0xb')]['get'](_0x5e29ff)[_0x52f5('0x8')]({'skipNotAttached':_0x1d88c0,'toJSON':_0x5630a1});}[_0x52f5('0x1')](_0x1f48fb){return this[_0x52f5('0xa')][_0x52f5('0xb')][_0x52f5('0x5')](_0x5e29ff)['getSuggestion'](_0x1f48fb);}}
@@ -15,8 +15,10 @@ import type SuggestionThreadView from './ui/view/suggestionthreadview';
15
15
  * trackChanges: {
16
16
  * // Do not allow users to comment suggestions (default is `false`).
17
17
  * disableComments: true,
18
- * // Do not track styling and formatting changes (default is `true`).
19
- * trackFormatChanges: false
18
+ * // Do not track styling and formatting changes (default is `default`).
19
+ * trackFormatChanges: 'never',
20
+ * // Merges suggestion changes inside a block. (default is `true`).
21
+ * mergeNestedSuggestions: true
20
22
  * }
21
23
  * } )
22
24
  * .then( ... )
@@ -36,13 +38,29 @@ export interface TrackChangesConfig {
36
38
  */
37
39
  disableComments: boolean;
38
40
  /**
39
- * A property that specifies whether format changes should be tracked (`true`) or not (`false`).
41
+ * A property that specifies whether format changes should be tracked.
40
42
  *
41
43
  * Format changes are all changes other than insertions and deletions, including: styling, structure, widgets properties, etc.
42
44
  *
43
- * Defaults to `true`.
45
+ * Possible values are:
46
+ *
47
+ * * `'always'` - all changes are going to be tracked independently (without merging).
48
+ * * `'default'` - format changes made inside your own insertion suggestion will be merged with it.
49
+ * * `'never'` - format changes will not be tracked.
50
+ *
51
+ * Defaults to `'default'`.
52
+ */
53
+ trackFormatChanges: 'never' | 'default' | 'always';
54
+ /**
55
+ * Specifies whether suggestions on an object (e.g. image, table) should be automatically merged
56
+ * with suggestions inside the object (e.g. image caption, table cell).
57
+ *
58
+ * For example, when set to `true`, creating a table and writing some text inside the table will result in one suggestion.
59
+ * When set to `false`, it will be two separate suggestions, one for the inserted table and one for the inserted text.
60
+ *
61
+ * Keep in mind that only suggestions from the same author and of the same type are merged this way.
44
62
  */
45
- trackFormatChanges: boolean;
63
+ mergeNestedSuggestions: boolean;
46
64
  /**
47
65
  * A view class to be used to create suggestion thread views.
48
66
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1200=['appendChild','filter','function','discardAllSuggestions','init','RevisionTracker','_adapter','context','editor','DocumentOutline','plugins','has','get','destroy','data','end','Users','set','trackChangesData.editorCreator','getRootNames','trackChangesData','push','getSuggestions','addSuggestionData','execute','Pagination','users','adapter','names','TrackChangesEditing','constructor','from','every','requires','define','div','editorCreator','concat','CommentsRepository','result','createElement','WordCount','useAnonymousUser','addUser','string','WebSocketGateway','TrackChangesDataGetter','reduce','pluginName','track-changes-data-invalid-editor-creator','createDocumentFragment','extraPlugins','map','toolbar','config','acceptAllSuggestions','getDataWithAcceptedSuggestions'];(function(_0x2f9db6,_0x120005){const _0x13731e=function(_0x436593){while(--_0x436593){_0x2f9db6['push'](_0x2f9db6['shift']());}};_0x13731e(++_0x120005);}(_0x1200,0x70));const _0x1373=function(_0x2f9db6,_0x120005){_0x2f9db6=_0x2f9db6-0x0;let _0x13731e=_0x1200[_0x2f9db6];return _0x13731e;};import{Plugin as _0x152db5}from'ckeditor5/src/core';import{CKEditorError as _0x338a74}from'ckeditor5/src/utils';import _0x55629c from'./trackchangesediting';const C=['initialData',_0x1373('0x9'),_0x1373('0x37')],w=[_0x1373('0x2f'),_0x1373('0x7'),'Autosave',_0x1373('0x2b'),_0x1373('0x1b'),_0x1373('0xb')];export default class T extends _0x152db5{static get[_0x1373('0x23')](){return[_0x55629c];}static get[_0x1373('0x32')](){return'TrackChangesData';}[_0x1373('0x6')](){const _0x2d9b0b=this[_0x1373('0xa')];if(_0x2d9b0b[_0x1373('0x38')][_0x1373('0x24')](_0x1373('0x14'),_0x22c2f9=>_0x2d9b0b[_0x1373('0x20')]['create']('',_0x22c2f9)),_0x1373('0x4')!=typeof _0x2d9b0b[_0x1373('0x38')]['get']('trackChangesData')[_0x1373('0x26')])throw new _0x338a74(_0x1373('0x33'));}[_0x1373('0x1')](_0x2a5f76){return P(this[_0x1373('0xa')],!0x0,_0x2a5f76);}['getDataWithDiscardedSuggestions'](_0x449fea){return P(this[_0x1373('0xa')],!0x1,_0x449fea);}}class D extends _0x152db5{static get[_0x1373('0x32')](){return _0x1373('0x30');}constructor(_0x5b0cc8){super(_0x5b0cc8),this[_0x1373('0x29')]=_0x1373('0x11');}[_0x1373('0x6')](){this[_0x1373('0xa')][_0x1373('0xc')][_0x1373('0xe')](_0x1373('0x28'))[_0x1373('0x1d')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')[_0x1373('0x8')]=null;}}async function P(_0x129bee,_0x4f2a0a,_0x49da44){const _0x5b69d4=function(_0x320b6e){const _0x1e1d1b={};for(const _0x522734 of _0x320b6e[_0x1373('0x38')][_0x1373('0x1e')]())C['includes'](_0x522734)||(_0x1e1d1b[_0x522734]=_0x320b6e[_0x1373('0x38')][_0x1373('0xe')](_0x522734));const _0xe9cf13=_0x320b6e[_0x1373('0x20')]['builtinPlugins']||[],_0x43f950=_0x1e1d1b['extraPlugins']||[];delete _0x1e1d1b[_0x1373('0x35')];const _0x4035c8=_0xe9cf13[_0x1373('0x27')](_0x1e1d1b[_0x1373('0xc')])[_0x1373('0x27')](_0x43f950)[_0x1373('0x36')](_0x18ad25=>_0x1373('0x2e')==typeof _0x18ad25?_0xe9cf13['find'](_0x82113=>_0x82113[_0x1373('0x32')]==_0x18ad25):_0x18ad25),_0x480736=Array[_0x1373('0x21')](new Set(_0x4035c8)),_0x2df1af=new Map();return _0x1e1d1b[_0x1373('0xc')]=_0x480736[_0x1373('0x3')](_0x5bf1f1=>v(_0x5bf1f1,_0x2df1af)),_0x1e1d1b[_0x1373('0xc')][_0x1373('0x17')](D),_0x1e1d1b[_0x1373('0xc')][_0x1373('0x17')](_0x55629c),_0x1e1d1b;}(_0x129bee),_0xa266b8=document[_0x1373('0x34')](),_0xb8f945=_0x129bee[_0x1373('0x38')][_0x1373('0xe')](_0x1373('0x16'))[_0x1373('0x26')],_0x188a6f=await _0xb8f945(_0x5b69d4,()=>function(_0x4c72ab){const _0x55ac3c=document[_0x1373('0x2a')](_0x1373('0x25'));return _0x4c72ab[_0x1373('0x2')](_0x55ac3c),_0x55ac3c;}(_0xa266b8));!function(_0x19c09a,_0x85064c){const _0xd66e9=_0x19c09a['model']['document'][_0x1373('0x15')]()[_0x1373('0x31')]((_0x2f7502,_0x572a8f)=>(_0x2f7502[_0x572a8f]=_0x19c09a[_0x1373('0x10')][_0x1373('0xe')]({'rootName':_0x572a8f}),_0x2f7502),{}),_0x9697a8=_0x19c09a[_0x1373('0xc')][_0x1373('0xe')]('Users')[_0x1373('0x1c')][_0x1373('0x36')](_0x406e37=>({'id':_0x406e37['id'],'name':_0x406e37['name']})),_0x571b8f=_0x19c09a[_0x1373('0xc')][_0x1373('0xe')](_0x1373('0x1f'))[_0x1373('0x18')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x237a48=_0x85064c[_0x1373('0xc')]['get'](_0x1373('0x12')),_0x1a80d4=_0x85064c[_0x1373('0xc')][_0x1373('0xe')]('TrackChangesEditing');for(const _0x509b99 of _0x9697a8)_0x237a48['getUser'](_0x509b99['id'])||_0x237a48[_0x1373('0x2d')](_0x509b99);_0x237a48['me']||_0x237a48[_0x1373('0x2c')]();for(const _0x470f0a of _0x571b8f)_0x1a80d4[_0x1373('0x19')](_0x470f0a);_0x85064c['data'][_0x1373('0x13')](_0xd66e9);}(_0x129bee,_0x188a6f),_0x188a6f[_0x1373('0x1a')](_0x4f2a0a?_0x1373('0x0'):_0x1373('0x5'));const _0x118691=_0x188a6f[_0x1373('0x10')][_0x1373('0xe')](_0x49da44);return await _0x188a6f[_0x1373('0xf')](),_0x118691;}function v(_0x4408b8,_0x5bac7e){const _0x72dcda=_0x1373('0x4')==typeof _0x4408b8?_0x4408b8[_0x1373('0x32')]||_0x4408b8['name']:_0x4408b8;if(_0x5bac7e[_0x1373('0xd')](_0x72dcda))return _0x5bac7e[_0x1373('0xe')](_0x72dcda);if(_0x5bac7e[_0x1373('0x13')](_0x72dcda,!0x0),_0x72dcda&&w['includes'](_0x72dcda))return _0x5bac7e[_0x1373('0x13')](_0x72dcda,!0x1),!0x1;if(!_0x4408b8[_0x1373('0x23')])return _0x5bac7e[_0x1373('0x13')](_0x72dcda,!0x0),!0x0;const _0x3de95f=_0x4408b8[_0x1373('0x23')][_0x1373('0x22')](_0x11fe85=>v(_0x11fe85,_0x5bac7e));return _0x5bac7e[_0x1373('0x13')](_0x72dcda,_0x3de95f),_0x3de95f;}
23
+ const _0x1218=['filter','WordCount','track-changes-data-invalid-editor-creator','createElement','map','_adapter','config','end','TrackChangesDataGetter','WebSocketGateway','users','DocumentOutline','trackChangesData.editorCreator','getDataWithAcceptedSuggestions','Pagination','addUser','adapter','discardAllSuggestions','reduce','function','destroy','getDataWithDiscardedSuggestions','TrackChangesData','init','context','pluginName','define','push','CommentsRepository','create','includes','TrackChangesEditing','acceptAllSuggestions','result','editor','execute','get','requires','Users','names','appendChild','set','concat','addSuggestionData','Autosave','getRootNames','div','editorCreator','document','useAnonymousUser','builtinPlugins','plugins','data','createDocumentFragment','name','extraPlugins'];(function(_0x54e9a7,_0x1218f1){const _0x1e2c3f=function(_0x2d7b56){while(--_0x2d7b56){_0x54e9a7['push'](_0x54e9a7['shift']());}};_0x1e2c3f(++_0x1218f1);}(_0x1218,0x1c9));const _0x1e2c=function(_0x54e9a7,_0x1218f1){_0x54e9a7=_0x54e9a7-0x0;let _0x1e2c3f=_0x1218[_0x54e9a7];return _0x1e2c3f;};import{Plugin as _0x4e474e}from'ckeditor5/src/core';import{CKEditorError as _0x22a788}from'ckeditor5/src/utils';import _0x413eab from'./trackchangesediting';const C=['initialData',_0x1e2c('0xf'),'toolbar'],w=[_0x1e2c('0x0'),'RevisionTracker',_0x1e2c('0x23'),_0x1e2c('0x30'),_0x1e2c('0x5'),_0x1e2c('0x2')];export default class T extends _0x4e474e{static get[_0x1e2c('0x1c')](){return[_0x413eab];}static get[_0x1e2c('0x10')](){return _0x1e2c('0xd');}[_0x1e2c('0xe')](){const _0x32d109=this[_0x1e2c('0x19')];if(_0x32d109[_0x1e2c('0x35')][_0x1e2c('0x11')](_0x1e2c('0x3'),_0x249fa9=>_0x32d109['constructor'][_0x1e2c('0x14')]('',_0x249fa9)),_0x1e2c('0xa')!=typeof _0x32d109[_0x1e2c('0x35')][_0x1e2c('0x1b')]('trackChangesData')[_0x1e2c('0x26')])throw new _0x22a788(_0x1e2c('0x31'));}[_0x1e2c('0x4')](_0x17395f){return P(this['editor'],!0x0,_0x17395f);}[_0x1e2c('0xc')](_0x41ea80){return P(this[_0x1e2c('0x19')],!0x1,_0x41ea80);}}class D extends _0x4e474e{static get[_0x1e2c('0x10')](){return _0x1e2c('0x37');}constructor(_0x538437){super(_0x538437),this[_0x1e2c('0x18')]=_0x1e2c('0x36');}[_0x1e2c('0xe')](){this[_0x1e2c('0x19')]['plugins'][_0x1e2c('0x1b')](_0x1e2c('0x13'))[_0x1e2c('0x7')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x1e2c('0x19')][_0x1e2c('0x2a')][_0x1e2c('0x1b')](_0x1e2c('0x16'))[_0x1e2c('0x34')]=null;}}async function P(_0x25f8a2,_0x1ec6f6,_0x1d72eb){const _0x40f57b=function(_0x4bf7ac){const _0x138cd2={};for(const _0x1556b7 of _0x4bf7ac[_0x1e2c('0x35')][_0x1e2c('0x1e')]())C[_0x1e2c('0x15')](_0x1556b7)||(_0x138cd2[_0x1556b7]=_0x4bf7ac[_0x1e2c('0x35')][_0x1e2c('0x1b')](_0x1556b7));const _0x5c6bd2=_0x4bf7ac['constructor'][_0x1e2c('0x29')]||[],_0x59440c=_0x138cd2[_0x1e2c('0x2e')]||[];delete _0x138cd2[_0x1e2c('0x2e')];const _0xedb681=_0x5c6bd2[_0x1e2c('0x21')](_0x138cd2['plugins'])[_0x1e2c('0x21')](_0x59440c)[_0x1e2c('0x33')](_0x464e15=>'string'==typeof _0x464e15?_0x5c6bd2['find'](_0x187f57=>_0x187f57['pluginName']==_0x464e15):_0x464e15),_0x25150c=Array['from'](new Set(_0xedb681)),_0x407c22=new Map();return _0x138cd2[_0x1e2c('0x2a')]=_0x25150c[_0x1e2c('0x2f')](_0x38860c=>v(_0x38860c,_0x407c22)),_0x138cd2[_0x1e2c('0x2a')]['push'](D),_0x138cd2['plugins'][_0x1e2c('0x12')](_0x413eab),_0x138cd2;}(_0x25f8a2),_0x5b0c66=document[_0x1e2c('0x2c')](),_0x38c4a3=_0x25f8a2[_0x1e2c('0x35')][_0x1e2c('0x1b')]('trackChangesData')['editorCreator'],_0x225c3b=await _0x38c4a3(_0x40f57b,()=>function(_0x33170e){const _0xdd12b0=document[_0x1e2c('0x32')](_0x1e2c('0x25'));return _0x33170e[_0x1e2c('0x1f')](_0xdd12b0),_0xdd12b0;}(_0x5b0c66));!function(_0x2eb14e,_0x7f74e6){const _0x97ed85=_0x2eb14e['model'][_0x1e2c('0x27')][_0x1e2c('0x24')]()[_0x1e2c('0x9')]((_0x2e7334,_0x2d0d04)=>(_0x2e7334[_0x2d0d04]=_0x2eb14e[_0x1e2c('0x2b')][_0x1e2c('0x1b')]({'rootName':_0x2d0d04}),_0x2e7334),{}),_0x315ab0=_0x2eb14e[_0x1e2c('0x2a')][_0x1e2c('0x1b')](_0x1e2c('0x1d'))[_0x1e2c('0x1')][_0x1e2c('0x33')](_0x125528=>({'id':_0x125528['id'],'name':_0x125528[_0x1e2c('0x2d')]})),_0x4cc88f=_0x2eb14e[_0x1e2c('0x2a')][_0x1e2c('0x1b')](_0x1e2c('0x16'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x552ac8=_0x7f74e6['plugins'][_0x1e2c('0x1b')](_0x1e2c('0x1d')),_0x426931=_0x7f74e6[_0x1e2c('0x2a')][_0x1e2c('0x1b')](_0x1e2c('0x16'));for(const _0xc821d2 of _0x315ab0)_0x552ac8['getUser'](_0xc821d2['id'])||_0x552ac8[_0x1e2c('0x6')](_0xc821d2);_0x552ac8['me']||_0x552ac8[_0x1e2c('0x28')]();for(const _0xcb97d5 of _0x4cc88f)_0x426931[_0x1e2c('0x22')](_0xcb97d5);_0x7f74e6['data']['set'](_0x97ed85);}(_0x25f8a2,_0x225c3b),_0x225c3b[_0x1e2c('0x1a')](_0x1ec6f6?_0x1e2c('0x17'):_0x1e2c('0x8'));const _0x587491=_0x225c3b[_0x1e2c('0x2b')][_0x1e2c('0x1b')](_0x1d72eb);return await _0x225c3b[_0x1e2c('0xb')](),_0x587491;}function v(_0x38cedb,_0x3427fc){const _0x38cec5='function'==typeof _0x38cedb?_0x38cedb['pluginName']||_0x38cedb['name']:_0x38cedb;if(_0x3427fc['has'](_0x38cec5))return _0x3427fc[_0x1e2c('0x1b')](_0x38cec5);if(_0x3427fc['set'](_0x38cec5,!0x0),_0x38cec5&&w[_0x1e2c('0x15')](_0x38cec5))return _0x3427fc[_0x1e2c('0x20')](_0x38cec5,!0x1),!0x1;if(!_0x38cedb[_0x1e2c('0x1c')])return _0x3427fc[_0x1e2c('0x20')](_0x38cec5,!0x0),!0x0;const _0x5006db=_0x38cedb[_0x1e2c('0x1c')]['every'](_0x1e3e6d=>v(_0x1e3e6d,_0x3427fc));return _0x3427fc['set'](_0x38cec5,_0x5006db),_0x5006db;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x274a=['_suggestions','isAfter','attributes','includes','getAllAdjacentSuggestions','discardSuggestion','trackChanges','ck-suggestion-marker-','nodeBefore','isMultiRange','from','pluginName','detach','isUndo','_splitMarkerName','commands','setTo','insertContent','addRange','applyOperation','isInsideObject','createPositionBefore','for','rejected','_removeSuggestion','document','data','config','getShiftedBy','unbindElementFromMarkerName','consumable','length','high','PENDING_ACTION_SUGGESTION','chain','addUser','targetPosition','updateSuggestion','isInContent','markMultiRangeDeletion','_findSuggestions','containsRange','unbind','getAttribute','createSelection','getNearestSelectionRange','containsItem','nodeAfter','hasSuggestion','deletion:','toViewElement','markerToData','markerNameToElements','sort','delete','discard','get','insertion','activeMarkers','addMarkerName','createRangeIn','markDeletion','isExternal','values','discardAllSuggestions','subType','_saved','plugins','isObject','isBlock','stopListening','addHighlight','@external','_joinSuggestions','_handleNewSuggestionMarker','_customCallbacks','_editor','insertion:discard','authoredAt','change:data','removeMarkers','$graveyard','schema','collaboration.channelId','_checkSuggestionCorrectness','_setSuggestionData','insertion:chain','consume','type','change','removeMarker:suggestion:formatBlock','formatBlock:accept','toJSON','trackChangesCommand','isOwn','_isForcedDefaultExecutionBlock','has','stop','rootName','define','formatInline','fromCharCode','formatInline:','getChanges','_adapter','size','containsRangeInObject','clone','getChangedMarkers','_setSuggestionRange','_commentsRepository','getSuggestions','deletion:discard','addMarker','$marker','_addThreadToSuggestion','_model','reconvertMarker','getLastMatchingPosition','catch','removed','markerName','push','_addSuggestionMarker','addSuggestionData','suggestionLoaded','author','PendingActions','commentThread','isCollapsed','insertion:','isRemovable','suggestionChanged','clear','getMarkers','CommentsRepository','_getExternalAuthor','createElement','dataToMarker','ck-suggestion-marker--active','suggestion-type','_defaultCallbacks','createPositionAfter','getUser','track-changes-suggestion-data-mismatch','conversion','next','enableCommand','filter','createdAt','deletion:join','registerPostFixer','formatBlock:discard','writer','model','formatGroupId','_cutOutSuggestionMarker','end','ck-suggestion-marker-formatBlock','listenTo','_getAuthorFromId','dataReady','selection','start','addMarker:suggestion:formatBlock','hasComments','formatBlock','createPositionAt','forceDefaultExecution','originalSuggestionId','insert','error-saving-suggestion-data-suggestion-discarded','dataDowncast','data-suggestion','getSuggestionCallback','backward','markers','ck-suggestion-marker','deletion:accept','before','bindElementToMarker','return','_getSuggestionData','formatBlock:join','remove','previous','getMultiRangeId','ready','after','getFirstMarker','suggestion','multi','isLocal','documentSelection','$textProxy','deleteContent','_onDiscard','editor','getRanges','mapper','resolve','isBefore','newRange','getCommentThread','isTouching','map','fromRange','upcast','acceptSuggestion','getWalker','low','getDifference','open','options','_updateSuggestionData','root','set','deletion:chain','editing','howMany','removeMarker','change:_saved','formatBlock:','lowest','isIntersectingWithRange','name','adapter','enqueueChange','element','authorName','suggestionUnloaded','multipleBlocks','isAtEnd','getItems','elementEnd','_descriptionFactory','fire','highest','then','_enabledCommands','moveTargetPosition','value','formatInline:accept','isEqual','updateMarker','fetchCommentThread','getFirstRange','trackChanges.trackFormatChanges','containsPosition','isNextTo','isSelectable','addComment','markerToHighlight','addClass','formatBlock:chain','every','_suggestionFactory','locale','markMultiRangeInsertion','containerElement','addCommentThread','deletion','buildSuggestion','differ','commandName','getRange','getIntersection','markMultiRangeBlockFormat','_registerDefaultCallbacks','some','_rangeIsInLocalUserInsertion','refresh','showSuggestionHighlights','substr','insertion:join','execute','acceptAllSuggestions','split','notReady','marker-count','add','_suggestionState','creator','range','_refreshSuggestionsChain','formatInline:join','addSuggestion','join','removeAttribute','isLimit','_createSuggestion','parent','getCustomProperty','formatInline:discard','markerReady','_breakSuggestionMarker','skipNestingCheck','splitPosition','normal','oldRange','rethrowUnexpectedError','TrackChangesEditing','elementToElement','requires','createRange','editingDowncast','elementStart','suggestion:','Users','track-changes-command-not-found','_trackFormatChanges','batch','item','accept'];(function(_0x37ba30,_0x274a79){const _0x9ebea5=function(_0xf59b5){while(--_0xf59b5){_0x37ba30['push'](_0x37ba30['shift']());}};_0x9ebea5(++_0x274a79);}(_0x274a,0x14e));const _0x9ebe=function(_0x37ba30,_0x274a79){_0x37ba30=_0x37ba30-0x0;let _0x9ebea5=_0x274a[_0x37ba30];return _0x9ebea5;};import{Plugin as _0x1015b7,PendingActions as _0x517343}from'ckeditor5/src/core';import{LiveRange as _0x5ea0ee}from'ckeditor5/src/engine';import{CKEditorError as _0x168803,uid as _0x4e3532,priorities as _0x4039f0,logWarning as _0x138b14}from'ckeditor5/src/utils';import{toWidget as _0x78162b}from'ckeditor5/src/widget';import{Users as _0x4a7b0d,hashObject as _0x1a7906}from'ckeditor5-collaboration/src/collaboration-core';import _0x51065e from'./commands/trackchangescommand';import _0x1e1b09 from'./commands/acceptsuggestioncommand';import _0x3693e3 from'./commands/discardsuggestioncommand';import _0x5c1c31 from'./commands/executeonallsuggestionscommand';import _0x46d85a from'./commands/executeonselectedsuggestionscommand';import _0x428cce from'./suggestion';import _0x90ee9a from'./suggestiondescriptionfactory';import _0x25e9fe from'./integrations/alignment';import _0x33d675 from'./integrations/basicstyles';import _0xc49306 from'./integrations/blockquote';import _0x418f1e from'./integrations/ckbox';import _0x500c4a from'./integrations/codeblock';import _0x3e305d from'./integrations/comments';import _0x2acc13 from'./integrations/deletecommand';import _0x1c850a from'./integrations/documentlist';import _0x3f2c11 from'./integrations/entercommand';import _0x401fa9 from'./integrations/findandreplace';import _0xb5be06 from'./integrations/font';import _0x28f455 from'./integrations/formatpainter';import _0x3ebe7d from'./integrations/heading';import _0x1d777b from'./integrations/highlight';import _0x4d79d0 from'./integrations/horizontalline';import _0x3050c8 from'./integrations/htmlembed';import _0x29878f from'./integrations/image';import _0x48851 from'./integrations/imagereplace';import _0xb69abb from'./integrations/importword';import _0x529e23 from'./integrations/indent';import _0x116f67 from'./integrations/inputcommand';import _0x105364 from'./integrations/link';import _0x4c1c27 from'./integrations/list';import _0x2b97eb from'./integrations/listproperties';import _0x53878e from'./integrations/mediaembed';import _0x1a6f9d from'./integrations/mention';import _0x5e68b7 from'./integrations/pagebreak';import _0x2b30a3 from'./integrations/paragraph';import _0x1e8579 from'./integrations/removeformat';import _0xc52fde from'./integrations/restrictededitingmode';import _0x7f89a9 from'./integrations/shiftentercommand';import _0xb5ad58 from'./integrations/standardeditingmode';import _0x367168 from'./integrations/style';import _0x3a7cc3 from'./integrations/table';import _0x2e95d1 from'./integrations/tablemergesplit';import _0x7f6020 from'./integrations/tableheadings';import _0x35e388 from'./integrations/tableclipboard';import _0x1b263b from'./integrations/tablecolumnresize';import _0x50c661 from'./integrations/template';import _0x52fed9 from'./integrations/tableofcontents';import _0x3e7a6a from'./integrations/title';import _0x5bb1da from'./integrations/undo';import{getTranslation as _0x447cd7}from'./utils/common-translations';import _0x51637a from'./integrations/tablecaption';import _0x574b61 from'./integrations/documentlistproperties';import _0x44b4de from'./integrations/tableproperties';export default class p extends _0x1015b7{static get[_0x9ebe('0x11b')](){return[_0x9ebe('0x73'),_0x4a7b0d,_0x517343,_0x25e9fe,_0x33d675,_0xc49306,_0x418f1e,_0x500c4a,_0x3e305d,_0x2acc13,_0x1c850a,_0x574b61,_0x3f2c11,_0x401fa9,_0xb5be06,_0x28f455,_0x3ebe7d,_0x1d777b,_0x4d79d0,_0x3050c8,_0x29878f,_0x48851,_0xb69abb,_0x529e23,_0x116f67,_0x105364,_0x4c1c27,_0x2b97eb,_0x53878e,_0x1a6f9d,_0x5e68b7,_0x2b30a3,_0x1e8579,_0xc52fde,_0x7f89a9,_0xb5ad58,_0x367168,_0x3a7cc3,_0x2e95d1,_0x7f6020,_0x51637a,_0x35e388,_0x1b263b,_0x52fed9,_0x44b4de,_0x50c661,_0x3e7a6a,_0x5bb1da];}static get[_0x9ebe('0x131')](){return _0x9ebe('0x119');}constructor(_0x5b0cd0){function _0x4165dc(_0x57d01a){return _0x57d01a[_0x9ebe('0xb9')](_0x18aa65=>String[_0x9ebe('0x51')](_0x18aa65))[_0x9ebe('0x10b')]('');}super(_0x5b0cd0),this['set'](_0x9ebe('0x26'),[]),this['on']('change:activeMarkers',(_0x1bb89a,_0x96553d,_0x52ad62,_0x1bbc33)=>{this[_0x9ebe('0x60')][_0x9ebe('0x45')](()=>{for(const _0x3d8350 of[..._0x1bbc33,..._0x52ad62])this['_model'][_0x9ebe('0x9c')]['has'](_0x3d8350)&&_0x5b0cd0[_0x9ebe('0xc6')][_0x9ebe('0x61')](_0x3d8350);});}),this[_0x9ebe('0xd7')]=new _0x90ee9a(this[_0x9ebe('0xb1')]['model'][_0x9ebe('0x3e')],this[_0x9ebe('0xb1')][_0x9ebe('0xed')]),this[_0x9ebe('0x54')]=null,this[_0x9ebe('0xec')]=new Ct(this[_0x9ebe('0xb1')]),this[_0x9ebe('0x126')]=new Map(),this[_0x9ebe('0x5a')]=_0x5b0cd0[_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x73')),this[_0x9ebe('0xdb')]=new Set(),this[_0x9ebe('0x60')]=this[_0x9ebe('0xb1')][_0x9ebe('0x86')],this[_0x9ebe('0x105')]=new WeakMap(),this[_0x9ebe('0x4b')]=!0x1,_0x5b0cd0['config'][_0x9ebe('0x4f')](_0x9ebe('0xe3'),!0x0),this['_trackFormatChanges']=_0x5b0cd0[_0x9ebe('0x7')]['get']('trackChanges.trackFormatChanges'),this[_0x9ebe('0x49')]=new _0x51065e(_0x5b0cd0,this['_enabledCommands']),this[_0x4165dc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4165dc([0x34,0x30,0x34,0x36,0x30,0x38,0x33,0x38]);}['init'](){const _0x530df3=this[_0x9ebe('0xb1')];_0x530df3['conversion']['for']('editingDowncast')[_0x9ebe('0xe8')]({'model':'suggestion','view':_0x39f991=>{const {id:_0x138c35,type:_0x32d7cd}=this[_0x9ebe('0x134')](_0x39f991['markerName']),_0x5c85f7=['ck-suggestion-marker',_0x9ebe('0x12d')+_0x32d7cd];let _0x1b6242=0xbb8;return this[_0x9ebe('0x26')][_0x9ebe('0x129')](_0x39f991[_0x9ebe('0x65')])&&(_0x5c85f7['push'](_0x9ebe('0x77')),_0x1b6242=0xbc2),_0x9ebe('0xf1')==_0x32d7cd&&(_0x1b6242+=0x5),{'classes':_0x5c85f7,'attributes':{'data-suggestion':_0x138c35},'priority':_0x1b6242};}}),_0x530df3['conversion'][_0x9ebe('0x2')]('dataDowncast')[_0x9ebe('0x104')](_0x4e4897=>{_0x4e4897['on']('addMarker:suggestion',(_0x42a26b,_0x4376b8,_0x4f1534)=>{if(!_0x4f1534[_0x9ebe('0xc1')][_0x9ebe('0xfc')])return;const _0xefcd96=_0x4376b8['item'];if(!_0xefcd96)return;const _0x4086c1=_0x4f1534[_0x9ebe('0xb3')][_0x9ebe('0x1e')](_0xefcd96);_0x530df3['model']['schema']['isObject'](_0xefcd96)&&_0x4086c1&&!_0x4086c1['getCustomProperty']('widget')&&_0x4086c1['is'](_0x9ebe('0xef'))&&_0x78162b(_0x4086c1,_0x4f1534[_0x9ebe('0x85')]);},{'priority':_0x9ebe('0xc')});}),_0x530df3['conversion'][_0x9ebe('0x2')](_0x9ebe('0x98'))[_0x9ebe('0xe8')]({'model':_0x9ebe('0xaa'),'view':(_0x3a5463,_0x567f93)=>{if(!_0x567f93[_0x9ebe('0xc1')][_0x9ebe('0xfc')])return null;const {type:_0x37f42f}=this[_0x9ebe('0x134')](_0x3a5463[_0x9ebe('0x65')]);return{'classes':[_0x9ebe('0x9d'),_0x9ebe('0x12d')+_0x37f42f],'priority':0xbb8};}});const _0x24fdc8=({showActiveMarkers:_0x46be9e=!0x0}={})=>(_0x210a15,_0x27512a,_0x2e1404)=>{if(!_0x27512a[_0x9ebe('0x124')])return;if(_0x27512a[_0x9ebe('0x124')]['is'](_0x9ebe('0x8e')))return void _0x2e1404[_0x9ebe('0xa')]['consume'](_0x27512a[_0x9ebe('0x124')],_0x210a15['name']);const _0x43006a=_0x2e1404[_0x9ebe('0xb3')][_0x9ebe('0x1e')](_0x27512a[_0x9ebe('0x124')]);if(!(_0x27512a[_0x9ebe('0x124')]['is'](_0x9ebe('0xd0'))&&_0x530df3[_0x9ebe('0x86')]['schema'][_0x9ebe('0x31')](_0x27512a['item'])&&!_0x43006a[_0x9ebe('0x110')](_0x9ebe('0x33'))))return;const {id:_0x27a31a}=this[_0x9ebe('0x134')](_0x27512a['markerName']);_0x2e1404[_0x9ebe('0x85')][_0x9ebe('0xe9')]([_0x9ebe('0x9d'),'ck-suggestion-marker-formatBlock'],_0x43006a),_0x2e1404['writer']['setAttribute'](_0x9ebe('0x99'),_0x27a31a,_0x43006a),_0x2e1404[_0x9ebe('0xb3')][_0x9ebe('0xa0')](_0x43006a,_0x27512a[_0x9ebe('0x65')]),_0x46be9e&&(this[_0x9ebe('0x26')][_0x9ebe('0x129')](_0x27512a[_0x9ebe('0x65')])?_0x2e1404[_0x9ebe('0x85')][_0x9ebe('0xe9')]('ck-suggestion-marker--active',_0x43006a):_0x2e1404[_0x9ebe('0x85')]['removeClass'](_0x9ebe('0x77'),_0x43006a));for(const _0x2fd9d7 of _0x530df3[_0x9ebe('0x86')][_0x9ebe('0x28')](_0x27512a[_0x9ebe('0x124')])[_0x9ebe('0xd5')]())_0x2e1404['consumable'][_0x9ebe('0x43')](_0x2fd9d7,_0x210a15['name']);_0x2e1404[_0x9ebe('0xa')]['consume'](_0x27512a[_0x9ebe('0x124')],_0x210a15[_0x9ebe('0xcd')]);};_0x530df3[_0x9ebe('0x7d')][_0x9ebe('0x2')](_0x9ebe('0x98'))[_0x9ebe('0x104')](_0x3348d4=>{_0x3348d4['on'](_0x9ebe('0x90'),(_0x593d1d,_0x87446f,_0x50e829)=>{_0x50e829[_0x9ebe('0xc1')][_0x9ebe('0xfc')]&&_0x24fdc8({'showActiveMarkers':!0x1})(_0x593d1d,_0x87446f,_0x50e829);},{'priority':_0x9ebe('0xd9')});}),_0x530df3[_0x9ebe('0x7d')]['for'](_0x9ebe('0x98'))[_0x9ebe('0x1f')]({'model':_0x9ebe('0xaa'),'view':(_0x417bb9,_0x3782bc)=>_0x3782bc[_0x9ebe('0xc1')][_0x9ebe('0xfc')]?null:{'group':_0x9ebe('0xaa'),'name':_0x417bb9[_0x9ebe('0xfd')](0xb)}}),_0x530df3[_0x9ebe('0x7d')]['for'](_0x9ebe('0xbb'))[_0x9ebe('0x11a')]({'view':{'name':_0x9ebe('0xaa'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4453b0,{writer:_0x17fe5c})=>{let _0x1e0b4d=_0x9ebe('0x11f')+_0x4453b0[_0x9ebe('0x17')](_0x9ebe('0x78'))+':'+_0x4453b0['getAttribute']('id');return _0x4453b0[_0x9ebe('0x17')]('marker-count')&&(_0x1e0b4d+=':'+_0x4453b0[_0x9ebe('0x17')](_0x9ebe('0x103'))),_0x17fe5c[_0x9ebe('0x75')](_0x9ebe('0x5e'),{'data-name':_0x1e0b4d});}}),_0x530df3[_0x9ebe('0x7d')]['for'](_0x9ebe('0xbb'))[_0x9ebe('0x76')]({'view':_0x9ebe('0xaa')}),_0x530df3['conversion'][_0x9ebe('0x2')](_0x9ebe('0x11d'))[_0x9ebe('0x104')](_0x217982=>{_0x217982['on'](_0x9ebe('0x90'),_0x24fdc8(),{'priority':_0x9ebe('0xc')});}),_0x530df3[_0x9ebe('0x7d')][_0x9ebe('0x2')]('editingDowncast')[_0x9ebe('0x104')](_0x2f9880=>{_0x2f9880['on'](_0x9ebe('0x46'),(_0x4ccd63,_0x2e65ff,_0x51e191)=>{const _0x186465=_0x51e191[_0x9ebe('0xb3')][_0x9ebe('0x20')](_0x2e65ff[_0x9ebe('0x65')]);if(_0x186465)for(const _0xdd629d of _0x186465)_0xdd629d[_0x9ebe('0x110')](_0x9ebe('0x33'))||(_0x51e191['writer']['removeClass']([_0x9ebe('0x9d'),_0x9ebe('0x8a'),'ck-suggestion-marker--active'],_0xdd629d),_0x51e191[_0x9ebe('0x85')][_0x9ebe('0x10c')](_0x9ebe('0x99'),_0xdd629d),_0x51e191[_0x9ebe('0xb3')][_0x9ebe('0x9')](_0xdd629d,_0x2e65ff[_0x9ebe('0x65')]));},{'priority':_0x9ebe('0xc')});}),_0x530df3[_0x9ebe('0x86')]['document']['registerPostFixer'](_0x35bc6a=>{let _0x1dc850=!0x1;const _0x2e4bb5=Array[_0x9ebe('0x130')](_0x530df3[_0x9ebe('0x86')]['document'][_0x9ebe('0xf3')][_0x9ebe('0x58')]()),_0x34a43b=new Set();for(const {name:_0x529de0,data:_0x472172}of _0x2e4bb5){const {group:_0x2428c5,type:_0x455abe,id:_0x3c7e74}=this[_0x9ebe('0x134')](_0x529de0);if(_0x9ebe('0xaa')!==_0x2428c5)continue;const _0x480bc0=this['_suggestions'][_0x9ebe('0x24')](_0x3c7e74);if(null!=_0x472172[_0x9ebe('0xb6')]){_0x9ebe('0x50')==_0x455abe&&(_0x1dc850=_0x1dc850||Mt(_0x472172[_0x9ebe('0xb6')],_0x529de0,_0x35bc6a,_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x3e')]));if(_0x472172[_0x9ebe('0xb6')][_0x9ebe('0x6d')]||_0x9ebe('0x3d')==_0x472172['newRange'][_0x9ebe('0xc3')][_0x9ebe('0x4e')]||_0x9ebe('0x92')==_0x455abe&&!Nt(_0x472172[_0x9ebe('0xb6')])||_0x9ebe('0xf1')==_0x455abe&&!(!_t(_0xb55b7b=_0x472172[_0x9ebe('0xb6')])&&!function(_0x3714a2){return _0x3714a2['start'][_0x9ebe('0x10f')]==_0x3714a2[_0x9ebe('0x89')][_0x9ebe('0x12e')]&&_0x3714a2['start'][_0x9ebe('0xd4')];}(_0xb55b7b)))_0x35bc6a[_0x9ebe('0xc8')](_0x529de0),_0x1dc850=!0x0;else{if(!_0x480bc0||!_0x480bc0[_0x9ebe('0x12')])continue;_0x34a43b[_0x9ebe('0x104')](_0x480bc0);}}}var _0xb55b7b;return _0x34a43b[_0x9ebe('0x55')]>0x0&&(_0x1dc850=!!this['_joinWithAdjacentSuggestions'](_0x34a43b)||_0x1dc850),_0x1dc850;}),_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x5')][_0x9ebe('0x83')](_0x1ab37c=>{let _0x4b9426=!0x1;for(const _0x598e99 of _0x530df3[_0x9ebe('0x86')][_0x9ebe('0x5')]['differ'][_0x9ebe('0x53')]()){if(_0x9ebe('0x96')!=_0x598e99[_0x9ebe('0x44')])continue;const _0x51398f=_0x598e99['position'][_0x9ebe('0x8')](_0x598e99['length']);if(_0x51398f['isAtEnd'])for(const _0x90029f of this[_0x9ebe('0x126')][_0x9ebe('0x2b')]()){if(_0x90029f[_0x9ebe('0x12f')]||!_0x90029f[_0x9ebe('0x12')])continue;if('formatBlock'!=_0x90029f['type'])continue;const _0x40c41f=_0x90029f['getFirstRange']();if(_0x40c41f[_0x9ebe('0x8f')]['parent']!=_0x40c41f['end'][_0x9ebe('0x10f')]&&_0x40c41f[_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x598e99['position'])){const _0x2880e8=_0x530df3[_0x9ebe('0x86')]['createRange'](_0x40c41f[_0x9ebe('0x8f')],_0x51398f);_0x1ab37c['updateMarker'](_0x90029f[_0x9ebe('0xa9')](),{'range':_0x2880e8}),_0x4b9426=!0x0;}}}return _0x4b9426;}),_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x9c')]['on']('update:suggestion',(_0x14b2a8,_0x3fa746,_0x14c23c)=>{if(null==_0x14c23c){const {id:_0x1f7f5e}=this[_0x9ebe('0x134')](_0x3fa746['name']),_0x5ed5b9=this['_suggestions'][_0x9ebe('0x24')](_0x1f7f5e);_0x5ed5b9&&_0x5ed5b9[_0x9ebe('0x27')](_0x3fa746[_0x9ebe('0xcd')]);}}),_0x530df3['model'][_0x9ebe('0x5')]['on'](_0x9ebe('0x3b'),()=>{const _0x1aca63=Array['from'](_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x5')][_0x9ebe('0xf3')][_0x9ebe('0x58')]())[_0x9ebe('0x80')](_0x1d8f34=>_0x9ebe('0xaa')===this[_0x9ebe('0x134')](_0x1d8f34[_0x9ebe('0xcd')])['group']);if(0x0===_0x1aca63['length'])return;_0x1aca63[_0x9ebe('0x21')]((_0x2afe3d,_0x23bff8)=>{const _0x49dfd8=_0x2afe3d[_0x9ebe('0x6')]['oldRange'],_0x261ce5=_0x23bff8[_0x9ebe('0x6')][_0x9ebe('0x117')];return null===_0x49dfd8&&null===_0x261ce5?0x0:null===_0x49dfd8&&null!==_0x261ce5?-0x1:null!==_0x49dfd8&&null===_0x261ce5?0x1:_0x49dfd8[_0x9ebe('0x8f')][_0x9ebe('0xb5')](_0x261ce5[_0x9ebe('0x8f')])?-0x1:0x1;});const _0x7efa6c=new Set(),_0x224883=new Set();for(const {name:_0x202e1c,data:_0x42d297}of _0x1aca63){const {id:_0xa00184}=this['_splitMarkerName'](_0x202e1c);if(null===_0x42d297['oldRange']){const _0x48c61f=this[_0x9ebe('0x36')](_0x202e1c);_0x224883[_0x9ebe('0x104')](_0x48c61f);}else{const _0x20206d=this[_0x9ebe('0x126')]['get'](_0xa00184);null!==_0x42d297[_0x9ebe('0xb6')]||_0x20206d[_0x9ebe('0x12')]?(_0x7efa6c['add'](_0x20206d['head']),_0x224883[_0x9ebe('0x104')](_0x20206d)):this['_removeSuggestion'](_0x20206d);}}_0x224883[_0x9ebe('0x55')]>0x0&&this[_0x9ebe('0x108')](_0x224883);for(const _0x582271 of _0x7efa6c)this[_0x9ebe('0xd8')](_0x9ebe('0x70'),_0x582271);}),_0x530df3[_0x9ebe('0x86')]['on'](_0x9ebe('0x139'),(_0x2fb8c5,_0x29784f)=>{const _0x158256=_0x29784f[0x0];if(!this['_suggestions'][_0x9ebe('0x55')])return;if(!_0x158256['isDocumentOperation'])return;if(_0x158256[_0x9ebe('0x123')][_0x9ebe('0x133')]||!_0x158256[_0x9ebe('0x123')][_0x9ebe('0xac')])return;let _0x2ca0de,_0x37f03c;switch(_0x158256[_0x9ebe('0x44')]){case _0x9ebe('0x96'):_0x2ca0de=_0x530df3['model'][_0x9ebe('0x93')](_0x158256['position']),_0x37f03c=_0x2ca0de[_0x9ebe('0x8')](_0x158256[_0x9ebe('0xc7')]);break;case'split':_0x2ca0de=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x93')](_0x158256[_0x9ebe('0x115')]),_0x37f03c=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x93')](_0x158256[_0x9ebe('0xdc')]);break;case'move':_0x2ca0de=_0x530df3[_0x9ebe('0x86')]['createPositionAt'](_0x158256[_0x9ebe('0x10')]),_0x37f03c=_0x2ca0de[_0x9ebe('0x8')](_0x158256[_0x9ebe('0xc7')]);break;default:return;}const _0x4227e0=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x11c')](_0x2ca0de,_0x37f03c);_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x45')](()=>{for(const {suggestion:_0x282bed,meta:_0x2ad730}of this[_0x9ebe('0x14')](_0x4227e0)){if(_0x282bed[_0x9ebe('0x12f')])continue;if('formatInline'==_0x282bed[_0x9ebe('0x44')])continue;const _0xd4e78a=_0x282bed[_0x9ebe('0x6')]&&_0x282bed[_0x9ebe('0x6')][_0x9ebe('0xd3')];(_0x9ebe('0x92')!=_0x282bed['type']||_0x9ebe('0x101')==_0x158256['type']&&!_0xd4e78a)&&(_0x2ad730[_0x9ebe('0x56')]||_0x9ebe('0x25')==_0x282bed[_0x9ebe('0x44')]&&_0x2ad730['isOwn']||_0x282bed['getFirstRange']()[_0x9ebe('0x15')](_0x4227e0)&&this[_0x9ebe('0x113')](_0x282bed,_0x2ca0de,_0x37f03c));}});},{'priority':_0x9ebe('0xcb')}),_0x530df3[_0x9ebe('0x86')]['on'](_0x9ebe('0xaf'),(_0x41b36b,_0x579920)=>{const _0x4abd90=_0x579920[0x0],_0x524d15=_0x579920[0x1];if(_0x524d15&&_0x524d15[_0x9ebe('0x94')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x9ebe('0x49')][_0x9ebe('0xdd')])return;if(_0x4abd90[_0x9ebe('0x6d')])return;const _0x51009f=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x3e')],{start:_0x125b8d,end:_0x52530e}=_0x4abd90['getFirstRange'](),_0x126786=_0x125b8d['nodeAfter']&&_0x51009f[_0x9ebe('0x10d')](_0x125b8d[_0x9ebe('0x1b')])?null:_0x51009f['getNearestSelectionRange'](_0x125b8d,'forward'),_0x5737a1=_0x52530e['nodeBefore']&&_0x51009f[_0x9ebe('0x10d')](_0x52530e[_0x9ebe('0x12e')])?null:_0x51009f[_0x9ebe('0x19')](_0x52530e,_0x9ebe('0x9b')),_0x2a804c=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x11c')](_0x126786?_0x126786[_0x9ebe('0x8f')]:_0x125b8d,_0x5737a1?_0x5737a1['end']:_0x52530e);_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x45')](_0x3ae5a2=>{this[_0x9ebe('0x29')](_0x2a804c);const _0x41dfb6=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x3e')][_0x9ebe('0x19')](_0x2a804c[_0x9ebe('0x8f')]);_0x4abd90['is'](_0x9ebe('0xad'))?_0x3ae5a2['setSelection'](_0x41dfb6):_0x4abd90[_0x9ebe('0x136')](_0x41dfb6);}),_0x41b36b[_0x9ebe('0x4d')]();},{'priority':_0x4039f0[_0x9ebe('0x116')]+0xa}),_0x530df3['model']['on']('insertContent',(_0x3d65ad,_0x52d751)=>{const _0xfb2e6=_0x52d751[_0x52d751[_0x9ebe('0xb')]-0x1];_0xfb2e6&&_0xfb2e6[_0x9ebe('0x94')]||this[_0x9ebe('0x4b')]||this[_0x9ebe('0x49')][_0x9ebe('0xdd')]&&(_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x45')](()=>{let _0x2d59ae=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x137')](_0x52d751[0x0],_0x52d751[0x1],_0x52d751[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d59ae)return;_0x3d65ad[_0x9ebe('0xa1')]=_0x2d59ae[_0x9ebe('0x57')]();const _0x2eca08=_0x2d59ae[_0x9ebe('0x89')][_0x9ebe('0x12e')],_0x4752d3=_0x530df3[_0x9ebe('0x86')][_0x9ebe('0x3e')];_0x2eca08&&_0x4752d3['isBlock'](_0x2eca08)&&!_0x4752d3['isObject'](_0x2eca08)&&(_0x2d59ae=_0x530df3['model'][_0x9ebe('0x11c')](_0x2d59ae[_0x9ebe('0x8f')],_0x530df3['model'][_0x9ebe('0x93')](_0x2eca08,_0x9ebe('0x89')))),this['markInsertion'](_0x2d59ae);}),_0x3d65ad['stop']());},{'priority':_0x9ebe('0xc')}),this[_0x9ebe('0xb1')][_0x9ebe('0x135')][_0x9ebe('0x104')](_0x9ebe('0x12c'),this[_0x9ebe('0x49')]),this[_0x9ebe('0x7f')](_0x9ebe('0x12c'));const _0x5cc585=new _0x1e1b09(_0x530df3,this[_0x9ebe('0x126')]);_0x530df3[_0x9ebe('0x135')][_0x9ebe('0x104')](_0x9ebe('0xbc'),_0x5cc585),this[_0x9ebe('0x7f')](_0x9ebe('0xbc'));const _0x553647=new _0x3693e3(_0x530df3,this[_0x9ebe('0x126')]);_0x530df3[_0x9ebe('0x135')][_0x9ebe('0x104')](_0x9ebe('0x12b'),_0x553647),this[_0x9ebe('0x7f')]('discardSuggestion'),_0x530df3[_0x9ebe('0x135')]['add'](_0x9ebe('0x100'),new _0x5c1c31(_0x530df3,_0x5cc585,this[_0x9ebe('0x126')])),this[_0x9ebe('0x7f')](_0x9ebe('0x100')),_0x530df3[_0x9ebe('0x135')]['add']('discardAllSuggestions',new _0x5c1c31(_0x530df3,_0x553647,this[_0x9ebe('0x126')])),this[_0x9ebe('0x7f')](_0x9ebe('0x2c')),_0x530df3[_0x9ebe('0x135')][_0x9ebe('0x104')]('acceptSelectedSuggestions',new _0x46d85a(_0x530df3,_0x5cc585,this['_suggestions'])),this[_0x9ebe('0x7f')]('acceptSelectedSuggestions'),_0x530df3['commands'][_0x9ebe('0x104')]('discardSelectedSuggestions',new _0x46d85a(_0x530df3,_0x553647,this[_0x9ebe('0x126')])),this['enableCommand']('discardSelectedSuggestions');const _0xba1b4d=_0x530df3[_0x9ebe('0x2f')]['get'](_0x9ebe('0x73'));this['listenTo'](_0xba1b4d,_0x9ebe('0xe7'),(_0x557236,{threadId:_0x112c79})=>{const _0x290b53=this[_0x9ebe('0x126')][_0x9ebe('0x24')](_0x112c79);_0x290b53&&_0x290b53[_0x9ebe('0x6c')]&&0x1===_0x290b53[_0x9ebe('0x6c')][_0x9ebe('0xb')]&&this['_updateSuggestionData'](_0x112c79,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xba1b4d,'removeComment',(_0x33f077,{threadId:_0x592408})=>{const _0x196f7f=this[_0x9ebe('0x126')]['get'](_0x592408);_0x196f7f&&_0x196f7f['commentThread']&&!_0x196f7f[_0x9ebe('0x6c')][_0x9ebe('0xb')]&&this[_0x9ebe('0xc2')](_0x592408,{'hasComments':!0x1});},{'priority':_0x9ebe('0xbe')});}set[_0x9ebe('0xce')](_0x35af03){if(this[_0x9ebe('0x54')])throw new _0x168803('track-changes-adapter-already-set',this);this[_0x9ebe('0x54')]=_0x35af03;}get['adapter'](){return this[_0x9ebe('0x54')];}[_0x9ebe('0x5b')]({skipNotAttached:_0x147d12=!0x1,toJSON:_0x3f260d=!0x1}={}){const _0x16c068=[];for(const _0x19592c of this[_0x9ebe('0x126')][_0x9ebe('0x2b')]())_0x147d12&&!_0x19592c['isInContent']||_0x16c068[_0x9ebe('0x66')](_0x19592c);return _0x3f260d?_0x16c068['map'](_0x324ae9=>_0x324ae9[_0x9ebe('0x48')]()):_0x16c068;}['getSuggestion'](_0x29b15e){const _0x522b08=this['_suggestions'][_0x9ebe('0x24')](_0x29b15e);if(!_0x522b08)throw new _0x168803('track-changes-suggestion-not-found',this);return _0x522b08;}[_0x9ebe('0x1c')](_0x35539f){return this[_0x9ebe('0x126')]['has'](_0x35539f);}[_0x9ebe('0x68')](_0x5eac4b){const {authorId:_0x5a3eb4,id:_0x267fd9,attributes:_0x9f8875}=_0x5eac4b,[_0x4182b8,_0xc62a29]=_0x5eac4b[_0x9ebe('0x44')][_0x9ebe('0x101')](':'),_0x5195b5=this[_0x9ebe('0x126')][_0x9ebe('0x24')](_0x267fd9)||this['_createSuggestion'](_0x4182b8,_0xc62a29,_0x267fd9,_0x5a3eb4,_0x9f8875);if(this[_0x9ebe('0x5f')](_0x5195b5),this[_0x9ebe('0x40')](_0x5195b5,_0x4182b8,_0xc62a29||null,_0x5a3eb4),_0x5195b5[_0x9ebe('0x81')]=_0x5eac4b[_0x9ebe('0x81')],_0x9f8875&&_0x9f8875[_0x9ebe('0x34')]){const _0x11b33e=_0x9f8875[_0x9ebe('0x34')],_0x1ec474=this[_0x9ebe('0x74')](_0x11b33e[_0x9ebe('0xd1')]);_0x5195b5[_0x9ebe('0x3a')]=_0x11b33e[_0x9ebe('0x81')],_0x5195b5[_0x9ebe('0x6a')]=_0x1ec474,_0x5195b5[_0x9ebe('0x2a')]=!0x0;}else _0x5195b5['authoredAt']=_0x5eac4b['createdAt'];switch(_0x5eac4b[_0x9ebe('0x6')]&&(_0x5195b5['data']=_0x5eac4b[_0x9ebe('0x6')]),_0x5eac4b[_0x9ebe('0x128')]&&(_0x5195b5[_0x9ebe('0x128')]=_0x5eac4b[_0x9ebe('0x128')]),this[_0x9ebe('0x54')]&&this[_0x9ebe('0x54')][_0x9ebe('0x10a')]||(_0x5195b5[_0x9ebe('0x2e')]=!0x0),this[_0x9ebe('0x105')][_0x9ebe('0x24')](_0x5195b5)){case _0x9ebe('0x102'):this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x5195b5,_0x9ebe('0x8d'));break;case _0x9ebe('0x112'):_0x5195b5[_0x9ebe('0x12')]?(this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x5195b5,'ready'),this[_0x9ebe('0xd8')](_0x9ebe('0x69'),_0x5195b5)):this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x5195b5,_0x9ebe('0x64'));}return _0x5195b5;}['acceptSuggestion'](_0x447ed0){this[_0x9ebe('0x94')](()=>{this[_0x9ebe('0xb1')]['model'][_0x9ebe('0x45')](()=>{for(const _0x1a33d0 of _0x447ed0[_0x9ebe('0x12a')]())_0x1a33d0[_0x9ebe('0x125')]();});});}['discardSuggestion'](_0x304021){this[_0x9ebe('0x94')](()=>{this[_0x9ebe('0xb1')][_0x9ebe('0x86')][_0x9ebe('0x45')](()=>{for(const _0x465bdf of _0x304021[_0x9ebe('0x12a')]())_0x465bdf[_0x9ebe('0x23')]();});});}[_0x9ebe('0x7f')](_0x2cd5ef,_0x15a6db){const _0x740185=this['editor'][_0x9ebe('0x135')][_0x9ebe('0x24')](_0x2cd5ef);if(!_0x740185)throw new _0x168803(_0x9ebe('0x121'),this,{'commandName':_0x2cd5ef});this[_0x9ebe('0xdb')][_0x9ebe('0x104')](_0x740185),_0x15a6db&&_0x740185['on']('execute',(_0x5ef923,_0x541c99)=>{this[_0x9ebe('0x49')][_0x9ebe('0xdd')]&&(this['_isForcedDefaultExecutionBlock']||_0x541c99[_0x9ebe('0xb')]>0x0&&_0x541c99[_0x541c99[_0x9ebe('0xb')]-0x1]&&_0x541c99[_0x541c99['length']-0x1][_0x9ebe('0x94')]||(_0x15a6db((..._0x2013b4)=>_0x740185[_0x9ebe('0xff')](..._0x2013b4,{'forceDefaultExecution':!0x0}),..._0x541c99),_0x5ef923['stop']()));},{'priority':'high'});}[_0x9ebe('0x94')](_0x3cbe36){let _0x1391eb,_0x4a9b5b;const _0x2cd869=this[_0x9ebe('0x4b')];this[_0x9ebe('0x4b')]=!0x0;try{_0x1391eb=_0x3cbe36();}catch(_0x5ccede){_0x4a9b5b=_0x5ccede;}return _0x2cd869||(this[_0x9ebe('0x4b')]=!0x1),_0x4a9b5b&&_0x168803[_0x9ebe('0x118')](_0x4a9b5b,this),_0x1391eb;}['markInsertion'](_0x2903d0,_0x4943af=null,_0x587fd5={}){if(_0x2903d0[_0x9ebe('0x6d')])return null;const _0x4896e0=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x120'))['me'];for(const {suggestion:_0x2ba625,meta:_0x2d2f66}of this[_0x9ebe('0x14')](_0x2903d0,_0x9ebe('0x25')))if(_0x2d2f66[_0x9ebe('0x4a')]){if(!_0x2d2f66[_0x9ebe('0xe5')])return _0x2ba625;if(_0x4943af==_0x2ba625[_0x9ebe('0x2d')]){const _0x9c37f=_0x2ba625[_0x9ebe('0xe2')]();return _0x9c37f[_0x9ebe('0x8f')][_0x9ebe('0xdf')](_0x2903d0['end'])?this[_0x9ebe('0x59')](_0x2ba625,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x2903d0[_0x9ebe('0x8f')],_0x9c37f[_0x9ebe('0x89')])):this[_0x9ebe('0x59')](_0x2ba625,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x9c37f['start'],_0x2903d0['end'])),_0x2ba625;}}const _0x59990a=_0x4e3532(),_0x2c9aad=_0x4896e0['id'],_0x513555=_0x4943af?_0x9ebe('0x6e')+_0x4943af:_0x9ebe('0x25'),_0x574d59=this[_0x9ebe('0x41')]({'id':_0x59990a,'type':_0x513555,'createdAt':new Date(),'authorId':_0x2c9aad,'attributes':_0x587fd5});return this[_0x9ebe('0x67')](_0x513555,_0x59990a,_0x2c9aad,_0x2903d0),_0x574d59;}[_0x9ebe('0xee')](_0x4f2bd8,_0x3c55f3='multi',_0x2d3d0f={}){const _0x526057=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')]('Users')['me'],_0x3e5ce1=this['_suggestionFactory'][_0x9ebe('0x9a')](_0x9ebe('0x25'),_0x3c55f3,_0x9ebe('0x10b'));for(const _0x2958ef of this[_0x9ebe('0x5b')]())if(_0x2958ef[_0x9ebe('0x6a')]['id']==_0x526057['id']&&_0x9ebe('0x25')==_0x2958ef['type']&&_0x2958ef['subType']==_0x3c55f3&&(_0x3e5ce1(_0x2958ef['getRanges'](),_0x4f2bd8)||_0x3e5ce1(_0x4f2bd8,_0x2958ef[_0x9ebe('0xb2')]()))){for(const _0x88c28 of _0x4f2bd8)_0x2958ef['addRange'](_0x88c28);return _0x2958ef;}for(const _0x498b7d of _0x4f2bd8)for(const {suggestion:_0x4f03d9,meta:_0x3649d0}of this[_0x9ebe('0x14')](_0x498b7d,_0x9ebe('0x25'))){if(!_0x3649d0[_0x9ebe('0x4a')])continue;let _0x188d8f=!0x0;for(const _0x55d4df of _0x4f03d9[_0x9ebe('0xb2')]())for(const _0x1246a7 of _0x4f2bd8)if(!_0x55d4df[_0x9ebe('0x15')](_0x1246a7)){_0x188d8f=!0x1;break;}if(_0x188d8f)return _0x4f03d9;}const _0x423659=_0x4e3532(),_0x50dbf0=_0x526057['id'],_0x505cf2=_0x9ebe('0x6e')+_0x3c55f3,_0x56ba9c=this[_0x9ebe('0x41')]({'id':_0x423659,'type':_0x505cf2,'createdAt':new Date(),'authorId':_0x50dbf0,'attributes':_0x2d3d0f});for(const _0x300a63 of _0x4f2bd8)this[_0x9ebe('0x67')](_0x505cf2,_0x423659,_0x50dbf0,_0x300a63,_0x428cce[_0x9ebe('0xa6')]());return _0x56ba9c;}['markInlineFormat'](_0x23acdb,_0x1b3b51,_0x3ba164=null,_0x138b31={}){if(_0x3ba164=_0x3ba164||$t(_0x1b3b51),_0x23acdb[_0x9ebe('0x6d')])return null;if(!0x1===this[_0x9ebe('0x122')]){const _0x2cbc6c=this[_0x9ebe('0xec')]['getSuggestionCallback']('formatInline',_0x3ba164,_0x9ebe('0x125'));return this['forceDefaultExecution'](()=>_0x2cbc6c([_0x23acdb],_0x1b3b51,_0x138b31)),null;}const _0x528ba4=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x120'))['me'],_0x3f7813=[];for(const {suggestion:_0xffe180,meta:_0x19c01e}of this[_0x9ebe('0x14')](_0x23acdb,'insertion'))_0x19c01e[_0x9ebe('0x4a')]&&!_0x19c01e[_0x9ebe('0x0')]&&_0x3f7813[_0x9ebe('0x66')](..._0xffe180['getRanges']());const _0x18a910=function(_0x2f73dd,_0x3382d7){const _0x409a5b=[];for(const _0x1c2e95 of _0x3382d7){const _0x1c941c=_0x2f73dd[_0x9ebe('0xf6')](_0x1c2e95);_0x1c941c&&_0x409a5b[_0x9ebe('0x66')](_0x1c941c);}return _0x409a5b;}(_0x23acdb,_0x3f7813),_0x355bd0=function(_0x97fa20,_0x3ed068){const _0x41f045=[_0x97fa20];for(const _0x1752e1 of _0x3ed068){let _0x47be28=0x0;for(;_0x47be28<_0x41f045['length'];){const _0x52f39f=_0x41f045[_0x47be28][_0x9ebe('0xbf')](_0x1752e1);_0x41f045['splice'](_0x47be28,0x1,..._0x52f39f),_0x47be28+=_0x52f39f[_0x9ebe('0xb')];}}return _0x41f045;}(_0x23acdb,_0x3f7813);_0x18a910[_0x9ebe('0xb')]&&this[_0x9ebe('0x60')][_0x9ebe('0x45')](()=>{for(const _0x4adbb8 of _0x18a910){const _0x43c2ff=this[_0x9ebe('0xec')]['getSuggestionCallback'](_0x9ebe('0x50'),_0x3ba164,_0x9ebe('0x125'));this['forceDefaultExecution'](()=>_0x43c2ff([_0x4adbb8],_0x1b3b51,_0x138b31));}});for(const _0x37de74 of _0x355bd0){let _0x3784f1=null,_0x3bfdd1=_0x37de74[_0x9ebe('0x8f')],_0x43ee04=_0x37de74[_0x9ebe('0x89')];for(const {suggestion:_0x3a370,meta:_0x4af832}of this['_findSuggestions'](_0x37de74,_0x9ebe('0x50'))){if(!_0x4af832['isOwn'])continue;if(_0x3a370[_0x9ebe('0x2d')]!=_0x3ba164)continue;const _0xab4764=_0x3a370[_0x9ebe('0xe2')]();if(_0xab4764['containsRange'](_0x37de74,!0x0))return null;_0x3bfdd1=_0x3bfdd1[_0x9ebe('0xb5')](_0xab4764[_0x9ebe('0x8f')])?_0x3bfdd1:_0xab4764[_0x9ebe('0x8f')],_0x43ee04=_0x43ee04[_0x9ebe('0x127')](_0xab4764[_0x9ebe('0x89')])?_0x43ee04:_0xab4764[_0x9ebe('0x89')],_0x3784f1?_0xab4764[_0x9ebe('0x8f')]['isBefore'](_0x3784f1[_0x9ebe('0xe2')]()[_0x9ebe('0x8f')])?(_0x3784f1[_0x9ebe('0x3c')](),_0x3784f1=_0x3a370):_0x3a370[_0x9ebe('0x3c')]():_0x3784f1=_0x3a370;}const _0x86603c=this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x3bfdd1,_0x43ee04);if(_0x3784f1)this['_setSuggestionRange'](_0x3784f1,_0x86603c);else{const _0x1e2db1=_0x4e3532(),_0x14bd0b=_0x528ba4['id'];this[_0x9ebe('0x41')]({'id':_0x1e2db1,'type':'formatInline:'+_0x3ba164,'data':_0x1b3b51,'createdAt':new Date(),'authorId':_0x14bd0b,'attributes':_0x138b31}),this[_0x9ebe('0x67')](_0x9ebe('0x52')+_0x3ba164,_0x1e2db1,_0x14bd0b,_0x86603c);}}return null;}['markBlockFormat'](_0x5cb96c,_0x22d60c,_0x8e5acb=[],_0x1865f9=null,_0x3dad79={}){_0x22d60c[_0x9ebe('0x87')]||(_0x22d60c['formatGroupId']=_0x22d60c[_0x9ebe('0xf4')]),_0x22d60c[_0x9ebe('0xd3')]=_0x5cb96c['is'](_0x9ebe('0x107')),_0x1865f9=_0x1865f9||$t(_0x22d60c);const _0x497611=_0x8e5acb[_0x9ebe('0xb9')](_0x32b82f=>Rt(_0x32b82f,this[_0x9ebe('0x60')])),_0xd500e7=_0x5cb96c['is'](_0x9ebe('0x107'))?_0x5cb96c:Rt(_0x5cb96c,this[_0x9ebe('0x60')]);if(!0x1===this[_0x9ebe('0x122')]){const _0x32c698=this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x9ebe('0x92'),_0x1865f9,'accept');return this[_0x9ebe('0x94')](()=>_0x32c698([_0xd500e7],_0x22d60c,_0x3dad79)),null;}_0x497611[_0x9ebe('0x66')](_0xd500e7);let _0x173aa8=!0x0;for(const _0x27871c of _0x497611)if(!this[_0x9ebe('0xfa')](_0x27871c)){_0x173aa8=!0x1;break;}if(_0x173aa8){const _0x251883=this[_0x9ebe('0xec')][_0x9ebe('0x9a')]('formatBlock',_0x1865f9,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x251883([_0xd500e7],_0x22d60c,_0x3dad79)),null;}let _0x40c552=null,_0x3fb4ba=_0xd500e7[_0x9ebe('0x8f')],_0x1d7268=_0xd500e7['end'];for(const {suggestion:_0x5d0c30,meta:_0x2c4269}of this['_findSuggestions'](_0xd500e7,_0x9ebe('0x92'))){if(!_0x2c4269[_0x9ebe('0x4a')]||_0x2c4269[_0x9ebe('0xe5')]||_0x2c4269[_0x9ebe('0x56')]||_0x2c4269[_0x9ebe('0x0')])continue;if(_0x5d0c30['data'][_0x9ebe('0x87')]!=_0x22d60c[_0x9ebe('0x87')])continue;const _0x10ed5e=_0x5d0c30[_0x9ebe('0xe2')]();if(_0x5d0c30[_0x9ebe('0x2d')]==_0x1865f9){if(_0x10ed5e[_0x9ebe('0x15')](_0xd500e7,!0x0))return null;_0x3fb4ba=_0x3fb4ba['isBefore'](_0x10ed5e['start'])?_0x3fb4ba:_0x10ed5e['start'],_0x1d7268=_0x1d7268[_0x9ebe('0x127')](_0x10ed5e[_0x9ebe('0x89')])?_0x1d7268:_0x10ed5e[_0x9ebe('0x89')],_0x40c552?_0x10ed5e[_0x9ebe('0x8f')][_0x9ebe('0xb5')](_0x40c552['getFirstRange']()[_0x9ebe('0x8f')])?(_0x40c552[_0x9ebe('0x3c')](),_0x40c552=_0x5d0c30):_0x5d0c30[_0x9ebe('0x3c')]():_0x40c552=_0x5d0c30;}else{const _0x1cb9a4=_0xd500e7[_0x9ebe('0xf6')](_0x10ed5e);this['_cutOutSuggestionMarker'](_0x5d0c30,_0x1cb9a4);}}const _0x729c84=this['editor'][_0x9ebe('0x2f')][_0x9ebe('0x24')]('Users')['me'],_0x50c5f9=_0x4e3532(),_0xb4d25e=_0x729c84['id'];if(_0x40c552)return this[_0x9ebe('0x59')](_0x40c552,this[_0x9ebe('0x60')]['createRange'](_0x3fb4ba,_0x1d7268)),_0x40c552;{const _0x33fbd0=this[_0x9ebe('0x41')]({'id':_0x50c5f9,'type':_0x9ebe('0xca')+_0x1865f9,'data':_0x22d60c,'createdAt':new Date(),'authorId':_0xb4d25e,'attributes':_0x3dad79});return this[_0x9ebe('0x67')](_0x9ebe('0xca')+_0x1865f9,_0x50c5f9,_0xb4d25e,this['_model']['createRange'](_0x3fb4ba,_0x1d7268)),_0x33fbd0;}}[_0x9ebe('0xf7')](_0x4be03f,_0x57dee3,_0x3cab08=[],_0x4c9fe3=null,_0x28ce50={}){_0x57dee3[_0x9ebe('0x87')]||(_0x57dee3[_0x9ebe('0x87')]=_0x57dee3[_0x9ebe('0xf4')]);const _0x36481e=_0x4be03f[0x0];_0x57dee3['multipleBlocks']=_0x36481e['is'](_0x9ebe('0x107')),_0x4c9fe3=_0x4c9fe3||$t(_0x57dee3);const _0x533138=_0x3cab08[_0x9ebe('0xb9')](_0x5971f8=>Rt(_0x5971f8,this[_0x9ebe('0x60')])),_0x1318f9=_0x36481e['is'](_0x9ebe('0x107'))?_0x4be03f:_0x4be03f[_0x9ebe('0xb9')](_0x51d8bc=>Rt(_0x51d8bc,this['_model']));if(!0x1===this[_0x9ebe('0x122')]){const _0x16c55d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c9fe3,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x16c55d(_0x1318f9,_0x57dee3,_0x28ce50)),null;}_0x533138['push'](..._0x1318f9);let _0x2161f2=!0x0;for(const _0xc275c5 of _0x533138)if(!this[_0x9ebe('0xfa')](_0xc275c5)){_0x2161f2=!0x1;break;}if(_0x2161f2){const _0x2de637=this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x9ebe('0x92'),_0x4c9fe3,'accept');return this[_0x9ebe('0x94')](()=>_0x2de637(_0x1318f9,_0x57dee3,_0x28ce50)),null;}const _0x2be6cc=this['editor'][_0x9ebe('0x2f')]['get']('Users')['me'];for(const _0x253d80 of this[_0x9ebe('0x5b')]()){if(_0x253d80['author']['id']!=_0x2be6cc['id'])continue;if('formatBlock'!=_0x253d80[_0x9ebe('0x44')]||_0x253d80[_0x9ebe('0x6')][_0x9ebe('0x87')]!=_0x57dee3[_0x9ebe('0x87')])continue;const _0x40db9d=_0x253d80['subType']==_0x4c9fe3;for(let _0x1982bf=0x0;_0x1982bf<_0x1318f9[_0x9ebe('0xb')];_0x1982bf++){const _0x3e9fb0=_0x1318f9[_0x1982bf];for(const _0x35e8f1 of _0x253d80[_0x9ebe('0x72')]()){const _0x561118=_0x35e8f1[_0x9ebe('0xf5')]();if(_0x3e9fb0[_0x9ebe('0xdf')](_0x561118)){_0x40db9d?(_0x1318f9['splice'](_0x1982bf,0x1),_0x1982bf--):_0x253d80[_0x9ebe('0xc8')](_0x35e8f1[_0x9ebe('0xcd')]);break;}}}}if(0x0==_0x1318f9[_0x9ebe('0xb')])return null;const _0x25c401=this['_suggestionFactory']['getSuggestionCallback'](_0x9ebe('0x92'),_0x4c9fe3,'join');for(const _0x3d84d3 of this[_0x9ebe('0x5b')]())if(_0x3d84d3['author']['id']==_0x2be6cc['id']&&_0x9ebe('0x92')==_0x3d84d3['type']&&_0x3d84d3[_0x9ebe('0x6')][_0x9ebe('0x87')]==_0x57dee3[_0x9ebe('0x87')]&&_0x3d84d3[_0x9ebe('0x2d')]==_0x4c9fe3&&(_0x25c401(_0x3d84d3[_0x9ebe('0xb2')](),_0x1318f9)||_0x25c401(_0x1318f9,_0x3d84d3[_0x9ebe('0xb2')]()))){for(const _0x163b82 of _0x1318f9)_0x3d84d3[_0x9ebe('0x138')](_0x163b82);return _0x3d84d3;}const _0x400c03=_0x4e3532(),_0x4ef0a0=_0x2be6cc['id'],_0x47c59f='formatBlock:'+_0x4c9fe3,_0x67c2b5=this['_setSuggestionData']({'id':_0x400c03,'type':_0x47c59f,'data':_0x57dee3,'createdAt':new Date(),'authorId':_0x4ef0a0,'attributes':_0x28ce50});for(const _0x2a7dae of _0x1318f9)this[_0x9ebe('0x67')](_0x47c59f,_0x400c03,_0x4ef0a0,_0x2a7dae,_0x428cce[_0x9ebe('0xa6')]());return _0x67c2b5;}[_0x9ebe('0x29')](_0x3f5d52,_0x27c61e=null,_0x595989={}){if(_0x3f5d52[_0x9ebe('0x6d')])return null;const _0x543ffb=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x120'))['me'],_0x4065ad=new _0x5ea0ee(_0x3f5d52[_0x9ebe('0x8f')],_0x3f5d52[_0x9ebe('0x89')]);for(const {suggestion:_0x39ab01,meta:_0xa99a05}of this['_findSuggestions'](_0x4065ad,_0x9ebe('0x25')))if(_0xa99a05[_0x9ebe('0x4a')]&&!_0xa99a05[_0x9ebe('0xe5')]){if(_0x39ab01['isMultiRange']){const _0x3eddcb=_0x39ab01[_0x9ebe('0xb2')]()[_0x9ebe('0x80')](_0x1cea3b=>_0x9ebe('0x3d')!=_0x1cea3b[_0x9ebe('0xc3')][_0x9ebe('0x4e')]);_0x3eddcb[_0x9ebe('0xeb')](_0xef9093=>_0x4065ad[_0x9ebe('0x15')](_0xef9093,!0x0))&&_0x39ab01[_0x9ebe('0x23')]();if(_0x3eddcb[_0x9ebe('0xf9')](_0x5e3351=>_0x5e3351[_0x9ebe('0x15')](_0x4065ad,!0x0))){const _0x565f31=this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x9ebe('0xf1'),_0x27c61e,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x565f31([_0x4065ad],null,_0x595989)),null;}}else{const _0x2eb63f=_0x4065ad[_0x9ebe('0xf6')](_0x39ab01[_0x9ebe('0xe2')]());_0x39ab01[_0x9ebe('0xb0')]([_0x2eb63f],null,_0x595989);}}if(_0x4065ad['detach'](),_0x4065ad['isCollapsed']||_0x9ebe('0x3d')==_0x4065ad[_0x9ebe('0xc3')]['rootName'])return null;let _0x3855ba=null,_0x4da7c0=_0x4065ad[_0x9ebe('0x8f')],_0x5ed9bd=_0x4065ad[_0x9ebe('0x89')];for(const {suggestion:_0x31d074,meta:_0x420d79}of this[_0x9ebe('0x14')](_0x4065ad,_0x9ebe('0xf1')))if(_0x420d79[_0x9ebe('0x4a')]){if(_0x31d074[_0x9ebe('0x12f')]){let _0x5e0158=!0x0;for(const _0x42a428 of _0x31d074[_0x9ebe('0xb2')]()){if(_0x42a428[_0x9ebe('0x15')](_0x4065ad,!0x0))return _0x31d074;_0x4065ad[_0x9ebe('0x15')](_0x42a428)||(_0x5e0158=!0x1);}_0x5e0158&&_0x31d074['discard']();}else{const _0x5cc7ee=_0x31d074[_0x9ebe('0xe2')]();if(_0x5cc7ee[_0x9ebe('0x15')](_0x4065ad,!0x0))return _0x31d074;_0x4da7c0=_0x4da7c0['isBefore'](_0x5cc7ee[_0x9ebe('0x8f')])?_0x4da7c0:_0x5cc7ee[_0x9ebe('0x8f')],_0x5ed9bd=_0x5ed9bd[_0x9ebe('0x127')](_0x5cc7ee[_0x9ebe('0x89')])?_0x5ed9bd:_0x5cc7ee[_0x9ebe('0x89')],_0x3855ba?_0x5cc7ee['start'][_0x9ebe('0xb5')](_0x3855ba[_0x9ebe('0xe2')]()[_0x9ebe('0x8f')])?(_0x3855ba[_0x9ebe('0x3c')](),_0x3855ba=_0x31d074):_0x31d074['removeMarkers']():_0x3855ba=_0x31d074;}}if(_0x3855ba)return this['_setSuggestionRange'](_0x3855ba,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x4da7c0,_0x5ed9bd)),_0x3855ba;{const _0xe3be0b=_0x4e3532(),_0x5798ec=this['_model'][_0x9ebe('0x11c')](_0x4da7c0,_0x5ed9bd),_0xd4e0e9=_0x543ffb['id'],_0x1c84d9=_0x27c61e?_0x9ebe('0x1d')+_0x27c61e:_0x9ebe('0xf1'),_0x99f615=this['_setSuggestionData']({'id':_0xe3be0b,'type':_0x1c84d9,'createdAt':new Date(),'authorId':_0xd4e0e9,'attributes':_0x595989});return this[_0x9ebe('0x67')](_0x1c84d9,_0xe3be0b,_0xd4e0e9,_0x5798ec),_0x99f615;}}[_0x9ebe('0x13')](_0x30a7cf,_0x15d86b=_0x9ebe('0xab'),_0x49b9d4={}){const _0x314091=this[_0x9ebe('0xb1')]['plugins'][_0x9ebe('0x24')](_0x9ebe('0x120'))['me'],_0x129fbd=_0x30a7cf[_0x9ebe('0xb9')](_0x2626cc=>new _0x5ea0ee(_0x2626cc[_0x9ebe('0x8f')],_0x2626cc[_0x9ebe('0x89')])),_0x1c889f=new Set();for(const _0x2388c6 of _0x129fbd)for(const {suggestion:_0x415bbe,meta:_0x3d3982}of this[_0x9ebe('0x14')](_0x2388c6,_0x9ebe('0x25')))_0x3d3982[_0x9ebe('0x4a')]&&!_0x3d3982[_0x9ebe('0xe5')]&&_0x1c889f['add'](_0x415bbe);for(const _0x3df963 of _0x1c889f)if(_0x3df963[_0x9ebe('0x12f')]){const _0x71b749=_0x3df963[_0x9ebe('0xb2')]();(!_0x3df963[_0x9ebe('0x128')]||!_0x3df963['attributes'][_0x9ebe('0x114')])&&(_0x71b749[_0x9ebe('0xeb')](_0x43da1c=>_0x129fbd[_0x9ebe('0xf9')](_0x3ba273=>_0x3ba273[_0x9ebe('0x15')](_0x43da1c,!0x0)))&&_0x3df963['discard']());if(_0x129fbd[_0x9ebe('0xeb')](_0xc5fdd9=>_0x71b749[_0x9ebe('0xf9')](_0x35f05e=>_0x35f05e[_0x9ebe('0x15')](_0xc5fdd9,!0x0)))){const _0x1c47ad=this[_0x9ebe('0xec')][_0x9ebe('0x9a')]('deletion',_0x15d86b,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x1c47ad(_0x30a7cf,null,_0x49b9d4)),null;}}else{const _0x443760=_0x3df963[_0x9ebe('0xe2')]();_0x129fbd[_0x9ebe('0xf9')](_0x1355d3=>_0x1355d3[_0x9ebe('0x15')](_0x443760,!0x0))&&_0x3df963[_0x9ebe('0x23')]();if(_0x129fbd['every'](_0x221af2=>_0x443760[_0x9ebe('0x15')](_0x221af2,!0x0))){const _0x407a8=this[_0x9ebe('0xec')]['getSuggestionCallback'](_0x9ebe('0xf1'),_0x15d86b,_0x9ebe('0x125'));return this[_0x9ebe('0x94')](()=>_0x407a8(_0x129fbd,null,_0x49b9d4)),null;}}const _0x21199e=this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x9ebe('0xf1'),_0x15d86b,_0x9ebe('0x10b'));let _0x104488=null;for(const _0x4d0556 of this[_0x9ebe('0x5b')]())if(_0x4d0556[_0x9ebe('0x6a')]['id']==_0x314091['id']&&_0x4d0556[_0x9ebe('0x12')]&&_0x9ebe('0xf1')==_0x4d0556[_0x9ebe('0x44')]&&_0x4d0556[_0x9ebe('0x2d')]==_0x15d86b&&(_0x21199e(_0x4d0556['getRanges'](),_0x129fbd)||_0x21199e(_0x129fbd,_0x4d0556['getRanges']()))){if(_0x104488){if(_0x4d0556[_0x9ebe('0x6c')]&&_0x4d0556[_0x9ebe('0x6c')][_0x9ebe('0xb')])continue;for(const _0x2a5bc3 of _0x4d0556[_0x9ebe('0xb2')]())_0x104488[_0x9ebe('0xcc')](_0x2a5bc3)||_0x104488[_0x9ebe('0x138')](_0x2a5bc3);_0x4d0556[_0x9ebe('0x3c')]();}else{_0x104488=_0x4d0556;for(const _0x32f65a of _0x129fbd)_0x4d0556[_0x9ebe('0xcc')](_0x32f65a)||_0x4d0556['addRange'](_0x32f65a);}}if(_0x104488)return _0x104488;_0x1c889f[_0x9ebe('0x71')]();for(const _0x12f2d9 of _0x129fbd)for(const {suggestion:_0x10187c,meta:_0x469f09}of this['_findSuggestions'](_0x12f2d9,'deletion'))_0x469f09['isOwn']&&_0x1c889f[_0x9ebe('0x104')](_0x10187c);for(const _0x15b8e8 of _0x1c889f){const _0xe28e53=_0x15b8e8['getRanges']();if(!_0x49b9d4||!_0x49b9d4[_0x9ebe('0x114')]){if(_0x129fbd['every'](_0x46eb58=>_0xe28e53[_0x9ebe('0xf9')](_0x49e56b=>_0x49e56b[_0x9ebe('0x15')](_0x46eb58,!0x0))))return _0x15b8e8;}(!_0x15b8e8[_0x9ebe('0x128')]||!_0x15b8e8[_0x9ebe('0x128')][_0x9ebe('0x114')])&&(_0xe28e53['every'](_0x2717ee=>_0x129fbd[_0x9ebe('0xf9')](_0x25c693=>_0x25c693[_0x9ebe('0x15')](_0x2717ee,!0x0)))&&_0x15b8e8[_0x9ebe('0x23')]());}const _0x49739e=_0x4e3532(),_0xf95dfb=_0x314091['id'],_0xdd0850=_0x9ebe('0x1d')+_0x15d86b,_0x1201ed=this[_0x9ebe('0x41')]({'id':_0x49739e,'type':_0xdd0850,'createdAt':new Date(),'authorId':_0xf95dfb,'attributes':_0x49b9d4});for(const _0x4305c0 of _0x129fbd)_0x4305c0[_0x9ebe('0x132')](),_0x4305c0['isCollapsed']||_0x9ebe('0x3d')==_0x4305c0[_0x9ebe('0xc3')]['rootName']||this[_0x9ebe('0x67')](_0xdd0850,_0x49739e,_0xf95dfb,_0x4305c0,_0x428cce[_0x9ebe('0xa6')]());return _0x1201ed;}[_0x9ebe('0x59')](_0x34eec0,_0x337850){const _0x5ee305=_0x34eec0[_0x9ebe('0xa9')]();this[_0x9ebe('0x60')][_0x9ebe('0x45')](_0x4436b8=>{_0x4436b8[_0x9ebe('0xe0')](_0x5ee305,{'range':_0x337850});});}['_addThreadToSuggestion'](_0x43198e){const _0x1c842d=_0x43198e['id'],_0x30d77f=this[_0x9ebe('0xb1')][_0x9ebe('0x7')][_0x9ebe('0x24')](_0x9ebe('0x3f'));this[_0x9ebe('0x5a')]['hasCommentThread'](_0x1c842d)||this['_commentsRepository'][_0x9ebe('0xf0')]({'channelId':_0x30d77f,'threadId':_0x1c842d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x574ba1=this['_commentsRepository'][_0x9ebe('0xb7')](_0x1c842d);_0x574ba1[_0x9ebe('0x16')](_0x9ebe('0x6f')),_0x574ba1[_0x9ebe('0x6f')]=!0x1,_0x43198e[_0x9ebe('0x6c')]=_0x574ba1;}[_0x9ebe('0x40')](_0x30ae75,_0x5d3412,_0x552fda,_0x258de4){if(_0x30ae75[_0x9ebe('0x44')]!=_0x5d3412||_0x30ae75[_0x9ebe('0x2d')]!=_0x552fda||_0x30ae75[_0x9ebe('0x106')]['id']!=_0x258de4)throw this['editor']['enableReadOnlyMode'](_0x9ebe('0x7c')),new _0x168803(_0x9ebe('0x7c'),this);}[_0x9ebe('0x88')](_0xc0a97,_0x840b1c){const _0x3ad5c9=_0xc0a97[_0x9ebe('0xe2')]();if(_0x840b1c[_0x9ebe('0xdf')](_0x3ad5c9))_0xc0a97[_0x9ebe('0x3c')]();else{if(_0x3ad5c9[_0x9ebe('0x15')](_0x840b1c)){const _0x502e4c=this[_0x9ebe('0x60')]['createPositionAt'](_0x840b1c[_0x9ebe('0x8f')][_0x9ebe('0x12e')],'end');this[_0x9ebe('0x59')](_0xc0a97,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x3ad5c9[_0x9ebe('0x8f')],_0x502e4c));const _0x414e59=_0x4e3532(),_0x5ca09d=_0xc0a97[_0x9ebe('0x106')]['id'],_0x4a31f6=_0xc0a97[_0x9ebe('0x44')]+':'+_0xc0a97[_0x9ebe('0x2d')];this[_0x9ebe('0x41')]({'id':_0x414e59,'type':_0x4a31f6,'createdAt':new Date(),'authorId':_0x5ca09d,'data':_0xc0a97[_0x9ebe('0x6')],'attributes':_0xc0a97['attributes']});const _0x4d9780=this[_0x9ebe('0x60')][_0x9ebe('0x93')](_0x840b1c[_0x9ebe('0x89')][_0x9ebe('0x10f')],_0x9ebe('0xa8')),_0x32f7f1=this[_0x9ebe('0x60')]['createRange'](_0x4d9780,_0x3ad5c9[_0x9ebe('0x89')]);this[_0x9ebe('0x67')](_0x4a31f6,_0x414e59,_0x5ca09d,_0x32f7f1);}else{if(_0x3ad5c9[_0x9ebe('0xe4')](_0x840b1c[_0x9ebe('0x8f')])){const _0xfce0c0=this[_0x9ebe('0x60')][_0x9ebe('0x93')](_0x840b1c[_0x9ebe('0x8f')][_0x9ebe('0x12e')],'end');this[_0x9ebe('0x59')](_0xc0a97,this[_0x9ebe('0x60')]['createRange'](_0x3ad5c9[_0x9ebe('0x8f')],_0xfce0c0));}else{const _0x29b2c8=this['_model'][_0x9ebe('0x93')](_0x840b1c[_0x9ebe('0x89')][_0x9ebe('0x10f')],_0x9ebe('0xa8'));this[_0x9ebe('0x59')](_0xc0a97,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x29b2c8,_0x3ad5c9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2bf8fd){for(const {suggestion:_0x29ee69,meta:_0x2b40c8}of this[_0x9ebe('0x14')](_0x2bf8fd,_0x9ebe('0x25'))){if(!_0x2b40c8[_0x9ebe('0x4a')])continue;const _0x354d11=_0x29ee69[_0x9ebe('0xb2')]();for(const _0x407c9e of _0x354d11)if(!_0x2bf8fd[_0x9ebe('0xbf')](_0x407c9e)[_0x9ebe('0xb')])return!0x0;}return!0x1;}[_0x9ebe('0x8c')](_0x38c41a){const _0x7f2710=this[_0x9ebe('0xb1')]['plugins'][_0x9ebe('0x24')](_0x9ebe('0x120'))[_0x9ebe('0x7b')](_0x38c41a);if(!_0x7f2710)throw new _0x168803('track-changes-user-not-found',this);return _0x7f2710;}[_0x9ebe('0x74')](_0x3af092){const _0x29c53c=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x120')),_0x2799fb=_0x1a7906('external:'+_0x3af092),_0x5423d0=_0x29c53c[_0x9ebe('0x7b')](_0x2799fb);return _0x5423d0||_0x29c53c[_0x9ebe('0xf')]({'id':_0x2799fb,'name':_0x3af092});}[_0x9ebe('0x10e')](_0x5582aa,_0xa5ca2b,_0x357a4b,_0x476e0b,_0xe51e63){const _0x32234c=this['_getAuthorFromId'](_0x476e0b),_0x42d976=this['_suggestionFactory'][_0x9ebe('0xf2')](_0x5582aa,_0xa5ca2b,_0x357a4b,_0x32234c,_0xe51e63,_0x385056=>this['_updateSuggestionData'](_0x357a4b,{'attributes':_0x385056}));return this[_0x9ebe('0x8b')](_0x42d976,_0x9ebe('0x125'),()=>{this[_0x9ebe('0xc2')](_0x357a4b,{'state':'accepted'});},{'priority':_0x9ebe('0xc')}),this[_0x9ebe('0x8b')](_0x42d976,_0x9ebe('0x23'),()=>{this['_updateSuggestionData'](_0x357a4b,{'state':_0x9ebe('0x3')});},{'priority':_0x9ebe('0xc')}),this['_suggestions'][_0x9ebe('0xc4')](_0x357a4b,_0x42d976),this[_0x9ebe('0x105')]['set'](_0x42d976,'notReady'),_0x42d976;}['_splitMarkerName'](_0x50ed47){const _0x36a86d=_0x50ed47['split'](':');return{'group':_0x36a86d[0x0],'type':_0x36a86d[0x1],'subType':_0x36a86d[_0x9ebe('0xb')]>=0x5?_0x36a86d[0x2]:null,'id':_0x36a86d['length']<0x5?_0x36a86d[0x2]:_0x36a86d[0x3],'authorId':_0x36a86d['length']<0x5?_0x36a86d[0x3]:_0x36a86d[0x4],'markerCount':0x6==_0x36a86d[_0x9ebe('0xb')]?_0x36a86d[0x5]:null};}[_0x9ebe('0x113')](_0x4f5469,_0x260262,_0x4263d0){const _0x53eeeb=_0x4f5469[_0x9ebe('0xe2')](),_0x56f15f=_0x53eeeb[_0x9ebe('0x8f')],_0x28545e=_0x53eeeb[_0x9ebe('0x89')];this[_0x9ebe('0x59')](_0x4f5469,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x56f15f,_0x260262));const _0x53e122=_0x4e3532(),_0x572e49=_0x4f5469[_0x9ebe('0x106')]['id'],_0x4783be=_0x4f5469[_0x9ebe('0x44')]+(_0x4f5469[_0x9ebe('0x2d')]?':'+_0x4f5469[_0x9ebe('0x2d')]:'');this[_0x9ebe('0x41')]({'id':_0x53e122,'type':_0x4783be,'createdAt':new Date(),'authorId':_0x572e49,'originalSuggestionId':_0x4f5469['id'],'attributes':_0x4f5469[_0x9ebe('0x128')],'data':_0x4f5469[_0x9ebe('0x6')]}),_0x9ebe('0x92')==_0x4f5469['type']&&(_0x4263d0=this[_0x9ebe('0x60')][_0x9ebe('0x1')](_0x4263d0['parent'])),this[_0x9ebe('0x67')](_0x4783be,_0x53e122,_0x572e49,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x4263d0,_0x28545e));}[_0x9ebe('0x14')](_0x1735f4,_0x434441=null){const _0x13caef=[],_0x24ee41=this[_0x9ebe('0x60')][_0x9ebe('0x3e')],_0x66d5d6=this[_0x9ebe('0xb1')]['plugins'][_0x9ebe('0x24')]('Users')['me'];for(const _0x5a60c8 of this[_0x9ebe('0x5b')]())if(_0x5a60c8['isInContent']&&(!_0x434441||_0x5a60c8[_0x9ebe('0x44')]==_0x434441))for(const _0x576bce of _0x5a60c8[_0x9ebe('0xb2')]()){const _0x3e47cf=_0x1735f4[_0x9ebe('0x8f')][_0x9ebe('0xdf')](_0x576bce[_0x9ebe('0x89')])||_0x1735f4[_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x576bce[_0x9ebe('0x8f')]);if(_0x3e47cf||_0x1735f4[_0x9ebe('0xf6')](_0x576bce)){const _0x171b4e=_0x1735f4[_0x9ebe('0x15')](_0x576bce)&&Bt(_0x24ee41,_0x576bce['start'],_0x1735f4),_0xe9392=_0x576bce[_0x9ebe('0x15')](_0x1735f4)&&Bt(_0x24ee41,_0x1735f4[_0x9ebe('0x8f')],_0x576bce);_0x13caef['push']({'suggestion':_0x5a60c8,'meta':{'isOwn':_0x66d5d6==_0x5a60c8[_0x9ebe('0x6a')],'isNextTo':_0x3e47cf,'isInsideObject':_0x171b4e,'containsRangeInObject':_0xe9392}});break;}}return _0x13caef;}[_0x9ebe('0x67')](_0x497407,_0x558580,_0x48bc77,_0x3e6aa2,_0x4f6fe2){this[_0x9ebe('0x60')][_0x9ebe('0x45')](_0x1826c8=>{let _0x1a5c87=_0x9ebe('0x11f')+_0x497407+':'+_0x558580+':'+_0x48bc77;_0x4f6fe2&&(_0x1a5c87=_0x1a5c87+':'+_0x4f6fe2),_0x1826c8[_0x9ebe('0x5d')](_0x1a5c87,{'range':_0x3e6aa2,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x9ebe('0x4')](_0xe8c8c6){const _0x3cf099=_0xe8c8c6[_0x9ebe('0xa5')],_0x52af48=_0xe8c8c6[_0x9ebe('0x7e')];_0xe8c8c6[_0x9ebe('0xa5')]=null,null!=_0x3cf099&&(_0x3cf099['next']=null),_0xe8c8c6['next']=null,null!=_0x52af48&&(_0x52af48[_0x9ebe('0xa5')]=null),_0x9ebe('0xa7')==this['_suggestionState']['get'](_0xe8c8c6)&&(this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0xe8c8c6,_0x9ebe('0x64')),this[_0x9ebe('0xd8')](_0x9ebe('0xd2'),_0xe8c8c6,_0x3cf099,_0x52af48));}[_0x9ebe('0x41')](_0x2355f6){const _0x579196=_0x2355f6['id'],_0x26278d=this[_0x9ebe('0x68')](_0x2355f6);if(this['_adapter']&&this[_0x9ebe('0x54')][_0x9ebe('0x10a')]){const _0x1f1980=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')]['get'](_0x9ebe('0x6b')),_0x575dea=_0x26278d[_0x9ebe('0x91')],_0x28abd7=_0x26278d['subType']?_0x26278d[_0x9ebe('0x44')]+':'+_0x26278d['subType']:_0x26278d[_0x9ebe('0x44')],_0x30358b=this[_0x9ebe('0xb1')][_0x9ebe('0xed')],_0x1dc3b9=_0x1f1980[_0x9ebe('0x104')](_0x447cd7(_0x30358b,_0x9ebe('0xd'))),_0x130faa={'id':_0x579196,'type':_0x28abd7,'hasComments':_0x575dea,'data':_0x2355f6[_0x9ebe('0x6')]||null,'originalSuggestionId':_0x2355f6[_0x9ebe('0x95')]||null,'attributes':_0x26278d[_0x9ebe('0x128')]};this[_0x9ebe('0x54')][_0x9ebe('0x10a')](_0x130faa)[_0x9ebe('0xda')](_0x1de65c=>{_0x26278d[_0x9ebe('0x2e')]=!0x0,_0x1f1980['remove'](_0x1dc3b9),_0x1de65c&&_0x1de65c['createdAt']&&(this[_0x9ebe('0x126')][_0x9ebe('0x24')](_0x579196)['createdAt']=_0x1de65c[_0x9ebe('0x81')]);})[_0x9ebe('0x63')](_0xc13e44=>{throw _0x138b14(_0x9ebe('0x97')),this[_0x9ebe('0xb1')]['model'][_0x9ebe('0xcf')]({'isUndoable':!0x1},()=>{_0x26278d[_0x9ebe('0x23')]();}),_0x26278d[_0x9ebe('0x32')](),this[_0x9ebe('0x126')][_0x9ebe('0x22')](_0x26278d['id']),this['_suggestionState'][_0x9ebe('0x22')](_0x26278d),_0xc13e44;});}return _0x26278d;}['_updateSuggestionData'](_0xf9beec,_0x1432f1){const _0x461b02=this[_0x9ebe('0xb1')][_0x9ebe('0x2f')][_0x9ebe('0x24')](_0x9ebe('0x6b')),_0x364445=this['getSuggestion'](_0xf9beec);if(this[_0x9ebe('0x54')]&&this[_0x9ebe('0x54')][_0x9ebe('0x11')]){if(_0x364445[_0x9ebe('0x2e')]){const _0x5b6c24=_0x461b02[_0x9ebe('0x104')](_0x447cd7(this[_0x9ebe('0xb1')][_0x9ebe('0xed')],'PENDING_ACTION_SUGGESTION'));this[_0x9ebe('0x54')][_0x9ebe('0x11')](_0xf9beec,_0x1432f1)['then'](()=>{_0x461b02[_0x9ebe('0xa4')](_0x5b6c24);});}else _0x364445['on'](_0x9ebe('0xc9'),()=>{this[_0x9ebe('0xc2')](_0xf9beec,_0x1432f1);});}}[_0x9ebe('0xa2')](_0x441c9c){if(!this[_0x9ebe('0x54')]||!this[_0x9ebe('0x54')]['getSuggestion'])throw new _0x168803('track-changes-adapter-missing-getsuggestion',this);return this[_0x9ebe('0x54')]['getSuggestion'](_0x441c9c);}['_handleNewSuggestionMarker'](_0x35d4c4){const {id:_0xb7fe99,type:_0x3dcf29,subType:_0x1049a5,authorId:_0x1d473c}=this[_0x9ebe('0x134')](_0x35d4c4),_0x44e33=this[_0x9ebe('0x126')]['get'](_0xb7fe99)||this[_0x9ebe('0x10e')](_0x3dcf29,_0x1049a5,_0xb7fe99,_0x1d473c,{});switch(this[_0x9ebe('0x40')](_0x44e33,_0x3dcf29,_0x1049a5,_0x1d473c),this[_0x9ebe('0x105')][_0x9ebe('0x24')](_0x44e33)){case'notReady':this[_0x9ebe('0xa2')](_0xb7fe99)[_0x9ebe('0xda')](_0x4da716=>{let _0x564cf2=Promise[_0x9ebe('0xb4')]();_0x4da716['hasComments']&&(_0x564cf2=this[_0x9ebe('0x5a')][_0x9ebe('0xe1')]({'channelId':this[_0x9ebe('0xb1')][_0x9ebe('0x7')]['get'](_0x9ebe('0x3f')),'threadId':_0xb7fe99})),_0x564cf2['then'](()=>{this[_0x9ebe('0x68')](_0x4da716)[_0x9ebe('0x2e')]=!0x0;});}),this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x44e33,_0x9ebe('0x112'));break;case _0x9ebe('0x64'):this[_0x9ebe('0xc2')](_0xb7fe99,{'state':_0x9ebe('0xc0')});case _0x9ebe('0x8d'):this[_0x9ebe('0x105')][_0x9ebe('0xc4')](_0x44e33,'ready'),this[_0x9ebe('0xd8')]('suggestionLoaded',_0x44e33);break;case _0x9ebe('0xa7'):this[_0x9ebe('0xd8')](_0x9ebe('0x70'),_0x44e33);}return _0x44e33[_0x9ebe('0x27')](_0x35d4c4),_0x44e33;}[_0x9ebe('0x108')](_0x5e2bba){const _0x7b66e8=Array[_0x9ebe('0x130')](_0x5e2bba)[_0x9ebe('0x80')](_0x5266d4=>!_0x5266d4[_0x9ebe('0x12f')]),_0x509850=this[_0x9ebe('0x5b')]({'skipNotAttached':!0x0})[_0x9ebe('0x80')](_0xac6b0c=>!_0xac6b0c[_0x9ebe('0x12f')]),_0x4ba002=_0x509850['filter'](_0x1ac8ba=>!_0x5e2bba[_0x9ebe('0x4c')](_0x1ac8ba)),_0x4be11d=new Map(_0x509850[_0x9ebe('0xb9')](_0x41bc01=>[_0x41bc01,this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x41bc01[_0x9ebe('0x44')],_0x41bc01[_0x9ebe('0x2d')],_0x9ebe('0xe'))])),_0x34cae1=new Map(_0x509850['map'](_0x4f1ecf=>[_0x4f1ecf,_0x4f1ecf[_0x9ebe('0xe2')]()])),_0x55de06=new Set(),_0x989dd4=new Set();for(let _0x545427=0x0;_0x545427<_0x7b66e8[_0x9ebe('0xb')];_0x545427++)_0x4c968a(_0x7b66e8[_0x545427],_0x7b66e8,_0x545427+0x1);for(let _0xb1c128=0x0;_0xb1c128<_0x7b66e8[_0x9ebe('0xb')];_0xb1c128++)_0x4c968a(_0x7b66e8[_0xb1c128],_0x4ba002,0x0);for(let _0x59a94d=0x0;_0x59a94d<_0x7b66e8[_0x9ebe('0xb')];_0x59a94d++){const _0xad8d9c=_0x7b66e8[_0x59a94d];!_0x989dd4['has'](_0xad8d9c)&&_0xad8d9c[_0x9ebe('0xa5')]&&(_0xad8d9c['previous'][_0x9ebe('0x7e')]===_0xad8d9c&&(_0xad8d9c[_0x9ebe('0xa5')]['next']=null),_0xad8d9c[_0x9ebe('0xa5')]=null),!_0x55de06['has'](_0xad8d9c)&&_0xad8d9c[_0x9ebe('0x7e')]&&(_0xad8d9c[_0x9ebe('0x7e')][_0x9ebe('0xa5')]===_0xad8d9c&&(_0xad8d9c[_0x9ebe('0x7e')][_0x9ebe('0xa5')]=null),_0xad8d9c['next']=null);}function _0x4c968a(_0x436b46,_0x5a234e,_0x51c6f5){for(let _0x2a404e=_0x51c6f5;_0x2a404e<_0x5a234e[_0x9ebe('0xb')];_0x2a404e++){const _0x1594d6=_0x1e8a93(_0x436b46,_0x5a234e[_0x2a404e]);_0x1594d6&&(_0x1594d6[0x0][_0x9ebe('0x7e')]=_0x1594d6[0x1],_0x1594d6[0x1]['previous']=_0x1594d6[0x0],_0x55de06[_0x9ebe('0x104')](_0x1594d6[0x0]),_0x989dd4['add'](_0x1594d6[0x1]));}}function _0x1e8a93(_0xd62c37,_0x3c529e){if(_0xd62c37[_0x9ebe('0x6a')]['id']!==_0x3c529e[_0x9ebe('0x6a')]['id'])return null;const _0x5e214d=_0x4be11d[_0x9ebe('0x24')](_0xd62c37)(_0xd62c37,_0x3c529e,_0x34cae1[_0x9ebe('0x24')](_0xd62c37),_0x34cae1[_0x9ebe('0x24')](_0x3c529e));if(!_0x5e214d)return null;return _0x4be11d['get'](_0x3c529e)(_0xd62c37,_0x3c529e,_0x34cae1['get'](_0xd62c37),_0x34cae1[_0x9ebe('0x24')](_0x3c529e))?_0x5e214d[0x1][_0x9ebe('0x6c')]&&_0x5e214d[0x1][_0x9ebe('0x6c')][_0x9ebe('0xb')]?null:_0x5e214d:null;}}['_joinWithAdjacentSuggestions'](_0x599ee5){const _0x184e70=Array[_0x9ebe('0x130')](_0x599ee5),_0x558913=this[_0x9ebe('0x5b')]({'skipNotAttached':!0x0}),_0x559008=_0x558913[_0x9ebe('0x80')](_0x1a321c=>!_0x599ee5[_0x9ebe('0x4c')](_0x1a321c)),_0x1f7692=new Map(_0x184e70[_0x9ebe('0xb9')](_0x20a8c3=>[_0x20a8c3,this[_0x9ebe('0xec')][_0x9ebe('0x9a')](_0x20a8c3[_0x9ebe('0x44')],_0x20a8c3['subType'],_0x9ebe('0x10b'))])),_0x504299=new Map(_0x558913[_0x9ebe('0xb9')](_0xeb3b9e=>[_0xeb3b9e,_0xeb3b9e[_0x9ebe('0xb2')]()]));for(let _0x3d7572=0x0;_0x3d7572<_0x184e70[_0x9ebe('0xb')];_0x3d7572++){if(_0x250e12(this,_0x184e70[_0x3d7572],_0x184e70,_0x3d7572+0x1))return!0x0;}for(let _0x545b78=0x0;_0x545b78<_0x184e70['length'];_0x545b78++){if(_0x250e12(this,_0x184e70[_0x545b78],_0x559008,0x0))return!0x0;}return!0x1;function _0x250e12(_0x474be8,_0x5044b0,_0xd61e07,_0x2e46a3){for(let _0x35268f=_0x2e46a3;_0x35268f<_0xd61e07['length'];_0x35268f++){const _0xf67a38=_0xd61e07[_0x35268f];if(_0xf67a38[_0x9ebe('0x44')]!==_0x5044b0['type']||_0xf67a38['author']['id']!==_0x5044b0[_0x9ebe('0x6a')]['id']||_0xf67a38[_0x9ebe('0x2d')]!==_0x5044b0[_0x9ebe('0x2d')])continue;const _0x569e21=_0x1f7692[_0x9ebe('0x24')](_0x5044b0),_0x16ceb4=_0x504299[_0x9ebe('0x24')](_0x5044b0),_0x54c5bf=_0x504299[_0x9ebe('0x24')](_0xf67a38),_0x50789b=_0x5044b0[_0x9ebe('0x6c')]&&_0x5044b0[_0x9ebe('0x6c')][_0x9ebe('0xb')],_0x57eeed=_0xf67a38[_0x9ebe('0x6c')]&&_0xf67a38['commentThread']['length'];if(!_0x50789b&&_0x569e21(_0x54c5bf,_0x16ceb4))return _0x474be8[_0x9ebe('0x35')](_0xf67a38,_0x5044b0),_0x504299[_0x9ebe('0x22')](_0x5044b0),!0x0;if(!_0x57eeed&&_0x569e21(_0x16ceb4,_0x54c5bf))return _0x474be8[_0x9ebe('0x35')](_0x5044b0,_0xf67a38),_0x504299[_0x9ebe('0x22')](_0xf67a38),!0x0;}return!0x1;}}[_0x9ebe('0x35')](_0x492ca3,_0x376621){if(_0x492ca3[_0x9ebe('0x12f')])for(const _0x28cbe1 of _0x376621[_0x9ebe('0xb2')]())_0x492ca3[_0x9ebe('0x138')](_0x28cbe1);else{const _0x441c34=_0x376621[_0x9ebe('0xe2')]()['end'];this[_0x9ebe('0x59')](_0x492ca3,this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x492ca3[_0x9ebe('0xe2')]()[_0x9ebe('0x8f')],_0x441c34));}_0x376621[_0x9ebe('0x3c')]();}}class Ct{constructor(_0x381fad){this['_editor']=_0x381fad,this[_0x9ebe('0x60')]=_0x381fad[_0x9ebe('0x86')],this[_0x9ebe('0x37')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x9ebe('0xf8')]();}[_0x9ebe('0xf2')](_0x499c80,_0x590090,_0x19a853,_0x388168,_0x312bf1,_0xe93442){return new _0x428cce(this[_0x9ebe('0x60')],{'type':_0x499c80,'subType':_0x590090,'id':_0x19a853,'author':_0x388168,'creator':_0x388168,'attributes':_0x312bf1,'onAttributesChange':_0xe93442,'onAccept':(..._0x11bf41)=>this[_0x9ebe('0x9a')](_0x499c80,_0x590090,_0x9ebe('0x125'))(..._0x11bf41),'onDiscard':(..._0x55a0b1)=>this['getSuggestionCallback'](_0x499c80,_0x590090,_0x9ebe('0x23'))(..._0x55a0b1)});}['registerCustomCallback'](_0x6f4da5,_0x4af981,_0x4a48fd,_0x59ee11){const _0x1b438d=_0x6f4da5+':'+_0x4af981+':'+_0x4a48fd;this[_0x9ebe('0x37')][_0x9ebe('0xc4')](_0x1b438d,_0x59ee11);}['getSuggestionCallback'](_0x98bca6,_0x458d05,_0xb21553){const _0x208abc=_0x98bca6+':'+_0x458d05+':'+_0xb21553;return this['_customCallbacks'][_0x9ebe('0x24')](_0x208abc)||this[_0x9ebe('0x79')]['get'](_0x98bca6+':'+_0xb21553);}[_0x9ebe('0xf8')](){const _0x23a7bf=()=>{},_0x38fc84=_0x37ec89=>{_0x37ec89['sort']((_0x1a3294,_0x2f6be9)=>_0x1a3294[_0x9ebe('0x8f')]['isBefore'](_0x2f6be9[_0x9ebe('0x8f')])?0x1:-0x1),this[_0x9ebe('0x60')][_0x9ebe('0x45')](_0x1218cb=>{for(const _0x214d74 of _0x37ec89){let _0x4107c4;_0x4107c4=_0x214d74[_0x9ebe('0x89')]['isAtEnd']&&_0x214d74[_0x9ebe('0x89')][_0x9ebe('0x10f')]==_0x214d74['start'][_0x9ebe('0x1b')]?_0x1218cb[_0x9ebe('0x18')](_0x214d74[_0x9ebe('0x8f')][_0x9ebe('0x1b')],'on'):_0x1218cb['createSelection'](_0x214d74),this[_0x9ebe('0x60')][_0x9ebe('0xaf')](_0x4107c4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x100030=(_0x8c1151,_0x7a42fe)=>{this[_0x9ebe('0x60')]['change'](_0x4a4c22=>{const {commandName:_0x1d29b0,commandParams:_0x5b76c1=[]}=_0x7a42fe,_0x85367f=_0x8c1151[_0x9ebe('0xb9')](_0x43cb13=>(_t(_0x43cb13)&&(_0x43cb13=this[_0x9ebe('0x60')][_0x9ebe('0x11c')](_0x43cb13[_0x9ebe('0x89')])),_0x43cb13))[_0x9ebe('0x80')](_0x5b7ace=>_0x9ebe('0x3d')!==_0x5b7ace['root']['rootName']);if(_0x85367f['length']<0x1)return;const _0x107007=Array[_0x9ebe('0x130')](this[_0x9ebe('0x60')][_0x9ebe('0x5')][_0x9ebe('0x8e')][_0x9ebe('0xb2')]())[_0x9ebe('0xb9')](_0x5bcafa=>_0x5ea0ee[_0x9ebe('0xba')](_0x5bcafa));_0x4a4c22['setSelection'](_0x85367f);for(const _0x4b474a of this[_0x9ebe('0x38')][_0x9ebe('0x135')][_0x9ebe('0x135')]())_0x4b474a[_0x9ebe('0xfb')]();_0x5b76c1[_0x9ebe('0x66')]({'forceDefaultExecution':!0x0}),this[_0x9ebe('0x38')]['execute'](_0x1d29b0,..._0x5b76c1);const _0xc8de5f=_0x107007[_0x9ebe('0x80')](_0x390476=>_0x9ebe('0x3d')!=_0x390476[_0x9ebe('0xc3')][_0x9ebe('0x4e')]);_0xc8de5f[_0x9ebe('0xb')]>0x0&&_0x4a4c22['setSelection'](_0xc8de5f);for(const _0x51e3b6 of _0x107007)_0x51e3b6['detach']();});},_0x182017=(_0x4595fe,_0x54f2b7)=>0x1==_0x4595fe[_0x9ebe('0xb')]&&0x1==_0x54f2b7['length']&&_0x4595fe[0x0][_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x54f2b7[0x0][_0x9ebe('0x8f')]),_0x5aa73b=(_0x3a21ef,_0x7d9864,_0x279aac,_0x586ebb)=>xt(_0x3a21ef,_0x7d9864,_0x279aac,_0x586ebb,this[_0x9ebe('0x60')])?[_0x3a21ef,_0x7d9864]:xt(_0x7d9864,_0x3a21ef,_0x586ebb,_0x279aac,this['_model'])?[_0x7d9864,_0x3a21ef]:null;this['_defaultCallbacks'][_0x9ebe('0xc4')]('insertion:accept',_0x23a7bf),this[_0x9ebe('0x79')]['set'](_0x9ebe('0x39'),_0x38fc84),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0xfe'),_0x182017),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x42'),_0x5aa73b),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x9e'),_0x38fc84),this[_0x9ebe('0x79')]['set'](_0x9ebe('0x5c'),_0x23a7bf),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x82'),_0x182017),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0xc5'),_0x5aa73b),this['_defaultCallbacks'][_0x9ebe('0xc4')](_0x9ebe('0xde'),_0x100030),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x111'),_0x23a7bf),this['_defaultCallbacks'][_0x9ebe('0xc4')](_0x9ebe('0x109'),_0x182017),this[_0x9ebe('0x79')][_0x9ebe('0xc4')]('formatInline:chain',_0x23a7bf),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0x47'),_0x100030),this['_defaultCallbacks'][_0x9ebe('0xc4')](_0x9ebe('0x84'),_0x23a7bf),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0xa3'),_0x182017),this[_0x9ebe('0x79')][_0x9ebe('0xc4')](_0x9ebe('0xea'),_0x23a7bf);}}function Bt(_0x2fa1b4,_0xd81d7a,_0x53a342){for(const _0xfdff08 of _0xd81d7a[_0x9ebe('0x10f')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xfdff08[_0x9ebe('0xc3')]==_0xfdff08)return!0x1;if(!_0x53a342[_0x9ebe('0x1a')](_0xfdff08))return!0x1;if(_0x2fa1b4[_0x9ebe('0x30')](_0xfdff08)||_0x2fa1b4['isLimit'](_0xfdff08))return!0x0;}return!0x1;}function _t(_0x274bc7){return _0x274bc7['end'][_0x9ebe('0x10f')]==_0x274bc7['start']['nodeAfter']&&_0x274bc7[_0x9ebe('0x89')]['isAtStart'];}function Mt(_0x548384,_0x570d83,_0x283cc8,_0x59533b){const _0xf4566d=_0x168be8=>!_0x168be8[_0x9ebe('0x124')]['is'](_0x9ebe('0xae'))&&!_0x59533b[_0x9ebe('0x30')](_0x168be8[_0x9ebe('0x124')]),_0x556a3b=_0x548384[_0x9ebe('0x8f')][_0x9ebe('0x62')](_0xf4566d),_0x5a2e2a=_0x548384['end'][_0x9ebe('0x62')](_0xf4566d,{'direction':_0x9ebe('0x9b')});return(!_0x548384[_0x9ebe('0x8f')][_0x9ebe('0xdf')](_0x556a3b)||!_0x548384[_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x5a2e2a))&&(_0x556a3b['isBefore'](_0x5a2e2a)?_0x283cc8[_0x9ebe('0xe0')](_0x570d83,{'range':_0x283cc8[_0x9ebe('0x11c')](_0x556a3b,_0x5a2e2a)}):_0x283cc8[_0x9ebe('0xc8')](_0x570d83),!0x0);}function $t(_0x50d2c5){return _0x1a7906(_0x50d2c5);}function Nt(_0x30ec7c){const _0x27a4a4=_0x30ec7c[_0x9ebe('0x8f')]['nodeAfter'];return _0x27a4a4&&_0x27a4a4['is']('element');}function Rt(_0x316e4e,_0x48d6bf){const _0x418b7d=_0x48d6bf['schema']['isObject'](_0x316e4e)||_0x48d6bf[_0x9ebe('0x3e')][_0x9ebe('0xe6')](_0x316e4e);return _0x48d6bf[_0x9ebe('0x11c')](_0x48d6bf[_0x9ebe('0x93')](_0x316e4e,_0x9ebe('0x9f')),_0x418b7d?_0x48d6bf[_0x9ebe('0x7a')](_0x316e4e):_0x48d6bf['createPositionAt'](_0x316e4e,_0x9ebe('0x89')));}function xt(_0x3fda4b,_0x17681f,_0x30746e,_0x588e27,_0x2ef021){if(_0x30746e[_0x9ebe('0x89')][_0x9ebe('0xdf')](_0x588e27[_0x9ebe('0x8f')]))return!0x0;if(_0x3fda4b['type']!=_0x17681f['type'])return!0x1;if(!_0x30746e[_0x9ebe('0x89')][_0x9ebe('0xb8')](_0x588e27[_0x9ebe('0x8f')]))return!0x1;const _0xaa25d8=_0x2ef021[_0x9ebe('0x11c')](_0x30746e[_0x9ebe('0x89')],_0x588e27['start'])[_0x9ebe('0xbd')]();for(const _0x1d7ea5 of _0xaa25d8)if([_0x9ebe('0x11e'),_0x9ebe('0xd6')][_0x9ebe('0x129')](_0x1d7ea5[_0x9ebe('0x44')])&&_0x2ef021[_0x9ebe('0x3e')]['isLimit'](_0x1d7ea5[_0x9ebe('0x124')]))return!0x1;return!0x0;}
23
+ const _0x4ef0=['for','editor','end','clear','plugins','containerElement','discardSelectedSuggestions','_findSuggestions','options','formatInline:accept','getAncestors','suggestion-type','getLastMatchingPosition','_suggestionFactory','pluginName','_handleNewSuggestionMarker','normal','_splitMarkerName','isInsideObject','isAfter','formatBlock:discard','_setSuggestionRange','head','getCustomProperty','every','_joinSuggestions','markDeletion','accept','set','lowest','isTouching','getChangedMarkers','setTo','creator','toViewElement','authorName','change','isEqual','getWalker','then','_addThreadToSuggestion','newRange','fire','removeMarkers','type','$marker','_joinWithAdjacentSuggestions','chain','formatBlock','selection','getAllAdjacentSuggestions','conversion','deletion:chain','hasComments','addMarker','_updateSuggestionData','_registerDefaultCallbacks','_cutOutSuggestionMarker','_mergeNestedSuggestions','isObject','_setSuggestionData','isCollapsed','activeMarkers','value','_removeSuggestion','collaboration.channelId','getSuggestion','backward','_createSuggestion','default','deletion:discard','schema','catch','addMarker:suggestion','after','removeMarker','commands','isExternal','formatInline:join','has','isLimit','insertion:join','before','getIntersection','multipleBlocks','add','differ','deletion:','addRange','insertion','detach','fromCharCode','discardSuggestion','values','notReady','getDifference','markerName','trackChangesCommand','PendingActions','element','map','author','markInsertion','isLocal','previous','sort','_rangeIsInLocalUserInsertion','_suggestions','_model','oldRange','elementToElement','stopListening','marker-count','fromRange','_editor','markMultiRangeDeletion','editing','_checkSuggestionCorrectness','updateMarker','markerNameToElements','data','_isForcedDefaultExecutionBlock','addMarker:suggestion:formatBlock','$graveyard','registerCustomCallback','split','splice','$textProxy','createdAt','consume','range','getSuggestionCallback','removeAttribute','_refreshSuggestionsChain','showSuggestionHighlights','buildSuggestion','attributes','upcast','getCommentThread','rootName','elementEnd','define','ck-suggestion-marker--active','PENDING_ACTION_SUGGESTION','ready','isSelectable','containsRangeInObject','acceptSelectedSuggestions','removeComment','createRangeIn','skipNestingCheck','getAttribute','splitPosition','moveTargetPosition','enqueueChange','getUser','accepted','listenTo','from','parent','_getExternalAuthor','formatBlock:chain','insertion:','acceptSuggestion','formatBlock:join','authoredAt','join','root','document','some','name','commandName','isIntersectingWithRange','formatInline','getFirstMarker','batch','insertion:chain','position','multi','markInlineFormat','discardAllSuggestions','suggestionLoaded','bindElementToMarker','insertion:discard','error-saving-suggestion-data-suggestion-discarded','get','init','enableReadOnlyMode','@external','suggestionChanged','mapper','editingDowncast','dataDowncast','toJSON','length','getSuggestions','createElement','low','ck-suggestion-marker-','includes','addSuggestionData','never','deletion','always','isDocumentOperation','highest','getRanges','hasSuggestion','formatGroupId','formatBlock:accept','change:data','TrackChangesEditing','_saved','markerToHighlight','markMultiRangeBlockFormat','getFirstRange','ck-suggestion-marker','deletion:join','formatInline:chain','change:_saved','track-changes-adapter-missing-getsuggestion','howMany','getItems','nodeAfter','_enabledCommands','Users','remove','track-changes-command-not-found','removeClass','update:suggestion','high','trackChanges','addMarkerName','commentThread','isOwn','_defaultCallbacks','substr','trackChanges.trackFormatChanges','_trackFormatChanges','execute','_suggestionState','_customCallbacks','dataToMarker','targetPosition','enableCommand','locale','filter','getRange','applyOperation','insertContent','isAtEnd','group','insertion:accept','removed','addSuggestion','markerReady','start','isInContent','_commentsRepository','return','_addSuggestionMarker','isBlock','containsRange','deleteContent','track-changes-suggestion-data-mismatch','delete','createPositionAfter','getNearestSelectionRange','isNextTo','_onDiscard','change:activeMarkers','external:','addHighlight','subType','consumable','adapter','config','nodeBefore','size','model','discard','getMultiRangeId','fetchCommentThread','setAttribute','_descriptionFactory','insert','addComment','suggestion','push','getShiftedBy','resolve','_getSuggestionData','forceDefaultExecution','widget','isMultiRange','dataReady','containsPosition','createRange','_adapter','writer','formatBlock:','hasCommentThread','forward','createSelection','updateSuggestion','trackChanges.mergeNestedSuggestions','next','createPositionAt','setSelection','data-suggestion','CommentsRepository','stop','refresh','isBefore','item','ck-suggestion-marker-formatBlock','_breakSuggestionMarker'];(function(_0x33560e,_0x4ef002){const _0x5d0988=function(_0x1b6bd9){while(--_0x1b6bd9){_0x33560e['push'](_0x33560e['shift']());}};_0x5d0988(++_0x4ef002);}(_0x4ef0,0x13b));const _0x5d09=function(_0x33560e,_0x4ef002){_0x33560e=_0x33560e-0x0;let _0x5d0988=_0x4ef0[_0x33560e];return _0x5d0988;};import{Plugin as _0x1cc996,PendingActions as _0x422c64}from'ckeditor5/src/core';import{LiveRange as _0x3a8825}from'ckeditor5/src/engine';import{CKEditorError as _0x2be2ae,uid as _0x2a116d,priorities as _0x54d533,logWarning as _0x416c2c}from'ckeditor5/src/utils';import{toWidget as _0x5aaa4e}from'ckeditor5/src/widget';import{Users as _0x42484a,hashObject as _0x53eac6}from'ckeditor5-collaboration/src/collaboration-core';import _0x567c0f from'./commands/trackchangescommand';import _0x285a53 from'./commands/acceptsuggestioncommand';import _0x1ca973 from'./commands/discardsuggestioncommand';import _0x42d775 from'./commands/executeonallsuggestionscommand';import _0x2f07da from'./commands/executeonselectedsuggestionscommand';import _0x4f8884 from'./suggestion';import _0x3c0a71 from'./suggestiondescriptionfactory';import _0x251547 from'./integrations/alignment';import _0x5b74b8 from'./integrations/basicstyles';import _0x30d568 from'./integrations/blockquote';import _0x4f3527 from'./integrations/ckbox';import _0x58865b from'./integrations/codeblock';import _0x4c4912 from'./integrations/comments';import _0x48ef08 from'./integrations/deletecommand';import _0x22c70f from'./integrations/documentlist';import _0x35b8cd from'./integrations/entercommand';import _0x1f3f3c from'./integrations/findandreplace';import _0x4d17b2 from'./integrations/font';import _0x2c1e51 from'./integrations/formatpainter';import _0xe26168 from'./integrations/heading';import _0x463b42 from'./integrations/highlight';import _0x2bc5d8 from'./integrations/horizontalline';import _0x296ecf from'./integrations/htmlembed';import _0x31ac35 from'./integrations/image';import _0x3e9484 from'./integrations/imagereplace';import _0x5cdd10 from'./integrations/importword';import _0xbde541 from'./integrations/indent';import _0x534056 from'./integrations/inputcommand';import _0x36b719 from'./integrations/link';import _0x5918e3 from'./integrations/list';import _0xa4d683 from'./integrations/listproperties';import _0x59a0d0 from'./integrations/mediaembed';import _0x42cc3e from'./integrations/mention';import _0xa5cdc9 from'./integrations/pagebreak';import _0xb4d4 from'./integrations/paragraph';import _0x388af0 from'./integrations/removeformat';import _0x339dfd from'./integrations/restrictededitingmode';import _0x1f3ff7 from'./integrations/shiftentercommand';import _0x24b247 from'./integrations/standardeditingmode';import _0x339349 from'./integrations/style';import _0x35b40f from'./integrations/table';import _0x3b14d2 from'./integrations/tablemergesplit';import _0x50d5a2 from'./integrations/tableheadings';import _0x44abf0 from'./integrations/tableclipboard';import _0x49907d from'./integrations/tablecolumnresize';import _0x18f54e from'./integrations/template';import _0x5a3e1d from'./integrations/tableofcontents';import _0x4cc8f7 from'./integrations/title';import _0x3a6488 from'./integrations/undo';import{getTranslation as _0x22c47e}from'./utils/common-translations';import _0x4101c1 from'./integrations/tablecaption';import _0x1f811e from'./integrations/documentlistproperties';import _0x249e3f from'./integrations/tableproperties';export default class p extends _0x1cc996{static get['requires'](){return[_0x5d09('0x138'),_0x42484a,_0x422c64,_0x251547,_0x5b74b8,_0x30d568,_0x4f3527,_0x58865b,_0x4c4912,_0x48ef08,_0x22c70f,_0x1f811e,_0x35b8cd,_0x1f3f3c,_0x4d17b2,_0x2c1e51,_0xe26168,_0x463b42,_0x2bc5d8,_0x296ecf,_0x31ac35,_0x3e9484,_0x5cdd10,_0xbde541,_0x534056,_0x36b719,_0x5918e3,_0xa4d683,_0x59a0d0,_0x42cc3e,_0xa5cdc9,_0xb4d4,_0x388af0,_0x339dfd,_0x1f3ff7,_0x24b247,_0x339349,_0x35b40f,_0x3b14d2,_0x50d5a2,_0x4101c1,_0x44abf0,_0x49907d,_0x5a3e1d,_0x249e3f,_0x18f54e,_0x4cc8f7,_0x3a6488];}static get[_0x5d09('0x10')](){return _0x5d09('0xd5');}constructor(_0x1b13dc){function _0x28e541(_0x1117c1){return _0x1117c1['map'](_0x1c53d4=>String[_0x5d09('0x5d')](_0x1c53d4))[_0x5d09('0xa8')]('');}super(_0x1b13dc),this[_0x5d09('0x1e')](_0x5d09('0x40'),[]),this['on'](_0x5d09('0x110'),(_0x370b16,_0x5ced93,_0x28a703,_0xb011c2)=>{this['_model']['change'](()=>{for(const _0x127db3 of[..._0xb011c2,..._0x28a703])this[_0x5d09('0x6e')]['markers']['has'](_0x127db3)&&_0x1b13dc[_0x5d09('0x76')]['reconvertMarker'](_0x127db3);});}),this[_0x5d09('0x11e')]=new _0x3c0a71(this['editor'][_0x5d09('0x119')]['schema'],this[_0x5d09('0x3')][_0x5d09('0xf7')]),this[_0x5d09('0x12c')]=null,this[_0x5d09('0xf')]=new Dt(this['editor']),this[_0x5d09('0x6d')]=new Map(),this[_0x5d09('0x104')]=_0x1b13dc[_0x5d09('0x6')][_0x5d09('0xbb')](_0x5d09('0x138')),this['_enabledCommands']=new Set(),this[_0x5d09('0x6e')]=this['editor'][_0x5d09('0x119')],this['_suggestionState']=new WeakMap(),this[_0x5d09('0x7b')]=!0x1,_0x1b13dc[_0x5d09('0x116')][_0x5d09('0x8f')](_0x5d09('0xef'),_0x5d09('0x47')),this[_0x5d09('0xf0')]=_0x1b13dc[_0x5d09('0x116')]['get'](_0x5d09('0xef')),_0x1b13dc[_0x5d09('0x116')][_0x5d09('0x8f')](_0x5d09('0x133'),!0x0),this['_mergeNestedSuggestions']=_0x1b13dc['config'][_0x5d09('0xbb')]('trackChanges.mergeNestedSuggestions'),this[_0x5d09('0x63')]=new _0x567c0f(_0x1b13dc,this[_0x5d09('0xe2')]),this[_0x28e541([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x28e541([0x34,0x30,0x34,0x36,0x31,0x30,0x33,0x32]);}[_0x5d09('0xbc')](){const _0x5131c0=this[_0x5d09('0x3')];_0x5131c0[_0x5d09('0x35')][_0x5d09('0x2')](_0x5d09('0xc1'))[_0x5d09('0xd7')]({'model':_0x5d09('0x121'),'view':_0x4ccbd3=>{const {id:_0x3561c9,type:_0x3b2a01}=this[_0x5d09('0x13')](_0x4ccbd3['markerName']),_0x477f95=[_0x5d09('0xda'),_0x5d09('0xc8')+_0x3b2a01];let _0x34bd62=0xbb8;return this[_0x5d09('0x40')][_0x5d09('0xc9')](_0x4ccbd3[_0x5d09('0x62')])&&(_0x477f95['push'](_0x5d09('0x90')),_0x34bd62=0xbc2),'deletion'==_0x3b2a01&&(_0x34bd62+=0x5),{'classes':_0x477f95,'attributes':{'data-suggestion':_0x3561c9},'priority':_0x34bd62};}}),_0x5131c0[_0x5d09('0x35')][_0x5d09('0x2')](_0x5d09('0xc2'))[_0x5d09('0x57')](_0xb8539c=>{_0xb8539c['on'](_0x5d09('0x4b'),(_0x1e5f7a,_0x318cea,_0xa1bb37)=>{if(!_0xa1bb37[_0x5d09('0xa')][_0x5d09('0x88')])return;const _0x396736=_0x318cea['item'];if(!_0x396736)return;const _0x4a77d5=_0xa1bb37['mapper']['toViewElement'](_0x396736);_0x5131c0[_0x5d09('0x119')][_0x5d09('0x49')][_0x5d09('0x3d')](_0x396736)&&_0x4a77d5&&!_0x4a77d5[_0x5d09('0x19')](_0x5d09('0x127'))&&_0x4a77d5['is'](_0x5d09('0x7'))&&_0x5aaa4e(_0x4a77d5,_0xa1bb37[_0x5d09('0x12d')]);},{'priority':_0x5d09('0xe8')});}),_0x5131c0[_0x5d09('0x35')]['for'](_0x5d09('0xc2'))[_0x5d09('0xd7')]({'model':'suggestion','view':(_0x5885a1,_0x4340cb)=>{if(!_0x4340cb[_0x5d09('0xa')][_0x5d09('0x88')])return null;const {type:_0x219b14}=this[_0x5d09('0x13')](_0x5885a1[_0x5d09('0x62')]);return{'classes':[_0x5d09('0xda'),'ck-suggestion-marker-'+_0x219b14],'priority':0xbb8};}});const _0x42c2c2=({showActiveMarkers:_0x428c26=!0x0}={})=>(_0x6e1c38,_0x6035d5,_0x217425)=>{if(!_0x6035d5[_0x5d09('0x13c')])return;if(_0x6035d5[_0x5d09('0x13c')]['is']('selection'))return void _0x217425[_0x5d09('0x114')]['consume'](_0x6035d5[_0x5d09('0x13c')],_0x6e1c38['name']);const _0x539f3d=_0x217425['mapper'][_0x5d09('0x24')](_0x6035d5[_0x5d09('0x13c')]);if(!(_0x6035d5['item']['is'](_0x5d09('0x65'))&&_0x5131c0[_0x5d09('0x119')][_0x5d09('0x49')][_0x5d09('0x107')](_0x6035d5[_0x5d09('0x13c')])&&!_0x539f3d[_0x5d09('0x19')](_0x5d09('0x112'))))return;const {id:_0x5bcb4f}=this[_0x5d09('0x13')](_0x6035d5[_0x5d09('0x62')]);_0x217425['writer']['addClass']([_0x5d09('0xda'),_0x5d09('0x0')],_0x539f3d),_0x217425['writer'][_0x5d09('0x11d')](_0x5d09('0x137'),_0x5bcb4f,_0x539f3d),_0x217425[_0x5d09('0xc0')][_0x5d09('0xb8')](_0x539f3d,_0x6035d5[_0x5d09('0x62')]),_0x428c26&&(this['activeMarkers']['includes'](_0x6035d5['markerName'])?_0x217425[_0x5d09('0x12d')]['addClass']('ck-suggestion-marker--active',_0x539f3d):_0x217425[_0x5d09('0x12d')]['removeClass'](_0x5d09('0x90'),_0x539f3d));for(const _0x12baea of _0x5131c0[_0x5d09('0x119')][_0x5d09('0x97')](_0x6035d5[_0x5d09('0x13c')])[_0x5d09('0xe0')]())_0x217425['consumable']['consume'](_0x12baea,_0x6e1c38[_0x5d09('0xac')]);_0x217425['consumable'][_0x5d09('0x83')](_0x6035d5[_0x5d09('0x13c')],_0x6e1c38['name']);};_0x5131c0['conversion'][_0x5d09('0x2')](_0x5d09('0xc2'))['add'](_0x5db17c=>{_0x5db17c['on'](_0x5d09('0x7c'),(_0x527260,_0x582eda,_0x78fe97)=>{_0x78fe97['options'][_0x5d09('0x88')]&&_0x42c2c2({'showActiveMarkers':!0x1})(_0x527260,_0x582eda,_0x78fe97);},{'priority':_0x5d09('0xcf')});}),_0x5131c0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x221b68,_0x1cd03d)=>_0x1cd03d[_0x5d09('0xa')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x221b68[_0x5d09('0xee')](0xb)}}),_0x5131c0['conversion'][_0x5d09('0x2')](_0x5d09('0x8b'))[_0x5d09('0x70')]({'view':{'name':_0x5d09('0x121'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x417e21,{writer:_0x6c661b})=>{let _0x257205='suggestion:'+_0x417e21[_0x5d09('0x99')](_0x5d09('0xd'))+':'+_0x417e21[_0x5d09('0x99')]('id');return _0x417e21[_0x5d09('0x99')](_0x5d09('0x72'))&&(_0x257205+=':'+_0x417e21[_0x5d09('0x99')](_0x5d09('0x72'))),_0x6c661b[_0x5d09('0xc6')](_0x5d09('0x2f'),{'data-name':_0x257205});}}),_0x5131c0[_0x5d09('0x35')]['for'](_0x5d09('0x8b'))[_0x5d09('0xf4')]({'view':_0x5d09('0x121')}),_0x5131c0[_0x5d09('0x35')][_0x5d09('0x2')](_0x5d09('0xc1'))['add'](_0x30411f=>{_0x30411f['on'](_0x5d09('0x7c'),_0x42c2c2(),{'priority':_0x5d09('0xe8')});}),_0x5131c0[_0x5d09('0x35')][_0x5d09('0x2')](_0x5d09('0xc1'))[_0x5d09('0x57')](_0x50f689=>{_0x50f689['on']('removeMarker:suggestion:formatBlock',(_0x3a67a2,_0x4ecc31,_0x2fcda5)=>{const _0x3cae63=_0x2fcda5[_0x5d09('0xc0')][_0x5d09('0x79')](_0x4ecc31[_0x5d09('0x62')]);if(_0x3cae63)for(const _0x5bba65 of _0x3cae63)_0x5bba65[_0x5d09('0x19')](_0x5d09('0x112'))||(_0x2fcda5[_0x5d09('0x12d')][_0x5d09('0xe6')]([_0x5d09('0xda'),_0x5d09('0x0'),_0x5d09('0x90')],_0x5bba65),_0x2fcda5[_0x5d09('0x12d')][_0x5d09('0x86')](_0x5d09('0x137'),_0x5bba65),_0x2fcda5[_0x5d09('0xc0')]['unbindElementFromMarkerName'](_0x5bba65,_0x4ecc31[_0x5d09('0x62')]));},{'priority':_0x5d09('0xe8')});}),_0x5131c0['model'][_0x5d09('0xaa')]['registerPostFixer'](_0x45104f=>{let _0x3e045d=!0x1;const _0x45d309=Array['from'](_0x5131c0['model'][_0x5d09('0xaa')][_0x5d09('0x58')][_0x5d09('0x21')]()),_0x216ccb=new Set();for(const {name:_0x5dcf29,data:_0x25da32}of _0x45d309){const {group:_0x17bc3b,type:_0x50cb8a,id:_0x471856}=this[_0x5d09('0x13')](_0x5dcf29);if(_0x5d09('0x121')!==_0x17bc3b)continue;const _0x54b51c=this['_suggestions']['get'](_0x471856);if(null!=_0x25da32[_0x5d09('0x2b')]){_0x5d09('0xaf')==_0x50cb8a&&(_0x3e045d=_0x3e045d||Mt(_0x25da32['newRange'],_0x5dcf29,_0x45104f,_0x5131c0[_0x5d09('0x119')][_0x5d09('0x49')]));if(_0x25da32['newRange'][_0x5d09('0x3f')]||_0x5d09('0x7d')==_0x25da32[_0x5d09('0x2b')][_0x5d09('0xa9')][_0x5d09('0x8d')]||_0x5d09('0x32')==_0x50cb8a&&!Nt(_0x25da32['newRange'])||_0x5d09('0xcc')==_0x50cb8a&&!(!_t(_0x32dd63=_0x25da32[_0x5d09('0x2b')])&&!function(_0x5d0bd8){return _0x5d0bd8[_0x5d09('0x102')]['parent']==_0x5d0bd8[_0x5d09('0x4')][_0x5d09('0x117')]&&_0x5d0bd8[_0x5d09('0x102')]['isAtEnd'];}(_0x32dd63)))_0x45104f['removeMarker'](_0x5dcf29),_0x3e045d=!0x0;else{if(!_0x54b51c||!_0x54b51c['isInContent'])continue;_0x216ccb[_0x5d09('0x57')](_0x54b51c);}}}var _0x32dd63;return _0x216ccb[_0x5d09('0x118')]>0x0&&(_0x3e045d=!!this[_0x5d09('0x30')](_0x216ccb)||_0x3e045d),_0x3e045d;}),_0x5131c0[_0x5d09('0x119')][_0x5d09('0xaa')]['registerPostFixer'](_0x1aaa9d=>{let _0x531e60=!0x1;for(const _0x54d44e of _0x5131c0[_0x5d09('0x119')]['document'][_0x5d09('0x58')]['getChanges']()){if('insert'!=_0x54d44e[_0x5d09('0x2e')])continue;const _0x30ef54=_0x54d44e[_0x5d09('0xb3')]['getShiftedBy'](_0x54d44e['length']);if(_0x30ef54[_0x5d09('0xfc')])for(const _0x3f4d92 of this['_suggestions'][_0x5d09('0x5f')]()){if(_0x3f4d92[_0x5d09('0x128')]||!_0x3f4d92['isInContent'])continue;if(_0x5d09('0x32')!=_0x3f4d92[_0x5d09('0x2e')])continue;const _0x2a43d6=_0x3f4d92[_0x5d09('0xd9')]();if(_0x2a43d6['start'][_0x5d09('0xa1')]!=_0x2a43d6[_0x5d09('0x4')][_0x5d09('0xa1')]&&_0x2a43d6[_0x5d09('0x4')]['isEqual'](_0x54d44e[_0x5d09('0xb3')])){const _0x10e82c=_0x5131c0[_0x5d09('0x119')][_0x5d09('0x12b')](_0x2a43d6[_0x5d09('0x102')],_0x30ef54);_0x1aaa9d[_0x5d09('0x78')](_0x3f4d92[_0x5d09('0xb0')](),{'range':_0x10e82c}),_0x531e60=!0x0;}}}return _0x531e60;}),_0x5131c0[_0x5d09('0x119')]['markers']['on'](_0x5d09('0xe7'),(_0x2d6aaf,_0x17ba2b,_0x12f372)=>{if(null==_0x12f372){const {id:_0x56e4ee}=this[_0x5d09('0x13')](_0x17ba2b[_0x5d09('0xac')]),_0x556e6a=this[_0x5d09('0x6d')][_0x5d09('0xbb')](_0x56e4ee);_0x556e6a&&_0x556e6a[_0x5d09('0xea')](_0x17ba2b[_0x5d09('0xac')]);}}),_0x5131c0['model'][_0x5d09('0xaa')]['on'](_0x5d09('0xd4'),()=>{const _0xda7fee=Array[_0x5d09('0xa0')](_0x5131c0[_0x5d09('0x119')][_0x5d09('0xaa')][_0x5d09('0x58')]['getChangedMarkers']())['filter'](_0x2c4837=>_0x5d09('0x121')===this[_0x5d09('0x13')](_0x2c4837[_0x5d09('0xac')])[_0x5d09('0xfd')]);if(0x0===_0xda7fee[_0x5d09('0xc4')])return;_0xda7fee[_0x5d09('0x6b')]((_0x35f143,_0x244ad9)=>{const _0x45e583=_0x35f143[_0x5d09('0x7a')][_0x5d09('0x6f')],_0x116c5c=_0x244ad9[_0x5d09('0x7a')][_0x5d09('0x6f')];return null===_0x45e583&&null===_0x116c5c?0x0:null===_0x45e583&&null!==_0x116c5c?-0x1:null!==_0x45e583&&null===_0x116c5c?0x1:_0x45e583[_0x5d09('0x102')][_0x5d09('0x13b')](_0x116c5c['start'])?-0x1:0x1;});const _0x5d4323=new Set(),_0x51f645=new Set();for(const {name:_0x818530,data:_0x440403}of _0xda7fee){const {id:_0x4ed4ec}=this[_0x5d09('0x13')](_0x818530);if(null===_0x440403['oldRange']){const _0x3fc9d8=this[_0x5d09('0x11')](_0x818530);_0x51f645[_0x5d09('0x57')](_0x3fc9d8);}else{const _0x466e9b=this[_0x5d09('0x6d')][_0x5d09('0xbb')](_0x4ed4ec);null!==_0x440403[_0x5d09('0x2b')]||_0x466e9b[_0x5d09('0x103')]?(_0x5d4323[_0x5d09('0x57')](_0x466e9b[_0x5d09('0x18')]),_0x51f645['add'](_0x466e9b)):this[_0x5d09('0x42')](_0x466e9b);}}_0x51f645[_0x5d09('0x118')]>0x0&&this[_0x5d09('0x87')](_0x51f645);for(const _0x1e0d17 of _0x5d4323)this[_0x5d09('0x2c')](_0x5d09('0xbf'),_0x1e0d17);}),_0x5131c0['model']['on'](_0x5d09('0xfa'),(_0x4657df,_0x1bf89c)=>{const _0x24d075=_0x1bf89c[0x0];if(!this[_0x5d09('0x6d')][_0x5d09('0x118')])return;if(!_0x24d075[_0x5d09('0xce')])return;if(_0x24d075[_0x5d09('0xb1')]['isUndo']||!_0x24d075[_0x5d09('0xb1')][_0x5d09('0x69')])return;let _0x40915b,_0xf2e46;switch(_0x24d075[_0x5d09('0x2e')]){case _0x5d09('0x11f'):_0x40915b=_0x5131c0['model'][_0x5d09('0x135')](_0x24d075[_0x5d09('0xb3')]),_0xf2e46=_0x40915b[_0x5d09('0x123')](_0x24d075['howMany']);break;case _0x5d09('0x7f'):_0x40915b=_0x5131c0['model']['createPositionAt'](_0x24d075[_0x5d09('0x9a')]),_0xf2e46=_0x5131c0[_0x5d09('0x119')][_0x5d09('0x135')](_0x24d075[_0x5d09('0x9b')]);break;case'move':_0x40915b=_0x5131c0[_0x5d09('0x119')]['createPositionAt'](_0x24d075[_0x5d09('0xf5')]),_0xf2e46=_0x40915b[_0x5d09('0x123')](_0x24d075[_0x5d09('0xdf')]);break;default:return;}const _0x5e9f4f=_0x5131c0[_0x5d09('0x119')][_0x5d09('0x12b')](_0x40915b,_0xf2e46);_0x5131c0['model'][_0x5d09('0x26')](()=>{for(const {suggestion:_0x433663,meta:_0x1b197c}of this[_0x5d09('0x9')](_0x5e9f4f)){if(_0x433663[_0x5d09('0x128')])continue;if(_0x5d09('0xaf')==_0x433663['type'])continue;const _0x28b0d2=_0x433663[_0x5d09('0x7a')]&&_0x433663[_0x5d09('0x7a')][_0x5d09('0x56')];(_0x5d09('0x32')!=_0x433663[_0x5d09('0x2e')]||_0x5d09('0x7f')==_0x24d075[_0x5d09('0x2e')]&&!_0x28b0d2)&&(_0x1b197c[_0x5d09('0x94')]||_0x5d09('0x5b')==_0x433663[_0x5d09('0x2e')]&&_0x1b197c['isOwn']||_0x433663['getFirstRange']()['containsRange'](_0x5e9f4f)&&this[_0x5d09('0x1')](_0x433663,_0x40915b,_0xf2e46));}});},{'priority':_0x5d09('0x1f')}),_0x5131c0[_0x5d09('0x119')]['on']('deleteContent',(_0x4b5762,_0x3a2f60)=>{const _0x2b7720=_0x3a2f60[0x0],_0x2eb03d=_0x3a2f60[0x1];if(_0x2eb03d&&_0x2eb03d[_0x5d09('0x126')])return;if(this[_0x5d09('0x7b')])return;if(!this[_0x5d09('0x63')][_0x5d09('0x41')])return;if(_0x2b7720['isCollapsed'])return;const _0xfb783b=_0x5131c0['model'][_0x5d09('0x49')],{start:_0x4cf55b,end:_0x13a575}=_0x2b7720['getFirstRange'](),_0x435965=_0x4cf55b['nodeAfter']&&_0xfb783b['isLimit'](_0x4cf55b[_0x5d09('0xe1')])?null:_0xfb783b[_0x5d09('0x10d')](_0x4cf55b,_0x5d09('0x130')),_0x923355=_0x13a575[_0x5d09('0x117')]&&_0xfb783b[_0x5d09('0x52')](_0x13a575['nodeBefore'])?null:_0xfb783b[_0x5d09('0x10d')](_0x13a575,'backward'),_0x8aee43=_0x5131c0[_0x5d09('0x119')]['createRange'](_0x435965?_0x435965[_0x5d09('0x102')]:_0x4cf55b,_0x923355?_0x923355[_0x5d09('0x4')]:_0x13a575);_0x5131c0[_0x5d09('0x119')]['change'](_0xdbfe11=>{this[_0x5d09('0x1c')](_0x8aee43);const _0x3189de=_0x5131c0[_0x5d09('0x119')][_0x5d09('0x49')]['getNearestSelectionRange'](_0x8aee43[_0x5d09('0x102')]);_0x2b7720['is']('documentSelection')?_0xdbfe11[_0x5d09('0x136')](_0x3189de):_0x2b7720[_0x5d09('0x22')](_0x3189de);}),_0x4b5762[_0x5d09('0x139')]();},{'priority':_0x54d533[_0x5d09('0x12')]+0xa}),_0x5131c0['model']['on']('insertContent',(_0x499d8a,_0x7f4839)=>{const _0x1737c3=_0x7f4839[_0x7f4839[_0x5d09('0xc4')]-0x1];_0x1737c3&&_0x1737c3[_0x5d09('0x126')]||this['_isForcedDefaultExecutionBlock']||this[_0x5d09('0x63')][_0x5d09('0x41')]&&(_0x5131c0[_0x5d09('0x119')][_0x5d09('0x26')](()=>{let _0x3f015b=_0x5131c0[_0x5d09('0x119')][_0x5d09('0xfb')](_0x7f4839[0x0],_0x7f4839[0x1],_0x7f4839[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f015b)return;_0x499d8a[_0x5d09('0x105')]=_0x3f015b['clone']();const _0x585a68=_0x3f015b['end'][_0x5d09('0x117')],_0x49caa0=_0x5131c0[_0x5d09('0x119')][_0x5d09('0x49')];_0x585a68&&_0x49caa0['isBlock'](_0x585a68)&&!_0x49caa0[_0x5d09('0x3d')](_0x585a68)&&(_0x3f015b=_0x5131c0['model'][_0x5d09('0x12b')](_0x3f015b[_0x5d09('0x102')],_0x5131c0[_0x5d09('0x119')][_0x5d09('0x135')](_0x585a68,_0x5d09('0x4')))),this[_0x5d09('0x68')](_0x3f015b);}),_0x499d8a[_0x5d09('0x139')]());},{'priority':_0x5d09('0xe8')}),this['editor'][_0x5d09('0x4e')][_0x5d09('0x57')](_0x5d09('0xe9'),this[_0x5d09('0x63')]),this['enableCommand']('trackChanges');const _0x2733cd=new _0x285a53(_0x5131c0,this[_0x5d09('0x6d')]);_0x5131c0[_0x5d09('0x4e')][_0x5d09('0x57')](_0x5d09('0xa5'),_0x2733cd),this[_0x5d09('0xf6')]('acceptSuggestion');const _0x3181c0=new _0x1ca973(_0x5131c0,this[_0x5d09('0x6d')]);_0x5131c0[_0x5d09('0x4e')][_0x5d09('0x57')]('discardSuggestion',_0x3181c0),this[_0x5d09('0xf6')]('discardSuggestion'),_0x5131c0[_0x5d09('0x4e')][_0x5d09('0x57')]('acceptAllSuggestions',new _0x42d775(_0x5131c0,_0x2733cd,this[_0x5d09('0x6d')])),this[_0x5d09('0xf6')]('acceptAllSuggestions'),_0x5131c0['commands'][_0x5d09('0x57')](_0x5d09('0xb6'),new _0x42d775(_0x5131c0,_0x3181c0,this[_0x5d09('0x6d')])),this['enableCommand']('discardAllSuggestions'),_0x5131c0[_0x5d09('0x4e')]['add'](_0x5d09('0x95'),new _0x2f07da(_0x5131c0,_0x2733cd,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5131c0[_0x5d09('0x4e')][_0x5d09('0x57')](_0x5d09('0x8'),new _0x2f07da(_0x5131c0,_0x3181c0,this[_0x5d09('0x6d')])),this[_0x5d09('0xf6')](_0x5d09('0x8'));const _0x477761=_0x5131c0['plugins'][_0x5d09('0xbb')](_0x5d09('0x138'));this[_0x5d09('0x9f')](_0x477761,_0x5d09('0x120'),(_0x1def69,{threadId:_0x59b8bf})=>{const _0x59fc56=this['_suggestions'][_0x5d09('0xbb')](_0x59b8bf);_0x59fc56&&_0x59fc56[_0x5d09('0xeb')]&&0x1===_0x59fc56[_0x5d09('0xeb')][_0x5d09('0xc4')]&&this[_0x5d09('0x39')](_0x59b8bf,{'hasComments':!0x0});},{'priority':_0x5d09('0xc7')}),this[_0x5d09('0x9f')](_0x477761,_0x5d09('0x96'),(_0xa91da1,{threadId:_0x4c296b})=>{const _0x2000f4=this[_0x5d09('0x6d')][_0x5d09('0xbb')](_0x4c296b);_0x2000f4&&_0x2000f4[_0x5d09('0xeb')]&&!_0x2000f4[_0x5d09('0xeb')]['length']&&this[_0x5d09('0x39')](_0x4c296b,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5d09('0x115')](_0x3952ec){if(this['_adapter'])throw new _0x2be2ae('track-changes-adapter-already-set',this);this['_adapter']=_0x3952ec;}get[_0x5d09('0x115')](){return this['_adapter'];}[_0x5d09('0xc5')]({skipNotAttached:_0x37deb4=!0x1,toJSON:_0x268871=!0x1}={}){const _0x454256=[];for(const _0x140be1 of this[_0x5d09('0x6d')][_0x5d09('0x5f')]())_0x37deb4&&!_0x140be1[_0x5d09('0x103')]||_0x454256[_0x5d09('0x122')](_0x140be1);return _0x268871?_0x454256[_0x5d09('0x66')](_0x1631f4=>_0x1631f4[_0x5d09('0xc3')]()):_0x454256;}[_0x5d09('0x44')](_0x3ddfcd){const _0x7e4e6e=this[_0x5d09('0x6d')][_0x5d09('0xbb')](_0x3ddfcd);if(!_0x7e4e6e)throw new _0x2be2ae('track-changes-suggestion-not-found',this);return _0x7e4e6e;}[_0x5d09('0xd1')](_0x2d1468){return this[_0x5d09('0x6d')][_0x5d09('0x51')](_0x2d1468);}[_0x5d09('0xca')](_0xc24ebe){const {authorId:_0x5c40cb,id:_0x592369,attributes:_0x3c0edf}=_0xc24ebe,[_0x57ff04,_0x3dbe4b]=_0xc24ebe[_0x5d09('0x2e')]['split'](':'),_0x4dd2f7=this['_suggestions']['get'](_0x592369)||this['_createSuggestion'](_0x57ff04,_0x3dbe4b,_0x592369,_0x5c40cb,_0x3c0edf);if(this[_0x5d09('0x2a')](_0x4dd2f7),this[_0x5d09('0x77')](_0x4dd2f7,_0x57ff04,_0x3dbe4b||null,_0x5c40cb),_0x4dd2f7[_0x5d09('0x82')]=_0xc24ebe['createdAt'],_0x3c0edf&&_0x3c0edf[_0x5d09('0xbe')]){const _0x3b66ae=_0x3c0edf[_0x5d09('0xbe')],_0x3f7501=this[_0x5d09('0xa2')](_0x3b66ae[_0x5d09('0x25')]);_0x4dd2f7['authoredAt']=_0x3b66ae[_0x5d09('0x82')],_0x4dd2f7[_0x5d09('0x67')]=_0x3f7501,_0x4dd2f7[_0x5d09('0x4f')]=!0x0;}else _0x4dd2f7[_0x5d09('0xa7')]=_0xc24ebe[_0x5d09('0x82')];switch(_0xc24ebe[_0x5d09('0x7a')]&&(_0x4dd2f7[_0x5d09('0x7a')]=_0xc24ebe['data']),_0xc24ebe[_0x5d09('0x8a')]&&(_0x4dd2f7[_0x5d09('0x8a')]=_0xc24ebe['attributes']),this[_0x5d09('0x12c')]&&this[_0x5d09('0x12c')][_0x5d09('0x100')]||(_0x4dd2f7[_0x5d09('0xd6')]=!0x0),this[_0x5d09('0xf2')][_0x5d09('0xbb')](_0x4dd2f7)){case'notReady':this[_0x5d09('0xf2')][_0x5d09('0x1e')](_0x4dd2f7,_0x5d09('0x129'));break;case _0x5d09('0x101'):_0x4dd2f7['isInContent']?(this[_0x5d09('0xf2')][_0x5d09('0x1e')](_0x4dd2f7,_0x5d09('0x92')),this[_0x5d09('0x2c')](_0x5d09('0xb7'),_0x4dd2f7)):this[_0x5d09('0xf2')]['set'](_0x4dd2f7,_0x5d09('0xff'));}return _0x4dd2f7;}[_0x5d09('0xa5')](_0x2b0b8b){this[_0x5d09('0x126')](()=>{this['editor'][_0x5d09('0x119')][_0x5d09('0x26')](()=>{for(const _0x29c1e6 of _0x2b0b8b[_0x5d09('0x34')]())_0x29c1e6['accept']();});});}[_0x5d09('0x5e')](_0x9f2a9c){this[_0x5d09('0x126')](()=>{this[_0x5d09('0x3')][_0x5d09('0x119')][_0x5d09('0x26')](()=>{for(const _0x9685b of _0x9f2a9c[_0x5d09('0x34')]())_0x9685b[_0x5d09('0x11a')]();});});}[_0x5d09('0xf6')](_0x3525e2,_0x5a7c05){const _0x4bbc61=this[_0x5d09('0x3')][_0x5d09('0x4e')][_0x5d09('0xbb')](_0x3525e2);if(!_0x4bbc61)throw new _0x2be2ae(_0x5d09('0xe5'),this,{'commandName':_0x3525e2});this[_0x5d09('0xe2')]['add'](_0x4bbc61),_0x5a7c05&&_0x4bbc61['on'](_0x5d09('0xf1'),(_0x5287a5,_0x3c1baa)=>{this[_0x5d09('0x63')][_0x5d09('0x41')]&&(this[_0x5d09('0x7b')]||_0x3c1baa['length']>0x0&&_0x3c1baa[_0x3c1baa[_0x5d09('0xc4')]-0x1]&&_0x3c1baa[_0x3c1baa[_0x5d09('0xc4')]-0x1]['forceDefaultExecution']||(_0x5a7c05((..._0x3a270b)=>_0x4bbc61[_0x5d09('0xf1')](..._0x3a270b,{'forceDefaultExecution':!0x0}),..._0x3c1baa),_0x5287a5[_0x5d09('0x139')]()));},{'priority':'high'});}[_0x5d09('0x126')](_0x561edc){let _0x30bddc,_0x1006bd;const _0x293524=this[_0x5d09('0x7b')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x30bddc=_0x561edc();}catch(_0x504aaa){_0x1006bd=_0x504aaa;}return _0x293524||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1006bd&&_0x2be2ae['rethrowUnexpectedError'](_0x1006bd,this),_0x30bddc;}[_0x5d09('0x68')](_0x54495d,_0x1afccd=null,_0x3fd1e8={}){if(_0x54495d[_0x5d09('0x3f')])return null;const _0x236db3=this[_0x5d09('0x3')]['plugins'][_0x5d09('0xbb')](_0x5d09('0xe3'))['me'];for(const {suggestion:_0x1e57d3,meta:_0x5c20ef}of this[_0x5d09('0x9')](_0x54495d,'insertion'))if(_0x5c20ef['isOwn']){if(!_0x5c20ef[_0x5d09('0x10e')]){if(!this[_0x5d09('0x3c')]&&_0x5c20ef[_0x5d09('0x94')])continue;return _0x1e57d3;}if(_0x1afccd==_0x1e57d3[_0x5d09('0x113')]){const _0x2ee01c=_0x1e57d3[_0x5d09('0xd9')]();return _0x2ee01c[_0x5d09('0x102')][_0x5d09('0x27')](_0x54495d[_0x5d09('0x4')])?this[_0x5d09('0x17')](_0x1e57d3,this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0x54495d[_0x5d09('0x102')],_0x2ee01c['end'])):this[_0x5d09('0x17')](_0x1e57d3,this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0x2ee01c[_0x5d09('0x102')],_0x54495d[_0x5d09('0x4')])),_0x1e57d3;}}const _0x40c1=_0x2a116d(),_0xa0f2ec=_0x236db3['id'],_0x2d4e99=_0x1afccd?_0x5d09('0xa4')+_0x1afccd:_0x5d09('0x5b'),_0x3b9387=this[_0x5d09('0x3e')]({'id':_0x40c1,'type':_0x2d4e99,'createdAt':new Date(),'authorId':_0xa0f2ec,'attributes':_0x3fd1e8});return this[_0x5d09('0x106')](_0x2d4e99,_0x40c1,_0xa0f2ec,_0x54495d),_0x3b9387;}['markMultiRangeInsertion'](_0x8fa730,_0x1886b1='multi',_0xc7d7b0={}){const _0xa796fe=this[_0x5d09('0x3')][_0x5d09('0x6')][_0x5d09('0xbb')](_0x5d09('0xe3'))['me'],_0x2564b6=this['_suggestionFactory'][_0x5d09('0x85')](_0x5d09('0x5b'),_0x1886b1,_0x5d09('0xa8'));for(const _0x4954e5 of this[_0x5d09('0xc5')]())if(_0x4954e5[_0x5d09('0x67')]['id']==_0xa796fe['id']&&_0x5d09('0x5b')==_0x4954e5[_0x5d09('0x2e')]&&_0x4954e5[_0x5d09('0x113')]==_0x1886b1&&(_0x2564b6(_0x4954e5[_0x5d09('0xd0')](),_0x8fa730)||_0x2564b6(_0x8fa730,_0x4954e5[_0x5d09('0xd0')]()))){for(const _0x348363 of _0x8fa730)_0x4954e5[_0x5d09('0x5a')](_0x348363);return _0x4954e5;}if(this['_mergeNestedSuggestions'])for(const _0x2ab28f of _0x8fa730)for(const {suggestion:_0x498536,meta:_0x32068e}of this[_0x5d09('0x9')](_0x2ab28f,_0x5d09('0x5b'))){if(!_0x32068e['isOwn'])continue;let _0x34a2b2=!0x0;for(const _0x13b79f of _0x498536[_0x5d09('0xd0')]())for(const _0x2b751f of _0x8fa730)if(!_0x13b79f[_0x5d09('0x108')](_0x2b751f)){_0x34a2b2=!0x1;break;}if(_0x34a2b2)return _0x498536;}const _0x6dac3e=_0x2a116d(),_0x5398e5=_0xa796fe['id'],_0x55720e=_0x5d09('0xa4')+_0x1886b1,_0x453d75=this[_0x5d09('0x3e')]({'id':_0x6dac3e,'type':_0x55720e,'createdAt':new Date(),'authorId':_0x5398e5,'attributes':_0xc7d7b0});for(const _0x15580d of _0x8fa730)this[_0x5d09('0x106')](_0x55720e,_0x6dac3e,_0x5398e5,_0x15580d,_0x4f8884[_0x5d09('0x11b')]());return _0x453d75;}[_0x5d09('0xb5')](_0x19700f,_0x5ef835,_0x2c63e6=null,_0x1f4a16={}){if(_0x2c63e6=_0x2c63e6||$t(_0x5ef835),_0x19700f['isCollapsed'])return null;if(_0x5d09('0xcb')===this[_0x5d09('0xf0')]){const _0x2dc6dc=this['_suggestionFactory']['getSuggestionCallback'](_0x5d09('0xaf'),_0x2c63e6,_0x5d09('0x1d'));return this[_0x5d09('0x126')](()=>_0x2dc6dc([_0x19700f],_0x5ef835,_0x1f4a16)),null;}const _0x5b5040=this[_0x5d09('0x3')][_0x5d09('0x6')][_0x5d09('0xbb')](_0x5d09('0xe3'))['me'],_0x58e278=[];if(_0x5d09('0xcd')!==this[_0x5d09('0xf0')])for(const {suggestion:_0x1e0b81,meta:_0x32286d}of this[_0x5d09('0x9')](_0x19700f,_0x5d09('0x5b')))_0x32286d[_0x5d09('0xec')]&&!_0x32286d[_0x5d09('0x14')]&&_0x58e278[_0x5d09('0x122')](..._0x1e0b81[_0x5d09('0xd0')]());const _0x34d182=function(_0x1a5cb8,_0x1b9f94){const _0x5cc891=[];for(const _0xb0cacc of _0x1b9f94){const _0x3b9b29=_0x1a5cb8[_0x5d09('0x55')](_0xb0cacc);_0x3b9b29&&_0x5cc891[_0x5d09('0x122')](_0x3b9b29);}return _0x5cc891;}(_0x19700f,_0x58e278),_0x11c076=function(_0x1eb119,_0x14c291){const _0x2cdf60=[_0x1eb119];for(const _0x245ee3 of _0x14c291){let _0x3d2025=0x0;for(;_0x3d2025<_0x2cdf60[_0x5d09('0xc4')];){const _0x235103=_0x2cdf60[_0x3d2025][_0x5d09('0x61')](_0x245ee3);_0x2cdf60[_0x5d09('0x80')](_0x3d2025,0x1,..._0x235103),_0x3d2025+=_0x235103['length'];}}return _0x2cdf60;}(_0x19700f,_0x58e278);_0x34d182[_0x5d09('0xc4')]&&this[_0x5d09('0x6e')]['change'](()=>{for(const _0xf25977 of _0x34d182){const _0x14a482=this[_0x5d09('0xf')][_0x5d09('0x85')](_0x5d09('0xaf'),_0x2c63e6,_0x5d09('0x1d'));this[_0x5d09('0x126')](()=>_0x14a482([_0xf25977],_0x5ef835,_0x1f4a16));}});for(const _0x4e4d8e of _0x11c076){let _0x5520ac=null,_0x5ac8c0=_0x4e4d8e[_0x5d09('0x102')],_0x4d8c2e=_0x4e4d8e[_0x5d09('0x4')];for(const {suggestion:_0xf3c6da,meta:_0x1a5616}of this[_0x5d09('0x9')](_0x4e4d8e,_0x5d09('0xaf'))){if(!_0x1a5616[_0x5d09('0xec')])continue;if(_0xf3c6da['subType']!=_0x2c63e6)continue;const _0x586d8d=_0xf3c6da['getFirstRange']();if(_0x586d8d[_0x5d09('0x108')](_0x4e4d8e,!0x0))return null;_0x5ac8c0=_0x5ac8c0[_0x5d09('0x13b')](_0x586d8d[_0x5d09('0x102')])?_0x5ac8c0:_0x586d8d[_0x5d09('0x102')],_0x4d8c2e=_0x4d8c2e[_0x5d09('0x15')](_0x586d8d['end'])?_0x4d8c2e:_0x586d8d['end'],_0x5520ac?_0x586d8d[_0x5d09('0x102')][_0x5d09('0x13b')](_0x5520ac[_0x5d09('0xd9')]()['start'])?(_0x5520ac['removeMarkers'](),_0x5520ac=_0xf3c6da):_0xf3c6da[_0x5d09('0x2d')]():_0x5520ac=_0xf3c6da;}const _0x10d68a=this['_model'][_0x5d09('0x12b')](_0x5ac8c0,_0x4d8c2e);if(_0x5520ac)this[_0x5d09('0x17')](_0x5520ac,_0x10d68a);else{const _0x18b64b=_0x2a116d(),_0x2a43fc=_0x5b5040['id'];this[_0x5d09('0x3e')]({'id':_0x18b64b,'type':'formatInline:'+_0x2c63e6,'data':_0x5ef835,'createdAt':new Date(),'authorId':_0x2a43fc,'attributes':_0x1f4a16}),this['_addSuggestionMarker']('formatInline:'+_0x2c63e6,_0x18b64b,_0x2a43fc,_0x10d68a);}}return null;}['markBlockFormat'](_0x474c37,_0x4c923c,_0x5d56eb=[],_0x286911=null,_0x696e48={}){_0x4c923c[_0x5d09('0xd2')]||(_0x4c923c[_0x5d09('0xd2')]=_0x4c923c[_0x5d09('0xad')]),_0x4c923c['multipleBlocks']=_0x474c37['is'](_0x5d09('0x84')),_0x286911=_0x286911||$t(_0x4c923c);const _0x448b92=_0x5d56eb['map'](_0xba95cb=>Rt(_0xba95cb,this[_0x5d09('0x6e')])),_0x1eaf5d=_0x474c37['is'](_0x5d09('0x84'))?_0x474c37:Rt(_0x474c37,this[_0x5d09('0x6e')]);if('never'===this[_0x5d09('0xf0')]){const _0x4741de=this['_suggestionFactory'][_0x5d09('0x85')](_0x5d09('0x32'),_0x286911,_0x5d09('0x1d'));return this[_0x5d09('0x126')](()=>_0x4741de([_0x1eaf5d],_0x4c923c,_0x696e48)),null;}_0x448b92['push'](_0x1eaf5d);let _0x4e88b2=!0x0;for(const _0x568ddc of _0x448b92)if(!this[_0x5d09('0x6c')](_0x568ddc)){_0x4e88b2=!0x1;break;}if(_0x4e88b2&&_0x5d09('0xcd')!==this[_0x5d09('0xf0')]){const _0x31ffcf=this[_0x5d09('0xf')][_0x5d09('0x85')](_0x5d09('0x32'),_0x286911,'accept');return this[_0x5d09('0x126')](()=>_0x31ffcf([_0x1eaf5d],_0x4c923c,_0x696e48)),null;}let _0x1ce93a=null,_0x380b66=_0x1eaf5d[_0x5d09('0x102')],_0x12fe64=_0x1eaf5d[_0x5d09('0x4')];for(const {suggestion:_0x5aa3f5,meta:_0x1fa5ac}of this['_findSuggestions'](_0x1eaf5d,_0x5d09('0x32'))){if(!_0x1fa5ac[_0x5d09('0xec')]||_0x1fa5ac[_0x5d09('0x10e')]||_0x1fa5ac[_0x5d09('0x94')]||_0x1fa5ac[_0x5d09('0x14')])continue;if(_0x5aa3f5[_0x5d09('0x7a')]['formatGroupId']!=_0x4c923c[_0x5d09('0xd2')])continue;const _0x45ef5d=_0x5aa3f5['getFirstRange']();if(_0x5aa3f5[_0x5d09('0x113')]==_0x286911){if(_0x45ef5d['containsRange'](_0x1eaf5d,!0x0))return null;_0x380b66=_0x380b66[_0x5d09('0x13b')](_0x45ef5d[_0x5d09('0x102')])?_0x380b66:_0x45ef5d['start'],_0x12fe64=_0x12fe64[_0x5d09('0x15')](_0x45ef5d[_0x5d09('0x4')])?_0x12fe64:_0x45ef5d[_0x5d09('0x4')],_0x1ce93a?_0x45ef5d[_0x5d09('0x102')]['isBefore'](_0x1ce93a[_0x5d09('0xd9')]()[_0x5d09('0x102')])?(_0x1ce93a['removeMarkers'](),_0x1ce93a=_0x5aa3f5):_0x5aa3f5[_0x5d09('0x2d')]():_0x1ce93a=_0x5aa3f5;}else{const _0x503ce1=_0x1eaf5d[_0x5d09('0x55')](_0x45ef5d);this['_cutOutSuggestionMarker'](_0x5aa3f5,_0x503ce1);}}const _0x535fe7=this['editor']['plugins'][_0x5d09('0xbb')](_0x5d09('0xe3'))['me'],_0x583e7d=_0x2a116d(),_0x546d76=_0x535fe7['id'];if(_0x1ce93a)return this[_0x5d09('0x17')](_0x1ce93a,this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0x380b66,_0x12fe64)),_0x1ce93a;{const _0x105a88=this['_setSuggestionData']({'id':_0x583e7d,'type':_0x5d09('0x12e')+_0x286911,'data':_0x4c923c,'createdAt':new Date(),'authorId':_0x546d76,'attributes':_0x696e48});return this[_0x5d09('0x106')](_0x5d09('0x12e')+_0x286911,_0x583e7d,_0x546d76,this['_model'][_0x5d09('0x12b')](_0x380b66,_0x12fe64)),_0x105a88;}}[_0x5d09('0xd8')](_0x412771,_0x36f1b2,_0x2c1b13=[],_0x8e681b=null,_0x50fd6f={}){_0x36f1b2[_0x5d09('0xd2')]||(_0x36f1b2['formatGroupId']=_0x36f1b2[_0x5d09('0xad')]);const _0x18bc7e=_0x412771[0x0];_0x36f1b2[_0x5d09('0x56')]=_0x18bc7e['is'](_0x5d09('0x84')),_0x8e681b=_0x8e681b||$t(_0x36f1b2);const _0x173b7b=_0x2c1b13['map'](_0x5aef80=>Rt(_0x5aef80,this[_0x5d09('0x6e')])),_0x591738=_0x18bc7e['is'](_0x5d09('0x84'))?_0x412771:_0x412771[_0x5d09('0x66')](_0x8489e4=>Rt(_0x8489e4,this[_0x5d09('0x6e')]));if('never'===this[_0x5d09('0xf0')]){const _0x1081bf=this[_0x5d09('0xf')]['getSuggestionCallback'](_0x5d09('0x32'),_0x8e681b,'accept');return this[_0x5d09('0x126')](()=>_0x1081bf(_0x591738,_0x36f1b2,_0x50fd6f)),null;}_0x173b7b[_0x5d09('0x122')](..._0x591738);let _0x5adac1=!0x0;for(const _0x10e7af of _0x173b7b)if(!this[_0x5d09('0x6c')](_0x10e7af)){_0x5adac1=!0x1;break;}if(_0x5adac1&&_0x5d09('0xcd')!==this[_0x5d09('0xf0')]){const _0x163a82=this[_0x5d09('0xf')][_0x5d09('0x85')](_0x5d09('0x32'),_0x8e681b,_0x5d09('0x1d'));return this[_0x5d09('0x126')](()=>_0x163a82(_0x591738,_0x36f1b2,_0x50fd6f)),null;}const _0xaf1f7=this[_0x5d09('0x3')][_0x5d09('0x6')][_0x5d09('0xbb')](_0x5d09('0xe3'))['me'];for(const _0x4b4932 of this[_0x5d09('0xc5')]()){if(_0x4b4932['author']['id']!=_0xaf1f7['id'])continue;if(_0x5d09('0x32')!=_0x4b4932[_0x5d09('0x2e')]||_0x4b4932[_0x5d09('0x7a')]['formatGroupId']!=_0x36f1b2[_0x5d09('0xd2')])continue;const _0x327e9e=_0x4b4932[_0x5d09('0x113')]==_0x8e681b;for(let _0x1406a9=0x0;_0x1406a9<_0x591738[_0x5d09('0xc4')];_0x1406a9++){const _0x235daa=_0x591738[_0x1406a9];for(const _0x72246a of _0x4b4932['getMarkers']()){const _0x1b0324=_0x72246a[_0x5d09('0xf9')]();if(_0x235daa[_0x5d09('0x27')](_0x1b0324)){_0x327e9e?(_0x591738[_0x5d09('0x80')](_0x1406a9,0x1),_0x1406a9--):_0x4b4932['removeMarker'](_0x72246a[_0x5d09('0xac')]);break;}}}}if(0x0==_0x591738[_0x5d09('0xc4')])return null;const _0x21076f=this[_0x5d09('0xf')][_0x5d09('0x85')]('formatBlock',_0x8e681b,_0x5d09('0xa8'));for(const _0x3d2ebe of this[_0x5d09('0xc5')]())if(_0x3d2ebe[_0x5d09('0x67')]['id']==_0xaf1f7['id']&&_0x5d09('0x32')==_0x3d2ebe[_0x5d09('0x2e')]&&_0x3d2ebe[_0x5d09('0x7a')]['formatGroupId']==_0x36f1b2['formatGroupId']&&_0x3d2ebe[_0x5d09('0x113')]==_0x8e681b&&(_0x21076f(_0x3d2ebe[_0x5d09('0xd0')](),_0x591738)||_0x21076f(_0x591738,_0x3d2ebe[_0x5d09('0xd0')]()))){for(const _0x3a8afa of _0x591738)_0x3d2ebe[_0x5d09('0x5a')](_0x3a8afa);return _0x3d2ebe;}const _0x20ab37=_0x2a116d(),_0x531f20=_0xaf1f7['id'],_0x3acd4a='formatBlock:'+_0x8e681b,_0x3faa6c=this['_setSuggestionData']({'id':_0x20ab37,'type':_0x3acd4a,'data':_0x36f1b2,'createdAt':new Date(),'authorId':_0x531f20,'attributes':_0x50fd6f});for(const _0x1faba5 of _0x591738)this[_0x5d09('0x106')](_0x3acd4a,_0x20ab37,_0x531f20,_0x1faba5,_0x4f8884[_0x5d09('0x11b')]());return _0x3faa6c;}['markDeletion'](_0x5660c0,_0x17000c=null,_0x1a05d0={}){if(_0x5660c0[_0x5d09('0x3f')])return null;const _0x5ab922=this[_0x5d09('0x3')][_0x5d09('0x6')][_0x5d09('0xbb')]('Users')['me'],_0x6488fb=new _0x3a8825(_0x5660c0['start'],_0x5660c0[_0x5d09('0x4')]);for(const {suggestion:_0x2becf0,meta:_0x319546}of this['_findSuggestions'](_0x6488fb,'insertion'))if(_0x319546[_0x5d09('0xec')]&&!_0x319546[_0x5d09('0x10e')]){if(_0x2becf0['isMultiRange']){const _0x250954=_0x2becf0[_0x5d09('0xd0')]()[_0x5d09('0xf8')](_0x161396=>_0x5d09('0x7d')!=_0x161396[_0x5d09('0xa9')][_0x5d09('0x8d')]);_0x250954['every'](_0x2c0405=>_0x6488fb[_0x5d09('0x108')](_0x2c0405,!0x0))&&_0x2becf0['discard']();if(_0x250954[_0x5d09('0xab')](_0xae6114=>_0xae6114['containsRange'](_0x6488fb,!0x0))){const _0x351ad9=this[_0x5d09('0xf')][_0x5d09('0x85')]('deletion',_0x17000c,_0x5d09('0x1d'));return this[_0x5d09('0x126')](()=>_0x351ad9([_0x6488fb],null,_0x1a05d0)),null;}}else{const _0x489c48=_0x6488fb[_0x5d09('0x55')](_0x2becf0['getFirstRange']());null!==_0x489c48&&_0x2becf0[_0x5d09('0x10f')]([_0x489c48],null,_0x1a05d0);}}if(_0x6488fb[_0x5d09('0x5c')](),_0x6488fb[_0x5d09('0x3f')]||_0x5d09('0x7d')==_0x6488fb[_0x5d09('0xa9')][_0x5d09('0x8d')])return null;let _0x11c900=null,_0xa1f06a=_0x6488fb[_0x5d09('0x102')],_0x4a5f7e=_0x6488fb['end'];for(const {suggestion:_0x2ab7e3,meta:_0x1610ad}of this[_0x5d09('0x9')](_0x6488fb,'deletion'))if(_0x1610ad['isOwn']){if(_0x2ab7e3[_0x5d09('0x128')]&&this['_mergeNestedSuggestions']){let _0x5b903c=!0x0;for(const _0x144691 of _0x2ab7e3['getRanges']()){if(_0x144691['containsRange'](_0x6488fb,!0x0))return _0x2ab7e3;_0x6488fb[_0x5d09('0x108')](_0x144691)||(_0x5b903c=!0x1);}_0x5b903c&&_0x2ab7e3['discard']();}else{const _0x346c29=_0x2ab7e3[_0x5d09('0xd9')]();if(_0x346c29[_0x5d09('0x108')](_0x6488fb,!0x0)){if(!this[_0x5d09('0x3c')]&&_0x1610ad[_0x5d09('0x94')])continue;return _0x2ab7e3;}_0xa1f06a=_0xa1f06a['isBefore'](_0x346c29[_0x5d09('0x102')])?_0xa1f06a:_0x346c29[_0x5d09('0x102')],_0x4a5f7e=_0x4a5f7e[_0x5d09('0x15')](_0x346c29[_0x5d09('0x4')])?_0x4a5f7e:_0x346c29['end'],_0x11c900?_0x346c29[_0x5d09('0x102')]['isBefore'](_0x11c900['getFirstRange']()[_0x5d09('0x102')])?(_0x11c900[_0x5d09('0x2d')](),_0x11c900=_0x2ab7e3):_0x2ab7e3[_0x5d09('0x2d')]():_0x11c900=_0x2ab7e3;}}if(_0x11c900)return this[_0x5d09('0x17')](_0x11c900,this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0xa1f06a,_0x4a5f7e)),_0x11c900;{const _0x4b0eaf=_0x2a116d(),_0x298bf6=this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0xa1f06a,_0x4a5f7e),_0x5dbab5=_0x5ab922['id'],_0x39f33a=_0x17000c?_0x5d09('0x59')+_0x17000c:_0x5d09('0xcc'),_0x195393=this['_setSuggestionData']({'id':_0x4b0eaf,'type':_0x39f33a,'createdAt':new Date(),'authorId':_0x5dbab5,'attributes':_0x1a05d0});return this[_0x5d09('0x106')](_0x39f33a,_0x4b0eaf,_0x5dbab5,_0x298bf6),_0x195393;}}[_0x5d09('0x75')](_0xaaf6c,_0x235dcd=_0x5d09('0xb4'),_0x70be04={}){const _0x1c5b9a=this[_0x5d09('0x3')][_0x5d09('0x6')][_0x5d09('0xbb')](_0x5d09('0xe3'))['me'],_0x42c31e=_0xaaf6c[_0x5d09('0x66')](_0x27da69=>new _0x3a8825(_0x27da69[_0x5d09('0x102')],_0x27da69['end'])),_0x287371=new Set();for(const _0x2deaf6 of _0x42c31e)for(const {suggestion:_0x3a89a3,meta:_0x3744cc}of this[_0x5d09('0x9')](_0x2deaf6,_0x5d09('0x5b')))_0x3744cc['isOwn']&&!_0x3744cc[_0x5d09('0x10e')]&&_0x287371[_0x5d09('0x57')](_0x3a89a3);for(const _0x582b39 of _0x287371)if(_0x582b39[_0x5d09('0x128')]){const _0x3af660=_0x582b39['getRanges']();(!_0x582b39['attributes']||!_0x582b39['attributes'][_0x5d09('0x98')])&&(_0x3af660['every'](_0x3b3d0f=>_0x42c31e[_0x5d09('0xab')](_0x5127db=>_0x5127db['containsRange'](_0x3b3d0f,!0x0)))&&_0x582b39['discard']());if(_0x42c31e[_0x5d09('0x1a')](_0xa5f55f=>_0x3af660[_0x5d09('0xab')](_0x88e9d1=>_0x88e9d1[_0x5d09('0x108')](_0xa5f55f,!0x0)))){const _0x441e8c=this['_suggestionFactory'][_0x5d09('0x85')]('deletion',_0x235dcd,_0x5d09('0x1d'));return this[_0x5d09('0x126')](()=>_0x441e8c(_0xaaf6c,null,_0x70be04)),null;}}else{const _0x4c20b3=_0x582b39[_0x5d09('0xd9')]();_0x42c31e[_0x5d09('0xab')](_0x52c54b=>_0x52c54b['containsRange'](_0x4c20b3,!0x0))&&_0x582b39['discard']();if(_0x42c31e['every'](_0x413374=>_0x4c20b3[_0x5d09('0x108')](_0x413374,!0x0))){const _0x1b477f=this[_0x5d09('0xf')]['getSuggestionCallback'](_0x5d09('0xcc'),_0x235dcd,_0x5d09('0x1d'));return this[_0x5d09('0x126')](()=>_0x1b477f(_0x42c31e,null,_0x70be04)),null;}}const _0x554507=this[_0x5d09('0xf')][_0x5d09('0x85')]('deletion',_0x235dcd,_0x5d09('0xa8'));let _0x4c0bc0=null;for(const _0x3f16a1 of this[_0x5d09('0xc5')]())if(_0x3f16a1['author']['id']==_0x1c5b9a['id']&&_0x3f16a1[_0x5d09('0x103')]&&_0x5d09('0xcc')==_0x3f16a1[_0x5d09('0x2e')]&&_0x3f16a1[_0x5d09('0x113')]==_0x235dcd&&(_0x554507(_0x3f16a1['getRanges'](),_0x42c31e)||_0x554507(_0x42c31e,_0x3f16a1[_0x5d09('0xd0')]()))){if(_0x4c0bc0){if(_0x3f16a1[_0x5d09('0xeb')]&&_0x3f16a1[_0x5d09('0xeb')][_0x5d09('0xc4')])continue;for(const _0xc04bdd of _0x3f16a1[_0x5d09('0xd0')]())_0x4c0bc0[_0x5d09('0xae')](_0xc04bdd)||_0x4c0bc0[_0x5d09('0x5a')](_0xc04bdd);_0x3f16a1['removeMarkers']();}else{_0x4c0bc0=_0x3f16a1;for(const _0x54f990 of _0x42c31e)_0x3f16a1['isIntersectingWithRange'](_0x54f990)||_0x3f16a1[_0x5d09('0x5a')](_0x54f990);}}if(_0x4c0bc0)return _0x4c0bc0;_0x287371[_0x5d09('0x5')]();for(const _0x4a3689 of _0x42c31e)for(const {suggestion:_0x559299,meta:_0x1da796}of this[_0x5d09('0x9')](_0x4a3689,_0x5d09('0xcc')))_0x1da796[_0x5d09('0xec')]&&_0x287371[_0x5d09('0x57')](_0x559299);for(const _0x573e0b of _0x287371){const _0x31fcbc=_0x573e0b[_0x5d09('0xd0')]();if(!_0x70be04||!_0x70be04[_0x5d09('0x98')]){if(_0x42c31e[_0x5d09('0x1a')](_0xf3a6c6=>_0x31fcbc[_0x5d09('0xab')](_0x39bc05=>_0x39bc05[_0x5d09('0x108')](_0xf3a6c6,!0x0))))return _0x573e0b;}(!_0x573e0b['attributes']||!_0x573e0b[_0x5d09('0x8a')][_0x5d09('0x98')])&&(_0x31fcbc['every'](_0x2c54f8=>_0x42c31e['some'](_0x4925e3=>_0x4925e3[_0x5d09('0x108')](_0x2c54f8,!0x0)))&&_0x573e0b[_0x5d09('0x11a')]());}const _0x12683a=_0x2a116d(),_0x420634=_0x1c5b9a['id'],_0x20c5ae='deletion:'+_0x235dcd,_0x16ebd5=this[_0x5d09('0x3e')]({'id':_0x12683a,'type':_0x20c5ae,'createdAt':new Date(),'authorId':_0x420634,'attributes':_0x70be04});for(const _0x42bbd5 of _0x42c31e)_0x42bbd5[_0x5d09('0x5c')](),_0x42bbd5['isCollapsed']||_0x5d09('0x7d')==_0x42bbd5[_0x5d09('0xa9')][_0x5d09('0x8d')]||this[_0x5d09('0x106')](_0x20c5ae,_0x12683a,_0x420634,_0x42bbd5,_0x4f8884[_0x5d09('0x11b')]());return _0x16ebd5;}[_0x5d09('0x17')](_0xb95072,_0x57b7e8){const _0x4871a4=_0xb95072['getFirstMarker']();this[_0x5d09('0x6e')][_0x5d09('0x26')](_0xb33717=>{_0xb33717[_0x5d09('0x78')](_0x4871a4,{'range':_0x57b7e8});});}[_0x5d09('0x2a')](_0x1eeb2f){const _0x598f3f=_0x1eeb2f['id'],_0x513700=this[_0x5d09('0x3')]['config'][_0x5d09('0xbb')](_0x5d09('0x43'));this[_0x5d09('0x104')][_0x5d09('0x12f')](_0x598f3f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x513700,'threadId':_0x598f3f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f0b60=this[_0x5d09('0x104')][_0x5d09('0x8c')](_0x598f3f);_0x1f0b60['unbind']('isRemovable'),_0x1f0b60['isRemovable']=!0x1,_0x1eeb2f[_0x5d09('0xeb')]=_0x1f0b60;}[_0x5d09('0x77')](_0x29c331,_0x23aef7,_0x2bacd7,_0x5a032c){if(_0x29c331[_0x5d09('0x2e')]!=_0x23aef7||_0x29c331[_0x5d09('0x113')]!=_0x2bacd7||_0x29c331[_0x5d09('0x23')]['id']!=_0x5a032c)throw this['editor'][_0x5d09('0xbd')]('track-changes-suggestion-data-mismatch'),new _0x2be2ae(_0x5d09('0x10a'),this);}[_0x5d09('0x3b')](_0x2d868b,_0x593782){const _0x523ca7=_0x2d868b[_0x5d09('0xd9')]();if(_0x593782['isEqual'](_0x523ca7))_0x2d868b[_0x5d09('0x2d')]();else{if(_0x523ca7[_0x5d09('0x108')](_0x593782)){const _0x4b2f0c=this[_0x5d09('0x6e')][_0x5d09('0x135')](_0x593782[_0x5d09('0x102')]['nodeBefore'],_0x5d09('0x4'));this[_0x5d09('0x17')](_0x2d868b,this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0x523ca7[_0x5d09('0x102')],_0x4b2f0c));const _0x3f50aa=_0x2a116d(),_0x1803d7=_0x2d868b[_0x5d09('0x23')]['id'],_0x2641f3=_0x2d868b[_0x5d09('0x2e')]+':'+_0x2d868b[_0x5d09('0x113')];this[_0x5d09('0x3e')]({'id':_0x3f50aa,'type':_0x2641f3,'createdAt':new Date(),'authorId':_0x1803d7,'data':_0x2d868b['data'],'attributes':_0x2d868b['attributes']});const _0x1c0fee=this[_0x5d09('0x6e')]['createPositionAt'](_0x593782['end'][_0x5d09('0xa1')],_0x5d09('0x4c')),_0x58fd37=this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0x1c0fee,_0x523ca7[_0x5d09('0x4')]);this[_0x5d09('0x106')](_0x2641f3,_0x3f50aa,_0x1803d7,_0x58fd37);}else{if(_0x523ca7[_0x5d09('0x12a')](_0x593782['start'])){const _0x15c277=this[_0x5d09('0x6e')]['createPositionAt'](_0x593782[_0x5d09('0x102')]['nodeBefore'],'end');this[_0x5d09('0x17')](_0x2d868b,this['_model'][_0x5d09('0x12b')](_0x523ca7[_0x5d09('0x102')],_0x15c277));}else{const _0x59cfaa=this[_0x5d09('0x6e')][_0x5d09('0x135')](_0x593782[_0x5d09('0x4')][_0x5d09('0xa1')],_0x5d09('0x4c'));this['_setSuggestionRange'](_0x2d868b,this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0x59cfaa,_0x523ca7[_0x5d09('0x4')]));}}}}[_0x5d09('0x6c')](_0x32e4ae){for(const {suggestion:_0x7a81ef,meta:_0x4a8f88}of this[_0x5d09('0x9')](_0x32e4ae,_0x5d09('0x5b'))){if(!_0x4a8f88[_0x5d09('0xec')])continue;const _0x37c36d=_0x7a81ef[_0x5d09('0xd0')]();for(const _0x3675fb of _0x37c36d)if(!_0x32e4ae[_0x5d09('0x61')](_0x3675fb)[_0x5d09('0xc4')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4c2e55){const _0xa599f4=this[_0x5d09('0x3')][_0x5d09('0x6')]['get'](_0x5d09('0xe3'))[_0x5d09('0x9d')](_0x4c2e55);if(!_0xa599f4)throw new _0x2be2ae('track-changes-user-not-found',this);return _0xa599f4;}['_getExternalAuthor'](_0x1e6f4c){const _0x461743=this[_0x5d09('0x3')]['plugins'][_0x5d09('0xbb')]('Users'),_0x451140=_0x53eac6(_0x5d09('0x111')+_0x1e6f4c),_0x3b0db3=_0x461743[_0x5d09('0x9d')](_0x451140);return _0x3b0db3||_0x461743['addUser']({'id':_0x451140,'name':_0x1e6f4c});}[_0x5d09('0x46')](_0x344b08,_0x260a24,_0x389575,_0x4bc79d,_0x5c2ec0){const _0x4024e5=this['_getAuthorFromId'](_0x4bc79d),_0x48c022=this[_0x5d09('0xf')][_0x5d09('0x89')](_0x344b08,_0x260a24,_0x389575,_0x4024e5,_0x5c2ec0,_0x5abbcf=>this[_0x5d09('0x39')](_0x389575,{'attributes':_0x5abbcf}));return this['listenTo'](_0x48c022,_0x5d09('0x1d'),()=>{this[_0x5d09('0x39')](_0x389575,{'state':_0x5d09('0x9e')});},{'priority':'high'}),this['listenTo'](_0x48c022,_0x5d09('0x11a'),()=>{this[_0x5d09('0x39')](_0x389575,{'state':'rejected'});},{'priority':'high'}),this[_0x5d09('0x6d')][_0x5d09('0x1e')](_0x389575,_0x48c022),this[_0x5d09('0xf2')]['set'](_0x48c022,_0x5d09('0x60')),_0x48c022;}['_splitMarkerName'](_0x432a84){const _0x1c318d=_0x432a84[_0x5d09('0x7f')](':');return{'group':_0x1c318d[0x0],'type':_0x1c318d[0x1],'subType':_0x1c318d[_0x5d09('0xc4')]>=0x5?_0x1c318d[0x2]:null,'id':_0x1c318d[_0x5d09('0xc4')]<0x5?_0x1c318d[0x2]:_0x1c318d[0x3],'authorId':_0x1c318d[_0x5d09('0xc4')]<0x5?_0x1c318d[0x3]:_0x1c318d[0x4],'markerCount':0x6==_0x1c318d['length']?_0x1c318d[0x5]:null};}[_0x5d09('0x1')](_0x45f1ed,_0x37526c,_0x1e770f){const _0x20c432=_0x45f1ed[_0x5d09('0xd9')](),_0x114066=_0x20c432['start'],_0x102254=_0x20c432[_0x5d09('0x4')];this[_0x5d09('0x17')](_0x45f1ed,this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0x114066,_0x37526c));const _0x400e36=_0x2a116d(),_0x3e754a=_0x45f1ed['creator']['id'],_0x508c61=_0x45f1ed[_0x5d09('0x2e')]+(_0x45f1ed[_0x5d09('0x113')]?':'+_0x45f1ed[_0x5d09('0x113')]:'');this['_setSuggestionData']({'id':_0x400e36,'type':_0x508c61,'createdAt':new Date(),'authorId':_0x3e754a,'originalSuggestionId':_0x45f1ed['id'],'attributes':_0x45f1ed[_0x5d09('0x8a')],'data':_0x45f1ed[_0x5d09('0x7a')]}),_0x5d09('0x32')==_0x45f1ed[_0x5d09('0x2e')]&&(_0x1e770f=this['_model']['createPositionBefore'](_0x1e770f['parent'])),this[_0x5d09('0x106')](_0x508c61,_0x400e36,_0x3e754a,this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0x1e770f,_0x102254));}[_0x5d09('0x9')](_0x5777a3,_0x3d1e58=null){const _0x44edfe=[],_0x4bc30e=this[_0x5d09('0x6e')][_0x5d09('0x49')],_0x5b2f62=this[_0x5d09('0x3')]['plugins'][_0x5d09('0xbb')](_0x5d09('0xe3'))['me'];for(const _0x113491 of this[_0x5d09('0xc5')]())if(_0x113491[_0x5d09('0x103')]&&(!_0x3d1e58||_0x113491['type']==_0x3d1e58))for(const _0x4fc9f5 of _0x113491[_0x5d09('0xd0')]()){const _0x3dab21=_0x5777a3[_0x5d09('0x102')][_0x5d09('0x27')](_0x4fc9f5[_0x5d09('0x4')])||_0x5777a3[_0x5d09('0x4')][_0x5d09('0x27')](_0x4fc9f5[_0x5d09('0x102')]);if(_0x3dab21||_0x5777a3[_0x5d09('0x55')](_0x4fc9f5)){const _0x11d4fc=_0x5777a3[_0x5d09('0x108')](_0x4fc9f5)&&Bt(_0x4bc30e,_0x4fc9f5[_0x5d09('0x102')],_0x5777a3),_0x3cdb94=_0x4fc9f5[_0x5d09('0x108')](_0x5777a3)&&Bt(_0x4bc30e,_0x5777a3[_0x5d09('0x102')],_0x4fc9f5);_0x44edfe[_0x5d09('0x122')]({'suggestion':_0x113491,'meta':{'isOwn':_0x5b2f62==_0x113491['author'],'isNextTo':_0x3dab21,'isInsideObject':_0x11d4fc,'containsRangeInObject':_0x3cdb94}});break;}}return _0x44edfe;}[_0x5d09('0x106')](_0x3b15a6,_0x41aa63,_0x53ecea,_0x28eac2,_0x730c8c){this['_model'][_0x5d09('0x26')](_0x16c275=>{let _0x40b7f5='suggestion:'+_0x3b15a6+':'+_0x41aa63+':'+_0x53ecea;_0x730c8c&&(_0x40b7f5=_0x40b7f5+':'+_0x730c8c),_0x16c275[_0x5d09('0x38')](_0x40b7f5,{'range':_0x28eac2,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5d09('0x42')](_0x2e7099){const _0x44f507=_0x2e7099['previous'],_0x18bcc4=_0x2e7099[_0x5d09('0x134')];_0x2e7099[_0x5d09('0x6a')]=null,null!=_0x44f507&&(_0x44f507['next']=null),_0x2e7099[_0x5d09('0x134')]=null,null!=_0x18bcc4&&(_0x18bcc4[_0x5d09('0x6a')]=null),_0x5d09('0x92')==this['_suggestionState'][_0x5d09('0xbb')](_0x2e7099)&&(this['_suggestionState'][_0x5d09('0x1e')](_0x2e7099,_0x5d09('0xff')),this[_0x5d09('0x2c')]('suggestionUnloaded',_0x2e7099,_0x44f507,_0x18bcc4));}['_setSuggestionData'](_0xd6393){const _0x125df3=_0xd6393['id'],_0x5de60e=this['addSuggestionData'](_0xd6393);if(this[_0x5d09('0x12c')]&&this[_0x5d09('0x12c')]['addSuggestion']){const _0x31af06=this[_0x5d09('0x3')][_0x5d09('0x6')][_0x5d09('0xbb')](_0x5d09('0x64')),_0x24976c=_0x5de60e[_0x5d09('0x37')],_0x3d2b0a=_0x5de60e[_0x5d09('0x113')]?_0x5de60e[_0x5d09('0x2e')]+':'+_0x5de60e[_0x5d09('0x113')]:_0x5de60e[_0x5d09('0x2e')],_0x3d2cbb=this['editor']['locale'],_0x56d145=_0x31af06[_0x5d09('0x57')](_0x22c47e(_0x3d2cbb,_0x5d09('0x91'))),_0x277b3c={'id':_0x125df3,'type':_0x3d2b0a,'hasComments':_0x24976c,'data':_0xd6393[_0x5d09('0x7a')]||null,'originalSuggestionId':_0xd6393['originalSuggestionId']||null,'attributes':_0x5de60e[_0x5d09('0x8a')]};this[_0x5d09('0x12c')][_0x5d09('0x100')](_0x277b3c)[_0x5d09('0x29')](_0x3ee0c3=>{_0x5de60e[_0x5d09('0xd6')]=!0x0,_0x31af06['remove'](_0x56d145),_0x3ee0c3&&_0x3ee0c3[_0x5d09('0x82')]&&(this['_suggestions'][_0x5d09('0xbb')](_0x125df3)[_0x5d09('0x82')]=_0x3ee0c3['createdAt']);})[_0x5d09('0x4a')](_0x58314a=>{throw _0x416c2c(_0x5d09('0xba')),this[_0x5d09('0x3')]['model'][_0x5d09('0x9c')]({'isUndoable':!0x1},()=>{_0x5de60e[_0x5d09('0x11a')]();}),_0x5de60e[_0x5d09('0x71')](),this[_0x5d09('0x6d')][_0x5d09('0x10b')](_0x5de60e['id']),this[_0x5d09('0xf2')]['delete'](_0x5de60e),_0x58314a;});}return _0x5de60e;}[_0x5d09('0x39')](_0x468e51,_0x5d1373){const _0xe169cb=this[_0x5d09('0x3')][_0x5d09('0x6')][_0x5d09('0xbb')](_0x5d09('0x64')),_0x5ea4a0=this[_0x5d09('0x44')](_0x468e51);if(this[_0x5d09('0x12c')]&&this[_0x5d09('0x12c')]['updateSuggestion']){if(_0x5ea4a0[_0x5d09('0xd6')]){const _0x1de544=_0xe169cb[_0x5d09('0x57')](_0x22c47e(this['editor'][_0x5d09('0xf7')],'PENDING_ACTION_SUGGESTION'));this[_0x5d09('0x12c')][_0x5d09('0x132')](_0x468e51,_0x5d1373)[_0x5d09('0x29')](()=>{_0xe169cb[_0x5d09('0xe4')](_0x1de544);});}else _0x5ea4a0['on'](_0x5d09('0xdd'),()=>{this['_updateSuggestionData'](_0x468e51,_0x5d1373);});}}[_0x5d09('0x125')](_0x520f3f){if(!this[_0x5d09('0x12c')]||!this[_0x5d09('0x12c')][_0x5d09('0x44')])throw new _0x2be2ae(_0x5d09('0xde'),this);return this[_0x5d09('0x12c')]['getSuggestion'](_0x520f3f);}[_0x5d09('0x11')](_0x4d36d5){const {id:_0x54e958,type:_0x3708d6,subType:_0x90714,authorId:_0x3bdb5e}=this[_0x5d09('0x13')](_0x4d36d5),_0x5d851e=this['_suggestions'][_0x5d09('0xbb')](_0x54e958)||this[_0x5d09('0x46')](_0x3708d6,_0x90714,_0x54e958,_0x3bdb5e,{});switch(this['_checkSuggestionCorrectness'](_0x5d851e,_0x3708d6,_0x90714,_0x3bdb5e),this['_suggestionState'][_0x5d09('0xbb')](_0x5d851e)){case _0x5d09('0x60'):this[_0x5d09('0x125')](_0x54e958)[_0x5d09('0x29')](_0x1cd80b=>{let _0x22ed3c=Promise[_0x5d09('0x124')]();_0x1cd80b[_0x5d09('0x37')]&&(_0x22ed3c=this[_0x5d09('0x104')][_0x5d09('0x11c')]({'channelId':this[_0x5d09('0x3')]['config'][_0x5d09('0xbb')](_0x5d09('0x43')),'threadId':_0x54e958})),_0x22ed3c[_0x5d09('0x29')](()=>{this[_0x5d09('0xca')](_0x1cd80b)[_0x5d09('0xd6')]=!0x0;});}),this[_0x5d09('0xf2')][_0x5d09('0x1e')](_0x5d851e,_0x5d09('0x101'));break;case _0x5d09('0xff'):this[_0x5d09('0x39')](_0x54e958,{'state':'open'});case _0x5d09('0x129'):this[_0x5d09('0xf2')]['set'](_0x5d851e,_0x5d09('0x92')),this[_0x5d09('0x2c')](_0x5d09('0xb7'),_0x5d851e);break;case'ready':this[_0x5d09('0x2c')](_0x5d09('0xbf'),_0x5d851e);}return _0x5d851e[_0x5d09('0xea')](_0x4d36d5),_0x5d851e;}[_0x5d09('0x87')](_0x9618a9){const _0x402afb=Array['from'](_0x9618a9)[_0x5d09('0xf8')](_0x28c345=>!_0x28c345[_0x5d09('0x128')]),_0x35b7fd=this[_0x5d09('0xc5')]({'skipNotAttached':!0x0})[_0x5d09('0xf8')](_0x425ecc=>!_0x425ecc['isMultiRange']),_0x3f82cd=_0x35b7fd[_0x5d09('0xf8')](_0x58a520=>!_0x9618a9[_0x5d09('0x51')](_0x58a520)),_0x5c5569=new Map(_0x35b7fd[_0x5d09('0x66')](_0x365b9d=>[_0x365b9d,this[_0x5d09('0xf')][_0x5d09('0x85')](_0x365b9d[_0x5d09('0x2e')],_0x365b9d[_0x5d09('0x113')],_0x5d09('0x31'))])),_0x4b5b1e=new Map(_0x35b7fd[_0x5d09('0x66')](_0x116a33=>[_0x116a33,_0x116a33['getFirstRange']()])),_0x486604=new Set(),_0x3e9226=new Set();for(let _0x468de0=0x0;_0x468de0<_0x402afb[_0x5d09('0xc4')];_0x468de0++)_0x1ff989(_0x402afb[_0x468de0],_0x402afb,_0x468de0+0x1);for(let _0x446233=0x0;_0x446233<_0x402afb[_0x5d09('0xc4')];_0x446233++)_0x1ff989(_0x402afb[_0x446233],_0x3f82cd,0x0);for(let _0xcf0273=0x0;_0xcf0273<_0x402afb[_0x5d09('0xc4')];_0xcf0273++){const _0x259314=_0x402afb[_0xcf0273];!_0x3e9226['has'](_0x259314)&&_0x259314[_0x5d09('0x6a')]&&(_0x259314[_0x5d09('0x6a')][_0x5d09('0x134')]===_0x259314&&(_0x259314[_0x5d09('0x6a')][_0x5d09('0x134')]=null),_0x259314[_0x5d09('0x6a')]=null),!_0x486604[_0x5d09('0x51')](_0x259314)&&_0x259314['next']&&(_0x259314[_0x5d09('0x134')][_0x5d09('0x6a')]===_0x259314&&(_0x259314[_0x5d09('0x134')][_0x5d09('0x6a')]=null),_0x259314[_0x5d09('0x134')]=null);}function _0x1ff989(_0x697176,_0xc2474d,_0x362f13){for(let _0x5856b2=_0x362f13;_0x5856b2<_0xc2474d['length'];_0x5856b2++){const _0x5c9fb1=_0x44e03c(_0x697176,_0xc2474d[_0x5856b2]);_0x5c9fb1&&(_0x5c9fb1[0x0][_0x5d09('0x134')]=_0x5c9fb1[0x1],_0x5c9fb1[0x1]['previous']=_0x5c9fb1[0x0],_0x486604[_0x5d09('0x57')](_0x5c9fb1[0x0]),_0x3e9226['add'](_0x5c9fb1[0x1]));}}function _0x44e03c(_0x53181c,_0x1ddaf9){if(_0x53181c['author']['id']!==_0x1ddaf9[_0x5d09('0x67')]['id'])return null;const _0x533786=_0x5c5569[_0x5d09('0xbb')](_0x53181c)(_0x53181c,_0x1ddaf9,_0x4b5b1e[_0x5d09('0xbb')](_0x53181c),_0x4b5b1e[_0x5d09('0xbb')](_0x1ddaf9));if(!_0x533786)return null;return _0x5c5569['get'](_0x1ddaf9)(_0x53181c,_0x1ddaf9,_0x4b5b1e['get'](_0x53181c),_0x4b5b1e[_0x5d09('0xbb')](_0x1ddaf9))?_0x533786[0x1][_0x5d09('0xeb')]&&_0x533786[0x1][_0x5d09('0xeb')][_0x5d09('0xc4')]?null:_0x533786:null;}}[_0x5d09('0x30')](_0x5d53a3){const _0x13dd54=Array[_0x5d09('0xa0')](_0x5d53a3),_0x23d074=this[_0x5d09('0xc5')]({'skipNotAttached':!0x0}),_0x3127d3=_0x23d074[_0x5d09('0xf8')](_0x49ea55=>!_0x5d53a3[_0x5d09('0x51')](_0x49ea55)),_0x278a32=new Map(_0x13dd54[_0x5d09('0x66')](_0x24fbb4=>[_0x24fbb4,this[_0x5d09('0xf')]['getSuggestionCallback'](_0x24fbb4[_0x5d09('0x2e')],_0x24fbb4[_0x5d09('0x113')],_0x5d09('0xa8'))])),_0x44660c=new Map(_0x23d074[_0x5d09('0x66')](_0x30b26e=>[_0x30b26e,_0x30b26e[_0x5d09('0xd0')]()]));for(let _0x46bf38=0x0;_0x46bf38<_0x13dd54[_0x5d09('0xc4')];_0x46bf38++){if(_0x2c6e0d(this,_0x13dd54[_0x46bf38],_0x13dd54,_0x46bf38+0x1))return!0x0;}for(let _0x135f96=0x0;_0x135f96<_0x13dd54[_0x5d09('0xc4')];_0x135f96++){if(_0x2c6e0d(this,_0x13dd54[_0x135f96],_0x3127d3,0x0))return!0x0;}return!0x1;function _0x2c6e0d(_0x572339,_0x56d842,_0x28ffad,_0x2a45e2){for(let _0x259c5c=_0x2a45e2;_0x259c5c<_0x28ffad[_0x5d09('0xc4')];_0x259c5c++){const _0x426abf=_0x28ffad[_0x259c5c];if(_0x426abf['type']!==_0x56d842[_0x5d09('0x2e')]||_0x426abf[_0x5d09('0x67')]['id']!==_0x56d842['author']['id']||_0x426abf[_0x5d09('0x113')]!==_0x56d842[_0x5d09('0x113')])continue;const _0x335ce2=_0x278a32[_0x5d09('0xbb')](_0x56d842),_0x40ddd5=_0x44660c['get'](_0x56d842),_0x5ad289=_0x44660c['get'](_0x426abf),_0x143cff=_0x56d842['commentThread']&&_0x56d842[_0x5d09('0xeb')]['length'],_0x1c446d=_0x426abf[_0x5d09('0xeb')]&&_0x426abf[_0x5d09('0xeb')][_0x5d09('0xc4')];if(!_0x143cff&&_0x335ce2(_0x5ad289,_0x40ddd5))return _0x572339['_joinSuggestions'](_0x426abf,_0x56d842),_0x44660c[_0x5d09('0x10b')](_0x56d842),!0x0;if(!_0x1c446d&&_0x335ce2(_0x40ddd5,_0x5ad289))return _0x572339['_joinSuggestions'](_0x56d842,_0x426abf),_0x44660c['delete'](_0x426abf),!0x0;}return!0x1;}}[_0x5d09('0x1b')](_0x546e83,_0x275999){if(_0x546e83[_0x5d09('0x128')])for(const _0x5f2ebc of _0x275999[_0x5d09('0xd0')]())_0x546e83[_0x5d09('0x5a')](_0x5f2ebc);else{const _0x5667d1=_0x275999[_0x5d09('0xd9')]()[_0x5d09('0x4')];this['_setSuggestionRange'](_0x546e83,this['_model'][_0x5d09('0x12b')](_0x546e83[_0x5d09('0xd9')]()[_0x5d09('0x102')],_0x5667d1));}_0x275999[_0x5d09('0x2d')]();}}class Dt{constructor(_0x2e54d0){this[_0x5d09('0x74')]=_0x2e54d0,this['_model']=_0x2e54d0['model'],this['_customCallbacks']=new Map(),this[_0x5d09('0xed')]=new Map(),this[_0x5d09('0x3a')]();}[_0x5d09('0x89')](_0x3d3355,_0x5885be,_0x3e739,_0x3f7696,_0x21c8bd,_0x1d4791){return new _0x4f8884(this['_model'],{'type':_0x3d3355,'subType':_0x5885be,'id':_0x3e739,'author':_0x3f7696,'creator':_0x3f7696,'attributes':_0x21c8bd,'onAttributesChange':_0x1d4791,'onAccept':(..._0x1697fb)=>this[_0x5d09('0x85')](_0x3d3355,_0x5885be,_0x5d09('0x1d'))(..._0x1697fb),'onDiscard':(..._0x4ae130)=>this['getSuggestionCallback'](_0x3d3355,_0x5885be,'discard')(..._0x4ae130)});}[_0x5d09('0x7e')](_0x5638a6,_0x48e8d4,_0x4c195c,_0x426a7d){const _0x292c31=_0x5638a6+':'+_0x48e8d4+':'+_0x4c195c;this[_0x5d09('0xf3')][_0x5d09('0x1e')](_0x292c31,_0x426a7d);}['getSuggestionCallback'](_0x529cee,_0x2b340e,_0x28e81c){const _0x476ecf=_0x529cee+':'+_0x2b340e+':'+_0x28e81c;return this[_0x5d09('0xf3')][_0x5d09('0xbb')](_0x476ecf)||this[_0x5d09('0xed')][_0x5d09('0xbb')](_0x529cee+':'+_0x28e81c);}['_registerDefaultCallbacks'](){const _0x276ae2=()=>{},_0x29cdd7=_0x7e313c=>{_0x7e313c[_0x5d09('0x6b')]((_0x4c22cd,_0x441e66)=>_0x4c22cd['start'][_0x5d09('0x13b')](_0x441e66['start'])?0x1:-0x1),this[_0x5d09('0x6e')][_0x5d09('0x26')](_0x285637=>{for(const _0x108127 of _0x7e313c){let _0x5e6f9c;_0x5e6f9c=_0x108127[_0x5d09('0x4')][_0x5d09('0xfc')]&&_0x108127[_0x5d09('0x4')][_0x5d09('0xa1')]==_0x108127[_0x5d09('0x102')][_0x5d09('0xe1')]?_0x285637[_0x5d09('0x131')](_0x108127[_0x5d09('0x102')][_0x5d09('0xe1')],'on'):_0x285637[_0x5d09('0x131')](_0x108127),this['_model'][_0x5d09('0x109')](_0x5e6f9c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x22f168=(_0x282e64,_0x541e75)=>{this[_0x5d09('0x6e')]['change'](_0x540848=>{const {commandName:_0x1193d4,commandParams:_0xad506c=[]}=_0x541e75,_0x172955=_0x282e64[_0x5d09('0x66')](_0x124fc3=>(_t(_0x124fc3)&&(_0x124fc3=this[_0x5d09('0x6e')][_0x5d09('0x12b')](_0x124fc3[_0x5d09('0x4')])),_0x124fc3))[_0x5d09('0xf8')](_0x392883=>_0x5d09('0x7d')!==_0x392883['root'][_0x5d09('0x8d')]);if(_0x172955[_0x5d09('0xc4')]<0x1)return;const _0x59103a=Array[_0x5d09('0xa0')](this['_model'][_0x5d09('0xaa')][_0x5d09('0x33')][_0x5d09('0xd0')]())[_0x5d09('0x66')](_0x3061d8=>_0x3a8825[_0x5d09('0x73')](_0x3061d8));_0x540848[_0x5d09('0x136')](_0x172955);for(const _0x2ad10d of this[_0x5d09('0x74')][_0x5d09('0x4e')][_0x5d09('0x4e')]())_0x2ad10d[_0x5d09('0x13a')]();_0xad506c[_0x5d09('0x122')]({'forceDefaultExecution':!0x0}),this[_0x5d09('0x74')][_0x5d09('0xf1')](_0x1193d4,..._0xad506c);const _0x2d3a55=_0x59103a[_0x5d09('0xf8')](_0x1c7005=>'$graveyard'!=_0x1c7005['root'][_0x5d09('0x8d')]);_0x2d3a55['length']>0x0&&_0x540848['setSelection'](_0x2d3a55);for(const _0x5946f of _0x59103a)_0x5946f[_0x5d09('0x5c')]();});},_0x4a3f35=(_0x45687c,_0x33d874)=>0x1==_0x45687c[_0x5d09('0xc4')]&&0x1==_0x33d874[_0x5d09('0xc4')]&&_0x45687c[0x0]['end'][_0x5d09('0x27')](_0x33d874[0x0][_0x5d09('0x102')]),_0xf30ef5=(_0x34986e,_0x49bc00,_0x48949e,_0x14ba71)=>xt(_0x34986e,_0x49bc00,_0x48949e,_0x14ba71,this[_0x5d09('0x6e')])?[_0x34986e,_0x49bc00]:xt(_0x49bc00,_0x34986e,_0x14ba71,_0x48949e,this[_0x5d09('0x6e')])?[_0x49bc00,_0x34986e]:null;this[_0x5d09('0xed')][_0x5d09('0x1e')](_0x5d09('0xfe'),_0x276ae2),this['_defaultCallbacks'][_0x5d09('0x1e')](_0x5d09('0xb9'),_0x29cdd7),this[_0x5d09('0xed')][_0x5d09('0x1e')](_0x5d09('0x53'),_0x4a3f35),this[_0x5d09('0xed')]['set'](_0x5d09('0xb2'),_0xf30ef5),this[_0x5d09('0xed')][_0x5d09('0x1e')]('deletion:accept',_0x29cdd7),this['_defaultCallbacks']['set'](_0x5d09('0x48'),_0x276ae2),this[_0x5d09('0xed')][_0x5d09('0x1e')](_0x5d09('0xdb'),_0x4a3f35),this[_0x5d09('0xed')]['set'](_0x5d09('0x36'),_0xf30ef5),this[_0x5d09('0xed')][_0x5d09('0x1e')](_0x5d09('0xb'),_0x22f168),this[_0x5d09('0xed')][_0x5d09('0x1e')]('formatInline:discard',_0x276ae2),this[_0x5d09('0xed')]['set'](_0x5d09('0x50'),_0x4a3f35),this[_0x5d09('0xed')][_0x5d09('0x1e')](_0x5d09('0xdc'),_0x276ae2),this[_0x5d09('0xed')][_0x5d09('0x1e')](_0x5d09('0xd3'),_0x22f168),this[_0x5d09('0xed')]['set'](_0x5d09('0x16'),_0x276ae2),this[_0x5d09('0xed')][_0x5d09('0x1e')](_0x5d09('0xa6'),_0x4a3f35),this[_0x5d09('0xed')][_0x5d09('0x1e')](_0x5d09('0xa3'),_0x276ae2);}}function Bt(_0x5ba8aa,_0x3dcb99,_0x39b7b0){for(const _0x3c8df1 of _0x3dcb99['parent'][_0x5d09('0xc')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c8df1['root']==_0x3c8df1)return!0x1;if(!_0x39b7b0['containsItem'](_0x3c8df1))return!0x1;if(_0x5ba8aa[_0x5d09('0x3d')](_0x3c8df1)||_0x5ba8aa[_0x5d09('0x52')](_0x3c8df1))return!0x0;}return!0x1;}function _t(_0x49ed0a){return _0x49ed0a['end'][_0x5d09('0xa1')]==_0x49ed0a[_0x5d09('0x102')]['nodeAfter']&&_0x49ed0a['end']['isAtStart'];}function Mt(_0x523763,_0x543e2c,_0x325e8b,_0x611b46){const _0x4693ef=_0x5ad900=>!_0x5ad900['item']['is'](_0x5d09('0x81'))&&!_0x611b46[_0x5d09('0x3d')](_0x5ad900[_0x5d09('0x13c')]),_0x3e06a0=_0x523763[_0x5d09('0x102')][_0x5d09('0xe')](_0x4693ef),_0x3b9dc6=_0x523763[_0x5d09('0x4')][_0x5d09('0xe')](_0x4693ef,{'direction':_0x5d09('0x45')});return(!_0x523763[_0x5d09('0x102')]['isEqual'](_0x3e06a0)||!_0x523763['end'][_0x5d09('0x27')](_0x3b9dc6))&&(_0x3e06a0['isBefore'](_0x3b9dc6)?_0x325e8b[_0x5d09('0x78')](_0x543e2c,{'range':_0x325e8b[_0x5d09('0x12b')](_0x3e06a0,_0x3b9dc6)}):_0x325e8b[_0x5d09('0x4d')](_0x543e2c),!0x0);}function $t(_0x1eb433){return _0x53eac6(_0x1eb433);}function Nt(_0x34579b){const _0x1ca678=_0x34579b[_0x5d09('0x102')][_0x5d09('0xe1')];return _0x1ca678&&_0x1ca678['is']('element');}function Rt(_0x3b2585,_0x392be3){const _0xdbee0b=_0x392be3[_0x5d09('0x49')][_0x5d09('0x3d')](_0x3b2585)||_0x392be3[_0x5d09('0x49')][_0x5d09('0x93')](_0x3b2585);return _0x392be3['createRange'](_0x392be3['createPositionAt'](_0x3b2585,_0x5d09('0x54')),_0xdbee0b?_0x392be3[_0x5d09('0x10c')](_0x3b2585):_0x392be3['createPositionAt'](_0x3b2585,_0x5d09('0x4')));}function xt(_0x322e19,_0x46dbac,_0x141fd7,_0x2f366d,_0x5e20de){if(_0x141fd7[_0x5d09('0x4')][_0x5d09('0x27')](_0x2f366d[_0x5d09('0x102')]))return!0x0;if(_0x322e19['type']!=_0x46dbac[_0x5d09('0x2e')])return!0x1;if(!_0x141fd7[_0x5d09('0x4')][_0x5d09('0x20')](_0x2f366d['start']))return!0x1;const _0x421f36=_0x5e20de['createRange'](_0x141fd7[_0x5d09('0x4')],_0x2f366d[_0x5d09('0x102')])[_0x5d09('0x28')]();for(const _0x31b94a of _0x421f36)if(['elementStart',_0x5d09('0x8e')][_0x5d09('0xc9')](_0x31b94a[_0x5d09('0x2e')])&&_0x5e20de[_0x5d09('0x49')][_0x5d09('0x52')](_0x31b94a[_0x5d09('0x13c')]))return!0x1;return!0x0;}