@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240717.0 → 0.0.0-nightly-20240718.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +3 -3
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/mergefields.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/utils/common-translations.js +1 -1
  166. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x1ec07f,PendingActions as _0x47113b,icons as _0x5369ba}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5c47f2,ObservableMixin as _0x5f5866,uid as _0x280966,insertToPriorityArray as _0x539e24,priorities as _0x5bbedb,logWarning as _0x5a2c18,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5d10c7,View as _0x597b77,ButtonView as _0x2909a3,ViewModel as _0x98a43d,createDropdown as Jt,SplitButtonView as te,addListToDropdown as zt,MenuBarMenuView as Qt,MenuBarMenuListView as Xt,ListSeparatorView as Kt,MenuBarMenuListItemView as Yt,MenuBarMenuListItemButtonView as Zt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x485a72,hashObject as _0x16f00d,surroundingMarkersDetector as _0x270514,trimHtml as _0x153237,UserView as _0xebcb09,getDateTimeFormatter as _0x231b59,getAllMarkersDomElementsSorted as _0xff7661,sanitizeEditorConfig as _0x1344ad}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1bdd4a,LiveRange as _0x30fc72,LivePosition as _0x2e0135}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1ccc96,toWidget as _0x16abdf}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x267494,set as _0x5f45b0,isEqual as _0x5678e2,unset as _0x4d77c4,omit as xt}from'lodash-es';import{Delete as _0x2e6297,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x422272,ShiftEnter as _0x2eff47}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x13dd96,_0x31594d){super(_0x13dd96),this['_enabledCommands']=_0x31594d,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x30b091 of this['editor']['commands']['commands']())_0x30b091['affectsData']&&!this['_enabledCommands']['has'](_0x30b091)&&_0x30b091['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2f73d0 of this['editor']['commands']['commands']())_0x2f73d0['affectsData']&&!this['_enabledCommands']['has'](_0x2f73d0)&&_0x2f73d0['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x392309,_0x3db742){super(_0x392309),this['_suggestions']=_0x3db742,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd6a6fc){const _0x1b7b1b=this['_suggestions']['get'](_0xd6a6fc);if(!_0x1b7b1b)throw new _0x5c47f2('track-changes-accept-suggestion-not-found',this);const _0x4b07b6=_0x1b7b1b['getRanges']();this['editor']['model']['canEditAt'](_0x4b07b6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b7b1b);}}class B extends ts{['_suggestions'];constructor(_0x4e9285,_0x17048c){super(_0x4e9285),this['_suggestions']=_0x17048c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x111979){const _0x5b2a86=this['_suggestions']['get'](_0x111979);if(!_0x5b2a86)throw new _0x5c47f2('track-changes-discard-suggestion-not-found',this);const _0x8dbcf7=_0x5b2a86['getRanges']();this['editor']['model']['canEditAt'](_0x8dbcf7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5b2a86);}}function ss(_0x752727){return _0x752727['sort']((_0x1a39a9,_0x2e89ce)=>'deletion'==_0x1a39a9['type']&&'deletion'!=_0x2e89ce['type']?-0x1:'deletion'!=_0x1a39a9['type']&&'deletion'==_0x2e89ce['type']?0x1:0x0);}function to(_0x3cce6f,_0x1964b9){let _0x5d2ce0,_0x5f1048=0x0;const _0x1bfb35=[],_0x2ddd34=_0x1964b9['schema'];for(;_0x5f1048<_0x3cce6f['length'];){const _0xf39457=_0x3cce6f[_0x5f1048],_0x8f11f6=_0x3cce6f[_0x5f1048+0x1];_0x5d2ce0||(_0x5d2ce0=_0x1964b9['createPositionBefore'](_0xf39457)),co(_0x1964b9,_0xf39457,_0x8f11f6)||(_0x1bfb35['push'](_0x1964b9['createRange'](_0x5d2ce0,_0x2ddd34['isObject'](_0xf39457)?_0x1964b9['createPositionAfter'](_0xf39457):_0x1964b9['createPositionAt'](_0xf39457,'end'))),_0x5d2ce0=null),_0x5f1048++;}return _0x1bfb35;}function co(_0x3e03d2,_0x335c0f,_0x3ae424){if(!_0x3ae424)return!0x1;const _0x585f3d=_0x3e03d2['createPositionAfter'](_0x335c0f),_0x489cb6=_0x3e03d2['createPositionBefore'](_0x3ae424);return _0x585f3d['isTouching'](_0x489cb6);}function rs(_0x5f5c1e,_0x59475a,_0x4056cd){for(;_0x4056cd['length'];){const _0x20ab0c=_0x4056cd['splice'](0x0,0x64);_0x5f5c1e['change'](()=>{for(const _0x2be261 of _0x20ab0c)_0x2be261['isInContent']&&_0x59475a['execute'](_0x2be261['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x124223,_0x491aff,_0x30228b){super(_0x124223),this['_command']=_0x491aff,this['_suggestions']=_0x30228b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x497290=Array['from'](this['_suggestions']['values']())['some'](_0x5b3385=>_0x5b3385['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x497290;}['execute'](){const _0x58f558=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2d509f of _0x58f558){const _0x276af9=_0x2d509f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x276af9))return;}rs(this['editor']['model'],this['_command'],_0x58f558);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1c7f56,_0x5c6f70,_0x54d8c2){super(_0x1c7f56),this['_command']=_0x5c6f70,this['_suggestions']=_0x54d8c2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3bb3d0=this['editor']['model']['document']['selection'],_0x3b4be2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xdc0abd,_0x3d66f0){const _0x1b4b17=Array['from'](_0xdc0abd['getRanges']()),_0x1406c8=new Set();for(const _0x4dbd4c of _0x3d66f0)if(_0x4dbd4c['isInContent']){for(const _0xeeacb9 of _0x1b4b17)for(const _0x2402ba of _0x4dbd4c['getRanges']())(_0xeeacb9['isIntersecting'](_0x2402ba)||_0xdc0abd['isCollapsed']&&!_0x4dbd4c['isMultiRange']&&_0x4dbd4c['next']&&_0x2402ba['end']['isTouching'](_0xeeacb9['start']))&&_0x1406c8['add'](_0x4dbd4c);}return _0x1406c8;}(_0x3bb3d0,_0x3b4be2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x38603d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x59582d of _0x38603d){const _0x392dd7=_0x59582d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x392dd7))return;}rs(this['editor']['model'],this['_command'],_0x38603d);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5f5866(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xa50d6d,_0x423a24){super(),this['id']=_0x423a24['id'],this['type']=_0x423a24['type'],this['subType']=_0x423a24['subType']||null,this['author']=_0x423a24['author'],this['creator']=_0x423a24['creator']||_0x423a24['author'],this['isExternal']=Boolean(_0x423a24['attributes']&&_0x423a24['attributes']['@external']),this['data']=null,this['_model']=_0xa50d6d,this['_onAccept']=_0x423a24['onAccept'],this['_onDiscard']=_0x423a24['onDiscard'],this['_onAttributesChange']=_0x423a24['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x423a24['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x44a0ec=this;for(;_0x44a0ec['previous'];)_0x44a0ec=_0x44a0ec['previous'];return _0x44a0ec;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x26a840){this['_markerNames']['add'](_0x26a840);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x150d79=>this['_model']['markers']['get'](_0x150d79))['filter'](_0x313fb6=>_0x313fb6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4a5f1f=>{for(const _0x4cfc7c of this['getMarkers']())_0x4a5f1f['removeMarker'](_0x4cfc7c);}),this['_markerNames']['clear']();}['removeMarker'](_0x488f85){this['_model']['change'](_0x369a1b=>{_0x369a1b['removeMarker'](_0x488f85);}),this['_markerNames']['delete'](_0x488f85);}['addRange'](_0x327409){const _0x21ad6b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x21ad6b),this['_model']['change'](_0x3b7174=>{_0x3b7174['addMarker'](_0x21ad6b,{'range':_0x327409,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x273ba0){for(const _0x424512 of this['getRanges']())if(_0x424512['isIntersecting'](_0x273ba0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xc67cba=>_0xc67cba['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1fb7ff,_0x4808a3)=>[..._0x1fb7ff,..._0x4808a3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1e5624=this['getRanges']();if(0x1!=_0x1e5624['length'])return null;const _0x2a36c4=_0x1e5624[0x0],_0x314e8a=_0x2a36c4['start']['nodeAfter'],_0x4afd7a=_0x2a36c4['end']['nodeBefore'];return _0x314e8a instanceof _0x1bdd4a?_0x314e8a!=_0x4afd7a?null:_0x314e8a:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x28d35f=[];let _0xd5beca=this['head'];for(;_0xd5beca;)_0x28d35f['push'](_0xd5beca),_0xd5beca=_0xd5beca['next'];return _0x28d35f;}['setAttribute'](_0x317dc7,_0x1cd910){const _0x1d83d9=_0x267494(this['attributes']);_0x5f45b0(_0x1d83d9,_0x317dc7,_0x1cd910),_0x5678e2(_0x1d83d9,this['attributes'])||(this['attributes']=_0x1d83d9,this['_onAttributesChange'](_0x1d83d9));}['removeAttribute'](_0x3d9f60){const _0x431e8a=_0x267494(this['attributes']);_0x4d77c4(_0x431e8a,_0x3d9f60),_0x5678e2(_0x431e8a,this['attributes'])||(this['attributes']=_0x431e8a,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x280966()['substr'](0x1,0x5);}}function o(_0x5909a7,_0x1af1a2,_0x4e26e5){const t=_0x5909a7['t'];switch(_0x1af1a2){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4e26e5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4e26e5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4e26e5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4e26e5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4e26e5);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x4e26e5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4e26e5);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e26e5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4e26e5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4e26e5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4e26e5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4e26e5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4e26e5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4e26e5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4e26e5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4e26e5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4e26e5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4e26e5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4e26e5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4e26e5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4e26e5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4e26e5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4e26e5);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x4e26e5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4e26e5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4e26e5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4e26e5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4e26e5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4e26e5);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x4e26e5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4e26e5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4e26e5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4e26e5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4e26e5);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4e26e5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4e26e5);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x4e26e5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4e26e5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4e26e5);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x4e26e5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4e26e5);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x4e26e5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4e26e5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4e26e5);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x4e26e5);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4e26e5);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4e26e5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x1af1a2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11646f,_0x419df3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11646f,this['_locale']=_0x419df3;}['getDescriptions'](_0x2f6cf5){const _0x37bbed=[],_0x2e0c60=new Set(),_0x44626b=new Set();for(let _0x185c39=0x0;_0x185c39<_0x2f6cf5['length'];_0x185c39++){const _0x5f0c55=_0x2f6cf5[_0x185c39];if(!_0x5f0c55['isInContent'])continue;const _0x478194=this['_handleCustomCallbackDescription'](_0x5f0c55);if(_0x478194){if(null!=_0x5f0c55['subType']){if(_0x2e0c60['has'](_0x5f0c55['subType']))continue;_0x2e0c60['add'](_0x5f0c55['subType']);}_0x37bbed['push'](_0x478194);}else{if('attribute'!=_0x5f0c55['type'])'insertion'!=_0x5f0c55['type']&&'deletion'!=_0x5f0c55['type']||this['_handleInsertRemoveSuggestionDescription'](_0x37bbed,_0x5f0c55,_0x2f6cf5[_0x185c39+0x1]);else{const _0x57b8a3=_0x5f0c55['data']['key'];if(_0x44626b['has'](_0x57b8a3))continue;_0x44626b['add'](_0x5f0c55['data']['key']),_0x57b8a3==m?this['_handleRenameSuggestionDescription'](_0x37bbed,_0x5f0c55):this['_handleAttributeSuggestionDescription'](_0x37bbed,_0x5f0c55);}}}return this['_resolveDescriptionItems'](_0x37bbed);}['registerDescriptionCallback'](_0x5884c1){this['_customCallbacks']['push'](_0x5884c1);}['registerElementLabel'](_0x4cecc7,_0xcb0364,_0x44a353=_0x5bbedb['normal']){'function'==typeof _0x4cecc7?_0x539e24(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4cecc7,'label':_0xcb0364,'priority':_0x44a353}):this['_itemLabels']['set'](_0x4cecc7,_0xcb0364);}['registerAttributeLabel'](_0x21fbb7,_0x23cdf9){this['_attributeLabels']['set'](_0x21fbb7,_0x23cdf9);}['getItemLabel'](_0x20fc36,_0x13d494=0x1){let _0x2db5ff;for(const _0x32a177 of this['_itemLabelsCallbacks'])if(_0x32a177['matchingCallback'](_0x20fc36)){_0x2db5ff=_0x32a177['label'];break;}return _0x2db5ff||(_0x2db5ff=this['_itemLabels']['get'](_0x20fc36['name'])),_0x2db5ff?_0x2db5ff(_0x13d494):0x1!==_0x13d494?_0x13d494+'\x20'+_0x20fc36['name']+'s':''+_0x20fc36['name'];}['_addDescriptionItems'](_0x30d672,_0x143cff){const _0x21fc0c=_0x143cff['getFirstRange']()['getWalker'](),_0x42cbb5='insertion'==_0x143cff['type']?'add':'remove';for(const _0x2b43b4 of _0x21fc0c){const _0x412a48=_0x2b43b4['item'],_0x13a953=_0x30d672[_0x30d672['length']-0x1];if(_0x412a48['is']('$textProxy'))_0x13a953&&_0x13a953['type']['indexOf']('Container')>-0x1&&_0x30d672['pop'](),_0x13a953&&'text'==_0x13a953['type']?_0x13a953[_0x42cbb5]+=_0x412a48['data']:_0x30d672['push']({'type':'text','add':'add'==_0x42cbb5?_0x412a48['data']:'','remove':'remove'==_0x42cbb5?_0x412a48['data']:''});else{if(this['_schema']['isObject'](_0x412a48)){const _0x32ab9e=_0x412a48;if(_0x13a953&&_0x13a953['type']['indexOf']('Container')>-0x1&&_0x30d672['pop'](),'elementEnd'==_0x2b43b4['type'])continue;_0x13a953&&_0x13a953['type']==_0x42cbb5+'Object'&&_0x13a953['element']['name']==_0x32ab9e['name']?_0x13a953['quantity']++:_0x30d672['push']({'type':_0x42cbb5+'Object','element':_0x32ab9e,'quantity':0x1}),_0x21fc0c['skip'](_0x2cdfca=>!('elementEnd'==_0x2cdfca['type']&&_0x2cdfca['item']==_0x412a48));}else{if(this['_schema']['checkChild'](_0x412a48,'$text')||_0x412a48['is']('element','softBreak')){const _0x689dff=_0x412a48;if('add'==_0x42cbb5&&'elementStart'==_0x2b43b4['type']||'remove'==_0x42cbb5&&'elementEnd'==_0x2b43b4['type'])continue;if(_0x13a953&&-0x1==_0x13a953['type']['indexOf']('Container')){'text'==_0x13a953['type']&&(_0x13a953[_0x42cbb5]+='\x0a');continue;}let _0x22b25f;if(_0x22b25f='add'==_0x42cbb5?_0x689dff['nextSibling']&&!this['_schema']['isObject'](_0x689dff['nextSibling'])?_0x689dff['nextSibling']:null:_0x689dff['previousSibling']&&!this['_schema']['isObject'](_0x689dff['previousSibling'])?_0x689dff['previousSibling']:null,_0x689dff['isEmpty']||_0x22b25f&&_0x22b25f['isEmpty']){const _0x7c56bc=_0x22b25f&&_0x22b25f['isEmpty']?_0x22b25f:_0x689dff;_0x13a953&&_0x13a953['type']==_0x42cbb5+'EmptyContainer'&&_0x13a953['element']['name']==_0x7c56bc['name']?_0x13a953['quantity']++:_0x30d672['push']({'type':_0x42cbb5+'EmptyContainer','element':_0x7c56bc,'quantity':0x1});}else _0x30d672['push']({'type':_0x42cbb5+'Container','element':_0x689dff});}}}}}['_resolveDescriptionItems'](_0x7c1de9){const _0x4901fc=this['_locale'],_0x24a646=[],_0x333e19=[],_0x4a076d=[];for(const _0x2f8eb9 of _0x7c1de9)switch(_0x2f8eb9['type']){case'text':if(_0x2f8eb9['add']=_0x2f8eb9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2f8eb9['remove']=_0x2f8eb9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2f8eb9['add']&&''!=_0x2f8eb9['remove']){_0x24a646['push']({'type':'replace','content':o(_0x4901fc,'REPLACE_TEXT',['\x22'+_0x2f8eb9['remove']+'\x22','\x22'+_0x2f8eb9['add']+'\x22'])});continue;}if(null!=_0x2f8eb9['add']['match'](/^ +$/)){_0x24a646['push']({'type':'insertion','content':o(_0x4901fc,'*Insert:*\x20%0',o(_0x4901fc,'ELEMENT_SPACE',_0x2f8eb9['add']['length']))});continue;}if(null!=_0x2f8eb9['remove']['match'](/^ +$/)){_0x24a646['push']({'type':'deletion','content':o(_0x4901fc,'*Remove:*\x20%0',o(_0x4901fc,'ELEMENT_SPACE',_0x2f8eb9['remove']['length']))});continue;}if(''!=_0x2f8eb9['add']){_0x24a646['push']({'type':'insertion','content':o(_0x4901fc,'*Insert:*\x20%0','\x22'+_0x2f8eb9['add']+'\x22')});continue;}_0x24a646['push']({'type':'deletion','content':o(_0x4901fc,'*Remove:*\x20%0','\x22'+_0x2f8eb9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x24a646['push']({'type':'insertion','content':o(_0x4901fc,'*Insert:*\x20%0',this['getItemLabel'](_0x2f8eb9['element'],_0x2f8eb9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x24a646['push']({'type':'deletion','content':o(_0x4901fc,'*Remove:*\x20%0',this['getItemLabel'](_0x2f8eb9['element'],_0x2f8eb9['quantity']))});continue;case'addContainer':_0x24a646['push']({'type':'insertion','content':o(_0x4901fc,'*Split:*\x20%0',this['getItemLabel'](_0x2f8eb9['element'],_0x2f8eb9['quantity']))});continue;case'removeContainer':_0x24a646['push']({'type':'deletion','content':o(_0x4901fc,'*Merge:*\x20%0',this['getItemLabel'](_0x2f8eb9['element'],_0x2f8eb9['quantity']))});continue;case'addFormat':_0x333e19['push'](_0x2f8eb9['key']);continue;case'removeFormat':_0x4a076d['push'](_0x2f8eb9['key']);continue;default:_0x24a646['push'](_0x2f8eb9);}if(_0x333e19['length']){const _0x2e2122=_0x333e19['map'](_0xb4e9a3=>this['_attributeLabels']['has'](_0xb4e9a3)?this['_attributeLabels']['get'](_0xb4e9a3):_0xb4e9a3)['join'](',\x20');_0x24a646['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2e2122)});}if(_0x4a076d['length']){const _0x178c4e=_0x4a076d['map'](_0x4b0977=>this['_attributeLabels']['has'](_0x4b0977)?this['_attributeLabels']['get'](_0x4b0977):_0x4b0977)['join'](',\x20');_0x24a646['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x178c4e)});}return _0x24a646;}['_handleCustomCallbackDescription'](_0x4fdbbc){for(const _0x231d56 of this['_customCallbacks']){const _0x4894a6=_0x231d56(_0x4fdbbc);if(_0x4894a6&&'type'in _0x4894a6)return _0x4894a6;}}['_handleAttributeSuggestionDescription'](_0x3e0ce5,_0x341ee2){const _0x4ac0f2=_0x341ee2['data'],_0x1a1b46=void 0x0===_0x4ac0f2['newValue']?'removeFormat':'addFormat';_0x3e0ce5['push']({'type':_0x1a1b46,'key':_0x4ac0f2['key']});}['_handleRenameSuggestionDescription'](_0x2cd233,_0x4fc56d){_0x2cd233['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4fc56d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2de40c,_0x35739d,_0x2c165c){if(this['_addDescriptionItems'](_0x2de40c,_0x35739d),_0x2c165c&&_0x2c165c['getFirstRange']()&&!_0x35739d['getFirstRange']()['end']['isEqual'](_0x2c165c['getFirstRange']()['start'])){const _0x4bd895=_0x2de40c[_0x2de40c['length']-0x1],_0x51ae01='insertion'==_0x35739d['type']?'add':'remove';_0x4bd895&&'text'==_0x4bd895['type']&&(_0x4bd895[_0x51ae01]+='\x0a');}}}class E extends _0x1ec07f{['afterInit'](){const _0x398614=this['editor'],_0x4dc9df=_0x398614['plugins']['get']('TrackChangesEditing');_0x398614['commands']['get']('showAIAssistant')&&_0x4dc9df['enableCommand']('showAIAssistant');}}class V extends _0x1ec07f{['afterInit'](){const _0x1321cb=this['editor'],_0x2d31ce=_0x1321cb['locale'];if(!_0x1321cb['plugins']['has']('AlignmentEditing'))return;const _0x47e093=_0x1321cb['plugins']['get']('TrackChangesEditing');_0x47e093['enableDefaultAttributesIntegration']('alignment'),_0x47e093['registerBlockAttribute']('alignment'),_0x47e093['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2d31ce,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1557d9=this['editor'],_0x2c7689=_0x1557d9['locale'];_0x1557d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f1e78=>{if('formatBlock'!=_0x3f1e78['type'])return;const {data:_0x2bc538}=_0x3f1e78;if(_0x2bc538&&'alignment'==_0x2bc538['commandName']){const _0x598a86=_0x2bc538['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2c7689,'*Format:*\x20%0',function(_0x117bb7){switch(_0x117bb7){case'left':return o(_0x2c7689,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2c7689,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2c7689,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2c7689,'FORMAT_JUSTIFY_TEXT');}}(_0x598a86))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1ec07f{['afterInit'](){const _0x3203a2=this['editor'],_0xb723ca=_0x3203a2['plugins']['get']('TrackChangesEditing'),_0x4ff237=_0x3203a2['locale'];for(const _0x4e023b of ti){if(!_0x3203a2['plugins']['has'](_0x4e023b))continue;const _0x5777b8=_0x4e023b['slice'](0x0,-0x7)['toLowerCase'](),_0x1b41ad='FORMAT_'+_0x5777b8['toUpperCase']();_0xb723ca['enableDefaultAttributesIntegration'](_0x5777b8),_0xb723ca['registerInlineAttribute'](_0x5777b8),_0xb723ca['descriptionFactory']['registerAttributeLabel'](_0x5777b8,o(_0x4ff237,_0x1b41ad));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9c92c=this['editor'],_0x59c565=_0xa9c92c['locale'],_0x579412=_0xa9c92c['plugins']['get']('TrackChangesEditing');function _0x1fe9ba(_0x474ec0,_0x1cfc7e){_0x579412['descriptionFactory']['registerDescriptionCallback'](_0x41a965=>{if('formatInline'!=_0x41a965['type'])return;const {data:_0x2788ea}=_0x41a965;return _0x2788ea&&_0x2788ea['commandName']===_0x474ec0?_0x2788ea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59c565,'*Format:*\x20%0',_0x1cfc7e)}:{'type':'format','content':o(_0x59c565,'*Remove\x20format:*\x20%0',_0x1cfc7e)}:void 0x0;});}_0x1fe9ba('bold',o(_0x59c565,'FORMAT_BOLD')),_0x1fe9ba('italic',o(_0x59c565,'FORMAT_ITALIC')),_0x1fe9ba('underline',o(_0x59c565,'FORMAT_UNDERLINE')),_0x1fe9ba('code',o(_0x59c565,'FORMAT_CODE')),_0x1fe9ba('strikethrough',o(_0x59c565,'FORMAT_STRIKETHROUGH')),_0x1fe9ba('subscript',o(_0x59c565,'FORMAT_SUBSCRIPT')),_0x1fe9ba('superscript',o(_0x59c565,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1ec07f{['afterInit'](){const _0x2fd1a1=this['editor'],_0xcd76ee=_0x2fd1a1['locale'];if(!_0x2fd1a1['plugins']['has']('BlockQuoteEditing'))return;const _0x33a756=_0x2fd1a1['plugins']['get']('TrackChangesEditing'),_0x30effc=this['editor']['commands']['get']('blockQuote');_0x33a756['enableCommand']('blockQuote',(_0x2c3696,_0x3ac0d6={})=>{const _0x14be5d=this['editor']['model']['document']['selection'],_0x512337=_0x3ac0d6&&void 0x0!==_0x3ac0d6['forceValue']?_0x3ac0d6['forceValue']:!_0x30effc['value'];let _0x7e40=[];if(_0x512337){const _0x20759f=Array['from'](_0x14be5d['getSelectedBlocks']())['filter'](_0x4c739f=>oo(_0x4c739f)||function(_0x240597,_0x2c7dfb){const _0x4f4552=_0x2c7dfb['checkChild'](_0x240597['parent'],'blockQuote'),_0x43ed8b=_0x2c7dfb['checkChild'](['$root','blockQuote'],_0x240597);return _0x4f4552&&_0x43ed8b;}(_0x4c739f,this['editor']['model']['schema']));_0x7e40=to(_0x20759f,_0x2fd1a1['model']);}else{const _0x51f986=Array['from'](_0x14be5d['getSelectedBlocks']())['filter'](_0x5a8f29=>oo(_0x5a8f29));_0x7e40=to(_0x51f986,_0x2fd1a1['model']);}_0x2fd1a1['model']['change'](()=>{for(const _0x5e1fde of _0x7e40)_0x33a756['markBlockFormat'](_0x5e1fde,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x512337}]});});}),_0x33a756['descriptionFactory']['registerDescriptionCallback'](_0x4c49ef=>{const {data:_0x328ec4}=_0x4c49ef;if(_0x328ec4&&'blockQuote'==_0x328ec4['commandName']){const _0x3a82e9=o(_0xcd76ee,'ELEMENT_BLOCK_QUOTE');return _0x328ec4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcd76ee,'*Set\x20format:*\x20%0',_0x3a82e9)}:{'type':'format','content':o(_0xcd76ee,'*Remove\x20format:*\x20%0',_0x3a82e9)};}});}}function oo(_0x554eb8){return'blockQuote'==_0x554eb8['parent']['name'];}class G extends _0x1ec07f{['afterInit'](){const _0x3f063b=this['editor'];_0x3f063b['plugins']['has']('CaseChange')&&(_0x3f063b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f063b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f063b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1ec07f{['afterInit'](){const _0x57e09f=this['editor'];_0x57e09f['commands']['get']('ckbox')&&_0x57e09f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1ec07f{['afterInit'](){const _0xec436c=this['editor'];if(!_0xec436c['plugins']['has']('CodeBlock'))return;const _0x1276fa=_0xec436c['plugins']['get']('TrackChangesEditing'),_0x3b6aed=_0xec436c['locale'],_0x3f7f64=_0xec436c['config']['get']('codeBlock')['languages'],_0x57ad9a=_0xec436c['commands']['get']('codeBlock');_0x1276fa['enableCommand']('indentCodeBlock'),_0x1276fa['enableCommand']('outdentCodeBlock'),_0x1276fa['enableCommand']('codeBlock',(_0x3f37b5,_0x47e503={})=>{const _0x688559=_0xec436c['model'],_0x2d5ad1=_0xec436c['model']['document']['selection'],_0x4e0a04=_0x47e503&&void 0x0!==_0x47e503['forceValue']?_0x47e503['forceValue']:!_0x57ad9a['value'];let _0x510b50;_0x47e503['language']||(_0x47e503['language']=_0x3f7f64[0x0]['language']),_0x510b50=_0x4e0a04?Array['from'](_0x2d5ad1['getSelectedBlocks']())['filter'](_0x17789=>eo(_0x17789)||function(_0x49040d,_0x256df7){if(_0x49040d['is']('rootElement')||_0x256df7['isLimit'](_0x49040d))return!0x1;return _0x256df7['checkChild'](_0x49040d['parent'],'codeBlock');}(_0x17789,_0x688559['schema'])):Array['from'](_0x2d5ad1['getSelectedBlocks']())['filter'](_0x2b87ec=>eo(_0x2b87ec));const _0x5616cc=to(_0x510b50,_0x688559);_0x688559['change'](()=>{for(const _0x2e8214 of _0x5616cc)_0x1276fa['markBlockFormat'](_0x2e8214,{'commandName':'codeBlock','commandParams':[{..._0x47e503,'forceValue':_0x4e0a04}],'formatGroupId':'blockName'});});}),(_0x1276fa['descriptionFactory']['registerElementLabel']('codeBlock',_0x34e70a=>o(_0x3b6aed,'ELEMENT_CODE_BLOCK',_0x34e70a)),_0x1276fa['descriptionFactory']['registerDescriptionCallback'](_0xf6a45d=>{if('formatBlock'!=_0xf6a45d['type'])return;const _0x20c8f0=_0x3b6aed['t'],{data:_0x1c4a84}=_0xf6a45d;if(!_0x1c4a84||'codeBlock'!=_0x1c4a84['commandName'])return;const _0x4bbbab=_0x1c4a84['commandParams'][0x0]['language'],_0x4a350e=_0x20c8f0(_0x3f7f64['find'](_0x194e44=>_0x194e44['language']===_0x4bbbab)['label'])['toLowerCase']();return _0x1c4a84['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b6aed,'*Set\x20format:*\x20%0',o(_0x3b6aed,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4a350e+')')}:{'type':'format','content':o(_0x3b6aed,'*Remove\x20format:*\x20%0',o(_0x3b6aed,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4d4512){return'codeBlock'==_0x4d4512['name'];}class H extends _0x1ec07f{['afterInit'](){const _0x47e40d=this['editor'];if(!_0x47e40d['plugins']['has']('CommentsEditing'))return;_0x47e40d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x32e2b3,_0x93f2bf,_0x3c8af5){const _0x290f53=[];for(const _0x45fc81 of _0x93f2bf['getItems']())_0x45fc81['hasAttribute'](_0x32e2b3)&&_0x290f53['push'](_0x3c8af5['createRangeOn'](_0x45fc81));return _0x290f53;}function _e(_0x5bc566,_0x214486,{showActiveMarker:_0x30c6b6=!0x0}={}){const _0x300064=_0x5bc566['plugins']['get']('TrackChangesEditing');return(_0x42bfce,_0x104338,_0x1d65c3)=>{if(!_0x1d65c3['consumable']['test'](_0x104338['markerRange'],_0x42bfce['name']))return;const _0x3969fc=_0x104338['markerRange']['getWalker'](),_0x3e1612=_0x104338['markerRange']['start'],_0x51603f=_0x5bc566['model']['schema'];let _0x2bdd17=null,_0x14240b=null,_0x3a648a=!0x1,_0x3a17c7=!0x1;for(const _0x420bd1 of _0x3969fc){const _0x55afe4=_0x420bd1['item'];_0x3a648a=_0x3a648a||_0x51603f['isContent'](_0x55afe4);const _0x2b6c2c=_0x1d65c3['mapper']['toViewElement'](_0x55afe4);if(_0x2b6c2c&&_0x2b6c2c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x420bd1['type']&&(_0x51603f['isBlock'](_0x55afe4)&&!_0x51603f['isLimit'](_0x55afe4)&&(_0x55afe4['nextSibling']||_0x3e1612['isAtEnd']?_0x2bdd17&&_0x2bdd17['parent']==_0x55afe4||(_0x2bdd17=_0x55afe4,_0x33604a(_0x420bd1['previousPosition']),_0x3a17c7=!0x0):_0x14240b=_0x14240b||_0x420bd1['previousPosition']));}function _0x33604a(_0x2c6073){const _0x5a3847=_0x1d65c3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x214486}),_0x45aced=_0x1d65c3['mapper']['toViewPosition'](_0x2c6073);_0x30c6b6&&_0x300064['activeMarkers']['includes'](_0x104338['markerName'])&&_0x1d65c3['writer']['addClass']('ck-suggestion-marker--active',_0x5a3847),_0x1d65c3['writer']['insert'](_0x45aced,_0x5a3847),_0x1d65c3['mapper']['bindElementToMarker'](_0x5a3847,_0x104338['markerName']);}_0x3a648a||_0x3a17c7||!_0x14240b||_0x33604a(_0x14240b);};}class q extends _0x1ec07f{static get['requires'](){return[_0x2e6297];}['init'](){const _0x4ccd19=this['editor'],_0x38a4e3=_0x4ccd19['plugins']['get']('TrackChangesEditing');_0x38a4e3['enableCommand']('delete');const _0x32210d=_0x4ccd19['commands']['get']('deleteForward');_0x38a4e3['enableCommand']('deleteForward',(_0x1d81fc,_0x193e31={})=>{const _0x47a381=_0x4ccd19['model']['createSelection'](_0x4ccd19['model']['document']['selection']);_0x47a381['isCollapsed']&&_0x4ccd19['model']['modifySelection'](_0x47a381,{'direction':'forward','unit':_0x193e31['unit']});const _0x4e1f12=_0x47a381['getFirstRange'](),_0x445604=_0x30fc72['fromRange'](_0x4e1f12);let _0x2066bd;_0x1d81fc(_0x193e31),_0x2066bd='$graveyard'==_0x445604['root']['rootName']?_0x4ccd19['model']['createRange'](_0x4e1f12['start']):_0x4ccd19['model']['createRange'](_0x445604['start'],_0x445604['end']),_0x445604['detach'](),_0x4ccd19['model']['enqueueChange'](_0x32210d['buffer']['batch'],_0x408adf=>{_0x32210d['buffer']['lock'](),_0x408adf['setSelection'](_0x408adf['createRange'](_0x2066bd['end'])),_0x32210d['buffer']['unlock']();});}),_0x4ccd19['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4ccd19,'merge'),{'priority':'high'}),_0x4ccd19['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x264f86,_0x9dba23,_0x4609f1)=>{_0x4609f1['options']['showSuggestionHighlights']&&_e(_0x4ccd19,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x264f86,_0x9dba23,_0x4609f1);},{'priority':'high'}),_0x4ccd19['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4b3f00,_0x34f0f4,_0x5cada2)=>{const _0x5a30e0=_0x5cada2['mapper']['markerNameToElements'](_0x34f0f4['markerName']);if(_0x5a30e0){for(const _0x1a0f77 of _0x5a30e0)_0x1a0f77['is']('uiElement')&&(_0x5cada2['mapper']['unbindElementFromMarkerName'](_0x1a0f77,_0x34f0f4['markerName']),_0x5cada2['writer']['remove'](_0x1a0f77));}},{'priority':'high'});}}class z extends _0x1ec07f{['afterInit'](){const _0x380cb7=this['editor'];if(!_0x380cb7['plugins']['has']('ListEditing'))return;const _0x29c491=_0x380cb7['locale'],_0x521ef7=_0x380cb7['plugins']['get']('TrackChangesEditing'),_0x13780f=_0x380cb7['plugins']['has']('TodoListEditing'),_0x34dd6c=!!_0x380cb7['config']['get']('list.multiBlock');function _0x301113(_0x1414b5){return{'type':'format','content':''+o(_0x29c491,'*Set\x20format:*\x20%0',_0x1414b5)};}function _0x557f60(_0x186853){return{'type':'format','content':''+o(_0x29c491,'*Remove\x20format:*\x20%0',_0x186853)};}_0x521ef7['enableDefaultAttributesIntegration']('numberedList'),_0x521ef7['enableDefaultAttributesIntegration']('bulletedList'),_0x521ef7['enableDefaultAttributesIntegration']('customNumberedList'),_0x521ef7['enableDefaultAttributesIntegration']('customBulletedList'),_0x521ef7['enableDefaultAttributesIntegration']('indentList'),_0x521ef7['enableDefaultAttributesIntegration']('outdentList'),_0x521ef7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x521ef7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x521ef7['registerBlockAttribute']('listItemId'),_0x521ef7['registerBlockAttribute']('listType'),_0x521ef7['registerBlockAttribute']('listIndent'),_0x34dd6c&&(_0x521ef7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x521ef7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x13780f&&(_0x521ef7['enableDefaultAttributesIntegration']('todoList'),_0x521ef7['enableDefaultAttributesIntegration']('checkTodoList'),_0x521ef7['registerBlockAttribute']('todoListChecked'),_0x521ef7['descriptionFactory']['registerDescriptionCallback'](_0x27b422=>{const {data:_0x221a5c}=_0x27b422;if(_0x221a5c&&'todoListChecked'==_0x221a5c['key'])return{'type':'format','content':_0x221a5c['newValue']?o(_0x29c491,'*Check\x20item*'):o(_0x29c491,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x507c06=>{if(_0x507c06['batch']['isUndo'])return!0x1;let _0x3d666c=!0x1;const _0x3ce190=_0x521ef7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c962a=>'todoListChecked'===_0x521ef7['_getAttributeKey'](_0x5c962a));for(const _0x3ddafe of _0x3ce190){'todo'!=_0x3ddafe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x521ef7['_findSuggestions'](_0x3ddafe['getFirstRange'](),'attribute')['find'](_0x5be369=>'listType'===_0x521ef7['_getAttributeKey'](_0x5be369['suggestion']))||(_0x507c06['removeMarker'](_0x3ddafe['getFirstMarker']()),_0x3d666c=!0x0));}return _0x3d666c;})),_0x521ef7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x29c491,'FORMAT_INDENT'));const _0x1d88cc={'type':'format','content':''};_0x521ef7['descriptionFactory']['registerDescriptionCallback'](_0x42ec35=>{const {data:_0x12113e}=_0x42ec35;if(!_0x12113e||'listType'!=_0x12113e['key'])return;let _0x5997c5=_0x42ec35['head'];for(;_0x5997c5;){if(_0x5997c5['data']&&(('listStyle'==_0x5997c5['data']['key']||'listMarkerStyle'==_0x5997c5['data']['key'])&&(_0x5997c5['data']['newValue']&&'default'!=_0x5997c5['data']['newValue']||'default'!=_0x5997c5['data']['oldValue']&&!_0x12113e['newValue'])||!_0x34dd6c&&_0x5997c5['data']['key']==m))return _0x1d88cc;_0x5997c5=_0x5997c5['next'];}if(null==_0x12113e['newValue'])switch(_0x12113e['oldValue']){case'bulleted':return _0x557f60(o(_0x29c491,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x557f60(o(_0x29c491,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x557f60(o(_0x29c491,'ELEMENT_TODO_LIST'));}switch(_0x12113e['newValue']){case'bulleted':return _0x301113(o(_0x29c491,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x301113(o(_0x29c491,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x301113(o(_0x29c491,'ELEMENT_TODO_LIST'));}}),_0x521ef7['descriptionFactory']['registerDescriptionCallback'](_0x1e2d7a=>{const {data:_0x1cdc07}=_0x1e2d7a;if(_0x1cdc07&&'listIndent'==_0x1cdc07['key'])return null==_0x1cdc07['newValue']||null==_0x1cdc07['oldValue']&&0x0==_0x1cdc07['newValue']?_0x1d88cc:void 0x0;}),_0x521ef7['descriptionFactory']['registerDescriptionCallback'](_0xc9bd37=>{if('attribute'!=_0xc9bd37['type'])return;const {data:_0x545bca}=_0xc9bd37;if(!_0x545bca||'listItemId'!=_0x545bca['key'])return;const _0x30d0a5=le(_0xc9bd37);return'newValue'==_0x30d0a5?{'type':'format','content':o(_0x29c491,'*Merge:*\x20list\x20item')}:'oldValue'==_0x30d0a5?{'type':'format','content':o(_0x29c491,'*Split:*\x20list\x20item')}:_0x1d88cc;}),_0x380cb7['model']['document']['registerPostFixer'](_0x26cde2=>this['listItemIdFixer'](_0x26cde2)),_0x380cb7['model']['document']['registerPostFixer'](_0x31d251=>this['noTrackChangesFixer'](_0x31d251)),_0x380cb7['model']['document']['registerPostFixer'](_0x553ad5=>this['assureChains'](_0x553ad5)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x724c3){if(_0x724c3['batch']['isUndo']||!_0x724c3['batch']['isLocal'])return!0x1;let _0x1ebbac=!0x1;const _0x3a5156=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d9e6b=>_0x5d9e6b['data']&&'listItemId'==_0x5d9e6b['data']['key'])['filter'](_0x3c75b2=>_0x3c75b2['data']['newValue']&&_0x3c75b2['data']['oldValue']);for(const _0x182a61 of _0x3a5156)le(_0x182a61)||(_0x724c3['removeMarker'](_0x182a61['getFirstMarker']()),_0x1ebbac=!0x0);return _0x1ebbac;}['noTrackChangesFixer'](_0x1ddee9){if(_0x1ddee9['batch']['isUndo']||!_0x1ddee9['batch']['isLocal'])return!0x1;const _0x2070f9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2070f9['trackChangesCommand']['value'])return!0x1;let _0x5e0f1c=!0x1;const _0x14fd04=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2418eb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1dfd0e=>'attribute'==_0x1dfd0e['type'])['filter'](_0x4f2395=>_0x14fd04['includes'](_0x4f2395['attributeKey']));if(0x0==_0x2418eb['length'])return _0x5e0f1c;for(const _0x637442 of _0x2418eb){const _0x25e7e4=_0x2070f9['_findSuggestions'](_0x637442['range'],'attribute')['filter'](_0x33a6b2=>!_0x33a6b2['meta']['isNextTo'])['map'](_0x2616ae=>_0x2616ae['suggestion'])['filter'](_0xc46a2c=>{const _0x2b8740=_0x2070f9['_getAttributeKey'](_0xc46a2c);return _0x14fd04['includes'](_0x2b8740);});if(_0x25e7e4['length']){for(const _0x1515bd of _0x25e7e4)_0x1ddee9['removeMarker'](_0x1515bd['getFirstMarker']());_0x5e0f1c=!0x0;}}return _0x5e0f1c;}['assureChains'](_0x2bd1f9){if(_0x2bd1f9['batch']['isUndo']||!_0x2bd1f9['batch']['isLocal'])return!0x1;const _0x310507=this['editor']['plugins']['get']('TrackChangesEditing');let _0x1b51c5=!0x1;const _0x1dbad4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1ba78c of _0x310507['getSuggestions']({'skipNotAttached':!0x0})){const _0x1a836a=_0x310507['_findSuggestions'](_0x1ba78c['getFirstRange'](),'attribute')['map'](_0x3a7d98=>_0x3a7d98['suggestion'])['filter'](_0x1ad5d7=>_0x1ad5d7['data']&&_0x1dbad4['includes'](_0x1ad5d7['data']['key']));if(!_0x1a836a['length'])continue;const _0x7d2cf7=_0x1a836a[0x0]['head']['attributes']['groupId'];if(!_0x1a836a['every'](_0x58c831=>_0x58c831['attributes']['groupId']===_0x7d2cf7)){for(const _0x775a67 of _0x1a836a)_0x2f0143(_0x775a67,_0x7d2cf7)&&(_0x1b51c5=!0x0);}}return _0x1b51c5;function _0x3d64ee(_0x194a3e,_0x436351){for(const _0x53e2de of _0x310507['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c7398=>'attribute'==_0x1c7398['type']&&_0x1c7398['attributes']['groupId']==_0x194a3e))_0x53e2de['setAttribute']('groupId',_0x436351);}function _0x2f0143(_0xd191a0,_0x4fb362){let _0x3926a2=_0xd191a0['head'],_0x4ba584=!0x1;for(;_0x3926a2;)_0x3926a2['attributes']['groupId']!=_0x4fb362&&(_0x3d64ee(_0x3926a2['attributes']['groupId'],_0x4fb362),_0x3926a2['setAttribute']('groupId',_0x4fb362),_0x4ba584=!0x0),_0x3926a2=_0x3926a2['next'];return _0x4ba584;}}['_supportLegacySuggestions'](){const _0x45a396=this['editor'],_0xb02603=_0x45a396['locale'],_0x14f570=_0x45a396['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14f570['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3642e2,_0x3cf984){const _0x213f74=[];for(let _0x553673 of _0x3642e2)_0x553673['start']['nodeAfter']===_0x553673['end']['parent']&&(_0x553673=_0x45a396['model']['createRange'](_0x45a396['model']['createPositionAt'](_0x553673['start']['nodeAfter'],0x0))),_0x213f74['push'](_0x553673);_0x45a396['model']['change'](_0x125ef1=>{const _0x2dffda=_0x45a396['model']['document']['selection'],_0x501887=Array['from'](_0x2dffda['getRanges']())['map'](_0x333cf4=>_0x30fc72['fromRange'](_0x333cf4));_0x125ef1['setSelection'](_0x213f74),_0x45a396['commands']['get'](_0x3cf984['commandName'])['refresh'](),_0x3cf984['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45a396['execute'](_0x3cf984['commandName'],..._0x3cf984['commandParams']),_0x125ef1['setSelection'](_0x501887);for(const _0x2bbed8 of _0x501887)_0x2bbed8['detach']();});}),_0x14f570['descriptionFactory']['registerElementLabel'](function(_0x409a20){const _0x128433=!_0x45a396['model']['schema']['isObject'](_0x409a20),_0x119899=_0x409a20['previousSibling'],_0x32a945=_0x409a20['nextSibling'],_0x2c8d43=_0x409a20['getAttribute']('listItemId'),_0x1dd2c8=!_0x119899||_0x119899['getAttribute']('listItemId')!==_0x2c8d43,_0x3df457=!_0x32a945||_0x32a945['getAttribute']('listItemId')!==_0x2c8d43;return _0x128433&&Boolean(_0x2c8d43)&&_0x1dd2c8&&_0x3df457;},_0x47d2ea=>o(_0xb02603,'ELEMENT_LIST_ITEM',_0x47d2ea));}['_registerLegacyDescription'](){const _0x7e8139=this['editor'],_0x1f8024=_0x7e8139['locale'];function _0x336f04(_0x25ebe0){const _0x19ea7a=_0x7e8139['commands']['get']('bulletedList')['value'],_0x19abe5=_0x7e8139['commands']['get']('numberedList')['value'];return'numberedList'===_0x25ebe0?_0x19ea7a:_0x19abe5;}_0x7e8139['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3801c0){if('formatBlock'!=_0x3801c0['type'])return;const {data:_0x2f8268}=_0x3801c0;if(!_0x2f8268)return;let _0xa7599c,_0x34ed7b,_0x5ed701,_0x21c71d;switch(_0x2f8268['commandName']){case'bulletedList':_0x5ed701=_0x2f8268['commandParams'][0x0]['forceValue'],_0x21c71d=_0x336f04(_0x2f8268['commandName']),_0xa7599c=_0x5ed701?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21c71d&&_0x7e8139['config']['get']('list.multiBlock')||(_0xa7599c='*Change\x20to:*\x20%0'),_0x34ed7b={'type':'format','content':o(_0x1f8024,_0xa7599c,o(_0x1f8024,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ed701=_0x2f8268['commandParams'][0x0]['forceValue'],_0x21c71d=_0x336f04(_0x2f8268['commandName']),_0xa7599c=_0x5ed701?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x21c71d&&_0x7e8139['config']['get']('list.multiBlock')||(_0xa7599c='*Change\x20to:*\x20%0'),_0x34ed7b={'type':'format','content':o(_0x1f8024,_0xa7599c,o(_0x1f8024,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa7599c='*Indent:*\x20%0',_0x34ed7b={'type':'format','content':o(_0x1f8024,_0xa7599c,o(_0x1f8024,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa7599c=function(_0x4a1c46){const _0xddac7d=_0x4a1c46['getFirstRange']();let _0xd2ff24=_0xddac7d['start']['nodeAfter'];for(;_0xd2ff24&&_0xddac7d['containsItem'](_0xd2ff24);){if(_0xd2ff24['getAttribute']('listIndent')>0x0)return!0x1;_0xd2ff24=_0xd2ff24['nextSibling'];}return!0x0;}(_0x3801c0)?o(_0x1f8024,'*Format:*\x20remove\x20from\x20%0',o(_0x1f8024,function(_0x240032){return'ELEMENT_'+_0x240032['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3801c0))):o(_0x1f8024,'*Outdent:*\x20%0',o(_0x1f8024,'ELEMENT_LIST_ITEM')),_0x34ed7b={'type':'format','content':_0xa7599c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2f8268['multipleBlocks']&&(_0xa7599c='*Merge:*\x20%0',_0x34ed7b={'type':'deletion','content':o(_0x1f8024,_0xa7599c,o(_0x1f8024,'ELEMENT_LIST_ITEM'))});}return _0x34ed7b;});}}function le(_0x48cb3e){let _0x4948b6=_0x48cb3e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4948b6;){const _0x3e78ed=_0x4948b6['getAttribute']('listItemId');if(!_0x3e78ed)return!0x1;if(_0x3e78ed==_0x48cb3e['data']['newValue'])return'newValue';if(_0x3e78ed==_0x48cb3e['data']['oldValue'])return'oldValue';_0x4948b6=_0x4948b6['previousSibling'];}return!0x1;}class pe extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4e388f=this['editor']['config']['get']('list.properties'),_0x24066c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e388f['styles']&&(_0x24066c['enableDefaultAttributesIntegration']('listStyle'),_0x24066c['registerBlockAttribute']('listStyle')),_0x4e388f['reversed']&&(_0x24066c['enableDefaultAttributesIntegration']('listReversed'),_0x24066c['registerBlockAttribute']('listReversed')),_0x4e388f['startIndex']&&(_0x24066c['enableDefaultAttributesIntegration']('listStart'),_0x24066c['registerBlockAttribute']('listStart'));const _0xe765c8={'type':'format','content':''};_0x24066c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x51b3b0=this['editor']['locale'];_0x24066c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x51b3b0,'FORMAT_LIST_REVERSED')),_0x24066c['descriptionFactory']['registerDescriptionCallback'](_0x48a535=>{const {data:_0x2896e1}=_0x48a535;if(_0x2896e1&&'listReversed'==_0x2896e1['key'])return null==_0x2896e1['newValue']||0x0==_0x2896e1['newValue']&&null==_0x2896e1['oldValue']?_0xe765c8:void 0x0;}),_0x24066c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x51b3b0,'FORMAT_LIST_START')),_0x24066c['descriptionFactory']['registerDescriptionCallback'](_0x39209a=>{const {data:_0x424181}=_0x39209a;if(_0x424181&&'listStart'==_0x424181['key'])return null==_0x424181['newValue']||0x1==_0x424181['newValue']&&null==_0x424181['oldValue']?_0xe765c8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b0f69=>{if(_0x4b0f69['batch']['isUndo'])return!0x1;let _0x225b05=!0x1;const _0x11b246=_0x24066c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56232a=>{const _0x7278c7=_0x24066c['_getAttributeKey'](_0x56232a);return'listStart'==_0x7278c7||'listReversed'==_0x7278c7;});for(const _0x5cb326 of _0x11b246){const _0x110b7a=_0x5cb326['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x110b7a||'customNumbered'==_0x110b7a)continue;_0x24066c['_findSuggestions'](_0x5cb326['getFirstRange'](),'attribute')['find'](_0x5c604a=>'listType'==_0x24066c['_getAttributeKey'](_0x5c604a['suggestion']))||(_0x4b0f69['removeMarker'](_0x5cb326['getFirstMarker']()),_0x225b05=!0x0);}return _0x225b05;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x8959d){const _0x1edbee=this['editor']['locale'],{data:_0x3f914d}=_0x8959d,_0x31cbd2={'type':'format','content':''};if(!_0x3f914d||'listStyle'!=_0x3f914d['key'])return;if(!_0x3f914d['oldValue'])return'default'==_0x3f914d['newValue']?_0x31cbd2:{'type':'format','content':''+o(_0x1edbee,'*Set\x20format:*\x20%0',o(_0x1edbee,this['_getTranslationKeyForListStyle'](_0x3f914d['newValue'])))};if(!_0x3f914d['newValue']){if('default'==_0x3f914d['oldValue'])return _0x31cbd2;let _0x3368a6=_0x8959d['head'];for(;_0x3368a6;){if(_0x3368a6['data']&&'listType'==_0x3368a6['data']['key']&&_0x3368a6['data']['newValue'])return _0x31cbd2;_0x3368a6=_0x3368a6['next'];}return{'type':'format','content':''+o(_0x1edbee,'*Remove\x20format:*\x20%0',o(_0x1edbee,this['_getTranslationKeyForListStyle'](_0x3f914d['oldValue'])))};}if('default'!=_0x3f914d['newValue'])return{'type':'format','content':''+o(_0x1edbee,'*Set\x20format:*\x20%0',o(_0x1edbee,this['_getTranslationKeyForListStyle'](_0x3f914d['newValue'])))};let _0x35bee5=_0x8959d['head'];for(;_0x35bee5;){if(_0x35bee5['data']&&'listType'==_0x35bee5['data']['key']&&_0x35bee5['data']['newValue']&&_0x35bee5['data']['oldValue'])return _0x31cbd2;_0x35bee5=_0x35bee5['next'];}return{'type':'format','content':o(_0x1edbee,'*Set\x20format:*\x20%0',o(_0x1edbee,'ELEMENT_'+_0x8959d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x40c499=this['editor'],_0x20d789=_0x40c499['locale'];_0x40c499['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa4301a=>{if('formatBlock'!=_0xa4301a['type'])return;const {data:_0x93ab40}=_0xa4301a;if(!_0x93ab40)return;let _0xa252f1,_0x448c1f;switch(_0x93ab40['commandName']){case'listStyle':_0xa252f1='*Change\x20to:*\x20%0',_0x448c1f={'type':'format','content':o(_0x20d789,_0xa252f1,o(_0x20d789,this['_getTranslationKeyForListStyle'](_0x93ab40['commandParams'][0x0]['type'])))};break;case'listReversed':_0xa252f1=_0x93ab40['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x448c1f={'type':'format','content':o(_0x20d789,_0xa252f1)};break;case'listStart':_0xa252f1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x448c1f={'type':'format','content':o(_0x20d789,_0xa252f1,_0x93ab40['commandParams'][0x0]['startIndex'])};}return _0x448c1f;});}['_getTranslationKeyForListStyle'](_0x1319dc){return'ELEMENT_'+function(_0x1557e){if(ye['includes'](_0x1557e))return'bulleted';if(he['includes'](_0x1557e))return'numbered';return null;}(_0x1319dc)['toUpperCase']()+'_LIST_'+_0x1319dc['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1ec07f{static get['requires'](){return[_0x422272];}['init'](){const _0x480412=this['editor'],_0xfce3ec=_0x480412['plugins']['get']('TrackChangesEditing'),_0x12f638=_0x480412['commands']['get']('enter');_0xfce3ec['enableCommand']('enter',()=>{_0x480412['model']['change'](_0x233650=>{const _0x287dbf=_0x480412['model']['document']['selection'],_0x4aa2c9=_0x287dbf['getFirstPosition'](),_0x8afdab=_0x30fc72['fromRange'](_0x287dbf['getFirstRange']());if(_0x12f638['enterBlock'](_0x233650)){const _0x3fc1db=_0x480412['model']['createPositionAt'](_0x4aa2c9['parent']['nextSibling'],0x0),_0x363097=_0x233650['createRange'](_0x4aa2c9,_0x3fc1db);_0xfce3ec['markInsertion'](_0x363097);}else _0x233650['setSelection'](_0x233650['createRange'](_0x8afdab['end']));_0x8afdab['detach'](),_0x12f638['fire']('afterExecute',{'writer':_0x233650});});}),_0x480412['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x480412,'split'),{'priority':'high'}),_0x480412['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xd33ac6,_0x4a313c,_0x1b1155)=>{const _0x27d707=_0x1b1155['mapper']['markerNameToElements'](_0x4a313c['markerName']);if(_0x27d707){for(const _0x5cb92f of _0x27d707)_0x5cb92f['hasClass']('ck-suggestion-marker-split')&&(_0x1b1155['mapper']['unbindElementFromMarkerName'](_0x5cb92f,_0x4a313c['markerName']),_0x1b1155['writer']['remove'](_0x5cb92f));}},{'priority':'high'}),_0x480412['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x301a21,_0x22999a,_0x5072ac)=>{_0x5072ac['options']['showSuggestionHighlights']&&_e(_0x480412,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x301a21,_0x22999a,_0x5072ac);},{'priority':'high'});}}class J extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2fc851=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fc851['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2fc851['enableCommand']('findNext'),_0x2fc851['enableCommand']('findPrevious'),_0x2fc851['enableCommand']('replace'),_0x2fc851['enableCommand']('replaceAll');}['handleFindCommand'](_0x3f7009,_0x2b940c,_0x100db6={}){const _0xc2efab=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3f7009(_0x7ec29a=>{let _0x180928=('string'==typeof _0x2b940c?_0xc2efab['findByTextCallback'](_0x2b940c,_0x100db6):_0x2b940c)(_0x7ec29a);Array['isArray'](_0x180928)&&(_0x180928={'results':_0x180928,'searchText':'string'==typeof _0x2b940c?_0x2b940c:''});const _0x9b2ab9=_0x180928['results']['filter'](_0x92e0ac=>!0x1===this['_isInDeletionRange'](_0x92e0ac,_0x7ec29a['item']));return{..._0x180928,'results':_0x9b2ab9};},_0x100db6);}['_isInDeletionRange'](_0x5ba29e,_0x5108d5){const _0x5ab853=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5108d5,_0x5ba29e['start']),this['editor']['model']['createPositionAt'](_0x5108d5,_0x5ba29e['end']));for(const _0xa4ce23 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ab853['getIntersection'](_0xa4ce23['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x1ec07f{['afterInit'](){const _0x39712b=this['editor']['locale'],_0x100ad6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3697f3,commandName:_0x16ccfe}of ro)this['editor']['plugins']['has'](_0x3697f3)&&(_0x100ad6['enableDefaultAttributesIntegration'](_0x16ccfe),_0x100ad6['registerInlineAttribute'](_0x16ccfe));_0x100ad6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39712b,'FORMAT_FONT_SIZE')),_0x100ad6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39712b,'FORMAT_FONT_FAMILY')),_0x100ad6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39712b,'FORMAT_FONT_COLOR')),_0x100ad6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39712b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23af78=this['editor'],_0x442e15=_0x23af78['locale'];_0x23af78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24fef7=>{const _0x1cefa7=_0x442e15['t'];if('formatInline'!=_0x24fef7['type'])return;const {data:_0x2ec4f7}=_0x24fef7;if(null!=_0x2ec4f7){if('fontSize'==_0x2ec4f7['commandName']){const _0x2f26ee=_0x2ec4f7['commandParams'][0x0]['value'];if(_0x2f26ee){const _0x27e803=_0x1cefa7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x396b51=>_0x396b51['model']==_0x2f26ee)['title'])['toLowerCase']();return{'type':'format','content':o(_0x442e15,'*Set\x20font\x20size:*\x20%0',_0x27e803)};}return{'type':'format','content':o(_0x442e15,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2ec4f7['commandName']){const _0x123985=_0x2ec4f7['commandParams'][0x0]['value'];return _0x123985?{'type':'format','content':o(_0x442e15,'*Set\x20font\x20family:*\x20%0',_0x123985)}:{'type':'format','content':o(_0x442e15,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2ec4f7['commandName']){const _0x581978=_0x2ec4f7['commandParams'][0x0]['value'];if(_0x581978){const _0x20e9a7=_0x5d10c7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3affe2=>_0x3affe2['model']==_0x581978);let _0x239129=_0x581978,_0x53d9a9='';return _0x20e9a7&&(_0x239129=_0x20e9a7['label'],_0x53d9a9=_0x1cefa7(_0x239129)['toLowerCase']()),{'type':'format','content':o(_0x442e15,'*Set\x20font\x20color:*\x20%0',_0x53d9a9)['trim'](),'color':{'value':_0x581978,'title':_0x53d9a9||_0x239129}};}return{'type':'format','content':o(_0x442e15,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2ec4f7['commandName']){const _0x34a905=_0x2ec4f7['commandParams'][0x0]['value'];if(_0x34a905){const _0xf7d5fe=_0x5d10c7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f29bc=>_0x1f29bc['model']==_0x34a905);let _0x2a0812=_0x34a905,_0x2a8bc7='';return _0xf7d5fe&&(_0x2a0812=_0xf7d5fe['label'],_0x2a8bc7=_0x1cefa7(_0x2a0812)['toLowerCase']()),{'type':'format','content':o(_0x442e15,'*Set\x20font\x20background\x20color:*\x20%0',_0x2a8bc7)['trim'](),'color':{'value':_0x34a905,'title':_0x2a8bc7||_0x2a0812}};}return{'type':'format','content':o(_0x442e15,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1ec07f{['afterInit'](){const _0x221710=this['editor'],_0x5eef50=_0x221710['plugins']['get']('TrackChangesEditing'),_0x5f4ddf=_0x221710['commands']['get']('copyFormat'),_0x5b0523=_0x221710['commands']['get']('pasteFormat');_0x5f4ddf&&_0x5b0523&&(_0x5eef50['enableDefaultAttributesIntegration']('pasteFormat'),_0x5eef50['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x129c64=this['editor'],_0x520937=_0x129c64['locale'];_0x129c64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1658a5=>{if('formatBlock'!=_0x1658a5['type']&&'formatInline'!=_0x1658a5['type'])return;const {data:_0x3d7bdd}=_0x1658a5;if(_0x3d7bdd&&'pasteFormat'===_0x3d7bdd['commandName']){const _0x13826c=[],_0x5ecd7e=_0x3d7bdd['commandParams'][0x0];for(const [_0x47f85c,_0x23f39e]of Object['entries'](_0x5ecd7e))_0x13826c['push'](so(_0x129c64,_0x47f85c,_0x23f39e));return _0x13826c['length']?{'type':'format','content':o(_0x520937,'*Set\x20format\x20to:*\x20%0',_0x13826c['join'](',\x20'))}:{'type':'format','content':o(_0x520937,'*Remove\x20all\x20formatting*')};}});}}function so(_0x54b708,_0x46fa3a,_0x3fc89e){const _0x288548=_0x54b708['locale']['t'],_0x4e9aa8=_0x46fa3a['split'](/(?=[A-Z])/)['join']('\x20'),_0x55cb9d=_0x288548(_0x4e9aa8['charAt'](0x0)['toUpperCase']()+_0x4e9aa8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3fc89e)return _0x55cb9d;if('fontColor'===_0x46fa3a||'fontBackgroundColor'===_0x46fa3a){const _0x6a8e30=_0x5d10c7(_0x54b708['config']['get']('fontColor.colors'))['find'](_0x5596b6=>_0x5596b6['model']==_0x3fc89e);return _0x55cb9d+'\x20('+(_0x6a8e30?_0x288548(_0x6a8e30['label'])['toLowerCase']():_0x3fc89e)+')';}if('fontSize'===_0x46fa3a&&isNaN(parseFloat(_0x3fc89e))){const _0x4a8f93=_0x54b708['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x54b708['config']['get']('fontSize.options'))['find'](_0x27f31e=>_0x27f31e['model']==_0x3fc89e);return _0x55cb9d+'\x20('+(_0x4a8f93?_0x288548(_0x4a8f93['title'])['toLowerCase']():_0x3fc89e)+')';}return _0x55cb9d+'\x20('+_0x3fc89e+')';}class Y extends _0x1ec07f{['_headingOptions'];['afterInit'](){const _0x584c7c=this['editor'];if(!_0x584c7c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x584c7c['config']['get']('heading.options');const _0x160e9e=_0x584c7c['locale'],_0x5e019a=_0x584c7c['plugins']['get']('TrackChangesEditing');_0x5e019a['enableDefaultAttributesIntegration']('heading');for(const _0x270b56 of this['_headingOptions'])'paragraph'!=_0x270b56['model']&&_0x5e019a['descriptionFactory']['registerElementLabel'](_0x270b56['model'],_0xc8f8ad=>{const _0x5a7fb1=this['_getHeadingLevel'](_0x270b56['model']);return null!==_0x5a7fb1?_0x2b0f8e(_0xc8f8ad,_0x5a7fb1):_0x53fa2b(_0xc8f8ad,_0x270b56['title']);});function _0x2b0f8e(_0x23fed2,_0x2d08e3){return o(_0x160e9e,'ELEMENT_HEADING',[_0x23fed2,_0x2d08e3]);}function _0x53fa2b(_0x119be8,_0x5dce5e){return o(_0x160e9e,'ELEMENT_HEADING_CUSTOM',[_0x119be8,_0x5dce5e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e1bc=this['editor'],_0x40cf60=_0x58e1bc['locale'];function _0x2d60a0(_0x239a7a,_0x247d0b){return o(_0x40cf60,'ELEMENT_HEADING_CUSTOM',[_0x239a7a,_0x247d0b]);}_0x58e1bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42d542=>{if('formatBlock'!=_0x42d542['type'])return;const {data:_0x14e7a1}=_0x42d542;if(_0x14e7a1&&'heading'==_0x14e7a1['commandName']){const _0x146cb1=_0x14e7a1['commandParams'][0x0]['value'],_0x11f5e6=this['_getHeadingLevel'](_0x146cb1);if(null!==_0x11f5e6)return{'type':'format','content':o(_0x40cf60,'*Change\x20to:*\x20%0',(_0x11dc43=0x1,_0x3a0703=_0x11f5e6,o(_0x40cf60,'ELEMENT_HEADING',[_0x11dc43,_0x3a0703])))};const _0x4421f4=this['_headingOptions']['find'](_0x3544ee=>_0x3544ee['model']===_0x146cb1)['title'];return{'type':'format','content':o(_0x40cf60,'*Change\x20to:*\x20%0',_0x2d60a0(0x1,_0x4421f4))};}var _0x11dc43,_0x3a0703;});}['_getHeadingLevel'](_0x11fa4c){const _0x254392=_0x11fa4c['match'](/^heading(\d+)/);if(_0x254392)return _0x254392[0x1];const _0x434731=this['_headingOptions']?.['find'](_0x1c9014=>_0x1c9014['model']==_0x11fa4c);if(_0x434731&&_0x434731['view']){const _0x288740=_0x434731['view'],_0x32d32c=(_0x288740['name']??_0x288740)['match'](/^h(\d+)/);if(_0x32d32c)return _0x32d32c[0x1];}return null;}}class Z extends _0x1ec07f{['afterInit'](){const _0x17b9b6=this['editor'];if(!_0x17b9b6['plugins']['has']('HighlightEditing'))return;const _0x2fdd1c=_0x17b9b6['plugins']['get']('TrackChangesEditing'),_0x74c412=_0x17b9b6['locale'];_0x2fdd1c['enableDefaultAttributesIntegration']('highlight'),_0x2fdd1c['registerInlineAttribute']('highlight'),_0x2fdd1c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x74c412,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f1cf9=this['editor'],_0x33a9f5=_0x5f1cf9['locale'];_0x5f1cf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da0af=>{if('formatInline'!=_0x5da0af['type'])return;const {data:_0x51cfc6}=_0x5da0af;if(_0x51cfc6&&'highlight'==_0x51cfc6['commandName']){const _0x487865=_0x33a9f5['t'],_0x57626b=_0x51cfc6['commandParams'][0x0]['value'];if(_0x57626b){const _0x944233=_0x5f1cf9['config']['get']('highlight.options')['find'](_0x5d04ae=>_0x5d04ae['model']==_0x57626b),_0x17eb66=_0x487865(_0x944233['title'])['toLowerCase']();return{'type':'format','content':o(_0x33a9f5,'*Set\x20highlight:*\x20%0',_0x17eb66),'color':{'value':_0x944233['color'],'title':_0x944233['title']}};}return{'type':'format','content':o(_0x33a9f5,'*Remove\x20highlight*',o(_0x33a9f5,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1ec07f{['afterInit'](){const _0x5e7726=this['editor'];if(!_0x5e7726['plugins']['has']('HorizontalLineEditing'))return;_0x5e7726['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2f959e=_0x5e7726['plugins']['get']('TrackChangesEditing'),_0x7e4faa=_0x5e7726['locale'];_0x2f959e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2426cb=>o(_0x7e4faa,'ELEMENT_HORIZONTAL_LINE',_0x2426cb)),_0x5e7726['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1a3127,{writer:_0x388533,options:_0x4aa0dd})=>{if(!_0x4aa0dd['showSuggestionHighlights'])return null;const _0x506875=_0x388533['createContainerElement']('div'),_0x3fff40=_0x388533['createEmptyElement']('hr');return _0x388533['addClass']('ck-horizontal-line',_0x506875),_0x388533['insert'](_0x388533['createPositionAt'](_0x506875,0x0),_0x3fff40),_0x506875;},'converterPriority':'high'});}}class et extends _0x1ec07f{['afterInit'](){const _0x71bb93=this['editor'];if(!_0x71bb93['plugins']['has']('HtmlEmbed'))return;const _0x45cd30=_0x71bb93['plugins']['get']('TrackChangesEditing'),_0x5ee5e9=_0x71bb93['locale'];_0x45cd30['descriptionFactory']['registerElementLabel']('rawHtml',_0x543541=>o(_0x5ee5e9,'ELEMENT_HTML_EMBED',_0x543541)),_0x45cd30['enableDefaultAttributesIntegration']('htmlEmbed'),_0x45cd30['registerBlockAttribute']('value'),_0x45cd30['descriptionFactory']['registerDescriptionCallback'](_0x25c094=>{if('attribute'!=_0x25c094['type'])return;const {data:_0x51d6e1}=_0x25c094;if(_0x51d6e1&&'value'==_0x51d6e1['key']&&_0x25c094['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10e90f=o(_0x5ee5e9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5ee5e9,'*Change\x20%0\x20content*',_0x10e90f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c2f79=this['editor'],_0x2590a5=_0x6c2f79['locale'];_0x6c2f79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x263138=>{if('formatBlock'!=_0x263138['type'])return;const {data:_0x174e7b}=_0x263138;if(_0x174e7b&&'htmlEmbed'==_0x174e7b['commandName']){const _0x4381e2=o(_0x2590a5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2590a5,'*Change\x20%0\x20content*',_0x4381e2)};}});}}class it extends _0x1ec07f{['afterInit'](){const _0x13ac2c=this['editor'];if(!_0x13ac2c['plugins']['has']('ImageEditing'))return;const _0x317e0d=_0x13ac2c['plugins']['get']('TrackChangesEditing'),_0x550295=_0x13ac2c['plugins']['get']('ImageUtils'),_0x16fb27=_0x13ac2c['locale'];_0x317e0d['enableCommand']('insertImage'),_0x317e0d['descriptionFactory']['registerElementLabel']('imageBlock',_0x18aea4=>o(_0x16fb27,'ELEMENT_IMAGE',_0x18aea4)),_0x317e0d['descriptionFactory']['registerElementLabel']('imageInline',_0xaa28ff=>o(_0x16fb27,'ELEMENT_INLINE_IMAGE',_0xaa28ff)),_0x317e0d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x16fb27,'ELEMENT_CAPTION')),_0x13ac2c['plugins']['has']('ImageUploadEditing')&&_0x317e0d['enableCommand']('uploadImage'),_0x13ac2c['plugins']['has']('ImageBlockEditing')&&_0x13ac2c['plugins']['has']('ImageInlineEditing')&&(_0x317e0d['enableCommand']('imageTypeInline',(_0x9283aa,_0x447199)=>{const _0x5054c0=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']);_0x13ac2c['model']['change'](()=>{_0x317e0d['markBlockFormat'](_0x5054c0,{'commandName':'imageTypeInline','commandParams':[_0x447199]},[],'convertBlockImageToInline');});}),_0x317e0d['enableCommand']('imageTypeBlock',(_0x183b95,_0x4aef89)=>{_0x13ac2c['model']['change'](_0x57bf5c=>{let _0x3c5fc5=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']),_0x47b243=_0x57bf5c['createRangeOn'](_0x3c5fc5);const _0x88813d=_0x2e0135['fromPosition'](_0x47b243['start'],'toPrevious'),_0x1c1c37=_0x2e0135['fromPosition'](_0x47b243['end'],'toNext');_0x317e0d['forceDefaultExecution'](()=>_0x183b95(_0x4aef89)),_0x3c5fc5=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']),_0x47b243=_0x57bf5c['createRangeOn'](_0x3c5fc5);const _0x3b602d=_0x57bf5c['createRange'](_0x88813d,_0x1c1c37);_0x88813d['detach'](),_0x1c1c37['detach'](),_0x317e0d['markBlockFormat'](_0x3c5fc5,{'commandName':'imageTypeInline','commandParams':[_0x4aef89]},[],'convertInlineImageToBlock'),_0x3b602d['start']['isBefore'](_0x47b243['start'])&&_0x317e0d['markInsertion'](_0x57bf5c['createRange'](_0x3b602d['start'],_0x47b243['start']),'convertInlineImageToBlock'),_0x47b243['end']['isBefore'](_0x3b602d['end'])&&_0x317e0d['markInsertion'](_0x57bf5c['createRange'](_0x47b243['end'],_0x3b602d['end']),'convertInlineImageToBlock');});}),_0x317e0d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x317e0d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x317e0d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x317e0d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x317e0d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x317e0d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2af9a9])=>{const _0x2f235c=_0x317e0d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x384e08=_0x2af9a9['start'],_0x39f1a1=_0x2af9a9['end'];const _0x58e0a8=_0x13ac2c['model']['schema']['getNearestSelectionRange'](_0x384e08,'backward'),_0x55c22b=_0x13ac2c['model']['schema']['getNearestSelectionRange'](_0x39f1a1,'forward');_0x58e0a8['isCollapsed']&&(_0x384e08=_0x58e0a8['start']),_0x55c22b['isCollapsed']&&(_0x39f1a1=_0x55c22b['end']),_0x2f235c([_0x13ac2c['model']['createRange'](_0x384e08,_0x39f1a1)]);}),_0x317e0d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2583ad),_0x317e0d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2583ad)),_0x13ac2c['plugins']['has']('ImageCaptionEditing')&&(_0x317e0d['enableCommand']('toggleImageCaption',(_0x28c1fb,_0x4e86da)=>{const _0x22d150=_0x13ac2c['plugins']['get']('ImageCaptionUtils');let _0x19924b=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']),_0xa1945d=_0x22d150['getCaptionFromImageModelElement'](_0x19924b);_0x13ac2c['model']['change'](()=>{if(_0xa1945d)return void _0x317e0d['markDeletion'](_0x13ac2c['model']['createRangeOn'](_0xa1945d));const _0x28cc55=_0x550295['isBlockImage'](_0x19924b);_0x28c1fb(_0x4e86da),_0x19924b=_0x550295['getClosestSelectedImageElement'](_0x13ac2c['model']['document']['selection']),_0xa1945d=_0x22d150['getCaptionFromImageModelElement'](_0x19924b),_0x317e0d['markInsertion'](_0x13ac2c['model']['createRangeOn'](_0xa1945d),_0x28cc55?null:'imageCaption');});}),_0x317e0d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2583ad));const _0x396d94=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25ecb5(_0x540e4d,_0x268659){const _0x117377=_0x396d94['findIndex'](({type:_0x3b4fe0,subType:_0x3a8551})=>_0x540e4d['type']==_0x3b4fe0&&_0x540e4d['subType']==_0x3a8551),_0x1b7946=_0x396d94['findIndex'](({type:_0x5bc40e,subType:_0x2d4dee})=>_0x268659['type']==_0x5bc40e&&_0x268659['subType']==_0x2d4dee);if(_0x117377<0x0||_0x1b7946<0x0)return!0x1;const _0x2d3258=_0x540e4d['getFirstRange'](),_0x159742=_0x268659['getFirstRange']();if((0x0==_0x117377||0x1==_0x117377)&&0x2==_0x1b7946&&_0x2d3258['isIntersecting'](_0x159742))return!0x0;if(0x2==_0x117377&&0x3==_0x1b7946){const _0x62550c=_0x317e0d['_findSuggestions'](_0x2d3258,'insertion')['filter'](({suggestion:_0x129137,meta:_0x56e443})=>_0x56e443['isOwn']&&'convertInlineImageToBlock'==_0x129137['subType']);if(_0x62550c['length']>0x1&&_0x159742['end']['isEqual'](_0x2d3258['start']))return!0x0;if(0x1==_0x62550c['length']&&(_0x2d3258['start']['isEqual'](_0x159742['end'])||_0x2d3258['end']['isEqual'](_0x159742['start'])))return!0x0;}if(0x3==_0x117377&&0x3==_0x1b7946&&_0x2d3258['start']['isBefore'](_0x159742['start'])){const _0x46bbeb=_0x2d3258['end']['nodeAfter'],_0x14dc01=_0x159742['start']['nodeBefore'];return _0x550295['isBlockImage'](_0x46bbeb)&&_0x46bbeb===_0x14dc01;}return!0x1;}function _0x2583ad(_0x54c436,_0x5a91e1){return _0x25ecb5(_0x54c436,_0x5a91e1)?[_0x54c436,_0x5a91e1]:_0x25ecb5(_0x5a91e1,_0x54c436)?[_0x5a91e1,_0x54c436]:null;}_0x13ac2c['plugins']['has']('ImageResize')&&(_0x317e0d['enableDefaultAttributesIntegration']('resizeImage'),_0x317e0d['registerBlockAttribute']('resizedWidth'),_0x317e0d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x16fb27,'FORMAT_IMAGE_SIZE'))),_0x13ac2c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x317e0d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x317e0d['registerBlockAttribute']('alt')),_0x317e0d['descriptionFactory']['registerDescriptionCallback'](_0x3ee026=>{if(!!_0x396d94['find'](({type:_0x475211,subType:_0x3f37eb})=>_0x3ee026['type']==_0x475211&&_0x3ee026['subType']==_0x3f37eb))return _0x3ee026['previous']?{}:void 0x0;}),_0x317e0d['descriptionFactory']['registerDescriptionCallback'](_0x54b725=>{if('insertion'==_0x54b725['type']||'deletion'==_0x54b725['type']){const _0x1d6a50=_0x54b725['getContainedElement']();if(_0x1d6a50&&_0x1d6a50['is']('element','caption'))return{'type':'insertion'==_0x54b725['type']?'addObject':'removeObject','element':_0x1d6a50,'quantity':0x1};}}),_0x317e0d['descriptionFactory']['registerDescriptionCallback'](_0x21752d=>'formatBlock'==_0x21752d['type']&&'convertInlineImageToBlock'==_0x21752d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x21752d['type']&&'convertBlockImageToInline'==_0x21752d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x317e0d['descriptionFactory']['registerDescriptionCallback'](_0x5e98cd=>{if('attribute'!=_0x5e98cd['type'])return;const {data:_0xdec972}=_0x5e98cd;if(!_0xdec972||'alt'!=_0xdec972['key'])return;const _0x58bc19=_0xdec972['newValue'];return _0x58bc19?{'type':'format','content':o(_0x16fb27,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x58bc19+'\x22')}:{'type':'format','content':o(_0x16fb27,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cb4ec=this['editor'],_0x88787e=_0x1cb4ec['locale'];_0x1cb4ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f685a=>{if('formatBlock'!=_0x4f685a['type']&&'formatInline'!=_0x4f685a['type'])return;const {data:_0x4861f4}=_0x4f685a;if(_0x4861f4){if('imageTextAlternative'==_0x4861f4['commandName']){const _0x50212a=_0x4861f4['commandParams'][0x0]['newValue'];return _0x50212a?{'type':'format','content':o(_0x88787e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50212a+'\x22')}:{'type':'format','content':o(_0x88787e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4861f4['commandName']){const _0x12bb47=_0x4861f4['commandParams'][0x0]['width'];return _0x12bb47?{'type':'format','content':o(_0x88787e,'*Set\x20image\x20width:*\x20%0',_0x12bb47)}:{'type':'format','content':o(_0x88787e,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x13dc4c=this['editor']['locale'],_0x4a1733=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a1733['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4a1733['registerBlockAttribute']('src'),_0x4a1733['descriptionFactory']['registerDescriptionCallback'](_0x3df73b=>{if('attribute'!=_0x3df73b['type'])return;const {data:_0x1bc757}=_0x3df73b;return _0x1bc757&&'src'==_0x1bc757['key']?_0x1bc757['newValue']&&_0x1bc757['oldValue']?{'type':'format','content':o(_0x13dc4c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48c891=this['editor']['plugins']['get']('TrackChangesEditing');_0x48c891['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x48c891['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48c891['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x48c891['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3839ef=this['editor'],_0xac6821=_0x3839ef['locale'];_0x3839ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58c19e=>{if('formatBlock'!=_0x58c19e['type']&&'formatInline'!=_0x58c19e['type'])return;const {data:_0x94a409}=_0x58c19e;if(!_0x94a409||'replaceImageSource'!=_0x94a409['commandName'])return;return{'type':'format','content':o(_0xac6821,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1ec07f{['afterInit'](){const _0x63c644=this['editor'];if(!_0x63c644['plugins']['has']('ImageStyleEditing'))return;const _0x223eb2=_0x63c644['plugins']['get']('TrackChangesEditing'),_0x4ddc85=_0x63c644['plugins']['get']('ImageUtils'),_0x47bcda={};_0x223eb2['enableCommand']('imageStyle',(_0x206376,_0x875a1d)=>{const _0x584732=_0x63c644['plugins']['get']('Users')['me'],_0x80a84a=_0x63c644['commands']['get']('imageStyle');let _0x5ac1f9=_0x4ddc85['getClosestSelectedImageElement'](_0x63c644['model']['document']['selection']),_0x12c16b=_0x63c644['model']['createRangeOn'](_0x5ac1f9),_0x4ca07b=_0x80a84a['value'];if(_0x4ca07b==_0x875a1d['value'])return;const _0x3f87e2={'commandName':'imageStyle','commandParams':[_0x875a1d],'formatGroupId':_0x280966()};_0x63c644['model']['change'](()=>{if(_0x223eb2['getSuggestions']()['filter'](_0x36fcfa=>_0x36fcfa['isInContent']&&_0x584732==_0x36fcfa['author']&&('formatBlock'==_0x36fcfa['type']||'formatInline'==_0x36fcfa['type'])&&('imageStylePreApply'==_0x36fcfa['subType']||'imageStylePostApply'==_0x36fcfa['subType'])&&_0x36fcfa['getFirstRange']()['isEqual'](_0x12c16b))['forEach'](_0x350065=>_0x223eb2['discardSuggestion'](_0x350065['head'])),_0x5ac1f9=_0x4ddc85['getClosestSelectedImageElement'](_0x63c644['model']['document']['selection']),_0x12c16b=_0x63c644['model']['createRangeOn'](_0x5ac1f9),_0x80a84a['refresh'](),_0x63c644['commands']['get']('imageTypeInline')['refresh'](),_0x63c644['commands']['get']('imageTypeBlock')['refresh'](),_0x4ca07b=_0x80a84a['value'],_0x4ca07b!=_0x875a1d['value'])return _0x4ddc85['isInlineImage'](_0x5ac1f9)&&_0x80a84a['shouldConvertImageType'](_0x875a1d['value'],_0x5ac1f9)?(_0x206376({..._0x875a1d,'setImageSizes':!0x1}),_0x5ac1f9=_0x4ddc85['getClosestSelectedImageElement'](_0x63c644['model']['document']['selection']),void _0x223eb2['markBlockFormat'](_0x5ac1f9,{..._0x3f87e2,'commandReversedParams':[{'value':_0x4ca07b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ddc85['isBlockImage'](_0x5ac1f9)?_0x223eb2['markBlockFormat'](_0x5ac1f9,_0x3f87e2,[],'imageStylePostApply'):_0x223eb2['markInlineFormat'](_0x12c16b,_0x3f87e2,'imageStylePostApply'));});});for(const _0x4e60ad of _0x63c644['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x47bcda[_0x4e60ad['name']]=_0x4e60ad['title']['toLowerCase']();_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3f71b7])=>{_0x4ddc85['setImageNaturalSizeAttributes'](_0x3f71b7['getContainedElement']());}),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x391a9b,_0x1e776d)=>{_0x223eb2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x391a9b,{'commandName':_0x1e776d['commandName'],'commandParams':_0x1e776d['commandReversedParams']});}),_0x223eb2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1bd8fa,_0xf24082){if(_0x2aab2c(_0x1bd8fa,_0xf24082))return[_0x1bd8fa,_0xf24082];if(_0x2aab2c(_0xf24082,_0x1bd8fa))return[_0xf24082,_0x1bd8fa];return null;});const _0xd84ade=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2aab2c(_0x579f2a,_0x334c6a){const _0x2ed87b=_0xd84ade['findIndex'](({type:_0x167fa2,subType:_0x7d7595})=>_0x579f2a['type']==_0x167fa2&&_0x579f2a['subType']==_0x7d7595),_0x2aab29=_0xd84ade['findIndex'](({type:_0x244fd2,subType:_0x264b35})=>_0x334c6a['type']==_0x244fd2&&_0x334c6a['subType']==_0x264b35);if(_0x2ed87b<0x0||_0x2aab29<0x0)return!0x1;const _0x4a0a64=_0x579f2a['getFirstRange'](),_0x2c7a43=_0x334c6a['getFirstRange']();if((0x0==_0x2ed87b||0x1==_0x2ed87b)&&0x2==_0x2aab29&&_0x4a0a64['isIntersecting'](_0x2c7a43))return!0x0;if(0x2==_0x2ed87b&&0x3==_0x2aab29){const _0x3051d1=_0x223eb2['_findSuggestions'](_0x4a0a64,'insertion')['filter'](({suggestion:_0x27bdff,meta:_0x3d218c})=>_0x3d218c['isOwn']&&'convertInlineImageToBlock'==_0x27bdff['subType']);if(_0x3051d1['length']>0x1&&_0x2c7a43['end']['isEqual'](_0x4a0a64['start']))return!0x0;if(0x1==_0x3051d1['length']&&(_0x4a0a64['start']['isEqual'](_0x2c7a43['end'])||_0x4a0a64['end']['isEqual'](_0x2c7a43['start'])))return!0x0;}if(0x3==_0x2ed87b&&0x3==_0x2aab29&&_0x4a0a64['start']['isBefore'](_0x2c7a43['start'])){const _0x54dd15=_0x4a0a64['end']['nodeAfter'],_0xcaed4c=_0x2c7a43['start']['nodeBefore'];return _0x4ddc85['isBlockImage'](_0x54dd15)&&_0x54dd15===_0xcaed4c;}return!0x1;}_0x63c644['model']['document']['registerPostFixer'](()=>{let _0x5e42ae=!0x1;const _0x4549e0=Array['from'](_0x63c644['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25064b,data:_0x4b0850}of _0x4549e0){const {group:_0x3e3d59,type:_0x190a34,subType:_0x3b79bf,id:_0x115990}=_0x223eb2['_splitMarkerName'](_0x25064b);if('suggestion'==_0x3e3d59&&_0x223eb2['hasSuggestion'](_0x115990)){if('formatBlock'==_0x190a34&&('imageStylePreApply'==_0x3b79bf||'imageStylePostApply'==_0x3b79bf)){const _0x494034=_0x223eb2['getSuggestion'](_0x115990);if(_0x4b0850['newRange']){const _0xfc95c0=_0x494034['getFirstRange']()['getContainedElement']();if(_0x4ddc85['isBlockImage'](_0xfc95c0))continue;_0x223eb2['discardSuggestion'](_0x494034),_0x5e42ae=!0x0;}}if('insertion'==_0x190a34&&'imageCaption'==_0x3b79bf&&!_0x4b0850['newRange']){const _0x1617d0=_0x223eb2['getSuggestion'](_0x115990);_0x1617d0['next']&&_0x1617d0['next']['isInContent']&&(_0x223eb2['discardSuggestion'](_0x1617d0['next']),_0x5e42ae=!0x0);}}}return _0x5e42ae;}),this['_registerLegacyDescription'](_0x47bcda);}['_registerLegacyDescription'](_0x4814d0){const _0x159d80=this['editor'],_0xf9785a=_0x159d80['locale'];_0x159d80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f0470=>{if('formatBlock'!=_0x5f0470['type']&&'formatInline'!=_0x5f0470['type'])return;const {data:_0x5f3263}=_0x5f0470;if(!_0x5f3263||'imageStyle'!=_0x5f3263['commandName'])return;const _0x1bb4c5=_0x5f3263['commandParams'][0x0]['value'];return _0x433920('side'===_0x1bb4c5?o(_0xf9785a,'FORMAT_SIDE_IMAGE'):_0x4814d0[_0x1bb4c5]||_0x1bb4c5);function _0x433920(_0x5036a8){return{'type':'format','content':o(_0xf9785a,'*Format:*\x20%0',_0x5036a8)};}});}}class ot extends _0x1ec07f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xb5d5a3){super(_0xb5d5a3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5309fc=this['editor'],_0x4f96e2=_0x5309fc['commands']['get']('importWord'),_0x378685=_0x5309fc['commands']['get']('trackChanges');_0x4f96e2&&(_0x4f96e2['on']('execute',(_0x30d0e5,[,_0x579855])=>{this['_trackChangesValueDuringImport']=_0x378685['value'],_0x579855['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f96e2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f96e2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x378685['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5309fc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x34c4ca,_0x4485cf){const {suggestions:_0x50a6da}=_0x4485cf,_0x4c7d14=this['editor']['commands']['get']('trackChanges'),_0x3d97ca=_0x4c7d14['value'];this['_trackChangesValueDuringImport']!==_0x3d97ca&&(_0x4c7d14['execute'](),this['_trackChangesExecuted']=!0x0),_0x50a6da&&_0x50a6da['forEach'](({id:_0x2d4f82,type:_0x1f5f31,author:_0x27c36b,created_at:_0x1f4b55})=>{const _0x111b32={'id':_0x2d4f82,'type':_0x1f5f31,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27c36b,'createdAt':_0x1f4b55?new Date(_0x1f4b55):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x111b32);});}}class rt extends _0x1ec07f{['afterInit'](){const _0x46e579=this['editor'],_0x2adaa1=_0x46e579['plugins']['get']('TrackChangesEditing');if(_0x46e579['plugins']['has']('IndentEditing')&&(_0x2adaa1['enableCommand']('indent'),_0x2adaa1['enableCommand']('outdent')),_0x46e579['plugins']['has']('IndentBlock')){for(const _0x40231c of['indentBlock','outdentBlock'])_0x2adaa1['enableDefaultAttributesIntegration'](_0x40231c);}const _0x1cc095=_0x46e579['locale'];_0x2adaa1['registerBlockAttribute']('blockIndent'),_0x2adaa1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1cc095,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eeecc=this['editor'],_0x1f0fb5=_0x2eeecc['locale'],_0x2433dd=_0x2eeecc['plugins']['get']('TrackChangesEditing');_0x2433dd['descriptionFactory']['registerDescriptionCallback'](_0x16da65=>{if('formatBlock'!=_0x16da65['type'])return;const {data:_0x5b654b}=_0x16da65;if(!_0x5b654b)return;if('indentBlock'!=_0x5b654b['commandName']&&'outdentBlock'!=_0x5b654b['commandName'])return;const _0x3ab8f9=_0x16da65['getItems']()[0x0],_0xb1da37=_0x2433dd['descriptionFactory']['getItemLabel'](_0x3ab8f9);return'indentBlock'==_0x5b654b['commandName']?{'type':'format','content':o(_0x1f0fb5,'*Indent:*\x20%0',_0xb1da37)}:'outdentBlock'==_0x5b654b['commandName']?{'type':'format','content':o(_0x1f0fb5,'*Outdent:*\x20%0',_0xb1da37)}:void 0x0;});}}class at extends _0x1ec07f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1ec07f{['afterInit'](){const _0x229aa9=this['editor'];if(!_0x229aa9['plugins']['has']('LinkEditing'))return;const _0x110260=_0x229aa9['plugins']['get']('TrackChangesEditing'),_0x4659cc=_0x229aa9['commands']['get']('link');_0x110260['enableDefaultAttributesIntegration']('link'),_0x110260['enableDefaultAttributesIntegration']('unlink'),_0x110260['registerInlineAttribute']('linkHref');for(const _0x4f4e07 of _0x4659cc['manualDecorators'])_0x110260['registerInlineAttribute'](_0x4f4e07['id']),_0x110260['descriptionFactory']['registerAttributeLabel'](_0x4f4e07['id'],'link\x20('+_0x4f4e07['label']['toLowerCase']()+')');_0x110260['descriptionFactory']['registerDescriptionCallback'](_0x2fcf47=>{if('attribute'!=_0x2fcf47['type'])return;const {data:_0x2a1d5a}=_0x2fcf47;if(!_0x2a1d5a||'linkHref'!=_0x2a1d5a['key'])return;const _0x3d6eb0=_0x2a1d5a['newValue'],_0x4ab5e3=_0x229aa9['locale'];return{'type':'format','content':null==_0x3d6eb0?o(_0x4ab5e3,'*Remove\x20link*'):o(_0x4ab5e3,'*Set\x20link:*\x20%0','\x22'+_0x3d6eb0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49cccc=this['editor'],_0x1d2eaf=_0x49cccc['locale'];_0x49cccc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1df85d=>{if('formatInline'!=_0x1df85d['type'])return;const {data:_0x4efb44}=_0x1df85d;if(_0x4efb44){if('link'==_0x4efb44['commandName']){const _0x4d5fe9=_0x4efb44['commandParams'][0x0];return{'type':'format','content':o(_0x1d2eaf,'*Set\x20link:*\x20%0','\x22'+_0x4d5fe9+'\x22')};}return'unlink'==_0x4efb44['commandName']?{'type':'format','content':o(_0x1d2eaf,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1ec07f{['afterInit'](){const _0x532c9c=this['editor'],_0x4463b5=_0x532c9c['locale'];if(!_0x532c9c['plugins']['has']('LegacyListEditing'))return;const _0x2a1215=_0x532c9c['plugins']['get']('TrackChangesEditing'),_0x4d4573=_0x532c9c['plugins']['has']('LegacyTodoListEditing');function _0x52566c(_0x471cff){return()=>{const _0x440bea=_0x532c9c['model']['document']['selection'],_0x46314e=_0x532c9c['commands']['get'](_0x471cff);if(_0x46314e['value'])return void _0x532c9c['execute']('paragraph',{});const _0x3f6ff8=_0x471cff['slice'](0x0,-0x4),_0x5494eb=function(_0x3be377,_0x54809f,_0x170924){let _0x9959d9=Array['from'](_0x3be377)['filter'](_0x13e55c=>function(_0x4c7c0d,_0x3e05eb){return _0x3e05eb['checkChild'](_0x4c7c0d['parent'],'listItem')&&!_0x3e05eb['isObject'](_0x4c7c0d);}(_0x13e55c,_0x170924));_0x9959d9=_0x9959d9['filter'](_0xb8fe66=>!_0xb8fe66['is']('element','listItem')||_0xb8fe66['getAttribute']('listType')!=_0x54809f);const _0x30feeb=new Set();for(const _0x2e0da1 of _0x9959d9)_0x2e0da1['is']('element','listItem')?_0x30feeb['add'](fe(_0x2e0da1)):_0x30feeb['add'](_0x2e0da1);return Array['from'](_0x30feeb);}(_0x440bea['getSelectedBlocks'](),_0x3f6ff8,_0x532c9c['model']['schema']);_0x532c9c['model']['change'](()=>{for(const _0x5a0cb3 of _0x5494eb)_0x2a1215['markBlockFormat'](_0x5a0cb3,{'commandName':_0x471cff,'commandParams':[{'forceValue':!_0x46314e['value']}],'formatGroupId':'blockName'},ue(_0x5a0cb3));});};}function _0x34492c(_0x4e53a5){return()=>{const _0x4b6473=function(_0x425fb2){let _0x1c3b37=Array['from'](_0x425fb2);const _0x10c8af=_0x1c3b37['findIndex'](_0xdfa707=>'listItem'!=_0xdfa707['name']);return _0x10c8af>-0x1&&(_0x1c3b37=_0x1c3b37['slice'](0x0,_0x10c8af)),_0x1c3b37;}(_0x532c9c['model']['document']['selection']['getSelectedBlocks']()),_0x287773=_0x532c9c['model']['createRange'](_0x532c9c['model']['createPositionAt'](_0x4b6473[0x0],'before'),_0x532c9c['model']['createPositionAt'](_0x4b6473[_0x4b6473['length']-0x1],'end'));_0x532c9c['model']['change'](()=>{_0x2a1215['markBlockFormat'](_0x287773,{'commandName':_0x4e53a5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3237d9){const _0x571590=new Set();for(const _0x5ac3f6 of _0x3237d9){let _0x198cd3=_0x5ac3f6['nextSibling'];for(;_0x198cd3&&_0x198cd3['getAttribute']('listIndent')>_0x5ac3f6['getAttribute']('listIndent');)_0x571590['add'](_0x198cd3),_0x198cd3=_0x198cd3['nextSibling'];}return Array['from'](_0x571590);}(_0x4b6473));});};}_0x2a1215['enableCommand']('numberedList',_0x52566c('numberedList')),_0x2a1215['enableCommand']('bulletedList',_0x52566c('bulletedList')),_0x4d4573&&_0x2a1215['enableCommand']('todoList',_0x52566c('todoList')),_0x2a1215['enableCommand']('indentList',_0x34492c('indentList')),_0x2a1215['enableCommand']('outdentList',_0x34492c('outdentList')),_0x4d4573&&_0x2a1215['enableCommand']('checkTodoList',()=>{const _0x303ae0=_0x532c9c['commands']['get']('checkTodoList'),_0x65600b=Array['from'](_0x303ae0['_selectedElements']);_0x65600b['filter'](_0x4ab273=>_0x4ab273['getAttribute']('todoListChecked')!=_0x303ae0['value']),_0x532c9c['model']['change'](()=>{for(const _0x3ed69d of _0x65600b)_0x2a1215['markBlockFormat'](_0x3ed69d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x303ae0['value']}]});});}),_0x2a1215['descriptionFactory']['registerElementLabel']('listItem',_0x3158b4=>o(_0x4463b5,'ELEMENT_LIST_ITEM',_0x3158b4)),_0x2a1215['descriptionFactory']['registerDescriptionCallback'](_0x403ff7=>{if('formatBlock'!=_0x403ff7['type']&&'formatInline'!=_0x403ff7['type'])return;const {data:_0x5f049b}=_0x403ff7;if(_0x5f049b){if('numberedList'==_0x5f049b['commandName']||'bulletedList'==_0x5f049b['commandName']||'todoList'==_0x5f049b['commandName'])switch(_0x5f049b['commandName']['replace']('List','')){case'bulleted':return _0x388c2b(o(_0x4463b5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x388c2b(o(_0x4463b5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x388c2b(o(_0x4463b5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5f049b['commandName'])return{'type':'format','content':o(_0x4463b5,'*Indent:*\x20%0',o(_0x4463b5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5f049b['commandName'])return{'type':'format','content':o(_0x4463b5,'*Outdent:*\x20%0',o(_0x4463b5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5f049b['commandName'])return _0x5f049b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4463b5,'*Check\x20item*')}:{'type':'format','content':o(_0x4463b5,'*Uncheck\x20item*')};}function _0x388c2b(_0x7c8961){return{'type':'format','content':o(_0x4463b5,'*Change\x20to:*\x20%0',_0x7c8961)};}});}}function fe(_0x4f472c){const _0x2dab8e=_0x4f472c['getAttribute']('listIndent');if(0x0==_0x2dab8e)return _0x4f472c;let _0x5a5735=_0x4f472c;for(;_0x4f472c['previousSibling']&&_0x4f472c['previousSibling']['is']('element','listItem');){const _0x1ca2a6=_0x4f472c['previousSibling']['getAttribute']('listIndent');if(_0x1ca2a6==_0x2dab8e)_0x5a5735=_0x4f472c['previousSibling'];else{if(_0x1ca2a6<_0x2dab8e)break;}_0x4f472c=_0x4f472c['previousSibling'];}return _0x5a5735;}function ue(_0x3e319d){const _0x33b794=[];if(_0x3e319d['is']('element','listItem')&&_0x3e319d['getAttribute']('listIndent')>0x0){let _0x97184=_0x3e319d['nextSibling'];for(;_0x97184&&'listItem'==_0x97184['name']&&_0x97184['getAttribute']('listIndent')==_0x3e319d['getAttribute']('listIndent');)_0x33b794['push'](_0x97184),_0x97184=_0x97184['nextSibling'];}return _0x33b794;}class K extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x301aea=this['editor']['config']['get']('list.properties'),_0x30b1b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x301aea['styles']&&_0x30b1b8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x301aea['reversed']&&_0x30b1b8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x301aea['startIndex']&&_0x30b1b8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30b1b8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xc5f07,_0x2ef3b6={}){const _0x29204c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50ee06=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x29204c['markMultiRangeBlockFormat'](_0x50ee06,{'commandName':'listStyle','commandParams':[{'type':_0x2ef3b6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b2d72,_0x59e8e9={}){const _0x20e14b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x304f66=this['_getSuggestionBlocks'](_0x588e1e=>_0x588e1e['is']('element','listItem')&&'numbered'===_0x588e1e['getAttribute']('listType'));if(_0x304f66['length']<0x1)return;const _0x3f2ceb=_0x304f66['map'](_0x18717f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x18717f,'before'),this['editor']['model']['createPositionAt'](_0x18717f,0x0)));this['editor']['model']['change'](()=>{_0x20e14b['markMultiRangeBlockFormat'](_0x3f2ceb,{'commandName':'listReversed','commandParams':[{'reversed':_0x59e8e9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xe25ff2,_0x15023e={}){const _0x14b074=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ba95=this['_getSuggestionBlocks'](_0x1e0b95=>_0x1e0b95['is']('element','listItem')&&'numbered'===_0x1e0b95['getAttribute']('listType'));if(_0x20ba95['length']<0x1)return;const _0x43f548=_0x20ba95['map'](_0x424adc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x424adc,'before'),this['editor']['model']['createPositionAt'](_0x424adc,0x0)));this['editor']['model']['change'](()=>{_0x14b074['markMultiRangeBlockFormat'](_0x43f548,{'commandName':'listStart','commandParams':[{'startIndex':_0x15023e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x14021d){if('formatBlock'!=_0x14021d['type']&&'formatInline'!=_0x14021d['type'])return;const _0x11940f=this['editor']['locale'],{data:_0x43f50b}=_0x14021d;if(!_0x43f50b)return;let _0x3ccc1c,_0x29d51d;switch(_0x43f50b['commandName']){case'listStyle':_0x3ccc1c='*Change\x20to:*\x20%0',_0x29d51d={'type':'format','content':o(_0x11940f,_0x3ccc1c,o(_0x11940f,this['_getTranslationKeyForListStyle'](_0x43f50b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3ccc1c=_0x43f50b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x29d51d={'type':'format','content':o(_0x11940f,_0x3ccc1c)};break;case'listStart':_0x3ccc1c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x29d51d={'type':'format','content':o(_0x11940f,_0x3ccc1c,_0x43f50b['commandParams'][0x0]['startIndex'])};}return _0x29d51d;}['_getSuggestionBlocksForListStyle'](){const _0x3a6246=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e786a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3e786a[0x0]?.['is']('element','listItem')&&_0x3e786a['unshift'](..._0x3a6246['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3e786a[_0x3e786a['length']-0x1]?.['is']('element','listItem')&&_0x3e786a['push'](..._0x3a6246['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3e786a=[...new Set(_0x3e786a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3e786a=_0x3e786a['filter'](_0x2bb158=>_0x2bb158['is']('element','listItem'))),_0x3e786a;}['_getSuggestionBlocks'](_0x4e2e7d){const _0x5bcba2=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c22e6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4e2e7d)['map'](_0x826e91=>{const _0x401c0f=this['editor']['model']['createPositionAt'](_0x826e91,0x0);return[..._0x5bcba2['getSiblingNodes'](_0x401c0f,'backward'),..._0x5bcba2['getSiblingNodes'](_0x401c0f,'forward')];})['flat']();return _0x2c22e6=[...new Set(_0x2c22e6)],_0x2c22e6;}['_getTranslationKeyForListStyle'](_0x41b825){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41b825)||'default')['toUpperCase']()+'_LIST_'+_0x41b825['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1ec07f{['afterInit'](){const _0x1c6423=this['editor'];if(!_0x1c6423['plugins']['has']('MediaEmbedEditing'))return;const _0x47b928=_0x1c6423['plugins']['get']('TrackChangesEditing'),_0x54836b=_0x1c6423['locale'];_0x47b928['enableCommand']('mediaEmbed'),_0x47b928['descriptionFactory']['registerElementLabel']('media',_0x19e591=>o(_0x54836b,'ELEMENT_MEDIA',_0x19e591)),_0x1c6423['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x17932d,{writer:_0x2b5318,options:_0x46be7a})=>{if(_0x46be7a['showSuggestionHighlights'])return _0x2b5318['createEmptyElement']('div');},'converterPriority':'high'}),_0x1c6423['data']['downcastDispatcher']['on']('attribute:url:media',(_0x34a138,_0x296cb1,_0x27adae)=>{_0x27adae['options']['showSuggestionHighlights']&&_0x34a138['stop']();},{'priority':'high'});}}class gt extends _0x1ec07f{['afterInit'](){const _0x5b3bbe=this['editor'];_0x5b3bbe['plugins']['has']('MentionEditing')&&_0x5b3bbe['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1ec07f{['afterInit'](){const _0x3ad1f1=this['editor'];if(!_0x3ad1f1['commands']['get']('insertMergeField'))return;_0x3ad1f1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0xe43795=_0x3ad1f1['plugins']['get']('TrackChangesEditing'),_0x3d255a=_0x3ad1f1['locale'];_0xe43795['descriptionFactory']['registerElementLabel']('mergeField',_0x1765ec=>o(_0x3d255a,'ELEMENT_MERGE_FIELD',_0x1765ec)),_0xe43795['descriptionFactory']['registerDescriptionCallback'](_0x513805=>{if('insertion'!=_0x513805['type']&&'deletion'!=_0x513805['type'])return;const _0x5a67ed=_0x513805['getContainedElement']();if(null==_0x5a67ed)return;if(!_0x5a67ed['is']('element','mergeField'))return;const _0x2dbb3a=_0x3ad1f1['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5a67ed['getAttribute']('id'));return'insertion'==_0x513805['type']?{'type':'insertion','content':o(_0x3d255a,'*Insert:*\x20%0','\x22'+_0x2dbb3a+'\x22\x20'+o(_0x3d255a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3d255a,'*Remove:*\x20%0','\x22'+_0x2dbb3a+'\x22\x20'+o(_0x3d255a,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x1ec07f{['afterInit'](){const _0x4adcbe=this['editor'],_0x28d116=_0x4adcbe['plugins']['get']('TrackChangesEditing');_0x4adcbe['plugins']['has']('MultiLevelList')&&(_0x28d116['enableDefaultAttributesIntegration']('multiLevelList'),_0x28d116['registerBlockAttribute']('listMarkerStyle'),_0x28d116['descriptionFactory']['registerDescriptionCallback'](_0x462729=>this['handleDescriptions'](_0x462729)));}['handleDescriptions'](_0x48c15c){const _0xf611c6=this['editor']['locale'],{data:_0x3e89ee}=_0x48c15c,_0x229cb7={'type':'format','content':''};if(_0x3e89ee&&'listMarkerStyle'==_0x3e89ee['key']){if(!_0x3e89ee['oldValue'])return{'type':'format','content':o(_0xf611c6,'*Set\x20format:*\x20%0',o(_0xf611c6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e89ee['newValue']+')'};if(!_0x3e89ee['newValue']){let _0x315238=_0x48c15c['head'];for(;_0x315238;){if(_0x315238['data']&&'listType'==_0x315238['data']['key']&&_0x315238['data']['newValue'])return _0x229cb7;_0x315238=_0x315238['next'];}return{'type':'format','content':o(_0xf611c6,'*Remove\x20format:*\x20%0',o(_0xf611c6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e89ee['oldValue']+')'};}}}}class dt extends _0x1ec07f{['afterInit'](){const _0x488044=this['editor'];if(!_0x488044['plugins']['has']('PageBreakEditing'))return;_0x488044['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x29816d=_0x488044['plugins']['get']('TrackChangesEditing'),_0x59cc43=_0x488044['locale'];_0x29816d['descriptionFactory']['registerElementLabel']('pageBreak',_0x32080a=>o(_0x59cc43,'ELEMENT_PAGE_BREAK',_0x32080a));}}class pt extends _0x1ec07f{['afterInit'](){const _0x2a15c0=this['editor'];if(!_0x2a15c0['plugins']['has']('Paragraph'))return;const _0x353abf=_0x2a15c0['locale'],_0x2d14fc=_0x2a15c0['plugins']['get']('TrackChangesEditing');_0x2d14fc['descriptionFactory']['registerElementLabel']('paragraph',_0x59b812=>o(_0x353abf,'ELEMENT_PARAGRAPH',_0x59b812)),_0x2d14fc['enableDefaultAttributesIntegration']('paragraph'),_0x2d14fc['enableCommand']('insertParagraph'),_0x2a15c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2a15c0),{'priority':'highest'}),_0x2a15c0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1bba2e,_0x4f4ed7,_0x494f11)=>{_0x494f11['options']['showSuggestionHighlights']&&nr(_0x2a15c0,{'showActiveMarker':!0x1})(_0x1bba2e,_0x4f4ed7,_0x494f11);},{'priority':'highest'});const _0x5cca15=_0x2d14fc['descriptionFactory'];_0x5cca15['registerDescriptionCallback'](_0x41167d=>{if('insertion'!==_0x41167d['type'])return;const {start:_0x53bafd,end:_0xed9c3f}=_0x41167d['getFirstRange']();if(!_0x53bafd['isTouching'](_0xed9c3f)||!_0x53bafd['nodeAfter'])return;const _0x5b7c59=_0x2a15c0['model']['schema'],_0x24ae0d=_0x53bafd['nodeAfter'];return _0x5b7c59['isBlock'](_0x24ae0d)&&!_0x5b7c59['isLimit'](_0x24ae0d)&&_0x5b7c59['checkChild'](_0x24ae0d,'$text')?{'type':'insertion','content':o(_0x353abf,'*Insert:*\x20%0',_0x5cca15['getItemLabel'](_0x24ae0d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9f8c7=this['editor'],_0x10996d=_0xa9f8c7['locale'];_0xa9f8c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x89ac7=>{if('formatBlock'!=_0x89ac7['type'])return;const {data:_0x20bebf}=_0x89ac7;return _0x20bebf&&'paragraph'==_0x20bebf['commandName']?{'type':'format','content':o(_0x10996d,'*Change\x20to:*\x20%0',o(_0x10996d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x521412,{showActiveMarker:_0x4e0502=!0x0}={}){return(_0x26978b,_0x5bde3f,_0x142db7)=>{const _0x392bd4=_0x521412['plugins']['get']('TrackChangesEditing'),_0x2eb2c2=_0x5bde3f['markerRange']['start'],_0x43e653=_0x5bde3f['markerRange']['end'],_0x2be13f=_0x521412['model']['schema'];if(!_0x2eb2c2['isTouching'](_0x43e653)||!_0x2eb2c2['nodeAfter'])return;const _0x56080e=_0x2eb2c2['nodeAfter'];if(_0x2be13f['isBlock'](_0x56080e)&&!_0x2be13f['isLimit'](_0x56080e)&&_0x2be13f['checkChild'](_0x56080e,'$text')){if(!_0x142db7['consumable']['consume'](_0x5bde3f['markerRange'],_0x26978b['name']))return;const _0x12e4d5=_0x142db7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x446285=_0x142db7['mapper']['toViewPosition'](_0x43e653);_0x4e0502&&_0x392bd4['activeMarkers']['includes'](_0x5bde3f['markerName'])&&_0x142db7['writer']['addClass']('ck-suggestion-marker--active',_0x12e4d5),_0x142db7['writer']['insert'](_0x446285,_0x12e4d5),_0x142db7['mapper']['bindElementToMarker'](_0x12e4d5,_0x5bde3f['markerName']);}};}class kt extends _0x1ec07f{['afterInit'](){const _0x52eae0=this['editor'];if(!_0x52eae0['plugins']['has']('RemoveFormatEditing'))return;_0x52eae0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58dff5=this['editor'];_0x58dff5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46d8a6=>{if('formatBlock'!=_0x46d8a6['type']&&'formatInline'!=_0x46d8a6['type'])return;const {data:_0x56cdfd}=_0x46d8a6;return _0x56cdfd&&'removeFormat'==_0x56cdfd['commandName']?{'type':'format','content':o(_0x58dff5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x1ec07f{['afterInit'](){const _0x47532b=this['editor'];if(!_0x47532b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3404df=_0x47532b['plugins']['get']('TrackChangesEditing');_0x3404df['enableCommand']('goToPreviousRestrictedEditingException'),_0x3404df['enableCommand']('goToNextRestrictedEditingException');const _0x173ad3=_0x47532b['plugins']['get']('RestrictedEditingModeEditing');_0x173ad3['enableCommand']('trackChanges'),_0x173ad3['enableCommand']('acceptSuggestion'),_0x173ad3['enableCommand']('discardSuggestion'),_0x173ad3['enableCommand']('acceptAllSuggestions'),_0x173ad3['enableCommand']('discardAllSuggestions'),_0x173ad3['enableCommand']('acceptSelectedSuggestions'),_0x173ad3['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x1ec07f{static get['requires'](){return[_0x2eff47];}['init'](){const _0x26f6f8=this['editor'],_0x151db8=_0x26f6f8['plugins']['get']('TrackChangesEditing');_0x151db8['enableCommand']('shiftEnter'),_0x26f6f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x26f6f8),{'priority':'high'}),_0x26f6f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x26f6f8),{'priority':'high'}),_0x26f6f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8d0063,_0x260e83,_0x4f3c54)=>{_0x4f3c54['options']['showSuggestionHighlights']&&ce(_0x26f6f8,{'showActiveMarker':!0x1})(_0x8d0063,_0x260e83,_0x4f3c54);}),_0x151db8['descriptionFactory']['registerElementLabel']('softBreak',_0x26755b=>o(_0x26f6f8['locale'],'ELEMENT_LINE_BREAK',_0x26755b));}}function ce(_0x13d1c7,{showActiveMarker:_0x5d1290=!0x0}={}){return(_0x27ec0e,_0x262f1e,_0x3bdd78)=>{const _0x3ab078=_0x13d1c7['plugins']['get']('TrackChangesEditing');if(!_0x3bdd78['consumable']['test'](_0x262f1e['markerRange'],_0x27ec0e['name']))return;const _0x94357c=_0x13d1c7['model'];for(const _0x3e78dc of _0x262f1e['markerRange']['getItems']()){if(!_0x3e78dc['is']('element','softBreak'))continue;const _0x12ce5e='deletion'==_0x262f1e['markerName']['split'](':')[0x1]?'merge':'split',_0x3477aa=_0x3bdd78['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12ce5e}),_0x209e79=_0x3bdd78['mapper']['toViewPosition'](_0x94357c['createPositionBefore'](_0x3e78dc));_0x5d1290&&_0x3ab078['activeMarkers']['includes'](_0x262f1e['markerName'])&&_0x3bdd78['writer']['addClass']('ck-suggestion-marker--active',_0x3477aa),_0x3bdd78['writer']['insert'](_0x209e79,_0x3477aa),_0x3bdd78['mapper']['bindElementToMarker'](_0x3477aa,_0x262f1e['markerName']);}};}class yt extends _0x1ec07f{['afterInit'](){const _0x2cc45d=this['editor'],_0x43c433=_0x2cc45d['model'],_0x2d95d7=_0x2cc45d['locale'];if(!_0x2cc45d['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c8951=_0x2cc45d['plugins']['get']('TrackChangesEditing'),_0x5d55ab='restrictedEditingException',_0x494081=_0x2cc45d['commands']['get'](_0x5d55ab);_0x5c8951['enableCommand'](_0x5d55ab,(_0x5eae6d,_0x43c77b={})=>{const _0x672d26=_0x43c433['document']['selection'];if(_0x672d26['isCollapsed'])return void _0x5eae6d(_0x43c77b);const _0x1f5467=void 0x0!==_0x43c77b['forceValue']?_0x43c77b['forceValue']:!_0x494081['value'];_0x43c433['change'](()=>{const _0x46a1ad=Array['from'](_0x672d26['getRanges']());for(const _0x377479 of _0x46a1ad){const _0x552a80=_0x1f5467?[_0x377479]:io(_0x5d55ab,_0x377479,_0x43c433);for(const _0x394b86 of _0x552a80)_0x5c8951['markInlineFormat'](_0x394b86,{'commandName':_0x5d55ab,'commandParams':[{'forceValue':_0x1f5467}]});}});}),_0x5c8951['descriptionFactory']['registerDescriptionCallback'](_0x593aee=>{if('formatBlock'!=_0x593aee['type']&&'formatInline'!=_0x593aee['type'])return;const {data:_0x1e54e5}=_0x593aee;return _0x1e54e5&&_0x1e54e5['commandName']==_0x5d55ab?_0x1e54e5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d95d7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2d95d7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x1ec07f{['afterInit'](){const _0x28099c=this['editor'];if(!_0x28099c['plugins']['has']('Style')||!_0x28099c['plugins']['has']('DataSchema'))return;const _0x4624d7=_0x28099c['plugins']['get']('TrackChangesEditing'),_0xe8bd2f=_0x28099c['locale'],_0x3b8c7d=_0x28099c['config']['get']('style')||{},_0x45e320=_0x28099c['plugins']['get']('GeneralHtmlSupport'),_0x3df0fe=_0x28099c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x28099c['plugins']['get']('DataSchema'),_0x3b8c7d['definitions']);_0x4624d7['enableDefaultAttributesIntegration']('style');const _0x238219=new Set();for(const _0x3dd526 of _0x3df0fe['block']){const _0x41ae00=_0x45e320['getGhsAttributeNameForElement'](_0x3dd526['element']);_0x238219['add'](_0x41ae00);}const _0x4336ed=new Set();for(const _0x1f0985 of _0x3df0fe['inline']){const _0x2652e5=_0x45e320['getGhsAttributeNameForElement'](_0x1f0985['element']);_0x4336ed['add'](_0x2652e5);for(const _0x51bec3 of _0x1f0985['ghsAttributes'])_0x4336ed['add'](_0x51bec3);}for(const _0x2e9449 of _0x238219)_0x4624d7['registerBlockAttribute'](_0x2e9449),_0x4624d7['descriptionFactory']['registerAttributeLabel'](_0x2e9449,o(_0xe8bd2f,'FORMAT_STYLE'));for(const _0x1d8080 of _0x4336ed)_0x4624d7['registerInlineAttribute'](_0x1d8080),_0x4624d7['descriptionFactory']['registerAttributeLabel'](_0x1d8080,o(_0xe8bd2f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12a4f1=this['editor'],_0xdf56dc=_0x12a4f1['locale'];_0x12a4f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x518b53=>{if('formatBlock'!=_0x518b53['type']&&'formatInline'!=_0x518b53['type'])return;const {data:_0x574cbb}=_0x518b53;return _0x574cbb&&'style'===_0x574cbb['commandName']?_0x574cbb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdf56dc,'*Set\x20format:*\x20%0',_0x574cbb['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xdf56dc,'*Remove\x20format:*\x20%0',_0x574cbb['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x1ec07f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2fe50d){super(_0x2fe50d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x25a891=this['editor'],_0x138cde=_0x25a891['model']['document']['selection'];if(!_0x25a891['plugins']['has']('TableEditing'))return;const _0x17dcc7=_0x25a891['locale'],_0x4bd792=_0x25a891['plugins']['get']('TrackChangesEditing'),_0x6a74fa=_0x25a891['plugins']['get']('TableUtils');_0x4bd792['descriptionFactory']['registerElementLabel']('table',_0x2c24a5=>o(_0x17dcc7,'ELEMENT_TABLE',_0x2c24a5)),this['_setupColumnsRowsFixing'](),_0x4bd792['enableCommand']('insertTable'),_0x4bd792['enableCommand']('selectTableRow'),_0x4bd792['enableCommand']('selectTableColumn');for(const _0x3c3013 of['insertTableRowAbove','insertTableRowBelow']){const _0x470aa1=_0x25a891['commands']['get'](_0x3c3013);_0x4bd792['enableCommand'](_0x3c3013,_0x3d6c3f=>{_0x25a891['model']['change'](_0x30e753=>{_0x3d6c3f();const _0x36d84f='above'===_0x470aa1['order'],_0x5827cc=_0x6a74fa['getSelectionAffectedTableCells'](_0x138cde),_0x2f1348=_0x6a74fa['getRowIndexes'](_0x5827cc),_0x60d454=_0x36d84f?_0x2f1348['first']-0x1:_0x2f1348['last']+0x1,_0x4fead8=_0x5827cc[0x0]['findAncestor']('table'),_0x9828b5=_0x6a74fa['createTableWalker'](_0x4fead8,{'startRow':_0x60d454,'endRow':_0x60d454}),_0x4eedc4=Array['from'](_0x9828b5)['map'](_0x1615e5=>_0x30e753['createRangeOn'](_0x1615e5['cell']));_0x4bd792['markMultiRangeInsertion'](_0x4eedc4,'tableRow');});});}for(const _0x5ad7ab of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ab5f2=_0x25a891['commands']['get'](_0x5ad7ab);_0x4bd792['enableCommand'](_0x5ad7ab,_0x361bc0=>{_0x25a891['model']['change'](_0x14b7f4=>{_0x361bc0();const _0x2485fa='left'===_0x5ab5f2['order'],_0x29cac5=_0x6a74fa['getSelectionAffectedTableCells'](_0x138cde),_0x9f7294=_0x6a74fa['getColumnIndexes'](_0x29cac5),_0x435283=_0x2485fa?_0x9f7294['first']-0x1:_0x9f7294['last']+0x1,_0x58a6d3=_0x29cac5[0x0]['findAncestor']('table'),_0x5536ea=_0x6a74fa['createTableWalker'](_0x58a6d3,{'startRow':0x0,'column':_0x435283,'includeAllSlots':!0x1}),_0x4a615b=Array['from'](_0x5536ea)['map'](_0x5535e1=>_0x14b7f4['createRangeOn'](_0x5535e1['cell']));_0x4bd792['markMultiRangeInsertion'](_0x4a615b,'tableColumn');});});}for(const _0x2ce5c1 of['removeTableRow','removeTableColumn']){const _0xa96da5=_0x2ce5c1['substr'](0xb),_0x4ca56a=_0xa96da5['toLowerCase'](),_0x26bc59=_0x4ca56a['substr'](0x0,0x3)+'span',_0x4be865='table'+_0xa96da5,_0x4fec76='min'+_0xa96da5,_0xf5aca3='max'+_0xa96da5;_0x4bd792['enableCommand'](_0x2ce5c1,()=>{_0x25a891['model']['change'](_0x5d2c98=>{const _0x5d9703=_0x6a74fa['getSelectionAffectedTableCells'](_0x138cde),_0x433ef6=_0x5d9703[0x0]['findAncestor']('table');let _0x205d1e;if('removeTableRow'==_0x2ce5c1){const _0x4831fe=_0x6a74fa['getRowIndexes'](_0x5d9703);_0x205d1e={'startRow':_0x4831fe['first'],'endRow':_0x4831fe['last'],'includeAllSlots':!0x0};}else{const _0x4c9c73=_0x6a74fa['getColumnIndexes'](_0x5d9703);_0x205d1e={'startColumn':_0x4c9c73['first'],'endColumn':_0x4c9c73['last'],'includeAllSlots':!0x0};}const _0x12bcf5=_0x6a74fa['createTableWalker'](_0x433ef6,_0x205d1e),_0x546a39=Array['from'](_0x12bcf5)['map'](({cell:_0x351096})=>_0x351096),_0x2ac43a=Ee(_0x546a39['filter'](_0xe5edc2=>_0xe5edc2['hasAttribute'](_0x26bc59))),_0x5406b4=Ee(_0x546a39['filter'](_0x5b0c66=>!_0x5b0c66['hasAttribute'](_0x26bc59)))['map'](_0x3758db=>_0x5d2c98['createRangeOn'](_0x3758db)),_0x2be2b2=_0x4bd792['markMultiRangeDeletion'](_0x5406b4,_0x4be865);if(_0x2be2b2&&('tableRow'==_0x2be2b2['subType']||'tableColumn'==_0x2be2b2['subType'])){const _0x81bb10=this['_getSuggestionCoords'](_0x2be2b2);for(const _0x3a094b of _0x2ac43a){const _0x2002a3=_0x5d2c98['createRangeOn'](_0x3a094b),_0xfb933d=_0x6a74fa['getCellLocation'](_0x3a094b),_0x3e77ea=_0x3a094b['getAttribute'](_0x26bc59)-0x1,_0x1a742b=_0x81bb10[_0x4fec76],_0x4e41b8=_0x81bb10[_0xf5aca3];_0x1a742b<=_0xfb933d[_0x4ca56a]&&_0xfb933d[_0x4ca56a]+_0x3e77ea<=_0x4e41b8&&_0x2be2b2['addRange'](_0x2002a3);}}});});}function _0x336e6e(_0x219082){const _0x422121=Array['from'](_0x138cde['getRanges']())['map'](_0x38629c=>_0x30fc72['fromRange'](_0x38629c));_0x25a891['model']['change'](_0xb6a0f6=>{const _0x41b7f1=_0xb6a0f6['batch'];_0x219082=_0x219082['filter'](_0xfc9a9c=>'$graveyard'!=_0xfc9a9c['root']['rootName']),_0xb6a0f6['setSelection'](_0x219082),_0x25a891['commands']['get']('removeTableRow')['refresh'](),_0x25a891['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x25a891['model']['enqueueChange'](()=>{_0x25a891['model']['enqueueChange'](_0x41b7f1,_0x7197d8=>{const _0x50d98b=_0x422121['filter'](_0x1786ef=>'$graveyard'!=_0x1786ef['root']['rootName']);_0x50d98b['length']>0x0&&_0x7197d8['setSelection'](_0x50d98b);for(const _0x53fcfe of _0x422121)_0x53fcfe['detach']();});});});}function _0x19eb0f(_0x5ed039){_0x25a891['model']['change'](_0x144ca0=>{const _0x322920=Array['from'](_0x138cde['getRanges']())['map'](_0x4f8685=>_0x30fc72['fromRange'](_0x4f8685)),_0x270951=[];for(const _0x1b485b of _0x5ed039)for(const _0x4f4d18 of _0x1b485b['getItems']({'shallow':!0x0}))_0x270951['push'](_0x4f4d18);for(const _0x3cb7f3 of _0x270951)'$graveyard'!=_0x3cb7f3['root']['rootName']&&(_0x144ca0['setSelection'](_0x144ca0['createPositionAt'](_0x3cb7f3,0x0)),_0x25a891['commands']['get']('removeTableColumn')['refresh'](),_0x25a891['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3f98aa=_0x322920['filter'](_0x23a7f8=>'$graveyard'!=_0x23a7f8['root']['rootName']);_0x3f98aa['length']>0x0&&_0x144ca0['setSelection'](_0x3f98aa);for(const _0x183494 of _0x322920)_0x183494['detach']();});}function _0x2a52ef(_0x2aaeca,_0x45aab7){return _0x45aab7['every'](_0x27c519=>_0x2aaeca['some'](_0x1d9609=>_0x1d9609['end']['isEqual'](_0x27c519['start'])||_0x27c519['end']['isEqual'](_0x1d9609['start'])));}function _0x42e975(_0x1432c3,_0x4e74bf){return!_0x1432c3['some'](_0x1c2c16=>_0x4e74bf['some'](_0x29a5ee=>_0x1c2c16['isIntersecting'](_0x29a5ee)))&&_0x1432c3['some'](_0x50343c=>_0x4e74bf['some'](_0x579b15=>_0x50343c['end']['isTouching'](_0x579b15['start'])));}_0x25a891['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x419043,_0x1446fd,_0x24b560)=>{if(!_0x24b560['options']['showSuggestionHighlights'])return;const _0x367e4a=_0x1446fd['item'];if(!_0x367e4a)return;const _0x14c298=_0x24b560['mapper']['toViewElement'](_0x367e4a);function _0x2d2d75(_0x17cc25){return Array['isArray'](_0x17cc25)?_0x17cc25:[_0x17cc25];}_0x14c298&&'tableCell'===_0x367e4a['name']&&_0x1ccc96(_0x14c298,_0x24b560['writer'],(_0x148ee2,_0x594da6,_0x5b85ae)=>_0x5b85ae['addClass'](_0x2d2d75(_0x594da6['classes']),_0x148ee2),(_0xc17557,_0x119437,_0x1fc7bd)=>_0x1fc7bd['removeClass'](_0x2d2d75(_0x119437['classes']),_0xc17557));},{'priority':'highest'}),_0x4bd792['descriptionFactory']['registerDescriptionCallback'](_0x14e741=>{if('insertion'!=_0x14e741['type']&&'deletion'!=_0x14e741['type'])return;const _0x11f214=_0x14e741['getContainedElement']();if(null!=_0x11f214&&_0x11f214['is']('element','table')){if('insertion'==_0x14e741['type']){const _0x14a326=_0x14e741['getItems']()['filter'](_0x28d887=>_0x28d887['is']('$textProxy'))['map'](_0x5e0c1f=>_0x5e0c1f['data']);if(_0x14a326['length'])return{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x14a326['join']('\x20')+'\x22'))};}if('deletion'==_0x14e741['type']){const _0x3a81cf=_0x14e741['getItems']()['filter'](_0x34a633=>_0x34a633['is']('$textProxy'))['map'](_0x1ccf03=>_0x1ccf03['data']);if(_0x3a81cf['length'])return{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a81cf['join']('\x20')+'\x22'))};}}}),_0x4bd792['descriptionFactory']['registerDescriptionCallback'](_0x3888ef=>{if('tableRow'==_0x3888ef['subType']){const _0xe2d584=_0x3888ef['getItems']()['filter'](_0x355f45=>_0x355f45['is']('$textProxy'))['map'](_0x1f7ed1=>_0x1f7ed1['data']),_0x508062=this['_getSuggestionCoords'](_0x3888ef),_0x55ad92=_0x508062['maxRow']-_0x508062['minRow']+0x1;if('insertion'==_0x3888ef['type'])return _0xe2d584['length']?{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x55ad92,'\x22'+_0xe2d584['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_ROW',_0x55ad92))};if('deletion'==_0x3888ef['type'])return _0xe2d584['length']?{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x55ad92,'\x22'+_0xe2d584['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_ROW',_0x55ad92))};}if('tableColumn'==_0x3888ef['subType']){const _0x4f9102=_0x3888ef['getItems']()['filter'](_0x163fb7=>_0x163fb7['is']('$textProxy'))['map'](_0x2c7ad3=>_0x2c7ad3['data']),_0x73f1a6=this['_getSuggestionCoords'](_0x3888ef),_0x1e4d47=_0x73f1a6['maxColumn']-_0x73f1a6['minColumn']+0x1;if('insertion'==_0x3888ef['type'])return _0x4f9102['length']?{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4d47,'\x22'+_0x4f9102['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x17dcc7,'*Insert:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_COLUMN',_0x1e4d47))};if('deletion'==_0x3888ef['type'])return _0x4f9102['length']?{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4d47,'\x22'+_0x4f9102['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x17dcc7,'*Remove:*\x20%0',o(_0x17dcc7,'ELEMENT_TABLE_COLUMN',_0x1e4d47))};}}),_0x4bd792['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x336e6e),_0x4bd792['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x336e6e),_0x4bd792['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x19eb0f),_0x4bd792['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x19eb0f),_0x4bd792['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2a52ef),_0x4bd792['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2a52ef),_0x4bd792['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x42e975),_0x4bd792['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x42e975);}['_acceptFormatSuggestionCallbackFactory'](){const _0x55b62c=this['editor'],_0x5e7a17=_0x55b62c['model']['document']['selection'];return(_0x5734c6,_0xc9abe4)=>{_0x55b62c['model']['change'](_0x30dbc8=>{const {commandName:_0x89622c,commandParams:_0x52b85d}=_0xc9abe4;let _0x5c6262=_0x5734c6[0x0]['end']['nodeBefore'];_0x52b85d&&_0x52b85d[0x0]&&!0x1===_0x52b85d[0x0]['forceValue']&&(_0x5c6262=_0x5734c6[0x0]['start']['nodeAfter']);const _0xc7027=_0x30dbc8['createRangeIn'](_0x5c6262);if('$graveyard'==_0xc7027['root']['rootName'])return;const _0x4fe72b=Array['from'](_0x5e7a17['getRanges']())['map'](_0x267b1c=>_0x30fc72['fromRange'](_0x267b1c));_0x30dbc8['setSelection'](_0xc7027),_0x55b62c['commands']['get'](_0x89622c)['refresh'](),_0x52b85d['push']({'forceDefaultExecution':!0x0}),_0x55b62c['execute'](_0x89622c,..._0x52b85d);const _0x4170e3=_0x4fe72b['filter'](_0x28b1a4=>'$graveyard'!=_0x28b1a4['root']['rootName']);_0x4170e3['length']>0x0&&_0x30dbc8['setSelection'](_0x4170e3);for(const _0x5af0ff of _0x4fe72b)_0x5af0ff['detach']();});};}['_getCoordsForCells'](_0x460ec7){const _0x5c7236=this['editor']['plugins']['get']('TableUtils');let _0x5df3fc=Number['MAX_SAFE_INTEGER'],_0x36bb97=Number['MIN_SAFE_INTEGER'],_0x24264c=Number['MAX_SAFE_INTEGER'],_0x354f70=Number['MIN_SAFE_INTEGER'];for(const _0x52ee7e of _0x460ec7){if('$graveyard'==_0x52ee7e['root']['rootName'])continue;const {row:_0x4ded43,column:_0x3fac2b}=_0x5c7236['getCellLocation'](_0x52ee7e),_0x3c7d84=_0x52ee7e['hasAttribute']('rowspan')?_0x52ee7e['getAttribute']('rowspan')-0x1:0x0,_0x5977f5=_0x52ee7e['hasAttribute']('colspan')?_0x52ee7e['getAttribute']('colspan')-0x1:0x0;_0x5df3fc=_0x4ded43<_0x5df3fc?_0x4ded43:_0x5df3fc,_0x36bb97=_0x4ded43+_0x3c7d84>_0x36bb97?_0x4ded43+_0x3c7d84:_0x36bb97,_0x24264c=_0x3fac2b<_0x24264c?_0x3fac2b:_0x24264c,_0x354f70=_0x3fac2b+_0x5977f5>_0x354f70?_0x3fac2b+_0x5977f5:_0x354f70;}return{'minRow':_0x5df3fc,'maxRow':_0x36bb97,'minColumn':_0x24264c,'maxColumn':_0x354f70};}['_setupColumnsRowsFixing'](){const _0x23f8b3=this['editor'],_0x5ee9c2=_0x23f8b3['plugins']['get']('TrackChangesEditing'),_0x2c760d=_0x23f8b3['plugins']['get']('TableUtils');_0x23f8b3['model']['document']['on']('change:data',()=>{const _0xecbaa4=Array['from'](_0x23f8b3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51b31e,data:_0x184749}of _0xecbaa4){const {group:_0x12c96f,id:_0x20895b,subType:_0x2ac079}=_0x5ee9c2['_splitMarkerName'](_0x51b31e);if('suggestion'!=_0x12c96f)continue;if(null!=_0x184749['oldRange'])continue;const _0x52e2d1=_0x5ee9c2['getSuggestion'](_0x20895b);this['_tablePostFixingSubtypes']['includes'](_0x2ac079)&&this['_tableSuggestions']['add'](_0x52e2d1);}},{'priority':'low'});const _0x426bd7=(_0x522377,_0x4af3f2)=>{let _0x372a6b=!0x1;const _0x392faa=_0x4af3f2['createRangeOn'](_0x522377),_0x36cfbe=_0x522377['findAncestor']('table'),_0x44e21a=_0x2c760d['getCellLocation'](_0x522377);for(const _0x5000fa of this['_tableSuggestions']){const _0x2614ff=_0x5000fa['subType'],_0x2a2ae7=_0x2614ff['startsWith']('tablePaste'),_0x3edf87=_0x2614ff['substr'](_0x2a2ae7?0xa:0x5),_0x335810=_0x3edf87['toLowerCase'](),_0x2912a8=_0x335810['substr'](0x0,0x3)+'span',_0x461025='min'+_0x3edf87,_0x3d4aa3='max'+_0x3edf87;if(!_0x5000fa['isInContent'])continue;if(_0x36cfbe!=_0x5000fa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5000fa['isIntersectingWithRange'](_0x392faa))continue;const _0x71f3bd=_0x522377['hasAttribute'](_0x2912a8)?_0x522377['getAttribute'](_0x2912a8)-0x1:0x0,_0x123bf0=this['_getSuggestionCoords'](_0x5000fa),_0x4778c3=_0x123bf0[_0x461025],_0x4391c4=_0x123bf0[_0x3d4aa3];_0x4778c3<=_0x44e21a[_0x335810]&&_0x44e21a[_0x335810]+_0x71f3bd<=_0x4391c4&&(_0x5000fa['addRange'](_0x392faa),_0x372a6b=!0x0);}return _0x372a6b;};_0x23f8b3['model']['document']['registerPostFixer'](_0x51d23a=>{let _0xcfc7c5=!0x1;for(const _0x232f6d of _0x23f8b3['model']['document']['differ']['getChanges']())if('insert'==_0x232f6d['type']){if('tableRow'==_0x232f6d['name']){for(const _0x99f59 of _0x232f6d['position']['nodeAfter']['getChildren']())_0xcfc7c5=_0xcfc7c5||_0x426bd7(_0x99f59,_0x51d23a);}else'tableCell'==_0x232f6d['name']&&(_0xcfc7c5=_0xcfc7c5||_0x426bd7(_0x232f6d['position']['nodeAfter'],_0x51d23a));}return _0xcfc7c5;});}['_getSuggestionCoords'](_0x1a3cc4){return this['_getCoordsForCells'](_0x1a3cc4['getRanges']()['map'](_0x26c9df=>_0x26c9df['start']['nodeAfter']));}}function Ee(_0x51ff62){return Array['from'](new Set(_0x51ff62)['values']());}class At extends _0x1ec07f{static get['requires'](){return[St];}['afterInit'](){const _0x29f985=this['editor'],_0xfca231=_0x29f985['model']['document']['selection'],_0x1fd73c=_0x29f985['locale'];if(!_0x29f985['plugins']['has']('TableEditing'))return;const _0x584fb0=_0x29f985['plugins']['get']('TrackChangesEditing'),_0x5a4fdd=_0x29f985['plugins']['get']('TableUtils'),_0x23575f=_0x29f985['plugins']['get'](St);_0x23575f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x584fb0['enableCommand']('mergeTableCells',()=>{const _0x253e03=_0x5a4fdd['getSelectionAffectedTableCells'](_0x29f985['model']['document']['selection']);_0x29f985['model']['change'](()=>{_0x584fb0['markMultiRangeBlockFormat'](_0x253e03,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x29f985['commands']['get']('mergeTableCells')['on']('execute',(_0x5ae179,_0x1ff6ae)=>{_0x29f985['commands']['get']('trackChanges')['value']&&(_0x1ff6ae['length']>0x0&&_0x1ff6ae[_0x1ff6ae['length']-0x1]&&_0x1ff6ae[_0x1ff6ae['length']-0x1]['forceDefaultExecution']||_0x584fb0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5ae179['stop']());},{'priority':'highest'});for(const _0x4d99af of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x19806d=_0x29f985['commands']['get'](_0x4d99af);_0x584fb0['enableCommand'](_0x4d99af,()=>{const _0x3cfa11=_0x29f985['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x155e30=>_0x155e30['is']('element','tableCell')),_0x1409e3=_0x19806d['value'];_0x29f985['model']['change'](()=>{_0x584fb0['markMultiRangeBlockFormat']([_0x3cfa11,_0x1409e3],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x304f89 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f2415=_0x29f985['commands']['get'](_0x304f89);_0x584fb0['enableCommand'](_0x304f89,()=>{const _0x147173=_0x5a4fdd['getSelectionAffectedTableCells'](_0x29f985['model']['document']['selection'])[0x0],_0x233c0b=_0x147173['findAncestor']('table'),{column:_0x522809,row:_0x12ca62}=_0x5a4fdd['getCellLocation'](_0x147173);let _0x2c7110=[];if('horizontally'==_0x2f2415['direction']){const _0x48b59f=_0x5a4fdd['createTableWalker'](_0x233c0b,{'startRow':_0x12ca62,'endRow':_0x12ca62,'includeAllSlots':!0x0});_0x2c7110=Array['from'](_0x48b59f)['map'](_0x5c81e3=>_0x5c81e3['cell']);}else{const _0x251c85=_0x5a4fdd['createTableWalker'](_0x233c0b,{'column':_0x522809,'includeAllSlots':!0x0});_0x2c7110=Array['from'](_0x251c85)['map'](_0x156ab3=>_0x156ab3['cell']);}_0x29f985['model']['change'](_0x5c1604=>{_0x584fb0['markBlockFormat'](_0x5c1604['createRangeOn'](_0x147173),{'commandName':_0x304f89,'commandParams':[]},_0x2c7110,_0x304f89);});});}_0x584fb0['descriptionFactory']['registerDescriptionCallback'](_0x5a292d=>{if('formatBlock'!=_0x5a292d['type']&&'formatInline'!=_0x5a292d['type'])return;const {data:_0x10a982}=_0x5a292d;return _0x10a982&&'mergeTableCells'==_0x10a982['commandName']?{'type':'format','content':o(_0x1fd73c,'*Merge\x20cells*')}:void 0x0;}),_0x584fb0['descriptionFactory']['registerDescriptionCallback'](_0x35af3d=>{if('formatBlock'!=_0x35af3d['type']&&'formatInline'!=_0x35af3d['type'])return;const {data:_0x2a70ed}=_0x35af3d;return _0x2a70ed?'splitTableCellVertically'==_0x2a70ed['commandName']?{'type':'format','content':o(_0x1fd73c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a70ed['commandName']?{'type':'format','content':o(_0x1fd73c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5adb11=_0x23575f['_acceptFormatSuggestionCallbackFactory']();for(const _0x471dd8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x584fb0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x471dd8,'accept',_0x5adb11);for(const _0x3dc8c0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x584fb0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3dc8c0,'accept',_0x5adb11);_0x584fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2a0698=>{_0x29f985['model']['change'](_0x3190c5=>{const _0x21df3d=Array['from'](_0xfca231['getRanges']())['map'](_0x465bcf=>_0x30fc72['fromRange'](_0x465bcf));_0x3190c5['setSelection'](_0x2a0698),_0x29f985['commands']['get']('mergeTableCells')['refresh'](),_0x29f985['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3210c6=_0x21df3d['filter'](_0x5502fc=>'$graveyard'!=_0x5502fc['root']['rootName']);_0x3210c6['length']>0x0&&_0x3190c5['setSelection'](_0x3210c6);for(const _0x3e1121 of _0x21df3d)_0x3e1121['detach']();});});for(const _0x5acf43 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4061d0=_0x29f985['commands']['get'](_0x5acf43);_0x4061d0['on']('set:isEnabled',(_0x458aeb,_0x4c45d2,_0x2a85ed)=>{if(_0x2a85ed){const _0x131d25=_0x29f985['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d7a9a=>_0x2d7a9a['is']('element','tableCell'));this['_areMergableCells'](_0x4061d0['value'],_0x131d25)||(_0x458aeb['return']=!0x1,_0x458aeb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x37ff93=this['editor']['commands']['get']('mergeTableCells'),_0x5c1b39=this['editor']['plugins']['get']('TableUtils');if(!_0x37ff93['isEnabled'])return!0x1;const _0x3ff6a6=_0x5c1b39['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5220d8 of _0x3ff6a6)for(const _0x13bec3 of _0x3ff6a6)if(_0x5220d8!=_0x13bec3&&!this['_areMergableCells'](_0x5220d8,_0x13bec3))return!0x1;return!0x0;}['_areMergableCells'](_0x1a12dd,_0xb1d4b2){const _0x1369b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xef1c48=this['editor']['model']['createRangeOn'](_0x1a12dd),_0x2d890e=this['editor']['model']['createRangeOn'](_0xb1d4b2),_0x3ee62d=new Set(),_0x539c1c=new Set();for(const _0xef271c of _0x1369b2['getSuggestions']())if(('insertion'==_0xef271c['type']||'deletion'==_0xef271c['type']||'mergeTableCells'==_0xef271c['subType'])&&_0xef271c['isInContent']){for(const _0x4a5aaf of _0xef271c['getRanges']())_0x4a5aaf['containsRange'](_0xef1c48,!0x0)&&_0x3ee62d['add'](_0xef271c['type']+':'+_0xef271c['author']['id']),_0x4a5aaf['containsRange'](_0x2d890e,!0x0)&&_0x539c1c['add'](_0xef271c['type']+':'+_0xef271c['author']['id']);}if(_0x3ee62d['size']!=_0x539c1c['size'])return!0x1;for(const _0x39ac6f of _0x3ee62d)if(!_0x539c1c['has'](_0x39ac6f))return!0x1;return!0x0;}}class It extends _0x1ec07f{static get['requires'](){return[St];}['afterInit'](){const _0x59ec3f=this['editor'];if(!_0x59ec3f['plugins']['has']('TableEditing'))return;const _0x475157=_0x59ec3f['locale'],_0x3b16d1=_0x59ec3f['plugins']['get']('TrackChangesEditing');_0x3b16d1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3b16d1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3b16d1['registerBlockAttribute']('headingRows'),_0x3b16d1['registerBlockAttribute']('headingColumns'),_0x3b16d1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x475157,'FORMAT_HEADER_ROW')),_0x3b16d1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x475157,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7d4899=this['editor']['plugins']['get']('TrackChangesEditing'),_0x474f80=this['editor']['plugins']['get']('TableUtils'),_0x293272=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x3a7a90({showActiveMarker:_0x4847a1=!0x0,setDataAttribute:_0x153220=!0x0}={}){return(_0x2cbe46,_0x364118,_0x3f01a2)=>{const {type:_0x485c2a,id:_0x13e3c7}=_0x7d4899['_splitMarkerName'](_0x364118['markerName']),_0x55acc2=_0x7d4899['getSuggestion'](_0x13e3c7),_0x1e6ffb=_0x55acc2['data'];if('formatBlock'!=_0x55acc2['type']||!_0x1e6ffb||'setTableColumnHeader'!=_0x1e6ffb['commandName'])return;if(_0x364118['item'])return void _0x2cbe46['stop']();if(!_0x3f01a2['consumable']['consume'](_0x364118['markerRange'],_0x2cbe46['name']))return;const _0x30a56d=_0x364118['markerRange']['start']['nodeAfter'],_0xa4dce2=_0x364118['markerRange']['end']['nodeBefore'],_0x133464=_0x30a56d['parent']['parent'],{column:_0xb0e27b}=_0x474f80['getCellLocation'](_0x30a56d),{column:_0x3cb521}=_0x474f80['getCellLocation'](_0xa4dce2);for(let _0x27e2a0=_0xb0e27b;_0x27e2a0<=_0x3cb521;_0x27e2a0++){const _0x2ad308=_0x474f80['createTableWalker'](_0x133464,{'column':_0x27e2a0,'includeAllSlots':!0x1});for(const _0x50df80 of _0x2ad308){const _0x4d623e=_0x50df80['cell'],_0x19be3d=_0x3f01a2['mapper']['toViewElement'](_0x4d623e);_0x3f01a2['writer']['addClass']('ck-suggestion-marker-'+_0x485c2a,_0x19be3d),_0x153220&&_0x3f01a2['writer']['setAttribute']('data-suggestion',_0x13e3c7,_0x19be3d),_0x3f01a2['mapper']['bindElementToMarker'](_0x19be3d,_0x364118['markerName']),_0x4847a1&&(_0x7d4899['activeMarkers']['includes'](_0x364118['markerName'])?_0x3f01a2['writer']['addClass']('ck-suggestion-marker--active',_0x19be3d):_0x3f01a2['writer']['removeClass']('ck-suggestion-marker--active',_0x19be3d));}}};}_0x7d4899['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x293272),_0x7d4899['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x293272),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3a7a90(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5f1376,_0x5da558,_0x1edd6d)=>{_0x1edd6d['options']['showSuggestionHighlights']&&_0x3a7a90({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5f1376,_0x5da558,_0x1edd6d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3793a5,_0x18a280,_0x421fc2)=>{const {type:_0x3fe587,id:_0x22240c}=_0x7d4899['_splitMarkerName'](_0x18a280['markerName']),_0xbb89e2=_0x7d4899['getSuggestion'](_0x22240c),_0x1e77a2=_0xbb89e2['data'];if('formatBlock'!=_0xbb89e2['type']||!_0x1e77a2||'setTableColumnHeader'!=_0x1e77a2['commandName'])return;const _0x2447ad=_0x421fc2['mapper']['markerNameToElements'](_0x18a280['markerName']);if(_0x2447ad){for(const _0x1c5f19 of _0x2447ad)_0x421fc2['writer']['removeClass']('ck-suggestion-marker-'+_0x3fe587,_0x1c5f19),_0x421fc2['writer']['removeClass']('ck-suggestion-marker--active',_0x1c5f19),_0x421fc2['writer']['removeAttribute']('data-suggestion',_0x1c5f19),_0x421fc2['mapper']['unbindElementFromMarkerName'](_0x1c5f19,_0x18a280['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4226f7=this['editor'],_0x480056=_0x4226f7['locale'];function _0x55a161(_0x2f4693){return{'type':'format','content':o(_0x480056,'*Format:*\x20%0',_0x2f4693)};}_0x4226f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b453f=>{if('formatBlock'!=_0x2b453f['type'])return;const {data:_0x2b0c63}=_0x2b453f;if(_0x2b0c63){if('setTableRowHeader'==_0x2b0c63['commandName']){const _0x1f09b1=_0x2b0c63['commandParams'][0x0]['forceValue'];return _0x55a161(o(_0x480056,_0x1f09b1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2b0c63['commandName']){const _0x407641=_0x2b0c63['commandParams'][0x0]['forceValue'];return _0x55a161(o(_0x480056,_0x407641?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x272c20=>[_0x272c20,null]));class vt extends _0x1ec07f{static get['requires'](){return[St];}['afterInit'](){const _0x512381=this['editor'];if(!_0x512381['plugins']['has']('TableClipboard'))return;const _0x4908c5=_0x512381['plugins']['get']('TrackChangesEditing'),_0xcaad5=_0x512381['plugins']['get']('TableUtils'),_0x5d663f=_0x512381['plugins']['get'](St),_0x31a1de=_0x512381['plugins']['get']('TableClipboard');_0x5d663f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x512381['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x512381['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4b5e82=null;_0x512381['model']['on']('insertContent',(_0x308c57,_0x56bb2c)=>{const [_0x286135,_0x2b341a]=_0x56bb2c,_0x3ba0b0=_0x56bb2c[_0x56bb2c['length']-0x1];_0x3ba0b0&&_0x3ba0b0['forceDefaultExecution']||_0x4908c5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc82d18,_0x4c684a,_0x1df2fc,_0x38af9e,_0x4a74aa){if(_0x4c684a&&!_0x4c684a['is']('documentSelection'))return!0x1;const _0x1d7c7a=_0x4a74aa['getTableIfOnlyTableInContent'](_0xc82d18,_0x1df2fc);if(!_0x1d7c7a||!we(_0x1d7c7a,void 0x0,_0x38af9e))return!0x1;const _0xc94403=_0x38af9e['getSelectionAffectedTableCells'](_0x1df2fc['document']['selection']);if(!_0xc94403['length'])return!0x1;const _0x5b10d7=_0xc94403[0x0]['findAncestor']('table'),_0x318a86=_0x38af9e['getRowIndexes'](_0xc94403),_0x577362=_0x38af9e['getColumnIndexes'](_0xc94403),_0x35c365={'startRow':_0x318a86['first'],'endRow':_0x318a86['last'],'startColumn':_0x577362['first'],'endColumn':_0x577362['last']};return 0x1==_0xc94403['length']&&(_0x35c365['endRow']+=_0x38af9e['getRows'](_0x1d7c7a)-0x1,_0x35c365['endColumn']+=_0x38af9e['getColumns'](_0x1d7c7a)-0x1),we(_0x5b10d7,_0x35c365,_0x38af9e);}(_0x286135,_0x2b341a,_0x512381['model'],_0xcaad5,_0x31a1de)&&(_0x308c57['stop'](),_0x4b5e82={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x512381['model']['change'](()=>{_0x512381['model']['insertContent'](_0x56bb2c[0x0],_0x56bb2c[0x1],_0x56bb2c[0x2],{'forceDefaultExecution':!0x0});const _0x540367=_0x280966(),{rowInsertionRanges:_0x2ce23e,columnInsertionRanges:_0x1bac3c,insertionRanges:_0x4e986f,deletionRanges:_0x2885bf,cells:_0x91fe17}=_0x4b5e82;_0x2ce23e['length']&&_0x4908c5['markMultiRangeInsertion'](_0x2ce23e,'tablePasteRow',{'tablePasteChainId':_0x540367}),_0x1bac3c['length']&&_0x4908c5['markMultiRangeInsertion'](_0x1bac3c,'tablePasteColumn',{'tablePasteChainId':_0x540367}),_0x4e986f['length']&&(_0x4908c5['markMultiRangeInsertion'](_0x4e986f,'tablePaste',{'tablePasteChainId':_0x540367,'skipNestingCheck':!0x0}),_0x4e986f['forEach'](_0xa13e4f=>_0xa13e4f['detach']?.())),_0x2885bf['length']&&(_0x4908c5['markMultiRangeDeletion'](_0x2885bf,'tablePaste',{'tablePasteChainId':_0x540367,'skipNestingCheck':!0x0}),_0x2885bf['forEach'](_0x45cd27=>_0x45cd27['detach']?.()));const _0x9af315=_0x4908c5['markMultiRangeBlockFormat'](_0x91fe17['map'](({element:_0x1777dd})=>_0x1777dd),{'formatGroupId':_0x280966()},[],'tablePasteCell',{'tablePasteChainId':_0x540367});if(_0x9af315){const _0x13dbca=_0x9af315['getMarkers'](),_0x3a3ec5=[];for(const {element:_0x137354,attributes:_0x32d525}of _0x91fe17){if(!_0x32d525)continue;const _0x25eb7a=_0x512381['model']['createRangeOn'](_0x137354),_0x39699f=_0x13dbca['find'](_0x3d8038=>_0x3d8038['getRange']()['isEqual'](_0x25eb7a));_0x39699f&&_0x3a3ec5['push']([_0x39699f['name'],_0x32d525]);}_0x3a3ec5['length']&&_0x9af315['setAttribute']('markerAttributes',Object['fromEntries'](_0x3a3ec5));}_0x4b5e82=null;}));},{'priority':_0x5bbedb['high']+0xa}),_0x512381['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3612d7,_0x225680)=>{const [_0x56323f,_0x7e3668,,_0x359075]=_0x225680;if(!_0x4b5e82)return;_0x3612d7['stop']();const _0x57e6ae=_0x56323f['cell'],_0x3136b3=_0x7e3668,_0x8fc030=Pe(_0x57e6ae),_0x357c75=Pe(_0x3136b3);_0x3612d7['return']=_0x57e6ae;let _0x222aeb=null,_0x4ffbc8=null;if(_0x357c75||_0x8fc030){if(_0x8fc030&&!_0x357c75){_0x359075['remove'](_0x57e6ae['getChild'](0x0));for(const _0x2f4c59 of Array['from'](_0x3136b3['getChildren']()))_0x359075['insert'](_0x2f4c59,_0x57e6ae,'end');const _0xfc19bb=_0x4b5e82['rowInsertionIndexes']['includes'](_0x56323f['row']),_0x85b5a2=_0x4b5e82['columnInsertionIndexes']['includes'](_0x56323f['column']);_0xfc19bb||_0x85b5a2||(_0x222aeb=_0x30fc72['fromRange'](_0x359075['createRangeIn'](_0x57e6ae)));}else _0x357c75&&!_0x8fc030&&(_0x4ffbc8=_0x359075['createRangeIn'](_0x57e6ae));}else{const _0x300ebe=_0x359075['createElement']('tableCellSuggestion'),_0xfcacc4=_0x359075['createElement']('tableCellSuggestion');_0x359075['wrap'](_0x359075['createRangeIn'](_0x57e6ae),_0xfcacc4),_0x359075['insert'](_0x300ebe,_0x57e6ae,0x0);for(const _0x3f0547 of Array['from'](_0x3136b3['getChildren']()))_0x359075['insert'](_0x3f0547,_0x300ebe,'end');_0x222aeb=_0x30fc72['fromRange'](_0x359075['createRangeOn'](_0x300ebe)),_0x4ffbc8=_0x30fc72['fromRange'](_0x359075['createRangeOn'](_0xfcacc4));}const _0xa1d688=Array['from'](_0x3136b3['getAttributes']())['filter'](([_0x417c7c])=>ge['includes'](_0x417c7c));_0x4b5e82['cells']['push']({'element':_0x57e6ae,'attributes':_0xa1d688['length']?Object['fromEntries'](_0xa1d688):null}),_0x222aeb&&_0x4b5e82['insertionRanges']['push'](_0x222aeb),_0x4ffbc8&&_0x4b5e82['deletionRanges']['push'](_0x4ffbc8);},{'priority':'high'}),_0xcaad5['on']('insertColumns',(_0x5b8048,_0x276b46)=>{const [_0x33edce,_0x34d7db={}]=_0x276b46;if(!_0x4b5e82)return;const _0x4f4130=_0x34d7db['at']||0x0,_0x5d5dc4=_0x34d7db['columns']||0x1;_0x4b5e82['columnInsertionIndexes']=new Array(_0x5d5dc4)['fill'](_0x4f4130)['map']((_0x38ed77,_0xc136a)=>_0x38ed77+_0xc136a);for(const {cell:_0xaaa9d7}of _0xcaad5['createTableWalker'](_0x33edce,{'startColumn':_0x4f4130,'endColumn':_0x4f4130+_0x5d5dc4-0x1}))_0x4b5e82['columnInsertionRanges']['push'](_0x512381['model']['createRangeOn'](_0xaaa9d7));},{'priority':'low'}),_0xcaad5['on']('insertRows',(_0x213211,_0x1b13bf)=>{const [_0xa05703,_0x572404={}]=_0x1b13bf;if(!_0x4b5e82)return;const _0x27985c=_0x572404['at']||0x0,_0x369ea9=_0x572404['rows']||0x1;_0x4b5e82['rowInsertionIndexes']=new Array(_0x369ea9)['fill'](_0x27985c)['map']((_0x30a87f,_0x3bf53b)=>_0x30a87f+_0x3bf53b);for(const {cell:_0x38b893}of _0xcaad5['createTableWalker'](_0xa05703,{'startRow':_0x27985c,'endRow':_0x27985c+_0x369ea9-0x1}))_0x4b5e82['rowInsertionRanges']['push'](_0x512381['model']['createRangeOn'](_0x38b893));},{'priority':'low'}),_0x4908c5['descriptionFactory']['registerDescriptionCallback'](_0x39272e=>{if(_0x39272e['subType']&&_0x39272e['subType']['startsWith']('tablePaste'))return _0x39272e['previous']?{}:{'type':'insertion','content':o(_0x512381['locale'],'*Replace\x20table\x20cells*')};});const _0x398029=()=>!0x1;for(const _0x1edf94 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4908c5['_suggestionFactory']['registerCustomCallback']('insertion',_0x1edf94,'join',_0x398029),_0x4908c5['_suggestionFactory']['registerCustomCallback']('deletion',_0x1edf94,'join',_0x398029),_0x4908c5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1edf94,'join',_0x398029);_0x4908c5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x398029),_0x4908c5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xf40c45,_0x4fd7e9,_0x2bbd9e)=>{const _0x5c5d1a=_0xf40c45['map'](_0x1556f9=>_0x1556f9['getContainedElement']())['filter'](_0x295846=>_0x295846),_0xfef9e6=new Map(_0x5c5d1a['map'](_0x56ddd2=>[_0x56ddd2,null]));if(_0x4b5e82){for(const {element:_0x237a73,attributes:_0x21f8f5}of _0x4b5e82['cells'])_0x21f8f5&&_0xfef9e6['set'](_0x237a73,_0x21f8f5);}else{if(_0x2bbd9e&&_0x2bbd9e['markerAttributes'])for(const [_0x328b1b,_0x94dfa6]of Object['entries'](_0x2bbd9e['markerAttributes'])){const _0xb0632=_0x512381['model']['markers']['get'](_0x328b1b),_0x4cb949=_0xb0632?_0xb0632['getRange']()['getContainedElement']():null;_0x4cb949&&_0xfef9e6['set'](_0x4cb949,_0x94dfa6);}}_0x512381['model']['change'](_0xca8b24=>{for(const [_0x2df81c,_0x36424d]of _0xfef9e6)_0xca8b24['setAttributes']({...Ce,..._0x36424d},_0x2df81c);});});const _0x3ded1f=(_0x5ac800,_0x2b34ee)=>{_0x4908c5['_suggestionFactory']['registerCustomCallback'](_0x5ac800,'tablePaste',_0x2b34ee,(_0x483aa5,_0x26ca4f,_0x38c3f6)=>{_0x512381['model']['change'](_0x3004fd=>{const _0x3797d8=[];for(const _0xa1eb2c of _0x483aa5){const _0x51fb9a=_0xa1eb2c['start']['nodeAfter'];_0x51fb9a['is']('element','tableCellSuggestion')&&_0x3797d8['push'](_0x51fb9a);}_0x4908c5['_suggestionFactory']['getSuggestionCallback'](_0x5ac800,null,_0x2b34ee)(_0x483aa5,_0x26ca4f,_0x38c3f6);for(const _0xfc575f of _0x3797d8)'$graveyard'!=_0xfc575f['root']['rootName']&&_0x3004fd['unwrap'](_0xfc575f);});});};_0x3ded1f('insertion','accept'),_0x3ded1f('insertion','discard'),_0x3ded1f('deletion','accept'),_0x3ded1f('deletion','discard'),_0x4908c5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5d477b=>{const _0x2d4b58=_0x5d477b['map'](_0x36345d=>_0x36345d['getContainedElement']()),_0x593f2a=_0x2d4b58[0x0]['findAncestor']('table'),{minRow:_0x7b09d,maxRow:_0x4dbf32}=_0x5d663f['_getCoordsForCells'](_0x2d4b58);_0xcaad5['removeRows'](_0x593f2a,{'at':_0x7b09d,'rows':_0x4dbf32-_0x7b09d+0x1});}),_0x4908c5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x20b5ac=>{const _0xd2f890=_0x20b5ac['map'](_0x47f8d4=>_0x47f8d4['getContainedElement']()),_0x28c98d=_0xd2f890[0x0]['findAncestor']('table'),{minColumn:_0x10df2b,maxColumn:_0x59587a}=_0x5d663f['_getCoordsForCells'](_0xd2f890);_0xcaad5['removeColumns'](_0x28c98d,{'at':_0x10df2b,'columns':_0x59587a-_0x10df2b+0x1});});const _0x23405f=(_0x36dfbe,_0x57460a)=>{if(!_0x57460a['subType']||!_0x57460a['subType']['startsWith']('tablePaste'))return;const _0x43cf49=_0x57460a['attributes']['tablePasteChainId'],_0x35334a=_0x4908c5['getSuggestions']()['filter'](_0x51ab74=>_0x51ab74['isInContent']&&_0x51ab74['attributes']&&_0x51ab74['attributes']['tablePasteChainId']==_0x43cf49);_0x35334a['length']&&_0x57460a['getAllAdjacentSuggestions']()['length']!=_0x35334a['length']&&_0x35334a['reduce']((_0x260821,_0x5fd375)=>(_0x260821['next']=_0x5fd375,_0x5fd375['previous']=_0x260821,_0x5fd375));};function _0x228956(_0x363575,_0x52d7b0=!0x0){const {id:_0x25c3e1}=_0x4908c5['_splitMarkerName'](_0x363575['markerName']),_0x2820f7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x30eb11=_0x4908c5['activeMarkers']['includes'](_0x363575['markerName']);return _0x30eb11&&_0x2820f7['push']('ck-suggestion-marker--active'),{'classes':_0x2820f7,'attributes':{'data-suggestion':_0x25c3e1},'priority':_0x30eb11&&_0x52d7b0?0xbc2:0xbb8};}_0x4908c5['on']('suggestionLoaded',_0x23405f,{'priority':'high'}),_0x4908c5['on']('suggestionUnloaded',_0x23405f,{'priority':'high'}),_0x512381['model']['document']['registerPostFixer'](()=>{let _0x14be64=!0x1;const _0x52a436=Array['from'](_0x512381['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x81e3d3,data:_0xb8d44d}of _0x52a436){const {group:_0x24cab6,type:_0x15df53,id:_0x176c89}=_0x4908c5['_splitMarkerName'](_0x81e3d3);if('suggestion'!=_0x24cab6||'deletion'!=_0x15df53||_0xb8d44d['oldRange'])continue;if(!_0x4908c5['hasSuggestion'](_0x176c89))continue;const _0x1ca8e0=_0x4908c5['getSuggestion'](_0x176c89)['getRanges'](),_0x203f9f=_0x512381['plugins']['get']('Users')['me'];for(const _0x3343cf of _0x4908c5['getSuggestions']()){if(!_0x3343cf['isInContent']||_0x3343cf['author']!=_0x203f9f)continue;if('formatBlock'!=_0x3343cf['type']||'tablePasteCell'!=_0x3343cf['subType'])continue;if(_0x3343cf['getRanges']()['every'](_0x3de612=>_0x1ca8e0['some'](_0x117317=>_0x117317['containsRange'](_0x3de612,!0x0)))){for(const _0x448ea4 of _0x3343cf['getAllAdjacentSuggestions']())_0x448ea4['isInContent']&&(_0x448ea4['discard'](),_0x14be64=!0x0);}}}return _0x14be64;}),_0x512381['model']['document']['registerPostFixer'](_0x43a5ca=>{const _0x9f33f=_0x512381['commands']['get']('redo');if(!_0x9f33f||!_0x9f33f['_createdBatches']['has'](_0x43a5ca['batch']))return!0x1;let _0x553bc3=!0x1;const _0x23a56e=_0x512381['plugins']['get']('Users')['me'],_0x3fd74e=_0x512381['model']['document']['differ']['getChanges'](),_0x2e918a=Array['from'](_0x512381['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x34bf54,data:_0x55d5e6})=>{const {group:_0x45ce2b,subType:_0x42effd,authorId:_0x2cfcad}=_0x4908c5['_splitMarkerName'](_0x34bf54);return'suggestion'==_0x45ce2b&&'tablePaste'==_0x42effd&&_0x2cfcad==_0x23a56e['id']&&!_0x55d5e6['oldRange'];});for(const _0x9cd437 of _0x3fd74e){if('insert'!=_0x9cd437['type']||'tableCellSuggestion'!=_0x9cd437['name']||0x1!=_0x9cd437['length'])continue;const _0x6a26e=_0x43a5ca['createRange'](_0x9cd437['position'],_0x9cd437['position']['getShiftedBy'](0x1));if(!_0x2e918a['find'](({data:_0x4ae3cf})=>_0x4ae3cf['newRange']['isEqual'](_0x6a26e))){for(const {name:_0xc46827,data:_0xae171e}of _0x2e918a)if(_0x6a26e['containsRange'](_0xae171e['newRange'])){_0x43a5ca['updateMarker'](_0xc46827,{'range':_0x6a26e}),_0x553bc3=!0x0;break;}}}return _0x553bc3;}),_0x512381['model']['document']['registerPostFixer'](_0x20600f=>{let _0x4ad874=!0x1;const _0x43f94a=_0x512381['plugins']['get']('Users')['me'],_0x557393=_0x4908c5['getSuggestions']()['filter'](_0x25c607=>_0x25c607['isInContent']&&_0x25c607['author']==_0x43f94a),_0x3545b6=new Set(),_0x3de919=new Set();for(const _0x581d59 of _0x557393)if('tablePaste'==_0x581d59['subType'])for(const _0x28ae6e of _0x581d59['getMarkers']()){const _0x553609=_0x28ae6e['getRange']()['getContainedElement']();if(_0x553609){if(_0x553609['is']('element','tableCellSuggestion')&&Pe(_0x553609)){_0x581d59['removeMarker'](_0x28ae6e['name']),_0x3545b6['add'](_0x553609),_0x4ad874=!0x0;const _0x25aa6c=_0x553609['nextSibling'],_0x24fce4=_0x553609['previousSibling'],_0x1f1f6d=_0x25aa6c&&_0x25aa6c['is']('element','tableCellSuggestion'),_0x4538de=_0x24fce4&&_0x24fce4['is']('element','tableCellSuggestion');_0x1f1f6d&&!_0x3545b6['has'](_0x25aa6c)&&_0x3de919['add'](_0x25aa6c),_0x4538de&&!_0x3545b6['has'](_0x24fce4)&&_0x3de919['add'](_0x24fce4);}else _0x553609['is']('element','paragraph')&&_0x553609['isEmpty']&&(_0x581d59['removeMarker'](_0x28ae6e['name']),_0x4ad874=!0x0);}}else{if('tablePasteCell'==_0x581d59['subType']){if(!_0x581d59['attributes']||!_0x581d59['attributes']['tablePasteChainId'])continue;const _0x45e270=_0x581d59['attributes']['markerAttributes'];if(_0x45e270&&Object['keys'](_0x45e270)['length'])continue;const _0x2a463a=_0x581d59['attributes']['tablePasteChainId'];let _0x1ab50b=!0x0,_0x20cb6c=!0x0;for(const _0x74f9c8 of _0x557393)if(_0x74f9c8['subType']&&_0x74f9c8['subType']['startsWith']('tablePaste')){if(!_0x74f9c8['attributes']['tablePasteChainId']){_0x20cb6c=!0x1;break;}if(_0x74f9c8['id']!=_0x581d59['id']&&_0x74f9c8['attributes']['tablePasteChainId']==_0x2a463a){_0x1ab50b=!0x1;break;}}_0x20cb6c&&_0x1ab50b&&(_0x581d59['removeMarkers'](),_0x4ad874=!0x0);}}for(const _0x1b71af of _0x3545b6)_0x20600f['remove'](_0x1b71af);for(const _0x8e214b of _0x3de919)_0x20600f['unwrap'](_0x8e214b);return _0x4ad874;}),_0x512381['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x386cbf,_0x572d73)=>_0x228956(_0x386cbf),'converterPriority':'high'}),_0x512381['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x41aeda,_0x5844d3)=>_0x5844d3['options']['showSuggestionHighlights']?_0x228956(_0x41aeda,!0x1):null,'converterPriority':'high'});const _0x427c0e=_0x512381['editing']['view'];this['listenTo'](_0x427c0e['document'],'clipboardOutput',(_0x40825c,_0x3616e6)=>{const _0x4d466f=[];for(const _0x5ae836 of _0x427c0e['createRangeIn'](_0x3616e6['content'])['getItems']())_0x5ae836['is']('element','suggestion-td')&&_0x4d466f['push'](_0x5ae836);_0x427c0e['change'](_0x4bdb35=>{for(const _0x41d783 of _0x4d466f)_0x4bdb35['move'](_0x4bdb35['createRangeIn'](_0x41d783),_0x4bdb35['createPositionBefore'](_0x41d783)),_0x4bdb35['remove'](_0x41d783);});});}}function Pe(_0x1ecdaa){if(_0x1ecdaa['isEmpty'])return!0x0;const _0x4b4e9f=_0x1ecdaa['getChild'](0x0);return _0x4b4e9f['is']('element','paragraph')&&_0x4b4e9f['isEmpty'];}function we(_0x5997b7,_0x3e718f={},_0x45311b){for(const {isAnchor:_0xc3913a,cellHeight:_0x3f1b10,cellWidth:_0x4d7c1f}of _0x45311b['createTableWalker'](_0x5997b7,{'includeAllSlots':!0x0,..._0x3e718f}))if(!_0xc3913a||0x1!=_0x3f1b10||0x1!=_0x4d7c1f)return!0x1;return!0x0;}class Ct extends _0x1ec07f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x46fc1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x46fc1e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x46fc1e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x46fc1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46fc1e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x46fc1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x46fc1e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x24a274,_0x557b65){const _0x5e44e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x586478=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4701d6=_0x557b65['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3438d8=_0x586478['getColumnGroupElement'](_0x4701d6);let _0x14c2ac=_0x3438d8?_0x586478['getTableColumnsWidths'](_0x3438d8):null,_0x5e132d=_0x4701d6['getAttribute']('tableWidth')||null;const _0x4ff96d=_0x557b65['tableWidth']||_0x5e132d,_0x1ba538=_0x557b65['columnWidths']||_0x14c2ac,_0x416e28=this['editor']['plugins']['get']('Users')['me'];for(const _0x19caf4 of _0x5e44e2['getSuggestions']()){const _0x21b25b=_0x19caf4['getContainedElement']();if('resizeTable'===_0x19caf4['subType']&&_0x21b25b===_0x4701d6){_0x19caf4['author']!==_0x416e28&&_0x19caf4['discard']();const _0x244b7d=_0x19caf4['data']['commandParams'];_0x5e132d=_0x244b7d[0x0]['tableWidth'],_0x14c2ac=_0x244b7d[0x0]['columnWidths'];break;}}_0x24a274({'table':_0x4701d6,'tableWidth':_0x4ff96d,'columnWidths':_0x1ba538}),_0x5e44e2['markBlockFormat'](_0x4701d6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5e132d,'columnWidths':_0x14c2ac}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41ef06){if('formatBlock'!=_0x41ef06['type']&&'formatInline'!=_0x41ef06['type'])return;const {data:_0x445b3b}=_0x41ef06;if(_0x445b3b&&'resizeTable'===_0x445b3b['formatGroupId']){const _0x3d0304='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3d0304)};}}}class _t extends _0x1ec07f{['afterInit'](){const _0x3b7c99=this['editor'];_0x3b7c99['plugins']['has']('Template')&&_0x3b7c99['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x1ec07f{['afterInit'](){const _0x463e49=this['editor'];if(!_0x463e49['commands']['get']('insertTableOfContents'))return;_0x463e49['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x49df09=_0x463e49['plugins']['get']('TrackChangesEditing'),_0x5db2fc=_0x463e49['locale'];_0x49df09['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4fb600=>o(_0x5db2fc,'ELEMENT_TABLE_OF_CONTENTS',_0x4fb600));}}class Nt extends _0x1ec07f{['afterInit'](){const _0x576f25=this['editor'];if(!_0x576f25['plugins']['has']('Title'))return;const _0x2d702a=_0x576f25['plugins']['get']('TrackChangesEditing');_0x2d702a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x576f25['locale'],'ELEMENT_TITLE')),_0x576f25['model']['document']['registerPostFixer'](_0x719942=>{let _0x4e196e=!0x1;const _0x20ce77=Array['from'](_0x576f25['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55a736,data:_0x21190d}of _0x20ce77){const {group:_0x1fdfd5}=_0x2d702a['_splitMarkerName'](_0x55a736);if('suggestion'!==_0x1fdfd5||!_0x21190d['newRange'])continue;const _0x14f55d=_0x21190d['newRange'],_0x327d3e=_0x14f55d['end']['nodeBefore'];if(!_0x327d3e||!_0x327d3e['is']('element','title-content'))continue;if(!_0x14f55d['start']['isTouching'](_0x14f55d['end']))continue;const _0xade457=_0x576f25['model']['schema']['getNearestSelectionRange'](_0x14f55d['end'],'forward');if(_0xade457&&_0xade457['isCollapsed']){const _0xf4389e=_0x719942['createRange'](_0x14f55d['start'],_0xade457['start']);_0xf4389e['isEqual'](_0x14f55d)||(_0x719942['updateMarker'](_0x55a736,{'range':_0xf4389e}),_0x4e196e=!0x0);}_0x4e196e||(_0x719942['removeMarker'](_0x55a736),_0x4e196e=!0x0);}return _0x4e196e;});}}class Mt extends _0x1ec07f{['afterInit'](){const _0x192a5a=this['editor'],_0x53ac6c=_0x192a5a['plugins']['get']('TrackChangesEditing');_0x192a5a['plugins']['has']('UndoEditing')&&(_0x53ac6c['enableCommand']('undo'),_0x53ac6c['enableCommand']('redo'));}}class $t extends _0x1ec07f{static get['requires'](){return[St];}['afterInit'](){const _0x450c12=this['editor'];if(!_0x450c12['plugins']['has']('TableCaptionEditing'))return;_0x450c12['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x1ec07f{['tableProperties'];['tableCellProperties'];constructor(_0x32b477){super(_0x32b477),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x32dd0f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x20bab4 of this['tableProperties'])_0x32dd0f['enableCommand'](_0x20bab4,(_0x4240f1,_0x16ff86)=>{const _0x3777e5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x20bab4,[_0x3777e5],this['tableProperties'],'tableProperties',_0x4240f1,_0x16ff86);});_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x32dd0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x38ff5e,_0xf2e491)=>this['handleDiscardAction'](this['tableProperties'],_0x38ff5e,_0xf2e491)),_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ce507 of this['tableCellProperties'])_0x32dd0f['enableCommand'](_0x2ce507,(_0x57421f,_0x48499a)=>{const _0x1374f0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ce507,_0x1374f0,this['tableCellProperties'],'tableCellProperties',_0x57421f,_0x48499a);});_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x32dd0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5af494,_0x3e7558)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5af494,_0x3e7558)),_0x32dd0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x32dd0f['descriptionFactory']['registerDescriptionCallback'](_0x413b71=>this['handleSuggestionDescription'](_0x413b71));}['_handlePropertyChange'](_0x32c0f8,_0x4db46a,_0x57833b,_0x5825f0,_0x271559,_0x495fe3){const _0x3f08e3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x495fe3['batch'],()=>{for(const _0x26ba31 of _0x4db46a){if(this['_getSuggestion'](_0x26ba31,_0x5825f0))_0x271559(_0x495fe3);else{const _0x3d4ed7={};for(const _0x2ac66e of _0x57833b){const _0x510667=_0x26ba31['getAttribute'](_0x2ac66e);void 0x0!==_0x510667&&(_0x3d4ed7[_0x2ac66e]=_0x510667);}_0x271559(_0x495fe3),_0x3f08e3['markBlockFormat'](_0x26ba31,{'commandParams':[_0x3d4ed7]},[],_0x5825f0);}}});}['handleDiscardAction'](_0x4c25a7,_0x4c6b0b,_0x35f5ab){const _0x11f650=_0x4c6b0b[0x0]['start']['nodeAfter'],_0x27ab94=_0x35f5ab['commandParams'][0x0];this['editor']['model']['change'](_0x115fd2=>{for(const _0x24f850 of _0x4c25a7)void 0x0!==_0x27ab94[_0x24f850]?_0x115fd2['setAttribute'](_0x24f850,_0x27ab94[_0x24f850],_0x11f650):_0x115fd2['removeAttribute'](_0x24f850,_0x11f650);});}['handleSuggestionDescription'](_0x37b4c6){if(_0x37b4c6['data'])switch(_0x37b4c6['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5e0b00,_0x280132){const _0x2fe353=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x35cc5e of _0x2fe353['getSuggestions']({'skipNotAttached':!0x0})){const _0x501295=_0x35cc5e['getContainedElement']();if(_0x35cc5e['subType']===_0x280132&&_0x501295===_0x5e0b00)return _0x35cc5e;}return null;}}const m='$elementName';class p extends _0x1ec07f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x485a72,_0x47113b,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1ea0fb){function _0x4f9cad(_0x2c1b4d){return _0x2c1b4d['map'](_0x13532a=>String['fromCharCode'](_0x13532a))['join']('');}super(_0x1ea0fb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xdbefb5,_0x13b148,_0x20d377,_0x4b3bd4)=>{this['_model']['change'](()=>{for(const _0x3f1d8b of[..._0x4b3bd4,..._0x20d377])this['_model']['markers']['has'](_0x3f1d8b)&&_0x1ea0fb['editing']['reconvertMarker'](_0x3f1d8b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1ea0fb['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1ea0fb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1ea0fb['config']['get']('trackChanges.trackFormatChanges'),_0x1ea0fb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1ea0fb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1ea0fb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4f9cad([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4f9cad([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x34]);}['init'](){const _0x2eeef7=this['editor'],_0xda263=(_0x222747,_0x3b41e6)=>{if('attribute'!=_0x222747)return'ck-suggestion-marker-'+_0x222747;const _0x10b87d=_0x3b41e6['split']('|')[0x0];return this['_isBlockAttribute'](_0x10b87d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2eeef7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1a528d=>{const {id:_0x4fa304,type:_0x9d3278,subType:_0x1f75d6}=this['_splitMarkerName'](_0x1a528d['markerName']),_0x5d0d0e=['ck-suggestion-marker',_0xda263(_0x9d3278,_0x1f75d6)];let _0x237e6b=0xbb8;return this['activeMarkers']['includes'](_0x1a528d['markerName'])&&(_0x5d0d0e['push']('ck-suggestion-marker--active'),_0x237e6b=0xbc2),'deletion'==_0x9d3278&&(_0x237e6b+=0x5),{'classes':_0x5d0d0e,'attributes':{'data-suggestion':_0x4fa304},'priority':_0x237e6b};}}),_0x2eeef7['conversion']['for']('dataDowncast')['add'](_0x3d9f94=>{_0x3d9f94['on']('addMarker:suggestion',(_0x438574,_0x45d819,_0x29a6a5)=>{if(!_0x29a6a5['options']['showSuggestionHighlights'])return;const _0x47ebf0=_0x45d819['item'];if(!_0x47ebf0)return;const _0x3e5b38=_0x29a6a5['mapper']['toViewElement'](_0x47ebf0);_0x2eeef7['model']['schema']['isObject'](_0x47ebf0)&&_0x3e5b38&&!_0x3e5b38['getCustomProperty']('widget')&&_0x3e5b38['is']('containerElement')&&_0x16abdf(_0x3e5b38,_0x29a6a5['writer']);},{'priority':'high'});}),_0x2eeef7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x319bf9,_0x4c4021)=>{if(!_0x4c4021['options']['showSuggestionHighlights'])return null;const {type:_0x1219d5,subType:_0x449661}=this['_splitMarkerName'](_0x319bf9['markerName']);return{'classes':['ck-suggestion-marker',_0xda263(_0x1219d5,_0x449661)],'priority':0xbb8};}});const _0x446955=({showActiveMarkers:_0x144ad9=!0x0,isAttributeSuggestion:_0x12b334=!0x1}={})=>(_0x52426d,_0x19d548,_0x1a6990)=>{if(!_0x19d548['item'])return;const {id:_0x11d4ac}=this['_splitMarkerName'](_0x19d548['markerName']);if(_0x12b334){const _0xb90496=this['_suggestions']['get'](_0x11d4ac),_0x473625=this['_getAttributeKey'](_0xb90496);if(!this['_isBlockAttribute'](_0x473625))return;}if(_0x19d548['item']['is']('selection'))return void _0x1a6990['consumable']['consume'](_0x19d548['item'],_0x52426d['name']);const _0x4bde38=_0x1a6990['mapper']['toViewElement'](_0x19d548['item']);if(_0x19d548['item']['is']('element')&&_0x2eeef7['model']['schema']['isBlock'](_0x19d548['item'])&&!_0x4bde38['getCustomProperty']('addHighlight')){_0x1a6990['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4bde38),_0x1a6990['writer']['setAttribute']('data-suggestion',_0x11d4ac,_0x4bde38),_0x1a6990['mapper']['bindElementToMarker'](_0x4bde38,_0x19d548['markerName']),_0x144ad9&&(this['activeMarkers']['includes'](_0x19d548['markerName'])?_0x1a6990['writer']['addClass']('ck-suggestion-marker--active',_0x4bde38):_0x1a6990['writer']['removeClass']('ck-suggestion-marker--active',_0x4bde38));for(const _0x46a58d of _0x2eeef7['model']['createRangeIn'](_0x19d548['item'])['getItems']())_0x1a6990['consumable']['consume'](_0x46a58d,_0x52426d['name']);_0x1a6990['consumable']['consume'](_0x19d548['item'],_0x52426d['name']);}};_0x2eeef7['conversion']['for']('dataDowncast')['add'](_0x51322e=>{_0x51322e['on']('addMarker:suggestion:formatBlock',(_0x6f741,_0x7cadfc,_0x46e7a1)=>{_0x46e7a1['options']['showSuggestionHighlights']&&_0x446955({'showActiveMarkers':!0x1})(_0x6f741,_0x7cadfc,_0x46e7a1);},{'priority':'highest'});}),_0x2eeef7['conversion']['for']('dataDowncast')['add'](_0x238741=>{_0x238741['on']('addMarker:suggestion:attribute',(_0x250858,_0xee058b,_0x48338b)=>{_0x48338b['options']['showSuggestionHighlights']&&_0x446955({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x250858,_0xee058b,_0x48338b);},{'priority':'highest'});}),_0x2eeef7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5ae63a,_0x169465)=>_0x169465['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5ae63a['substr'](0xb)}}),_0x2eeef7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x31e9f9,{writer:_0x3e2d17})=>{let _0x3c962d='suggestion:'+_0x31e9f9['getAttribute']('suggestion-type')+':'+_0x31e9f9['getAttribute']('id');return _0x31e9f9['getAttribute']('marker-count')&&(_0x3c962d+=':'+_0x31e9f9['getAttribute']('marker-count')),_0x3e2d17['createElement']('$marker',{'data-name':_0x3c962d});}}),_0x2eeef7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2eeef7['conversion']['for']('editingDowncast')['add'](_0x35520b=>{_0x35520b['on']('addMarker:suggestion:formatBlock',_0x446955(),{'priority':'high'});}),_0x2eeef7['conversion']['for']('editingDowncast')['add'](_0x583f44=>{_0x583f44['on']('addMarker:suggestion:attribute',_0x446955({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2eeef7['conversion']['for']('editingDowncast')['add'](_0x3b623f=>{_0x3b623f['on']('removeMarker:suggestion:formatBlock',(_0x52151b,_0x39a10c,_0x25647d)=>{const _0x470b19=_0x25647d['mapper']['markerNameToElements'](_0x39a10c['markerName']);if(_0x470b19){for(const _0x28c9e0 of _0x470b19)_0x28c9e0['getCustomProperty']('addHighlight')||(_0x25647d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x28c9e0),_0x25647d['writer']['removeAttribute']('data-suggestion',_0x28c9e0),_0x25647d['mapper']['unbindElementFromMarkerName'](_0x28c9e0,_0x39a10c['markerName']));}},{'priority':'high'});}),_0x2eeef7['conversion']['for']('editingDowncast')['add'](_0x4c0c38=>{_0x4c0c38['on']('removeMarker:suggestion:attribute',(_0x1acb8d,_0x29cd75,_0x4c66f3)=>{const _0x17d6de=_0x4c66f3['mapper']['markerNameToElements'](_0x29cd75['markerName']);if(!_0x17d6de)return;const {id:_0x15663f}=this['_splitMarkerName'](_0x29cd75['markerName']),_0x4afa31=this['_suggestions']['get'](_0x15663f),_0x209f6c=this['_getAttributeKey'](_0x4afa31);if(this['_isBlockAttribute'](_0x209f6c)){for(const _0x381c89 of _0x17d6de)_0x381c89['getCustomProperty']('addHighlight')||(_0x4c66f3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x381c89),_0x4c66f3['writer']['removeAttribute']('data-suggestion',_0x381c89),_0x4c66f3['mapper']['unbindElementFromMarkerName'](_0x381c89,_0x29cd75['markerName']));}},{'priority':'high'});}),_0x2eeef7['model']['document']['registerPostFixer'](_0x18e777=>{let _0x4caa4d=!0x1;const _0x550381=Array['from'](_0x2eeef7['model']['document']['differ']['getChangedMarkers']()),_0x524598=new Set();for(const {name:_0x5a7aa3,data:_0x1d54e3}of _0x550381){const {group:_0x6d2ef3,type:_0x346bfe,subType:_0x1e2d9c,id:_0x372f6b}=this['_splitMarkerName'](_0x5a7aa3);if('suggestion'!==_0x6d2ef3)continue;const _0x2f7cac=this['_suggestions']['get'](_0x372f6b);if(null!=_0x1d54e3['newRange']){'formatInline'==_0x346bfe&&(_0x4caa4d=_0x4caa4d||Vt(_0x1d54e3['newRange'],_0x5a7aa3,_0x18e777,_0x2eeef7['model']['schema']));const _0x480a24='attribute'==_0x346bfe&&this['_isBlockAttribute'](_0x1e2d9c['split']('|')[0x0]);if(_0x1d54e3['newRange']['isCollapsed']||'$graveyard'==_0x1d54e3['newRange']['root']['rootName']||'formatBlock'==_0x346bfe&&!Ot(_0x1d54e3['newRange'])||_0x480a24&&!Ot(_0x1d54e3['newRange'])||'deletion'==_0x346bfe&&!(!Et(_0x1c291f=_0x1d54e3['newRange'])&&!function(_0x40f25a){return _0x40f25a['start']['parent']==_0x40f25a['end']['nodeBefore']&&_0x40f25a['start']['isAtEnd'];}(_0x1c291f)))_0x18e777['removeMarker'](_0x5a7aa3),_0x4caa4d=!0x0;else{if(!_0x2f7cac||!_0x2f7cac['isInContent'])continue;_0x524598['add'](_0x2f7cac);}}}var _0x1c291f;return _0x524598['size']>0x0&&(_0x4caa4d=!!this['_joinWithAdjacentSuggestions'](_0x524598)||_0x4caa4d),_0x4caa4d;}),_0x2eeef7['model']['document']['registerPostFixer'](_0x32793d=>{let _0x122d26=!0x1;for(const _0x38ebb5 of _0x2eeef7['model']['document']['differ']['getChanges']())if('insert'==_0x38ebb5['type'])for(const _0x23c85f of this['_suggestions']['values']()){if(_0x23c85f['isMultiRange']||!_0x23c85f['isInContent'])continue;const _0x2f0434='formatBlock'==_0x23c85f['type'],_0x28a6a6=this['_getAttributeKey'](_0x23c85f),_0x4d66d0=_0x28a6a6&&this['_isBlockAttribute'](_0x28a6a6);if(!_0x2f0434&&!_0x4d66d0)continue;const _0x33a83d=_0x23c85f['getFirstRange']();if(_0x33a83d['start']['parent']!=_0x33a83d['end']['parent']&&!_0x33a83d['end']['isAtEnd']){const _0x6bee15=_0x2eeef7['model']['createPositionAt'](_0x33a83d['start']['nodeAfter'],'end'),_0x194b1f=_0x2eeef7['model']['createRange'](_0x33a83d['start'],_0x6bee15);_0x32793d['updateMarker'](_0x23c85f['getFirstMarker'](),{'range':_0x194b1f}),_0x122d26=!0x0;}}return _0x122d26;}),_0x2eeef7['model']['document']['registerPostFixer'](_0x407ddd=>this['_processAttributeChanges'](_0x407ddd)),_0x2eeef7['model']['document']['registerPostFixer'](_0x4cfbd2=>!_0x4cfbd2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4cfbd2)),_0x2eeef7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2eeef7['model']['document']['on']('change:data',(_0x27d32c,_0x3d7748)=>{if(!_0x3d7748['isLocal']||_0x3d7748['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x51e6f6=_0x2eeef7['model']['document']['differ']['getChanges']();if(0x0==_0x51e6f6['length'])return;const _0x45deb7=[],_0x7c1a2b=_0x51e6f6['filter'](_0x2b11c9=>'attribute'==_0x2b11c9['type']),_0x4056e2=_0x51e6f6['filter'](_0xc5a66f=>'insert'==_0xc5a66f['type']&&'$text'!=_0xc5a66f['name']);for(const _0x2bf750 of _0x7c1a2b)this['_isRegisteredAttribute'](_0x2bf750['attributeKey'])&&_0x45deb7['push']({'key':_0x2bf750['attributeKey'],'newValue':_0x2bf750['attributeNewValue'],'oldValue':_0x2bf750['attributeOldValue'],'range':Gt(_0x2bf750['range'],_0x2eeef7['model'])});for(const _0x3afb78 of _0x4056e2){if('rename'!=_0x3afb78['action']&&'refresh'!=_0x3afb78['action'])continue;const _0x2860f9=Ft(_0x3afb78['position']['nodeAfter'],_0x2eeef7['model']),_0x5765a9=_0x3afb78['before'];'rename'==_0x3afb78['action']&&_0x45deb7['push']({'key':m,'newValue':_0x3afb78['name'],'oldValue':_0x5765a9['name'],'range':_0x2860f9});for(const [_0x20306c,_0x54d907]of _0x5765a9['attributes']){if(!this['_isRegisteredAttribute'](_0x20306c))continue;const _0x32abd3=_0x3afb78['attributes']['get'](_0x20306c);_0x54d907!==_0x32abd3&&_0x45deb7['push']({'key':_0x20306c,'newValue':_0x32abd3,'oldValue':_0x54d907,'range':_0x2860f9});}for(const [_0x2fc292,_0x4e3596]of _0x3afb78['attributes'])this['_isRegisteredAttribute'](_0x2fc292)&&(_0x5765a9['attributes']['has'](_0x2fc292)||_0x45deb7['push']({'key':_0x2fc292,'newValue':_0x4e3596,'oldValue':null,'range':_0x2860f9}));}0x0!=_0x45deb7['length']&&_0x2eeef7['model']['enqueueChange'](_0x3d7748,_0x3cf064=>{const _0x669a1d=_0x280966();for(const {range:_0x2de71d,key:_0x211476,oldValue:_0x1993e3,newValue:_0x4813fb}of _0x45deb7)this['markAttributeChange'](_0x2de71d,_0x211476,_0x1993e3,_0x4813fb,{'groupId':_0x669a1d});this['_reduceExistingSuggestions'](_0x3cf064,_0x45deb7);});},{'priority':'lowest'}),_0x2eeef7['model']['markers']['on']('update:suggestion',(_0x1c7f3b,_0x2734b6,_0x16d398)=>{if(null==_0x16d398){const {id:_0x8a3326}=this['_splitMarkerName'](_0x2734b6['name']),_0x418d3c=this['_suggestions']['get'](_0x8a3326);_0x418d3c&&_0x418d3c['addMarkerName'](_0x2734b6['name']);}}),_0x2eeef7['model']['document']['on']('change:data',()=>{const _0x3e5112=Array['from'](_0x2eeef7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3c1917=>'suggestion'===this['_splitMarkerName'](_0x3c1917['name'])['group']);if(0x0===_0x3e5112['length'])return;_0x3e5112['sort']((_0x5ecb70,_0x40af63)=>{const _0x439515=_0x5ecb70['data']['oldRange'],_0x30e7dd=_0x40af63['data']['oldRange'];return null===_0x439515&&null===_0x30e7dd?0x0:null===_0x439515&&null!==_0x30e7dd?-0x1:null!==_0x439515&&null===_0x30e7dd?0x1:_0x439515['start']['isBefore'](_0x30e7dd['start'])?-0x1:0x1;});const _0x24dee4=new Set(),_0x2dc94f=new Set();for(const {name:_0x585ac2,data:_0x37bf3c}of _0x3e5112){const {id:_0x4a5a5b}=this['_splitMarkerName'](_0x585ac2);if(null===_0x37bf3c['oldRange']){const _0x441848=this['_handleNewSuggestionMarker'](_0x585ac2);_0x2dc94f['add'](_0x441848);}else{const _0x15a722=this['_suggestions']['get'](_0x4a5a5b);null!==_0x37bf3c['newRange']||_0x15a722['isInContent']?(_0x24dee4['add'](_0x15a722['head']),_0x2dc94f['add'](_0x15a722)):this['_removeSuggestion'](_0x15a722);}}_0x2dc94f['size']>0x0&&this['_refreshSuggestionsChain'](_0x2dc94f);for(const _0x5df546 of _0x24dee4)this['fire']('suggestionChanged',_0x5df546);}),_0x2eeef7['model']['on']('applyOperation',(_0x2cbed7,_0x3d2b4d)=>{const _0x2a1a88=_0x3d2b4d[0x0];if(!this['_suggestions']['size'])return;if(!_0x2a1a88['isDocumentOperation'])return;if(_0x2a1a88['batch']['isUndo']||!_0x2a1a88['batch']['isLocal'])return;let _0x49c836,_0x31da99;switch(_0x2a1a88['type']){case'insert':_0x49c836=_0x2eeef7['model']['createPositionAt'](_0x2a1a88['position']),_0x31da99=_0x49c836['getShiftedBy'](_0x2a1a88['howMany']);break;case'split':_0x49c836=_0x2eeef7['model']['createPositionAt'](_0x2a1a88['splitPosition']),_0x31da99=_0x2eeef7['model']['createPositionAt'](_0x2a1a88['moveTargetPosition']);break;case'move':_0x49c836=_0x2eeef7['model']['createPositionAt'](_0x2a1a88['targetPosition']),_0x31da99=_0x49c836['getShiftedBy'](_0x2a1a88['howMany']);break;default:return;}const _0x1dbbff=_0x2eeef7['model']['createRange'](_0x49c836,_0x31da99);_0x2eeef7['model']['change'](()=>{for(const {suggestion:_0x2fbb82,meta:_0x49dd24}of this['_findSuggestions'](_0x1dbbff)){if(_0x2fbb82['isMultiRange'])continue;if('formatInline'==_0x2fbb82['type'])continue;const _0xf5880f=this['_getAttributeKey'](_0x2fbb82);if(_0xf5880f&&this['_isBlockAttribute'](_0xf5880f)&&'split'!=_0x2a1a88['type'])continue;const _0x5ea92d=_0x2fbb82['data']&&_0x2fbb82['data']['multipleBlocks'];('formatBlock'!=_0x2fbb82['type']||'split'==_0x2a1a88['type']&&!_0x5ea92d)&&(_0x49dd24['containsRangeInObject']||'insertion'==_0x2fbb82['type']&&_0x49dd24['isOwn']||_0x2fbb82['getFirstRange']()['containsRange'](_0x1dbbff)&&this['_breakSuggestionMarker'](_0x2fbb82,_0x49c836,_0x31da99));}});},{'priority':'lowest'}),_0x2eeef7['model']['on']('deleteContent',(_0x4c0584,_0x4b62ae)=>{const _0x4f1ed9=_0x4b62ae[0x0],_0x8d663c=_0x4b62ae[0x1];if(_0x8d663c&&_0x8d663c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4f1ed9['isCollapsed'])return;const _0x2ba0c2=_0x2eeef7['model']['schema'],{start:_0x433547,end:_0x296eb3}=_0x4f1ed9['getFirstRange'](),_0x32f018=_0x433547['nodeAfter']&&_0x2ba0c2['isLimit'](_0x433547['nodeAfter'])?null:_0x2ba0c2['getNearestSelectionRange'](_0x433547,'forward'),_0x4bb04e=_0x296eb3['nodeBefore']&&_0x2ba0c2['isLimit'](_0x296eb3['nodeBefore'])?null:_0x2ba0c2['getNearestSelectionRange'](_0x296eb3,'backward'),_0x5730fa=_0x2eeef7['model']['createRange'](_0x32f018?_0x32f018['start']:_0x433547,_0x4bb04e?_0x4bb04e['end']:_0x296eb3);_0x2eeef7['model']['change'](_0x5257a4=>{this['markDeletion'](_0x5730fa);const _0x2796b3=_0x2eeef7['model']['schema']['getNearestSelectionRange'](_0x5730fa['start']);_0x4f1ed9['is']('documentSelection')?_0x5257a4['setSelection'](_0x2796b3):_0x4f1ed9['setTo'](_0x2796b3);}),_0x4c0584['stop']();},{'priority':_0x5bbedb['normal']+0xa}),_0x2eeef7['model']['on']('insertContent',(_0x3c3d84,_0x1b3351)=>{const _0x4a2993=_0x1b3351[_0x1b3351['length']-0x1];_0x4a2993&&_0x4a2993['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2eeef7['model']['change'](()=>{let _0xddb7c1=_0x2eeef7['model']['insertContent'](_0x1b3351[0x0],_0x1b3351[0x1],_0x1b3351[0x2],{'forceDefaultExecution':!0x0});if(!_0xddb7c1)return;_0x3c3d84['return']=_0xddb7c1['clone']();const _0x43b939=_0xddb7c1['end']['nodeBefore'],_0x3c02f6=_0x2eeef7['model']['schema'];_0x43b939&&_0x3c02f6['isBlock'](_0x43b939)&&!_0x3c02f6['isObject'](_0x43b939)&&(_0xddb7c1=_0x2eeef7['model']['createRange'](_0xddb7c1['start'],_0x2eeef7['model']['createPositionAt'](_0x43b939,'end'))),this['markInsertion'](_0xddb7c1);}),_0x3c3d84['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3b71df=new $(_0x2eeef7,this['_suggestions']);_0x2eeef7['commands']['add']('acceptSuggestion',_0x3b71df),this['enableCommand']('acceptSuggestion');const _0x26fe91=new B(_0x2eeef7,this['_suggestions']);_0x2eeef7['commands']['add']('discardSuggestion',_0x26fe91),this['enableCommand']('discardSuggestion'),_0x2eeef7['commands']['add']('acceptAllSuggestions',new x(_0x2eeef7,_0x3b71df,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2eeef7['commands']['add']('discardAllSuggestions',new x(_0x2eeef7,_0x26fe91,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2eeef7['commands']['add']('acceptSelectedSuggestions',new R(_0x2eeef7,_0x3b71df,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2eeef7['commands']['add']('discardSelectedSuggestions',new R(_0x2eeef7,_0x26fe91,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15b13f=_0x2eeef7['plugins']['get']('CommentsRepository');this['listenTo'](_0x15b13f,'addComment',(_0x4017df,{threadId:_0x56ef77})=>{const _0xbde663=this['_suggestions']['get'](_0x56ef77);_0xbde663&&_0xbde663['commentThread']&&0x1===_0xbde663['commentThread']['length']&&this['_updateSuggestionData'](_0x56ef77,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15b13f,'removeComment',(_0x497347,{threadId:_0x2cf4dd})=>{const _0x80f05e=this['_suggestions']['get'](_0x2cf4dd);_0x80f05e&&_0x80f05e['commentThread']&&!_0x80f05e['commentThread']['length']&&this['_updateSuggestionData'](_0x2cf4dd,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2a928a){if(this['_adapter'])throw new _0x5c47f2('track-changes-adapter-already-set',this);this['_adapter']=_0x2a928a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4235dc=!0x1,toJSON:_0x2df4fc=!0x1}={}){const _0x30dcb2=[];for(const _0xe4de86 of this['_suggestions']['values']())_0x4235dc&&!_0xe4de86['isInContent']||_0x30dcb2['push'](_0xe4de86);return _0x2df4fc?_0x30dcb2['map'](_0x335f3d=>_0x335f3d['toJSON']()):_0x30dcb2;}['getSuggestion'](_0xed6126){const _0x5c40f4=this['_suggestions']['get'](_0xed6126);if(!_0x5c40f4)throw new _0x5c47f2('track-changes-suggestion-not-found',this);return _0x5c40f4;}['hasSuggestion'](_0x3fc8bf){return this['_suggestions']['has'](_0x3fc8bf);}['addSuggestionData'](_0x80d995){const {authorId:_0x500f62,id:_0x539595,attributes:_0x229328}=_0x80d995,[_0x18a4b0,_0x19d00a]=_0x80d995['type']['split'](':'),_0x380901=this['_suggestions']['get'](_0x539595)||this['_createSuggestion'](_0x18a4b0,_0x19d00a,_0x539595,_0x500f62,_0x229328);if(this['_addThreadToSuggestion'](_0x380901),this['_checkSuggestionCorrectness'](_0x380901,_0x18a4b0,_0x19d00a||null,_0x500f62),_0x380901['createdAt']=_0x80d995['createdAt'],_0x380901['_isDataLoaded']=!0x0,_0x229328&&_0x229328['@external']){const _0xccb95a=_0x229328['@external'],_0x5379a5=this['_getExternalAuthor'](_0xccb95a['authorName']);_0x380901['authoredAt']=_0xccb95a['createdAt'],_0x380901['author']=_0x5379a5,_0x380901['isExternal']=!0x0;}else _0x380901['authoredAt']=_0x80d995['createdAt'];switch(_0x80d995['data']&&(_0x380901['data']=_0x80d995['data']),_0x80d995['attributes']&&(_0x380901['attributes']=_0x80d995['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x380901['_saved']=!0x0),this['_suggestionState']['get'](_0x380901)){case'notReady':this['_suggestionState']['set'](_0x380901,'dataReady');break;case'markerReady':_0x380901['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x380901])),this['_refreshSuggestionsChain'](new Set([_0x380901])),this['_suggestionState']['set'](_0x380901,'ready'),this['fire']('suggestionLoaded',_0x380901)):this['_suggestionState']['set'](_0x380901,'removed');}return _0x380901;}['acceptSuggestion'](_0x5a4b7e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5da986 of _0x5a4b7e['getAllAdjacentSuggestions']())_0x5da986['accept']();});});}['discardSuggestion'](_0x1027bc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x18c10f of _0x1027bc['getAllAdjacentSuggestions']())_0x18c10f['discard']();});});}['enableCommand'](_0x2066e3,_0x2148b2){const _0x5f3540=this['editor']['commands']['get'](_0x2066e3);if(!_0x5f3540)throw new _0x5c47f2('track-changes-command-not-found',this,{'commandName':_0x2066e3});if(this['_enabledCommands']['has'](_0x5f3540))throw new _0x5c47f2('track-changes-enable-command-twice',this,{'commandName':_0x2066e3});this['_enabledCommands']['add'](_0x5f3540),_0x2148b2&&_0x5f3540['on']('execute',(_0x2283ae,_0x5ebe74)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5ebe74['length']>0x0&&_0x5ebe74[_0x5ebe74['length']-0x1]&&_0x5ebe74[_0x5ebe74['length']-0x1]['forceDefaultExecution']?_0x5ebe74['pop']():(_0x2283ae['return']=_0x2148b2((..._0x5d5f17)=>_0x5f3540['execute'](..._0x5d5f17,{'forceDefaultExecution':!0x0}),..._0x5ebe74),_0x2283ae['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x40a3ec){let _0x24dfa3,_0x17c423;const _0x250fc4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x24dfa3=_0x40a3ec();}catch(_0x247916){_0x17c423=_0x247916;}return _0x250fc4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17c423&&_0x5c47f2['rethrowUnexpectedError'](_0x17c423,this),_0x24dfa3;}['markInsertion'](_0x424efe,_0x3b3ca1=null,_0x28a0bf={}){if(_0x424efe['isCollapsed'])return null;const _0x1e1555=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x34f43c,meta:_0x2e605e}of this['_findSuggestions'](_0x424efe,'insertion'))if(_0x2e605e['isOwn']){if(!_0x2e605e['isNextTo']){if(_0x2e605e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x34f43c,_0x28a0bf))continue;return _0x34f43c;}if(Ht(_0x34f43c,_0x28a0bf))return _0x34f43c;this['_breakSuggestionMarker'](_0x34f43c,_0x424efe['start'],_0x424efe['end']);break;}if(_0x3b3ca1==_0x34f43c['subType']&&Ht(_0x34f43c,_0x28a0bf)){const _0x2047a0=_0x34f43c['getFirstRange']();return _0x2047a0['start']['isEqual'](_0x424efe['end'])?this['_setSuggestionRange'](_0x34f43c,this['_model']['createRange'](_0x424efe['start'],_0x2047a0['end'])):this['_setSuggestionRange'](_0x34f43c,this['_model']['createRange'](_0x2047a0['start'],_0x424efe['end'])),_0x34f43c;}}const _0x29860d=_0x280966(),_0x4f83d0=_0x1e1555['id'],_0x3ba4b2=_0x3b3ca1?'insertion:'+_0x3b3ca1:'insertion',_0xc34010=this['_setSuggestionData']({'id':_0x29860d,'type':_0x3ba4b2,'createdAt':new Date(),'authorId':_0x4f83d0,'attributes':_0x28a0bf});return this['_addSuggestionMarker'](_0x3ba4b2,_0x29860d,_0x4f83d0,_0x424efe),_0xc34010;}['markMultiRangeInsertion'](_0x5a63fb,_0x42fe04='multi',_0x144115={}){const _0x5c6a69=this['editor']['plugins']['get']('Users')['me'],_0x4db95d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42fe04,'join');for(const _0x598316 of this['getSuggestions']())if(_0x598316['author']['id']==_0x5c6a69['id']&&'insertion'==_0x598316['type']&&_0x598316['subType']==_0x42fe04&&Ht(_0x598316,_0x144115)&&(_0x4db95d(_0x598316['getRanges'](),_0x5a63fb)||_0x4db95d(_0x5a63fb,_0x598316['getRanges']()))){for(const _0x48bc31 of _0x5a63fb)_0x598316['addRange'](_0x48bc31);return _0x598316;}for(const {suggestion:_0x282240,meta:_0x536e7b}of this['_findSuggestions'](_0x5a63fb,'insertion')){if(!_0x536e7b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x536e7b['containsRangeInObject'])continue;if(!Ht(_0x282240,_0x144115))continue;let _0x3b01d5=!0x0;for(const _0xf65ad2 of _0x282240['getRanges']())for(const _0x13528e of _0x5a63fb)if(!_0xf65ad2['containsRange'](_0x13528e)){_0x3b01d5=!0x1;break;}if(_0x3b01d5)return _0x282240;}const _0xef2ad6=_0x280966(),_0x6468cd=_0x5c6a69['id'],_0x2443ef='insertion:'+_0x42fe04,_0x3d471b=this['_setSuggestionData']({'id':_0xef2ad6,'type':_0x2443ef,'createdAt':new Date(),'authorId':_0x6468cd,'attributes':_0x144115});for(const _0x32290e of _0x5a63fb)this['_addSuggestionMarker'](_0x2443ef,_0xef2ad6,_0x6468cd,_0x32290e,u['getMultiRangeId']());return _0x3d471b;}['markInlineFormat'](_0x4ba773,_0x5d42f2,_0x4b9b55=null,_0x310188={}){if(_0x4b9b55=_0x4b9b55||Ut(_0x5d42f2),_0x4ba773['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51e9a5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b9b55,'accept');return this['forceDefaultExecution'](()=>_0x51e9a5([_0x4ba773],_0x5d42f2,_0x310188)),null;}const _0x1c1c0c=this['editor']['plugins']['get']('Users')['me'],_0x1fdefd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x618b4e,meta:_0x519c10}of this['_findSuggestions'](_0x4ba773,'insertion'))_0x519c10['isOwn']&&!_0x519c10['isInsideObject']&&_0x1fdefd['push'](..._0x618b4e['getRanges']());}const _0x308eee=function(_0x466f40,_0x5c5cf7){const _0x7b3d4=[];for(const _0xe3440 of _0x5c5cf7){const _0x996bf7=_0x466f40['getIntersection'](_0xe3440);_0x996bf7&&_0x7b3d4['push'](_0x996bf7);}return _0x7b3d4;}(_0x4ba773,_0x1fdefd),_0x12b0cd=function(_0x3e91e2,_0x3edb57){const _0x3ed0b0=[_0x3e91e2];for(const _0x52638e of _0x3edb57){let _0x9d0300=0x0;for(;_0x9d0300<_0x3ed0b0['length'];){const _0x2ed89d=_0x3ed0b0[_0x9d0300]['getDifference'](_0x52638e);_0x3ed0b0['splice'](_0x9d0300,0x1,..._0x2ed89d),_0x9d0300+=_0x2ed89d['length'];}}return _0x3ed0b0;}(_0x4ba773,_0x1fdefd);_0x308eee['length']&&this['_model']['change'](()=>{for(const _0xc83d7a of _0x308eee){const _0x33c9e4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b9b55,'accept');this['forceDefaultExecution'](()=>_0x33c9e4([_0xc83d7a],_0x5d42f2,_0x310188));}});for(const _0x562ee8 of _0x12b0cd){let _0x22977e=null,_0x4fd62e=_0x562ee8['start'],_0x516383=_0x562ee8['end'];for(const {suggestion:_0x38c0bf,meta:_0x210367}of this['_findSuggestions'](_0x562ee8,'formatInline')){if(!_0x210367['isOwn'])continue;if(_0x38c0bf['subType']!=_0x4b9b55)continue;if(!Ht(_0x38c0bf,_0x310188))continue;const _0x415f32=_0x38c0bf['getFirstRange']();if(_0x415f32['containsRange'](_0x562ee8,!0x0))return null;_0x4fd62e=_0x4fd62e['isBefore'](_0x415f32['start'])?_0x4fd62e:_0x415f32['start'],_0x516383=_0x516383['isAfter'](_0x415f32['end'])?_0x516383:_0x415f32['end'],_0x22977e?_0x415f32['start']['isBefore'](_0x22977e['getFirstRange']()['start'])?(_0x22977e['removeMarkers'](),_0x22977e=_0x38c0bf):_0x38c0bf['removeMarkers']():_0x22977e=_0x38c0bf;}const _0x4246c9=this['_model']['createRange'](_0x4fd62e,_0x516383);if(_0x22977e)this['_setSuggestionRange'](_0x22977e,_0x4246c9);else{const _0x73f90d=_0x280966(),_0x484da9=_0x1c1c0c['id'];this['_setSuggestionData']({'id':_0x73f90d,'type':'formatInline:'+_0x4b9b55,'data':_0x5d42f2,'createdAt':new Date(),'authorId':_0x484da9,'attributes':_0x310188}),this['_addSuggestionMarker']('formatInline:'+_0x4b9b55,_0x73f90d,_0x484da9,_0x4246c9);}}return null;}['markBlockFormat'](_0x576f4d,_0x47ac3b,_0x2380ea=[],_0x11e3db=null,_0x2d32f2={}){_0x47ac3b['formatGroupId']||(_0x47ac3b['formatGroupId']=_0x47ac3b['commandName']),_0x47ac3b['multipleBlocks']=_0x576f4d['is']('range'),_0x11e3db=_0x11e3db||Ut(_0x47ac3b);const _0x390fbd=_0x2380ea['map'](_0x240752=>Ft(_0x240752,this['_model'])),_0x2beb2d=_0x576f4d['is']('range')?_0x576f4d:Ft(_0x576f4d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x202604=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e3db,'accept');return this['forceDefaultExecution'](()=>_0x202604([_0x2beb2d],_0x47ac3b,_0x2d32f2)),null;}_0x390fbd['push'](_0x2beb2d);let _0x7d3178=!0x0;for(const _0x983c05 of _0x390fbd)if(!this['_rangeIsInLocalUserInsertion'](_0x983c05)){_0x7d3178=!0x1;break;}if(_0x7d3178&&'always'!==this['_trackFormatChanges']){const _0x5157d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e3db,'accept');return this['forceDefaultExecution'](()=>_0x5157d4([_0x2beb2d],_0x47ac3b,_0x2d32f2)),null;}let _0x5231eb=null,_0x164859=_0x2beb2d['start'],_0x13760f=_0x2beb2d['end'];for(const {suggestion:_0x2a297b,meta:_0x422538}of this['_findSuggestions'](_0x2beb2d,'formatBlock')){if(!_0x422538['isOwn'])continue;if(_0x422538['isNextTo']||_0x422538['containsRangeInObject']||_0x422538['isInsideObject'])continue;if(_0x2a297b['data']['formatGroupId']!=_0x47ac3b['formatGroupId'])continue;if(!Ht(_0x2a297b,_0x2d32f2))continue;const _0x46ee48=_0x2a297b['getFirstRange']();if(_0x2a297b['subType']==_0x11e3db){if(_0x46ee48['containsRange'](_0x2beb2d,!0x0))return null;_0x164859=_0x164859['isBefore'](_0x46ee48['start'])?_0x164859:_0x46ee48['start'],_0x13760f=_0x13760f['isAfter'](_0x46ee48['end'])?_0x13760f:_0x46ee48['end'],_0x5231eb?_0x46ee48['start']['isBefore'](_0x5231eb['getFirstRange']()['start'])?(_0x5231eb['removeMarkers'](),_0x5231eb=_0x2a297b):_0x2a297b['removeMarkers']():_0x5231eb=_0x2a297b;}else{const _0x2fad0f=_0x2beb2d['getIntersection'](_0x46ee48);this['_cutOutSuggestionMarker'](_0x2a297b,_0x2fad0f);}}const _0xf39f5b=this['editor']['plugins']['get']('Users')['me'],_0x2324e6=_0x280966(),_0x4d6218=_0xf39f5b['id'];if(_0x5231eb)return this['_setSuggestionRange'](_0x5231eb,this['_model']['createRange'](_0x164859,_0x13760f)),_0x5231eb;{const _0x49787b=this['_setSuggestionData']({'id':_0x2324e6,'type':'formatBlock:'+_0x11e3db,'data':_0x47ac3b,'createdAt':new Date(),'authorId':_0x4d6218,'attributes':_0x2d32f2});return this['_addSuggestionMarker']('formatBlock:'+_0x11e3db,_0x2324e6,_0x4d6218,this['_model']['createRange'](_0x164859,_0x13760f)),_0x49787b;}}['markMultiRangeBlockFormat'](_0xc68eb7,_0x4f72e0,_0x4b0feb=[],_0x1fa98b=null,_0x21d967={}){_0x4f72e0['formatGroupId']||(_0x4f72e0['formatGroupId']=_0x4f72e0['commandName']);const _0x4ff13b=_0xc68eb7[0x0];_0x4f72e0['multipleBlocks']=_0x4ff13b['is']('range'),_0x1fa98b=_0x1fa98b||Ut(_0x4f72e0);const _0x42f4e6=_0x4b0feb['map'](_0xbffbd7=>Ft(_0xbffbd7,this['_model'])),_0x180e6c=_0x4ff13b['is']('range')?_0xc68eb7:_0xc68eb7['map'](_0x119ff6=>Ft(_0x119ff6,this['_model']));if('never'===this['_trackFormatChanges']){const _0x29b66c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa98b,'accept');return this['forceDefaultExecution'](()=>_0x29b66c(_0x180e6c,_0x4f72e0,_0x21d967)),null;}_0x42f4e6['push'](..._0x180e6c);let _0x75facd=!0x0;for(const _0x6ec20a of _0x42f4e6)if(!this['_rangeIsInLocalUserInsertion'](_0x6ec20a)){_0x75facd=!0x1;break;}if(_0x75facd&&'always'!==this['_trackFormatChanges']){const _0x4f04bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa98b,'accept');return this['forceDefaultExecution'](()=>_0x4f04bf(_0x180e6c,_0x4f72e0,_0x21d967)),null;}const _0x354a25=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b26d6 of this['getSuggestions']()){if(_0x2b26d6['author']['id']!=_0x354a25['id'])continue;if('formatBlock'!=_0x2b26d6['type']||_0x2b26d6['data']['formatGroupId']!=_0x4f72e0['formatGroupId'])continue;if(!Ht(_0x2b26d6,_0x21d967))continue;const _0x1a07ca=_0x2b26d6['subType']==_0x1fa98b;for(let _0x29c2d3=0x0;_0x29c2d3<_0x180e6c['length'];_0x29c2d3++){const _0x1031cd=_0x180e6c[_0x29c2d3];for(const _0x4187ba of _0x2b26d6['getMarkers']()){const _0x335b04=_0x4187ba['getRange']();if(_0x1031cd['isEqual'](_0x335b04)){_0x1a07ca?(_0x180e6c['splice'](_0x29c2d3,0x1),_0x29c2d3--):_0x2b26d6['removeMarker'](_0x4187ba['name']);break;}}}}if(0x0==_0x180e6c['length'])return null;const _0x26adad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa98b,'join');for(const _0x16d6ee of this['getSuggestions']())if(_0x16d6ee['author']['id']==_0x354a25['id']&&'formatBlock'==_0x16d6ee['type']&&_0x16d6ee['data']['formatGroupId']==_0x4f72e0['formatGroupId']&&_0x16d6ee['subType']==_0x1fa98b&&Ht(_0x16d6ee,_0x21d967)&&(_0x26adad(_0x16d6ee['getRanges'](),_0x180e6c)||_0x26adad(_0x180e6c,_0x16d6ee['getRanges']()))){for(const _0x3a8806 of _0x180e6c)_0x16d6ee['addRange'](_0x3a8806);return _0x16d6ee;}const _0x5c5c5e=_0x280966(),_0x1cc858=_0x354a25['id'],_0x29efd3='formatBlock:'+_0x1fa98b,_0x9afa19=this['_setSuggestionData']({'id':_0x5c5c5e,'type':_0x29efd3,'data':_0x4f72e0,'createdAt':new Date(),'authorId':_0x1cc858,'attributes':_0x21d967});for(const _0x26b356 of _0x180e6c)this['_addSuggestionMarker'](_0x29efd3,_0x5c5c5e,_0x1cc858,_0x26b356,u['getMultiRangeId']());return _0x9afa19;}['markDeletion'](_0x47cedb,_0x448b71=null,_0x6a0488={}){if(_0x47cedb['isCollapsed'])return null;const _0x14eb9e=this['editor']['plugins']['get']('Users')['me'],_0x4f813b=new _0x30fc72(_0x47cedb['start'],_0x47cedb['end']);for(const {suggestion:_0xee8fd0,meta:_0x15f05c}of this['_findSuggestions'](_0x4f813b,'insertion'))if(_0x15f05c['isOwn']&&!_0x15f05c['isNextTo']){if(_0xee8fd0['isMultiRange']){const _0x2f1430=_0xee8fd0['getRanges']()['filter'](_0x4d7232=>'$graveyard'!=_0x4d7232['root']['rootName']);_0x2f1430['every'](_0x5ae584=>_0x4f813b['containsRange'](_0x5ae584,!0x0))&&_0xee8fd0['discard']();if(_0x2f1430['some'](_0x5b3c3e=>_0x5b3c3e['containsRange'](_0x4f813b,!0x0))){const _0x4f75f1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x448b71,'accept');return this['forceDefaultExecution'](()=>_0x4f75f1([_0x4f813b],null,_0x6a0488)),null;}}else{const _0x30e387=_0x4f813b['getIntersection'](_0xee8fd0['getFirstRange']());null!==_0x30e387&&_0xee8fd0['_onDiscard']([_0x30e387],null,_0x6a0488);}}if(_0x4f813b['detach'](),_0x4f813b['isCollapsed']||'$graveyard'==_0x4f813b['root']['rootName'])return null;let _0x139e4c=null,_0x533405=_0x4f813b['start'],_0x454dcc=_0x4f813b['end'];const _0x1c008e=this['_findSuggestions'](_0x4f813b,'deletion');for(const {suggestion:_0x19f488,meta:_0xd75c4e}of _0x1c008e){const _0x2e239b=this['_model']['createRange'](_0x533405,_0x454dcc);if(_0xd75c4e['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd75c4e['containsRangeInObject']&&!_0xd75c4e['isInsideObject'])){if(_0x19f488['isMultiRange']){if(!Ht(_0x19f488,_0x6a0488))continue;let _0xe9fccd=!0x0;for(const _0x24445e of _0x19f488['getRanges']()){if(_0x24445e['containsRange'](_0x2e239b,!0x0))return _0x19f488;_0x2e239b['containsRange'](_0x24445e)||(_0xe9fccd=!0x1);}_0xe9fccd&&_0x19f488['discard']();}else{const _0x3aaa79=_0x19f488['getFirstRange']();if(_0x3aaa79['containsRange'](_0x2e239b,!0x0))return _0x19f488;if(!Ht(_0x19f488,_0x6a0488)){_0x2e239b['containsRange'](_0x3aaa79)?_0x19f488['removeMarkers']():_0x3aaa79['containsPosition'](_0x533405)?_0x533405=_0x3aaa79['end']:_0x3aaa79['containsPosition'](_0x454dcc)&&(_0x454dcc=_0x3aaa79['start']);continue;}_0x533405=_0x533405['isBefore'](_0x3aaa79['start'])?_0x533405:_0x3aaa79['start'],_0x454dcc=_0x454dcc['isAfter'](_0x3aaa79['end'])?_0x454dcc:_0x3aaa79['end'],_0x6a0488=Object['assign']({},_0x19f488['attributes']),_0x139e4c?_0x3aaa79['start']['isBefore'](_0x139e4c['getFirstRange']()['start'])?(_0x139e4c['removeMarkers'](),_0x139e4c=_0x19f488):_0x19f488['removeMarkers']():_0x139e4c=_0x19f488;}}}if(_0x139e4c)return this['_setSuggestionRange'](_0x139e4c,this['_model']['createRange'](_0x533405,_0x454dcc)),_0x139e4c;{const _0x153754=_0x280966(),_0x26ec8f=this['_model']['createRange'](_0x533405,_0x454dcc),_0xa61d8b=_0x14eb9e['id'],_0x3ac628=_0x448b71?'deletion:'+_0x448b71:'deletion',_0x333376=this['_setSuggestionData']({'id':_0x153754,'type':_0x3ac628,'createdAt':new Date(),'authorId':_0xa61d8b,'attributes':_0x6a0488});return this['_addSuggestionMarker'](_0x3ac628,_0x153754,_0xa61d8b,_0x26ec8f),_0x333376;}}['markMultiRangeDeletion'](_0x55137a,_0x359ff6='multi',_0x573060={}){const _0x153869=this['editor']['plugins']['get']('Users')['me'],_0x34e4cd=_0x55137a['map'](_0x48793b=>new _0x30fc72(_0x48793b['start'],_0x48793b['end'])),_0x379129=new Set();for(const {suggestion:_0x51d05b,meta:_0x247564}of this['_findSuggestions'](_0x34e4cd,'insertion'))_0x247564['isOwn']&&!_0x247564['isNextTo']&&_0x379129['add'](_0x51d05b);for(const _0x12dde6 of _0x379129)if(_0x12dde6['isMultiRange']){const _0x548925=_0x12dde6['getRanges']();(!_0x12dde6['attributes']||!_0x12dde6['attributes']['skipNestingCheck'])&&(_0x548925['every'](_0x396d7a=>_0x34e4cd['some'](_0x182219=>_0x182219['containsRange'](_0x396d7a,!0x0)))&&_0x12dde6['discard']());if(_0x34e4cd['every'](_0x4c54a1=>_0x548925['some'](_0x3bfc9b=>_0x3bfc9b['containsRange'](_0x4c54a1,!0x0)))){const _0x549834=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x359ff6,'accept');return this['forceDefaultExecution'](()=>_0x549834(_0x55137a,null,_0x573060)),null;}}else{const _0xef1fee=_0x12dde6['getFirstRange']();_0x34e4cd['some'](_0x10f118=>_0x10f118['containsRange'](_0xef1fee,!0x0))&&_0x12dde6['discard']();if(_0x34e4cd['every'](_0xb79471=>_0xef1fee['containsRange'](_0xb79471,!0x0))){const _0x3aca89=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x359ff6,'accept');return this['forceDefaultExecution'](()=>_0x3aca89(_0x34e4cd,null,_0x573060)),null;}}const _0x307211=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x359ff6,'join');let _0x391dfd=null;for(const _0x5666ed of this['getSuggestions']())if(_0x5666ed['author']['id']==_0x153869['id']&&_0x5666ed['isInContent']&&'deletion'==_0x5666ed['type']&&_0x5666ed['subType']==_0x359ff6&&Ht(_0x5666ed,_0x573060)&&(_0x307211(_0x5666ed['getRanges'](),_0x34e4cd)||_0x307211(_0x34e4cd,_0x5666ed['getRanges']()))){if(_0x391dfd){if(_0x5666ed['commentThread']&&_0x5666ed['commentThread']['length'])continue;for(const _0x38cbe9 of _0x5666ed['getRanges']())_0x391dfd['isIntersectingWithRange'](_0x38cbe9)||_0x391dfd['addRange'](_0x38cbe9);_0x5666ed['removeMarkers']();}else{_0x391dfd=_0x5666ed;for(const _0x165507 of _0x34e4cd)_0x5666ed['isIntersectingWithRange'](_0x165507)||_0x5666ed['addRange'](_0x165507);}}if(_0x391dfd)return _0x391dfd;_0x379129['clear']();for(const {suggestion:_0x4b13c0,meta:_0x200f0c}of this['_findSuggestions'](_0x34e4cd,'deletion'))_0x200f0c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x200f0c['containsRangeInObject']&&!_0x200f0c['isInsideObject'])&&Ht(_0x4b13c0,_0x573060)&&_0x379129['add'](_0x4b13c0);for(const _0x91e179 of _0x379129){const _0x2b6f30=_0x91e179['getRanges']();if(!_0x573060||!_0x573060['skipNestingCheck']){if(_0x34e4cd['every'](_0x3a91d4=>_0x2b6f30['some'](_0x36a69d=>_0x36a69d['containsRange'](_0x3a91d4,!0x0))))return _0x91e179;}(!_0x91e179['attributes']||!_0x91e179['attributes']['skipNestingCheck'])&&(_0x2b6f30['every'](_0xe196bf=>_0x34e4cd['some'](_0xc2b97f=>_0xc2b97f['containsRange'](_0xe196bf,!0x0)))&&_0x91e179['discard']());}const _0xe260fa=_0x280966(),_0x501e69=_0x153869['id'],_0xf45570='deletion:'+_0x359ff6,_0x4ff69a=this['_setSuggestionData']({'id':_0xe260fa,'type':_0xf45570,'createdAt':new Date(),'authorId':_0x501e69,'attributes':_0x573060});for(const _0x1d8a99 of _0x34e4cd)_0x1d8a99['detach'](),_0x1d8a99['isCollapsed']||'$graveyard'==_0x1d8a99['root']['rootName']||this['_addSuggestionMarker'](_0xf45570,_0xe260fa,_0x501e69,_0x1d8a99,u['getMultiRangeId']());return _0x4ff69a;}['markAttributeChange'](_0xa5e01,_0x1d2fca,_0x227d8b,_0x1470ff,_0x545f45){if(_0xa5e01['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x116ee9=this['editor']['plugins']['get']('Users')['me']['id'],_0x33735e=Array['from'](this['_suggestions']['values']())['filter'](_0x27a33d=>'attribute'==_0x27a33d['type']&&_0x27a33d['data']['key']==_0x1d2fca&&_0x27a33d['isIntersectingWithRange'](_0xa5e01));if('default'===this['_trackFormatChanges']){const _0x4cef7a=this['_findSuggestions'](_0xa5e01,'insertion')['filter'](({meta:_0x2386cf})=>_0x2386cf['isOwn']&&!_0x2386cf['isInsideObject']&&!_0x2386cf['isNextTo'])['map'](({suggestion:_0x23a187})=>_0x23a187);_0x33735e['unshift'](..._0x4cef7a);}const _0x453584=new Map([[_0xa5e01,_0x227d8b]]);for(const _0xc068ec of _0x33735e){const _0x1a9804='attribute'==_0xc068ec['type']?_0xc068ec['data']['oldValue']:void 0x0,_0x17e9eb=_0xc068ec['getFirstRange'](),_0x1de9b6=Array['from'](_0x453584['keys']())['find'](_0x743c45=>_0x743c45['isIntersecting'](_0x17e9eb));if(!_0x1de9b6)continue;const _0x36199f=_0x1de9b6['getDifference'](_0x17e9eb);this['_isBlockAttribute'](_0x1d2fca)&&'insertion'==_0xc068ec['type']&&0x0!=_0x36199f['length']||(_0x453584['delete'](_0x1de9b6),_0x36199f['forEach'](_0x22ab10=>{_0x453584['set'](_0x22ab10,_0x227d8b);}),'insertion'!=_0xc068ec['type']&&_0x1a9804!=_0x1470ff&&_0x453584['set'](_0x1de9b6['getIntersection'](_0x17e9eb),_0x1a9804));}const _0x310873=[];for(const [_0x3b03c7,_0x1c3615]of _0x453584){const _0x123d66=_0x280966(),_0x4d2176={'key':_0x1d2fca,'oldValue':_0x1c3615,'newValue':_0x1470ff};_0x1d2fca['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x1d2fca});const _0x523fdd=('attribute:'+(_0x1d2fca+'|'+Ut({'newValue':_0x1470ff})))['substring'](0x0,0x3c),_0x377388=this['_setSuggestionData']({'id':_0x123d66,'type':_0x523fdd,'data':_0x4d2176,'createdAt':new Date(),'authorId':_0x116ee9,'attributes':_0x545f45});_0x310873['push'](_0x377388),this['_addSuggestionMarker'](_0x523fdd,_0x123d66,_0x116ee9,_0x3b03c7);}return _0x310873;}['enableDefaultAttributesIntegration'](_0x3c7316){this['enableCommand'](_0x3c7316,(_0x363d7e,..._0x57121b)=>{this['_recordAttributeChanges'](()=>{_0x363d7e(..._0x57121b);});});}['registerBlockAttribute'](_0x4d9d56){this['_blockAttributeKeys']['add'](_0x4d9d56);}['registerInlineAttribute'](_0x3f890b){this['_inlineAttributeKeys']['add'](_0x3f890b);}['_getAttributeKey'](_0x3b7940){return'attribute'==_0x3b7940['type']?_0x3b7940['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4b4b7a,_0x3d1398){const _0x353c0c=_0x4b4b7a['getFirstMarker']();this['_model']['change'](_0xe5fe40=>{_0xe5fe40['updateMarker'](_0x353c0c,{'range':_0x3d1398});});}['_addThreadToSuggestion'](_0x13a74e){const _0x408075=_0x13a74e['id'],_0x506883=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x408075)||this['_commentsRepository']['addCommentThread']({'channelId':_0x506883,'threadId':_0x408075,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1af36d=this['_commentsRepository']['getCommentThread'](_0x408075);_0x1af36d['unbind']('isRemovable'),_0x1af36d['isRemovable']=!0x1,_0x13a74e['commentThread']=_0x1af36d;}['_checkSuggestionCorrectness'](_0x5a8ba8,_0x4cf89e,_0x4f3cea,_0x49515b){if(_0x5a8ba8['type']!=_0x4cf89e||_0x5a8ba8['subType']!=_0x4f3cea||_0x5a8ba8['creator']['id']!=_0x49515b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5c47f2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3dce3f,_0x4a9e55){const _0x589217=_0x3dce3f['getFirstRange']();if(_0x4a9e55['isEqual'](_0x589217))_0x3dce3f['removeMarkers']();else{if(_0x589217['containsRange'](_0x4a9e55)){const _0x1948ba=this['_model']['createPositionAt'](_0x4a9e55['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dce3f,this['_model']['createRange'](_0x589217['start'],_0x1948ba));const _0x537b69=_0x280966(),_0x2e953b=_0x3dce3f['creator']['id'],_0x16d6e9=_0x3dce3f['type']+':'+_0x3dce3f['subType'];this['_setSuggestionData']({'id':_0x537b69,'type':_0x16d6e9,'createdAt':new Date(),'authorId':_0x2e953b,'data':_0x3dce3f['data'],'attributes':_0x3dce3f['attributes']});const _0xf6f62b=this['_model']['createPositionAt'](_0x4a9e55['end']['parent'],'after'),_0x38589e=this['_model']['createRange'](_0xf6f62b,_0x589217['end']);this['_addSuggestionMarker'](_0x16d6e9,_0x537b69,_0x2e953b,_0x38589e);}else{if(_0x589217['containsPosition'](_0x4a9e55['start'])){const _0x3d6991=this['_model']['createPositionAt'](_0x4a9e55['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dce3f,this['_model']['createRange'](_0x589217['start'],_0x3d6991));}else{const _0x428df6=this['_model']['createPositionAt'](_0x4a9e55['end']['parent'],'after');this['_setSuggestionRange'](_0x3dce3f,this['_model']['createRange'](_0x428df6,_0x589217['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x6da2cc){for(const {suggestion:_0x27d49b,meta:_0x1eaf1e}of this['_findSuggestions'](_0x6da2cc,'insertion')){if(!_0x1eaf1e['isOwn'])continue;const _0x220fb9=_0x27d49b['getRanges']();for(const _0x493e8f of _0x220fb9)if(!_0x6da2cc['getDifference'](_0x493e8f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13065c){const _0x4a9cfc=this['editor']['plugins']['get']('Users')['getUser'](_0x13065c);if(!_0x4a9cfc)throw new _0x5c47f2('track-changes-user-not-found',this);return _0x4a9cfc;}['_getExternalAuthor'](_0x469b24){const _0x4b0328=this['editor']['plugins']['get']('Users'),_0x4ccde6=_0x16f00d('external:'+_0x469b24),_0x338f74=_0x4b0328['getUser'](_0x4ccde6);return _0x338f74||_0x4b0328['addUser']({'id':_0x4ccde6,'name':_0x469b24});}['_createSuggestion'](_0x59121e,_0x1be47e,_0x521284,_0xaa12d7,_0x1216a6){const _0xa437b9=this['_getAuthorFromId'](_0xaa12d7),_0x34711c=this['_suggestionFactory']['buildSuggestion'](_0x59121e,_0x1be47e,_0x521284,_0xa437b9,_0x1216a6,_0xe2f3d5=>{this['_updateSuggestionData'](_0x521284,{'attributes':_0xe2f3d5});const _0x343ec8=this['getSuggestion'](_0x521284);this['_joinWithAdjacentSuggestions'](new Set([_0x343ec8])),this['_refreshSuggestionsChain'](new Set([_0x343ec8]));});return this['listenTo'](_0x34711c,'accept',()=>{this['_updateSuggestionData'](_0x521284,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x34711c,'discard',()=>{this['_updateSuggestionData'](_0x521284,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x521284,_0x34711c),this['_suggestionState']['set'](_0x34711c,'notReady'),_0x34711c;}['_splitMarkerName'](_0x5ba2e9){const _0x37a244=_0x5ba2e9['split'](':');return{'group':_0x37a244[0x0],'type':_0x37a244[0x1],'subType':_0x37a244['length']>=0x5?_0x37a244[0x2]:null,'id':_0x37a244['length']<0x5?_0x37a244[0x2]:_0x37a244[0x3],'authorId':_0x37a244['length']<0x5?_0x37a244[0x3]:_0x37a244[0x4],'markerCount':0x6==_0x37a244['length']?_0x37a244[0x5]:null};}['_breakSuggestionMarker'](_0x256ccf,_0x35f22a,_0x27d3b5){const _0x188c70=_0x256ccf['getFirstRange'](),_0xe05fb3=_0x188c70['start'],_0x398d7b=_0x188c70['end'];this['_setSuggestionRange'](_0x256ccf,this['_model']['createRange'](_0xe05fb3,_0x35f22a));const _0x534a5a=_0x280966(),_0x441929=_0x256ccf['creator']['id'],_0x1ce320=_0x256ccf['type']+(_0x256ccf['subType']?':'+_0x256ccf['subType']:'');this['_setSuggestionData']({'id':_0x534a5a,'type':_0x1ce320,'createdAt':new Date(),'authorId':_0x441929,'originalSuggestionId':_0x256ccf['id'],'attributes':_0x256ccf['attributes'],'data':_0x256ccf['data']});const _0x14684d=this['_getAttributeKey'](_0x256ccf);('formatBlock'==_0x256ccf['type']||_0x14684d&&this['_isBlockAttribute'](_0x14684d))&&(_0x27d3b5=this['_model']['createPositionBefore'](_0x27d3b5['parent'])),this['_addSuggestionMarker'](_0x1ce320,_0x534a5a,_0x441929,this['_model']['createRange'](_0x27d3b5,_0x398d7b));}['_findSuggestions'](_0x4540d7,_0x435e95=null){const _0x56ec42=[],_0x55131c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4540d7)||(_0x4540d7=[_0x4540d7]);for(const _0x258ee6 of this['getSuggestions']()){if(!_0x258ee6['isInContent'])continue;if(_0x435e95&&_0x258ee6['type']!=_0x435e95)continue;let _0x3d0b7e=!0x1;for(const _0x7f0fc of _0x258ee6['getRanges']()){for(const _0x359203 of _0x4540d7){const _0x3367d5=_0x359203['start']['isEqual'](_0x7f0fc['end'])||_0x359203['end']['isEqual'](_0x7f0fc['start']);if(_0x3367d5||_0x359203['getIntersection'](_0x7f0fc)){const _0x5dce39=_0x359203['containsRange'](_0x7f0fc)&&Tt(this['_model']['schema'],_0x7f0fc['start'],_0x359203),_0x10aeed=_0x7f0fc['containsRange'](_0x359203)&&Tt(this['_model']['schema'],_0x359203['start'],_0x7f0fc);_0x56ec42['push']({'suggestion':_0x258ee6,'meta':{'isOwn':_0x55131c==_0x258ee6['author'],'isNextTo':_0x3367d5,'isInsideObject':_0x5dce39,'containsRangeInObject':_0x10aeed}}),_0x3d0b7e=!0x0;break;}}if(_0x3d0b7e)break;}}return _0x56ec42;}['_addSuggestionMarker'](_0x47b640,_0x5b437f,_0x12805e,_0x189ec3,_0x21c343){this['_model']['change'](_0x49e57e=>{let _0x4a6373='suggestion:'+_0x47b640+':'+_0x5b437f+':'+_0x12805e;_0x21c343&&(_0x4a6373=_0x4a6373+':'+_0x21c343),_0x49e57e['addMarker'](_0x4a6373,{'range':_0x189ec3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x49a845){const _0x288fc0=_0x49a845['previous'],_0x9727bd=_0x49a845['next'];_0x49a845['previous']=null,_0x49a845['next']=null,null!=_0x288fc0&&_0x288fc0['next']==_0x49a845&&(_0x288fc0['next']=_0x9727bd),null!=_0x9727bd&&_0x9727bd['previous']==_0x49a845&&(_0x9727bd['previous']=_0x288fc0),'ready'==this['_suggestionState']['get'](_0x49a845)&&(this['_suggestionState']['set'](_0x49a845,'removed'),this['fire']('suggestionUnloaded',_0x49a845,_0x288fc0,_0x9727bd));}['_setSuggestionData'](_0x365e39){const _0xa8bb9d=_0x365e39['id'],_0x4ebae9=this['addSuggestionData'](_0x365e39);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4032e0=this['editor']['plugins']['get']('PendingActions'),_0x2c94bc=_0x4ebae9['hasComments'],_0x3e840b=_0x4ebae9['subType']?_0x4ebae9['type']+':'+_0x4ebae9['subType']:_0x4ebae9['type'],_0x567760=this['editor']['locale'],_0x103dbd=_0x4032e0['add'](o(_0x567760,'PENDING_ACTION_SUGGESTION')),_0x2ac2ec={'id':_0xa8bb9d,'type':_0x3e840b,'hasComments':_0x2c94bc,'data':_0x365e39['data']||null,'originalSuggestionId':_0x365e39['originalSuggestionId']||null,'attributes':_0x4ebae9['attributes']};this['_adapter']['addSuggestion'](_0x2ac2ec)['then'](_0x5a8097=>{_0x4ebae9['_saved']=!0x0,_0x4032e0['remove'](_0x103dbd),_0x5a8097&&_0x5a8097['createdAt']&&(this['_suggestions']['get'](_0xa8bb9d)['createdAt']=_0x5a8097['createdAt']);})['catch'](_0x7d853=>{throw _0x5a2c18('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4ebae9['discard']();}),_0x4ebae9['stopListening'](),this['_suggestions']['delete'](_0x4ebae9['id']),this['_suggestionState']['delete'](_0x4ebae9),_0x7d853;});}return _0x4ebae9;}['_isBlockAttribute'](_0xc205c3){return this['_blockAttributeKeys']['has'](_0xc205c3);}['_updateSuggestionData'](_0x22c542,_0xd79e19){const _0x5dea26=this['editor']['plugins']['get']('PendingActions'),_0x237fde=this['getSuggestion'](_0x22c542);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x237fde['_saved']){const _0x456245=_0x5dea26['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x22c542,_0xd79e19)['then'](()=>{_0x5dea26['remove'](_0x456245);});}else _0x237fde['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x22c542,_0xd79e19);});}}['_getSuggestionData'](_0x29e027){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5c47f2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x29e027);}['_handleNewSuggestionMarker'](_0x595c95){const {id:_0x5af506,type:_0x5070a7,subType:_0x1cfacd,authorId:_0x4b0b6b}=this['_splitMarkerName'](_0x595c95),_0x28b74d=this['_suggestions']['get'](_0x5af506)||this['_createSuggestion'](_0x5070a7,_0x1cfacd,_0x5af506,_0x4b0b6b,{});switch(this['_checkSuggestionCorrectness'](_0x28b74d,_0x5070a7,_0x1cfacd,_0x4b0b6b),this['_suggestionState']['get'](_0x28b74d)){case'notReady':this['_getSuggestionData'](_0x5af506)['then'](_0x351cf5=>{let _0x2dba98=Promise['resolve']();_0x351cf5['hasComments']&&(_0x2dba98=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5af506})),_0x2dba98['then'](()=>{this['addSuggestionData'](_0x351cf5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x28b74d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5af506,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x28b74d,'ready'),this['fire']('suggestionLoaded',_0x28b74d);break;case'ready':this['fire']('suggestionChanged',_0x28b74d);}return _0x28b74d['addMarkerName'](_0x595c95),_0x28b74d;}['_refreshSuggestionsChain'](_0x14d035){const _0x475246=Array['from'](_0x14d035),_0x277a2b=_0x475246['filter'](_0x3d27cb=>'attribute'==_0x3d27cb['type']);this['_refreshAttributeSuggestionsChain'](_0x277a2b);const _0x58c5de=_0x475246['filter'](_0x5947ca=>!_0x5947ca['isMultiRange']&&'attribute'!=_0x5947ca['type']),_0x2ae662=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8abd=>!_0x3d8abd['isMultiRange']&&'attribute'!=_0x3d8abd['type']),_0x1c7dcd=_0x2ae662['filter'](_0xe5e6e1=>!_0x14d035['has'](_0xe5e6e1)),_0x295e83=new Map(_0x2ae662['map'](_0x274f05=>[_0x274f05,this['_suggestionFactory']['getSuggestionCallback'](_0x274f05['type'],_0x274f05['subType'],'chain')])),_0x49330e=new Map(_0x2ae662['map'](_0x1f4105=>[_0x1f4105,_0x1f4105['getFirstRange']()])),_0x2edbfa=new Set(),_0x190a6e=new Set();for(let _0x1f9541=0x0;_0x1f9541<_0x58c5de['length'];_0x1f9541++)_0x26c3d4(_0x58c5de[_0x1f9541],_0x58c5de,_0x1f9541+0x1);for(let _0x1dd2bf=0x0;_0x1dd2bf<_0x58c5de['length'];_0x1dd2bf++)_0x26c3d4(_0x58c5de[_0x1dd2bf],_0x1c7dcd,0x0);const _0x3f6be6=new Set();for(let _0x40988b=0x0;_0x40988b<_0x58c5de['length'];_0x40988b++){const _0x34cade=_0x58c5de[_0x40988b];!_0x190a6e['has'](_0x34cade)&&_0x34cade['previous']&&(_0x3f6be6['add'](_0x34cade['previous']),_0x34cade['previous']['next']===_0x34cade&&(_0x34cade['previous']['next']=null),_0x34cade['previous']=null),!_0x2edbfa['has'](_0x34cade)&&_0x34cade['next']&&(_0x3f6be6['add'](_0x34cade['next']),_0x34cade['next']['previous']===_0x34cade&&(_0x34cade['next']['previous']=null),_0x34cade['next']=null);}function _0x26c3d4(_0x59c786,_0x1cd3e7,_0x465ee1){for(let _0x5a1f08=_0x465ee1;_0x5a1f08<_0x1cd3e7['length'];_0x5a1f08++){const _0x1a4a22=_0x36294d(_0x59c786,_0x1cd3e7[_0x5a1f08]);_0x1a4a22&&(_0x1a4a22[0x0]['next']=_0x1a4a22[0x1],_0x1a4a22[0x1]['previous']=_0x1a4a22[0x0],_0x2edbfa['add'](_0x1a4a22[0x0]),_0x190a6e['add'](_0x1a4a22[0x1]));}}function _0x36294d(_0x5c065b,_0x1f5585){if(_0x5c065b['author']['id']!==_0x1f5585['author']['id'])return null;const _0x2991eb=_0x295e83['get'](_0x5c065b)(_0x5c065b,_0x1f5585,_0x49330e['get'](_0x5c065b),_0x49330e['get'](_0x1f5585));if(!_0x2991eb)return null;return _0x295e83['get'](_0x1f5585)(_0x5c065b,_0x1f5585,_0x49330e['get'](_0x5c065b),_0x49330e['get'](_0x1f5585))?_0x2991eb[0x1]['commentThread']&&_0x2991eb[0x1]['commentThread']['length']?null:_0x2991eb:null;}_0x3f6be6['size']&&this['_refreshSuggestionsChain'](_0x3f6be6);}['_refreshAttributeSuggestionsChain'](_0xcc305a){if(0x0==_0xcc305a['length'])return;const _0x199058=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1be3ca=>'attribute'==_0x1be3ca['type']&&_0x1be3ca['_isDataLoaded']),_0x318ef4=[],_0x2f0a05=new Map();for(const _0x55acb7 of _0x199058){const _0x182c5a=_0x16f00d(_0x55acb7['attributes']);_0x2f0a05['has'](_0x182c5a)||(_0x2f0a05['set'](_0x182c5a,_0x318ef4['length']),_0x318ef4['push']([]));const _0x42fb53=_0x2f0a05['get'](_0x182c5a);_0x318ef4[_0x42fb53]['push'](_0x55acb7);}!(function(){_0x318ef4['sort']((_0x450ce1,_0x56e519)=>{const _0x3d2dbc=_0x450ce1[0x0]['createdAt'],_0x5cfca8=_0x56e519[0x0]['createdAt'];return _0x3d2dbc==_0x5cfca8?_0x450ce1[0x0]['attributes']['groupId']<_0x56e519[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d2dbc<_0x5cfca8?-0x1:0x1;});for(const _0x2ee4e6 of _0x318ef4)_0x2ee4e6['sort']((_0x201bf8,_0x437aae)=>_0x201bf8['id']<_0x437aae['id']?-0x1:0x1);}());for(let _0x249308=0x0;_0x249308<_0x318ef4['length'];_0x249308++){if(0x0==_0x318ef4[_0x249308]['length'])continue;const _0x5c56ab=[];for(let _0x3ac3d9=_0x249308+0x1;_0x3ac3d9<_0x318ef4['length'];_0x3ac3d9++)0x0!=_0x318ef4[_0x3ac3d9]['length']&&_0x104092(_0x318ef4[_0x249308],_0x318ef4[_0x3ac3d9])&&_0x5c56ab['push'](_0x3ac3d9);for(const _0x5206ee of _0x5c56ab)_0x318ef4[_0x249308]=_0x318ef4[_0x249308]['concat'](_0x318ef4[_0x5206ee]),_0x318ef4[_0x5206ee]=[];}for(const _0x3c92fe of _0x318ef4)for(let _0x21463d=0x0;_0x21463d<_0x3c92fe['length'];_0x21463d++)_0x3c92fe[_0x21463d]['next']=_0x3c92fe[_0x21463d+0x1]||null;for(const _0x22ae59 of _0x318ef4)for(let _0x2dd03a=0x0;_0x2dd03a<_0x22ae59['length'];_0x2dd03a++)_0x22ae59[_0x2dd03a]['previous']=_0x22ae59[_0x2dd03a-0x1]||null;function _0x104092(_0x34036d,_0x1aacb3){if(_0x34036d[0x0]['attributes']['groupId']!==_0x1aacb3[0x0]['attributes']['groupId']&&_0x34036d[0x0]['author']!==_0x1aacb3[0x0]['author'])return!0x1;if(!function(_0x198ed8,_0x4578b4){if(!_0x198ed8['hasComments']&&!_0x4578b4['hasComments'])return!0x0;if(_0x198ed8['hasComments']&&_0x4578b4['hasComments'])return!0x1;if(_0x198ed8['hasComments']&&_0x4578b4['createdAt']<_0x198ed8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4578b4['hasComments']&&_0x198ed8['createdAt']<_0x4578b4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x34036d[0x0],_0x1aacb3[0x0]))return!0x1;const _0x3669fb=xt(_0x34036d[0x0]['attributes'],'groupId'),_0x39a006=xt(_0x1aacb3[0x0]['attributes'],'groupId');if(!_0x5678e2(_0x3669fb,_0x39a006))return!0x1;return!!_0x34036d['every'](_0x302cc7=>_0x1aacb3['some'](_0x16d2d2=>_0x302cc7['getFirstRange']()['isEqual'](_0x16d2d2['getFirstRange']())))&&_0x1aacb3['every'](_0x58e55e=>_0x34036d['some'](_0x305808=>_0x58e55e['getFirstRange']()['isEqual'](_0x305808['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x33c43f){const _0x2289af=Array['from'](_0x33c43f),_0x9b62d1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4177a0=_0x9b62d1['filter'](_0x197a4f=>!_0x33c43f['has'](_0x197a4f)),_0x4017a9=new Map(_0x2289af['map'](_0x9739ed=>[_0x9739ed,this['_suggestionFactory']['getSuggestionCallback'](_0x9739ed['type'],_0x9739ed['subType'],'join')])),_0x19fe21=new Map(_0x9b62d1['map'](_0x39153e=>[_0x39153e,_0x39153e['getRanges']()]));for(let _0x2e0cfa=0x0;_0x2e0cfa<_0x2289af['length'];_0x2e0cfa++){if(_0x517062(this,_0x2289af[_0x2e0cfa],_0x2289af,_0x2e0cfa+0x1))return!0x0;}for(let _0x19bcf7=0x0;_0x19bcf7<_0x2289af['length'];_0x19bcf7++){if(_0x517062(this,_0x2289af[_0x19bcf7],_0x4177a0,0x0))return!0x0;}return!0x1;function _0x517062(_0x3f6aab,_0x11ae42,_0x2b5615,_0x261096){for(let _0x376582=_0x261096;_0x376582<_0x2b5615['length'];_0x376582++){const _0x567033=_0x2b5615[_0x376582];if(_0x567033['type']!==_0x11ae42['type']||_0x567033['author']['id']!==_0x11ae42['author']['id']||_0x567033['subType']!==_0x11ae42['subType'])continue;if(!Lt(_0x11ae42,_0x567033,['groupId']))continue;if('attribute'==_0x11ae42['type']&&_0x11ae42['data']['oldValue']!=_0x567033['data']['oldValue'])continue;if('attribute'==_0x11ae42['type']&&_0x3f6aab['_isBlockAttribute'](_0x11ae42['data']['key']))continue;if('formatBlock'==_0x11ae42['type']){const _0x575571=_0x3f6aab['editor']['model'],_0x569514=_0x11ae42['getContainedElement']();if(_0x569514&&(_0x575571['schema']['isObject'](_0x569514)||_0x575571['schema']['isLimit'](_0x569514)))continue;}const _0x221d51=_0x4017a9['get'](_0x11ae42),_0x1fcee8=_0x19fe21['get'](_0x11ae42),_0x274265=_0x19fe21['get'](_0x567033),_0x53b0b9=_0x11ae42['commentThread']&&_0x11ae42['commentThread']['length'],_0x1f07de=_0x567033['commentThread']&&_0x567033['commentThread']['length'];if(!_0x53b0b9&&_0x221d51(_0x274265,_0x1fcee8))return _0x3f6aab['_joinSuggestions'](_0x567033,_0x11ae42),_0x19fe21['delete'](_0x11ae42),!0x0;if(!_0x1f07de&&_0x221d51(_0x1fcee8,_0x274265))return _0x3f6aab['_joinSuggestions'](_0x11ae42,_0x567033),_0x19fe21['delete'](_0x567033),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2702db,_0x3065a9){if(_0x2702db['isMultiRange']){for(const _0x37dd40 of _0x3065a9['getRanges']())_0x2702db['addRange'](_0x37dd40);}else{const _0xbfdf17=_0x3065a9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2702db,this['_model']['createRange'](_0x2702db['getFirstRange']()['start'],_0xbfdf17));}_0x3065a9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x583b3e,_0x1e3652){const _0x541f92=_0x583b3e['startsWith']('format')||_0x583b3e['startsWith']('attribute')?'FORMATTING':_0x583b3e['toUpperCase']();return o(this['editor']['locale'],_0x1e3652+'_'+_0x541f92+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x29e02c=this['editor'];if(!_0x29e02c['ui'])return;const {ariaLiveAnnouncer:_0xa0cca7}=_0x29e02c['ui'];_0x270514(this['_model'],({left:_0x473c98,entered:_0xa8f0e7})=>{for(const _0x91b12c of _0x473c98){const {group:_0xedbe74,type:_0x175ac3}=this['_splitMarkerName'](_0x91b12c['name']);if('suggestion'===_0xedbe74){_0xa0cca7['announce'](this['_getMarkerAnnouncementText'](_0x175ac3,'LEAVE'));break;}}for(const _0x1b8dce of _0xa8f0e7){const {group:_0x5f17de,type:_0x59f79c}=this['_splitMarkerName'](_0x1b8dce['name']);if('suggestion'===_0x5f17de){_0xa0cca7['announce'](this['_getMarkerAnnouncementText'](_0x59f79c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x52bfad){if(this['_recordAttributeSuggestions'])return!0x1;const _0x57d72a=this['editor'],_0x585d48=_0x57d72a['model']['document']['differ']['getChanges']();if(0x0==_0x585d48['length'])return!0x1;const _0x236ec3=[],_0x2a8a0f=_0x585d48['filter'](_0xeed0b7=>'attribute'==_0xeed0b7['type']),_0x2765bb=_0x585d48['filter'](_0x1fbdbb=>'insert'==_0x1fbdbb['type']&&'$text'!=_0x1fbdbb['name']),_0x2f48e9=_0x585d48['filter'](_0x57ddba=>'remove'==_0x57ddba['type']&&'$text'!=_0x57ddba['name']);for(const _0x8710f7 of _0x2a8a0f)_0x236ec3['push']({'key':_0x8710f7['attributeKey'],'newValue':_0x8710f7['attributeNewValue'],'oldValue':_0x8710f7['attributeOldValue'],'range':Gt(_0x8710f7['range'],_0x57d72a['model'])});for(const _0x3a275d of _0x2765bb){const _0xf36601=_0x2f48e9['find'](_0x7337fe=>_0x7337fe['position']['isEqual'](_0x3a275d['position']));_0xf36601&&_0x236ec3['push']({'key':m,'newValue':_0x3a275d['name'],'oldValue':_0xf36601['name'],'range':_0x57d72a['model']['createRangeOn'](_0x3a275d['position']['nodeAfter'])});}return 0x0!=_0x236ec3['length']&&this['_reduceExistingSuggestions'](_0x52bfad,_0x236ec3);}['_processAttributeSuggestions'](_0x360dd0){let _0x3b1a9a=!0x1;const _0x3c6d41=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a9d47=>_0x2a9d47['data']['newRange']&&_0x2a9d47['name']['startsWith']('suggestion:attribute:'));for(const _0xf1fab7 of _0x3c6d41){const {subType:_0x18fd0b,id:_0x2b6338}=this['_splitMarkerName'](_0xf1fab7['name']),_0x4ce105=_0x18fd0b['split']('|')[0x0];for(const _0x2680c7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2680c7['id']!=_0x2b6338&&'attribute'==_0x2680c7['type']&&_0x2680c7['data']&&_0x2680c7['data']['key']==_0x4ce105&&_0x2680c7['getFirstRange']()['isIntersecting'](_0xf1fab7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2680c7,_0xf1fab7['data']['newRange'],_0x360dd0),_0x3b1a9a=!0x0);}return _0x3b1a9a;}['_recordAttributeChanges'](_0x1218d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1218d();}['_isRegisteredAttribute'](_0x4d5fa8){const _0x38484f=this['_isBlockAttribute'](_0x4d5fa8),_0x5dcc72=this['_inlineAttributeKeys']['has'](_0x4d5fa8);return _0x38484f||_0x5dcc72;}['_reduceExistingSuggestions'](_0x1ba93c,_0x5ded51){if(0x0==_0x5ded51['length'])return!0x1;let _0x546d9d=!0x1;for(const _0x56dab3 of _0x5ded51){const _0x1c81ca=this['_findSuggestions'](_0x56dab3['range'],'attribute')['filter'](_0x51b58a=>!_0x51b58a['meta']['isNextTo'])['map'](_0x3c561b=>_0x3c561b['suggestion']),_0x4a15d5=_0x16f00d({'newValue':_0x56dab3['newValue']});_0x1c81ca['filter'](_0x1b0d1c=>{const [_0x98e794,_0x4e237f]=_0x1b0d1c['subType']['split']('|');return _0x98e794==_0x56dab3['key']&&_0x4e237f!=_0x4a15d5;})['forEach'](_0x467ec7=>{this['_reduceSuggestionAttributeRange'](_0x467ec7,_0x56dab3['range'],_0x1ba93c),_0x546d9d=!0x0;});}return _0x546d9d;}['_reduceSuggestionAttributeRange'](_0x51cab1,_0x2bee6c,_0x3196c5){const _0x5cce6d=_0x51cab1['getFirstRange']()['getDifference'](_0x2bee6c);0x0!==_0x5cce6d['length']?0x1!==_0x5cce6d['length']?this['_breakSuggestionMarker'](_0x51cab1,_0x2bee6c['start'],_0x2bee6c['end']):this['_setSuggestionRange'](_0x51cab1,_0x5cce6d[0x0]):_0x3196c5['removeMarker'](_0x51cab1['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x137a64){this['_editor']=_0x137a64,this['_model']=_0x137a64['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x411ad4,_0x1a975c,_0x1a4679,_0x189551,_0x45d2ef,_0x33075d){return new u(this['_model'],{'type':_0x411ad4,'subType':_0x1a975c,'id':_0x1a4679,'author':_0x189551,'creator':_0x189551,'attributes':_0x45d2ef,'onAttributesChange':_0x33075d,'onAccept':(..._0x3f3b43)=>this['getSuggestionCallback'](_0x411ad4,_0x1a975c,'accept')(..._0x3f3b43),'onDiscard':(..._0x13e333)=>this['getSuggestionCallback'](_0x411ad4,_0x1a975c,'discard')(..._0x13e333)});}['registerCustomCallback'](_0x3da41a,_0x4440d7,_0x21326b,_0x126ed7){const _0x6dc190=_0x3da41a+':'+_0x4440d7+':'+_0x21326b;this['_customCallbacks']['set'](_0x6dc190,_0x126ed7);}['getSuggestionCallback'](_0x1c2e3a,_0x5bbaa7,_0xfa41bf){const _0x46389c=_0x1c2e3a+':'+_0x5bbaa7+':'+_0xfa41bf;return this['_customCallbacks']['get'](_0x46389c)||this['_defaultCallbacks']['get'](_0x1c2e3a+':'+_0xfa41bf);}['_registerDefaultCallbacks'](){const _0x52f10e=()=>!0x1,_0x1c532d=_0x28314d=>{_0x28314d['sort']((_0x5c562c,_0x20db25)=>_0x5c562c['start']['isBefore'](_0x20db25['start'])?0x1:-0x1),this['_model']['change'](_0x32fb7d=>{for(const _0x178e50 of _0x28314d){let _0x3f0e8f;_0x3f0e8f=_0x178e50['end']['isAtEnd']&&_0x178e50['end']['parent']==_0x178e50['start']['nodeAfter']?_0x32fb7d['createSelection'](_0x178e50['start']['nodeAfter'],'on'):_0x32fb7d['createSelection'](_0x178e50),this['_model']['deleteContent'](_0x3f0e8f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24672c=(_0x2eb2a8,_0x36001b)=>{_0x36001b&&this['_model']['change'](_0x5a10ef=>{const {commandName:_0x5c9e38,commandParams:_0x55b63c=[]}=_0x36001b,_0x34c53b=_0x2eb2a8['map'](_0xc1d163=>(Et(_0xc1d163)&&(_0xc1d163=this['_model']['createRange'](_0xc1d163['end'])),_0xc1d163))['filter'](_0x105d0e=>'$graveyard'!==_0x105d0e['root']['rootName']);if(_0x34c53b['length']<0x1)return;const _0x2a9e46=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b9a47=>_0x30fc72['fromRange'](_0x3b9a47));_0x5a10ef['setSelection'](_0x34c53b);for(const _0x145e46 of this['_editor']['commands']['commands']())_0x145e46['refresh']();_0x55b63c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c9e38,..._0x55b63c);const _0x23efe6=_0x2a9e46['filter'](_0x48a169=>'$graveyard'!=_0x48a169['root']['rootName']);_0x23efe6['length']>0x0&&_0x5a10ef['setSelection'](_0x23efe6);for(const _0x41ee5c of _0x2a9e46)_0x41ee5c['detach']();});},_0x10f93b=(_0x350e9d,_0x55a958)=>0x1==_0x350e9d['length']&&0x1==_0x55a958['length']&&_0x350e9d[0x0]['end']['isEqual'](_0x55a958[0x0]['start']),_0x195500=(_0x520d8c,_0x2c9814,_0x2e46d2,_0x25ae4f)=>Pt(_0x520d8c,_0x2c9814,_0x2e46d2,_0x25ae4f,this['_model'])?[_0x520d8c,_0x2c9814]:Pt(_0x2c9814,_0x520d8c,_0x25ae4f,_0x2e46d2,this['_model'])?[_0x2c9814,_0x520d8c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52f10e),this['_defaultCallbacks']['set']('insertion:discard',_0x1c532d),this['_defaultCallbacks']['set']('insertion:join',_0x10f93b),this['_defaultCallbacks']['set']('insertion:chain',_0x195500),this['_defaultCallbacks']['set']('deletion:accept',_0x1c532d),this['_defaultCallbacks']['set']('deletion:discard',_0x52f10e),this['_defaultCallbacks']['set']('deletion:join',_0x10f93b),this['_defaultCallbacks']['set']('deletion:chain',_0x195500),this['_defaultCallbacks']['set']('formatInline:accept',_0x24672c),this['_defaultCallbacks']['set']('formatInline:discard',_0x52f10e),this['_defaultCallbacks']['set']('formatInline:join',_0x10f93b),this['_defaultCallbacks']['set']('formatInline:chain',_0x52f10e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x24672c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52f10e),this['_defaultCallbacks']['set']('formatBlock:join',_0x10f93b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52f10e),this['_defaultCallbacks']['set']('attribute:accept',_0x52f10e),this['_defaultCallbacks']['set']('attribute:discard',(_0x27c413,_0x5c5038)=>{if(!_0x5c5038)return;const _0x22d828=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x31241f=>{if(_0x5c5038['key']==m)for(const _0x170f2a of _0x27c413){const _0x22c18c=_0x170f2a['start']['nodeAfter'],_0x246521=_0x5c5038['oldValue'];_0x31241f['rename'](_0x22c18c,_0x246521);}else{if(_0x22d828['_isBlockAttribute'](_0x5c5038['key'])){for(const _0x54b4f2 of _0x27c413)void 0x0!==_0x5c5038['oldValue']?_0x31241f['setAttribute'](_0x5c5038['key'],_0x5c5038['oldValue'],_0x54b4f2['start']['nodeAfter']):_0x31241f['removeAttribute'](_0x5c5038['key'],_0x54b4f2['start']['nodeAfter']);}else{for(const _0x59b615 of _0x27c413)_0x5c5038['oldValue']?_0x31241f['setAttribute'](_0x5c5038['key'],_0x5c5038['oldValue'],_0x59b615):_0x31241f['removeAttribute'](_0x5c5038['key'],_0x59b615);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x10f93b);}}function Tt(_0xc6e178,_0x400ae9,_0x390f93){for(const _0x3380b4 of _0x400ae9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3380b4['root']==_0x3380b4)return!0x1;if(!_0x390f93['containsItem'](_0x3380b4))return!0x1;if(_0xc6e178['isObject'](_0x3380b4)||_0xc6e178['isLimit'](_0x3380b4))return!0x0;}return!0x1;}function Et(_0x5364fe){return _0x5364fe['end']['parent']==_0x5364fe['start']['nodeAfter']&&_0x5364fe['end']['isAtStart'];}function Vt(_0x4629dd,_0x507b69,_0x536e17,_0x2e6fcc){const _0x43163d=_0x32c81d=>!_0x32c81d['item']['is']('$textProxy')&&!_0x2e6fcc['isObject'](_0x32c81d['item']),_0x1730df=_0x4629dd['start']['getLastMatchingPosition'](_0x43163d),_0xdd493e=_0x4629dd['end']['getLastMatchingPosition'](_0x43163d,{'direction':'backward'});return(!_0x4629dd['start']['isEqual'](_0x1730df)||!_0x4629dd['end']['isEqual'](_0xdd493e))&&(_0x1730df['isBefore'](_0xdd493e)?_0x536e17['updateMarker'](_0x507b69,{'range':_0x536e17['createRange'](_0x1730df,_0xdd493e)}):_0x536e17['removeMarker'](_0x507b69),!0x0);}function Ut(_0x14178b){return _0x16f00d(_0x14178b);}function Ot(_0x250c45){const _0x5e8f5b=_0x250c45['start']['nodeAfter'];return _0x5e8f5b&&_0x5e8f5b['is']('element');}function Gt(_0x548250,_0x38144e){return null==_0x548250['end']['nodeBefore']&&_0x548250['end']['parent']==_0x548250['start']['nodeAfter']?Ft(_0x548250['start']['nodeAfter'],_0x38144e):_0x548250;}function Ft(_0x1746af,_0x25356d){const _0x84a24a=_0x25356d['schema']['isObject'](_0x1746af)||_0x25356d['schema']['isSelectable'](_0x1746af);return _0x25356d['createRange'](_0x25356d['createPositionAt'](_0x1746af,'before'),_0x84a24a?_0x25356d['createPositionAfter'](_0x1746af):_0x25356d['createPositionAt'](_0x1746af,'end'));}function Pt(_0x1e58b2,_0x48dd6f,_0x3c31f8,_0x443621,_0x3e451a){if(!Lt(_0x1e58b2,_0x48dd6f))return!0x1;if(_0x3c31f8['end']['isEqual'](_0x443621['start']))return!0x0;if(_0x1e58b2['type']!=_0x48dd6f['type'])return!0x1;if(!_0x3c31f8['end']['isTouching'](_0x443621['start']))return!0x1;const _0x29a937=_0x3e451a['createRange'](_0x3c31f8['end'],_0x443621['start'])['getWalker']();for(const _0x40c0cc of _0x29a937)if(['elementStart','elementEnd']['includes'](_0x40c0cc['type'])&&_0x3e451a['schema']['isLimit'](_0x40c0cc['item']))return!0x1;return!0x0;}function Lt(_0x5927a1,_0x9ae859,_0x1c32bb=[]){return!(!_0x5927a1['_isDataLoaded']||!_0x9ae859['_isDataLoaded'])&&_0x5678e2(xt(_0x5927a1['attributes'],_0x1c32bb),xt(_0x9ae859['attributes'],_0x1c32bb));}function Ht(_0x2d3818,_0x309382){const _0x1b7172=qt(_0x2d3818['attributes']),_0x2fdb06=qt(_0x309382);if(!_0x2d3818['_isDataLoaded'])return!0x1;for(const _0x310e5f of Object['keys'](_0x2fdb06))if(!_0x5678e2(_0x1b7172[_0x310e5f],_0x2fdb06[_0x310e5f]))return!0x1;return!0x0;}function qt(_0x2a5b7e){const _0x28843b=Object['assign']({},_0x2a5b7e);return delete _0x28843b['skipNestingCheck'],delete _0x28843b['tablePasteChainId'],_0x28843b;}class ne extends/* #__PURE__ -- @preserve */
25
- _0x5f5866(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x57c64d,_0x4a1e83,_0x1c4bce,_0x26b37c){super(),this['model']=_0x4a1e83,this['view']=_0x1c4bce,this['commentThreadController']=_0x26b37c,this['_editor']=_0x57c64d,this['_acceptCommand']=_0x57c64d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x57c64d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x34236c,_0x32848f)=>_0x34236c||_0x32848f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x52c92e=>_0x52c92e&&this['_editor']['model']['canEditAt'](_0x4a1e83['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x19b769=>_0x19b769&&this['_editor']['model']['canEditAt'](_0x4a1e83['getRanges']())),this['_pendingAction']=null,_0x1c4bce['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1c4bce,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1c4bce,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1c4bce,'change:isDirty',()=>{_0x1c4bce['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x14017f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x14017f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x597b77{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x8bdbb3,_0x3717b4,_0x426002,_0x169f6a){super(_0x8bdbb3),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3717b4['authoredAt']),this['bind']('authoredAt')['to'](_0x3717b4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3717b4,this['_localUser']=_0x426002,this['_config']=_0x169f6a,_0x169f6a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3e7597}=this['_config'];this['commentsListView']=new _0x3e7597(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x4ffc58=>_0x4ffc58+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f61e7,_0x8d189)=>_0x4f61e7||!!_0x8d189);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x513a07}=this['_config'],_0x54285c=new _0x513a07(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x21bfb0=_0x54285c['commentInputView'];return _0x54285c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x21bfb0,'value',(_0x6e23da,_0x1c9562,_0x458259)=>!!_0x458259||_0x6e23da&&!_0x1c9562),_0x21bfb0['on']('submit',(_0x259daa,_0x271ed1)=>{this['fire']('addComment',_0x271ed1),_0x21bfb0['editor']['setData']('');}),_0x21bfb0['on']('cancel',()=>this['focus']()),_0x21bfb0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x54285c;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x21cf29,_0x3edf88,_0xc73d28,_0x5c58cc){super(_0x21cf29,_0x3edf88,_0xc73d28,_0x5c58cc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2aaf59=>_0x2aaf59&&_0x2aaf59[0x0]?_0x2aaf59[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x17e42c,_0x3aef02)=>{let _0x23c89b='';for(const _0x47fbf1 of _0x17e42c)_0x23c89b+='<p>'+ds(_0x47fbf1['content'],_0x47fbf1['color'])+'</p>';return _0x3aef02?_0x23c89b:_0x153237(_0x23c89b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x21cf29,'Accept\x20suggestion'),_0x5369ba['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x21cf29,'Discard\x20suggestion'),_0x5369ba['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xebcb09(_0x21cf29,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1993cc=this['bindTemplate'],_0x958516=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x1993cc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1993cc['to']('authoredAt',_0x56f933=>this['_config']['formatDateTime'](_0x56f933))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x958516['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4809e1={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1993cc['if']('isActive','ck-suggestion-wrapper--active'),_0x1993cc['to']('type',_0x2aed64=>'ck-suggestion-'+_0x2aed64),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x958516}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4809e1['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x4809e1;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x37b9f7,_0x76074c,_0x481b9)=>{this['_descriptionElement']['innerHTML']=_0x481b9;});}['_createButton'](_0x2a2b99,_0x3fafa4,_0x505cfb,_0x3d9f78,_0x4e0c01){const _0x407eb1=new _0x2909a3(this['locale']);return _0x407eb1['set']({'label':_0x2a2b99,'icon':_0x3fafa4,'tooltip':!0x0,'tooltipPosition':_0x4e0c01}),_0x407eb1['extendTemplate']({'attributes':{'class':_0x505cfb}}),_0x407eb1['on']('execute',()=>{this['fire'](_0x3d9f78,this['_model']['id']);}),_0x407eb1;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x1fff86,_0x1dec1b){let _0x55bdb2='';return _0x55bdb2+=_0x1fff86['split']('*')['map']((_0x1f7b17,_0x1e55fc)=>_0x1e55fc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x1f7b17)+'</span>':us(_0x1f7b17))['join'](''),_0x1dec1b&&(_0x55bdb2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1dec1b['value']+'\x22\x20title=\x22'+_0x1dec1b['title']+'\x22></span>'),_0x55bdb2;}function us(_0x58b9ed){const _0x17ff94=document['createElement']('span');return _0x17ff94['innerText']=_0x58b9ed,_0x17ff94['innerHTML'];}var ae='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1ec07f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x485a72,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1a4c2d){super(_0x1a4c2d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x424621=this['editor']['config'];_0x424621['define']('trackChanges.SuggestionThreadView',ie),_0x424621['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x424621['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x44c7be,_0x3edb4d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d78aa,_0x3cf6d1]of this['_handleControllerBuffer']){const _0x508983=this['_suggestionToController']['has'](_0x1d78aa);_0x508983||_0x3cf6d1?_0x508983&&_0x3cf6d1&&this['_destroyController'](_0x1d78aa):this['_initializeController'](_0x1d78aa);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x44c7be,_0x3edb4d);}['init'](){const _0x2a6f88=this['editor'],_0x8da8ff=_0x2a6f88['plugins']['get']('TrackChangesEditing'),_0x59aba2=_0x2a6f88['plugins']['get']('Annotations'),_0x23885a=_0x2a6f88['plugins']['get']('EditorAnnotations'),_0x500d8f=_0x2a6f88['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x23885a['addSourceCollector'](()=>{const _0x4c0e1f=[];for(const [_0x2a2f6b,_0x5b7211]of Array['from'](this['_suggestionToController'])){const _0x489a36=_0x2a2f6b['getAllAdjacentSuggestions'](),_0x2439c4=[];for(const _0x3bbfed of _0x489a36){if(!_0x3bbfed['isInContent'])continue;if(_0x3bbfed['isMultiRange']){_0x2439c4['push'](..._0x3bbfed['getRanges']());continue;}const _0x2a6ba7=_0x3bbfed['getFirstRange']();if(_0x2439c4['length']>0x0){const _0x5c310d=_0x2439c4[0x0]['getJoined'](_0x2a6ba7);if(_0x5c310d){_0x2439c4[0x0]=_0x5c310d;continue;}}_0x2439c4['push'](_0x2a6ba7);}_0x4c0e1f['push']([_0x5b7211['view'],_0x2439c4]);}return _0x4c0e1f;}),this['listenTo'](_0x8da8ff,'suggestionLoaded',(_0x5cfe92,_0x1447ad)=>{this['listenTo'](_0x1447ad,'change:previous',(_0x4af126,_0xd95b67,_0x4d07d7,_0x77a663)=>{_0x1447ad['isInContent']&&(null==_0x4d07d7?(this['_updateController'](_0x77a663['head']),this['_handleSuggestionControllerDelayed'](_0x1447ad,!0x1)):(this['_updateController'](_0x4d07d7['head']),null==_0x77a663&&this['_handleSuggestionControllerDelayed'](_0x1447ad,!0x0)));}),null!==_0x1447ad['previous']?this['_updateController'](_0x1447ad['head']):this['_handleSuggestionControllerDelayed'](_0x1447ad,!0x1);}),this['listenTo'](_0x8da8ff,'suggestionUnloaded',(_0x283248,_0x1b3cb0,_0x5d2479)=>{this['stopListening'](_0x1b3cb0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1b3cb0),this['_suggestionToController']['has'](_0x1b3cb0)&&this['_destroyController'](_0x1b3cb0),_0x5d2479&&this['_updateController'](_0x5d2479['head']);}),this['listenTo'](_0x8da8ff,'suggestionChanged',(_0x1bf185,_0x3d0c5c)=>{this['_updateController'](_0x3d0c5c);}),this['listenTo'](_0x59aba2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x500d8f,'addComment',(_0x41c312,{threadId:_0x2313db,isFromAdapter:_0x31dbf2})=>{if(_0x31dbf2||!_0x8da8ff['hasSuggestion'](_0x2313db))return;const _0x42e936=_0x8da8ff['getSuggestion'](_0x2313db);this['_suggestionToController']['get'](_0x42e936)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x226519=this['editor']['plugins']['get']('Annotations'),_0x327e50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x236fe8=Array['from'](_0x226519['activeAnnotations'],_0x4ffad4=>_0x4ffad4['innerView'])['filter'](_0x4b836e=>this['_viewToController']['has'](_0x4b836e)),_0x55e817=[];for(const _0x5583f2 of _0x236fe8){const _0xa72239=this['_viewToController']['get'](_0x5583f2)['model']['getAllAdjacentSuggestions']();_0x55e817['push'](..._0xa72239['reduce']((_0x37d293,_0x2a91da)=>[..._0x37d293,..._0x2a91da['getMarkerNames']()],[]));}_0x327e50['activeMarkers']=_0x55e817;}['_addUIComponentsToFactory'](){const _0x5e26bc=this['editor'],_0x5e8d5c=_0x5e26bc['locale'],_0x571dfa=o(_0x5e8d5c,'Track\x20changes'),_0x4ebd56=new Wt([{'type':'switchbutton','model':new _0x98a43d({'withText':!0x0,'isToggleable':!0x0,'label':_0x571dfa,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x98a43d({'withText':!0x0,'label':o(_0x5e8d5c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x98a43d({'withText':!0x0,'label':o(_0x5e8d5c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x98a43d({'withText':!0x0,'label':o(_0x5e8d5c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x98a43d({'withText':!0x0,'label':o(_0x5e8d5c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1fa0b0 of _0x4ebd56)if(re(_0x1fa0b0)){const _0x539f0c=_0x5e26bc['commands']['get'](_0x1fa0b0['model']['commandName']);_0x1fa0b0['model']['bind']('isOn','isEnabled')['to'](_0x539f0c,'value','isEnabled');}_0x5e26bc['ui']['componentFactory']['add']('trackChanges',_0x2f2e9e=>this['_createToolbarButton'](_0x2f2e9e,_0x4ebd56,_0x571dfa)),_0x5e26bc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4adb00=>this['_createMenuBarMenu'](_0x4adb00,_0x4ebd56,_0x571dfa));}['_createToolbarButton'](_0x5e4b90,_0x23358b,_0x48dd2d){const _0x179bf4=Jt(_0x5e4b90,te),_0x365615=this['editor']['commands']['get']('trackChanges');_0x179bf4['buttonView']['set']({'tooltip':_0x48dd2d,'label':_0x48dd2d,'icon':ae}),_0x179bf4['buttonView']['bind']('isOn')['to'](_0x365615,'value'),_0x179bf4['buttonView']['on']('execute',()=>{_0x365615['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x179bf4,_0x23358b,{'role':'menu'});const _0x5d474a=[];for(const _0x3431b8 of _0x23358b)re(_0x3431b8)&&_0x5d474a['push'](this['editor']['commands']['get'](_0x3431b8['model']['commandName']));const _0x2469dc=_0x179bf4['buttonView'];return _0x2469dc['actionView']['unbind']('isEnabled'),_0x2469dc['arrowView']['unbind']('isEnabled'),_0x2469dc['actionView']['bind']('isEnabled')['to'](_0x365615,'isEnabled'),_0x2469dc['arrowView']['bind']('isEnabled')['toMany'](_0x5d474a,'isEnabled',(..._0xacddc7)=>_0xacddc7['some'](_0x10cdd9=>_0x10cdd9)),_0x179bf4['on']('execute',_0x25fe52=>{this['editor']['execute'](_0x25fe52['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x179bf4;}['_createMenuBarMenu'](_0x572a46,_0x25d512,_0x528d96){const _0x5900df=new Qt(_0x572a46),_0x1a8807=this['editor']['commands']['get']('trackChanges');_0x5900df['buttonView']['set']({'label':_0x528d96,'icon':ae});const _0x4dce27=new Xt(_0x572a46);for(const _0x115df3 of _0x25d512){if('separator'==_0x115df3['type']){_0x4dce27['items']['add'](new Kt(_0x572a46));continue;}const _0x276f54=new Yt(_0x572a46,_0x5900df),_0x2a9019=new Zt(_0x572a46),_0x5ca261=_0x115df3['model'];_0x2a9019['bind'](...Object['keys'](_0x5ca261))['to'](_0x5ca261),_0x2a9019['delegate']('execute')['to'](_0x5900df),_0x2a9019['on']('execute',()=>{this['editor']['execute'](_0x5ca261['commandName']),this['editor']['editing']['view']['focus']();}),_0x276f54['children']['add'](_0x2a9019),_0x4dce27['items']['add'](_0x276f54);}return _0x5900df['bind']('isEnabled')['to'](_0x1a8807,'isEnabled'),_0x5900df['panelView']['children']['add'](_0x4dce27),_0x5900df;}['_initializeController'](_0x3a57a0){const _0x2c734f=this['editor'],_0x56e861=_0x2c734f['config'],_0x29b5fc=_0x2c734f['plugins']['get']('Annotations'),_0x43db83=_0x2c734f['plugins']['get']('CommentsRepository'),_0x481152=_0x2c734f['plugins']['get']('EditorAnnotations'),_0x2992c0=_0x2c734f['plugins']['get'](_0x485a72)['me'],_0x48be98=_0x56e861['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x485063,CommentThreadInputView:_0x43b129}=_0x2c734f['plugins']['get']('CommentsUI');let _0x45f035,_0x2f5722;this['_annotationViews']['has'](_0x3a57a0['id'])?(_0x2f5722=this['_annotationViews']['get'](_0x3a57a0['id']),_0x45f035=_0x2f5722['mainView']):(_0x45f035=new _0x48be98(_0x2c734f['locale'],_0x3a57a0,_0x2992c0,{'disableComments':this['_disableComments'],'editorConfig':_0x56e861['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x56e861['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x56e861['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x56e861['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x231b59(_0x56e861['get']('locale')),'CommentView':_0x56e861['get']('comments')['CommentView'],'CommentsListView':_0x485063,'CommentThreadInputView':_0x43b129}),_0x45f035['acceptButton']['on']('execute',()=>{_0x2c734f['editing']['view']['focus']();}),_0x45f035['discardButton']['on']('execute',()=>{_0x2c734f['editing']['view']['focus']();}),_0x2f5722=_0x29b5fc['createAnnotationView'](this['editor']['locale'],_0x45f035),_0x2f5722['bind']('isDirty')['to'](_0x45f035,'isDirty'),_0x2f5722['bind']('length')['to'](_0x45f035),_0x2f5722['bind']('type')['to'](_0x45f035,'type',_0x21b2f4=>'suggestion-'+_0x21b2f4),this['_annotationViews']['set'](_0x3a57a0['id'],_0x2f5722));const _0x327f3f=_0x43db83['createCommentThreadController'](_0x3a57a0['commentThread'],_0x45f035),_0x10324b=new ne(_0x2c734f,_0x3a57a0,_0x45f035,_0x327f3f),_0x5e19e6=_0x3a57a0['getAllAdjacentSuggestions']()['filter'](_0xbee0ef=>_0xbee0ef['isInContent']);_0x45f035['descriptionParts']=_0x2c734f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5e19e6),this['_suggestionToController']['set'](_0x3a57a0,_0x10324b),this['_viewToController']['set'](_0x45f035,_0x10324b);const _0x2642cc=_0x29b5fc['createAnnotation']({'view':_0x2f5722,'target':()=>{const _0x56d227=[],_0x51919b=_0x3a57a0['getAllAdjacentSuggestions']()['filter'](_0x1d3320=>_0x1d3320['isInContent']);for(const _0x18b147 of _0x51919b)_0x56d227['push'](..._0x18b147['getMarkers']());return _0xff7661(_0x2c734f['editing'],_0x56d227);},'type':()=>'suggestion-'+_0x10324b['view']['type']});_0x43db83['_bindAnnotationToEditors'](_0x45f035,_0x2642cc),_0x29b5fc['add'](_0x2642cc),_0x481152['registerAnnotation'](_0x2642cc);}['_destroyController'](_0xc3d26){const _0x1b9921=this['editor']['plugins']['get']('CommentsRepository'),_0x209607=this['editor']['plugins']['get']('Annotations'),_0x33606f=this['_suggestionToController']['get'](_0xc3d26),_0x2a3608=_0x33606f['view'],_0x470281=_0x209607['getByInnerView'](_0x2a3608);_0x1b9921['_unbindEditors'](_0x2a3608),_0x470281&&_0x209607['remove'](_0x470281),this['_suggestionToController']['delete'](_0xc3d26),this['_viewToController']['delete'](_0x2a3608),_0x33606f['destroy']();}['_updateController'](_0x28d762){if(!_0x28d762['isInContent']||!this['_suggestionToController']['has'](_0x28d762))return;const _0x22ecef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8429c8=this['_suggestionToController']['get'](_0x28d762),_0x33a30e=_0x28d762['getAllAdjacentSuggestions']();_0x8429c8['view']['descriptionParts']=_0x22ecef['descriptionFactory']['getDescriptions'](_0x33a30e);}['destroy'](){for(const _0x1eda76 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1eda76);for(const _0x238a53 of this['_annotationViews']['values']())_0x238a53['mainView']['destroy']();super['destroy']();}}function re(_0x427ba8){return'model'in _0x427ba8;}class k extends _0x1ec07f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3cfa9b){this['editor']['plugins']['get'](p)['adapter']=_0x3cfa9b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3b5faf){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3b5faf);}['getSuggestions']({skipNotAttached:_0x5d8d90=!0x1,toJSON:_0x2feedf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5d8d90,'toJSON':_0x2feedf});}['getSuggestion'](_0x47ad35){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x47ad35);}}const T=['Pagination'];class P extends _0x1ec07f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4ce870=this['editor'];if(_0x4ce870['config']['define']('trackChangesData.editorCreator',_0x4826a7=>{const _0x2e2d2f=_0x4ce870['model']['document']['getRootNames']()['reduce']((_0x9bd249,_0x1b1e62)=>(_0x9bd249[_0x1b1e62]='',_0x9bd249),{});return _0x4ce870['constructor']['create'](_0x2e2d2f,_0x4826a7);}),'function'!=typeof _0x4ce870['config']['get']('trackChangesData')['editorCreator'])throw new _0x5c47f2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xb74c87){return N(this['editor'],!0x0,_0xb74c87);}['getDataWithDiscardedSuggestions'](_0x128741){return N(this['editor'],!0x1,_0x128741);}}class D extends _0x1ec07f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3d246a){super(_0x3d246a),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'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')['_adapter']=null;}}function v(_0x2fb3ef){return void 0x0!==_0x2fb3ef['getRootsAttributes'];}async function N(_0x32d84e,_0x120ff6,_0x1e634b){const _0xbb4868=_0x1344ad(_0x32d84e,T);_0xbb4868['plugins']['push'](p,D),_0xbb4868['rootsAttributes']=v(_0x32d84e)?_0x32d84e['getRootsAttributes']():void 0x0;const _0x3bdf46=document['createDocumentFragment'](),_0x1fab4b=_0x32d84e['config']['get']('trackChangesData')['editorCreator'],_0x168f72=await _0x1fab4b(_0xbb4868,()=>function(_0xd39b41){const _0x503deb=document['createElement']('div');return _0xd39b41['appendChild'](_0x503deb),_0x503deb;}(_0x3bdf46));!function(_0x4ce7b6,_0x53f1f7){const _0x1c8425=_0x4ce7b6['model']['document']['getRootNames']()['reduce']((_0xf58bea,_0x3cebfe)=>(_0xf58bea[_0x3cebfe]=_0x4ce7b6['data']['get']({'rootName':_0x3cebfe}),_0xf58bea),{}),_0x1f20ab=_0x4ce7b6['plugins']['get']('Users')['users']['map'](_0x3e008f=>({'id':_0x3e008f['id'],'name':_0x3e008f['name']})),_0x516a54=_0x4ce7b6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52b99b=_0x4ce7b6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x51e450=_0x53f1f7['plugins']['get']('Users'),_0x60906=_0x53f1f7['plugins']['get']('TrackChangesEditing'),_0x270d96=_0x53f1f7['plugins']['get']('CommentsRepository');for(const _0x35a091 of _0x1f20ab)_0x51e450['getUser'](_0x35a091['id'])||_0x51e450['addUser'](_0x35a091);_0x51e450['me']||_0x51e450['useAnonymousUser']();for(const _0x4a0b65 of _0x52b99b)_0x270d96['addCommentThread'](_0x4a0b65);for(const _0x398d1a of _0x516a54)_0x60906['addSuggestionData'](_0x398d1a);_0x53f1f7['data']['set'](_0x1c8425);}(_0x32d84e,_0x168f72),_0x168f72['execute'](_0x120ff6?'acceptAllSuggestions':'discardAllSuggestions');const _0x143854=v(_0x168f72)?_0x168f72['getFullData'](_0x1e634b):_0x168f72['data']['get'](_0x1e634b);return await _0x168f72['destroy'](),_0x143854;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x23b8b9,PendingActions as _0x4fe327,icons as _0x149aaf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x14dd54,ObservableMixin as _0x2ded99,uid as _0x2905f1,insertToPriorityArray as _0x5a42d9,priorities as _0x2bf5ee,logWarning as _0x5d5e63,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1f2ba8,View as _0x83905e,ButtonView as _0x2e6acd,ViewModel as _0x480261,createDropdown as Jt,SplitButtonView as te,addListToDropdown as zt,MenuBarMenuView as Qt,MenuBarMenuListView as Xt,ListSeparatorView as Kt,MenuBarMenuListItemView as Yt,MenuBarMenuListItemButtonView as Zt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x40cd8f,hashObject as _0xd7b463,surroundingMarkersDetector as _0x2606e7,trimHtml as _0x5924bf,UserView as _0x20177d,getDateTimeFormatter as _0x3b8e81,getAllMarkersDomElementsSorted as _0x49cd65,sanitizeEditorConfig as _0x339627}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x23a60a,LiveRange as _0x5df64f,LivePosition as _0x33b8bc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x11e103,toWidget as _0x4a1165}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x459c5f,set as _0x804ae2,isEqual as _0x718abf,unset as _0x203370,omit as xt}from'lodash-es';import{Delete as _0x1b36e0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2a76a7,ShiftEnter as _0x520e55}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2b0ac5,_0x3e8ee5){super(_0x2b0ac5),this['_enabledCommands']=_0x3e8ee5,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x4750ab of this['editor']['commands']['commands']())_0x4750ab['affectsData']&&!this['_enabledCommands']['has'](_0x4750ab)&&_0x4750ab['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d3c02 of this['editor']['commands']['commands']())_0x1d3c02['affectsData']&&!this['_enabledCommands']['has'](_0x1d3c02)&&_0x1d3c02['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xc5f239,_0x833c03){super(_0xc5f239),this['_suggestions']=_0x833c03,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x9bb380){const _0x3cd283=this['_suggestions']['get'](_0x9bb380);if(!_0x3cd283)throw new _0x14dd54('track-changes-accept-suggestion-not-found',this);const _0x32c514=_0x3cd283['getRanges']();this['editor']['model']['canEditAt'](_0x32c514)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3cd283);}}class B extends ts{['_suggestions'];constructor(_0x338aca,_0x28135c){super(_0x338aca),this['_suggestions']=_0x28135c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1d850c){const _0x1c8d4a=this['_suggestions']['get'](_0x1d850c);if(!_0x1c8d4a)throw new _0x14dd54('track-changes-discard-suggestion-not-found',this);const _0x5d2c1f=_0x1c8d4a['getRanges']();this['editor']['model']['canEditAt'](_0x5d2c1f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1c8d4a);}}function ss(_0x50975d){return _0x50975d['sort']((_0x5a602c,_0x13d340)=>'deletion'==_0x5a602c['type']&&'deletion'!=_0x13d340['type']?-0x1:'deletion'!=_0x5a602c['type']&&'deletion'==_0x13d340['type']?0x1:0x0);}function to(_0x10a314,_0x23d853){let _0x476a15,_0x516b23=0x0;const _0x44459d=[],_0x57cdf7=_0x23d853['schema'];for(;_0x516b23<_0x10a314['length'];){const _0x5dcf8c=_0x10a314[_0x516b23],_0x61e03c=_0x10a314[_0x516b23+0x1];_0x476a15||(_0x476a15=_0x23d853['createPositionBefore'](_0x5dcf8c)),co(_0x23d853,_0x5dcf8c,_0x61e03c)||(_0x44459d['push'](_0x23d853['createRange'](_0x476a15,_0x57cdf7['isObject'](_0x5dcf8c)?_0x23d853['createPositionAfter'](_0x5dcf8c):_0x23d853['createPositionAt'](_0x5dcf8c,'end'))),_0x476a15=null),_0x516b23++;}return _0x44459d;}function co(_0x22c795,_0x370c63,_0x1c71c1){if(!_0x1c71c1)return!0x1;const _0x320344=_0x22c795['createPositionAfter'](_0x370c63),_0x376edf=_0x22c795['createPositionBefore'](_0x1c71c1);return _0x320344['isTouching'](_0x376edf);}function rs(_0x12d0a6,_0x34aacf,_0x4eb77f){for(;_0x4eb77f['length'];){const _0x5b6df4=_0x4eb77f['splice'](0x0,0x64);_0x12d0a6['change'](()=>{for(const _0x46e882 of _0x5b6df4)_0x46e882['isInContent']&&_0x34aacf['execute'](_0x46e882['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5bff46,_0x55c1a7,_0x37cf5f){super(_0x5bff46),this['_command']=_0x55c1a7,this['_suggestions']=_0x37cf5f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x549edc=Array['from'](this['_suggestions']['values']())['some'](_0x5003ea=>_0x5003ea['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x549edc;}['execute'](){const _0x541d77=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1321d6 of _0x541d77){const _0x50ee53=_0x1321d6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x50ee53))return;}rs(this['editor']['model'],this['_command'],_0x541d77);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x37a631,_0x48a4ea,_0x3cc6eb){super(_0x37a631),this['_command']=_0x48a4ea,this['_suggestions']=_0x3cc6eb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5c0c6f=this['editor']['model']['document']['selection'],_0x47a67d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1534e8,_0x323f40){const _0x34e3e5=Array['from'](_0x1534e8['getRanges']()),_0x2e85ab=new Set();for(const _0x3b9bd5 of _0x323f40)if(_0x3b9bd5['isInContent']){for(const _0x2808d7 of _0x34e3e5)for(const _0x493ea7 of _0x3b9bd5['getRanges']())(_0x2808d7['isIntersecting'](_0x493ea7)||_0x1534e8['isCollapsed']&&!_0x3b9bd5['isMultiRange']&&_0x3b9bd5['next']&&_0x493ea7['end']['isTouching'](_0x2808d7['start']))&&_0x2e85ab['add'](_0x3b9bd5);}return _0x2e85ab;}(_0x5c0c6f,_0x47a67d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x293038=ss(Array['from'](this['_selectedSuggestions']));for(const _0x29cfdd of _0x293038){const _0x4a4996=_0x29cfdd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a4996))return;}rs(this['editor']['model'],this['_command'],_0x293038);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x2ded99(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3a234c,_0x3e864a){super(),this['id']=_0x3e864a['id'],this['type']=_0x3e864a['type'],this['subType']=_0x3e864a['subType']||null,this['author']=_0x3e864a['author'],this['creator']=_0x3e864a['creator']||_0x3e864a['author'],this['isExternal']=Boolean(_0x3e864a['attributes']&&_0x3e864a['attributes']['@external']),this['data']=null,this['_model']=_0x3a234c,this['_onAccept']=_0x3e864a['onAccept'],this['_onDiscard']=_0x3e864a['onDiscard'],this['_onAttributesChange']=_0x3e864a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3e864a['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x3ef1e6=this;for(;_0x3ef1e6['previous'];)_0x3ef1e6=_0x3ef1e6['previous'];return _0x3ef1e6;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x35afb9){this['_markerNames']['add'](_0x35afb9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x930dea=>this['_model']['markers']['get'](_0x930dea))['filter'](_0x10f0db=>_0x10f0db);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2ecc62=>{for(const _0x28a469 of this['getMarkers']())_0x2ecc62['removeMarker'](_0x28a469);}),this['_markerNames']['clear']();}['removeMarker'](_0x3defc9){this['_model']['change'](_0xca7baf=>{_0xca7baf['removeMarker'](_0x3defc9);}),this['_markerNames']['delete'](_0x3defc9);}['addRange'](_0x151d4e){const _0x1a84a7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1a84a7),this['_model']['change'](_0x199ea1=>{_0x199ea1['addMarker'](_0x1a84a7,{'range':_0x151d4e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x35fe9a){for(const _0x399ab2 of this['getRanges']())if(_0x399ab2['isIntersecting'](_0x35fe9a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2bb758=>_0x2bb758['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x577b22,_0x3d0ca4)=>[..._0x577b22,..._0x3d0ca4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1856c7=this['getRanges']();if(0x1!=_0x1856c7['length'])return null;const _0x517216=_0x1856c7[0x0],_0x30890c=_0x517216['start']['nodeAfter'],_0x3105a6=_0x517216['end']['nodeBefore'];return _0x30890c instanceof _0x23a60a?_0x30890c!=_0x3105a6?null:_0x30890c:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x30f76f=[];let _0x4bc40e=this['head'];for(;_0x4bc40e;)_0x30f76f['push'](_0x4bc40e),_0x4bc40e=_0x4bc40e['next'];return _0x30f76f;}['setAttribute'](_0x5db38d,_0x46daac){const _0xf286ea=_0x459c5f(this['attributes']);_0x804ae2(_0xf286ea,_0x5db38d,_0x46daac),_0x718abf(_0xf286ea,this['attributes'])||(this['attributes']=_0xf286ea,this['_onAttributesChange'](_0xf286ea));}['removeAttribute'](_0x1f0bdc){const _0x1efb08=_0x459c5f(this['attributes']);_0x203370(_0x1efb08,_0x1f0bdc),_0x718abf(_0x1efb08,this['attributes'])||(this['attributes']=_0x1efb08,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x2905f1()['substr'](0x1,0x5);}}function o(_0x38a1f2,_0x47f15b,_0x40a8ce){const t=_0x38a1f2['t'];switch(_0x47f15b){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x40a8ce);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x40a8ce);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x40a8ce);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x40a8ce);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x40a8ce);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x40a8ce);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x40a8ce);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40a8ce);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x40a8ce);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x40a8ce);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x40a8ce);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x40a8ce);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x40a8ce);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x40a8ce);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x40a8ce);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x40a8ce);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x40a8ce);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x40a8ce);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x40a8ce);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x40a8ce);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x40a8ce);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x40a8ce);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x40a8ce);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x40a8ce);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x40a8ce);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x40a8ce);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x40a8ce);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x40a8ce);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x40a8ce);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x40a8ce);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x40a8ce);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x40a8ce);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x40a8ce);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x40a8ce);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x40a8ce);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x40a8ce);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x40a8ce);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x40a8ce);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x40a8ce);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x40a8ce);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x40a8ce);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x40a8ce);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x40a8ce);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x40a8ce);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x40a8ce);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x40a8ce);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x40a8ce);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x47f15b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xeedf9e,_0x3f79ac){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xeedf9e,this['_locale']=_0x3f79ac;}['getDescriptions'](_0x99434f){const _0x58d667=[],_0x528709=new Set(),_0x32d3db=new Set();for(let _0x1c0ac0=0x0;_0x1c0ac0<_0x99434f['length'];_0x1c0ac0++){const _0x2267dc=_0x99434f[_0x1c0ac0];if(!_0x2267dc['isInContent'])continue;const _0x1661a3=this['_handleCustomCallbackDescription'](_0x2267dc);if(_0x1661a3){if(null!=_0x2267dc['subType']){if(_0x528709['has'](_0x2267dc['subType']))continue;_0x528709['add'](_0x2267dc['subType']);}_0x58d667['push'](_0x1661a3);}else{if('attribute'!=_0x2267dc['type'])'insertion'!=_0x2267dc['type']&&'deletion'!=_0x2267dc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x58d667,_0x2267dc,_0x99434f[_0x1c0ac0+0x1]);else{const _0xe6b10c=_0x2267dc['data']['key'];if(_0x32d3db['has'](_0xe6b10c))continue;_0x32d3db['add'](_0x2267dc['data']['key']),_0xe6b10c==m?this['_handleRenameSuggestionDescription'](_0x58d667,_0x2267dc):this['_handleAttributeSuggestionDescription'](_0x58d667,_0x2267dc);}}}return this['_resolveDescriptionItems'](_0x58d667);}['registerDescriptionCallback'](_0x1452ad){this['_customCallbacks']['push'](_0x1452ad);}['registerElementLabel'](_0x7a5aa0,_0x4e7494,_0x1e055d=_0x2bf5ee['normal']){'function'==typeof _0x7a5aa0?_0x5a42d9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x7a5aa0,'label':_0x4e7494,'priority':_0x1e055d}):this['_itemLabels']['set'](_0x7a5aa0,_0x4e7494);}['registerAttributeLabel'](_0x423229,_0x5185bf){this['_attributeLabels']['set'](_0x423229,_0x5185bf);}['getItemLabel'](_0x4ebaf6,_0x42b259=0x1){let _0x414888;for(const _0x25c87a of this['_itemLabelsCallbacks'])if(_0x25c87a['matchingCallback'](_0x4ebaf6)){_0x414888=_0x25c87a['label'];break;}return _0x414888||(_0x414888=this['_itemLabels']['get'](_0x4ebaf6['name'])),_0x414888?_0x414888(_0x42b259):0x1!==_0x42b259?_0x42b259+'\x20'+_0x4ebaf6['name']+'s':''+_0x4ebaf6['name'];}['_addDescriptionItems'](_0x37b981,_0x2e3d16){const _0x51b460=_0x2e3d16['getFirstRange']()['getWalker'](),_0x364a75='insertion'==_0x2e3d16['type']?'add':'remove';for(const _0x4aae09 of _0x51b460){const _0x779dd9=_0x4aae09['item'],_0x27ce9e=_0x37b981[_0x37b981['length']-0x1];if(_0x779dd9['is']('$textProxy'))_0x27ce9e&&_0x27ce9e['type']['indexOf']('Container')>-0x1&&_0x37b981['pop'](),_0x27ce9e&&'text'==_0x27ce9e['type']?_0x27ce9e[_0x364a75]+=_0x779dd9['data']:_0x37b981['push']({'type':'text','add':'add'==_0x364a75?_0x779dd9['data']:'','remove':'remove'==_0x364a75?_0x779dd9['data']:''});else{if(this['_schema']['isObject'](_0x779dd9)){const _0x4a4967=_0x779dd9;if(_0x27ce9e&&_0x27ce9e['type']['indexOf']('Container')>-0x1&&_0x37b981['pop'](),'elementEnd'==_0x4aae09['type'])continue;_0x27ce9e&&_0x27ce9e['type']==_0x364a75+'Object'&&_0x27ce9e['element']['name']==_0x4a4967['name']?_0x27ce9e['quantity']++:_0x37b981['push']({'type':_0x364a75+'Object','element':_0x4a4967,'quantity':0x1}),_0x51b460['skip'](_0x3ee917=>!('elementEnd'==_0x3ee917['type']&&_0x3ee917['item']==_0x779dd9));}else{if(this['_schema']['checkChild'](_0x779dd9,'$text')||_0x779dd9['is']('element','softBreak')){const _0x59ed36=_0x779dd9;if('add'==_0x364a75&&'elementStart'==_0x4aae09['type']||'remove'==_0x364a75&&'elementEnd'==_0x4aae09['type'])continue;if(_0x27ce9e&&-0x1==_0x27ce9e['type']['indexOf']('Container')){'text'==_0x27ce9e['type']&&(_0x27ce9e[_0x364a75]+='\x0a');continue;}let _0x5daeca;if(_0x5daeca='add'==_0x364a75?_0x59ed36['nextSibling']&&!this['_schema']['isObject'](_0x59ed36['nextSibling'])?_0x59ed36['nextSibling']:null:_0x59ed36['previousSibling']&&!this['_schema']['isObject'](_0x59ed36['previousSibling'])?_0x59ed36['previousSibling']:null,_0x59ed36['isEmpty']||_0x5daeca&&_0x5daeca['isEmpty']){const _0x5166c7=_0x5daeca&&_0x5daeca['isEmpty']?_0x5daeca:_0x59ed36;_0x27ce9e&&_0x27ce9e['type']==_0x364a75+'EmptyContainer'&&_0x27ce9e['element']['name']==_0x5166c7['name']?_0x27ce9e['quantity']++:_0x37b981['push']({'type':_0x364a75+'EmptyContainer','element':_0x5166c7,'quantity':0x1});}else _0x37b981['push']({'type':_0x364a75+'Container','element':_0x59ed36});}}}}}['_resolveDescriptionItems'](_0x82e15b){const _0x16f1d7=this['_locale'],_0x369f4b=[],_0x7476b2=[],_0x3462bc=[];for(const _0x47588f of _0x82e15b)switch(_0x47588f['type']){case'text':if(_0x47588f['add']=_0x47588f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x47588f['remove']=_0x47588f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x47588f['add']&&''!=_0x47588f['remove']){_0x369f4b['push']({'type':'replace','content':o(_0x16f1d7,'REPLACE_TEXT',['\x22'+_0x47588f['remove']+'\x22','\x22'+_0x47588f['add']+'\x22'])});continue;}if(null!=_0x47588f['add']['match'](/^ +$/)){_0x369f4b['push']({'type':'insertion','content':o(_0x16f1d7,'*Insert:*\x20%0',o(_0x16f1d7,'ELEMENT_SPACE',_0x47588f['add']['length']))});continue;}if(null!=_0x47588f['remove']['match'](/^ +$/)){_0x369f4b['push']({'type':'deletion','content':o(_0x16f1d7,'*Remove:*\x20%0',o(_0x16f1d7,'ELEMENT_SPACE',_0x47588f['remove']['length']))});continue;}if(''!=_0x47588f['add']){_0x369f4b['push']({'type':'insertion','content':o(_0x16f1d7,'*Insert:*\x20%0','\x22'+_0x47588f['add']+'\x22')});continue;}_0x369f4b['push']({'type':'deletion','content':o(_0x16f1d7,'*Remove:*\x20%0','\x22'+_0x47588f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x369f4b['push']({'type':'insertion','content':o(_0x16f1d7,'*Insert:*\x20%0',this['getItemLabel'](_0x47588f['element'],_0x47588f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x369f4b['push']({'type':'deletion','content':o(_0x16f1d7,'*Remove:*\x20%0',this['getItemLabel'](_0x47588f['element'],_0x47588f['quantity']))});continue;case'addContainer':_0x369f4b['push']({'type':'insertion','content':o(_0x16f1d7,'*Split:*\x20%0',this['getItemLabel'](_0x47588f['element'],_0x47588f['quantity']))});continue;case'removeContainer':_0x369f4b['push']({'type':'deletion','content':o(_0x16f1d7,'*Merge:*\x20%0',this['getItemLabel'](_0x47588f['element'],_0x47588f['quantity']))});continue;case'addFormat':_0x7476b2['push'](_0x47588f['key']);continue;case'removeFormat':_0x3462bc['push'](_0x47588f['key']);continue;default:_0x369f4b['push'](_0x47588f);}if(_0x7476b2['length']){const _0x1658ef=_0x7476b2['map'](_0x37bc96=>this['_attributeLabels']['has'](_0x37bc96)?this['_attributeLabels']['get'](_0x37bc96):_0x37bc96)['join'](',\x20');_0x369f4b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1658ef)});}if(_0x3462bc['length']){const _0x4a1449=_0x3462bc['map'](_0x5acb03=>this['_attributeLabels']['has'](_0x5acb03)?this['_attributeLabels']['get'](_0x5acb03):_0x5acb03)['join'](',\x20');_0x369f4b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a1449)});}return _0x369f4b;}['_handleCustomCallbackDescription'](_0x3945c1){for(const _0x47c8f3 of this['_customCallbacks']){const _0x354149=_0x47c8f3(_0x3945c1);if(_0x354149&&'type'in _0x354149)return _0x354149;}}['_handleAttributeSuggestionDescription'](_0x538989,_0x568a26){const _0x400be9=_0x568a26['data'],_0x93b0db=void 0x0===_0x400be9['newValue']?'removeFormat':'addFormat';_0x538989['push']({'type':_0x93b0db,'key':_0x400be9['key']});}['_handleRenameSuggestionDescription'](_0x3650f1,_0x502531){_0x3650f1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x502531['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xd65231,_0x34a76f,_0x2657f2){if(this['_addDescriptionItems'](_0xd65231,_0x34a76f),_0x2657f2&&_0x2657f2['getFirstRange']()&&!_0x34a76f['getFirstRange']()['end']['isEqual'](_0x2657f2['getFirstRange']()['start'])){const _0x328b1e=_0xd65231[_0xd65231['length']-0x1],_0x830a2e='insertion'==_0x34a76f['type']?'add':'remove';_0x328b1e&&'text'==_0x328b1e['type']&&(_0x328b1e[_0x830a2e]+='\x0a');}}}class E extends _0x23b8b9{['afterInit'](){const _0x463f87=this['editor'],_0x1b5e9f=_0x463f87['plugins']['get']('TrackChangesEditing');_0x463f87['commands']['get']('showAIAssistant')&&_0x1b5e9f['enableCommand']('showAIAssistant');}}class V extends _0x23b8b9{['afterInit'](){const _0x31f512=this['editor'],_0x349d47=_0x31f512['locale'];if(!_0x31f512['plugins']['has']('AlignmentEditing'))return;const _0xbbda1=_0x31f512['plugins']['get']('TrackChangesEditing');_0xbbda1['enableDefaultAttributesIntegration']('alignment'),_0xbbda1['registerBlockAttribute']('alignment'),_0xbbda1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x349d47,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490ca7=this['editor'],_0x57d704=_0x490ca7['locale'];_0x490ca7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ab7a0=>{if('formatBlock'!=_0x3ab7a0['type'])return;const {data:_0x5ddead}=_0x3ab7a0;if(_0x5ddead&&'alignment'==_0x5ddead['commandName']){const _0x536a60=_0x5ddead['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x57d704,'*Format:*\x20%0',function(_0xc0d3cb){switch(_0xc0d3cb){case'left':return o(_0x57d704,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x57d704,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x57d704,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x57d704,'FORMAT_JUSTIFY_TEXT');}}(_0x536a60))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x23b8b9{['afterInit'](){const _0x5995c4=this['editor'],_0x2a1cec=_0x5995c4['plugins']['get']('TrackChangesEditing'),_0x11c963=_0x5995c4['locale'];for(const _0x7dc492 of ti){if(!_0x5995c4['plugins']['has'](_0x7dc492))continue;const _0x3ef803=_0x7dc492['slice'](0x0,-0x7)['toLowerCase'](),_0x42be23='FORMAT_'+_0x3ef803['toUpperCase']();_0x2a1cec['enableDefaultAttributesIntegration'](_0x3ef803),_0x2a1cec['registerInlineAttribute'](_0x3ef803),_0x2a1cec['descriptionFactory']['registerAttributeLabel'](_0x3ef803,o(_0x11c963,_0x42be23));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x111ea7=this['editor'],_0x5b7580=_0x111ea7['locale'],_0x5cd710=_0x111ea7['plugins']['get']('TrackChangesEditing');function _0x399d51(_0x2efde8,_0x5b054c){_0x5cd710['descriptionFactory']['registerDescriptionCallback'](_0x5d65bb=>{if('formatInline'!=_0x5d65bb['type'])return;const {data:_0x2f3270}=_0x5d65bb;return _0x2f3270&&_0x2f3270['commandName']===_0x2efde8?_0x2f3270['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b7580,'*Format:*\x20%0',_0x5b054c)}:{'type':'format','content':o(_0x5b7580,'*Remove\x20format:*\x20%0',_0x5b054c)}:void 0x0;});}_0x399d51('bold',o(_0x5b7580,'FORMAT_BOLD')),_0x399d51('italic',o(_0x5b7580,'FORMAT_ITALIC')),_0x399d51('underline',o(_0x5b7580,'FORMAT_UNDERLINE')),_0x399d51('code',o(_0x5b7580,'FORMAT_CODE')),_0x399d51('strikethrough',o(_0x5b7580,'FORMAT_STRIKETHROUGH')),_0x399d51('subscript',o(_0x5b7580,'FORMAT_SUBSCRIPT')),_0x399d51('superscript',o(_0x5b7580,'FORMAT_SUPERSCRIPT'));}}class O extends _0x23b8b9{['afterInit'](){const _0x309b8b=this['editor'],_0x1496a4=_0x309b8b['locale'];if(!_0x309b8b['plugins']['has']('BlockQuoteEditing'))return;const _0xb4dec0=_0x309b8b['plugins']['get']('TrackChangesEditing'),_0x5cc6ff=this['editor']['commands']['get']('blockQuote');_0xb4dec0['enableCommand']('blockQuote',(_0x498aa0,_0x382c73={})=>{const _0x38b39d=this['editor']['model']['document']['selection'],_0x360679=_0x382c73&&void 0x0!==_0x382c73['forceValue']?_0x382c73['forceValue']:!_0x5cc6ff['value'];let _0x1d3883=[];if(_0x360679){const _0x187c4b=Array['from'](_0x38b39d['getSelectedBlocks']())['filter'](_0xda464c=>oo(_0xda464c)||function(_0x41ea4f,_0x303f58){const _0x3863dd=_0x303f58['checkChild'](_0x41ea4f['parent'],'blockQuote'),_0x5a4c52=_0x303f58['checkChild'](['$root','blockQuote'],_0x41ea4f);return _0x3863dd&&_0x5a4c52;}(_0xda464c,this['editor']['model']['schema']));_0x1d3883=to(_0x187c4b,_0x309b8b['model']);}else{const _0xf614e4=Array['from'](_0x38b39d['getSelectedBlocks']())['filter'](_0x4b91aa=>oo(_0x4b91aa));_0x1d3883=to(_0xf614e4,_0x309b8b['model']);}_0x309b8b['model']['change'](()=>{for(const _0x3891ad of _0x1d3883)_0xb4dec0['markBlockFormat'](_0x3891ad,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x360679}]});});}),_0xb4dec0['descriptionFactory']['registerDescriptionCallback'](_0x31c03d=>{const {data:_0x467cd0}=_0x31c03d;if(_0x467cd0&&'blockQuote'==_0x467cd0['commandName']){const _0x5b5cb3=o(_0x1496a4,'ELEMENT_BLOCK_QUOTE');return _0x467cd0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1496a4,'*Set\x20format:*\x20%0',_0x5b5cb3)}:{'type':'format','content':o(_0x1496a4,'*Remove\x20format:*\x20%0',_0x5b5cb3)};}});}}function oo(_0x59b71d){return'blockQuote'==_0x59b71d['parent']['name'];}class G extends _0x23b8b9{['afterInit'](){const _0x1e0443=this['editor'];_0x1e0443['plugins']['has']('CaseChange')&&(_0x1e0443['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1e0443['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1e0443['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x23b8b9{['afterInit'](){const _0xb05b0d=this['editor'];_0xb05b0d['commands']['get']('ckbox')&&_0xb05b0d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x23b8b9{['afterInit'](){const _0x2d84f1=this['editor'];if(!_0x2d84f1['plugins']['has']('CodeBlock'))return;const _0x47e3bf=_0x2d84f1['plugins']['get']('TrackChangesEditing'),_0x563765=_0x2d84f1['locale'],_0x405cb3=_0x2d84f1['config']['get']('codeBlock')['languages'],_0x583a35=_0x2d84f1['commands']['get']('codeBlock');_0x47e3bf['enableCommand']('indentCodeBlock'),_0x47e3bf['enableCommand']('outdentCodeBlock'),_0x47e3bf['enableCommand']('codeBlock',(_0x323336,_0x2c5489={})=>{const _0x3494b8=_0x2d84f1['model'],_0x40ac73=_0x2d84f1['model']['document']['selection'],_0x6d5113=_0x2c5489&&void 0x0!==_0x2c5489['forceValue']?_0x2c5489['forceValue']:!_0x583a35['value'];let _0x5698e8;_0x2c5489['language']||(_0x2c5489['language']=_0x405cb3[0x0]['language']),_0x5698e8=_0x6d5113?Array['from'](_0x40ac73['getSelectedBlocks']())['filter'](_0x21d99e=>eo(_0x21d99e)||function(_0x29e76e,_0x2904f0){if(_0x29e76e['is']('rootElement')||_0x2904f0['isLimit'](_0x29e76e))return!0x1;return _0x2904f0['checkChild'](_0x29e76e['parent'],'codeBlock');}(_0x21d99e,_0x3494b8['schema'])):Array['from'](_0x40ac73['getSelectedBlocks']())['filter'](_0x32d1ee=>eo(_0x32d1ee));const _0x3b8302=to(_0x5698e8,_0x3494b8);_0x3494b8['change'](()=>{for(const _0x2e7094 of _0x3b8302)_0x47e3bf['markBlockFormat'](_0x2e7094,{'commandName':'codeBlock','commandParams':[{..._0x2c5489,'forceValue':_0x6d5113}],'formatGroupId':'blockName'});});}),(_0x47e3bf['descriptionFactory']['registerElementLabel']('codeBlock',_0x453c40=>o(_0x563765,'ELEMENT_CODE_BLOCK',_0x453c40)),_0x47e3bf['descriptionFactory']['registerDescriptionCallback'](_0x1410f5=>{if('formatBlock'!=_0x1410f5['type'])return;const _0x17c326=_0x563765['t'],{data:_0x4b7c25}=_0x1410f5;if(!_0x4b7c25||'codeBlock'!=_0x4b7c25['commandName'])return;const _0x579d83=_0x4b7c25['commandParams'][0x0]['language'],_0x1dde18=_0x17c326(_0x405cb3['find'](_0x4a4b2c=>_0x4a4b2c['language']===_0x579d83)['label'])['toLowerCase']();return _0x4b7c25['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x563765,'*Set\x20format:*\x20%0',o(_0x563765,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1dde18+')')}:{'type':'format','content':o(_0x563765,'*Remove\x20format:*\x20%0',o(_0x563765,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xb38ae7){return'codeBlock'==_0xb38ae7['name'];}class H extends _0x23b8b9{['afterInit'](){const _0x32f1a9=this['editor'];if(!_0x32f1a9['plugins']['has']('CommentsEditing'))return;_0x32f1a9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x49148d,_0xbc47f4,_0x2f144b){const _0x3a62a6=[];for(const _0x586baa of _0xbc47f4['getItems']())_0x586baa['hasAttribute'](_0x49148d)&&_0x3a62a6['push'](_0x2f144b['createRangeOn'](_0x586baa));return _0x3a62a6;}function _e(_0x21c229,_0x5bc389,{showActiveMarker:_0x286251=!0x0}={}){const _0x429510=_0x21c229['plugins']['get']('TrackChangesEditing');return(_0x5fb384,_0x324485,_0x532742)=>{if(!_0x532742['consumable']['test'](_0x324485['markerRange'],_0x5fb384['name']))return;const _0x4cd00b=_0x324485['markerRange']['getWalker'](),_0x2eb544=_0x324485['markerRange']['start'],_0x4a5ca7=_0x21c229['model']['schema'];let _0x34ddf2=null,_0x8c4f89=null,_0x36ea5b=!0x1,_0x20f9cb=!0x1;for(const _0x13efe2 of _0x4cd00b){const _0x39db7f=_0x13efe2['item'];_0x36ea5b=_0x36ea5b||_0x4a5ca7['isContent'](_0x39db7f);const _0x24335e=_0x532742['mapper']['toViewElement'](_0x39db7f);if(_0x24335e&&_0x24335e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13efe2['type']&&(_0x4a5ca7['isBlock'](_0x39db7f)&&!_0x4a5ca7['isLimit'](_0x39db7f)&&(_0x39db7f['nextSibling']||_0x2eb544['isAtEnd']?_0x34ddf2&&_0x34ddf2['parent']==_0x39db7f||(_0x34ddf2=_0x39db7f,_0xf21d1f(_0x13efe2['previousPosition']),_0x20f9cb=!0x0):_0x8c4f89=_0x8c4f89||_0x13efe2['previousPosition']));}function _0xf21d1f(_0x45911c){const _0x2fccb6=_0x532742['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5bc389}),_0x5b11e8=_0x532742['mapper']['toViewPosition'](_0x45911c);_0x286251&&_0x429510['activeMarkers']['includes'](_0x324485['markerName'])&&_0x532742['writer']['addClass']('ck-suggestion-marker--active',_0x2fccb6),_0x532742['writer']['insert'](_0x5b11e8,_0x2fccb6),_0x532742['mapper']['bindElementToMarker'](_0x2fccb6,_0x324485['markerName']);}_0x36ea5b||_0x20f9cb||!_0x8c4f89||_0xf21d1f(_0x8c4f89);};}class q extends _0x23b8b9{static get['requires'](){return[_0x1b36e0];}['init'](){const _0x214f8d=this['editor'],_0x4275c9=_0x214f8d['plugins']['get']('TrackChangesEditing');_0x4275c9['enableCommand']('delete');const _0x786add=_0x214f8d['commands']['get']('deleteForward');_0x4275c9['enableCommand']('deleteForward',(_0x2e17df,_0x31f750={})=>{const _0x394819=_0x214f8d['model']['createSelection'](_0x214f8d['model']['document']['selection']);_0x394819['isCollapsed']&&_0x214f8d['model']['modifySelection'](_0x394819,{'direction':'forward','unit':_0x31f750['unit']});const _0x1803df=_0x394819['getFirstRange'](),_0x14089f=_0x5df64f['fromRange'](_0x1803df);let _0x3e687c;_0x2e17df(_0x31f750),_0x3e687c='$graveyard'==_0x14089f['root']['rootName']?_0x214f8d['model']['createRange'](_0x1803df['start']):_0x214f8d['model']['createRange'](_0x14089f['start'],_0x14089f['end']),_0x14089f['detach'](),_0x214f8d['model']['enqueueChange'](_0x786add['buffer']['batch'],_0x5be604=>{_0x786add['buffer']['lock'](),_0x5be604['setSelection'](_0x5be604['createRange'](_0x3e687c['end'])),_0x786add['buffer']['unlock']();});}),_0x214f8d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x214f8d,'merge'),{'priority':'high'}),_0x214f8d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2bac54,_0x386223,_0x5abd97)=>{_0x5abd97['options']['showSuggestionHighlights']&&_e(_0x214f8d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2bac54,_0x386223,_0x5abd97);},{'priority':'high'}),_0x214f8d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x37f9b9,_0x1374e1,_0x290170)=>{const _0x12f98e=_0x290170['mapper']['markerNameToElements'](_0x1374e1['markerName']);if(_0x12f98e){for(const _0x409a4f of _0x12f98e)_0x409a4f['is']('uiElement')&&(_0x290170['mapper']['unbindElementFromMarkerName'](_0x409a4f,_0x1374e1['markerName']),_0x290170['writer']['remove'](_0x409a4f));}},{'priority':'high'});}}class z extends _0x23b8b9{['afterInit'](){const _0x3439fa=this['editor'];if(!_0x3439fa['plugins']['has']('ListEditing'))return;const _0x2f536d=_0x3439fa['locale'],_0x30207b=_0x3439fa['plugins']['get']('TrackChangesEditing'),_0x3d500b=_0x3439fa['plugins']['has']('TodoListEditing'),_0x4f485b=!!_0x3439fa['config']['get']('list.multiBlock');function _0x195bf6(_0x16d105){return{'type':'format','content':''+o(_0x2f536d,'*Set\x20format:*\x20%0',_0x16d105)};}function _0x3f54b8(_0x2b0715){return{'type':'format','content':''+o(_0x2f536d,'*Remove\x20format:*\x20%0',_0x2b0715)};}_0x30207b['enableDefaultAttributesIntegration']('numberedList'),_0x30207b['enableDefaultAttributesIntegration']('bulletedList'),_0x30207b['enableDefaultAttributesIntegration']('customNumberedList'),_0x30207b['enableDefaultAttributesIntegration']('customBulletedList'),_0x30207b['enableDefaultAttributesIntegration']('indentList'),_0x30207b['enableDefaultAttributesIntegration']('outdentList'),_0x30207b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x30207b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x30207b['registerBlockAttribute']('listItemId'),_0x30207b['registerBlockAttribute']('listType'),_0x30207b['registerBlockAttribute']('listIndent'),_0x4f485b&&(_0x30207b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x30207b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3d500b&&(_0x30207b['enableDefaultAttributesIntegration']('todoList'),_0x30207b['enableDefaultAttributesIntegration']('checkTodoList'),_0x30207b['registerBlockAttribute']('todoListChecked'),_0x30207b['descriptionFactory']['registerDescriptionCallback'](_0x50b319=>{const {data:_0x4a2a99}=_0x50b319;if(_0x4a2a99&&'todoListChecked'==_0x4a2a99['key'])return{'type':'format','content':_0x4a2a99['newValue']?o(_0x2f536d,'*Check\x20item*'):o(_0x2f536d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4b88c7=>{if(_0x4b88c7['batch']['isUndo'])return!0x1;let _0x21452f=!0x1;const _0x1f6eac=_0x30207b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47cdb8=>'todoListChecked'===_0x30207b['_getAttributeKey'](_0x47cdb8));for(const _0x4b4f75 of _0x1f6eac){'todo'!=_0x4b4f75['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x30207b['_findSuggestions'](_0x4b4f75['getFirstRange'](),'attribute')['find'](_0x572223=>'listType'===_0x30207b['_getAttributeKey'](_0x572223['suggestion']))||(_0x4b88c7['removeMarker'](_0x4b4f75['getFirstMarker']()),_0x21452f=!0x0));}return _0x21452f;})),_0x30207b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2f536d,'FORMAT_INDENT'));const _0x3a0a8e={'type':'format','content':''};_0x30207b['descriptionFactory']['registerDescriptionCallback'](_0x579cf4=>{const {data:_0x417c19}=_0x579cf4;if(!_0x417c19||'listType'!=_0x417c19['key'])return;let _0x5e8430=_0x579cf4['head'];for(;_0x5e8430;){if(_0x5e8430['data']&&(('listStyle'==_0x5e8430['data']['key']||'listMarkerStyle'==_0x5e8430['data']['key'])&&(_0x5e8430['data']['newValue']&&'default'!=_0x5e8430['data']['newValue']||'default'!=_0x5e8430['data']['oldValue']&&!_0x417c19['newValue'])||!_0x4f485b&&_0x5e8430['data']['key']==m))return _0x3a0a8e;_0x5e8430=_0x5e8430['next'];}if(null==_0x417c19['newValue'])switch(_0x417c19['oldValue']){case'bulleted':return _0x3f54b8(o(_0x2f536d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f54b8(o(_0x2f536d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f54b8(o(_0x2f536d,'ELEMENT_TODO_LIST'));}switch(_0x417c19['newValue']){case'bulleted':return _0x195bf6(o(_0x2f536d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x195bf6(o(_0x2f536d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x195bf6(o(_0x2f536d,'ELEMENT_TODO_LIST'));}}),_0x30207b['descriptionFactory']['registerDescriptionCallback'](_0xf9f8af=>{const {data:_0x3b4b85}=_0xf9f8af;if(_0x3b4b85&&'listIndent'==_0x3b4b85['key'])return null==_0x3b4b85['newValue']||null==_0x3b4b85['oldValue']&&0x0==_0x3b4b85['newValue']?_0x3a0a8e:void 0x0;}),_0x30207b['descriptionFactory']['registerDescriptionCallback'](_0x3f3aed=>{if('attribute'!=_0x3f3aed['type'])return;const {data:_0x2cf4c2}=_0x3f3aed;if(!_0x2cf4c2||'listItemId'!=_0x2cf4c2['key'])return;const _0x57efb5=le(_0x3f3aed);return'newValue'==_0x57efb5?{'type':'format','content':o(_0x2f536d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x57efb5?{'type':'format','content':o(_0x2f536d,'*Split:*\x20list\x20item')}:_0x3a0a8e;}),_0x3439fa['model']['document']['registerPostFixer'](_0x5ed8a0=>this['listItemIdFixer'](_0x5ed8a0)),_0x3439fa['model']['document']['registerPostFixer'](_0xfaa6d6=>this['noTrackChangesFixer'](_0xfaa6d6)),_0x3439fa['model']['document']['registerPostFixer'](_0x484bc6=>this['assureChains'](_0x484bc6)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x170c5a){if(_0x170c5a['batch']['isUndo']||!_0x170c5a['batch']['isLocal'])return!0x1;let _0x257036=!0x1;const _0x55699f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ed478=>_0x2ed478['data']&&'listItemId'==_0x2ed478['data']['key'])['filter'](_0x93525f=>_0x93525f['data']['newValue']&&_0x93525f['data']['oldValue']);for(const _0x3c8469 of _0x55699f)le(_0x3c8469)||(_0x170c5a['removeMarker'](_0x3c8469['getFirstMarker']()),_0x257036=!0x0);return _0x257036;}['noTrackChangesFixer'](_0xc7662d){if(_0xc7662d['batch']['isUndo']||!_0xc7662d['batch']['isLocal'])return!0x1;const _0x3a05f2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3a05f2['trackChangesCommand']['value'])return!0x1;let _0x380c45=!0x1;const _0x228343=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3adea4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30fbfc=>'attribute'==_0x30fbfc['type'])['filter'](_0x17cc22=>_0x228343['includes'](_0x17cc22['attributeKey']));if(0x0==_0x3adea4['length'])return _0x380c45;for(const _0x1f97cd of _0x3adea4){const _0x102621=_0x3a05f2['_findSuggestions'](_0x1f97cd['range'],'attribute')['filter'](_0xb71e1d=>!_0xb71e1d['meta']['isNextTo'])['map'](_0x56f79c=>_0x56f79c['suggestion'])['filter'](_0x42daa6=>{const _0x583b5e=_0x3a05f2['_getAttributeKey'](_0x42daa6);return _0x228343['includes'](_0x583b5e);});if(_0x102621['length']){for(const _0x6640f3 of _0x102621)_0xc7662d['removeMarker'](_0x6640f3['getFirstMarker']());_0x380c45=!0x0;}}return _0x380c45;}['assureChains'](_0x58cfa3){if(_0x58cfa3['batch']['isUndo']||!_0x58cfa3['batch']['isLocal'])return!0x1;const _0x5af171=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5e3eba=!0x1;const _0xd875cd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x26a443 of _0x5af171['getSuggestions']({'skipNotAttached':!0x0})){const _0x22df37=_0x5af171['_findSuggestions'](_0x26a443['getFirstRange'](),'attribute')['map'](_0x25c349=>_0x25c349['suggestion'])['filter'](_0x1e7f1e=>_0x1e7f1e['data']&&_0xd875cd['includes'](_0x1e7f1e['data']['key']));if(!_0x22df37['length'])continue;const _0x41caee=_0x22df37[0x0]['head']['attributes']['groupId'];if(!_0x22df37['every'](_0x4ed65d=>_0x4ed65d['attributes']['groupId']===_0x41caee)){for(const _0x7a3b98 of _0x22df37)_0x5f3402(_0x7a3b98,_0x41caee)&&(_0x5e3eba=!0x0);}}return _0x5e3eba;function _0x378b4b(_0x16dc22,_0x3d7aec){for(const _0x3964e5 of _0x5af171['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57a809=>'attribute'==_0x57a809['type']&&_0x57a809['attributes']['groupId']==_0x16dc22))_0x3964e5['setAttribute']('groupId',_0x3d7aec);}function _0x5f3402(_0x4ef183,_0x10178d){let _0x76339b=_0x4ef183['head'],_0x640026=!0x1;for(;_0x76339b;)_0x76339b['attributes']['groupId']!=_0x10178d&&(_0x378b4b(_0x76339b['attributes']['groupId'],_0x10178d),_0x76339b['setAttribute']('groupId',_0x10178d),_0x640026=!0x0),_0x76339b=_0x76339b['next'];return _0x640026;}}['_supportLegacySuggestions'](){const _0x3d532f=this['editor'],_0x35210e=_0x3d532f['locale'],_0x5d3962=_0x3d532f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d3962['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x132283,_0x487929){const _0x4351f4=[];for(let _0x2a5ac0 of _0x132283)_0x2a5ac0['start']['nodeAfter']===_0x2a5ac0['end']['parent']&&(_0x2a5ac0=_0x3d532f['model']['createRange'](_0x3d532f['model']['createPositionAt'](_0x2a5ac0['start']['nodeAfter'],0x0))),_0x4351f4['push'](_0x2a5ac0);_0x3d532f['model']['change'](_0xbda2e4=>{const _0x3550cd=_0x3d532f['model']['document']['selection'],_0x30526e=Array['from'](_0x3550cd['getRanges']())['map'](_0x463e6a=>_0x5df64f['fromRange'](_0x463e6a));_0xbda2e4['setSelection'](_0x4351f4),_0x3d532f['commands']['get'](_0x487929['commandName'])['refresh'](),_0x487929['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d532f['execute'](_0x487929['commandName'],..._0x487929['commandParams']),_0xbda2e4['setSelection'](_0x30526e);for(const _0x48ca1e of _0x30526e)_0x48ca1e['detach']();});}),_0x5d3962['descriptionFactory']['registerElementLabel'](function(_0x3702cc){const _0x2aa18e=!_0x3d532f['model']['schema']['isObject'](_0x3702cc),_0x249ca7=_0x3702cc['previousSibling'],_0x52f72e=_0x3702cc['nextSibling'],_0x14aa80=_0x3702cc['getAttribute']('listItemId'),_0x492d54=!_0x249ca7||_0x249ca7['getAttribute']('listItemId')!==_0x14aa80,_0x582a32=!_0x52f72e||_0x52f72e['getAttribute']('listItemId')!==_0x14aa80;return _0x2aa18e&&Boolean(_0x14aa80)&&_0x492d54&&_0x582a32;},_0xd1cb74=>o(_0x35210e,'ELEMENT_LIST_ITEM',_0xd1cb74));}['_registerLegacyDescription'](){const _0x4c37a7=this['editor'],_0x29df57=_0x4c37a7['locale'];function _0x5cfd60(_0xf0b7be){const _0x145aeb=_0x4c37a7['commands']['get']('bulletedList')['value'],_0x4d34f6=_0x4c37a7['commands']['get']('numberedList')['value'];return'numberedList'===_0xf0b7be?_0x145aeb:_0x4d34f6;}_0x4c37a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40469e){if('formatBlock'!=_0x40469e['type'])return;const {data:_0x398b9f}=_0x40469e;if(!_0x398b9f)return;let _0x44f50e,_0x357f13,_0x627414,_0x48228a;switch(_0x398b9f['commandName']){case'bulletedList':_0x627414=_0x398b9f['commandParams'][0x0]['forceValue'],_0x48228a=_0x5cfd60(_0x398b9f['commandName']),_0x44f50e=_0x627414?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x48228a&&_0x4c37a7['config']['get']('list.multiBlock')||(_0x44f50e='*Change\x20to:*\x20%0'),_0x357f13={'type':'format','content':o(_0x29df57,_0x44f50e,o(_0x29df57,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x627414=_0x398b9f['commandParams'][0x0]['forceValue'],_0x48228a=_0x5cfd60(_0x398b9f['commandName']),_0x44f50e=_0x627414?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x48228a&&_0x4c37a7['config']['get']('list.multiBlock')||(_0x44f50e='*Change\x20to:*\x20%0'),_0x357f13={'type':'format','content':o(_0x29df57,_0x44f50e,o(_0x29df57,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x44f50e='*Indent:*\x20%0',_0x357f13={'type':'format','content':o(_0x29df57,_0x44f50e,o(_0x29df57,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x44f50e=function(_0x9da7b8){const _0x44d943=_0x9da7b8['getFirstRange']();let _0x102a2a=_0x44d943['start']['nodeAfter'];for(;_0x102a2a&&_0x44d943['containsItem'](_0x102a2a);){if(_0x102a2a['getAttribute']('listIndent')>0x0)return!0x1;_0x102a2a=_0x102a2a['nextSibling'];}return!0x0;}(_0x40469e)?o(_0x29df57,'*Format:*\x20remove\x20from\x20%0',o(_0x29df57,function(_0x1e118d){return'ELEMENT_'+_0x1e118d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40469e))):o(_0x29df57,'*Outdent:*\x20%0',o(_0x29df57,'ELEMENT_LIST_ITEM')),_0x357f13={'type':'format','content':_0x44f50e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x398b9f['multipleBlocks']&&(_0x44f50e='*Merge:*\x20%0',_0x357f13={'type':'deletion','content':o(_0x29df57,_0x44f50e,o(_0x29df57,'ELEMENT_LIST_ITEM'))});}return _0x357f13;});}}function le(_0x151c5b){let _0xa54a1=_0x151c5b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xa54a1;){const _0x432eef=_0xa54a1['getAttribute']('listItemId');if(!_0x432eef)return!0x1;if(_0x432eef==_0x151c5b['data']['newValue'])return'newValue';if(_0x432eef==_0x151c5b['data']['oldValue'])return'oldValue';_0xa54a1=_0xa54a1['previousSibling'];}return!0x1;}class pe extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5c3706=this['editor']['config']['get']('list.properties'),_0x3ebc64=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c3706['styles']&&(_0x3ebc64['enableDefaultAttributesIntegration']('listStyle'),_0x3ebc64['registerBlockAttribute']('listStyle')),_0x5c3706['reversed']&&(_0x3ebc64['enableDefaultAttributesIntegration']('listReversed'),_0x3ebc64['registerBlockAttribute']('listReversed')),_0x5c3706['startIndex']&&(_0x3ebc64['enableDefaultAttributesIntegration']('listStart'),_0x3ebc64['registerBlockAttribute']('listStart'));const _0x5c0619={'type':'format','content':''};_0x3ebc64['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2d1c50=this['editor']['locale'];_0x3ebc64['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2d1c50,'FORMAT_LIST_REVERSED')),_0x3ebc64['descriptionFactory']['registerDescriptionCallback'](_0x510935=>{const {data:_0x4ac5f5}=_0x510935;if(_0x4ac5f5&&'listReversed'==_0x4ac5f5['key'])return null==_0x4ac5f5['newValue']||0x0==_0x4ac5f5['newValue']&&null==_0x4ac5f5['oldValue']?_0x5c0619:void 0x0;}),_0x3ebc64['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2d1c50,'FORMAT_LIST_START')),_0x3ebc64['descriptionFactory']['registerDescriptionCallback'](_0x267798=>{const {data:_0x3d9501}=_0x267798;if(_0x3d9501&&'listStart'==_0x3d9501['key'])return null==_0x3d9501['newValue']||0x1==_0x3d9501['newValue']&&null==_0x3d9501['oldValue']?_0x5c0619:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2da148=>{if(_0x2da148['batch']['isUndo'])return!0x1;let _0x3fee2c=!0x1;const _0xa1fcf6=_0x3ebc64['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8d10=>{const _0x221cfb=_0x3ebc64['_getAttributeKey'](_0x3d8d10);return'listStart'==_0x221cfb||'listReversed'==_0x221cfb;});for(const _0x5e7e3e of _0xa1fcf6){const _0x12038a=_0x5e7e3e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x12038a||'customNumbered'==_0x12038a)continue;_0x3ebc64['_findSuggestions'](_0x5e7e3e['getFirstRange'](),'attribute')['find'](_0x234002=>'listType'==_0x3ebc64['_getAttributeKey'](_0x234002['suggestion']))||(_0x2da148['removeMarker'](_0x5e7e3e['getFirstMarker']()),_0x3fee2c=!0x0);}return _0x3fee2c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x39888e){const _0x631278=this['editor']['locale'],{data:_0x371ed0}=_0x39888e,_0x7462b9={'type':'format','content':''};if(!_0x371ed0||'listStyle'!=_0x371ed0['key'])return;if(!_0x371ed0['oldValue'])return'default'==_0x371ed0['newValue']?_0x7462b9:{'type':'format','content':''+o(_0x631278,'*Set\x20format:*\x20%0',o(_0x631278,this['_getTranslationKeyForListStyle'](_0x371ed0['newValue'])))};if(!_0x371ed0['newValue']){if('default'==_0x371ed0['oldValue'])return _0x7462b9;let _0x2f3f85=_0x39888e['head'];for(;_0x2f3f85;){if(_0x2f3f85['data']&&'listType'==_0x2f3f85['data']['key']&&_0x2f3f85['data']['newValue'])return _0x7462b9;_0x2f3f85=_0x2f3f85['next'];}return{'type':'format','content':''+o(_0x631278,'*Remove\x20format:*\x20%0',o(_0x631278,this['_getTranslationKeyForListStyle'](_0x371ed0['oldValue'])))};}if('default'!=_0x371ed0['newValue'])return{'type':'format','content':''+o(_0x631278,'*Set\x20format:*\x20%0',o(_0x631278,this['_getTranslationKeyForListStyle'](_0x371ed0['newValue'])))};let _0x324c6c=_0x39888e['head'];for(;_0x324c6c;){if(_0x324c6c['data']&&'listType'==_0x324c6c['data']['key']&&_0x324c6c['data']['newValue']&&_0x324c6c['data']['oldValue'])return _0x7462b9;_0x324c6c=_0x324c6c['next'];}return{'type':'format','content':o(_0x631278,'*Set\x20format:*\x20%0',o(_0x631278,'ELEMENT_'+_0x39888e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d0384=this['editor'],_0x2a4b95=_0x5d0384['locale'];_0x5d0384['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d134a=>{if('formatBlock'!=_0x5d134a['type'])return;const {data:_0x4ddaf1}=_0x5d134a;if(!_0x4ddaf1)return;let _0x146b49,_0x4eeb31;switch(_0x4ddaf1['commandName']){case'listStyle':_0x146b49='*Change\x20to:*\x20%0',_0x4eeb31={'type':'format','content':o(_0x2a4b95,_0x146b49,o(_0x2a4b95,this['_getTranslationKeyForListStyle'](_0x4ddaf1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x146b49=_0x4ddaf1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4eeb31={'type':'format','content':o(_0x2a4b95,_0x146b49)};break;case'listStart':_0x146b49='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4eeb31={'type':'format','content':o(_0x2a4b95,_0x146b49,_0x4ddaf1['commandParams'][0x0]['startIndex'])};}return _0x4eeb31;});}['_getTranslationKeyForListStyle'](_0x4aef3c){return'ELEMENT_'+function(_0x279ba4){if(ye['includes'](_0x279ba4))return'bulleted';if(he['includes'](_0x279ba4))return'numbered';return null;}(_0x4aef3c)['toUpperCase']()+'_LIST_'+_0x4aef3c['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x23b8b9{static get['requires'](){return[_0x2a76a7];}['init'](){const _0x968c70=this['editor'],_0x4f6c11=_0x968c70['plugins']['get']('TrackChangesEditing'),_0xc1cf4c=_0x968c70['commands']['get']('enter');_0x4f6c11['enableCommand']('enter',()=>{_0x968c70['model']['change'](_0x3a5a74=>{const _0x5616e9=_0x968c70['model']['document']['selection'],_0x287f38=_0x5616e9['getFirstPosition'](),_0x432a3c=_0x5df64f['fromRange'](_0x5616e9['getFirstRange']());if(_0xc1cf4c['enterBlock'](_0x3a5a74)){const _0x5d92f4=_0x968c70['model']['createPositionAt'](_0x287f38['parent']['nextSibling'],0x0),_0x4a200b=_0x3a5a74['createRange'](_0x287f38,_0x5d92f4);_0x4f6c11['markInsertion'](_0x4a200b);}else _0x3a5a74['setSelection'](_0x3a5a74['createRange'](_0x432a3c['end']));_0x432a3c['detach'](),_0xc1cf4c['fire']('afterExecute',{'writer':_0x3a5a74});});}),_0x968c70['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x968c70,'split'),{'priority':'high'}),_0x968c70['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x415fb2,_0x45a3d4,_0x4ad89c)=>{const _0x4a1978=_0x4ad89c['mapper']['markerNameToElements'](_0x45a3d4['markerName']);if(_0x4a1978){for(const _0x2eff46 of _0x4a1978)_0x2eff46['hasClass']('ck-suggestion-marker-split')&&(_0x4ad89c['mapper']['unbindElementFromMarkerName'](_0x2eff46,_0x45a3d4['markerName']),_0x4ad89c['writer']['remove'](_0x2eff46));}},{'priority':'high'}),_0x968c70['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1817ff,_0x302329,_0x5e6938)=>{_0x5e6938['options']['showSuggestionHighlights']&&_e(_0x968c70,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1817ff,_0x302329,_0x5e6938);},{'priority':'high'});}}class J extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x42020a=this['editor']['plugins']['get']('TrackChangesEditing');_0x42020a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x42020a['enableCommand']('findNext'),_0x42020a['enableCommand']('findPrevious'),_0x42020a['enableCommand']('replace'),_0x42020a['enableCommand']('replaceAll');}['handleFindCommand'](_0x43c679,_0x435bf2,_0x3a6731={}){const _0x407944=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x43c679(_0x36e881=>{let _0xce7100=('string'==typeof _0x435bf2?_0x407944['findByTextCallback'](_0x435bf2,_0x3a6731):_0x435bf2)(_0x36e881);Array['isArray'](_0xce7100)&&(_0xce7100={'results':_0xce7100,'searchText':'string'==typeof _0x435bf2?_0x435bf2:''});const _0x5edc53=_0xce7100['results']['filter'](_0x24ecd7=>!0x1===this['_isInDeletionRange'](_0x24ecd7,_0x36e881['item']));return{..._0xce7100,'results':_0x5edc53};},_0x3a6731);}['_isInDeletionRange'](_0x5d4b12,_0x22fcc2){const _0x595229=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22fcc2,_0x5d4b12['start']),this['editor']['model']['createPositionAt'](_0x22fcc2,_0x5d4b12['end']));for(const _0x57bc46 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x595229['getIntersection'](_0x57bc46['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x23b8b9{['afterInit'](){const _0x21cd18=this['editor']['locale'],_0x6b5ede=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16abd4,commandName:_0x371dc7}of ro)this['editor']['plugins']['has'](_0x16abd4)&&(_0x6b5ede['enableDefaultAttributesIntegration'](_0x371dc7),_0x6b5ede['registerInlineAttribute'](_0x371dc7));_0x6b5ede['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x21cd18,'FORMAT_FONT_SIZE')),_0x6b5ede['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x21cd18,'FORMAT_FONT_FAMILY')),_0x6b5ede['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x21cd18,'FORMAT_FONT_COLOR')),_0x6b5ede['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x21cd18,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x245d56=this['editor'],_0x2dafd2=_0x245d56['locale'];_0x245d56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x225c40=>{const _0x178443=_0x2dafd2['t'];if('formatInline'!=_0x225c40['type'])return;const {data:_0xe68de1}=_0x225c40;if(null!=_0xe68de1){if('fontSize'==_0xe68de1['commandName']){const _0xcb0f9b=_0xe68de1['commandParams'][0x0]['value'];if(_0xcb0f9b){const _0x18c970=_0x178443(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2ad959=>_0x2ad959['model']==_0xcb0f9b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2dafd2,'*Set\x20font\x20size:*\x20%0',_0x18c970)};}return{'type':'format','content':o(_0x2dafd2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xe68de1['commandName']){const _0x16cbf5=_0xe68de1['commandParams'][0x0]['value'];return _0x16cbf5?{'type':'format','content':o(_0x2dafd2,'*Set\x20font\x20family:*\x20%0',_0x16cbf5)}:{'type':'format','content':o(_0x2dafd2,'*Reset\x20font\x20family*')};}if('fontColor'==_0xe68de1['commandName']){const _0x29ccc3=_0xe68de1['commandParams'][0x0]['value'];if(_0x29ccc3){const _0x2b7783=_0x1f2ba8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x17d897=>_0x17d897['model']==_0x29ccc3);let _0xef2374=_0x29ccc3,_0xfa5b33='';return _0x2b7783&&(_0xef2374=_0x2b7783['label'],_0xfa5b33=_0x178443(_0xef2374)['toLowerCase']()),{'type':'format','content':o(_0x2dafd2,'*Set\x20font\x20color:*\x20%0',_0xfa5b33)['trim'](),'color':{'value':_0x29ccc3,'title':_0xfa5b33||_0xef2374}};}return{'type':'format','content':o(_0x2dafd2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xe68de1['commandName']){const _0x353276=_0xe68de1['commandParams'][0x0]['value'];if(_0x353276){const _0x398a00=_0x1f2ba8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3d3ab4=>_0x3d3ab4['model']==_0x353276);let _0x238794=_0x353276,_0xd6b64='';return _0x398a00&&(_0x238794=_0x398a00['label'],_0xd6b64=_0x178443(_0x238794)['toLowerCase']()),{'type':'format','content':o(_0x2dafd2,'*Set\x20font\x20background\x20color:*\x20%0',_0xd6b64)['trim'](),'color':{'value':_0x353276,'title':_0xd6b64||_0x238794}};}return{'type':'format','content':o(_0x2dafd2,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x23b8b9{['afterInit'](){const _0x5f372f=this['editor'],_0x6e9969=_0x5f372f['plugins']['get']('TrackChangesEditing'),_0x464258=_0x5f372f['commands']['get']('copyFormat'),_0x1247d5=_0x5f372f['commands']['get']('pasteFormat');_0x464258&&_0x1247d5&&(_0x6e9969['enableDefaultAttributesIntegration']('pasteFormat'),_0x6e9969['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d246f=this['editor'],_0x5bf1b3=_0x1d246f['locale'];_0x1d246f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x122e7d=>{if('formatBlock'!=_0x122e7d['type']&&'formatInline'!=_0x122e7d['type'])return;const {data:_0x4b830b}=_0x122e7d;if(_0x4b830b&&'pasteFormat'===_0x4b830b['commandName']){const _0x47ce43=[],_0x47c4e5=_0x4b830b['commandParams'][0x0];for(const [_0x2f6e5d,_0x4c7ea2]of Object['entries'](_0x47c4e5))_0x47ce43['push'](so(_0x1d246f,_0x2f6e5d,_0x4c7ea2));return _0x47ce43['length']?{'type':'format','content':o(_0x5bf1b3,'*Set\x20format\x20to:*\x20%0',_0x47ce43['join'](',\x20'))}:{'type':'format','content':o(_0x5bf1b3,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2c44a6,_0x26e2ab,_0x42cb10){const _0x225bf7=_0x2c44a6['locale']['t'],_0x159ad0=_0x26e2ab['split'](/(?=[A-Z])/)['join']('\x20'),_0x539e66=_0x225bf7(_0x159ad0['charAt'](0x0)['toUpperCase']()+_0x159ad0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42cb10)return _0x539e66;if('fontColor'===_0x26e2ab||'fontBackgroundColor'===_0x26e2ab){const _0x2688c5=_0x1f2ba8(_0x2c44a6['config']['get']('fontColor.colors'))['find'](_0x218bc2=>_0x218bc2['model']==_0x42cb10);return _0x539e66+'\x20('+(_0x2688c5?_0x225bf7(_0x2688c5['label'])['toLowerCase']():_0x42cb10)+')';}if('fontSize'===_0x26e2ab&&isNaN(parseFloat(_0x42cb10))){const _0xa471b4=_0x2c44a6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2c44a6['config']['get']('fontSize.options'))['find'](_0x465a8f=>_0x465a8f['model']==_0x42cb10);return _0x539e66+'\x20('+(_0xa471b4?_0x225bf7(_0xa471b4['title'])['toLowerCase']():_0x42cb10)+')';}return _0x539e66+'\x20('+_0x42cb10+')';}class Y extends _0x23b8b9{['_headingOptions'];['afterInit'](){const _0x34e2c6=this['editor'];if(!_0x34e2c6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x34e2c6['config']['get']('heading.options');const _0x47f7da=_0x34e2c6['locale'],_0x329560=_0x34e2c6['plugins']['get']('TrackChangesEditing');_0x329560['enableDefaultAttributesIntegration']('heading');for(const _0x1cb56b of this['_headingOptions'])'paragraph'!=_0x1cb56b['model']&&_0x329560['descriptionFactory']['registerElementLabel'](_0x1cb56b['model'],_0x112071=>{const _0x104b99=this['_getHeadingLevel'](_0x1cb56b['model']);return null!==_0x104b99?_0x3929ef(_0x112071,_0x104b99):_0x5f0eae(_0x112071,_0x1cb56b['title']);});function _0x3929ef(_0x4cd11f,_0x5e3bb0){return o(_0x47f7da,'ELEMENT_HEADING',[_0x4cd11f,_0x5e3bb0]);}function _0x5f0eae(_0x330e04,_0x313b4a){return o(_0x47f7da,'ELEMENT_HEADING_CUSTOM',[_0x330e04,_0x313b4a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39242d=this['editor'],_0x487f25=_0x39242d['locale'];function _0x22e055(_0x3c4b9e,_0x3c5ef6){return o(_0x487f25,'ELEMENT_HEADING_CUSTOM',[_0x3c4b9e,_0x3c5ef6]);}_0x39242d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b8ef2=>{if('formatBlock'!=_0x1b8ef2['type'])return;const {data:_0x3cb4ad}=_0x1b8ef2;if(_0x3cb4ad&&'heading'==_0x3cb4ad['commandName']){const _0x89e6c5=_0x3cb4ad['commandParams'][0x0]['value'],_0x19e78a=this['_getHeadingLevel'](_0x89e6c5);if(null!==_0x19e78a)return{'type':'format','content':o(_0x487f25,'*Change\x20to:*\x20%0',(_0x365066=0x1,_0xa53bba=_0x19e78a,o(_0x487f25,'ELEMENT_HEADING',[_0x365066,_0xa53bba])))};const _0x575069=this['_headingOptions']['find'](_0x382c30=>_0x382c30['model']===_0x89e6c5)['title'];return{'type':'format','content':o(_0x487f25,'*Change\x20to:*\x20%0',_0x22e055(0x1,_0x575069))};}var _0x365066,_0xa53bba;});}['_getHeadingLevel'](_0x4dff6b){const _0x37e07c=_0x4dff6b['match'](/^heading(\d+)/);if(_0x37e07c)return _0x37e07c[0x1];const _0x5c894f=this['_headingOptions']?.['find'](_0x4a9aaf=>_0x4a9aaf['model']==_0x4dff6b);if(_0x5c894f&&_0x5c894f['view']){const _0x1e95ec=_0x5c894f['view'],_0xf098d2=(_0x1e95ec['name']??_0x1e95ec)['match'](/^h(\d+)/);if(_0xf098d2)return _0xf098d2[0x1];}return null;}}class Z extends _0x23b8b9{['afterInit'](){const _0x97a6f8=this['editor'];if(!_0x97a6f8['plugins']['has']('HighlightEditing'))return;const _0x3b2277=_0x97a6f8['plugins']['get']('TrackChangesEditing'),_0x148ca4=_0x97a6f8['locale'];_0x3b2277['enableDefaultAttributesIntegration']('highlight'),_0x3b2277['registerInlineAttribute']('highlight'),_0x3b2277['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x148ca4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x296464=this['editor'],_0x4c6ff8=_0x296464['locale'];_0x296464['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae87c=>{if('formatInline'!=_0x4ae87c['type'])return;const {data:_0x5fa85b}=_0x4ae87c;if(_0x5fa85b&&'highlight'==_0x5fa85b['commandName']){const _0x1489d9=_0x4c6ff8['t'],_0x486edb=_0x5fa85b['commandParams'][0x0]['value'];if(_0x486edb){const _0x16287f=_0x296464['config']['get']('highlight.options')['find'](_0x1e1df3=>_0x1e1df3['model']==_0x486edb),_0x4ff248=_0x1489d9(_0x16287f['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c6ff8,'*Set\x20highlight:*\x20%0',_0x4ff248),'color':{'value':_0x16287f['color'],'title':_0x16287f['title']}};}return{'type':'format','content':o(_0x4c6ff8,'*Remove\x20highlight*',o(_0x4c6ff8,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x23b8b9{['afterInit'](){const _0xd3bf53=this['editor'];if(!_0xd3bf53['plugins']['has']('HorizontalLineEditing'))return;_0xd3bf53['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x59f19e=_0xd3bf53['plugins']['get']('TrackChangesEditing'),_0x48e721=_0xd3bf53['locale'];_0x59f19e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1c126a=>o(_0x48e721,'ELEMENT_HORIZONTAL_LINE',_0x1c126a)),_0xd3bf53['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2fcceb,{writer:_0x21d5ca,options:_0x3f9aa8})=>{if(!_0x3f9aa8['showSuggestionHighlights'])return null;const _0x21fb6a=_0x21d5ca['createContainerElement']('div'),_0x21a236=_0x21d5ca['createEmptyElement']('hr');return _0x21d5ca['addClass']('ck-horizontal-line',_0x21fb6a),_0x21d5ca['insert'](_0x21d5ca['createPositionAt'](_0x21fb6a,0x0),_0x21a236),_0x21fb6a;},'converterPriority':'high'});}}class et extends _0x23b8b9{['afterInit'](){const _0x3cbcd6=this['editor'];if(!_0x3cbcd6['plugins']['has']('HtmlEmbed'))return;const _0x244168=_0x3cbcd6['plugins']['get']('TrackChangesEditing'),_0x1de39b=_0x3cbcd6['locale'];_0x244168['descriptionFactory']['registerElementLabel']('rawHtml',_0x14c3c9=>o(_0x1de39b,'ELEMENT_HTML_EMBED',_0x14c3c9)),_0x244168['enableDefaultAttributesIntegration']('htmlEmbed'),_0x244168['registerBlockAttribute']('value'),_0x244168['descriptionFactory']['registerDescriptionCallback'](_0x516d8e=>{if('attribute'!=_0x516d8e['type'])return;const {data:_0x523793}=_0x516d8e;if(_0x523793&&'value'==_0x523793['key']&&_0x516d8e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x209306=o(_0x1de39b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1de39b,'*Change\x20%0\x20content*',_0x209306)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6aff21=this['editor'],_0x41b393=_0x6aff21['locale'];_0x6aff21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46c57d=>{if('formatBlock'!=_0x46c57d['type'])return;const {data:_0x18eae6}=_0x46c57d;if(_0x18eae6&&'htmlEmbed'==_0x18eae6['commandName']){const _0x40447a=o(_0x41b393,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41b393,'*Change\x20%0\x20content*',_0x40447a)};}});}}class it extends _0x23b8b9{['afterInit'](){const _0x3c8a2b=this['editor'];if(!_0x3c8a2b['plugins']['has']('ImageEditing'))return;const _0x1571e6=_0x3c8a2b['plugins']['get']('TrackChangesEditing'),_0x3dec2f=_0x3c8a2b['plugins']['get']('ImageUtils'),_0x475594=_0x3c8a2b['locale'];_0x1571e6['enableCommand']('insertImage'),_0x1571e6['descriptionFactory']['registerElementLabel']('imageBlock',_0x4bb858=>o(_0x475594,'ELEMENT_IMAGE',_0x4bb858)),_0x1571e6['descriptionFactory']['registerElementLabel']('imageInline',_0x3f08b6=>o(_0x475594,'ELEMENT_INLINE_IMAGE',_0x3f08b6)),_0x1571e6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x475594,'ELEMENT_CAPTION')),_0x3c8a2b['plugins']['has']('ImageUploadEditing')&&_0x1571e6['enableCommand']('uploadImage'),_0x3c8a2b['plugins']['has']('ImageBlockEditing')&&_0x3c8a2b['plugins']['has']('ImageInlineEditing')&&(_0x1571e6['enableCommand']('imageTypeInline',(_0x5ae148,_0x2f40e1)=>{const _0x4135da=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']);_0x3c8a2b['model']['change'](()=>{_0x1571e6['markBlockFormat'](_0x4135da,{'commandName':'imageTypeInline','commandParams':[_0x2f40e1]},[],'convertBlockImageToInline');});}),_0x1571e6['enableCommand']('imageTypeBlock',(_0x4b4ecb,_0x40c93a)=>{_0x3c8a2b['model']['change'](_0x70b558=>{let _0xb47e9=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']),_0x3efc84=_0x70b558['createRangeOn'](_0xb47e9);const _0x5163a6=_0x33b8bc['fromPosition'](_0x3efc84['start'],'toPrevious'),_0x36722f=_0x33b8bc['fromPosition'](_0x3efc84['end'],'toNext');_0x1571e6['forceDefaultExecution'](()=>_0x4b4ecb(_0x40c93a)),_0xb47e9=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']),_0x3efc84=_0x70b558['createRangeOn'](_0xb47e9);const _0x56b047=_0x70b558['createRange'](_0x5163a6,_0x36722f);_0x5163a6['detach'](),_0x36722f['detach'](),_0x1571e6['markBlockFormat'](_0xb47e9,{'commandName':'imageTypeInline','commandParams':[_0x40c93a]},[],'convertInlineImageToBlock'),_0x56b047['start']['isBefore'](_0x3efc84['start'])&&_0x1571e6['markInsertion'](_0x70b558['createRange'](_0x56b047['start'],_0x3efc84['start']),'convertInlineImageToBlock'),_0x3efc84['end']['isBefore'](_0x56b047['end'])&&_0x1571e6['markInsertion'](_0x70b558['createRange'](_0x3efc84['end'],_0x56b047['end']),'convertInlineImageToBlock');});}),_0x1571e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1571e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1571e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1571e6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1571e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1571e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x441aa3])=>{const _0x2ffde2=_0x1571e6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x6ad489=_0x441aa3['start'],_0x75d7f4=_0x441aa3['end'];const _0x4bbe3b=_0x3c8a2b['model']['schema']['getNearestSelectionRange'](_0x6ad489,'backward'),_0x369db9=_0x3c8a2b['model']['schema']['getNearestSelectionRange'](_0x75d7f4,'forward');_0x4bbe3b['isCollapsed']&&(_0x6ad489=_0x4bbe3b['start']),_0x369db9['isCollapsed']&&(_0x75d7f4=_0x369db9['end']),_0x2ffde2([_0x3c8a2b['model']['createRange'](_0x6ad489,_0x75d7f4)]);}),_0x1571e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ecdbb),_0x1571e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ecdbb)),_0x3c8a2b['plugins']['has']('ImageCaptionEditing')&&(_0x1571e6['enableCommand']('toggleImageCaption',(_0xbd68d1,_0x35beba)=>{const _0x4fe25b=_0x3c8a2b['plugins']['get']('ImageCaptionUtils');let _0x290efc=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']),_0x26c6fe=_0x4fe25b['getCaptionFromImageModelElement'](_0x290efc);_0x3c8a2b['model']['change'](()=>{if(_0x26c6fe)return void _0x1571e6['markDeletion'](_0x3c8a2b['model']['createRangeOn'](_0x26c6fe));const _0x71a6f5=_0x3dec2f['isBlockImage'](_0x290efc);_0xbd68d1(_0x35beba),_0x290efc=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']),_0x26c6fe=_0x4fe25b['getCaptionFromImageModelElement'](_0x290efc),_0x1571e6['markInsertion'](_0x3c8a2b['model']['createRangeOn'](_0x26c6fe),_0x71a6f5?null:'imageCaption');});}),_0x1571e6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ecdbb));const _0x348816=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d9fc8(_0x4c767e,_0x2405df){const _0x25e669=_0x348816['findIndex'](({type:_0x27d8fb,subType:_0xeea6b})=>_0x4c767e['type']==_0x27d8fb&&_0x4c767e['subType']==_0xeea6b),_0x1ee6ec=_0x348816['findIndex'](({type:_0x1ab2ce,subType:_0x58eebe})=>_0x2405df['type']==_0x1ab2ce&&_0x2405df['subType']==_0x58eebe);if(_0x25e669<0x0||_0x1ee6ec<0x0)return!0x1;const _0x520abf=_0x4c767e['getFirstRange'](),_0x5a51cf=_0x2405df['getFirstRange']();if((0x0==_0x25e669||0x1==_0x25e669)&&0x2==_0x1ee6ec&&_0x520abf['isIntersecting'](_0x5a51cf))return!0x0;if(0x2==_0x25e669&&0x3==_0x1ee6ec){const _0x315a5c=_0x1571e6['_findSuggestions'](_0x520abf,'insertion')['filter'](({suggestion:_0x213797,meta:_0x4e1a2f})=>_0x4e1a2f['isOwn']&&'convertInlineImageToBlock'==_0x213797['subType']);if(_0x315a5c['length']>0x1&&_0x5a51cf['end']['isEqual'](_0x520abf['start']))return!0x0;if(0x1==_0x315a5c['length']&&(_0x520abf['start']['isEqual'](_0x5a51cf['end'])||_0x520abf['end']['isEqual'](_0x5a51cf['start'])))return!0x0;}if(0x3==_0x25e669&&0x3==_0x1ee6ec&&_0x520abf['start']['isBefore'](_0x5a51cf['start'])){const _0x1a97bd=_0x520abf['end']['nodeAfter'],_0x3fbe0d=_0x5a51cf['start']['nodeBefore'];return _0x3dec2f['isBlockImage'](_0x1a97bd)&&_0x1a97bd===_0x3fbe0d;}return!0x1;}function _0x5ecdbb(_0x67cc3d,_0x54bf1a){return _0x5d9fc8(_0x67cc3d,_0x54bf1a)?[_0x67cc3d,_0x54bf1a]:_0x5d9fc8(_0x54bf1a,_0x67cc3d)?[_0x54bf1a,_0x67cc3d]:null;}_0x3c8a2b['plugins']['has']('ImageResize')&&(_0x1571e6['enableDefaultAttributesIntegration']('resizeImage'),_0x1571e6['registerBlockAttribute']('resizedWidth'),_0x1571e6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x475594,'FORMAT_IMAGE_SIZE'))),_0x3c8a2b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1571e6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1571e6['registerBlockAttribute']('alt')),_0x1571e6['descriptionFactory']['registerDescriptionCallback'](_0x516d0f=>{if(!!_0x348816['find'](({type:_0x238b39,subType:_0x4087f3})=>_0x516d0f['type']==_0x238b39&&_0x516d0f['subType']==_0x4087f3))return _0x516d0f['previous']?{}:void 0x0;}),_0x1571e6['descriptionFactory']['registerDescriptionCallback'](_0x1f0094=>{if('insertion'==_0x1f0094['type']||'deletion'==_0x1f0094['type']){const _0x26f0d3=_0x1f0094['getContainedElement']();if(_0x26f0d3&&_0x26f0d3['is']('element','caption'))return{'type':'insertion'==_0x1f0094['type']?'addObject':'removeObject','element':_0x26f0d3,'quantity':0x1};}}),_0x1571e6['descriptionFactory']['registerDescriptionCallback'](_0xee11ad=>'formatBlock'==_0xee11ad['type']&&'convertInlineImageToBlock'==_0xee11ad['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xee11ad['type']&&'convertBlockImageToInline'==_0xee11ad['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1571e6['descriptionFactory']['registerDescriptionCallback'](_0x406fda=>{if('attribute'!=_0x406fda['type'])return;const {data:_0x41c9a7}=_0x406fda;if(!_0x41c9a7||'alt'!=_0x41c9a7['key'])return;const _0x57f565=_0x41c9a7['newValue'];return _0x57f565?{'type':'format','content':o(_0x475594,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57f565+'\x22')}:{'type':'format','content':o(_0x475594,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x222bb7=this['editor'],_0x8ed9d5=_0x222bb7['locale'];_0x222bb7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c2868=>{if('formatBlock'!=_0x5c2868['type']&&'formatInline'!=_0x5c2868['type'])return;const {data:_0x327e2f}=_0x5c2868;if(_0x327e2f){if('imageTextAlternative'==_0x327e2f['commandName']){const _0x2aa374=_0x327e2f['commandParams'][0x0]['newValue'];return _0x2aa374?{'type':'format','content':o(_0x8ed9d5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2aa374+'\x22')}:{'type':'format','content':o(_0x8ed9d5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x327e2f['commandName']){const _0x40769d=_0x327e2f['commandParams'][0x0]['width'];return _0x40769d?{'type':'format','content':o(_0x8ed9d5,'*Set\x20image\x20width:*\x20%0',_0x40769d)}:{'type':'format','content':o(_0x8ed9d5,'*Reset\x20image\x20width*')};}}});}}class st extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5b07e1=this['editor']['locale'],_0x45d42f=this['editor']['plugins']['get']('TrackChangesEditing');_0x45d42f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x45d42f['registerBlockAttribute']('src'),_0x45d42f['descriptionFactory']['registerDescriptionCallback'](_0x15f1a4=>{if('attribute'!=_0x15f1a4['type'])return;const {data:_0x346d70}=_0x15f1a4;return _0x346d70&&'src'==_0x346d70['key']?_0x346d70['newValue']&&_0x346d70['oldValue']?{'type':'format','content':o(_0x5b07e1,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4c5bb0=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c5bb0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4c5bb0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c5bb0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4c5bb0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44504b=this['editor'],_0xed0f26=_0x44504b['locale'];_0x44504b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565c5f=>{if('formatBlock'!=_0x565c5f['type']&&'formatInline'!=_0x565c5f['type'])return;const {data:_0x5bf066}=_0x565c5f;if(!_0x5bf066||'replaceImageSource'!=_0x5bf066['commandName'])return;return{'type':'format','content':o(_0xed0f26,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x23b8b9{['afterInit'](){const _0xb50e5f=this['editor'];if(!_0xb50e5f['plugins']['has']('ImageStyleEditing'))return;const _0x430d8b=_0xb50e5f['plugins']['get']('TrackChangesEditing'),_0x2c60f3=_0xb50e5f['plugins']['get']('ImageUtils'),_0x47ee57={};_0x430d8b['enableCommand']('imageStyle',(_0x2f2272,_0x268aaf)=>{const _0x2fb343=_0xb50e5f['plugins']['get']('Users')['me'],_0x37ed52=_0xb50e5f['commands']['get']('imageStyle');let _0x5506f5=_0x2c60f3['getClosestSelectedImageElement'](_0xb50e5f['model']['document']['selection']),_0x2ac666=_0xb50e5f['model']['createRangeOn'](_0x5506f5),_0x452e5a=_0x37ed52['value'];if(_0x452e5a==_0x268aaf['value'])return;const _0x33c1c7={'commandName':'imageStyle','commandParams':[_0x268aaf],'formatGroupId':_0x2905f1()};_0xb50e5f['model']['change'](()=>{if(_0x430d8b['getSuggestions']()['filter'](_0x19b78e=>_0x19b78e['isInContent']&&_0x2fb343==_0x19b78e['author']&&('formatBlock'==_0x19b78e['type']||'formatInline'==_0x19b78e['type'])&&('imageStylePreApply'==_0x19b78e['subType']||'imageStylePostApply'==_0x19b78e['subType'])&&_0x19b78e['getFirstRange']()['isEqual'](_0x2ac666))['forEach'](_0x3f7cfa=>_0x430d8b['discardSuggestion'](_0x3f7cfa['head'])),_0x5506f5=_0x2c60f3['getClosestSelectedImageElement'](_0xb50e5f['model']['document']['selection']),_0x2ac666=_0xb50e5f['model']['createRangeOn'](_0x5506f5),_0x37ed52['refresh'](),_0xb50e5f['commands']['get']('imageTypeInline')['refresh'](),_0xb50e5f['commands']['get']('imageTypeBlock')['refresh'](),_0x452e5a=_0x37ed52['value'],_0x452e5a!=_0x268aaf['value'])return _0x2c60f3['isInlineImage'](_0x5506f5)&&_0x37ed52['shouldConvertImageType'](_0x268aaf['value'],_0x5506f5)?(_0x2f2272({..._0x268aaf,'setImageSizes':!0x1}),_0x5506f5=_0x2c60f3['getClosestSelectedImageElement'](_0xb50e5f['model']['document']['selection']),void _0x430d8b['markBlockFormat'](_0x5506f5,{..._0x33c1c7,'commandReversedParams':[{'value':_0x452e5a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c60f3['isBlockImage'](_0x5506f5)?_0x430d8b['markBlockFormat'](_0x5506f5,_0x33c1c7,[],'imageStylePostApply'):_0x430d8b['markInlineFormat'](_0x2ac666,_0x33c1c7,'imageStylePostApply'));});});for(const _0x4cf132 of _0xb50e5f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x47ee57[_0x4cf132['name']]=_0x4cf132['title']['toLowerCase']();_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x392b47])=>{_0x2c60f3['setImageNaturalSizeAttributes'](_0x392b47['getContainedElement']());}),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x425509,_0x1c2f64)=>{_0x430d8b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x425509,{'commandName':_0x1c2f64['commandName'],'commandParams':_0x1c2f64['commandReversedParams']});}),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x15e35b,_0x3c2b2b){if(_0x467ae1(_0x15e35b,_0x3c2b2b))return[_0x15e35b,_0x3c2b2b];if(_0x467ae1(_0x3c2b2b,_0x15e35b))return[_0x3c2b2b,_0x15e35b];return null;});const _0x4ea309=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x467ae1(_0x1061bf,_0x36cb63){const _0x25ab08=_0x4ea309['findIndex'](({type:_0x1953de,subType:_0x5b7ecc})=>_0x1061bf['type']==_0x1953de&&_0x1061bf['subType']==_0x5b7ecc),_0x5cdebc=_0x4ea309['findIndex'](({type:_0x3196c8,subType:_0x46cfaf})=>_0x36cb63['type']==_0x3196c8&&_0x36cb63['subType']==_0x46cfaf);if(_0x25ab08<0x0||_0x5cdebc<0x0)return!0x1;const _0x54a57a=_0x1061bf['getFirstRange'](),_0x5e4385=_0x36cb63['getFirstRange']();if((0x0==_0x25ab08||0x1==_0x25ab08)&&0x2==_0x5cdebc&&_0x54a57a['isIntersecting'](_0x5e4385))return!0x0;if(0x2==_0x25ab08&&0x3==_0x5cdebc){const _0x461462=_0x430d8b['_findSuggestions'](_0x54a57a,'insertion')['filter'](({suggestion:_0xc7b314,meta:_0x11d27f})=>_0x11d27f['isOwn']&&'convertInlineImageToBlock'==_0xc7b314['subType']);if(_0x461462['length']>0x1&&_0x5e4385['end']['isEqual'](_0x54a57a['start']))return!0x0;if(0x1==_0x461462['length']&&(_0x54a57a['start']['isEqual'](_0x5e4385['end'])||_0x54a57a['end']['isEqual'](_0x5e4385['start'])))return!0x0;}if(0x3==_0x25ab08&&0x3==_0x5cdebc&&_0x54a57a['start']['isBefore'](_0x5e4385['start'])){const _0x23f5fa=_0x54a57a['end']['nodeAfter'],_0x3b6807=_0x5e4385['start']['nodeBefore'];return _0x2c60f3['isBlockImage'](_0x23f5fa)&&_0x23f5fa===_0x3b6807;}return!0x1;}_0xb50e5f['model']['document']['registerPostFixer'](()=>{let _0x207a2c=!0x1;const _0x1a6238=Array['from'](_0xb50e5f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c4298,data:_0x32607d}of _0x1a6238){const {group:_0x53dc02,type:_0x48c0fa,subType:_0x21da7d,id:_0x5318f2}=_0x430d8b['_splitMarkerName'](_0x3c4298);if('suggestion'==_0x53dc02&&_0x430d8b['hasSuggestion'](_0x5318f2)){if('formatBlock'==_0x48c0fa&&('imageStylePreApply'==_0x21da7d||'imageStylePostApply'==_0x21da7d)){const _0x193539=_0x430d8b['getSuggestion'](_0x5318f2);if(_0x32607d['newRange']){const _0x4ebbd4=_0x193539['getFirstRange']()['getContainedElement']();if(_0x2c60f3['isBlockImage'](_0x4ebbd4))continue;_0x430d8b['discardSuggestion'](_0x193539),_0x207a2c=!0x0;}}if('insertion'==_0x48c0fa&&'imageCaption'==_0x21da7d&&!_0x32607d['newRange']){const _0x1043cc=_0x430d8b['getSuggestion'](_0x5318f2);_0x1043cc['next']&&_0x1043cc['next']['isInContent']&&(_0x430d8b['discardSuggestion'](_0x1043cc['next']),_0x207a2c=!0x0);}}}return _0x207a2c;}),this['_registerLegacyDescription'](_0x47ee57);}['_registerLegacyDescription'](_0x2c3baa){const _0x1ad41b=this['editor'],_0x15341a=_0x1ad41b['locale'];_0x1ad41b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4480a2=>{if('formatBlock'!=_0x4480a2['type']&&'formatInline'!=_0x4480a2['type'])return;const {data:_0x2d6dc2}=_0x4480a2;if(!_0x2d6dc2||'imageStyle'!=_0x2d6dc2['commandName'])return;const _0x11727c=_0x2d6dc2['commandParams'][0x0]['value'];return _0x57baa4('side'===_0x11727c?o(_0x15341a,'FORMAT_SIDE_IMAGE'):_0x2c3baa[_0x11727c]||_0x11727c);function _0x57baa4(_0x39d42d){return{'type':'format','content':o(_0x15341a,'*Format:*\x20%0',_0x39d42d)};}});}}class ot extends _0x23b8b9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x418229){super(_0x418229),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x293dd2=this['editor'],_0x4a134c=_0x293dd2['commands']['get']('importWord'),_0x21044c=_0x293dd2['commands']['get']('trackChanges');_0x4a134c&&(_0x4a134c['on']('execute',(_0x17b202,[,_0x3a8037])=>{this['_trackChangesValueDuringImport']=_0x21044c['value'],_0x3a8037['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4a134c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4a134c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21044c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x293dd2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4ab54b,_0x86e15){const {suggestions:_0x5a9d96}=_0x86e15,_0x265dfa=this['editor']['commands']['get']('trackChanges'),_0x5a9b48=_0x265dfa['value'];this['_trackChangesValueDuringImport']!==_0x5a9b48&&(_0x265dfa['execute'](),this['_trackChangesExecuted']=!0x0),_0x5a9d96&&_0x5a9d96['forEach'](({id:_0x1f4df5,type:_0xff495d,author:_0x4e1e04,created_at:_0x2496dd})=>{const _0x3b2965={'id':_0x1f4df5,'type':_0xff495d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4e1e04,'createdAt':_0x2496dd?new Date(_0x2496dd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3b2965);});}}class rt extends _0x23b8b9{['afterInit'](){const _0x215e30=this['editor'],_0x3d75ad=_0x215e30['plugins']['get']('TrackChangesEditing');if(_0x215e30['plugins']['has']('IndentEditing')&&(_0x3d75ad['enableCommand']('indent'),_0x3d75ad['enableCommand']('outdent')),_0x215e30['plugins']['has']('IndentBlock')){for(const _0x545082 of['indentBlock','outdentBlock'])_0x3d75ad['enableDefaultAttributesIntegration'](_0x545082);}const _0x53be27=_0x215e30['locale'];_0x3d75ad['registerBlockAttribute']('blockIndent'),_0x3d75ad['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x53be27,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x413ed5=this['editor'],_0x1fdd9d=_0x413ed5['locale'],_0x58daf5=_0x413ed5['plugins']['get']('TrackChangesEditing');_0x58daf5['descriptionFactory']['registerDescriptionCallback'](_0x1aa73b=>{if('formatBlock'!=_0x1aa73b['type'])return;const {data:_0x14f343}=_0x1aa73b;if(!_0x14f343)return;if('indentBlock'!=_0x14f343['commandName']&&'outdentBlock'!=_0x14f343['commandName'])return;const _0x4ae375=_0x1aa73b['getItems']()[0x0],_0x269847=_0x58daf5['descriptionFactory']['getItemLabel'](_0x4ae375);return'indentBlock'==_0x14f343['commandName']?{'type':'format','content':o(_0x1fdd9d,'*Indent:*\x20%0',_0x269847)}:'outdentBlock'==_0x14f343['commandName']?{'type':'format','content':o(_0x1fdd9d,'*Outdent:*\x20%0',_0x269847)}:void 0x0;});}}class at extends _0x23b8b9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x23b8b9{['afterInit'](){const _0x407aa8=this['editor'];if(!_0x407aa8['plugins']['has']('LinkEditing'))return;const _0xb10784=_0x407aa8['plugins']['get']('TrackChangesEditing'),_0x8dc9a1=_0x407aa8['commands']['get']('link');_0xb10784['enableDefaultAttributesIntegration']('link'),_0xb10784['enableDefaultAttributesIntegration']('unlink'),_0xb10784['registerInlineAttribute']('linkHref');for(const _0x1d5d5d of _0x8dc9a1['manualDecorators'])_0xb10784['registerInlineAttribute'](_0x1d5d5d['id']),_0xb10784['descriptionFactory']['registerAttributeLabel'](_0x1d5d5d['id'],'link\x20('+_0x1d5d5d['label']['toLowerCase']()+')');_0xb10784['descriptionFactory']['registerDescriptionCallback'](_0x226ccd=>{if('attribute'!=_0x226ccd['type'])return;const {data:_0x5b1589}=_0x226ccd;if(!_0x5b1589||'linkHref'!=_0x5b1589['key'])return;const _0x14f6f4=_0x5b1589['newValue'],_0x581168=_0x407aa8['locale'];return{'type':'format','content':null==_0x14f6f4?o(_0x581168,'*Remove\x20link*'):o(_0x581168,'*Set\x20link:*\x20%0','\x22'+_0x14f6f4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17779f=this['editor'],_0x5eb0e3=_0x17779f['locale'];_0x17779f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40544b=>{if('formatInline'!=_0x40544b['type'])return;const {data:_0x3f242a}=_0x40544b;if(_0x3f242a){if('link'==_0x3f242a['commandName']){const _0x999972=_0x3f242a['commandParams'][0x0];return{'type':'format','content':o(_0x5eb0e3,'*Set\x20link:*\x20%0','\x22'+_0x999972+'\x22')};}return'unlink'==_0x3f242a['commandName']?{'type':'format','content':o(_0x5eb0e3,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x23b8b9{['afterInit'](){const _0x100a34=this['editor'],_0xa44a03=_0x100a34['locale'];if(!_0x100a34['plugins']['has']('LegacyListEditing'))return;const _0x15052b=_0x100a34['plugins']['get']('TrackChangesEditing'),_0x19eb64=_0x100a34['plugins']['has']('LegacyTodoListEditing');function _0x11fc0d(_0x412d9b){return()=>{const _0x2636cb=_0x100a34['model']['document']['selection'],_0x2518b3=_0x100a34['commands']['get'](_0x412d9b);if(_0x2518b3['value'])return void _0x100a34['execute']('paragraph',{});const _0x21b8c9=_0x412d9b['slice'](0x0,-0x4),_0x17756b=function(_0x279f21,_0x41ef86,_0xca1cc7){let _0x54c11c=Array['from'](_0x279f21)['filter'](_0x3b4972=>function(_0x145721,_0x225cd6){return _0x225cd6['checkChild'](_0x145721['parent'],'listItem')&&!_0x225cd6['isObject'](_0x145721);}(_0x3b4972,_0xca1cc7));_0x54c11c=_0x54c11c['filter'](_0x1746d1=>!_0x1746d1['is']('element','listItem')||_0x1746d1['getAttribute']('listType')!=_0x41ef86);const _0x1094ec=new Set();for(const _0x140971 of _0x54c11c)_0x140971['is']('element','listItem')?_0x1094ec['add'](fe(_0x140971)):_0x1094ec['add'](_0x140971);return Array['from'](_0x1094ec);}(_0x2636cb['getSelectedBlocks'](),_0x21b8c9,_0x100a34['model']['schema']);_0x100a34['model']['change'](()=>{for(const _0x5ed82b of _0x17756b)_0x15052b['markBlockFormat'](_0x5ed82b,{'commandName':_0x412d9b,'commandParams':[{'forceValue':!_0x2518b3['value']}],'formatGroupId':'blockName'},ue(_0x5ed82b));});};}function _0x3d5695(_0x499ea4){return()=>{const _0x3841b8=function(_0x2a749a){let _0x4081ad=Array['from'](_0x2a749a);const _0x8744f5=_0x4081ad['findIndex'](_0x4b917b=>'listItem'!=_0x4b917b['name']);return _0x8744f5>-0x1&&(_0x4081ad=_0x4081ad['slice'](0x0,_0x8744f5)),_0x4081ad;}(_0x100a34['model']['document']['selection']['getSelectedBlocks']()),_0x332495=_0x100a34['model']['createRange'](_0x100a34['model']['createPositionAt'](_0x3841b8[0x0],'before'),_0x100a34['model']['createPositionAt'](_0x3841b8[_0x3841b8['length']-0x1],'end'));_0x100a34['model']['change'](()=>{_0x15052b['markBlockFormat'](_0x332495,{'commandName':_0x499ea4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x507e72){const _0x101eaa=new Set();for(const _0x4b4b9b of _0x507e72){let _0x8c0c93=_0x4b4b9b['nextSibling'];for(;_0x8c0c93&&_0x8c0c93['getAttribute']('listIndent')>_0x4b4b9b['getAttribute']('listIndent');)_0x101eaa['add'](_0x8c0c93),_0x8c0c93=_0x8c0c93['nextSibling'];}return Array['from'](_0x101eaa);}(_0x3841b8));});};}_0x15052b['enableCommand']('numberedList',_0x11fc0d('numberedList')),_0x15052b['enableCommand']('bulletedList',_0x11fc0d('bulletedList')),_0x19eb64&&_0x15052b['enableCommand']('todoList',_0x11fc0d('todoList')),_0x15052b['enableCommand']('indentList',_0x3d5695('indentList')),_0x15052b['enableCommand']('outdentList',_0x3d5695('outdentList')),_0x19eb64&&_0x15052b['enableCommand']('checkTodoList',()=>{const _0xbe0240=_0x100a34['commands']['get']('checkTodoList'),_0x232bec=Array['from'](_0xbe0240['_selectedElements']);_0x232bec['filter'](_0x3d3da0=>_0x3d3da0['getAttribute']('todoListChecked')!=_0xbe0240['value']),_0x100a34['model']['change'](()=>{for(const _0x2a98c3 of _0x232bec)_0x15052b['markBlockFormat'](_0x2a98c3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xbe0240['value']}]});});}),_0x15052b['descriptionFactory']['registerElementLabel']('listItem',_0x47f6ea=>o(_0xa44a03,'ELEMENT_LIST_ITEM',_0x47f6ea)),_0x15052b['descriptionFactory']['registerDescriptionCallback'](_0x3b4346=>{if('formatBlock'!=_0x3b4346['type']&&'formatInline'!=_0x3b4346['type'])return;const {data:_0x364516}=_0x3b4346;if(_0x364516){if('numberedList'==_0x364516['commandName']||'bulletedList'==_0x364516['commandName']||'todoList'==_0x364516['commandName'])switch(_0x364516['commandName']['replace']('List','')){case'bulleted':return _0x4299fb(o(_0xa44a03,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4299fb(o(_0xa44a03,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4299fb(o(_0xa44a03,'ELEMENT_TODO_LIST'));}if('indentList'==_0x364516['commandName'])return{'type':'format','content':o(_0xa44a03,'*Indent:*\x20%0',o(_0xa44a03,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x364516['commandName'])return{'type':'format','content':o(_0xa44a03,'*Outdent:*\x20%0',o(_0xa44a03,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x364516['commandName'])return _0x364516['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa44a03,'*Check\x20item*')}:{'type':'format','content':o(_0xa44a03,'*Uncheck\x20item*')};}function _0x4299fb(_0x2c5e61){return{'type':'format','content':o(_0xa44a03,'*Change\x20to:*\x20%0',_0x2c5e61)};}});}}function fe(_0x14cd38){const _0x115c8c=_0x14cd38['getAttribute']('listIndent');if(0x0==_0x115c8c)return _0x14cd38;let _0x5eff42=_0x14cd38;for(;_0x14cd38['previousSibling']&&_0x14cd38['previousSibling']['is']('element','listItem');){const _0x1f7b8c=_0x14cd38['previousSibling']['getAttribute']('listIndent');if(_0x1f7b8c==_0x115c8c)_0x5eff42=_0x14cd38['previousSibling'];else{if(_0x1f7b8c<_0x115c8c)break;}_0x14cd38=_0x14cd38['previousSibling'];}return _0x5eff42;}function ue(_0x14e806){const _0x3e44e3=[];if(_0x14e806['is']('element','listItem')&&_0x14e806['getAttribute']('listIndent')>0x0){let _0x1f5c7f=_0x14e806['nextSibling'];for(;_0x1f5c7f&&'listItem'==_0x1f5c7f['name']&&_0x1f5c7f['getAttribute']('listIndent')==_0x14e806['getAttribute']('listIndent');)_0x3e44e3['push'](_0x1f5c7f),_0x1f5c7f=_0x1f5c7f['nextSibling'];}return _0x3e44e3;}class K extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x40cc50=this['editor']['config']['get']('list.properties'),_0x5f24dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x40cc50['styles']&&_0x5f24dd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x40cc50['reversed']&&_0x5f24dd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x40cc50['startIndex']&&_0x5f24dd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5f24dd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6b270,_0x1c6e63={}){const _0x56bbae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bbd88=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56bbae['markMultiRangeBlockFormat'](_0x1bbd88,{'commandName':'listStyle','commandParams':[{'type':_0x1c6e63['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5de053,_0x4a6fe7={}){const _0x487619=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb9fc3e=this['_getSuggestionBlocks'](_0xab4bdc=>_0xab4bdc['is']('element','listItem')&&'numbered'===_0xab4bdc['getAttribute']('listType'));if(_0xb9fc3e['length']<0x1)return;const _0x2d9fde=_0xb9fc3e['map'](_0x1b099d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b099d,'before'),this['editor']['model']['createPositionAt'](_0x1b099d,0x0)));this['editor']['model']['change'](()=>{_0x487619['markMultiRangeBlockFormat'](_0x2d9fde,{'commandName':'listReversed','commandParams':[{'reversed':_0x4a6fe7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x20487b,_0x2bb45a={}){const _0x5ba474=this['editor']['plugins']['get']('TrackChangesEditing'),_0x266172=this['_getSuggestionBlocks'](_0x53d01a=>_0x53d01a['is']('element','listItem')&&'numbered'===_0x53d01a['getAttribute']('listType'));if(_0x266172['length']<0x1)return;const _0x51c6e3=_0x266172['map'](_0x3ce5e0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ce5e0,'before'),this['editor']['model']['createPositionAt'](_0x3ce5e0,0x0)));this['editor']['model']['change'](()=>{_0x5ba474['markMultiRangeBlockFormat'](_0x51c6e3,{'commandName':'listStart','commandParams':[{'startIndex':_0x2bb45a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5b54b7){if('formatBlock'!=_0x5b54b7['type']&&'formatInline'!=_0x5b54b7['type'])return;const _0x1b884a=this['editor']['locale'],{data:_0x3fe263}=_0x5b54b7;if(!_0x3fe263)return;let _0x45b9a8,_0x5a8f20;switch(_0x3fe263['commandName']){case'listStyle':_0x45b9a8='*Change\x20to:*\x20%0',_0x5a8f20={'type':'format','content':o(_0x1b884a,_0x45b9a8,o(_0x1b884a,this['_getTranslationKeyForListStyle'](_0x3fe263['commandParams'][0x0]['type'])))};break;case'listReversed':_0x45b9a8=_0x3fe263['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a8f20={'type':'format','content':o(_0x1b884a,_0x45b9a8)};break;case'listStart':_0x45b9a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a8f20={'type':'format','content':o(_0x1b884a,_0x45b9a8,_0x3fe263['commandParams'][0x0]['startIndex'])};}return _0x5a8f20;}['_getSuggestionBlocksForListStyle'](){const _0x53515d=this['editor']['plugins']['get']('LegacyListUtils');let _0x6e9da8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x6e9da8[0x0]?.['is']('element','listItem')&&_0x6e9da8['unshift'](..._0x53515d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x6e9da8[_0x6e9da8['length']-0x1]?.['is']('element','listItem')&&_0x6e9da8['push'](..._0x53515d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x6e9da8=[...new Set(_0x6e9da8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x6e9da8=_0x6e9da8['filter'](_0x248ac4=>_0x248ac4['is']('element','listItem'))),_0x6e9da8;}['_getSuggestionBlocks'](_0x189891){const _0x4eb5bd=this['editor']['plugins']['get']('LegacyListUtils');let _0x95e47c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x189891)['map'](_0x1849f7=>{const _0x3437df=this['editor']['model']['createPositionAt'](_0x1849f7,0x0);return[..._0x4eb5bd['getSiblingNodes'](_0x3437df,'backward'),..._0x4eb5bd['getSiblingNodes'](_0x3437df,'forward')];})['flat']();return _0x95e47c=[...new Set(_0x95e47c)],_0x95e47c;}['_getTranslationKeyForListStyle'](_0x27d545){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27d545)||'default')['toUpperCase']()+'_LIST_'+_0x27d545['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x23b8b9{['afterInit'](){const _0x44d18e=this['editor'];if(!_0x44d18e['plugins']['has']('MediaEmbedEditing'))return;const _0xf9c45e=_0x44d18e['plugins']['get']('TrackChangesEditing'),_0x5439c0=_0x44d18e['locale'];_0xf9c45e['enableCommand']('mediaEmbed'),_0xf9c45e['descriptionFactory']['registerElementLabel']('media',_0x2952cf=>o(_0x5439c0,'ELEMENT_MEDIA',_0x2952cf)),_0x44d18e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x47da2c,{writer:_0x201f1b,options:_0x359979})=>{if(_0x359979['showSuggestionHighlights'])return _0x201f1b['createEmptyElement']('div');},'converterPriority':'high'}),_0x44d18e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x264716,_0x340a95,_0x454b56)=>{_0x454b56['options']['showSuggestionHighlights']&&_0x264716['stop']();},{'priority':'high'});}}class gt extends _0x23b8b9{['afterInit'](){const _0x422607=this['editor'];_0x422607['plugins']['has']('MentionEditing')&&_0x422607['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x23b8b9{['afterInit'](){const _0x470a43=this['editor'];if(!_0x470a43['commands']['get']('insertMergeField'))return;_0x470a43['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x33e113=_0x470a43['plugins']['get']('TrackChangesEditing'),_0x5310b1=_0x470a43['locale'];_0x33e113['descriptionFactory']['registerElementLabel']('mergeField',_0x10b471=>o(_0x5310b1,'ELEMENT_MERGE_FIELD',_0x10b471)),_0x33e113['descriptionFactory']['registerDescriptionCallback'](_0x29679a=>{if('insertion'!=_0x29679a['type']&&'deletion'!=_0x29679a['type'])return;const _0x2dd8eb=_0x29679a['getContainedElement']();if(null==_0x2dd8eb)return;if(!_0x2dd8eb['is']('element','mergeField'))return;const _0x2948a2=_0x470a43['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x2dd8eb['getAttribute']('id'));return'insertion'==_0x29679a['type']?{'type':'insertion','content':o(_0x5310b1,'*Insert:*\x20%0','\x22'+_0x2948a2+'\x22\x20'+o(_0x5310b1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5310b1,'*Remove:*\x20%0','\x22'+_0x2948a2+'\x22\x20'+o(_0x5310b1,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x23b8b9{['afterInit'](){const _0x3ff4de=this['editor'],_0x4dd272=_0x3ff4de['plugins']['get']('TrackChangesEditing');_0x3ff4de['plugins']['has']('MultiLevelList')&&(_0x4dd272['enableDefaultAttributesIntegration']('multiLevelList'),_0x4dd272['registerBlockAttribute']('listMarkerStyle'),_0x4dd272['descriptionFactory']['registerDescriptionCallback'](_0x32be1c=>this['handleDescriptions'](_0x32be1c)));}['handleDescriptions'](_0x3ec686){const _0x278a16=this['editor']['locale'],{data:_0x49a851}=_0x3ec686,_0x2d1332={'type':'format','content':''};if(_0x49a851&&'listMarkerStyle'==_0x49a851['key']){if(!_0x49a851['oldValue'])return{'type':'format','content':o(_0x278a16,'*Set\x20format:*\x20%0',o(_0x278a16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49a851['newValue']+')'};if(!_0x49a851['newValue']){let _0x53681a=_0x3ec686['head'];for(;_0x53681a;){if(_0x53681a['data']&&'listType'==_0x53681a['data']['key']&&_0x53681a['data']['newValue'])return _0x2d1332;_0x53681a=_0x53681a['next'];}return{'type':'format','content':o(_0x278a16,'*Remove\x20format:*\x20%0',o(_0x278a16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49a851['oldValue']+')'};}}}}class dt extends _0x23b8b9{['afterInit'](){const _0xef6aeb=this['editor'];if(!_0xef6aeb['plugins']['has']('PageBreakEditing'))return;_0xef6aeb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24f23e=_0xef6aeb['plugins']['get']('TrackChangesEditing'),_0x3d11cd=_0xef6aeb['locale'];_0x24f23e['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c8ec8=>o(_0x3d11cd,'ELEMENT_PAGE_BREAK',_0x2c8ec8));}}class pt extends _0x23b8b9{['afterInit'](){const _0x23ffe2=this['editor'];if(!_0x23ffe2['plugins']['has']('Paragraph'))return;const _0x27a839=_0x23ffe2['locale'],_0x44a233=_0x23ffe2['plugins']['get']('TrackChangesEditing');_0x44a233['descriptionFactory']['registerElementLabel']('paragraph',_0x507d2a=>o(_0x27a839,'ELEMENT_PARAGRAPH',_0x507d2a)),_0x44a233['enableDefaultAttributesIntegration']('paragraph'),_0x44a233['enableCommand']('insertParagraph'),_0x23ffe2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x23ffe2),{'priority':'highest'}),_0x23ffe2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44aac5,_0x1a6ea7,_0x42bca6)=>{_0x42bca6['options']['showSuggestionHighlights']&&nr(_0x23ffe2,{'showActiveMarker':!0x1})(_0x44aac5,_0x1a6ea7,_0x42bca6);},{'priority':'highest'});const _0x285258=_0x44a233['descriptionFactory'];_0x285258['registerDescriptionCallback'](_0x48e220=>{if('insertion'!==_0x48e220['type'])return;const {start:_0x1de063,end:_0x38e09e}=_0x48e220['getFirstRange']();if(!_0x1de063['isTouching'](_0x38e09e)||!_0x1de063['nodeAfter'])return;const _0x4c9670=_0x23ffe2['model']['schema'],_0x258c01=_0x1de063['nodeAfter'];return _0x4c9670['isBlock'](_0x258c01)&&!_0x4c9670['isLimit'](_0x258c01)&&_0x4c9670['checkChild'](_0x258c01,'$text')?{'type':'insertion','content':o(_0x27a839,'*Insert:*\x20%0',_0x285258['getItemLabel'](_0x258c01,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x379762=this['editor'],_0x3dff71=_0x379762['locale'];_0x379762['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x511f01=>{if('formatBlock'!=_0x511f01['type'])return;const {data:_0x1c3066}=_0x511f01;return _0x1c3066&&'paragraph'==_0x1c3066['commandName']?{'type':'format','content':o(_0x3dff71,'*Change\x20to:*\x20%0',o(_0x3dff71,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x20e50a,{showActiveMarker:_0x1d6c5c=!0x0}={}){return(_0x8c8157,_0x246aee,_0xaa10d7)=>{const _0x1d1d00=_0x20e50a['plugins']['get']('TrackChangesEditing'),_0x1da801=_0x246aee['markerRange']['start'],_0x13fab5=_0x246aee['markerRange']['end'],_0xafc219=_0x20e50a['model']['schema'];if(!_0x1da801['isTouching'](_0x13fab5)||!_0x1da801['nodeAfter'])return;const _0x8838e9=_0x1da801['nodeAfter'];if(_0xafc219['isBlock'](_0x8838e9)&&!_0xafc219['isLimit'](_0x8838e9)&&_0xafc219['checkChild'](_0x8838e9,'$text')){if(!_0xaa10d7['consumable']['consume'](_0x246aee['markerRange'],_0x8c8157['name']))return;const _0x10e520=_0xaa10d7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x412104=_0xaa10d7['mapper']['toViewPosition'](_0x13fab5);_0x1d6c5c&&_0x1d1d00['activeMarkers']['includes'](_0x246aee['markerName'])&&_0xaa10d7['writer']['addClass']('ck-suggestion-marker--active',_0x10e520),_0xaa10d7['writer']['insert'](_0x412104,_0x10e520),_0xaa10d7['mapper']['bindElementToMarker'](_0x10e520,_0x246aee['markerName']);}};}class kt extends _0x23b8b9{['afterInit'](){const _0x50b3cc=this['editor'];if(!_0x50b3cc['plugins']['has']('RemoveFormatEditing'))return;_0x50b3cc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4987fe=this['editor'];_0x4987fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39c518=>{if('formatBlock'!=_0x39c518['type']&&'formatInline'!=_0x39c518['type'])return;const {data:_0xc3a064}=_0x39c518;return _0xc3a064&&'removeFormat'==_0xc3a064['commandName']?{'type':'format','content':o(_0x4987fe['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x23b8b9{['afterInit'](){const _0x15c345=this['editor'];if(!_0x15c345['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3533d3=_0x15c345['plugins']['get']('TrackChangesEditing');_0x3533d3['enableCommand']('goToPreviousRestrictedEditingException'),_0x3533d3['enableCommand']('goToNextRestrictedEditingException');const _0x24e0f1=_0x15c345['plugins']['get']('RestrictedEditingModeEditing');_0x24e0f1['enableCommand']('trackChanges'),_0x24e0f1['enableCommand']('acceptSuggestion'),_0x24e0f1['enableCommand']('discardSuggestion'),_0x24e0f1['enableCommand']('acceptAllSuggestions'),_0x24e0f1['enableCommand']('discardAllSuggestions'),_0x24e0f1['enableCommand']('acceptSelectedSuggestions'),_0x24e0f1['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x23b8b9{static get['requires'](){return[_0x520e55];}['init'](){const _0x32c0c8=this['editor'],_0x56350f=_0x32c0c8['plugins']['get']('TrackChangesEditing');_0x56350f['enableCommand']('shiftEnter'),_0x32c0c8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x32c0c8),{'priority':'high'}),_0x32c0c8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x32c0c8),{'priority':'high'}),_0x32c0c8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5eebf5,_0x31e13e,_0xca9409)=>{_0xca9409['options']['showSuggestionHighlights']&&ce(_0x32c0c8,{'showActiveMarker':!0x1})(_0x5eebf5,_0x31e13e,_0xca9409);}),_0x56350f['descriptionFactory']['registerElementLabel']('softBreak',_0x2d713b=>o(_0x32c0c8['locale'],'ELEMENT_LINE_BREAK',_0x2d713b));}}function ce(_0x3884ee,{showActiveMarker:_0x1fe49e=!0x0}={}){return(_0x1c6e5d,_0xf27a96,_0x5b8c42)=>{const _0x2fed16=_0x3884ee['plugins']['get']('TrackChangesEditing');if(!_0x5b8c42['consumable']['test'](_0xf27a96['markerRange'],_0x1c6e5d['name']))return;const _0x560a2e=_0x3884ee['model'];for(const _0xd20848 of _0xf27a96['markerRange']['getItems']()){if(!_0xd20848['is']('element','softBreak'))continue;const _0x136fda='deletion'==_0xf27a96['markerName']['split'](':')[0x1]?'merge':'split',_0x351398=_0x5b8c42['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x136fda}),_0x2a5e9b=_0x5b8c42['mapper']['toViewPosition'](_0x560a2e['createPositionBefore'](_0xd20848));_0x1fe49e&&_0x2fed16['activeMarkers']['includes'](_0xf27a96['markerName'])&&_0x5b8c42['writer']['addClass']('ck-suggestion-marker--active',_0x351398),_0x5b8c42['writer']['insert'](_0x2a5e9b,_0x351398),_0x5b8c42['mapper']['bindElementToMarker'](_0x351398,_0xf27a96['markerName']);}};}class yt extends _0x23b8b9{['afterInit'](){const _0x4c0ac2=this['editor'],_0x2c0bf6=_0x4c0ac2['model'],_0x31166f=_0x4c0ac2['locale'];if(!_0x4c0ac2['plugins']['has']('StandardEditingModeEditing'))return;const _0x347ef8=_0x4c0ac2['plugins']['get']('TrackChangesEditing'),_0x58d85b='restrictedEditingException',_0x23d584=_0x4c0ac2['commands']['get'](_0x58d85b);_0x347ef8['enableCommand'](_0x58d85b,(_0x24cdfb,_0x287c53={})=>{const _0x49445f=_0x2c0bf6['document']['selection'];if(_0x49445f['isCollapsed'])return void _0x24cdfb(_0x287c53);const _0x1e211a=void 0x0!==_0x287c53['forceValue']?_0x287c53['forceValue']:!_0x23d584['value'];_0x2c0bf6['change'](()=>{const _0x3965b7=Array['from'](_0x49445f['getRanges']());for(const _0x470830 of _0x3965b7){const _0x56693d=_0x1e211a?[_0x470830]:io(_0x58d85b,_0x470830,_0x2c0bf6);for(const _0x5998cb of _0x56693d)_0x347ef8['markInlineFormat'](_0x5998cb,{'commandName':_0x58d85b,'commandParams':[{'forceValue':_0x1e211a}]});}});}),_0x347ef8['descriptionFactory']['registerDescriptionCallback'](_0x24a7fa=>{if('formatBlock'!=_0x24a7fa['type']&&'formatInline'!=_0x24a7fa['type'])return;const {data:_0x5a9f4c}=_0x24a7fa;return _0x5a9f4c&&_0x5a9f4c['commandName']==_0x58d85b?_0x5a9f4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31166f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x31166f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x23b8b9{['afterInit'](){const _0x3b9a30=this['editor'];if(!_0x3b9a30['plugins']['has']('Style')||!_0x3b9a30['plugins']['has']('DataSchema'))return;const _0x85031f=_0x3b9a30['plugins']['get']('TrackChangesEditing'),_0x47cf82=_0x3b9a30['locale'],_0xfe388d=_0x3b9a30['config']['get']('style')||{},_0x553179=_0x3b9a30['plugins']['get']('GeneralHtmlSupport'),_0x2327e1=_0x3b9a30['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b9a30['plugins']['get']('DataSchema'),_0xfe388d['definitions']);_0x85031f['enableDefaultAttributesIntegration']('style');const _0x308ccc=new Set();for(const _0x313941 of _0x2327e1['block']){const _0x281693=_0x553179['getGhsAttributeNameForElement'](_0x313941['element']);_0x308ccc['add'](_0x281693);}const _0x234259=new Set();for(const _0x30fa93 of _0x2327e1['inline']){const _0x5a2e93=_0x553179['getGhsAttributeNameForElement'](_0x30fa93['element']);_0x234259['add'](_0x5a2e93);for(const _0xc28e7b of _0x30fa93['ghsAttributes'])_0x234259['add'](_0xc28e7b);}for(const _0xffbf96 of _0x308ccc)_0x85031f['registerBlockAttribute'](_0xffbf96),_0x85031f['descriptionFactory']['registerAttributeLabel'](_0xffbf96,o(_0x47cf82,'FORMAT_STYLE'));for(const _0x40c7df of _0x234259)_0x85031f['registerInlineAttribute'](_0x40c7df),_0x85031f['descriptionFactory']['registerAttributeLabel'](_0x40c7df,o(_0x47cf82,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3e7c=this['editor'],_0x2afa1f=_0x2c3e7c['locale'];_0x2c3e7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x337ea8=>{if('formatBlock'!=_0x337ea8['type']&&'formatInline'!=_0x337ea8['type'])return;const {data:_0x282962}=_0x337ea8;return _0x282962&&'style'===_0x282962['commandName']?_0x282962['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2afa1f,'*Set\x20format:*\x20%0',_0x282962['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2afa1f,'*Remove\x20format:*\x20%0',_0x282962['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x23b8b9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5f29d7){super(_0x5f29d7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x41f55e=this['editor'],_0x2c2e92=_0x41f55e['model']['document']['selection'];if(!_0x41f55e['plugins']['has']('TableEditing'))return;const _0x31be48=_0x41f55e['locale'],_0x143a65=_0x41f55e['plugins']['get']('TrackChangesEditing'),_0x2911b6=_0x41f55e['plugins']['get']('TableUtils');_0x143a65['descriptionFactory']['registerElementLabel']('table',_0x279985=>o(_0x31be48,'ELEMENT_TABLE',_0x279985)),this['_setupColumnsRowsFixing'](),_0x143a65['enableCommand']('insertTable'),_0x143a65['enableCommand']('selectTableRow'),_0x143a65['enableCommand']('selectTableColumn');for(const _0x33f5d4 of['insertTableRowAbove','insertTableRowBelow']){const _0x5a4801=_0x41f55e['commands']['get'](_0x33f5d4);_0x143a65['enableCommand'](_0x33f5d4,_0x27d76d=>{_0x41f55e['model']['change'](_0x5b3747=>{_0x27d76d();const _0x2ad2a2='above'===_0x5a4801['order'],_0x3e72dd=_0x2911b6['getSelectionAffectedTableCells'](_0x2c2e92),_0x4d6e68=_0x2911b6['getRowIndexes'](_0x3e72dd),_0x24ff97=_0x2ad2a2?_0x4d6e68['first']-0x1:_0x4d6e68['last']+0x1,_0x247dfe=_0x3e72dd[0x0]['findAncestor']('table'),_0x17a797=_0x2911b6['createTableWalker'](_0x247dfe,{'startRow':_0x24ff97,'endRow':_0x24ff97}),_0x1ad37d=Array['from'](_0x17a797)['map'](_0xcded5e=>_0x5b3747['createRangeOn'](_0xcded5e['cell']));_0x143a65['markMultiRangeInsertion'](_0x1ad37d,'tableRow');});});}for(const _0x2236d1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x252ef6=_0x41f55e['commands']['get'](_0x2236d1);_0x143a65['enableCommand'](_0x2236d1,_0xada67c=>{_0x41f55e['model']['change'](_0x36b102=>{_0xada67c();const _0x42d1fa='left'===_0x252ef6['order'],_0x242bd7=_0x2911b6['getSelectionAffectedTableCells'](_0x2c2e92),_0x2d3b0e=_0x2911b6['getColumnIndexes'](_0x242bd7),_0x5efe77=_0x42d1fa?_0x2d3b0e['first']-0x1:_0x2d3b0e['last']+0x1,_0x393f9c=_0x242bd7[0x0]['findAncestor']('table'),_0x5c18bc=_0x2911b6['createTableWalker'](_0x393f9c,{'startRow':0x0,'column':_0x5efe77,'includeAllSlots':!0x1}),_0x51b640=Array['from'](_0x5c18bc)['map'](_0x4bf760=>_0x36b102['createRangeOn'](_0x4bf760['cell']));_0x143a65['markMultiRangeInsertion'](_0x51b640,'tableColumn');});});}for(const _0x1bb78a of['removeTableRow','removeTableColumn']){const _0xae1639=_0x1bb78a['substr'](0xb),_0x2d7553=_0xae1639['toLowerCase'](),_0x3a9697=_0x2d7553['substr'](0x0,0x3)+'span',_0x1d793c='table'+_0xae1639,_0x15ac3d='min'+_0xae1639,_0x1d2592='max'+_0xae1639;_0x143a65['enableCommand'](_0x1bb78a,()=>{_0x41f55e['model']['change'](_0x246b50=>{const _0x33dbdc=_0x2911b6['getSelectionAffectedTableCells'](_0x2c2e92),_0x4e040e=_0x33dbdc[0x0]['findAncestor']('table');let _0x4382a3;if('removeTableRow'==_0x1bb78a){const _0x4131a7=_0x2911b6['getRowIndexes'](_0x33dbdc);_0x4382a3={'startRow':_0x4131a7['first'],'endRow':_0x4131a7['last'],'includeAllSlots':!0x0};}else{const _0x427377=_0x2911b6['getColumnIndexes'](_0x33dbdc);_0x4382a3={'startColumn':_0x427377['first'],'endColumn':_0x427377['last'],'includeAllSlots':!0x0};}const _0x1f10df=_0x2911b6['createTableWalker'](_0x4e040e,_0x4382a3),_0x3c25b1=Array['from'](_0x1f10df)['map'](({cell:_0x2059fb})=>_0x2059fb),_0x21d333=Ee(_0x3c25b1['filter'](_0x221dbe=>_0x221dbe['hasAttribute'](_0x3a9697))),_0x1f950b=Ee(_0x3c25b1['filter'](_0x2d9663=>!_0x2d9663['hasAttribute'](_0x3a9697)))['map'](_0x20d29d=>_0x246b50['createRangeOn'](_0x20d29d)),_0x4c8891=_0x143a65['markMultiRangeDeletion'](_0x1f950b,_0x1d793c);if(_0x4c8891&&('tableRow'==_0x4c8891['subType']||'tableColumn'==_0x4c8891['subType'])){const _0x32cd43=this['_getSuggestionCoords'](_0x4c8891);for(const _0x40fd95 of _0x21d333){const _0x2a25a9=_0x246b50['createRangeOn'](_0x40fd95),_0xc03c93=_0x2911b6['getCellLocation'](_0x40fd95),_0x40d3ff=_0x40fd95['getAttribute'](_0x3a9697)-0x1,_0x4ec168=_0x32cd43[_0x15ac3d],_0x477505=_0x32cd43[_0x1d2592];_0x4ec168<=_0xc03c93[_0x2d7553]&&_0xc03c93[_0x2d7553]+_0x40d3ff<=_0x477505&&_0x4c8891['addRange'](_0x2a25a9);}}});});}function _0x436d54(_0x14e060){const _0x172fad=Array['from'](_0x2c2e92['getRanges']())['map'](_0x197226=>_0x5df64f['fromRange'](_0x197226));_0x41f55e['model']['change'](_0x19df90=>{const _0x5bf8bd=_0x19df90['batch'];_0x14e060=_0x14e060['filter'](_0x48eeec=>'$graveyard'!=_0x48eeec['root']['rootName']),_0x19df90['setSelection'](_0x14e060),_0x41f55e['commands']['get']('removeTableRow')['refresh'](),_0x41f55e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41f55e['model']['enqueueChange'](()=>{_0x41f55e['model']['enqueueChange'](_0x5bf8bd,_0xf12f49=>{const _0x248b7a=_0x172fad['filter'](_0x4749be=>'$graveyard'!=_0x4749be['root']['rootName']);_0x248b7a['length']>0x0&&_0xf12f49['setSelection'](_0x248b7a);for(const _0x5693aa of _0x172fad)_0x5693aa['detach']();});});});}function _0x1d67be(_0x5fee4a){_0x41f55e['model']['change'](_0x463b5e=>{const _0x329ab3=Array['from'](_0x2c2e92['getRanges']())['map'](_0x4b0424=>_0x5df64f['fromRange'](_0x4b0424)),_0x5021e9=[];for(const _0x46bc9d of _0x5fee4a)for(const _0x29492f of _0x46bc9d['getItems']({'shallow':!0x0}))_0x5021e9['push'](_0x29492f);for(const _0x358553 of _0x5021e9)'$graveyard'!=_0x358553['root']['rootName']&&(_0x463b5e['setSelection'](_0x463b5e['createPositionAt'](_0x358553,0x0)),_0x41f55e['commands']['get']('removeTableColumn')['refresh'](),_0x41f55e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x355579=_0x329ab3['filter'](_0x6d5f99=>'$graveyard'!=_0x6d5f99['root']['rootName']);_0x355579['length']>0x0&&_0x463b5e['setSelection'](_0x355579);for(const _0x1466df of _0x329ab3)_0x1466df['detach']();});}function _0x5deb1e(_0x37b8e6,_0x5b5b69){return _0x5b5b69['every'](_0x3be2cf=>_0x37b8e6['some'](_0x987d10=>_0x987d10['end']['isEqual'](_0x3be2cf['start'])||_0x3be2cf['end']['isEqual'](_0x987d10['start'])));}function _0x7b6e16(_0x7545d8,_0x157a1c){return!_0x7545d8['some'](_0x21c2ea=>_0x157a1c['some'](_0xcf1e4f=>_0x21c2ea['isIntersecting'](_0xcf1e4f)))&&_0x7545d8['some'](_0x7453bb=>_0x157a1c['some'](_0x385237=>_0x7453bb['end']['isTouching'](_0x385237['start'])));}_0x41f55e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43c9d1,_0x38e8c2,_0x5a5669)=>{if(!_0x5a5669['options']['showSuggestionHighlights'])return;const _0x68cccc=_0x38e8c2['item'];if(!_0x68cccc)return;const _0x4c1632=_0x5a5669['mapper']['toViewElement'](_0x68cccc);function _0x5b5445(_0x255bbd){return Array['isArray'](_0x255bbd)?_0x255bbd:[_0x255bbd];}_0x4c1632&&'tableCell'===_0x68cccc['name']&&_0x11e103(_0x4c1632,_0x5a5669['writer'],(_0x5c6369,_0x25880a,_0x2b61a5)=>_0x2b61a5['addClass'](_0x5b5445(_0x25880a['classes']),_0x5c6369),(_0x34c12b,_0x27b4be,_0x484158)=>_0x484158['removeClass'](_0x5b5445(_0x27b4be['classes']),_0x34c12b));},{'priority':'highest'}),_0x143a65['descriptionFactory']['registerDescriptionCallback'](_0x14dcee=>{if('insertion'!=_0x14dcee['type']&&'deletion'!=_0x14dcee['type'])return;const _0x35069e=_0x14dcee['getContainedElement']();if(null!=_0x35069e&&_0x35069e['is']('element','table')){if('insertion'==_0x14dcee['type']){const _0x798261=_0x14dcee['getItems']()['filter'](_0x30f9ef=>_0x30f9ef['is']('$textProxy'))['map'](_0x936b7c=>_0x936b7c['data']);if(_0x798261['length'])return{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x798261['join']('\x20')+'\x22'))};}if('deletion'==_0x14dcee['type']){const _0x213dc0=_0x14dcee['getItems']()['filter'](_0x3539bf=>_0x3539bf['is']('$textProxy'))['map'](_0x4a113e=>_0x4a113e['data']);if(_0x213dc0['length'])return{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x213dc0['join']('\x20')+'\x22'))};}}}),_0x143a65['descriptionFactory']['registerDescriptionCallback'](_0x4c3433=>{if('tableRow'==_0x4c3433['subType']){const _0x1cec64=_0x4c3433['getItems']()['filter'](_0x3b08bd=>_0x3b08bd['is']('$textProxy'))['map'](_0x5786c8=>_0x5786c8['data']),_0x791928=this['_getSuggestionCoords'](_0x4c3433),_0x4bdf0f=_0x791928['maxRow']-_0x791928['minRow']+0x1;if('insertion'==_0x4c3433['type'])return _0x1cec64['length']?{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4bdf0f,'\x22'+_0x1cec64['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_ROW',_0x4bdf0f))};if('deletion'==_0x4c3433['type'])return _0x1cec64['length']?{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4bdf0f,'\x22'+_0x1cec64['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_ROW',_0x4bdf0f))};}if('tableColumn'==_0x4c3433['subType']){const _0x264815=_0x4c3433['getItems']()['filter'](_0x34eeb4=>_0x34eeb4['is']('$textProxy'))['map'](_0x6f9970=>_0x6f9970['data']),_0xa65cba=this['_getSuggestionCoords'](_0x4c3433),_0x4b598b=_0xa65cba['maxColumn']-_0xa65cba['minColumn']+0x1;if('insertion'==_0x4c3433['type'])return _0x264815['length']?{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b598b,'\x22'+_0x264815['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_COLUMN',_0x4b598b))};if('deletion'==_0x4c3433['type'])return _0x264815['length']?{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b598b,'\x22'+_0x264815['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_COLUMN',_0x4b598b))};}}),_0x143a65['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x436d54),_0x143a65['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x436d54),_0x143a65['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d67be),_0x143a65['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d67be),_0x143a65['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5deb1e),_0x143a65['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5deb1e),_0x143a65['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x7b6e16),_0x143a65['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x7b6e16);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4abab5=this['editor'],_0x120531=_0x4abab5['model']['document']['selection'];return(_0x405e66,_0x3d8b86)=>{_0x4abab5['model']['change'](_0x3b9fee=>{const {commandName:_0x10a58b,commandParams:_0x21814f}=_0x3d8b86;let _0x21e09d=_0x405e66[0x0]['end']['nodeBefore'];_0x21814f&&_0x21814f[0x0]&&!0x1===_0x21814f[0x0]['forceValue']&&(_0x21e09d=_0x405e66[0x0]['start']['nodeAfter']);const _0x38104d=_0x3b9fee['createRangeIn'](_0x21e09d);if('$graveyard'==_0x38104d['root']['rootName'])return;const _0x3d953a=Array['from'](_0x120531['getRanges']())['map'](_0x4c8df7=>_0x5df64f['fromRange'](_0x4c8df7));_0x3b9fee['setSelection'](_0x38104d),_0x4abab5['commands']['get'](_0x10a58b)['refresh'](),_0x21814f['push']({'forceDefaultExecution':!0x0}),_0x4abab5['execute'](_0x10a58b,..._0x21814f);const _0x4f6167=_0x3d953a['filter'](_0x5d4c66=>'$graveyard'!=_0x5d4c66['root']['rootName']);_0x4f6167['length']>0x0&&_0x3b9fee['setSelection'](_0x4f6167);for(const _0x3b84c6 of _0x3d953a)_0x3b84c6['detach']();});};}['_getCoordsForCells'](_0xf271a4){const _0x11c6b3=this['editor']['plugins']['get']('TableUtils');let _0x353ee1=Number['MAX_SAFE_INTEGER'],_0x48b98d=Number['MIN_SAFE_INTEGER'],_0x2b400b=Number['MAX_SAFE_INTEGER'],_0xfa486=Number['MIN_SAFE_INTEGER'];for(const _0x3060a6 of _0xf271a4){if('$graveyard'==_0x3060a6['root']['rootName'])continue;const {row:_0x304a6e,column:_0x5be676}=_0x11c6b3['getCellLocation'](_0x3060a6),_0x4b2be2=_0x3060a6['hasAttribute']('rowspan')?_0x3060a6['getAttribute']('rowspan')-0x1:0x0,_0x5eb650=_0x3060a6['hasAttribute']('colspan')?_0x3060a6['getAttribute']('colspan')-0x1:0x0;_0x353ee1=_0x304a6e<_0x353ee1?_0x304a6e:_0x353ee1,_0x48b98d=_0x304a6e+_0x4b2be2>_0x48b98d?_0x304a6e+_0x4b2be2:_0x48b98d,_0x2b400b=_0x5be676<_0x2b400b?_0x5be676:_0x2b400b,_0xfa486=_0x5be676+_0x5eb650>_0xfa486?_0x5be676+_0x5eb650:_0xfa486;}return{'minRow':_0x353ee1,'maxRow':_0x48b98d,'minColumn':_0x2b400b,'maxColumn':_0xfa486};}['_setupColumnsRowsFixing'](){const _0x160b3b=this['editor'],_0x5772d9=_0x160b3b['plugins']['get']('TrackChangesEditing'),_0x2fc372=_0x160b3b['plugins']['get']('TableUtils');_0x160b3b['model']['document']['on']('change:data',()=>{const _0x49126c=Array['from'](_0x160b3b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c3e9d,data:_0x23f1d9}of _0x49126c){const {group:_0x30effc,id:_0x501cfa,subType:_0x8d9641}=_0x5772d9['_splitMarkerName'](_0x1c3e9d);if('suggestion'!=_0x30effc)continue;if(null!=_0x23f1d9['oldRange'])continue;const _0x42597c=_0x5772d9['getSuggestion'](_0x501cfa);this['_tablePostFixingSubtypes']['includes'](_0x8d9641)&&this['_tableSuggestions']['add'](_0x42597c);}},{'priority':'low'});const _0x1725e9=(_0x287a4f,_0x353389)=>{let _0x111e42=!0x1;const _0x1b87a3=_0x353389['createRangeOn'](_0x287a4f),_0x50913d=_0x287a4f['findAncestor']('table'),_0x3e7d22=_0x2fc372['getCellLocation'](_0x287a4f);for(const _0x256fa9 of this['_tableSuggestions']){const _0x3906c6=_0x256fa9['subType'],_0x44a49f=_0x3906c6['startsWith']('tablePaste'),_0x4efe18=_0x3906c6['substr'](_0x44a49f?0xa:0x5),_0x209dd8=_0x4efe18['toLowerCase'](),_0x1e3d75=_0x209dd8['substr'](0x0,0x3)+'span',_0x90a516='min'+_0x4efe18,_0x1ff773='max'+_0x4efe18;if(!_0x256fa9['isInContent'])continue;if(_0x50913d!=_0x256fa9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x256fa9['isIntersectingWithRange'](_0x1b87a3))continue;const _0x40b1d7=_0x287a4f['hasAttribute'](_0x1e3d75)?_0x287a4f['getAttribute'](_0x1e3d75)-0x1:0x0,_0x544c5c=this['_getSuggestionCoords'](_0x256fa9),_0xf01fe3=_0x544c5c[_0x90a516],_0x9f59=_0x544c5c[_0x1ff773];_0xf01fe3<=_0x3e7d22[_0x209dd8]&&_0x3e7d22[_0x209dd8]+_0x40b1d7<=_0x9f59&&(_0x256fa9['addRange'](_0x1b87a3),_0x111e42=!0x0);}return _0x111e42;};_0x160b3b['model']['document']['registerPostFixer'](_0x37ead8=>{let _0xb53233=!0x1;for(const _0x357b72 of _0x160b3b['model']['document']['differ']['getChanges']())if('insert'==_0x357b72['type']){if('tableRow'==_0x357b72['name']){for(const _0x354419 of _0x357b72['position']['nodeAfter']['getChildren']())_0xb53233=_0xb53233||_0x1725e9(_0x354419,_0x37ead8);}else'tableCell'==_0x357b72['name']&&(_0xb53233=_0xb53233||_0x1725e9(_0x357b72['position']['nodeAfter'],_0x37ead8));}return _0xb53233;});}['_getSuggestionCoords'](_0x35b344){return this['_getCoordsForCells'](_0x35b344['getRanges']()['map'](_0x4be800=>_0x4be800['start']['nodeAfter']));}}function Ee(_0x565c2e){return Array['from'](new Set(_0x565c2e)['values']());}class At extends _0x23b8b9{static get['requires'](){return[St];}['afterInit'](){const _0x30906e=this['editor'],_0x3f978c=_0x30906e['model']['document']['selection'],_0x5e9553=_0x30906e['locale'];if(!_0x30906e['plugins']['has']('TableEditing'))return;const _0x2f302e=_0x30906e['plugins']['get']('TrackChangesEditing'),_0x210a88=_0x30906e['plugins']['get']('TableUtils'),_0x210637=_0x30906e['plugins']['get'](St);_0x210637['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2f302e['enableCommand']('mergeTableCells',()=>{const _0x46bafc=_0x210a88['getSelectionAffectedTableCells'](_0x30906e['model']['document']['selection']);_0x30906e['model']['change'](()=>{_0x2f302e['markMultiRangeBlockFormat'](_0x46bafc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x30906e['commands']['get']('mergeTableCells')['on']('execute',(_0x221c47,_0x33defe)=>{_0x30906e['commands']['get']('trackChanges')['value']&&(_0x33defe['length']>0x0&&_0x33defe[_0x33defe['length']-0x1]&&_0x33defe[_0x33defe['length']-0x1]['forceDefaultExecution']||_0x2f302e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x221c47['stop']());},{'priority':'highest'});for(const _0x4f4ede of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x38eb47=_0x30906e['commands']['get'](_0x4f4ede);_0x2f302e['enableCommand'](_0x4f4ede,()=>{const _0x357c70=_0x30906e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13ba0e=>_0x13ba0e['is']('element','tableCell')),_0x43dc7b=_0x38eb47['value'];_0x30906e['model']['change'](()=>{_0x2f302e['markMultiRangeBlockFormat']([_0x357c70,_0x43dc7b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4c99de of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5cc67e=_0x30906e['commands']['get'](_0x4c99de);_0x2f302e['enableCommand'](_0x4c99de,()=>{const _0x21781f=_0x210a88['getSelectionAffectedTableCells'](_0x30906e['model']['document']['selection'])[0x0],_0x39a1f8=_0x21781f['findAncestor']('table'),{column:_0x31fe93,row:_0x491327}=_0x210a88['getCellLocation'](_0x21781f);let _0x456c25=[];if('horizontally'==_0x5cc67e['direction']){const _0x5123c9=_0x210a88['createTableWalker'](_0x39a1f8,{'startRow':_0x491327,'endRow':_0x491327,'includeAllSlots':!0x0});_0x456c25=Array['from'](_0x5123c9)['map'](_0x34bef8=>_0x34bef8['cell']);}else{const _0x2a72b1=_0x210a88['createTableWalker'](_0x39a1f8,{'column':_0x31fe93,'includeAllSlots':!0x0});_0x456c25=Array['from'](_0x2a72b1)['map'](_0x393628=>_0x393628['cell']);}_0x30906e['model']['change'](_0x383dba=>{_0x2f302e['markBlockFormat'](_0x383dba['createRangeOn'](_0x21781f),{'commandName':_0x4c99de,'commandParams':[]},_0x456c25,_0x4c99de);});});}_0x2f302e['descriptionFactory']['registerDescriptionCallback'](_0x4348c3=>{if('formatBlock'!=_0x4348c3['type']&&'formatInline'!=_0x4348c3['type'])return;const {data:_0x21cfe8}=_0x4348c3;return _0x21cfe8&&'mergeTableCells'==_0x21cfe8['commandName']?{'type':'format','content':o(_0x5e9553,'*Merge\x20cells*')}:void 0x0;}),_0x2f302e['descriptionFactory']['registerDescriptionCallback'](_0x4d0ca9=>{if('formatBlock'!=_0x4d0ca9['type']&&'formatInline'!=_0x4d0ca9['type'])return;const {data:_0xd8f1bd}=_0x4d0ca9;return _0xd8f1bd?'splitTableCellVertically'==_0xd8f1bd['commandName']?{'type':'format','content':o(_0x5e9553,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd8f1bd['commandName']?{'type':'format','content':o(_0x5e9553,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2a933d=_0x210637['_acceptFormatSuggestionCallbackFactory']();for(const _0x5a4dd5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2f302e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a4dd5,'accept',_0x2a933d);for(const _0x58914d of['splitTableCellVertically','splitTableCellHorizontally'])_0x2f302e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58914d,'accept',_0x2a933d);_0x2f302e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x18dd21=>{_0x30906e['model']['change'](_0xbccc6f=>{const _0x241bbf=Array['from'](_0x3f978c['getRanges']())['map'](_0x56a7e6=>_0x5df64f['fromRange'](_0x56a7e6));_0xbccc6f['setSelection'](_0x18dd21),_0x30906e['commands']['get']('mergeTableCells')['refresh'](),_0x30906e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3f03de=_0x241bbf['filter'](_0x597030=>'$graveyard'!=_0x597030['root']['rootName']);_0x3f03de['length']>0x0&&_0xbccc6f['setSelection'](_0x3f03de);for(const _0x480112 of _0x241bbf)_0x480112['detach']();});});for(const _0x21b199 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x29cf5b=_0x30906e['commands']['get'](_0x21b199);_0x29cf5b['on']('set:isEnabled',(_0x24a0c0,_0x21f17a,_0x1ce86a)=>{if(_0x1ce86a){const _0x382ee3=_0x30906e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x540877=>_0x540877['is']('element','tableCell'));this['_areMergableCells'](_0x29cf5b['value'],_0x382ee3)||(_0x24a0c0['return']=!0x1,_0x24a0c0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x558054=this['editor']['commands']['get']('mergeTableCells'),_0x19897b=this['editor']['plugins']['get']('TableUtils');if(!_0x558054['isEnabled'])return!0x1;const _0x397f35=_0x19897b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x17d16e of _0x397f35)for(const _0x126f85 of _0x397f35)if(_0x17d16e!=_0x126f85&&!this['_areMergableCells'](_0x17d16e,_0x126f85))return!0x1;return!0x0;}['_areMergableCells'](_0xe988c4,_0x32a17d){const _0x381f0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2630e7=this['editor']['model']['createRangeOn'](_0xe988c4),_0x2c8965=this['editor']['model']['createRangeOn'](_0x32a17d),_0x49d970=new Set(),_0x24d095=new Set();for(const _0x53b8cd of _0x381f0b['getSuggestions']())if(('insertion'==_0x53b8cd['type']||'deletion'==_0x53b8cd['type']||'mergeTableCells'==_0x53b8cd['subType'])&&_0x53b8cd['isInContent']){for(const _0x1dacc5 of _0x53b8cd['getRanges']())_0x1dacc5['containsRange'](_0x2630e7,!0x0)&&_0x49d970['add'](_0x53b8cd['type']+':'+_0x53b8cd['author']['id']),_0x1dacc5['containsRange'](_0x2c8965,!0x0)&&_0x24d095['add'](_0x53b8cd['type']+':'+_0x53b8cd['author']['id']);}if(_0x49d970['size']!=_0x24d095['size'])return!0x1;for(const _0x47622c of _0x49d970)if(!_0x24d095['has'](_0x47622c))return!0x1;return!0x0;}}class It extends _0x23b8b9{static get['requires'](){return[St];}['afterInit'](){const _0x27f8d7=this['editor'];if(!_0x27f8d7['plugins']['has']('TableEditing'))return;const _0x30969f=_0x27f8d7['locale'],_0x2c95be=_0x27f8d7['plugins']['get']('TrackChangesEditing');_0x2c95be['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2c95be['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2c95be['registerBlockAttribute']('headingRows'),_0x2c95be['registerBlockAttribute']('headingColumns'),_0x2c95be['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x30969f,'FORMAT_HEADER_ROW')),_0x2c95be['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x30969f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5d7e20=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3759ae=this['editor']['plugins']['get']('TableUtils'),_0x55061d=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x1a9959({showActiveMarker:_0x55e57b=!0x0,setDataAttribute:_0x47f8f9=!0x0}={}){return(_0x350d5a,_0x5c3a0a,_0x3e5607)=>{const {type:_0x5befc8,id:_0x6afe89}=_0x5d7e20['_splitMarkerName'](_0x5c3a0a['markerName']),_0x4f4a4a=_0x5d7e20['getSuggestion'](_0x6afe89),_0x439672=_0x4f4a4a['data'];if('formatBlock'!=_0x4f4a4a['type']||!_0x439672||'setTableColumnHeader'!=_0x439672['commandName'])return;if(_0x5c3a0a['item'])return void _0x350d5a['stop']();if(!_0x3e5607['consumable']['consume'](_0x5c3a0a['markerRange'],_0x350d5a['name']))return;const _0x151607=_0x5c3a0a['markerRange']['start']['nodeAfter'],_0x34de7d=_0x5c3a0a['markerRange']['end']['nodeBefore'],_0x456733=_0x151607['parent']['parent'],{column:_0x361ee5}=_0x3759ae['getCellLocation'](_0x151607),{column:_0x110adb}=_0x3759ae['getCellLocation'](_0x34de7d);for(let _0x378135=_0x361ee5;_0x378135<=_0x110adb;_0x378135++){const _0xcd86d7=_0x3759ae['createTableWalker'](_0x456733,{'column':_0x378135,'includeAllSlots':!0x1});for(const _0x5dd748 of _0xcd86d7){const _0xb284be=_0x5dd748['cell'],_0x342591=_0x3e5607['mapper']['toViewElement'](_0xb284be);_0x3e5607['writer']['addClass']('ck-suggestion-marker-'+_0x5befc8,_0x342591),_0x47f8f9&&_0x3e5607['writer']['setAttribute']('data-suggestion',_0x6afe89,_0x342591),_0x3e5607['mapper']['bindElementToMarker'](_0x342591,_0x5c3a0a['markerName']),_0x55e57b&&(_0x5d7e20['activeMarkers']['includes'](_0x5c3a0a['markerName'])?_0x3e5607['writer']['addClass']('ck-suggestion-marker--active',_0x342591):_0x3e5607['writer']['removeClass']('ck-suggestion-marker--active',_0x342591));}}};}_0x5d7e20['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x55061d),_0x5d7e20['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x55061d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1a9959(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x232715,_0xcb1703,_0x1624bf)=>{_0x1624bf['options']['showSuggestionHighlights']&&_0x1a9959({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x232715,_0xcb1703,_0x1624bf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x95b8bc,_0xbe0c8e,_0x4491ee)=>{const {type:_0x1f014c,id:_0x38b7b3}=_0x5d7e20['_splitMarkerName'](_0xbe0c8e['markerName']),_0x2a9202=_0x5d7e20['getSuggestion'](_0x38b7b3),_0x1b2a5b=_0x2a9202['data'];if('formatBlock'!=_0x2a9202['type']||!_0x1b2a5b||'setTableColumnHeader'!=_0x1b2a5b['commandName'])return;const _0x26e251=_0x4491ee['mapper']['markerNameToElements'](_0xbe0c8e['markerName']);if(_0x26e251){for(const _0xe72392 of _0x26e251)_0x4491ee['writer']['removeClass']('ck-suggestion-marker-'+_0x1f014c,_0xe72392),_0x4491ee['writer']['removeClass']('ck-suggestion-marker--active',_0xe72392),_0x4491ee['writer']['removeAttribute']('data-suggestion',_0xe72392),_0x4491ee['mapper']['unbindElementFromMarkerName'](_0xe72392,_0xbe0c8e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a01cc=this['editor'],_0xf610b8=_0x4a01cc['locale'];function _0x49cbe6(_0x3cd8e4){return{'type':'format','content':o(_0xf610b8,'*Format:*\x20%0',_0x3cd8e4)};}_0x4a01cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d7fee=>{if('formatBlock'!=_0x5d7fee['type'])return;const {data:_0x7f206b}=_0x5d7fee;if(_0x7f206b){if('setTableRowHeader'==_0x7f206b['commandName']){const _0x5aeafa=_0x7f206b['commandParams'][0x0]['forceValue'];return _0x49cbe6(o(_0xf610b8,_0x5aeafa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x7f206b['commandName']){const _0x498206=_0x7f206b['commandParams'][0x0]['forceValue'];return _0x49cbe6(o(_0xf610b8,_0x498206?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x30707e=>[_0x30707e,null]));class vt extends _0x23b8b9{static get['requires'](){return[St];}['afterInit'](){const _0x122f7c=this['editor'];if(!_0x122f7c['plugins']['has']('TableClipboard'))return;const _0x189257=_0x122f7c['plugins']['get']('TrackChangesEditing'),_0x36a106=_0x122f7c['plugins']['get']('TableUtils'),_0x4305df=_0x122f7c['plugins']['get'](St),_0xbdc16f=_0x122f7c['plugins']['get']('TableClipboard');_0x4305df['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x122f7c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x122f7c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4dadf0=null;_0x122f7c['model']['on']('insertContent',(_0x50add9,_0x5065bd)=>{const [_0x587658,_0x29631c]=_0x5065bd,_0xcec542=_0x5065bd[_0x5065bd['length']-0x1];_0xcec542&&_0xcec542['forceDefaultExecution']||_0x189257['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x143e85,_0x20603b,_0x3a06b5,_0x4b4634,_0x17ae7c){if(_0x20603b&&!_0x20603b['is']('documentSelection'))return!0x1;const _0x1b6cee=_0x17ae7c['getTableIfOnlyTableInContent'](_0x143e85,_0x3a06b5);if(!_0x1b6cee||!we(_0x1b6cee,void 0x0,_0x4b4634))return!0x1;const _0x2d2fb2=_0x4b4634['getSelectionAffectedTableCells'](_0x3a06b5['document']['selection']);if(!_0x2d2fb2['length'])return!0x1;const _0x1e1d4a=_0x2d2fb2[0x0]['findAncestor']('table'),_0x5244ab=_0x4b4634['getRowIndexes'](_0x2d2fb2),_0x3c1a60=_0x4b4634['getColumnIndexes'](_0x2d2fb2),_0x2350c6={'startRow':_0x5244ab['first'],'endRow':_0x5244ab['last'],'startColumn':_0x3c1a60['first'],'endColumn':_0x3c1a60['last']};return 0x1==_0x2d2fb2['length']&&(_0x2350c6['endRow']+=_0x4b4634['getRows'](_0x1b6cee)-0x1,_0x2350c6['endColumn']+=_0x4b4634['getColumns'](_0x1b6cee)-0x1),we(_0x1e1d4a,_0x2350c6,_0x4b4634);}(_0x587658,_0x29631c,_0x122f7c['model'],_0x36a106,_0xbdc16f)&&(_0x50add9['stop'](),_0x4dadf0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x122f7c['model']['change'](()=>{_0x122f7c['model']['insertContent'](_0x5065bd[0x0],_0x5065bd[0x1],_0x5065bd[0x2],{'forceDefaultExecution':!0x0});const _0x40fbcc=_0x2905f1(),{rowInsertionRanges:_0x1789ec,columnInsertionRanges:_0x2a0e56,insertionRanges:_0x5d776c,deletionRanges:_0x12834e,cells:_0x1b342b}=_0x4dadf0;_0x1789ec['length']&&_0x189257['markMultiRangeInsertion'](_0x1789ec,'tablePasteRow',{'tablePasteChainId':_0x40fbcc}),_0x2a0e56['length']&&_0x189257['markMultiRangeInsertion'](_0x2a0e56,'tablePasteColumn',{'tablePasteChainId':_0x40fbcc}),_0x5d776c['length']&&(_0x189257['markMultiRangeInsertion'](_0x5d776c,'tablePaste',{'tablePasteChainId':_0x40fbcc,'skipNestingCheck':!0x0}),_0x5d776c['forEach'](_0x5589c6=>_0x5589c6['detach']?.())),_0x12834e['length']&&(_0x189257['markMultiRangeDeletion'](_0x12834e,'tablePaste',{'tablePasteChainId':_0x40fbcc,'skipNestingCheck':!0x0}),_0x12834e['forEach'](_0x58a8b8=>_0x58a8b8['detach']?.()));const _0xa82fb5=_0x189257['markMultiRangeBlockFormat'](_0x1b342b['map'](({element:_0x35eabe})=>_0x35eabe),{'formatGroupId':_0x2905f1()},[],'tablePasteCell',{'tablePasteChainId':_0x40fbcc});if(_0xa82fb5){const _0x29647c=_0xa82fb5['getMarkers'](),_0x207bfb=[];for(const {element:_0x5e903d,attributes:_0x1aff51}of _0x1b342b){if(!_0x1aff51)continue;const _0x1f3b15=_0x122f7c['model']['createRangeOn'](_0x5e903d),_0xb9249a=_0x29647c['find'](_0x527e5c=>_0x527e5c['getRange']()['isEqual'](_0x1f3b15));_0xb9249a&&_0x207bfb['push']([_0xb9249a['name'],_0x1aff51]);}_0x207bfb['length']&&_0xa82fb5['setAttribute']('markerAttributes',Object['fromEntries'](_0x207bfb));}_0x4dadf0=null;}));},{'priority':_0x2bf5ee['high']+0xa}),_0x122f7c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5e4cce,_0x338314)=>{const [_0x3fedf1,_0x1c6b7b,,_0x45d2d4]=_0x338314;if(!_0x4dadf0)return;_0x5e4cce['stop']();const _0x1899c9=_0x3fedf1['cell'],_0x1efc8d=_0x1c6b7b,_0x1c04fd=Pe(_0x1899c9),_0x40b2d0=Pe(_0x1efc8d);_0x5e4cce['return']=_0x1899c9;let _0x37bb72=null,_0x3086d1=null;if(_0x40b2d0||_0x1c04fd){if(_0x1c04fd&&!_0x40b2d0){_0x45d2d4['remove'](_0x1899c9['getChild'](0x0));for(const _0x46b7ec of Array['from'](_0x1efc8d['getChildren']()))_0x45d2d4['insert'](_0x46b7ec,_0x1899c9,'end');const _0x555626=_0x4dadf0['rowInsertionIndexes']['includes'](_0x3fedf1['row']),_0x1a8def=_0x4dadf0['columnInsertionIndexes']['includes'](_0x3fedf1['column']);_0x555626||_0x1a8def||(_0x37bb72=_0x5df64f['fromRange'](_0x45d2d4['createRangeIn'](_0x1899c9)));}else _0x40b2d0&&!_0x1c04fd&&(_0x3086d1=_0x45d2d4['createRangeIn'](_0x1899c9));}else{const _0x171189=_0x45d2d4['createElement']('tableCellSuggestion'),_0xd6a165=_0x45d2d4['createElement']('tableCellSuggestion');_0x45d2d4['wrap'](_0x45d2d4['createRangeIn'](_0x1899c9),_0xd6a165),_0x45d2d4['insert'](_0x171189,_0x1899c9,0x0);for(const _0x4e62d4 of Array['from'](_0x1efc8d['getChildren']()))_0x45d2d4['insert'](_0x4e62d4,_0x171189,'end');_0x37bb72=_0x5df64f['fromRange'](_0x45d2d4['createRangeOn'](_0x171189)),_0x3086d1=_0x5df64f['fromRange'](_0x45d2d4['createRangeOn'](_0xd6a165));}const _0x54a068=Array['from'](_0x1efc8d['getAttributes']())['filter'](([_0x399285])=>ge['includes'](_0x399285));_0x4dadf0['cells']['push']({'element':_0x1899c9,'attributes':_0x54a068['length']?Object['fromEntries'](_0x54a068):null}),_0x37bb72&&_0x4dadf0['insertionRanges']['push'](_0x37bb72),_0x3086d1&&_0x4dadf0['deletionRanges']['push'](_0x3086d1);},{'priority':'high'}),_0x36a106['on']('insertColumns',(_0xf07e27,_0x1ae050)=>{const [_0x3ed3bb,_0x2052a8={}]=_0x1ae050;if(!_0x4dadf0)return;const _0xdf1767=_0x2052a8['at']||0x0,_0x402008=_0x2052a8['columns']||0x1;_0x4dadf0['columnInsertionIndexes']=new Array(_0x402008)['fill'](_0xdf1767)['map']((_0x5e8501,_0x471f51)=>_0x5e8501+_0x471f51);for(const {cell:_0x2a8387}of _0x36a106['createTableWalker'](_0x3ed3bb,{'startColumn':_0xdf1767,'endColumn':_0xdf1767+_0x402008-0x1}))_0x4dadf0['columnInsertionRanges']['push'](_0x122f7c['model']['createRangeOn'](_0x2a8387));},{'priority':'low'}),_0x36a106['on']('insertRows',(_0x1740f4,_0x3b7ae4)=>{const [_0x1bd253,_0x1cb9f8={}]=_0x3b7ae4;if(!_0x4dadf0)return;const _0x3b7ca7=_0x1cb9f8['at']||0x0,_0x37f279=_0x1cb9f8['rows']||0x1;_0x4dadf0['rowInsertionIndexes']=new Array(_0x37f279)['fill'](_0x3b7ca7)['map']((_0x859851,_0x5db560)=>_0x859851+_0x5db560);for(const {cell:_0x1d1a95}of _0x36a106['createTableWalker'](_0x1bd253,{'startRow':_0x3b7ca7,'endRow':_0x3b7ca7+_0x37f279-0x1}))_0x4dadf0['rowInsertionRanges']['push'](_0x122f7c['model']['createRangeOn'](_0x1d1a95));},{'priority':'low'}),_0x189257['descriptionFactory']['registerDescriptionCallback'](_0x500a08=>{if(_0x500a08['subType']&&_0x500a08['subType']['startsWith']('tablePaste'))return _0x500a08['previous']?{}:{'type':'insertion','content':o(_0x122f7c['locale'],'*Replace\x20table\x20cells*')};});const _0x225179=()=>!0x1;for(const _0x10c407 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x189257['_suggestionFactory']['registerCustomCallback']('insertion',_0x10c407,'join',_0x225179),_0x189257['_suggestionFactory']['registerCustomCallback']('deletion',_0x10c407,'join',_0x225179),_0x189257['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10c407,'join',_0x225179);_0x189257['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x225179),_0x189257['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x58500f,_0x31caeb,_0x3090c2)=>{const _0x52d915=_0x58500f['map'](_0x42d401=>_0x42d401['getContainedElement']())['filter'](_0x1731cc=>_0x1731cc),_0x3fd1eb=new Map(_0x52d915['map'](_0x5b68aa=>[_0x5b68aa,null]));if(_0x4dadf0){for(const {element:_0x2a4bbc,attributes:_0x20fd00}of _0x4dadf0['cells'])_0x20fd00&&_0x3fd1eb['set'](_0x2a4bbc,_0x20fd00);}else{if(_0x3090c2&&_0x3090c2['markerAttributes'])for(const [_0x1e9718,_0x2c7e7f]of Object['entries'](_0x3090c2['markerAttributes'])){const _0x34a9d6=_0x122f7c['model']['markers']['get'](_0x1e9718),_0x302308=_0x34a9d6?_0x34a9d6['getRange']()['getContainedElement']():null;_0x302308&&_0x3fd1eb['set'](_0x302308,_0x2c7e7f);}}_0x122f7c['model']['change'](_0x1abd06=>{for(const [_0x581c6e,_0x5f3b88]of _0x3fd1eb)_0x1abd06['setAttributes']({...Ce,..._0x5f3b88},_0x581c6e);});});const _0x39e261=(_0x2743ac,_0x4744db)=>{_0x189257['_suggestionFactory']['registerCustomCallback'](_0x2743ac,'tablePaste',_0x4744db,(_0x2fbdb2,_0xf4f7aa,_0x57afbc)=>{_0x122f7c['model']['change'](_0x5aaa81=>{const _0x293704=[];for(const _0x5e9679 of _0x2fbdb2){const _0x49a6d7=_0x5e9679['start']['nodeAfter'];_0x49a6d7['is']('element','tableCellSuggestion')&&_0x293704['push'](_0x49a6d7);}_0x189257['_suggestionFactory']['getSuggestionCallback'](_0x2743ac,null,_0x4744db)(_0x2fbdb2,_0xf4f7aa,_0x57afbc);for(const _0x558d01 of _0x293704)'$graveyard'!=_0x558d01['root']['rootName']&&_0x5aaa81['unwrap'](_0x558d01);});});};_0x39e261('insertion','accept'),_0x39e261('insertion','discard'),_0x39e261('deletion','accept'),_0x39e261('deletion','discard'),_0x189257['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x32a914=>{const _0x3e8855=_0x32a914['map'](_0xaf7010=>_0xaf7010['getContainedElement']()),_0x50c0b2=_0x3e8855[0x0]['findAncestor']('table'),{minRow:_0x442203,maxRow:_0x579076}=_0x4305df['_getCoordsForCells'](_0x3e8855);_0x36a106['removeRows'](_0x50c0b2,{'at':_0x442203,'rows':_0x579076-_0x442203+0x1});}),_0x189257['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4e653e=>{const _0x3e1d15=_0x4e653e['map'](_0xdf87f7=>_0xdf87f7['getContainedElement']()),_0x35a4c3=_0x3e1d15[0x0]['findAncestor']('table'),{minColumn:_0x9b4780,maxColumn:_0x39a38f}=_0x4305df['_getCoordsForCells'](_0x3e1d15);_0x36a106['removeColumns'](_0x35a4c3,{'at':_0x9b4780,'columns':_0x39a38f-_0x9b4780+0x1});});const _0xe830a3=(_0x3adaca,_0x2c1983)=>{if(!_0x2c1983['subType']||!_0x2c1983['subType']['startsWith']('tablePaste'))return;const _0x1b6e4e=_0x2c1983['attributes']['tablePasteChainId'],_0x4d7bff=_0x189257['getSuggestions']()['filter'](_0x5c2305=>_0x5c2305['isInContent']&&_0x5c2305['attributes']&&_0x5c2305['attributes']['tablePasteChainId']==_0x1b6e4e);_0x4d7bff['length']&&_0x2c1983['getAllAdjacentSuggestions']()['length']!=_0x4d7bff['length']&&_0x4d7bff['reduce']((_0x4aa0b9,_0xe5c88e)=>(_0x4aa0b9['next']=_0xe5c88e,_0xe5c88e['previous']=_0x4aa0b9,_0xe5c88e));};function _0x14ed12(_0x35b645,_0x4218ee=!0x0){const {id:_0x124bf9}=_0x189257['_splitMarkerName'](_0x35b645['markerName']),_0x254e3e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4cd99d=_0x189257['activeMarkers']['includes'](_0x35b645['markerName']);return _0x4cd99d&&_0x254e3e['push']('ck-suggestion-marker--active'),{'classes':_0x254e3e,'attributes':{'data-suggestion':_0x124bf9},'priority':_0x4cd99d&&_0x4218ee?0xbc2:0xbb8};}_0x189257['on']('suggestionLoaded',_0xe830a3,{'priority':'high'}),_0x189257['on']('suggestionUnloaded',_0xe830a3,{'priority':'high'}),_0x122f7c['model']['document']['registerPostFixer'](()=>{let _0x5860c6=!0x1;const _0x368366=Array['from'](_0x122f7c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13bd17,data:_0x23032d}of _0x368366){const {group:_0x106e75,type:_0xc0b2e9,id:_0x26bd7d}=_0x189257['_splitMarkerName'](_0x13bd17);if('suggestion'!=_0x106e75||'deletion'!=_0xc0b2e9||_0x23032d['oldRange'])continue;if(!_0x189257['hasSuggestion'](_0x26bd7d))continue;const _0x436857=_0x189257['getSuggestion'](_0x26bd7d)['getRanges'](),_0x585fb1=_0x122f7c['plugins']['get']('Users')['me'];for(const _0x28c489 of _0x189257['getSuggestions']()){if(!_0x28c489['isInContent']||_0x28c489['author']!=_0x585fb1)continue;if('formatBlock'!=_0x28c489['type']||'tablePasteCell'!=_0x28c489['subType'])continue;if(_0x28c489['getRanges']()['every'](_0x3a3117=>_0x436857['some'](_0x5f117a=>_0x5f117a['containsRange'](_0x3a3117,!0x0)))){for(const _0x2c50d0 of _0x28c489['getAllAdjacentSuggestions']())_0x2c50d0['isInContent']&&(_0x2c50d0['discard'](),_0x5860c6=!0x0);}}}return _0x5860c6;}),_0x122f7c['model']['document']['registerPostFixer'](_0x21d2db=>{const _0x5835ed=_0x122f7c['commands']['get']('redo');if(!_0x5835ed||!_0x5835ed['_createdBatches']['has'](_0x21d2db['batch']))return!0x1;let _0x509e98=!0x1;const _0x5b20aa=_0x122f7c['plugins']['get']('Users')['me'],_0xa37c47=_0x122f7c['model']['document']['differ']['getChanges'](),_0x3aef92=Array['from'](_0x122f7c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4849d8,data:_0x186cec})=>{const {group:_0x14ac1a,subType:_0x18bf07,authorId:_0x32bf65}=_0x189257['_splitMarkerName'](_0x4849d8);return'suggestion'==_0x14ac1a&&'tablePaste'==_0x18bf07&&_0x32bf65==_0x5b20aa['id']&&!_0x186cec['oldRange'];});for(const _0x5e18b7 of _0xa37c47){if('insert'!=_0x5e18b7['type']||'tableCellSuggestion'!=_0x5e18b7['name']||0x1!=_0x5e18b7['length'])continue;const _0x45cd32=_0x21d2db['createRange'](_0x5e18b7['position'],_0x5e18b7['position']['getShiftedBy'](0x1));if(!_0x3aef92['find'](({data:_0x23d2cd})=>_0x23d2cd['newRange']['isEqual'](_0x45cd32))){for(const {name:_0x226012,data:_0x207c50}of _0x3aef92)if(_0x45cd32['containsRange'](_0x207c50['newRange'])){_0x21d2db['updateMarker'](_0x226012,{'range':_0x45cd32}),_0x509e98=!0x0;break;}}}return _0x509e98;}),_0x122f7c['model']['document']['registerPostFixer'](_0xf7fa87=>{let _0x4dd149=!0x1;const _0x578af7=_0x122f7c['plugins']['get']('Users')['me'],_0x48ce7d=_0x189257['getSuggestions']()['filter'](_0x53517a=>_0x53517a['isInContent']&&_0x53517a['author']==_0x578af7),_0x3fe57d=new Set(),_0x4f735f=new Set();for(const _0x4bc4a2 of _0x48ce7d)if('tablePaste'==_0x4bc4a2['subType'])for(const _0x25dfff of _0x4bc4a2['getMarkers']()){const _0x3892d5=_0x25dfff['getRange']()['getContainedElement']();if(_0x3892d5){if(_0x3892d5['is']('element','tableCellSuggestion')&&Pe(_0x3892d5)){_0x4bc4a2['removeMarker'](_0x25dfff['name']),_0x3fe57d['add'](_0x3892d5),_0x4dd149=!0x0;const _0x56d191=_0x3892d5['nextSibling'],_0x547916=_0x3892d5['previousSibling'],_0x2d366a=_0x56d191&&_0x56d191['is']('element','tableCellSuggestion'),_0x1ffc2f=_0x547916&&_0x547916['is']('element','tableCellSuggestion');_0x2d366a&&!_0x3fe57d['has'](_0x56d191)&&_0x4f735f['add'](_0x56d191),_0x1ffc2f&&!_0x3fe57d['has'](_0x547916)&&_0x4f735f['add'](_0x547916);}else _0x3892d5['is']('element','paragraph')&&_0x3892d5['isEmpty']&&(_0x4bc4a2['removeMarker'](_0x25dfff['name']),_0x4dd149=!0x0);}}else{if('tablePasteCell'==_0x4bc4a2['subType']){if(!_0x4bc4a2['attributes']||!_0x4bc4a2['attributes']['tablePasteChainId'])continue;const _0x29e869=_0x4bc4a2['attributes']['markerAttributes'];if(_0x29e869&&Object['keys'](_0x29e869)['length'])continue;const _0xf7db75=_0x4bc4a2['attributes']['tablePasteChainId'];let _0x3b2729=!0x0,_0x2a12ff=!0x0;for(const _0x5785c2 of _0x48ce7d)if(_0x5785c2['subType']&&_0x5785c2['subType']['startsWith']('tablePaste')){if(!_0x5785c2['attributes']['tablePasteChainId']){_0x2a12ff=!0x1;break;}if(_0x5785c2['id']!=_0x4bc4a2['id']&&_0x5785c2['attributes']['tablePasteChainId']==_0xf7db75){_0x3b2729=!0x1;break;}}_0x2a12ff&&_0x3b2729&&(_0x4bc4a2['removeMarkers'](),_0x4dd149=!0x0);}}for(const _0x40f03e of _0x3fe57d)_0xf7fa87['remove'](_0x40f03e);for(const _0x5e5304 of _0x4f735f)_0xf7fa87['unwrap'](_0x5e5304);return _0x4dd149;}),_0x122f7c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50fca7,_0x593d0a)=>_0x14ed12(_0x50fca7),'converterPriority':'high'}),_0x122f7c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3fa1c8,_0x5e0ffd)=>_0x5e0ffd['options']['showSuggestionHighlights']?_0x14ed12(_0x3fa1c8,!0x1):null,'converterPriority':'high'});const _0x5d3e5c=_0x122f7c['editing']['view'];this['listenTo'](_0x5d3e5c['document'],'clipboardOutput',(_0x203fa6,_0x1f1a93)=>{const _0xf30487=[];for(const _0xb262b8 of _0x5d3e5c['createRangeIn'](_0x1f1a93['content'])['getItems']())_0xb262b8['is']('element','suggestion-td')&&_0xf30487['push'](_0xb262b8);_0x5d3e5c['change'](_0x219ce4=>{for(const _0x1215cf of _0xf30487)_0x219ce4['move'](_0x219ce4['createRangeIn'](_0x1215cf),_0x219ce4['createPositionBefore'](_0x1215cf)),_0x219ce4['remove'](_0x1215cf);});});}}function Pe(_0x594ddf){if(_0x594ddf['isEmpty'])return!0x0;const _0x507efe=_0x594ddf['getChild'](0x0);return _0x507efe['is']('element','paragraph')&&_0x507efe['isEmpty'];}function we(_0x3a1df1,_0x449ecc={},_0x2107a3){for(const {isAnchor:_0x4e4116,cellHeight:_0x20fdcb,cellWidth:_0xdd22f}of _0x2107a3['createTableWalker'](_0x3a1df1,{'includeAllSlots':!0x0,..._0x449ecc}))if(!_0x4e4116||0x1!=_0x20fdcb||0x1!=_0xdd22f)return!0x1;return!0x0;}class Ct extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5abc6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5abc6b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5abc6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5abc6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5abc6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5abc6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5abc6b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3c6abe,_0xf10e17){const _0xe767bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d6a78=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59d7c3=_0xf10e17['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x18aa1e=_0x4d6a78['getColumnGroupElement'](_0x59d7c3);let _0x21802f=_0x18aa1e?_0x4d6a78['getTableColumnsWidths'](_0x18aa1e):null,_0x1ba8d6=_0x59d7c3['getAttribute']('tableWidth')||null;const _0x325c16=_0xf10e17['tableWidth']||_0x1ba8d6,_0x35e257=_0xf10e17['columnWidths']||_0x21802f,_0x4318cf=this['editor']['plugins']['get']('Users')['me'];for(const _0xafbcfd of _0xe767bb['getSuggestions']()){const _0x53fc=_0xafbcfd['getContainedElement']();if('resizeTable'===_0xafbcfd['subType']&&_0x53fc===_0x59d7c3){_0xafbcfd['author']!==_0x4318cf&&_0xafbcfd['discard']();const _0x2d1746=_0xafbcfd['data']['commandParams'];_0x1ba8d6=_0x2d1746[0x0]['tableWidth'],_0x21802f=_0x2d1746[0x0]['columnWidths'];break;}}_0x3c6abe({'table':_0x59d7c3,'tableWidth':_0x325c16,'columnWidths':_0x35e257}),_0xe767bb['markBlockFormat'](_0x59d7c3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ba8d6,'columnWidths':_0x21802f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x48828e){if('formatBlock'!=_0x48828e['type']&&'formatInline'!=_0x48828e['type'])return;const {data:_0x2eb25c}=_0x48828e;if(_0x2eb25c&&'resizeTable'===_0x2eb25c['formatGroupId']){const _0x2c7ed8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2c7ed8)};}}}class _t extends _0x23b8b9{['afterInit'](){const _0x14051b=this['editor'];_0x14051b['plugins']['has']('Template')&&_0x14051b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x23b8b9{['afterInit'](){const _0x4935e8=this['editor'];if(!_0x4935e8['commands']['get']('insertTableOfContents'))return;_0x4935e8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3bc9ad=_0x4935e8['plugins']['get']('TrackChangesEditing'),_0x337227=_0x4935e8['locale'];_0x3bc9ad['descriptionFactory']['registerElementLabel']('tableOfContents',_0x57b710=>o(_0x337227,'ELEMENT_TABLE_OF_CONTENTS',_0x57b710));}}class Nt extends _0x23b8b9{['afterInit'](){const _0xd8803e=this['editor'];if(!_0xd8803e['plugins']['has']('Title'))return;const _0x44cbc5=_0xd8803e['plugins']['get']('TrackChangesEditing');_0x44cbc5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xd8803e['locale'],'ELEMENT_TITLE')),_0xd8803e['model']['document']['registerPostFixer'](_0x466210=>{let _0xdefd4e=!0x1;const _0x17e670=Array['from'](_0xd8803e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bbb43,data:_0x3b9604}of _0x17e670){const {group:_0x418875}=_0x44cbc5['_splitMarkerName'](_0x5bbb43);if('suggestion'!==_0x418875||!_0x3b9604['newRange'])continue;const _0x5e2788=_0x3b9604['newRange'],_0x2630ca=_0x5e2788['end']['nodeBefore'];if(!_0x2630ca||!_0x2630ca['is']('element','title-content'))continue;if(!_0x5e2788['start']['isTouching'](_0x5e2788['end']))continue;const _0x45cd0c=_0xd8803e['model']['schema']['getNearestSelectionRange'](_0x5e2788['end'],'forward');if(_0x45cd0c&&_0x45cd0c['isCollapsed']){const _0xe363ad=_0x466210['createRange'](_0x5e2788['start'],_0x45cd0c['start']);_0xe363ad['isEqual'](_0x5e2788)||(_0x466210['updateMarker'](_0x5bbb43,{'range':_0xe363ad}),_0xdefd4e=!0x0);}_0xdefd4e||(_0x466210['removeMarker'](_0x5bbb43),_0xdefd4e=!0x0);}return _0xdefd4e;});}}class Mt extends _0x23b8b9{['afterInit'](){const _0x5e760e=this['editor'],_0xc8818d=_0x5e760e['plugins']['get']('TrackChangesEditing');_0x5e760e['plugins']['has']('UndoEditing')&&(_0xc8818d['enableCommand']('undo'),_0xc8818d['enableCommand']('redo'));}}class $t extends _0x23b8b9{static get['requires'](){return[St];}['afterInit'](){const _0x398dda=this['editor'];if(!_0x398dda['plugins']['has']('TableCaptionEditing'))return;_0x398dda['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x23b8b9{['tableProperties'];['tableCellProperties'];constructor(_0x266f65){super(_0x266f65),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x7ad69c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x31a138 of this['tableProperties'])_0x7ad69c['enableCommand'](_0x31a138,(_0x294ad7,_0x36d0fd)=>{const _0x50990d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x31a138,[_0x50990d],this['tableProperties'],'tableProperties',_0x294ad7,_0x36d0fd);});_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x7ad69c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3c424c,_0x407362)=>this['handleDiscardAction'](this['tableProperties'],_0x3c424c,_0x407362)),_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x119afd of this['tableCellProperties'])_0x7ad69c['enableCommand'](_0x119afd,(_0x25dd5e,_0x5462ba)=>{const _0x1ba907=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x119afd,_0x1ba907,this['tableCellProperties'],'tableCellProperties',_0x25dd5e,_0x5462ba);});_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x7ad69c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2c5c0e,_0x157c02)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2c5c0e,_0x157c02)),_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x7ad69c['descriptionFactory']['registerDescriptionCallback'](_0x505ff2=>this['handleSuggestionDescription'](_0x505ff2));}['_handlePropertyChange'](_0x24628f,_0x1f1003,_0x55a688,_0x2e22c7,_0x41a84e,_0x14e16a){const _0x131ea8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14e16a['batch'],()=>{for(const _0x39b70b of _0x1f1003){if(this['_getSuggestion'](_0x39b70b,_0x2e22c7))_0x41a84e(_0x14e16a);else{const _0x1cdac3={};for(const _0x18b242 of _0x55a688){const _0xeeed23=_0x39b70b['getAttribute'](_0x18b242);void 0x0!==_0xeeed23&&(_0x1cdac3[_0x18b242]=_0xeeed23);}_0x41a84e(_0x14e16a),_0x131ea8['markBlockFormat'](_0x39b70b,{'commandParams':[_0x1cdac3]},[],_0x2e22c7);}}});}['handleDiscardAction'](_0x39dc1a,_0x29475a,_0x3fcadd){const _0x1d4ee7=_0x29475a[0x0]['start']['nodeAfter'],_0x3b5046=_0x3fcadd['commandParams'][0x0];this['editor']['model']['change'](_0x1ebaab=>{for(const _0x2c8fa9 of _0x39dc1a)void 0x0!==_0x3b5046[_0x2c8fa9]?_0x1ebaab['setAttribute'](_0x2c8fa9,_0x3b5046[_0x2c8fa9],_0x1d4ee7):_0x1ebaab['removeAttribute'](_0x2c8fa9,_0x1d4ee7);});}['handleSuggestionDescription'](_0x2ab77b){if(_0x2ab77b['data'])switch(_0x2ab77b['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x32736c,_0xcdc609){const _0x4c5985=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x535a3d of _0x4c5985['getSuggestions']({'skipNotAttached':!0x0})){const _0x46ae3d=_0x535a3d['getContainedElement']();if(_0x535a3d['subType']===_0xcdc609&&_0x46ae3d===_0x32736c)return _0x535a3d;}return null;}}const m='$elementName';class p extends _0x23b8b9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x40cd8f,_0x4fe327,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x480de5){function _0x10439b(_0x5ca0f8){return _0x5ca0f8['map'](_0x4b71ea=>String['fromCharCode'](_0x4b71ea))['join']('');}super(_0x480de5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x7df227,_0x4f322a,_0x161ed1,_0x45ad9d)=>{this['_model']['change'](()=>{for(const _0x115d1e of[..._0x45ad9d,..._0x161ed1])this['_model']['markers']['has'](_0x115d1e)&&_0x480de5['editing']['reconvertMarker'](_0x115d1e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x480de5['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x480de5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x480de5['config']['get']('trackChanges.trackFormatChanges'),_0x480de5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x480de5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x480de5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x10439b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10439b([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x36]);}['init'](){const _0x2f3140=this['editor'],_0x459095=(_0x551e0b,_0x264131)=>{if('attribute'!=_0x551e0b)return'ck-suggestion-marker-'+_0x551e0b;const _0x3c0976=_0x264131['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c0976)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2f3140['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x538d83=>{const {id:_0x4106ed,type:_0x18bf3f,subType:_0x436d29}=this['_splitMarkerName'](_0x538d83['markerName']),_0xdbeccb=['ck-suggestion-marker',_0x459095(_0x18bf3f,_0x436d29)];let _0x12b8fd=0xbb8;return this['activeMarkers']['includes'](_0x538d83['markerName'])&&(_0xdbeccb['push']('ck-suggestion-marker--active'),_0x12b8fd=0xbc2),'deletion'==_0x18bf3f&&(_0x12b8fd+=0x5),{'classes':_0xdbeccb,'attributes':{'data-suggestion':_0x4106ed},'priority':_0x12b8fd};}}),_0x2f3140['conversion']['for']('dataDowncast')['add'](_0x31eded=>{_0x31eded['on']('addMarker:suggestion',(_0x1da258,_0x507558,_0x39b2a6)=>{if(!_0x39b2a6['options']['showSuggestionHighlights'])return;const _0x5a2cbe=_0x507558['item'];if(!_0x5a2cbe)return;const _0x97083f=_0x39b2a6['mapper']['toViewElement'](_0x5a2cbe);_0x2f3140['model']['schema']['isObject'](_0x5a2cbe)&&_0x97083f&&!_0x97083f['getCustomProperty']('widget')&&_0x97083f['is']('containerElement')&&_0x4a1165(_0x97083f,_0x39b2a6['writer']);},{'priority':'high'});}),_0x2f3140['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x395d51,_0x4919a7)=>{if(!_0x4919a7['options']['showSuggestionHighlights'])return null;const {type:_0x1b1a70,subType:_0x52a57c}=this['_splitMarkerName'](_0x395d51['markerName']);return{'classes':['ck-suggestion-marker',_0x459095(_0x1b1a70,_0x52a57c)],'priority':0xbb8};}});const _0x4c2498=({showActiveMarkers:_0xee59f9=!0x0,isAttributeSuggestion:_0x9f291b=!0x1}={})=>(_0x424af0,_0x357cf6,_0x3a6378)=>{if(!_0x357cf6['item'])return;const {id:_0x26f59f}=this['_splitMarkerName'](_0x357cf6['markerName']);if(_0x9f291b){const _0x104edf=this['_suggestions']['get'](_0x26f59f),_0x32e457=this['_getAttributeKey'](_0x104edf);if(!this['_isBlockAttribute'](_0x32e457))return;}if(_0x357cf6['item']['is']('selection'))return void _0x3a6378['consumable']['consume'](_0x357cf6['item'],_0x424af0['name']);const _0x494f4e=_0x3a6378['mapper']['toViewElement'](_0x357cf6['item']);if(_0x357cf6['item']['is']('element')&&_0x2f3140['model']['schema']['isBlock'](_0x357cf6['item'])&&!_0x494f4e['getCustomProperty']('addHighlight')){_0x3a6378['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x494f4e),_0x3a6378['writer']['setAttribute']('data-suggestion',_0x26f59f,_0x494f4e),_0x3a6378['mapper']['bindElementToMarker'](_0x494f4e,_0x357cf6['markerName']),_0xee59f9&&(this['activeMarkers']['includes'](_0x357cf6['markerName'])?_0x3a6378['writer']['addClass']('ck-suggestion-marker--active',_0x494f4e):_0x3a6378['writer']['removeClass']('ck-suggestion-marker--active',_0x494f4e));for(const _0x3188e2 of _0x2f3140['model']['createRangeIn'](_0x357cf6['item'])['getItems']())_0x3a6378['consumable']['consume'](_0x3188e2,_0x424af0['name']);_0x3a6378['consumable']['consume'](_0x357cf6['item'],_0x424af0['name']);}};_0x2f3140['conversion']['for']('dataDowncast')['add'](_0xae3339=>{_0xae3339['on']('addMarker:suggestion:formatBlock',(_0x52899b,_0x285ce1,_0x2bd1ee)=>{_0x2bd1ee['options']['showSuggestionHighlights']&&_0x4c2498({'showActiveMarkers':!0x1})(_0x52899b,_0x285ce1,_0x2bd1ee);},{'priority':'highest'});}),_0x2f3140['conversion']['for']('dataDowncast')['add'](_0x4b9201=>{_0x4b9201['on']('addMarker:suggestion:attribute',(_0x1bca97,_0xcd8220,_0x110d27)=>{_0x110d27['options']['showSuggestionHighlights']&&_0x4c2498({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1bca97,_0xcd8220,_0x110d27);},{'priority':'highest'});}),_0x2f3140['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2da5d7,_0x445bbc)=>_0x445bbc['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2da5d7['substr'](0xb)}}),_0x2f3140['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x283d73,{writer:_0x54529f})=>{let _0x6d2b8f='suggestion:'+_0x283d73['getAttribute']('suggestion-type')+':'+_0x283d73['getAttribute']('id');return _0x283d73['getAttribute']('marker-count')&&(_0x6d2b8f+=':'+_0x283d73['getAttribute']('marker-count')),_0x54529f['createElement']('$marker',{'data-name':_0x6d2b8f});}}),_0x2f3140['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2f3140['conversion']['for']('editingDowncast')['add'](_0x31ec2d=>{_0x31ec2d['on']('addMarker:suggestion:formatBlock',_0x4c2498(),{'priority':'high'});}),_0x2f3140['conversion']['for']('editingDowncast')['add'](_0x234796=>{_0x234796['on']('addMarker:suggestion:attribute',_0x4c2498({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2f3140['conversion']['for']('editingDowncast')['add'](_0x6e1cb4=>{_0x6e1cb4['on']('removeMarker:suggestion:formatBlock',(_0x141b14,_0x32b310,_0x468ea6)=>{const _0x5baf34=_0x468ea6['mapper']['markerNameToElements'](_0x32b310['markerName']);if(_0x5baf34){for(const _0x59b00c of _0x5baf34)_0x59b00c['getCustomProperty']('addHighlight')||(_0x468ea6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59b00c),_0x468ea6['writer']['removeAttribute']('data-suggestion',_0x59b00c),_0x468ea6['mapper']['unbindElementFromMarkerName'](_0x59b00c,_0x32b310['markerName']));}},{'priority':'high'});}),_0x2f3140['conversion']['for']('editingDowncast')['add'](_0x244389=>{_0x244389['on']('removeMarker:suggestion:attribute',(_0x3048e2,_0x3b3b98,_0x45aa32)=>{const _0x28dc74=_0x45aa32['mapper']['markerNameToElements'](_0x3b3b98['markerName']);if(!_0x28dc74)return;const {id:_0x19b8c2}=this['_splitMarkerName'](_0x3b3b98['markerName']),_0x286a25=this['_suggestions']['get'](_0x19b8c2),_0x2647fb=this['_getAttributeKey'](_0x286a25);if(this['_isBlockAttribute'](_0x2647fb)){for(const _0x3dda45 of _0x28dc74)_0x3dda45['getCustomProperty']('addHighlight')||(_0x45aa32['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3dda45),_0x45aa32['writer']['removeAttribute']('data-suggestion',_0x3dda45),_0x45aa32['mapper']['unbindElementFromMarkerName'](_0x3dda45,_0x3b3b98['markerName']));}},{'priority':'high'});}),_0x2f3140['model']['document']['registerPostFixer'](_0x5352ae=>{let _0x2642b1=!0x1;const _0x2d7ced=Array['from'](_0x2f3140['model']['document']['differ']['getChangedMarkers']()),_0x5ad223=new Set();for(const {name:_0x31bb27,data:_0x1b22f2}of _0x2d7ced){const {group:_0x4412e0,type:_0x4c4d73,subType:_0x33c462,id:_0x1b01f8}=this['_splitMarkerName'](_0x31bb27);if('suggestion'!==_0x4412e0)continue;const _0x3d95ef=this['_suggestions']['get'](_0x1b01f8);if(null!=_0x1b22f2['newRange']){'formatInline'==_0x4c4d73&&(_0x2642b1=_0x2642b1||Vt(_0x1b22f2['newRange'],_0x31bb27,_0x5352ae,_0x2f3140['model']['schema']));const _0x5653d4='attribute'==_0x4c4d73&&this['_isBlockAttribute'](_0x33c462['split']('|')[0x0]);if(_0x1b22f2['newRange']['isCollapsed']||'$graveyard'==_0x1b22f2['newRange']['root']['rootName']||'formatBlock'==_0x4c4d73&&!Ot(_0x1b22f2['newRange'])||_0x5653d4&&!Ot(_0x1b22f2['newRange'])||'deletion'==_0x4c4d73&&!(!Et(_0xd3af78=_0x1b22f2['newRange'])&&!function(_0x2094a3){return _0x2094a3['start']['parent']==_0x2094a3['end']['nodeBefore']&&_0x2094a3['start']['isAtEnd'];}(_0xd3af78)))_0x5352ae['removeMarker'](_0x31bb27),_0x2642b1=!0x0;else{if(!_0x3d95ef||!_0x3d95ef['isInContent'])continue;_0x5ad223['add'](_0x3d95ef);}}}var _0xd3af78;return _0x5ad223['size']>0x0&&(_0x2642b1=!!this['_joinWithAdjacentSuggestions'](_0x5ad223)||_0x2642b1),_0x2642b1;}),_0x2f3140['model']['document']['registerPostFixer'](_0x363043=>{let _0x1e6e40=!0x1;for(const _0x2988cd of _0x2f3140['model']['document']['differ']['getChanges']())if('insert'==_0x2988cd['type'])for(const _0x5efafb of this['_suggestions']['values']()){if(_0x5efafb['isMultiRange']||!_0x5efafb['isInContent'])continue;const _0x1d6434='formatBlock'==_0x5efafb['type'],_0x3d09c2=this['_getAttributeKey'](_0x5efafb),_0x42a2e7=_0x3d09c2&&this['_isBlockAttribute'](_0x3d09c2);if(!_0x1d6434&&!_0x42a2e7)continue;const _0x252abc=_0x5efafb['getFirstRange']();if(_0x252abc['start']['parent']!=_0x252abc['end']['parent']&&!_0x252abc['end']['isAtEnd']){const _0x1d2a23=_0x2f3140['model']['createPositionAt'](_0x252abc['start']['nodeAfter'],'end'),_0x4bdcaf=_0x2f3140['model']['createRange'](_0x252abc['start'],_0x1d2a23);_0x363043['updateMarker'](_0x5efafb['getFirstMarker'](),{'range':_0x4bdcaf}),_0x1e6e40=!0x0;}}return _0x1e6e40;}),_0x2f3140['model']['document']['registerPostFixer'](_0x30cdc9=>this['_processAttributeChanges'](_0x30cdc9)),_0x2f3140['model']['document']['registerPostFixer'](_0x763bc5=>!_0x763bc5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x763bc5)),_0x2f3140['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2f3140['model']['document']['on']('change:data',(_0x10a923,_0x942d6c)=>{if(!_0x942d6c['isLocal']||_0x942d6c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3fb0a9=_0x2f3140['model']['document']['differ']['getChanges']();if(0x0==_0x3fb0a9['length'])return;const _0x33925d=[],_0xa8997a=_0x3fb0a9['filter'](_0x3473f5=>'attribute'==_0x3473f5['type']),_0x158ec1=_0x3fb0a9['filter'](_0x41342a=>'insert'==_0x41342a['type']&&'$text'!=_0x41342a['name']);for(const _0x395e79 of _0xa8997a)this['_isRegisteredAttribute'](_0x395e79['attributeKey'])&&_0x33925d['push']({'key':_0x395e79['attributeKey'],'newValue':_0x395e79['attributeNewValue'],'oldValue':_0x395e79['attributeOldValue'],'range':Gt(_0x395e79['range'],_0x2f3140['model'])});for(const _0x21764c of _0x158ec1){if('rename'!=_0x21764c['action']&&'refresh'!=_0x21764c['action'])continue;const _0x5c8c42=Ft(_0x21764c['position']['nodeAfter'],_0x2f3140['model']),_0x524e77=_0x21764c['before'];'rename'==_0x21764c['action']&&_0x33925d['push']({'key':m,'newValue':_0x21764c['name'],'oldValue':_0x524e77['name'],'range':_0x5c8c42});for(const [_0x4bd48b,_0x333fed]of _0x524e77['attributes']){if(!this['_isRegisteredAttribute'](_0x4bd48b))continue;const _0x39ce5c=_0x21764c['attributes']['get'](_0x4bd48b);_0x333fed!==_0x39ce5c&&_0x33925d['push']({'key':_0x4bd48b,'newValue':_0x39ce5c,'oldValue':_0x333fed,'range':_0x5c8c42});}for(const [_0x4a7a02,_0x558677]of _0x21764c['attributes'])this['_isRegisteredAttribute'](_0x4a7a02)&&(_0x524e77['attributes']['has'](_0x4a7a02)||_0x33925d['push']({'key':_0x4a7a02,'newValue':_0x558677,'oldValue':null,'range':_0x5c8c42}));}0x0!=_0x33925d['length']&&_0x2f3140['model']['enqueueChange'](_0x942d6c,_0x4c4bfd=>{const _0x1f4118=_0x2905f1();for(const {range:_0x59540e,key:_0x50f989,oldValue:_0x4e547f,newValue:_0x43b44c}of _0x33925d)this['markAttributeChange'](_0x59540e,_0x50f989,_0x4e547f,_0x43b44c,{'groupId':_0x1f4118});this['_reduceExistingSuggestions'](_0x4c4bfd,_0x33925d);});},{'priority':'lowest'}),_0x2f3140['model']['markers']['on']('update:suggestion',(_0x39e96b,_0x23a059,_0x4d8054)=>{if(null==_0x4d8054){const {id:_0x3e47c8}=this['_splitMarkerName'](_0x23a059['name']),_0x1d0c31=this['_suggestions']['get'](_0x3e47c8);_0x1d0c31&&_0x1d0c31['addMarkerName'](_0x23a059['name']);}}),_0x2f3140['model']['document']['on']('change:data',()=>{const _0xfa7669=Array['from'](_0x2f3140['model']['document']['differ']['getChangedMarkers']())['filter'](_0x33d389=>'suggestion'===this['_splitMarkerName'](_0x33d389['name'])['group']);if(0x0===_0xfa7669['length'])return;_0xfa7669['sort']((_0x330489,_0x4a50fa)=>{const _0x47c1c0=_0x330489['data']['oldRange'],_0x3a9ebc=_0x4a50fa['data']['oldRange'];return null===_0x47c1c0&&null===_0x3a9ebc?0x0:null===_0x47c1c0&&null!==_0x3a9ebc?-0x1:null!==_0x47c1c0&&null===_0x3a9ebc?0x1:_0x47c1c0['start']['isBefore'](_0x3a9ebc['start'])?-0x1:0x1;});const _0x14eae6=new Set(),_0x32e77b=new Set();for(const {name:_0xb0a4e3,data:_0x13aa2b}of _0xfa7669){const {id:_0x2ab89c}=this['_splitMarkerName'](_0xb0a4e3);if(null===_0x13aa2b['oldRange']){const _0x35dfac=this['_handleNewSuggestionMarker'](_0xb0a4e3);_0x32e77b['add'](_0x35dfac);}else{const _0x56c054=this['_suggestions']['get'](_0x2ab89c);null!==_0x13aa2b['newRange']||_0x56c054['isInContent']?(_0x14eae6['add'](_0x56c054['head']),_0x32e77b['add'](_0x56c054)):this['_removeSuggestion'](_0x56c054);}}_0x32e77b['size']>0x0&&this['_refreshSuggestionsChain'](_0x32e77b);for(const _0x607eb2 of _0x14eae6)this['fire']('suggestionChanged',_0x607eb2);}),_0x2f3140['model']['on']('applyOperation',(_0x434c00,_0x151ef2)=>{const _0x271c4b=_0x151ef2[0x0];if(!this['_suggestions']['size'])return;if(!_0x271c4b['isDocumentOperation'])return;if(_0x271c4b['batch']['isUndo']||!_0x271c4b['batch']['isLocal'])return;let _0x21a193,_0x1567b8;switch(_0x271c4b['type']){case'insert':_0x21a193=_0x2f3140['model']['createPositionAt'](_0x271c4b['position']),_0x1567b8=_0x21a193['getShiftedBy'](_0x271c4b['howMany']);break;case'split':_0x21a193=_0x2f3140['model']['createPositionAt'](_0x271c4b['splitPosition']),_0x1567b8=_0x2f3140['model']['createPositionAt'](_0x271c4b['moveTargetPosition']);break;case'move':_0x21a193=_0x2f3140['model']['createPositionAt'](_0x271c4b['targetPosition']),_0x1567b8=_0x21a193['getShiftedBy'](_0x271c4b['howMany']);break;default:return;}const _0x328ad7=_0x2f3140['model']['createRange'](_0x21a193,_0x1567b8);_0x2f3140['model']['change'](()=>{for(const {suggestion:_0x53d078,meta:_0x36a8d2}of this['_findSuggestions'](_0x328ad7)){if(_0x53d078['isMultiRange'])continue;if('formatInline'==_0x53d078['type'])continue;const _0x35e908=this['_getAttributeKey'](_0x53d078);if(_0x35e908&&this['_isBlockAttribute'](_0x35e908)&&'split'!=_0x271c4b['type'])continue;const _0x468e65=_0x53d078['data']&&_0x53d078['data']['multipleBlocks'];('formatBlock'!=_0x53d078['type']||'split'==_0x271c4b['type']&&!_0x468e65)&&(_0x36a8d2['containsRangeInObject']||'insertion'==_0x53d078['type']&&_0x36a8d2['isOwn']||_0x53d078['getFirstRange']()['containsRange'](_0x328ad7)&&this['_breakSuggestionMarker'](_0x53d078,_0x21a193,_0x1567b8));}});},{'priority':'lowest'}),_0x2f3140['model']['on']('deleteContent',(_0x394bbc,_0x3c6d07)=>{const _0x276abe=_0x3c6d07[0x0],_0x48e0d2=_0x3c6d07[0x1];if(_0x48e0d2&&_0x48e0d2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x276abe['isCollapsed'])return;const _0x515064=_0x2f3140['model']['schema'],{start:_0x4155b2,end:_0x55abc5}=_0x276abe['getFirstRange'](),_0x4b42ae=_0x4155b2['nodeAfter']&&_0x515064['isLimit'](_0x4155b2['nodeAfter'])?null:_0x515064['getNearestSelectionRange'](_0x4155b2,'forward'),_0x1c4cb2=_0x55abc5['nodeBefore']&&_0x515064['isLimit'](_0x55abc5['nodeBefore'])?null:_0x515064['getNearestSelectionRange'](_0x55abc5,'backward'),_0x21dbe0=_0x2f3140['model']['createRange'](_0x4b42ae?_0x4b42ae['start']:_0x4155b2,_0x1c4cb2?_0x1c4cb2['end']:_0x55abc5);_0x2f3140['model']['change'](_0x4d54e7=>{this['markDeletion'](_0x21dbe0);const _0x415341=_0x2f3140['model']['schema']['getNearestSelectionRange'](_0x21dbe0['start']);_0x276abe['is']('documentSelection')?_0x4d54e7['setSelection'](_0x415341):_0x276abe['setTo'](_0x415341);}),_0x394bbc['stop']();},{'priority':_0x2bf5ee['normal']+0xa}),_0x2f3140['model']['on']('insertContent',(_0x3b9136,_0x47e3e5)=>{const _0x372299=_0x47e3e5[_0x47e3e5['length']-0x1];_0x372299&&_0x372299['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2f3140['model']['change'](()=>{let _0x25b000=_0x2f3140['model']['insertContent'](_0x47e3e5[0x0],_0x47e3e5[0x1],_0x47e3e5[0x2],{'forceDefaultExecution':!0x0});if(!_0x25b000)return;_0x3b9136['return']=_0x25b000['clone']();const _0x45442c=_0x25b000['end']['nodeBefore'],_0x1f9c9c=_0x2f3140['model']['schema'];_0x45442c&&_0x1f9c9c['isBlock'](_0x45442c)&&!_0x1f9c9c['isObject'](_0x45442c)&&(_0x25b000=_0x2f3140['model']['createRange'](_0x25b000['start'],_0x2f3140['model']['createPositionAt'](_0x45442c,'end'))),this['markInsertion'](_0x25b000);}),_0x3b9136['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xfc766b=new $(_0x2f3140,this['_suggestions']);_0x2f3140['commands']['add']('acceptSuggestion',_0xfc766b),this['enableCommand']('acceptSuggestion');const _0x3abdee=new B(_0x2f3140,this['_suggestions']);_0x2f3140['commands']['add']('discardSuggestion',_0x3abdee),this['enableCommand']('discardSuggestion'),_0x2f3140['commands']['add']('acceptAllSuggestions',new x(_0x2f3140,_0xfc766b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2f3140['commands']['add']('discardAllSuggestions',new x(_0x2f3140,_0x3abdee,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2f3140['commands']['add']('acceptSelectedSuggestions',new R(_0x2f3140,_0xfc766b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2f3140['commands']['add']('discardSelectedSuggestions',new R(_0x2f3140,_0x3abdee,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2ed03d=_0x2f3140['plugins']['get']('CommentsRepository');this['listenTo'](_0x2ed03d,'addComment',(_0x484d4d,{threadId:_0x332a7b})=>{const _0x564757=this['_suggestions']['get'](_0x332a7b);_0x564757&&_0x564757['commentThread']&&0x1===_0x564757['commentThread']['length']&&this['_updateSuggestionData'](_0x332a7b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2ed03d,'removeComment',(_0x366c23,{threadId:_0x6f4ae9})=>{const _0x2fd0e0=this['_suggestions']['get'](_0x6f4ae9);_0x2fd0e0&&_0x2fd0e0['commentThread']&&!_0x2fd0e0['commentThread']['length']&&this['_updateSuggestionData'](_0x6f4ae9,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e1607){if(this['_adapter'])throw new _0x14dd54('track-changes-adapter-already-set',this);this['_adapter']=_0x5e1607;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5f3ae3=!0x1,toJSON:_0x317e92=!0x1}={}){const _0x414ddb=[];for(const _0x468753 of this['_suggestions']['values']())_0x5f3ae3&&!_0x468753['isInContent']||_0x414ddb['push'](_0x468753);return _0x317e92?_0x414ddb['map'](_0x31f42a=>_0x31f42a['toJSON']()):_0x414ddb;}['getSuggestion'](_0x2d1d54){const _0x40b8e9=this['_suggestions']['get'](_0x2d1d54);if(!_0x40b8e9)throw new _0x14dd54('track-changes-suggestion-not-found',this);return _0x40b8e9;}['hasSuggestion'](_0x3be6a2){return this['_suggestions']['has'](_0x3be6a2);}['addSuggestionData'](_0x4e963c){const {authorId:_0x1d33d0,id:_0x1b9249,attributes:_0x1159ce}=_0x4e963c,[_0x5e7f29,_0x587c76]=_0x4e963c['type']['split'](':'),_0x1439e9=this['_suggestions']['get'](_0x1b9249)||this['_createSuggestion'](_0x5e7f29,_0x587c76,_0x1b9249,_0x1d33d0,_0x1159ce);if(this['_addThreadToSuggestion'](_0x1439e9),this['_checkSuggestionCorrectness'](_0x1439e9,_0x5e7f29,_0x587c76||null,_0x1d33d0),_0x1439e9['createdAt']=_0x4e963c['createdAt'],_0x1439e9['_isDataLoaded']=!0x0,_0x1159ce&&_0x1159ce['@external']){const _0x24cf76=_0x1159ce['@external'],_0x229c88=this['_getExternalAuthor'](_0x24cf76['authorName']);_0x1439e9['authoredAt']=_0x24cf76['createdAt'],_0x1439e9['author']=_0x229c88,_0x1439e9['isExternal']=!0x0;}else _0x1439e9['authoredAt']=_0x4e963c['createdAt'];switch(_0x4e963c['data']&&(_0x1439e9['data']=_0x4e963c['data']),_0x4e963c['attributes']&&(_0x1439e9['attributes']=_0x4e963c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1439e9['_saved']=!0x0),this['_suggestionState']['get'](_0x1439e9)){case'notReady':this['_suggestionState']['set'](_0x1439e9,'dataReady');break;case'markerReady':_0x1439e9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1439e9])),this['_refreshSuggestionsChain'](new Set([_0x1439e9])),this['_suggestionState']['set'](_0x1439e9,'ready'),this['fire']('suggestionLoaded',_0x1439e9)):this['_suggestionState']['set'](_0x1439e9,'removed');}return _0x1439e9;}['acceptSuggestion'](_0x1d24b3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x98feab of _0x1d24b3['getAllAdjacentSuggestions']())_0x98feab['accept']();});});}['discardSuggestion'](_0x166a5d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x279e9a of _0x166a5d['getAllAdjacentSuggestions']())_0x279e9a['discard']();});});}['enableCommand'](_0x38044e,_0x2ba563){const _0x1d5cff=this['editor']['commands']['get'](_0x38044e);if(!_0x1d5cff)throw new _0x14dd54('track-changes-command-not-found',this,{'commandName':_0x38044e});if(this['_enabledCommands']['has'](_0x1d5cff))throw new _0x14dd54('track-changes-enable-command-twice',this,{'commandName':_0x38044e});this['_enabledCommands']['add'](_0x1d5cff),_0x2ba563&&_0x1d5cff['on']('execute',(_0x4d025a,_0x1bd88b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1bd88b['length']>0x0&&_0x1bd88b[_0x1bd88b['length']-0x1]&&_0x1bd88b[_0x1bd88b['length']-0x1]['forceDefaultExecution']?_0x1bd88b['pop']():(_0x4d025a['return']=_0x2ba563((..._0x598775)=>_0x1d5cff['execute'](..._0x598775,{'forceDefaultExecution':!0x0}),..._0x1bd88b),_0x4d025a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a3db7){let _0x43b5ab,_0x3c1447;const _0xe838f6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x43b5ab=_0x4a3db7();}catch(_0x35bc5c){_0x3c1447=_0x35bc5c;}return _0xe838f6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c1447&&_0x14dd54['rethrowUnexpectedError'](_0x3c1447,this),_0x43b5ab;}['markInsertion'](_0x3aa0a4,_0x4ce733=null,_0x3ea237={}){if(_0x3aa0a4['isCollapsed'])return null;const _0x5eeca7=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x340cc5,meta:_0xeffe31}of this['_findSuggestions'](_0x3aa0a4,'insertion'))if(_0xeffe31['isOwn']){if(!_0xeffe31['isNextTo']){if(_0xeffe31['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x340cc5,_0x3ea237))continue;return _0x340cc5;}if(Ht(_0x340cc5,_0x3ea237))return _0x340cc5;this['_breakSuggestionMarker'](_0x340cc5,_0x3aa0a4['start'],_0x3aa0a4['end']);break;}if(_0x4ce733==_0x340cc5['subType']&&Ht(_0x340cc5,_0x3ea237)){const _0x273d99=_0x340cc5['getFirstRange']();return _0x273d99['start']['isEqual'](_0x3aa0a4['end'])?this['_setSuggestionRange'](_0x340cc5,this['_model']['createRange'](_0x3aa0a4['start'],_0x273d99['end'])):this['_setSuggestionRange'](_0x340cc5,this['_model']['createRange'](_0x273d99['start'],_0x3aa0a4['end'])),_0x340cc5;}}const _0x3281af=_0x2905f1(),_0x5befdd=_0x5eeca7['id'],_0x1e9f83=_0x4ce733?'insertion:'+_0x4ce733:'insertion',_0x210c41=this['_setSuggestionData']({'id':_0x3281af,'type':_0x1e9f83,'createdAt':new Date(),'authorId':_0x5befdd,'attributes':_0x3ea237});return this['_addSuggestionMarker'](_0x1e9f83,_0x3281af,_0x5befdd,_0x3aa0a4),_0x210c41;}['markMultiRangeInsertion'](_0x1e9e80,_0x426f9a='multi',_0x3c2943={}){const _0x230def=this['editor']['plugins']['get']('Users')['me'],_0x1bb54d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x426f9a,'join');for(const _0x265aca of this['getSuggestions']())if(_0x265aca['author']['id']==_0x230def['id']&&'insertion'==_0x265aca['type']&&_0x265aca['subType']==_0x426f9a&&Ht(_0x265aca,_0x3c2943)&&(_0x1bb54d(_0x265aca['getRanges'](),_0x1e9e80)||_0x1bb54d(_0x1e9e80,_0x265aca['getRanges']()))){for(const _0x26d325 of _0x1e9e80)_0x265aca['addRange'](_0x26d325);return _0x265aca;}for(const {suggestion:_0x3cab88,meta:_0x4c29fc}of this['_findSuggestions'](_0x1e9e80,'insertion')){if(!_0x4c29fc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4c29fc['containsRangeInObject'])continue;if(!Ht(_0x3cab88,_0x3c2943))continue;let _0x2aaf6c=!0x0;for(const _0x2649f1 of _0x3cab88['getRanges']())for(const _0x431da5 of _0x1e9e80)if(!_0x2649f1['containsRange'](_0x431da5)){_0x2aaf6c=!0x1;break;}if(_0x2aaf6c)return _0x3cab88;}const _0xabb4ae=_0x2905f1(),_0x4f5a90=_0x230def['id'],_0x22a1f6='insertion:'+_0x426f9a,_0x282bbc=this['_setSuggestionData']({'id':_0xabb4ae,'type':_0x22a1f6,'createdAt':new Date(),'authorId':_0x4f5a90,'attributes':_0x3c2943});for(const _0x10b306 of _0x1e9e80)this['_addSuggestionMarker'](_0x22a1f6,_0xabb4ae,_0x4f5a90,_0x10b306,u['getMultiRangeId']());return _0x282bbc;}['markInlineFormat'](_0x1273a7,_0x494675,_0x512a1b=null,_0x332464={}){if(_0x512a1b=_0x512a1b||Ut(_0x494675),_0x1273a7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x9ce79c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x512a1b,'accept');return this['forceDefaultExecution'](()=>_0x9ce79c([_0x1273a7],_0x494675,_0x332464)),null;}const _0x41c0b2=this['editor']['plugins']['get']('Users')['me'],_0x12805e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a5f30,meta:_0x4534f1}of this['_findSuggestions'](_0x1273a7,'insertion'))_0x4534f1['isOwn']&&!_0x4534f1['isInsideObject']&&_0x12805e['push'](..._0x5a5f30['getRanges']());}const _0x5757d5=function(_0x2c3b22,_0x3f4367){const _0x20b6f9=[];for(const _0x1dc278 of _0x3f4367){const _0x581657=_0x2c3b22['getIntersection'](_0x1dc278);_0x581657&&_0x20b6f9['push'](_0x581657);}return _0x20b6f9;}(_0x1273a7,_0x12805e),_0x312e97=function(_0x5233b1,_0x44ae73){const _0x7acb0a=[_0x5233b1];for(const _0x194df9 of _0x44ae73){let _0x5c9ee9=0x0;for(;_0x5c9ee9<_0x7acb0a['length'];){const _0x3fdad9=_0x7acb0a[_0x5c9ee9]['getDifference'](_0x194df9);_0x7acb0a['splice'](_0x5c9ee9,0x1,..._0x3fdad9),_0x5c9ee9+=_0x3fdad9['length'];}}return _0x7acb0a;}(_0x1273a7,_0x12805e);_0x5757d5['length']&&this['_model']['change'](()=>{for(const _0x5ba35e of _0x5757d5){const _0x2288a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x512a1b,'accept');this['forceDefaultExecution'](()=>_0x2288a([_0x5ba35e],_0x494675,_0x332464));}});for(const _0x30e3b6 of _0x312e97){let _0x362911=null,_0x4013aa=_0x30e3b6['start'],_0x3b02b4=_0x30e3b6['end'];for(const {suggestion:_0x1d938b,meta:_0x1976c1}of this['_findSuggestions'](_0x30e3b6,'formatInline')){if(!_0x1976c1['isOwn'])continue;if(_0x1d938b['subType']!=_0x512a1b)continue;if(!Ht(_0x1d938b,_0x332464))continue;const _0x3c4e6c=_0x1d938b['getFirstRange']();if(_0x3c4e6c['containsRange'](_0x30e3b6,!0x0))return null;_0x4013aa=_0x4013aa['isBefore'](_0x3c4e6c['start'])?_0x4013aa:_0x3c4e6c['start'],_0x3b02b4=_0x3b02b4['isAfter'](_0x3c4e6c['end'])?_0x3b02b4:_0x3c4e6c['end'],_0x362911?_0x3c4e6c['start']['isBefore'](_0x362911['getFirstRange']()['start'])?(_0x362911['removeMarkers'](),_0x362911=_0x1d938b):_0x1d938b['removeMarkers']():_0x362911=_0x1d938b;}const _0x2a51b2=this['_model']['createRange'](_0x4013aa,_0x3b02b4);if(_0x362911)this['_setSuggestionRange'](_0x362911,_0x2a51b2);else{const _0x53685a=_0x2905f1(),_0x4f018c=_0x41c0b2['id'];this['_setSuggestionData']({'id':_0x53685a,'type':'formatInline:'+_0x512a1b,'data':_0x494675,'createdAt':new Date(),'authorId':_0x4f018c,'attributes':_0x332464}),this['_addSuggestionMarker']('formatInline:'+_0x512a1b,_0x53685a,_0x4f018c,_0x2a51b2);}}return null;}['markBlockFormat'](_0x5b9ac4,_0x4ea3fb,_0x240eed=[],_0x47c94f=null,_0x5e9d49={}){_0x4ea3fb['formatGroupId']||(_0x4ea3fb['formatGroupId']=_0x4ea3fb['commandName']),_0x4ea3fb['multipleBlocks']=_0x5b9ac4['is']('range'),_0x47c94f=_0x47c94f||Ut(_0x4ea3fb);const _0x4dbb0f=_0x240eed['map'](_0xd95c06=>Ft(_0xd95c06,this['_model'])),_0x4c2e4d=_0x5b9ac4['is']('range')?_0x5b9ac4:Ft(_0x5b9ac4,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4082df=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47c94f,'accept');return this['forceDefaultExecution'](()=>_0x4082df([_0x4c2e4d],_0x4ea3fb,_0x5e9d49)),null;}_0x4dbb0f['push'](_0x4c2e4d);let _0x4ac854=!0x0;for(const _0x16192c of _0x4dbb0f)if(!this['_rangeIsInLocalUserInsertion'](_0x16192c)){_0x4ac854=!0x1;break;}if(_0x4ac854&&'always'!==this['_trackFormatChanges']){const _0x5b70ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47c94f,'accept');return this['forceDefaultExecution'](()=>_0x5b70ce([_0x4c2e4d],_0x4ea3fb,_0x5e9d49)),null;}let _0x5c83d1=null,_0x4788dc=_0x4c2e4d['start'],_0x4ffc52=_0x4c2e4d['end'];for(const {suggestion:_0x214daa,meta:_0x12e4cc}of this['_findSuggestions'](_0x4c2e4d,'formatBlock')){if(!_0x12e4cc['isOwn'])continue;if(_0x12e4cc['isNextTo']||_0x12e4cc['containsRangeInObject']||_0x12e4cc['isInsideObject'])continue;if(_0x214daa['data']['formatGroupId']!=_0x4ea3fb['formatGroupId'])continue;if(!Ht(_0x214daa,_0x5e9d49))continue;const _0x4a6478=_0x214daa['getFirstRange']();if(_0x214daa['subType']==_0x47c94f){if(_0x4a6478['containsRange'](_0x4c2e4d,!0x0))return null;_0x4788dc=_0x4788dc['isBefore'](_0x4a6478['start'])?_0x4788dc:_0x4a6478['start'],_0x4ffc52=_0x4ffc52['isAfter'](_0x4a6478['end'])?_0x4ffc52:_0x4a6478['end'],_0x5c83d1?_0x4a6478['start']['isBefore'](_0x5c83d1['getFirstRange']()['start'])?(_0x5c83d1['removeMarkers'](),_0x5c83d1=_0x214daa):_0x214daa['removeMarkers']():_0x5c83d1=_0x214daa;}else{const _0x48c000=_0x4c2e4d['getIntersection'](_0x4a6478);this['_cutOutSuggestionMarker'](_0x214daa,_0x48c000);}}const _0x306fd6=this['editor']['plugins']['get']('Users')['me'],_0x4ed072=_0x2905f1(),_0x462977=_0x306fd6['id'];if(_0x5c83d1)return this['_setSuggestionRange'](_0x5c83d1,this['_model']['createRange'](_0x4788dc,_0x4ffc52)),_0x5c83d1;{const _0xb25054=this['_setSuggestionData']({'id':_0x4ed072,'type':'formatBlock:'+_0x47c94f,'data':_0x4ea3fb,'createdAt':new Date(),'authorId':_0x462977,'attributes':_0x5e9d49});return this['_addSuggestionMarker']('formatBlock:'+_0x47c94f,_0x4ed072,_0x462977,this['_model']['createRange'](_0x4788dc,_0x4ffc52)),_0xb25054;}}['markMultiRangeBlockFormat'](_0x53fb59,_0x55c92f,_0x421f4c=[],_0x3e3525=null,_0x33e485={}){_0x55c92f['formatGroupId']||(_0x55c92f['formatGroupId']=_0x55c92f['commandName']);const _0x2a5fc6=_0x53fb59[0x0];_0x55c92f['multipleBlocks']=_0x2a5fc6['is']('range'),_0x3e3525=_0x3e3525||Ut(_0x55c92f);const _0x365abb=_0x421f4c['map'](_0x31b6c2=>Ft(_0x31b6c2,this['_model'])),_0x248a33=_0x2a5fc6['is']('range')?_0x53fb59:_0x53fb59['map'](_0x556bde=>Ft(_0x556bde,this['_model']));if('never'===this['_trackFormatChanges']){const _0xa63879=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e3525,'accept');return this['forceDefaultExecution'](()=>_0xa63879(_0x248a33,_0x55c92f,_0x33e485)),null;}_0x365abb['push'](..._0x248a33);let _0x3e49e0=!0x0;for(const _0x408dc1 of _0x365abb)if(!this['_rangeIsInLocalUserInsertion'](_0x408dc1)){_0x3e49e0=!0x1;break;}if(_0x3e49e0&&'always'!==this['_trackFormatChanges']){const _0xdd366=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e3525,'accept');return this['forceDefaultExecution'](()=>_0xdd366(_0x248a33,_0x55c92f,_0x33e485)),null;}const _0x3764ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x34503e of this['getSuggestions']()){if(_0x34503e['author']['id']!=_0x3764ee['id'])continue;if('formatBlock'!=_0x34503e['type']||_0x34503e['data']['formatGroupId']!=_0x55c92f['formatGroupId'])continue;if(!Ht(_0x34503e,_0x33e485))continue;const _0x2e5cc6=_0x34503e['subType']==_0x3e3525;for(let _0x36947a=0x0;_0x36947a<_0x248a33['length'];_0x36947a++){const _0x56c352=_0x248a33[_0x36947a];for(const _0x411ea6 of _0x34503e['getMarkers']()){const _0x1aa231=_0x411ea6['getRange']();if(_0x56c352['isEqual'](_0x1aa231)){_0x2e5cc6?(_0x248a33['splice'](_0x36947a,0x1),_0x36947a--):_0x34503e['removeMarker'](_0x411ea6['name']);break;}}}}if(0x0==_0x248a33['length'])return null;const _0x238b4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e3525,'join');for(const _0xd5adac of this['getSuggestions']())if(_0xd5adac['author']['id']==_0x3764ee['id']&&'formatBlock'==_0xd5adac['type']&&_0xd5adac['data']['formatGroupId']==_0x55c92f['formatGroupId']&&_0xd5adac['subType']==_0x3e3525&&Ht(_0xd5adac,_0x33e485)&&(_0x238b4a(_0xd5adac['getRanges'](),_0x248a33)||_0x238b4a(_0x248a33,_0xd5adac['getRanges']()))){for(const _0xe3cb91 of _0x248a33)_0xd5adac['addRange'](_0xe3cb91);return _0xd5adac;}const _0x53f83c=_0x2905f1(),_0x4ee47c=_0x3764ee['id'],_0x636611='formatBlock:'+_0x3e3525,_0x2cabce=this['_setSuggestionData']({'id':_0x53f83c,'type':_0x636611,'data':_0x55c92f,'createdAt':new Date(),'authorId':_0x4ee47c,'attributes':_0x33e485});for(const _0x37ba25 of _0x248a33)this['_addSuggestionMarker'](_0x636611,_0x53f83c,_0x4ee47c,_0x37ba25,u['getMultiRangeId']());return _0x2cabce;}['markDeletion'](_0x2aec30,_0x10adc5=null,_0x8ccc92={}){if(_0x2aec30['isCollapsed'])return null;const _0x4e33be=this['editor']['plugins']['get']('Users')['me'],_0x37cf72=new _0x5df64f(_0x2aec30['start'],_0x2aec30['end']);for(const {suggestion:_0x40a5a0,meta:_0x82782c}of this['_findSuggestions'](_0x37cf72,'insertion'))if(_0x82782c['isOwn']&&!_0x82782c['isNextTo']){if(_0x40a5a0['isMultiRange']){const _0x428fe9=_0x40a5a0['getRanges']()['filter'](_0x26a6cb=>'$graveyard'!=_0x26a6cb['root']['rootName']);_0x428fe9['every'](_0x33d534=>_0x37cf72['containsRange'](_0x33d534,!0x0))&&_0x40a5a0['discard']();if(_0x428fe9['some'](_0x193052=>_0x193052['containsRange'](_0x37cf72,!0x0))){const _0x12f89f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10adc5,'accept');return this['forceDefaultExecution'](()=>_0x12f89f([_0x37cf72],null,_0x8ccc92)),null;}}else{const _0x4929a5=_0x37cf72['getIntersection'](_0x40a5a0['getFirstRange']());null!==_0x4929a5&&_0x40a5a0['_onDiscard']([_0x4929a5],null,_0x8ccc92);}}if(_0x37cf72['detach'](),_0x37cf72['isCollapsed']||'$graveyard'==_0x37cf72['root']['rootName'])return null;let _0x4948c7=null,_0x87d1e=_0x37cf72['start'],_0x5aab6e=_0x37cf72['end'];const _0x1c4478=this['_findSuggestions'](_0x37cf72,'deletion');for(const {suggestion:_0x11fb0b,meta:_0x50279b}of _0x1c4478){const _0x3e8dae=this['_model']['createRange'](_0x87d1e,_0x5aab6e);if(_0x50279b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x50279b['containsRangeInObject']&&!_0x50279b['isInsideObject'])){if(_0x11fb0b['isMultiRange']){if(!Ht(_0x11fb0b,_0x8ccc92))continue;let _0x1d052c=!0x0;for(const _0x56b8fd of _0x11fb0b['getRanges']()){if(_0x56b8fd['containsRange'](_0x3e8dae,!0x0))return _0x11fb0b;_0x3e8dae['containsRange'](_0x56b8fd)||(_0x1d052c=!0x1);}_0x1d052c&&_0x11fb0b['discard']();}else{const _0x1bcce4=_0x11fb0b['getFirstRange']();if(_0x1bcce4['containsRange'](_0x3e8dae,!0x0))return _0x11fb0b;if(!Ht(_0x11fb0b,_0x8ccc92)){_0x3e8dae['containsRange'](_0x1bcce4)?_0x11fb0b['removeMarkers']():_0x1bcce4['containsPosition'](_0x87d1e)?_0x87d1e=_0x1bcce4['end']:_0x1bcce4['containsPosition'](_0x5aab6e)&&(_0x5aab6e=_0x1bcce4['start']);continue;}_0x87d1e=_0x87d1e['isBefore'](_0x1bcce4['start'])?_0x87d1e:_0x1bcce4['start'],_0x5aab6e=_0x5aab6e['isAfter'](_0x1bcce4['end'])?_0x5aab6e:_0x1bcce4['end'],_0x8ccc92=Object['assign']({},_0x11fb0b['attributes']),_0x4948c7?_0x1bcce4['start']['isBefore'](_0x4948c7['getFirstRange']()['start'])?(_0x4948c7['removeMarkers'](),_0x4948c7=_0x11fb0b):_0x11fb0b['removeMarkers']():_0x4948c7=_0x11fb0b;}}}if(_0x4948c7)return this['_setSuggestionRange'](_0x4948c7,this['_model']['createRange'](_0x87d1e,_0x5aab6e)),_0x4948c7;{const _0xbde0d=_0x2905f1(),_0x19af34=this['_model']['createRange'](_0x87d1e,_0x5aab6e),_0x37d771=_0x4e33be['id'],_0xb68980=_0x10adc5?'deletion:'+_0x10adc5:'deletion',_0x2dd5a8=this['_setSuggestionData']({'id':_0xbde0d,'type':_0xb68980,'createdAt':new Date(),'authorId':_0x37d771,'attributes':_0x8ccc92});return this['_addSuggestionMarker'](_0xb68980,_0xbde0d,_0x37d771,_0x19af34),_0x2dd5a8;}}['markMultiRangeDeletion'](_0x226cc2,_0x5ccd0a='multi',_0x3c2ccb={}){const _0x5902be=this['editor']['plugins']['get']('Users')['me'],_0x1e3802=_0x226cc2['map'](_0x44a13e=>new _0x5df64f(_0x44a13e['start'],_0x44a13e['end'])),_0x1047de=new Set();for(const {suggestion:_0x13d9a6,meta:_0x1f36c7}of this['_findSuggestions'](_0x1e3802,'insertion'))_0x1f36c7['isOwn']&&!_0x1f36c7['isNextTo']&&_0x1047de['add'](_0x13d9a6);for(const _0x1ff861 of _0x1047de)if(_0x1ff861['isMultiRange']){const _0x3cb0a8=_0x1ff861['getRanges']();(!_0x1ff861['attributes']||!_0x1ff861['attributes']['skipNestingCheck'])&&(_0x3cb0a8['every'](_0x5322d0=>_0x1e3802['some'](_0x4f6ffd=>_0x4f6ffd['containsRange'](_0x5322d0,!0x0)))&&_0x1ff861['discard']());if(_0x1e3802['every'](_0xc478fb=>_0x3cb0a8['some'](_0x17d05d=>_0x17d05d['containsRange'](_0xc478fb,!0x0)))){const _0x5b7bdb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ccd0a,'accept');return this['forceDefaultExecution'](()=>_0x5b7bdb(_0x226cc2,null,_0x3c2ccb)),null;}}else{const _0x2a8c8d=_0x1ff861['getFirstRange']();_0x1e3802['some'](_0x2ffd30=>_0x2ffd30['containsRange'](_0x2a8c8d,!0x0))&&_0x1ff861['discard']();if(_0x1e3802['every'](_0x19b006=>_0x2a8c8d['containsRange'](_0x19b006,!0x0))){const _0x1566ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ccd0a,'accept');return this['forceDefaultExecution'](()=>_0x1566ca(_0x1e3802,null,_0x3c2ccb)),null;}}const _0xd3d23c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ccd0a,'join');let _0x168f5f=null;for(const _0x566f79 of this['getSuggestions']())if(_0x566f79['author']['id']==_0x5902be['id']&&_0x566f79['isInContent']&&'deletion'==_0x566f79['type']&&_0x566f79['subType']==_0x5ccd0a&&Ht(_0x566f79,_0x3c2ccb)&&(_0xd3d23c(_0x566f79['getRanges'](),_0x1e3802)||_0xd3d23c(_0x1e3802,_0x566f79['getRanges']()))){if(_0x168f5f){if(_0x566f79['commentThread']&&_0x566f79['commentThread']['length'])continue;for(const _0x3d6eea of _0x566f79['getRanges']())_0x168f5f['isIntersectingWithRange'](_0x3d6eea)||_0x168f5f['addRange'](_0x3d6eea);_0x566f79['removeMarkers']();}else{_0x168f5f=_0x566f79;for(const _0x9aae3c of _0x1e3802)_0x566f79['isIntersectingWithRange'](_0x9aae3c)||_0x566f79['addRange'](_0x9aae3c);}}if(_0x168f5f)return _0x168f5f;_0x1047de['clear']();for(const {suggestion:_0x50cd8c,meta:_0x55c6f0}of this['_findSuggestions'](_0x1e3802,'deletion'))_0x55c6f0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x55c6f0['containsRangeInObject']&&!_0x55c6f0['isInsideObject'])&&Ht(_0x50cd8c,_0x3c2ccb)&&_0x1047de['add'](_0x50cd8c);for(const _0x432b85 of _0x1047de){const _0x5e482c=_0x432b85['getRanges']();if(!_0x3c2ccb||!_0x3c2ccb['skipNestingCheck']){if(_0x1e3802['every'](_0x1e8c53=>_0x5e482c['some'](_0x10e67b=>_0x10e67b['containsRange'](_0x1e8c53,!0x0))))return _0x432b85;}(!_0x432b85['attributes']||!_0x432b85['attributes']['skipNestingCheck'])&&(_0x5e482c['every'](_0x4c2dcc=>_0x1e3802['some'](_0x19d47c=>_0x19d47c['containsRange'](_0x4c2dcc,!0x0)))&&_0x432b85['discard']());}const _0x2911d5=_0x2905f1(),_0x3fc3a7=_0x5902be['id'],_0x42f164='deletion:'+_0x5ccd0a,_0x47f949=this['_setSuggestionData']({'id':_0x2911d5,'type':_0x42f164,'createdAt':new Date(),'authorId':_0x3fc3a7,'attributes':_0x3c2ccb});for(const _0xefab5e of _0x1e3802)_0xefab5e['detach'](),_0xefab5e['isCollapsed']||'$graveyard'==_0xefab5e['root']['rootName']||this['_addSuggestionMarker'](_0x42f164,_0x2911d5,_0x3fc3a7,_0xefab5e,u['getMultiRangeId']());return _0x47f949;}['markAttributeChange'](_0x43c54b,_0x9f4d65,_0x5e77ab,_0x134079,_0x9ef6b2){if(_0x43c54b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x32c0f3=this['editor']['plugins']['get']('Users')['me']['id'],_0x309403=Array['from'](this['_suggestions']['values']())['filter'](_0xe1b462=>'attribute'==_0xe1b462['type']&&_0xe1b462['data']['key']==_0x9f4d65&&_0xe1b462['isIntersectingWithRange'](_0x43c54b));if('default'===this['_trackFormatChanges']){const _0x16a683=this['_findSuggestions'](_0x43c54b,'insertion')['filter'](({meta:_0x36186a})=>_0x36186a['isOwn']&&!_0x36186a['isInsideObject']&&!_0x36186a['isNextTo'])['map'](({suggestion:_0x58d93b})=>_0x58d93b);_0x309403['unshift'](..._0x16a683);}const _0x1ee6ab=new Map([[_0x43c54b,_0x5e77ab]]);for(const _0x3792e1 of _0x309403){const _0x4c4d0c='attribute'==_0x3792e1['type']?_0x3792e1['data']['oldValue']:void 0x0,_0x52ece7=_0x3792e1['getFirstRange'](),_0x107606=Array['from'](_0x1ee6ab['keys']())['find'](_0x293823=>_0x293823['isIntersecting'](_0x52ece7));if(!_0x107606)continue;const _0x885f4=_0x107606['getDifference'](_0x52ece7);this['_isBlockAttribute'](_0x9f4d65)&&'insertion'==_0x3792e1['type']&&0x0!=_0x885f4['length']||(_0x1ee6ab['delete'](_0x107606),_0x885f4['forEach'](_0x109e20=>{_0x1ee6ab['set'](_0x109e20,_0x5e77ab);}),'insertion'!=_0x3792e1['type']&&_0x4c4d0c!=_0x134079&&_0x1ee6ab['set'](_0x107606['getIntersection'](_0x52ece7),_0x4c4d0c));}const _0x2c0e28=[];for(const [_0x540e8f,_0x4ca086]of _0x1ee6ab){const _0x3af76c=_0x2905f1(),_0x29d246={'key':_0x9f4d65,'oldValue':_0x4ca086,'newValue':_0x134079};_0x9f4d65['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x9f4d65});const _0x13eab7=('attribute:'+(_0x9f4d65+'|'+Ut({'newValue':_0x134079})))['substring'](0x0,0x3c),_0x36bfb3=this['_setSuggestionData']({'id':_0x3af76c,'type':_0x13eab7,'data':_0x29d246,'createdAt':new Date(),'authorId':_0x32c0f3,'attributes':_0x9ef6b2});_0x2c0e28['push'](_0x36bfb3),this['_addSuggestionMarker'](_0x13eab7,_0x3af76c,_0x32c0f3,_0x540e8f);}return _0x2c0e28;}['enableDefaultAttributesIntegration'](_0x5b465f){this['enableCommand'](_0x5b465f,(_0x444dab,..._0xe0ca12)=>{this['_recordAttributeChanges'](()=>{_0x444dab(..._0xe0ca12);});});}['registerBlockAttribute'](_0x50014f){this['_blockAttributeKeys']['add'](_0x50014f);}['registerInlineAttribute'](_0x49d5de){this['_inlineAttributeKeys']['add'](_0x49d5de);}['_getAttributeKey'](_0x21ac8a){return'attribute'==_0x21ac8a['type']?_0x21ac8a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x402f6b,_0x1a7544){const _0x375b6b=_0x402f6b['getFirstMarker']();this['_model']['change'](_0x2f1094=>{_0x2f1094['updateMarker'](_0x375b6b,{'range':_0x1a7544});});}['_addThreadToSuggestion'](_0x40e3d7){const _0x59fb05=_0x40e3d7['id'],_0x349672=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x59fb05)||this['_commentsRepository']['addCommentThread']({'channelId':_0x349672,'threadId':_0x59fb05,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x37cc6f=this['_commentsRepository']['getCommentThread'](_0x59fb05);_0x37cc6f['unbind']('isRemovable'),_0x37cc6f['isRemovable']=!0x1,_0x40e3d7['commentThread']=_0x37cc6f;}['_checkSuggestionCorrectness'](_0x141dcf,_0x33519,_0x28997a,_0x5565ba){if(_0x141dcf['type']!=_0x33519||_0x141dcf['subType']!=_0x28997a||_0x141dcf['creator']['id']!=_0x5565ba)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x14dd54('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x374737,_0x3ca1ad){const _0x3bbcac=_0x374737['getFirstRange']();if(_0x3ca1ad['isEqual'](_0x3bbcac))_0x374737['removeMarkers']();else{if(_0x3bbcac['containsRange'](_0x3ca1ad)){const _0x4de6a1=this['_model']['createPositionAt'](_0x3ca1ad['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x374737,this['_model']['createRange'](_0x3bbcac['start'],_0x4de6a1));const _0x33c87e=_0x2905f1(),_0xe2673d=_0x374737['creator']['id'],_0x3965d6=_0x374737['type']+':'+_0x374737['subType'];this['_setSuggestionData']({'id':_0x33c87e,'type':_0x3965d6,'createdAt':new Date(),'authorId':_0xe2673d,'data':_0x374737['data'],'attributes':_0x374737['attributes']});const _0x1edc54=this['_model']['createPositionAt'](_0x3ca1ad['end']['parent'],'after'),_0x1b5785=this['_model']['createRange'](_0x1edc54,_0x3bbcac['end']);this['_addSuggestionMarker'](_0x3965d6,_0x33c87e,_0xe2673d,_0x1b5785);}else{if(_0x3bbcac['containsPosition'](_0x3ca1ad['start'])){const _0x3206fa=this['_model']['createPositionAt'](_0x3ca1ad['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x374737,this['_model']['createRange'](_0x3bbcac['start'],_0x3206fa));}else{const _0x161eae=this['_model']['createPositionAt'](_0x3ca1ad['end']['parent'],'after');this['_setSuggestionRange'](_0x374737,this['_model']['createRange'](_0x161eae,_0x3bbcac['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x49d69f){for(const {suggestion:_0x109bba,meta:_0x1560c6}of this['_findSuggestions'](_0x49d69f,'insertion')){if(!_0x1560c6['isOwn'])continue;const _0x1eb5db=_0x109bba['getRanges']();for(const _0x2c14ca of _0x1eb5db)if(!_0x49d69f['getDifference'](_0x2c14ca)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x403548){const _0x2f4b5f=this['editor']['plugins']['get']('Users')['getUser'](_0x403548);if(!_0x2f4b5f)throw new _0x14dd54('track-changes-user-not-found',this);return _0x2f4b5f;}['_getExternalAuthor'](_0x12cbef){const _0x487cdf=this['editor']['plugins']['get']('Users'),_0x10066c=_0xd7b463('external:'+_0x12cbef),_0x3db30e=_0x487cdf['getUser'](_0x10066c);return _0x3db30e||_0x487cdf['addUser']({'id':_0x10066c,'name':_0x12cbef});}['_createSuggestion'](_0xc696a,_0x1e943f,_0x1d36d6,_0x690097,_0x2b4b72){const _0x79627c=this['_getAuthorFromId'](_0x690097),_0x115478=this['_suggestionFactory']['buildSuggestion'](_0xc696a,_0x1e943f,_0x1d36d6,_0x79627c,_0x2b4b72,_0x5202e3=>{this['_updateSuggestionData'](_0x1d36d6,{'attributes':_0x5202e3});const _0x412185=this['getSuggestion'](_0x1d36d6);this['_joinWithAdjacentSuggestions'](new Set([_0x412185])),this['_refreshSuggestionsChain'](new Set([_0x412185]));});return this['listenTo'](_0x115478,'accept',()=>{this['_updateSuggestionData'](_0x1d36d6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x115478,'discard',()=>{this['_updateSuggestionData'](_0x1d36d6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d36d6,_0x115478),this['_suggestionState']['set'](_0x115478,'notReady'),_0x115478;}['_splitMarkerName'](_0x35e87b){const _0x5b7916=_0x35e87b['split'](':');return{'group':_0x5b7916[0x0],'type':_0x5b7916[0x1],'subType':_0x5b7916['length']>=0x5?_0x5b7916[0x2]:null,'id':_0x5b7916['length']<0x5?_0x5b7916[0x2]:_0x5b7916[0x3],'authorId':_0x5b7916['length']<0x5?_0x5b7916[0x3]:_0x5b7916[0x4],'markerCount':0x6==_0x5b7916['length']?_0x5b7916[0x5]:null};}['_breakSuggestionMarker'](_0x15ad79,_0x1edbab,_0x25f940){const _0xf0cdbc=_0x15ad79['getFirstRange'](),_0x5e5b26=_0xf0cdbc['start'],_0x4efb14=_0xf0cdbc['end'];this['_setSuggestionRange'](_0x15ad79,this['_model']['createRange'](_0x5e5b26,_0x1edbab));const _0x1cd9c2=_0x2905f1(),_0xd28f9c=_0x15ad79['creator']['id'],_0x1352ab=_0x15ad79['type']+(_0x15ad79['subType']?':'+_0x15ad79['subType']:'');this['_setSuggestionData']({'id':_0x1cd9c2,'type':_0x1352ab,'createdAt':new Date(),'authorId':_0xd28f9c,'originalSuggestionId':_0x15ad79['id'],'attributes':_0x15ad79['attributes'],'data':_0x15ad79['data']});const _0xe53767=this['_getAttributeKey'](_0x15ad79);('formatBlock'==_0x15ad79['type']||_0xe53767&&this['_isBlockAttribute'](_0xe53767))&&(_0x25f940=this['_model']['createPositionBefore'](_0x25f940['parent'])),this['_addSuggestionMarker'](_0x1352ab,_0x1cd9c2,_0xd28f9c,this['_model']['createRange'](_0x25f940,_0x4efb14));}['_findSuggestions'](_0x3d189e,_0x333ddc=null){const _0x26b10f=[],_0x492af3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3d189e)||(_0x3d189e=[_0x3d189e]);for(const _0x2fcdef of this['getSuggestions']()){if(!_0x2fcdef['isInContent'])continue;if(_0x333ddc&&_0x2fcdef['type']!=_0x333ddc)continue;let _0x2263c9=!0x1;for(const _0x67b288 of _0x2fcdef['getRanges']()){for(const _0x4c321f of _0x3d189e){const _0x38cacf=_0x4c321f['start']['isEqual'](_0x67b288['end'])||_0x4c321f['end']['isEqual'](_0x67b288['start']);if(_0x38cacf||_0x4c321f['getIntersection'](_0x67b288)){const _0x26e27d=_0x4c321f['containsRange'](_0x67b288)&&Tt(this['_model']['schema'],_0x67b288['start'],_0x4c321f),_0x2e54ca=_0x67b288['containsRange'](_0x4c321f)&&Tt(this['_model']['schema'],_0x4c321f['start'],_0x67b288);_0x26b10f['push']({'suggestion':_0x2fcdef,'meta':{'isOwn':_0x492af3==_0x2fcdef['author'],'isNextTo':_0x38cacf,'isInsideObject':_0x26e27d,'containsRangeInObject':_0x2e54ca}}),_0x2263c9=!0x0;break;}}if(_0x2263c9)break;}}return _0x26b10f;}['_addSuggestionMarker'](_0x1cb448,_0x5a4146,_0x13dc25,_0x50d8df,_0x478c30){this['_model']['change'](_0x33bbb5=>{let _0x1535ba='suggestion:'+_0x1cb448+':'+_0x5a4146+':'+_0x13dc25;_0x478c30&&(_0x1535ba=_0x1535ba+':'+_0x478c30),_0x33bbb5['addMarker'](_0x1535ba,{'range':_0x50d8df,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xbf5e37){const _0x4894a1=_0xbf5e37['previous'],_0x58781f=_0xbf5e37['next'];_0xbf5e37['previous']=null,_0xbf5e37['next']=null,null!=_0x4894a1&&_0x4894a1['next']==_0xbf5e37&&(_0x4894a1['next']=_0x58781f),null!=_0x58781f&&_0x58781f['previous']==_0xbf5e37&&(_0x58781f['previous']=_0x4894a1),'ready'==this['_suggestionState']['get'](_0xbf5e37)&&(this['_suggestionState']['set'](_0xbf5e37,'removed'),this['fire']('suggestionUnloaded',_0xbf5e37,_0x4894a1,_0x58781f));}['_setSuggestionData'](_0x434804){const _0x3fce32=_0x434804['id'],_0x3b60ef=this['addSuggestionData'](_0x434804);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x42a913=this['editor']['plugins']['get']('PendingActions'),_0xbe6214=_0x3b60ef['hasComments'],_0x1590b3=_0x3b60ef['subType']?_0x3b60ef['type']+':'+_0x3b60ef['subType']:_0x3b60ef['type'],_0x3d0bce=this['editor']['locale'],_0x3f2473=_0x42a913['add'](o(_0x3d0bce,'PENDING_ACTION_SUGGESTION')),_0x23f3f8={'id':_0x3fce32,'type':_0x1590b3,'hasComments':_0xbe6214,'data':_0x434804['data']||null,'originalSuggestionId':_0x434804['originalSuggestionId']||null,'attributes':_0x3b60ef['attributes']};this['_adapter']['addSuggestion'](_0x23f3f8)['then'](_0x134532=>{_0x3b60ef['_saved']=!0x0,_0x42a913['remove'](_0x3f2473),_0x134532&&_0x134532['createdAt']&&(this['_suggestions']['get'](_0x3fce32)['createdAt']=_0x134532['createdAt']);})['catch'](_0x3990f9=>{throw _0x5d5e63('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b60ef['discard']();}),_0x3b60ef['stopListening'](),this['_suggestions']['delete'](_0x3b60ef['id']),this['_suggestionState']['delete'](_0x3b60ef),_0x3990f9;});}return _0x3b60ef;}['_isBlockAttribute'](_0x4ae983){return this['_blockAttributeKeys']['has'](_0x4ae983);}['_updateSuggestionData'](_0x4dedd0,_0xc973d){const _0x126081=this['editor']['plugins']['get']('PendingActions'),_0x5d9f86=this['getSuggestion'](_0x4dedd0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5d9f86['_saved']){const _0x436cdb=_0x126081['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4dedd0,_0xc973d)['then'](()=>{_0x126081['remove'](_0x436cdb);});}else _0x5d9f86['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4dedd0,_0xc973d);});}}['_getSuggestionData'](_0x574371){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x14dd54('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x574371);}['_handleNewSuggestionMarker'](_0x245dd3){const {id:_0x47d6c6,type:_0x634e73,subType:_0x2d6216,authorId:_0x30bd81}=this['_splitMarkerName'](_0x245dd3),_0x427038=this['_suggestions']['get'](_0x47d6c6)||this['_createSuggestion'](_0x634e73,_0x2d6216,_0x47d6c6,_0x30bd81,{});switch(this['_checkSuggestionCorrectness'](_0x427038,_0x634e73,_0x2d6216,_0x30bd81),this['_suggestionState']['get'](_0x427038)){case'notReady':this['_getSuggestionData'](_0x47d6c6)['then'](_0x225624=>{let _0x2fbcc3=Promise['resolve']();_0x225624['hasComments']&&(_0x2fbcc3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x47d6c6})),_0x2fbcc3['then'](()=>{this['addSuggestionData'](_0x225624)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x427038,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x47d6c6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x427038,'ready'),this['fire']('suggestionLoaded',_0x427038);break;case'ready':this['fire']('suggestionChanged',_0x427038);}return _0x427038['addMarkerName'](_0x245dd3),_0x427038;}['_refreshSuggestionsChain'](_0x36f810){const _0x4bc1fb=Array['from'](_0x36f810),_0x2f6f7f=_0x4bc1fb['filter'](_0x28224d=>'attribute'==_0x28224d['type']);this['_refreshAttributeSuggestionsChain'](_0x2f6f7f);const _0x13ee93=_0x4bc1fb['filter'](_0x20a15b=>!_0x20a15b['isMultiRange']&&'attribute'!=_0x20a15b['type']),_0x1cca72=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x122c5d=>!_0x122c5d['isMultiRange']&&'attribute'!=_0x122c5d['type']),_0x2549d9=_0x1cca72['filter'](_0x4ffd31=>!_0x36f810['has'](_0x4ffd31)),_0x36a8aa=new Map(_0x1cca72['map'](_0x1670b8=>[_0x1670b8,this['_suggestionFactory']['getSuggestionCallback'](_0x1670b8['type'],_0x1670b8['subType'],'chain')])),_0x4c5020=new Map(_0x1cca72['map'](_0x54154d=>[_0x54154d,_0x54154d['getFirstRange']()])),_0x335341=new Set(),_0x2f42c7=new Set();for(let _0x2efea8=0x0;_0x2efea8<_0x13ee93['length'];_0x2efea8++)_0x57dca3(_0x13ee93[_0x2efea8],_0x13ee93,_0x2efea8+0x1);for(let _0x2dd0ab=0x0;_0x2dd0ab<_0x13ee93['length'];_0x2dd0ab++)_0x57dca3(_0x13ee93[_0x2dd0ab],_0x2549d9,0x0);const _0x4297e3=new Set();for(let _0x1b5c61=0x0;_0x1b5c61<_0x13ee93['length'];_0x1b5c61++){const _0x511a2e=_0x13ee93[_0x1b5c61];!_0x2f42c7['has'](_0x511a2e)&&_0x511a2e['previous']&&(_0x4297e3['add'](_0x511a2e['previous']),_0x511a2e['previous']['next']===_0x511a2e&&(_0x511a2e['previous']['next']=null),_0x511a2e['previous']=null),!_0x335341['has'](_0x511a2e)&&_0x511a2e['next']&&(_0x4297e3['add'](_0x511a2e['next']),_0x511a2e['next']['previous']===_0x511a2e&&(_0x511a2e['next']['previous']=null),_0x511a2e['next']=null);}function _0x57dca3(_0x45433b,_0x2f848c,_0x1e2125){for(let _0x1e2682=_0x1e2125;_0x1e2682<_0x2f848c['length'];_0x1e2682++){const _0x58027f=_0x56a6e7(_0x45433b,_0x2f848c[_0x1e2682]);_0x58027f&&(_0x58027f[0x0]['next']=_0x58027f[0x1],_0x58027f[0x1]['previous']=_0x58027f[0x0],_0x335341['add'](_0x58027f[0x0]),_0x2f42c7['add'](_0x58027f[0x1]));}}function _0x56a6e7(_0x176c5a,_0x12c6c4){if(_0x176c5a['author']['id']!==_0x12c6c4['author']['id'])return null;const _0x2a9e5e=_0x36a8aa['get'](_0x176c5a)(_0x176c5a,_0x12c6c4,_0x4c5020['get'](_0x176c5a),_0x4c5020['get'](_0x12c6c4));if(!_0x2a9e5e)return null;return _0x36a8aa['get'](_0x12c6c4)(_0x176c5a,_0x12c6c4,_0x4c5020['get'](_0x176c5a),_0x4c5020['get'](_0x12c6c4))?_0x2a9e5e[0x1]['commentThread']&&_0x2a9e5e[0x1]['commentThread']['length']?null:_0x2a9e5e:null;}_0x4297e3['size']&&this['_refreshSuggestionsChain'](_0x4297e3);}['_refreshAttributeSuggestionsChain'](_0x1b73a9){if(0x0==_0x1b73a9['length'])return;const _0x270e3c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28603b=>'attribute'==_0x28603b['type']&&_0x28603b['_isDataLoaded']),_0x3ef4d4=[],_0x31130d=new Map();for(const _0x5441a9 of _0x270e3c){const _0x1663a7=_0xd7b463(_0x5441a9['attributes']);_0x31130d['has'](_0x1663a7)||(_0x31130d['set'](_0x1663a7,_0x3ef4d4['length']),_0x3ef4d4['push']([]));const _0x1da51d=_0x31130d['get'](_0x1663a7);_0x3ef4d4[_0x1da51d]['push'](_0x5441a9);}!(function(){_0x3ef4d4['sort']((_0x2cdd7d,_0x277edf)=>{const _0x46fe5a=_0x2cdd7d[0x0]['createdAt'],_0x2b51ed=_0x277edf[0x0]['createdAt'];return _0x46fe5a==_0x2b51ed?_0x2cdd7d[0x0]['attributes']['groupId']<_0x277edf[0x0]['attributes']['groupId']?-0x1:0x1:_0x46fe5a<_0x2b51ed?-0x1:0x1;});for(const _0x56b198 of _0x3ef4d4)_0x56b198['sort']((_0x258f2f,_0x23a516)=>_0x258f2f['id']<_0x23a516['id']?-0x1:0x1);}());for(let _0x17f123=0x0;_0x17f123<_0x3ef4d4['length'];_0x17f123++){if(0x0==_0x3ef4d4[_0x17f123]['length'])continue;const _0x517456=[];for(let _0x3b8603=_0x17f123+0x1;_0x3b8603<_0x3ef4d4['length'];_0x3b8603++)0x0!=_0x3ef4d4[_0x3b8603]['length']&&_0x182672(_0x3ef4d4[_0x17f123],_0x3ef4d4[_0x3b8603])&&_0x517456['push'](_0x3b8603);for(const _0xe722ad of _0x517456)_0x3ef4d4[_0x17f123]=_0x3ef4d4[_0x17f123]['concat'](_0x3ef4d4[_0xe722ad]),_0x3ef4d4[_0xe722ad]=[];}for(const _0x2f05cd of _0x3ef4d4)for(let _0xc1169d=0x0;_0xc1169d<_0x2f05cd['length'];_0xc1169d++)_0x2f05cd[_0xc1169d]['next']=_0x2f05cd[_0xc1169d+0x1]||null;for(const _0x42f4fb of _0x3ef4d4)for(let _0x293958=0x0;_0x293958<_0x42f4fb['length'];_0x293958++)_0x42f4fb[_0x293958]['previous']=_0x42f4fb[_0x293958-0x1]||null;function _0x182672(_0x31389a,_0x464840){if(_0x31389a[0x0]['attributes']['groupId']!==_0x464840[0x0]['attributes']['groupId']&&_0x31389a[0x0]['author']!==_0x464840[0x0]['author'])return!0x1;if(!function(_0x24ec77,_0x1c4e19){if(!_0x24ec77['hasComments']&&!_0x1c4e19['hasComments'])return!0x0;if(_0x24ec77['hasComments']&&_0x1c4e19['hasComments'])return!0x1;if(_0x24ec77['hasComments']&&_0x1c4e19['createdAt']<_0x24ec77['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c4e19['hasComments']&&_0x24ec77['createdAt']<_0x1c4e19['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x31389a[0x0],_0x464840[0x0]))return!0x1;const _0x54447a=xt(_0x31389a[0x0]['attributes'],'groupId'),_0x36540a=xt(_0x464840[0x0]['attributes'],'groupId');if(!_0x718abf(_0x54447a,_0x36540a))return!0x1;return!!_0x31389a['every'](_0x2aff0e=>_0x464840['some'](_0x98b397=>_0x2aff0e['getFirstRange']()['isEqual'](_0x98b397['getFirstRange']())))&&_0x464840['every'](_0x5acce4=>_0x31389a['some'](_0x1a94fb=>_0x5acce4['getFirstRange']()['isEqual'](_0x1a94fb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x117f49){const _0x168480=Array['from'](_0x117f49),_0x197b97=this['getSuggestions']({'skipNotAttached':!0x0}),_0x27321f=_0x197b97['filter'](_0x4d3b90=>!_0x117f49['has'](_0x4d3b90)),_0x17dc55=new Map(_0x168480['map'](_0x4adc67=>[_0x4adc67,this['_suggestionFactory']['getSuggestionCallback'](_0x4adc67['type'],_0x4adc67['subType'],'join')])),_0x3d9c6c=new Map(_0x197b97['map'](_0x5e3638=>[_0x5e3638,_0x5e3638['getRanges']()]));for(let _0x55a525=0x0;_0x55a525<_0x168480['length'];_0x55a525++){if(_0x5364c8(this,_0x168480[_0x55a525],_0x168480,_0x55a525+0x1))return!0x0;}for(let _0x3c78f3=0x0;_0x3c78f3<_0x168480['length'];_0x3c78f3++){if(_0x5364c8(this,_0x168480[_0x3c78f3],_0x27321f,0x0))return!0x0;}return!0x1;function _0x5364c8(_0x19c52b,_0x30e276,_0x2257fd,_0x3a5188){for(let _0x4e14ca=_0x3a5188;_0x4e14ca<_0x2257fd['length'];_0x4e14ca++){const _0x482b2b=_0x2257fd[_0x4e14ca];if(_0x482b2b['type']!==_0x30e276['type']||_0x482b2b['author']['id']!==_0x30e276['author']['id']||_0x482b2b['subType']!==_0x30e276['subType'])continue;if(!Lt(_0x30e276,_0x482b2b,['groupId']))continue;if('attribute'==_0x30e276['type']&&_0x30e276['data']['oldValue']!=_0x482b2b['data']['oldValue'])continue;if('attribute'==_0x30e276['type']&&_0x19c52b['_isBlockAttribute'](_0x30e276['data']['key']))continue;if('formatBlock'==_0x30e276['type']){const _0x4cab8c=_0x19c52b['editor']['model'],_0x356336=_0x30e276['getContainedElement']();if(_0x356336&&(_0x4cab8c['schema']['isObject'](_0x356336)||_0x4cab8c['schema']['isLimit'](_0x356336)))continue;}const _0x5ecf7c=_0x17dc55['get'](_0x30e276),_0x1e5834=_0x3d9c6c['get'](_0x30e276),_0x17dcd9=_0x3d9c6c['get'](_0x482b2b),_0x88052=_0x30e276['commentThread']&&_0x30e276['commentThread']['length'],_0x5d9251=_0x482b2b['commentThread']&&_0x482b2b['commentThread']['length'];if(!_0x88052&&_0x5ecf7c(_0x17dcd9,_0x1e5834))return _0x19c52b['_joinSuggestions'](_0x482b2b,_0x30e276),_0x3d9c6c['delete'](_0x30e276),!0x0;if(!_0x5d9251&&_0x5ecf7c(_0x1e5834,_0x17dcd9))return _0x19c52b['_joinSuggestions'](_0x30e276,_0x482b2b),_0x3d9c6c['delete'](_0x482b2b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x515cf0,_0x15ce54){if(_0x515cf0['isMultiRange']){for(const _0x37b983 of _0x15ce54['getRanges']())_0x515cf0['addRange'](_0x37b983);}else{const _0x23ef0b=_0x15ce54['getFirstRange']()['end'];this['_setSuggestionRange'](_0x515cf0,this['_model']['createRange'](_0x515cf0['getFirstRange']()['start'],_0x23ef0b));}_0x15ce54['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4040e2,_0x3f6c59){const _0x4f0faa=_0x4040e2['startsWith']('format')||_0x4040e2['startsWith']('attribute')?'FORMATTING':_0x4040e2['toUpperCase']();return o(this['editor']['locale'],_0x3f6c59+'_'+_0x4f0faa+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4afb46=this['editor'];if(!_0x4afb46['ui'])return;const {ariaLiveAnnouncer:_0x511f72}=_0x4afb46['ui'];_0x2606e7(this['_model'],({left:_0x4183d1,entered:_0xeae28})=>{for(const _0x488438 of _0x4183d1){const {group:_0x3caef9,type:_0x66843e}=this['_splitMarkerName'](_0x488438['name']);if('suggestion'===_0x3caef9){_0x511f72['announce'](this['_getMarkerAnnouncementText'](_0x66843e,'LEAVE'));break;}}for(const _0x29d553 of _0xeae28){const {group:_0x213309,type:_0x55d3eb}=this['_splitMarkerName'](_0x29d553['name']);if('suggestion'===_0x213309){_0x511f72['announce'](this['_getMarkerAnnouncementText'](_0x55d3eb,'ENTER'));break;}}});}['_processAttributeChanges'](_0x11e1f0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f1226=this['editor'],_0x41d55e=_0x1f1226['model']['document']['differ']['getChanges']();if(0x0==_0x41d55e['length'])return!0x1;const _0x10ba34=[],_0x384dd8=_0x41d55e['filter'](_0x41c4eb=>'attribute'==_0x41c4eb['type']),_0x1ed34e=_0x41d55e['filter'](_0x2ab3c3=>'insert'==_0x2ab3c3['type']&&'$text'!=_0x2ab3c3['name']),_0x5db823=_0x41d55e['filter'](_0x50b1a9=>'remove'==_0x50b1a9['type']&&'$text'!=_0x50b1a9['name']);for(const _0x2464c1 of _0x384dd8)_0x10ba34['push']({'key':_0x2464c1['attributeKey'],'newValue':_0x2464c1['attributeNewValue'],'oldValue':_0x2464c1['attributeOldValue'],'range':Gt(_0x2464c1['range'],_0x1f1226['model'])});for(const _0x33ca23 of _0x1ed34e){const _0x56aa84=_0x5db823['find'](_0x3c122b=>_0x3c122b['position']['isEqual'](_0x33ca23['position']));_0x56aa84&&_0x10ba34['push']({'key':m,'newValue':_0x33ca23['name'],'oldValue':_0x56aa84['name'],'range':_0x1f1226['model']['createRangeOn'](_0x33ca23['position']['nodeAfter'])});}return 0x0!=_0x10ba34['length']&&this['_reduceExistingSuggestions'](_0x11e1f0,_0x10ba34);}['_processAttributeSuggestions'](_0x47b5dc){let _0x3d4cb6=!0x1;const _0x11c231=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xae3b47=>_0xae3b47['data']['newRange']&&_0xae3b47['name']['startsWith']('suggestion:attribute:'));for(const _0x21355e of _0x11c231){const {subType:_0x40127c,id:_0x23bd23}=this['_splitMarkerName'](_0x21355e['name']),_0x177a6f=_0x40127c['split']('|')[0x0];for(const _0x5eb086 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5eb086['id']!=_0x23bd23&&'attribute'==_0x5eb086['type']&&_0x5eb086['data']&&_0x5eb086['data']['key']==_0x177a6f&&_0x5eb086['getFirstRange']()['isIntersecting'](_0x21355e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5eb086,_0x21355e['data']['newRange'],_0x47b5dc),_0x3d4cb6=!0x0);}return _0x3d4cb6;}['_recordAttributeChanges'](_0x165fac){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x165fac();}['_isRegisteredAttribute'](_0x1fd2fc){const _0x30417a=this['_isBlockAttribute'](_0x1fd2fc),_0x3f6b06=this['_inlineAttributeKeys']['has'](_0x1fd2fc);return _0x30417a||_0x3f6b06;}['_reduceExistingSuggestions'](_0x190b46,_0x2b3913){if(0x0==_0x2b3913['length'])return!0x1;let _0x7fc4a7=!0x1;for(const _0x17614b of _0x2b3913){const _0x4013dd=this['_findSuggestions'](_0x17614b['range'],'attribute')['filter'](_0x5daa76=>!_0x5daa76['meta']['isNextTo'])['map'](_0x78e13b=>_0x78e13b['suggestion']),_0x129bb0=_0xd7b463({'newValue':_0x17614b['newValue']});_0x4013dd['filter'](_0x3282de=>{const [_0x1ec247,_0x1c7731]=_0x3282de['subType']['split']('|');return _0x1ec247==_0x17614b['key']&&_0x1c7731!=_0x129bb0;})['forEach'](_0x52898d=>{this['_reduceSuggestionAttributeRange'](_0x52898d,_0x17614b['range'],_0x190b46),_0x7fc4a7=!0x0;});}return _0x7fc4a7;}['_reduceSuggestionAttributeRange'](_0x1d9b6a,_0x5e74d8,_0x47f226){const _0x5c9c11=_0x1d9b6a['getFirstRange']()['getDifference'](_0x5e74d8);0x0!==_0x5c9c11['length']?0x1!==_0x5c9c11['length']?this['_breakSuggestionMarker'](_0x1d9b6a,_0x5e74d8['start'],_0x5e74d8['end']):this['_setSuggestionRange'](_0x1d9b6a,_0x5c9c11[0x0]):_0x47f226['removeMarker'](_0x1d9b6a['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2ee0cd){this['_editor']=_0x2ee0cd,this['_model']=_0x2ee0cd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2b8806,_0x148422,_0x2f0d24,_0x78944b,_0xa3fb30,_0x51fb79){return new u(this['_model'],{'type':_0x2b8806,'subType':_0x148422,'id':_0x2f0d24,'author':_0x78944b,'creator':_0x78944b,'attributes':_0xa3fb30,'onAttributesChange':_0x51fb79,'onAccept':(..._0x57fef5)=>this['getSuggestionCallback'](_0x2b8806,_0x148422,'accept')(..._0x57fef5),'onDiscard':(..._0x4b96df)=>this['getSuggestionCallback'](_0x2b8806,_0x148422,'discard')(..._0x4b96df)});}['registerCustomCallback'](_0x2122a6,_0x3725a1,_0x14943d,_0x23dfe4){const _0x2a1139=_0x2122a6+':'+_0x3725a1+':'+_0x14943d;this['_customCallbacks']['set'](_0x2a1139,_0x23dfe4);}['getSuggestionCallback'](_0x390ab9,_0x218971,_0x2b3579){const _0x4955da=_0x390ab9+':'+_0x218971+':'+_0x2b3579;return this['_customCallbacks']['get'](_0x4955da)||this['_defaultCallbacks']['get'](_0x390ab9+':'+_0x2b3579);}['_registerDefaultCallbacks'](){const _0x4da83c=()=>!0x1,_0x49d7c0=_0x5a98c6=>{_0x5a98c6['sort']((_0x4cc355,_0x222916)=>_0x4cc355['start']['isBefore'](_0x222916['start'])?0x1:-0x1),this['_model']['change'](_0x1ff476=>{for(const _0x39aa06 of _0x5a98c6){let _0x49d6e3;_0x49d6e3=_0x39aa06['end']['isAtEnd']&&_0x39aa06['end']['parent']==_0x39aa06['start']['nodeAfter']?_0x1ff476['createSelection'](_0x39aa06['start']['nodeAfter'],'on'):_0x1ff476['createSelection'](_0x39aa06),this['_model']['deleteContent'](_0x49d6e3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x47cc4a=(_0x3a22fe,_0x34f0f6)=>{_0x34f0f6&&this['_model']['change'](_0x1d3edf=>{const {commandName:_0x16e7d6,commandParams:_0x2bfd13=[]}=_0x34f0f6,_0x2ae31b=_0x3a22fe['map'](_0x1a0ea9=>(Et(_0x1a0ea9)&&(_0x1a0ea9=this['_model']['createRange'](_0x1a0ea9['end'])),_0x1a0ea9))['filter'](_0x4a5ffa=>'$graveyard'!==_0x4a5ffa['root']['rootName']);if(_0x2ae31b['length']<0x1)return;const _0x40f4d7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x65deff=>_0x5df64f['fromRange'](_0x65deff));_0x1d3edf['setSelection'](_0x2ae31b);for(const _0x4c4cec of this['_editor']['commands']['commands']())_0x4c4cec['refresh']();_0x2bfd13['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x16e7d6,..._0x2bfd13);const _0x2297c7=_0x40f4d7['filter'](_0x1c97dc=>'$graveyard'!=_0x1c97dc['root']['rootName']);_0x2297c7['length']>0x0&&_0x1d3edf['setSelection'](_0x2297c7);for(const _0x546815 of _0x40f4d7)_0x546815['detach']();});},_0x436d92=(_0x309a5c,_0x56a89d)=>0x1==_0x309a5c['length']&&0x1==_0x56a89d['length']&&_0x309a5c[0x0]['end']['isEqual'](_0x56a89d[0x0]['start']),_0x1cc231=(_0x9608d8,_0x4a7c35,_0x24dbd7,_0x2b0d2d)=>Pt(_0x9608d8,_0x4a7c35,_0x24dbd7,_0x2b0d2d,this['_model'])?[_0x9608d8,_0x4a7c35]:Pt(_0x4a7c35,_0x9608d8,_0x2b0d2d,_0x24dbd7,this['_model'])?[_0x4a7c35,_0x9608d8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4da83c),this['_defaultCallbacks']['set']('insertion:discard',_0x49d7c0),this['_defaultCallbacks']['set']('insertion:join',_0x436d92),this['_defaultCallbacks']['set']('insertion:chain',_0x1cc231),this['_defaultCallbacks']['set']('deletion:accept',_0x49d7c0),this['_defaultCallbacks']['set']('deletion:discard',_0x4da83c),this['_defaultCallbacks']['set']('deletion:join',_0x436d92),this['_defaultCallbacks']['set']('deletion:chain',_0x1cc231),this['_defaultCallbacks']['set']('formatInline:accept',_0x47cc4a),this['_defaultCallbacks']['set']('formatInline:discard',_0x4da83c),this['_defaultCallbacks']['set']('formatInline:join',_0x436d92),this['_defaultCallbacks']['set']('formatInline:chain',_0x4da83c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x47cc4a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4da83c),this['_defaultCallbacks']['set']('formatBlock:join',_0x436d92),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4da83c),this['_defaultCallbacks']['set']('attribute:accept',_0x4da83c),this['_defaultCallbacks']['set']('attribute:discard',(_0xdb2567,_0x1cca5b)=>{if(!_0x1cca5b)return;const _0x213c4e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x604307=>{if(_0x1cca5b['key']==m)for(const _0x224d7d of _0xdb2567){const _0x34f597=_0x224d7d['start']['nodeAfter'],_0x402bd3=_0x1cca5b['oldValue'];_0x604307['rename'](_0x34f597,_0x402bd3);}else{if(_0x213c4e['_isBlockAttribute'](_0x1cca5b['key'])){for(const _0x47eebc of _0xdb2567)void 0x0!==_0x1cca5b['oldValue']?_0x604307['setAttribute'](_0x1cca5b['key'],_0x1cca5b['oldValue'],_0x47eebc['start']['nodeAfter']):_0x604307['removeAttribute'](_0x1cca5b['key'],_0x47eebc['start']['nodeAfter']);}else{for(const _0x18feb1 of _0xdb2567)_0x1cca5b['oldValue']?_0x604307['setAttribute'](_0x1cca5b['key'],_0x1cca5b['oldValue'],_0x18feb1):_0x604307['removeAttribute'](_0x1cca5b['key'],_0x18feb1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x436d92);}}function Tt(_0x1fd42c,_0x11f6dc,_0x4353b1){for(const _0x28b70a of _0x11f6dc['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28b70a['root']==_0x28b70a)return!0x1;if(!_0x4353b1['containsItem'](_0x28b70a))return!0x1;if(_0x1fd42c['isObject'](_0x28b70a)||_0x1fd42c['isLimit'](_0x28b70a))return!0x0;}return!0x1;}function Et(_0x27af62){return _0x27af62['end']['parent']==_0x27af62['start']['nodeAfter']&&_0x27af62['end']['isAtStart'];}function Vt(_0x3c2edf,_0x4338a9,_0x2a07dc,_0x57e970){const _0xdc3d51=_0xa2c453=>!_0xa2c453['item']['is']('$textProxy')&&!_0x57e970['isObject'](_0xa2c453['item']),_0xa78c50=_0x3c2edf['start']['getLastMatchingPosition'](_0xdc3d51),_0x2d492e=_0x3c2edf['end']['getLastMatchingPosition'](_0xdc3d51,{'direction':'backward'});return(!_0x3c2edf['start']['isEqual'](_0xa78c50)||!_0x3c2edf['end']['isEqual'](_0x2d492e))&&(_0xa78c50['isBefore'](_0x2d492e)?_0x2a07dc['updateMarker'](_0x4338a9,{'range':_0x2a07dc['createRange'](_0xa78c50,_0x2d492e)}):_0x2a07dc['removeMarker'](_0x4338a9),!0x0);}function Ut(_0x28a76e){return _0xd7b463(_0x28a76e);}function Ot(_0x595fce){const _0x4f160b=_0x595fce['start']['nodeAfter'];return _0x4f160b&&_0x4f160b['is']('element');}function Gt(_0x6b6556,_0x4d5554){return null==_0x6b6556['end']['nodeBefore']&&_0x6b6556['end']['parent']==_0x6b6556['start']['nodeAfter']?Ft(_0x6b6556['start']['nodeAfter'],_0x4d5554):_0x6b6556;}function Ft(_0x223378,_0xf5d4bf){const _0x2202dd=_0xf5d4bf['schema']['isObject'](_0x223378)||_0xf5d4bf['schema']['isSelectable'](_0x223378);return _0xf5d4bf['createRange'](_0xf5d4bf['createPositionAt'](_0x223378,'before'),_0x2202dd?_0xf5d4bf['createPositionAfter'](_0x223378):_0xf5d4bf['createPositionAt'](_0x223378,'end'));}function Pt(_0xfccf69,_0x1a9d7c,_0x2dfd8c,_0x36a1a5,_0x3c82d3){if(!Lt(_0xfccf69,_0x1a9d7c))return!0x1;if(_0x2dfd8c['end']['isEqual'](_0x36a1a5['start']))return!0x0;if(_0xfccf69['type']!=_0x1a9d7c['type'])return!0x1;if(!_0x2dfd8c['end']['isTouching'](_0x36a1a5['start']))return!0x1;const _0x11a77a=_0x3c82d3['createRange'](_0x2dfd8c['end'],_0x36a1a5['start'])['getWalker']();for(const _0x646be1 of _0x11a77a)if(['elementStart','elementEnd']['includes'](_0x646be1['type'])&&_0x3c82d3['schema']['isLimit'](_0x646be1['item']))return!0x1;return!0x0;}function Lt(_0x2b7ab9,_0x48ee6c,_0x575343=[]){return!(!_0x2b7ab9['_isDataLoaded']||!_0x48ee6c['_isDataLoaded'])&&_0x718abf(xt(_0x2b7ab9['attributes'],_0x575343),xt(_0x48ee6c['attributes'],_0x575343));}function Ht(_0x5cd3cf,_0x6b9f38){const _0x10a2e6=qt(_0x5cd3cf['attributes']),_0x17e9ee=qt(_0x6b9f38);if(!_0x5cd3cf['_isDataLoaded'])return!0x1;for(const _0x247c75 of Object['keys'](_0x17e9ee))if(!_0x718abf(_0x10a2e6[_0x247c75],_0x17e9ee[_0x247c75]))return!0x1;return!0x0;}function qt(_0x52a272){const _0x4bb0ab=Object['assign']({},_0x52a272);return delete _0x4bb0ab['skipNestingCheck'],delete _0x4bb0ab['tablePasteChainId'],_0x4bb0ab;}class ne extends/* #__PURE__ -- @preserve */
25
+ _0x2ded99(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x31a0bc,_0x4eb7ad,_0x3454b2,_0x52a724){super(),this['model']=_0x4eb7ad,this['view']=_0x3454b2,this['commentThreadController']=_0x52a724,this['_editor']=_0x31a0bc,this['_acceptCommand']=_0x31a0bc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x31a0bc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa7a6fc,_0x34add5)=>_0xa7a6fc||_0x34add5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5aaa82=>_0x5aaa82&&this['_editor']['model']['canEditAt'](_0x4eb7ad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1ec812=>_0x1ec812&&this['_editor']['model']['canEditAt'](_0x4eb7ad['getRanges']())),this['_pendingAction']=null,_0x3454b2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3454b2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3454b2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3454b2,'change:isDirty',()=>{_0x3454b2['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x388f52=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x388f52);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x83905e{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x35e16e,_0xfd9b68,_0xdc38b0,_0x2d1450){super(_0x35e16e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0xfd9b68['authoredAt']),this['bind']('authoredAt')['to'](_0xfd9b68),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0xfd9b68,this['_localUser']=_0xdc38b0,this['_config']=_0x2d1450,_0x2d1450['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4cd646}=this['_config'];this['commentsListView']=new _0x4cd646(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x53de20=>_0x53de20+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3c5ddb,_0x11977b)=>_0x3c5ddb||!!_0x11977b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x547694}=this['_config'],_0x243bab=new _0x547694(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x321368=_0x243bab['commentInputView'];return _0x243bab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x321368,'value',(_0x24c7d8,_0x203b72,_0x505196)=>!!_0x505196||_0x24c7d8&&!_0x203b72),_0x321368['on']('submit',(_0x1b6a96,_0x5914b8)=>{this['fire']('addComment',_0x5914b8),_0x321368['editor']['setData']('');}),_0x321368['on']('cancel',()=>this['focus']()),_0x321368['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x243bab;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5dd6d1,_0x2d8963,_0xbf0fc5,_0x5e0363){super(_0x5dd6d1,_0x2d8963,_0xbf0fc5,_0x5e0363),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x50d265=>_0x50d265&&_0x50d265[0x0]?_0x50d265[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2c1a2d,_0x14cbc0)=>{let _0x31f46d='';for(const _0x5f5259 of _0x2c1a2d)_0x31f46d+='<p>'+ds(_0x5f5259['content'],_0x5f5259['color'])+'</p>';return _0x14cbc0?_0x31f46d:_0x5924bf(_0x31f46d,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5dd6d1,'Accept\x20suggestion'),_0x149aaf['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5dd6d1,'Discard\x20suggestion'),_0x149aaf['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x20177d(_0x5dd6d1,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3c094e=this['bindTemplate'],_0x201817=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x3c094e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3c094e['to']('authoredAt',_0x2d0fc8=>this['_config']['formatDateTime'](_0x2d0fc8))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x201817['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3967fa={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3c094e['if']('isActive','ck-suggestion-wrapper--active'),_0x3c094e['to']('type',_0x48fc14=>'ck-suggestion-'+_0x48fc14),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x201817}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3967fa['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x3967fa;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4215f7,_0x5d5f66,_0x40c695)=>{this['_descriptionElement']['innerHTML']=_0x40c695;});}['_createButton'](_0x17e1c6,_0x46aa32,_0x33b069,_0x582f23,_0x108165){const _0xb0ed57=new _0x2e6acd(this['locale']);return _0xb0ed57['set']({'label':_0x17e1c6,'icon':_0x46aa32,'tooltip':!0x0,'tooltipPosition':_0x108165}),_0xb0ed57['extendTemplate']({'attributes':{'class':_0x33b069}}),_0xb0ed57['on']('execute',()=>{this['fire'](_0x582f23,this['_model']['id']);}),_0xb0ed57;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x54c4af,_0x24edc9){let _0x1e1ade='';return _0x1e1ade+=_0x54c4af['split']('*')['map']((_0x434094,_0x8f053a)=>_0x8f053a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x434094)+'</span>':us(_0x434094))['join'](''),_0x24edc9&&(_0x1e1ade+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x24edc9['value']+'\x22\x20title=\x22'+_0x24edc9['title']+'\x22></span>'),_0x1e1ade;}function us(_0x31981e){const _0x19829e=document['createElement']('span');return _0x19829e['innerText']=_0x31981e,_0x19829e['innerHTML'];}var ae='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x23b8b9{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x40cd8f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x6e9239){super(_0x6e9239),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a1475=this['editor']['config'];_0x4a1475['define']('trackChanges.SuggestionThreadView',ie),_0x4a1475['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a1475['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x34d152,_0x10b71a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3dddab,_0xde648d]of this['_handleControllerBuffer']){const _0x21ae53=this['_suggestionToController']['has'](_0x3dddab);_0x21ae53||_0xde648d?_0x21ae53&&_0xde648d&&this['_destroyController'](_0x3dddab):this['_initializeController'](_0x3dddab);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x34d152,_0x10b71a);}['init'](){const _0x302bb0=this['editor'],_0x417eef=_0x302bb0['plugins']['get']('TrackChangesEditing'),_0x291e9a=_0x302bb0['plugins']['get']('Annotations'),_0x22420f=_0x302bb0['plugins']['get']('EditorAnnotations'),_0x38c33e=_0x302bb0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x22420f['addSourceCollector'](()=>{const _0x580da1=[];for(const [_0x2fe1bc,_0x4311fa]of Array['from'](this['_suggestionToController'])){const _0xe139c8=_0x2fe1bc['getAllAdjacentSuggestions'](),_0x49e49e=[];for(const _0xc53f37 of _0xe139c8){if(!_0xc53f37['isInContent'])continue;if(_0xc53f37['isMultiRange']){_0x49e49e['push'](..._0xc53f37['getRanges']());continue;}const _0x4c2cb4=_0xc53f37['getFirstRange']();if(_0x49e49e['length']>0x0){const _0x36668e=_0x49e49e[0x0]['getJoined'](_0x4c2cb4);if(_0x36668e){_0x49e49e[0x0]=_0x36668e;continue;}}_0x49e49e['push'](_0x4c2cb4);}_0x580da1['push']([_0x4311fa['view'],_0x49e49e]);}return _0x580da1;}),this['listenTo'](_0x417eef,'suggestionLoaded',(_0x129a8f,_0x15f7ab)=>{this['listenTo'](_0x15f7ab,'change:previous',(_0x3b7686,_0x4c2201,_0x16ec17,_0x200eaa)=>{_0x15f7ab['isInContent']&&(null==_0x16ec17?(this['_updateController'](_0x200eaa['head']),this['_handleSuggestionControllerDelayed'](_0x15f7ab,!0x1)):(this['_updateController'](_0x16ec17['head']),null==_0x200eaa&&this['_handleSuggestionControllerDelayed'](_0x15f7ab,!0x0)));}),null!==_0x15f7ab['previous']?this['_updateController'](_0x15f7ab['head']):this['_handleSuggestionControllerDelayed'](_0x15f7ab,!0x1);}),this['listenTo'](_0x417eef,'suggestionUnloaded',(_0x5927f9,_0x646a4c,_0x487577)=>{this['stopListening'](_0x646a4c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x646a4c),this['_suggestionToController']['has'](_0x646a4c)&&this['_destroyController'](_0x646a4c),_0x487577&&this['_updateController'](_0x487577['head']);}),this['listenTo'](_0x417eef,'suggestionChanged',(_0xb573a4,_0x3e7a13)=>{this['_updateController'](_0x3e7a13);}),this['listenTo'](_0x291e9a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x38c33e,'addComment',(_0x592a55,{threadId:_0x4c4c85,isFromAdapter:_0x46755f})=>{if(_0x46755f||!_0x417eef['hasSuggestion'](_0x4c4c85))return;const _0x1676d7=_0x417eef['getSuggestion'](_0x4c4c85);this['_suggestionToController']['get'](_0x1676d7)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2b6aed=this['editor']['plugins']['get']('Annotations'),_0x3f19dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34a439=Array['from'](_0x2b6aed['activeAnnotations'],_0x4b38a7=>_0x4b38a7['innerView'])['filter'](_0x4690b2=>this['_viewToController']['has'](_0x4690b2)),_0x2cd468=[];for(const _0x2aca5c of _0x34a439){const _0x5ba0af=this['_viewToController']['get'](_0x2aca5c)['model']['getAllAdjacentSuggestions']();_0x2cd468['push'](..._0x5ba0af['reduce']((_0x2be640,_0x48afbc)=>[..._0x2be640,..._0x48afbc['getMarkerNames']()],[]));}_0x3f19dd['activeMarkers']=_0x2cd468;}['_addUIComponentsToFactory'](){const _0x2d2e5d=this['editor'],_0x204c0c=_0x2d2e5d['locale'],_0x416a8a=o(_0x204c0c,'Track\x20changes'),_0x142342=new Wt([{'type':'switchbutton','model':new _0x480261({'withText':!0x0,'isToggleable':!0x0,'label':_0x416a8a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x480261({'withText':!0x0,'label':o(_0x204c0c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x480261({'withText':!0x0,'label':o(_0x204c0c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x480261({'withText':!0x0,'label':o(_0x204c0c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x480261({'withText':!0x0,'label':o(_0x204c0c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x24f140 of _0x142342)if(re(_0x24f140)){const _0xe3325e=_0x2d2e5d['commands']['get'](_0x24f140['model']['commandName']);_0x24f140['model']['bind']('isOn','isEnabled')['to'](_0xe3325e,'value','isEnabled');}_0x2d2e5d['ui']['componentFactory']['add']('trackChanges',_0x233914=>this['_createToolbarButton'](_0x233914,_0x142342,_0x416a8a)),_0x2d2e5d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x50e06b=>this['_createMenuBarMenu'](_0x50e06b,_0x142342,_0x416a8a));}['_createToolbarButton'](_0x52c4de,_0x436ad2,_0x2739d1){const _0x4e7acc=Jt(_0x52c4de,te),_0x2e2550=this['editor']['commands']['get']('trackChanges');_0x4e7acc['buttonView']['set']({'tooltip':_0x2739d1,'label':_0x2739d1,'icon':ae}),_0x4e7acc['buttonView']['bind']('isOn')['to'](_0x2e2550,'value'),_0x4e7acc['buttonView']['on']('execute',()=>{_0x2e2550['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x4e7acc,_0x436ad2,{'role':'menu'});const _0x22c4eb=[];for(const _0x4baf7c of _0x436ad2)re(_0x4baf7c)&&_0x22c4eb['push'](this['editor']['commands']['get'](_0x4baf7c['model']['commandName']));const _0x358724=_0x4e7acc['buttonView'];return _0x358724['actionView']['unbind']('isEnabled'),_0x358724['arrowView']['unbind']('isEnabled'),_0x358724['actionView']['bind']('isEnabled')['to'](_0x2e2550,'isEnabled'),_0x358724['arrowView']['bind']('isEnabled')['toMany'](_0x22c4eb,'isEnabled',(..._0x1da73b)=>_0x1da73b['some'](_0x512caa=>_0x512caa)),_0x4e7acc['on']('execute',_0x173ef4=>{this['editor']['execute'](_0x173ef4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e7acc;}['_createMenuBarMenu'](_0xf2d8ed,_0x2019c5,_0x2b07ec){const _0x322cd2=new Qt(_0xf2d8ed),_0x2a1f08=this['editor']['commands']['get']('trackChanges');_0x322cd2['buttonView']['set']({'label':_0x2b07ec,'icon':ae});const _0x21698c=new Xt(_0xf2d8ed);for(const _0x4af50a of _0x2019c5){if('separator'==_0x4af50a['type']){_0x21698c['items']['add'](new Kt(_0xf2d8ed));continue;}const _0x4ab042=new Yt(_0xf2d8ed,_0x322cd2),_0xef3cc0=new Zt(_0xf2d8ed),_0x3ca7a3=_0x4af50a['model'];_0xef3cc0['bind'](...Object['keys'](_0x3ca7a3))['to'](_0x3ca7a3),_0xef3cc0['delegate']('execute')['to'](_0x322cd2),_0xef3cc0['on']('execute',()=>{this['editor']['execute'](_0x3ca7a3['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ab042['children']['add'](_0xef3cc0),_0x21698c['items']['add'](_0x4ab042);}return _0x322cd2['bind']('isEnabled')['to'](_0x2a1f08,'isEnabled'),_0x322cd2['panelView']['children']['add'](_0x21698c),_0x322cd2;}['_initializeController'](_0x49c5b1){const _0x13b5b2=this['editor'],_0x18ed47=_0x13b5b2['config'],_0x1adc78=_0x13b5b2['plugins']['get']('Annotations'),_0x2e5a66=_0x13b5b2['plugins']['get']('CommentsRepository'),_0x578510=_0x13b5b2['plugins']['get']('EditorAnnotations'),_0x55f64b=_0x13b5b2['plugins']['get'](_0x40cd8f)['me'],_0x1ec263=_0x18ed47['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x5baca0,CommentThreadInputView:_0x2bfe3b}=_0x13b5b2['plugins']['get']('CommentsUI');let _0x426a50,_0x5a5518;this['_annotationViews']['has'](_0x49c5b1['id'])?(_0x5a5518=this['_annotationViews']['get'](_0x49c5b1['id']),_0x426a50=_0x5a5518['mainView']):(_0x426a50=new _0x1ec263(_0x13b5b2['locale'],_0x49c5b1,_0x55f64b,{'disableComments':this['_disableComments'],'editorConfig':_0x18ed47['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x18ed47['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x18ed47['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x18ed47['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3b8e81(_0x18ed47['get']('locale')),'CommentView':_0x18ed47['get']('comments')['CommentView'],'CommentsListView':_0x5baca0,'CommentThreadInputView':_0x2bfe3b}),_0x426a50['acceptButton']['on']('execute',()=>{_0x13b5b2['editing']['view']['focus']();}),_0x426a50['discardButton']['on']('execute',()=>{_0x13b5b2['editing']['view']['focus']();}),_0x5a5518=_0x1adc78['createAnnotationView'](this['editor']['locale'],_0x426a50),_0x5a5518['bind']('isDirty')['to'](_0x426a50,'isDirty'),_0x5a5518['bind']('length')['to'](_0x426a50),_0x5a5518['bind']('type')['to'](_0x426a50,'type',_0x47b603=>'suggestion-'+_0x47b603),this['_annotationViews']['set'](_0x49c5b1['id'],_0x5a5518));const _0xc021d0=_0x2e5a66['createCommentThreadController'](_0x49c5b1['commentThread'],_0x426a50),_0x12fc86=new ne(_0x13b5b2,_0x49c5b1,_0x426a50,_0xc021d0),_0xca52f2=_0x49c5b1['getAllAdjacentSuggestions']()['filter'](_0x1e355d=>_0x1e355d['isInContent']);_0x426a50['descriptionParts']=_0x13b5b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xca52f2),this['_suggestionToController']['set'](_0x49c5b1,_0x12fc86),this['_viewToController']['set'](_0x426a50,_0x12fc86);const _0x3cd1ea=_0x1adc78['createAnnotation']({'view':_0x5a5518,'target':()=>{const _0x377848=[],_0x24fdc0=_0x49c5b1['getAllAdjacentSuggestions']()['filter'](_0x55b2b8=>_0x55b2b8['isInContent']);for(const _0x2d5578 of _0x24fdc0)_0x377848['push'](..._0x2d5578['getMarkers']());return _0x49cd65(_0x13b5b2['editing'],_0x377848);},'type':()=>'suggestion-'+_0x12fc86['view']['type']});_0x2e5a66['_bindAnnotationToEditors'](_0x426a50,_0x3cd1ea),_0x1adc78['add'](_0x3cd1ea),_0x578510['registerAnnotation'](_0x3cd1ea);}['_destroyController'](_0x4893c3){const _0x8512fe=this['editor']['plugins']['get']('CommentsRepository'),_0x1bc3d0=this['editor']['plugins']['get']('Annotations'),_0x3fb949=this['_suggestionToController']['get'](_0x4893c3),_0x422fa0=_0x3fb949['view'],_0x1b55dd=_0x1bc3d0['getByInnerView'](_0x422fa0);_0x8512fe['_unbindEditors'](_0x422fa0),_0x1b55dd&&_0x1bc3d0['remove'](_0x1b55dd),this['_suggestionToController']['delete'](_0x4893c3),this['_viewToController']['delete'](_0x422fa0),_0x3fb949['destroy']();}['_updateController'](_0x202793){if(!_0x202793['isInContent']||!this['_suggestionToController']['has'](_0x202793))return;const _0x5d3619=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d6892=this['_suggestionToController']['get'](_0x202793),_0x1b04bc=_0x202793['getAllAdjacentSuggestions']();_0x3d6892['view']['descriptionParts']=_0x5d3619['descriptionFactory']['getDescriptions'](_0x1b04bc);}['destroy'](){for(const _0x1a8605 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a8605);for(const _0x31cd17 of this['_annotationViews']['values']())_0x31cd17['mainView']['destroy']();super['destroy']();}}function re(_0x1e7739){return'model'in _0x1e7739;}class k extends _0x23b8b9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5820d3){this['editor']['plugins']['get'](p)['adapter']=_0x5820d3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x37c565){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x37c565);}['getSuggestions']({skipNotAttached:_0x3bdcc3=!0x1,toJSON:_0x3c0521=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3bdcc3,'toJSON':_0x3c0521});}['getSuggestion'](_0x379381){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x379381);}}const T=['Pagination'];class P extends _0x23b8b9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x518842=this['editor'];if(_0x518842['config']['define']('trackChangesData.editorCreator',_0x2e5b25=>{const _0x3f1471=_0x518842['model']['document']['getRootNames']()['reduce']((_0x1cad9e,_0x3962d3)=>(_0x1cad9e[_0x3962d3]='',_0x1cad9e),{});return _0x518842['constructor']['create'](_0x3f1471,_0x2e5b25);}),'function'!=typeof _0x518842['config']['get']('trackChangesData')['editorCreator'])throw new _0x14dd54('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3508a6){return N(this['editor'],!0x0,_0x3508a6);}['getDataWithDiscardedSuggestions'](_0xc79200){return N(this['editor'],!0x1,_0xc79200);}}class D extends _0x23b8b9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x585372){super(_0x585372),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'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')['_adapter']=null;}}function v(_0x2746e2){return void 0x0!==_0x2746e2['getRootsAttributes'];}async function N(_0xf5e4d6,_0x254a47,_0x12b9e3){const _0x5a22cd=_0x339627(_0xf5e4d6,T);_0x5a22cd['plugins']['push'](p,D),_0x5a22cd['rootsAttributes']=v(_0xf5e4d6)?_0xf5e4d6['getRootsAttributes']():void 0x0;const _0x3b1bed=document['createDocumentFragment'](),_0x1b984a=_0xf5e4d6['config']['get']('trackChangesData')['editorCreator'],_0x1c97b4=await _0x1b984a(_0x5a22cd,()=>function(_0x3f3a7e){const _0x2d491b=document['createElement']('div');return _0x3f3a7e['appendChild'](_0x2d491b),_0x2d491b;}(_0x3b1bed));!function(_0x50fb71,_0x1eb7a1){const _0x121060=_0x50fb71['model']['document']['getRootNames']()['reduce']((_0x5a8075,_0x24755c)=>(_0x5a8075[_0x24755c]=_0x50fb71['data']['get']({'rootName':_0x24755c}),_0x5a8075),{}),_0x334a32=_0x50fb71['plugins']['get']('Users')['users']['map'](_0x4f398c=>({'id':_0x4f398c['id'],'name':_0x4f398c['name']})),_0x1b4a0d=_0x50fb71['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4310dc=_0x50fb71['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x386185=_0x1eb7a1['plugins']['get']('Users'),_0x10d514=_0x1eb7a1['plugins']['get']('TrackChangesEditing'),_0xbba6e6=_0x1eb7a1['plugins']['get']('CommentsRepository');for(const _0xe7fde9 of _0x334a32)_0x386185['getUser'](_0xe7fde9['id'])||_0x386185['addUser'](_0xe7fde9);_0x386185['me']||_0x386185['useAnonymousUser']();for(const _0x1ace71 of _0x4310dc)_0xbba6e6['addCommentThread'](_0x1ace71);for(const _0x1f661b of _0x1b4a0d)_0x10d514['addSuggestionData'](_0x1f661b);_0x1eb7a1['data']['set'](_0x121060);}(_0xf5e4d6,_0x1c97b4),_0x1c97b4['execute'](_0x254a47?'acceptAllSuggestions':'discardAllSuggestions');const _0x519fd7=v(_0x1c97b4)?_0x1c97b4['getFullData'](_0x12b9e3):_0x1c97b4['data']['get'](_0x12b9e3);return await _0x1c97b4['destroy'](),_0x519fd7;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};