@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240927.0 → 0.0.0-nightly-20240928.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 (167) 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 +10 -10
  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/ui/view/suggestionview.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. 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 _0x55f69e,PendingActions as _0x43cbca,icons as _0x22e7cf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27812c,ObservableMixin as _0x3c9868,uid as _0x55f5c8,insertToPriorityArray as _0x20cd94,priorities as _0x4d60ea,logWarning as _0x3fdb3b,getEnvKeystrokeText as _0x25e90c,FocusTracker as _0x15157f,KeystrokeHandler as _0x266d37,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4730ad,View as _0x294ed2,ViewCollection as _0x23c8b8,FocusCycler as _0x1b6047,ViewModel as _0x220d45,createDropdown as Qt,SplitButtonView as _0xb37fff,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5c9be1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x96452c,hashObject as _0xf1b1f,surroundingMarkersDetector as _0x571476,FOCUS_ANNOTATION_KEYSTROKE as _0x5eb0b4,AriaDescriptionView as _0x26ba2b,setupThreadKeyboardNavigation as _0x57141b,trimHtml as _0x1f8706,UserView as _0x4be92a,LateFocusButtonView as _0x2c0a2b,getDateTimeFormatter as _0x3b1251,getAllMarkersDomElementsSorted as _0x5910c7,sanitizeEditorConfig as _0x41993e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xc1b524,LiveRange as _0x46da37,LivePosition as _0x82d64c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x42a791,toWidget as _0x146003}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2874d9,set as _0x3b5b90,isEqual as _0x4b5161,unset as _0x369aef,omit as Tt}from'lodash-es';import{Delete as _0x6be264,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33b193,ShiftEnter as _0x3fff9f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2df938,_0x182cde){super(_0x2df938),this['_enabledCommands']=_0x182cde,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 _0x3497db of this['editor']['commands']['commands']())_0x3497db['affectsData']&&!this['_enabledCommands']['has'](_0x3497db)&&_0x3497db['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x571d5f of this['editor']['commands']['commands']())_0x571d5f['affectsData']&&!this['_enabledCommands']['has'](_0x571d5f)&&_0x571d5f['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x572b58,_0x35ed7b){super(_0x572b58),this['_suggestions']=_0x35ed7b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x44b657){const _0xd45e09=this['_suggestions']['get'](_0x44b657);if(!_0xd45e09)throw new _0x27812c('track-changes-accept-suggestion-not-found',this);const _0x347042=_0xd45e09['getRanges']();this['editor']['model']['canEditAt'](_0x347042)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd45e09);}}class R extends ts{['_suggestions'];constructor(_0x37da28,_0x1836e1){super(_0x37da28),this['_suggestions']=_0x1836e1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x26c750){const _0x185903=this['_suggestions']['get'](_0x26c750);if(!_0x185903)throw new _0x27812c('track-changes-discard-suggestion-not-found',this);const _0x4135d0=_0x185903['getRanges']();this['editor']['model']['canEditAt'](_0x4135d0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x185903);}}function ls(_0x569b9c,_0x231663){let _0x5c77e7='';return _0x5c77e7+=_0x569b9c['split']('*')['map']((_0x269d58,_0x27bb7d)=>_0x27bb7d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x269d58)+'</span>':nn(_0x269d58))['join'](''),_0x231663&&(_0x5c77e7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x231663['value']+'\x22\x20title=\x22'+_0x231663['title']+'\x22></span>'),_0x5c77e7;}function nn(_0x317480){const _0x1ba63f=document['createElement']('span');return _0x1ba63f['innerText']=_0x317480,_0x1ba63f['innerHTML'];}function ss(_0x428d62){return _0x428d62['sort']((_0x2094ee,_0x4f2e56)=>'deletion'==_0x2094ee['type']&&'deletion'!=_0x4f2e56['type']?-0x1:'deletion'!=_0x2094ee['type']&&'deletion'==_0x4f2e56['type']?0x1:0x0);}function to(_0x21f34a,_0x1b720e){let _0xa0f005,_0x1b227f=0x0;const _0x517436=[],_0x3ca313=_0x1b720e['schema'];for(;_0x1b227f<_0x21f34a['length'];){const _0x4c144a=_0x21f34a[_0x1b227f],_0x485cce=_0x21f34a[_0x1b227f+0x1];_0xa0f005||(_0xa0f005=_0x1b720e['createPositionBefore'](_0x4c144a)),on(_0x1b720e,_0x4c144a,_0x485cce)||(_0x517436['push'](_0x1b720e['createRange'](_0xa0f005,_0x3ca313['isObject'](_0x4c144a)?_0x1b720e['createPositionAfter'](_0x4c144a):_0x1b720e['createPositionAt'](_0x4c144a,'end'))),_0xa0f005=null),_0x1b227f++;}return _0x517436;}function on(_0xa96e47,_0x479f8d,_0x267006){if(!_0x267006)return!0x1;const _0x30cd47=_0xa96e47['createPositionAfter'](_0x479f8d),_0x158efe=_0xa96e47['createPositionBefore'](_0x267006);return _0x30cd47['isTouching'](_0x158efe);}function rs(_0x438735,_0xbe6e87,_0x18386c){for(;_0x18386c['length'];){const _0x5df9d1=_0x18386c['splice'](0x0,0x64);_0x438735['change'](()=>{for(const _0x38f3aa of _0x5df9d1)_0x38f3aa['isInContent']&&_0xbe6e87['execute'](_0x38f3aa['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x569a76,_0x8e870a,_0x5bd964){super(_0x569a76),this['_command']=_0x8e870a,this['_suggestions']=_0x5bd964,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f0ffc=Array['from'](this['_suggestions']['values']())['some'](_0x2a55f8=>_0x2a55f8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2f0ffc;}['execute'](){const _0x29c1e7=ss(Array['from'](this['_suggestions']['values']()));for(const _0x463564 of _0x29c1e7){const _0xff6bc3=_0x463564['getRanges']();if(!this['editor']['model']['canEditAt'](_0xff6bc3))return;}rs(this['editor']['model'],this['_command'],_0x29c1e7);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x220112,_0x4e14f2,_0x1707ca){super(_0x220112),this['_command']=_0x4e14f2,this['_suggestions']=_0x1707ca,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x49fff5=this['editor']['model']['document']['selection'],_0x59cc45=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3a4fd5,_0x38a296){const _0x2f9e17=Array['from'](_0x3a4fd5['getRanges']()),_0x1b11bb=new Set();for(const _0x557e9c of _0x38a296)if(_0x557e9c['isInContent']){for(const _0x4eb7e6 of _0x2f9e17)for(const _0x32f39b of _0x557e9c['getRanges']())(_0x4eb7e6['isIntersecting'](_0x32f39b)||_0x3a4fd5['isCollapsed']&&!_0x557e9c['isMultiRange']&&_0x557e9c['next']&&_0x32f39b['end']['isTouching'](_0x4eb7e6['start']))&&_0x1b11bb['add'](_0x557e9c);}return _0x1b11bb;}(_0x49fff5,_0x59cc45),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3cf4a9=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1de3f1 of _0x3cf4a9){const _0x3e4205=_0x1de3f1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e4205))return;}rs(this['editor']['model'],this['_command'],_0x3cf4a9);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x3c9868(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4529fa,_0x735d29){super(),this['id']=_0x735d29['id'],this['type']=_0x735d29['type'],this['subType']=_0x735d29['subType']||null,this['author']=_0x735d29['author'],this['creator']=_0x735d29['creator']||_0x735d29['author'],this['isExternal']=Boolean(_0x735d29['attributes']&&_0x735d29['attributes']['@external']),this['data']=null,this['_model']=_0x4529fa,this['_onAccept']=_0x735d29['onAccept'],this['_onDiscard']=_0x735d29['onDiscard'],this['_onAttributesChange']=_0x735d29['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x735d29['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 _0x548ef9=this;for(;_0x548ef9['previous'];)_0x548ef9=_0x548ef9['previous'];return _0x548ef9;}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'](_0x13ed81){this['_markerNames']['add'](_0x13ed81);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x35cc58=>this['_model']['markers']['get'](_0x35cc58))['filter'](_0x2d0dd1=>_0x2d0dd1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32da7e=>{for(const _0x40b552 of this['getMarkers']())_0x32da7e['removeMarker'](_0x40b552);}),this['_markerNames']['clear']();}['removeMarker'](_0x5521ef){this['_model']['change'](_0x5b652b=>{_0x5b652b['removeMarker'](_0x5521ef);}),this['_markerNames']['delete'](_0x5521ef);}['addRange'](_0x8360c0){const _0x534935='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x534935),this['_model']['change'](_0x25f9fa=>{_0x25f9fa['addMarker'](_0x534935,{'range':_0x8360c0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5467ee){for(const _0x46e665 of this['getRanges']())if(_0x46e665['isIntersecting'](_0x5467ee))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1bcf9c=>_0x1bcf9c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x459cd1,_0x35b33f)=>[..._0x459cd1,..._0x35b33f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x36f680=this['getRanges']();if(0x1!=_0x36f680['length'])return null;const _0x4bef24=_0x36f680[0x0],_0x396f36=_0x4bef24['start']['nodeAfter'],_0x2232e4=_0x4bef24['end']['nodeBefore'];return _0x396f36 instanceof _0xc1b524?_0x396f36!=_0x2232e4?null:_0x396f36: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 _0x678ffc=[];let _0x52f363=this['head'];for(;_0x52f363;)_0x678ffc['push'](_0x52f363),_0x52f363=_0x52f363['next'];return _0x678ffc;}['setAttribute'](_0x1e490e,_0xbd4946){const _0x2c937c=_0x2874d9(this['attributes']);_0x3b5b90(_0x2c937c,_0x1e490e,_0xbd4946),_0x4b5161(_0x2c937c,this['attributes'])||(this['attributes']=_0x2c937c,this['_onAttributesChange'](_0x2c937c));}['removeAttribute'](_0x3046de){const _0x46bac9=_0x2874d9(this['attributes']);_0x369aef(_0x46bac9,_0x3046de),_0x4b5161(_0x46bac9,this['attributes'])||(this['attributes']=_0x46bac9,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 _0x55f5c8()['substr'](0x1,0x5);}}function o(_0x3aac38,_0x5b4f3c,_0x5d8372){const t=_0x3aac38['t'];switch(_0x5b4f3c){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',_0x5d8372);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d8372);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d8372);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d8372);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d8372);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',_0x5d8372);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d8372);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',_0x5d8372);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d8372);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d8372);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d8372);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d8372);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d8372);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d8372);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d8372);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d8372);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d8372);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d8372);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d8372);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d8372);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d8372);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d8372);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d8372);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'},_0x5d8372);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d8372);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d8372);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d8372);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d8372);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d8372);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d8372);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d8372);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d8372);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'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d8372);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'},_0x5d8372);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d8372);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d8372);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'},_0x5d8372);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'},_0x5d8372);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'},_0x5d8372);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d8372);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x5d8372);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x5d8372);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x5d8372);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5b4f3c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5346b7,_0x23d5c5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5346b7,this['_locale']=_0x23d5c5;}['getDescriptions'](_0x437081){const _0x397f4e=[],_0x4e84b4=new Set(),_0x4e765e=new Set();for(let _0x3ed62c=0x0;_0x3ed62c<_0x437081['length'];_0x3ed62c++){const _0x4dadca=_0x437081[_0x3ed62c];if(!_0x4dadca['isInContent'])continue;const _0x1bb5df=this['_handleCustomCallbackDescription'](_0x4dadca);if(_0x1bb5df){if(null!=_0x4dadca['subType']){if(_0x4e84b4['has'](_0x4dadca['subType']))continue;_0x4e84b4['add'](_0x4dadca['subType']);}_0x397f4e['push'](_0x1bb5df);}else{if('attribute'!=_0x4dadca['type'])'insertion'!=_0x4dadca['type']&&'deletion'!=_0x4dadca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x397f4e,_0x4dadca,_0x437081[_0x3ed62c+0x1]);else{const _0x3f87a9=_0x4dadca['data']['key'];if(_0x4e765e['has'](_0x3f87a9))continue;_0x4e765e['add'](_0x4dadca['data']['key']),_0x3f87a9==m?this['_handleRenameSuggestionDescription'](_0x397f4e,_0x4dadca):this['_handleAttributeSuggestionDescription'](_0x397f4e,_0x4dadca);}}}return this['_resolveDescriptionItems'](_0x397f4e);}['registerDescriptionCallback'](_0x406d5e){this['_customCallbacks']['push'](_0x406d5e);}['registerElementLabel'](_0x25d229,_0x10b3f2,_0x1202b9=_0x4d60ea['normal']){'function'==typeof _0x25d229?_0x20cd94(this['_itemLabelsCallbacks'],{'matchingCallback':_0x25d229,'label':_0x10b3f2,'priority':_0x1202b9}):this['_itemLabels']['set'](_0x25d229,_0x10b3f2);}['registerAttributeLabel'](_0x1f9e36,_0x16b173){this['_attributeLabels']['set'](_0x1f9e36,_0x16b173);}['getItemLabel'](_0x11393a,_0x1aa6eb=0x1){let _0x1c405d;for(const _0xd1cd0a of this['_itemLabelsCallbacks'])if(_0xd1cd0a['matchingCallback'](_0x11393a)){_0x1c405d=_0xd1cd0a['label'];break;}return _0x1c405d||(_0x1c405d=this['_itemLabels']['get'](_0x11393a['name'])),_0x1c405d?_0x1c405d(_0x1aa6eb):0x1!==_0x1aa6eb?_0x1aa6eb+'\x20'+_0x11393a['name']+'s':''+_0x11393a['name'];}['_addDescriptionItems'](_0x1a243f,_0x40d890){const _0x1ff690=_0x40d890['getFirstRange']()['getWalker'](),_0x609de5='insertion'==_0x40d890['type']?'add':'remove';for(const _0x43258e of _0x1ff690){const _0x4f3320=_0x43258e['item'],_0x56e118=_0x1a243f[_0x1a243f['length']-0x1];if(_0x4f3320['is']('$textProxy'))_0x56e118&&_0x56e118['type']['indexOf']('Container')>-0x1&&_0x1a243f['pop'](),_0x56e118&&'text'==_0x56e118['type']?_0x56e118[_0x609de5]+=_0x4f3320['data']:_0x1a243f['push']({'type':'text','add':'add'==_0x609de5?_0x4f3320['data']:'','remove':'remove'==_0x609de5?_0x4f3320['data']:''});else{if(this['_schema']['isObject'](_0x4f3320)){const _0x3b5099=_0x4f3320;if(_0x56e118&&_0x56e118['type']['indexOf']('Container')>-0x1&&_0x1a243f['pop'](),'elementEnd'==_0x43258e['type'])continue;_0x56e118&&_0x56e118['type']==_0x609de5+'Object'&&_0x56e118['element']['name']==_0x3b5099['name']?_0x56e118['quantity']++:_0x1a243f['push']({'type':_0x609de5+'Object','element':_0x3b5099,'quantity':0x1}),_0x1ff690['skip'](_0x3f03fa=>!('elementEnd'==_0x3f03fa['type']&&_0x3f03fa['item']==_0x4f3320));}else{if(this['_schema']['checkChild'](_0x4f3320,'$text')||_0x4f3320['is']('element','softBreak')){const _0x2ed072=_0x4f3320;if('add'==_0x609de5&&'elementStart'==_0x43258e['type']||'remove'==_0x609de5&&'elementEnd'==_0x43258e['type'])continue;if(_0x56e118&&-0x1==_0x56e118['type']['indexOf']('Container')){'text'==_0x56e118['type']&&(_0x56e118[_0x609de5]+='\x0a');continue;}let _0x3adbdf;if(_0x3adbdf='add'==_0x609de5?_0x2ed072['nextSibling']&&!this['_schema']['isObject'](_0x2ed072['nextSibling'])?_0x2ed072['nextSibling']:null:_0x2ed072['previousSibling']&&!this['_schema']['isObject'](_0x2ed072['previousSibling'])?_0x2ed072['previousSibling']:null,_0x2ed072['isEmpty']||_0x3adbdf&&_0x3adbdf['isEmpty']){const _0x201c10=_0x3adbdf&&_0x3adbdf['isEmpty']?_0x3adbdf:_0x2ed072;_0x56e118&&_0x56e118['type']==_0x609de5+'EmptyContainer'&&_0x56e118['element']['name']==_0x201c10['name']?_0x56e118['quantity']++:_0x1a243f['push']({'type':_0x609de5+'EmptyContainer','element':_0x201c10,'quantity':0x1});}else _0x1a243f['push']({'type':_0x609de5+'Container','element':_0x2ed072});}}}}}['_resolveDescriptionItems'](_0x1cda94){const _0x551af8=this['_locale'],_0x2b370d=[],_0x1caef8=[],_0x23dfa0=[];for(const _0x343694 of _0x1cda94)switch(_0x343694['type']){case'text':if(_0x343694['add']=_0x343694['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x343694['remove']=_0x343694['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x343694['add']&&''!=_0x343694['remove']){_0x2b370d['push']({'type':'replace','content':o(_0x551af8,'REPLACE_TEXT',['\x22'+_0x343694['remove']+'\x22','\x22'+_0x343694['add']+'\x22'])});continue;}if(null!=_0x343694['add']['match'](/^ +$/)){_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Insert:*\x20%0',o(_0x551af8,'ELEMENT_SPACE',_0x343694['add']['length']))});continue;}if(null!=_0x343694['remove']['match'](/^ +$/)){_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Remove:*\x20%0',o(_0x551af8,'ELEMENT_SPACE',_0x343694['remove']['length']))});continue;}if(''!=_0x343694['add']){_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Insert:*\x20%0','\x22'+_0x343694['add']+'\x22')});continue;}_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Remove:*\x20%0','\x22'+_0x343694['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Insert:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Remove:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'addContainer':_0x2b370d['push']({'type':'insertion','content':o(_0x551af8,'*Split:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'removeContainer':_0x2b370d['push']({'type':'deletion','content':o(_0x551af8,'*Merge:*\x20%0',this['getItemLabel'](_0x343694['element'],_0x343694['quantity']))});continue;case'addFormat':_0x1caef8['push'](_0x343694['key']);continue;case'removeFormat':_0x23dfa0['push'](_0x343694['key']);continue;default:_0x2b370d['push'](_0x343694);}if(_0x1caef8['length']){const _0x1b8969=_0x1caef8['map'](_0x438df8=>this['_attributeLabels']['has'](_0x438df8)?this['_attributeLabels']['get'](_0x438df8):_0x438df8)['join'](',\x20');_0x2b370d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1b8969)});}if(_0x23dfa0['length']){const _0x5dc89c=_0x23dfa0['map'](_0x4034df=>this['_attributeLabels']['has'](_0x4034df)?this['_attributeLabels']['get'](_0x4034df):_0x4034df)['join'](',\x20');_0x2b370d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5dc89c)});}return _0x2b370d;}['_handleCustomCallbackDescription'](_0xe1e033){for(const _0x43bb43 of this['_customCallbacks']){const _0x58a143=_0x43bb43(_0xe1e033);if(_0x58a143&&'type'in _0x58a143)return _0x58a143;}}['_handleAttributeSuggestionDescription'](_0x5ca85c,_0x555e2c){const _0x50bda6=_0x555e2c['data'],_0x500752=void 0x0===_0x50bda6['newValue']?'removeFormat':'addFormat';_0x5ca85c['push']({'type':_0x500752,'key':_0x50bda6['key']});}['_handleRenameSuggestionDescription'](_0x208bc4,_0x1645d3){_0x208bc4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1645d3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57fb95,_0x18f469,_0x42911a){if(this['_addDescriptionItems'](_0x57fb95,_0x18f469),_0x42911a&&_0x42911a['getFirstRange']()&&!_0x18f469['getFirstRange']()['end']['isEqual'](_0x42911a['getFirstRange']()['start'])){const _0x5c7778=_0x57fb95[_0x57fb95['length']-0x1],_0x3d48ec='insertion'==_0x18f469['type']?'add':'remove';_0x5c7778&&'text'==_0x5c7778['type']&&(_0x5c7778[_0x3d48ec]+='\x0a');}}}class V extends _0x55f69e{['afterInit'](){const _0x4d499e=this['editor'],_0xa4f83b=_0x4d499e['plugins']['get']('TrackChangesEditing');_0x4d499e['commands']['get']('showAIAssistant')&&_0xa4f83b['enableCommand']('showAIAssistant');}}class U extends _0x55f69e{['afterInit'](){const _0x36eb8f=this['editor'],_0x404091=_0x36eb8f['locale'];if(!_0x36eb8f['plugins']['has']('AlignmentEditing'))return;const _0x23a91b=_0x36eb8f['plugins']['get']('TrackChangesEditing');_0x23a91b['enableDefaultAttributesIntegration']('alignment'),_0x23a91b['registerBlockAttribute']('alignment'),_0x23a91b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x404091,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35bb2f=this['editor'],_0x149739=_0x35bb2f['locale'];_0x35bb2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x341b95=>{if('formatBlock'!=_0x341b95['type'])return;const {data:_0x4cb1c5}=_0x341b95;if(_0x4cb1c5&&'alignment'==_0x4cb1c5['commandName']){const _0x1ee541=_0x4cb1c5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x149739,'*Format:*\x20%0',function(_0x3dceba){switch(_0x3dceba){case'left':return o(_0x149739,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x149739,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x149739,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x149739,'FORMAT_JUSTIFY_TEXT');}}(_0x1ee541))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x55f69e{['afterInit'](){const _0x1c8dfd=this['editor'],_0x19433e=_0x1c8dfd['plugins']['get']('TrackChangesEditing'),_0x2175fd=_0x1c8dfd['locale'];for(const _0xd40f08 of ti){if(!_0x1c8dfd['plugins']['has'](_0xd40f08))continue;const _0x22d6bc=_0xd40f08['slice'](0x0,-0x7)['toLowerCase'](),_0x107c92='FORMAT_'+_0x22d6bc['toUpperCase']();_0x19433e['enableDefaultAttributesIntegration'](_0x22d6bc),_0x19433e['registerInlineAttribute'](_0x22d6bc),_0x19433e['descriptionFactory']['registerAttributeLabel'](_0x22d6bc,o(_0x2175fd,_0x107c92));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x172d52=this['editor'],_0xfbcac1=_0x172d52['locale'],_0x3065cf=_0x172d52['plugins']['get']('TrackChangesEditing');function _0x24e65f(_0x3f45e6,_0x3d428b){_0x3065cf['descriptionFactory']['registerDescriptionCallback'](_0x44622d=>{if('formatInline'!=_0x44622d['type'])return;const {data:_0x9e6fb4}=_0x44622d;return _0x9e6fb4&&_0x9e6fb4['commandName']===_0x3f45e6?_0x9e6fb4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfbcac1,'*Format:*\x20%0',_0x3d428b)}:{'type':'format','content':o(_0xfbcac1,'*Remove\x20format:*\x20%0',_0x3d428b)}:void 0x0;});}_0x24e65f('bold',o(_0xfbcac1,'FORMAT_BOLD')),_0x24e65f('italic',o(_0xfbcac1,'FORMAT_ITALIC')),_0x24e65f('underline',o(_0xfbcac1,'FORMAT_UNDERLINE')),_0x24e65f('code',o(_0xfbcac1,'FORMAT_CODE')),_0x24e65f('strikethrough',o(_0xfbcac1,'FORMAT_STRIKETHROUGH')),_0x24e65f('subscript',o(_0xfbcac1,'FORMAT_SUBSCRIPT')),_0x24e65f('superscript',o(_0xfbcac1,'FORMAT_SUPERSCRIPT'));}}class F extends _0x55f69e{['afterInit'](){const _0x519257=this['editor'],_0x150cc3=_0x519257['locale'];if(!_0x519257['plugins']['has']('BlockQuoteEditing'))return;const _0x200ce2=_0x519257['plugins']['get']('TrackChangesEditing'),_0x12d9e8=this['editor']['commands']['get']('blockQuote');_0x200ce2['enableCommand']('blockQuote',(_0x2869cc,_0x5a7ea1={})=>{const _0x29857e=this['editor']['model']['document']['selection'],_0xc4dd3=_0x5a7ea1&&void 0x0!==_0x5a7ea1['forceValue']?_0x5a7ea1['forceValue']:!_0x12d9e8['value'];let _0xcc5cd7=[];if(_0xc4dd3){const _0x42b791=Array['from'](_0x29857e['getSelectedBlocks']())['filter'](_0x289238=>oo(_0x289238)||function(_0x10f5e1,_0x170a92){const _0x41e8b7=_0x170a92['checkChild'](_0x10f5e1['parent'],'blockQuote'),_0x44c743=_0x170a92['checkChild'](['$root','blockQuote'],_0x10f5e1);return _0x41e8b7&&_0x44c743;}(_0x289238,this['editor']['model']['schema']));_0xcc5cd7=to(_0x42b791,_0x519257['model']);}else{const _0x1c4189=Array['from'](_0x29857e['getSelectedBlocks']())['filter'](_0x2dc12e=>oo(_0x2dc12e));_0xcc5cd7=to(_0x1c4189,_0x519257['model']);}_0x519257['model']['change'](()=>{for(const _0x82595 of _0xcc5cd7)_0x200ce2['markBlockFormat'](_0x82595,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xc4dd3}]});});}),_0x200ce2['descriptionFactory']['registerDescriptionCallback'](_0x1f62dd=>{const {data:_0x50ca89}=_0x1f62dd;if(_0x50ca89&&'blockQuote'==_0x50ca89['commandName']){const _0x4f052b=o(_0x150cc3,'ELEMENT_BLOCK_QUOTE');return _0x50ca89['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x150cc3,'*Set\x20format:*\x20%0',_0x4f052b)}:{'type':'format','content':o(_0x150cc3,'*Remove\x20format:*\x20%0',_0x4f052b)};}});}}function oo(_0xfde184){return'blockQuote'==_0xfde184['parent']['name'];}class L extends _0x55f69e{['afterInit'](){const _0xf5847e=this['editor'];_0xf5847e['plugins']['has']('CaseChange')&&(_0xf5847e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xf5847e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xf5847e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x55f69e{['afterInit'](){const _0x158c68=this['editor'];_0x158c68['commands']['get']('ckbox')&&_0x158c68['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x55f69e{['afterInit'](){const _0x5dbb90=this['editor'];if(!_0x5dbb90['plugins']['has']('CodeBlock'))return;const _0x183a76=_0x5dbb90['plugins']['get']('TrackChangesEditing'),_0x3e5e50=_0x5dbb90['locale'],_0x12de00=_0x5dbb90['config']['get']('codeBlock')['languages'],_0x30ee00=_0x5dbb90['commands']['get']('codeBlock');_0x183a76['enableCommand']('indentCodeBlock'),_0x183a76['enableCommand']('outdentCodeBlock'),_0x183a76['enableCommand']('codeBlock',(_0x4ef05f,_0x80a3ec={})=>{const _0x3f65eb=_0x5dbb90['model'],_0x45b705=_0x5dbb90['model']['document']['selection'],_0x54896c=_0x80a3ec&&void 0x0!==_0x80a3ec['forceValue']?_0x80a3ec['forceValue']:!_0x30ee00['value'];let _0x823a19;_0x80a3ec['language']||(_0x80a3ec['language']=_0x12de00[0x0]['language']),_0x823a19=_0x54896c?Array['from'](_0x45b705['getSelectedBlocks']())['filter'](_0x4d09c0=>eo(_0x4d09c0)||function(_0x2dd16a,_0xa83832){if(_0x2dd16a['is']('rootElement')||_0xa83832['isLimit'](_0x2dd16a))return!0x1;return _0xa83832['checkChild'](_0x2dd16a['parent'],'codeBlock');}(_0x4d09c0,_0x3f65eb['schema'])):Array['from'](_0x45b705['getSelectedBlocks']())['filter'](_0xd213d4=>eo(_0xd213d4));const _0x2c29d3=to(_0x823a19,_0x3f65eb);_0x3f65eb['change'](()=>{for(const _0x26325c of _0x2c29d3)_0x183a76['markBlockFormat'](_0x26325c,{'commandName':'codeBlock','commandParams':[{..._0x80a3ec,'forceValue':_0x54896c}],'formatGroupId':'blockName'});});}),(_0x183a76['descriptionFactory']['registerElementLabel']('codeBlock',_0xc179e7=>o(_0x3e5e50,'ELEMENT_CODE_BLOCK',_0xc179e7)),_0x183a76['descriptionFactory']['registerDescriptionCallback'](_0x796fd1=>{if('formatBlock'!=_0x796fd1['type'])return;const _0x45bf0b=_0x3e5e50['t'],{data:_0x2b4fc3}=_0x796fd1;if(!_0x2b4fc3||'codeBlock'!=_0x2b4fc3['commandName'])return;const _0xb39e3e=_0x2b4fc3['commandParams'][0x0]['language'],_0x4f54b8=_0x45bf0b(_0x12de00['find'](_0x5d1e9c=>_0x5d1e9c['language']===_0xb39e3e)['label'])['toLowerCase']();return _0x2b4fc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e5e50,'*Set\x20format:*\x20%0',o(_0x3e5e50,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4f54b8+')')}:{'type':'format','content':o(_0x3e5e50,'*Remove\x20format:*\x20%0',o(_0x3e5e50,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5ac74c){return'codeBlock'==_0x5ac74c['name'];}class q extends _0x55f69e{['afterInit'](){const _0x5ef2b9=this['editor'];if(!_0x5ef2b9['plugins']['has']('CommentsEditing'))return;_0x5ef2b9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x44b7e3,_0x220856,_0x38ed63){const _0x2f4e6a=[];for(const _0x4fc085 of _0x220856['getItems']())_0x4fc085['hasAttribute'](_0x44b7e3)&&_0x2f4e6a['push'](_0x38ed63['createRangeOn'](_0x4fc085));return _0x2f4e6a;}function _e(_0x10b1eb,_0x2cb4ca,{showActiveMarker:_0x5a4e2e=!0x0}={}){const _0x1c6b71=_0x10b1eb['plugins']['get']('TrackChangesEditing');return(_0x2e3e7d,_0x32e340,_0x5ce2d2)=>{if(!_0x5ce2d2['consumable']['test'](_0x32e340['markerRange'],_0x2e3e7d['name']))return;const _0x237aa2=_0x32e340['markerRange']['getWalker'](),_0x6bed2f=_0x32e340['markerRange']['start'],_0x1707f9=_0x10b1eb['model']['schema'];let _0x1fb07e=null,_0x5209d7=null,_0x3c23c8=!0x1,_0x43e747=!0x1;for(const _0x3bde64 of _0x237aa2){const _0x335ce8=_0x3bde64['item'];_0x3c23c8=_0x3c23c8||_0x1707f9['isContent'](_0x335ce8);const _0x4f50c8=_0x5ce2d2['mapper']['toViewElement'](_0x335ce8);if(_0x4f50c8&&_0x4f50c8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3bde64['type']&&(_0x1707f9['isBlock'](_0x335ce8)&&!_0x1707f9['isLimit'](_0x335ce8)&&(_0x335ce8['nextSibling']||_0x6bed2f['isAtEnd']?_0x1fb07e&&_0x1fb07e['parent']==_0x335ce8||(_0x1fb07e=_0x335ce8,_0x19546c(_0x3bde64['previousPosition']),_0x43e747=!0x0):_0x5209d7=_0x5209d7||_0x3bde64['previousPosition']));}function _0x19546c(_0xce47a4){const {authorId:_0x26a1c9}=_0x1c6b71['_splitMarkerName'](_0x32e340['markerName']),_0x35a277=_0x5ce2d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cb4ca,'data-author-id':_0x26a1c9}),_0x10d72b=_0x5ce2d2['mapper']['toViewPosition'](_0xce47a4);_0x5a4e2e&&_0x1c6b71['activeMarkers']['includes'](_0x32e340['markerName'])&&_0x5ce2d2['writer']['addClass']('ck-suggestion-marker--active',_0x35a277),_0x5ce2d2['writer']['insert'](_0x10d72b,_0x35a277),_0x5ce2d2['mapper']['bindElementToMarker'](_0x35a277,_0x32e340['markerName']);}_0x3c23c8||_0x43e747||!_0x5209d7||_0x19546c(_0x5209d7);};}class z extends _0x55f69e{static get['requires'](){return[_0x6be264];}['init'](){const _0x5be670=this['editor'],_0x5b772f=_0x5be670['plugins']['get']('TrackChangesEditing');_0x5b772f['enableCommand']('delete');const _0x14d836=_0x5be670['commands']['get']('deleteForward');_0x5b772f['enableCommand']('deleteForward',(_0x1026b7,_0x8c51d7={})=>{const _0x38f5c8=_0x5be670['model']['createSelection'](_0x5be670['model']['document']['selection']);_0x38f5c8['isCollapsed']&&_0x5be670['model']['modifySelection'](_0x38f5c8,{'direction':'forward','unit':_0x8c51d7['unit']});const _0x21d47f=_0x38f5c8['getFirstRange'](),_0x5823c1=_0x46da37['fromRange'](_0x21d47f);let _0x4806cf;_0x1026b7(_0x8c51d7),_0x4806cf='$graveyard'==_0x5823c1['root']['rootName']?_0x5be670['model']['createRange'](_0x21d47f['start']):_0x5be670['model']['createRange'](_0x5823c1['start'],_0x5823c1['end']),_0x5823c1['detach'](),_0x5be670['model']['enqueueChange'](_0x14d836['buffer']['batch'],_0x11a5a2=>{_0x14d836['buffer']['lock'](),_0x11a5a2['setSelection'](_0x11a5a2['createRange'](_0x4806cf['end'])),_0x14d836['buffer']['unlock']();});}),_0x5be670['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5be670,'merge'),{'priority':'high'}),_0x5be670['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x42e456,_0x5edc3a,_0x2eb244)=>{_0x2eb244['options']['showSuggestionHighlights']&&_e(_0x5be670,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x42e456,_0x5edc3a,_0x2eb244);},{'priority':'high'}),_0x5be670['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fa2c1,_0x1698d9,_0x2517db)=>{const _0xc6d955=_0x2517db['mapper']['markerNameToElements'](_0x1698d9['markerName']);if(_0xc6d955){for(const _0xc9b80 of _0xc6d955)_0xc9b80['is']('uiElement')&&(_0x2517db['mapper']['unbindElementFromMarkerName'](_0xc9b80,_0x1698d9['markerName']),_0x2517db['writer']['remove'](_0xc9b80));}},{'priority':'high'});}}class K extends _0x55f69e{['afterInit'](){const _0x13e17a=this['editor'];if(!_0x13e17a['plugins']['has']('ListEditing'))return;const _0x11df1f=_0x13e17a['locale'],_0x29910b=_0x13e17a['plugins']['get']('TrackChangesEditing'),_0x5cea6a=_0x13e17a['plugins']['has']('TodoListEditing'),_0x3adf7b=!!_0x13e17a['config']['get']('list.multiBlock');function _0x82a76c(_0x3512bd){return{'type':'format','content':''+o(_0x11df1f,'*Set\x20format:*\x20%0',_0x3512bd)};}function _0x4b74c0(_0x30954f){return{'type':'format','content':''+o(_0x11df1f,'*Remove\x20format:*\x20%0',_0x30954f)};}_0x29910b['enableDefaultAttributesIntegration']('numberedList'),_0x29910b['enableDefaultAttributesIntegration']('bulletedList'),_0x29910b['enableDefaultAttributesIntegration']('customNumberedList'),_0x29910b['enableDefaultAttributesIntegration']('customBulletedList'),_0x29910b['enableDefaultAttributesIntegration']('indentList'),_0x29910b['enableDefaultAttributesIntegration']('outdentList'),_0x29910b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x29910b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x29910b['registerBlockAttribute']('listItemId'),_0x29910b['registerBlockAttribute']('listType'),_0x29910b['registerBlockAttribute']('listIndent'),_0x3adf7b&&(_0x29910b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x29910b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5cea6a&&(_0x29910b['enableDefaultAttributesIntegration']('todoList'),_0x29910b['enableDefaultAttributesIntegration']('checkTodoList'),_0x29910b['registerBlockAttribute']('todoListChecked'),_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0xd6d7b1=>{const {data:_0x54f543}=_0xd6d7b1;if(_0x54f543&&'todoListChecked'==_0x54f543['key'])return{'type':'format','content':_0x54f543['newValue']?o(_0x11df1f,'*Check\x20item*'):o(_0x11df1f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d14cb=>{if(_0x2d14cb['batch']['isUndo'])return!0x1;let _0x1ccf6b=!0x1;const _0x5c7d13=_0x29910b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e5bc9=>'todoListChecked'===_0x29910b['_getAttributeKey'](_0x1e5bc9));for(const _0x1b48d7 of _0x5c7d13){'todo'!=_0x1b48d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x29910b['_findSuggestions'](_0x1b48d7['getFirstRange'](),'attribute')['find'](_0x4acccb=>'listType'===_0x29910b['_getAttributeKey'](_0x4acccb['suggestion']))||(_0x2d14cb['removeMarker'](_0x1b48d7['getFirstMarker']()),_0x1ccf6b=!0x0));}return _0x1ccf6b;})),_0x29910b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x11df1f,'FORMAT_INDENT'));const _0x3c25bb={'type':'format','content':''};_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0x51ca39=>{const {data:_0x5f0038}=_0x51ca39;if(!_0x5f0038||'listType'!=_0x5f0038['key'])return;let _0x45e103=_0x51ca39['head'];for(;_0x45e103;){if(_0x45e103['data']&&(('listStyle'==_0x45e103['data']['key']||'listMarkerStyle'==_0x45e103['data']['key'])&&(_0x45e103['data']['newValue']&&'default'!=_0x45e103['data']['newValue']||'default'!=_0x45e103['data']['oldValue']&&!_0x5f0038['newValue'])||!_0x3adf7b&&_0x45e103['data']['key']==m))return _0x3c25bb;_0x45e103=_0x45e103['next'];}if(null==_0x5f0038['newValue'])switch(_0x5f0038['oldValue']){case'bulleted':return _0x4b74c0(o(_0x11df1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b74c0(o(_0x11df1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b74c0(o(_0x11df1f,'ELEMENT_TODO_LIST'));}switch(_0x5f0038['newValue']){case'bulleted':return _0x82a76c(o(_0x11df1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x82a76c(o(_0x11df1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x82a76c(o(_0x11df1f,'ELEMENT_TODO_LIST'));}}),_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0x21854a=>{const {data:_0x117dc3}=_0x21854a;if(_0x117dc3&&'listIndent'==_0x117dc3['key'])return null==_0x117dc3['newValue']||null==_0x117dc3['oldValue']&&0x0==_0x117dc3['newValue']?_0x3c25bb:void 0x0;}),_0x29910b['descriptionFactory']['registerDescriptionCallback'](_0x4ca8b9=>{if('attribute'!=_0x4ca8b9['type'])return;const {data:_0x291919}=_0x4ca8b9;if(!_0x291919||'listItemId'!=_0x291919['key'])return;const _0x1282e1=Ee(_0x4ca8b9);return'newValue'==_0x1282e1?{'type':'format','content':o(_0x11df1f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1282e1?{'type':'format','content':o(_0x11df1f,'*Split:*\x20list\x20item')}:_0x3c25bb;}),_0x13e17a['model']['document']['registerPostFixer'](_0x367eaf=>this['listItemIdFixer'](_0x367eaf)),_0x13e17a['model']['document']['registerPostFixer'](_0x235422=>this['noTrackChangesFixer'](_0x235422)),_0x13e17a['model']['document']['on']('change:data',(_0x1f06bf,_0x54cdfd)=>{if(_0x54cdfd['isUndo']||!_0x54cdfd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb315d3){if(_0xb315d3['batch']['isUndo']||!_0xb315d3['batch']['isLocal'])return!0x1;let _0x4f96f5=!0x1;const _0x17ae5e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a4951=>_0x5a4951['data']&&'listItemId'==_0x5a4951['data']['key'])['filter'](_0x5250c7=>_0x5250c7['data']['newValue']&&_0x5250c7['data']['oldValue']);for(const _0x1b6fd3 of _0x17ae5e)Ee(_0x1b6fd3)||(_0xb315d3['removeMarker'](_0x1b6fd3['getFirstMarker']()),_0x4f96f5=!0x0);return _0x4f96f5;}['noTrackChangesFixer'](_0xd5ae2e){if(_0xd5ae2e['batch']['isUndo']||!_0xd5ae2e['batch']['isLocal'])return!0x1;const _0x5ea689=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5ea689['trackChangesCommand']['value'])return!0x1;let _0x3333fe=!0x1;const _0x35fad3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2d6764=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2474ee=>'attribute'==_0x2474ee['type'])['filter'](_0x2ebff6=>_0x35fad3['includes'](_0x2ebff6['attributeKey']));if(0x0==_0x2d6764['length'])return _0x3333fe;for(const _0x528add of _0x2d6764){const _0x1928bb=_0x5ea689['_findSuggestions'](_0x528add['range'],'attribute')['filter'](_0x3432f3=>!_0x3432f3['meta']['isNextTo'])['map'](_0xe70e76=>_0xe70e76['suggestion'])['filter'](_0x1682a8=>{const _0x1ad513=_0x5ea689['_getAttributeKey'](_0x1682a8);return _0x35fad3['includes'](_0x1ad513);});if(_0x1928bb['length']){for(const _0x2bed8f of _0x1928bb)_0xd5ae2e['removeMarker'](_0x2bed8f['getFirstMarker']());_0x3333fe=!0x0;}}return _0x3333fe;}['assureChains'](){const _0x30cc5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55662d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c298b;const _0x5e7a50=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xbc2071=>{if(_0xbc2071['data']['oldRange']||!_0xbc2071['data']['newRange'])return null;if(!_0xbc2071['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2c9159}=_0x30cc5b['_splitMarkerName'](_0xbc2071['name']);if(!_0x30cc5b['hasSuggestion'](_0x2c9159))return null;const _0x180fa8=_0x30cc5b['getSuggestion'](_0x2c9159);return _0x55662d['includes'](_0x180fa8['data']['key']);})['map'](_0x56937d=>{const {id:_0x3a2211}=_0x30cc5b['_splitMarkerName'](_0x56937d['name']),_0x4e88bd=_0x30cc5b['getSuggestion'](_0x3a2211);return _0x5c298b=_0x4e88bd['attributes']['groupId'],_0x4e88bd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5e7a50['size'])return;const _0x554bf0=_0x30cc5b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19b72b=>'attribute'==_0x19b72b['type']&&_0x19b72b['data']&&_0x55662d['includes'](_0x19b72b['data']['key'])&&_0x19b72b['attributes']['groupId']!=_0x5c298b)['map'](_0xaecc77=>({'listItem':_0xaecc77['getFirstRange']()['start']['nodeAfter'],'groupId':_0xaecc77['attributes']['groupId']})),_0x5485bb=new Set();for(const {groupId:_0xbdb4b0,listItem:_0x4337cd}of _0x554bf0)_0x5e7a50['has'](_0x4337cd)&&_0x5485bb['add'](_0xbdb4b0);for(const _0x115a2b of _0x30cc5b['getSuggestions']())_0x5485bb['has'](_0x115a2b['attributes']['groupId'])&&_0x115a2b['setAttribute']('groupId',_0x5c298b);}['_supportLegacySuggestions'](){const _0x20722a=this['editor'],_0x23a84c=_0x20722a['locale'],_0x5c532c=_0x20722a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5c532c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x57f863,_0xb4e1b9){const _0x479eef=[];for(let _0x367dac of _0x57f863)_0x367dac['start']['nodeAfter']===_0x367dac['end']['parent']&&(_0x367dac=_0x20722a['model']['createRange'](_0x20722a['model']['createPositionAt'](_0x367dac['start']['nodeAfter'],0x0))),_0x479eef['push'](_0x367dac);_0x20722a['model']['change'](_0x4a7073=>{const _0x2da782=_0x20722a['model']['document']['selection'],_0x39c68b=Array['from'](_0x2da782['getRanges']())['map'](_0x29aea2=>_0x46da37['fromRange'](_0x29aea2));_0x4a7073['setSelection'](_0x479eef),_0x20722a['commands']['get'](_0xb4e1b9['commandName'])['refresh'](),_0xb4e1b9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x20722a['execute'](_0xb4e1b9['commandName'],..._0xb4e1b9['commandParams']),_0x4a7073['setSelection'](_0x39c68b);for(const _0x4c5938 of _0x39c68b)_0x4c5938['detach']();});}),_0x5c532c['descriptionFactory']['registerElementLabel'](function(_0x5f12c2){const _0x1a4f86=!_0x20722a['model']['schema']['isObject'](_0x5f12c2),_0x437071=_0x5f12c2['previousSibling'],_0x310b29=_0x5f12c2['nextSibling'],_0x4f9a84=_0x5f12c2['getAttribute']('listItemId'),_0x185bc7=!_0x437071||_0x437071['getAttribute']('listItemId')!==_0x4f9a84,_0x3d8fb4=!_0x310b29||_0x310b29['getAttribute']('listItemId')!==_0x4f9a84;return _0x1a4f86&&Boolean(_0x4f9a84)&&_0x185bc7&&_0x3d8fb4;},_0x5697e3=>o(_0x23a84c,'ELEMENT_LIST_ITEM',_0x5697e3));}['_registerLegacyDescription'](){const _0x575eb6=this['editor'],_0x216783=_0x575eb6['locale'];function _0x475cf1(_0x342cd6){const _0x28b4dd=_0x575eb6['commands']['get']('bulletedList')['value'],_0x4b8316=_0x575eb6['commands']['get']('numberedList')['value'];return'numberedList'===_0x342cd6?_0x28b4dd:_0x4b8316;}_0x575eb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3688f3){if('formatBlock'!=_0x3688f3['type'])return;const {data:_0x548ade}=_0x3688f3;if(!_0x548ade)return;let _0x3da306,_0xd08753,_0x24283a,_0x5d283f;switch(_0x548ade['commandName']){case'bulletedList':_0x24283a=_0x548ade['commandParams'][0x0]['forceValue'],_0x5d283f=_0x475cf1(_0x548ade['commandName']),_0x3da306=_0x24283a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d283f&&_0x575eb6['config']['get']('list.multiBlock')||(_0x3da306='*Change\x20to:*\x20%0'),_0xd08753={'type':'format','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24283a=_0x548ade['commandParams'][0x0]['forceValue'],_0x5d283f=_0x475cf1(_0x548ade['commandName']),_0x3da306=_0x24283a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d283f&&_0x575eb6['config']['get']('list.multiBlock')||(_0x3da306='*Change\x20to:*\x20%0'),_0xd08753={'type':'format','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3da306='*Indent:*\x20%0',_0xd08753={'type':'format','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3da306=function(_0x3aad6a){const _0x558e33=_0x3aad6a['getFirstRange']();let _0x2588e6=_0x558e33['start']['nodeAfter'];for(;_0x2588e6&&_0x558e33['containsItem'](_0x2588e6);){if(_0x2588e6['getAttribute']('listIndent')>0x0)return!0x1;_0x2588e6=_0x2588e6['nextSibling'];}return!0x0;}(_0x3688f3)?o(_0x216783,'*Format:*\x20remove\x20from\x20%0',o(_0x216783,function(_0x18bedd){return'ELEMENT_'+_0x18bedd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3688f3))):o(_0x216783,'*Outdent:*\x20%0',o(_0x216783,'ELEMENT_LIST_ITEM')),_0xd08753={'type':'format','content':_0x3da306};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x548ade['multipleBlocks']&&(_0x3da306='*Merge:*\x20%0',_0xd08753={'type':'deletion','content':o(_0x216783,_0x3da306,o(_0x216783,'ELEMENT_LIST_ITEM'))});}return _0xd08753;});}}function Ee(_0x3029db){let _0x10520c=_0x3029db['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10520c;){const _0x5a973f=_0x10520c['getAttribute']('listItemId');if(!_0x5a973f)return!0x1;if(_0x5a973f==_0x3029db['data']['newValue'])return'newValue';if(_0x5a973f==_0x3029db['data']['oldValue'])return'oldValue';_0x10520c=_0x10520c['previousSibling'];}return!0x1;}class pe extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x252072=this['editor']['config']['get']('list.properties'),_0x3be6b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x252072['styles']&&(_0x3be6b5['enableDefaultAttributesIntegration']('listStyle'),_0x3be6b5['registerBlockAttribute']('listStyle')),_0x252072['reversed']&&(_0x3be6b5['enableDefaultAttributesIntegration']('listReversed'),_0x3be6b5['registerBlockAttribute']('listReversed')),_0x252072['startIndex']&&(_0x3be6b5['enableDefaultAttributesIntegration']('listStart'),_0x3be6b5['registerBlockAttribute']('listStart'));const _0x292c68={'type':'format','content':''};_0x3be6b5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xc6cf4d=this['editor']['locale'];_0x3be6b5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xc6cf4d,'FORMAT_LIST_REVERSED')),_0x3be6b5['descriptionFactory']['registerDescriptionCallback'](_0x4a540f=>{const {data:_0x3933b5}=_0x4a540f;if(_0x3933b5&&'listReversed'==_0x3933b5['key'])return null==_0x3933b5['newValue']||0x0==_0x3933b5['newValue']&&null==_0x3933b5['oldValue']?_0x292c68:void 0x0;}),_0x3be6b5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xc6cf4d,'FORMAT_LIST_START')),_0x3be6b5['descriptionFactory']['registerDescriptionCallback'](_0x426edf=>{const {data:_0x44d7db}=_0x426edf;if(_0x44d7db&&'listStart'==_0x44d7db['key'])return null==_0x44d7db['newValue']||0x1==_0x44d7db['newValue']&&null==_0x44d7db['oldValue']?_0x292c68:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xaddd27=>{if(_0xaddd27['batch']['isUndo'])return!0x1;let _0x406dd3=!0x1;const _0x5023ae=_0x3be6b5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33db70=>{const _0x2aa0d7=_0x3be6b5['_getAttributeKey'](_0x33db70);return'listStart'==_0x2aa0d7||'listReversed'==_0x2aa0d7;});for(const _0x14c0a7 of _0x5023ae){const _0x53dd75=_0x14c0a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x53dd75||'customNumbered'==_0x53dd75)continue;_0x3be6b5['_findSuggestions'](_0x14c0a7['getFirstRange'](),'attribute')['find'](_0x3e1631=>'listType'==_0x3be6b5['_getAttributeKey'](_0x3e1631['suggestion']))||(_0xaddd27['removeMarker'](_0x14c0a7['getFirstMarker']()),_0x406dd3=!0x0);}return _0x406dd3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xe07e06){const _0x18b648=this['editor']['locale'],{data:_0x52a424}=_0xe07e06,_0x4381c9={'type':'format','content':''};if(!_0x52a424||'listStyle'!=_0x52a424['key'])return;if(!_0x52a424['oldValue'])return'default'==_0x52a424['newValue']?_0x4381c9:{'type':'format','content':''+o(_0x18b648,'*Set\x20format:*\x20%0',o(_0x18b648,this['_getTranslationKeyForListStyle'](_0x52a424['newValue'])))};if(!_0x52a424['newValue']){if('default'==_0x52a424['oldValue'])return _0x4381c9;let _0x4ed406=_0xe07e06['head'];for(;_0x4ed406;){if(_0x4ed406['data']&&'listType'==_0x4ed406['data']['key']&&_0x4ed406['data']['newValue'])return _0x4381c9;_0x4ed406=_0x4ed406['next'];}return{'type':'format','content':''+o(_0x18b648,'*Remove\x20format:*\x20%0',o(_0x18b648,this['_getTranslationKeyForListStyle'](_0x52a424['oldValue'])))};}if('default'!=_0x52a424['newValue'])return{'type':'format','content':''+o(_0x18b648,'*Set\x20format:*\x20%0',o(_0x18b648,this['_getTranslationKeyForListStyle'](_0x52a424['newValue'])))};let _0x5a04f3=_0xe07e06['head'];for(;_0x5a04f3;){if(_0x5a04f3['data']&&'listType'==_0x5a04f3['data']['key']&&_0x5a04f3['data']['newValue']&&_0x5a04f3['data']['oldValue'])return _0x4381c9;_0x5a04f3=_0x5a04f3['next'];}return{'type':'format','content':o(_0x18b648,'*Set\x20format:*\x20%0',o(_0x18b648,'ELEMENT_'+_0xe07e06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x30623c=this['editor'],_0xa2d080=_0x30623c['locale'];_0x30623c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3150e6=>{if('formatBlock'!=_0x3150e6['type'])return;const {data:_0x4c3d03}=_0x3150e6;if(!_0x4c3d03)return;let _0x3bdc6d,_0x4c667f;switch(_0x4c3d03['commandName']){case'listStyle':_0x3bdc6d='*Change\x20to:*\x20%0',_0x4c667f={'type':'format','content':o(_0xa2d080,_0x3bdc6d,o(_0xa2d080,this['_getTranslationKeyForListStyle'](_0x4c3d03['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bdc6d=_0x4c3d03['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c667f={'type':'format','content':o(_0xa2d080,_0x3bdc6d)};break;case'listStart':_0x3bdc6d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c667f={'type':'format','content':o(_0xa2d080,_0x3bdc6d,_0x4c3d03['commandParams'][0x0]['startIndex'])};}return _0x4c667f;});}['_getTranslationKeyForListStyle'](_0x18f81b){return'ELEMENT_'+function(_0x498a59){if(ye['includes'](_0x498a59))return'bulleted';if(Se['includes'](_0x498a59))return'numbered';return null;}(_0x18f81b)['toUpperCase']()+'_LIST_'+_0x18f81b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x55f69e{static get['requires'](){return[_0x33b193];}['init'](){const _0x43ed94=this['editor'],_0x1746ea=_0x43ed94['plugins']['get']('TrackChangesEditing'),_0x439d85=_0x43ed94['commands']['get']('enter');_0x1746ea['enableCommand']('enter',()=>{_0x43ed94['model']['change'](_0xc5bd93=>{const _0x352f51=_0x43ed94['model']['document']['selection'],_0x46887e=_0x352f51['getFirstPosition'](),_0x4e2775=_0x46da37['fromRange'](_0x352f51['getFirstRange']());if(_0x439d85['enterBlock'](_0xc5bd93)){const _0xafb5a4=_0x43ed94['model']['createPositionAt'](_0x46887e['parent']['nextSibling'],0x0),_0xeccce4=_0xc5bd93['createRange'](_0x46887e,_0xafb5a4);_0x1746ea['markInsertion'](_0xeccce4);}else _0xc5bd93['setSelection'](_0xc5bd93['createRange'](_0x4e2775['end']));_0x4e2775['detach'](),_0x439d85['fire']('afterExecute',{'writer':_0xc5bd93});});}),_0x43ed94['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x43ed94,'split'),{'priority':'high'}),_0x43ed94['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xb4cfe1,_0x457e75,_0x46e23b)=>{const _0x552e0b=_0x46e23b['mapper']['markerNameToElements'](_0x457e75['markerName']);if(_0x552e0b){for(const _0x366075 of _0x552e0b)_0x366075['hasClass']('ck-suggestion-marker-split')&&(_0x46e23b['mapper']['unbindElementFromMarkerName'](_0x366075,_0x457e75['markerName']),_0x46e23b['writer']['remove'](_0x366075));}},{'priority':'high'}),_0x43ed94['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd4290e,_0x10d024,_0x305609)=>{_0x305609['options']['showSuggestionHighlights']&&_e(_0x43ed94,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xd4290e,_0x10d024,_0x305609);},{'priority':'high'});}}class X extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3e7f24=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e7f24['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3e7f24['enableCommand']('findNext'),_0x3e7f24['enableCommand']('findPrevious'),_0x3e7f24['enableCommand']('replace'),_0x3e7f24['enableCommand']('replaceAll');}['handleFindCommand'](_0x21d6d7,_0x3a4dc0,_0xeb178f={}){const _0x307483=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x21d6d7(_0x269214=>{let _0x7c5c09=('string'==typeof _0x3a4dc0?_0x307483['findByTextCallback'](_0x3a4dc0,_0xeb178f):_0x3a4dc0)(_0x269214);Array['isArray'](_0x7c5c09)&&(_0x7c5c09={'results':_0x7c5c09,'searchText':'string'==typeof _0x3a4dc0?_0x3a4dc0:''});const _0x58f22b=_0x7c5c09['results']['filter'](_0x368558=>!0x1===this['_isInDeletionRange'](_0x368558,_0x269214['item']));return{..._0x7c5c09,'results':_0x58f22b};},_0xeb178f);}['_isInDeletionRange'](_0x34f1c8,_0x34c809){const _0x424671=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34c809,_0x34f1c8['start']),this['editor']['model']['createPositionAt'](_0x34c809,_0x34f1c8['end']));for(const _0x217750 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x424671['getIntersection'](_0x217750['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x55f69e{['afterInit'](){const _0x4e21f2=this['editor']['locale'],_0x589086=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x464f70,commandName:_0x470144}of ro)this['editor']['plugins']['has'](_0x464f70)&&(_0x589086['enableDefaultAttributesIntegration'](_0x470144),_0x589086['registerInlineAttribute'](_0x470144));_0x589086['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4e21f2,'FORMAT_FONT_SIZE')),_0x589086['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4e21f2,'FORMAT_FONT_FAMILY')),_0x589086['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4e21f2,'FORMAT_FONT_COLOR')),_0x589086['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4e21f2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ccd8=this['editor'],_0x5bb51a=_0x37ccd8['locale'];_0x37ccd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x458d54=>{const _0x350328=_0x5bb51a['t'];if('formatInline'!=_0x458d54['type'])return;const {data:_0x461dc3}=_0x458d54;if(null!=_0x461dc3){if('fontSize'==_0x461dc3['commandName']){const _0x2b6fe7=_0x461dc3['commandParams'][0x0]['value'];if(_0x2b6fe7){const _0x3ae2d3=_0x350328(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x62c91d=>_0x62c91d['model']==_0x2b6fe7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20size:*\x20%0',_0x3ae2d3)};}return{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x461dc3['commandName']){const _0x5337c1=_0x461dc3['commandParams'][0x0]['value'];return _0x5337c1?{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20family:*\x20%0',_0x5337c1)}:{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x461dc3['commandName']){const _0x5ddfa1=_0x461dc3['commandParams'][0x0]['value'];if(_0x5ddfa1){const _0x2f44a0=_0x4730ad(this['editor']['config']['get']('fontColor.colors'))['find'](_0x30eeb8=>_0x30eeb8['model']==_0x5ddfa1);let _0x8e5e47=_0x5ddfa1,_0x557111='';return _0x2f44a0&&(_0x8e5e47=_0x2f44a0['label'],_0x557111=_0x350328(_0x8e5e47)['toLowerCase']()),{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20color:*\x20%0',_0x557111)['trim'](),'color':{'value':_0x5ddfa1,'title':_0x557111||_0x8e5e47}};}return{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x461dc3['commandName']){const _0x477c68=_0x461dc3['commandParams'][0x0]['value'];if(_0x477c68){const _0x58f192=_0x4730ad(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49d2de=>_0x49d2de['model']==_0x477c68);let _0x3facd3=_0x477c68,_0x3d4623='';return _0x58f192&&(_0x3facd3=_0x58f192['label'],_0x3d4623=_0x350328(_0x3facd3)['toLowerCase']()),{'type':'format','content':o(_0x5bb51a,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d4623)['trim'](),'color':{'value':_0x477c68,'title':_0x3d4623||_0x3facd3}};}return{'type':'format','content':o(_0x5bb51a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x55f69e{['afterInit'](){const _0x3c90a3=this['editor'],_0x2c3f56=_0x3c90a3['plugins']['get']('TrackChangesEditing'),_0x9e7a55=_0x3c90a3['commands']['get']('copyFormat'),_0x5978e2=_0x3c90a3['commands']['get']('pasteFormat');_0x9e7a55&&_0x5978e2&&(_0x2c3f56['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c3f56['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4be309=this['editor'],_0x46a6f9=_0x4be309['locale'];_0x4be309['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f33a5=>{if('formatBlock'!=_0x4f33a5['type']&&'formatInline'!=_0x4f33a5['type'])return;const {data:_0x439f1a}=_0x4f33a5;if(_0x439f1a&&'pasteFormat'===_0x439f1a['commandName']){const _0x19937d=[],_0x285c5f=_0x439f1a['commandParams'][0x0];for(const [_0x4020f9,_0x51b1de]of Object['entries'](_0x285c5f))_0x19937d['push'](so(_0x4be309,_0x4020f9,_0x51b1de));return _0x19937d['length']?{'type':'format','content':o(_0x46a6f9,'*Set\x20format\x20to:*\x20%0',_0x19937d['join'](',\x20'))}:{'type':'format','content':o(_0x46a6f9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2d9fc4,_0x58f9a8,_0x1bd704){const _0x1ab73e=_0x2d9fc4['locale']['t'],_0x4b50c6=_0x58f9a8['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e14a4=_0x1ab73e(_0x4b50c6['charAt'](0x0)['toUpperCase']()+_0x4b50c6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1bd704)return _0x5e14a4;if('fontColor'===_0x58f9a8||'fontBackgroundColor'===_0x58f9a8){const _0x191978=_0x4730ad(_0x2d9fc4['config']['get']('fontColor.colors'))['find'](_0x53609a=>_0x53609a['model']==_0x1bd704);return _0x5e14a4+'\x20('+(_0x191978?_0x1ab73e(_0x191978['label'])['toLowerCase']():_0x1bd704)+')';}if('fontSize'===_0x58f9a8&&isNaN(parseFloat(_0x1bd704))){const _0x45203a=_0x2d9fc4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2d9fc4['config']['get']('fontSize.options'))['find'](_0x59b734=>_0x59b734['model']==_0x1bd704);return _0x5e14a4+'\x20('+(_0x45203a?_0x1ab73e(_0x45203a['title'])['toLowerCase']():_0x1bd704)+')';}return _0x5e14a4+'\x20('+_0x1bd704+')';}class tt extends _0x55f69e{['_headingOptions'];['afterInit'](){const _0x24e6e6=this['editor'];if(!_0x24e6e6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24e6e6['config']['get']('heading.options');const _0x1c44cd=_0x24e6e6['locale'],_0x5aca18=_0x24e6e6['plugins']['get']('TrackChangesEditing');_0x5aca18['enableDefaultAttributesIntegration']('heading');for(const _0x2a3cea of this['_headingOptions'])'paragraph'!=_0x2a3cea['model']&&_0x5aca18['descriptionFactory']['registerElementLabel'](_0x2a3cea['model'],_0x37dc1c=>{const _0x2505de=this['_getHeadingLevel'](_0x2a3cea['model']);return null!==_0x2505de?_0x224401(_0x37dc1c,_0x2505de):_0x4179a6(_0x37dc1c,_0x2a3cea['title']);});function _0x224401(_0x3c1601,_0x456945){return o(_0x1c44cd,'ELEMENT_HEADING',[_0x3c1601,_0x456945]);}function _0x4179a6(_0xce40dd,_0x49784b){return o(_0x1c44cd,'ELEMENT_HEADING_CUSTOM',[_0xce40dd,_0x49784b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5344af=this['editor'],_0x170aff=_0x5344af['locale'];function _0x3d87f4(_0x4c5318,_0x44f19a){return o(_0x170aff,'ELEMENT_HEADING_CUSTOM',[_0x4c5318,_0x44f19a]);}_0x5344af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb27c=>{if('formatBlock'!=_0x3bb27c['type'])return;const {data:_0x445ad6}=_0x3bb27c;if(_0x445ad6&&'heading'==_0x445ad6['commandName']){const _0x415441=_0x445ad6['commandParams'][0x0]['value'],_0x48846d=this['_getHeadingLevel'](_0x415441);if(null!==_0x48846d)return{'type':'format','content':o(_0x170aff,'*Change\x20to:*\x20%0',(_0x236334=0x1,_0x240e3f=_0x48846d,o(_0x170aff,'ELEMENT_HEADING',[_0x236334,_0x240e3f])))};const _0x4f46b6=this['_headingOptions']['find'](_0x45b4b4=>_0x45b4b4['model']===_0x415441)['title'];return{'type':'format','content':o(_0x170aff,'*Change\x20to:*\x20%0',_0x3d87f4(0x1,_0x4f46b6))};}var _0x236334,_0x240e3f;});}['_getHeadingLevel'](_0x107cdc){const _0x347f2e=_0x107cdc['match'](/^heading(\d+)/);if(_0x347f2e)return _0x347f2e[0x1];const _0x3d270e=this['_headingOptions']?.['find'](_0x408689=>_0x408689['model']==_0x107cdc);if(_0x3d270e&&_0x3d270e['view']){const _0x16ae09=_0x3d270e['view'],_0xaf5fc4=(_0x16ae09['name']??_0x16ae09)['match'](/^h(\d+)/);if(_0xaf5fc4)return _0xaf5fc4[0x1];}return null;}}class et extends _0x55f69e{['afterInit'](){const _0xfef51a=this['editor'];if(!_0xfef51a['plugins']['has']('HighlightEditing'))return;const _0x49bb97=_0xfef51a['plugins']['get']('TrackChangesEditing'),_0x381de4=_0xfef51a['locale'];_0x49bb97['enableDefaultAttributesIntegration']('highlight'),_0x49bb97['registerInlineAttribute']('highlight'),_0x49bb97['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x381de4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2af9a6=this['editor'],_0x3fae57=_0x2af9a6['locale'];_0x2af9a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5595a9=>{if('formatInline'!=_0x5595a9['type'])return;const {data:_0x2084ce}=_0x5595a9;if(_0x2084ce&&'highlight'==_0x2084ce['commandName']){const _0x515e42=_0x3fae57['t'],_0x1a363e=_0x2084ce['commandParams'][0x0]['value'];if(_0x1a363e){const _0x5dbdb3=_0x2af9a6['config']['get']('highlight.options')['find'](_0x1bfd12=>_0x1bfd12['model']==_0x1a363e),_0x2e4136=_0x515e42(_0x5dbdb3['title'])['toLowerCase']();return{'type':'format','content':o(_0x3fae57,'*Set\x20highlight:*\x20%0',_0x2e4136),'color':{'value':_0x5dbdb3['color'],'title':_0x5dbdb3['title']}};}return{'type':'format','content':o(_0x3fae57,'*Remove\x20highlight*',o(_0x3fae57,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x55f69e{['afterInit'](){const _0x2fbc92=this['editor'];if(!_0x2fbc92['plugins']['has']('HorizontalLineEditing'))return;_0x2fbc92['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x31d411=_0x2fbc92['plugins']['get']('TrackChangesEditing'),_0x50fc88=_0x2fbc92['locale'];_0x31d411['descriptionFactory']['registerElementLabel']('horizontalLine',_0xe1952a=>o(_0x50fc88,'ELEMENT_HORIZONTAL_LINE',_0xe1952a)),_0x2fbc92['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x37b54f,{writer:_0x6b7e3f,options:_0x549b7f})=>{if(!_0x549b7f['showSuggestionHighlights'])return null;const _0x1eeb7f=_0x6b7e3f['createContainerElement']('div'),_0x41b211=_0x6b7e3f['createEmptyElement']('hr');return _0x6b7e3f['addClass']('ck-horizontal-line',_0x1eeb7f),_0x6b7e3f['insert'](_0x6b7e3f['createPositionAt'](_0x1eeb7f,0x0),_0x41b211),_0x1eeb7f;},'converterPriority':'high'});}}class st extends _0x55f69e{['afterInit'](){const _0x464a82=this['editor'];if(!_0x464a82['plugins']['has']('HtmlEmbed'))return;const _0x3f574d=_0x464a82['plugins']['get']('TrackChangesEditing'),_0x238f34=_0x464a82['locale'];_0x3f574d['descriptionFactory']['registerElementLabel']('rawHtml',_0x4b88c0=>o(_0x238f34,'ELEMENT_HTML_EMBED',_0x4b88c0)),_0x3f574d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3f574d['registerBlockAttribute']('value'),_0x3f574d['descriptionFactory']['registerDescriptionCallback'](_0x165445=>{if('attribute'!=_0x165445['type'])return;const {data:_0x2e86d3}=_0x165445;if(_0x2e86d3&&'value'==_0x2e86d3['key']&&_0x165445['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x121bbc=o(_0x238f34,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x238f34,'*Change\x20%0\x20content*',_0x121bbc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1691db=this['editor'],_0x33b0ca=_0x1691db['locale'];_0x1691db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575c73=>{if('formatBlock'!=_0x575c73['type'])return;const {data:_0x3b95b3}=_0x575c73;if(_0x3b95b3&&'htmlEmbed'==_0x3b95b3['commandName']){const _0x5637a8=o(_0x33b0ca,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x33b0ca,'*Change\x20%0\x20content*',_0x5637a8)};}});}}class nt extends _0x55f69e{['afterInit'](){const _0x2ca4dc=this['editor'];if(!_0x2ca4dc['plugins']['has']('ImageEditing'))return;const _0x3d4290=_0x2ca4dc['plugins']['get']('TrackChangesEditing'),_0x17cf72=_0x2ca4dc['plugins']['get']('ImageUtils'),_0x3ec782=_0x2ca4dc['locale'];_0x3d4290['enableCommand']('insertImage'),_0x3d4290['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e4737=>o(_0x3ec782,'ELEMENT_IMAGE',_0x5e4737)),_0x3d4290['descriptionFactory']['registerElementLabel']('imageInline',_0x32dbe2=>o(_0x3ec782,'ELEMENT_INLINE_IMAGE',_0x32dbe2)),_0x3d4290['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3ec782,'ELEMENT_CAPTION')),_0x2ca4dc['plugins']['has']('ImageUploadEditing')&&_0x3d4290['enableCommand']('uploadImage'),_0x2ca4dc['plugins']['has']('ImageBlockEditing')&&_0x2ca4dc['plugins']['has']('ImageInlineEditing')&&(_0x3d4290['enableCommand']('imageTypeInline',(_0x1c5092,_0x3050fd)=>{const _0x2b186a=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']);_0x2ca4dc['model']['change'](()=>{_0x3d4290['markBlockFormat'](_0x2b186a,{'commandName':'imageTypeInline','commandParams':[_0x3050fd]},[],'convertBlockImageToInline');});}),_0x3d4290['enableCommand']('imageTypeBlock',(_0x43ae0f,_0x33785)=>{_0x2ca4dc['model']['change'](_0x405c19=>{let _0x1d5b31=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x59ad14=_0x405c19['createRangeOn'](_0x1d5b31);const _0x10a8f4=_0x82d64c['fromPosition'](_0x59ad14['start'],'toPrevious'),_0x5d5e4e=_0x82d64c['fromPosition'](_0x59ad14['end'],'toNext');_0x3d4290['forceDefaultExecution'](()=>_0x43ae0f(_0x33785)),_0x1d5b31=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x59ad14=_0x405c19['createRangeOn'](_0x1d5b31);const _0xc1a865=_0x405c19['createRange'](_0x10a8f4,_0x5d5e4e);_0x10a8f4['detach'](),_0x5d5e4e['detach'](),_0x3d4290['markBlockFormat'](_0x1d5b31,{'commandName':'imageTypeInline','commandParams':[_0x33785]},[],'convertInlineImageToBlock'),_0xc1a865['start']['isBefore'](_0x59ad14['start'])&&_0x3d4290['markInsertion'](_0x405c19['createRange'](_0xc1a865['start'],_0x59ad14['start']),'convertInlineImageToBlock'),_0x59ad14['end']['isBefore'](_0xc1a865['end'])&&_0x3d4290['markInsertion'](_0x405c19['createRange'](_0x59ad14['end'],_0xc1a865['end']),'convertInlineImageToBlock');});}),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d4290['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4cf8e5])=>{const _0x3062a2=_0x3d4290['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x42709c=_0x4cf8e5['start'],_0x15cffb=_0x4cf8e5['end'];const _0x31f4ee=_0x2ca4dc['model']['schema']['getNearestSelectionRange'](_0x42709c,'backward'),_0x3bb25f=_0x2ca4dc['model']['schema']['getNearestSelectionRange'](_0x15cffb,'forward');_0x31f4ee['isCollapsed']&&(_0x42709c=_0x31f4ee['start']),_0x3bb25f['isCollapsed']&&(_0x15cffb=_0x3bb25f['end']),_0x3062a2([_0x2ca4dc['model']['createRange'](_0x42709c,_0x15cffb)]);}),_0x3d4290['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa2826),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa2826)),_0x2ca4dc['plugins']['has']('ImageCaptionEditing')&&(_0x3d4290['enableCommand']('toggleImageCaption',(_0x36f4e4,_0x474e05)=>{const _0x1e8419=_0x2ca4dc['plugins']['get']('ImageCaptionUtils');let _0x71e49d=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x175b1f=_0x1e8419['getCaptionFromImageModelElement'](_0x71e49d);_0x2ca4dc['model']['change'](()=>{if(_0x175b1f)return void _0x3d4290['markDeletion'](_0x2ca4dc['model']['createRangeOn'](_0x175b1f));const _0x159916=_0x17cf72['isBlockImage'](_0x71e49d);_0x36f4e4(_0x474e05),_0x71e49d=_0x17cf72['getClosestSelectedImageElement'](_0x2ca4dc['model']['document']['selection']),_0x175b1f=_0x1e8419['getCaptionFromImageModelElement'](_0x71e49d),_0x3d4290['markInsertion'](_0x2ca4dc['model']['createRangeOn'](_0x175b1f),_0x159916?null:'imageCaption');});}),_0x3d4290['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa2826));const _0x2aeee2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xc7382b(_0xecf472,_0x23a027){const _0x240d79=_0x2aeee2['findIndex'](({type:_0x3e87ff,subType:_0x1048d6})=>_0xecf472['type']==_0x3e87ff&&_0xecf472['subType']==_0x1048d6),_0x51874d=_0x2aeee2['findIndex'](({type:_0x426928,subType:_0x1e15f1})=>_0x23a027['type']==_0x426928&&_0x23a027['subType']==_0x1e15f1);if(_0x240d79<0x0||_0x51874d<0x0)return!0x1;const _0x499b22=_0xecf472['getFirstRange'](),_0x32c56e=_0x23a027['getFirstRange']();if((0x0==_0x240d79||0x1==_0x240d79)&&0x2==_0x51874d&&_0x499b22['isIntersecting'](_0x32c56e))return!0x0;if(0x2==_0x240d79&&0x3==_0x51874d){const _0x53ffa2=_0x3d4290['_findSuggestions'](_0x499b22,'insertion')['filter'](({suggestion:_0x37ac81,meta:_0x2176c0})=>_0x2176c0['isOwn']&&'convertInlineImageToBlock'==_0x37ac81['subType']);if(_0x53ffa2['length']>0x1&&_0x32c56e['end']['isEqual'](_0x499b22['start']))return!0x0;if(0x1==_0x53ffa2['length']&&(_0x499b22['start']['isEqual'](_0x32c56e['end'])||_0x499b22['end']['isEqual'](_0x32c56e['start'])))return!0x0;}if(0x3==_0x240d79&&0x3==_0x51874d&&_0x499b22['start']['isBefore'](_0x32c56e['start'])){const _0x243e0c=_0x499b22['end']['nodeAfter'],_0x472d7f=_0x32c56e['start']['nodeBefore'];return _0x17cf72['isBlockImage'](_0x243e0c)&&_0x243e0c===_0x472d7f;}return!0x1;}function _0xa2826(_0x5a3405,_0x214689){return _0xc7382b(_0x5a3405,_0x214689)?[_0x5a3405,_0x214689]:_0xc7382b(_0x214689,_0x5a3405)?[_0x214689,_0x5a3405]:null;}_0x2ca4dc['plugins']['has']('ImageResize')&&(_0x3d4290['enableDefaultAttributesIntegration']('resizeImage'),_0x3d4290['registerBlockAttribute']('resizedWidth'),_0x3d4290['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3ec782,'FORMAT_IMAGE_SIZE'))),_0x2ca4dc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d4290['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d4290['registerBlockAttribute']('alt')),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x5a3c24=>{if(!!_0x2aeee2['find'](({type:_0x1d2e3d,subType:_0x69d7a2})=>_0x5a3c24['type']==_0x1d2e3d&&_0x5a3c24['subType']==_0x69d7a2))return _0x5a3c24['previous']?{}:void 0x0;}),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x81cf24=>{if('insertion'==_0x81cf24['type']||'deletion'==_0x81cf24['type']){const _0x113b9a=_0x81cf24['getContainedElement']();if(_0x113b9a&&_0x113b9a['is']('element','caption'))return{'type':'insertion'==_0x81cf24['type']?'addObject':'removeObject','element':_0x113b9a,'quantity':0x1};}}),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x53b863=>'formatBlock'==_0x53b863['type']&&'convertInlineImageToBlock'==_0x53b863['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x53b863['type']&&'convertBlockImageToInline'==_0x53b863['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d4290['descriptionFactory']['registerDescriptionCallback'](_0x2bb478=>{if('attribute'!=_0x2bb478['type'])return;const {data:_0x3c4660}=_0x2bb478;if(!_0x3c4660||'alt'!=_0x3c4660['key'])return;const _0x3b2fbc=_0x3c4660['newValue'];return _0x3b2fbc?{'type':'format','content':o(_0x3ec782,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b2fbc+'\x22')}:{'type':'format','content':o(_0x3ec782,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41e0ca=this['editor'],_0x4c6e61=_0x41e0ca['locale'];_0x41e0ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a659=>{if('formatBlock'!=_0x47a659['type']&&'formatInline'!=_0x47a659['type'])return;const {data:_0x2040f6}=_0x47a659;if(_0x2040f6){if('imageTextAlternative'==_0x2040f6['commandName']){const _0x3b07db=_0x2040f6['commandParams'][0x0]['newValue'];return _0x3b07db?{'type':'format','content':o(_0x4c6e61,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b07db+'\x22')}:{'type':'format','content':o(_0x4c6e61,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2040f6['commandName']){const _0x1e8211=_0x2040f6['commandParams'][0x0]['width'];return _0x1e8211?{'type':'format','content':o(_0x4c6e61,'*Set\x20image\x20width:*\x20%0',_0x1e8211)}:{'type':'format','content':o(_0x4c6e61,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x34c55a=this['editor']['locale'],_0x4c9c7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c9c7b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c9c7b['registerBlockAttribute']('src'),_0x4c9c7b['descriptionFactory']['registerDescriptionCallback'](_0x259105=>{if('attribute'!=_0x259105['type'])return;const {data:_0x27067d}=_0x259105;return _0x27067d&&'src'==_0x27067d['key']?_0x27067d['newValue']&&_0x27067d['oldValue']?{'type':'format','content':o(_0x34c55a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2c7594=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c7594['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2c7594['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c7594['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2c7594['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x82a6b3=this['editor'],_0x48b54b=_0x82a6b3['locale'];_0x82a6b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4841ef=>{if('formatBlock'!=_0x4841ef['type']&&'formatInline'!=_0x4841ef['type'])return;const {data:_0x12ce22}=_0x4841ef;if(!_0x12ce22||'replaceImageSource'!=_0x12ce22['commandName'])return;return{'type':'format','content':o(_0x48b54b,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x55f69e{['afterInit'](){const _0x2f910d=this['editor'];if(!_0x2f910d['plugins']['has']('ImageStyleEditing'))return;const _0x2eeb59=_0x2f910d['plugins']['get']('TrackChangesEditing'),_0x4ff60f=_0x2f910d['plugins']['get']('ImageUtils'),_0x1af0b1={};_0x2eeb59['enableCommand']('imageStyle',(_0x129dfa,_0x49630c)=>{const _0x2e20be=_0x2f910d['plugins']['get']('Users')['me'],_0x43fbe0=_0x2f910d['commands']['get']('imageStyle');let _0x14c422=_0x4ff60f['getClosestSelectedImageElement'](_0x2f910d['model']['document']['selection']),_0x366cb3=_0x2f910d['model']['createRangeOn'](_0x14c422),_0x481899=_0x43fbe0['value'];if(_0x481899==_0x49630c['value'])return;const _0x560f23={'commandName':'imageStyle','commandParams':[_0x49630c],'formatGroupId':_0x55f5c8()};_0x2f910d['model']['change'](()=>{if(_0x2eeb59['getSuggestions']()['filter'](_0xf01e40=>_0xf01e40['isInContent']&&_0x2e20be==_0xf01e40['author']&&('formatBlock'==_0xf01e40['type']||'formatInline'==_0xf01e40['type'])&&('imageStylePreApply'==_0xf01e40['subType']||'imageStylePostApply'==_0xf01e40['subType'])&&_0xf01e40['getFirstRange']()['isEqual'](_0x366cb3))['forEach'](_0x215337=>_0x2eeb59['discardSuggestion'](_0x215337['head'])),_0x14c422=_0x4ff60f['getClosestSelectedImageElement'](_0x2f910d['model']['document']['selection']),_0x366cb3=_0x2f910d['model']['createRangeOn'](_0x14c422),_0x43fbe0['refresh'](),_0x2f910d['commands']['get']('imageTypeInline')['refresh'](),_0x2f910d['commands']['get']('imageTypeBlock')['refresh'](),_0x481899=_0x43fbe0['value'],_0x481899!=_0x49630c['value'])return _0x4ff60f['isInlineImage'](_0x14c422)&&_0x43fbe0['shouldConvertImageType'](_0x49630c['value'],_0x14c422)?(_0x129dfa({..._0x49630c,'setImageSizes':!0x1}),_0x14c422=_0x4ff60f['getClosestSelectedImageElement'](_0x2f910d['model']['document']['selection']),void _0x2eeb59['markBlockFormat'](_0x14c422,{..._0x560f23,'commandReversedParams':[{'value':_0x481899||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ff60f['isBlockImage'](_0x14c422)?_0x2eeb59['markBlockFormat'](_0x14c422,_0x560f23,[],'imageStylePostApply'):_0x2eeb59['markInlineFormat'](_0x366cb3,_0x560f23,'imageStylePostApply'));});});for(const _0x11288d of _0x2f910d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1af0b1[_0x11288d['name']]=_0x11288d['title']['toLowerCase']();_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5502a9])=>{_0x4ff60f['setImageNaturalSizeAttributes'](_0x5502a9['getContainedElement']());}),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x106b17,_0x9e63ee)=>{_0x2eeb59['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x106b17,{'commandName':_0x9e63ee['commandName'],'commandParams':_0x9e63ee['commandReversedParams']});}),_0x2eeb59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x276191,_0x3473ee){if(_0x314424(_0x276191,_0x3473ee))return[_0x276191,_0x3473ee];if(_0x314424(_0x3473ee,_0x276191))return[_0x3473ee,_0x276191];return null;});const _0x3edc5b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x314424(_0x49f8be,_0x547a7b){const _0x4548b5=_0x3edc5b['findIndex'](({type:_0x3dcaa0,subType:_0x17c8ba})=>_0x49f8be['type']==_0x3dcaa0&&_0x49f8be['subType']==_0x17c8ba),_0x80b834=_0x3edc5b['findIndex'](({type:_0x350a83,subType:_0x2d84ce})=>_0x547a7b['type']==_0x350a83&&_0x547a7b['subType']==_0x2d84ce);if(_0x4548b5<0x0||_0x80b834<0x0)return!0x1;const _0x3ed690=_0x49f8be['getFirstRange'](),_0x1f36c9=_0x547a7b['getFirstRange']();if((0x0==_0x4548b5||0x1==_0x4548b5)&&0x2==_0x80b834&&_0x3ed690['isIntersecting'](_0x1f36c9))return!0x0;if(0x2==_0x4548b5&&0x3==_0x80b834){const _0x5733dd=_0x2eeb59['_findSuggestions'](_0x3ed690,'insertion')['filter'](({suggestion:_0x3903ad,meta:_0x1ca51d})=>_0x1ca51d['isOwn']&&'convertInlineImageToBlock'==_0x3903ad['subType']);if(_0x5733dd['length']>0x1&&_0x1f36c9['end']['isEqual'](_0x3ed690['start']))return!0x0;if(0x1==_0x5733dd['length']&&(_0x3ed690['start']['isEqual'](_0x1f36c9['end'])||_0x3ed690['end']['isEqual'](_0x1f36c9['start'])))return!0x0;}if(0x3==_0x4548b5&&0x3==_0x80b834&&_0x3ed690['start']['isBefore'](_0x1f36c9['start'])){const _0x5b8271=_0x3ed690['end']['nodeAfter'],_0x4141aa=_0x1f36c9['start']['nodeBefore'];return _0x4ff60f['isBlockImage'](_0x5b8271)&&_0x5b8271===_0x4141aa;}return!0x1;}_0x2f910d['model']['document']['registerPostFixer'](()=>{let _0x553d36=!0x1;const _0x5b0599=Array['from'](_0x2f910d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50a8f0,data:_0x265a11}of _0x5b0599){const {group:_0x56b599,type:_0x13e1e5,subType:_0x1b822b,id:_0x298b4b}=_0x2eeb59['_splitMarkerName'](_0x50a8f0);if('suggestion'==_0x56b599&&_0x2eeb59['hasSuggestion'](_0x298b4b)){if('formatBlock'==_0x13e1e5&&('imageStylePreApply'==_0x1b822b||'imageStylePostApply'==_0x1b822b)){const _0x39fa76=_0x2eeb59['getSuggestion'](_0x298b4b);if(_0x265a11['newRange']){const _0x3a703a=_0x39fa76['getFirstRange']()['getContainedElement']();if(_0x4ff60f['isBlockImage'](_0x3a703a))continue;_0x2eeb59['discardSuggestion'](_0x39fa76),_0x553d36=!0x0;}}if('insertion'==_0x13e1e5&&'imageCaption'==_0x1b822b&&!_0x265a11['newRange']){const _0x485efe=_0x2eeb59['getSuggestion'](_0x298b4b);_0x485efe['next']&&_0x485efe['next']['isInContent']&&(_0x2eeb59['discardSuggestion'](_0x485efe['next']),_0x553d36=!0x0);}}}return _0x553d36;}),this['_registerLegacyDescription'](_0x1af0b1);}['_registerLegacyDescription'](_0x5be0d2){const _0x4eb0bd=this['editor'],_0x5d1816=_0x4eb0bd['locale'];_0x4eb0bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158e71=>{if('formatBlock'!=_0x158e71['type']&&'formatInline'!=_0x158e71['type'])return;const {data:_0x34c214}=_0x158e71;if(!_0x34c214||'imageStyle'!=_0x34c214['commandName'])return;const _0x281331=_0x34c214['commandParams'][0x0]['value'];return _0x25d006('side'===_0x281331?o(_0x5d1816,'FORMAT_SIDE_IMAGE'):_0x5be0d2[_0x281331]||_0x281331);function _0x25d006(_0x179f58){return{'type':'format','content':o(_0x5d1816,'*Format:*\x20%0',_0x179f58)};}});}}class at extends _0x55f69e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x46961f){super(_0x46961f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x568d26=this['editor'],_0xd84261=_0x568d26['commands']['get']('importWord'),_0x223bb1=_0x568d26['commands']['get']('trackChanges');_0xd84261&&(_0xd84261['on']('execute',(_0x5eb707,[,_0x5e9d6d])=>{this['_trackChangesValueDuringImport']=_0x223bb1['value'],_0x5e9d6d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd84261,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd84261,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x223bb1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x568d26['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x330e8f,_0x52477e){const {suggestions:_0x1ff8d2}=_0x52477e,_0x369e73=this['editor']['commands']['get']('trackChanges'),_0x12390a=_0x369e73['value'];this['_trackChangesValueDuringImport']!==_0x12390a&&(_0x369e73['execute'](),this['_trackChangesExecuted']=!0x0),_0x1ff8d2&&_0x1ff8d2['forEach'](({id:_0x4b8f4d,type:_0x3cbbff,author:_0x1a2857,created_at:_0xa45d1b})=>{const _0x1e83e5={'id':_0x4b8f4d,'type':_0x3cbbff,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a2857,'createdAt':_0xa45d1b?new Date(_0xa45d1b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1e83e5);});}}class ct extends _0x55f69e{['afterInit'](){const _0x247e60=this['editor'],_0xe7e9f0=_0x247e60['plugins']['get']('TrackChangesEditing');if(_0x247e60['plugins']['has']('IndentEditing')&&(_0xe7e9f0['enableCommand']('indent'),_0xe7e9f0['enableCommand']('outdent')),_0x247e60['plugins']['has']('IndentBlock')){for(const _0x55d461 of['indentBlock','outdentBlock'])_0xe7e9f0['enableDefaultAttributesIntegration'](_0x55d461);}const _0x41e3a2=_0x247e60['locale'];_0xe7e9f0['registerBlockAttribute']('blockIndent'),_0xe7e9f0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x41e3a2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ab7b=this['editor'],_0x117329=_0x28ab7b['locale'],_0x3fb882=_0x28ab7b['plugins']['get']('TrackChangesEditing');_0x3fb882['descriptionFactory']['registerDescriptionCallback'](_0x4b47dd=>{if('formatBlock'!=_0x4b47dd['type'])return;const {data:_0xc232f0}=_0x4b47dd;if(!_0xc232f0)return;if('indentBlock'!=_0xc232f0['commandName']&&'outdentBlock'!=_0xc232f0['commandName'])return;const _0xd7e67=_0x4b47dd['getItems']()[0x0],_0x3f142f=_0x3fb882['descriptionFactory']['getItemLabel'](_0xd7e67);return'indentBlock'==_0xc232f0['commandName']?{'type':'format','content':o(_0x117329,'*Indent:*\x20%0',_0x3f142f)}:'outdentBlock'==_0xc232f0['commandName']?{'type':'format','content':o(_0x117329,'*Outdent:*\x20%0',_0x3f142f)}:void 0x0;});}}class ut extends _0x55f69e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x55f69e{['afterInit'](){const _0x14e443=this['editor'];if(!_0x14e443['plugins']['has']('LinkEditing'))return;const _0x3babc2=_0x14e443['plugins']['get']('TrackChangesEditing'),_0xf3944f=_0x14e443['commands']['get']('link');_0x3babc2['enableDefaultAttributesIntegration']('link'),_0x3babc2['enableDefaultAttributesIntegration']('unlink'),_0x3babc2['registerInlineAttribute']('linkHref');for(const _0x142438 of _0xf3944f['manualDecorators'])_0x3babc2['registerInlineAttribute'](_0x142438['id']),_0x3babc2['descriptionFactory']['registerAttributeLabel'](_0x142438['id'],'link\x20('+_0x142438['label']['toLowerCase']()+')');_0x3babc2['descriptionFactory']['registerDescriptionCallback'](_0x2c1f66=>{if('attribute'!=_0x2c1f66['type'])return;const {data:_0x228e87}=_0x2c1f66;if(!_0x228e87||'linkHref'!=_0x228e87['key'])return;const _0xf32ca8=_0x228e87['newValue'],_0x494436=_0x14e443['locale'];return{'type':'format','content':null==_0xf32ca8?o(_0x494436,'*Remove\x20link*'):o(_0x494436,'*Set\x20link:*\x20%0','\x22'+_0xf32ca8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x267a92=this['editor'],_0x4348ae=_0x267a92['locale'];_0x267a92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50368f=>{if('formatInline'!=_0x50368f['type'])return;const {data:_0x5260e2}=_0x50368f;if(_0x5260e2){if('link'==_0x5260e2['commandName']){const _0x333844=_0x5260e2['commandParams'][0x0];return{'type':'format','content':o(_0x4348ae,'*Set\x20link:*\x20%0','\x22'+_0x333844+'\x22')};}return'unlink'==_0x5260e2['commandName']?{'type':'format','content':o(_0x4348ae,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x55f69e{['afterInit'](){const _0x267830=this['editor'],_0x53307a=_0x267830['locale'];if(!_0x267830['plugins']['has']('LegacyListEditing'))return;const _0x725e5b=_0x267830['plugins']['get']('TrackChangesEditing'),_0x59e0c3=_0x267830['plugins']['has']('LegacyTodoListEditing');function _0x24fa42(_0x1bf81c){return()=>{const _0x15202b=_0x267830['model']['document']['selection'],_0x59c669=_0x267830['commands']['get'](_0x1bf81c);if(_0x59c669['value'])return void _0x267830['execute']('paragraph',{});const _0xbbcb3b=_0x1bf81c['slice'](0x0,-0x4),_0x28cd9d=function(_0x5ba307,_0x5762d8,_0x1a8eb8){let _0x52f0a6=Array['from'](_0x5ba307)['filter'](_0x3c67d9=>function(_0x321b12,_0x2cf62f){return _0x2cf62f['checkChild'](_0x321b12['parent'],'listItem')&&!_0x2cf62f['isObject'](_0x321b12);}(_0x3c67d9,_0x1a8eb8));_0x52f0a6=_0x52f0a6['filter'](_0x429c01=>!_0x429c01['is']('element','listItem')||_0x429c01['getAttribute']('listType')!=_0x5762d8);const _0x359256=new Set();for(const _0x2fbd71 of _0x52f0a6)_0x2fbd71['is']('element','listItem')?_0x359256['add'](fe(_0x2fbd71)):_0x359256['add'](_0x2fbd71);return Array['from'](_0x359256);}(_0x15202b['getSelectedBlocks'](),_0xbbcb3b,_0x267830['model']['schema']);_0x267830['model']['change'](()=>{for(const _0x4af0bd of _0x28cd9d)_0x725e5b['markBlockFormat'](_0x4af0bd,{'commandName':_0x1bf81c,'commandParams':[{'forceValue':!_0x59c669['value']}],'formatGroupId':'blockName'},ue(_0x4af0bd));});};}function _0x27a33c(_0x17b93f){return()=>{const _0x909fb0=function(_0xf7cc69){let _0x3e9d35=Array['from'](_0xf7cc69);const _0x199513=_0x3e9d35['findIndex'](_0x31e7b9=>'listItem'!=_0x31e7b9['name']);return _0x199513>-0x1&&(_0x3e9d35=_0x3e9d35['slice'](0x0,_0x199513)),_0x3e9d35;}(_0x267830['model']['document']['selection']['getSelectedBlocks']()),_0x5a2ea4=_0x267830['model']['createRange'](_0x267830['model']['createPositionAt'](_0x909fb0[0x0],'before'),_0x267830['model']['createPositionAt'](_0x909fb0[_0x909fb0['length']-0x1],'end'));_0x267830['model']['change'](()=>{_0x725e5b['markBlockFormat'](_0x5a2ea4,{'commandName':_0x17b93f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x906fd0){const _0xc7d35b=new Set();for(const _0x5b7317 of _0x906fd0){let _0x207518=_0x5b7317['nextSibling'];for(;_0x207518&&_0x207518['getAttribute']('listIndent')>_0x5b7317['getAttribute']('listIndent');)_0xc7d35b['add'](_0x207518),_0x207518=_0x207518['nextSibling'];}return Array['from'](_0xc7d35b);}(_0x909fb0));});};}_0x725e5b['enableCommand']('numberedList',_0x24fa42('numberedList')),_0x725e5b['enableCommand']('bulletedList',_0x24fa42('bulletedList')),_0x59e0c3&&_0x725e5b['enableCommand']('todoList',_0x24fa42('todoList')),_0x725e5b['enableCommand']('indentList',_0x27a33c('indentList')),_0x725e5b['enableCommand']('outdentList',_0x27a33c('outdentList')),_0x59e0c3&&_0x725e5b['enableCommand']('checkTodoList',()=>{const _0x2d6ae1=_0x267830['commands']['get']('checkTodoList'),_0x47c068=Array['from'](_0x2d6ae1['_selectedElements']);_0x47c068['filter'](_0x256784=>_0x256784['getAttribute']('todoListChecked')!=_0x2d6ae1['value']),_0x267830['model']['change'](()=>{for(const _0x5877a5 of _0x47c068)_0x725e5b['markBlockFormat'](_0x5877a5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d6ae1['value']}]});});}),_0x725e5b['descriptionFactory']['registerElementLabel']('listItem',_0x846f52=>o(_0x53307a,'ELEMENT_LIST_ITEM',_0x846f52)),_0x725e5b['descriptionFactory']['registerDescriptionCallback'](_0x1a2f0d=>{if('formatBlock'!=_0x1a2f0d['type']&&'formatInline'!=_0x1a2f0d['type'])return;const {data:_0x4bd05d}=_0x1a2f0d;if(_0x4bd05d){if('numberedList'==_0x4bd05d['commandName']||'bulletedList'==_0x4bd05d['commandName']||'todoList'==_0x4bd05d['commandName'])switch(_0x4bd05d['commandName']['replace']('List','')){case'bulleted':return _0x8cd4cc(o(_0x53307a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8cd4cc(o(_0x53307a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8cd4cc(o(_0x53307a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4bd05d['commandName'])return{'type':'format','content':o(_0x53307a,'*Indent:*\x20%0',o(_0x53307a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4bd05d['commandName'])return{'type':'format','content':o(_0x53307a,'*Outdent:*\x20%0',o(_0x53307a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4bd05d['commandName'])return _0x4bd05d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53307a,'*Check\x20item*')}:{'type':'format','content':o(_0x53307a,'*Uncheck\x20item*')};}function _0x8cd4cc(_0x5097e5){return{'type':'format','content':o(_0x53307a,'*Change\x20to:*\x20%0',_0x5097e5)};}});}}function fe(_0x5e03ec){const _0x5b1499=_0x5e03ec['getAttribute']('listIndent');if(0x0==_0x5b1499)return _0x5e03ec;let _0x4d4391=_0x5e03ec;for(;_0x5e03ec['previousSibling']&&_0x5e03ec['previousSibling']['is']('element','listItem');){const _0x2b3f2f=_0x5e03ec['previousSibling']['getAttribute']('listIndent');if(_0x2b3f2f==_0x5b1499)_0x4d4391=_0x5e03ec['previousSibling'];else{if(_0x2b3f2f<_0x5b1499)break;}_0x5e03ec=_0x5e03ec['previousSibling'];}return _0x4d4391;}function ue(_0x15ee4a){const _0x362b29=[];if(_0x15ee4a['is']('element','listItem')&&_0x15ee4a['getAttribute']('listIndent')>0x0){let _0x4c55b7=_0x15ee4a['nextSibling'];for(;_0x4c55b7&&'listItem'==_0x4c55b7['name']&&_0x4c55b7['getAttribute']('listIndent')==_0x15ee4a['getAttribute']('listIndent');)_0x362b29['push'](_0x4c55b7),_0x4c55b7=_0x4c55b7['nextSibling'];}return _0x362b29;}class W extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x938a46=this['editor']['config']['get']('list.properties'),_0x2db39a=this['editor']['plugins']['get']('TrackChangesEditing');_0x938a46['styles']&&_0x2db39a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x938a46['reversed']&&_0x2db39a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x938a46['startIndex']&&_0x2db39a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2db39a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4eab38,_0x54bae3={}){const _0x4f1a4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cd697=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4f1a4e['markMultiRangeBlockFormat'](_0x1cd697,{'commandName':'listStyle','commandParams':[{'type':_0x54bae3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x209e51,_0x58b0ef={}){const _0x6a960b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28cfca=this['_getSuggestionBlocks'](_0x378fe8=>_0x378fe8['is']('element','listItem')&&'numbered'===_0x378fe8['getAttribute']('listType'));if(_0x28cfca['length']<0x1)return;const _0x4139ad=_0x28cfca['map'](_0x405db5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x405db5,'before'),this['editor']['model']['createPositionAt'](_0x405db5,0x0)));this['editor']['model']['change'](()=>{_0x6a960b['markMultiRangeBlockFormat'](_0x4139ad,{'commandName':'listReversed','commandParams':[{'reversed':_0x58b0ef['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x391d30,_0x5b2410={}){const _0x4c7e41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x848cb0=this['_getSuggestionBlocks'](_0x2fddf3=>_0x2fddf3['is']('element','listItem')&&'numbered'===_0x2fddf3['getAttribute']('listType'));if(_0x848cb0['length']<0x1)return;const _0x293e55=_0x848cb0['map'](_0x44cd37=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44cd37,'before'),this['editor']['model']['createPositionAt'](_0x44cd37,0x0)));this['editor']['model']['change'](()=>{_0x4c7e41['markMultiRangeBlockFormat'](_0x293e55,{'commandName':'listStart','commandParams':[{'startIndex':_0x5b2410['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5efe31){if('formatBlock'!=_0x5efe31['type']&&'formatInline'!=_0x5efe31['type'])return;const _0x1a133e=this['editor']['locale'],{data:_0x467903}=_0x5efe31;if(!_0x467903)return;let _0x21b8a2,_0x2e84f9;switch(_0x467903['commandName']){case'listStyle':_0x21b8a2='*Change\x20to:*\x20%0',_0x2e84f9={'type':'format','content':o(_0x1a133e,_0x21b8a2,o(_0x1a133e,this['_getTranslationKeyForListStyle'](_0x467903['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21b8a2=_0x467903['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e84f9={'type':'format','content':o(_0x1a133e,_0x21b8a2)};break;case'listStart':_0x21b8a2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e84f9={'type':'format','content':o(_0x1a133e,_0x21b8a2,_0x467903['commandParams'][0x0]['startIndex'])};}return _0x2e84f9;}['_getSuggestionBlocksForListStyle'](){const _0x3df2eb=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ac7f2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3ac7f2[0x0]?.['is']('element','listItem')&&_0x3ac7f2['unshift'](..._0x3df2eb['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3ac7f2[_0x3ac7f2['length']-0x1]?.['is']('element','listItem')&&_0x3ac7f2['push'](..._0x3df2eb['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3ac7f2=[...new Set(_0x3ac7f2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3ac7f2=_0x3ac7f2['filter'](_0x1a634e=>_0x1a634e['is']('element','listItem'))),_0x3ac7f2;}['_getSuggestionBlocks'](_0x1bb4d0){const _0x5bb953=this['editor']['plugins']['get']('LegacyListUtils');let _0x46f257=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1bb4d0)['map'](_0x2b0686=>{const _0x105d62=this['editor']['model']['createPositionAt'](_0x2b0686,0x0);return[..._0x5bb953['getSiblingNodes'](_0x105d62,'backward'),..._0x5bb953['getSiblingNodes'](_0x105d62,'forward')];})['flat']();return _0x46f257=[...new Set(_0x46f257)],_0x46f257;}['_getTranslationKeyForListStyle'](_0x24ac73){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24ac73)||'default')['toUpperCase']()+'_LIST_'+_0x24ac73['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x55f69e{['afterInit'](){const _0x1f0044=this['editor'];if(!_0x1f0044['plugins']['has']('MediaEmbedEditing'))return;const _0x4bfa1e=_0x1f0044['plugins']['get']('TrackChangesEditing'),_0x44e07e=_0x1f0044['locale'];_0x4bfa1e['enableCommand']('mediaEmbed'),_0x4bfa1e['descriptionFactory']['registerElementLabel']('media',_0x502aa4=>o(_0x44e07e,'ELEMENT_MEDIA',_0x502aa4)),_0x1f0044['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x267bad,{writer:_0xd129a6,options:_0x3275a7})=>{if(_0x3275a7['showSuggestionHighlights'])return _0xd129a6['createEmptyElement']('div');},'converterPriority':'high'}),_0x1f0044['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3c2f10,_0x3cf74d,_0x17285d)=>{_0x17285d['options']['showSuggestionHighlights']&&_0x3c2f10['stop']();},{'priority':'high'});}}class mt extends _0x55f69e{['afterInit'](){const _0x4c2394=this['editor'];_0x4c2394['plugins']['has']('MentionEditing')&&_0x4c2394['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x55f69e{['afterInit'](){const _0x13c038=this['editor'];if(!_0x13c038['plugins']['has']('MergeFieldsEditing'))return;_0x13c038['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x13c038['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1562f6=_0x13c038['plugins']['get']('TrackChangesEditing'),_0x2ed187=_0x13c038['locale'];_0x1562f6['descriptionFactory']['registerElementLabel']('mergeField',_0x1320a3=>o(_0x2ed187,'ELEMENT_MERGE_FIELD',_0x1320a3)),_0x1562f6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x315d82=>o(_0x2ed187,'ELEMENT_MERGE_FIELD',_0x315d82)),_0x1562f6['descriptionFactory']['registerDescriptionCallback'](_0x4b28d6=>{if('insertion'!=_0x4b28d6['type']&&'deletion'!=_0x4b28d6['type'])return;const _0x28d558=_0x4b28d6['getContainedElement']();if(null==_0x28d558)return;if(!_0x28d558['is']('element','mergeField')&&!_0x28d558['is']('element','mergeFieldBlock'))return;const _0x321bdd=_0x13c038['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x28d558['getAttribute']('id'));return'insertion'==_0x4b28d6['type']?{'type':'insertion','content':o(_0x2ed187,'*Insert:*\x20%0','\x22'+_0x321bdd+'\x22\x20'+o(_0x2ed187,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2ed187,'*Remove:*\x20%0','\x22'+_0x321bdd+'\x22\x20'+o(_0x2ed187,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x55f69e{['afterInit'](){const _0x2eade3=this['editor'],_0x2110ec=_0x2eade3['plugins']['get']('TrackChangesEditing');_0x2eade3['plugins']['has']('MultiLevelList')&&(_0x2110ec['enableDefaultAttributesIntegration']('multiLevelList'),_0x2110ec['registerBlockAttribute']('listMarkerStyle'),_0x2110ec['descriptionFactory']['registerDescriptionCallback'](_0x46a87a=>this['handleDescriptions'](_0x46a87a)));}['handleDescriptions'](_0x5eb122){const _0x3a8526=this['editor']['locale'],{data:_0x3a02c4}=_0x5eb122,_0x10b61a={'type':'format','content':''};if(_0x3a02c4&&'listMarkerStyle'==_0x3a02c4['key']){if(!_0x3a02c4['oldValue'])return{'type':'format','content':o(_0x3a8526,'*Set\x20format:*\x20%0',o(_0x3a8526,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a02c4['newValue']+')'};if(!_0x3a02c4['newValue']){let _0x49b01c=_0x5eb122['head'];for(;_0x49b01c;){if(_0x49b01c['data']&&'listType'==_0x49b01c['data']['key']&&_0x49b01c['data']['newValue'])return _0x10b61a;_0x49b01c=_0x49b01c['next'];}return{'type':'format','content':o(_0x3a8526,'*Remove\x20format:*\x20%0',o(_0x3a8526,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a02c4['oldValue']+')'};}}}}class kt extends _0x55f69e{['afterInit'](){const _0x3ede09=this['editor'];if(!_0x3ede09['plugins']['has']('PageBreakEditing'))return;_0x3ede09['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x40edd5=_0x3ede09['plugins']['get']('TrackChangesEditing'),_0x4549b2=_0x3ede09['locale'];_0x40edd5['descriptionFactory']['registerElementLabel']('pageBreak',_0x3bbf85=>o(_0x4549b2,'ELEMENT_PAGE_BREAK',_0x3bbf85));}}class bt extends _0x55f69e{['afterInit'](){const _0x54ba78=this['editor'];if(!_0x54ba78['plugins']['has']('Paragraph'))return;const _0x58c746=_0x54ba78['locale'],_0x40b91c=_0x54ba78['plugins']['get']('TrackChangesEditing');_0x40b91c['descriptionFactory']['registerElementLabel']('paragraph',_0x48c130=>o(_0x58c746,'ELEMENT_PARAGRAPH',_0x48c130)),_0x40b91c['enableDefaultAttributesIntegration']('paragraph'),_0x40b91c['enableCommand']('insertParagraph'),_0x54ba78['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x54ba78),{'priority':'highest'}),_0x54ba78['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ea22,_0x351883,_0x2f1dc6)=>{_0x2f1dc6['options']['showSuggestionHighlights']&&nr(_0x54ba78,{'showActiveMarker':!0x1})(_0x5ea22,_0x351883,_0x2f1dc6);},{'priority':'highest'});const _0x5f428d=_0x40b91c['descriptionFactory'];_0x5f428d['registerDescriptionCallback'](_0x2127cb=>{if('insertion'!==_0x2127cb['type'])return;const {start:_0x234009,end:_0xd1cc5e}=_0x2127cb['getFirstRange']();if(!_0x234009['isTouching'](_0xd1cc5e)||!_0x234009['nodeAfter'])return;const _0x36c81d=_0x54ba78['model']['schema'],_0x23dd1f=_0x234009['nodeAfter'];return _0x36c81d['isBlock'](_0x23dd1f)&&!_0x36c81d['isLimit'](_0x23dd1f)&&_0x36c81d['checkChild'](_0x23dd1f,'$text')?{'type':'insertion','content':o(_0x58c746,'*Insert:*\x20%0',_0x5f428d['getItemLabel'](_0x23dd1f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5222d4=this['editor'],_0x34f6e9=_0x5222d4['locale'];_0x5222d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295e72=>{if('formatBlock'!=_0x295e72['type'])return;const {data:_0x13f8c2}=_0x295e72;return _0x13f8c2&&'paragraph'==_0x13f8c2['commandName']?{'type':'format','content':o(_0x34f6e9,'*Change\x20to:*\x20%0',o(_0x34f6e9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x49858b,{showActiveMarker:_0x37b3bb=!0x0}={}){return(_0x3e0263,_0x546405,_0x538c99)=>{const _0x5261d4=_0x49858b['plugins']['get']('TrackChangesEditing'),_0x2f912f=_0x546405['markerRange']['start'],_0x57255e=_0x546405['markerRange']['end'],_0x2f2d43=_0x49858b['model']['schema'];if(!_0x2f912f['isTouching'](_0x57255e)||!_0x2f912f['nodeAfter'])return;const _0x38935c=_0x2f912f['nodeAfter'];if(_0x2f2d43['isBlock'](_0x38935c)&&!_0x2f2d43['isLimit'](_0x38935c)&&_0x2f2d43['checkChild'](_0x38935c,'$text')){if(!_0x538c99['consumable']['consume'](_0x546405['markerRange'],_0x3e0263['name']))return;const {authorId:_0x3dd6f1}=_0x5261d4['_splitMarkerName'](_0x546405['markerName']),_0x4605b6=_0x538c99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3dd6f1}),_0x584cda=_0x538c99['mapper']['toViewPosition'](_0x57255e);_0x37b3bb&&_0x5261d4['activeMarkers']['includes'](_0x546405['markerName'])&&_0x538c99['writer']['addClass']('ck-suggestion-marker--active',_0x4605b6),_0x538c99['writer']['insert'](_0x584cda,_0x4605b6),_0x538c99['mapper']['bindElementToMarker'](_0x4605b6,_0x546405['markerName']);}};}class wt extends _0x55f69e{['afterInit'](){const _0x5b179c=this['editor'];if(!_0x5b179c['plugins']['has']('RemoveFormatEditing'))return;_0x5b179c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b00c1=this['editor'];_0x4b00c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ac41c=>{if('formatBlock'!=_0x3ac41c['type']&&'formatInline'!=_0x3ac41c['type'])return;const {data:_0x565de1}=_0x3ac41c;return _0x565de1&&'removeFormat'==_0x565de1['commandName']?{'type':'format','content':o(_0x4b00c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x55f69e{['afterInit'](){const _0x6e2bf7=this['editor'];if(!_0x6e2bf7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x30efac=_0x6e2bf7['plugins']['get']('TrackChangesEditing');_0x30efac['enableCommand']('goToPreviousRestrictedEditingException'),_0x30efac['enableCommand']('goToNextRestrictedEditingException');const _0x45a502=_0x6e2bf7['plugins']['get']('RestrictedEditingModeEditing');_0x45a502['enableCommand']('trackChanges'),_0x45a502['enableCommand']('acceptSuggestion'),_0x45a502['enableCommand']('discardSuggestion'),_0x45a502['enableCommand']('acceptAllSuggestions'),_0x45a502['enableCommand']('discardAllSuggestions'),_0x45a502['enableCommand']('acceptSelectedSuggestions'),_0x45a502['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x55f69e{static get['requires'](){return[_0x3fff9f];}['init'](){const _0x202e5b=this['editor'],_0x25ded0=_0x202e5b['plugins']['get']('TrackChangesEditing');_0x25ded0['enableCommand']('shiftEnter'),_0x202e5b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x202e5b),{'priority':'high'}),_0x202e5b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x202e5b),{'priority':'high'}),_0x202e5b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9edc6,_0x50e1cb,_0x2e9427)=>{_0x2e9427['options']['showSuggestionHighlights']&&ge(_0x202e5b,{'showActiveMarker':!0x1})(_0x9edc6,_0x50e1cb,_0x2e9427);}),_0x25ded0['descriptionFactory']['registerElementLabel']('softBreak',_0x97cc06=>o(_0x202e5b['locale'],'ELEMENT_LINE_BREAK',_0x97cc06));}}function ge(_0x4ca2fd,{showActiveMarker:_0x249441=!0x0}={}){return(_0x375255,_0x1a966d,_0x9f7b61)=>{const _0x122bf3=_0x4ca2fd['plugins']['get']('TrackChangesEditing');if(!_0x9f7b61['consumable']['test'](_0x1a966d['markerRange'],_0x375255['name']))return;const _0x18acae=_0x4ca2fd['model'];for(const _0x573574 of _0x1a966d['markerRange']['getItems']()){if(!_0x573574['is']('element','softBreak'))continue;const _0x4cd3f7='deletion'==_0x1a966d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4f0642}=_0x122bf3['_splitMarkerName'](_0x1a966d['markerName']),_0x38ba69=_0x9f7b61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4cd3f7,'data-author-id':_0x4f0642}),_0x36b90e=_0x9f7b61['mapper']['toViewPosition'](_0x18acae['createPositionBefore'](_0x573574));_0x249441&&_0x122bf3['activeMarkers']['includes'](_0x1a966d['markerName'])&&_0x9f7b61['writer']['addClass']('ck-suggestion-marker--active',_0x38ba69),_0x9f7b61['writer']['insert'](_0x36b90e,_0x38ba69),_0x9f7b61['mapper']['bindElementToMarker'](_0x38ba69,_0x1a966d['markerName']);}};}class St extends _0x55f69e{['afterInit'](){const _0x44d8a2=this['editor'],_0x1f440c=_0x44d8a2['model'],_0x34ed36=_0x44d8a2['locale'];if(!_0x44d8a2['plugins']['has']('StandardEditingModeEditing'))return;const _0x262411=_0x44d8a2['plugins']['get']('TrackChangesEditing'),_0x4fab05='restrictedEditingException',_0x1b3539=_0x44d8a2['commands']['get'](_0x4fab05);_0x262411['enableCommand'](_0x4fab05,(_0x16e075,_0x2ae3e4={})=>{const _0x4a5e01=_0x1f440c['document']['selection'];if(_0x4a5e01['isCollapsed'])return void _0x16e075(_0x2ae3e4);const _0x44486c=void 0x0!==_0x2ae3e4['forceValue']?_0x2ae3e4['forceValue']:!_0x1b3539['value'];_0x1f440c['change'](()=>{const _0x2f34a0=Array['from'](_0x4a5e01['getRanges']());for(const _0x4edb11 of _0x2f34a0){const _0x40b965=_0x44486c?[_0x4edb11]:io(_0x4fab05,_0x4edb11,_0x1f440c);for(const _0x5254b0 of _0x40b965)_0x262411['markInlineFormat'](_0x5254b0,{'commandName':_0x4fab05,'commandParams':[{'forceValue':_0x44486c}]});}});}),_0x262411['descriptionFactory']['registerDescriptionCallback'](_0x4b49f9=>{if('formatBlock'!=_0x4b49f9['type']&&'formatInline'!=_0x4b49f9['type'])return;const {data:_0x1f2f53}=_0x4b49f9;return _0x1f2f53&&_0x1f2f53['commandName']==_0x4fab05?_0x1f2f53['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34ed36,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x34ed36,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x55f69e{['afterInit'](){const _0x50d320=this['editor'];if(!_0x50d320['plugins']['has']('Style')||!_0x50d320['plugins']['has']('DataSchema'))return;const _0x4e6dd7=_0x50d320['plugins']['get']('TrackChangesEditing'),_0x5d5f4f=_0x50d320['locale'],_0x38fdae=_0x50d320['config']['get']('style')||{},_0x2676c8=_0x50d320['plugins']['get']('GeneralHtmlSupport'),_0x41fb78=_0x50d320['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50d320['plugins']['get']('DataSchema'),_0x38fdae['definitions']);_0x4e6dd7['enableDefaultAttributesIntegration']('style');const _0x24fd7d=new Set();for(const _0x4f217d of _0x41fb78['block']){const _0x4e67f4=_0x2676c8['getGhsAttributeNameForElement'](_0x4f217d['element']);_0x24fd7d['add'](_0x4e67f4);}const _0x3c25b3=new Set();for(const _0x40ac18 of _0x41fb78['inline']){const _0x46d3fb=_0x2676c8['getGhsAttributeNameForElement'](_0x40ac18['element']);_0x3c25b3['add'](_0x46d3fb);for(const _0x24f4eb of _0x40ac18['ghsAttributes'])_0x3c25b3['add'](_0x24f4eb);}for(const _0x3d3f73 of _0x24fd7d)_0x4e6dd7['registerBlockAttribute'](_0x3d3f73),_0x4e6dd7['descriptionFactory']['registerAttributeLabel'](_0x3d3f73,o(_0x5d5f4f,'FORMAT_STYLE'));for(const _0x482841 of _0x3c25b3)_0x4e6dd7['registerInlineAttribute'](_0x482841),_0x4e6dd7['descriptionFactory']['registerAttributeLabel'](_0x482841,o(_0x5d5f4f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x160873=this['editor'],_0x19e946=_0x160873['locale'];_0x160873['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46f68f=>{if('formatBlock'!=_0x46f68f['type']&&'formatInline'!=_0x46f68f['type'])return;const {data:_0x16dd41}=_0x46f68f;return _0x16dd41&&'style'===_0x16dd41['commandName']?_0x16dd41['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19e946,'*Set\x20format:*\x20%0',_0x16dd41['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x19e946,'*Remove\x20format:*\x20%0',_0x16dd41['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x55f69e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x478ea4){super(_0x478ea4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4fe35a=this['editor'],_0x1fbd5c=_0x4fe35a['model']['document']['selection'];if(!_0x4fe35a['plugins']['has']('TableEditing'))return;const _0x2dd60a=_0x4fe35a['locale'],_0xb69975=_0x4fe35a['plugins']['get']('TrackChangesEditing'),_0x2ce51e=_0x4fe35a['plugins']['get']('TableUtils');_0xb69975['descriptionFactory']['registerElementLabel']('table',_0x1ca8f7=>o(_0x2dd60a,'ELEMENT_TABLE',_0x1ca8f7)),this['_setupColumnsRowsFixing'](),_0xb69975['enableCommand']('insertTable'),_0xb69975['enableCommand']('selectTableRow'),_0xb69975['enableCommand']('selectTableColumn');for(const _0x4e02cf of['insertTableRowAbove','insertTableRowBelow']){const _0x325fa9=_0x4fe35a['commands']['get'](_0x4e02cf);_0xb69975['enableCommand'](_0x4e02cf,_0x55b6b0=>{_0x4fe35a['model']['change'](_0x40506b=>{_0x55b6b0();const _0x5070b8='above'===_0x325fa9['order'],_0x38a232=_0x2ce51e['getSelectionAffectedTableCells'](_0x1fbd5c),_0x13608e=_0x2ce51e['getRowIndexes'](_0x38a232),_0x200448=_0x5070b8?_0x13608e['first']-0x1:_0x13608e['last']+0x1,_0x52e791=_0x38a232[0x0]['findAncestor']('table'),_0x1ec8ad=_0x2ce51e['createTableWalker'](_0x52e791,{'startRow':_0x200448,'endRow':_0x200448}),_0x1cc51c=Array['from'](_0x1ec8ad)['map'](_0x36ed04=>_0x40506b['createRangeOn'](_0x36ed04['cell']));_0xb69975['markMultiRangeInsertion'](_0x1cc51c,'tableRow');});});}for(const _0x43d1eb of['insertTableColumnLeft','insertTableColumnRight']){const _0x14be76=_0x4fe35a['commands']['get'](_0x43d1eb);_0xb69975['enableCommand'](_0x43d1eb,_0x101ee7=>{_0x4fe35a['model']['change'](_0x137c52=>{_0x101ee7();const _0xe4fe74='left'===_0x14be76['order'],_0x192dfe=_0x2ce51e['getSelectionAffectedTableCells'](_0x1fbd5c),_0x27708e=_0x2ce51e['getColumnIndexes'](_0x192dfe),_0x53281f=_0xe4fe74?_0x27708e['first']-0x1:_0x27708e['last']+0x1,_0x5c1f0f=_0x192dfe[0x0]['findAncestor']('table'),_0xc3deb8=_0x2ce51e['createTableWalker'](_0x5c1f0f,{'startRow':0x0,'column':_0x53281f,'includeAllSlots':!0x1}),_0x5a1e99=Array['from'](_0xc3deb8)['map'](_0x3adffe=>_0x137c52['createRangeOn'](_0x3adffe['cell']));_0xb69975['markMultiRangeInsertion'](_0x5a1e99,'tableColumn');});});}for(const _0x5dd87a of['removeTableRow','removeTableColumn']){const _0x2ea53a=_0x5dd87a['substr'](0xb),_0x3ecd19=_0x2ea53a['toLowerCase'](),_0x49ad68=_0x3ecd19['substr'](0x0,0x3)+'span',_0x442733='table'+_0x2ea53a,_0x3e5316='min'+_0x2ea53a,_0x14a3d9='max'+_0x2ea53a;_0xb69975['enableCommand'](_0x5dd87a,()=>{_0x4fe35a['model']['change'](_0x31910b=>{const _0xe4826c=_0x2ce51e['getSelectionAffectedTableCells'](_0x1fbd5c),_0x103bdb=_0xe4826c[0x0]['findAncestor']('table');let _0x20f362;if('removeTableRow'==_0x5dd87a){const _0xc9d27=_0x2ce51e['getRowIndexes'](_0xe4826c);_0x20f362={'startRow':_0xc9d27['first'],'endRow':_0xc9d27['last'],'includeAllSlots':!0x0};}else{const _0x4f8a74=_0x2ce51e['getColumnIndexes'](_0xe4826c);_0x20f362={'startColumn':_0x4f8a74['first'],'endColumn':_0x4f8a74['last'],'includeAllSlots':!0x0};}const _0x565f78=_0x2ce51e['createTableWalker'](_0x103bdb,_0x20f362),_0x72ca3a=Array['from'](_0x565f78)['map'](({cell:_0x137ad6})=>_0x137ad6),_0x28bc7b=be(_0x72ca3a['filter'](_0x272288=>_0x272288['hasAttribute'](_0x49ad68))),_0x1d2774=be(_0x72ca3a['filter'](_0x555885=>!_0x555885['hasAttribute'](_0x49ad68)))['map'](_0x3c0b04=>_0x31910b['createRangeOn'](_0x3c0b04)),_0xf52ed6=_0xb69975['markMultiRangeDeletion'](_0x1d2774,_0x442733);if(_0xf52ed6&&('tableRow'==_0xf52ed6['subType']||'tableColumn'==_0xf52ed6['subType'])){const _0x58a83a=this['_getSuggestionCoords'](_0xf52ed6);for(const _0x3d6bc4 of _0x28bc7b){const _0x5d4050=_0x31910b['createRangeOn'](_0x3d6bc4),_0x33aa81=_0x2ce51e['getCellLocation'](_0x3d6bc4),_0x3e7a4c=_0x3d6bc4['getAttribute'](_0x49ad68)-0x1,_0x29a2ac=_0x58a83a[_0x3e5316],_0x41e136=_0x58a83a[_0x14a3d9];_0x29a2ac<=_0x33aa81[_0x3ecd19]&&_0x33aa81[_0x3ecd19]+_0x3e7a4c<=_0x41e136&&_0xf52ed6['addRange'](_0x5d4050);}}});});}function _0x9016f7(_0x4f777f){const _0x2f7060=Array['from'](_0x1fbd5c['getRanges']())['map'](_0x206e9f=>_0x46da37['fromRange'](_0x206e9f));_0x4fe35a['model']['change'](_0x4c43c5=>{const _0x2f17e0=_0x4c43c5['batch'];_0x4f777f=_0x4f777f['filter'](_0x41e05e=>'$graveyard'!=_0x41e05e['root']['rootName']),_0x4c43c5['setSelection'](_0x4f777f),_0x4fe35a['commands']['get']('removeTableRow')['refresh'](),_0x4fe35a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4fe35a['model']['enqueueChange'](()=>{_0x4fe35a['model']['enqueueChange'](_0x2f17e0,_0x3151b0=>{const _0x1fede7=_0x2f7060['filter'](_0xe23ed3=>'$graveyard'!=_0xe23ed3['root']['rootName']);_0x1fede7['length']>0x0&&_0x3151b0['setSelection'](_0x1fede7);for(const _0x37f834 of _0x2f7060)_0x37f834['detach']();});});});}function _0x16012c(_0x49dbea){_0x4fe35a['model']['change'](_0x1efb7e=>{const _0x5d5f9b=Array['from'](_0x1fbd5c['getRanges']())['map'](_0x1685ff=>_0x46da37['fromRange'](_0x1685ff)),_0x42ae2b=[];for(const _0x1de4d0 of _0x49dbea)for(const _0x37facb of _0x1de4d0['getItems']({'shallow':!0x0}))_0x42ae2b['push'](_0x37facb);for(const _0x1b1b12 of _0x42ae2b)'$graveyard'!=_0x1b1b12['root']['rootName']&&(_0x1efb7e['setSelection'](_0x1efb7e['createPositionAt'](_0x1b1b12,0x0)),_0x4fe35a['commands']['get']('removeTableColumn')['refresh'](),_0x4fe35a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x39784b=_0x5d5f9b['filter'](_0x343a50=>'$graveyard'!=_0x343a50['root']['rootName']);_0x39784b['length']>0x0&&_0x1efb7e['setSelection'](_0x39784b);for(const _0x10db17 of _0x5d5f9b)_0x10db17['detach']();});}function _0x3d0978(_0x23faab,_0x31236d){return _0x31236d['every'](_0x5d66e6=>_0x23faab['some'](_0x4eb166=>_0x4eb166['end']['isEqual'](_0x5d66e6['start'])||_0x5d66e6['end']['isEqual'](_0x4eb166['start'])));}function _0x2a4a12(_0x859918,_0x31c9f1){return!_0x859918['some'](_0x237d3d=>_0x31c9f1['some'](_0x3fb5d7=>_0x237d3d['isIntersecting'](_0x3fb5d7)))&&_0x859918['some'](_0x450eff=>_0x31c9f1['some'](_0x8983c9=>_0x450eff['end']['isTouching'](_0x8983c9['start'])));}_0x4fe35a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x577f78,_0x4723fb,_0x2bf26b)=>{if(!_0x2bf26b['options']['showSuggestionHighlights'])return;const _0x6713c3=_0x4723fb['item'];if(!_0x6713c3)return;const _0x2bd62a=_0x2bf26b['mapper']['toViewElement'](_0x6713c3);function _0x3e3e6a(_0x1aa88b){return Array['isArray'](_0x1aa88b)?_0x1aa88b:[_0x1aa88b];}_0x2bd62a&&'tableCell'===_0x6713c3['name']&&_0x42a791(_0x2bd62a,_0x2bf26b['writer'],(_0x4c8cc2,_0x3bae5b,_0x26ca51)=>_0x26ca51['addClass'](_0x3e3e6a(_0x3bae5b['classes']),_0x4c8cc2),(_0x357020,_0x294a21,_0x402144)=>_0x402144['removeClass'](_0x3e3e6a(_0x294a21['classes']),_0x357020));},{'priority':'highest'}),_0xb69975['descriptionFactory']['registerDescriptionCallback'](_0x5f859c=>{if('insertion'!=_0x5f859c['type']&&'deletion'!=_0x5f859c['type'])return;const _0x1a61af=_0x5f859c['getContainedElement']();if(null!=_0x1a61af&&_0x1a61af['is']('element','table')){if('insertion'==_0x5f859c['type']){const _0x36d63a=_0x5f859c['getItems']()['filter'](_0xc28a16=>_0xc28a16['is']('$textProxy'))['map'](_0x48149c=>_0x48149c['data']);if(_0x36d63a['length'])return{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36d63a['join']('\x20')+'\x22'))};}if('deletion'==_0x5f859c['type']){const _0x398a19=_0x5f859c['getItems']()['filter'](_0x544d8=>_0x544d8['is']('$textProxy'))['map'](_0x5bfa78=>_0x5bfa78['data']);if(_0x398a19['length'])return{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x398a19['join']('\x20')+'\x22'))};}}}),_0xb69975['descriptionFactory']['registerDescriptionCallback'](_0x46b844=>{if('tableRow'==_0x46b844['subType']){const _0x50ab2a=_0x46b844['getItems']()['filter'](_0x4122a3=>_0x4122a3['is']('$textProxy'))['map'](_0x3a071e=>_0x3a071e['data']),_0xe97552=this['_getSuggestionCoords'](_0x46b844),_0x2a818c=_0xe97552['maxRow']-_0xe97552['minRow']+0x1;if('insertion'==_0x46b844['type'])return _0x50ab2a['length']?{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a818c,'\x22'+_0x50ab2a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW',_0x2a818c))};if('deletion'==_0x46b844['type'])return _0x50ab2a['length']?{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a818c,'\x22'+_0x50ab2a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_ROW',_0x2a818c))};}if('tableColumn'==_0x46b844['subType']){const _0x2dcc66=_0x46b844['getItems']()['filter'](_0xad7c41=>_0xad7c41['is']('$textProxy'))['map'](_0x3eb74f=>_0x3eb74f['data']),_0x4396c4=this['_getSuggestionCoords'](_0x46b844),_0x387b29=_0x4396c4['maxColumn']-_0x4396c4['minColumn']+0x1;if('insertion'==_0x46b844['type'])return _0x2dcc66['length']?{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x387b29,'\x22'+_0x2dcc66['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2dd60a,'*Insert:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN',_0x387b29))};if('deletion'==_0x46b844['type'])return _0x2dcc66['length']?{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x387b29,'\x22'+_0x2dcc66['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2dd60a,'*Remove:*\x20%0',o(_0x2dd60a,'ELEMENT_TABLE_COLUMN',_0x387b29))};}}),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9016f7),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9016f7),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x16012c),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x16012c),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d0978),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d0978),_0xb69975['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2a4a12),_0xb69975['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2a4a12);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5676a5=this['editor'],_0x481e0d=_0x5676a5['model']['document']['selection'];return(_0x38be17,_0x21462e)=>{_0x5676a5['model']['change'](_0x3b4496=>{const {commandName:_0x346dbb,commandParams:_0x4e40e4}=_0x21462e;let _0x6afde8=_0x38be17[0x0]['end']['nodeBefore'];_0x4e40e4&&_0x4e40e4[0x0]&&!0x1===_0x4e40e4[0x0]['forceValue']&&(_0x6afde8=_0x38be17[0x0]['start']['nodeAfter']);const _0x3ce9cb=_0x3b4496['createRangeIn'](_0x6afde8);if('$graveyard'==_0x3ce9cb['root']['rootName'])return;const _0x3342ed=Array['from'](_0x481e0d['getRanges']())['map'](_0x9f1bb4=>_0x46da37['fromRange'](_0x9f1bb4));_0x3b4496['setSelection'](_0x3ce9cb),_0x5676a5['commands']['get'](_0x346dbb)['refresh'](),_0x4e40e4['push']({'forceDefaultExecution':!0x0}),_0x5676a5['execute'](_0x346dbb,..._0x4e40e4);const _0x2e6dd8=_0x3342ed['filter'](_0x3ea0e2=>'$graveyard'!=_0x3ea0e2['root']['rootName']);_0x2e6dd8['length']>0x0&&_0x3b4496['setSelection'](_0x2e6dd8);for(const _0x329c9e of _0x3342ed)_0x329c9e['detach']();});};}['_getCoordsForCells'](_0x30d6ce){const _0x4731ca=this['editor']['plugins']['get']('TableUtils');let _0x3a0198=Number['MAX_SAFE_INTEGER'],_0x307a46=Number['MIN_SAFE_INTEGER'],_0x2b77fa=Number['MAX_SAFE_INTEGER'],_0x11d981=Number['MIN_SAFE_INTEGER'];for(const _0x46151c of _0x30d6ce){if('$graveyard'==_0x46151c['root']['rootName'])continue;const {row:_0x126861,column:_0x28e3fa}=_0x4731ca['getCellLocation'](_0x46151c),_0x143dd0=_0x46151c['hasAttribute']('rowspan')?_0x46151c['getAttribute']('rowspan')-0x1:0x0,_0x43d38c=_0x46151c['hasAttribute']('colspan')?_0x46151c['getAttribute']('colspan')-0x1:0x0;_0x3a0198=_0x126861<_0x3a0198?_0x126861:_0x3a0198,_0x307a46=_0x126861+_0x143dd0>_0x307a46?_0x126861+_0x143dd0:_0x307a46,_0x2b77fa=_0x28e3fa<_0x2b77fa?_0x28e3fa:_0x2b77fa,_0x11d981=_0x28e3fa+_0x43d38c>_0x11d981?_0x28e3fa+_0x43d38c:_0x11d981;}return{'minRow':_0x3a0198,'maxRow':_0x307a46,'minColumn':_0x2b77fa,'maxColumn':_0x11d981};}['_setupColumnsRowsFixing'](){const _0x27cca4=this['editor'],_0xda5b66=_0x27cca4['plugins']['get']('TrackChangesEditing'),_0x4d9f4e=_0x27cca4['plugins']['get']('TableUtils');_0x27cca4['model']['document']['on']('change:data',()=>{const _0x54bf2e=Array['from'](_0x27cca4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10b960,data:_0x38dbcf}of _0x54bf2e){const {group:_0x57037e,id:_0x1576fa,subType:_0x1e7f38}=_0xda5b66['_splitMarkerName'](_0x10b960);if('suggestion'!=_0x57037e)continue;if(null!=_0x38dbcf['oldRange'])continue;const _0x2a40d2=_0xda5b66['getSuggestion'](_0x1576fa);this['_tablePostFixingSubtypes']['includes'](_0x1e7f38)&&this['_tableSuggestions']['add'](_0x2a40d2);}},{'priority':'low'});const _0x50a155=(_0x54cf44,_0x1de660)=>{let _0x4153d1=!0x1;const _0x264be3=_0x1de660['createRangeOn'](_0x54cf44),_0x67e666=_0x54cf44['findAncestor']('table'),_0x28a90f=_0x4d9f4e['getCellLocation'](_0x54cf44);for(const _0xbde1b6 of this['_tableSuggestions']){const _0x214bd5=_0xbde1b6['subType'],_0x389eeb=_0x214bd5['startsWith']('tablePaste'),_0x1557ad=_0x214bd5['substr'](_0x389eeb?0xa:0x5),_0x3f012e=_0x1557ad['toLowerCase'](),_0x3abc4b=_0x3f012e['substr'](0x0,0x3)+'span',_0xe01532='min'+_0x1557ad,_0x1a3a9d='max'+_0x1557ad;if(!_0xbde1b6['isInContent'])continue;if(_0x67e666!=_0xbde1b6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xbde1b6['isIntersectingWithRange'](_0x264be3))continue;const _0x3e726f=_0x54cf44['hasAttribute'](_0x3abc4b)?_0x54cf44['getAttribute'](_0x3abc4b)-0x1:0x0,_0x2fab34=this['_getSuggestionCoords'](_0xbde1b6),_0x1d7891=_0x2fab34[_0xe01532],_0x258741=_0x2fab34[_0x1a3a9d];_0x1d7891<=_0x28a90f[_0x3f012e]&&_0x28a90f[_0x3f012e]+_0x3e726f<=_0x258741&&(_0xbde1b6['addRange'](_0x264be3),_0x4153d1=!0x0);}return _0x4153d1;};_0x27cca4['model']['document']['registerPostFixer'](_0x313856=>{let _0x1cf919=!0x1;for(const _0x2360fa of _0x27cca4['model']['document']['differ']['getChanges']())if('insert'==_0x2360fa['type']){if('tableRow'==_0x2360fa['name']){for(const _0x673a59 of _0x2360fa['position']['nodeAfter']['getChildren']())_0x1cf919=_0x1cf919||_0x50a155(_0x673a59,_0x313856);}else'tableCell'==_0x2360fa['name']&&(_0x1cf919=_0x1cf919||_0x50a155(_0x2360fa['position']['nodeAfter'],_0x313856));}return _0x1cf919;});}['_getSuggestionCoords'](_0x431a4b){return this['_getCoordsForCells'](_0x431a4b['getRanges']()['map'](_0x3f142d=>_0x3f142d['start']['nodeAfter']));}}function be(_0x5a00de){return Array['from'](new Set(_0x5a00de)['values']());}class vt extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x135187=this['editor'],_0x4702e6=_0x135187['model']['document']['selection'],_0x3c4ab5=_0x135187['locale'];if(!_0x135187['plugins']['has']('TableEditing'))return;const _0x34229f=_0x135187['plugins']['get']('TrackChangesEditing'),_0x3d5522=_0x135187['plugins']['get']('TableUtils'),_0x250e55=_0x135187['plugins']['get'](It);_0x250e55['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x34229f['enableCommand']('mergeTableCells',()=>{const _0x108b70=_0x3d5522['getSelectionAffectedTableCells'](_0x135187['model']['document']['selection']);_0x135187['model']['change'](()=>{_0x34229f['markMultiRangeBlockFormat'](_0x108b70,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x135187['commands']['get']('mergeTableCells')['on']('execute',(_0x3d268b,_0x18add3)=>{_0x135187['commands']['get']('trackChanges')['value']&&(_0x18add3['length']>0x0&&_0x18add3[_0x18add3['length']-0x1]&&_0x18add3[_0x18add3['length']-0x1]['forceDefaultExecution']||_0x34229f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3d268b['stop']());},{'priority':'highest'});for(const _0x4bba91 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50e30d=_0x135187['commands']['get'](_0x4bba91);_0x34229f['enableCommand'](_0x4bba91,()=>{const _0x20ba57=_0x135187['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ca8d1=>_0x3ca8d1['is']('element','tableCell')),_0x2bd071=_0x50e30d['value'];_0x135187['model']['change'](()=>{_0x34229f['markMultiRangeBlockFormat']([_0x20ba57,_0x2bd071],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x6b1fd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x661bcb=_0x135187['commands']['get'](_0x6b1fd);_0x34229f['enableCommand'](_0x6b1fd,()=>{const _0x55bef8=_0x3d5522['getSelectionAffectedTableCells'](_0x135187['model']['document']['selection'])[0x0],_0x2c2b1f=_0x55bef8['findAncestor']('table'),{column:_0x1443cc,row:_0x5d942c}=_0x3d5522['getCellLocation'](_0x55bef8);let _0x3ef81c=[];if('horizontally'==_0x661bcb['direction']){const _0x1f84be=_0x3d5522['createTableWalker'](_0x2c2b1f,{'startRow':_0x5d942c,'endRow':_0x5d942c,'includeAllSlots':!0x0});_0x3ef81c=Array['from'](_0x1f84be)['map'](_0xd8b2d1=>_0xd8b2d1['cell']);}else{const _0x484281=_0x3d5522['createTableWalker'](_0x2c2b1f,{'column':_0x1443cc,'includeAllSlots':!0x0});_0x3ef81c=Array['from'](_0x484281)['map'](_0x3e4bb6=>_0x3e4bb6['cell']);}_0x135187['model']['change'](_0x2dfb3b=>{_0x34229f['markBlockFormat'](_0x2dfb3b['createRangeOn'](_0x55bef8),{'commandName':_0x6b1fd,'commandParams':[]},_0x3ef81c,_0x6b1fd);});});}_0x34229f['descriptionFactory']['registerDescriptionCallback'](_0x22c489=>{if('formatBlock'!=_0x22c489['type']&&'formatInline'!=_0x22c489['type'])return;const {data:_0x29ff6e}=_0x22c489;return _0x29ff6e&&'mergeTableCells'==_0x29ff6e['commandName']?{'type':'format','content':o(_0x3c4ab5,'*Merge\x20cells*')}:void 0x0;}),_0x34229f['descriptionFactory']['registerDescriptionCallback'](_0x2e4c87=>{if('formatBlock'!=_0x2e4c87['type']&&'formatInline'!=_0x2e4c87['type'])return;const {data:_0x1adf2b}=_0x2e4c87;return _0x1adf2b?'splitTableCellVertically'==_0x1adf2b['commandName']?{'type':'format','content':o(_0x3c4ab5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1adf2b['commandName']?{'type':'format','content':o(_0x3c4ab5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x261575=_0x250e55['_acceptFormatSuggestionCallbackFactory']();for(const _0x118bad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x34229f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x118bad,'accept',_0x261575);for(const _0x1df3cf of['splitTableCellVertically','splitTableCellHorizontally'])_0x34229f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1df3cf,'accept',_0x261575);_0x34229f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x304784=>{_0x135187['model']['change'](_0x5693e4=>{const _0x5e6fad=Array['from'](_0x4702e6['getRanges']())['map'](_0x1280eb=>_0x46da37['fromRange'](_0x1280eb));_0x5693e4['setSelection'](_0x304784),_0x135187['commands']['get']('mergeTableCells')['refresh'](),_0x135187['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5da8c6=_0x5e6fad['filter'](_0x1ed8dc=>'$graveyard'!=_0x1ed8dc['root']['rootName']);_0x5da8c6['length']>0x0&&_0x5693e4['setSelection'](_0x5da8c6);for(const _0x1aad79 of _0x5e6fad)_0x1aad79['detach']();});});for(const _0x5be488 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c19d9=_0x135187['commands']['get'](_0x5be488);_0x5c19d9['on']('set:isEnabled',(_0x2de3ae,_0x1a13a3,_0x7bc4d5)=>{if(_0x7bc4d5){const _0x531655=_0x135187['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf9ee91=>_0xf9ee91['is']('element','tableCell'));this['_areMergableCells'](_0x5c19d9['value'],_0x531655)||(_0x2de3ae['return']=!0x1,_0x2de3ae['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x59820e=this['editor']['commands']['get']('mergeTableCells'),_0x847a43=this['editor']['plugins']['get']('TableUtils');if(!_0x59820e['isEnabled'])return!0x1;const _0x423807=_0x847a43['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x46c075 of _0x423807)for(const _0x532aa7 of _0x423807)if(_0x46c075!=_0x532aa7&&!this['_areMergableCells'](_0x46c075,_0x532aa7))return!0x1;return!0x0;}['_areMergableCells'](_0x698db5,_0x34758a){const _0x11eef1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a2178=this['editor']['model']['createRangeOn'](_0x698db5),_0x3a4362=this['editor']['model']['createRangeOn'](_0x34758a),_0x475a3a=new Set(),_0x1496ea=new Set();for(const _0x291955 of _0x11eef1['getSuggestions']())if(('insertion'==_0x291955['type']||'deletion'==_0x291955['type']||'mergeTableCells'==_0x291955['subType'])&&_0x291955['isInContent']){for(const _0x24ab8e of _0x291955['getRanges']())_0x24ab8e['containsRange'](_0x2a2178,!0x0)&&_0x475a3a['add'](_0x291955['type']+':'+_0x291955['author']['id']),_0x24ab8e['containsRange'](_0x3a4362,!0x0)&&_0x1496ea['add'](_0x291955['type']+':'+_0x291955['author']['id']);}if(_0x475a3a['size']!=_0x1496ea['size'])return!0x1;for(const _0x2ab320 of _0x475a3a)if(!_0x1496ea['has'](_0x2ab320))return!0x1;return!0x0;}}class Ct extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x4a6a10=this['editor'];if(!_0x4a6a10['plugins']['has']('TableEditing'))return;const _0x18c0a5=_0x4a6a10['locale'],_0x288eb6=_0x4a6a10['plugins']['get']('TrackChangesEditing');_0x288eb6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x288eb6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x288eb6['registerBlockAttribute']('headingRows'),_0x288eb6['registerBlockAttribute']('headingColumns'),_0x288eb6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x18c0a5,'FORMAT_HEADER_ROW')),_0x288eb6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x18c0a5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4276f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1412f4=this['editor']['plugins']['get']('TableUtils'),_0x2cadc4=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4cae6e({showActiveMarker:_0x859df3=!0x0,setDataAttribute:_0xf62213=!0x0}={}){return(_0x1f9ce4,_0x1f25ba,_0x2bdc3b)=>{const {type:_0x4c6372,id:_0x427521}=_0x4276f9['_splitMarkerName'](_0x1f25ba['markerName']),_0xed776c=_0x4276f9['getSuggestion'](_0x427521),_0x5e1fba=_0xed776c['data'];if('formatBlock'!=_0xed776c['type']||!_0x5e1fba||'setTableColumnHeader'!=_0x5e1fba['commandName'])return;if(_0x1f25ba['item'])return void _0x1f9ce4['stop']();if(!_0x2bdc3b['consumable']['consume'](_0x1f25ba['markerRange'],_0x1f9ce4['name']))return;const _0x31d4db=_0x1f25ba['markerRange']['start']['nodeAfter'],_0x301932=_0x1f25ba['markerRange']['end']['nodeBefore'],_0x57ec2e=_0x31d4db['parent']['parent'],{column:_0x3440b9}=_0x1412f4['getCellLocation'](_0x31d4db),{column:_0x208753}=_0x1412f4['getCellLocation'](_0x301932);for(let _0x2ef464=_0x3440b9;_0x2ef464<=_0x208753;_0x2ef464++){const _0x5294b5=_0x1412f4['createTableWalker'](_0x57ec2e,{'column':_0x2ef464,'includeAllSlots':!0x1});for(const _0x43c822 of _0x5294b5){const _0x4fd7ed=_0x43c822['cell'],_0x8f1b8e=_0x2bdc3b['mapper']['toViewElement'](_0x4fd7ed);_0x2bdc3b['writer']['addClass']('ck-suggestion-marker-'+_0x4c6372,_0x8f1b8e),_0xf62213&&_0x2bdc3b['writer']['setAttribute']('data-suggestion',_0x427521,_0x8f1b8e),_0x2bdc3b['mapper']['bindElementToMarker'](_0x8f1b8e,_0x1f25ba['markerName']),_0x859df3&&(_0x4276f9['activeMarkers']['includes'](_0x1f25ba['markerName'])?_0x2bdc3b['writer']['addClass']('ck-suggestion-marker--active',_0x8f1b8e):_0x2bdc3b['writer']['removeClass']('ck-suggestion-marker--active',_0x8f1b8e));}}};}_0x4276f9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2cadc4),_0x4276f9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2cadc4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4cae6e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b0061,_0x43e523,_0x23db88)=>{_0x23db88['options']['showSuggestionHighlights']&&_0x4cae6e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b0061,_0x43e523,_0x23db88);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x145a93,_0x12cb24,_0x5bb158)=>{const {type:_0x35b598,id:_0x4a48ec}=_0x4276f9['_splitMarkerName'](_0x12cb24['markerName']),_0x1b2d64=_0x4276f9['getSuggestion'](_0x4a48ec),_0x5a637f=_0x1b2d64['data'];if('formatBlock'!=_0x1b2d64['type']||!_0x5a637f||'setTableColumnHeader'!=_0x5a637f['commandName'])return;const _0x592508=_0x5bb158['mapper']['markerNameToElements'](_0x12cb24['markerName']);if(_0x592508){for(const _0xaab1b9 of _0x592508)_0x5bb158['writer']['removeClass']('ck-suggestion-marker-'+_0x35b598,_0xaab1b9),_0x5bb158['writer']['removeClass']('ck-suggestion-marker--active',_0xaab1b9),_0x5bb158['writer']['removeAttribute']('data-suggestion',_0xaab1b9),_0x5bb158['mapper']['unbindElementFromMarkerName'](_0xaab1b9,_0x12cb24['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5582d6=this['editor'],_0x4804bc=_0x5582d6['locale'];function _0x4c2273(_0x3e1030){return{'type':'format','content':o(_0x4804bc,'*Format:*\x20%0',_0x3e1030)};}_0x5582d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7bafef=>{if('formatBlock'!=_0x7bafef['type'])return;const {data:_0x4011b4}=_0x7bafef;if(_0x4011b4){if('setTableRowHeader'==_0x4011b4['commandName']){const _0x331107=_0x4011b4['commandParams'][0x0]['forceValue'];return _0x4c2273(o(_0x4804bc,_0x331107?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4011b4['commandName']){const _0x30dadd=_0x4011b4['commandParams'][0x0]['forceValue'];return _0x4c2273(o(_0x4804bc,_0x30dadd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x50850f=>[_0x50850f,null]));class _t extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x5ea86a=this['editor'];if(!_0x5ea86a['plugins']['has']('TableClipboard'))return;const _0x26fd90=_0x5ea86a['plugins']['get']('TrackChangesEditing'),_0x4525a9=_0x5ea86a['plugins']['get']('TableUtils'),_0x4f8586=_0x5ea86a['plugins']['get'](It),_0x45f495=_0x5ea86a['plugins']['get']('TableClipboard');_0x4f8586['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5ea86a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5ea86a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f61fc=null;_0x5ea86a['model']['on']('insertContent',(_0x54d329,_0x331189)=>{const [_0x385d3e,_0x574afd]=_0x331189,_0x25a7fa=_0x331189[_0x331189['length']-0x1];_0x25a7fa&&_0x25a7fa['forceDefaultExecution']||_0x26fd90['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x13f945,_0x4655a1,_0x590c0f,_0x1ae20a,_0x3e39b3){if(_0x4655a1&&!_0x4655a1['is']('documentSelection'))return!0x1;const _0x349ceb=_0x3e39b3['getTableIfOnlyTableInContent'](_0x13f945,_0x590c0f);if(!_0x349ceb||!Re(_0x349ceb,void 0x0,_0x1ae20a))return!0x1;const _0x203ef7=_0x1ae20a['getSelectionAffectedTableCells'](_0x590c0f['document']['selection']);if(!_0x203ef7['length'])return!0x1;const _0x37690b=_0x203ef7[0x0]['findAncestor']('table'),_0x50dae0=_0x1ae20a['getRowIndexes'](_0x203ef7),_0x16b0a2=_0x1ae20a['getColumnIndexes'](_0x203ef7),_0x4ff621={'startRow':_0x50dae0['first'],'endRow':_0x50dae0['last'],'startColumn':_0x16b0a2['first'],'endColumn':_0x16b0a2['last']};return 0x1==_0x203ef7['length']&&(_0x4ff621['endRow']+=_0x1ae20a['getRows'](_0x349ceb)-0x1,_0x4ff621['endColumn']+=_0x1ae20a['getColumns'](_0x349ceb)-0x1),Re(_0x37690b,_0x4ff621,_0x1ae20a);}(_0x385d3e,_0x574afd,_0x5ea86a['model'],_0x4525a9,_0x45f495)&&(_0x54d329['stop'](),_0x2f61fc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5ea86a['model']['change'](()=>{_0x5ea86a['model']['insertContent'](_0x331189[0x0],_0x331189[0x1],_0x331189[0x2],{'forceDefaultExecution':!0x0});const _0x3863a3=_0x55f5c8(),{rowInsertionRanges:_0x578e55,columnInsertionRanges:_0x2e66f1,insertionRanges:_0x243f1a,deletionRanges:_0x45fbcf,cells:_0x353e77}=_0x2f61fc;_0x578e55['length']&&_0x26fd90['markMultiRangeInsertion'](_0x578e55,'tablePasteRow',{'tablePasteChainId':_0x3863a3}),_0x2e66f1['length']&&_0x26fd90['markMultiRangeInsertion'](_0x2e66f1,'tablePasteColumn',{'tablePasteChainId':_0x3863a3}),_0x243f1a['length']&&(_0x26fd90['markMultiRangeInsertion'](_0x243f1a,'tablePaste',{'tablePasteChainId':_0x3863a3,'skipNestingCheck':!0x0}),_0x243f1a['forEach'](_0x4585cb=>_0x4585cb['detach']?.())),_0x45fbcf['length']&&(_0x26fd90['markMultiRangeDeletion'](_0x45fbcf,'tablePaste',{'tablePasteChainId':_0x3863a3,'skipNestingCheck':!0x0}),_0x45fbcf['forEach'](_0x1a0811=>_0x1a0811['detach']?.()));const _0x300f5d=_0x26fd90['markMultiRangeBlockFormat'](_0x353e77['map'](({element:_0x5886ba})=>_0x5886ba),{'formatGroupId':_0x55f5c8()},[],'tablePasteCell',{'tablePasteChainId':_0x3863a3});if(_0x300f5d){const _0x7e6a3a=_0x300f5d['getMarkers'](),_0x6a7207=[];for(const {element:_0x44829a,attributes:_0xb398f3}of _0x353e77){if(!_0xb398f3)continue;const _0x5b234b=_0x5ea86a['model']['createRangeOn'](_0x44829a),_0x379402=_0x7e6a3a['find'](_0xff80d4=>_0xff80d4['getRange']()['isEqual'](_0x5b234b));_0x379402&&_0x6a7207['push']([_0x379402['name'],_0xb398f3]);}_0x6a7207['length']&&_0x300f5d['setAttribute']('markerAttributes',Object['fromEntries'](_0x6a7207));}_0x2f61fc=null;}));},{'priority':_0x4d60ea['high']+0xa}),_0x5ea86a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42051a,_0x9b8f8f)=>{const [_0x126ada,_0x4a85c0,,_0x5aca7a]=_0x9b8f8f;if(!_0x2f61fc)return;_0x42051a['stop']();const _0xb250a3=_0x126ada['cell'],_0x436b30=_0x4a85c0,_0x3d6741=ke(_0xb250a3),_0x361f3e=ke(_0x436b30);_0x42051a['return']=_0xb250a3;let _0x2e0d50=null,_0x1a0fba=null;if(_0x361f3e||_0x3d6741){if(_0x3d6741&&!_0x361f3e){_0x5aca7a['remove'](_0xb250a3['getChild'](0x0));for(const _0x5ee21e of Array['from'](_0x436b30['getChildren']()))_0x5aca7a['insert'](_0x5ee21e,_0xb250a3,'end');const _0x322cc8=_0x2f61fc['rowInsertionIndexes']['includes'](_0x126ada['row']),_0x1e4b06=_0x2f61fc['columnInsertionIndexes']['includes'](_0x126ada['column']);_0x322cc8||_0x1e4b06||(_0x2e0d50=_0x46da37['fromRange'](_0x5aca7a['createRangeIn'](_0xb250a3)));}else _0x361f3e&&!_0x3d6741&&(_0x1a0fba=_0x5aca7a['createRangeIn'](_0xb250a3));}else{const _0x2d0369=_0x5aca7a['createElement']('tableCellSuggestion'),_0x4cc88d=_0x5aca7a['createElement']('tableCellSuggestion');_0x5aca7a['wrap'](_0x5aca7a['createRangeIn'](_0xb250a3),_0x4cc88d),_0x5aca7a['insert'](_0x2d0369,_0xb250a3,0x0);for(const _0x3db441 of Array['from'](_0x436b30['getChildren']()))_0x5aca7a['insert'](_0x3db441,_0x2d0369,'end');_0x2e0d50=_0x46da37['fromRange'](_0x5aca7a['createRangeOn'](_0x2d0369)),_0x1a0fba=_0x46da37['fromRange'](_0x5aca7a['createRangeOn'](_0x4cc88d));}const _0x22a9b2=Array['from'](_0x436b30['getAttributes']())['filter'](([_0x123385])=>Pe['includes'](_0x123385));_0x2f61fc['cells']['push']({'element':_0xb250a3,'attributes':_0x22a9b2['length']?Object['fromEntries'](_0x22a9b2):null}),_0x2e0d50&&_0x2f61fc['insertionRanges']['push'](_0x2e0d50),_0x1a0fba&&_0x2f61fc['deletionRanges']['push'](_0x1a0fba);},{'priority':'high'}),_0x4525a9['on']('insertColumns',(_0x3a0128,_0x49d961)=>{const [_0x39fbf9,_0x3c7af1={}]=_0x49d961;if(!_0x2f61fc)return;const _0x22270e=_0x3c7af1['at']||0x0,_0x5d6788=_0x3c7af1['columns']||0x1;_0x2f61fc['columnInsertionIndexes']=new Array(_0x5d6788)['fill'](_0x22270e)['map']((_0x437df7,_0x3b1a2c)=>_0x437df7+_0x3b1a2c);for(const {cell:_0x45237b}of _0x4525a9['createTableWalker'](_0x39fbf9,{'startColumn':_0x22270e,'endColumn':_0x22270e+_0x5d6788-0x1}))_0x2f61fc['columnInsertionRanges']['push'](_0x5ea86a['model']['createRangeOn'](_0x45237b));},{'priority':'low'}),_0x4525a9['on']('insertRows',(_0x11fd44,_0xf5e54b)=>{const [_0x2fff8d,_0xd65f2c={}]=_0xf5e54b;if(!_0x2f61fc)return;const _0x22fbe2=_0xd65f2c['at']||0x0,_0x590ba1=_0xd65f2c['rows']||0x1;_0x2f61fc['rowInsertionIndexes']=new Array(_0x590ba1)['fill'](_0x22fbe2)['map']((_0x5553f4,_0x160648)=>_0x5553f4+_0x160648);for(const {cell:_0x17b097}of _0x4525a9['createTableWalker'](_0x2fff8d,{'startRow':_0x22fbe2,'endRow':_0x22fbe2+_0x590ba1-0x1}))_0x2f61fc['rowInsertionRanges']['push'](_0x5ea86a['model']['createRangeOn'](_0x17b097));},{'priority':'low'}),_0x26fd90['descriptionFactory']['registerDescriptionCallback'](_0x1c0acd=>{if(_0x1c0acd['subType']&&_0x1c0acd['subType']['startsWith']('tablePaste'))return _0x1c0acd['previous']?{}:{'type':'insertion','content':o(_0x5ea86a['locale'],'*Replace\x20table\x20cells*')};});const _0x291f51=()=>!0x1;for(const _0x5ac2d2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x26fd90['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ac2d2,'join',_0x291f51),_0x26fd90['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ac2d2,'join',_0x291f51),_0x26fd90['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ac2d2,'join',_0x291f51);_0x26fd90['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x291f51),_0x26fd90['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d09af,_0xcbdbc,_0x369f72)=>{const _0x3e1ced=_0x1d09af['map'](_0x3078e9=>_0x3078e9['getContainedElement']())['filter'](_0x181f2c=>_0x181f2c),_0x4d8809=new Map(_0x3e1ced['map'](_0x161021=>[_0x161021,null]));if(_0x2f61fc){for(const {element:_0x5813ed,attributes:_0x68a1a7}of _0x2f61fc['cells'])_0x68a1a7&&_0x4d8809['set'](_0x5813ed,_0x68a1a7);}else{if(_0x369f72&&_0x369f72['markerAttributes'])for(const [_0x46b0d9,_0x465f0]of Object['entries'](_0x369f72['markerAttributes'])){const _0x380d12=_0x5ea86a['model']['markers']['get'](_0x46b0d9),_0x6f6fb9=_0x380d12?_0x380d12['getRange']()['getContainedElement']():null;_0x6f6fb9&&_0x4d8809['set'](_0x6f6fb9,_0x465f0);}}_0x5ea86a['model']['change'](_0xecc5e8=>{for(const [_0xcb802d,_0x2de413]of _0x4d8809)_0xecc5e8['setAttributes']({...we,..._0x2de413},_0xcb802d);});});const _0x1e3e62=(_0x38003a,_0x644fdd)=>{_0x26fd90['_suggestionFactory']['registerCustomCallback'](_0x38003a,'tablePaste',_0x644fdd,(_0x427fd5,_0x3e3151,_0x22a875)=>{_0x5ea86a['model']['change'](_0x20ba1e=>{const _0x81c22e=[];for(const _0x18c555 of _0x427fd5){const _0xbd8542=_0x18c555['start']['nodeAfter'];_0xbd8542['is']('element','tableCellSuggestion')&&_0x81c22e['push'](_0xbd8542);}_0x26fd90['_suggestionFactory']['getSuggestionCallback'](_0x38003a,null,_0x644fdd)(_0x427fd5,_0x3e3151,_0x22a875);for(const _0x21ecb1 of _0x81c22e)'$graveyard'!=_0x21ecb1['root']['rootName']&&_0x20ba1e['unwrap'](_0x21ecb1);});});};_0x1e3e62('insertion','accept'),_0x1e3e62('insertion','discard'),_0x1e3e62('deletion','accept'),_0x1e3e62('deletion','discard'),_0x26fd90['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x435bb7=>{const _0x107aa2=_0x435bb7['map'](_0x492ce1=>_0x492ce1['getContainedElement']()),_0x513ab4=_0x107aa2[0x0]['findAncestor']('table'),{minRow:_0x44375e,maxRow:_0xe239fb}=_0x4f8586['_getCoordsForCells'](_0x107aa2);_0x4525a9['removeRows'](_0x513ab4,{'at':_0x44375e,'rows':_0xe239fb-_0x44375e+0x1});}),_0x26fd90['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x32fb8b=>{const _0x3f9bda=_0x32fb8b['map'](_0x361118=>_0x361118['getContainedElement']()),_0x512913=_0x3f9bda[0x0]['findAncestor']('table'),{minColumn:_0x262c76,maxColumn:_0x29447d}=_0x4f8586['_getCoordsForCells'](_0x3f9bda);_0x4525a9['removeColumns'](_0x512913,{'at':_0x262c76,'columns':_0x29447d-_0x262c76+0x1});});const _0x6d5d9c=(_0x185681,_0x5ad887)=>{if(!_0x5ad887['subType']||!_0x5ad887['subType']['startsWith']('tablePaste'))return;const _0x4365de=_0x5ad887['attributes']['tablePasteChainId'],_0x27b025=_0x26fd90['getSuggestions']()['filter'](_0xd9a47=>_0xd9a47['isInContent']&&_0xd9a47['attributes']&&_0xd9a47['attributes']['tablePasteChainId']==_0x4365de);_0x27b025['length']&&_0x5ad887['getAllAdjacentSuggestions']()['length']!=_0x27b025['length']&&_0x27b025['reduce']((_0x1dc326,_0x34bbba)=>(_0x1dc326['next']=_0x34bbba,_0x34bbba['previous']=_0x1dc326,_0x34bbba));};function _0x505be4(_0x1e054c,_0x490212=!0x0){const {id:_0x1bd3ae,authorId:_0x1df454}=_0x26fd90['_splitMarkerName'](_0x1e054c['markerName']),_0x5ecb34=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4842a4=_0x26fd90['activeMarkers']['includes'](_0x1e054c['markerName']);return _0x4842a4&&_0x5ecb34['push']('ck-suggestion-marker--active'),{'classes':_0x5ecb34,'attributes':{'data-suggestion':_0x1bd3ae,'data-author-id':_0x1df454},'priority':_0x4842a4&&_0x490212?0xbc2:0xbb8};}_0x26fd90['on']('suggestionLoaded',_0x6d5d9c,{'priority':'high'}),_0x26fd90['on']('suggestionUnloaded',_0x6d5d9c,{'priority':'high'}),_0x5ea86a['model']['document']['registerPostFixer'](()=>{let _0x538e8c=!0x1;const _0x3ebe73=Array['from'](_0x5ea86a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ab746,data:_0xc7fa17}of _0x3ebe73){const {group:_0x4eefbd,type:_0x5ad98a,id:_0x1967db}=_0x26fd90['_splitMarkerName'](_0x2ab746);if('suggestion'!=_0x4eefbd||'deletion'!=_0x5ad98a||_0xc7fa17['oldRange'])continue;if(!_0x26fd90['hasSuggestion'](_0x1967db))continue;const _0x22583a=_0x26fd90['getSuggestion'](_0x1967db)['getRanges'](),_0x3c7910=_0x5ea86a['plugins']['get']('Users')['me'];for(const _0x2b4cb1 of _0x26fd90['getSuggestions']()){if(!_0x2b4cb1['isInContent']||_0x2b4cb1['author']!=_0x3c7910)continue;if('formatBlock'!=_0x2b4cb1['type']||'tablePasteCell'!=_0x2b4cb1['subType'])continue;if(_0x2b4cb1['getRanges']()['every'](_0x479241=>_0x22583a['some'](_0x4ce685=>_0x4ce685['containsRange'](_0x479241,!0x0)))){for(const _0x13ee99 of _0x2b4cb1['getAllAdjacentSuggestions']())_0x13ee99['isInContent']&&(_0x13ee99['discard'](),_0x538e8c=!0x0);}}}return _0x538e8c;}),_0x5ea86a['model']['document']['registerPostFixer'](_0x582587=>{const _0x386174=_0x5ea86a['commands']['get']('redo');if(!_0x386174||!_0x386174['_createdBatches']['has'](_0x582587['batch']))return!0x1;let _0x3c4945=!0x1;const _0x1b1084=_0x5ea86a['plugins']['get']('Users')['me'],_0x52ead7=_0x5ea86a['model']['document']['differ']['getChanges'](),_0x174bb6=Array['from'](_0x5ea86a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x136070,data:_0x4245a5})=>{const {group:_0x25b073,subType:_0x2fd1c1,authorId:_0x35a8f8}=_0x26fd90['_splitMarkerName'](_0x136070);return'suggestion'==_0x25b073&&'tablePaste'==_0x2fd1c1&&_0x35a8f8==_0x1b1084['id']&&!_0x4245a5['oldRange'];});for(const _0x49fc12 of _0x52ead7){if('insert'!=_0x49fc12['type']||'tableCellSuggestion'!=_0x49fc12['name']||0x1!=_0x49fc12['length'])continue;const _0xb91725=_0x582587['createRange'](_0x49fc12['position'],_0x49fc12['position']['getShiftedBy'](0x1));if(!_0x174bb6['find'](({data:_0x4d15ca})=>_0x4d15ca['newRange']['isEqual'](_0xb91725))){for(const {name:_0x2ca548,data:_0x2f3284}of _0x174bb6)if(_0xb91725['containsRange'](_0x2f3284['newRange'])){_0x582587['updateMarker'](_0x2ca548,{'range':_0xb91725}),_0x3c4945=!0x0;break;}}}return _0x3c4945;}),_0x5ea86a['model']['document']['registerPostFixer'](_0x14a8e6=>{let _0x41cd0c=!0x1;const _0x51868e=_0x5ea86a['plugins']['get']('Users')['me'],_0x2a271d=_0x26fd90['getSuggestions']()['filter'](_0x1d40f0=>_0x1d40f0['isInContent']&&_0x1d40f0['author']==_0x51868e),_0x507a9f=new Set(),_0x440173=new Set();for(const _0x2ba733 of _0x2a271d)if('tablePaste'==_0x2ba733['subType'])for(const _0x3f5bcd of _0x2ba733['getMarkers']()){const _0xe10d77=_0x3f5bcd['getRange']()['getContainedElement']();if(_0xe10d77){if(_0xe10d77['is']('element','tableCellSuggestion')&&ke(_0xe10d77)){_0x2ba733['removeMarker'](_0x3f5bcd['name']),_0x507a9f['add'](_0xe10d77),_0x41cd0c=!0x0;const _0x309dd5=_0xe10d77['nextSibling'],_0x2cdd67=_0xe10d77['previousSibling'],_0x2cf80d=_0x309dd5&&_0x309dd5['is']('element','tableCellSuggestion'),_0x211751=_0x2cdd67&&_0x2cdd67['is']('element','tableCellSuggestion');_0x2cf80d&&!_0x507a9f['has'](_0x309dd5)&&_0x440173['add'](_0x309dd5),_0x211751&&!_0x507a9f['has'](_0x2cdd67)&&_0x440173['add'](_0x2cdd67);}else _0xe10d77['is']('element','paragraph')&&_0xe10d77['isEmpty']&&(_0x2ba733['removeMarker'](_0x3f5bcd['name']),_0x41cd0c=!0x0);}}else{if('tablePasteCell'==_0x2ba733['subType']){if(!_0x2ba733['attributes']||!_0x2ba733['attributes']['tablePasteChainId'])continue;const _0x1effdd=_0x2ba733['attributes']['markerAttributes'];if(_0x1effdd&&Object['keys'](_0x1effdd)['length'])continue;const _0x501f46=_0x2ba733['attributes']['tablePasteChainId'];let _0x185aff=!0x0,_0x399947=!0x0;for(const _0x3d5e9d of _0x2a271d)if(_0x3d5e9d['subType']&&_0x3d5e9d['subType']['startsWith']('tablePaste')){if(!_0x3d5e9d['attributes']['tablePasteChainId']){_0x399947=!0x1;break;}if(_0x3d5e9d['id']!=_0x2ba733['id']&&_0x3d5e9d['attributes']['tablePasteChainId']==_0x501f46){_0x185aff=!0x1;break;}}_0x399947&&_0x185aff&&(_0x2ba733['removeMarkers'](),_0x41cd0c=!0x0);}}for(const _0xc17259 of _0x507a9f)_0x14a8e6['remove'](_0xc17259);for(const _0x53a217 of _0x440173)_0x14a8e6['unwrap'](_0x53a217);return _0x41cd0c;}),_0x5ea86a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x63c95d=>_0x505be4(_0x63c95d),'converterPriority':'high'}),_0x5ea86a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29bad9,_0x48db81)=>_0x48db81['options']['showSuggestionHighlights']?_0x505be4(_0x29bad9,!0x1):null,'converterPriority':'high'});const _0x298fc5=_0x5ea86a['editing']['view'];this['listenTo'](_0x298fc5['document'],'clipboardOutput',(_0x337cda,_0x1706ac)=>{const _0x20d4a9=[];for(const _0x537727 of _0x298fc5['createRangeIn'](_0x1706ac['content'])['getItems']())_0x537727['is']('element','suggestion-td')&&_0x20d4a9['push'](_0x537727);_0x298fc5['change'](_0x4610d2=>{for(const _0x50bd61 of _0x20d4a9)_0x4610d2['move'](_0x4610d2['createRangeIn'](_0x50bd61),_0x4610d2['createPositionBefore'](_0x50bd61)),_0x4610d2['remove'](_0x50bd61);});});}}function ke(_0xebcaa1){if(_0xebcaa1['isEmpty'])return!0x0;const _0x4ea600=_0xebcaa1['getChild'](0x0);return _0x4ea600['is']('element','paragraph')&&_0x4ea600['isEmpty'];}function Re(_0x1403bf,_0x4ffc78={},_0x56898e){for(const {isAnchor:_0x1f4a9a,cellHeight:_0x479cd6,cellWidth:_0x224306}of _0x56898e['createTableWalker'](_0x1403bf,{'includeAllSlots':!0x0,..._0x4ffc78}))if(!_0x1f4a9a||0x1!=_0x479cd6||0x1!=_0x224306)return!0x1;return!0x0;}class Nt extends _0x55f69e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x476ca2=this['editor']['plugins']['get']('TrackChangesEditing');_0x476ca2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x476ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x476ca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x476ca2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x476ca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x476ca2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2c7b67,_0x5d7228){const _0x2d4c8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x470dd1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5b7f02=_0x5d7228['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x32eb73=_0x470dd1['getColumnGroupElement'](_0x5b7f02);let _0x491999=_0x32eb73?_0x470dd1['getTableColumnsWidths'](_0x32eb73):null,_0x220efe=_0x5b7f02['getAttribute']('tableWidth')||null;const _0x1e3241=_0x5d7228['tableWidth']||_0x220efe,_0x1468bf=_0x5d7228['columnWidths']||_0x491999,_0xb72405=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d430a of _0x2d4c8c['getSuggestions']()){const _0x315523=_0x1d430a['getContainedElement']();if('resizeTable'===_0x1d430a['subType']&&_0x315523===_0x5b7f02){_0x1d430a['author']!==_0xb72405&&_0x1d430a['discard']();const _0x78e56=_0x1d430a['data']['commandParams'];_0x220efe=_0x78e56[0x0]['tableWidth'],_0x491999=_0x78e56[0x0]['columnWidths'];break;}}_0x2c7b67({'table':_0x5b7f02,'tableWidth':_0x1e3241,'columnWidths':_0x1468bf}),_0x2d4c8c['markBlockFormat'](_0x5b7f02,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x220efe,'columnWidths':_0x491999}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xb67fe5){if('formatBlock'!=_0xb67fe5['type']&&'formatInline'!=_0xb67fe5['type'])return;const {data:_0x361022}=_0xb67fe5;if(_0x361022&&'resizeTable'===_0x361022['formatGroupId']){const _0x552a45='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x552a45)};}}}class Dt extends _0x55f69e{['afterInit'](){const _0x3f15bf=this['editor'];_0x3f15bf['plugins']['has']('Template')&&_0x3f15bf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x55f69e{['afterInit'](){const _0x444e88=this['editor'];if(!_0x444e88['commands']['get']('insertTableOfContents'))return;_0x444e88['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1234b3=_0x444e88['plugins']['get']('TrackChangesEditing'),_0x44a332=_0x444e88['locale'];_0x1234b3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x437e83=>o(_0x44a332,'ELEMENT_TABLE_OF_CONTENTS',_0x437e83));}}class $t extends _0x55f69e{['afterInit'](){const _0x173cb4=this['editor'];if(!_0x173cb4['plugins']['has']('Title'))return;const _0x3fe835=_0x173cb4['plugins']['get']('TrackChangesEditing');_0x3fe835['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x173cb4['locale'],'ELEMENT_TITLE')),_0x173cb4['model']['document']['registerPostFixer'](_0xd6b0ad=>{let _0x3d64a6=!0x1;const _0x317527=Array['from'](_0x173cb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x116910,data:_0x5e69e1}of _0x317527){const {group:_0x40eca0}=_0x3fe835['_splitMarkerName'](_0x116910);if('suggestion'!==_0x40eca0||!_0x5e69e1['newRange'])continue;const _0x357c8c=_0x5e69e1['newRange'],_0x25f2a0=_0x357c8c['end']['nodeBefore'];if(!_0x25f2a0||!_0x25f2a0['is']('element','title-content'))continue;if(!_0x357c8c['start']['isTouching'](_0x357c8c['end']))continue;const _0x207f1c=_0x173cb4['model']['schema']['getNearestSelectionRange'](_0x357c8c['end'],'forward');if(_0x207f1c&&_0x207f1c['isCollapsed']){const _0x1f8d4f=_0xd6b0ad['createRange'](_0x357c8c['start'],_0x207f1c['start']);_0x1f8d4f['isEqual'](_0x357c8c)||(_0xd6b0ad['updateMarker'](_0x116910,{'range':_0x1f8d4f}),_0x3d64a6=!0x0);}_0x3d64a6||(_0xd6b0ad['removeMarker'](_0x116910),_0x3d64a6=!0x0);}return _0x3d64a6;});}}class Bt extends _0x55f69e{['afterInit'](){const _0x9a4da4=this['editor'],_0x5e4ea1=_0x9a4da4['plugins']['get']('TrackChangesEditing');_0x9a4da4['plugins']['has']('UndoEditing')&&(_0x5e4ea1['enableCommand']('undo'),_0x5e4ea1['enableCommand']('redo'));}}class xt extends _0x55f69e{static get['requires'](){return[It];}['afterInit'](){const _0x26dc29=this['editor'];if(!_0x26dc29['plugins']['has']('TableCaptionEditing'))return;_0x26dc29['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x55f69e{['tableProperties'];['tableCellProperties'];constructor(_0x5dd72e){super(_0x5dd72e),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 _0x260b5c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xd2c754 of this['tableProperties'])_0x260b5c['enableCommand'](_0xd2c754,(_0x3892d1,_0x4f123f)=>{const _0x3d961a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xd2c754,[_0x3d961a],this['tableProperties'],'tableProperties',_0x3892d1,_0x4f123f);});_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x260b5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41f056,_0x3a5033)=>this['handleDiscardAction'](this['tableProperties'],_0x41f056,_0x3a5033)),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46e86e of this['tableCellProperties'])_0x260b5c['enableCommand'](_0x46e86e,(_0x5847f7,_0x22195b)=>{const _0x2d100e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46e86e,_0x2d100e,this['tableCellProperties'],'tableCellProperties',_0x5847f7,_0x22195b);});_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x260b5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x35bc3b,_0x69b14f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x35bc3b,_0x69b14f)),_0x260b5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x260b5c['descriptionFactory']['registerDescriptionCallback'](_0x13f23d=>this['handleSuggestionDescription'](_0x13f23d));}['_handlePropertyChange'](_0x47ed6b,_0x52322d,_0x437478,_0x8ad59a,_0x1e4e9e,_0x585788){const _0x4fac54=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x585788['batch'],()=>{for(const _0x38c1df of _0x52322d){if(this['_getSuggestion'](_0x38c1df,_0x8ad59a))_0x1e4e9e(_0x585788);else{const _0xcfbfe7={};for(const _0x567ba8 of _0x437478){const _0x4412cb=_0x38c1df['getAttribute'](_0x567ba8);void 0x0!==_0x4412cb&&(_0xcfbfe7[_0x567ba8]=_0x4412cb);}_0x1e4e9e(_0x585788),_0x4fac54['markBlockFormat'](_0x38c1df,{'commandParams':[_0xcfbfe7]},[],_0x8ad59a);}}});}['handleDiscardAction'](_0x58fac6,_0x1b19b0,_0x119254){const _0xc1af95=_0x1b19b0[0x0]['start']['nodeAfter'],_0x319af6=_0x119254['commandParams'][0x0];this['editor']['model']['change'](_0x301b65=>{for(const _0x45bc8a of _0x58fac6)void 0x0!==_0x319af6[_0x45bc8a]?_0x301b65['setAttribute'](_0x45bc8a,_0x319af6[_0x45bc8a],_0xc1af95):_0x301b65['removeAttribute'](_0x45bc8a,_0xc1af95);});}['handleSuggestionDescription'](_0x289f6b){if(_0x289f6b['data'])switch(_0x289f6b['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'](_0x1f8b38,_0x5baa63){const _0x3c6a4e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x6e9214 of _0x3c6a4e['getSuggestions']({'skipNotAttached':!0x0})){const _0x39172e=_0x6e9214['getContainedElement']();if(_0x6e9214['subType']===_0x5baa63&&_0x39172e===_0x1f8b38)return _0x6e9214;}return null;}}const m='$elementName';class p extends _0x55f69e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x96452c,_0x43cbca,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5f4f12){function _0x52a928(_0x3eefff){return _0x3eefff['map'](_0x130a33=>String['fromCharCode'](_0x130a33))['join']('');}super(_0x5f4f12),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x34f522,_0x2029e4,_0x555c49,_0x8fda6f)=>{this['_model']['change'](()=>{for(const _0x1564a9 of[..._0x8fda6f,..._0x555c49])this['_model']['markers']['has'](_0x1564a9)&&_0x5f4f12['editing']['reconvertMarker'](_0x1564a9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5f4f12['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(),_0x5f4f12['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5f4f12['config']['get']('trackChanges.trackFormatChanges'),_0x5f4f12['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5f4f12['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5f4f12,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x52a928([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x52a928([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x34]);}['init'](){const _0x2d89fa=this['editor'],_0x4365f9=(_0x2d2480,_0x40babf)=>{if('attribute'!=_0x2d2480)return'ck-suggestion-marker-'+_0x2d2480;const _0x151487=_0x40babf['split']('|')[0x0];return this['_isBlockAttribute'](_0x151487)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2d89fa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2053b2=>{const {id:_0x2f05b6,authorId:_0x330c7f,type:_0x2ddb94,subType:_0x41b710}=this['_splitMarkerName'](_0x2053b2['markerName']),_0x3d4680=['ck-suggestion-marker',_0x4365f9(_0x2ddb94,_0x41b710)];let _0x18022f=0xbb8;return this['activeMarkers']['includes'](_0x2053b2['markerName'])&&(_0x3d4680['push']('ck-suggestion-marker--active'),_0x18022f=0xbc2),'deletion'==_0x2ddb94&&(_0x18022f+=0x5),{'classes':_0x3d4680,'attributes':{'data-suggestion':_0x2f05b6,'data-author-id':_0x330c7f},'priority':_0x18022f};}}),_0x2d89fa['conversion']['for']('dataDowncast')['add'](_0x40c9e6=>{_0x40c9e6['on']('addMarker:suggestion',(_0x21b635,_0x1f2f0a,_0x333d2e)=>{if(!_0x333d2e['options']['showSuggestionHighlights'])return;const _0x32d7fd=_0x1f2f0a['item'];if(!_0x32d7fd)return;const _0x35bc=_0x333d2e['mapper']['toViewElement'](_0x32d7fd);_0x2d89fa['model']['schema']['isObject'](_0x32d7fd)&&_0x35bc&&!_0x35bc['getCustomProperty']('widget')&&_0x35bc['is']('containerElement')&&_0x146003(_0x35bc,_0x333d2e['writer']);},{'priority':'high'});}),_0x2d89fa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x31d0b4,_0x26ee4d)=>{if(!_0x26ee4d['options']['showSuggestionHighlights'])return null;const {type:_0x4c8cf8,subType:_0x1e62ed}=this['_splitMarkerName'](_0x31d0b4['markerName']);return{'classes':['ck-suggestion-marker',_0x4365f9(_0x4c8cf8,_0x1e62ed)],'priority':0xbb8};}});const _0x43c805=({showActiveMarkers:_0x10f225=!0x0,isAttributeSuggestion:_0x2f3ee2=!0x1}={})=>(_0x2f12fe,_0x3334ac,_0x4979cc)=>{if(!_0x3334ac['item'])return;const {id:_0x2e2f41,authorId:_0x11ac16}=this['_splitMarkerName'](_0x3334ac['markerName']);if(_0x2f3ee2){const _0x55189b=this['_suggestions']['get'](_0x2e2f41),_0x102b8b=this['_getAttributeKey'](_0x55189b);if(!this['_isBlockAttribute'](_0x102b8b))return;}if(_0x3334ac['item']['is']('selection'))return void _0x4979cc['consumable']['consume'](_0x3334ac['item'],_0x2f12fe['name']);const _0x252466=_0x4979cc['mapper']['toViewElement'](_0x3334ac['item']);if(_0x3334ac['item']['is']('element')&&_0x2d89fa['model']['schema']['isBlock'](_0x3334ac['item'])&&!_0x252466['getCustomProperty']('addHighlight')){_0x4979cc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x252466),_0x4979cc['writer']['setAttribute']('data-suggestion',_0x2e2f41,_0x252466),_0x4979cc['writer']['setAttribute']('data-author-id',_0x11ac16,_0x252466),_0x4979cc['mapper']['bindElementToMarker'](_0x252466,_0x3334ac['markerName']),_0x10f225&&(this['activeMarkers']['includes'](_0x3334ac['markerName'])?_0x4979cc['writer']['addClass']('ck-suggestion-marker--active',_0x252466):_0x4979cc['writer']['removeClass']('ck-suggestion-marker--active',_0x252466));for(const _0x1574ce of _0x2d89fa['model']['createRangeIn'](_0x3334ac['item'])['getItems']())_0x4979cc['consumable']['consume'](_0x1574ce,_0x2f12fe['name']);_0x4979cc['consumable']['consume'](_0x3334ac['item'],_0x2f12fe['name']);}};_0x2d89fa['conversion']['for']('dataDowncast')['add'](_0x503592=>{_0x503592['on']('addMarker:suggestion:formatBlock',(_0x1f1c40,_0x36969b,_0x29ce96)=>{_0x29ce96['options']['showSuggestionHighlights']&&_0x43c805({'showActiveMarkers':!0x1})(_0x1f1c40,_0x36969b,_0x29ce96);},{'priority':'highest'});}),_0x2d89fa['conversion']['for']('dataDowncast')['add'](_0x261492=>{_0x261492['on']('addMarker:suggestion:attribute',(_0x56c640,_0x2c2cc0,_0x363c3f)=>{_0x363c3f['options']['showSuggestionHighlights']&&_0x43c805({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x56c640,_0x2c2cc0,_0x363c3f);},{'priority':'highest'});}),_0x2d89fa['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x28f3a3,_0x36a247)=>_0x36a247['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x28f3a3['substr'](0xb)}}),_0x2d89fa['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x551aba,{writer:_0x46154b})=>{let _0x3ae220='suggestion:'+_0x551aba['getAttribute']('suggestion-type')+':'+_0x551aba['getAttribute']('id');return _0x551aba['getAttribute']('marker-count')&&(_0x3ae220+=':'+_0x551aba['getAttribute']('marker-count')),_0x46154b['createElement']('$marker',{'data-name':_0x3ae220});}}),_0x2d89fa['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x3ccfb4=>{_0x3ccfb4['on']('addMarker:suggestion:formatBlock',_0x43c805(),{'priority':'high'});}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x5b879d=>{_0x5b879d['on']('addMarker:suggestion:attribute',_0x43c805({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x915aab=>{_0x915aab['on']('removeMarker:suggestion:formatBlock',(_0x234737,_0x3c6718,_0x3ec955)=>{const _0x2fbb5f=_0x3ec955['mapper']['markerNameToElements'](_0x3c6718['markerName']);if(_0x2fbb5f){for(const _0x97747a of _0x2fbb5f)_0x97747a['getCustomProperty']('addHighlight')||(_0x3ec955['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x97747a),_0x3ec955['writer']['removeAttribute']('data-suggestion',_0x97747a),_0x3ec955['writer']['removeAttribute']('data-author-id',_0x97747a),_0x3ec955['mapper']['unbindElementFromMarkerName'](_0x97747a,_0x3c6718['markerName']));}},{'priority':'high'});}),_0x2d89fa['conversion']['for']('editingDowncast')['add'](_0x3eb290=>{_0x3eb290['on']('removeMarker:suggestion:attribute',(_0x4adee3,_0x15dd09,_0xe37896)=>{const _0x4f96d3=_0xe37896['mapper']['markerNameToElements'](_0x15dd09['markerName']);if(!_0x4f96d3)return;const {id:_0x3c3f5d}=this['_splitMarkerName'](_0x15dd09['markerName']),_0x2a8749=this['_suggestions']['get'](_0x3c3f5d),_0x25273a=this['_getAttributeKey'](_0x2a8749);if(this['_isBlockAttribute'](_0x25273a)){for(const _0xb5a7f0 of _0x4f96d3)_0xb5a7f0['getCustomProperty']('addHighlight')||(_0xe37896['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xb5a7f0),_0xe37896['writer']['removeAttribute']('data-suggestion',_0xb5a7f0),_0xe37896['writer']['removeAttribute']('data-author-id',_0xb5a7f0),_0xe37896['mapper']['unbindElementFromMarkerName'](_0xb5a7f0,_0x15dd09['markerName']));}},{'priority':'high'});}),_0x2d89fa['model']['document']['registerPostFixer'](_0x2ea580=>{let _0x42b49b=!0x1;const _0x18f19b=Array['from'](_0x2d89fa['model']['document']['differ']['getChangedMarkers']()),_0x464220=new Set();for(const {name:_0x4a8a2d,data:_0x47389b}of _0x18f19b){const {group:_0x2acd97,type:_0x5ab620,subType:_0x24e3bb,id:_0x1a6125}=this['_splitMarkerName'](_0x4a8a2d);if('suggestion'!==_0x2acd97)continue;const _0x5eed72=this['_suggestions']['get'](_0x1a6125);if(null!=_0x47389b['newRange']){'formatInline'==_0x5ab620&&(_0x42b49b=_0x42b49b||Ut(_0x47389b['newRange'],_0x4a8a2d,_0x2ea580,_0x2d89fa['model']['schema']));const _0x12e1cd='attribute'==_0x5ab620&&this['_isBlockAttribute'](_0x24e3bb['split']('|')[0x0]);if(_0x47389b['newRange']['isCollapsed']||'$graveyard'==_0x47389b['newRange']['root']['rootName']||'formatBlock'==_0x5ab620&&!Ft(_0x47389b['newRange'])||_0x12e1cd&&!Ft(_0x47389b['newRange'])||'deletion'==_0x5ab620&&!(!Vt(_0x256fbe=_0x47389b['newRange'])&&!function(_0x34a0d5){return _0x34a0d5['start']['parent']==_0x34a0d5['end']['nodeBefore']&&_0x34a0d5['start']['isAtEnd'];}(_0x256fbe)))_0x2ea580['removeMarker'](_0x4a8a2d),_0x42b49b=!0x0;else{if(!_0x5eed72||!_0x5eed72['isInContent'])continue;if(_0x47389b['newRange']&&_0x47389b['oldRange']&&_0x47389b['newRange']['isEqual'](_0x47389b['oldRange']))continue;_0x464220['add'](_0x5eed72);}}}var _0x256fbe;return _0x464220['size']>0x0&&(_0x42b49b=!!this['_joinWithAdjacentSuggestions'](_0x464220)||_0x42b49b),_0x42b49b;}),_0x2d89fa['model']['document']['registerPostFixer'](_0x5c0137=>{let _0x3e393a=!0x1;for(const _0x4e0280 of _0x2d89fa['model']['document']['differ']['getChanges']())if('insert'==_0x4e0280['type'])for(const _0x163667 of this['_suggestions']['values']()){if(_0x163667['isMultiRange']||!_0x163667['isInContent'])continue;const _0x4a2a77='formatBlock'==_0x163667['type'],_0x1a734c=this['_getAttributeKey'](_0x163667),_0x4d8cb5=_0x1a734c&&this['_isBlockAttribute'](_0x1a734c);if(!_0x4a2a77&&!_0x4d8cb5)continue;const _0x284d63=_0x163667['getFirstRange']();if(_0x284d63['start']['parent']!=_0x284d63['end']['parent']&&!_0x284d63['end']['isAtEnd']){const _0x12da16=_0x2d89fa['model']['createPositionAt'](_0x284d63['start']['nodeAfter'],'end'),_0x4e44ab=_0x2d89fa['model']['createRange'](_0x284d63['start'],_0x12da16);_0x5c0137['updateMarker'](_0x163667['getFirstMarker'](),{'range':_0x4e44ab}),_0x3e393a=!0x0;}}return _0x3e393a;}),_0x2d89fa['model']['document']['registerPostFixer'](_0x41d826=>this['_processAttributeChanges'](_0x41d826)),_0x2d89fa['model']['document']['registerPostFixer'](_0x4d0c63=>!_0x4d0c63['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d0c63)),_0x2d89fa['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2d89fa['model']['document']['on']('change:data',(_0x1be88b,_0x29d299)=>{if(!_0x29d299['isLocal']||_0x29d299['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x247a09=_0x2d89fa['model']['document']['differ']['getChanges']();if(0x0==_0x247a09['length'])return;const _0x11b55b=[],_0x3a9d29=_0x247a09['filter'](_0x46c72b=>'attribute'==_0x46c72b['type']),_0x3ed86a=_0x247a09['filter'](_0x35fc9e=>'insert'==_0x35fc9e['type']&&'$text'!=_0x35fc9e['name']);for(const _0x336158 of _0x3a9d29)this['_isRegisteredAttribute'](_0x336158['attributeKey'])&&_0x11b55b['push']({'key':_0x336158['attributeKey'],'newValue':_0x336158['attributeNewValue'],'oldValue':_0x336158['attributeOldValue'],'range':Pt(_0x336158['range'],_0x2d89fa['model'])});for(const _0x5c90b5 of _0x3ed86a){if('rename'!=_0x5c90b5['action']&&'refresh'!=_0x5c90b5['action'])continue;const _0xedbcb4=Lt(_0x5c90b5['position']['nodeAfter'],_0x2d89fa['model']),_0x4ce723=_0x5c90b5['before'];'rename'==_0x5c90b5['action']&&_0x11b55b['push']({'key':m,'newValue':_0x5c90b5['name'],'oldValue':_0x4ce723['name'],'range':_0xedbcb4});for(const [_0x226db0,_0x320ce8]of _0x4ce723['attributes']){if(!this['_isRegisteredAttribute'](_0x226db0))continue;const _0x2c3e90=_0x5c90b5['attributes']['get'](_0x226db0);_0x320ce8!==_0x2c3e90&&_0x11b55b['push']({'key':_0x226db0,'newValue':_0x2c3e90,'oldValue':_0x320ce8,'range':_0xedbcb4});}for(const [_0x37c649,_0x30a6ed]of _0x5c90b5['attributes'])this['_isRegisteredAttribute'](_0x37c649)&&(_0x4ce723['attributes']['has'](_0x37c649)||_0x11b55b['push']({'key':_0x37c649,'newValue':_0x30a6ed,'oldValue':null,'range':_0xedbcb4}));}0x0!=_0x11b55b['length']&&_0x2d89fa['model']['enqueueChange'](_0x29d299,_0x1086be=>{const _0x50a57b=_0x55f5c8();for(const {range:_0x5ee070,key:_0x48bffb,oldValue:_0x33cfb8,newValue:_0x32bcb1}of _0x11b55b)this['markAttributeChange'](_0x5ee070,_0x48bffb,_0x33cfb8,_0x32bcb1,{'groupId':_0x50a57b});this['_reduceExistingSuggestions'](_0x1086be,_0x11b55b);});},{'priority':'lowest'}),_0x2d89fa['model']['markers']['on']('update:suggestion',(_0x490ace,_0x2d6a45,_0x2add07)=>{if(null==_0x2add07){const {id:_0xc3c3fd}=this['_splitMarkerName'](_0x2d6a45['name']),_0x132095=this['_suggestions']['get'](_0xc3c3fd);_0x132095&&_0x132095['addMarkerName'](_0x2d6a45['name']);}}),_0x2d89fa['model']['document']['on']('change:data',()=>{const _0x2cfe53=Array['from'](_0x2d89fa['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b6ecc=>'suggestion'===this['_splitMarkerName'](_0x4b6ecc['name'])['group']);if(0x0===_0x2cfe53['length'])return;_0x2cfe53['sort']((_0x396e2e,_0x31aca2)=>{const _0x48dc30=_0x396e2e['data']['oldRange'],_0x4673f4=_0x31aca2['data']['oldRange'];return null===_0x48dc30&&null===_0x4673f4?0x0:null===_0x48dc30&&null!==_0x4673f4?-0x1:null!==_0x48dc30&&null===_0x4673f4?0x1:_0x48dc30['start']['isBefore'](_0x4673f4['start'])?-0x1:0x1;});const _0x20a476=new Set(),_0x389f8f=new Set();for(const {name:_0x5b5051,data:_0x51f8dc}of _0x2cfe53){const {id:_0x1a8ef5}=this['_splitMarkerName'](_0x5b5051);if(null===_0x51f8dc['oldRange']){const _0x33fe44=this['_handleNewSuggestionMarker'](_0x5b5051);_0x389f8f['add'](_0x33fe44);}else{const _0x243c74=this['_suggestions']['get'](_0x1a8ef5);null!==_0x51f8dc['newRange']||_0x243c74['isInContent']?(_0x20a476['add'](_0x243c74['head']),_0x389f8f['add'](_0x243c74)):this['_removeSuggestion'](_0x243c74);}}_0x389f8f['size']>0x0&&this['_refreshSuggestionsChain'](_0x389f8f);for(const _0x1597d2 of _0x20a476)this['fire']('suggestionChanged',_0x1597d2);}),_0x2d89fa['model']['on']('applyOperation',(_0x11c23e,_0xf63fe0)=>{const _0x4ebbf0=_0xf63fe0[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ebbf0['isDocumentOperation'])return;if(_0x4ebbf0['batch']['isUndo']||!_0x4ebbf0['batch']['isLocal'])return;let _0x5e8dad,_0x32540a;switch(_0x4ebbf0['type']){case'insert':_0x5e8dad=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['position']),_0x32540a=_0x5e8dad['getShiftedBy'](_0x4ebbf0['howMany']);break;case'split':_0x5e8dad=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['splitPosition']),_0x32540a=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['moveTargetPosition']);break;case'move':_0x5e8dad=_0x2d89fa['model']['createPositionAt'](_0x4ebbf0['targetPosition']),_0x32540a=_0x5e8dad['getShiftedBy'](_0x4ebbf0['howMany']);break;default:return;}const _0x20a195=_0x2d89fa['model']['createRange'](_0x5e8dad,_0x32540a);_0x2d89fa['model']['change'](()=>{for(const {suggestion:_0x55c1ba,meta:_0x40b29c}of this['_findSuggestions'](_0x20a195)){if(_0x55c1ba['isMultiRange'])continue;if('formatInline'==_0x55c1ba['type'])continue;const _0x310840=this['_getAttributeKey'](_0x55c1ba);if(_0x310840&&this['_isBlockAttribute'](_0x310840)&&'split'!=_0x4ebbf0['type'])continue;const _0x48c3df=_0x55c1ba['data']&&_0x55c1ba['data']['multipleBlocks'];('formatBlock'!=_0x55c1ba['type']||'split'==_0x4ebbf0['type']&&!_0x48c3df)&&(_0x40b29c['containsRangeInObject']||'insertion'==_0x55c1ba['type']&&_0x40b29c['isOwn']||_0x55c1ba['getFirstRange']()['containsRange'](_0x20a195)&&this['_breakSuggestionMarker'](_0x55c1ba,_0x5e8dad,_0x32540a));}});},{'priority':'lowest'}),_0x2d89fa['model']['on']('deleteContent',(_0x131317,_0x4ef64e)=>{const _0x1d7f6c=_0x4ef64e[0x0],_0x4bde5c=_0x4ef64e[0x1];if(_0x4bde5c&&_0x4bde5c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1d7f6c['isCollapsed'])return;const _0x279a5d=_0x2d89fa['model']['schema'],{start:_0x5ae218,end:_0x3f886d}=_0x1d7f6c['getFirstRange'](),_0x846dbb=_0x5ae218['nodeAfter']&&_0x279a5d['isLimit'](_0x5ae218['nodeAfter'])?null:_0x279a5d['getNearestSelectionRange'](_0x5ae218,'forward'),_0x28067d=_0x3f886d['nodeBefore']&&_0x279a5d['isLimit'](_0x3f886d['nodeBefore'])?null:_0x279a5d['getNearestSelectionRange'](_0x3f886d,'backward'),_0xde6cd8=_0x2d89fa['model']['createRange'](_0x846dbb?_0x846dbb['start']:_0x5ae218,_0x28067d?_0x28067d['end']:_0x3f886d);_0x2d89fa['model']['change'](_0x3fd075=>{this['markDeletion'](_0xde6cd8);const _0x1f68d5=_0x2d89fa['model']['schema']['getNearestSelectionRange'](_0xde6cd8['start']);_0x1d7f6c['is']('documentSelection')?_0x3fd075['setSelection'](_0x1f68d5):_0x1d7f6c['setTo'](_0x1f68d5);}),_0x131317['stop']();},{'priority':_0x4d60ea['normal']+0xa}),_0x2d89fa['model']['on']('insertContent',(_0x4e395c,_0x13f6fd)=>{const _0x1cd4df=_0x13f6fd[_0x13f6fd['length']-0x1];_0x1cd4df&&_0x1cd4df['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2d89fa['model']['change'](()=>{let _0x9892d0=_0x2d89fa['model']['insertContent'](_0x13f6fd[0x0],_0x13f6fd[0x1],_0x13f6fd[0x2],{'forceDefaultExecution':!0x0});if(!_0x9892d0)return;_0x4e395c['return']=_0x9892d0['clone']();const _0x1bb81f=_0x9892d0['end']['nodeBefore'],_0x4311b7=_0x2d89fa['model']['schema'];_0x1bb81f&&_0x4311b7['isBlock'](_0x1bb81f)&&!_0x4311b7['isObject'](_0x1bb81f)&&(_0x9892d0=_0x2d89fa['model']['createRange'](_0x9892d0['start'],_0x2d89fa['model']['createPositionAt'](_0x1bb81f,'end'))),this['markInsertion'](_0x9892d0);}),_0x4e395c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1fca9c=new x(_0x2d89fa,this['_suggestions']);_0x2d89fa['commands']['add']('acceptSuggestion',_0x1fca9c),this['enableCommand']('acceptSuggestion');const _0x54a498=new R(_0x2d89fa,this['_suggestions']);_0x2d89fa['commands']['add']('discardSuggestion',_0x54a498),this['enableCommand']('discardSuggestion'),_0x2d89fa['commands']['add']('acceptAllSuggestions',new E(_0x2d89fa,_0x1fca9c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2d89fa['commands']['add']('discardAllSuggestions',new E(_0x2d89fa,_0x54a498,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2d89fa['commands']['add']('acceptSelectedSuggestions',new O(_0x2d89fa,_0x1fca9c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2d89fa['commands']['add']('discardSelectedSuggestions',new O(_0x2d89fa,_0x54a498,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b9560=_0x2d89fa['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b9560,'addComment',(_0x537ced,{threadId:_0xf77fee})=>{const _0x4a51dc=this['_suggestions']['get'](_0xf77fee);_0x4a51dc&&_0x4a51dc['commentThread']&&0x1===_0x4a51dc['commentThread']['length']&&this['_updateSuggestionData'](_0xf77fee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b9560,'removeComment',(_0xe6432,{threadId:_0x47bf1d})=>{const _0x47693c=this['_suggestions']['get'](_0x47bf1d);_0x47693c&&_0x47693c['commentThread']&&!_0x47693c['commentThread']['length']&&this['_updateSuggestionData'](_0x47bf1d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4cb63e){if(this['_adapter'])throw new _0x27812c('track-changes-adapter-already-set',this);this['_adapter']=_0x4cb63e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3574b9=!0x1,toJSON:_0x55bad5=!0x1}={}){const _0x1bf7a6=[];for(const _0x128812 of this['_suggestions']['values']())_0x3574b9&&!_0x128812['isInContent']||_0x1bf7a6['push'](_0x128812);return _0x55bad5?_0x1bf7a6['map'](_0x1da278=>_0x1da278['toJSON']()):_0x1bf7a6;}['getSuggestion'](_0x3b5710){const _0x3beee0=this['_suggestions']['get'](_0x3b5710);if(!_0x3beee0)throw new _0x27812c('track-changes-suggestion-not-found',this);return _0x3beee0;}['hasSuggestion'](_0x59384a){return this['_suggestions']['has'](_0x59384a);}['addSuggestionData'](_0x1e3870){const {authorId:_0x2244ff,id:_0x1360b9,attributes:_0x1eb72}=_0x1e3870,[_0x4fd358,_0x519b1c]=_0x1e3870['type']['split'](':'),_0x2d0347=this['_suggestions']['get'](_0x1360b9)||this['_createSuggestion'](_0x4fd358,_0x519b1c,_0x1360b9,_0x2244ff,_0x1eb72);if(this['_addThreadToSuggestion'](_0x2d0347),this['_checkSuggestionCorrectness'](_0x2d0347,_0x4fd358,_0x519b1c||null,_0x2244ff),_0x2d0347['createdAt']=_0x1e3870['createdAt'],_0x2d0347['_isDataLoaded']=!0x0,_0x1eb72&&_0x1eb72['@external']){const _0x5bf0db=_0x1eb72['@external'],_0x40e810=this['_getExternalAuthor'](_0x5bf0db['authorName']);_0x2d0347['authoredAt']=_0x5bf0db['createdAt'],_0x2d0347['author']=_0x40e810,_0x2d0347['isExternal']=!0x0;}else _0x2d0347['authoredAt']=_0x1e3870['createdAt'];switch(_0x1e3870['data']&&(_0x2d0347['data']=_0x1e3870['data']),_0x1e3870['attributes']&&(_0x2d0347['attributes']=_0x1e3870['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2d0347['_saved']=!0x0),this['_suggestionState']['get'](_0x2d0347)){case'notReady':this['_suggestionState']['set'](_0x2d0347,'dataReady');break;case'markerReady':_0x2d0347['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2d0347])),this['_refreshSuggestionsChain'](new Set([_0x2d0347])),this['_suggestionState']['set'](_0x2d0347,'ready'),this['fire']('suggestionLoaded',_0x2d0347)):this['_suggestionState']['set'](_0x2d0347,'removed');}return _0x2d0347;}['acceptSuggestion'](_0x202c86){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ce773 of _0x202c86['getAllAdjacentSuggestions']())_0x5ce773['accept']();});});}['discardSuggestion'](_0x3c6f79){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2db053 of _0x3c6f79['getAllAdjacentSuggestions']())_0x2db053['discard']();});});}['enableCommand'](_0x383110,_0x52fec7){const _0x26568c=this['editor']['commands']['get'](_0x383110);if(!_0x26568c)throw new _0x27812c('track-changes-command-not-found',this,{'commandName':_0x383110});if(this['_enabledCommands']['has'](_0x26568c))throw new _0x27812c('track-changes-enable-command-twice',this,{'commandName':_0x383110});this['_enabledCommands']['add'](_0x26568c),_0x52fec7&&_0x26568c['on']('execute',(_0x5993a7,_0x34cb42)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x34cb42['length']>0x0&&_0x34cb42[_0x34cb42['length']-0x1]&&_0x34cb42[_0x34cb42['length']-0x1]['forceDefaultExecution']?_0x34cb42['pop']():(_0x5993a7['return']=_0x52fec7((..._0x3a1b7c)=>_0x26568c['execute'](..._0x3a1b7c,{'forceDefaultExecution':!0x0}),..._0x34cb42),_0x5993a7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x355567){let _0x46feac,_0x2c27bc;const _0x3225ec=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46feac=_0x355567();}catch(_0x4978f5){_0x2c27bc=_0x4978f5;}return _0x3225ec||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c27bc&&_0x27812c['rethrowUnexpectedError'](_0x2c27bc,this),_0x46feac;}['markInsertion'](_0x46a4b1,_0x13bace=null,_0x846df5={}){if(_0x46a4b1['isCollapsed'])return null;const _0x5bc3c4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xebf2ae,meta:_0x489d7f}of this['_findSuggestions'](_0x46a4b1,'insertion'))if(_0x489d7f['isOwn']){if(!_0x489d7f['isNextTo']){if(_0x489d7f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0xebf2ae,_0x846df5))continue;return _0xebf2ae;}if(qt(_0xebf2ae,_0x846df5))return _0xebf2ae;this['_breakSuggestionMarker'](_0xebf2ae,_0x46a4b1['start'],_0x46a4b1['end']);break;}if(_0x13bace==_0xebf2ae['subType']&&qt(_0xebf2ae,_0x846df5)){const _0x5bd67d=_0xebf2ae['getFirstRange']();return _0x5bd67d['start']['isEqual'](_0x46a4b1['end'])?this['_setSuggestionRange'](_0xebf2ae,this['_model']['createRange'](_0x46a4b1['start'],_0x5bd67d['end'])):this['_setSuggestionRange'](_0xebf2ae,this['_model']['createRange'](_0x5bd67d['start'],_0x46a4b1['end'])),_0xebf2ae;}}const _0x1d77f8=_0x55f5c8(),_0x4bec98=_0x5bc3c4['id'],_0x52aaa4=_0x13bace?'insertion:'+_0x13bace:'insertion',_0x560054=this['_setSuggestionData']({'id':_0x1d77f8,'type':_0x52aaa4,'createdAt':new Date(),'authorId':_0x4bec98,'attributes':_0x846df5});return this['_addSuggestionMarker'](_0x52aaa4,_0x1d77f8,_0x4bec98,_0x46a4b1),_0x560054;}['markMultiRangeInsertion'](_0x48977e,_0x815c5d='multi',_0x1c7485={}){const _0x2def6b=this['editor']['plugins']['get']('Users')['me'],_0x19908b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x815c5d,'join');for(const _0x4f84b6 of this['getSuggestions']())if(_0x4f84b6['author']['id']==_0x2def6b['id']&&'insertion'==_0x4f84b6['type']&&_0x4f84b6['subType']==_0x815c5d&&qt(_0x4f84b6,_0x1c7485)&&(_0x19908b(_0x4f84b6['getRanges'](),_0x48977e)||_0x19908b(_0x48977e,_0x4f84b6['getRanges']()))){for(const _0xf4072e of _0x48977e)_0x4f84b6['addRange'](_0xf4072e);return _0x4f84b6;}for(const {suggestion:_0x3239d5,meta:_0x4215e6}of this['_findSuggestions'](_0x48977e,'insertion')){if(!_0x4215e6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4215e6['containsRangeInObject'])continue;if(!qt(_0x3239d5,_0x1c7485))continue;let _0x4e2b1f=!0x0;for(const _0x30dd3f of _0x3239d5['getRanges']())for(const _0x179ac5 of _0x48977e)if(!_0x30dd3f['containsRange'](_0x179ac5)){_0x4e2b1f=!0x1;break;}if(_0x4e2b1f)return _0x3239d5;}const _0xbbbf8f=_0x55f5c8(),_0x127ae6=_0x2def6b['id'],_0x178afa='insertion:'+_0x815c5d,_0x59c5ea=this['_setSuggestionData']({'id':_0xbbbf8f,'type':_0x178afa,'createdAt':new Date(),'authorId':_0x127ae6,'attributes':_0x1c7485});for(const _0x1bac0c of _0x48977e)this['_addSuggestionMarker'](_0x178afa,_0xbbbf8f,_0x127ae6,_0x1bac0c,u['getMultiRangeId']());return _0x59c5ea;}['markInlineFormat'](_0x5114ff,_0xd0e2c6,_0x2a76d2=null,_0x5d7064={}){if(_0x2a76d2=_0x2a76d2||Gt(_0xd0e2c6),_0x5114ff['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5b1534=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a76d2,'accept');return this['forceDefaultExecution'](()=>_0x5b1534([_0x5114ff],_0xd0e2c6,_0x5d7064)),null;}const _0x12119c=this['editor']['plugins']['get']('Users')['me'],_0x1914e4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a386d,meta:_0x49da37}of this['_findSuggestions'](_0x5114ff,'insertion'))_0x49da37['isOwn']&&!_0x49da37['isInsideObject']&&_0x1914e4['push'](..._0x5a386d['getRanges']());}const _0x262191=function(_0x2a4d6c,_0x3bf159){const _0x22012b=[];for(const _0x32f6b4 of _0x3bf159){const _0x124cd2=_0x2a4d6c['getIntersection'](_0x32f6b4);_0x124cd2&&_0x22012b['push'](_0x124cd2);}return _0x22012b;}(_0x5114ff,_0x1914e4),_0x5cdf96=function(_0x5215c9,_0x39bf5d){const _0x31c6e8=[_0x5215c9];for(const _0x291d92 of _0x39bf5d){let _0x56a242=0x0;for(;_0x56a242<_0x31c6e8['length'];){const _0x132a51=_0x31c6e8[_0x56a242]['getDifference'](_0x291d92);_0x31c6e8['splice'](_0x56a242,0x1,..._0x132a51),_0x56a242+=_0x132a51['length'];}}return _0x31c6e8;}(_0x5114ff,_0x1914e4);_0x262191['length']&&this['_model']['change'](()=>{for(const _0x1a469d of _0x262191){const _0x1e048b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a76d2,'accept');this['forceDefaultExecution'](()=>_0x1e048b([_0x1a469d],_0xd0e2c6,_0x5d7064));}});for(const _0x81377c of _0x5cdf96){let _0x455e73=null,_0x58ef14=_0x81377c['start'],_0x2e672e=_0x81377c['end'];for(const {suggestion:_0x26e424,meta:_0xf51dcc}of this['_findSuggestions'](_0x81377c,'formatInline')){if(!_0xf51dcc['isOwn'])continue;if(_0x26e424['subType']!=_0x2a76d2)continue;if(!qt(_0x26e424,_0x5d7064))continue;const _0x1a65f2=_0x26e424['getFirstRange']();if(_0x1a65f2['containsRange'](_0x81377c,!0x0))return null;_0x58ef14=_0x58ef14['isBefore'](_0x1a65f2['start'])?_0x58ef14:_0x1a65f2['start'],_0x2e672e=_0x2e672e['isAfter'](_0x1a65f2['end'])?_0x2e672e:_0x1a65f2['end'],_0x455e73?_0x1a65f2['start']['isBefore'](_0x455e73['getFirstRange']()['start'])?(_0x455e73['removeMarkers'](),_0x455e73=_0x26e424):_0x26e424['removeMarkers']():_0x455e73=_0x26e424;}const _0x3ca836=this['_model']['createRange'](_0x58ef14,_0x2e672e);if(_0x455e73)this['_setSuggestionRange'](_0x455e73,_0x3ca836);else{const _0x13e899=_0x55f5c8(),_0x2f7af7=_0x12119c['id'];this['_setSuggestionData']({'id':_0x13e899,'type':'formatInline:'+_0x2a76d2,'data':_0xd0e2c6,'createdAt':new Date(),'authorId':_0x2f7af7,'attributes':_0x5d7064}),this['_addSuggestionMarker']('formatInline:'+_0x2a76d2,_0x13e899,_0x2f7af7,_0x3ca836);}}return null;}['markBlockFormat'](_0x54870e,_0x2a2381,_0x25a856=[],_0x45b2f5=null,_0x1e6f90={}){_0x2a2381['formatGroupId']||(_0x2a2381['formatGroupId']=_0x2a2381['commandName']),_0x2a2381['multipleBlocks']=_0x54870e['is']('range'),_0x45b2f5=_0x45b2f5||Gt(_0x2a2381);const _0x2d6033=_0x25a856['map'](_0x3cdd57=>Lt(_0x3cdd57,this['_model'])),_0xe09f9e=_0x54870e['is']('range')?_0x54870e:Lt(_0x54870e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x38a5b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b2f5,'accept');return this['forceDefaultExecution'](()=>_0x38a5b5([_0xe09f9e],_0x2a2381,_0x1e6f90)),null;}_0x2d6033['push'](_0xe09f9e);let _0x10c84d=!0x0;for(const _0xf018ed of _0x2d6033)if(!this['_rangeIsInLocalUserInsertion'](_0xf018ed)){_0x10c84d=!0x1;break;}if(_0x10c84d&&'always'!==this['_trackFormatChanges']){const _0x202172=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b2f5,'accept');return this['forceDefaultExecution'](()=>_0x202172([_0xe09f9e],_0x2a2381,_0x1e6f90)),null;}let _0x1352fd=null,_0x334d6a=_0xe09f9e['start'],_0x5bd17b=_0xe09f9e['end'];for(const {suggestion:_0x3dc2a4,meta:_0x4443a9}of this['_findSuggestions'](_0xe09f9e,'formatBlock')){if(!_0x4443a9['isOwn'])continue;if(_0x4443a9['isNextTo']||_0x4443a9['containsRangeInObject']||_0x4443a9['isInsideObject'])continue;if(_0x3dc2a4['data']['formatGroupId']!=_0x2a2381['formatGroupId'])continue;if(!qt(_0x3dc2a4,_0x1e6f90))continue;const _0x1244b4=_0x3dc2a4['getFirstRange']();if(_0x3dc2a4['subType']==_0x45b2f5){if(_0x1244b4['containsRange'](_0xe09f9e,!0x0))return null;_0x334d6a=_0x334d6a['isBefore'](_0x1244b4['start'])?_0x334d6a:_0x1244b4['start'],_0x5bd17b=_0x5bd17b['isAfter'](_0x1244b4['end'])?_0x5bd17b:_0x1244b4['end'],_0x1352fd?_0x1244b4['start']['isBefore'](_0x1352fd['getFirstRange']()['start'])?(_0x1352fd['removeMarkers'](),_0x1352fd=_0x3dc2a4):_0x3dc2a4['removeMarkers']():_0x1352fd=_0x3dc2a4;}else{const _0x234908=_0xe09f9e['getIntersection'](_0x1244b4);this['_cutOutSuggestionMarker'](_0x3dc2a4,_0x234908);}}const _0x12bb8a=this['editor']['plugins']['get']('Users')['me'],_0x4af2ad=_0x55f5c8(),_0x40c62c=_0x12bb8a['id'];if(_0x1352fd)return this['_setSuggestionRange'](_0x1352fd,this['_model']['createRange'](_0x334d6a,_0x5bd17b)),_0x1352fd;{const _0x1bfff4=this['_setSuggestionData']({'id':_0x4af2ad,'type':'formatBlock:'+_0x45b2f5,'data':_0x2a2381,'createdAt':new Date(),'authorId':_0x40c62c,'attributes':_0x1e6f90});return this['_addSuggestionMarker']('formatBlock:'+_0x45b2f5,_0x4af2ad,_0x40c62c,this['_model']['createRange'](_0x334d6a,_0x5bd17b)),_0x1bfff4;}}['markMultiRangeBlockFormat'](_0x154b84,_0xbbb3f,_0x117695=[],_0x1dc52e=null,_0x202537={}){_0xbbb3f['formatGroupId']||(_0xbbb3f['formatGroupId']=_0xbbb3f['commandName']);const _0x1b642e=_0x154b84[0x0];_0xbbb3f['multipleBlocks']=_0x1b642e['is']('range'),_0x1dc52e=_0x1dc52e||Gt(_0xbbb3f);const _0x4a81d0=_0x117695['map'](_0x4f95b9=>Lt(_0x4f95b9,this['_model'])),_0x53e661=_0x1b642e['is']('range')?_0x154b84:_0x154b84['map'](_0x39f5ce=>Lt(_0x39f5ce,this['_model']));if('never'===this['_trackFormatChanges']){const _0x25881a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dc52e,'accept');return this['forceDefaultExecution'](()=>_0x25881a(_0x53e661,_0xbbb3f,_0x202537)),null;}_0x4a81d0['push'](..._0x53e661);let _0x150055=!0x0;for(const _0x40d80e of _0x4a81d0)if(!this['_rangeIsInLocalUserInsertion'](_0x40d80e)){_0x150055=!0x1;break;}if(_0x150055&&'always'!==this['_trackFormatChanges']){const _0x2b03a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dc52e,'accept');return this['forceDefaultExecution'](()=>_0x2b03a8(_0x53e661,_0xbbb3f,_0x202537)),null;}const _0x5cb00f=this['editor']['plugins']['get']('Users')['me'];for(const _0xaaa347 of this['getSuggestions']()){if(_0xaaa347['author']['id']!=_0x5cb00f['id'])continue;if('formatBlock'!=_0xaaa347['type']||_0xaaa347['data']['formatGroupId']!=_0xbbb3f['formatGroupId'])continue;if(!qt(_0xaaa347,_0x202537))continue;const _0x542e2e=_0xaaa347['subType']==_0x1dc52e;for(let _0x217f2d=0x0;_0x217f2d<_0x53e661['length'];_0x217f2d++){const _0x17ad42=_0x53e661[_0x217f2d];for(const _0x505f3e of _0xaaa347['getMarkers']()){const _0x42ae46=_0x505f3e['getRange']();if(_0x17ad42['isEqual'](_0x42ae46)){_0x542e2e?(_0x53e661['splice'](_0x217f2d,0x1),_0x217f2d--):_0xaaa347['removeMarker'](_0x505f3e['name']);break;}}}}if(0x0==_0x53e661['length'])return null;const _0x5dc05e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dc52e,'join');for(const _0x40dcf5 of this['getSuggestions']())if(_0x40dcf5['author']['id']==_0x5cb00f['id']&&'formatBlock'==_0x40dcf5['type']&&_0x40dcf5['data']['formatGroupId']==_0xbbb3f['formatGroupId']&&_0x40dcf5['subType']==_0x1dc52e&&qt(_0x40dcf5,_0x202537)&&(_0x5dc05e(_0x40dcf5['getRanges'](),_0x53e661)||_0x5dc05e(_0x53e661,_0x40dcf5['getRanges']()))){for(const _0xb3545d of _0x53e661)_0x40dcf5['addRange'](_0xb3545d);return _0x40dcf5;}const _0x3bcc27=_0x55f5c8(),_0x1fdaa0=_0x5cb00f['id'],_0x52c7d6='formatBlock:'+_0x1dc52e,_0x3a6c2c=this['_setSuggestionData']({'id':_0x3bcc27,'type':_0x52c7d6,'data':_0xbbb3f,'createdAt':new Date(),'authorId':_0x1fdaa0,'attributes':_0x202537});for(const _0x1adad7 of _0x53e661)this['_addSuggestionMarker'](_0x52c7d6,_0x3bcc27,_0x1fdaa0,_0x1adad7,u['getMultiRangeId']());return _0x3a6c2c;}['markDeletion'](_0x5f3341,_0x3498ec=null,_0x2243c1={}){if(_0x5f3341['isCollapsed'])return null;const _0x38b6c5=this['editor']['plugins']['get']('Users')['me'],_0x34aa62=new _0x46da37(_0x5f3341['start'],_0x5f3341['end']);for(const {suggestion:_0x2ef1de,meta:_0x5ed844}of this['_findSuggestions'](_0x34aa62,'insertion'))if(_0x5ed844['isOwn']&&!_0x5ed844['isNextTo']){if(_0x2ef1de['isMultiRange']){const _0x4ba639=_0x2ef1de['getRanges']()['filter'](_0x5b7765=>'$graveyard'!=_0x5b7765['root']['rootName']);_0x4ba639['every'](_0x49e379=>_0x34aa62['containsRange'](_0x49e379,!0x0))&&_0x2ef1de['discard']();if(_0x4ba639['some'](_0x20a9d9=>_0x20a9d9['containsRange'](_0x34aa62,!0x0))){const _0x1365d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3498ec,'accept');return this['forceDefaultExecution'](()=>_0x1365d6([_0x34aa62],null,_0x2243c1)),null;}}else{const _0x56af8c=_0x34aa62['getIntersection'](_0x2ef1de['getFirstRange']());null!==_0x56af8c&&_0x2ef1de['_onDiscard']([_0x56af8c],null,_0x2243c1);}}if(_0x34aa62['detach'](),_0x34aa62['isCollapsed']||'$graveyard'==_0x34aa62['root']['rootName'])return null;let _0x1522df=null,_0x2152b6=_0x34aa62['start'],_0xcfbfd9=_0x34aa62['end'];const _0x2084cd=this['_findSuggestions'](_0x34aa62,'deletion');for(const {suggestion:_0x1960e9,meta:_0x53bf69}of _0x2084cd){const _0x575f64=this['_model']['createRange'](_0x2152b6,_0xcfbfd9);if(_0x53bf69['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53bf69['containsRangeInObject']&&!_0x53bf69['isInsideObject'])){if(_0x1960e9['isMultiRange']){if(!qt(_0x1960e9,_0x2243c1))continue;let _0x15a1ad=!0x0;for(const _0x1278a2 of _0x1960e9['getRanges']()){if(_0x1278a2['containsRange'](_0x575f64,!0x0))return _0x1960e9;_0x575f64['containsRange'](_0x1278a2)||(_0x15a1ad=!0x1);}_0x15a1ad&&_0x1960e9['discard']();}else{const _0x3259d1=_0x1960e9['getFirstRange']();if(_0x3259d1['containsRange'](_0x575f64,!0x0))return _0x1960e9;if(!qt(_0x1960e9,_0x2243c1)){_0x575f64['containsRange'](_0x3259d1)?_0x1960e9['removeMarkers']():_0x3259d1['containsPosition'](_0x2152b6)?_0x2152b6=_0x3259d1['end']:_0x3259d1['containsPosition'](_0xcfbfd9)&&(_0xcfbfd9=_0x3259d1['start']);continue;}_0x2152b6=_0x2152b6['isBefore'](_0x3259d1['start'])?_0x2152b6:_0x3259d1['start'],_0xcfbfd9=_0xcfbfd9['isAfter'](_0x3259d1['end'])?_0xcfbfd9:_0x3259d1['end'],_0x2243c1=Object['assign']({},_0x1960e9['attributes']),_0x1522df?_0x3259d1['start']['isBefore'](_0x1522df['getFirstRange']()['start'])?(_0x1522df['removeMarkers'](),_0x1522df=_0x1960e9):_0x1960e9['removeMarkers']():_0x1522df=_0x1960e9;}}}if(_0x1522df)return this['_setSuggestionRange'](_0x1522df,this['_model']['createRange'](_0x2152b6,_0xcfbfd9)),_0x1522df;{const _0x36ede9=_0x55f5c8(),_0x766233=this['_model']['createRange'](_0x2152b6,_0xcfbfd9),_0x650915=_0x38b6c5['id'],_0x1c5fdf=_0x3498ec?'deletion:'+_0x3498ec:'deletion',_0x7cdf6e=this['_setSuggestionData']({'id':_0x36ede9,'type':_0x1c5fdf,'createdAt':new Date(),'authorId':_0x650915,'attributes':_0x2243c1});return this['_addSuggestionMarker'](_0x1c5fdf,_0x36ede9,_0x650915,_0x766233),_0x7cdf6e;}}['markMultiRangeDeletion'](_0x104a40,_0x2f0ecf='multi',_0x2b3086={}){const _0x1a78d6=this['editor']['plugins']['get']('Users')['me'],_0x14a5bd=_0x104a40['map'](_0x458997=>new _0x46da37(_0x458997['start'],_0x458997['end'])),_0x1610d5=new Set();for(const {suggestion:_0x49a576,meta:_0x41ea1f}of this['_findSuggestions'](_0x14a5bd,'insertion'))_0x41ea1f['isOwn']&&!_0x41ea1f['isNextTo']&&_0x1610d5['add'](_0x49a576);for(const _0x1883f7 of _0x1610d5)if(_0x1883f7['isMultiRange']){const _0x2e725b=_0x1883f7['getRanges']();(!_0x1883f7['attributes']||!_0x1883f7['attributes']['skipNestingCheck'])&&(_0x2e725b['every'](_0x36fa9e=>_0x14a5bd['some'](_0x228b76=>_0x228b76['containsRange'](_0x36fa9e,!0x0)))&&_0x1883f7['discard']());if(_0x14a5bd['every'](_0x49a69e=>_0x2e725b['some'](_0x16f8df=>_0x16f8df['containsRange'](_0x49a69e,!0x0)))){const _0x26e585=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ecf,'accept');return this['forceDefaultExecution'](()=>_0x26e585(_0x104a40,null,_0x2b3086)),null;}}else{const _0x1c85bc=_0x1883f7['getFirstRange']();_0x14a5bd['some'](_0x31dfa4=>_0x31dfa4['containsRange'](_0x1c85bc,!0x0))&&_0x1883f7['discard']();if(_0x14a5bd['every'](_0x351138=>_0x1c85bc['containsRange'](_0x351138,!0x0))){const _0x20e5d2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ecf,'accept');return this['forceDefaultExecution'](()=>_0x20e5d2(_0x14a5bd,null,_0x2b3086)),null;}}const _0x23664c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f0ecf,'join');let _0x57a792=null;for(const _0x5aa611 of this['getSuggestions']())if(_0x5aa611['author']['id']==_0x1a78d6['id']&&_0x5aa611['isInContent']&&'deletion'==_0x5aa611['type']&&_0x5aa611['subType']==_0x2f0ecf&&qt(_0x5aa611,_0x2b3086)&&(_0x23664c(_0x5aa611['getRanges'](),_0x14a5bd)||_0x23664c(_0x14a5bd,_0x5aa611['getRanges']()))){if(_0x57a792){if(_0x5aa611['commentThread']&&_0x5aa611['commentThread']['length'])continue;for(const _0x49b2a1 of _0x5aa611['getRanges']())_0x57a792['isIntersectingWithRange'](_0x49b2a1)||_0x57a792['addRange'](_0x49b2a1);_0x5aa611['removeMarkers']();}else{_0x57a792=_0x5aa611;for(const _0x4c7307 of _0x14a5bd)_0x5aa611['isIntersectingWithRange'](_0x4c7307)||_0x5aa611['addRange'](_0x4c7307);}}if(_0x57a792)return _0x57a792;_0x1610d5['clear']();for(const {suggestion:_0x575eef,meta:_0x2e15ab}of this['_findSuggestions'](_0x14a5bd,'deletion'))_0x2e15ab['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e15ab['containsRangeInObject']&&!_0x2e15ab['isInsideObject'])&&qt(_0x575eef,_0x2b3086)&&_0x1610d5['add'](_0x575eef);for(const _0x426b39 of _0x1610d5){const _0x499eda=_0x426b39['getRanges']();if(!_0x2b3086||!_0x2b3086['skipNestingCheck']){if(_0x14a5bd['every'](_0x2892c4=>_0x499eda['some'](_0x2b37af=>_0x2b37af['containsRange'](_0x2892c4,!0x0))))return _0x426b39;}(!_0x426b39['attributes']||!_0x426b39['attributes']['skipNestingCheck'])&&(_0x499eda['every'](_0xaf77dc=>_0x14a5bd['some'](_0x380291=>_0x380291['containsRange'](_0xaf77dc,!0x0)))&&_0x426b39['discard']());}const _0x2153d3=_0x55f5c8(),_0x3c499c=_0x1a78d6['id'],_0xaed2ac='deletion:'+_0x2f0ecf,_0xb1619d=this['_setSuggestionData']({'id':_0x2153d3,'type':_0xaed2ac,'createdAt':new Date(),'authorId':_0x3c499c,'attributes':_0x2b3086});for(const _0x46c11d of _0x14a5bd)_0x46c11d['detach'](),_0x46c11d['isCollapsed']||'$graveyard'==_0x46c11d['root']['rootName']||this['_addSuggestionMarker'](_0xaed2ac,_0x2153d3,_0x3c499c,_0x46c11d,u['getMultiRangeId']());return _0xb1619d;}['markAttributeChange'](_0xf7ab2e,_0x1d3faa,_0x4500cd,_0x2a0f75,_0x5fdf55){if(_0xf7ab2e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf4297d=this['editor']['plugins']['get']('Users')['me']['id'],_0x59f535=Array['from'](this['_suggestions']['values']())['filter'](_0x48bad6=>'attribute'==_0x48bad6['type']&&_0x48bad6['data']['key']==_0x1d3faa&&_0x48bad6['isIntersectingWithRange'](_0xf7ab2e));if('default'===this['_trackFormatChanges']){const _0x10cde2=this['_findSuggestions'](_0xf7ab2e,'insertion')['filter'](({meta:_0x597d3c})=>_0x597d3c['isOwn']&&!_0x597d3c['isInsideObject']&&!_0x597d3c['isNextTo'])['map'](({suggestion:_0x2a96af})=>_0x2a96af);_0x59f535['unshift'](..._0x10cde2);}const _0x460ccc=new Map([[_0xf7ab2e,_0x4500cd]]);for(const _0x2cf3cc of _0x59f535){const _0x4fd52c='attribute'==_0x2cf3cc['type']?_0x2cf3cc['data']['oldValue']:void 0x0,_0x3cb7d6=_0x2cf3cc['getFirstRange'](),_0x558e90=Array['from'](_0x460ccc['keys']())['find'](_0x27ea08=>_0x27ea08['isIntersecting'](_0x3cb7d6));if(!_0x558e90)continue;const _0x590a35=_0x558e90['getDifference'](_0x3cb7d6);this['_isBlockAttribute'](_0x1d3faa)&&'insertion'==_0x2cf3cc['type']&&0x0!=_0x590a35['length']||(_0x460ccc['delete'](_0x558e90),_0x590a35['forEach'](_0x124627=>{_0x460ccc['set'](_0x124627,_0x4500cd);}),'insertion'!=_0x2cf3cc['type']&&_0x4fd52c!=_0x2a0f75&&_0x460ccc['set'](_0x558e90['getIntersection'](_0x3cb7d6),_0x4fd52c));}const _0x1ebbb6=[];for(const [_0x52b91b,_0x57d729]of _0x460ccc){const _0x472ca9=_0x55f5c8(),_0x3544ea={'key':_0x1d3faa,'oldValue':_0x57d729,'newValue':_0x2a0f75};_0x1d3faa['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':_0x1d3faa});const _0x202da5=('attribute:'+(_0x1d3faa+'|'+Gt({'newValue':_0x2a0f75})))['substring'](0x0,0x3c),_0x1f17ce=this['_setSuggestionData']({'id':_0x472ca9,'type':_0x202da5,'data':_0x3544ea,'createdAt':new Date(),'authorId':_0xf4297d,'attributes':_0x5fdf55});_0x1ebbb6['push'](_0x1f17ce),this['_addSuggestionMarker'](_0x202da5,_0x472ca9,_0xf4297d,_0x52b91b);}return _0x1ebbb6;}['enableDefaultAttributesIntegration'](_0x589f1e){this['enableCommand'](_0x589f1e,(_0x19051d,..._0x4b252a)=>{this['_recordAttributeChanges'](()=>{_0x19051d(..._0x4b252a);});});}['registerBlockAttribute'](_0x2d4749){this['_blockAttributeKeys']['add'](_0x2d4749);}['registerInlineAttribute'](_0x48ee0e){this['_inlineAttributeKeys']['add'](_0x48ee0e);}['_getAttributeKey'](_0x83d8a3){return'attribute'==_0x83d8a3['type']?_0x83d8a3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x44434d,_0x23cfb6){const _0x1bd919=_0x44434d['getFirstMarker']();this['_model']['change'](_0x58f054=>{_0x58f054['updateMarker'](_0x1bd919,{'range':_0x23cfb6});});}['_addThreadToSuggestion'](_0x25f036){const _0x27919d=_0x25f036['id'],_0x5281c8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x27919d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5281c8,'threadId':_0x27919d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x642b2d=this['_commentsRepository']['getCommentThread'](_0x27919d);_0x642b2d['unbind']('isRemovable'),_0x642b2d['isRemovable']=!0x1,_0x25f036['commentThread']=_0x642b2d;}['_checkSuggestionCorrectness'](_0x4593b6,_0xc85595,_0x1d8e68,_0x28e419){if(_0x4593b6['type']!=_0xc85595||_0x4593b6['subType']!=_0x1d8e68||_0x4593b6['creator']['id']!=_0x28e419)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27812c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xd17da3,_0x52f851){const _0x3a9100=_0xd17da3['getFirstRange']();if(_0x52f851['isEqual'](_0x3a9100))_0xd17da3['removeMarkers']();else{if(_0x3a9100['containsRange'](_0x52f851)){const _0x204b76=this['_model']['createPositionAt'](_0x52f851['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd17da3,this['_model']['createRange'](_0x3a9100['start'],_0x204b76));const _0x25cf29=_0x55f5c8(),_0x277f53=_0xd17da3['creator']['id'],_0x1bb4fa=_0xd17da3['type']+':'+_0xd17da3['subType'];this['_setSuggestionData']({'id':_0x25cf29,'type':_0x1bb4fa,'createdAt':new Date(),'authorId':_0x277f53,'data':_0xd17da3['data'],'attributes':_0xd17da3['attributes']});const _0x47f981=this['_model']['createPositionAt'](_0x52f851['end']['parent'],'after'),_0x58d797=this['_model']['createRange'](_0x47f981,_0x3a9100['end']);this['_addSuggestionMarker'](_0x1bb4fa,_0x25cf29,_0x277f53,_0x58d797);}else{if(_0x3a9100['containsPosition'](_0x52f851['start'])){const _0x488e2d=this['_model']['createPositionAt'](_0x52f851['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd17da3,this['_model']['createRange'](_0x3a9100['start'],_0x488e2d));}else{const _0xa8461=this['_model']['createPositionAt'](_0x52f851['end']['parent'],'after');this['_setSuggestionRange'](_0xd17da3,this['_model']['createRange'](_0xa8461,_0x3a9100['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x783932){for(const {suggestion:_0x41d1a2,meta:_0xa967b}of this['_findSuggestions'](_0x783932,'insertion')){if(!_0xa967b['isOwn'])continue;const _0x359485=_0x41d1a2['getRanges']();for(const _0x4f0164 of _0x359485)if(!_0x783932['getDifference'](_0x4f0164)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x147381){const _0x5d02d7=this['editor']['plugins']['get']('Users')['getUser'](_0x147381);if(!_0x5d02d7)throw new _0x27812c('track-changes-user-not-found',this);return _0x5d02d7;}['_getExternalAuthor'](_0x33939e){const _0x1d7e0b=this['editor']['plugins']['get']('Users'),_0x18eeb2=_0xf1b1f('external:'+_0x33939e),_0x55cf82=_0x1d7e0b['getUser'](_0x18eeb2);return _0x55cf82||_0x1d7e0b['addUser']({'id':_0x18eeb2,'name':_0x33939e});}['_createSuggestion'](_0x5696db,_0x192587,_0x2e817f,_0x24b3f7,_0x300e66){const _0x214c8e=this['_getAuthorFromId'](_0x24b3f7),_0x1ddafe=this['_suggestionFactory']['buildSuggestion'](_0x5696db,_0x192587,_0x2e817f,_0x214c8e,_0x300e66,_0x555f90=>{this['_updateSuggestionData'](_0x2e817f,{'attributes':_0x555f90});const _0x1f7ba2=this['getSuggestion'](_0x2e817f);this['_joinWithAdjacentSuggestions'](new Set([_0x1f7ba2])),this['_refreshSuggestionsChain'](new Set([_0x1f7ba2]));});return this['listenTo'](_0x1ddafe,'accept',()=>{this['_updateSuggestionData'](_0x2e817f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1ddafe,'discard',()=>{this['_updateSuggestionData'](_0x2e817f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2e817f,_0x1ddafe),this['_suggestionState']['set'](_0x1ddafe,'notReady'),_0x1ddafe;}['_splitMarkerName'](_0x1231ad){const _0x35c981=_0x1231ad['split'](':');return{'group':_0x35c981[0x0],'type':_0x35c981[0x1],'subType':_0x35c981['length']>=0x5?_0x35c981[0x2]:null,'id':_0x35c981['length']<0x5?_0x35c981[0x2]:_0x35c981[0x3],'authorId':_0x35c981['length']<0x5?_0x35c981[0x3]:_0x35c981[0x4],'markerCount':0x6==_0x35c981['length']?_0x35c981[0x5]:null};}['_breakSuggestionMarker'](_0x2db3e5,_0x406f5a,_0x18c695){const _0x597b9c=_0x2db3e5['getFirstRange'](),_0x3a5733=_0x597b9c['start'],_0x52fc5d=_0x597b9c['end'];this['_setSuggestionRange'](_0x2db3e5,this['_model']['createRange'](_0x3a5733,_0x406f5a));const _0x3293ed=_0x55f5c8(),_0x5d7474=_0x2db3e5['creator']['id'],_0x2206d8=_0x2db3e5['type']+(_0x2db3e5['subType']?':'+_0x2db3e5['subType']:'');this['_setSuggestionData']({'id':_0x3293ed,'type':_0x2206d8,'createdAt':new Date(),'authorId':_0x5d7474,'originalSuggestionId':_0x2db3e5['id'],'attributes':_0x2db3e5['attributes'],'data':_0x2db3e5['data']});const _0x1f206b=this['_getAttributeKey'](_0x2db3e5);('formatBlock'==_0x2db3e5['type']||_0x1f206b&&this['_isBlockAttribute'](_0x1f206b))&&(_0x18c695=this['_model']['createPositionBefore'](_0x18c695['parent'])),this['_addSuggestionMarker'](_0x2206d8,_0x3293ed,_0x5d7474,this['_model']['createRange'](_0x18c695,_0x52fc5d));}['_findSuggestions'](_0x5ae102,_0x4d4254=null){const _0x3968a3=[],_0x3faab2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5ae102)||(_0x5ae102=[_0x5ae102]);for(const _0x38f24e of this['getSuggestions']()){if(!_0x38f24e['isInContent'])continue;if(_0x4d4254&&_0x38f24e['type']!=_0x4d4254)continue;let _0xafdd68=!0x1;for(const _0x2907db of _0x38f24e['getRanges']()){for(const _0x56bb6c of _0x5ae102){const _0x428583=_0x56bb6c['start']['isEqual'](_0x2907db['end'])||_0x56bb6c['end']['isEqual'](_0x2907db['start']);if(_0x428583||_0x56bb6c['getIntersection'](_0x2907db)){const _0x56f6cc=_0x56bb6c['containsRange'](_0x2907db)&&Ot(this['_model']['schema'],_0x2907db['start'],_0x56bb6c),_0x484f55=_0x2907db['containsRange'](_0x56bb6c)&&Ot(this['_model']['schema'],_0x56bb6c['start'],_0x2907db);_0x3968a3['push']({'suggestion':_0x38f24e,'meta':{'isOwn':_0x3faab2==_0x38f24e['author'],'isNextTo':_0x428583,'isInsideObject':_0x56f6cc,'containsRangeInObject':_0x484f55}}),_0xafdd68=!0x0;break;}}if(_0xafdd68)break;}}return _0x3968a3;}['_addSuggestionMarker'](_0x13f0f7,_0x3fd644,_0x5d0a89,_0x2fbc2c,_0x579cd4){this['_model']['change'](_0x258b7a=>{let _0x53ad0f='suggestion:'+_0x13f0f7+':'+_0x3fd644+':'+_0x5d0a89;_0x579cd4&&(_0x53ad0f=_0x53ad0f+':'+_0x579cd4),_0x258b7a['addMarker'](_0x53ad0f,{'range':_0x2fbc2c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2c25cb){const _0x1fa856=_0x2c25cb['previous'],_0x5bdc81=_0x2c25cb['next'];_0x2c25cb['previous']=null,_0x2c25cb['next']=null,null!=_0x1fa856&&_0x1fa856['next']==_0x2c25cb&&(_0x1fa856['next']=_0x5bdc81),null!=_0x5bdc81&&_0x5bdc81['previous']==_0x2c25cb&&(_0x5bdc81['previous']=_0x1fa856),'ready'==this['_suggestionState']['get'](_0x2c25cb)&&(this['_suggestionState']['set'](_0x2c25cb,'removed'),this['fire']('suggestionUnloaded',_0x2c25cb,_0x1fa856,_0x5bdc81));}['_setSuggestionData'](_0x18e41f){const _0x4d6df7=_0x18e41f['id'],_0x4cf951=this['addSuggestionData'](_0x18e41f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x9bfad3=this['editor']['plugins']['get']('PendingActions'),_0x414e29=_0x4cf951['hasComments'],_0x49d68b=_0x4cf951['subType']?_0x4cf951['type']+':'+_0x4cf951['subType']:_0x4cf951['type'],_0x20148c=this['editor']['locale'],_0x17e2dd=_0x9bfad3['add'](o(_0x20148c,'PENDING_ACTION_SUGGESTION')),_0x2bfd3b={'id':_0x4d6df7,'type':_0x49d68b,'hasComments':_0x414e29,'data':_0x18e41f['data']||null,'originalSuggestionId':_0x18e41f['originalSuggestionId']||null,'attributes':_0x4cf951['attributes']};this['_adapter']['addSuggestion'](_0x2bfd3b)['then'](_0x24e7cd=>{_0x4cf951['_saved']=!0x0,_0x9bfad3['remove'](_0x17e2dd),_0x24e7cd&&_0x24e7cd['createdAt']&&(this['_suggestions']['get'](_0x4d6df7)['createdAt']=_0x24e7cd['createdAt']);})['catch'](_0x22ff9c=>{throw _0x3fdb3b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4cf951['discard']();}),_0x4cf951['stopListening'](),this['_suggestions']['delete'](_0x4cf951['id']),this['_suggestionState']['delete'](_0x4cf951),_0x22ff9c;});}return _0x4cf951;}['_isBlockAttribute'](_0x9b3997){return this['_blockAttributeKeys']['has'](_0x9b3997);}['_updateSuggestionData'](_0x345943,_0x3b7b46){const _0x285c73=this['editor']['plugins']['get']('PendingActions'),_0x3cdb86=this['getSuggestion'](_0x345943);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3cdb86['_saved']){const _0x6d3f73=_0x285c73['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x345943,_0x3b7b46)['then'](()=>{_0x285c73['remove'](_0x6d3f73);});}else _0x3cdb86['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x345943,_0x3b7b46);});}}['_getSuggestionData'](_0x1bef22){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27812c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1bef22);}['_handleNewSuggestionMarker'](_0xb2b447){const {id:_0x11183a,type:_0xa72b43,subType:_0xd5bf43,authorId:_0x19f79}=this['_splitMarkerName'](_0xb2b447),_0x52571c=this['_suggestions']['get'](_0x11183a)||this['_createSuggestion'](_0xa72b43,_0xd5bf43,_0x11183a,_0x19f79,{});switch(this['_checkSuggestionCorrectness'](_0x52571c,_0xa72b43,_0xd5bf43,_0x19f79),this['_suggestionState']['get'](_0x52571c)){case'notReady':this['_getSuggestionData'](_0x11183a)['then'](_0x57bce3=>{let _0x32df7f=Promise['resolve']();_0x57bce3['hasComments']&&(_0x32df7f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x11183a})),_0x32df7f['then'](()=>{this['addSuggestionData'](_0x57bce3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x52571c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x11183a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x52571c,'ready'),this['fire']('suggestionLoaded',_0x52571c);break;case'ready':this['fire']('suggestionChanged',_0x52571c);}return _0x52571c['addMarkerName'](_0xb2b447),_0x52571c;}['_refreshSuggestionsChain'](_0x46f22d){const _0x56a0d0=Array['from'](_0x46f22d),_0x5b7633=_0x56a0d0['filter'](_0x98cfce=>'attribute'==_0x98cfce['type']);this['_refreshAttributeSuggestionsChain'](_0x5b7633);const _0x7c7225=_0x56a0d0['filter'](_0x11f79e=>!_0x11f79e['isMultiRange']&&'attribute'!=_0x11f79e['type']),_0xd0a9e0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40082d=>!_0x40082d['isMultiRange']&&'attribute'!=_0x40082d['type']),_0x148f71=_0xd0a9e0['filter'](_0x5c111c=>!_0x46f22d['has'](_0x5c111c)),_0x1799a3=new Map(_0xd0a9e0['map'](_0xe965d9=>[_0xe965d9,this['_suggestionFactory']['getSuggestionCallback'](_0xe965d9['type'],_0xe965d9['subType'],'chain')])),_0x4b9325=new Map(_0xd0a9e0['map'](_0x9170bd=>[_0x9170bd,_0x9170bd['getFirstRange']()])),_0xcd3562=new Set(),_0x214460=new Set();for(let _0x260df4=0x0;_0x260df4<_0x7c7225['length'];_0x260df4++)_0x597bad(_0x7c7225[_0x260df4],_0x7c7225,_0x260df4+0x1);for(let _0x50cbb6=0x0;_0x50cbb6<_0x7c7225['length'];_0x50cbb6++)_0x597bad(_0x7c7225[_0x50cbb6],_0x148f71,0x0);const _0x51b26e=new Set();for(let _0x3fb561=0x0;_0x3fb561<_0x7c7225['length'];_0x3fb561++){const _0x187c08=_0x7c7225[_0x3fb561];!_0x214460['has'](_0x187c08)&&_0x187c08['previous']&&(_0x51b26e['add'](_0x187c08['previous']),_0x187c08['previous']['next']===_0x187c08&&(_0x187c08['previous']['next']=null),_0x187c08['previous']=null),!_0xcd3562['has'](_0x187c08)&&_0x187c08['next']&&(_0x51b26e['add'](_0x187c08['next']),_0x187c08['next']['previous']===_0x187c08&&(_0x187c08['next']['previous']=null),_0x187c08['next']=null);}function _0x597bad(_0x1a14a3,_0x2291f7,_0x1250a8){for(let _0x39f7bc=_0x1250a8;_0x39f7bc<_0x2291f7['length'];_0x39f7bc++){const _0x116048=_0x19a718(_0x1a14a3,_0x2291f7[_0x39f7bc]);_0x116048&&(_0x116048[0x0]['next']=_0x116048[0x1],_0x116048[0x1]['previous']=_0x116048[0x0],_0xcd3562['add'](_0x116048[0x0]),_0x214460['add'](_0x116048[0x1]));}}function _0x19a718(_0x3e1cc5,_0x24f344){if(_0x3e1cc5['author']['id']!==_0x24f344['author']['id'])return null;const _0x5f42ee=_0x1799a3['get'](_0x3e1cc5)(_0x3e1cc5,_0x24f344,_0x4b9325['get'](_0x3e1cc5),_0x4b9325['get'](_0x24f344));if(!_0x5f42ee)return null;return _0x1799a3['get'](_0x24f344)(_0x3e1cc5,_0x24f344,_0x4b9325['get'](_0x3e1cc5),_0x4b9325['get'](_0x24f344))?_0x5f42ee[0x1]['commentThread']&&_0x5f42ee[0x1]['commentThread']['length']?null:_0x5f42ee:null;}_0x51b26e['size']&&this['_refreshSuggestionsChain'](_0x51b26e);}['_refreshAttributeSuggestionsChain'](_0x22e163){if(0x0==_0x22e163['length'])return;const _0x3d28d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b6ce9=>'attribute'==_0x3b6ce9['type']&&_0x3b6ce9['_isDataLoaded']),_0x473953=[],_0x4355f5=new Map();for(const _0x3a9744 of _0x3d28d1){const _0x55a9d6=_0xf1b1f(_0x3a9744['attributes']);_0x4355f5['has'](_0x55a9d6)||(_0x4355f5['set'](_0x55a9d6,_0x473953['length']),_0x473953['push']([]));const _0x46bdf4=_0x4355f5['get'](_0x55a9d6);_0x473953[_0x46bdf4]['push'](_0x3a9744);}!(function(){_0x473953['sort']((_0x21a87a,_0x5c37a1)=>{const _0x3f4127=_0x21a87a[0x0]['createdAt'],_0x419ffc=_0x5c37a1[0x0]['createdAt'];return _0x3f4127==_0x419ffc?_0x21a87a[0x0]['attributes']['groupId']<_0x5c37a1[0x0]['attributes']['groupId']?-0x1:0x1:_0x3f4127<_0x419ffc?-0x1:0x1;});for(const _0x226279 of _0x473953)_0x226279['sort']((_0x11abfe,_0x29006a)=>_0x11abfe['id']<_0x29006a['id']?-0x1:0x1);}());for(let _0x23e3a2=0x0;_0x23e3a2<_0x473953['length'];_0x23e3a2++){if(0x0==_0x473953[_0x23e3a2]['length'])continue;const _0x25d28e=[];for(let _0x41f3dd=_0x23e3a2+0x1;_0x41f3dd<_0x473953['length'];_0x41f3dd++)0x0!=_0x473953[_0x41f3dd]['length']&&_0x63dc3a(_0x473953[_0x23e3a2],_0x473953[_0x41f3dd])&&_0x25d28e['push'](_0x41f3dd);for(const _0x2f6cc2 of _0x25d28e)_0x473953[_0x23e3a2]=_0x473953[_0x23e3a2]['concat'](_0x473953[_0x2f6cc2]),_0x473953[_0x2f6cc2]=[];}for(const _0x2fd11a of _0x473953)for(let _0x15078e=0x0;_0x15078e<_0x2fd11a['length'];_0x15078e++){const _0xf8e12a=_0x2fd11a[_0x15078e+0x1]||null;_0x2fd11a[_0x15078e]['next']!==_0xf8e12a&&(_0x2fd11a[_0x15078e]['next']=_0xf8e12a);}for(const _0x558431 of _0x473953)for(let _0x54963b=0x0;_0x54963b<_0x558431['length'];_0x54963b++){const _0x5f3bd7=_0x558431[_0x54963b-0x1]||null;_0x558431[_0x54963b]['previous']!==_0x5f3bd7&&(_0x558431[_0x54963b]['previous']=_0x5f3bd7);}function _0x63dc3a(_0x2c6dff,_0x4f7ec8){if(_0x2c6dff[0x0]['attributes']['groupId']!==_0x4f7ec8[0x0]['attributes']['groupId']&&_0x2c6dff[0x0]['author']!==_0x4f7ec8[0x0]['author'])return!0x1;if(!function(_0x244415,_0xc77089){if(!_0x244415['hasComments']&&!_0xc77089['hasComments'])return!0x0;if(_0x244415['hasComments']&&_0xc77089['hasComments'])return!0x1;if(_0x244415['hasComments']&&_0xc77089['createdAt']<_0x244415['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xc77089['hasComments']&&_0x244415['createdAt']<_0xc77089['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c6dff[0x0],_0x4f7ec8[0x0]))return!0x1;const _0x290ab9=Tt(_0x2c6dff[0x0]['attributes'],'groupId'),_0x1fe236=Tt(_0x4f7ec8[0x0]['attributes'],'groupId');if(!_0x4b5161(_0x290ab9,_0x1fe236))return!0x1;return!!_0x2c6dff['every'](_0x32a6a4=>_0x4f7ec8['some'](_0x3decb2=>_0x32a6a4['getFirstRange']()['isEqual'](_0x3decb2['getFirstRange']())))&&_0x4f7ec8['every'](_0x52ba9d=>_0x2c6dff['some'](_0x30076d=>_0x52ba9d['getFirstRange']()['isEqual'](_0x30076d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46f30a){const _0x476661=Array['from'](_0x46f30a),_0x547935=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1df928=_0x547935['filter'](_0x325b8b=>!_0x46f30a['has'](_0x325b8b)),_0x5a56d8=new Map(_0x476661['map'](_0x427618=>[_0x427618,this['_suggestionFactory']['getSuggestionCallback'](_0x427618['type'],_0x427618['subType'],'join')])),_0x2298e9=new Map(_0x547935['map'](_0x1b7b5e=>[_0x1b7b5e,_0x1b7b5e['getRanges']()]));for(let _0x86b726=0x0;_0x86b726<_0x476661['length'];_0x86b726++){if(_0x1a0557(this,_0x476661[_0x86b726],_0x476661,_0x86b726+0x1))return!0x0;}for(let _0x5449fc=0x0;_0x5449fc<_0x476661['length'];_0x5449fc++){if(_0x1a0557(this,_0x476661[_0x5449fc],_0x1df928,0x0))return!0x0;}return!0x1;function _0x1a0557(_0x4f5209,_0x522d28,_0x2a9cc8,_0x8a4d3f){for(let _0x22520b=_0x8a4d3f;_0x22520b<_0x2a9cc8['length'];_0x22520b++){const _0x3a9406=_0x2a9cc8[_0x22520b];if(_0x3a9406['type']!==_0x522d28['type']||_0x3a9406['author']['id']!==_0x522d28['author']['id']||_0x3a9406['subType']!==_0x522d28['subType'])continue;if(!Jt(_0x522d28,_0x3a9406))continue;if('attribute'==_0x522d28['type']&&_0x522d28['data']['oldValue']!=_0x3a9406['data']['oldValue'])continue;if('attribute'==_0x522d28['type']&&_0x4f5209['_isBlockAttribute'](_0x522d28['data']['key']))continue;if('formatBlock'==_0x522d28['type']){const _0x51d577=_0x4f5209['editor']['model'],_0x384141=_0x522d28['getContainedElement']();if(_0x384141&&(_0x51d577['schema']['isObject'](_0x384141)||_0x51d577['schema']['isLimit'](_0x384141)))continue;}const _0x4842fe=_0x5a56d8['get'](_0x522d28),_0x3cf00c=_0x2298e9['get'](_0x522d28),_0x14e2c7=_0x2298e9['get'](_0x3a9406),_0x8d8e03=_0x522d28['commentThread']&&_0x522d28['commentThread']['length'],_0x155b2d=_0x3a9406['commentThread']&&_0x3a9406['commentThread']['length'];if(!_0x8d8e03&&_0x4842fe(_0x14e2c7,_0x3cf00c))return _0x4f5209['_joinSuggestions'](_0x3a9406,_0x522d28),_0x2298e9['delete'](_0x522d28),!0x0;if(!_0x155b2d&&_0x4842fe(_0x3cf00c,_0x14e2c7))return _0x4f5209['_joinSuggestions'](_0x522d28,_0x3a9406),_0x2298e9['delete'](_0x3a9406),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2331ba,_0x52ee54){if(_0x2331ba['isMultiRange']){for(const _0x2ff7fe of _0x52ee54['getRanges']())_0x2331ba['addRange'](_0x2ff7fe);}else{const _0x26729b=_0x52ee54['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2331ba,this['_model']['createRange'](_0x2331ba['getFirstRange']()['start'],_0x26729b));}_0x52ee54['removeMarkers']();}['_getMarkerAnnouncementText'](_0x402625,_0x58b6da,_0x6f79db){const _0x1cedca=_0x402625['startsWith']('format')||_0x402625['startsWith']('attribute')?'FORMATTING':_0x402625['toUpperCase']();return o(this['editor']['locale'],_0x58b6da+'_'+_0x1cedca+'_SUGGESTION_ANNOUNCEMENT',_0x6f79db);}['_initAriaMarkerChangeAnnouncements'](){const _0x15d795=this['editor'];if(!_0x15d795['ui'])return;const {ariaLiveAnnouncer:_0x142b0c}=_0x15d795['ui'];_0x571476(this['_model'],({left:_0x19a7aa,entered:_0x58caa7})=>{for(const _0x1bd730 of _0x19a7aa){const {group:_0x122c38,type:_0x25affe}=this['_splitMarkerName'](_0x1bd730['name']);if('suggestion'===_0x122c38){_0x142b0c['announce'](this['_getMarkerAnnouncementText'](_0x25affe,'LEAVE'));break;}}for(const _0x49e48b of _0x58caa7){const {group:_0x543efc,type:_0x4c16ee}=this['_splitMarkerName'](_0x49e48b['name']);if('suggestion'===_0x543efc){_0x142b0c['announce'](this['_getMarkerAnnouncementText'](_0x4c16ee,'ENTER',_0x25e90c(_0x5eb0b4)));break;}}});}['_processAttributeChanges'](_0x62e9c0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3dc7db=this['editor'],_0x2a9c52=_0x3dc7db['model']['document']['differ']['getChanges']();if(0x0==_0x2a9c52['length'])return!0x1;const _0x19e698=[],_0x5c270d=_0x2a9c52['filter'](_0x10b315=>'attribute'==_0x10b315['type']),_0x5f510a=_0x2a9c52['filter'](_0x6835ef=>'insert'==_0x6835ef['type']&&'$text'!=_0x6835ef['name']),_0x4215ac=_0x2a9c52['filter'](_0x2c6c7e=>'remove'==_0x2c6c7e['type']&&'$text'!=_0x2c6c7e['name']);for(const _0x47a699 of _0x5c270d)_0x19e698['push']({'key':_0x47a699['attributeKey'],'newValue':_0x47a699['attributeNewValue'],'oldValue':_0x47a699['attributeOldValue'],'range':Pt(_0x47a699['range'],_0x3dc7db['model'])});for(const _0x585742 of _0x5f510a){const _0x2dcc63=_0x4215ac['find'](_0x560785=>_0x560785['position']['isEqual'](_0x585742['position']));_0x2dcc63&&_0x19e698['push']({'key':m,'newValue':_0x585742['name'],'oldValue':_0x2dcc63['name'],'range':_0x3dc7db['model']['createRangeOn'](_0x585742['position']['nodeAfter'])});}return 0x0!=_0x19e698['length']&&this['_reduceExistingSuggestions'](_0x62e9c0,_0x19e698);}['_processAttributeSuggestions'](_0x5883ef){let _0x3b2e9=!0x1;const _0x327aea=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x50182f=>_0x50182f['data']['newRange']&&_0x50182f['name']['startsWith']('suggestion:attribute:'));for(const _0x4d733e of _0x327aea){const {subType:_0xb0448f,id:_0x249dc4}=this['_splitMarkerName'](_0x4d733e['name']),_0x544698=_0xb0448f['split']('|')[0x0];for(const _0x2293d2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2293d2['id']!=_0x249dc4&&'attribute'==_0x2293d2['type']&&_0x2293d2['data']&&_0x2293d2['data']['key']==_0x544698&&_0x2293d2['getFirstRange']()['isIntersecting'](_0x4d733e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2293d2,_0x4d733e['data']['newRange'],_0x5883ef),_0x3b2e9=!0x0);}return _0x3b2e9;}['_recordAttributeChanges'](_0x477474){this['_recordAttributeSuggestions']=!0x0,_0x477474();}['_isRegisteredAttribute'](_0x1768bd){const _0x202d22=this['_isBlockAttribute'](_0x1768bd),_0x3a8071=this['_inlineAttributeKeys']['has'](_0x1768bd);return _0x202d22||_0x3a8071;}['_reduceExistingSuggestions'](_0x326259,_0x3d4d86){if(0x0==_0x3d4d86['length'])return!0x1;let _0x42cc3b=!0x1;for(const _0x3e901d of _0x3d4d86){const _0x590656=this['_findSuggestions'](_0x3e901d['range'],'attribute')['filter'](_0x2f2135=>!_0x2f2135['meta']['isNextTo'])['map'](_0x586625=>_0x586625['suggestion']),_0x57224a=_0xf1b1f({'newValue':_0x3e901d['newValue']});_0x590656['filter'](_0x5e684f=>{const [_0xd3fa33,_0x2a9a92]=_0x5e684f['subType']['split']('|');return _0xd3fa33==_0x3e901d['key']&&_0x2a9a92!=_0x57224a;})['forEach'](_0x4ade68=>{this['_reduceSuggestionAttributeRange'](_0x4ade68,_0x3e901d['range'],_0x326259),_0x42cc3b=!0x0;});}return _0x42cc3b;}['_reduceSuggestionAttributeRange'](_0x45ab1e,_0x5b1727,_0x2b2bfa){const _0x1efdb1=_0x45ab1e['getFirstRange']()['getDifference'](_0x5b1727);0x0!==_0x1efdb1['length']?0x1!==_0x1efdb1['length']?this['_breakSuggestionMarker'](_0x45ab1e,_0x5b1727['start'],_0x5b1727['end']):this['_setSuggestionRange'](_0x45ab1e,_0x1efdb1[0x0]):_0x2b2bfa['removeMarker'](_0x45ab1e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d20c3){this['_editor']=_0x4d20c3,this['_model']=_0x4d20c3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22daad,_0x71197d,_0x1071da,_0x22fef5,_0x16aaeb,_0x41618b){return new u(this['_model'],{'type':_0x22daad,'subType':_0x71197d,'id':_0x1071da,'author':_0x22fef5,'creator':_0x22fef5,'attributes':_0x16aaeb,'onAttributesChange':_0x41618b,'onAccept':(..._0x5d8d95)=>this['getSuggestionCallback'](_0x22daad,_0x71197d,'accept')(..._0x5d8d95),'onDiscard':(..._0x4ec654)=>this['getSuggestionCallback'](_0x22daad,_0x71197d,'discard')(..._0x4ec654)});}['registerCustomCallback'](_0x47247d,_0xae605d,_0x1b0539,_0x73d709){const _0x58f00d=_0x47247d+':'+_0xae605d+':'+_0x1b0539;this['_customCallbacks']['set'](_0x58f00d,_0x73d709);}['getSuggestionCallback'](_0x33f950,_0x2d2ca4,_0x326cb9){const _0x2ab9ae=_0x33f950+':'+_0x2d2ca4+':'+_0x326cb9;return this['_customCallbacks']['get'](_0x2ab9ae)||this['_defaultCallbacks']['get'](_0x33f950+':'+_0x326cb9);}['_registerDefaultCallbacks'](){const _0x599756=()=>!0x1,_0x4aaee4=_0x10c46c=>{_0x10c46c['sort']((_0xaacc89,_0x551984)=>_0xaacc89['start']['isBefore'](_0x551984['start'])?0x1:-0x1),this['_model']['change'](_0x417662=>{for(const _0x3d29ca of _0x10c46c){let _0x1f9911;_0x1f9911=_0x3d29ca['end']['isAtEnd']&&_0x3d29ca['end']['parent']==_0x3d29ca['start']['nodeAfter']?_0x417662['createSelection'](_0x3d29ca['start']['nodeAfter'],'on'):_0x417662['createSelection'](_0x3d29ca),this['_model']['deleteContent'](_0x1f9911,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1054d7=(_0xab26e4,_0x2099d6)=>{_0x2099d6&&this['_model']['change'](_0x1205e7=>{const {commandName:_0x38665f,commandParams:_0x358adb=[]}=_0x2099d6,_0x49960a=_0xab26e4['map'](_0x23c21a=>(Vt(_0x23c21a)&&(_0x23c21a=this['_model']['createRange'](_0x23c21a['end'])),_0x23c21a))['filter'](_0x59f1f7=>'$graveyard'!==_0x59f1f7['root']['rootName']);if(_0x49960a['length']<0x1)return;const _0x5517d2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x436459=>_0x46da37['fromRange'](_0x436459));_0x1205e7['setSelection'](_0x49960a);for(const _0x552ae9 of this['_editor']['commands']['commands']())_0x552ae9['refresh']();_0x358adb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x38665f,..._0x358adb);const _0x10df7a=_0x5517d2['filter'](_0x14a50a=>'$graveyard'!=_0x14a50a['root']['rootName']);_0x10df7a['length']>0x0&&_0x1205e7['setSelection'](_0x10df7a);for(const _0x2298c2 of _0x5517d2)_0x2298c2['detach']();});},_0x355e03=(_0x111cb1,_0x2e9f89)=>0x1==_0x111cb1['length']&&0x1==_0x2e9f89['length']&&_0x111cb1[0x0]['end']['isEqual'](_0x2e9f89[0x0]['start']),_0x5a324a=(_0x2b9dd0,_0x446a85,_0x1a1202,_0x959f15)=>Ht(_0x2b9dd0,_0x446a85,_0x1a1202,_0x959f15,this['_model'])?[_0x2b9dd0,_0x446a85]:Ht(_0x446a85,_0x2b9dd0,_0x959f15,_0x1a1202,this['_model'])?[_0x446a85,_0x2b9dd0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x599756),this['_defaultCallbacks']['set']('insertion:discard',_0x4aaee4),this['_defaultCallbacks']['set']('insertion:join',_0x355e03),this['_defaultCallbacks']['set']('insertion:chain',_0x5a324a),this['_defaultCallbacks']['set']('deletion:accept',_0x4aaee4),this['_defaultCallbacks']['set']('deletion:discard',_0x599756),this['_defaultCallbacks']['set']('deletion:join',_0x355e03),this['_defaultCallbacks']['set']('deletion:chain',_0x5a324a),this['_defaultCallbacks']['set']('formatInline:accept',_0x1054d7),this['_defaultCallbacks']['set']('formatInline:discard',_0x599756),this['_defaultCallbacks']['set']('formatInline:join',_0x355e03),this['_defaultCallbacks']['set']('formatInline:chain',_0x599756),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1054d7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x599756),this['_defaultCallbacks']['set']('formatBlock:join',_0x355e03),this['_defaultCallbacks']['set']('formatBlock:chain',_0x599756),this['_defaultCallbacks']['set']('attribute:accept',_0x599756),this['_defaultCallbacks']['set']('attribute:discard',(_0x180744,_0x5c136a)=>{if(!_0x5c136a)return;const _0x1d1b68=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x343d91=>{if(_0x5c136a['key']==m)for(const _0x56646f of _0x180744){const _0x2f62e7=_0x56646f['start']['nodeAfter'],_0x4a21a3=_0x5c136a['oldValue'];_0x343d91['rename'](_0x2f62e7,_0x4a21a3);}else{if(_0x1d1b68['_isBlockAttribute'](_0x5c136a['key'])){for(const _0x37e0da of _0x180744)void 0x0!==_0x5c136a['oldValue']?_0x343d91['setAttribute'](_0x5c136a['key'],_0x5c136a['oldValue'],_0x37e0da['start']['nodeAfter']):_0x343d91['removeAttribute'](_0x5c136a['key'],_0x37e0da['start']['nodeAfter']);}else{for(const _0x126bf9 of _0x180744)_0x5c136a['oldValue']?_0x343d91['setAttribute'](_0x5c136a['key'],_0x5c136a['oldValue'],_0x126bf9):_0x343d91['removeAttribute'](_0x5c136a['key'],_0x126bf9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x355e03);}}function Ot(_0x5b2295,_0x13fa6c,_0x3ee20f){for(const _0x130dc3 of _0x13fa6c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x130dc3['root']==_0x130dc3)return!0x1;if(!_0x3ee20f['containsItem'](_0x130dc3))return!0x1;if(_0x5b2295['isObject'](_0x130dc3)||_0x5b2295['isLimit'](_0x130dc3))return!0x0;}return!0x1;}function Vt(_0x572bf6){return _0x572bf6['end']['parent']==_0x572bf6['start']['nodeAfter']&&_0x572bf6['end']['isAtStart'];}function Ut(_0x51d465,_0x1bfba1,_0x18d2ef,_0x5108a9){const _0x101908=_0x5e6d87=>!_0x5e6d87['item']['is']('$textProxy')&&!_0x5108a9['isObject'](_0x5e6d87['item']),_0x4eeae7=_0x51d465['start']['getLastMatchingPosition'](_0x101908),_0x1d8c31=_0x51d465['end']['getLastMatchingPosition'](_0x101908,{'direction':'backward'});return(!_0x51d465['start']['isEqual'](_0x4eeae7)||!_0x51d465['end']['isEqual'](_0x1d8c31))&&(_0x4eeae7['isBefore'](_0x1d8c31)?_0x18d2ef['updateMarker'](_0x1bfba1,{'range':_0x18d2ef['createRange'](_0x4eeae7,_0x1d8c31)}):_0x18d2ef['removeMarker'](_0x1bfba1),!0x0);}function Gt(_0x25bd5a){return _0xf1b1f(_0x25bd5a);}function Ft(_0x3983b8){const _0x35632d=_0x3983b8['start']['nodeAfter'];return _0x35632d&&_0x35632d['is']('element');}function Pt(_0x1fffdd,_0x10f942){return null==_0x1fffdd['end']['nodeBefore']&&_0x1fffdd['end']['parent']==_0x1fffdd['start']['nodeAfter']?Lt(_0x1fffdd['start']['nodeAfter'],_0x10f942):_0x1fffdd;}function Lt(_0xae7fd1,_0x67fa72){const _0x1c55f3=_0x67fa72['schema']['isObject'](_0xae7fd1)||_0x67fa72['schema']['isSelectable'](_0xae7fd1);return _0x67fa72['createRange'](_0x67fa72['createPositionAt'](_0xae7fd1,'before'),_0x1c55f3?_0x67fa72['createPositionAfter'](_0xae7fd1):_0x67fa72['createPositionAt'](_0xae7fd1,'end'));}function Ht(_0xe2325f,_0x52de22,_0x3a08df,_0xb10597,_0x368b53){if(_0xe2325f['next'])return!0x1;if(!Jt(_0xe2325f,_0x52de22))return!0x1;if(_0x3a08df['end']['isEqual'](_0xb10597['start']))return!0x0;if(_0xe2325f['type']!=_0x52de22['type'])return!0x1;if(!_0x3a08df['end']['isTouching'](_0xb10597['start']))return!0x1;const _0x11531f=_0x368b53['createRange'](_0x3a08df['end'],_0xb10597['start'])['getWalker']();for(const _0x9e3c49 of _0x11531f)if(['elementStart','elementEnd']['includes'](_0x9e3c49['type'])&&_0x368b53['schema']['isLimit'](_0x9e3c49['item']))return!0x1;return!0x0;}function Jt(_0x239c67,_0x1b9804){if(!_0x239c67['_isDataLoaded']||!_0x1b9804['_isDataLoaded'])return!0x1;const _0x1b42a9=new Set(Object['keys'](_0x239c67['attributes'])),_0x1b91e0=new Set(Object['keys'](_0x1b9804['attributes']));if(_0x1b42a9['delete']('groupId'),_0x1b91e0['delete']('groupId'),0x0==_0x1b42a9['size']&&0x0==_0x1b91e0['size'])return!0x0;if(_0x1b42a9['size']!=_0x1b91e0['size'])return!0x1;const _0x1485cf={..._0x239c67['attributes']},_0x131dcf={..._0x1b9804['attributes']};return delete _0x1485cf['groupId'],delete _0x131dcf['groupId'],JSON['stringify'](_0x1485cf)==JSON['stringify'](_0x131dcf);}function qt(_0x1ef200,_0x744458){const _0x433d1f=zt(_0x1ef200['attributes']),_0x687706=zt(_0x744458);if(!_0x1ef200['_isDataLoaded'])return!0x1;for(const _0x1cb1c7 of Object['keys'](_0x687706))if(!_0x4b5161(_0x433d1f[_0x1cb1c7],_0x687706[_0x1cb1c7]))return!0x1;return!0x0;}function zt(_0x25b768){const _0x424e32=Object['assign']({},_0x25b768);return delete _0x424e32['skipNestingCheck'],delete _0x424e32['tablePasteChainId'],_0x424e32;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x3c9868(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xf2a20c,_0x4e1950,_0x263b13,_0x12b876){super(),this['model']=_0x4e1950,this['view']=_0x263b13,this['commentThreadController']=_0x12b876,this['_editor']=_0xf2a20c,this['_acceptCommand']=_0xf2a20c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xf2a20c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d220b,_0x4f42a1)=>_0x5d220b||_0x4f42a1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd27fa2=>_0xd27fa2&&this['_editor']['model']['canEditAt'](_0x4e1950['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ab065=>_0x4ab065&&this['_editor']['model']['canEditAt'](_0x4e1950['getRanges']())),this['_pendingAction']=null,_0x263b13['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x263b13,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x263b13,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x263b13,'change:isDirty',()=>{_0x263b13['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 _0x531a0b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x531a0b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x294ed2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3fed01,_0x20c378,_0x1445bc,_0x2cc66c){super(_0x3fed01),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x26ba2b(_0x3fed01,o(_0x3fed01,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x20c378['authoredAt']),this['bind']('authoredAt')['to'](_0x20c378),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x20c378,'authoredAt',this,'descriptionParts',(_0x2f5e00,_0x4e7c8a,_0x5e4627)=>{const _0x4377d5=_0x5e4627['map'](_0x53c93c=>ls(_0x53c93c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2f5e00-0x1,_0x20c378['author']['name'],_0x4e7c8a?_0x2cc66c['formatDateTime'](_0x4e7c8a):'',new DOMParser()['parseFromString'](_0x4377d5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x23c8b8(),this['focusTracker']=new _0x15157f(),this['keystrokes']=new _0x266d37(),this['focusCycler']=new _0x1b6047({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x46aa24=>_0x46aa24['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x20c378,this['_localUser']=_0x1445bc,this['_config']=_0x2cc66c,_0x2cc66c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x57141b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1e77a9}=this['_config'];this['commentsListView']=new _0x1e77a9(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',_0x4653dc=>_0x4653dc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5c542d,_0x2345c5)=>_0x5c542d||!!_0x2345c5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x196046}=this['_config'],_0x40967e=new _0x196046(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x378e7a=_0x40967e['commentInputView'];return _0x40967e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x378e7a,'value',(_0x420490,_0x12fb90,_0x294cec)=>!!_0x294cec||_0x420490&&!_0x12fb90),_0x378e7a['on']('submit',(_0x2e2e14,_0x3bc4b9)=>{this['fire']('addComment',_0x3bc4b9),_0x378e7a['editor']['setData']('');}),_0x378e7a['on']('cancel',()=>this['focus']()),_0x378e7a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x40967e;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x57e1fb,_0x146e69,_0x37493f,_0x34884d){super(_0x57e1fb,_0x146e69,_0x37493f,_0x34884d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5dfaf5=>_0x5dfaf5&&_0x5dfaf5[0x0]?_0x5dfaf5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x551b3f,_0x409c2a)=>{let _0x12f4f2='';for(const _0x269c20 of _0x551b3f)_0x12f4f2+='<p>'+ls(_0x269c20['content'],_0x269c20['color'])+'</p>';return _0x409c2a?_0x12f4f2:_0x1f8706(_0x12f4f2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x34884d['SuggestionView'](_0x57e1fb,_0x146e69,{'formatDateTime':_0x34884d['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1fdfcc=this['bindTemplate'],_0x4ff3b8=[this['suggestionView']];return this['commentsListView']&&_0x4ff3b8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4ff3b8['push'](this['commentThreadInputView']),_0x4ff3b8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1fdfcc['if']('isActive','ck-suggestion-wrapper--active'),_0x1fdfcc['to']('type',_0xc3997a=>'ck-suggestion-'+_0xc3997a),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':0x0,'role':'listitem','aria-label':_0x1fdfcc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4ff3b8};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x294ed2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x520237,_0x32f52e,_0x2b2767){super(_0x520237),this['_model']=_0x32f52e,this['_config']=_0x2b2767,this['set']('description',''),this['bind']('authoredAt')['to'](_0x32f52e),this['acceptButton']=this['_createButton'](o(_0x520237,'Accept\x20suggestion'),_0x22e7cf['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x520237,'Discard\x20suggestion'),_0x22e7cf['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4be92a(_0x520237,_0x32f52e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x23c8b8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x15157f(),this['keystrokes']=new _0x266d37(),this['focusCycler']=new _0x1b6047({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x275519=>_0x275519['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3e66fb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3e66fb['innerHTML']=this['description'],this['on']('change:description',(_0x3db852,_0x3b988d,_0x41e93a)=>{_0x3e66fb['innerHTML']=_0x41e93a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x7da130=this['bindTemplate'],_0x1dec07=[{'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':_0x7da130['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x7da130['to']('authoredAt',_0xfa3dc9=>this['_config']['formatDateTime'](_0xfa3dc9))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1dec07['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1dec07}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x110893,_0x4634f9,_0x6e7250,_0x53f17c,_0x1ebd65){const _0x1c59c4=new _0x2c0a2b(this['locale']);return _0x1c59c4['set']({'label':_0x110893,'icon':_0x4634f9,'tooltip':!0x0,'tooltipPosition':_0x1ebd65}),_0x1c59c4['extendTemplate']({'attributes':{'class':_0x6e7250}}),_0x1c59c4['on']('execute',()=>{this['fire'](_0x53f17c,this['_model']['id']);}),_0x1c59c4;}['_setupKeyboardNavigation'](){const _0x15c790=this['element'];this['keystrokes']['listenTo'](_0x15c790);for(const _0xf19246 of this['focusables'])this['focusTracker']['add'](_0xf19246['element']),this['keystrokes']['listenTo'](_0xf19246['element']);this['keystrokes']['set']('enter',(_0x562aa5,_0x34ae93)=>{_0x15c790===_0x562aa5['target']&&(this['focusCycler']['focusFirst'](),_0x34ae93());}),this['keystrokes']['set']('esc',(_0x4ce3d3,_0x5c8fcc)=>{_0x15c790!==_0x4ce3d3['target']&&(this['focus'](),_0x5c8fcc());});}}var he='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x55f69e{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x96452c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4173c4){super(_0x4173c4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3a42cd=this['editor']['config'];_0x3a42cd['define']('trackChanges.SuggestionThreadView',re),_0x3a42cd['define']('trackChanges.SuggestionView',ce),_0x3a42cd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3a42cd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x523b68,_0x34002c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xa81e08,_0x258059]of this['_handleControllerBuffer']){const _0x205809=this['_suggestionToController']['has'](_0xa81e08);_0x205809||_0x258059?_0x205809&&_0x258059&&this['_destroyController'](_0xa81e08):this['_initializeController'](_0xa81e08);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x523b68,_0x34002c);}['init'](){const _0x45d1f3=this['editor'],_0x1e9580=_0x45d1f3['plugins']['get']('TrackChangesEditing'),_0x32bc41=_0x45d1f3['plugins']['get']('Annotations'),_0x23d712=_0x45d1f3['plugins']['get']('EditorAnnotations'),_0x511f92=_0x45d1f3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x23d712['addSourceCollector'](()=>{const _0xb23c4a=[];for(const [_0x5116a9,_0x23e566]of Array['from'](this['_suggestionToController'])){const _0x7b479f=_0x5116a9['getAllAdjacentSuggestions'](),_0x4e7bbd=[];for(const _0x36bdb1 of _0x7b479f){if(!_0x36bdb1['isInContent'])continue;if(_0x36bdb1['isMultiRange']){_0x4e7bbd['push'](..._0x36bdb1['getRanges']());continue;}const _0x5727ab=_0x36bdb1['getFirstRange']();if(_0x4e7bbd['length']>0x0){const _0x338c62=_0x4e7bbd[0x0]['getJoined'](_0x5727ab);if(_0x338c62){_0x4e7bbd[0x0]=_0x338c62;continue;}}_0x4e7bbd['push'](_0x5727ab);}_0xb23c4a['push']([_0x23e566['view'],_0x4e7bbd]);}return _0xb23c4a;}),this['listenTo'](_0x1e9580,'suggestionLoaded',(_0x424454,_0x11425e)=>{this['listenTo'](_0x11425e,'change:previous',(_0x21fe10,_0x23390a,_0x20a07f,_0x4447ce)=>{_0x11425e['isInContent']&&(null==_0x20a07f?(this['_updateController'](_0x4447ce['head']),this['_handleSuggestionControllerDelayed'](_0x11425e,!0x1)):(this['_updateController'](_0x20a07f['head']),null==_0x4447ce&&this['_handleSuggestionControllerDelayed'](_0x11425e,!0x0)));}),null!==_0x11425e['previous']?this['_updateController'](_0x11425e['head']):this['_handleSuggestionControllerDelayed'](_0x11425e,!0x1);}),this['listenTo'](_0x1e9580,'suggestionUnloaded',(_0x147cae,_0x166098,_0x469515)=>{this['stopListening'](_0x166098,'change:previous'),this['_handleControllerBuffer']['delete'](_0x166098),this['_suggestionToController']['has'](_0x166098)&&this['_destroyController'](_0x166098),_0x469515&&this['_updateController'](_0x469515['head']);}),this['listenTo'](_0x1e9580,'suggestionChanged',(_0x15ba72,_0x44969c)=>{this['_updateController'](_0x44969c);}),this['listenTo'](_0x32bc41,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x511f92,'addComment',(_0xd8b265,{threadId:_0x4bacd2,isFromAdapter:_0x5b198b})=>{if(_0x5b198b||!_0x1e9580['hasSuggestion'](_0x4bacd2))return;const _0x3727d6=_0x1e9580['getSuggestion'](_0x4bacd2);this['_suggestionToController']['get'](_0x3727d6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x476d94=this['editor']['plugins']['get']('Annotations'),_0x478e31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da87d=Array['from'](_0x476d94['activeAnnotations'],_0x46348d=>_0x46348d['innerView'])['filter'](_0x5c0b4d=>this['_viewToController']['has'](_0x5c0b4d)),_0x2633b0=[];for(const _0x38c67f of _0x3da87d){const _0x2a5673=this['_viewToController']['get'](_0x38c67f)['model']['getAllAdjacentSuggestions']();_0x2633b0['push'](..._0x2a5673['reduce']((_0x39767b,_0x24ca3c)=>[..._0x39767b,..._0x24ca3c['getMarkerNames']()],[]));}_0x478e31['activeMarkers']=_0x2633b0;}['_addUIComponentsToFactory'](){const _0x32e947=this['editor'],_0x31d5c2=_0x32e947['locale'],_0xa499d6=o(_0x31d5c2,'Track\x20changes'),_0x2a4e15=new Wt([{'type':'switchbutton','model':new _0x220d45({'withText':!0x0,'isToggleable':!0x0,'label':_0xa499d6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x220d45({'withText':!0x0,'label':o(_0x31d5c2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x28036a of _0x2a4e15)if(me(_0x28036a)){const _0xe7592f=_0x32e947['commands']['get'](_0x28036a['model']['commandName']);_0x28036a['model']['bind']('isOn','isEnabled')['to'](_0xe7592f,'value','isEnabled');}_0x32e947['ui']['componentFactory']['add']('trackChanges',_0x30208e=>this['_createToolbarButton'](_0x30208e,_0x2a4e15,_0xa499d6)),_0x32e947['ui']['componentFactory']['add']('menuBar:trackChanges',_0x29d920=>this['_createMenuBarMenu'](_0x29d920,_0x2a4e15,_0xa499d6));}['_createToolbarButton'](_0x258529,_0x2a62ba,_0x10c605){const _0x22d175=Qt(_0x258529,_0xb37fff),_0x22f32c=this['editor']['commands']['get']('trackChanges');_0x22d175['buttonView']['set']({'tooltip':_0x10c605,'label':_0x10c605,'icon':he}),_0x22d175['buttonView']['bind']('isOn')['to'](_0x22f32c,'value'),_0x22d175['buttonView']['on']('execute',()=>{_0x22f32c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x22d175,_0x2a62ba,{'role':'menu'});const _0x3e16f5=[];for(const _0x1693e8 of _0x2a62ba)me(_0x1693e8)&&_0x3e16f5['push'](this['editor']['commands']['get'](_0x1693e8['model']['commandName']));const _0x2baa56=_0x22d175['buttonView'];return _0x2baa56['actionView']['unbind']('isEnabled'),_0x2baa56['arrowView']['unbind']('isEnabled'),_0x2baa56['actionView']['bind']('isEnabled')['to'](_0x22f32c,'isEnabled'),_0x2baa56['arrowView']['bind']('isEnabled')['toMany'](_0x3e16f5,'isEnabled',(..._0x3ae9ab)=>_0x3ae9ab['some'](_0x20c0f9=>_0x20c0f9)),_0x22d175['on']('execute',_0x2a7f6b=>{this['editor']['execute'](_0x2a7f6b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x22d175;}['_createMenuBarMenu'](_0xfe3a4f,_0x3fa837,_0x213380){const _0x7c5f9b=new Yt(_0xfe3a4f),_0x5bac43=this['editor']['commands']['get']('trackChanges');_0x7c5f9b['buttonView']['set']({'label':_0x213380,'icon':he});const _0x7eedaa=new Zt(_0xfe3a4f);for(const _0x36b4b1 of _0x3fa837){if('separator'==_0x36b4b1['type']){_0x7eedaa['items']['add'](new Xt(_0xfe3a4f));continue;}const _0x1444b4=new te(_0xfe3a4f,_0x7c5f9b),_0xb06a02=new _0x5c9be1(_0xfe3a4f),_0x441b7b=_0x36b4b1['model'];_0xb06a02['bind'](...Object['keys'](_0x441b7b))['to'](_0x441b7b),_0xb06a02['delegate']('execute')['to'](_0x7c5f9b),_0xb06a02['on']('execute',()=>{this['editor']['execute'](_0x441b7b['commandName']),this['editor']['editing']['view']['focus']();}),_0x1444b4['children']['add'](_0xb06a02),_0x7eedaa['items']['add'](_0x1444b4);}return _0x7c5f9b['bind']('isEnabled')['to'](_0x5bac43,'isEnabled'),_0x7c5f9b['panelView']['children']['add'](_0x7eedaa),_0x7c5f9b;}['_initializeController'](_0x463c00){const _0x3b23fa=this['editor'],_0x599c5a=_0x3b23fa['config'],_0x2defd3=_0x3b23fa['plugins']['get']('Annotations'),_0x58deac=_0x3b23fa['plugins']['get']('CommentsRepository'),_0xab72c9=_0x3b23fa['plugins']['get']('EditorAnnotations'),_0x529c33=_0x3b23fa['plugins']['get'](_0x96452c)['me'],_0x4fcd83=_0x599c5a['get']('trackChanges')['SuggestionThreadView'],_0x17661d=_0x599c5a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2d8637,CommentThreadInputView:_0x49f9c8}=_0x3b23fa['plugins']['get']('CommentsUI');let _0x24bb04,_0x357459,_0x10db80;this['_annotationViews']['has'](_0x463c00['id'])?(_0x357459=this['_annotationViews']['get'](_0x463c00['id']),_0x24bb04=_0x357459['mainView']):(_0x24bb04=new _0x4fcd83(_0x3b23fa['locale'],_0x463c00,_0x529c33,{'disableComments':this['_disableComments'],'editorConfig':_0x599c5a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x599c5a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x599c5a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x599c5a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3b1251(_0x599c5a['get']('locale')),'CommentView':_0x599c5a['get']('comments')['CommentView'],'CommentsListView':_0x2d8637,'CommentThreadInputView':_0x49f9c8,'SuggestionView':_0x17661d}),_0x24bb04['suggestionView']['acceptButton']['on']('execute',()=>{_0x3b23fa['editing']['view']['focus']();}),_0x24bb04['suggestionView']['discardButton']['on']('execute',()=>{_0x3b23fa['editing']['view']['focus']();}),_0x357459=_0x2defd3['createAnnotationView'](this['editor']['locale'],_0x24bb04),_0x357459['bind']('isDirty')['to'](_0x24bb04,'isDirty'),_0x357459['bind']('length')['to'](_0x24bb04),_0x357459['bind']('type')['to'](_0x24bb04,'type',_0x281a87=>'suggestion-'+_0x281a87),_0x24bb04['on']('escape',()=>{_0x10db80['fire']('escape');}),this['_annotationViews']['set'](_0x463c00['id'],_0x357459));const _0x4d73f5=_0x58deac['createCommentThreadController'](_0x463c00['commentThread'],_0x24bb04),_0x57cc98=new ae(_0x3b23fa,_0x463c00,_0x24bb04,_0x4d73f5),_0x2820ee=_0x463c00['getAllAdjacentSuggestions']()['filter'](_0x58bbe0=>_0x58bbe0['isInContent']);_0x24bb04['descriptionParts']=_0x3b23fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2820ee),this['_suggestionToController']['set'](_0x463c00,_0x57cc98),this['_viewToController']['set'](_0x24bb04,_0x57cc98),_0x10db80=_0x2defd3['createAnnotation']({'view':_0x357459,'target':()=>{const _0x2d4bc1=[],_0x311877=_0x463c00['getAllAdjacentSuggestions']()['filter'](_0x2dfd4d=>_0x2dfd4d['isInContent']);for(const _0xd0d500 of _0x311877)_0x2d4bc1['push'](..._0xd0d500['getMarkers']());return _0x5910c7(_0x3b23fa['editing'],_0x2d4bc1);},'type':()=>'suggestion-'+_0x57cc98['view']['type']}),_0x58deac['_bindAnnotationToEditors'](_0x24bb04,_0x10db80),_0x2defd3['add'](_0x10db80),_0xab72c9['registerAnnotation'](_0x10db80);}['_destroyController'](_0x2cea65){const _0x8f71a9=this['editor']['plugins']['get']('CommentsRepository'),_0x39a534=this['editor']['plugins']['get']('Annotations'),_0x1d098f=this['_suggestionToController']['get'](_0x2cea65),_0x406489=_0x1d098f['view'],_0x407886=_0x39a534['getByInnerView'](_0x406489);_0x8f71a9['_unbindEditors'](_0x406489),_0x407886&&_0x39a534['remove'](_0x407886),this['_suggestionToController']['delete'](_0x2cea65),this['_viewToController']['delete'](_0x406489),_0x1d098f['destroy']();}['_updateController'](_0x503412){if(!_0x503412['isInContent']||!this['_suggestionToController']['has'](_0x503412))return;const _0x34ce06=this['editor']['plugins']['get']('TrackChangesEditing'),_0x524ada=this['_suggestionToController']['get'](_0x503412),_0x422c99=_0x503412['getAllAdjacentSuggestions']();_0x524ada['view']['descriptionParts']=_0x34ce06['descriptionFactory']['getDescriptions'](_0x422c99);}['destroy'](){for(const _0x588d26 of this['_suggestionToController']['keys']())this['_destroyController'](_0x588d26);for(const _0x349392 of this['_annotationViews']['values']())_0x349392['mainView']['destroy']();super['destroy']();}}function me(_0x4cb678){return'model'in _0x4cb678;}class k extends _0x55f69e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x445249){this['editor']['plugins']['get'](p)['adapter']=_0x445249;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3ed1f7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3ed1f7);}['getSuggestions']({skipNotAttached:_0x565ce8=!0x1,toJSON:_0x57573d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x565ce8,'toJSON':_0x57573d});}['getSuggestion'](_0xeac6ef){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xeac6ef);}}const T=['Pagination'];class P extends _0x55f69e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x274c1d=this['editor'];if(_0x274c1d['config']['define']('trackChangesData.editorCreator',_0x3c7be8=>{const _0x533a32=_0x274c1d['model']['document']['getRootNames']()['reduce']((_0x255035,_0x14e9b6)=>(_0x255035[_0x14e9b6]='',_0x255035),{});return _0x274c1d['constructor']['create'](_0x533a32,_0x3c7be8);}),'function'!=typeof _0x274c1d['config']['get']('trackChangesData')['editorCreator'])throw new _0x27812c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xfc9a11){return N(this['editor'],!0x0,_0xfc9a11);}['getDataWithDiscardedSuggestions'](_0x584eba){return N(this['editor'],!0x1,_0x584eba);}}class D extends _0x55f69e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x51bdbf){super(_0x51bdbf),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(_0x48c7cd){return void 0x0!==_0x48c7cd['getRootsAttributes'];}async function N(_0x2763c2,_0x34e25f,_0x1a38c7){const _0x21da5d=_0x41993e(_0x2763c2,T);_0x21da5d['plugins']['push'](p,D),_0x21da5d['rootsAttributes']=v(_0x2763c2)?_0x2763c2['getRootsAttributes']():void 0x0;const _0x142cee=document['createDocumentFragment'](),_0x45f73e=_0x2763c2['config']['get']('trackChangesData')['editorCreator'],_0x48a5f5=await _0x45f73e(_0x21da5d,()=>function(_0x1c0f98){const _0x15ae71=document['createElement']('div');return _0x1c0f98['appendChild'](_0x15ae71),_0x15ae71;}(_0x142cee));!function(_0x23d697,_0x302c71){const _0x38ea76=_0x23d697['model']['document']['getRootNames']()['reduce']((_0xb08049,_0xba9d2b)=>(_0xb08049[_0xba9d2b]=_0x23d697['data']['get']({'rootName':_0xba9d2b}),_0xb08049),{}),_0x3083b3=_0x23d697['plugins']['get']('Users')['users']['map'](_0x850dd9=>({'id':_0x850dd9['id'],'name':_0x850dd9['name']})),_0x46e5c6=_0x23d697['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x200b97=_0x23d697['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3130e6=_0x302c71['plugins']['get']('Users'),_0x5e973=_0x302c71['plugins']['get']('TrackChangesEditing'),_0x1990c8=_0x302c71['plugins']['get']('CommentsRepository');for(const _0x3d6b82 of _0x1990c8['getCommentThreads']())_0x3d6b82['remove']();for(const _0x38b1ba of _0x3083b3)_0x3130e6['getUser'](_0x38b1ba['id'])||_0x3130e6['addUser'](_0x38b1ba);_0x3130e6['me']||_0x3130e6['useAnonymousUser']();for(const _0x547384 of _0x200b97)_0x1990c8['addCommentThread'](_0x547384);for(const _0x27c6f2 of _0x46e5c6)_0x5e973['addSuggestionData'](_0x27c6f2);_0x302c71['data']['set'](_0x38ea76);}(_0x2763c2,_0x48a5f5),_0x48a5f5['execute'](_0x34e25f?'acceptAllSuggestions':'discardAllSuggestions');const _0xc1cc6b=v(_0x48a5f5)?_0x48a5f5['getFullData'](_0x1a38c7):_0x48a5f5['data']['get'](_0x1a38c7);return await _0x48a5f5['destroy'](),_0xc1cc6b;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x560a22,PendingActions as _0x1cc518,icons as _0x1ad65}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3f354f,ObservableMixin as _0x1335aa,uid as _0x524896,insertToPriorityArray as _0x12da3b,priorities as _0x2388dd,logWarning as _0x4f9a07,getEnvKeystrokeText as _0x55084c,FocusTracker as _0x2560dd,KeystrokeHandler as _0x8fdec2,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x396fff,View as _0x28d1c0,ViewCollection as _0x23a5d0,FocusCycler as _0x3f6783,ViewModel as _0x3a1cb3,createDropdown as Qt,SplitButtonView as _0x435717,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x392ac2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4e07e7,hashObject as _0xc116ba,surroundingMarkersDetector as _0x36625a,FOCUS_ANNOTATION_KEYSTROKE as _0x21c962,AriaDescriptionView as _0x545462,setupThreadKeyboardNavigation as _0x4484a6,trimHtml as _0x52eb5a,UserView as _0x445161,LateFocusButtonView as _0x54c9ce,getDateTimeFormatter as _0x49f843,getAllMarkersDomElementsSorted as _0x1ea284,sanitizeEditorConfig as _0x118e78}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x25d9c4,LiveRange as _0x4f29af,LivePosition as _0xe9cfce}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xb17fce,toWidget as _0x670c8b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x11c145,set as _0x4d58b2,isEqual as _0x3b426a,unset as _0x3ca033,omit as Tt}from'lodash-es';import{Delete as _0x599bf2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xde2d51,ShiftEnter as _0x127bb0}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x5ef1be,_0x2c45bb){super(_0x5ef1be),this['_enabledCommands']=_0x2c45bb,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 _0x202de1 of this['editor']['commands']['commands']())_0x202de1['affectsData']&&!this['_enabledCommands']['has'](_0x202de1)&&_0x202de1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3d0709 of this['editor']['commands']['commands']())_0x3d0709['affectsData']&&!this['_enabledCommands']['has'](_0x3d0709)&&_0x3d0709['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x740e09,_0x221bfd){super(_0x740e09),this['_suggestions']=_0x221bfd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x11b9cf){const _0x30b3fb=this['_suggestions']['get'](_0x11b9cf);if(!_0x30b3fb)throw new _0x3f354f('track-changes-accept-suggestion-not-found',this);const _0x2dc52d=_0x30b3fb['getRanges']();this['editor']['model']['canEditAt'](_0x2dc52d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x30b3fb);}}class R extends ts{['_suggestions'];constructor(_0x374643,_0x4d6d2e){super(_0x374643),this['_suggestions']=_0x4d6d2e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x19f3e5){const _0x4a4d07=this['_suggestions']['get'](_0x19f3e5);if(!_0x4a4d07)throw new _0x3f354f('track-changes-discard-suggestion-not-found',this);const _0x2a90e8=_0x4a4d07['getRanges']();this['editor']['model']['canEditAt'](_0x2a90e8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4a4d07);}}function ls(_0x253ef8,_0x35189b){let _0x30b719='';return _0x30b719+=_0x253ef8['split']('*')['map']((_0x46e932,_0x4340b8)=>_0x4340b8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x46e932)+'</span>':nn(_0x46e932))['join'](''),_0x35189b&&(_0x30b719+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x35189b['value']+'\x22\x20title=\x22'+_0x35189b['title']+'\x22></span>'),_0x30b719;}function nn(_0x1ccb27){const _0x5b2f51=document['createElement']('span');return _0x5b2f51['innerText']=_0x1ccb27,_0x5b2f51['innerHTML'];}function ss(_0x47210b){return _0x47210b['sort']((_0x1c0962,_0x56ffcf)=>'deletion'==_0x1c0962['type']&&'deletion'!=_0x56ffcf['type']?-0x1:'deletion'!=_0x1c0962['type']&&'deletion'==_0x56ffcf['type']?0x1:0x0);}function to(_0xf965db,_0x444a2a){let _0x6ff77e,_0xad294e=0x0;const _0x550963=[],_0x323625=_0x444a2a['schema'];for(;_0xad294e<_0xf965db['length'];){const _0x43f5f4=_0xf965db[_0xad294e],_0x36dedf=_0xf965db[_0xad294e+0x1];_0x6ff77e||(_0x6ff77e=_0x444a2a['createPositionBefore'](_0x43f5f4)),on(_0x444a2a,_0x43f5f4,_0x36dedf)||(_0x550963['push'](_0x444a2a['createRange'](_0x6ff77e,_0x323625['isObject'](_0x43f5f4)?_0x444a2a['createPositionAfter'](_0x43f5f4):_0x444a2a['createPositionAt'](_0x43f5f4,'end'))),_0x6ff77e=null),_0xad294e++;}return _0x550963;}function on(_0x52e76e,_0x289426,_0x39217f){if(!_0x39217f)return!0x1;const _0x5ce50d=_0x52e76e['createPositionAfter'](_0x289426),_0x2f9265=_0x52e76e['createPositionBefore'](_0x39217f);return _0x5ce50d['isTouching'](_0x2f9265);}function rs(_0x26990d,_0x3b6767,_0x582823){for(;_0x582823['length'];){const _0xd7c2b8=_0x582823['splice'](0x0,0x64);_0x26990d['change'](()=>{for(const _0x214874 of _0xd7c2b8)_0x214874['isInContent']&&_0x3b6767['execute'](_0x214874['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x2e709a,_0x48a4ed,_0x1f6114){super(_0x2e709a),this['_command']=_0x48a4ed,this['_suggestions']=_0x1f6114,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x566033=Array['from'](this['_suggestions']['values']())['some'](_0x6d394e=>_0x6d394e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x566033;}['execute'](){const _0x25c25a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4d197e of _0x25c25a){const _0x3ebfe1=_0x4d197e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3ebfe1))return;}rs(this['editor']['model'],this['_command'],_0x25c25a);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4c1a92,_0x1c8be8,_0x7c292a){super(_0x4c1a92),this['_command']=_0x1c8be8,this['_suggestions']=_0x7c292a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x38a5ee=this['editor']['model']['document']['selection'],_0x128e15=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1c9d91,_0x3c17d5){const _0x429dfb=Array['from'](_0x1c9d91['getRanges']()),_0xfa44a7=new Set();for(const _0x5da1ae of _0x3c17d5)if(_0x5da1ae['isInContent']){for(const _0x3bcd43 of _0x429dfb)for(const _0x469774 of _0x5da1ae['getRanges']())(_0x3bcd43['isIntersecting'](_0x469774)||_0x1c9d91['isCollapsed']&&!_0x5da1ae['isMultiRange']&&_0x5da1ae['next']&&_0x469774['end']['isTouching'](_0x3bcd43['start']))&&_0xfa44a7['add'](_0x5da1ae);}return _0xfa44a7;}(_0x38a5ee,_0x128e15),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x192b15=ss(Array['from'](this['_selectedSuggestions']));for(const _0x173d74 of _0x192b15){const _0x5ddbad=_0x173d74['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5ddbad))return;}rs(this['editor']['model'],this['_command'],_0x192b15);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1335aa(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3582b7,_0x474282){super(),this['id']=_0x474282['id'],this['type']=_0x474282['type'],this['subType']=_0x474282['subType']||null,this['author']=_0x474282['author'],this['creator']=_0x474282['creator']||_0x474282['author'],this['isExternal']=Boolean(_0x474282['attributes']&&_0x474282['attributes']['@external']),this['data']=null,this['_model']=_0x3582b7,this['_onAccept']=_0x474282['onAccept'],this['_onDiscard']=_0x474282['onDiscard'],this['_onAttributesChange']=_0x474282['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x474282['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 _0x3976bd=this;for(;_0x3976bd['previous'];)_0x3976bd=_0x3976bd['previous'];return _0x3976bd;}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'](_0x20e000){this['_markerNames']['add'](_0x20e000);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x52df42=>this['_model']['markers']['get'](_0x52df42))['filter'](_0x2d7fb5=>_0x2d7fb5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5e86fc=>{for(const _0x1a731a of this['getMarkers']())_0x5e86fc['removeMarker'](_0x1a731a);}),this['_markerNames']['clear']();}['removeMarker'](_0x256d21){this['_model']['change'](_0x5e1459=>{_0x5e1459['removeMarker'](_0x256d21);}),this['_markerNames']['delete'](_0x256d21);}['addRange'](_0x5cd0bc){const _0x3f2676='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3f2676),this['_model']['change'](_0x6a37dd=>{_0x6a37dd['addMarker'](_0x3f2676,{'range':_0x5cd0bc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1c9507){for(const _0x57d23c of this['getRanges']())if(_0x57d23c['isIntersecting'](_0x1c9507))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x22b284=>_0x22b284['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x519bec,_0x2c5b0e)=>[..._0x519bec,..._0x2c5b0e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x28fa4c=this['getRanges']();if(0x1!=_0x28fa4c['length'])return null;const _0x44de3f=_0x28fa4c[0x0],_0x1ad3f3=_0x44de3f['start']['nodeAfter'],_0x251a9b=_0x44de3f['end']['nodeBefore'];return _0x1ad3f3 instanceof _0x25d9c4?_0x1ad3f3!=_0x251a9b?null:_0x1ad3f3: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 _0x30ada0=[];let _0x537370=this['head'];for(;_0x537370;)_0x30ada0['push'](_0x537370),_0x537370=_0x537370['next'];return _0x30ada0;}['setAttribute'](_0x273982,_0x72f105){const _0x4f1d9b=_0x11c145(this['attributes']);_0x4d58b2(_0x4f1d9b,_0x273982,_0x72f105),_0x3b426a(_0x4f1d9b,this['attributes'])||(this['attributes']=_0x4f1d9b,this['_onAttributesChange'](_0x4f1d9b));}['removeAttribute'](_0x1a66a1){const _0x9631ab=_0x11c145(this['attributes']);_0x3ca033(_0x9631ab,_0x1a66a1),_0x3b426a(_0x9631ab,this['attributes'])||(this['attributes']=_0x9631ab,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 _0x524896()['substr'](0x1,0x5);}}function o(_0x380ca2,_0x10c2da,_0x2bd45a){const t=_0x380ca2['t'];switch(_0x10c2da){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',_0x2bd45a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2bd45a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2bd45a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2bd45a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2bd45a);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',_0x2bd45a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2bd45a);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',_0x2bd45a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2bd45a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2bd45a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2bd45a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2bd45a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2bd45a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2bd45a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2bd45a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2bd45a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2bd45a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2bd45a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2bd45a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2bd45a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2bd45a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2bd45a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2bd45a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2bd45a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2bd45a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2bd45a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2bd45a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2bd45a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2bd45a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2bd45a);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'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2bd45a);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'},_0x2bd45a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2bd45a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2bd45a);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'},_0x2bd45a);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'},_0x2bd45a);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'},_0x2bd45a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2bd45a);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x2bd45a);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x2bd45a);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x2bd45a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x10c2da;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5edee5,_0x4df298){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5edee5,this['_locale']=_0x4df298;}['getDescriptions'](_0x56be91){const _0x1b00d9=[],_0x161d55=new Set(),_0x58e9a6=new Set();for(let _0x25db4b=0x0;_0x25db4b<_0x56be91['length'];_0x25db4b++){const _0x128bf8=_0x56be91[_0x25db4b];if(!_0x128bf8['isInContent'])continue;const _0x44b5d4=this['_handleCustomCallbackDescription'](_0x128bf8);if(_0x44b5d4){if(null!=_0x128bf8['subType']){if(_0x161d55['has'](_0x128bf8['subType']))continue;_0x161d55['add'](_0x128bf8['subType']);}_0x1b00d9['push'](_0x44b5d4);}else{if('attribute'!=_0x128bf8['type'])'insertion'!=_0x128bf8['type']&&'deletion'!=_0x128bf8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1b00d9,_0x128bf8,_0x56be91[_0x25db4b+0x1]);else{const _0x2a1d27=_0x128bf8['data']['key'];if(_0x58e9a6['has'](_0x2a1d27))continue;_0x58e9a6['add'](_0x128bf8['data']['key']),_0x2a1d27==m?this['_handleRenameSuggestionDescription'](_0x1b00d9,_0x128bf8):this['_handleAttributeSuggestionDescription'](_0x1b00d9,_0x128bf8);}}}return this['_resolveDescriptionItems'](_0x1b00d9);}['registerDescriptionCallback'](_0x7b4c8d){this['_customCallbacks']['push'](_0x7b4c8d);}['registerElementLabel'](_0x65ca16,_0x28200d,_0x1c5a6e=_0x2388dd['normal']){'function'==typeof _0x65ca16?_0x12da3b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x65ca16,'label':_0x28200d,'priority':_0x1c5a6e}):this['_itemLabels']['set'](_0x65ca16,_0x28200d);}['registerAttributeLabel'](_0x1ec45e,_0x3f5639){this['_attributeLabels']['set'](_0x1ec45e,_0x3f5639);}['getItemLabel'](_0x12336b,_0x5dcc53=0x1){let _0x58d5ff;for(const _0x219d6f of this['_itemLabelsCallbacks'])if(_0x219d6f['matchingCallback'](_0x12336b)){_0x58d5ff=_0x219d6f['label'];break;}return _0x58d5ff||(_0x58d5ff=this['_itemLabels']['get'](_0x12336b['name'])),_0x58d5ff?_0x58d5ff(_0x5dcc53):0x1!==_0x5dcc53?_0x5dcc53+'\x20'+_0x12336b['name']+'s':''+_0x12336b['name'];}['_addDescriptionItems'](_0xca318b,_0x2973d6){const _0x1be5da=_0x2973d6['getFirstRange']()['getWalker'](),_0x542723='insertion'==_0x2973d6['type']?'add':'remove';for(const _0xa74a21 of _0x1be5da){const _0x2bad70=_0xa74a21['item'],_0x16347e=_0xca318b[_0xca318b['length']-0x1];if(_0x2bad70['is']('$textProxy'))_0x16347e&&_0x16347e['type']['indexOf']('Container')>-0x1&&_0xca318b['pop'](),_0x16347e&&'text'==_0x16347e['type']?_0x16347e[_0x542723]+=_0x2bad70['data']:_0xca318b['push']({'type':'text','add':'add'==_0x542723?_0x2bad70['data']:'','remove':'remove'==_0x542723?_0x2bad70['data']:''});else{if(this['_schema']['isObject'](_0x2bad70)){const _0x349917=_0x2bad70;if(_0x16347e&&_0x16347e['type']['indexOf']('Container')>-0x1&&_0xca318b['pop'](),'elementEnd'==_0xa74a21['type'])continue;_0x16347e&&_0x16347e['type']==_0x542723+'Object'&&_0x16347e['element']['name']==_0x349917['name']?_0x16347e['quantity']++:_0xca318b['push']({'type':_0x542723+'Object','element':_0x349917,'quantity':0x1}),_0x1be5da['skip'](_0x265f2f=>!('elementEnd'==_0x265f2f['type']&&_0x265f2f['item']==_0x2bad70));}else{if(this['_schema']['checkChild'](_0x2bad70,'$text')||_0x2bad70['is']('element','softBreak')){const _0x4c25a5=_0x2bad70;if('add'==_0x542723&&'elementStart'==_0xa74a21['type']||'remove'==_0x542723&&'elementEnd'==_0xa74a21['type'])continue;if(_0x16347e&&-0x1==_0x16347e['type']['indexOf']('Container')){'text'==_0x16347e['type']&&(_0x16347e[_0x542723]+='\x0a');continue;}let _0x10abb0;if(_0x10abb0='add'==_0x542723?_0x4c25a5['nextSibling']&&!this['_schema']['isObject'](_0x4c25a5['nextSibling'])?_0x4c25a5['nextSibling']:null:_0x4c25a5['previousSibling']&&!this['_schema']['isObject'](_0x4c25a5['previousSibling'])?_0x4c25a5['previousSibling']:null,_0x4c25a5['isEmpty']||_0x10abb0&&_0x10abb0['isEmpty']){const _0x586de3=_0x10abb0&&_0x10abb0['isEmpty']?_0x10abb0:_0x4c25a5;_0x16347e&&_0x16347e['type']==_0x542723+'EmptyContainer'&&_0x16347e['element']['name']==_0x586de3['name']?_0x16347e['quantity']++:_0xca318b['push']({'type':_0x542723+'EmptyContainer','element':_0x586de3,'quantity':0x1});}else _0xca318b['push']({'type':_0x542723+'Container','element':_0x4c25a5});}}}}}['_resolveDescriptionItems'](_0x5105b6){const _0x2df1a6=this['_locale'],_0x29bc84=[],_0x4c78dd=[],_0x21de0b=[];for(const _0x298e4f of _0x5105b6)switch(_0x298e4f['type']){case'text':if(_0x298e4f['add']=_0x298e4f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x298e4f['remove']=_0x298e4f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x298e4f['add']&&''!=_0x298e4f['remove']){_0x29bc84['push']({'type':'replace','content':o(_0x2df1a6,'REPLACE_TEXT',['\x22'+_0x298e4f['remove']+'\x22','\x22'+_0x298e4f['add']+'\x22'])});continue;}if(null!=_0x298e4f['add']['match'](/^ +$/)){_0x29bc84['push']({'type':'insertion','content':o(_0x2df1a6,'*Insert:*\x20%0',o(_0x2df1a6,'ELEMENT_SPACE',_0x298e4f['add']['length']))});continue;}if(null!=_0x298e4f['remove']['match'](/^ +$/)){_0x29bc84['push']({'type':'deletion','content':o(_0x2df1a6,'*Remove:*\x20%0',o(_0x2df1a6,'ELEMENT_SPACE',_0x298e4f['remove']['length']))});continue;}if(''!=_0x298e4f['add']){_0x29bc84['push']({'type':'insertion','content':o(_0x2df1a6,'*Insert:*\x20%0','\x22'+_0x298e4f['add']+'\x22')});continue;}_0x29bc84['push']({'type':'deletion','content':o(_0x2df1a6,'*Remove:*\x20%0','\x22'+_0x298e4f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x29bc84['push']({'type':'insertion','content':o(_0x2df1a6,'*Insert:*\x20%0',this['getItemLabel'](_0x298e4f['element'],_0x298e4f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x29bc84['push']({'type':'deletion','content':o(_0x2df1a6,'*Remove:*\x20%0',this['getItemLabel'](_0x298e4f['element'],_0x298e4f['quantity']))});continue;case'addContainer':_0x29bc84['push']({'type':'insertion','content':o(_0x2df1a6,'*Split:*\x20%0',this['getItemLabel'](_0x298e4f['element'],_0x298e4f['quantity']))});continue;case'removeContainer':_0x29bc84['push']({'type':'deletion','content':o(_0x2df1a6,'*Merge:*\x20%0',this['getItemLabel'](_0x298e4f['element'],_0x298e4f['quantity']))});continue;case'addFormat':_0x4c78dd['push'](_0x298e4f['key']);continue;case'removeFormat':_0x21de0b['push'](_0x298e4f['key']);continue;default:_0x29bc84['push'](_0x298e4f);}if(_0x4c78dd['length']){const _0x466e82=_0x4c78dd['map'](_0x1afff2=>this['_attributeLabels']['has'](_0x1afff2)?this['_attributeLabels']['get'](_0x1afff2):_0x1afff2)['join'](',\x20');_0x29bc84['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x466e82)});}if(_0x21de0b['length']){const _0x603c15=_0x21de0b['map'](_0x536f71=>this['_attributeLabels']['has'](_0x536f71)?this['_attributeLabels']['get'](_0x536f71):_0x536f71)['join'](',\x20');_0x29bc84['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x603c15)});}return _0x29bc84;}['_handleCustomCallbackDescription'](_0x523745){for(const _0x447019 of this['_customCallbacks']){const _0x4b4954=_0x447019(_0x523745);if(_0x4b4954&&'type'in _0x4b4954)return _0x4b4954;}}['_handleAttributeSuggestionDescription'](_0x110a68,_0xad4f5){const _0xea16b4=_0xad4f5['data'],_0x18eb8d=void 0x0===_0xea16b4['newValue']?'removeFormat':'addFormat';_0x110a68['push']({'type':_0x18eb8d,'key':_0xea16b4['key']});}['_handleRenameSuggestionDescription'](_0x511e01,_0x2b1a5f){_0x511e01['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2b1a5f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5ec6d3,_0x1b2cc8,_0x91cfba){if(this['_addDescriptionItems'](_0x5ec6d3,_0x1b2cc8),_0x91cfba&&_0x91cfba['getFirstRange']()&&!_0x1b2cc8['getFirstRange']()['end']['isEqual'](_0x91cfba['getFirstRange']()['start'])){const _0x316702=_0x5ec6d3[_0x5ec6d3['length']-0x1],_0x1a2cd0='insertion'==_0x1b2cc8['type']?'add':'remove';_0x316702&&'text'==_0x316702['type']&&(_0x316702[_0x1a2cd0]+='\x0a');}}}class V extends _0x560a22{['afterInit'](){const _0x59faf9=this['editor'],_0x2fd8f5=_0x59faf9['plugins']['get']('TrackChangesEditing');_0x59faf9['commands']['get']('showAIAssistant')&&_0x2fd8f5['enableCommand']('showAIAssistant');}}class U extends _0x560a22{['afterInit'](){const _0xe83e97=this['editor'],_0x4f44a1=_0xe83e97['locale'];if(!_0xe83e97['plugins']['has']('AlignmentEditing'))return;const _0x55b014=_0xe83e97['plugins']['get']('TrackChangesEditing');_0x55b014['enableDefaultAttributesIntegration']('alignment'),_0x55b014['registerBlockAttribute']('alignment'),_0x55b014['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4f44a1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18ba67=this['editor'],_0x27152d=_0x18ba67['locale'];_0x18ba67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c37b4=>{if('formatBlock'!=_0x5c37b4['type'])return;const {data:_0x103b80}=_0x5c37b4;if(_0x103b80&&'alignment'==_0x103b80['commandName']){const _0x322351=_0x103b80['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x27152d,'*Format:*\x20%0',function(_0x45caf7){switch(_0x45caf7){case'left':return o(_0x27152d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x27152d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x27152d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x27152d,'FORMAT_JUSTIFY_TEXT');}}(_0x322351))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x560a22{['afterInit'](){const _0x1f527e=this['editor'],_0x416ad1=_0x1f527e['plugins']['get']('TrackChangesEditing'),_0x41501b=_0x1f527e['locale'];for(const _0x174ae5 of ti){if(!_0x1f527e['plugins']['has'](_0x174ae5))continue;const _0x1d9f51=_0x174ae5['slice'](0x0,-0x7)['toLowerCase'](),_0x729bb3='FORMAT_'+_0x1d9f51['toUpperCase']();_0x416ad1['enableDefaultAttributesIntegration'](_0x1d9f51),_0x416ad1['registerInlineAttribute'](_0x1d9f51),_0x416ad1['descriptionFactory']['registerAttributeLabel'](_0x1d9f51,o(_0x41501b,_0x729bb3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c486b=this['editor'],_0x3484d3=_0x2c486b['locale'],_0x5c385b=_0x2c486b['plugins']['get']('TrackChangesEditing');function _0x5ef643(_0x3565f3,_0x5e9dc){_0x5c385b['descriptionFactory']['registerDescriptionCallback'](_0x115494=>{if('formatInline'!=_0x115494['type'])return;const {data:_0x57d87c}=_0x115494;return _0x57d87c&&_0x57d87c['commandName']===_0x3565f3?_0x57d87c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3484d3,'*Format:*\x20%0',_0x5e9dc)}:{'type':'format','content':o(_0x3484d3,'*Remove\x20format:*\x20%0',_0x5e9dc)}:void 0x0;});}_0x5ef643('bold',o(_0x3484d3,'FORMAT_BOLD')),_0x5ef643('italic',o(_0x3484d3,'FORMAT_ITALIC')),_0x5ef643('underline',o(_0x3484d3,'FORMAT_UNDERLINE')),_0x5ef643('code',o(_0x3484d3,'FORMAT_CODE')),_0x5ef643('strikethrough',o(_0x3484d3,'FORMAT_STRIKETHROUGH')),_0x5ef643('subscript',o(_0x3484d3,'FORMAT_SUBSCRIPT')),_0x5ef643('superscript',o(_0x3484d3,'FORMAT_SUPERSCRIPT'));}}class F extends _0x560a22{['afterInit'](){const _0x5cb781=this['editor'],_0x240b7e=_0x5cb781['locale'];if(!_0x5cb781['plugins']['has']('BlockQuoteEditing'))return;const _0x46f5b9=_0x5cb781['plugins']['get']('TrackChangesEditing'),_0x13a4e7=this['editor']['commands']['get']('blockQuote');_0x46f5b9['enableCommand']('blockQuote',(_0x353090,_0x4cfe31={})=>{const _0x42dacc=this['editor']['model']['document']['selection'],_0x1f1df0=_0x4cfe31&&void 0x0!==_0x4cfe31['forceValue']?_0x4cfe31['forceValue']:!_0x13a4e7['value'];let _0xfa53d=[];if(_0x1f1df0){const _0x4402ed=Array['from'](_0x42dacc['getSelectedBlocks']())['filter'](_0x3b1745=>oo(_0x3b1745)||function(_0x18e93a,_0x5e1625){const _0x1ae514=_0x5e1625['checkChild'](_0x18e93a['parent'],'blockQuote'),_0x13798d=_0x5e1625['checkChild'](['$root','blockQuote'],_0x18e93a);return _0x1ae514&&_0x13798d;}(_0x3b1745,this['editor']['model']['schema']));_0xfa53d=to(_0x4402ed,_0x5cb781['model']);}else{const _0x380c14=Array['from'](_0x42dacc['getSelectedBlocks']())['filter'](_0x356422=>oo(_0x356422));_0xfa53d=to(_0x380c14,_0x5cb781['model']);}_0x5cb781['model']['change'](()=>{for(const _0x28342e of _0xfa53d)_0x46f5b9['markBlockFormat'](_0x28342e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f1df0}]});});}),_0x46f5b9['descriptionFactory']['registerDescriptionCallback'](_0x33527b=>{const {data:_0x3bb7de}=_0x33527b;if(_0x3bb7de&&'blockQuote'==_0x3bb7de['commandName']){const _0x4bd329=o(_0x240b7e,'ELEMENT_BLOCK_QUOTE');return _0x3bb7de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x240b7e,'*Set\x20format:*\x20%0',_0x4bd329)}:{'type':'format','content':o(_0x240b7e,'*Remove\x20format:*\x20%0',_0x4bd329)};}});}}function oo(_0x2ede2c){return'blockQuote'==_0x2ede2c['parent']['name'];}class L extends _0x560a22{['afterInit'](){const _0x482062=this['editor'];_0x482062['plugins']['has']('CaseChange')&&(_0x482062['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x482062['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x482062['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x560a22{['afterInit'](){const _0x3fcdfb=this['editor'];_0x3fcdfb['commands']['get']('ckbox')&&_0x3fcdfb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x560a22{['afterInit'](){const _0x273aa7=this['editor'];if(!_0x273aa7['plugins']['has']('CodeBlock'))return;const _0x34add7=_0x273aa7['plugins']['get']('TrackChangesEditing'),_0x38fdc3=_0x273aa7['locale'],_0x15ad21=_0x273aa7['config']['get']('codeBlock')['languages'],_0x4d8664=_0x273aa7['commands']['get']('codeBlock');_0x34add7['enableCommand']('indentCodeBlock'),_0x34add7['enableCommand']('outdentCodeBlock'),_0x34add7['enableCommand']('codeBlock',(_0xfa9abd,_0x46c5f0={})=>{const _0x2727f0=_0x273aa7['model'],_0xb1be8f=_0x273aa7['model']['document']['selection'],_0x3e593d=_0x46c5f0&&void 0x0!==_0x46c5f0['forceValue']?_0x46c5f0['forceValue']:!_0x4d8664['value'];let _0x488066;_0x46c5f0['language']||(_0x46c5f0['language']=_0x15ad21[0x0]['language']),_0x488066=_0x3e593d?Array['from'](_0xb1be8f['getSelectedBlocks']())['filter'](_0x34e6d8=>eo(_0x34e6d8)||function(_0x553254,_0x316f39){if(_0x553254['is']('rootElement')||_0x316f39['isLimit'](_0x553254))return!0x1;return _0x316f39['checkChild'](_0x553254['parent'],'codeBlock');}(_0x34e6d8,_0x2727f0['schema'])):Array['from'](_0xb1be8f['getSelectedBlocks']())['filter'](_0x47defa=>eo(_0x47defa));const _0x394674=to(_0x488066,_0x2727f0);_0x2727f0['change'](()=>{for(const _0x1fd2ee of _0x394674)_0x34add7['markBlockFormat'](_0x1fd2ee,{'commandName':'codeBlock','commandParams':[{..._0x46c5f0,'forceValue':_0x3e593d}],'formatGroupId':'blockName'});});}),(_0x34add7['descriptionFactory']['registerElementLabel']('codeBlock',_0x2f658a=>o(_0x38fdc3,'ELEMENT_CODE_BLOCK',_0x2f658a)),_0x34add7['descriptionFactory']['registerDescriptionCallback'](_0x5a25de=>{if('formatBlock'!=_0x5a25de['type'])return;const _0x2ed79d=_0x38fdc3['t'],{data:_0x306e04}=_0x5a25de;if(!_0x306e04||'codeBlock'!=_0x306e04['commandName'])return;const _0x190b9c=_0x306e04['commandParams'][0x0]['language'],_0x52d642=_0x2ed79d(_0x15ad21['find'](_0x32b66b=>_0x32b66b['language']===_0x190b9c)['label'])['toLowerCase']();return _0x306e04['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38fdc3,'*Set\x20format:*\x20%0',o(_0x38fdc3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52d642+')')}:{'type':'format','content':o(_0x38fdc3,'*Remove\x20format:*\x20%0',o(_0x38fdc3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2f1042){return'codeBlock'==_0x2f1042['name'];}class q extends _0x560a22{['afterInit'](){const _0x4256ac=this['editor'];if(!_0x4256ac['plugins']['has']('CommentsEditing'))return;_0x4256ac['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5de53b,_0xc09819,_0x20d249){const _0x2c2c88=[];for(const _0x3c89f0 of _0xc09819['getItems']())_0x3c89f0['hasAttribute'](_0x5de53b)&&_0x2c2c88['push'](_0x20d249['createRangeOn'](_0x3c89f0));return _0x2c2c88;}function _e(_0x368da9,_0x218141,{showActiveMarker:_0x2c5b88=!0x0}={}){const _0x413cb4=_0x368da9['plugins']['get']('TrackChangesEditing');return(_0x2171f8,_0x468ad7,_0x34d735)=>{if(!_0x34d735['consumable']['test'](_0x468ad7['markerRange'],_0x2171f8['name']))return;const _0x3fcebd=_0x468ad7['markerRange']['getWalker'](),_0x377a67=_0x468ad7['markerRange']['start'],_0x19dd4c=_0x368da9['model']['schema'];let _0x2830a7=null,_0x3676df=null,_0x593f42=!0x1,_0x499448=!0x1;for(const _0x323def of _0x3fcebd){const _0x5ed619=_0x323def['item'];_0x593f42=_0x593f42||_0x19dd4c['isContent'](_0x5ed619);const _0x187244=_0x34d735['mapper']['toViewElement'](_0x5ed619);if(_0x187244&&_0x187244['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x323def['type']&&(_0x19dd4c['isBlock'](_0x5ed619)&&!_0x19dd4c['isLimit'](_0x5ed619)&&(_0x5ed619['nextSibling']||_0x377a67['isAtEnd']?_0x2830a7&&_0x2830a7['parent']==_0x5ed619||(_0x2830a7=_0x5ed619,_0x337e20(_0x323def['previousPosition']),_0x499448=!0x0):_0x3676df=_0x3676df||_0x323def['previousPosition']));}function _0x337e20(_0x367292){const {authorId:_0x524d6b}=_0x413cb4['_splitMarkerName'](_0x468ad7['markerName']),_0x4a932e=_0x34d735['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x218141,'data-author-id':_0x524d6b}),_0x3f28fc=_0x34d735['mapper']['toViewPosition'](_0x367292);_0x2c5b88&&_0x413cb4['activeMarkers']['includes'](_0x468ad7['markerName'])&&_0x34d735['writer']['addClass']('ck-suggestion-marker--active',_0x4a932e),_0x34d735['writer']['insert'](_0x3f28fc,_0x4a932e),_0x34d735['mapper']['bindElementToMarker'](_0x4a932e,_0x468ad7['markerName']);}_0x593f42||_0x499448||!_0x3676df||_0x337e20(_0x3676df);};}class z extends _0x560a22{static get['requires'](){return[_0x599bf2];}['init'](){const _0x5463d3=this['editor'],_0x409efe=_0x5463d3['plugins']['get']('TrackChangesEditing');_0x409efe['enableCommand']('delete');const _0x5f1731=_0x5463d3['commands']['get']('deleteForward');_0x409efe['enableCommand']('deleteForward',(_0x364fcd,_0x2b2e3e={})=>{const _0x441612=_0x5463d3['model']['createSelection'](_0x5463d3['model']['document']['selection']);_0x441612['isCollapsed']&&_0x5463d3['model']['modifySelection'](_0x441612,{'direction':'forward','unit':_0x2b2e3e['unit']});const _0x2baa23=_0x441612['getFirstRange'](),_0x11b104=_0x4f29af['fromRange'](_0x2baa23);let _0x117e40;_0x364fcd(_0x2b2e3e),_0x117e40='$graveyard'==_0x11b104['root']['rootName']?_0x5463d3['model']['createRange'](_0x2baa23['start']):_0x5463d3['model']['createRange'](_0x11b104['start'],_0x11b104['end']),_0x11b104['detach'](),_0x5463d3['model']['enqueueChange'](_0x5f1731['buffer']['batch'],_0x197f1c=>{_0x5f1731['buffer']['lock'](),_0x197f1c['setSelection'](_0x197f1c['createRange'](_0x117e40['end'])),_0x5f1731['buffer']['unlock']();});}),_0x5463d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5463d3,'merge'),{'priority':'high'}),_0x5463d3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x46fb2b,_0x48b875,_0x352168)=>{_0x352168['options']['showSuggestionHighlights']&&_e(_0x5463d3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x46fb2b,_0x48b875,_0x352168);},{'priority':'high'}),_0x5463d3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x29a185,_0x1effa1,_0x402441)=>{const _0xad9b82=_0x402441['mapper']['markerNameToElements'](_0x1effa1['markerName']);if(_0xad9b82){for(const _0x10fe6f of _0xad9b82)_0x10fe6f['is']('uiElement')&&(_0x402441['mapper']['unbindElementFromMarkerName'](_0x10fe6f,_0x1effa1['markerName']),_0x402441['writer']['remove'](_0x10fe6f));}},{'priority':'high'});}}class K extends _0x560a22{['afterInit'](){const _0xab5008=this['editor'];if(!_0xab5008['plugins']['has']('ListEditing'))return;const _0x21b111=_0xab5008['locale'],_0x48a764=_0xab5008['plugins']['get']('TrackChangesEditing'),_0x1d001a=_0xab5008['plugins']['has']('TodoListEditing'),_0x2be6ab=!!_0xab5008['config']['get']('list.multiBlock');function _0x589fba(_0x465bc5){return{'type':'format','content':''+o(_0x21b111,'*Set\x20format:*\x20%0',_0x465bc5)};}function _0x4ec51d(_0x49baf7){return{'type':'format','content':''+o(_0x21b111,'*Remove\x20format:*\x20%0',_0x49baf7)};}_0x48a764['enableDefaultAttributesIntegration']('numberedList'),_0x48a764['enableDefaultAttributesIntegration']('bulletedList'),_0x48a764['enableDefaultAttributesIntegration']('customNumberedList'),_0x48a764['enableDefaultAttributesIntegration']('customBulletedList'),_0x48a764['enableDefaultAttributesIntegration']('indentList'),_0x48a764['enableDefaultAttributesIntegration']('outdentList'),_0x48a764['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x48a764['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x48a764['registerBlockAttribute']('listItemId'),_0x48a764['registerBlockAttribute']('listType'),_0x48a764['registerBlockAttribute']('listIndent'),_0x2be6ab&&(_0x48a764['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x48a764['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1d001a&&(_0x48a764['enableDefaultAttributesIntegration']('todoList'),_0x48a764['enableDefaultAttributesIntegration']('checkTodoList'),_0x48a764['registerBlockAttribute']('todoListChecked'),_0x48a764['descriptionFactory']['registerDescriptionCallback'](_0x25062b=>{const {data:_0x44b8f2}=_0x25062b;if(_0x44b8f2&&'todoListChecked'==_0x44b8f2['key'])return{'type':'format','content':_0x44b8f2['newValue']?o(_0x21b111,'*Check\x20item*'):o(_0x21b111,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x159f65=>{if(_0x159f65['batch']['isUndo'])return!0x1;let _0xe4a2f3=!0x1;const _0x2990a9=_0x48a764['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eda0a=>'todoListChecked'===_0x48a764['_getAttributeKey'](_0x1eda0a));for(const _0x55a6b9 of _0x2990a9){'todo'!=_0x55a6b9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x48a764['_findSuggestions'](_0x55a6b9['getFirstRange'](),'attribute')['find'](_0x134770=>'listType'===_0x48a764['_getAttributeKey'](_0x134770['suggestion']))||(_0x159f65['removeMarker'](_0x55a6b9['getFirstMarker']()),_0xe4a2f3=!0x0));}return _0xe4a2f3;})),_0x48a764['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x21b111,'FORMAT_INDENT'));const _0x560cb1={'type':'format','content':''};_0x48a764['descriptionFactory']['registerDescriptionCallback'](_0x2108ee=>{const {data:_0x4911b0}=_0x2108ee;if(!_0x4911b0||'listType'!=_0x4911b0['key'])return;let _0x47ffe2=_0x2108ee['head'];for(;_0x47ffe2;){if(_0x47ffe2['data']&&(('listStyle'==_0x47ffe2['data']['key']||'listMarkerStyle'==_0x47ffe2['data']['key'])&&(_0x47ffe2['data']['newValue']&&'default'!=_0x47ffe2['data']['newValue']||'default'!=_0x47ffe2['data']['oldValue']&&!_0x4911b0['newValue'])||!_0x2be6ab&&_0x47ffe2['data']['key']==m))return _0x560cb1;_0x47ffe2=_0x47ffe2['next'];}if(null==_0x4911b0['newValue'])switch(_0x4911b0['oldValue']){case'bulleted':return _0x4ec51d(o(_0x21b111,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ec51d(o(_0x21b111,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ec51d(o(_0x21b111,'ELEMENT_TODO_LIST'));}switch(_0x4911b0['newValue']){case'bulleted':return _0x589fba(o(_0x21b111,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x589fba(o(_0x21b111,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x589fba(o(_0x21b111,'ELEMENT_TODO_LIST'));}}),_0x48a764['descriptionFactory']['registerDescriptionCallback'](_0x59485c=>{const {data:_0x232ad2}=_0x59485c;if(_0x232ad2&&'listIndent'==_0x232ad2['key'])return null==_0x232ad2['newValue']||null==_0x232ad2['oldValue']&&0x0==_0x232ad2['newValue']?_0x560cb1:void 0x0;}),_0x48a764['descriptionFactory']['registerDescriptionCallback'](_0xdb5252=>{if('attribute'!=_0xdb5252['type'])return;const {data:_0x5a0961}=_0xdb5252;if(!_0x5a0961||'listItemId'!=_0x5a0961['key'])return;const _0x45295c=Ee(_0xdb5252);return'newValue'==_0x45295c?{'type':'format','content':o(_0x21b111,'*Merge:*\x20list\x20item')}:'oldValue'==_0x45295c?{'type':'format','content':o(_0x21b111,'*Split:*\x20list\x20item')}:_0x560cb1;}),_0xab5008['model']['document']['registerPostFixer'](_0x230559=>this['listItemIdFixer'](_0x230559)),_0xab5008['model']['document']['registerPostFixer'](_0x19d65e=>this['noTrackChangesFixer'](_0x19d65e)),_0xab5008['model']['document']['on']('change:data',(_0x1d2ee7,_0x433ac3)=>{if(_0x433ac3['isUndo']||!_0x433ac3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x148b2b){if(_0x148b2b['batch']['isUndo']||!_0x148b2b['batch']['isLocal'])return!0x1;let _0x47b775=!0x1;const _0x58519c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43a9dd=>_0x43a9dd['data']&&'listItemId'==_0x43a9dd['data']['key'])['filter'](_0xea3532=>_0xea3532['data']['newValue']&&_0xea3532['data']['oldValue']);for(const _0x33703b of _0x58519c)Ee(_0x33703b)||(_0x148b2b['removeMarker'](_0x33703b['getFirstMarker']()),_0x47b775=!0x0);return _0x47b775;}['noTrackChangesFixer'](_0x2b353a){if(_0x2b353a['batch']['isUndo']||!_0x2b353a['batch']['isLocal'])return!0x1;const _0x4253f2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4253f2['trackChangesCommand']['value'])return!0x1;let _0x515012=!0x1;const _0xe27b73=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xd07c6c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2875f8=>'attribute'==_0x2875f8['type'])['filter'](_0x2c7c40=>_0xe27b73['includes'](_0x2c7c40['attributeKey']));if(0x0==_0xd07c6c['length'])return _0x515012;for(const _0x4142c6 of _0xd07c6c){const _0x36807c=_0x4253f2['_findSuggestions'](_0x4142c6['range'],'attribute')['filter'](_0xbdc954=>!_0xbdc954['meta']['isNextTo'])['map'](_0x559ad5=>_0x559ad5['suggestion'])['filter'](_0x1d69e9=>{const _0x28c461=_0x4253f2['_getAttributeKey'](_0x1d69e9);return _0xe27b73['includes'](_0x28c461);});if(_0x36807c['length']){for(const _0x24b03b of _0x36807c)_0x2b353a['removeMarker'](_0x24b03b['getFirstMarker']());_0x515012=!0x0;}}return _0x515012;}['assureChains'](){const _0x4ccf48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fab06=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1f5bf0;const _0x4816d5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x578fcd=>{if(_0x578fcd['data']['oldRange']||!_0x578fcd['data']['newRange'])return null;if(!_0x578fcd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x18bbce}=_0x4ccf48['_splitMarkerName'](_0x578fcd['name']);if(!_0x4ccf48['hasSuggestion'](_0x18bbce))return null;const _0x5bc3e1=_0x4ccf48['getSuggestion'](_0x18bbce);return _0x1fab06['includes'](_0x5bc3e1['data']['key']);})['map'](_0xc3530e=>{const {id:_0x5a7d45}=_0x4ccf48['_splitMarkerName'](_0xc3530e['name']),_0x3dffe7=_0x4ccf48['getSuggestion'](_0x5a7d45);return _0x1f5bf0=_0x3dffe7['attributes']['groupId'],_0x3dffe7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4816d5['size'])return;const _0x479769=_0x4ccf48['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x560d2d=>'attribute'==_0x560d2d['type']&&_0x560d2d['data']&&_0x1fab06['includes'](_0x560d2d['data']['key'])&&_0x560d2d['attributes']['groupId']!=_0x1f5bf0)['map'](_0x102da2=>({'listItem':_0x102da2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x102da2['attributes']['groupId']})),_0x4ad9b7=new Set();for(const {groupId:_0x399d9d,listItem:_0x17aa01}of _0x479769)_0x4816d5['has'](_0x17aa01)&&_0x4ad9b7['add'](_0x399d9d);for(const _0x47fb60 of _0x4ccf48['getSuggestions']())_0x4ad9b7['has'](_0x47fb60['attributes']['groupId'])&&_0x47fb60['setAttribute']('groupId',_0x1f5bf0);}['_supportLegacySuggestions'](){const _0x2699df=this['editor'],_0xfe7e6f=_0x2699df['locale'],_0xbf433c=_0x2699df['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xbf433c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xe8b514,_0x2c49da){const _0x287273=[];for(let _0x2b45b9 of _0xe8b514)_0x2b45b9['start']['nodeAfter']===_0x2b45b9['end']['parent']&&(_0x2b45b9=_0x2699df['model']['createRange'](_0x2699df['model']['createPositionAt'](_0x2b45b9['start']['nodeAfter'],0x0))),_0x287273['push'](_0x2b45b9);_0x2699df['model']['change'](_0x55e205=>{const _0x4905cf=_0x2699df['model']['document']['selection'],_0x3ec4cc=Array['from'](_0x4905cf['getRanges']())['map'](_0x331dc1=>_0x4f29af['fromRange'](_0x331dc1));_0x55e205['setSelection'](_0x287273),_0x2699df['commands']['get'](_0x2c49da['commandName'])['refresh'](),_0x2c49da['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2699df['execute'](_0x2c49da['commandName'],..._0x2c49da['commandParams']),_0x55e205['setSelection'](_0x3ec4cc);for(const _0x4c87fb of _0x3ec4cc)_0x4c87fb['detach']();});}),_0xbf433c['descriptionFactory']['registerElementLabel'](function(_0x29997e){const _0xf5cc4e=!_0x2699df['model']['schema']['isObject'](_0x29997e),_0x18f531=_0x29997e['previousSibling'],_0x4294f4=_0x29997e['nextSibling'],_0x52ceec=_0x29997e['getAttribute']('listItemId'),_0x35cfe2=!_0x18f531||_0x18f531['getAttribute']('listItemId')!==_0x52ceec,_0x1bb198=!_0x4294f4||_0x4294f4['getAttribute']('listItemId')!==_0x52ceec;return _0xf5cc4e&&Boolean(_0x52ceec)&&_0x35cfe2&&_0x1bb198;},_0x31f434=>o(_0xfe7e6f,'ELEMENT_LIST_ITEM',_0x31f434));}['_registerLegacyDescription'](){const _0x32d2da=this['editor'],_0x3a246d=_0x32d2da['locale'];function _0x350731(_0x2f35f2){const _0x33dc3e=_0x32d2da['commands']['get']('bulletedList')['value'],_0x7a5864=_0x32d2da['commands']['get']('numberedList')['value'];return'numberedList'===_0x2f35f2?_0x33dc3e:_0x7a5864;}_0x32d2da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xbfed64){if('formatBlock'!=_0xbfed64['type'])return;const {data:_0x163b2e}=_0xbfed64;if(!_0x163b2e)return;let _0x557f70,_0xba5054,_0x247960,_0x1f8622;switch(_0x163b2e['commandName']){case'bulletedList':_0x247960=_0x163b2e['commandParams'][0x0]['forceValue'],_0x1f8622=_0x350731(_0x163b2e['commandName']),_0x557f70=_0x247960?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f8622&&_0x32d2da['config']['get']('list.multiBlock')||(_0x557f70='*Change\x20to:*\x20%0'),_0xba5054={'type':'format','content':o(_0x3a246d,_0x557f70,o(_0x3a246d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x247960=_0x163b2e['commandParams'][0x0]['forceValue'],_0x1f8622=_0x350731(_0x163b2e['commandName']),_0x557f70=_0x247960?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f8622&&_0x32d2da['config']['get']('list.multiBlock')||(_0x557f70='*Change\x20to:*\x20%0'),_0xba5054={'type':'format','content':o(_0x3a246d,_0x557f70,o(_0x3a246d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x557f70='*Indent:*\x20%0',_0xba5054={'type':'format','content':o(_0x3a246d,_0x557f70,o(_0x3a246d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x557f70=function(_0x42d8c5){const _0x540b1d=_0x42d8c5['getFirstRange']();let _0x15217b=_0x540b1d['start']['nodeAfter'];for(;_0x15217b&&_0x540b1d['containsItem'](_0x15217b);){if(_0x15217b['getAttribute']('listIndent')>0x0)return!0x1;_0x15217b=_0x15217b['nextSibling'];}return!0x0;}(_0xbfed64)?o(_0x3a246d,'*Format:*\x20remove\x20from\x20%0',o(_0x3a246d,function(_0x253e22){return'ELEMENT_'+_0x253e22['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xbfed64))):o(_0x3a246d,'*Outdent:*\x20%0',o(_0x3a246d,'ELEMENT_LIST_ITEM')),_0xba5054={'type':'format','content':_0x557f70};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x163b2e['multipleBlocks']&&(_0x557f70='*Merge:*\x20%0',_0xba5054={'type':'deletion','content':o(_0x3a246d,_0x557f70,o(_0x3a246d,'ELEMENT_LIST_ITEM'))});}return _0xba5054;});}}function Ee(_0x3e1b49){let _0xea56e5=_0x3e1b49['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xea56e5;){const _0x43560b=_0xea56e5['getAttribute']('listItemId');if(!_0x43560b)return!0x1;if(_0x43560b==_0x3e1b49['data']['newValue'])return'newValue';if(_0x43560b==_0x3e1b49['data']['oldValue'])return'oldValue';_0xea56e5=_0xea56e5['previousSibling'];}return!0x1;}class pe extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4af79d=this['editor']['config']['get']('list.properties'),_0x17f977=this['editor']['plugins']['get']('TrackChangesEditing');_0x4af79d['styles']&&(_0x17f977['enableDefaultAttributesIntegration']('listStyle'),_0x17f977['registerBlockAttribute']('listStyle')),_0x4af79d['reversed']&&(_0x17f977['enableDefaultAttributesIntegration']('listReversed'),_0x17f977['registerBlockAttribute']('listReversed')),_0x4af79d['startIndex']&&(_0x17f977['enableDefaultAttributesIntegration']('listStart'),_0x17f977['registerBlockAttribute']('listStart'));const _0x549025={'type':'format','content':''};_0x17f977['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2d8992=this['editor']['locale'];_0x17f977['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2d8992,'FORMAT_LIST_REVERSED')),_0x17f977['descriptionFactory']['registerDescriptionCallback'](_0x51850f=>{const {data:_0x3a7d81}=_0x51850f;if(_0x3a7d81&&'listReversed'==_0x3a7d81['key'])return null==_0x3a7d81['newValue']||0x0==_0x3a7d81['newValue']&&null==_0x3a7d81['oldValue']?_0x549025:void 0x0;}),_0x17f977['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2d8992,'FORMAT_LIST_START')),_0x17f977['descriptionFactory']['registerDescriptionCallback'](_0x2e5eb5=>{const {data:_0x164364}=_0x2e5eb5;if(_0x164364&&'listStart'==_0x164364['key'])return null==_0x164364['newValue']||0x1==_0x164364['newValue']&&null==_0x164364['oldValue']?_0x549025:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x420f6f=>{if(_0x420f6f['batch']['isUndo'])return!0x1;let _0x4455c3=!0x1;const _0x4051b2=_0x17f977['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eae2a=>{const _0x278c81=_0x17f977['_getAttributeKey'](_0x2eae2a);return'listStart'==_0x278c81||'listReversed'==_0x278c81;});for(const _0x218e87 of _0x4051b2){const _0x409aa7=_0x218e87['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x409aa7||'customNumbered'==_0x409aa7)continue;_0x17f977['_findSuggestions'](_0x218e87['getFirstRange'](),'attribute')['find'](_0x135f9a=>'listType'==_0x17f977['_getAttributeKey'](_0x135f9a['suggestion']))||(_0x420f6f['removeMarker'](_0x218e87['getFirstMarker']()),_0x4455c3=!0x0);}return _0x4455c3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5bc11c){const _0x21d09d=this['editor']['locale'],{data:_0x23b281}=_0x5bc11c,_0x1519c3={'type':'format','content':''};if(!_0x23b281||'listStyle'!=_0x23b281['key'])return;if(!_0x23b281['oldValue'])return'default'==_0x23b281['newValue']?_0x1519c3:{'type':'format','content':''+o(_0x21d09d,'*Set\x20format:*\x20%0',o(_0x21d09d,this['_getTranslationKeyForListStyle'](_0x23b281['newValue'])))};if(!_0x23b281['newValue']){if('default'==_0x23b281['oldValue'])return _0x1519c3;let _0x3e307c=_0x5bc11c['head'];for(;_0x3e307c;){if(_0x3e307c['data']&&'listType'==_0x3e307c['data']['key']&&_0x3e307c['data']['newValue'])return _0x1519c3;_0x3e307c=_0x3e307c['next'];}return{'type':'format','content':''+o(_0x21d09d,'*Remove\x20format:*\x20%0',o(_0x21d09d,this['_getTranslationKeyForListStyle'](_0x23b281['oldValue'])))};}if('default'!=_0x23b281['newValue'])return{'type':'format','content':''+o(_0x21d09d,'*Set\x20format:*\x20%0',o(_0x21d09d,this['_getTranslationKeyForListStyle'](_0x23b281['newValue'])))};let _0x1b808e=_0x5bc11c['head'];for(;_0x1b808e;){if(_0x1b808e['data']&&'listType'==_0x1b808e['data']['key']&&_0x1b808e['data']['newValue']&&_0x1b808e['data']['oldValue'])return _0x1519c3;_0x1b808e=_0x1b808e['next'];}return{'type':'format','content':o(_0x21d09d,'*Set\x20format:*\x20%0',o(_0x21d09d,'ELEMENT_'+_0x5bc11c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x352c9a=this['editor'],_0x2d7dfb=_0x352c9a['locale'];_0x352c9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eca83=>{if('formatBlock'!=_0x2eca83['type'])return;const {data:_0x5bc397}=_0x2eca83;if(!_0x5bc397)return;let _0x35a887,_0x3479e4;switch(_0x5bc397['commandName']){case'listStyle':_0x35a887='*Change\x20to:*\x20%0',_0x3479e4={'type':'format','content':o(_0x2d7dfb,_0x35a887,o(_0x2d7dfb,this['_getTranslationKeyForListStyle'](_0x5bc397['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35a887=_0x5bc397['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3479e4={'type':'format','content':o(_0x2d7dfb,_0x35a887)};break;case'listStart':_0x35a887='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3479e4={'type':'format','content':o(_0x2d7dfb,_0x35a887,_0x5bc397['commandParams'][0x0]['startIndex'])};}return _0x3479e4;});}['_getTranslationKeyForListStyle'](_0x187abe){return'ELEMENT_'+function(_0x5b9ce5){if(ye['includes'](_0x5b9ce5))return'bulleted';if(Se['includes'](_0x5b9ce5))return'numbered';return null;}(_0x187abe)['toUpperCase']()+'_LIST_'+_0x187abe['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x560a22{static get['requires'](){return[_0xde2d51];}['init'](){const _0x1fef0b=this['editor'],_0x36c3cc=_0x1fef0b['plugins']['get']('TrackChangesEditing'),_0x4fd8d6=_0x1fef0b['commands']['get']('enter');_0x36c3cc['enableCommand']('enter',()=>{_0x1fef0b['model']['change'](_0x1f8102=>{const _0x3d835e=_0x1fef0b['model']['document']['selection'],_0x4c915e=_0x3d835e['getFirstPosition'](),_0x4558ec=_0x4f29af['fromRange'](_0x3d835e['getFirstRange']());if(_0x4fd8d6['enterBlock'](_0x1f8102)){const _0xeb5d65=_0x1fef0b['model']['createPositionAt'](_0x4c915e['parent']['nextSibling'],0x0),_0x16da49=_0x1f8102['createRange'](_0x4c915e,_0xeb5d65);_0x36c3cc['markInsertion'](_0x16da49);}else _0x1f8102['setSelection'](_0x1f8102['createRange'](_0x4558ec['end']));_0x4558ec['detach'](),_0x4fd8d6['fire']('afterExecute',{'writer':_0x1f8102});});}),_0x1fef0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1fef0b,'split'),{'priority':'high'}),_0x1fef0b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5ec1e4,_0x846c34,_0x11bfbc)=>{const _0xa4dae4=_0x11bfbc['mapper']['markerNameToElements'](_0x846c34['markerName']);if(_0xa4dae4){for(const _0x190ad0 of _0xa4dae4)_0x190ad0['hasClass']('ck-suggestion-marker-split')&&(_0x11bfbc['mapper']['unbindElementFromMarkerName'](_0x190ad0,_0x846c34['markerName']),_0x11bfbc['writer']['remove'](_0x190ad0));}},{'priority':'high'}),_0x1fef0b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x53cb38,_0x1d5c1f,_0x184aee)=>{_0x184aee['options']['showSuggestionHighlights']&&_e(_0x1fef0b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x53cb38,_0x1d5c1f,_0x184aee);},{'priority':'high'});}}class X extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2f70bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f70bf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2f70bf['enableCommand']('findNext'),_0x2f70bf['enableCommand']('findPrevious'),_0x2f70bf['enableCommand']('replace'),_0x2f70bf['enableCommand']('replaceAll');}['handleFindCommand'](_0x160eb7,_0x54e94a,_0x51364e={}){const _0x3724c4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x160eb7(_0x37b754=>{let _0x318206=('string'==typeof _0x54e94a?_0x3724c4['findByTextCallback'](_0x54e94a,_0x51364e):_0x54e94a)(_0x37b754);Array['isArray'](_0x318206)&&(_0x318206={'results':_0x318206,'searchText':'string'==typeof _0x54e94a?_0x54e94a:''});const _0x386284=_0x318206['results']['filter'](_0x45b9ef=>!0x1===this['_isInDeletionRange'](_0x45b9ef,_0x37b754['item']));return{..._0x318206,'results':_0x386284};},_0x51364e);}['_isInDeletionRange'](_0x1d01c7,_0x568908){const _0x1c6617=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x568908,_0x1d01c7['start']),this['editor']['model']['createPositionAt'](_0x568908,_0x1d01c7['end']));for(const _0x27d1e8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1c6617['getIntersection'](_0x27d1e8['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x560a22{['afterInit'](){const _0x4e9633=this['editor']['locale'],_0x2e1d22=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x353ff1,commandName:_0x580c65}of ro)this['editor']['plugins']['has'](_0x353ff1)&&(_0x2e1d22['enableDefaultAttributesIntegration'](_0x580c65),_0x2e1d22['registerInlineAttribute'](_0x580c65));_0x2e1d22['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4e9633,'FORMAT_FONT_SIZE')),_0x2e1d22['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4e9633,'FORMAT_FONT_FAMILY')),_0x2e1d22['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4e9633,'FORMAT_FONT_COLOR')),_0x2e1d22['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4e9633,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb846dd=this['editor'],_0x328f4a=_0xb846dd['locale'];_0xb846dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x168f81=>{const _0x4abb25=_0x328f4a['t'];if('formatInline'!=_0x168f81['type'])return;const {data:_0x32b0b1}=_0x168f81;if(null!=_0x32b0b1){if('fontSize'==_0x32b0b1['commandName']){const _0x5df829=_0x32b0b1['commandParams'][0x0]['value'];if(_0x5df829){const _0x2efb5a=_0x4abb25(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xece27e=>_0xece27e['model']==_0x5df829)['title'])['toLowerCase']();return{'type':'format','content':o(_0x328f4a,'*Set\x20font\x20size:*\x20%0',_0x2efb5a)};}return{'type':'format','content':o(_0x328f4a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x32b0b1['commandName']){const _0x2e29c2=_0x32b0b1['commandParams'][0x0]['value'];return _0x2e29c2?{'type':'format','content':o(_0x328f4a,'*Set\x20font\x20family:*\x20%0',_0x2e29c2)}:{'type':'format','content':o(_0x328f4a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x32b0b1['commandName']){const _0x147403=_0x32b0b1['commandParams'][0x0]['value'];if(_0x147403){const _0x842ebc=_0x396fff(this['editor']['config']['get']('fontColor.colors'))['find'](_0x205395=>_0x205395['model']==_0x147403);let _0x461498=_0x147403,_0x269d58='';return _0x842ebc&&(_0x461498=_0x842ebc['label'],_0x269d58=_0x4abb25(_0x461498)['toLowerCase']()),{'type':'format','content':o(_0x328f4a,'*Set\x20font\x20color:*\x20%0',_0x269d58)['trim'](),'color':{'value':_0x147403,'title':_0x269d58||_0x461498}};}return{'type':'format','content':o(_0x328f4a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x32b0b1['commandName']){const _0x440364=_0x32b0b1['commandParams'][0x0]['value'];if(_0x440364){const _0x57ef49=_0x396fff(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5837ca=>_0x5837ca['model']==_0x440364);let _0x21d54b=_0x440364,_0x16b781='';return _0x57ef49&&(_0x21d54b=_0x57ef49['label'],_0x16b781=_0x4abb25(_0x21d54b)['toLowerCase']()),{'type':'format','content':o(_0x328f4a,'*Set\x20font\x20background\x20color:*\x20%0',_0x16b781)['trim'](),'color':{'value':_0x440364,'title':_0x16b781||_0x21d54b}};}return{'type':'format','content':o(_0x328f4a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x560a22{['afterInit'](){const _0x2902ac=this['editor'],_0x1457f5=_0x2902ac['plugins']['get']('TrackChangesEditing'),_0x4d64d7=_0x2902ac['commands']['get']('copyFormat'),_0x534508=_0x2902ac['commands']['get']('pasteFormat');_0x4d64d7&&_0x534508&&(_0x1457f5['enableDefaultAttributesIntegration']('pasteFormat'),_0x1457f5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x6ebd78=this['editor'],_0xed909d=_0x6ebd78['locale'];_0x6ebd78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14f72b=>{if('formatBlock'!=_0x14f72b['type']&&'formatInline'!=_0x14f72b['type'])return;const {data:_0x1acc79}=_0x14f72b;if(_0x1acc79&&'pasteFormat'===_0x1acc79['commandName']){const _0xde00b9=[],_0x1f3fc5=_0x1acc79['commandParams'][0x0];for(const [_0x56d195,_0x2c9cf8]of Object['entries'](_0x1f3fc5))_0xde00b9['push'](so(_0x6ebd78,_0x56d195,_0x2c9cf8));return _0xde00b9['length']?{'type':'format','content':o(_0xed909d,'*Set\x20format\x20to:*\x20%0',_0xde00b9['join'](',\x20'))}:{'type':'format','content':o(_0xed909d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2b930d,_0x2df990,_0x2ae807){const _0x2cf285=_0x2b930d['locale']['t'],_0x4b0460=_0x2df990['split'](/(?=[A-Z])/)['join']('\x20'),_0x298c74=_0x2cf285(_0x4b0460['charAt'](0x0)['toUpperCase']()+_0x4b0460['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2ae807)return _0x298c74;if('fontColor'===_0x2df990||'fontBackgroundColor'===_0x2df990){const _0x59cbd0=_0x396fff(_0x2b930d['config']['get']('fontColor.colors'))['find'](_0x448890=>_0x448890['model']==_0x2ae807);return _0x298c74+'\x20('+(_0x59cbd0?_0x2cf285(_0x59cbd0['label'])['toLowerCase']():_0x2ae807)+')';}if('fontSize'===_0x2df990&&isNaN(parseFloat(_0x2ae807))){const _0xc5d5b=_0x2b930d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2b930d['config']['get']('fontSize.options'))['find'](_0x1a3468=>_0x1a3468['model']==_0x2ae807);return _0x298c74+'\x20('+(_0xc5d5b?_0x2cf285(_0xc5d5b['title'])['toLowerCase']():_0x2ae807)+')';}return _0x298c74+'\x20('+_0x2ae807+')';}class tt extends _0x560a22{['_headingOptions'];['afterInit'](){const _0x442a4f=this['editor'];if(!_0x442a4f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x442a4f['config']['get']('heading.options');const _0x364603=_0x442a4f['locale'],_0x520945=_0x442a4f['plugins']['get']('TrackChangesEditing');_0x520945['enableDefaultAttributesIntegration']('heading');for(const _0x3d4179 of this['_headingOptions'])'paragraph'!=_0x3d4179['model']&&_0x520945['descriptionFactory']['registerElementLabel'](_0x3d4179['model'],_0x562e21=>{const _0x35c605=this['_getHeadingLevel'](_0x3d4179['model']);return null!==_0x35c605?_0x7f5d9d(_0x562e21,_0x35c605):_0x2da8c2(_0x562e21,_0x3d4179['title']);});function _0x7f5d9d(_0x3bd86d,_0x144601){return o(_0x364603,'ELEMENT_HEADING',[_0x3bd86d,_0x144601]);}function _0x2da8c2(_0x258dc9,_0x1162a2){return o(_0x364603,'ELEMENT_HEADING_CUSTOM',[_0x258dc9,_0x1162a2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf1065c=this['editor'],_0xb440ab=_0xf1065c['locale'];function _0x4f5692(_0x438ef7,_0x6624f3){return o(_0xb440ab,'ELEMENT_HEADING_CUSTOM',[_0x438ef7,_0x6624f3]);}_0xf1065c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42ff6d=>{if('formatBlock'!=_0x42ff6d['type'])return;const {data:_0x4db1e1}=_0x42ff6d;if(_0x4db1e1&&'heading'==_0x4db1e1['commandName']){const _0x571579=_0x4db1e1['commandParams'][0x0]['value'],_0x2d541f=this['_getHeadingLevel'](_0x571579);if(null!==_0x2d541f)return{'type':'format','content':o(_0xb440ab,'*Change\x20to:*\x20%0',(_0x49efbc=0x1,_0x582e36=_0x2d541f,o(_0xb440ab,'ELEMENT_HEADING',[_0x49efbc,_0x582e36])))};const _0x477fb3=this['_headingOptions']['find'](_0x37384e=>_0x37384e['model']===_0x571579)['title'];return{'type':'format','content':o(_0xb440ab,'*Change\x20to:*\x20%0',_0x4f5692(0x1,_0x477fb3))};}var _0x49efbc,_0x582e36;});}['_getHeadingLevel'](_0x298fcf){const _0x2ea4ef=_0x298fcf['match'](/^heading(\d+)/);if(_0x2ea4ef)return _0x2ea4ef[0x1];const _0x4ad4c0=this['_headingOptions']?.['find'](_0x8ffe43=>_0x8ffe43['model']==_0x298fcf);if(_0x4ad4c0&&_0x4ad4c0['view']){const _0x3fcedc=_0x4ad4c0['view'],_0x5b91dd=(_0x3fcedc['name']??_0x3fcedc)['match'](/^h(\d+)/);if(_0x5b91dd)return _0x5b91dd[0x1];}return null;}}class et extends _0x560a22{['afterInit'](){const _0x30ae9a=this['editor'];if(!_0x30ae9a['plugins']['has']('HighlightEditing'))return;const _0x3b4cb2=_0x30ae9a['plugins']['get']('TrackChangesEditing'),_0x230817=_0x30ae9a['locale'];_0x3b4cb2['enableDefaultAttributesIntegration']('highlight'),_0x3b4cb2['registerInlineAttribute']('highlight'),_0x3b4cb2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x230817,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37db17=this['editor'],_0x39ae36=_0x37db17['locale'];_0x37db17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314bc3=>{if('formatInline'!=_0x314bc3['type'])return;const {data:_0x403286}=_0x314bc3;if(_0x403286&&'highlight'==_0x403286['commandName']){const _0xf4a41d=_0x39ae36['t'],_0x5757b0=_0x403286['commandParams'][0x0]['value'];if(_0x5757b0){const _0x4c96f1=_0x37db17['config']['get']('highlight.options')['find'](_0x57e9b6=>_0x57e9b6['model']==_0x5757b0),_0x1ee1f9=_0xf4a41d(_0x4c96f1['title'])['toLowerCase']();return{'type':'format','content':o(_0x39ae36,'*Set\x20highlight:*\x20%0',_0x1ee1f9),'color':{'value':_0x4c96f1['color'],'title':_0x4c96f1['title']}};}return{'type':'format','content':o(_0x39ae36,'*Remove\x20highlight*',o(_0x39ae36,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x560a22{['afterInit'](){const _0x44a2c1=this['editor'];if(!_0x44a2c1['plugins']['has']('HorizontalLineEditing'))return;_0x44a2c1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4ab092=_0x44a2c1['plugins']['get']('TrackChangesEditing'),_0x554b29=_0x44a2c1['locale'];_0x4ab092['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2f5dc4=>o(_0x554b29,'ELEMENT_HORIZONTAL_LINE',_0x2f5dc4)),_0x44a2c1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3562bd,{writer:_0x563064,options:_0x3134e2})=>{if(!_0x3134e2['showSuggestionHighlights'])return null;const _0x177671=_0x563064['createContainerElement']('div'),_0x52d081=_0x563064['createEmptyElement']('hr');return _0x563064['addClass']('ck-horizontal-line',_0x177671),_0x563064['insert'](_0x563064['createPositionAt'](_0x177671,0x0),_0x52d081),_0x177671;},'converterPriority':'high'});}}class st extends _0x560a22{['afterInit'](){const _0x48d4dd=this['editor'];if(!_0x48d4dd['plugins']['has']('HtmlEmbed'))return;const _0x2dec85=_0x48d4dd['plugins']['get']('TrackChangesEditing'),_0x2dc8c9=_0x48d4dd['locale'];_0x2dec85['descriptionFactory']['registerElementLabel']('rawHtml',_0x14fdc0=>o(_0x2dc8c9,'ELEMENT_HTML_EMBED',_0x14fdc0)),_0x2dec85['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2dec85['registerBlockAttribute']('value'),_0x2dec85['descriptionFactory']['registerDescriptionCallback'](_0x249d14=>{if('attribute'!=_0x249d14['type'])return;const {data:_0x2e150d}=_0x249d14;if(_0x2e150d&&'value'==_0x2e150d['key']&&_0x249d14['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x587172=o(_0x2dc8c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2dc8c9,'*Change\x20%0\x20content*',_0x587172)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c9e44=this['editor'],_0x248e17=_0x1c9e44['locale'];_0x1c9e44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d73af=>{if('formatBlock'!=_0x2d73af['type'])return;const {data:_0x5640f7}=_0x2d73af;if(_0x5640f7&&'htmlEmbed'==_0x5640f7['commandName']){const _0x292ede=o(_0x248e17,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x248e17,'*Change\x20%0\x20content*',_0x292ede)};}});}}class nt extends _0x560a22{['afterInit'](){const _0xde5b86=this['editor'];if(!_0xde5b86['plugins']['has']('ImageEditing'))return;const _0x2d6fa9=_0xde5b86['plugins']['get']('TrackChangesEditing'),_0x199e53=_0xde5b86['plugins']['get']('ImageUtils'),_0x155bcd=_0xde5b86['locale'];_0x2d6fa9['enableCommand']('insertImage'),_0x2d6fa9['descriptionFactory']['registerElementLabel']('imageBlock',_0x18b844=>o(_0x155bcd,'ELEMENT_IMAGE',_0x18b844)),_0x2d6fa9['descriptionFactory']['registerElementLabel']('imageInline',_0x24a1e7=>o(_0x155bcd,'ELEMENT_INLINE_IMAGE',_0x24a1e7)),_0x2d6fa9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x155bcd,'ELEMENT_CAPTION')),_0xde5b86['plugins']['has']('ImageUploadEditing')&&_0x2d6fa9['enableCommand']('uploadImage'),_0xde5b86['plugins']['has']('ImageBlockEditing')&&_0xde5b86['plugins']['has']('ImageInlineEditing')&&(_0x2d6fa9['enableCommand']('imageTypeInline',(_0x5af5a3,_0x165130)=>{const _0x54a006=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']);_0xde5b86['model']['change'](()=>{_0x2d6fa9['markBlockFormat'](_0x54a006,{'commandName':'imageTypeInline','commandParams':[_0x165130]},[],'convertBlockImageToInline');});}),_0x2d6fa9['enableCommand']('imageTypeBlock',(_0x270220,_0x1f7326)=>{_0xde5b86['model']['change'](_0x552a9a=>{let _0x35a59a=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']),_0x4728f1=_0x552a9a['createRangeOn'](_0x35a59a);const _0x377cc5=_0xe9cfce['fromPosition'](_0x4728f1['start'],'toPrevious'),_0x41d907=_0xe9cfce['fromPosition'](_0x4728f1['end'],'toNext');_0x2d6fa9['forceDefaultExecution'](()=>_0x270220(_0x1f7326)),_0x35a59a=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']),_0x4728f1=_0x552a9a['createRangeOn'](_0x35a59a);const _0x447b9e=_0x552a9a['createRange'](_0x377cc5,_0x41d907);_0x377cc5['detach'](),_0x41d907['detach'](),_0x2d6fa9['markBlockFormat'](_0x35a59a,{'commandName':'imageTypeInline','commandParams':[_0x1f7326]},[],'convertInlineImageToBlock'),_0x447b9e['start']['isBefore'](_0x4728f1['start'])&&_0x2d6fa9['markInsertion'](_0x552a9a['createRange'](_0x447b9e['start'],_0x4728f1['start']),'convertInlineImageToBlock'),_0x4728f1['end']['isBefore'](_0x447b9e['end'])&&_0x2d6fa9['markInsertion'](_0x552a9a['createRange'](_0x4728f1['end'],_0x447b9e['end']),'convertInlineImageToBlock');});}),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2d6fa9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x31937e])=>{const _0xfd00b9=_0x2d6fa9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x50c696=_0x31937e['start'],_0x470223=_0x31937e['end'];const _0x3a19dc=_0xde5b86['model']['schema']['getNearestSelectionRange'](_0x50c696,'backward'),_0x5169ea=_0xde5b86['model']['schema']['getNearestSelectionRange'](_0x470223,'forward');_0x3a19dc['isCollapsed']&&(_0x50c696=_0x3a19dc['start']),_0x5169ea['isCollapsed']&&(_0x470223=_0x5169ea['end']),_0xfd00b9([_0xde5b86['model']['createRange'](_0x50c696,_0x470223)]);}),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x352bd5),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x352bd5)),_0xde5b86['plugins']['has']('ImageCaptionEditing')&&(_0x2d6fa9['enableCommand']('toggleImageCaption',(_0x41038a,_0x2dbe3c)=>{const _0x8e0b61=_0xde5b86['plugins']['get']('ImageCaptionUtils');let _0x5e5cac=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']),_0x1e96a1=_0x8e0b61['getCaptionFromImageModelElement'](_0x5e5cac);_0xde5b86['model']['change'](()=>{if(_0x1e96a1)return void _0x2d6fa9['markDeletion'](_0xde5b86['model']['createRangeOn'](_0x1e96a1));const _0x20bd1b=_0x199e53['isBlockImage'](_0x5e5cac);_0x41038a(_0x2dbe3c),_0x5e5cac=_0x199e53['getClosestSelectedImageElement'](_0xde5b86['model']['document']['selection']),_0x1e96a1=_0x8e0b61['getCaptionFromImageModelElement'](_0x5e5cac),_0x2d6fa9['markInsertion'](_0xde5b86['model']['createRangeOn'](_0x1e96a1),_0x20bd1b?null:'imageCaption');});}),_0x2d6fa9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x352bd5));const _0x9d73c6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x530737(_0x5d8a13,_0x2e75a0){const _0x1c0a6e=_0x9d73c6['findIndex'](({type:_0x2e0d05,subType:_0x4ab4f7})=>_0x5d8a13['type']==_0x2e0d05&&_0x5d8a13['subType']==_0x4ab4f7),_0x24e29a=_0x9d73c6['findIndex'](({type:_0x38781a,subType:_0x2ed6f8})=>_0x2e75a0['type']==_0x38781a&&_0x2e75a0['subType']==_0x2ed6f8);if(_0x1c0a6e<0x0||_0x24e29a<0x0)return!0x1;const _0x30490b=_0x5d8a13['getFirstRange'](),_0x39da48=_0x2e75a0['getFirstRange']();if((0x0==_0x1c0a6e||0x1==_0x1c0a6e)&&0x2==_0x24e29a&&_0x30490b['isIntersecting'](_0x39da48))return!0x0;if(0x2==_0x1c0a6e&&0x3==_0x24e29a){const _0x51f805=_0x2d6fa9['_findSuggestions'](_0x30490b,'insertion')['filter'](({suggestion:_0x39fdf0,meta:_0x3971dd})=>_0x3971dd['isOwn']&&'convertInlineImageToBlock'==_0x39fdf0['subType']);if(_0x51f805['length']>0x1&&_0x39da48['end']['isEqual'](_0x30490b['start']))return!0x0;if(0x1==_0x51f805['length']&&(_0x30490b['start']['isEqual'](_0x39da48['end'])||_0x30490b['end']['isEqual'](_0x39da48['start'])))return!0x0;}if(0x3==_0x1c0a6e&&0x3==_0x24e29a&&_0x30490b['start']['isBefore'](_0x39da48['start'])){const _0x5bde3a=_0x30490b['end']['nodeAfter'],_0x4bbc2c=_0x39da48['start']['nodeBefore'];return _0x199e53['isBlockImage'](_0x5bde3a)&&_0x5bde3a===_0x4bbc2c;}return!0x1;}function _0x352bd5(_0x231b19,_0x25ee44){return _0x530737(_0x231b19,_0x25ee44)?[_0x231b19,_0x25ee44]:_0x530737(_0x25ee44,_0x231b19)?[_0x25ee44,_0x231b19]:null;}_0xde5b86['plugins']['has']('ImageResize')&&(_0x2d6fa9['enableDefaultAttributesIntegration']('resizeImage'),_0x2d6fa9['registerBlockAttribute']('resizedWidth'),_0x2d6fa9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x155bcd,'FORMAT_IMAGE_SIZE'))),_0xde5b86['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2d6fa9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2d6fa9['registerBlockAttribute']('alt')),_0x2d6fa9['descriptionFactory']['registerDescriptionCallback'](_0x4e58f7=>{if(!!_0x9d73c6['find'](({type:_0x4dffe0,subType:_0x5a035b})=>_0x4e58f7['type']==_0x4dffe0&&_0x4e58f7['subType']==_0x5a035b))return _0x4e58f7['previous']?{}:void 0x0;}),_0x2d6fa9['descriptionFactory']['registerDescriptionCallback'](_0x49bb88=>{if('insertion'==_0x49bb88['type']||'deletion'==_0x49bb88['type']){const _0x270dc2=_0x49bb88['getContainedElement']();if(_0x270dc2&&_0x270dc2['is']('element','caption'))return{'type':'insertion'==_0x49bb88['type']?'addObject':'removeObject','element':_0x270dc2,'quantity':0x1};}}),_0x2d6fa9['descriptionFactory']['registerDescriptionCallback'](_0x18d6b3=>'formatBlock'==_0x18d6b3['type']&&'convertInlineImageToBlock'==_0x18d6b3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18d6b3['type']&&'convertBlockImageToInline'==_0x18d6b3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2d6fa9['descriptionFactory']['registerDescriptionCallback'](_0x3010db=>{if('attribute'!=_0x3010db['type'])return;const {data:_0x4b9d24}=_0x3010db;if(!_0x4b9d24||'alt'!=_0x4b9d24['key'])return;const _0x4f000f=_0x4b9d24['newValue'];return _0x4f000f?{'type':'format','content':o(_0x155bcd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f000f+'\x22')}:{'type':'format','content':o(_0x155bcd,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x759d1d=this['editor'],_0x538308=_0x759d1d['locale'];_0x759d1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x78ec88=>{if('formatBlock'!=_0x78ec88['type']&&'formatInline'!=_0x78ec88['type'])return;const {data:_0x8dd99b}=_0x78ec88;if(_0x8dd99b){if('imageTextAlternative'==_0x8dd99b['commandName']){const _0x226c53=_0x8dd99b['commandParams'][0x0]['newValue'];return _0x226c53?{'type':'format','content':o(_0x538308,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x226c53+'\x22')}:{'type':'format','content':o(_0x538308,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x8dd99b['commandName']){const _0x3d9410=_0x8dd99b['commandParams'][0x0]['width'];return _0x3d9410?{'type':'format','content':o(_0x538308,'*Set\x20image\x20width:*\x20%0',_0x3d9410)}:{'type':'format','content':o(_0x538308,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4aaba7=this['editor']['locale'],_0x5ed728=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ed728['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5ed728['registerBlockAttribute']('src'),_0x5ed728['descriptionFactory']['registerDescriptionCallback'](_0x1d46bc=>{if('attribute'!=_0x1d46bc['type'])return;const {data:_0x24c9e9}=_0x1d46bc;return _0x24c9e9&&'src'==_0x24c9e9['key']?_0x24c9e9['newValue']&&_0x24c9e9['oldValue']?{'type':'format','content':o(_0x4aaba7,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x351b6d=this['editor']['plugins']['get']('TrackChangesEditing');_0x351b6d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x351b6d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x351b6d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x351b6d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22c0f5=this['editor'],_0xc9ab81=_0x22c0f5['locale'];_0x22c0f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fb040=>{if('formatBlock'!=_0x3fb040['type']&&'formatInline'!=_0x3fb040['type'])return;const {data:_0x56c5f4}=_0x3fb040;if(!_0x56c5f4||'replaceImageSource'!=_0x56c5f4['commandName'])return;return{'type':'format','content':o(_0xc9ab81,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x560a22{['afterInit'](){const _0x559a3a=this['editor'];if(!_0x559a3a['plugins']['has']('ImageStyleEditing'))return;const _0x52f2b1=_0x559a3a['plugins']['get']('TrackChangesEditing'),_0x48cebe=_0x559a3a['plugins']['get']('ImageUtils'),_0x327641={};_0x52f2b1['enableCommand']('imageStyle',(_0x46c2d4,_0x3d491b)=>{const _0x48a3f6=_0x559a3a['plugins']['get']('Users')['me'],_0x2c1002=_0x559a3a['commands']['get']('imageStyle');let _0x442976=_0x48cebe['getClosestSelectedImageElement'](_0x559a3a['model']['document']['selection']),_0x467ffc=_0x559a3a['model']['createRangeOn'](_0x442976),_0x266b4d=_0x2c1002['value'];if(_0x266b4d==_0x3d491b['value'])return;const _0x199f30={'commandName':'imageStyle','commandParams':[_0x3d491b],'formatGroupId':_0x524896()};_0x559a3a['model']['change'](()=>{if(_0x52f2b1['getSuggestions']()['filter'](_0x2ad81a=>_0x2ad81a['isInContent']&&_0x48a3f6==_0x2ad81a['author']&&('formatBlock'==_0x2ad81a['type']||'formatInline'==_0x2ad81a['type'])&&('imageStylePreApply'==_0x2ad81a['subType']||'imageStylePostApply'==_0x2ad81a['subType'])&&_0x2ad81a['getFirstRange']()['isEqual'](_0x467ffc))['forEach'](_0x213ac0=>_0x52f2b1['discardSuggestion'](_0x213ac0['head'])),_0x442976=_0x48cebe['getClosestSelectedImageElement'](_0x559a3a['model']['document']['selection']),_0x467ffc=_0x559a3a['model']['createRangeOn'](_0x442976),_0x2c1002['refresh'](),_0x559a3a['commands']['get']('imageTypeInline')['refresh'](),_0x559a3a['commands']['get']('imageTypeBlock')['refresh'](),_0x266b4d=_0x2c1002['value'],_0x266b4d!=_0x3d491b['value'])return _0x48cebe['isInlineImage'](_0x442976)&&_0x2c1002['shouldConvertImageType'](_0x3d491b['value'],_0x442976)?(_0x46c2d4({..._0x3d491b,'setImageSizes':!0x1}),_0x442976=_0x48cebe['getClosestSelectedImageElement'](_0x559a3a['model']['document']['selection']),void _0x52f2b1['markBlockFormat'](_0x442976,{..._0x199f30,'commandReversedParams':[{'value':_0x266b4d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x48cebe['isBlockImage'](_0x442976)?_0x52f2b1['markBlockFormat'](_0x442976,_0x199f30,[],'imageStylePostApply'):_0x52f2b1['markInlineFormat'](_0x467ffc,_0x199f30,'imageStylePostApply'));});});for(const _0x27e795 of _0x559a3a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x327641[_0x27e795['name']]=_0x27e795['title']['toLowerCase']();_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x385387])=>{_0x48cebe['setImageNaturalSizeAttributes'](_0x385387['getContainedElement']());}),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x186fdc,_0x17a5d4)=>{_0x52f2b1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x186fdc,{'commandName':_0x17a5d4['commandName'],'commandParams':_0x17a5d4['commandReversedParams']});}),_0x52f2b1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x191825,_0x3b76c5){if(_0x579d06(_0x191825,_0x3b76c5))return[_0x191825,_0x3b76c5];if(_0x579d06(_0x3b76c5,_0x191825))return[_0x3b76c5,_0x191825];return null;});const _0x4626bf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x579d06(_0x2e0f79,_0x17a0f2){const _0x2b8ee8=_0x4626bf['findIndex'](({type:_0x1685dd,subType:_0x4df981})=>_0x2e0f79['type']==_0x1685dd&&_0x2e0f79['subType']==_0x4df981),_0xba513=_0x4626bf['findIndex'](({type:_0x346c0d,subType:_0x31c28a})=>_0x17a0f2['type']==_0x346c0d&&_0x17a0f2['subType']==_0x31c28a);if(_0x2b8ee8<0x0||_0xba513<0x0)return!0x1;const _0xbee78=_0x2e0f79['getFirstRange'](),_0x59bdfc=_0x17a0f2['getFirstRange']();if((0x0==_0x2b8ee8||0x1==_0x2b8ee8)&&0x2==_0xba513&&_0xbee78['isIntersecting'](_0x59bdfc))return!0x0;if(0x2==_0x2b8ee8&&0x3==_0xba513){const _0x2250a8=_0x52f2b1['_findSuggestions'](_0xbee78,'insertion')['filter'](({suggestion:_0x180953,meta:_0x18c1e0})=>_0x18c1e0['isOwn']&&'convertInlineImageToBlock'==_0x180953['subType']);if(_0x2250a8['length']>0x1&&_0x59bdfc['end']['isEqual'](_0xbee78['start']))return!0x0;if(0x1==_0x2250a8['length']&&(_0xbee78['start']['isEqual'](_0x59bdfc['end'])||_0xbee78['end']['isEqual'](_0x59bdfc['start'])))return!0x0;}if(0x3==_0x2b8ee8&&0x3==_0xba513&&_0xbee78['start']['isBefore'](_0x59bdfc['start'])){const _0x30f5b9=_0xbee78['end']['nodeAfter'],_0xdb82d8=_0x59bdfc['start']['nodeBefore'];return _0x48cebe['isBlockImage'](_0x30f5b9)&&_0x30f5b9===_0xdb82d8;}return!0x1;}_0x559a3a['model']['document']['registerPostFixer'](()=>{let _0x5d2c1d=!0x1;const _0x249389=Array['from'](_0x559a3a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x527c8b,data:_0x26f582}of _0x249389){const {group:_0x2fd528,type:_0x175e02,subType:_0x273c1e,id:_0x503531}=_0x52f2b1['_splitMarkerName'](_0x527c8b);if('suggestion'==_0x2fd528&&_0x52f2b1['hasSuggestion'](_0x503531)){if('formatBlock'==_0x175e02&&('imageStylePreApply'==_0x273c1e||'imageStylePostApply'==_0x273c1e)){const _0x162f4b=_0x52f2b1['getSuggestion'](_0x503531);if(_0x26f582['newRange']){const _0x1a4ea7=_0x162f4b['getFirstRange']()['getContainedElement']();if(_0x48cebe['isBlockImage'](_0x1a4ea7))continue;_0x52f2b1['discardSuggestion'](_0x162f4b),_0x5d2c1d=!0x0;}}if('insertion'==_0x175e02&&'imageCaption'==_0x273c1e&&!_0x26f582['newRange']){const _0x1793c3=_0x52f2b1['getSuggestion'](_0x503531);_0x1793c3['next']&&_0x1793c3['next']['isInContent']&&(_0x52f2b1['discardSuggestion'](_0x1793c3['next']),_0x5d2c1d=!0x0);}}}return _0x5d2c1d;}),this['_registerLegacyDescription'](_0x327641);}['_registerLegacyDescription'](_0x49c9b3){const _0x1f842e=this['editor'],_0x4e83b7=_0x1f842e['locale'];_0x1f842e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d8608=>{if('formatBlock'!=_0x2d8608['type']&&'formatInline'!=_0x2d8608['type'])return;const {data:_0x1014dc}=_0x2d8608;if(!_0x1014dc||'imageStyle'!=_0x1014dc['commandName'])return;const _0x186d4b=_0x1014dc['commandParams'][0x0]['value'];return _0x275dc6('side'===_0x186d4b?o(_0x4e83b7,'FORMAT_SIDE_IMAGE'):_0x49c9b3[_0x186d4b]||_0x186d4b);function _0x275dc6(_0x4ae6df){return{'type':'format','content':o(_0x4e83b7,'*Format:*\x20%0',_0x4ae6df)};}});}}class at extends _0x560a22{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4c94a4){super(_0x4c94a4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x584e5d=this['editor'],_0x30c043=_0x584e5d['commands']['get']('importWord'),_0x34611d=_0x584e5d['commands']['get']('trackChanges');_0x30c043&&(_0x30c043['on']('execute',(_0x4cc6b3,[,_0x59e139])=>{this['_trackChangesValueDuringImport']=_0x34611d['value'],_0x59e139['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x30c043,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x30c043,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34611d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x584e5d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e4ed4,_0x11adbf){const {suggestions:_0x351703}=_0x11adbf,_0x35cab7=this['editor']['commands']['get']('trackChanges'),_0x370273=_0x35cab7['value'];this['_trackChangesValueDuringImport']!==_0x370273&&(_0x35cab7['execute'](),this['_trackChangesExecuted']=!0x0),_0x351703&&_0x351703['forEach'](({id:_0x58573a,type:_0x3db0ff,author:_0x299440,created_at:_0x571b35})=>{const _0x22c01c={'id':_0x58573a,'type':_0x3db0ff,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x299440,'createdAt':_0x571b35?new Date(_0x571b35):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22c01c);});}}class ct extends _0x560a22{['afterInit'](){const _0x2ccb94=this['editor'],_0x157d71=_0x2ccb94['plugins']['get']('TrackChangesEditing');if(_0x2ccb94['plugins']['has']('IndentEditing')&&(_0x157d71['enableCommand']('indent'),_0x157d71['enableCommand']('outdent')),_0x2ccb94['plugins']['has']('IndentBlock')){for(const _0x2603c5 of['indentBlock','outdentBlock'])_0x157d71['enableDefaultAttributesIntegration'](_0x2603c5);}const _0x38fa6d=_0x2ccb94['locale'];_0x157d71['registerBlockAttribute']('blockIndent'),_0x157d71['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x38fa6d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x591f9e=this['editor'],_0x400742=_0x591f9e['locale'],_0x29d12f=_0x591f9e['plugins']['get']('TrackChangesEditing');_0x29d12f['descriptionFactory']['registerDescriptionCallback'](_0x83dbe7=>{if('formatBlock'!=_0x83dbe7['type'])return;const {data:_0x957c21}=_0x83dbe7;if(!_0x957c21)return;if('indentBlock'!=_0x957c21['commandName']&&'outdentBlock'!=_0x957c21['commandName'])return;const _0x1b760f=_0x83dbe7['getItems']()[0x0],_0x2732ad=_0x29d12f['descriptionFactory']['getItemLabel'](_0x1b760f);return'indentBlock'==_0x957c21['commandName']?{'type':'format','content':o(_0x400742,'*Indent:*\x20%0',_0x2732ad)}:'outdentBlock'==_0x957c21['commandName']?{'type':'format','content':o(_0x400742,'*Outdent:*\x20%0',_0x2732ad)}:void 0x0;});}}class ut extends _0x560a22{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x560a22{['afterInit'](){const _0x891a14=this['editor'];if(!_0x891a14['plugins']['has']('LinkEditing'))return;const _0x4aa8ff=_0x891a14['plugins']['get']('TrackChangesEditing'),_0x10e07a=_0x891a14['commands']['get']('link');_0x4aa8ff['enableDefaultAttributesIntegration']('link'),_0x4aa8ff['enableDefaultAttributesIntegration']('unlink'),_0x4aa8ff['registerInlineAttribute']('linkHref');for(const _0xf278f3 of _0x10e07a['manualDecorators'])_0x4aa8ff['registerInlineAttribute'](_0xf278f3['id']),_0x4aa8ff['descriptionFactory']['registerAttributeLabel'](_0xf278f3['id'],'link\x20('+_0xf278f3['label']['toLowerCase']()+')');_0x4aa8ff['descriptionFactory']['registerDescriptionCallback'](_0x361bad=>{if('attribute'!=_0x361bad['type'])return;const {data:_0x4b8aed}=_0x361bad;if(!_0x4b8aed||'linkHref'!=_0x4b8aed['key'])return;const _0x1957df=_0x4b8aed['newValue'],_0xeb927=_0x891a14['locale'];return{'type':'format','content':null==_0x1957df?o(_0xeb927,'*Remove\x20link*'):o(_0xeb927,'*Set\x20link:*\x20%0','\x22'+_0x1957df+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7b0f78=this['editor'],_0x3cc65d=_0x7b0f78['locale'];_0x7b0f78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x498f11=>{if('formatInline'!=_0x498f11['type'])return;const {data:_0x32a2ce}=_0x498f11;if(_0x32a2ce){if('link'==_0x32a2ce['commandName']){const _0x2f8457=_0x32a2ce['commandParams'][0x0];return{'type':'format','content':o(_0x3cc65d,'*Set\x20link:*\x20%0','\x22'+_0x2f8457+'\x22')};}return'unlink'==_0x32a2ce['commandName']?{'type':'format','content':o(_0x3cc65d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x560a22{['afterInit'](){const _0x280ed8=this['editor'],_0x228291=_0x280ed8['locale'];if(!_0x280ed8['plugins']['has']('LegacyListEditing'))return;const _0x13d9d1=_0x280ed8['plugins']['get']('TrackChangesEditing'),_0x1ef7ab=_0x280ed8['plugins']['has']('LegacyTodoListEditing');function _0x15d51f(_0x14273a){return()=>{const _0x4a7043=_0x280ed8['model']['document']['selection'],_0x142162=_0x280ed8['commands']['get'](_0x14273a);if(_0x142162['value'])return void _0x280ed8['execute']('paragraph',{});const _0x112a7b=_0x14273a['slice'](0x0,-0x4),_0x5a6f42=function(_0x2e868b,_0x39a9ad,_0x4c43a3){let _0x4e2b6e=Array['from'](_0x2e868b)['filter'](_0x390c1c=>function(_0x3b8fc9,_0x18e3c6){return _0x18e3c6['checkChild'](_0x3b8fc9['parent'],'listItem')&&!_0x18e3c6['isObject'](_0x3b8fc9);}(_0x390c1c,_0x4c43a3));_0x4e2b6e=_0x4e2b6e['filter'](_0x3226c3=>!_0x3226c3['is']('element','listItem')||_0x3226c3['getAttribute']('listType')!=_0x39a9ad);const _0xd07497=new Set();for(const _0x3c92eb of _0x4e2b6e)_0x3c92eb['is']('element','listItem')?_0xd07497['add'](fe(_0x3c92eb)):_0xd07497['add'](_0x3c92eb);return Array['from'](_0xd07497);}(_0x4a7043['getSelectedBlocks'](),_0x112a7b,_0x280ed8['model']['schema']);_0x280ed8['model']['change'](()=>{for(const _0x5290b0 of _0x5a6f42)_0x13d9d1['markBlockFormat'](_0x5290b0,{'commandName':_0x14273a,'commandParams':[{'forceValue':!_0x142162['value']}],'formatGroupId':'blockName'},ue(_0x5290b0));});};}function _0x23c503(_0x5a0d27){return()=>{const _0x2d5f8d=function(_0x7c400f){let _0x12dfaf=Array['from'](_0x7c400f);const _0x2c3fea=_0x12dfaf['findIndex'](_0x1d6069=>'listItem'!=_0x1d6069['name']);return _0x2c3fea>-0x1&&(_0x12dfaf=_0x12dfaf['slice'](0x0,_0x2c3fea)),_0x12dfaf;}(_0x280ed8['model']['document']['selection']['getSelectedBlocks']()),_0x3a411c=_0x280ed8['model']['createRange'](_0x280ed8['model']['createPositionAt'](_0x2d5f8d[0x0],'before'),_0x280ed8['model']['createPositionAt'](_0x2d5f8d[_0x2d5f8d['length']-0x1],'end'));_0x280ed8['model']['change'](()=>{_0x13d9d1['markBlockFormat'](_0x3a411c,{'commandName':_0x5a0d27,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ffaad){const _0x445d0d=new Set();for(const _0x15042f of _0x4ffaad){let _0x3551d0=_0x15042f['nextSibling'];for(;_0x3551d0&&_0x3551d0['getAttribute']('listIndent')>_0x15042f['getAttribute']('listIndent');)_0x445d0d['add'](_0x3551d0),_0x3551d0=_0x3551d0['nextSibling'];}return Array['from'](_0x445d0d);}(_0x2d5f8d));});};}_0x13d9d1['enableCommand']('numberedList',_0x15d51f('numberedList')),_0x13d9d1['enableCommand']('bulletedList',_0x15d51f('bulletedList')),_0x1ef7ab&&_0x13d9d1['enableCommand']('todoList',_0x15d51f('todoList')),_0x13d9d1['enableCommand']('indentList',_0x23c503('indentList')),_0x13d9d1['enableCommand']('outdentList',_0x23c503('outdentList')),_0x1ef7ab&&_0x13d9d1['enableCommand']('checkTodoList',()=>{const _0x51aca2=_0x280ed8['commands']['get']('checkTodoList'),_0x2cb4b6=Array['from'](_0x51aca2['_selectedElements']);_0x2cb4b6['filter'](_0x549264=>_0x549264['getAttribute']('todoListChecked')!=_0x51aca2['value']),_0x280ed8['model']['change'](()=>{for(const _0x36e977 of _0x2cb4b6)_0x13d9d1['markBlockFormat'](_0x36e977,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x51aca2['value']}]});});}),_0x13d9d1['descriptionFactory']['registerElementLabel']('listItem',_0x40cbad=>o(_0x228291,'ELEMENT_LIST_ITEM',_0x40cbad)),_0x13d9d1['descriptionFactory']['registerDescriptionCallback'](_0x51a287=>{if('formatBlock'!=_0x51a287['type']&&'formatInline'!=_0x51a287['type'])return;const {data:_0x6ffe4c}=_0x51a287;if(_0x6ffe4c){if('numberedList'==_0x6ffe4c['commandName']||'bulletedList'==_0x6ffe4c['commandName']||'todoList'==_0x6ffe4c['commandName'])switch(_0x6ffe4c['commandName']['replace']('List','')){case'bulleted':return _0x1dbf7a(o(_0x228291,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1dbf7a(o(_0x228291,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1dbf7a(o(_0x228291,'ELEMENT_TODO_LIST'));}if('indentList'==_0x6ffe4c['commandName'])return{'type':'format','content':o(_0x228291,'*Indent:*\x20%0',o(_0x228291,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x6ffe4c['commandName'])return{'type':'format','content':o(_0x228291,'*Outdent:*\x20%0',o(_0x228291,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x6ffe4c['commandName'])return _0x6ffe4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x228291,'*Check\x20item*')}:{'type':'format','content':o(_0x228291,'*Uncheck\x20item*')};}function _0x1dbf7a(_0x399869){return{'type':'format','content':o(_0x228291,'*Change\x20to:*\x20%0',_0x399869)};}});}}function fe(_0x2c3a9d){const _0x175911=_0x2c3a9d['getAttribute']('listIndent');if(0x0==_0x175911)return _0x2c3a9d;let _0x3370e8=_0x2c3a9d;for(;_0x2c3a9d['previousSibling']&&_0x2c3a9d['previousSibling']['is']('element','listItem');){const _0x3801eb=_0x2c3a9d['previousSibling']['getAttribute']('listIndent');if(_0x3801eb==_0x175911)_0x3370e8=_0x2c3a9d['previousSibling'];else{if(_0x3801eb<_0x175911)break;}_0x2c3a9d=_0x2c3a9d['previousSibling'];}return _0x3370e8;}function ue(_0x492c7){const _0x119fe5=[];if(_0x492c7['is']('element','listItem')&&_0x492c7['getAttribute']('listIndent')>0x0){let _0x13407f=_0x492c7['nextSibling'];for(;_0x13407f&&'listItem'==_0x13407f['name']&&_0x13407f['getAttribute']('listIndent')==_0x492c7['getAttribute']('listIndent');)_0x119fe5['push'](_0x13407f),_0x13407f=_0x13407f['nextSibling'];}return _0x119fe5;}class W extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x259a3a=this['editor']['config']['get']('list.properties'),_0x538954=this['editor']['plugins']['get']('TrackChangesEditing');_0x259a3a['styles']&&_0x538954['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x259a3a['reversed']&&_0x538954['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x259a3a['startIndex']&&_0x538954['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x538954['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3db2ba,_0x583078={}){const _0x3889c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11ff26=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3889c0['markMultiRangeBlockFormat'](_0x11ff26,{'commandName':'listStyle','commandParams':[{'type':_0x583078['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x940bb6,_0x24261e={}){const _0x585eef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41dda2=this['_getSuggestionBlocks'](_0x5cb638=>_0x5cb638['is']('element','listItem')&&'numbered'===_0x5cb638['getAttribute']('listType'));if(_0x41dda2['length']<0x1)return;const _0x28a476=_0x41dda2['map'](_0x2fdb5d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fdb5d,'before'),this['editor']['model']['createPositionAt'](_0x2fdb5d,0x0)));this['editor']['model']['change'](()=>{_0x585eef['markMultiRangeBlockFormat'](_0x28a476,{'commandName':'listReversed','commandParams':[{'reversed':_0x24261e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x444392,_0x589b66={}){const _0x48a06f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x74901a=this['_getSuggestionBlocks'](_0x44c8ae=>_0x44c8ae['is']('element','listItem')&&'numbered'===_0x44c8ae['getAttribute']('listType'));if(_0x74901a['length']<0x1)return;const _0x2c8105=_0x74901a['map'](_0x3163ce=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3163ce,'before'),this['editor']['model']['createPositionAt'](_0x3163ce,0x0)));this['editor']['model']['change'](()=>{_0x48a06f['markMultiRangeBlockFormat'](_0x2c8105,{'commandName':'listStart','commandParams':[{'startIndex':_0x589b66['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2b97ff){if('formatBlock'!=_0x2b97ff['type']&&'formatInline'!=_0x2b97ff['type'])return;const _0x2dad8d=this['editor']['locale'],{data:_0x3f7cc4}=_0x2b97ff;if(!_0x3f7cc4)return;let _0x21032c,_0x301518;switch(_0x3f7cc4['commandName']){case'listStyle':_0x21032c='*Change\x20to:*\x20%0',_0x301518={'type':'format','content':o(_0x2dad8d,_0x21032c,o(_0x2dad8d,this['_getTranslationKeyForListStyle'](_0x3f7cc4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21032c=_0x3f7cc4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x301518={'type':'format','content':o(_0x2dad8d,_0x21032c)};break;case'listStart':_0x21032c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x301518={'type':'format','content':o(_0x2dad8d,_0x21032c,_0x3f7cc4['commandParams'][0x0]['startIndex'])};}return _0x301518;}['_getSuggestionBlocksForListStyle'](){const _0x769d27=this['editor']['plugins']['get']('LegacyListUtils');let _0x17feed=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x17feed[0x0]?.['is']('element','listItem')&&_0x17feed['unshift'](..._0x769d27['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x17feed[_0x17feed['length']-0x1]?.['is']('element','listItem')&&_0x17feed['push'](..._0x769d27['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x17feed=[...new Set(_0x17feed)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x17feed=_0x17feed['filter'](_0x2b7ca1=>_0x2b7ca1['is']('element','listItem'))),_0x17feed;}['_getSuggestionBlocks'](_0x2a9fe6){const _0x166877=this['editor']['plugins']['get']('LegacyListUtils');let _0x53a57c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2a9fe6)['map'](_0x13bd96=>{const _0x1acac3=this['editor']['model']['createPositionAt'](_0x13bd96,0x0);return[..._0x166877['getSiblingNodes'](_0x1acac3,'backward'),..._0x166877['getSiblingNodes'](_0x1acac3,'forward')];})['flat']();return _0x53a57c=[...new Set(_0x53a57c)],_0x53a57c;}['_getTranslationKeyForListStyle'](_0x39fd9a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39fd9a)||'default')['toUpperCase']()+'_LIST_'+_0x39fd9a['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x560a22{['afterInit'](){const _0x15d7d8=this['editor'];if(!_0x15d7d8['plugins']['has']('MediaEmbedEditing'))return;const _0x178602=_0x15d7d8['plugins']['get']('TrackChangesEditing'),_0x16bc6c=_0x15d7d8['locale'];_0x178602['enableCommand']('mediaEmbed'),_0x178602['descriptionFactory']['registerElementLabel']('media',_0x1e929d=>o(_0x16bc6c,'ELEMENT_MEDIA',_0x1e929d)),_0x15d7d8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x444dfd,{writer:_0x1f6566,options:_0x5c6b24})=>{if(_0x5c6b24['showSuggestionHighlights'])return _0x1f6566['createEmptyElement']('div');},'converterPriority':'high'}),_0x15d7d8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5299c4,_0x3c0fd6,_0x38de36)=>{_0x38de36['options']['showSuggestionHighlights']&&_0x5299c4['stop']();},{'priority':'high'});}}class mt extends _0x560a22{['afterInit'](){const _0x1bb14e=this['editor'];_0x1bb14e['plugins']['has']('MentionEditing')&&_0x1bb14e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x560a22{['afterInit'](){const _0x38730b=this['editor'];if(!_0x38730b['plugins']['has']('MergeFieldsEditing'))return;_0x38730b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x38730b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x22a9da=_0x38730b['plugins']['get']('TrackChangesEditing'),_0x3bc87b=_0x38730b['locale'];_0x22a9da['descriptionFactory']['registerElementLabel']('mergeField',_0x243002=>o(_0x3bc87b,'ELEMENT_MERGE_FIELD',_0x243002)),_0x22a9da['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15b7d9=>o(_0x3bc87b,'ELEMENT_MERGE_FIELD',_0x15b7d9)),_0x22a9da['descriptionFactory']['registerDescriptionCallback'](_0x379a42=>{if('insertion'!=_0x379a42['type']&&'deletion'!=_0x379a42['type'])return;const _0x5501b8=_0x379a42['getContainedElement']();if(null==_0x5501b8)return;if(!_0x5501b8['is']('element','mergeField')&&!_0x5501b8['is']('element','mergeFieldBlock'))return;const _0x5f4077=_0x38730b['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5501b8['getAttribute']('id'));return'insertion'==_0x379a42['type']?{'type':'insertion','content':o(_0x3bc87b,'*Insert:*\x20%0','\x22'+_0x5f4077+'\x22\x20'+o(_0x3bc87b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3bc87b,'*Remove:*\x20%0','\x22'+_0x5f4077+'\x22\x20'+o(_0x3bc87b,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x560a22{['afterInit'](){const _0x5b7010=this['editor'],_0x108b5d=_0x5b7010['plugins']['get']('TrackChangesEditing');_0x5b7010['plugins']['has']('MultiLevelList')&&(_0x108b5d['enableDefaultAttributesIntegration']('multiLevelList'),_0x108b5d['registerBlockAttribute']('listMarkerStyle'),_0x108b5d['descriptionFactory']['registerDescriptionCallback'](_0x42ab50=>this['handleDescriptions'](_0x42ab50)));}['handleDescriptions'](_0x4501f5){const _0x2eb00d=this['editor']['locale'],{data:_0x5014a6}=_0x4501f5,_0x134b1d={'type':'format','content':''};if(_0x5014a6&&'listMarkerStyle'==_0x5014a6['key']){if(!_0x5014a6['oldValue'])return{'type':'format','content':o(_0x2eb00d,'*Set\x20format:*\x20%0',o(_0x2eb00d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5014a6['newValue']+')'};if(!_0x5014a6['newValue']){let _0x4f408a=_0x4501f5['head'];for(;_0x4f408a;){if(_0x4f408a['data']&&'listType'==_0x4f408a['data']['key']&&_0x4f408a['data']['newValue'])return _0x134b1d;_0x4f408a=_0x4f408a['next'];}return{'type':'format','content':o(_0x2eb00d,'*Remove\x20format:*\x20%0',o(_0x2eb00d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5014a6['oldValue']+')'};}}}}class kt extends _0x560a22{['afterInit'](){const _0x3515d9=this['editor'];if(!_0x3515d9['plugins']['has']('PageBreakEditing'))return;_0x3515d9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2c544a=_0x3515d9['plugins']['get']('TrackChangesEditing'),_0x5c4800=_0x3515d9['locale'];_0x2c544a['descriptionFactory']['registerElementLabel']('pageBreak',_0x44853c=>o(_0x5c4800,'ELEMENT_PAGE_BREAK',_0x44853c));}}class bt extends _0x560a22{['afterInit'](){const _0x1d1c86=this['editor'];if(!_0x1d1c86['plugins']['has']('Paragraph'))return;const _0x5e8c60=_0x1d1c86['locale'],_0x5d05dd=_0x1d1c86['plugins']['get']('TrackChangesEditing');_0x5d05dd['descriptionFactory']['registerElementLabel']('paragraph',_0x3bc92d=>o(_0x5e8c60,'ELEMENT_PARAGRAPH',_0x3bc92d)),_0x5d05dd['enableDefaultAttributesIntegration']('paragraph'),_0x5d05dd['enableCommand']('insertParagraph'),_0x1d1c86['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d1c86),{'priority':'highest'}),_0x1d1c86['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x246020,_0x886370,_0xb31a3)=>{_0xb31a3['options']['showSuggestionHighlights']&&nr(_0x1d1c86,{'showActiveMarker':!0x1})(_0x246020,_0x886370,_0xb31a3);},{'priority':'highest'});const _0x3d3e95=_0x5d05dd['descriptionFactory'];_0x3d3e95['registerDescriptionCallback'](_0x57caa5=>{if('insertion'!==_0x57caa5['type'])return;const {start:_0x4aa8cc,end:_0x166819}=_0x57caa5['getFirstRange']();if(!_0x4aa8cc['isTouching'](_0x166819)||!_0x4aa8cc['nodeAfter'])return;const _0x2505c1=_0x1d1c86['model']['schema'],_0x18cd3a=_0x4aa8cc['nodeAfter'];return _0x2505c1['isBlock'](_0x18cd3a)&&!_0x2505c1['isLimit'](_0x18cd3a)&&_0x2505c1['checkChild'](_0x18cd3a,'$text')?{'type':'insertion','content':o(_0x5e8c60,'*Insert:*\x20%0',_0x3d3e95['getItemLabel'](_0x18cd3a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ffb8=this['editor'],_0x404ab6=_0x17ffb8['locale'];_0x17ffb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f06d2=>{if('formatBlock'!=_0x4f06d2['type'])return;const {data:_0x90ae11}=_0x4f06d2;return _0x90ae11&&'paragraph'==_0x90ae11['commandName']?{'type':'format','content':o(_0x404ab6,'*Change\x20to:*\x20%0',o(_0x404ab6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x462df3,{showActiveMarker:_0x53eb85=!0x0}={}){return(_0x4005fc,_0x28a863,_0x24ca68)=>{const _0x404f37=_0x462df3['plugins']['get']('TrackChangesEditing'),_0x6f3810=_0x28a863['markerRange']['start'],_0x36d965=_0x28a863['markerRange']['end'],_0x586de0=_0x462df3['model']['schema'];if(!_0x6f3810['isTouching'](_0x36d965)||!_0x6f3810['nodeAfter'])return;const _0x40ee46=_0x6f3810['nodeAfter'];if(_0x586de0['isBlock'](_0x40ee46)&&!_0x586de0['isLimit'](_0x40ee46)&&_0x586de0['checkChild'](_0x40ee46,'$text')){if(!_0x24ca68['consumable']['consume'](_0x28a863['markerRange'],_0x4005fc['name']))return;const {authorId:_0x4d3bd2}=_0x404f37['_splitMarkerName'](_0x28a863['markerName']),_0x13c00a=_0x24ca68['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4d3bd2}),_0x2bd0a9=_0x24ca68['mapper']['toViewPosition'](_0x36d965);_0x53eb85&&_0x404f37['activeMarkers']['includes'](_0x28a863['markerName'])&&_0x24ca68['writer']['addClass']('ck-suggestion-marker--active',_0x13c00a),_0x24ca68['writer']['insert'](_0x2bd0a9,_0x13c00a),_0x24ca68['mapper']['bindElementToMarker'](_0x13c00a,_0x28a863['markerName']);}};}class wt extends _0x560a22{['afterInit'](){const _0x4c309f=this['editor'];if(!_0x4c309f['plugins']['has']('RemoveFormatEditing'))return;_0x4c309f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b3d17=this['editor'];_0x4b3d17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1366da=>{if('formatBlock'!=_0x1366da['type']&&'formatInline'!=_0x1366da['type'])return;const {data:_0x3e5fa1}=_0x1366da;return _0x3e5fa1&&'removeFormat'==_0x3e5fa1['commandName']?{'type':'format','content':o(_0x4b3d17['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x560a22{['afterInit'](){const _0x1a87dd=this['editor'];if(!_0x1a87dd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5ac2e4=_0x1a87dd['plugins']['get']('TrackChangesEditing');_0x5ac2e4['enableCommand']('goToPreviousRestrictedEditingException'),_0x5ac2e4['enableCommand']('goToNextRestrictedEditingException');const _0x3697cc=_0x1a87dd['plugins']['get']('RestrictedEditingModeEditing');_0x3697cc['enableCommand']('trackChanges'),_0x3697cc['enableCommand']('acceptSuggestion'),_0x3697cc['enableCommand']('discardSuggestion'),_0x3697cc['enableCommand']('acceptAllSuggestions'),_0x3697cc['enableCommand']('discardAllSuggestions'),_0x3697cc['enableCommand']('acceptSelectedSuggestions'),_0x3697cc['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x560a22{static get['requires'](){return[_0x127bb0];}['init'](){const _0xda1bb6=this['editor'],_0x248c08=_0xda1bb6['plugins']['get']('TrackChangesEditing');_0x248c08['enableCommand']('shiftEnter'),_0xda1bb6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0xda1bb6),{'priority':'high'}),_0xda1bb6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0xda1bb6),{'priority':'high'}),_0xda1bb6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2971eb,_0x5c098e,_0x275a37)=>{_0x275a37['options']['showSuggestionHighlights']&&ge(_0xda1bb6,{'showActiveMarker':!0x1})(_0x2971eb,_0x5c098e,_0x275a37);}),_0x248c08['descriptionFactory']['registerElementLabel']('softBreak',_0x32e1c6=>o(_0xda1bb6['locale'],'ELEMENT_LINE_BREAK',_0x32e1c6));}}function ge(_0x15a3cc,{showActiveMarker:_0x82d0ca=!0x0}={}){return(_0x50dbf7,_0xc9c55f,_0x1cd55d)=>{const _0x1c2cfd=_0x15a3cc['plugins']['get']('TrackChangesEditing');if(!_0x1cd55d['consumable']['test'](_0xc9c55f['markerRange'],_0x50dbf7['name']))return;const _0x4a9bfd=_0x15a3cc['model'];for(const _0x2cd617 of _0xc9c55f['markerRange']['getItems']()){if(!_0x2cd617['is']('element','softBreak'))continue;const _0x38995a='deletion'==_0xc9c55f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x51a9f7}=_0x1c2cfd['_splitMarkerName'](_0xc9c55f['markerName']),_0x220ae7=_0x1cd55d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38995a,'data-author-id':_0x51a9f7}),_0x15d3b5=_0x1cd55d['mapper']['toViewPosition'](_0x4a9bfd['createPositionBefore'](_0x2cd617));_0x82d0ca&&_0x1c2cfd['activeMarkers']['includes'](_0xc9c55f['markerName'])&&_0x1cd55d['writer']['addClass']('ck-suggestion-marker--active',_0x220ae7),_0x1cd55d['writer']['insert'](_0x15d3b5,_0x220ae7),_0x1cd55d['mapper']['bindElementToMarker'](_0x220ae7,_0xc9c55f['markerName']);}};}class St extends _0x560a22{['afterInit'](){const _0x1bcda2=this['editor'],_0x2dcef4=_0x1bcda2['model'],_0x102a45=_0x1bcda2['locale'];if(!_0x1bcda2['plugins']['has']('StandardEditingModeEditing'))return;const _0x594750=_0x1bcda2['plugins']['get']('TrackChangesEditing'),_0x18cb4a='restrictedEditingException',_0x6647f2=_0x1bcda2['commands']['get'](_0x18cb4a);_0x594750['enableCommand'](_0x18cb4a,(_0x43b4d7,_0x19c660={})=>{const _0x47cc12=_0x2dcef4['document']['selection'];if(_0x47cc12['isCollapsed'])return void _0x43b4d7(_0x19c660);const _0x209f2d=void 0x0!==_0x19c660['forceValue']?_0x19c660['forceValue']:!_0x6647f2['value'];_0x2dcef4['change'](()=>{const _0x353baa=Array['from'](_0x47cc12['getRanges']());for(const _0x4f008e of _0x353baa){const _0x2922b1=_0x209f2d?[_0x4f008e]:io(_0x18cb4a,_0x4f008e,_0x2dcef4);for(const _0x46fcc1 of _0x2922b1)_0x594750['markInlineFormat'](_0x46fcc1,{'commandName':_0x18cb4a,'commandParams':[{'forceValue':_0x209f2d}]});}});}),_0x594750['descriptionFactory']['registerDescriptionCallback'](_0x207549=>{if('formatBlock'!=_0x207549['type']&&'formatInline'!=_0x207549['type'])return;const {data:_0x80a600}=_0x207549;return _0x80a600&&_0x80a600['commandName']==_0x18cb4a?_0x80a600['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x102a45,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x102a45,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x560a22{['afterInit'](){const _0x18c7b8=this['editor'];if(!_0x18c7b8['plugins']['has']('Style')||!_0x18c7b8['plugins']['has']('DataSchema'))return;const _0x39546a=_0x18c7b8['plugins']['get']('TrackChangesEditing'),_0x22149e=_0x18c7b8['locale'],_0x561666=_0x18c7b8['config']['get']('style')||{},_0x5daa10=_0x18c7b8['plugins']['get']('GeneralHtmlSupport'),_0x57ddd0=_0x18c7b8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x18c7b8['plugins']['get']('DataSchema'),_0x561666['definitions']);_0x39546a['enableDefaultAttributesIntegration']('style');const _0x5b73d3=new Set();for(const _0x258ef8 of _0x57ddd0['block']){const _0x1d52e4=_0x5daa10['getGhsAttributeNameForElement'](_0x258ef8['element']);_0x5b73d3['add'](_0x1d52e4);}const _0x49a56e=new Set();for(const _0x49f171 of _0x57ddd0['inline']){const _0x559f07=_0x5daa10['getGhsAttributeNameForElement'](_0x49f171['element']);_0x49a56e['add'](_0x559f07);for(const _0x498c15 of _0x49f171['ghsAttributes'])_0x49a56e['add'](_0x498c15);}for(const _0x3dd0d8 of _0x5b73d3)_0x39546a['registerBlockAttribute'](_0x3dd0d8),_0x39546a['descriptionFactory']['registerAttributeLabel'](_0x3dd0d8,o(_0x22149e,'FORMAT_STYLE'));for(const _0x11dc8b of _0x49a56e)_0x39546a['registerInlineAttribute'](_0x11dc8b),_0x39546a['descriptionFactory']['registerAttributeLabel'](_0x11dc8b,o(_0x22149e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x535b48=this['editor'],_0x4b309c=_0x535b48['locale'];_0x535b48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44abe5=>{if('formatBlock'!=_0x44abe5['type']&&'formatInline'!=_0x44abe5['type'])return;const {data:_0x715c05}=_0x44abe5;return _0x715c05&&'style'===_0x715c05['commandName']?_0x715c05['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b309c,'*Set\x20format:*\x20%0',_0x715c05['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4b309c,'*Remove\x20format:*\x20%0',_0x715c05['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x560a22{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x37386c){super(_0x37386c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x101cf0=this['editor'],_0x5985a8=_0x101cf0['model']['document']['selection'];if(!_0x101cf0['plugins']['has']('TableEditing'))return;const _0x1f2020=_0x101cf0['locale'],_0x295bbe=_0x101cf0['plugins']['get']('TrackChangesEditing'),_0x222670=_0x101cf0['plugins']['get']('TableUtils');_0x295bbe['descriptionFactory']['registerElementLabel']('table',_0x166716=>o(_0x1f2020,'ELEMENT_TABLE',_0x166716)),this['_setupColumnsRowsFixing'](),_0x295bbe['enableCommand']('insertTable'),_0x295bbe['enableCommand']('selectTableRow'),_0x295bbe['enableCommand']('selectTableColumn');for(const _0x2bbbef of['insertTableRowAbove','insertTableRowBelow']){const _0x1637f7=_0x101cf0['commands']['get'](_0x2bbbef);_0x295bbe['enableCommand'](_0x2bbbef,_0x566f5e=>{_0x101cf0['model']['change'](_0x52430e=>{_0x566f5e();const _0x2571fb='above'===_0x1637f7['order'],_0x562e0a=_0x222670['getSelectionAffectedTableCells'](_0x5985a8),_0x384d54=_0x222670['getRowIndexes'](_0x562e0a),_0xffd181=_0x2571fb?_0x384d54['first']-0x1:_0x384d54['last']+0x1,_0x161642=_0x562e0a[0x0]['findAncestor']('table'),_0x486e55=_0x222670['createTableWalker'](_0x161642,{'startRow':_0xffd181,'endRow':_0xffd181}),_0x4c17b0=Array['from'](_0x486e55)['map'](_0x2ecfd0=>_0x52430e['createRangeOn'](_0x2ecfd0['cell']));_0x295bbe['markMultiRangeInsertion'](_0x4c17b0,'tableRow');});});}for(const _0x5d70f6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x525469=_0x101cf0['commands']['get'](_0x5d70f6);_0x295bbe['enableCommand'](_0x5d70f6,_0x1497f0=>{_0x101cf0['model']['change'](_0x2b9ba0=>{_0x1497f0();const _0x1a0267='left'===_0x525469['order'],_0x283e72=_0x222670['getSelectionAffectedTableCells'](_0x5985a8),_0x2f2424=_0x222670['getColumnIndexes'](_0x283e72),_0x1eae0e=_0x1a0267?_0x2f2424['first']-0x1:_0x2f2424['last']+0x1,_0x1dbe6d=_0x283e72[0x0]['findAncestor']('table'),_0x2f0be7=_0x222670['createTableWalker'](_0x1dbe6d,{'startRow':0x0,'column':_0x1eae0e,'includeAllSlots':!0x1}),_0x1ebe8d=Array['from'](_0x2f0be7)['map'](_0x4fcc4d=>_0x2b9ba0['createRangeOn'](_0x4fcc4d['cell']));_0x295bbe['markMultiRangeInsertion'](_0x1ebe8d,'tableColumn');});});}for(const _0x38471c of['removeTableRow','removeTableColumn']){const _0x40df3b=_0x38471c['substr'](0xb),_0x4dc6c3=_0x40df3b['toLowerCase'](),_0x26a23a=_0x4dc6c3['substr'](0x0,0x3)+'span',_0xdde2ca='table'+_0x40df3b,_0x33bb5a='min'+_0x40df3b,_0x4e8c3f='max'+_0x40df3b;_0x295bbe['enableCommand'](_0x38471c,()=>{_0x101cf0['model']['change'](_0x2b3729=>{const _0x32a38a=_0x222670['getSelectionAffectedTableCells'](_0x5985a8),_0x30f01c=_0x32a38a[0x0]['findAncestor']('table');let _0xcde40f;if('removeTableRow'==_0x38471c){const _0x47198c=_0x222670['getRowIndexes'](_0x32a38a);_0xcde40f={'startRow':_0x47198c['first'],'endRow':_0x47198c['last'],'includeAllSlots':!0x0};}else{const _0x2f73ee=_0x222670['getColumnIndexes'](_0x32a38a);_0xcde40f={'startColumn':_0x2f73ee['first'],'endColumn':_0x2f73ee['last'],'includeAllSlots':!0x0};}const _0x5badd2=_0x222670['createTableWalker'](_0x30f01c,_0xcde40f),_0x5cc1d6=Array['from'](_0x5badd2)['map'](({cell:_0x2b3388})=>_0x2b3388),_0x186acb=be(_0x5cc1d6['filter'](_0x595823=>_0x595823['hasAttribute'](_0x26a23a))),_0x5c4633=be(_0x5cc1d6['filter'](_0x40083d=>!_0x40083d['hasAttribute'](_0x26a23a)))['map'](_0x5740f8=>_0x2b3729['createRangeOn'](_0x5740f8)),_0x3d97f4=_0x295bbe['markMultiRangeDeletion'](_0x5c4633,_0xdde2ca);if(_0x3d97f4&&('tableRow'==_0x3d97f4['subType']||'tableColumn'==_0x3d97f4['subType'])){const _0x22abe7=this['_getSuggestionCoords'](_0x3d97f4);for(const _0x26eb75 of _0x186acb){const _0x9747b3=_0x2b3729['createRangeOn'](_0x26eb75),_0xbd7026=_0x222670['getCellLocation'](_0x26eb75),_0x427cef=_0x26eb75['getAttribute'](_0x26a23a)-0x1,_0x1cd47f=_0x22abe7[_0x33bb5a],_0x301ac4=_0x22abe7[_0x4e8c3f];_0x1cd47f<=_0xbd7026[_0x4dc6c3]&&_0xbd7026[_0x4dc6c3]+_0x427cef<=_0x301ac4&&_0x3d97f4['addRange'](_0x9747b3);}}});});}function _0x1a6a89(_0x4bcb3f){const _0x3cb399=Array['from'](_0x5985a8['getRanges']())['map'](_0x4257cd=>_0x4f29af['fromRange'](_0x4257cd));_0x101cf0['model']['change'](_0x49d262=>{const _0x2dc27d=_0x49d262['batch'];_0x4bcb3f=_0x4bcb3f['filter'](_0x110788=>'$graveyard'!=_0x110788['root']['rootName']),_0x49d262['setSelection'](_0x4bcb3f),_0x101cf0['commands']['get']('removeTableRow')['refresh'](),_0x101cf0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x101cf0['model']['enqueueChange'](()=>{_0x101cf0['model']['enqueueChange'](_0x2dc27d,_0x1377a6=>{const _0x14c4d5=_0x3cb399['filter'](_0x45236b=>'$graveyard'!=_0x45236b['root']['rootName']);_0x14c4d5['length']>0x0&&_0x1377a6['setSelection'](_0x14c4d5);for(const _0x4da2a3 of _0x3cb399)_0x4da2a3['detach']();});});});}function _0x36b68(_0x243e11){_0x101cf0['model']['change'](_0x25e9bd=>{const _0x387148=Array['from'](_0x5985a8['getRanges']())['map'](_0x1d2eb9=>_0x4f29af['fromRange'](_0x1d2eb9)),_0x385f58=[];for(const _0x440581 of _0x243e11)for(const _0x1dd7ee of _0x440581['getItems']({'shallow':!0x0}))_0x385f58['push'](_0x1dd7ee);for(const _0x59887d of _0x385f58)'$graveyard'!=_0x59887d['root']['rootName']&&(_0x25e9bd['setSelection'](_0x25e9bd['createPositionAt'](_0x59887d,0x0)),_0x101cf0['commands']['get']('removeTableColumn')['refresh'](),_0x101cf0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x262f9e=_0x387148['filter'](_0x1f492e=>'$graveyard'!=_0x1f492e['root']['rootName']);_0x262f9e['length']>0x0&&_0x25e9bd['setSelection'](_0x262f9e);for(const _0x1b0273 of _0x387148)_0x1b0273['detach']();});}function _0x33e57e(_0x44fdb7,_0x590582){return _0x590582['every'](_0xb388c6=>_0x44fdb7['some'](_0x675af8=>_0x675af8['end']['isEqual'](_0xb388c6['start'])||_0xb388c6['end']['isEqual'](_0x675af8['start'])));}function _0x9c153e(_0x30ee2c,_0x53c9ff){return!_0x30ee2c['some'](_0x19e3a6=>_0x53c9ff['some'](_0x2e04e7=>_0x19e3a6['isIntersecting'](_0x2e04e7)))&&_0x30ee2c['some'](_0x43f0fe=>_0x53c9ff['some'](_0x1029ed=>_0x43f0fe['end']['isTouching'](_0x1029ed['start'])));}_0x101cf0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10d425,_0x52db72,_0xc4741)=>{if(!_0xc4741['options']['showSuggestionHighlights'])return;const _0x4bceb7=_0x52db72['item'];if(!_0x4bceb7)return;const _0xff7a70=_0xc4741['mapper']['toViewElement'](_0x4bceb7);function _0x594ce3(_0x4e3f41){return Array['isArray'](_0x4e3f41)?_0x4e3f41:[_0x4e3f41];}_0xff7a70&&'tableCell'===_0x4bceb7['name']&&_0xb17fce(_0xff7a70,_0xc4741['writer'],(_0x259a41,_0x47759a,_0x2c59c)=>_0x2c59c['addClass'](_0x594ce3(_0x47759a['classes']),_0x259a41),(_0x1c4893,_0xa9419e,_0x36c517)=>_0x36c517['removeClass'](_0x594ce3(_0xa9419e['classes']),_0x1c4893));},{'priority':'highest'}),_0x295bbe['descriptionFactory']['registerDescriptionCallback'](_0x278f62=>{if('insertion'!=_0x278f62['type']&&'deletion'!=_0x278f62['type'])return;const _0x511f1a=_0x278f62['getContainedElement']();if(null!=_0x511f1a&&_0x511f1a['is']('element','table')){if('insertion'==_0x278f62['type']){const _0x53f9e8=_0x278f62['getItems']()['filter'](_0x337d36=>_0x337d36['is']('$textProxy'))['map'](_0x1a0028=>_0x1a0028['data']);if(_0x53f9e8['length'])return{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x53f9e8['join']('\x20')+'\x22'))};}if('deletion'==_0x278f62['type']){const _0x50687f=_0x278f62['getItems']()['filter'](_0x17111a=>_0x17111a['is']('$textProxy'))['map'](_0x405ed3=>_0x405ed3['data']);if(_0x50687f['length'])return{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x50687f['join']('\x20')+'\x22'))};}}}),_0x295bbe['descriptionFactory']['registerDescriptionCallback'](_0x1f2b93=>{if('tableRow'==_0x1f2b93['subType']){const _0x13d0fb=_0x1f2b93['getItems']()['filter'](_0x35b3f9=>_0x35b3f9['is']('$textProxy'))['map'](_0x5bbdea=>_0x5bbdea['data']),_0x20e447=this['_getSuggestionCoords'](_0x1f2b93),_0x3a808e=_0x20e447['maxRow']-_0x20e447['minRow']+0x1;if('insertion'==_0x1f2b93['type'])return _0x13d0fb['length']?{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a808e,'\x22'+_0x13d0fb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_ROW',_0x3a808e))};if('deletion'==_0x1f2b93['type'])return _0x13d0fb['length']?{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a808e,'\x22'+_0x13d0fb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_ROW',_0x3a808e))};}if('tableColumn'==_0x1f2b93['subType']){const _0x2b28b4=_0x1f2b93['getItems']()['filter'](_0x3b8144=>_0x3b8144['is']('$textProxy'))['map'](_0x4ef3c3=>_0x4ef3c3['data']),_0x1aee16=this['_getSuggestionCoords'](_0x1f2b93),_0x3afd56=_0x1aee16['maxColumn']-_0x1aee16['minColumn']+0x1;if('insertion'==_0x1f2b93['type'])return _0x2b28b4['length']?{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3afd56,'\x22'+_0x2b28b4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f2020,'*Insert:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_COLUMN',_0x3afd56))};if('deletion'==_0x1f2b93['type'])return _0x2b28b4['length']?{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3afd56,'\x22'+_0x2b28b4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f2020,'*Remove:*\x20%0',o(_0x1f2020,'ELEMENT_TABLE_COLUMN',_0x3afd56))};}}),_0x295bbe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1a6a89),_0x295bbe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1a6a89),_0x295bbe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x36b68),_0x295bbe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x36b68),_0x295bbe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33e57e),_0x295bbe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33e57e),_0x295bbe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x9c153e),_0x295bbe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x9c153e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x154dd6=this['editor'],_0x318071=_0x154dd6['model']['document']['selection'];return(_0x3d92e8,_0x427e7c)=>{_0x154dd6['model']['change'](_0x2ef0ed=>{const {commandName:_0x537814,commandParams:_0x3bfbee}=_0x427e7c;let _0x563858=_0x3d92e8[0x0]['end']['nodeBefore'];_0x3bfbee&&_0x3bfbee[0x0]&&!0x1===_0x3bfbee[0x0]['forceValue']&&(_0x563858=_0x3d92e8[0x0]['start']['nodeAfter']);const _0x378978=_0x2ef0ed['createRangeIn'](_0x563858);if('$graveyard'==_0x378978['root']['rootName'])return;const _0x56dd94=Array['from'](_0x318071['getRanges']())['map'](_0x444719=>_0x4f29af['fromRange'](_0x444719));_0x2ef0ed['setSelection'](_0x378978),_0x154dd6['commands']['get'](_0x537814)['refresh'](),_0x3bfbee['push']({'forceDefaultExecution':!0x0}),_0x154dd6['execute'](_0x537814,..._0x3bfbee);const _0xd53673=_0x56dd94['filter'](_0x2c2164=>'$graveyard'!=_0x2c2164['root']['rootName']);_0xd53673['length']>0x0&&_0x2ef0ed['setSelection'](_0xd53673);for(const _0xbb2e0d of _0x56dd94)_0xbb2e0d['detach']();});};}['_getCoordsForCells'](_0x2afd3c){const _0xc3501d=this['editor']['plugins']['get']('TableUtils');let _0x52b0b6=Number['MAX_SAFE_INTEGER'],_0x1e669b=Number['MIN_SAFE_INTEGER'],_0x2890fa=Number['MAX_SAFE_INTEGER'],_0x3baffc=Number['MIN_SAFE_INTEGER'];for(const _0x521732 of _0x2afd3c){if('$graveyard'==_0x521732['root']['rootName'])continue;const {row:_0x343d0a,column:_0x144780}=_0xc3501d['getCellLocation'](_0x521732),_0x1d617d=_0x521732['hasAttribute']('rowspan')?_0x521732['getAttribute']('rowspan')-0x1:0x0,_0x1fbc3b=_0x521732['hasAttribute']('colspan')?_0x521732['getAttribute']('colspan')-0x1:0x0;_0x52b0b6=_0x343d0a<_0x52b0b6?_0x343d0a:_0x52b0b6,_0x1e669b=_0x343d0a+_0x1d617d>_0x1e669b?_0x343d0a+_0x1d617d:_0x1e669b,_0x2890fa=_0x144780<_0x2890fa?_0x144780:_0x2890fa,_0x3baffc=_0x144780+_0x1fbc3b>_0x3baffc?_0x144780+_0x1fbc3b:_0x3baffc;}return{'minRow':_0x52b0b6,'maxRow':_0x1e669b,'minColumn':_0x2890fa,'maxColumn':_0x3baffc};}['_setupColumnsRowsFixing'](){const _0x3239d7=this['editor'],_0x6b840d=_0x3239d7['plugins']['get']('TrackChangesEditing'),_0x40f305=_0x3239d7['plugins']['get']('TableUtils');_0x3239d7['model']['document']['on']('change:data',()=>{const _0x5eeea6=Array['from'](_0x3239d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25f5cc,data:_0x4ce03f}of _0x5eeea6){const {group:_0x17eeb5,id:_0x1220a5,subType:_0x3ecb15}=_0x6b840d['_splitMarkerName'](_0x25f5cc);if('suggestion'!=_0x17eeb5)continue;if(null!=_0x4ce03f['oldRange'])continue;const _0x23ff43=_0x6b840d['getSuggestion'](_0x1220a5);this['_tablePostFixingSubtypes']['includes'](_0x3ecb15)&&this['_tableSuggestions']['add'](_0x23ff43);}},{'priority':'low'});const _0x6fc57d=(_0x5b5d62,_0x23a62f)=>{let _0x54582b=!0x1;const _0x48ba67=_0x23a62f['createRangeOn'](_0x5b5d62),_0x311949=_0x5b5d62['findAncestor']('table'),_0x40a83f=_0x40f305['getCellLocation'](_0x5b5d62);for(const _0x2cf2fa of this['_tableSuggestions']){const _0x34342a=_0x2cf2fa['subType'],_0x360614=_0x34342a['startsWith']('tablePaste'),_0x1bbe6e=_0x34342a['substr'](_0x360614?0xa:0x5),_0x254f33=_0x1bbe6e['toLowerCase'](),_0x571ddd=_0x254f33['substr'](0x0,0x3)+'span',_0x58c5d3='min'+_0x1bbe6e,_0x583b9b='max'+_0x1bbe6e;if(!_0x2cf2fa['isInContent'])continue;if(_0x311949!=_0x2cf2fa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2cf2fa['isIntersectingWithRange'](_0x48ba67))continue;const _0x5b0572=_0x5b5d62['hasAttribute'](_0x571ddd)?_0x5b5d62['getAttribute'](_0x571ddd)-0x1:0x0,_0x48678c=this['_getSuggestionCoords'](_0x2cf2fa),_0x255cbd=_0x48678c[_0x58c5d3],_0x5364ee=_0x48678c[_0x583b9b];_0x255cbd<=_0x40a83f[_0x254f33]&&_0x40a83f[_0x254f33]+_0x5b0572<=_0x5364ee&&(_0x2cf2fa['addRange'](_0x48ba67),_0x54582b=!0x0);}return _0x54582b;};_0x3239d7['model']['document']['registerPostFixer'](_0x3b03bc=>{let _0xb57bc3=!0x1;for(const _0x4d074c of _0x3239d7['model']['document']['differ']['getChanges']())if('insert'==_0x4d074c['type']){if('tableRow'==_0x4d074c['name']){for(const _0x1574b0 of _0x4d074c['position']['nodeAfter']['getChildren']())_0xb57bc3=_0xb57bc3||_0x6fc57d(_0x1574b0,_0x3b03bc);}else'tableCell'==_0x4d074c['name']&&(_0xb57bc3=_0xb57bc3||_0x6fc57d(_0x4d074c['position']['nodeAfter'],_0x3b03bc));}return _0xb57bc3;});}['_getSuggestionCoords'](_0x4e4b73){return this['_getCoordsForCells'](_0x4e4b73['getRanges']()['map'](_0x87301f=>_0x87301f['start']['nodeAfter']));}}function be(_0x4e3ffb){return Array['from'](new Set(_0x4e3ffb)['values']());}class vt extends _0x560a22{static get['requires'](){return[It];}['afterInit'](){const _0x2d7571=this['editor'],_0x1fb92a=_0x2d7571['model']['document']['selection'],_0x3e48cc=_0x2d7571['locale'];if(!_0x2d7571['plugins']['has']('TableEditing'))return;const _0x17da5e=_0x2d7571['plugins']['get']('TrackChangesEditing'),_0x1a3b2c=_0x2d7571['plugins']['get']('TableUtils'),_0x5b2b58=_0x2d7571['plugins']['get'](It);_0x5b2b58['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x17da5e['enableCommand']('mergeTableCells',()=>{const _0x713ebf=_0x1a3b2c['getSelectionAffectedTableCells'](_0x2d7571['model']['document']['selection']);_0x2d7571['model']['change'](()=>{_0x17da5e['markMultiRangeBlockFormat'](_0x713ebf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d7571['commands']['get']('mergeTableCells')['on']('execute',(_0x43cb25,_0x4c62f2)=>{_0x2d7571['commands']['get']('trackChanges')['value']&&(_0x4c62f2['length']>0x0&&_0x4c62f2[_0x4c62f2['length']-0x1]&&_0x4c62f2[_0x4c62f2['length']-0x1]['forceDefaultExecution']||_0x17da5e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x43cb25['stop']());},{'priority':'highest'});for(const _0x5e8bb1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3bc803=_0x2d7571['commands']['get'](_0x5e8bb1);_0x17da5e['enableCommand'](_0x5e8bb1,()=>{const _0x39c073=_0x2d7571['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2cbe8b=>_0x2cbe8b['is']('element','tableCell')),_0xfdb216=_0x3bc803['value'];_0x2d7571['model']['change'](()=>{_0x17da5e['markMultiRangeBlockFormat']([_0x39c073,_0xfdb216],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x50dd42 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5ee513=_0x2d7571['commands']['get'](_0x50dd42);_0x17da5e['enableCommand'](_0x50dd42,()=>{const _0x4aa930=_0x1a3b2c['getSelectionAffectedTableCells'](_0x2d7571['model']['document']['selection'])[0x0],_0x5d7e06=_0x4aa930['findAncestor']('table'),{column:_0x5ba746,row:_0x5e1bfb}=_0x1a3b2c['getCellLocation'](_0x4aa930);let _0x239e0e=[];if('horizontally'==_0x5ee513['direction']){const _0x5390f9=_0x1a3b2c['createTableWalker'](_0x5d7e06,{'startRow':_0x5e1bfb,'endRow':_0x5e1bfb,'includeAllSlots':!0x0});_0x239e0e=Array['from'](_0x5390f9)['map'](_0x14c392=>_0x14c392['cell']);}else{const _0xbc0de8=_0x1a3b2c['createTableWalker'](_0x5d7e06,{'column':_0x5ba746,'includeAllSlots':!0x0});_0x239e0e=Array['from'](_0xbc0de8)['map'](_0x9a296a=>_0x9a296a['cell']);}_0x2d7571['model']['change'](_0x1fb8d2=>{_0x17da5e['markBlockFormat'](_0x1fb8d2['createRangeOn'](_0x4aa930),{'commandName':_0x50dd42,'commandParams':[]},_0x239e0e,_0x50dd42);});});}_0x17da5e['descriptionFactory']['registerDescriptionCallback'](_0x1024af=>{if('formatBlock'!=_0x1024af['type']&&'formatInline'!=_0x1024af['type'])return;const {data:_0x2a3f7e}=_0x1024af;return _0x2a3f7e&&'mergeTableCells'==_0x2a3f7e['commandName']?{'type':'format','content':o(_0x3e48cc,'*Merge\x20cells*')}:void 0x0;}),_0x17da5e['descriptionFactory']['registerDescriptionCallback'](_0xf0017d=>{if('formatBlock'!=_0xf0017d['type']&&'formatInline'!=_0xf0017d['type'])return;const {data:_0x5ce440}=_0xf0017d;return _0x5ce440?'splitTableCellVertically'==_0x5ce440['commandName']?{'type':'format','content':o(_0x3e48cc,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5ce440['commandName']?{'type':'format','content':o(_0x3e48cc,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x18bb3b=_0x5b2b58['_acceptFormatSuggestionCallbackFactory']();for(const _0x53cb5a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x17da5e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53cb5a,'accept',_0x18bb3b);for(const _0x40f59e of['splitTableCellVertically','splitTableCellHorizontally'])_0x17da5e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40f59e,'accept',_0x18bb3b);_0x17da5e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x22bfa0=>{_0x2d7571['model']['change'](_0x566e8a=>{const _0x48ddb2=Array['from'](_0x1fb92a['getRanges']())['map'](_0x3cc48e=>_0x4f29af['fromRange'](_0x3cc48e));_0x566e8a['setSelection'](_0x22bfa0),_0x2d7571['commands']['get']('mergeTableCells')['refresh'](),_0x2d7571['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x134632=_0x48ddb2['filter'](_0xba2ae8=>'$graveyard'!=_0xba2ae8['root']['rootName']);_0x134632['length']>0x0&&_0x566e8a['setSelection'](_0x134632);for(const _0x2415c7 of _0x48ddb2)_0x2415c7['detach']();});});for(const _0x5be041 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x381ea7=_0x2d7571['commands']['get'](_0x5be041);_0x381ea7['on']('set:isEnabled',(_0x27b4ec,_0x4e173a,_0x3ae139)=>{if(_0x3ae139){const _0x20721f=_0x2d7571['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48f288=>_0x48f288['is']('element','tableCell'));this['_areMergableCells'](_0x381ea7['value'],_0x20721f)||(_0x27b4ec['return']=!0x1,_0x27b4ec['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4889cc=this['editor']['commands']['get']('mergeTableCells'),_0x7f6474=this['editor']['plugins']['get']('TableUtils');if(!_0x4889cc['isEnabled'])return!0x1;const _0x36026e=_0x7f6474['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x54175e of _0x36026e)for(const _0x4d369c of _0x36026e)if(_0x54175e!=_0x4d369c&&!this['_areMergableCells'](_0x54175e,_0x4d369c))return!0x1;return!0x0;}['_areMergableCells'](_0x9f1ab1,_0x1df5c1){const _0x495d3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x301a1c=this['editor']['model']['createRangeOn'](_0x9f1ab1),_0x5d60f5=this['editor']['model']['createRangeOn'](_0x1df5c1),_0x548e28=new Set(),_0x431382=new Set();for(const _0x5a11d8 of _0x495d3b['getSuggestions']())if(('insertion'==_0x5a11d8['type']||'deletion'==_0x5a11d8['type']||'mergeTableCells'==_0x5a11d8['subType'])&&_0x5a11d8['isInContent']){for(const _0x9caf5 of _0x5a11d8['getRanges']())_0x9caf5['containsRange'](_0x301a1c,!0x0)&&_0x548e28['add'](_0x5a11d8['type']+':'+_0x5a11d8['author']['id']),_0x9caf5['containsRange'](_0x5d60f5,!0x0)&&_0x431382['add'](_0x5a11d8['type']+':'+_0x5a11d8['author']['id']);}if(_0x548e28['size']!=_0x431382['size'])return!0x1;for(const _0x2f2cfa of _0x548e28)if(!_0x431382['has'](_0x2f2cfa))return!0x1;return!0x0;}}class Ct extends _0x560a22{static get['requires'](){return[It];}['afterInit'](){const _0x99331=this['editor'];if(!_0x99331['plugins']['has']('TableEditing'))return;const _0x15325a=_0x99331['locale'],_0x23bf41=_0x99331['plugins']['get']('TrackChangesEditing');_0x23bf41['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x23bf41['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x23bf41['registerBlockAttribute']('headingRows'),_0x23bf41['registerBlockAttribute']('headingColumns'),_0x23bf41['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x15325a,'FORMAT_HEADER_ROW')),_0x23bf41['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x15325a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb9f754=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5548ef=this['editor']['plugins']['get']('TableUtils'),_0x31f668=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2a57dc({showActiveMarker:_0x49d967=!0x0,setDataAttribute:_0x1c1ec9=!0x0}={}){return(_0x400f81,_0x3e0ddd,_0x58037e)=>{const {type:_0x336346,id:_0x361a8e}=_0xb9f754['_splitMarkerName'](_0x3e0ddd['markerName']),_0x5be904=_0xb9f754['getSuggestion'](_0x361a8e),_0x36db9c=_0x5be904['data'];if('formatBlock'!=_0x5be904['type']||!_0x36db9c||'setTableColumnHeader'!=_0x36db9c['commandName'])return;if(_0x3e0ddd['item'])return void _0x400f81['stop']();if(!_0x58037e['consumable']['consume'](_0x3e0ddd['markerRange'],_0x400f81['name']))return;const _0x4c7af3=_0x3e0ddd['markerRange']['start']['nodeAfter'],_0x219505=_0x3e0ddd['markerRange']['end']['nodeBefore'],_0x249761=_0x4c7af3['parent']['parent'],{column:_0x562885}=_0x5548ef['getCellLocation'](_0x4c7af3),{column:_0x4f11ce}=_0x5548ef['getCellLocation'](_0x219505);for(let _0x420dbf=_0x562885;_0x420dbf<=_0x4f11ce;_0x420dbf++){const _0x2fc08b=_0x5548ef['createTableWalker'](_0x249761,{'column':_0x420dbf,'includeAllSlots':!0x1});for(const _0x497a88 of _0x2fc08b){const _0x867a36=_0x497a88['cell'],_0x31ef0a=_0x58037e['mapper']['toViewElement'](_0x867a36);_0x58037e['writer']['addClass']('ck-suggestion-marker-'+_0x336346,_0x31ef0a),_0x1c1ec9&&_0x58037e['writer']['setAttribute']('data-suggestion',_0x361a8e,_0x31ef0a),_0x58037e['mapper']['bindElementToMarker'](_0x31ef0a,_0x3e0ddd['markerName']),_0x49d967&&(_0xb9f754['activeMarkers']['includes'](_0x3e0ddd['markerName'])?_0x58037e['writer']['addClass']('ck-suggestion-marker--active',_0x31ef0a):_0x58037e['writer']['removeClass']('ck-suggestion-marker--active',_0x31ef0a));}}};}_0xb9f754['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x31f668),_0xb9f754['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x31f668),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a57dc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e56b3,_0x25c039,_0x5f38ca)=>{_0x5f38ca['options']['showSuggestionHighlights']&&_0x2a57dc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e56b3,_0x25c039,_0x5f38ca);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4d1120,_0x2fc0f7,_0x13a396)=>{const {type:_0x4a0513,id:_0x2cedad}=_0xb9f754['_splitMarkerName'](_0x2fc0f7['markerName']),_0x4d71a0=_0xb9f754['getSuggestion'](_0x2cedad),_0x1fe1ec=_0x4d71a0['data'];if('formatBlock'!=_0x4d71a0['type']||!_0x1fe1ec||'setTableColumnHeader'!=_0x1fe1ec['commandName'])return;const _0x5297a1=_0x13a396['mapper']['markerNameToElements'](_0x2fc0f7['markerName']);if(_0x5297a1){for(const _0x43a553 of _0x5297a1)_0x13a396['writer']['removeClass']('ck-suggestion-marker-'+_0x4a0513,_0x43a553),_0x13a396['writer']['removeClass']('ck-suggestion-marker--active',_0x43a553),_0x13a396['writer']['removeAttribute']('data-suggestion',_0x43a553),_0x13a396['mapper']['unbindElementFromMarkerName'](_0x43a553,_0x2fc0f7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11f352=this['editor'],_0x4daeca=_0x11f352['locale'];function _0x22ae62(_0x21b0fe){return{'type':'format','content':o(_0x4daeca,'*Format:*\x20%0',_0x21b0fe)};}_0x11f352['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31cde2=>{if('formatBlock'!=_0x31cde2['type'])return;const {data:_0x354930}=_0x31cde2;if(_0x354930){if('setTableRowHeader'==_0x354930['commandName']){const _0x1dbe1f=_0x354930['commandParams'][0x0]['forceValue'];return _0x22ae62(o(_0x4daeca,_0x1dbe1f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x354930['commandName']){const _0x4cfaa4=_0x354930['commandParams'][0x0]['forceValue'];return _0x22ae62(o(_0x4daeca,_0x4cfaa4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x12ac27=>[_0x12ac27,null]));class _t extends _0x560a22{static get['requires'](){return[It];}['afterInit'](){const _0x3896db=this['editor'];if(!_0x3896db['plugins']['has']('TableClipboard'))return;const _0x32d8f7=_0x3896db['plugins']['get']('TrackChangesEditing'),_0x8b762a=_0x3896db['plugins']['get']('TableUtils'),_0x51ed89=_0x3896db['plugins']['get'](It),_0x3c7916=_0x3896db['plugins']['get']('TableClipboard');_0x51ed89['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3896db['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3896db['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1c028c=null;_0x3896db['model']['on']('insertContent',(_0x9f2b00,_0xd8b5db)=>{const [_0x3fc841,_0x190303]=_0xd8b5db,_0x1f677b=_0xd8b5db[_0xd8b5db['length']-0x1];_0x1f677b&&_0x1f677b['forceDefaultExecution']||_0x32d8f7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x13bb0c,_0x5ee84c,_0x484ef0,_0x38bd5f,_0x339b70){if(_0x5ee84c&&!_0x5ee84c['is']('documentSelection'))return!0x1;const _0x19c335=_0x339b70['getTableIfOnlyTableInContent'](_0x13bb0c,_0x484ef0);if(!_0x19c335||!Re(_0x19c335,void 0x0,_0x38bd5f))return!0x1;const _0xefd0cc=_0x38bd5f['getSelectionAffectedTableCells'](_0x484ef0['document']['selection']);if(!_0xefd0cc['length'])return!0x1;const _0x4094ca=_0xefd0cc[0x0]['findAncestor']('table'),_0x1ce816=_0x38bd5f['getRowIndexes'](_0xefd0cc),_0x5c666e=_0x38bd5f['getColumnIndexes'](_0xefd0cc),_0x20bb1d={'startRow':_0x1ce816['first'],'endRow':_0x1ce816['last'],'startColumn':_0x5c666e['first'],'endColumn':_0x5c666e['last']};return 0x1==_0xefd0cc['length']&&(_0x20bb1d['endRow']+=_0x38bd5f['getRows'](_0x19c335)-0x1,_0x20bb1d['endColumn']+=_0x38bd5f['getColumns'](_0x19c335)-0x1),Re(_0x4094ca,_0x20bb1d,_0x38bd5f);}(_0x3fc841,_0x190303,_0x3896db['model'],_0x8b762a,_0x3c7916)&&(_0x9f2b00['stop'](),_0x1c028c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3896db['model']['change'](()=>{_0x3896db['model']['insertContent'](_0xd8b5db[0x0],_0xd8b5db[0x1],_0xd8b5db[0x2],{'forceDefaultExecution':!0x0});const _0x33db04=_0x524896(),{rowInsertionRanges:_0x3a080e,columnInsertionRanges:_0x284fab,insertionRanges:_0x4abbe6,deletionRanges:_0x5acdf8,cells:_0x4a267c}=_0x1c028c;_0x3a080e['length']&&_0x32d8f7['markMultiRangeInsertion'](_0x3a080e,'tablePasteRow',{'tablePasteChainId':_0x33db04}),_0x284fab['length']&&_0x32d8f7['markMultiRangeInsertion'](_0x284fab,'tablePasteColumn',{'tablePasteChainId':_0x33db04}),_0x4abbe6['length']&&(_0x32d8f7['markMultiRangeInsertion'](_0x4abbe6,'tablePaste',{'tablePasteChainId':_0x33db04,'skipNestingCheck':!0x0}),_0x4abbe6['forEach'](_0x4c0131=>_0x4c0131['detach']?.())),_0x5acdf8['length']&&(_0x32d8f7['markMultiRangeDeletion'](_0x5acdf8,'tablePaste',{'tablePasteChainId':_0x33db04,'skipNestingCheck':!0x0}),_0x5acdf8['forEach'](_0x3f42da=>_0x3f42da['detach']?.()));const _0x5e7ed2=_0x32d8f7['markMultiRangeBlockFormat'](_0x4a267c['map'](({element:_0x3e3359})=>_0x3e3359),{'formatGroupId':_0x524896()},[],'tablePasteCell',{'tablePasteChainId':_0x33db04});if(_0x5e7ed2){const _0x15676f=_0x5e7ed2['getMarkers'](),_0x242cfe=[];for(const {element:_0x3fa708,attributes:_0x394cac}of _0x4a267c){if(!_0x394cac)continue;const _0x50f070=_0x3896db['model']['createRangeOn'](_0x3fa708),_0x4164f3=_0x15676f['find'](_0xb1d8cd=>_0xb1d8cd['getRange']()['isEqual'](_0x50f070));_0x4164f3&&_0x242cfe['push']([_0x4164f3['name'],_0x394cac]);}_0x242cfe['length']&&_0x5e7ed2['setAttribute']('markerAttributes',Object['fromEntries'](_0x242cfe));}_0x1c028c=null;}));},{'priority':_0x2388dd['high']+0xa}),_0x3896db['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3f32e1,_0x5d33d8)=>{const [_0x5423aa,_0x24b63f,,_0x586e84]=_0x5d33d8;if(!_0x1c028c)return;_0x3f32e1['stop']();const _0x57e99e=_0x5423aa['cell'],_0x26a453=_0x24b63f,_0x2cee3e=ke(_0x57e99e),_0x13b806=ke(_0x26a453);_0x3f32e1['return']=_0x57e99e;let _0x5646d0=null,_0x1c7cb5=null;if(_0x13b806||_0x2cee3e){if(_0x2cee3e&&!_0x13b806){_0x586e84['remove'](_0x57e99e['getChild'](0x0));for(const _0x23229f of Array['from'](_0x26a453['getChildren']()))_0x586e84['insert'](_0x23229f,_0x57e99e,'end');const _0x426b0a=_0x1c028c['rowInsertionIndexes']['includes'](_0x5423aa['row']),_0x544586=_0x1c028c['columnInsertionIndexes']['includes'](_0x5423aa['column']);_0x426b0a||_0x544586||(_0x5646d0=_0x4f29af['fromRange'](_0x586e84['createRangeIn'](_0x57e99e)));}else _0x13b806&&!_0x2cee3e&&(_0x1c7cb5=_0x586e84['createRangeIn'](_0x57e99e));}else{const _0x1994b1=_0x586e84['createElement']('tableCellSuggestion'),_0xfcb45e=_0x586e84['createElement']('tableCellSuggestion');_0x586e84['wrap'](_0x586e84['createRangeIn'](_0x57e99e),_0xfcb45e),_0x586e84['insert'](_0x1994b1,_0x57e99e,0x0);for(const _0x1b88aa of Array['from'](_0x26a453['getChildren']()))_0x586e84['insert'](_0x1b88aa,_0x1994b1,'end');_0x5646d0=_0x4f29af['fromRange'](_0x586e84['createRangeOn'](_0x1994b1)),_0x1c7cb5=_0x4f29af['fromRange'](_0x586e84['createRangeOn'](_0xfcb45e));}const _0x21b182=Array['from'](_0x26a453['getAttributes']())['filter'](([_0x54e21d])=>Pe['includes'](_0x54e21d));_0x1c028c['cells']['push']({'element':_0x57e99e,'attributes':_0x21b182['length']?Object['fromEntries'](_0x21b182):null}),_0x5646d0&&_0x1c028c['insertionRanges']['push'](_0x5646d0),_0x1c7cb5&&_0x1c028c['deletionRanges']['push'](_0x1c7cb5);},{'priority':'high'}),_0x8b762a['on']('insertColumns',(_0x34f892,_0x58d35b)=>{const [_0x5ddf27,_0x12bef7={}]=_0x58d35b;if(!_0x1c028c)return;const _0x4b0d56=_0x12bef7['at']||0x0,_0x582fb9=_0x12bef7['columns']||0x1;_0x1c028c['columnInsertionIndexes']=new Array(_0x582fb9)['fill'](_0x4b0d56)['map']((_0x54dc09,_0x1bd260)=>_0x54dc09+_0x1bd260);for(const {cell:_0x482c8c}of _0x8b762a['createTableWalker'](_0x5ddf27,{'startColumn':_0x4b0d56,'endColumn':_0x4b0d56+_0x582fb9-0x1}))_0x1c028c['columnInsertionRanges']['push'](_0x3896db['model']['createRangeOn'](_0x482c8c));},{'priority':'low'}),_0x8b762a['on']('insertRows',(_0x303406,_0x1bbf2b)=>{const [_0x4b5e07,_0x434e1b={}]=_0x1bbf2b;if(!_0x1c028c)return;const _0x4dcca1=_0x434e1b['at']||0x0,_0x5cd96b=_0x434e1b['rows']||0x1;_0x1c028c['rowInsertionIndexes']=new Array(_0x5cd96b)['fill'](_0x4dcca1)['map']((_0x3f7264,_0x18e129)=>_0x3f7264+_0x18e129);for(const {cell:_0x4c6972}of _0x8b762a['createTableWalker'](_0x4b5e07,{'startRow':_0x4dcca1,'endRow':_0x4dcca1+_0x5cd96b-0x1}))_0x1c028c['rowInsertionRanges']['push'](_0x3896db['model']['createRangeOn'](_0x4c6972));},{'priority':'low'}),_0x32d8f7['descriptionFactory']['registerDescriptionCallback'](_0x5e1881=>{if(_0x5e1881['subType']&&_0x5e1881['subType']['startsWith']('tablePaste'))return _0x5e1881['previous']?{}:{'type':'insertion','content':o(_0x3896db['locale'],'*Replace\x20table\x20cells*')};});const _0x4bcaa6=()=>!0x1;for(const _0x5e58d1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x32d8f7['_suggestionFactory']['registerCustomCallback']('insertion',_0x5e58d1,'join',_0x4bcaa6),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('deletion',_0x5e58d1,'join',_0x4bcaa6),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e58d1,'join',_0x4bcaa6);_0x32d8f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4bcaa6),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xcac7d2,_0x4f2781,_0x1a12e7)=>{const _0x3468e2=_0xcac7d2['map'](_0x21d832=>_0x21d832['getContainedElement']())['filter'](_0x2bb1fa=>_0x2bb1fa),_0x50bedf=new Map(_0x3468e2['map'](_0x3c2db4=>[_0x3c2db4,null]));if(_0x1c028c){for(const {element:_0x419205,attributes:_0x46789b}of _0x1c028c['cells'])_0x46789b&&_0x50bedf['set'](_0x419205,_0x46789b);}else{if(_0x1a12e7&&_0x1a12e7['markerAttributes'])for(const [_0x4cbfd1,_0x443401]of Object['entries'](_0x1a12e7['markerAttributes'])){const _0x3aeaea=_0x3896db['model']['markers']['get'](_0x4cbfd1),_0x2cb436=_0x3aeaea?_0x3aeaea['getRange']()['getContainedElement']():null;_0x2cb436&&_0x50bedf['set'](_0x2cb436,_0x443401);}}_0x3896db['model']['change'](_0x3c0226=>{for(const [_0x156e2e,_0x126cd7]of _0x50bedf)_0x3c0226['setAttributes']({...we,..._0x126cd7},_0x156e2e);});});const _0x4b9362=(_0x31b1c4,_0x413dde)=>{_0x32d8f7['_suggestionFactory']['registerCustomCallback'](_0x31b1c4,'tablePaste',_0x413dde,(_0x5ea24,_0x1c9ca0,_0x427518)=>{_0x3896db['model']['change'](_0xd5695=>{const _0x34f16d=[];for(const _0x512491 of _0x5ea24){const _0x62bb4f=_0x512491['start']['nodeAfter'];_0x62bb4f['is']('element','tableCellSuggestion')&&_0x34f16d['push'](_0x62bb4f);}_0x32d8f7['_suggestionFactory']['getSuggestionCallback'](_0x31b1c4,null,_0x413dde)(_0x5ea24,_0x1c9ca0,_0x427518);for(const _0x2b22da of _0x34f16d)'$graveyard'!=_0x2b22da['root']['rootName']&&_0xd5695['unwrap'](_0x2b22da);});});};_0x4b9362('insertion','accept'),_0x4b9362('insertion','discard'),_0x4b9362('deletion','accept'),_0x4b9362('deletion','discard'),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e3998=>{const _0x9b5aca=_0x1e3998['map'](_0x5d660e=>_0x5d660e['getContainedElement']()),_0x5e0c86=_0x9b5aca[0x0]['findAncestor']('table'),{minRow:_0x2bfcc1,maxRow:_0x57dda5}=_0x51ed89['_getCoordsForCells'](_0x9b5aca);_0x8b762a['removeRows'](_0x5e0c86,{'at':_0x2bfcc1,'rows':_0x57dda5-_0x2bfcc1+0x1});}),_0x32d8f7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4191f5=>{const _0x1b5fad=_0x4191f5['map'](_0x4fd65d=>_0x4fd65d['getContainedElement']()),_0x180e4e=_0x1b5fad[0x0]['findAncestor']('table'),{minColumn:_0xb1f647,maxColumn:_0x4e5380}=_0x51ed89['_getCoordsForCells'](_0x1b5fad);_0x8b762a['removeColumns'](_0x180e4e,{'at':_0xb1f647,'columns':_0x4e5380-_0xb1f647+0x1});});const _0x28fe87=(_0x145171,_0x577707)=>{if(!_0x577707['subType']||!_0x577707['subType']['startsWith']('tablePaste'))return;const _0x42de50=_0x577707['attributes']['tablePasteChainId'],_0x3c2c68=_0x32d8f7['getSuggestions']()['filter'](_0x13b87e=>_0x13b87e['isInContent']&&_0x13b87e['attributes']&&_0x13b87e['attributes']['tablePasteChainId']==_0x42de50);_0x3c2c68['length']&&_0x577707['getAllAdjacentSuggestions']()['length']!=_0x3c2c68['length']&&_0x3c2c68['reduce']((_0x2b2ba0,_0x535f96)=>(_0x2b2ba0['next']=_0x535f96,_0x535f96['previous']=_0x2b2ba0,_0x535f96));};function _0x2a8bc5(_0x208a66,_0xc458fd=!0x0){const {id:_0x41fb91,authorId:_0x1d8d9c}=_0x32d8f7['_splitMarkerName'](_0x208a66['markerName']),_0x455dfa=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4e0c2f=_0x32d8f7['activeMarkers']['includes'](_0x208a66['markerName']);return _0x4e0c2f&&_0x455dfa['push']('ck-suggestion-marker--active'),{'classes':_0x455dfa,'attributes':{'data-suggestion':_0x41fb91,'data-author-id':_0x1d8d9c},'priority':_0x4e0c2f&&_0xc458fd?0xbc2:0xbb8};}_0x32d8f7['on']('suggestionLoaded',_0x28fe87,{'priority':'high'}),_0x32d8f7['on']('suggestionUnloaded',_0x28fe87,{'priority':'high'}),_0x3896db['model']['document']['registerPostFixer'](()=>{let _0x469bf5=!0x1;const _0x30bcb8=Array['from'](_0x3896db['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53f4ba,data:_0xcc0e8}of _0x30bcb8){const {group:_0x5c0ace,type:_0x54169c,id:_0x24fc9e}=_0x32d8f7['_splitMarkerName'](_0x53f4ba);if('suggestion'!=_0x5c0ace||'deletion'!=_0x54169c||_0xcc0e8['oldRange'])continue;if(!_0x32d8f7['hasSuggestion'](_0x24fc9e))continue;const _0x3859a5=_0x32d8f7['getSuggestion'](_0x24fc9e)['getRanges'](),_0x162f02=_0x3896db['plugins']['get']('Users')['me'];for(const _0xb1c35b of _0x32d8f7['getSuggestions']()){if(!_0xb1c35b['isInContent']||_0xb1c35b['author']!=_0x162f02)continue;if('formatBlock'!=_0xb1c35b['type']||'tablePasteCell'!=_0xb1c35b['subType'])continue;if(_0xb1c35b['getRanges']()['every'](_0x4a9ba5=>_0x3859a5['some'](_0x12630a=>_0x12630a['containsRange'](_0x4a9ba5,!0x0)))){for(const _0x53e204 of _0xb1c35b['getAllAdjacentSuggestions']())_0x53e204['isInContent']&&(_0x53e204['discard'](),_0x469bf5=!0x0);}}}return _0x469bf5;}),_0x3896db['model']['document']['registerPostFixer'](_0x52b3f6=>{const _0x4ae1b1=_0x3896db['commands']['get']('redo');if(!_0x4ae1b1||!_0x4ae1b1['_createdBatches']['has'](_0x52b3f6['batch']))return!0x1;let _0x217ef0=!0x1;const _0x3414e3=_0x3896db['plugins']['get']('Users')['me'],_0x1ccae4=_0x3896db['model']['document']['differ']['getChanges'](),_0x3cf817=Array['from'](_0x3896db['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e8fcd,data:_0x248b89})=>{const {group:_0x188def,subType:_0x285868,authorId:_0x386314}=_0x32d8f7['_splitMarkerName'](_0x1e8fcd);return'suggestion'==_0x188def&&'tablePaste'==_0x285868&&_0x386314==_0x3414e3['id']&&!_0x248b89['oldRange'];});for(const _0x4048f4 of _0x1ccae4){if('insert'!=_0x4048f4['type']||'tableCellSuggestion'!=_0x4048f4['name']||0x1!=_0x4048f4['length'])continue;const _0x455365=_0x52b3f6['createRange'](_0x4048f4['position'],_0x4048f4['position']['getShiftedBy'](0x1));if(!_0x3cf817['find'](({data:_0x162f99})=>_0x162f99['newRange']['isEqual'](_0x455365))){for(const {name:_0x26511f,data:_0x1dbc15}of _0x3cf817)if(_0x455365['containsRange'](_0x1dbc15['newRange'])){_0x52b3f6['updateMarker'](_0x26511f,{'range':_0x455365}),_0x217ef0=!0x0;break;}}}return _0x217ef0;}),_0x3896db['model']['document']['registerPostFixer'](_0x5c9d5f=>{let _0x11cca0=!0x1;const _0x1c1c88=_0x3896db['plugins']['get']('Users')['me'],_0x1f4669=_0x32d8f7['getSuggestions']()['filter'](_0x225aac=>_0x225aac['isInContent']&&_0x225aac['author']==_0x1c1c88),_0x632f78=new Set(),_0x420d22=new Set();for(const _0x42a7d6 of _0x1f4669)if('tablePaste'==_0x42a7d6['subType'])for(const _0x223fe3 of _0x42a7d6['getMarkers']()){const _0x47d510=_0x223fe3['getRange']()['getContainedElement']();if(_0x47d510){if(_0x47d510['is']('element','tableCellSuggestion')&&ke(_0x47d510)){_0x42a7d6['removeMarker'](_0x223fe3['name']),_0x632f78['add'](_0x47d510),_0x11cca0=!0x0;const _0x5bad2d=_0x47d510['nextSibling'],_0x3287dc=_0x47d510['previousSibling'],_0x5bd6cd=_0x5bad2d&&_0x5bad2d['is']('element','tableCellSuggestion'),_0x596c66=_0x3287dc&&_0x3287dc['is']('element','tableCellSuggestion');_0x5bd6cd&&!_0x632f78['has'](_0x5bad2d)&&_0x420d22['add'](_0x5bad2d),_0x596c66&&!_0x632f78['has'](_0x3287dc)&&_0x420d22['add'](_0x3287dc);}else _0x47d510['is']('element','paragraph')&&_0x47d510['isEmpty']&&(_0x42a7d6['removeMarker'](_0x223fe3['name']),_0x11cca0=!0x0);}}else{if('tablePasteCell'==_0x42a7d6['subType']){if(!_0x42a7d6['attributes']||!_0x42a7d6['attributes']['tablePasteChainId'])continue;const _0x10006c=_0x42a7d6['attributes']['markerAttributes'];if(_0x10006c&&Object['keys'](_0x10006c)['length'])continue;const _0x2b4dda=_0x42a7d6['attributes']['tablePasteChainId'];let _0x51efe2=!0x0,_0x6a9490=!0x0;for(const _0x16bf63 of _0x1f4669)if(_0x16bf63['subType']&&_0x16bf63['subType']['startsWith']('tablePaste')){if(!_0x16bf63['attributes']['tablePasteChainId']){_0x6a9490=!0x1;break;}if(_0x16bf63['id']!=_0x42a7d6['id']&&_0x16bf63['attributes']['tablePasteChainId']==_0x2b4dda){_0x51efe2=!0x1;break;}}_0x6a9490&&_0x51efe2&&(_0x42a7d6['removeMarkers'](),_0x11cca0=!0x0);}}for(const _0x380dca of _0x632f78)_0x5c9d5f['remove'](_0x380dca);for(const _0x1c735d of _0x420d22)_0x5c9d5f['unwrap'](_0x1c735d);return _0x11cca0;}),_0x3896db['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x24c3f6=>_0x2a8bc5(_0x24c3f6),'converterPriority':'high'}),_0x3896db['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x488bb0,_0x3b9930)=>_0x3b9930['options']['showSuggestionHighlights']?_0x2a8bc5(_0x488bb0,!0x1):null,'converterPriority':'high'});const _0x37fa21=_0x3896db['editing']['view'];this['listenTo'](_0x37fa21['document'],'clipboardOutput',(_0x1e6813,_0x47e7e8)=>{const _0x27636f=[];for(const _0x11c077 of _0x37fa21['createRangeIn'](_0x47e7e8['content'])['getItems']())_0x11c077['is']('element','suggestion-td')&&_0x27636f['push'](_0x11c077);_0x37fa21['change'](_0x55ef22=>{for(const _0x4ea8d6 of _0x27636f)_0x55ef22['move'](_0x55ef22['createRangeIn'](_0x4ea8d6),_0x55ef22['createPositionBefore'](_0x4ea8d6)),_0x55ef22['remove'](_0x4ea8d6);});});}}function ke(_0x2198e4){if(_0x2198e4['isEmpty'])return!0x0;const _0x4855f8=_0x2198e4['getChild'](0x0);return _0x4855f8['is']('element','paragraph')&&_0x4855f8['isEmpty'];}function Re(_0x68fa8b,_0xf0acbb={},_0x115387){for(const {isAnchor:_0x386f1d,cellHeight:_0x2bd11d,cellWidth:_0x15f9f7}of _0x115387['createTableWalker'](_0x68fa8b,{'includeAllSlots':!0x0,..._0xf0acbb}))if(!_0x386f1d||0x1!=_0x2bd11d||0x1!=_0x15f9f7)return!0x1;return!0x0;}class Nt extends _0x560a22{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33df6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x33df6f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33df6f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33df6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33df6f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33df6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33df6f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4eb0c3,_0x1a970c){const _0x110441=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e01ab=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8eb020=_0x1a970c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x51ecea=_0x2e01ab['getColumnGroupElement'](_0x8eb020);let _0x11c45f=_0x51ecea?_0x2e01ab['getTableColumnsWidths'](_0x51ecea):null,_0x2d4804=_0x8eb020['getAttribute']('tableWidth')||null;const _0x105888=_0x1a970c['tableWidth']||_0x2d4804,_0x487a43=_0x1a970c['columnWidths']||_0x11c45f,_0x1f4185=this['editor']['plugins']['get']('Users')['me'];for(const _0x27210e of _0x110441['getSuggestions']()){const _0x2c7748=_0x27210e['getContainedElement']();if('resizeTable'===_0x27210e['subType']&&_0x2c7748===_0x8eb020){_0x27210e['author']!==_0x1f4185&&_0x27210e['discard']();const _0x367434=_0x27210e['data']['commandParams'];_0x2d4804=_0x367434[0x0]['tableWidth'],_0x11c45f=_0x367434[0x0]['columnWidths'];break;}}_0x4eb0c3({'table':_0x8eb020,'tableWidth':_0x105888,'columnWidths':_0x487a43}),_0x110441['markBlockFormat'](_0x8eb020,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2d4804,'columnWidths':_0x11c45f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x17eb46){if('formatBlock'!=_0x17eb46['type']&&'formatInline'!=_0x17eb46['type'])return;const {data:_0x2cd51d}=_0x17eb46;if(_0x2cd51d&&'resizeTable'===_0x2cd51d['formatGroupId']){const _0x2a5585='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2a5585)};}}}class Dt extends _0x560a22{['afterInit'](){const _0x364f99=this['editor'];_0x364f99['plugins']['has']('Template')&&_0x364f99['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x560a22{['afterInit'](){const _0x413a85=this['editor'];if(!_0x413a85['commands']['get']('insertTableOfContents'))return;_0x413a85['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2e746b=_0x413a85['plugins']['get']('TrackChangesEditing'),_0x56e1b1=_0x413a85['locale'];_0x2e746b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4b9054=>o(_0x56e1b1,'ELEMENT_TABLE_OF_CONTENTS',_0x4b9054));}}class $t extends _0x560a22{['afterInit'](){const _0xd69f60=this['editor'];if(!_0xd69f60['plugins']['has']('Title'))return;const _0xae41af=_0xd69f60['plugins']['get']('TrackChangesEditing');_0xae41af['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xd69f60['locale'],'ELEMENT_TITLE')),_0xd69f60['model']['document']['registerPostFixer'](_0x4b49c7=>{let _0x4fb32a=!0x1;const _0x2f50e5=Array['from'](_0xd69f60['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c0eff,data:_0x191085}of _0x2f50e5){const {group:_0x541f63}=_0xae41af['_splitMarkerName'](_0x3c0eff);if('suggestion'!==_0x541f63||!_0x191085['newRange'])continue;const _0x5ab2d0=_0x191085['newRange'],_0xee6cbf=_0x5ab2d0['end']['nodeBefore'];if(!_0xee6cbf||!_0xee6cbf['is']('element','title-content'))continue;if(!_0x5ab2d0['start']['isTouching'](_0x5ab2d0['end']))continue;const _0x2d2187=_0xd69f60['model']['schema']['getNearestSelectionRange'](_0x5ab2d0['end'],'forward');if(_0x2d2187&&_0x2d2187['isCollapsed']){const _0x425775=_0x4b49c7['createRange'](_0x5ab2d0['start'],_0x2d2187['start']);_0x425775['isEqual'](_0x5ab2d0)||(_0x4b49c7['updateMarker'](_0x3c0eff,{'range':_0x425775}),_0x4fb32a=!0x0);}_0x4fb32a||(_0x4b49c7['removeMarker'](_0x3c0eff),_0x4fb32a=!0x0);}return _0x4fb32a;});}}class Bt extends _0x560a22{['afterInit'](){const _0x2455a1=this['editor'],_0xaa3c81=_0x2455a1['plugins']['get']('TrackChangesEditing');_0x2455a1['plugins']['has']('UndoEditing')&&(_0xaa3c81['enableCommand']('undo'),_0xaa3c81['enableCommand']('redo'));}}class xt extends _0x560a22{static get['requires'](){return[It];}['afterInit'](){const _0x456060=this['editor'];if(!_0x456060['plugins']['has']('TableCaptionEditing'))return;_0x456060['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x560a22{['tableProperties'];['tableCellProperties'];constructor(_0x3a5af6){super(_0x3a5af6),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 _0x4ac4c6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1cd0b8 of this['tableProperties'])_0x4ac4c6['enableCommand'](_0x1cd0b8,(_0x2096ac,_0x46b07b)=>{const _0x163163=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1cd0b8,[_0x163163],this['tableProperties'],'tableProperties',_0x2096ac,_0x46b07b);});_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4ac4c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1ae191,_0xc4f114)=>this['handleDiscardAction'](this['tableProperties'],_0x1ae191,_0xc4f114)),_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2853be of this['tableCellProperties'])_0x4ac4c6['enableCommand'](_0x2853be,(_0x2963c8,_0x5b348f)=>{const _0x5004bd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2853be,_0x5004bd,this['tableCellProperties'],'tableCellProperties',_0x2963c8,_0x5b348f);});_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4ac4c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc1cb8f,_0x4b7ff8)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc1cb8f,_0x4b7ff8)),_0x4ac4c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4ac4c6['descriptionFactory']['registerDescriptionCallback'](_0x20412c=>this['handleSuggestionDescription'](_0x20412c));}['_handlePropertyChange'](_0x41a6db,_0x33b4aa,_0xaa0c77,_0x1dbebf,_0x408f9a,_0x1dda5a){const _0x2bad75=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1dda5a['batch'],()=>{for(const _0x589e92 of _0x33b4aa){if(this['_getSuggestion'](_0x589e92,_0x1dbebf))_0x408f9a(_0x1dda5a);else{const _0x1fd09b={};for(const _0x191a00 of _0xaa0c77){const _0x371503=_0x589e92['getAttribute'](_0x191a00);void 0x0!==_0x371503&&(_0x1fd09b[_0x191a00]=_0x371503);}_0x408f9a(_0x1dda5a),_0x2bad75['markBlockFormat'](_0x589e92,{'commandParams':[_0x1fd09b]},[],_0x1dbebf);}}});}['handleDiscardAction'](_0x5bd8e5,_0x37f140,_0x55ba51){const _0x15eee7=_0x37f140[0x0]['start']['nodeAfter'],_0x30f0e6=_0x55ba51['commandParams'][0x0];this['editor']['model']['change'](_0x183d92=>{for(const _0x484243 of _0x5bd8e5)void 0x0!==_0x30f0e6[_0x484243]?_0x183d92['setAttribute'](_0x484243,_0x30f0e6[_0x484243],_0x15eee7):_0x183d92['removeAttribute'](_0x484243,_0x15eee7);});}['handleSuggestionDescription'](_0x267674){if(_0x267674['data'])switch(_0x267674['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'](_0x31308a,_0x1772bd){const _0x622eb6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ebf9e of _0x622eb6['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c4cf8=_0x3ebf9e['getContainedElement']();if(_0x3ebf9e['subType']===_0x1772bd&&_0x5c4cf8===_0x31308a)return _0x3ebf9e;}return null;}}const m='$elementName';class p extends _0x560a22{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4e07e7,_0x1cc518,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3dca52){function _0x24d6c5(_0x37556c){return _0x37556c['map'](_0xff193c=>String['fromCharCode'](_0xff193c))['join']('');}super(_0x3dca52),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x349fe4,_0x2ff92c,_0x185aaa,_0x5a4f90)=>{this['_model']['change'](()=>{for(const _0x27116a of[..._0x5a4f90,..._0x185aaa])this['_model']['markers']['has'](_0x27116a)&&_0x3dca52['editing']['reconvertMarker'](_0x27116a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3dca52['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(),_0x3dca52['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3dca52['config']['get']('trackChanges.trackFormatChanges'),_0x3dca52['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3dca52['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3dca52,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x24d6c5([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x24d6c5([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x36]);}['init'](){const _0x1f26f6=this['editor'],_0x1ef6f8=(_0x3e296e,_0x180cc9)=>{if('attribute'!=_0x3e296e)return'ck-suggestion-marker-'+_0x3e296e;const _0x3c2ee5=_0x180cc9['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c2ee5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f26f6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d15d3=>{const {id:_0x1a8b9f,authorId:_0x7d2e9e,type:_0x44415c,subType:_0x16e268}=this['_splitMarkerName'](_0x2d15d3['markerName']),_0x263741=['ck-suggestion-marker',_0x1ef6f8(_0x44415c,_0x16e268)];let _0x3ba775=0xbb8;return this['activeMarkers']['includes'](_0x2d15d3['markerName'])&&(_0x263741['push']('ck-suggestion-marker--active'),_0x3ba775=0xbc2),'deletion'==_0x44415c&&(_0x3ba775+=0x5),{'classes':_0x263741,'attributes':{'data-suggestion':_0x1a8b9f,'data-author-id':_0x7d2e9e},'priority':_0x3ba775};}}),_0x1f26f6['conversion']['for']('dataDowncast')['add'](_0x9eb5a6=>{_0x9eb5a6['on']('addMarker:suggestion',(_0x31d152,_0x2d499e,_0x147755)=>{if(!_0x147755['options']['showSuggestionHighlights'])return;const _0x2c092a=_0x2d499e['item'];if(!_0x2c092a)return;const _0x5958eb=_0x147755['mapper']['toViewElement'](_0x2c092a);_0x1f26f6['model']['schema']['isObject'](_0x2c092a)&&_0x5958eb&&!_0x5958eb['getCustomProperty']('widget')&&_0x5958eb['is']('containerElement')&&_0x670c8b(_0x5958eb,_0x147755['writer']);},{'priority':'high'});}),_0x1f26f6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x33dbe5,_0x294693)=>{if(!_0x294693['options']['showSuggestionHighlights'])return null;const {type:_0x5e101e,subType:_0xb2fea}=this['_splitMarkerName'](_0x33dbe5['markerName']);return{'classes':['ck-suggestion-marker',_0x1ef6f8(_0x5e101e,_0xb2fea)],'priority':0xbb8};}});const _0xea2414=({showActiveMarkers:_0x109b16=!0x0,isAttributeSuggestion:_0x254191=!0x1}={})=>(_0x4c4742,_0x4b7db6,_0x17610d)=>{if(!_0x4b7db6['item'])return;const {id:_0x30b4ef,authorId:_0x4e0d58}=this['_splitMarkerName'](_0x4b7db6['markerName']);if(_0x254191){const _0x4019b8=this['_suggestions']['get'](_0x30b4ef),_0x216753=this['_getAttributeKey'](_0x4019b8);if(!this['_isBlockAttribute'](_0x216753))return;}if(_0x4b7db6['item']['is']('selection'))return void _0x17610d['consumable']['consume'](_0x4b7db6['item'],_0x4c4742['name']);const _0x45ea34=_0x17610d['mapper']['toViewElement'](_0x4b7db6['item']);if(_0x4b7db6['item']['is']('element')&&_0x1f26f6['model']['schema']['isBlock'](_0x4b7db6['item'])&&!_0x45ea34['getCustomProperty']('addHighlight')){_0x17610d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x45ea34),_0x17610d['writer']['setAttribute']('data-suggestion',_0x30b4ef,_0x45ea34),_0x17610d['writer']['setAttribute']('data-author-id',_0x4e0d58,_0x45ea34),_0x17610d['mapper']['bindElementToMarker'](_0x45ea34,_0x4b7db6['markerName']),_0x109b16&&(this['activeMarkers']['includes'](_0x4b7db6['markerName'])?_0x17610d['writer']['addClass']('ck-suggestion-marker--active',_0x45ea34):_0x17610d['writer']['removeClass']('ck-suggestion-marker--active',_0x45ea34));for(const _0x5150fe of _0x1f26f6['model']['createRangeIn'](_0x4b7db6['item'])['getItems']())_0x17610d['consumable']['consume'](_0x5150fe,_0x4c4742['name']);_0x17610d['consumable']['consume'](_0x4b7db6['item'],_0x4c4742['name']);}};_0x1f26f6['conversion']['for']('dataDowncast')['add'](_0x225c86=>{_0x225c86['on']('addMarker:suggestion:formatBlock',(_0x614766,_0x2b3a4d,_0x34fca2)=>{_0x34fca2['options']['showSuggestionHighlights']&&_0xea2414({'showActiveMarkers':!0x1})(_0x614766,_0x2b3a4d,_0x34fca2);},{'priority':'highest'});}),_0x1f26f6['conversion']['for']('dataDowncast')['add'](_0xab44fb=>{_0xab44fb['on']('addMarker:suggestion:attribute',(_0x38d5df,_0x562c8c,_0x482ba6)=>{_0x482ba6['options']['showSuggestionHighlights']&&_0xea2414({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38d5df,_0x562c8c,_0x482ba6);},{'priority':'highest'});}),_0x1f26f6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3f2807,_0x59967b)=>_0x59967b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3f2807['substr'](0xb)}}),_0x1f26f6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x20559e,{writer:_0x275847})=>{let _0x38e03b='suggestion:'+_0x20559e['getAttribute']('suggestion-type')+':'+_0x20559e['getAttribute']('id');return _0x20559e['getAttribute']('marker-count')&&(_0x38e03b+=':'+_0x20559e['getAttribute']('marker-count')),_0x275847['createElement']('$marker',{'data-name':_0x38e03b});}}),_0x1f26f6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f26f6['conversion']['for']('editingDowncast')['add'](_0x567f76=>{_0x567f76['on']('addMarker:suggestion:formatBlock',_0xea2414(),{'priority':'high'});}),_0x1f26f6['conversion']['for']('editingDowncast')['add'](_0x5e430f=>{_0x5e430f['on']('addMarker:suggestion:attribute',_0xea2414({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f26f6['conversion']['for']('editingDowncast')['add'](_0xc203a0=>{_0xc203a0['on']('removeMarker:suggestion:formatBlock',(_0x58c62b,_0x2c15ba,_0x3f9f0a)=>{const _0x1ca662=_0x3f9f0a['mapper']['markerNameToElements'](_0x2c15ba['markerName']);if(_0x1ca662){for(const _0x3ae14e of _0x1ca662)_0x3ae14e['getCustomProperty']('addHighlight')||(_0x3f9f0a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ae14e),_0x3f9f0a['writer']['removeAttribute']('data-suggestion',_0x3ae14e),_0x3f9f0a['writer']['removeAttribute']('data-author-id',_0x3ae14e),_0x3f9f0a['mapper']['unbindElementFromMarkerName'](_0x3ae14e,_0x2c15ba['markerName']));}},{'priority':'high'});}),_0x1f26f6['conversion']['for']('editingDowncast')['add'](_0x756e0c=>{_0x756e0c['on']('removeMarker:suggestion:attribute',(_0x3c2500,_0x2d05a3,_0xf715b5)=>{const _0x285215=_0xf715b5['mapper']['markerNameToElements'](_0x2d05a3['markerName']);if(!_0x285215)return;const {id:_0x2d5d81}=this['_splitMarkerName'](_0x2d05a3['markerName']),_0x75a466=this['_suggestions']['get'](_0x2d5d81),_0x2202a6=this['_getAttributeKey'](_0x75a466);if(this['_isBlockAttribute'](_0x2202a6)){for(const _0x579c7e of _0x285215)_0x579c7e['getCustomProperty']('addHighlight')||(_0xf715b5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x579c7e),_0xf715b5['writer']['removeAttribute']('data-suggestion',_0x579c7e),_0xf715b5['writer']['removeAttribute']('data-author-id',_0x579c7e),_0xf715b5['mapper']['unbindElementFromMarkerName'](_0x579c7e,_0x2d05a3['markerName']));}},{'priority':'high'});}),_0x1f26f6['model']['document']['registerPostFixer'](_0x6869ab=>{let _0x4273c4=!0x1;const _0x54c4b5=Array['from'](_0x1f26f6['model']['document']['differ']['getChangedMarkers']()),_0x540a36=new Set();for(const {name:_0x3b9328,data:_0xe1cb5}of _0x54c4b5){const {group:_0x28f77c,type:_0x2415b8,subType:_0x20a398,id:_0x317856}=this['_splitMarkerName'](_0x3b9328);if('suggestion'!==_0x28f77c)continue;const _0x232df3=this['_suggestions']['get'](_0x317856);if(null!=_0xe1cb5['newRange']){'formatInline'==_0x2415b8&&(_0x4273c4=_0x4273c4||Ut(_0xe1cb5['newRange'],_0x3b9328,_0x6869ab,_0x1f26f6['model']['schema']));const _0x4ff3e6='attribute'==_0x2415b8&&this['_isBlockAttribute'](_0x20a398['split']('|')[0x0]);if(_0xe1cb5['newRange']['isCollapsed']||'$graveyard'==_0xe1cb5['newRange']['root']['rootName']||'formatBlock'==_0x2415b8&&!Ft(_0xe1cb5['newRange'])||_0x4ff3e6&&!Ft(_0xe1cb5['newRange'])||'deletion'==_0x2415b8&&!(!Vt(_0x4a7168=_0xe1cb5['newRange'])&&!function(_0x331561){return _0x331561['start']['parent']==_0x331561['end']['nodeBefore']&&_0x331561['start']['isAtEnd'];}(_0x4a7168)))_0x6869ab['removeMarker'](_0x3b9328),_0x4273c4=!0x0;else{if(!_0x232df3||!_0x232df3['isInContent'])continue;if(_0xe1cb5['newRange']&&_0xe1cb5['oldRange']&&_0xe1cb5['newRange']['isEqual'](_0xe1cb5['oldRange']))continue;_0x540a36['add'](_0x232df3);}}}var _0x4a7168;return _0x540a36['size']>0x0&&(_0x4273c4=!!this['_joinWithAdjacentSuggestions'](_0x540a36)||_0x4273c4),_0x4273c4;}),_0x1f26f6['model']['document']['registerPostFixer'](_0x2f8b4e=>{let _0x2c5dbe=!0x1;for(const _0x39f356 of _0x1f26f6['model']['document']['differ']['getChanges']())if('insert'==_0x39f356['type'])for(const _0x4235a2 of this['_suggestions']['values']()){if(_0x4235a2['isMultiRange']||!_0x4235a2['isInContent'])continue;const _0x1b4198='formatBlock'==_0x4235a2['type'],_0x38d2a3=this['_getAttributeKey'](_0x4235a2),_0x3e35a7=_0x38d2a3&&this['_isBlockAttribute'](_0x38d2a3);if(!_0x1b4198&&!_0x3e35a7)continue;const _0x165a9c=_0x4235a2['getFirstRange']();if(_0x165a9c['start']['parent']!=_0x165a9c['end']['parent']&&!_0x165a9c['end']['isAtEnd']){const _0x5a6924=_0x1f26f6['model']['createPositionAt'](_0x165a9c['start']['nodeAfter'],'end'),_0x145a54=_0x1f26f6['model']['createRange'](_0x165a9c['start'],_0x5a6924);_0x2f8b4e['updateMarker'](_0x4235a2['getFirstMarker'](),{'range':_0x145a54}),_0x2c5dbe=!0x0;}}return _0x2c5dbe;}),_0x1f26f6['model']['document']['registerPostFixer'](_0x2de0e7=>this['_processAttributeChanges'](_0x2de0e7)),_0x1f26f6['model']['document']['registerPostFixer'](_0x4448fc=>!_0x4448fc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4448fc)),_0x1f26f6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f26f6['model']['document']['on']('change:data',(_0x20f990,_0x4f1162)=>{if(!_0x4f1162['isLocal']||_0x4f1162['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3fe6c1=_0x1f26f6['model']['document']['differ']['getChanges']();if(0x0==_0x3fe6c1['length'])return;const _0x12b7e2=[],_0x666621=_0x3fe6c1['filter'](_0x5d977f=>'attribute'==_0x5d977f['type']),_0x45d8ed=_0x3fe6c1['filter'](_0x1f6b11=>'insert'==_0x1f6b11['type']&&'$text'!=_0x1f6b11['name']);for(const _0x470160 of _0x666621)this['_isRegisteredAttribute'](_0x470160['attributeKey'])&&_0x12b7e2['push']({'key':_0x470160['attributeKey'],'newValue':_0x470160['attributeNewValue'],'oldValue':_0x470160['attributeOldValue'],'range':Pt(_0x470160['range'],_0x1f26f6['model'])});for(const _0x2aa76a of _0x45d8ed){if('rename'!=_0x2aa76a['action']&&'refresh'!=_0x2aa76a['action'])continue;const _0xefa1f2=Lt(_0x2aa76a['position']['nodeAfter'],_0x1f26f6['model']),_0x52b66a=_0x2aa76a['before'];'rename'==_0x2aa76a['action']&&_0x12b7e2['push']({'key':m,'newValue':_0x2aa76a['name'],'oldValue':_0x52b66a['name'],'range':_0xefa1f2});for(const [_0x290958,_0x3c97f0]of _0x52b66a['attributes']){if(!this['_isRegisteredAttribute'](_0x290958))continue;const _0x2a09b3=_0x2aa76a['attributes']['get'](_0x290958);_0x3c97f0!==_0x2a09b3&&_0x12b7e2['push']({'key':_0x290958,'newValue':_0x2a09b3,'oldValue':_0x3c97f0,'range':_0xefa1f2});}for(const [_0x28d55f,_0x5b2ccf]of _0x2aa76a['attributes'])this['_isRegisteredAttribute'](_0x28d55f)&&(_0x52b66a['attributes']['has'](_0x28d55f)||_0x12b7e2['push']({'key':_0x28d55f,'newValue':_0x5b2ccf,'oldValue':null,'range':_0xefa1f2}));}0x0!=_0x12b7e2['length']&&_0x1f26f6['model']['enqueueChange'](_0x4f1162,_0x1ca7da=>{const _0x8b7b3d=_0x524896();for(const {range:_0x3b153c,key:_0x2ec889,oldValue:_0x4c5d3e,newValue:_0x1ae346}of _0x12b7e2)this['markAttributeChange'](_0x3b153c,_0x2ec889,_0x4c5d3e,_0x1ae346,{'groupId':_0x8b7b3d});this['_reduceExistingSuggestions'](_0x1ca7da,_0x12b7e2);});},{'priority':'lowest'}),_0x1f26f6['model']['markers']['on']('update:suggestion',(_0x1ec660,_0x408772,_0x39cb45)=>{if(null==_0x39cb45){const {id:_0x488a00}=this['_splitMarkerName'](_0x408772['name']),_0x339d14=this['_suggestions']['get'](_0x488a00);_0x339d14&&_0x339d14['addMarkerName'](_0x408772['name']);}}),_0x1f26f6['model']['document']['on']('change:data',()=>{const _0x3ec399=Array['from'](_0x1f26f6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1f558c=>'suggestion'===this['_splitMarkerName'](_0x1f558c['name'])['group']);if(0x0===_0x3ec399['length'])return;_0x3ec399['sort']((_0x4a05f5,_0x3fd5ed)=>{const _0x5d6353=_0x4a05f5['data']['oldRange'],_0x529515=_0x3fd5ed['data']['oldRange'];return null===_0x5d6353&&null===_0x529515?0x0:null===_0x5d6353&&null!==_0x529515?-0x1:null!==_0x5d6353&&null===_0x529515?0x1:_0x5d6353['start']['isBefore'](_0x529515['start'])?-0x1:0x1;});const _0x10636a=new Set(),_0x3ea8f5=new Set();for(const {name:_0x2ee40e,data:_0x1f0973}of _0x3ec399){const {id:_0x4f0997}=this['_splitMarkerName'](_0x2ee40e);if(null===_0x1f0973['oldRange']){const _0x2b1ac4=this['_handleNewSuggestionMarker'](_0x2ee40e);_0x3ea8f5['add'](_0x2b1ac4);}else{const _0x191dda=this['_suggestions']['get'](_0x4f0997);null!==_0x1f0973['newRange']||_0x191dda['isInContent']?(_0x10636a['add'](_0x191dda['head']),_0x3ea8f5['add'](_0x191dda)):this['_removeSuggestion'](_0x191dda);}}_0x3ea8f5['size']>0x0&&this['_refreshSuggestionsChain'](_0x3ea8f5);for(const _0x27fe69 of _0x10636a)this['fire']('suggestionChanged',_0x27fe69);}),_0x1f26f6['model']['on']('applyOperation',(_0x2391e5,_0x4c4b61)=>{const _0x5321e6=_0x4c4b61[0x0];if(!this['_suggestions']['size'])return;if(!_0x5321e6['isDocumentOperation'])return;if(_0x5321e6['batch']['isUndo']||!_0x5321e6['batch']['isLocal'])return;let _0x5378d8,_0x46b613;switch(_0x5321e6['type']){case'insert':_0x5378d8=_0x1f26f6['model']['createPositionAt'](_0x5321e6['position']),_0x46b613=_0x5378d8['getShiftedBy'](_0x5321e6['howMany']);break;case'split':_0x5378d8=_0x1f26f6['model']['createPositionAt'](_0x5321e6['splitPosition']),_0x46b613=_0x1f26f6['model']['createPositionAt'](_0x5321e6['moveTargetPosition']);break;case'move':_0x5378d8=_0x1f26f6['model']['createPositionAt'](_0x5321e6['targetPosition']),_0x46b613=_0x5378d8['getShiftedBy'](_0x5321e6['howMany']);break;default:return;}const _0x265070=_0x1f26f6['model']['createRange'](_0x5378d8,_0x46b613);_0x1f26f6['model']['change'](()=>{for(const {suggestion:_0x32e353,meta:_0x281552}of this['_findSuggestions'](_0x265070)){if(_0x32e353['isMultiRange'])continue;if('formatInline'==_0x32e353['type'])continue;const _0x58bb37=this['_getAttributeKey'](_0x32e353);if(_0x58bb37&&this['_isBlockAttribute'](_0x58bb37)&&'split'!=_0x5321e6['type'])continue;const _0x5d8f50=_0x32e353['data']&&_0x32e353['data']['multipleBlocks'];('formatBlock'!=_0x32e353['type']||'split'==_0x5321e6['type']&&!_0x5d8f50)&&(_0x281552['containsRangeInObject']||'insertion'==_0x32e353['type']&&_0x281552['isOwn']||_0x32e353['getFirstRange']()['containsRange'](_0x265070)&&this['_breakSuggestionMarker'](_0x32e353,_0x5378d8,_0x46b613));}});},{'priority':'lowest'}),_0x1f26f6['model']['on']('deleteContent',(_0xa9de8c,_0x2069ce)=>{const _0x1b498f=_0x2069ce[0x0],_0x524aaf=_0x2069ce[0x1];if(_0x524aaf&&_0x524aaf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1b498f['isCollapsed'])return;const _0x29e09c=_0x1f26f6['model']['schema'],{start:_0x42ff5b,end:_0x382488}=_0x1b498f['getFirstRange'](),_0x5ebfdc=_0x42ff5b['nodeAfter']&&_0x29e09c['isLimit'](_0x42ff5b['nodeAfter'])?null:_0x29e09c['getNearestSelectionRange'](_0x42ff5b,'forward'),_0x48d452=_0x382488['nodeBefore']&&_0x29e09c['isLimit'](_0x382488['nodeBefore'])?null:_0x29e09c['getNearestSelectionRange'](_0x382488,'backward'),_0xd6990f=_0x1f26f6['model']['createRange'](_0x5ebfdc?_0x5ebfdc['start']:_0x42ff5b,_0x48d452?_0x48d452['end']:_0x382488);_0x1f26f6['model']['change'](_0x2e27ff=>{this['markDeletion'](_0xd6990f);const _0x194b6d=_0x1f26f6['model']['schema']['getNearestSelectionRange'](_0xd6990f['start']);_0x1b498f['is']('documentSelection')?_0x2e27ff['setSelection'](_0x194b6d):_0x1b498f['setTo'](_0x194b6d);}),_0xa9de8c['stop']();},{'priority':_0x2388dd['normal']+0xa}),_0x1f26f6['model']['on']('insertContent',(_0x3bafc0,_0x3074f8)=>{const _0x703ccb=_0x3074f8[_0x3074f8['length']-0x1];_0x703ccb&&_0x703ccb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f26f6['model']['change'](()=>{let _0x2bf9d2=_0x1f26f6['model']['insertContent'](_0x3074f8[0x0],_0x3074f8[0x1],_0x3074f8[0x2],{'forceDefaultExecution':!0x0});if(!_0x2bf9d2)return;_0x3bafc0['return']=_0x2bf9d2['clone']();const _0x5c2d57=_0x2bf9d2['end']['nodeBefore'],_0x247c02=_0x1f26f6['model']['schema'];_0x5c2d57&&_0x247c02['isBlock'](_0x5c2d57)&&!_0x247c02['isObject'](_0x5c2d57)&&(_0x2bf9d2=_0x1f26f6['model']['createRange'](_0x2bf9d2['start'],_0x1f26f6['model']['createPositionAt'](_0x5c2d57,'end'))),this['markInsertion'](_0x2bf9d2);}),_0x3bafc0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x55c73f=new x(_0x1f26f6,this['_suggestions']);_0x1f26f6['commands']['add']('acceptSuggestion',_0x55c73f),this['enableCommand']('acceptSuggestion');const _0x43a792=new R(_0x1f26f6,this['_suggestions']);_0x1f26f6['commands']['add']('discardSuggestion',_0x43a792),this['enableCommand']('discardSuggestion'),_0x1f26f6['commands']['add']('acceptAllSuggestions',new E(_0x1f26f6,_0x55c73f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f26f6['commands']['add']('discardAllSuggestions',new E(_0x1f26f6,_0x43a792,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f26f6['commands']['add']('acceptSelectedSuggestions',new O(_0x1f26f6,_0x55c73f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f26f6['commands']['add']('discardSelectedSuggestions',new O(_0x1f26f6,_0x43a792,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x544b2f=_0x1f26f6['plugins']['get']('CommentsRepository');this['listenTo'](_0x544b2f,'addComment',(_0x3d5b9d,{threadId:_0x3720e7})=>{const _0x10e9d3=this['_suggestions']['get'](_0x3720e7);_0x10e9d3&&_0x10e9d3['commentThread']&&0x1===_0x10e9d3['commentThread']['length']&&this['_updateSuggestionData'](_0x3720e7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x544b2f,'removeComment',(_0xe19b75,{threadId:_0x502c02})=>{const _0x119396=this['_suggestions']['get'](_0x502c02);_0x119396&&_0x119396['commentThread']&&!_0x119396['commentThread']['length']&&this['_updateSuggestionData'](_0x502c02,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x29800b){if(this['_adapter'])throw new _0x3f354f('track-changes-adapter-already-set',this);this['_adapter']=_0x29800b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x25dcd3=!0x1,toJSON:_0x3ec68c=!0x1}={}){const _0x182353=[];for(const _0x10f26c of this['_suggestions']['values']())_0x25dcd3&&!_0x10f26c['isInContent']||_0x182353['push'](_0x10f26c);return _0x3ec68c?_0x182353['map'](_0x3a92b1=>_0x3a92b1['toJSON']()):_0x182353;}['getSuggestion'](_0x41da31){const _0x1fe2dd=this['_suggestions']['get'](_0x41da31);if(!_0x1fe2dd)throw new _0x3f354f('track-changes-suggestion-not-found',this);return _0x1fe2dd;}['hasSuggestion'](_0xa73cf3){return this['_suggestions']['has'](_0xa73cf3);}['addSuggestionData'](_0x1c389f){const {authorId:_0x110118,id:_0x421f60,attributes:_0x3d9d37}=_0x1c389f,[_0x189098,_0x11dc49]=_0x1c389f['type']['split'](':'),_0x5b4188=this['_suggestions']['get'](_0x421f60)||this['_createSuggestion'](_0x189098,_0x11dc49,_0x421f60,_0x110118,_0x3d9d37);if(this['_addThreadToSuggestion'](_0x5b4188),this['_checkSuggestionCorrectness'](_0x5b4188,_0x189098,_0x11dc49||null,_0x110118),_0x5b4188['createdAt']=_0x1c389f['createdAt'],_0x5b4188['_isDataLoaded']=!0x0,_0x3d9d37&&_0x3d9d37['@external']){const _0x1dd0d5=_0x3d9d37['@external'],_0x48e023=this['_getExternalAuthor'](_0x1dd0d5['authorName']);_0x5b4188['authoredAt']=_0x1dd0d5['createdAt'],_0x5b4188['author']=_0x48e023,_0x5b4188['isExternal']=!0x0;}else _0x5b4188['authoredAt']=_0x1c389f['createdAt'];switch(_0x1c389f['data']&&(_0x5b4188['data']=_0x1c389f['data']),_0x1c389f['attributes']&&(_0x5b4188['attributes']=_0x1c389f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5b4188['_saved']=!0x0),this['_suggestionState']['get'](_0x5b4188)){case'notReady':this['_suggestionState']['set'](_0x5b4188,'dataReady');break;case'markerReady':_0x5b4188['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5b4188])),this['_refreshSuggestionsChain'](new Set([_0x5b4188])),this['_suggestionState']['set'](_0x5b4188,'ready'),this['fire']('suggestionLoaded',_0x5b4188)):this['_suggestionState']['set'](_0x5b4188,'removed');}return _0x5b4188;}['acceptSuggestion'](_0x157536){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x40b2b9 of _0x157536['getAllAdjacentSuggestions']())_0x40b2b9['accept']();});});}['discardSuggestion'](_0x3e41d6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55de07 of _0x3e41d6['getAllAdjacentSuggestions']())_0x55de07['discard']();});});}['enableCommand'](_0x254ffe,_0x4ab98a){const _0x1cee42=this['editor']['commands']['get'](_0x254ffe);if(!_0x1cee42)throw new _0x3f354f('track-changes-command-not-found',this,{'commandName':_0x254ffe});if(this['_enabledCommands']['has'](_0x1cee42))throw new _0x3f354f('track-changes-enable-command-twice',this,{'commandName':_0x254ffe});this['_enabledCommands']['add'](_0x1cee42),_0x4ab98a&&_0x1cee42['on']('execute',(_0x147464,_0x30ef24)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30ef24['length']>0x0&&_0x30ef24[_0x30ef24['length']-0x1]&&_0x30ef24[_0x30ef24['length']-0x1]['forceDefaultExecution']?_0x30ef24['pop']():(_0x147464['return']=_0x4ab98a((..._0xb5a23c)=>_0x1cee42['execute'](..._0xb5a23c,{'forceDefaultExecution':!0x0}),..._0x30ef24),_0x147464['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3fab8a){let _0x5b71b3,_0x526375;const _0x2147e6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5b71b3=_0x3fab8a();}catch(_0x158bc7){_0x526375=_0x158bc7;}return _0x2147e6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x526375&&_0x3f354f['rethrowUnexpectedError'](_0x526375,this),_0x5b71b3;}['markInsertion'](_0x3e65f2,_0x65595=null,_0x15437b={}){if(_0x3e65f2['isCollapsed'])return null;const _0x1d4537=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xae4e52,meta:_0x443d5c}of this['_findSuggestions'](_0x3e65f2,'insertion'))if(_0x443d5c['isOwn']){if(!_0x443d5c['isNextTo']){if(_0x443d5c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0xae4e52,_0x15437b))continue;return _0xae4e52;}if(qt(_0xae4e52,_0x15437b))return _0xae4e52;this['_breakSuggestionMarker'](_0xae4e52,_0x3e65f2['start'],_0x3e65f2['end']);break;}if(_0x65595==_0xae4e52['subType']&&qt(_0xae4e52,_0x15437b)){const _0x3e2fb6=_0xae4e52['getFirstRange']();return _0x3e2fb6['start']['isEqual'](_0x3e65f2['end'])?this['_setSuggestionRange'](_0xae4e52,this['_model']['createRange'](_0x3e65f2['start'],_0x3e2fb6['end'])):this['_setSuggestionRange'](_0xae4e52,this['_model']['createRange'](_0x3e2fb6['start'],_0x3e65f2['end'])),_0xae4e52;}}const _0x3d1fad=_0x524896(),_0x4a8b33=_0x1d4537['id'],_0x4dd48c=_0x65595?'insertion:'+_0x65595:'insertion',_0x535a07=this['_setSuggestionData']({'id':_0x3d1fad,'type':_0x4dd48c,'createdAt':new Date(),'authorId':_0x4a8b33,'attributes':_0x15437b});return this['_addSuggestionMarker'](_0x4dd48c,_0x3d1fad,_0x4a8b33,_0x3e65f2),_0x535a07;}['markMultiRangeInsertion'](_0x22dc51,_0x28b394='multi',_0x9cc9fb={}){const _0xaeebd=this['editor']['plugins']['get']('Users')['me'],_0xee4ba7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x28b394,'join');for(const _0x566199 of this['getSuggestions']())if(_0x566199['author']['id']==_0xaeebd['id']&&'insertion'==_0x566199['type']&&_0x566199['subType']==_0x28b394&&qt(_0x566199,_0x9cc9fb)&&(_0xee4ba7(_0x566199['getRanges'](),_0x22dc51)||_0xee4ba7(_0x22dc51,_0x566199['getRanges']()))){for(const _0x117093 of _0x22dc51)_0x566199['addRange'](_0x117093);return _0x566199;}for(const {suggestion:_0xc5954d,meta:_0x10b42a}of this['_findSuggestions'](_0x22dc51,'insertion')){if(!_0x10b42a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x10b42a['containsRangeInObject'])continue;if(!qt(_0xc5954d,_0x9cc9fb))continue;let _0x223055=!0x0;for(const _0xd9a6c6 of _0xc5954d['getRanges']())for(const _0x235539 of _0x22dc51)if(!_0xd9a6c6['containsRange'](_0x235539)){_0x223055=!0x1;break;}if(_0x223055)return _0xc5954d;}const _0x324d24=_0x524896(),_0x22c91a=_0xaeebd['id'],_0x2b0538='insertion:'+_0x28b394,_0x30d113=this['_setSuggestionData']({'id':_0x324d24,'type':_0x2b0538,'createdAt':new Date(),'authorId':_0x22c91a,'attributes':_0x9cc9fb});for(const _0x5e1688 of _0x22dc51)this['_addSuggestionMarker'](_0x2b0538,_0x324d24,_0x22c91a,_0x5e1688,u['getMultiRangeId']());return _0x30d113;}['markInlineFormat'](_0x1daff9,_0x7aa0fe,_0x11f6d8=null,_0x16d397={}){if(_0x11f6d8=_0x11f6d8||Gt(_0x7aa0fe),_0x1daff9['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2efbb0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11f6d8,'accept');return this['forceDefaultExecution'](()=>_0x2efbb0([_0x1daff9],_0x7aa0fe,_0x16d397)),null;}const _0x5ed1cf=this['editor']['plugins']['get']('Users')['me'],_0x83e03e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x442aee,meta:_0x1496ac}of this['_findSuggestions'](_0x1daff9,'insertion'))_0x1496ac['isOwn']&&!_0x1496ac['isInsideObject']&&_0x83e03e['push'](..._0x442aee['getRanges']());}const _0x5209d9=function(_0x85729b,_0xc5452b){const _0x1d0d1f=[];for(const _0x2ae996 of _0xc5452b){const _0x49fe1b=_0x85729b['getIntersection'](_0x2ae996);_0x49fe1b&&_0x1d0d1f['push'](_0x49fe1b);}return _0x1d0d1f;}(_0x1daff9,_0x83e03e),_0x4d9eb2=function(_0x45748d,_0x505101){const _0x1a439a=[_0x45748d];for(const _0x4ee58c of _0x505101){let _0x1e6af4=0x0;for(;_0x1e6af4<_0x1a439a['length'];){const _0x339b76=_0x1a439a[_0x1e6af4]['getDifference'](_0x4ee58c);_0x1a439a['splice'](_0x1e6af4,0x1,..._0x339b76),_0x1e6af4+=_0x339b76['length'];}}return _0x1a439a;}(_0x1daff9,_0x83e03e);_0x5209d9['length']&&this['_model']['change'](()=>{for(const _0x276a85 of _0x5209d9){const _0x236593=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11f6d8,'accept');this['forceDefaultExecution'](()=>_0x236593([_0x276a85],_0x7aa0fe,_0x16d397));}});for(const _0x174e98 of _0x4d9eb2){let _0x4ee39f=null,_0x1576b9=_0x174e98['start'],_0x5da1cf=_0x174e98['end'];for(const {suggestion:_0x1ad363,meta:_0x59e657}of this['_findSuggestions'](_0x174e98,'formatInline')){if(!_0x59e657['isOwn'])continue;if(_0x1ad363['subType']!=_0x11f6d8)continue;if(!qt(_0x1ad363,_0x16d397))continue;const _0x1365dc=_0x1ad363['getFirstRange']();if(_0x1365dc['containsRange'](_0x174e98,!0x0))return null;_0x1576b9=_0x1576b9['isBefore'](_0x1365dc['start'])?_0x1576b9:_0x1365dc['start'],_0x5da1cf=_0x5da1cf['isAfter'](_0x1365dc['end'])?_0x5da1cf:_0x1365dc['end'],_0x4ee39f?_0x1365dc['start']['isBefore'](_0x4ee39f['getFirstRange']()['start'])?(_0x4ee39f['removeMarkers'](),_0x4ee39f=_0x1ad363):_0x1ad363['removeMarkers']():_0x4ee39f=_0x1ad363;}const _0x314c1e=this['_model']['createRange'](_0x1576b9,_0x5da1cf);if(_0x4ee39f)this['_setSuggestionRange'](_0x4ee39f,_0x314c1e);else{const _0x2eb5aa=_0x524896(),_0x1c0833=_0x5ed1cf['id'];this['_setSuggestionData']({'id':_0x2eb5aa,'type':'formatInline:'+_0x11f6d8,'data':_0x7aa0fe,'createdAt':new Date(),'authorId':_0x1c0833,'attributes':_0x16d397}),this['_addSuggestionMarker']('formatInline:'+_0x11f6d8,_0x2eb5aa,_0x1c0833,_0x314c1e);}}return null;}['markBlockFormat'](_0x5ee864,_0x20063f,_0x3b35a0=[],_0x413e3d=null,_0x22345d={}){_0x20063f['formatGroupId']||(_0x20063f['formatGroupId']=_0x20063f['commandName']),_0x20063f['multipleBlocks']=_0x5ee864['is']('range'),_0x413e3d=_0x413e3d||Gt(_0x20063f);const _0x4db999=_0x3b35a0['map'](_0x477c4a=>Lt(_0x477c4a,this['_model'])),_0x5bf274=_0x5ee864['is']('range')?_0x5ee864:Lt(_0x5ee864,this['_model']);if('never'===this['_trackFormatChanges']){const _0x41ff85=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x413e3d,'accept');return this['forceDefaultExecution'](()=>_0x41ff85([_0x5bf274],_0x20063f,_0x22345d)),null;}_0x4db999['push'](_0x5bf274);let _0x44d5ad=!0x0;for(const _0x3d58b5 of _0x4db999)if(!this['_rangeIsInLocalUserInsertion'](_0x3d58b5)){_0x44d5ad=!0x1;break;}if(_0x44d5ad&&'always'!==this['_trackFormatChanges']){const _0x487d0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x413e3d,'accept');return this['forceDefaultExecution'](()=>_0x487d0d([_0x5bf274],_0x20063f,_0x22345d)),null;}let _0x3737d6=null,_0x5171a6=_0x5bf274['start'],_0x4d5965=_0x5bf274['end'];for(const {suggestion:_0x5638c3,meta:_0x151ae8}of this['_findSuggestions'](_0x5bf274,'formatBlock')){if(!_0x151ae8['isOwn'])continue;if(_0x151ae8['isNextTo']||_0x151ae8['containsRangeInObject']||_0x151ae8['isInsideObject'])continue;if(_0x5638c3['data']['formatGroupId']!=_0x20063f['formatGroupId'])continue;if(!qt(_0x5638c3,_0x22345d))continue;const _0x831087=_0x5638c3['getFirstRange']();if(_0x5638c3['subType']==_0x413e3d){if(_0x831087['containsRange'](_0x5bf274,!0x0))return null;_0x5171a6=_0x5171a6['isBefore'](_0x831087['start'])?_0x5171a6:_0x831087['start'],_0x4d5965=_0x4d5965['isAfter'](_0x831087['end'])?_0x4d5965:_0x831087['end'],_0x3737d6?_0x831087['start']['isBefore'](_0x3737d6['getFirstRange']()['start'])?(_0x3737d6['removeMarkers'](),_0x3737d6=_0x5638c3):_0x5638c3['removeMarkers']():_0x3737d6=_0x5638c3;}else{const _0x67de22=_0x5bf274['getIntersection'](_0x831087);this['_cutOutSuggestionMarker'](_0x5638c3,_0x67de22);}}const _0x39695e=this['editor']['plugins']['get']('Users')['me'],_0xf88612=_0x524896(),_0x13e996=_0x39695e['id'];if(_0x3737d6)return this['_setSuggestionRange'](_0x3737d6,this['_model']['createRange'](_0x5171a6,_0x4d5965)),_0x3737d6;{const _0x8b292e=this['_setSuggestionData']({'id':_0xf88612,'type':'formatBlock:'+_0x413e3d,'data':_0x20063f,'createdAt':new Date(),'authorId':_0x13e996,'attributes':_0x22345d});return this['_addSuggestionMarker']('formatBlock:'+_0x413e3d,_0xf88612,_0x13e996,this['_model']['createRange'](_0x5171a6,_0x4d5965)),_0x8b292e;}}['markMultiRangeBlockFormat'](_0x39b7d9,_0x321682,_0x58912f=[],_0x4d8514=null,_0x45a1c5={}){_0x321682['formatGroupId']||(_0x321682['formatGroupId']=_0x321682['commandName']);const _0x4036c5=_0x39b7d9[0x0];_0x321682['multipleBlocks']=_0x4036c5['is']('range'),_0x4d8514=_0x4d8514||Gt(_0x321682);const _0x17ad69=_0x58912f['map'](_0x5d2dba=>Lt(_0x5d2dba,this['_model'])),_0x475acd=_0x4036c5['is']('range')?_0x39b7d9:_0x39b7d9['map'](_0x5bc271=>Lt(_0x5bc271,this['_model']));if('never'===this['_trackFormatChanges']){const _0x434103=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d8514,'accept');return this['forceDefaultExecution'](()=>_0x434103(_0x475acd,_0x321682,_0x45a1c5)),null;}_0x17ad69['push'](..._0x475acd);let _0x2c3925=!0x0;for(const _0x766e14 of _0x17ad69)if(!this['_rangeIsInLocalUserInsertion'](_0x766e14)){_0x2c3925=!0x1;break;}if(_0x2c3925&&'always'!==this['_trackFormatChanges']){const _0x4b6e48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d8514,'accept');return this['forceDefaultExecution'](()=>_0x4b6e48(_0x475acd,_0x321682,_0x45a1c5)),null;}const _0x1dc5d7=this['editor']['plugins']['get']('Users')['me'];for(const _0x46e4cc of this['getSuggestions']()){if(_0x46e4cc['author']['id']!=_0x1dc5d7['id'])continue;if('formatBlock'!=_0x46e4cc['type']||_0x46e4cc['data']['formatGroupId']!=_0x321682['formatGroupId'])continue;if(!qt(_0x46e4cc,_0x45a1c5))continue;const _0x1feb2a=_0x46e4cc['subType']==_0x4d8514;for(let _0x3d117d=0x0;_0x3d117d<_0x475acd['length'];_0x3d117d++){const _0x32c8a9=_0x475acd[_0x3d117d];for(const _0xdfade5 of _0x46e4cc['getMarkers']()){const _0x32f474=_0xdfade5['getRange']();if(_0x32c8a9['isEqual'](_0x32f474)){_0x1feb2a?(_0x475acd['splice'](_0x3d117d,0x1),_0x3d117d--):_0x46e4cc['removeMarker'](_0xdfade5['name']);break;}}}}if(0x0==_0x475acd['length'])return null;const _0x5a4e04=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d8514,'join');for(const _0x5a7b2c of this['getSuggestions']())if(_0x5a7b2c['author']['id']==_0x1dc5d7['id']&&'formatBlock'==_0x5a7b2c['type']&&_0x5a7b2c['data']['formatGroupId']==_0x321682['formatGroupId']&&_0x5a7b2c['subType']==_0x4d8514&&qt(_0x5a7b2c,_0x45a1c5)&&(_0x5a4e04(_0x5a7b2c['getRanges'](),_0x475acd)||_0x5a4e04(_0x475acd,_0x5a7b2c['getRanges']()))){for(const _0x2b64c8 of _0x475acd)_0x5a7b2c['addRange'](_0x2b64c8);return _0x5a7b2c;}const _0x51bd7c=_0x524896(),_0x4046e6=_0x1dc5d7['id'],_0x3b564d='formatBlock:'+_0x4d8514,_0x23ee8a=this['_setSuggestionData']({'id':_0x51bd7c,'type':_0x3b564d,'data':_0x321682,'createdAt':new Date(),'authorId':_0x4046e6,'attributes':_0x45a1c5});for(const _0x55eaa3 of _0x475acd)this['_addSuggestionMarker'](_0x3b564d,_0x51bd7c,_0x4046e6,_0x55eaa3,u['getMultiRangeId']());return _0x23ee8a;}['markDeletion'](_0x3640ce,_0x4d6505=null,_0x1ad11b={}){if(_0x3640ce['isCollapsed'])return null;const _0x4b5f45=this['editor']['plugins']['get']('Users')['me'],_0x28664b=new _0x4f29af(_0x3640ce['start'],_0x3640ce['end']);for(const {suggestion:_0x4de37a,meta:_0xdec3d3}of this['_findSuggestions'](_0x28664b,'insertion'))if(_0xdec3d3['isOwn']&&!_0xdec3d3['isNextTo']){if(_0x4de37a['isMultiRange']){const _0x3166b2=_0x4de37a['getRanges']()['filter'](_0x1f38d4=>'$graveyard'!=_0x1f38d4['root']['rootName']);_0x3166b2['every'](_0x3fe2b1=>_0x28664b['containsRange'](_0x3fe2b1,!0x0))&&_0x4de37a['discard']();if(_0x3166b2['some'](_0x3ad9c5=>_0x3ad9c5['containsRange'](_0x28664b,!0x0))){const _0x308116=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d6505,'accept');return this['forceDefaultExecution'](()=>_0x308116([_0x28664b],null,_0x1ad11b)),null;}}else{const _0xc80b5=_0x28664b['getIntersection'](_0x4de37a['getFirstRange']());null!==_0xc80b5&&_0x4de37a['_onDiscard']([_0xc80b5],null,_0x1ad11b);}}if(_0x28664b['detach'](),_0x28664b['isCollapsed']||'$graveyard'==_0x28664b['root']['rootName'])return null;let _0x3a1faf=null,_0x4e6caf=_0x28664b['start'],_0x58f786=_0x28664b['end'];const _0x2eeb83=this['_findSuggestions'](_0x28664b,'deletion');for(const {suggestion:_0x23abb2,meta:_0x357736}of _0x2eeb83){const _0x27e79a=this['_model']['createRange'](_0x4e6caf,_0x58f786);if(_0x357736['isOwn']&&(this['_mergeNestedSuggestions']||!_0x357736['containsRangeInObject']&&!_0x357736['isInsideObject'])){if(_0x23abb2['isMultiRange']){if(!qt(_0x23abb2,_0x1ad11b))continue;let _0x14b4a0=!0x0;for(const _0x16296c of _0x23abb2['getRanges']()){if(_0x16296c['containsRange'](_0x27e79a,!0x0))return _0x23abb2;_0x27e79a['containsRange'](_0x16296c)||(_0x14b4a0=!0x1);}_0x14b4a0&&_0x23abb2['discard']();}else{const _0x33da7d=_0x23abb2['getFirstRange']();if(_0x33da7d['containsRange'](_0x27e79a,!0x0))return _0x23abb2;if(!qt(_0x23abb2,_0x1ad11b)){_0x27e79a['containsRange'](_0x33da7d)?_0x23abb2['removeMarkers']():_0x33da7d['containsPosition'](_0x4e6caf)?_0x4e6caf=_0x33da7d['end']:_0x33da7d['containsPosition'](_0x58f786)&&(_0x58f786=_0x33da7d['start']);continue;}_0x4e6caf=_0x4e6caf['isBefore'](_0x33da7d['start'])?_0x4e6caf:_0x33da7d['start'],_0x58f786=_0x58f786['isAfter'](_0x33da7d['end'])?_0x58f786:_0x33da7d['end'],_0x1ad11b=Object['assign']({},_0x23abb2['attributes']),_0x3a1faf?_0x33da7d['start']['isBefore'](_0x3a1faf['getFirstRange']()['start'])?(_0x3a1faf['removeMarkers'](),_0x3a1faf=_0x23abb2):_0x23abb2['removeMarkers']():_0x3a1faf=_0x23abb2;}}}if(_0x3a1faf)return this['_setSuggestionRange'](_0x3a1faf,this['_model']['createRange'](_0x4e6caf,_0x58f786)),_0x3a1faf;{const _0x149715=_0x524896(),_0x4f18b4=this['_model']['createRange'](_0x4e6caf,_0x58f786),_0x1a1940=_0x4b5f45['id'],_0x426bec=_0x4d6505?'deletion:'+_0x4d6505:'deletion',_0x53802a=this['_setSuggestionData']({'id':_0x149715,'type':_0x426bec,'createdAt':new Date(),'authorId':_0x1a1940,'attributes':_0x1ad11b});return this['_addSuggestionMarker'](_0x426bec,_0x149715,_0x1a1940,_0x4f18b4),_0x53802a;}}['markMultiRangeDeletion'](_0x468413,_0xf0f9df='multi',_0x45d62e={}){const _0x5456e5=this['editor']['plugins']['get']('Users')['me'],_0x62db58=_0x468413['map'](_0x51e7e2=>new _0x4f29af(_0x51e7e2['start'],_0x51e7e2['end'])),_0x36551e=new Set();for(const {suggestion:_0x5744c7,meta:_0x324746}of this['_findSuggestions'](_0x62db58,'insertion'))_0x324746['isOwn']&&!_0x324746['isNextTo']&&_0x36551e['add'](_0x5744c7);for(const _0x3f7ed2 of _0x36551e)if(_0x3f7ed2['isMultiRange']){const _0x598587=_0x3f7ed2['getRanges']();(!_0x3f7ed2['attributes']||!_0x3f7ed2['attributes']['skipNestingCheck'])&&(_0x598587['every'](_0x1bb9bb=>_0x62db58['some'](_0x108268=>_0x108268['containsRange'](_0x1bb9bb,!0x0)))&&_0x3f7ed2['discard']());if(_0x62db58['every'](_0x5e6765=>_0x598587['some'](_0x1f8d17=>_0x1f8d17['containsRange'](_0x5e6765,!0x0)))){const _0x2152d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf0f9df,'accept');return this['forceDefaultExecution'](()=>_0x2152d6(_0x468413,null,_0x45d62e)),null;}}else{const _0x50af55=_0x3f7ed2['getFirstRange']();_0x62db58['some'](_0x461b6f=>_0x461b6f['containsRange'](_0x50af55,!0x0))&&_0x3f7ed2['discard']();if(_0x62db58['every'](_0x50aa80=>_0x50af55['containsRange'](_0x50aa80,!0x0))){const _0x457129=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf0f9df,'accept');return this['forceDefaultExecution'](()=>_0x457129(_0x62db58,null,_0x45d62e)),null;}}const _0x5661cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf0f9df,'join');let _0x37c69b=null;for(const _0x42540a of this['getSuggestions']())if(_0x42540a['author']['id']==_0x5456e5['id']&&_0x42540a['isInContent']&&'deletion'==_0x42540a['type']&&_0x42540a['subType']==_0xf0f9df&&qt(_0x42540a,_0x45d62e)&&(_0x5661cf(_0x42540a['getRanges'](),_0x62db58)||_0x5661cf(_0x62db58,_0x42540a['getRanges']()))){if(_0x37c69b){if(_0x42540a['commentThread']&&_0x42540a['commentThread']['length'])continue;for(const _0x4c41f9 of _0x42540a['getRanges']())_0x37c69b['isIntersectingWithRange'](_0x4c41f9)||_0x37c69b['addRange'](_0x4c41f9);_0x42540a['removeMarkers']();}else{_0x37c69b=_0x42540a;for(const _0x47e2f8 of _0x62db58)_0x42540a['isIntersectingWithRange'](_0x47e2f8)||_0x42540a['addRange'](_0x47e2f8);}}if(_0x37c69b)return _0x37c69b;_0x36551e['clear']();for(const {suggestion:_0x325f7d,meta:_0x28c283}of this['_findSuggestions'](_0x62db58,'deletion'))_0x28c283['isOwn']&&(this['_mergeNestedSuggestions']||!_0x28c283['containsRangeInObject']&&!_0x28c283['isInsideObject'])&&qt(_0x325f7d,_0x45d62e)&&_0x36551e['add'](_0x325f7d);for(const _0x11bdf5 of _0x36551e){const _0x35ffd5=_0x11bdf5['getRanges']();if(!_0x45d62e||!_0x45d62e['skipNestingCheck']){if(_0x62db58['every'](_0x2752ff=>_0x35ffd5['some'](_0x1bc9e9=>_0x1bc9e9['containsRange'](_0x2752ff,!0x0))))return _0x11bdf5;}(!_0x11bdf5['attributes']||!_0x11bdf5['attributes']['skipNestingCheck'])&&(_0x35ffd5['every'](_0x3f823e=>_0x62db58['some'](_0x1beda2=>_0x1beda2['containsRange'](_0x3f823e,!0x0)))&&_0x11bdf5['discard']());}const _0x42e6db=_0x524896(),_0x3af9d9=_0x5456e5['id'],_0x5783a2='deletion:'+_0xf0f9df,_0x444ed5=this['_setSuggestionData']({'id':_0x42e6db,'type':_0x5783a2,'createdAt':new Date(),'authorId':_0x3af9d9,'attributes':_0x45d62e});for(const _0x33a91b of _0x62db58)_0x33a91b['detach'](),_0x33a91b['isCollapsed']||'$graveyard'==_0x33a91b['root']['rootName']||this['_addSuggestionMarker'](_0x5783a2,_0x42e6db,_0x3af9d9,_0x33a91b,u['getMultiRangeId']());return _0x444ed5;}['markAttributeChange'](_0x28bf89,_0x2435b8,_0x5286cc,_0x3b4c1e,_0x4b2491){if(_0x28bf89['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x156075=this['editor']['plugins']['get']('Users')['me']['id'],_0x3129b9=Array['from'](this['_suggestions']['values']())['filter'](_0x30329c=>'attribute'==_0x30329c['type']&&_0x30329c['data']['key']==_0x2435b8&&_0x30329c['isIntersectingWithRange'](_0x28bf89));if('default'===this['_trackFormatChanges']){const _0x3ea814=this['_findSuggestions'](_0x28bf89,'insertion')['filter'](({meta:_0x46210e})=>_0x46210e['isOwn']&&!_0x46210e['isInsideObject']&&!_0x46210e['isNextTo'])['map'](({suggestion:_0x5954db})=>_0x5954db);_0x3129b9['unshift'](..._0x3ea814);}const _0x11dd61=new Map([[_0x28bf89,_0x5286cc]]);for(const _0x14ec46 of _0x3129b9){const _0x4874f6='attribute'==_0x14ec46['type']?_0x14ec46['data']['oldValue']:void 0x0,_0x471f9f=_0x14ec46['getFirstRange'](),_0x25d023=Array['from'](_0x11dd61['keys']())['find'](_0x30e4c9=>_0x30e4c9['isIntersecting'](_0x471f9f));if(!_0x25d023)continue;const _0x419f47=_0x25d023['getDifference'](_0x471f9f);this['_isBlockAttribute'](_0x2435b8)&&'insertion'==_0x14ec46['type']&&0x0!=_0x419f47['length']||(_0x11dd61['delete'](_0x25d023),_0x419f47['forEach'](_0x57a2d5=>{_0x11dd61['set'](_0x57a2d5,_0x5286cc);}),'insertion'!=_0x14ec46['type']&&_0x4874f6!=_0x3b4c1e&&_0x11dd61['set'](_0x25d023['getIntersection'](_0x471f9f),_0x4874f6));}const _0x169fe1=[];for(const [_0x38ec6f,_0x216a03]of _0x11dd61){const _0x829275=_0x524896(),_0x47c444={'key':_0x2435b8,'oldValue':_0x216a03,'newValue':_0x3b4c1e};_0x2435b8['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':_0x2435b8});const _0x144419=('attribute:'+(_0x2435b8+'|'+Gt({'newValue':_0x3b4c1e})))['substring'](0x0,0x3c),_0x480b71=this['_setSuggestionData']({'id':_0x829275,'type':_0x144419,'data':_0x47c444,'createdAt':new Date(),'authorId':_0x156075,'attributes':_0x4b2491});_0x169fe1['push'](_0x480b71),this['_addSuggestionMarker'](_0x144419,_0x829275,_0x156075,_0x38ec6f);}return _0x169fe1;}['enableDefaultAttributesIntegration'](_0x18f525){this['enableCommand'](_0x18f525,(_0x554c13,..._0x430fa8)=>{this['_recordAttributeChanges'](()=>{_0x554c13(..._0x430fa8);});});}['registerBlockAttribute'](_0x19bffa){this['_blockAttributeKeys']['add'](_0x19bffa);}['registerInlineAttribute'](_0xae31a8){this['_inlineAttributeKeys']['add'](_0xae31a8);}['_getAttributeKey'](_0xc869b8){return'attribute'==_0xc869b8['type']?_0xc869b8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d4cec,_0x127d57){const _0x2e7aa8=_0x5d4cec['getFirstMarker']();this['_model']['change'](_0x35f9d9=>{_0x35f9d9['updateMarker'](_0x2e7aa8,{'range':_0x127d57});});}['_addThreadToSuggestion'](_0x2d1511){const _0x353afd=_0x2d1511['id'],_0x421302=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x353afd)||this['_commentsRepository']['addCommentThread']({'channelId':_0x421302,'threadId':_0x353afd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c0127=this['_commentsRepository']['getCommentThread'](_0x353afd);_0x4c0127['unbind']('isRemovable'),_0x4c0127['isRemovable']=!0x1,_0x2d1511['commentThread']=_0x4c0127;}['_checkSuggestionCorrectness'](_0x236d21,_0x512df1,_0x2e67c9,_0x8f2302){if(_0x236d21['type']!=_0x512df1||_0x236d21['subType']!=_0x2e67c9||_0x236d21['creator']['id']!=_0x8f2302)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3f354f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1f3b2e,_0x5142f0){const _0x29864b=_0x1f3b2e['getFirstRange']();if(_0x5142f0['isEqual'](_0x29864b))_0x1f3b2e['removeMarkers']();else{if(_0x29864b['containsRange'](_0x5142f0)){const _0x67cedc=this['_model']['createPositionAt'](_0x5142f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f3b2e,this['_model']['createRange'](_0x29864b['start'],_0x67cedc));const _0x4a8fd=_0x524896(),_0x359629=_0x1f3b2e['creator']['id'],_0x45fc08=_0x1f3b2e['type']+':'+_0x1f3b2e['subType'];this['_setSuggestionData']({'id':_0x4a8fd,'type':_0x45fc08,'createdAt':new Date(),'authorId':_0x359629,'data':_0x1f3b2e['data'],'attributes':_0x1f3b2e['attributes']});const _0x4262bc=this['_model']['createPositionAt'](_0x5142f0['end']['parent'],'after'),_0x6bab7a=this['_model']['createRange'](_0x4262bc,_0x29864b['end']);this['_addSuggestionMarker'](_0x45fc08,_0x4a8fd,_0x359629,_0x6bab7a);}else{if(_0x29864b['containsPosition'](_0x5142f0['start'])){const _0x5962d8=this['_model']['createPositionAt'](_0x5142f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f3b2e,this['_model']['createRange'](_0x29864b['start'],_0x5962d8));}else{const _0x587822=this['_model']['createPositionAt'](_0x5142f0['end']['parent'],'after');this['_setSuggestionRange'](_0x1f3b2e,this['_model']['createRange'](_0x587822,_0x29864b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x300dd9){for(const {suggestion:_0x5c8576,meta:_0x5673fd}of this['_findSuggestions'](_0x300dd9,'insertion')){if(!_0x5673fd['isOwn'])continue;const _0x36e885=_0x5c8576['getRanges']();for(const _0x3d0bff of _0x36e885)if(!_0x300dd9['getDifference'](_0x3d0bff)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x22485c){const _0xf535c=this['editor']['plugins']['get']('Users')['getUser'](_0x22485c);if(!_0xf535c)throw new _0x3f354f('track-changes-user-not-found',this);return _0xf535c;}['_getExternalAuthor'](_0x5cf0e9){const _0x356c18=this['editor']['plugins']['get']('Users'),_0x775d0d=_0xc116ba('external:'+_0x5cf0e9),_0x3d079a=_0x356c18['getUser'](_0x775d0d);return _0x3d079a||_0x356c18['addUser']({'id':_0x775d0d,'name':_0x5cf0e9});}['_createSuggestion'](_0x4b43ca,_0x4140b9,_0x27122c,_0x71e486,_0x3d6cdf){const _0x1f0c31=this['_getAuthorFromId'](_0x71e486),_0x2bb6a4=this['_suggestionFactory']['buildSuggestion'](_0x4b43ca,_0x4140b9,_0x27122c,_0x1f0c31,_0x3d6cdf,_0x5bba12=>{this['_updateSuggestionData'](_0x27122c,{'attributes':_0x5bba12});const _0x3c948d=this['getSuggestion'](_0x27122c);this['_joinWithAdjacentSuggestions'](new Set([_0x3c948d])),this['_refreshSuggestionsChain'](new Set([_0x3c948d]));});return this['listenTo'](_0x2bb6a4,'accept',()=>{this['_updateSuggestionData'](_0x27122c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2bb6a4,'discard',()=>{this['_updateSuggestionData'](_0x27122c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x27122c,_0x2bb6a4),this['_suggestionState']['set'](_0x2bb6a4,'notReady'),_0x2bb6a4;}['_splitMarkerName'](_0x369c9b){const _0x3ebb12=_0x369c9b['split'](':');return{'group':_0x3ebb12[0x0],'type':_0x3ebb12[0x1],'subType':_0x3ebb12['length']>=0x5?_0x3ebb12[0x2]:null,'id':_0x3ebb12['length']<0x5?_0x3ebb12[0x2]:_0x3ebb12[0x3],'authorId':_0x3ebb12['length']<0x5?_0x3ebb12[0x3]:_0x3ebb12[0x4],'markerCount':0x6==_0x3ebb12['length']?_0x3ebb12[0x5]:null};}['_breakSuggestionMarker'](_0xd3896a,_0x2ac97d,_0x2891d6){const _0x1bad71=_0xd3896a['getFirstRange'](),_0x124ce7=_0x1bad71['start'],_0x8f7c36=_0x1bad71['end'];this['_setSuggestionRange'](_0xd3896a,this['_model']['createRange'](_0x124ce7,_0x2ac97d));const _0x2b0b33=_0x524896(),_0x52f5e1=_0xd3896a['creator']['id'],_0x34e568=_0xd3896a['type']+(_0xd3896a['subType']?':'+_0xd3896a['subType']:'');this['_setSuggestionData']({'id':_0x2b0b33,'type':_0x34e568,'createdAt':new Date(),'authorId':_0x52f5e1,'originalSuggestionId':_0xd3896a['id'],'attributes':_0xd3896a['attributes'],'data':_0xd3896a['data']});const _0x5d08d0=this['_getAttributeKey'](_0xd3896a);('formatBlock'==_0xd3896a['type']||_0x5d08d0&&this['_isBlockAttribute'](_0x5d08d0))&&(_0x2891d6=this['_model']['createPositionBefore'](_0x2891d6['parent'])),this['_addSuggestionMarker'](_0x34e568,_0x2b0b33,_0x52f5e1,this['_model']['createRange'](_0x2891d6,_0x8f7c36));}['_findSuggestions'](_0x1a3650,_0x7317eb=null){const _0x44bde3=[],_0x1336ea=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1a3650)||(_0x1a3650=[_0x1a3650]);for(const _0x21cbb0 of this['getSuggestions']()){if(!_0x21cbb0['isInContent'])continue;if(_0x7317eb&&_0x21cbb0['type']!=_0x7317eb)continue;let _0x411062=!0x1;for(const _0x142e1a of _0x21cbb0['getRanges']()){for(const _0x393756 of _0x1a3650){const _0x1b3b6e=_0x393756['start']['isEqual'](_0x142e1a['end'])||_0x393756['end']['isEqual'](_0x142e1a['start']);if(_0x1b3b6e||_0x393756['getIntersection'](_0x142e1a)){const _0x37bf02=_0x393756['containsRange'](_0x142e1a)&&Ot(this['_model']['schema'],_0x142e1a['start'],_0x393756),_0x22fa24=_0x142e1a['containsRange'](_0x393756)&&Ot(this['_model']['schema'],_0x393756['start'],_0x142e1a);_0x44bde3['push']({'suggestion':_0x21cbb0,'meta':{'isOwn':_0x1336ea==_0x21cbb0['author'],'isNextTo':_0x1b3b6e,'isInsideObject':_0x37bf02,'containsRangeInObject':_0x22fa24}}),_0x411062=!0x0;break;}}if(_0x411062)break;}}return _0x44bde3;}['_addSuggestionMarker'](_0x1d3bbd,_0x276956,_0x40e0e6,_0x35f99b,_0x47b581){this['_model']['change'](_0x4ea24f=>{let _0x1af55a='suggestion:'+_0x1d3bbd+':'+_0x276956+':'+_0x40e0e6;_0x47b581&&(_0x1af55a=_0x1af55a+':'+_0x47b581),_0x4ea24f['addMarker'](_0x1af55a,{'range':_0x35f99b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ce9d3){const _0x33b190=_0x3ce9d3['previous'],_0x4d76b7=_0x3ce9d3['next'];_0x3ce9d3['previous']=null,_0x3ce9d3['next']=null,null!=_0x33b190&&_0x33b190['next']==_0x3ce9d3&&(_0x33b190['next']=_0x4d76b7),null!=_0x4d76b7&&_0x4d76b7['previous']==_0x3ce9d3&&(_0x4d76b7['previous']=_0x33b190),'ready'==this['_suggestionState']['get'](_0x3ce9d3)&&(this['_suggestionState']['set'](_0x3ce9d3,'removed'),this['fire']('suggestionUnloaded',_0x3ce9d3,_0x33b190,_0x4d76b7));}['_setSuggestionData'](_0x1fcd1e){const _0x509964=_0x1fcd1e['id'],_0x517715=this['addSuggestionData'](_0x1fcd1e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b0345=this['editor']['plugins']['get']('PendingActions'),_0x3919a5=_0x517715['hasComments'],_0x1c408e=_0x517715['subType']?_0x517715['type']+':'+_0x517715['subType']:_0x517715['type'],_0x565c75=this['editor']['locale'],_0x548ef3=_0x1b0345['add'](o(_0x565c75,'PENDING_ACTION_SUGGESTION')),_0x630422={'id':_0x509964,'type':_0x1c408e,'hasComments':_0x3919a5,'data':_0x1fcd1e['data']||null,'originalSuggestionId':_0x1fcd1e['originalSuggestionId']||null,'attributes':_0x517715['attributes']};this['_adapter']['addSuggestion'](_0x630422)['then'](_0x5698f7=>{_0x517715['_saved']=!0x0,_0x1b0345['remove'](_0x548ef3),_0x5698f7&&_0x5698f7['createdAt']&&(this['_suggestions']['get'](_0x509964)['createdAt']=_0x5698f7['createdAt']);})['catch'](_0x39b1cb=>{throw _0x4f9a07('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x517715['discard']();}),_0x517715['stopListening'](),this['_suggestions']['delete'](_0x517715['id']),this['_suggestionState']['delete'](_0x517715),_0x39b1cb;});}return _0x517715;}['_isBlockAttribute'](_0x2ff0a1){return this['_blockAttributeKeys']['has'](_0x2ff0a1);}['_updateSuggestionData'](_0x110c61,_0x50e575){const _0x2b1351=this['editor']['plugins']['get']('PendingActions'),_0x32400d=this['getSuggestion'](_0x110c61);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x32400d['_saved']){const _0x48baca=_0x2b1351['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x110c61,_0x50e575)['then'](()=>{_0x2b1351['remove'](_0x48baca);});}else _0x32400d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x110c61,_0x50e575);});}}['_getSuggestionData'](_0x1a6c11){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3f354f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1a6c11);}['_handleNewSuggestionMarker'](_0x32146f){const {id:_0x5d1468,type:_0x370800,subType:_0x3c24a4,authorId:_0x3da5fc}=this['_splitMarkerName'](_0x32146f),_0x571802=this['_suggestions']['get'](_0x5d1468)||this['_createSuggestion'](_0x370800,_0x3c24a4,_0x5d1468,_0x3da5fc,{});switch(this['_checkSuggestionCorrectness'](_0x571802,_0x370800,_0x3c24a4,_0x3da5fc),this['_suggestionState']['get'](_0x571802)){case'notReady':this['_getSuggestionData'](_0x5d1468)['then'](_0x583372=>{let _0x51ce52=Promise['resolve']();_0x583372['hasComments']&&(_0x51ce52=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5d1468})),_0x51ce52['then'](()=>{this['addSuggestionData'](_0x583372)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x571802,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5d1468,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x571802,'ready'),this['fire']('suggestionLoaded',_0x571802);break;case'ready':this['fire']('suggestionChanged',_0x571802);}return _0x571802['addMarkerName'](_0x32146f),_0x571802;}['_refreshSuggestionsChain'](_0x105208){const _0xb69bc4=Array['from'](_0x105208),_0xd42137=_0xb69bc4['filter'](_0x5a463d=>'attribute'==_0x5a463d['type']);this['_refreshAttributeSuggestionsChain'](_0xd42137);const _0x576ef8=_0xb69bc4['filter'](_0x4faa0a=>!_0x4faa0a['isMultiRange']&&'attribute'!=_0x4faa0a['type']),_0x14614e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b9948=>!_0x5b9948['isMultiRange']&&'attribute'!=_0x5b9948['type']),_0x264321=_0x14614e['filter'](_0x518be2=>!_0x105208['has'](_0x518be2)),_0x16f6f9=new Map(_0x14614e['map'](_0x28fb1e=>[_0x28fb1e,this['_suggestionFactory']['getSuggestionCallback'](_0x28fb1e['type'],_0x28fb1e['subType'],'chain')])),_0x3a07d6=new Map(_0x14614e['map'](_0x576a5c=>[_0x576a5c,_0x576a5c['getFirstRange']()])),_0x467336=new Set(),_0x2bc6ff=new Set();for(let _0x5f3358=0x0;_0x5f3358<_0x576ef8['length'];_0x5f3358++)_0x45d46a(_0x576ef8[_0x5f3358],_0x576ef8,_0x5f3358+0x1);for(let _0x4ddfae=0x0;_0x4ddfae<_0x576ef8['length'];_0x4ddfae++)_0x45d46a(_0x576ef8[_0x4ddfae],_0x264321,0x0);const _0x24da36=new Set();for(let _0x19c71b=0x0;_0x19c71b<_0x576ef8['length'];_0x19c71b++){const _0xaf42bd=_0x576ef8[_0x19c71b];!_0x2bc6ff['has'](_0xaf42bd)&&_0xaf42bd['previous']&&(_0x24da36['add'](_0xaf42bd['previous']),_0xaf42bd['previous']['next']===_0xaf42bd&&(_0xaf42bd['previous']['next']=null),_0xaf42bd['previous']=null),!_0x467336['has'](_0xaf42bd)&&_0xaf42bd['next']&&(_0x24da36['add'](_0xaf42bd['next']),_0xaf42bd['next']['previous']===_0xaf42bd&&(_0xaf42bd['next']['previous']=null),_0xaf42bd['next']=null);}function _0x45d46a(_0x317f03,_0x38067e,_0x45863f){for(let _0xe3cc73=_0x45863f;_0xe3cc73<_0x38067e['length'];_0xe3cc73++){const _0x1d5b21=_0x2c98af(_0x317f03,_0x38067e[_0xe3cc73]);_0x1d5b21&&(_0x1d5b21[0x0]['next']=_0x1d5b21[0x1],_0x1d5b21[0x1]['previous']=_0x1d5b21[0x0],_0x467336['add'](_0x1d5b21[0x0]),_0x2bc6ff['add'](_0x1d5b21[0x1]));}}function _0x2c98af(_0x5bcbd8,_0x224149){if(_0x5bcbd8['author']['id']!==_0x224149['author']['id'])return null;const _0x33102c=_0x16f6f9['get'](_0x5bcbd8)(_0x5bcbd8,_0x224149,_0x3a07d6['get'](_0x5bcbd8),_0x3a07d6['get'](_0x224149));if(!_0x33102c)return null;return _0x16f6f9['get'](_0x224149)(_0x5bcbd8,_0x224149,_0x3a07d6['get'](_0x5bcbd8),_0x3a07d6['get'](_0x224149))?_0x33102c[0x1]['commentThread']&&_0x33102c[0x1]['commentThread']['length']?null:_0x33102c:null;}_0x24da36['size']&&this['_refreshSuggestionsChain'](_0x24da36);}['_refreshAttributeSuggestionsChain'](_0x3873e7){if(0x0==_0x3873e7['length'])return;const _0x5f459e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a9c56=>'attribute'==_0x1a9c56['type']&&_0x1a9c56['_isDataLoaded']),_0xf1d932=[],_0x28fec4=new Map();for(const _0x22ffc1 of _0x5f459e){const _0x47ab07=_0xc116ba(_0x22ffc1['attributes']);_0x28fec4['has'](_0x47ab07)||(_0x28fec4['set'](_0x47ab07,_0xf1d932['length']),_0xf1d932['push']([]));const _0x442c89=_0x28fec4['get'](_0x47ab07);_0xf1d932[_0x442c89]['push'](_0x22ffc1);}!(function(){_0xf1d932['sort']((_0x3824d4,_0x300fe2)=>{const _0x1c7d51=_0x3824d4[0x0]['createdAt'],_0x175db1=_0x300fe2[0x0]['createdAt'];return _0x1c7d51==_0x175db1?_0x3824d4[0x0]['attributes']['groupId']<_0x300fe2[0x0]['attributes']['groupId']?-0x1:0x1:_0x1c7d51<_0x175db1?-0x1:0x1;});for(const _0x12296d of _0xf1d932)_0x12296d['sort']((_0x1e77f7,_0x3021a0)=>_0x1e77f7['id']<_0x3021a0['id']?-0x1:0x1);}());for(let _0x5cfa39=0x0;_0x5cfa39<_0xf1d932['length'];_0x5cfa39++){if(0x0==_0xf1d932[_0x5cfa39]['length'])continue;const _0x4c40cf=[];for(let _0x399095=_0x5cfa39+0x1;_0x399095<_0xf1d932['length'];_0x399095++)0x0!=_0xf1d932[_0x399095]['length']&&_0x2de88f(_0xf1d932[_0x5cfa39],_0xf1d932[_0x399095])&&_0x4c40cf['push'](_0x399095);for(const _0x47e739 of _0x4c40cf)_0xf1d932[_0x5cfa39]=_0xf1d932[_0x5cfa39]['concat'](_0xf1d932[_0x47e739]),_0xf1d932[_0x47e739]=[];}for(const _0x2786ba of _0xf1d932)for(let _0x20afa3=0x0;_0x20afa3<_0x2786ba['length'];_0x20afa3++){const _0x4e3f91=_0x2786ba[_0x20afa3+0x1]||null;_0x2786ba[_0x20afa3]['next']!==_0x4e3f91&&(_0x2786ba[_0x20afa3]['next']=_0x4e3f91);}for(const _0x4c9995 of _0xf1d932)for(let _0x52ec16=0x0;_0x52ec16<_0x4c9995['length'];_0x52ec16++){const _0x1238a8=_0x4c9995[_0x52ec16-0x1]||null;_0x4c9995[_0x52ec16]['previous']!==_0x1238a8&&(_0x4c9995[_0x52ec16]['previous']=_0x1238a8);}function _0x2de88f(_0x187846,_0x426b81){if(_0x187846[0x0]['attributes']['groupId']!==_0x426b81[0x0]['attributes']['groupId']&&_0x187846[0x0]['author']!==_0x426b81[0x0]['author'])return!0x1;if(!function(_0x506cc8,_0xaa21c1){if(!_0x506cc8['hasComments']&&!_0xaa21c1['hasComments'])return!0x0;if(_0x506cc8['hasComments']&&_0xaa21c1['hasComments'])return!0x1;if(_0x506cc8['hasComments']&&_0xaa21c1['createdAt']<_0x506cc8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xaa21c1['hasComments']&&_0x506cc8['createdAt']<_0xaa21c1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x187846[0x0],_0x426b81[0x0]))return!0x1;const _0x2793db=Tt(_0x187846[0x0]['attributes'],'groupId'),_0x2cf110=Tt(_0x426b81[0x0]['attributes'],'groupId');if(!_0x3b426a(_0x2793db,_0x2cf110))return!0x1;return!!_0x187846['every'](_0xc0664a=>_0x426b81['some'](_0x501c1e=>_0xc0664a['getFirstRange']()['isEqual'](_0x501c1e['getFirstRange']())))&&_0x426b81['every'](_0xa0f187=>_0x187846['some'](_0x493754=>_0xa0f187['getFirstRange']()['isEqual'](_0x493754['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x591fe7){const _0x594215=Array['from'](_0x591fe7),_0x298ce9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1ba382=_0x298ce9['filter'](_0x167e58=>!_0x591fe7['has'](_0x167e58)),_0x343bde=new Map(_0x594215['map'](_0x44094e=>[_0x44094e,this['_suggestionFactory']['getSuggestionCallback'](_0x44094e['type'],_0x44094e['subType'],'join')])),_0x4d97f7=new Map(_0x298ce9['map'](_0x13c48a=>[_0x13c48a,_0x13c48a['getRanges']()]));for(let _0x4e9606=0x0;_0x4e9606<_0x594215['length'];_0x4e9606++){if(_0xe16eb(this,_0x594215[_0x4e9606],_0x594215,_0x4e9606+0x1))return!0x0;}for(let _0x372972=0x0;_0x372972<_0x594215['length'];_0x372972++){if(_0xe16eb(this,_0x594215[_0x372972],_0x1ba382,0x0))return!0x0;}return!0x1;function _0xe16eb(_0x2053af,_0x3e1a7b,_0x2b9bda,_0x212bbe){for(let _0x43165e=_0x212bbe;_0x43165e<_0x2b9bda['length'];_0x43165e++){const _0x6fdcf=_0x2b9bda[_0x43165e];if(_0x6fdcf['type']!==_0x3e1a7b['type']||_0x6fdcf['author']['id']!==_0x3e1a7b['author']['id']||_0x6fdcf['subType']!==_0x3e1a7b['subType'])continue;if(!Jt(_0x3e1a7b,_0x6fdcf))continue;if('attribute'==_0x3e1a7b['type']&&_0x3e1a7b['data']['oldValue']!=_0x6fdcf['data']['oldValue'])continue;if('attribute'==_0x3e1a7b['type']&&_0x2053af['_isBlockAttribute'](_0x3e1a7b['data']['key']))continue;if('formatBlock'==_0x3e1a7b['type']){const _0x5b5754=_0x2053af['editor']['model'],_0x42cdbd=_0x3e1a7b['getContainedElement']();if(_0x42cdbd&&(_0x5b5754['schema']['isObject'](_0x42cdbd)||_0x5b5754['schema']['isLimit'](_0x42cdbd)))continue;}const _0x509971=_0x343bde['get'](_0x3e1a7b),_0x37b22c=_0x4d97f7['get'](_0x3e1a7b),_0x5389f2=_0x4d97f7['get'](_0x6fdcf),_0x75e7ef=_0x3e1a7b['commentThread']&&_0x3e1a7b['commentThread']['length'],_0x183523=_0x6fdcf['commentThread']&&_0x6fdcf['commentThread']['length'];if(!_0x75e7ef&&_0x509971(_0x5389f2,_0x37b22c))return _0x2053af['_joinSuggestions'](_0x6fdcf,_0x3e1a7b),_0x4d97f7['delete'](_0x3e1a7b),!0x0;if(!_0x183523&&_0x509971(_0x37b22c,_0x5389f2))return _0x2053af['_joinSuggestions'](_0x3e1a7b,_0x6fdcf),_0x4d97f7['delete'](_0x6fdcf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3db881,_0x35a0ea){if(_0x3db881['isMultiRange']){for(const _0xfceb95 of _0x35a0ea['getRanges']())_0x3db881['addRange'](_0xfceb95);}else{const _0x210bee=_0x35a0ea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3db881,this['_model']['createRange'](_0x3db881['getFirstRange']()['start'],_0x210bee));}_0x35a0ea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4fb747,_0x1297db,_0x3f62c1){const _0x4ad1e7=_0x4fb747['startsWith']('format')||_0x4fb747['startsWith']('attribute')?'FORMATTING':_0x4fb747['toUpperCase']();return o(this['editor']['locale'],_0x1297db+'_'+_0x4ad1e7+'_SUGGESTION_ANNOUNCEMENT',_0x3f62c1);}['_initAriaMarkerChangeAnnouncements'](){const _0x2043af=this['editor'];if(!_0x2043af['ui'])return;const {ariaLiveAnnouncer:_0x37fc57}=_0x2043af['ui'];_0x36625a(this['_model'],({left:_0xd2c1f2,entered:_0x17bd0c})=>{for(const _0xbf3fc8 of _0xd2c1f2){const {group:_0x2b0947,type:_0x2e113e}=this['_splitMarkerName'](_0xbf3fc8['name']);if('suggestion'===_0x2b0947){_0x37fc57['announce'](this['_getMarkerAnnouncementText'](_0x2e113e,'LEAVE'));break;}}for(const _0x5480ca of _0x17bd0c){const {group:_0x12d13b,type:_0x54c125}=this['_splitMarkerName'](_0x5480ca['name']);if('suggestion'===_0x12d13b){_0x37fc57['announce'](this['_getMarkerAnnouncementText'](_0x54c125,'ENTER',_0x55084c(_0x21c962)));break;}}});}['_processAttributeChanges'](_0xa26536){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5dd6f1=this['editor'],_0x136906=_0x5dd6f1['model']['document']['differ']['getChanges']();if(0x0==_0x136906['length'])return!0x1;const _0x123985=[],_0x2fbbc9=_0x136906['filter'](_0x39c579=>'attribute'==_0x39c579['type']),_0x478df4=_0x136906['filter'](_0x4c32f8=>'insert'==_0x4c32f8['type']&&'$text'!=_0x4c32f8['name']),_0x358eed=_0x136906['filter'](_0x5a0870=>'remove'==_0x5a0870['type']&&'$text'!=_0x5a0870['name']);for(const _0x54d012 of _0x2fbbc9)_0x123985['push']({'key':_0x54d012['attributeKey'],'newValue':_0x54d012['attributeNewValue'],'oldValue':_0x54d012['attributeOldValue'],'range':Pt(_0x54d012['range'],_0x5dd6f1['model'])});for(const _0x25dd9b of _0x478df4){const _0x458fd8=_0x358eed['find'](_0x54b374=>_0x54b374['position']['isEqual'](_0x25dd9b['position']));_0x458fd8&&_0x123985['push']({'key':m,'newValue':_0x25dd9b['name'],'oldValue':_0x458fd8['name'],'range':_0x5dd6f1['model']['createRangeOn'](_0x25dd9b['position']['nodeAfter'])});}return 0x0!=_0x123985['length']&&this['_reduceExistingSuggestions'](_0xa26536,_0x123985);}['_processAttributeSuggestions'](_0x45dc02){let _0x2d2728=!0x1;const _0x45702b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xf289eb=>_0xf289eb['data']['newRange']&&_0xf289eb['name']['startsWith']('suggestion:attribute:'));for(const _0x2a6133 of _0x45702b){const {subType:_0x1ba375,id:_0x95ec68}=this['_splitMarkerName'](_0x2a6133['name']),_0x3e51e3=_0x1ba375['split']('|')[0x0];for(const _0x25cee6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x25cee6['id']!=_0x95ec68&&'attribute'==_0x25cee6['type']&&_0x25cee6['data']&&_0x25cee6['data']['key']==_0x3e51e3&&_0x25cee6['getFirstRange']()['isIntersecting'](_0x2a6133['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x25cee6,_0x2a6133['data']['newRange'],_0x45dc02),_0x2d2728=!0x0);}return _0x2d2728;}['_recordAttributeChanges'](_0x10fa62){this['_recordAttributeSuggestions']=!0x0,_0x10fa62();}['_isRegisteredAttribute'](_0x41c7fd){const _0x440528=this['_isBlockAttribute'](_0x41c7fd),_0x3a3af6=this['_inlineAttributeKeys']['has'](_0x41c7fd);return _0x440528||_0x3a3af6;}['_reduceExistingSuggestions'](_0x14987d,_0x19c749){if(0x0==_0x19c749['length'])return!0x1;let _0x514f74=!0x1;for(const _0x34231c of _0x19c749){const _0x47199a=this['_findSuggestions'](_0x34231c['range'],'attribute')['filter'](_0x297117=>!_0x297117['meta']['isNextTo'])['map'](_0x3786c2=>_0x3786c2['suggestion']),_0x139759=_0xc116ba({'newValue':_0x34231c['newValue']});_0x47199a['filter'](_0x1e1788=>{const [_0xb6c9bf,_0x467a1c]=_0x1e1788['subType']['split']('|');return _0xb6c9bf==_0x34231c['key']&&_0x467a1c!=_0x139759;})['forEach'](_0xd7752a=>{this['_reduceSuggestionAttributeRange'](_0xd7752a,_0x34231c['range'],_0x14987d),_0x514f74=!0x0;});}return _0x514f74;}['_reduceSuggestionAttributeRange'](_0x69a042,_0x54b97a,_0x17039c){const _0xeae653=_0x69a042['getFirstRange']()['getDifference'](_0x54b97a);0x0!==_0xeae653['length']?0x1!==_0xeae653['length']?this['_breakSuggestionMarker'](_0x69a042,_0x54b97a['start'],_0x54b97a['end']):this['_setSuggestionRange'](_0x69a042,_0xeae653[0x0]):_0x17039c['removeMarker'](_0x69a042['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x286d44){this['_editor']=_0x286d44,this['_model']=_0x286d44['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x497400,_0x37fa6d,_0x40b304,_0x44c913,_0x2790d7,_0x253759){return new u(this['_model'],{'type':_0x497400,'subType':_0x37fa6d,'id':_0x40b304,'author':_0x44c913,'creator':_0x44c913,'attributes':_0x2790d7,'onAttributesChange':_0x253759,'onAccept':(..._0x562816)=>this['getSuggestionCallback'](_0x497400,_0x37fa6d,'accept')(..._0x562816),'onDiscard':(..._0x3c1f70)=>this['getSuggestionCallback'](_0x497400,_0x37fa6d,'discard')(..._0x3c1f70)});}['registerCustomCallback'](_0x1bca45,_0xab95e1,_0x13b537,_0x59519d){const _0x185e81=_0x1bca45+':'+_0xab95e1+':'+_0x13b537;this['_customCallbacks']['set'](_0x185e81,_0x59519d);}['getSuggestionCallback'](_0x387baa,_0x1fd2e5,_0x5b24a4){const _0x545516=_0x387baa+':'+_0x1fd2e5+':'+_0x5b24a4;return this['_customCallbacks']['get'](_0x545516)||this['_defaultCallbacks']['get'](_0x387baa+':'+_0x5b24a4);}['_registerDefaultCallbacks'](){const _0x5b841d=()=>!0x1,_0x5b8711=_0x3122f2=>{_0x3122f2['sort']((_0xc6a3c5,_0x303e55)=>_0xc6a3c5['start']['isBefore'](_0x303e55['start'])?0x1:-0x1),this['_model']['change'](_0x38ed91=>{for(const _0x597b5e of _0x3122f2){let _0x4afaa1;_0x4afaa1=_0x597b5e['end']['isAtEnd']&&_0x597b5e['end']['parent']==_0x597b5e['start']['nodeAfter']?_0x38ed91['createSelection'](_0x597b5e['start']['nodeAfter'],'on'):_0x38ed91['createSelection'](_0x597b5e),this['_model']['deleteContent'](_0x4afaa1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x149ca2=(_0x3f46ae,_0x13b7b2)=>{_0x13b7b2&&this['_model']['change'](_0x29e0f0=>{const {commandName:_0x12c283,commandParams:_0x1486d7=[]}=_0x13b7b2,_0x41caf6=_0x3f46ae['map'](_0x5b76cc=>(Vt(_0x5b76cc)&&(_0x5b76cc=this['_model']['createRange'](_0x5b76cc['end'])),_0x5b76cc))['filter'](_0x3c66ab=>'$graveyard'!==_0x3c66ab['root']['rootName']);if(_0x41caf6['length']<0x1)return;const _0x3a6d50=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x200477=>_0x4f29af['fromRange'](_0x200477));_0x29e0f0['setSelection'](_0x41caf6);for(const _0x2b48af of this['_editor']['commands']['commands']())_0x2b48af['refresh']();_0x1486d7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x12c283,..._0x1486d7);const _0x1e8c74=_0x3a6d50['filter'](_0x2dcc3f=>'$graveyard'!=_0x2dcc3f['root']['rootName']);_0x1e8c74['length']>0x0&&_0x29e0f0['setSelection'](_0x1e8c74);for(const _0x3884d0 of _0x3a6d50)_0x3884d0['detach']();});},_0x4dacf7=(_0x5934f9,_0x313e3b)=>0x1==_0x5934f9['length']&&0x1==_0x313e3b['length']&&_0x5934f9[0x0]['end']['isEqual'](_0x313e3b[0x0]['start']),_0x58c74e=(_0xeb1de9,_0x520fe7,_0x5350db,_0x1ce4ed)=>Ht(_0xeb1de9,_0x520fe7,_0x5350db,_0x1ce4ed,this['_model'])?[_0xeb1de9,_0x520fe7]:Ht(_0x520fe7,_0xeb1de9,_0x1ce4ed,_0x5350db,this['_model'])?[_0x520fe7,_0xeb1de9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5b841d),this['_defaultCallbacks']['set']('insertion:discard',_0x5b8711),this['_defaultCallbacks']['set']('insertion:join',_0x4dacf7),this['_defaultCallbacks']['set']('insertion:chain',_0x58c74e),this['_defaultCallbacks']['set']('deletion:accept',_0x5b8711),this['_defaultCallbacks']['set']('deletion:discard',_0x5b841d),this['_defaultCallbacks']['set']('deletion:join',_0x4dacf7),this['_defaultCallbacks']['set']('deletion:chain',_0x58c74e),this['_defaultCallbacks']['set']('formatInline:accept',_0x149ca2),this['_defaultCallbacks']['set']('formatInline:discard',_0x5b841d),this['_defaultCallbacks']['set']('formatInline:join',_0x4dacf7),this['_defaultCallbacks']['set']('formatInline:chain',_0x5b841d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x149ca2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5b841d),this['_defaultCallbacks']['set']('formatBlock:join',_0x4dacf7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5b841d),this['_defaultCallbacks']['set']('attribute:accept',_0x5b841d),this['_defaultCallbacks']['set']('attribute:discard',(_0x20522f,_0x503d56)=>{if(!_0x503d56)return;const _0x43316d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1a63cc=>{if(_0x503d56['key']==m)for(const _0x32813f of _0x20522f){const _0x58b11a=_0x32813f['start']['nodeAfter'],_0x584cf7=_0x503d56['oldValue'];_0x1a63cc['rename'](_0x58b11a,_0x584cf7);}else{if(_0x43316d['_isBlockAttribute'](_0x503d56['key'])){for(const _0x25ff65 of _0x20522f)void 0x0!==_0x503d56['oldValue']?_0x1a63cc['setAttribute'](_0x503d56['key'],_0x503d56['oldValue'],_0x25ff65['start']['nodeAfter']):_0x1a63cc['removeAttribute'](_0x503d56['key'],_0x25ff65['start']['nodeAfter']);}else{for(const _0x48250b of _0x20522f)_0x503d56['oldValue']?_0x1a63cc['setAttribute'](_0x503d56['key'],_0x503d56['oldValue'],_0x48250b):_0x1a63cc['removeAttribute'](_0x503d56['key'],_0x48250b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4dacf7);}}function Ot(_0x47b757,_0x1f5f81,_0x44c997){for(const _0x4cc760 of _0x1f5f81['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4cc760['root']==_0x4cc760)return!0x1;if(!_0x44c997['containsItem'](_0x4cc760))return!0x1;if(_0x47b757['isObject'](_0x4cc760)||_0x47b757['isLimit'](_0x4cc760))return!0x0;}return!0x1;}function Vt(_0x4d20cc){return _0x4d20cc['end']['parent']==_0x4d20cc['start']['nodeAfter']&&_0x4d20cc['end']['isAtStart'];}function Ut(_0x5ebe8c,_0x3532f0,_0x29587d,_0x3e54a5){const _0x3e3cce=_0x4c7617=>!_0x4c7617['item']['is']('$textProxy')&&!_0x3e54a5['isObject'](_0x4c7617['item']),_0x4a4243=_0x5ebe8c['start']['getLastMatchingPosition'](_0x3e3cce),_0x5b6216=_0x5ebe8c['end']['getLastMatchingPosition'](_0x3e3cce,{'direction':'backward'});return(!_0x5ebe8c['start']['isEqual'](_0x4a4243)||!_0x5ebe8c['end']['isEqual'](_0x5b6216))&&(_0x4a4243['isBefore'](_0x5b6216)?_0x29587d['updateMarker'](_0x3532f0,{'range':_0x29587d['createRange'](_0x4a4243,_0x5b6216)}):_0x29587d['removeMarker'](_0x3532f0),!0x0);}function Gt(_0x9b5f3f){return _0xc116ba(_0x9b5f3f);}function Ft(_0x3302db){const _0x14c30c=_0x3302db['start']['nodeAfter'];return _0x14c30c&&_0x14c30c['is']('element');}function Pt(_0x1cb3ec,_0x485835){return null==_0x1cb3ec['end']['nodeBefore']&&_0x1cb3ec['end']['parent']==_0x1cb3ec['start']['nodeAfter']?Lt(_0x1cb3ec['start']['nodeAfter'],_0x485835):_0x1cb3ec;}function Lt(_0xc30c61,_0x10be74){const _0x5e6cb3=_0x10be74['schema']['isObject'](_0xc30c61)||_0x10be74['schema']['isSelectable'](_0xc30c61);return _0x10be74['createRange'](_0x10be74['createPositionAt'](_0xc30c61,'before'),_0x5e6cb3?_0x10be74['createPositionAfter'](_0xc30c61):_0x10be74['createPositionAt'](_0xc30c61,'end'));}function Ht(_0xc7ba74,_0x3f6dd7,_0x2f91e1,_0x37d8b7,_0x419bed){if(_0xc7ba74['next'])return!0x1;if(!Jt(_0xc7ba74,_0x3f6dd7))return!0x1;if(_0x2f91e1['end']['isEqual'](_0x37d8b7['start']))return!0x0;if(_0xc7ba74['type']!=_0x3f6dd7['type'])return!0x1;if(!_0x2f91e1['end']['isTouching'](_0x37d8b7['start']))return!0x1;const _0x56cab4=_0x419bed['createRange'](_0x2f91e1['end'],_0x37d8b7['start'])['getWalker']();for(const _0x195865 of _0x56cab4)if(['elementStart','elementEnd']['includes'](_0x195865['type'])&&_0x419bed['schema']['isLimit'](_0x195865['item']))return!0x1;return!0x0;}function Jt(_0x28432e,_0x4ce613){if(!_0x28432e['_isDataLoaded']||!_0x4ce613['_isDataLoaded'])return!0x1;const _0xeabe13=new Set(Object['keys'](_0x28432e['attributes'])),_0x128f09=new Set(Object['keys'](_0x4ce613['attributes']));if(_0xeabe13['delete']('groupId'),_0x128f09['delete']('groupId'),0x0==_0xeabe13['size']&&0x0==_0x128f09['size'])return!0x0;if(_0xeabe13['size']!=_0x128f09['size'])return!0x1;const _0x55f529={..._0x28432e['attributes']},_0x5a4a88={..._0x4ce613['attributes']};return delete _0x55f529['groupId'],delete _0x5a4a88['groupId'],JSON['stringify'](_0x55f529)==JSON['stringify'](_0x5a4a88);}function qt(_0x304f8c,_0x2b00ac){const _0x580fa9=zt(_0x304f8c['attributes']),_0xb5d809=zt(_0x2b00ac);if(!_0x304f8c['_isDataLoaded'])return!0x1;for(const _0x2c1dad of Object['keys'](_0xb5d809))if(!_0x3b426a(_0x580fa9[_0x2c1dad],_0xb5d809[_0x2c1dad]))return!0x1;return!0x0;}function zt(_0x5d8311){const _0x1fae49=Object['assign']({},_0x5d8311);return delete _0x1fae49['skipNestingCheck'],delete _0x1fae49['tablePasteChainId'],_0x1fae49;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x1335aa(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x15b55d,_0x36026d,_0x22fe01,_0x83bdd7){super(),this['model']=_0x36026d,this['view']=_0x22fe01,this['commentThreadController']=_0x83bdd7,this['_editor']=_0x15b55d,this['_acceptCommand']=_0x15b55d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x15b55d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x39a07b,_0x16aca4)=>_0x39a07b||_0x16aca4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x32b083=>_0x32b083&&this['_editor']['model']['canEditAt'](_0x36026d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2237ec=>_0x2237ec&&this['_editor']['model']['canEditAt'](_0x36026d['getRanges']())),this['_pendingAction']=null,_0x22fe01['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x22fe01,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x22fe01,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x22fe01,'change:isDirty',()=>{_0x22fe01['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 _0x1c6f2f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1c6f2f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x28d1c0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x316eb5,_0x474b70,_0x22ab39,_0x5a38fa){super(_0x316eb5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x545462(_0x316eb5,o(_0x316eb5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x474b70['authoredAt']),this['bind']('authoredAt')['to'](_0x474b70),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x474b70,'authoredAt',this,'descriptionParts',(_0x77cd07,_0x50318c,_0x136cc9)=>{const _0x1bd532=_0x136cc9['map'](_0xf4c061=>ls(_0xf4c061['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x77cd07-0x1,_0x474b70['author']['name'],_0x50318c?_0x5a38fa['formatDateTime'](_0x50318c):'',new DOMParser()['parseFromString'](_0x1bd532,'text/html')['body']['textContent']]);}),this['focusables']=new _0x23a5d0(),this['focusTracker']=new _0x2560dd(),this['keystrokes']=new _0x8fdec2(),this['focusCycler']=new _0x3f6783({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3edf07=>_0x3edf07['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x474b70,this['_localUser']=_0x22ab39,this['_config']=_0x5a38fa,_0x5a38fa['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4484a6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3b5878}=this['_config'];this['commentsListView']=new _0x3b5878(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',_0x3704a1=>_0x3704a1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x839246,_0x3892ec)=>_0x839246||!!_0x3892ec);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x38b1e6}=this['_config'],_0x32beef=new _0x38b1e6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x571506=_0x32beef['commentInputView'];return _0x32beef['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x571506,'value',(_0x155d34,_0x364801,_0x34ceec)=>!!_0x34ceec||_0x155d34&&!_0x364801),_0x571506['on']('submit',(_0x1f49f1,_0x479960)=>{this['fire']('addComment',_0x479960),_0x571506['editor']['setData']('');}),_0x571506['on']('cancel',()=>this['focus']()),_0x571506['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x32beef;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3f7634,_0x1ad989,_0x5a4ffe,_0xa410d9){super(_0x3f7634,_0x1ad989,_0x5a4ffe,_0xa410d9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ce388=>_0x5ce388&&_0x5ce388[0x0]?_0x5ce388[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x10344d,_0x432302)=>{let _0x32d65d='';for(const _0x4c06db of _0x10344d)_0x32d65d+='<p>'+ls(_0x4c06db['content'],_0x4c06db['color'])+'</p>';return _0x432302?_0x32d65d:_0x52eb5a(_0x32d65d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xa410d9['SuggestionView'](_0x3f7634,_0x1ad989,{'formatDateTime':_0xa410d9['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x334883=this['bindTemplate'],_0x44a758=[this['suggestionView']];return this['commentsListView']&&_0x44a758['push'](this['commentsListView']),this['commentThreadInputView']&&_0x44a758['push'](this['commentThreadInputView']),_0x44a758['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x334883['if']('isActive','ck-suggestion-wrapper--active'),_0x334883['to']('type',_0x3ac5c1=>'ck-suggestion-'+_0x3ac5c1),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':0x0,'role':'listitem','aria-label':_0x334883['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x44a758};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x28d1c0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x45b8e2,_0x5b70a8,_0x186fb1){super(_0x45b8e2),this['_model']=_0x5b70a8,this['_config']=_0x186fb1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5b70a8),this['acceptButton']=this['_createButton'](o(_0x45b8e2,'Accept\x20suggestion'),_0x1ad65['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x45b8e2,'Discard\x20suggestion'),_0x1ad65['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x445161(_0x45b8e2,_0x5b70a8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x23a5d0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2560dd(),this['keystrokes']=new _0x8fdec2(),this['focusCycler']=new _0x3f6783({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55ef49=>_0x55ef49['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5cbdf5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5cbdf5['innerHTML']=this['description'],this['on']('change:description',(_0x48a41c,_0x2f0c74,_0x392812)=>{_0x5cbdf5['innerHTML']=_0x392812;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x141c3b=this['bindTemplate'],_0xd642f4=[{'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':_0x141c3b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x141c3b['to']('authoredAt',_0x5356bc=>this['_config']['formatDateTime'](_0x5356bc))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0xd642f4['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xd642f4}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4a9678,_0x3388dc,_0x193237,_0x41feed,_0x4ab844){const _0x5c308d=new _0x54c9ce(this['locale']);return _0x5c308d['set']({'label':_0x4a9678,'icon':_0x3388dc,'tooltip':!0x0,'tooltipPosition':_0x4ab844}),_0x5c308d['extendTemplate']({'attributes':{'class':_0x193237}}),_0x5c308d['on']('execute',()=>{this['fire'](_0x41feed,this['_model']['id']);}),_0x5c308d;}['_setupKeyboardNavigation'](){const _0x489553=this['element'];this['keystrokes']['listenTo'](_0x489553);for(const _0x2f5e99 of this['focusables'])this['focusTracker']['add'](_0x2f5e99['element']),this['keystrokes']['listenTo'](_0x2f5e99['element']);this['keystrokes']['set']('enter',(_0x39d240,_0x26fd14)=>{_0x489553===_0x39d240['target']&&(this['focusCycler']['focusFirst'](),_0x26fd14());}),this['keystrokes']['set']('esc',(_0x2598d1,_0x2017fa)=>{_0x489553!==_0x2598d1['target']&&(this['focus'](),_0x2017fa());});}}var he='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x560a22{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4e07e7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x43caa4){super(_0x43caa4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x35693d=this['editor']['config'];_0x35693d['define']('trackChanges.SuggestionThreadView',re),_0x35693d['define']('trackChanges.SuggestionView',ce),_0x35693d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x35693d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4a8646,_0x2a2fe7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x552338,_0x5a3c10]of this['_handleControllerBuffer']){const _0xac6b25=this['_suggestionToController']['has'](_0x552338);_0xac6b25||_0x5a3c10?_0xac6b25&&_0x5a3c10&&this['_destroyController'](_0x552338):this['_initializeController'](_0x552338);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a8646,_0x2a2fe7);}['init'](){const _0x7471d7=this['editor'],_0x5d827e=_0x7471d7['plugins']['get']('TrackChangesEditing'),_0x39059f=_0x7471d7['plugins']['get']('Annotations'),_0x415370=_0x7471d7['plugins']['get']('EditorAnnotations'),_0x5160eb=_0x7471d7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x415370['addSourceCollector'](()=>{const _0x28f7e1=[];for(const [_0x5759fc,_0x18449c]of Array['from'](this['_suggestionToController'])){const _0x610866=_0x5759fc['getAllAdjacentSuggestions'](),_0x2c483c=[];for(const _0xadb57b of _0x610866){if(!_0xadb57b['isInContent'])continue;if(_0xadb57b['isMultiRange']){_0x2c483c['push'](..._0xadb57b['getRanges']());continue;}const _0x19467b=_0xadb57b['getFirstRange']();if(_0x2c483c['length']>0x0){const _0xdc72a=_0x2c483c[0x0]['getJoined'](_0x19467b);if(_0xdc72a){_0x2c483c[0x0]=_0xdc72a;continue;}}_0x2c483c['push'](_0x19467b);}_0x28f7e1['push']([_0x18449c['view'],_0x2c483c]);}return _0x28f7e1;}),this['listenTo'](_0x5d827e,'suggestionLoaded',(_0x19096b,_0x363556)=>{this['listenTo'](_0x363556,'change:previous',(_0x468625,_0x487890,_0x385d51,_0x24fa95)=>{_0x363556['isInContent']&&(null==_0x385d51?(this['_updateController'](_0x24fa95['head']),this['_handleSuggestionControllerDelayed'](_0x363556,!0x1)):(this['_updateController'](_0x385d51['head']),null==_0x24fa95&&this['_handleSuggestionControllerDelayed'](_0x363556,!0x0)));}),null!==_0x363556['previous']?this['_updateController'](_0x363556['head']):this['_handleSuggestionControllerDelayed'](_0x363556,!0x1);}),this['listenTo'](_0x5d827e,'suggestionUnloaded',(_0xd50ddc,_0xc440f4,_0xc0652a)=>{this['stopListening'](_0xc440f4,'change:previous'),this['_handleControllerBuffer']['delete'](_0xc440f4),this['_suggestionToController']['has'](_0xc440f4)&&this['_destroyController'](_0xc440f4),_0xc0652a&&this['_updateController'](_0xc0652a['head']);}),this['listenTo'](_0x5d827e,'suggestionChanged',(_0x4d96c4,_0xaefe94)=>{this['_updateController'](_0xaefe94);}),this['listenTo'](_0x39059f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5160eb,'addComment',(_0x5bc902,{threadId:_0x769c71,isFromAdapter:_0x21556c})=>{if(_0x21556c||!_0x5d827e['hasSuggestion'](_0x769c71))return;const _0x5c523f=_0x5d827e['getSuggestion'](_0x769c71);this['_suggestionToController']['get'](_0x5c523f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4063ba=this['editor']['plugins']['get']('Annotations'),_0x44c05d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bd0d8=Array['from'](_0x4063ba['activeAnnotations'],_0x187316=>_0x187316['innerView'])['filter'](_0x4eb28e=>this['_viewToController']['has'](_0x4eb28e)),_0x521160=[];for(const _0x45aafd of _0x2bd0d8){const _0x16b143=this['_viewToController']['get'](_0x45aafd)['model']['getAllAdjacentSuggestions']();_0x521160['push'](..._0x16b143['reduce']((_0x15d9f2,_0xd297d6)=>[..._0x15d9f2,..._0xd297d6['getMarkerNames']()],[]));}_0x44c05d['activeMarkers']=_0x521160;}['_addUIComponentsToFactory'](){const _0x50a221=this['editor'],_0x24cfab=_0x50a221['locale'],_0x343106=o(_0x24cfab,'Track\x20changes'),_0x24e780=new Wt([{'type':'switchbutton','model':new _0x3a1cb3({'withText':!0x0,'isToggleable':!0x0,'label':_0x343106,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a1cb3({'withText':!0x0,'label':o(_0x24cfab,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a1cb3({'withText':!0x0,'label':o(_0x24cfab,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a1cb3({'withText':!0x0,'label':o(_0x24cfab,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a1cb3({'withText':!0x0,'label':o(_0x24cfab,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x12791a of _0x24e780)if(me(_0x12791a)){const _0x64e8c0=_0x50a221['commands']['get'](_0x12791a['model']['commandName']);_0x12791a['model']['bind']('isOn','isEnabled')['to'](_0x64e8c0,'value','isEnabled');}_0x50a221['ui']['componentFactory']['add']('trackChanges',_0x5b911d=>this['_createToolbarButton'](_0x5b911d,_0x24e780,_0x343106)),_0x50a221['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a3bbd=>this['_createMenuBarMenu'](_0x2a3bbd,_0x24e780,_0x343106));}['_createToolbarButton'](_0x1ce35f,_0x4d4336,_0x2fe6a4){const _0x523b73=Qt(_0x1ce35f,_0x435717),_0x1745bd=this['editor']['commands']['get']('trackChanges');_0x523b73['buttonView']['set']({'tooltip':_0x2fe6a4,'label':_0x2fe6a4,'icon':he}),_0x523b73['buttonView']['bind']('isOn')['to'](_0x1745bd,'value'),_0x523b73['buttonView']['on']('execute',()=>{_0x1745bd['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x523b73,_0x4d4336,{'role':'menu'});const _0x2619ea=[];for(const _0x2aed6f of _0x4d4336)me(_0x2aed6f)&&_0x2619ea['push'](this['editor']['commands']['get'](_0x2aed6f['model']['commandName']));const _0xf203cd=_0x523b73['buttonView'];return _0xf203cd['actionView']['unbind']('isEnabled'),_0xf203cd['arrowView']['unbind']('isEnabled'),_0xf203cd['actionView']['bind']('isEnabled')['to'](_0x1745bd,'isEnabled'),_0xf203cd['arrowView']['bind']('isEnabled')['toMany'](_0x2619ea,'isEnabled',(..._0x5437e2)=>_0x5437e2['some'](_0x17ebbe=>_0x17ebbe)),_0x523b73['on']('execute',_0x325b9c=>{this['editor']['execute'](_0x325b9c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x523b73;}['_createMenuBarMenu'](_0x57439f,_0x3ad492,_0x12bcb2){const _0x3d3cd1=new Yt(_0x57439f),_0xaf92=this['editor']['commands']['get']('trackChanges');_0x3d3cd1['buttonView']['set']({'label':_0x12bcb2,'icon':he});const _0x537dae=new Zt(_0x57439f);for(const _0x361e8a of _0x3ad492){if('separator'==_0x361e8a['type']){_0x537dae['items']['add'](new Xt(_0x57439f));continue;}const _0x697e5b=new te(_0x57439f,_0x3d3cd1),_0x1fc037=new _0x392ac2(_0x57439f),_0x4a0d80=_0x361e8a['model'];_0x1fc037['bind'](...Object['keys'](_0x4a0d80))['to'](_0x4a0d80),_0x1fc037['delegate']('execute')['to'](_0x3d3cd1),_0x1fc037['on']('execute',()=>{this['editor']['execute'](_0x4a0d80['commandName']),this['editor']['editing']['view']['focus']();}),_0x697e5b['children']['add'](_0x1fc037),_0x537dae['items']['add'](_0x697e5b);}return _0x3d3cd1['bind']('isEnabled')['to'](_0xaf92,'isEnabled'),_0x3d3cd1['panelView']['children']['add'](_0x537dae),_0x3d3cd1;}['_initializeController'](_0xeb0275){const _0x3954ff=this['editor'],_0x5426f2=_0x3954ff['config'],_0x561838=_0x3954ff['plugins']['get']('Annotations'),_0x45459d=_0x3954ff['plugins']['get']('CommentsRepository'),_0x3aba23=_0x3954ff['plugins']['get']('EditorAnnotations'),_0x1e671a=_0x3954ff['plugins']['get'](_0x4e07e7)['me'],_0x32f9ff=_0x5426f2['get']('trackChanges')['SuggestionThreadView'],_0x215c3f=_0x5426f2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5ec9ea,CommentThreadInputView:_0x42d181}=_0x3954ff['plugins']['get']('CommentsUI');let _0x4d1d21,_0x392783,_0x597c96;this['_annotationViews']['has'](_0xeb0275['id'])?(_0x392783=this['_annotationViews']['get'](_0xeb0275['id']),_0x4d1d21=_0x392783['mainView']):(_0x4d1d21=new _0x32f9ff(_0x3954ff['locale'],_0xeb0275,_0x1e671a,{'disableComments':this['_disableComments'],'editorConfig':_0x5426f2['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5426f2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5426f2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5426f2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x49f843(_0x5426f2['get']('locale')),'CommentView':_0x5426f2['get']('comments')['CommentView'],'CommentsListView':_0x5ec9ea,'CommentThreadInputView':_0x42d181,'SuggestionView':_0x215c3f}),_0x4d1d21['suggestionView']['acceptButton']['on']('execute',()=>{_0x3954ff['editing']['view']['focus']();}),_0x4d1d21['suggestionView']['discardButton']['on']('execute',()=>{_0x3954ff['editing']['view']['focus']();}),_0x392783=_0x561838['createAnnotationView'](this['editor']['locale'],_0x4d1d21),_0x392783['bind']('isDirty')['to'](_0x4d1d21,'isDirty'),_0x392783['bind']('length')['to'](_0x4d1d21),_0x392783['bind']('type')['to'](_0x4d1d21,'type',_0x53b41b=>'suggestion-'+_0x53b41b),_0x4d1d21['on']('escape',()=>{_0x597c96['fire']('escape');}),this['_annotationViews']['set'](_0xeb0275['id'],_0x392783));const _0xdc7aba=_0x45459d['createCommentThreadController'](_0xeb0275['commentThread'],_0x4d1d21),_0x125855=new ae(_0x3954ff,_0xeb0275,_0x4d1d21,_0xdc7aba),_0x1eeffa=_0xeb0275['getAllAdjacentSuggestions']()['filter'](_0x29bbcf=>_0x29bbcf['isInContent']);_0x4d1d21['descriptionParts']=_0x3954ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1eeffa),this['_suggestionToController']['set'](_0xeb0275,_0x125855),this['_viewToController']['set'](_0x4d1d21,_0x125855),_0x597c96=_0x561838['createAnnotation']({'view':_0x392783,'target':()=>{const _0x1dc26b=[],_0x3f7d6f=_0xeb0275['getAllAdjacentSuggestions']()['filter'](_0x1533c1=>_0x1533c1['isInContent']);for(const _0x276d67 of _0x3f7d6f)_0x1dc26b['push'](..._0x276d67['getMarkers']());return _0x1ea284(_0x3954ff['editing'],_0x1dc26b);},'type':()=>'suggestion-'+_0x125855['view']['type']}),_0x45459d['_bindAnnotationToEditors'](_0x4d1d21,_0x597c96),_0x561838['add'](_0x597c96),_0x3aba23['registerAnnotation'](_0x597c96);}['_destroyController'](_0x5e3fc9){const _0x407851=this['editor']['plugins']['get']('CommentsRepository'),_0x1bcf70=this['editor']['plugins']['get']('Annotations'),_0x49cdaf=this['_suggestionToController']['get'](_0x5e3fc9),_0x5cc5a4=_0x49cdaf['view'],_0x151dc9=_0x1bcf70['getByInnerView'](_0x5cc5a4);_0x407851['_unbindEditors'](_0x5cc5a4),_0x151dc9&&_0x1bcf70['remove'](_0x151dc9),this['_suggestionToController']['delete'](_0x5e3fc9),this['_viewToController']['delete'](_0x5cc5a4),_0x49cdaf['destroy']();}['_updateController'](_0x3a875d){if(!_0x3a875d['isInContent']||!this['_suggestionToController']['has'](_0x3a875d))return;const _0x2659db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6413cc=this['_suggestionToController']['get'](_0x3a875d),_0x88ad3d=_0x3a875d['getAllAdjacentSuggestions']();_0x6413cc['view']['descriptionParts']=_0x2659db['descriptionFactory']['getDescriptions'](_0x88ad3d);}['destroy'](){for(const _0x15c8df of this['_suggestionToController']['keys']())this['_destroyController'](_0x15c8df);for(const _0x571ce7 of this['_annotationViews']['values']())_0x571ce7['mainView']['destroy']();super['destroy']();}}function me(_0x336f8d){return'model'in _0x336f8d;}class k extends _0x560a22{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x313f99){this['editor']['plugins']['get'](p)['adapter']=_0x313f99;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x146971){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x146971);}['getSuggestions']({skipNotAttached:_0x2decfe=!0x1,toJSON:_0x56d473=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2decfe,'toJSON':_0x56d473});}['getSuggestion'](_0x392caf){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x392caf);}}const T=['Pagination'];class P extends _0x560a22{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x9e6829=this['editor'];if(_0x9e6829['config']['define']('trackChangesData.editorCreator',_0x5f107b=>{const _0x2e278e=_0x9e6829['model']['document']['getRootNames']()['reduce']((_0x40b0e7,_0x545a1e)=>(_0x40b0e7[_0x545a1e]='',_0x40b0e7),{});return _0x9e6829['constructor']['create'](_0x2e278e,_0x5f107b);}),'function'!=typeof _0x9e6829['config']['get']('trackChangesData')['editorCreator'])throw new _0x3f354f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x57f3cf){return N(this['editor'],!0x0,_0x57f3cf);}['getDataWithDiscardedSuggestions'](_0x49e606){return N(this['editor'],!0x1,_0x49e606);}}class D extends _0x560a22{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x257241){super(_0x257241),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(_0x36c79f){return void 0x0!==_0x36c79f['getRootsAttributes'];}async function N(_0xccdbdf,_0x3dad3d,_0x20d768){const _0x576755=_0x118e78(_0xccdbdf,T);_0x576755['plugins']['push'](p,D),_0x576755['rootsAttributes']=v(_0xccdbdf)?_0xccdbdf['getRootsAttributes']():void 0x0;const _0xec38bc=document['createDocumentFragment'](),_0x44ce3e=_0xccdbdf['config']['get']('trackChangesData')['editorCreator'],_0x2a2296=await _0x44ce3e(_0x576755,()=>function(_0x2d5230){const _0x2845dd=document['createElement']('div');return _0x2d5230['appendChild'](_0x2845dd),_0x2845dd;}(_0xec38bc));!function(_0x154aa5,_0x16ad89){const _0x2170a0=_0x154aa5['model']['document']['getRootNames']()['reduce']((_0x4ef0d6,_0x27d8d2)=>(_0x4ef0d6[_0x27d8d2]=_0x154aa5['data']['get']({'rootName':_0x27d8d2}),_0x4ef0d6),{}),_0x3b5576=_0x154aa5['plugins']['get']('Users')['users']['map'](_0x28c144=>({'id':_0x28c144['id'],'name':_0x28c144['name']})),_0x2150e5=_0x154aa5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x9d26e5=_0x154aa5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x582b9e=_0x16ad89['plugins']['get']('Users'),_0x342ceb=_0x16ad89['plugins']['get']('TrackChangesEditing'),_0x4236c9=_0x16ad89['plugins']['get']('CommentsRepository');for(const _0x4db57f of _0x4236c9['getCommentThreads']())_0x4db57f['remove']();for(const _0x437863 of _0x3b5576)_0x582b9e['getUser'](_0x437863['id'])||_0x582b9e['addUser'](_0x437863);_0x582b9e['me']||_0x582b9e['useAnonymousUser']();for(const _0x4be7f9 of _0x9d26e5)_0x4236c9['addCommentThread'](_0x4be7f9);for(const _0x32502a of _0x2150e5)_0x342ceb['addSuggestionData'](_0x32502a);_0x16ad89['data']['set'](_0x2170a0);}(_0xccdbdf,_0x2a2296),_0x2a2296['execute'](_0x3dad3d?'acceptAllSuggestions':'discardAllSuggestions');const _0x2b8d1f=v(_0x2a2296)?_0x2a2296['getFullData'](_0x20d768):_0x2a2296['data']['get'](_0x20d768);return await _0x2a2296['destroy'](),_0x2b8d1f;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};