@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240523.0 → 0.0.0-nightly-20240525.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 (165) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +3 -3
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/multilevellist.js +1 -1
  136. package/src/integrations/pagebreak.js +1 -1
  137. package/src/integrations/paragraph.js +1 -1
  138. package/src/integrations/removeformat.js +1 -1
  139. package/src/integrations/restrictededitingmode.js +1 -1
  140. package/src/integrations/shiftentercommand.js +1 -1
  141. package/src/integrations/standardeditingmode.js +1 -1
  142. package/src/integrations/style.js +1 -1
  143. package/src/integrations/table.js +1 -1
  144. package/src/integrations/tablecaption.js +1 -1
  145. package/src/integrations/tableclipboard.js +1 -1
  146. package/src/integrations/tablecolumnresize.js +1 -1
  147. package/src/integrations/tableheadings.js +1 -1
  148. package/src/integrations/tablemergesplit.js +1 -1
  149. package/src/integrations/tableofcontents.js +1 -1
  150. package/src/integrations/tableproperties.js +1 -1
  151. package/src/integrations/template.js +1 -1
  152. package/src/integrations/title.js +1 -1
  153. package/src/integrations/undo.js +1 -1
  154. package/src/integrations/utils.js +1 -1
  155. package/src/suggestion.js +2 -2
  156. package/src/suggestiondescriptionfactory.js +1 -1
  157. package/src/trackchanges.js +1 -1
  158. package/src/trackchangesdata.js +1 -1
  159. package/src/trackchangesediting.js +1 -1
  160. package/src/trackchangesui.js +1 -1
  161. package/src/ui/suggestioncontroller.js +2 -2
  162. package/src/ui/view/basesuggestionthreadview.js +1 -1
  163. package/src/ui/view/suggestionthreadview.js +1 -1
  164. package/src/utils/common-translations.js +1 -1
  165. 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 _0x3be5df,PendingActions as _0x4a2131,icons as _0xdf767d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x357ebd,ObservableMixin as _0x13aff3,uid as _0x3035a1,insertToPriorityArray as _0x243765,priorities as _0x3b4600,logWarning as _0x272dfa,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x35f8c4,View as _0x337c6b,ButtonView as _0x37be95,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3c67fa,hashObject as _0x2c54bc,surroundingMarkersDetector as _0x14fed6,trimHtml as _0x4037e5,UserView as _0xc8bfc5,getDateTimeFormatter as _0x42ab4e,getAllMarkersDomElementsSorted as _0x362eea,sanitizeEditorConfig as _0x3c199d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x585adf,LiveRange as _0x2ded21,LivePosition as _0x2212d3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1897ff,toWidget as _0x47dbfc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x24eea2,set as _0x24232a,isEqual as _0x9c88fc,unset as _0x4583b4,omit as Bt}from'lodash-es';import{Delete as _0x59be5b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x129566,ShiftEnter as _0x417959}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x3d17ac,_0x19ea14){super(_0x3d17ac),this['_enabledCommands']=_0x19ea14,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 _0x77403e of this['editor']['commands']['commands']())_0x77403e['affectsData']&&!this['_enabledCommands']['has'](_0x77403e)&&_0x77403e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x6663e2 of this['editor']['commands']['commands']())_0x6663e2['affectsData']&&!this['_enabledCommands']['has'](_0x6663e2)&&_0x6663e2['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x4214ae,_0x25841b){super(_0x4214ae),this['_suggestions']=_0x25841b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x39079b){const _0x50c3c1=this['_suggestions']['get'](_0x39079b);if(!_0x50c3c1)throw new _0x357ebd('track-changes-accept-suggestion-not-found',this);const _0x414f8a=_0x50c3c1['getRanges']();this['editor']['model']['canEditAt'](_0x414f8a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x50c3c1);}}class B extends ts{['_suggestions'];constructor(_0x43de9e,_0x74ddda){super(_0x43de9e),this['_suggestions']=_0x74ddda,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xb71293){const _0x3b8a40=this['_suggestions']['get'](_0xb71293);if(!_0x3b8a40)throw new _0x357ebd('track-changes-discard-suggestion-not-found',this);const _0x55a6de=_0x3b8a40['getRanges']();this['editor']['model']['canEditAt'](_0x55a6de)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3b8a40);}}function ss(_0x370111){return _0x370111['sort']((_0x4f2f0a,_0x4bd7cc)=>'deletion'==_0x4f2f0a['type']&&'deletion'!=_0x4bd7cc['type']?-0x1:'deletion'!=_0x4f2f0a['type']&&'deletion'==_0x4bd7cc['type']?0x1:0x0);}function to(_0x5afcb3,_0xe8ab33){let _0x1ea531,_0x35d78e=0x0;const _0xe8944a=[],_0x5f08df=_0xe8ab33['schema'];for(;_0x35d78e<_0x5afcb3['length'];){const _0x35046f=_0x5afcb3[_0x35d78e],_0x146476=_0x5afcb3[_0x35d78e+0x1];_0x1ea531||(_0x1ea531=_0xe8ab33['createPositionBefore'](_0x35046f)),co(_0xe8ab33,_0x35046f,_0x146476)||(_0xe8944a['push'](_0xe8ab33['createRange'](_0x1ea531,_0x5f08df['isObject'](_0x35046f)?_0xe8ab33['createPositionAfter'](_0x35046f):_0xe8ab33['createPositionAt'](_0x35046f,'end'))),_0x1ea531=null),_0x35d78e++;}return _0xe8944a;}function co(_0x576933,_0x34dc98,_0x5137c5){if(!_0x5137c5)return!0x1;const _0x36c481=_0x576933['createPositionAfter'](_0x34dc98),_0x40098d=_0x576933['createPositionBefore'](_0x5137c5);return _0x36c481['isTouching'](_0x40098d);}function rs(_0x17c147,_0x137020,_0x576e2a){for(;_0x576e2a['length'];){const _0x1e5c87=_0x576e2a['splice'](0x0,0x64);_0x17c147['change'](()=>{for(const _0x5a099d of _0x1e5c87)_0x5a099d['isInContent']&&_0x137020['execute'](_0x5a099d['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x45ed93,_0x3bd389,_0x326494){super(_0x45ed93),this['_command']=_0x3bd389,this['_suggestions']=_0x326494,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16e7f0=Array['from'](this['_suggestions']['values']())['some'](_0x5b09a8=>_0x5b09a8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x16e7f0;}['execute'](){const _0x4f7d47=ss(Array['from'](this['_suggestions']['values']()));for(const _0x11c0dc of _0x4f7d47){const _0x35a901=_0x11c0dc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x35a901))return;}rs(this['editor']['model'],this['_command'],_0x4f7d47);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3901a1,_0x1be765,_0x5b682d){super(_0x3901a1),this['_command']=_0x1be765,this['_suggestions']=_0x5b682d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5162fb=this['editor']['model']['document']['selection'],_0x181d5c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x13e531,_0x3f8d3a){const _0xfa8c32=Array['from'](_0x13e531['getRanges']()),_0x454b45=new Set();for(const _0x5c94ca of _0x3f8d3a)if(_0x5c94ca['isInContent']){for(const _0x14c955 of _0xfa8c32)for(const _0x429e7a of _0x5c94ca['getRanges']())(_0x14c955['isIntersecting'](_0x429e7a)||_0x13e531['isCollapsed']&&!_0x5c94ca['isMultiRange']&&_0x5c94ca['next']&&_0x429e7a['end']['isTouching'](_0x14c955['start']))&&_0x454b45['add'](_0x5c94ca);}return _0x454b45;}(_0x5162fb,_0x181d5c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5940ec=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3225a1 of _0x5940ec){const _0x58fd8f=_0x3225a1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x58fd8f))return;}rs(this['editor']['model'],this['_command'],_0x5940ec);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x13aff3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1241c7,_0x496acc){super(),this['id']=_0x496acc['id'],this['type']=_0x496acc['type'],this['subType']=_0x496acc['subType']||null,this['author']=_0x496acc['author'],this['creator']=_0x496acc['creator']||_0x496acc['author'],this['isExternal']=Boolean(_0x496acc['attributes']&&_0x496acc['attributes']['@external']),this['data']=null,this['_model']=_0x1241c7,this['_onAccept']=_0x496acc['onAccept'],this['_onDiscard']=_0x496acc['onDiscard'],this['_onAttributesChange']=_0x496acc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x496acc['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 _0x43d90d=this;for(;_0x43d90d['previous'];)_0x43d90d=_0x43d90d['previous'];return _0x43d90d;}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'](_0x5956ce){this['_markerNames']['add'](_0x5956ce);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x10d9b2=>this['_model']['markers']['get'](_0x10d9b2))['filter'](_0x159ccc=>_0x159ccc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2138a2=>{for(const _0x46ba48 of this['getMarkers']())_0x2138a2['removeMarker'](_0x46ba48);}),this['_markerNames']['clear']();}['removeMarker'](_0x5f523c){this['_model']['change'](_0x3aae5f=>{_0x3aae5f['removeMarker'](_0x5f523c);}),this['_markerNames']['delete'](_0x5f523c);}['addRange'](_0x5cd6ae){const _0x163e09='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x163e09),this['_model']['change'](_0x34c702=>{_0x34c702['addMarker'](_0x163e09,{'range':_0x5cd6ae,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x495b67){for(const _0x26957e of this['getRanges']())if(_0x26957e['isIntersecting'](_0x495b67))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c5172=>_0x4c5172['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x87fd2d,_0x2b5e99)=>[..._0x87fd2d,..._0x2b5e99['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3aedbf=this['getRanges']();if(0x1!=_0x3aedbf['length'])return null;const _0x5c22ed=_0x3aedbf[0x0],_0x25dc24=_0x5c22ed['start']['nodeAfter'],_0x4ac8af=_0x5c22ed['end']['nodeBefore'];return _0x25dc24 instanceof _0x585adf?_0x25dc24!=_0x4ac8af?null:_0x25dc24: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 _0xfdab27=[];let _0x516947=this['head'];for(;_0x516947;)_0xfdab27['push'](_0x516947),_0x516947=_0x516947['next'];return _0xfdab27;}['setAttribute'](_0x557057,_0x1cba96){const _0x89ae06=_0x24eea2(this['attributes']);_0x24232a(_0x89ae06,_0x557057,_0x1cba96),_0x9c88fc(_0x89ae06,this['attributes'])||(this['attributes']=_0x89ae06,this['_onAttributesChange'](_0x89ae06));}['removeAttribute'](_0x454e47){const _0x3d5f3c=_0x24eea2(this['attributes']);_0x4583b4(_0x3d5f3c,_0x454e47),_0x9c88fc(_0x3d5f3c,this['attributes'])||(this['attributes']=_0x3d5f3c,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 _0x3035a1()['substr'](0x1,0x5);}}function o(_0x2f6c33,_0x4d523a,_0x3c51b8){const t=_0x2f6c33['t'];switch(_0x4d523a){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',_0x3c51b8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3c51b8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3c51b8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3c51b8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3c51b8);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',_0x3c51b8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3c51b8);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',_0x3c51b8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3c51b8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3c51b8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3c51b8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3c51b8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3c51b8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3c51b8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3c51b8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3c51b8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3c51b8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3c51b8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3c51b8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3c51b8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3c51b8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3c51b8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3c51b8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3c51b8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3c51b8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3c51b8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3c51b8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3c51b8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3c51b8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3c51b8);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'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3c51b8);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'},_0x3c51b8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3c51b8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3c51b8);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x3c51b8);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'},_0x3c51b8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x4d523a;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1d2ed0,_0x310d64){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1d2ed0,this['_locale']=_0x310d64;}['getDescriptions'](_0x1b14d6){const _0x4bff48=[],_0x37ced7=new Set(),_0x379a2c=new Set();for(let _0x586044=0x0;_0x586044<_0x1b14d6['length'];_0x586044++){const _0x17e8f4=_0x1b14d6[_0x586044];if(!_0x17e8f4['isInContent'])continue;const _0x16a6df=this['_handleCustomCallbackDescription'](_0x17e8f4);if(_0x16a6df){if(null!=_0x17e8f4['subType']){if(_0x37ced7['has'](_0x17e8f4['subType']))continue;_0x37ced7['add'](_0x17e8f4['subType']);}_0x4bff48['push'](_0x16a6df);}else{if('attribute'!=_0x17e8f4['type'])'insertion'!=_0x17e8f4['type']&&'deletion'!=_0x17e8f4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4bff48,_0x17e8f4,_0x1b14d6[_0x586044+0x1]);else{const _0x5b583f=_0x17e8f4['data']['key'];if(_0x379a2c['has'](_0x5b583f))continue;_0x379a2c['add'](_0x17e8f4['data']['key']),_0x5b583f==m?this['_handleRenameSuggestionDescription'](_0x4bff48,_0x17e8f4):this['_handleAttributeSuggestionDescription'](_0x4bff48,_0x17e8f4);}}}return this['_resolveDescriptionItems'](_0x4bff48);}['registerDescriptionCallback'](_0x14b267){this['_customCallbacks']['push'](_0x14b267);}['registerElementLabel'](_0x4d51bf,_0x597344,_0x122c68=_0x3b4600['normal']){'function'==typeof _0x4d51bf?_0x243765(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4d51bf,'label':_0x597344,'priority':_0x122c68}):this['_itemLabels']['set'](_0x4d51bf,_0x597344);}['registerAttributeLabel'](_0x1c2689,_0x36b52a){this['_attributeLabels']['set'](_0x1c2689,_0x36b52a);}['getItemLabel'](_0x21d64b,_0x1f89a7=0x1){let _0xfc603c;for(const _0x491db5 of this['_itemLabelsCallbacks'])if(_0x491db5['matchingCallback'](_0x21d64b)){_0xfc603c=_0x491db5['label'];break;}return _0xfc603c||(_0xfc603c=this['_itemLabels']['get'](_0x21d64b['name'])),_0xfc603c?_0xfc603c(_0x1f89a7):0x1!==_0x1f89a7?_0x1f89a7+'\x20'+_0x21d64b['name']+'s':''+_0x21d64b['name'];}['_addDescriptionItems'](_0x5d1951,_0x4dfe7c){const _0x47457c=_0x4dfe7c['getFirstRange']()['getWalker'](),_0x5564bc='insertion'==_0x4dfe7c['type']?'add':'remove';for(const _0x38b165 of _0x47457c){const _0x5e43f7=_0x38b165['item'],_0x2aa56e=_0x5d1951[_0x5d1951['length']-0x1];if(_0x5e43f7['is']('$textProxy'))_0x2aa56e&&_0x2aa56e['type']['indexOf']('Container')>-0x1&&_0x5d1951['pop'](),_0x2aa56e&&'text'==_0x2aa56e['type']?_0x2aa56e[_0x5564bc]+=_0x5e43f7['data']:_0x5d1951['push']({'type':'text','add':'add'==_0x5564bc?_0x5e43f7['data']:'','remove':'remove'==_0x5564bc?_0x5e43f7['data']:''});else{if(this['_schema']['isObject'](_0x5e43f7)){const _0x22662a=_0x5e43f7;if(_0x2aa56e&&_0x2aa56e['type']['indexOf']('Container')>-0x1&&_0x5d1951['pop'](),'elementEnd'==_0x38b165['type'])continue;_0x2aa56e&&_0x2aa56e['type']==_0x5564bc+'Object'&&_0x2aa56e['element']['name']==_0x22662a['name']?_0x2aa56e['quantity']++:_0x5d1951['push']({'type':_0x5564bc+'Object','element':_0x22662a,'quantity':0x1}),_0x47457c['skip'](_0x1d8277=>!('elementEnd'==_0x1d8277['type']&&_0x1d8277['item']==_0x5e43f7));}else{if(this['_schema']['checkChild'](_0x5e43f7,'$text')||_0x5e43f7['is']('element','softBreak')){const _0x12b87e=_0x5e43f7;if('add'==_0x5564bc&&'elementStart'==_0x38b165['type']||'remove'==_0x5564bc&&'elementEnd'==_0x38b165['type'])continue;if(_0x2aa56e&&-0x1==_0x2aa56e['type']['indexOf']('Container')){'text'==_0x2aa56e['type']&&(_0x2aa56e[_0x5564bc]+='\x0a');continue;}let _0x56f944;if(_0x56f944='add'==_0x5564bc?_0x12b87e['nextSibling']&&!this['_schema']['isObject'](_0x12b87e['nextSibling'])?_0x12b87e['nextSibling']:null:_0x12b87e['previousSibling']&&!this['_schema']['isObject'](_0x12b87e['previousSibling'])?_0x12b87e['previousSibling']:null,_0x12b87e['isEmpty']||_0x56f944&&_0x56f944['isEmpty']){const _0x3afaa5=_0x56f944&&_0x56f944['isEmpty']?_0x56f944:_0x12b87e;_0x2aa56e&&_0x2aa56e['type']==_0x5564bc+'EmptyContainer'&&_0x2aa56e['element']['name']==_0x3afaa5['name']?_0x2aa56e['quantity']++:_0x5d1951['push']({'type':_0x5564bc+'EmptyContainer','element':_0x3afaa5,'quantity':0x1});}else _0x5d1951['push']({'type':_0x5564bc+'Container','element':_0x12b87e});}}}}}['_resolveDescriptionItems'](_0x41a636){const _0x1d6684=this['_locale'],_0x326874=[],_0x1faf43=[],_0x540834=[];for(const _0x4cbf0a of _0x41a636)switch(_0x4cbf0a['type']){case'text':if(_0x4cbf0a['add']=_0x4cbf0a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4cbf0a['remove']=_0x4cbf0a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4cbf0a['add']&&''!=_0x4cbf0a['remove']){_0x326874['push']({'type':'replace','content':o(_0x1d6684,'REPLACE_TEXT',['\x22'+_0x4cbf0a['remove']+'\x22','\x22'+_0x4cbf0a['add']+'\x22'])});continue;}if(null!=_0x4cbf0a['add']['match'](/^ +$/)){_0x326874['push']({'type':'insertion','content':o(_0x1d6684,'*Insert:*\x20%0',o(_0x1d6684,'ELEMENT_SPACE',_0x4cbf0a['add']['length']))});continue;}if(null!=_0x4cbf0a['remove']['match'](/^ +$/)){_0x326874['push']({'type':'deletion','content':o(_0x1d6684,'*Remove:*\x20%0',o(_0x1d6684,'ELEMENT_SPACE',_0x4cbf0a['remove']['length']))});continue;}if(''!=_0x4cbf0a['add']){_0x326874['push']({'type':'insertion','content':o(_0x1d6684,'*Insert:*\x20%0','\x22'+_0x4cbf0a['add']+'\x22')});continue;}_0x326874['push']({'type':'deletion','content':o(_0x1d6684,'*Remove:*\x20%0','\x22'+_0x4cbf0a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x326874['push']({'type':'insertion','content':o(_0x1d6684,'*Insert:*\x20%0',this['getItemLabel'](_0x4cbf0a['element'],_0x4cbf0a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x326874['push']({'type':'deletion','content':o(_0x1d6684,'*Remove:*\x20%0',this['getItemLabel'](_0x4cbf0a['element'],_0x4cbf0a['quantity']))});continue;case'addContainer':_0x326874['push']({'type':'insertion','content':o(_0x1d6684,'*Split:*\x20%0',this['getItemLabel'](_0x4cbf0a['element'],_0x4cbf0a['quantity']))});continue;case'removeContainer':_0x326874['push']({'type':'deletion','content':o(_0x1d6684,'*Merge:*\x20%0',this['getItemLabel'](_0x4cbf0a['element'],_0x4cbf0a['quantity']))});continue;case'addFormat':_0x1faf43['push'](_0x4cbf0a['key']);continue;case'removeFormat':_0x540834['push'](_0x4cbf0a['key']);continue;default:_0x326874['push'](_0x4cbf0a);}if(_0x1faf43['length']){const _0x22afb6=_0x1faf43['map'](_0x530912=>this['_attributeLabels']['has'](_0x530912)?this['_attributeLabels']['get'](_0x530912):_0x530912)['join'](',\x20');_0x326874['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x22afb6)});}if(_0x540834['length']){const _0x41ecf3=_0x540834['map'](_0x438b48=>this['_attributeLabels']['has'](_0x438b48)?this['_attributeLabels']['get'](_0x438b48):_0x438b48)['join'](',\x20');_0x326874['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x41ecf3)});}return _0x326874;}['_handleCustomCallbackDescription'](_0x4a85af){for(const _0x45eec6 of this['_customCallbacks']){const _0x4e4440=_0x45eec6(_0x4a85af);if(_0x4e4440&&'type'in _0x4e4440)return _0x4e4440;}}['_handleAttributeSuggestionDescription'](_0x32aa40,_0x5f5605){const _0x1b2adb=_0x5f5605['data'],_0x171b02=void 0x0===_0x1b2adb['newValue']?'removeFormat':'addFormat';_0x32aa40['push']({'type':_0x171b02,'key':_0x1b2adb['key']});}['_handleRenameSuggestionDescription'](_0x398a59,_0x395a6c){_0x398a59['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x395a6c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d326,_0x9d9d81,_0x1d16ce){if(this['_addDescriptionItems'](_0x2d326,_0x9d9d81),_0x1d16ce&&_0x1d16ce['getFirstRange']()&&!_0x9d9d81['getFirstRange']()['end']['isEqual'](_0x1d16ce['getFirstRange']()['start'])){const _0x42f513=_0x2d326[_0x2d326['length']-0x1],_0x1e2326='insertion'==_0x9d9d81['type']?'add':'remove';_0x42f513&&'text'==_0x42f513['type']&&(_0x42f513[_0x1e2326]+='\x0a');}}}class E extends _0x3be5df{['afterInit'](){const _0xc2e67a=this['editor'],_0x465c0f=_0xc2e67a['plugins']['get']('TrackChangesEditing');_0xc2e67a['commands']['get']('showAIAssistant')&&_0x465c0f['enableCommand']('showAIAssistant');}}class V extends _0x3be5df{['afterInit'](){const _0x777a1c=this['editor'],_0x5a7eab=_0x777a1c['locale'];if(!_0x777a1c['plugins']['has']('AlignmentEditing'))return;const _0x223a0d=_0x777a1c['plugins']['get']('TrackChangesEditing');_0x223a0d['enableDefaultAttributesIntegration']('alignment'),_0x223a0d['registerBlockAttribute']('alignment'),_0x223a0d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a7eab,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a2ce7=this['editor'],_0x12a66e=_0x2a2ce7['locale'];_0x2a2ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b9cc=>{if('formatBlock'!=_0x42b9cc['type'])return;const {data:_0x409131}=_0x42b9cc;if(_0x409131&&'alignment'==_0x409131['commandName']){const _0xee2c56=_0x409131['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x12a66e,'*Format:*\x20%0',function(_0x6e4f48){switch(_0x6e4f48){case'left':return o(_0x12a66e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x12a66e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x12a66e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x12a66e,'FORMAT_JUSTIFY_TEXT');}}(_0xee2c56))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x3be5df{['afterInit'](){const _0x1fdd8e=this['editor'],_0x35c4c5=_0x1fdd8e['plugins']['get']('TrackChangesEditing'),_0x1f8f73=_0x1fdd8e['locale'];for(const _0x79f992 of ti){if(!_0x1fdd8e['plugins']['has'](_0x79f992))continue;const _0x3dfc07=_0x79f992['slice'](0x0,-0x7)['toLowerCase'](),_0x179c79='FORMAT_'+_0x3dfc07['toUpperCase']();_0x35c4c5['enableDefaultAttributesIntegration'](_0x3dfc07),_0x35c4c5['registerInlineAttribute'](_0x3dfc07),_0x35c4c5['descriptionFactory']['registerAttributeLabel'](_0x3dfc07,o(_0x1f8f73,_0x179c79));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47cf5b=this['editor'],_0x151058=_0x47cf5b['locale'],_0x37c82d=_0x47cf5b['plugins']['get']('TrackChangesEditing');function _0x3d23db(_0x478c87,_0x2f5dba){_0x37c82d['descriptionFactory']['registerDescriptionCallback'](_0x16c75f=>{if('formatInline'!=_0x16c75f['type'])return;const {data:_0x45cf62}=_0x16c75f;return _0x45cf62&&_0x45cf62['commandName']===_0x478c87?_0x45cf62['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x151058,'*Format:*\x20%0',_0x2f5dba)}:{'type':'format','content':o(_0x151058,'*Remove\x20format:*\x20%0',_0x2f5dba)}:void 0x0;});}_0x3d23db('bold',o(_0x151058,'FORMAT_BOLD')),_0x3d23db('italic',o(_0x151058,'FORMAT_ITALIC')),_0x3d23db('underline',o(_0x151058,'FORMAT_UNDERLINE')),_0x3d23db('code',o(_0x151058,'FORMAT_CODE')),_0x3d23db('strikethrough',o(_0x151058,'FORMAT_STRIKETHROUGH')),_0x3d23db('subscript',o(_0x151058,'FORMAT_SUBSCRIPT')),_0x3d23db('superscript',o(_0x151058,'FORMAT_SUPERSCRIPT'));}}class O extends _0x3be5df{['afterInit'](){const _0x172539=this['editor'],_0x461577=_0x172539['locale'];if(!_0x172539['plugins']['has']('BlockQuoteEditing'))return;const _0x2105c3=_0x172539['plugins']['get']('TrackChangesEditing'),_0x418289=this['editor']['commands']['get']('blockQuote');_0x2105c3['enableCommand']('blockQuote',(_0xad5f8c,_0x25b7ea={})=>{const _0x2f1d98=this['editor']['model']['document']['selection'],_0x54b0dd=_0x25b7ea&&void 0x0!==_0x25b7ea['forceValue']?_0x25b7ea['forceValue']:!_0x418289['value'];let _0x5aea69=[];if(_0x54b0dd){const _0x90e82=Array['from'](_0x2f1d98['getSelectedBlocks']())['filter'](_0xc68e2a=>oo(_0xc68e2a)||function(_0x135aec,_0x51930a){const _0x35a2d3=_0x51930a['checkChild'](_0x135aec['parent'],'blockQuote'),_0xdf8e23=_0x51930a['checkChild'](['$root','blockQuote'],_0x135aec);return _0x35a2d3&&_0xdf8e23;}(_0xc68e2a,this['editor']['model']['schema']));_0x5aea69=to(_0x90e82,_0x172539['model']);}else{const _0x49359c=Array['from'](_0x2f1d98['getSelectedBlocks']())['filter'](_0x35adc6=>oo(_0x35adc6));_0x5aea69=to(_0x49359c,_0x172539['model']);}_0x172539['model']['change'](()=>{for(const _0x1e4e52 of _0x5aea69)_0x2105c3['markBlockFormat'](_0x1e4e52,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54b0dd}]});});}),_0x2105c3['descriptionFactory']['registerDescriptionCallback'](_0x4bc55c=>{const {data:_0x1f0cb5}=_0x4bc55c;if(_0x1f0cb5&&'blockQuote'==_0x1f0cb5['commandName']){const _0x4628c2=o(_0x461577,'ELEMENT_BLOCK_QUOTE');return _0x1f0cb5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x461577,'*Set\x20format:*\x20%0',_0x4628c2)}:{'type':'format','content':o(_0x461577,'*Remove\x20format:*\x20%0',_0x4628c2)};}});}}function oo(_0x42e51d){return'blockQuote'==_0x42e51d['parent']['name'];}class F extends _0x3be5df{['afterInit'](){const _0x51cfe5=this['editor'];_0x51cfe5['plugins']['has']('CaseChange')&&(_0x51cfe5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51cfe5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51cfe5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x3be5df{['afterInit'](){const _0x529c7c=this['editor'];_0x529c7c['commands']['get']('ckbox')&&_0x529c7c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3be5df{['afterInit'](){const _0x2be4fd=this['editor'];if(!_0x2be4fd['plugins']['has']('CodeBlock'))return;const _0x2fab25=_0x2be4fd['plugins']['get']('TrackChangesEditing'),_0x4acdf3=_0x2be4fd['locale'],_0x11f16f=_0x2be4fd['config']['get']('codeBlock')['languages'],_0x1c3095=_0x2be4fd['commands']['get']('codeBlock');_0x2fab25['enableCommand']('indentCodeBlock'),_0x2fab25['enableCommand']('outdentCodeBlock'),_0x2fab25['enableCommand']('codeBlock',(_0x59a9aa,_0x4bbe14={})=>{const _0x4b21a0=_0x2be4fd['model'],_0x2d02d2=_0x2be4fd['model']['document']['selection'],_0x180f20=_0x4bbe14&&void 0x0!==_0x4bbe14['forceValue']?_0x4bbe14['forceValue']:!_0x1c3095['value'];let _0x192f46;_0x4bbe14['language']||(_0x4bbe14['language']=_0x11f16f[0x0]['language']),_0x192f46=_0x180f20?Array['from'](_0x2d02d2['getSelectedBlocks']())['filter'](_0x5941e8=>eo(_0x5941e8)||function(_0xd7a685,_0x381387){if(_0xd7a685['is']('rootElement')||_0x381387['isLimit'](_0xd7a685))return!0x1;return _0x381387['checkChild'](_0xd7a685['parent'],'codeBlock');}(_0x5941e8,_0x4b21a0['schema'])):Array['from'](_0x2d02d2['getSelectedBlocks']())['filter'](_0x4e8b3d=>eo(_0x4e8b3d));const _0x1e8d21=to(_0x192f46,_0x4b21a0);_0x4b21a0['change'](()=>{for(const _0x5228e8 of _0x1e8d21)_0x2fab25['markBlockFormat'](_0x5228e8,{'commandName':'codeBlock','commandParams':[{..._0x4bbe14,'forceValue':_0x180f20}],'formatGroupId':'blockName'});});}),(_0x2fab25['descriptionFactory']['registerElementLabel']('codeBlock',_0x4637ff=>o(_0x4acdf3,'ELEMENT_CODE_BLOCK',_0x4637ff)),_0x2fab25['descriptionFactory']['registerDescriptionCallback'](_0x412c70=>{if('formatBlock'!=_0x412c70['type'])return;const _0x3ae8ae=_0x4acdf3['t'],{data:_0x25131d}=_0x412c70;if(!_0x25131d||'codeBlock'!=_0x25131d['commandName'])return;const _0x5b1653=_0x25131d['commandParams'][0x0]['language'],_0x5ca258=_0x3ae8ae(_0x11f16f['find'](_0xed360a=>_0xed360a['language']===_0x5b1653)['label'])['toLowerCase']();return _0x25131d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4acdf3,'*Set\x20format:*\x20%0',o(_0x4acdf3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ca258+')')}:{'type':'format','content':o(_0x4acdf3,'*Remove\x20format:*\x20%0',o(_0x4acdf3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5eae46){return'codeBlock'==_0x5eae46['name'];}class H extends _0x3be5df{['afterInit'](){const _0x92a24a=this['editor'];if(!_0x92a24a['plugins']['has']('CommentsEditing'))return;_0x92a24a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x20727a,_0x497f7f,_0x4066b5){const _0x536443=[];for(const _0x5f3ddc of _0x497f7f['getItems']())_0x5f3ddc['hasAttribute'](_0x20727a)&&_0x536443['push'](_0x4066b5['createRangeOn'](_0x5f3ddc));return _0x536443;}function _e(_0x27f765,_0x2c79f5,{showActiveMarker:_0x42cc16=!0x0}={}){const _0x32ac51=_0x27f765['plugins']['get']('TrackChangesEditing');return(_0xc6ae71,_0xd4604d,_0x3e7d3a)=>{if(!_0x3e7d3a['consumable']['test'](_0xd4604d['markerRange'],_0xc6ae71['name']))return;const _0x3c9247=_0xd4604d['markerRange']['getWalker'](),_0xb0e897=_0xd4604d['markerRange']['start'],_0x13ea0e=_0x27f765['model']['schema'];let _0x4f84db=null,_0xbf3853=null,_0xe6336a=!0x1,_0x5cd248=!0x1;for(const _0x2eb00b of _0x3c9247){const _0x496c33=_0x2eb00b['item'];_0xe6336a=_0xe6336a||_0x13ea0e['isContent'](_0x496c33);const _0x5bc996=_0x3e7d3a['mapper']['toViewElement'](_0x496c33);if(_0x5bc996&&_0x5bc996['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2eb00b['type']&&(_0x13ea0e['isBlock'](_0x496c33)&&!_0x13ea0e['isLimit'](_0x496c33)&&(_0x496c33['nextSibling']||_0xb0e897['isAtEnd']?_0x4f84db&&_0x4f84db['parent']==_0x496c33||(_0x4f84db=_0x496c33,_0x36cf38(_0x2eb00b['previousPosition']),_0x5cd248=!0x0):_0xbf3853=_0xbf3853||_0x2eb00b['previousPosition']));}function _0x36cf38(_0x1805f4){const _0x23f50f=_0x3e7d3a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c79f5}),_0x25ce0f=_0x3e7d3a['mapper']['toViewPosition'](_0x1805f4);_0x42cc16&&_0x32ac51['activeMarkers']['includes'](_0xd4604d['markerName'])&&_0x3e7d3a['writer']['addClass']('ck-suggestion-marker--active',_0x23f50f),_0x3e7d3a['writer']['insert'](_0x25ce0f,_0x23f50f),_0x3e7d3a['mapper']['bindElementToMarker'](_0x23f50f,_0xd4604d['markerName']);}_0xe6336a||_0x5cd248||!_0xbf3853||_0x36cf38(_0xbf3853);};}class q extends _0x3be5df{static get['requires'](){return[_0x59be5b];}['init'](){const _0xb65329=this['editor'],_0x3ca166=_0xb65329['plugins']['get']('TrackChangesEditing');_0x3ca166['enableCommand']('delete');const _0x4c3e1b=_0xb65329['commands']['get']('deleteForward');_0x3ca166['enableCommand']('deleteForward',(_0x312f8a,_0x280ece={})=>{const _0x58d7a5=_0xb65329['model']['createSelection'](_0xb65329['model']['document']['selection']);_0x58d7a5['isCollapsed']&&_0xb65329['model']['modifySelection'](_0x58d7a5,{'direction':'forward','unit':_0x280ece['unit']});const _0x38af30=_0x58d7a5['getFirstRange'](),_0x3a9471=_0x2ded21['fromRange'](_0x38af30);let _0x1861d8;_0x312f8a(_0x280ece),_0x1861d8='$graveyard'==_0x3a9471['root']['rootName']?_0xb65329['model']['createRange'](_0x38af30['start']):_0xb65329['model']['createRange'](_0x3a9471['start'],_0x3a9471['end']),_0x3a9471['detach'](),_0xb65329['model']['enqueueChange'](_0x4c3e1b['buffer']['batch'],_0x2f2158=>{_0x4c3e1b['buffer']['lock'](),_0x2f2158['setSelection'](_0x2f2158['createRange'](_0x1861d8['end'])),_0x4c3e1b['buffer']['unlock']();});}),_0xb65329['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xb65329,'merge'),{'priority':'high'}),_0xb65329['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5d2ff1,_0x356023,_0x3fb7bd)=>{_0x3fb7bd['options']['showSuggestionHighlights']&&_e(_0xb65329,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5d2ff1,_0x356023,_0x3fb7bd);},{'priority':'high'}),_0xb65329['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x17c2b0,_0x3e2ed2,_0x3cae5e)=>{const _0x389395=_0x3cae5e['mapper']['markerNameToElements'](_0x3e2ed2['markerName']);if(_0x389395){for(const _0x5bcff1 of _0x389395)_0x5bcff1['is']('uiElement')&&(_0x3cae5e['mapper']['unbindElementFromMarkerName'](_0x5bcff1,_0x3e2ed2['markerName']),_0x3cae5e['writer']['remove'](_0x5bcff1));}},{'priority':'high'});}}class z extends _0x3be5df{['afterInit'](){const _0x5ae1a0=this['editor'];if(!_0x5ae1a0['plugins']['has']('ListEditing'))return;const _0x53a92d=_0x5ae1a0['locale'],_0x133a00=_0x5ae1a0['plugins']['get']('TrackChangesEditing'),_0x4a9f9f=_0x5ae1a0['plugins']['has']('TodoListEditing'),_0x37e6c2=!!_0x5ae1a0['config']['get']('list.multiBlock');function _0x624b11(_0x5b4db0){return{'type':'format','content':''+o(_0x53a92d,'*Set\x20format:*\x20%0',_0x5b4db0)};}function _0x59286d(_0x326c40){return{'type':'format','content':''+o(_0x53a92d,'*Remove\x20format:*\x20%0',_0x326c40)};}_0x133a00['enableDefaultAttributesIntegration']('numberedList'),_0x133a00['enableDefaultAttributesIntegration']('bulletedList'),_0x133a00['enableDefaultAttributesIntegration']('customNumberedList'),_0x133a00['enableDefaultAttributesIntegration']('customBulletedList'),_0x133a00['enableDefaultAttributesIntegration']('indentList'),_0x133a00['enableDefaultAttributesIntegration']('outdentList'),_0x133a00['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x133a00['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x133a00['registerBlockAttribute']('listItemId'),_0x133a00['registerBlockAttribute']('listType'),_0x133a00['registerBlockAttribute']('listIndent'),_0x37e6c2&&(_0x133a00['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x133a00['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4a9f9f&&(_0x133a00['enableDefaultAttributesIntegration']('todoList'),_0x133a00['enableDefaultAttributesIntegration']('checkTodoList'),_0x133a00['registerBlockAttribute']('todoListChecked'),_0x133a00['descriptionFactory']['registerDescriptionCallback'](_0x12d978=>{const {data:_0x565701}=_0x12d978;if(_0x565701&&'todoListChecked'==_0x565701['key'])return{'type':'format','content':_0x565701['newValue']?o(_0x53a92d,'*Check\x20item*'):o(_0x53a92d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2254e8=>{if(_0x2254e8['batch']['isUndo'])return!0x1;let _0xa3e079=!0x1;const _0x434871=_0x133a00['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x522b1d=>'todoListChecked'===_0x133a00['_getAttributeKey'](_0x522b1d));for(const _0x4d00e3 of _0x434871){'todo'!=_0x4d00e3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x133a00['_findSuggestions'](_0x4d00e3['getFirstRange'](),'attribute')['find'](_0x2c99ac=>'listType'===_0x133a00['_getAttributeKey'](_0x2c99ac['suggestion']))||(_0x2254e8['removeMarker'](_0x4d00e3['getFirstMarker']()),_0xa3e079=!0x0));}return _0xa3e079;})),_0x133a00['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x53a92d,'FORMAT_INDENT'));const _0x2512fe={'type':'format','content':''};_0x133a00['descriptionFactory']['registerDescriptionCallback'](_0x500bf3=>{const {data:_0x566396}=_0x500bf3;if(!_0x566396||'listType'!=_0x566396['key'])return;let _0xafed15=_0x500bf3['head'];for(;_0xafed15;){if(_0xafed15['data']&&(('listStyle'==_0xafed15['data']['key']||'listMarkerStyle'==_0xafed15['data']['key'])&&(_0xafed15['data']['newValue']&&'default'!=_0xafed15['data']['newValue']||'default'!=_0xafed15['data']['oldValue']&&!_0x566396['newValue'])||!_0x37e6c2&&_0xafed15['data']['key']==m))return _0x2512fe;_0xafed15=_0xafed15['next'];}if(null==_0x566396['newValue'])switch(_0x566396['oldValue']){case'bulleted':return _0x59286d(o(_0x53a92d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x59286d(o(_0x53a92d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x59286d(o(_0x53a92d,'ELEMENT_TODO_LIST'));}switch(_0x566396['newValue']){case'bulleted':return _0x624b11(o(_0x53a92d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x624b11(o(_0x53a92d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x624b11(o(_0x53a92d,'ELEMENT_TODO_LIST'));}}),_0x133a00['descriptionFactory']['registerDescriptionCallback'](_0x100807=>{const {data:_0x531f92}=_0x100807;if(_0x531f92&&'listIndent'==_0x531f92['key'])return null==_0x531f92['newValue']||null==_0x531f92['oldValue']&&0x0==_0x531f92['newValue']?_0x2512fe:void 0x0;}),_0x133a00['descriptionFactory']['registerDescriptionCallback'](_0x50ea68=>{if('attribute'!=_0x50ea68['type'])return;const {data:_0x5d92f3}=_0x50ea68;if(!_0x5d92f3||'listItemId'!=_0x5d92f3['key'])return;const _0x159861=le(_0x50ea68);return'newValue'==_0x159861?{'type':'format','content':o(_0x53a92d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x159861?{'type':'format','content':o(_0x53a92d,'*Split:*\x20list\x20item')}:_0x2512fe;}),_0x5ae1a0['model']['document']['registerPostFixer'](_0x478b1a=>this['listItemIdFixer'](_0x478b1a)),_0x5ae1a0['model']['document']['registerPostFixer'](_0x297d7d=>this['noTrackChangesFixer'](_0x297d7d)),_0x5ae1a0['model']['document']['registerPostFixer'](_0x1c0609=>this['assureChains'](_0x1c0609)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x13fc66){if(_0x13fc66['batch']['isUndo']||!_0x13fc66['batch']['isLocal'])return!0x1;let _0x48486d=!0x1;const _0x5617e5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a5157=>_0x1a5157['data']&&'listItemId'==_0x1a5157['data']['key'])['filter'](_0x559c05=>_0x559c05['data']['newValue']&&_0x559c05['data']['oldValue']);for(const _0x50e3bb of _0x5617e5)le(_0x50e3bb)||(_0x13fc66['removeMarker'](_0x50e3bb['getFirstMarker']()),_0x48486d=!0x0);return _0x48486d;}['noTrackChangesFixer'](_0x3db5fd){if(_0x3db5fd['batch']['isUndo']||!_0x3db5fd['batch']['isLocal'])return!0x1;const _0x3aa7b2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3aa7b2['trackChangesCommand']['value'])return!0x1;let _0x5b5153=!0x1;const _0x57569c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3dfd00=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3ce08c=>'attribute'==_0x3ce08c['type'])['filter'](_0x4c8389=>_0x57569c['includes'](_0x4c8389['attributeKey']));if(0x0==_0x3dfd00['length'])return _0x5b5153;for(const _0x7c480a of _0x3dfd00){const _0x493d20=_0x3aa7b2['_findSuggestions'](_0x7c480a['range'],'attribute')['filter'](_0x5ac776=>!_0x5ac776['meta']['isNextTo'])['map'](_0x5de001=>_0x5de001['suggestion'])['filter'](_0x3620c9=>{const _0x4ebe6b=_0x3aa7b2['_getAttributeKey'](_0x3620c9);return _0x57569c['includes'](_0x4ebe6b);});if(_0x493d20['length']){for(const _0x537b35 of _0x493d20)_0x3db5fd['removeMarker'](_0x537b35['getFirstMarker']());_0x5b5153=!0x0;}}return _0x5b5153;}['assureChains'](_0x2c51e3){if(_0x2c51e3['batch']['isUndo']||!_0x2c51e3['batch']['isLocal'])return!0x1;const _0x2c17c0=this['editor']['plugins']['get']('TrackChangesEditing');let _0x51aeaf=!0x1;const _0x2f61eb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x37de20 of _0x2c17c0['getSuggestions']({'skipNotAttached':!0x0})){const _0x232f52=_0x2c17c0['_findSuggestions'](_0x37de20['getFirstRange'](),'attribute')['map'](_0x26512b=>_0x26512b['suggestion'])['filter'](_0x3b261d=>_0x3b261d['data']&&_0x2f61eb['includes'](_0x3b261d['data']['key']));if(!_0x232f52['length'])continue;const _0x1fab4a=_0x232f52[0x0]['head']['attributes']['groupId'];if(!_0x232f52['every'](_0x14a4db=>_0x14a4db['attributes']['groupId']===_0x1fab4a)){for(const _0x1015eb of _0x232f52)_0x1308aa(_0x1015eb,_0x1fab4a)&&(_0x51aeaf=!0x0);}}return _0x51aeaf;function _0x31bbf1(_0x455d46,_0x281038){for(const _0x4ac73e of _0x2c17c0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c5fb1=>'attribute'==_0x3c5fb1['type']&&_0x3c5fb1['attributes']['groupId']==_0x455d46))_0x4ac73e['setAttribute']('groupId',_0x281038);}function _0x1308aa(_0x36a6a5,_0x5cc220){let _0x39d04f=_0x36a6a5['head'],_0x30b038=!0x1;for(;_0x39d04f;)_0x39d04f['attributes']['groupId']!=_0x5cc220&&(_0x31bbf1(_0x39d04f['attributes']['groupId'],_0x5cc220),_0x39d04f['setAttribute']('groupId',_0x5cc220),_0x30b038=!0x0),_0x39d04f=_0x39d04f['next'];return _0x30b038;}}['_supportLegacySuggestions'](){const _0x143b1c=this['editor'],_0x2ba425=_0x143b1c['locale'],_0x721deb=_0x143b1c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x721deb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2c388b,_0x54d424){const _0x35708e=[];for(let _0x9d8ad1 of _0x2c388b)_0x9d8ad1['start']['nodeAfter']===_0x9d8ad1['end']['parent']&&(_0x9d8ad1=_0x143b1c['model']['createRange'](_0x143b1c['model']['createPositionAt'](_0x9d8ad1['start']['nodeAfter'],0x0))),_0x35708e['push'](_0x9d8ad1);_0x143b1c['model']['change'](_0x4e0d3b=>{const _0x1a00eb=_0x143b1c['model']['document']['selection'],_0x464798=Array['from'](_0x1a00eb['getRanges']())['map'](_0x3988fc=>_0x2ded21['fromRange'](_0x3988fc));_0x4e0d3b['setSelection'](_0x35708e),_0x143b1c['commands']['get'](_0x54d424['commandName'])['refresh'](),_0x54d424['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x143b1c['execute'](_0x54d424['commandName'],..._0x54d424['commandParams']),_0x4e0d3b['setSelection'](_0x464798);for(const _0x2378a2 of _0x464798)_0x2378a2['detach']();});}),_0x721deb['descriptionFactory']['registerElementLabel'](function(_0x43f82d){const _0x30101d=!_0x143b1c['model']['schema']['isObject'](_0x43f82d),_0x587464=_0x43f82d['previousSibling'],_0x32bd11=_0x43f82d['nextSibling'],_0x14f1d1=_0x43f82d['getAttribute']('listItemId'),_0x524cbd=!_0x587464||_0x587464['getAttribute']('listItemId')!==_0x14f1d1,_0x486e22=!_0x32bd11||_0x32bd11['getAttribute']('listItemId')!==_0x14f1d1;return _0x30101d&&Boolean(_0x14f1d1)&&_0x524cbd&&_0x486e22;},_0x4144fc=>o(_0x2ba425,'ELEMENT_LIST_ITEM',_0x4144fc));}['_registerLegacyDescription'](){const _0x214ec7=this['editor'],_0x6f9c10=_0x214ec7['locale'];function _0x1fee59(_0x55f9b8){const _0x2d14cb=_0x214ec7['commands']['get']('bulletedList')['value'],_0x4e4703=_0x214ec7['commands']['get']('numberedList')['value'];return'numberedList'===_0x55f9b8?_0x2d14cb:_0x4e4703;}_0x214ec7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x583ec5){if('formatBlock'!=_0x583ec5['type'])return;const {data:_0x524eae}=_0x583ec5;if(!_0x524eae)return;let _0x2681fc,_0x10623d,_0x170012,_0xd0d9cd;switch(_0x524eae['commandName']){case'bulletedList':_0x170012=_0x524eae['commandParams'][0x0]['forceValue'],_0xd0d9cd=_0x1fee59(_0x524eae['commandName']),_0x2681fc=_0x170012?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd0d9cd&&_0x214ec7['config']['get']('list.multiBlock')||(_0x2681fc='*Change\x20to:*\x20%0'),_0x10623d={'type':'format','content':o(_0x6f9c10,_0x2681fc,o(_0x6f9c10,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x170012=_0x524eae['commandParams'][0x0]['forceValue'],_0xd0d9cd=_0x1fee59(_0x524eae['commandName']),_0x2681fc=_0x170012?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd0d9cd&&_0x214ec7['config']['get']('list.multiBlock')||(_0x2681fc='*Change\x20to:*\x20%0'),_0x10623d={'type':'format','content':o(_0x6f9c10,_0x2681fc,o(_0x6f9c10,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2681fc='*Indent:*\x20%0',_0x10623d={'type':'format','content':o(_0x6f9c10,_0x2681fc,o(_0x6f9c10,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2681fc=function(_0x34cc54){const _0x2b676a=_0x34cc54['getFirstRange']();let _0x42f902=_0x2b676a['start']['nodeAfter'];for(;_0x42f902&&_0x2b676a['containsItem'](_0x42f902);){if(_0x42f902['getAttribute']('listIndent')>0x0)return!0x1;_0x42f902=_0x42f902['nextSibling'];}return!0x0;}(_0x583ec5)?o(_0x6f9c10,'*Format:*\x20remove\x20from\x20%0',o(_0x6f9c10,function(_0x55a060){return'ELEMENT_'+_0x55a060['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x583ec5))):o(_0x6f9c10,'*Outdent:*\x20%0',o(_0x6f9c10,'ELEMENT_LIST_ITEM')),_0x10623d={'type':'format','content':_0x2681fc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x524eae['multipleBlocks']&&(_0x2681fc='*Merge:*\x20%0',_0x10623d={'type':'deletion','content':o(_0x6f9c10,_0x2681fc,o(_0x6f9c10,'ELEMENT_LIST_ITEM'))});}return _0x10623d;});}}function le(_0x518782){let _0x1792b6=_0x518782['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1792b6;){const _0x24c6eb=_0x1792b6['getAttribute']('listItemId');if(!_0x24c6eb)return!0x1;if(_0x24c6eb==_0x518782['data']['newValue'])return'newValue';if(_0x24c6eb==_0x518782['data']['oldValue'])return'oldValue';_0x1792b6=_0x1792b6['previousSibling'];}return!0x1;}class ue extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x136f22=this['editor']['config']['get']('list.properties'),_0xf5c06e=this['editor']['plugins']['get']('TrackChangesEditing');_0x136f22['styles']&&(_0xf5c06e['enableDefaultAttributesIntegration']('listStyle'),_0xf5c06e['registerBlockAttribute']('listStyle')),_0x136f22['reversed']&&(_0xf5c06e['enableDefaultAttributesIntegration']('listReversed'),_0xf5c06e['registerBlockAttribute']('listReversed')),_0x136f22['startIndex']&&(_0xf5c06e['enableDefaultAttributesIntegration']('listStart'),_0xf5c06e['registerBlockAttribute']('listStart'));const _0x3bf1f={'type':'format','content':''};_0xf5c06e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x289bcd=this['editor']['locale'];_0xf5c06e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x289bcd,'FORMAT_LIST_REVERSED')),_0xf5c06e['descriptionFactory']['registerDescriptionCallback'](_0x3b52ba=>{const {data:_0x27b518}=_0x3b52ba;if(_0x27b518&&'listReversed'==_0x27b518['key'])return null==_0x27b518['newValue']||0x0==_0x27b518['newValue']&&null==_0x27b518['oldValue']?_0x3bf1f:void 0x0;}),_0xf5c06e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x289bcd,'FORMAT_LIST_START')),_0xf5c06e['descriptionFactory']['registerDescriptionCallback'](_0x5c88c8=>{const {data:_0x32222b}=_0x5c88c8;if(_0x32222b&&'listStart'==_0x32222b['key'])return null==_0x32222b['newValue']||0x1==_0x32222b['newValue']&&null==_0x32222b['oldValue']?_0x3bf1f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x382146=>{if(_0x382146['batch']['isUndo'])return!0x1;let _0x239590=!0x1;const _0x4fadcd=_0xf5c06e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e519c=>{const _0xf7823f=_0xf5c06e['_getAttributeKey'](_0x4e519c);return'listStart'==_0xf7823f||'listReversed'==_0xf7823f;});for(const _0x376622 of _0x4fadcd){const _0x633e55=_0x376622['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x633e55||'customNumbered'==_0x633e55)continue;_0xf5c06e['_findSuggestions'](_0x376622['getFirstRange'](),'attribute')['find'](_0x183926=>'listType'==_0xf5c06e['_getAttributeKey'](_0x183926['suggestion']))||(_0x382146['removeMarker'](_0x376622['getFirstMarker']()),_0x239590=!0x0);}return _0x239590;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2fac53){const _0x5b28f9=this['editor']['locale'],{data:_0x2baeeb}=_0x2fac53,_0x507c4c={'type':'format','content':''};if(!_0x2baeeb||'listStyle'!=_0x2baeeb['key'])return;if(!_0x2baeeb['oldValue'])return'default'==_0x2baeeb['newValue']?_0x507c4c:{'type':'format','content':''+o(_0x5b28f9,'*Set\x20format:*\x20%0',o(_0x5b28f9,this['_getTranslationKeyForListStyle'](_0x2baeeb['newValue'])))};if(!_0x2baeeb['newValue']){if('default'==_0x2baeeb['oldValue'])return _0x507c4c;let _0x6c2e30=_0x2fac53['head'];for(;_0x6c2e30;){if(_0x6c2e30['data']&&'listType'==_0x6c2e30['data']['key']&&_0x6c2e30['data']['newValue'])return _0x507c4c;_0x6c2e30=_0x6c2e30['next'];}return{'type':'format','content':''+o(_0x5b28f9,'*Remove\x20format:*\x20%0',o(_0x5b28f9,this['_getTranslationKeyForListStyle'](_0x2baeeb['oldValue'])))};}if('default'!=_0x2baeeb['newValue'])return{'type':'format','content':''+o(_0x5b28f9,'*Set\x20format:*\x20%0',o(_0x5b28f9,this['_getTranslationKeyForListStyle'](_0x2baeeb['newValue'])))};let _0xa1dbfd=_0x2fac53['head'];for(;_0xa1dbfd;){if(_0xa1dbfd['data']&&'listType'==_0xa1dbfd['data']['key']&&_0xa1dbfd['data']['newValue']&&_0xa1dbfd['data']['oldValue'])return _0x507c4c;_0xa1dbfd=_0xa1dbfd['next'];}return{'type':'format','content':o(_0x5b28f9,'*Set\x20format:*\x20%0',o(_0x5b28f9,'ELEMENT_'+_0x2fac53['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4d31f7=this['editor'],_0x4e5b1c=_0x4d31f7['locale'];_0x4d31f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16f2fe=>{if('formatBlock'!=_0x16f2fe['type'])return;const {data:_0x366940}=_0x16f2fe;if(!_0x366940)return;let _0x4a4062,_0x205791;switch(_0x366940['commandName']){case'listStyle':_0x4a4062='*Change\x20to:*\x20%0',_0x205791={'type':'format','content':o(_0x4e5b1c,_0x4a4062,o(_0x4e5b1c,this['_getTranslationKeyForListStyle'](_0x366940['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a4062=_0x366940['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x205791={'type':'format','content':o(_0x4e5b1c,_0x4a4062)};break;case'listStart':_0x4a4062='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x205791={'type':'format','content':o(_0x4e5b1c,_0x4a4062,_0x366940['commandParams'][0x0]['startIndex'])};}return _0x205791;});}['_getTranslationKeyForListStyle'](_0x50b5e9){return'ELEMENT_'+function(_0xcd5ed2){if(pe['includes'](_0xcd5ed2))return'bulleted';if(ye['includes'](_0xcd5ed2))return'numbered';return null;}(_0x50b5e9)['toUpperCase']()+'_LIST_'+_0x50b5e9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x3be5df{static get['requires'](){return[_0x129566];}['init'](){const _0x1bf081=this['editor'],_0x47d07b=_0x1bf081['plugins']['get']('TrackChangesEditing'),_0x44099f=_0x1bf081['commands']['get']('enter');_0x47d07b['enableCommand']('enter',()=>{_0x1bf081['model']['change'](_0x270336=>{const _0x36c6ea=_0x1bf081['model']['document']['selection'],_0x1ecbb4=_0x36c6ea['getFirstPosition'](),_0x9d5a7a=_0x2ded21['fromRange'](_0x36c6ea['getFirstRange']());if(_0x44099f['enterBlock'](_0x270336)){const _0x430164=_0x1bf081['model']['createPositionAt'](_0x1ecbb4['parent']['nextSibling'],0x0),_0x2edca2=_0x270336['createRange'](_0x1ecbb4,_0x430164);_0x47d07b['markInsertion'](_0x2edca2);}else _0x270336['setSelection'](_0x270336['createRange'](_0x9d5a7a['end']));_0x9d5a7a['detach'](),_0x44099f['fire']('afterExecute',{'writer':_0x270336});});}),_0x1bf081['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1bf081,'split'),{'priority':'high'}),_0x1bf081['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5b7290,_0x343fa1,_0x19be06)=>{const _0x57a55c=_0x19be06['mapper']['markerNameToElements'](_0x343fa1['markerName']);if(_0x57a55c){for(const _0x59c805 of _0x57a55c)_0x59c805['hasClass']('ck-suggestion-marker-split')&&(_0x19be06['mapper']['unbindElementFromMarkerName'](_0x59c805,_0x343fa1['markerName']),_0x19be06['writer']['remove'](_0x59c805));}},{'priority':'high'}),_0x1bf081['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3cd99f,_0x35c4b9,_0x11ed70)=>{_0x11ed70['options']['showSuggestionHighlights']&&_e(_0x1bf081,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3cd99f,_0x35c4b9,_0x11ed70);},{'priority':'high'});}}class J extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x526e17=this['editor']['plugins']['get']('TrackChangesEditing');_0x526e17['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x526e17['enableCommand']('findNext'),_0x526e17['enableCommand']('findPrevious'),_0x526e17['enableCommand']('replace'),_0x526e17['enableCommand']('replaceAll');}['handleFindCommand'](_0x2e34fb,_0x5d42b6,_0x3b5ea4={}){const _0x28cb40=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2e34fb(_0xaca49a=>('string'==typeof _0x5d42b6?_0x28cb40['findByTextCallback'](_0x5d42b6,_0x3b5ea4):_0x5d42b6)(_0xaca49a)['filter'](_0x24aab6=>!0x1===this['_isInDeletionRange'](_0x24aab6,_0xaca49a['item'])),_0x3b5ea4);}['_isInDeletionRange'](_0x40b388,_0x399263){const _0x215b1c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x399263,_0x40b388['start']),this['editor']['model']['createPositionAt'](_0x399263,_0x40b388['end']));for(const _0x2180b3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x215b1c['getIntersection'](_0x2180b3['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x3be5df{['afterInit'](){const _0x20659a=this['editor']['locale'],_0x27f060=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e4f05,commandName:_0x469e66}of ro)this['editor']['plugins']['has'](_0x1e4f05)&&(_0x27f060['enableDefaultAttributesIntegration'](_0x469e66),_0x27f060['registerInlineAttribute'](_0x469e66));_0x20659a['t'],_0x27f060['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x20659a,'FORMAT_FONT_SIZE')),_0x27f060['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x20659a,'FORMAT_FONT_FAMILY')),_0x27f060['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x20659a,'FORMAT_FONT_COLOR')),_0x27f060['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x20659a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e25ac=this['editor'],_0x5c9807=_0x5e25ac['locale'];_0x5e25ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d82ad=>{const _0x47342c=_0x5c9807['t'];if('formatInline'!=_0x1d82ad['type'])return;const {data:_0x305ebd}=_0x1d82ad;if(null!=_0x305ebd){if('fontSize'==_0x305ebd['commandName']){const _0x442377=_0x305ebd['commandParams'][0x0]['value'];if(_0x442377){const _0x785ba5=_0x47342c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x447165=>_0x447165['model']==_0x442377)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c9807,'*Set\x20font\x20size:*\x20%0',_0x785ba5)};}return{'type':'format','content':o(_0x5c9807,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x305ebd['commandName']){const _0x528cfb=_0x305ebd['commandParams'][0x0]['value'];return _0x528cfb?{'type':'format','content':o(_0x5c9807,'*Set\x20font\x20family:*\x20%0',_0x528cfb)}:{'type':'format','content':o(_0x5c9807,'*Reset\x20font\x20family*')};}if('fontColor'==_0x305ebd['commandName']){const _0x594e86=_0x305ebd['commandParams'][0x0]['value'];if(_0x594e86){const _0x3275b5=_0x35f8c4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x55dbbe=>_0x55dbbe['model']==_0x594e86);let _0x3b4b29=_0x594e86,_0xa626a5='';return _0x3275b5&&(_0x3b4b29=_0x3275b5['label'],_0xa626a5=_0x47342c(_0x3b4b29)['toLowerCase']()),{'type':'format','content':o(_0x5c9807,'*Set\x20font\x20color:*\x20%0',_0xa626a5)['trim'](),'color':{'value':_0x594e86,'title':_0xa626a5||_0x3b4b29}};}return{'type':'format','content':o(_0x5c9807,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x305ebd['commandName']){const _0x41941a=_0x305ebd['commandParams'][0x0]['value'];if(_0x41941a){const _0x281dbf=_0x35f8c4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2e1bee=>_0x2e1bee['model']==_0x41941a);let _0x1f536a=_0x41941a,_0x10c7b3='';return _0x281dbf&&(_0x1f536a=_0x281dbf['label'],_0x10c7b3=_0x47342c(_0x1f536a)['toLowerCase']()),{'type':'format','content':o(_0x5c9807,'*Set\x20font\x20background\x20color:*\x20%0',_0x10c7b3)['trim'](),'color':{'value':_0x41941a,'title':_0x10c7b3||_0x1f536a}};}return{'type':'format','content':o(_0x5c9807,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x3be5df{['afterInit'](){const _0x168bfc=this['editor'],_0x5e2133=_0x168bfc['plugins']['get']('TrackChangesEditing'),_0xec1efc=_0x168bfc['commands']['get']('copyFormat'),_0x134fc3=_0x168bfc['commands']['get']('pasteFormat');_0xec1efc&&_0x134fc3&&(_0x5e2133['enableDefaultAttributesIntegration']('pasteFormat'),_0x5e2133['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f31c9=this['editor'],_0x38daa1=_0x3f31c9['locale'];_0x3f31c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22d893=>{if('formatBlock'!=_0x22d893['type']&&'formatInline'!=_0x22d893['type'])return;const {data:_0xd9951c}=_0x22d893;if(_0xd9951c&&'pasteFormat'===_0xd9951c['commandName']){const _0x2cfc8a=[],_0x5ddb62=_0xd9951c['commandParams'][0x0];for(const [_0x59dfbb,_0x20be72]of Object['entries'](_0x5ddb62))_0x2cfc8a['push'](so(_0x3f31c9,_0x59dfbb,_0x20be72));return _0x2cfc8a['length']?{'type':'format','content':o(_0x38daa1,'*Set\x20format\x20to:*\x20%0',_0x2cfc8a['join'](',\x20'))}:{'type':'format','content':o(_0x38daa1,'*Remove\x20all\x20formatting*')};}});}}function so(_0x457ea5,_0x5b8c2e,_0x8608e0){const _0x182236=_0x457ea5['locale']['t'],_0x58a643=_0x5b8c2e['split'](/(?=[A-Z])/)['join']('\x20'),_0x28e887=_0x182236(_0x58a643['charAt'](0x0)['toUpperCase']()+_0x58a643['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x8608e0)return _0x28e887;if('fontColor'===_0x5b8c2e||'fontBackgroundColor'===_0x5b8c2e){const _0x23331e=_0x35f8c4(_0x457ea5['config']['get']('fontColor.colors'))['find'](_0x10ad05=>_0x10ad05['model']==_0x8608e0);return _0x28e887+'\x20('+(_0x23331e?_0x182236(_0x23331e['label'])['toLowerCase']():_0x8608e0)+')';}if('fontSize'===_0x5b8c2e&&isNaN(parseFloat(_0x8608e0))){const _0x367306=_0x457ea5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x457ea5['config']['get']('fontSize.options'))['find'](_0x573fd9=>_0x573fd9['model']==_0x8608e0);return _0x28e887+'\x20('+(_0x367306?_0x182236(_0x367306['title'])['toLowerCase']():_0x8608e0)+')';}return _0x28e887+'\x20('+_0x8608e0+')';}class Y extends _0x3be5df{['_headingOptions'];['afterInit'](){const _0x18e838=this['editor'];if(!_0x18e838['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x18e838['config']['get']('heading.options');const _0x2d8c75=_0x18e838['locale'],_0x2fcf4c=_0x18e838['plugins']['get']('TrackChangesEditing');_0x2fcf4c['enableDefaultAttributesIntegration']('heading');for(const _0x2e1831 of this['_headingOptions'])'paragraph'!=_0x2e1831['model']&&_0x2fcf4c['descriptionFactory']['registerElementLabel'](_0x2e1831['model'],_0x3edce5=>{const _0x5cf99f=this['_getHeadingLevel'](_0x2e1831['model']);return null!==_0x5cf99f?_0x58e6c0(_0x3edce5,_0x5cf99f):_0x41229c(_0x3edce5,_0x2e1831['title']);});function _0x58e6c0(_0x57c107,_0x2c6f2a){return o(_0x2d8c75,'ELEMENT_HEADING',[_0x57c107,_0x2c6f2a]);}function _0x41229c(_0x2764f2,_0x323d04){return o(_0x2d8c75,'ELEMENT_HEADING_CUSTOM',[_0x2764f2,_0x323d04]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x387852=this['editor'],_0x13ba86=_0x387852['locale'];function _0x4b5f61(_0x5467a5,_0x1a3714){return o(_0x13ba86,'ELEMENT_HEADING_CUSTOM',[_0x5467a5,_0x1a3714]);}_0x387852['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd69f=>{if('formatBlock'!=_0x2bd69f['type'])return;const {data:_0x5a8edf}=_0x2bd69f;if(_0x5a8edf&&'heading'==_0x5a8edf['commandName']){const _0x1ef2ca=_0x5a8edf['commandParams'][0x0]['value'],_0x2a1fb6=this['_getHeadingLevel'](_0x1ef2ca);if(null!==_0x2a1fb6)return{'type':'format','content':o(_0x13ba86,'*Change\x20to:*\x20%0',(_0x530ced=0x1,_0x3fa402=_0x2a1fb6,o(_0x13ba86,'ELEMENT_HEADING',[_0x530ced,_0x3fa402])))};const _0x25bae2=this['_headingOptions']['find'](_0x157f5a=>_0x157f5a['model']===_0x1ef2ca)['title'];return{'type':'format','content':o(_0x13ba86,'*Change\x20to:*\x20%0',_0x4b5f61(0x1,_0x25bae2))};}var _0x530ced,_0x3fa402;});}['_getHeadingLevel'](_0x4a2089){const _0x4a1563=_0x4a2089['match'](/^heading(\d+)/);if(_0x4a1563)return _0x4a1563[0x1];const _0x2eeeef=this['_headingOptions']?.['find'](_0x5b9a18=>_0x5b9a18['model']==_0x4a2089);if(_0x2eeeef&&_0x2eeeef['view']){const _0x5b97e5=_0x2eeeef['view'],_0x5b89d4=(_0x5b97e5['name']??_0x5b97e5)['match'](/^h(\d+)/);if(_0x5b89d4)return _0x5b89d4[0x1];}return null;}}class Z extends _0x3be5df{['afterInit'](){const _0x3d5880=this['editor'];if(!_0x3d5880['plugins']['has']('HighlightEditing'))return;const _0x47fc6f=_0x3d5880['plugins']['get']('TrackChangesEditing'),_0x205e90=_0x3d5880['locale'];_0x47fc6f['enableDefaultAttributesIntegration']('highlight'),_0x47fc6f['registerInlineAttribute']('highlight'),_0x47fc6f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x205e90,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5611e9=this['editor'],_0x3565b3=_0x5611e9['locale'];_0x5611e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51dd51=>{if('formatInline'!=_0x51dd51['type'])return;const {data:_0x545c3e}=_0x51dd51;if(_0x545c3e&&'highlight'==_0x545c3e['commandName']){const _0x2496a5=_0x3565b3['t'],_0x8ed4ab=_0x545c3e['commandParams'][0x0]['value'];if(_0x8ed4ab){const _0x1f6c66=_0x5611e9['config']['get']('highlight.options')['find'](_0x2166a7=>_0x2166a7['model']==_0x8ed4ab),_0x4c1d73=_0x2496a5(_0x1f6c66['title'])['toLowerCase']();return{'type':'format','content':o(_0x3565b3,'*Set\x20highlight:*\x20%0',_0x4c1d73),'color':{'value':_0x1f6c66['color'],'title':_0x1f6c66['title']}};}return{'type':'format','content':o(_0x3565b3,'*Remove\x20highlight*',o(_0x3565b3,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x3be5df{['afterInit'](){const _0x4b25a4=this['editor'];if(!_0x4b25a4['plugins']['has']('HorizontalLineEditing'))return;_0x4b25a4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x16f89b=_0x4b25a4['plugins']['get']('TrackChangesEditing'),_0x5e7e7c=_0x4b25a4['locale'];_0x16f89b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x531330=>o(_0x5e7e7c,'ELEMENT_HORIZONTAL_LINE',_0x531330)),_0x4b25a4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x37d071,{writer:_0x1c64c5,options:_0x5b9927})=>{if(!_0x5b9927['showSuggestionHighlights'])return null;const _0x37423b=_0x1c64c5['createContainerElement']('div'),_0x587d26=_0x1c64c5['createEmptyElement']('hr');return _0x1c64c5['addClass']('ck-horizontal-line',_0x37423b),_0x1c64c5['insert'](_0x1c64c5['createPositionAt'](_0x37423b,0x0),_0x587d26),_0x37423b;},'converterPriority':'high'});}}class et extends _0x3be5df{['afterInit'](){const _0x1c2bbf=this['editor'];if(!_0x1c2bbf['plugins']['has']('HtmlEmbed'))return;const _0x546b62=_0x1c2bbf['plugins']['get']('TrackChangesEditing'),_0x47d774=_0x1c2bbf['locale'];_0x546b62['descriptionFactory']['registerElementLabel']('rawHtml',_0x2ce433=>o(_0x47d774,'ELEMENT_HTML_EMBED',_0x2ce433)),_0x546b62['enableDefaultAttributesIntegration']('htmlEmbed'),_0x546b62['registerBlockAttribute']('value'),_0x546b62['descriptionFactory']['registerDescriptionCallback'](_0x95330f=>{if('attribute'!=_0x95330f['type'])return;const {data:_0xa6f3f1}=_0x95330f;if(_0xa6f3f1&&'value'==_0xa6f3f1['key']&&_0x95330f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5345fd=o(_0x47d774,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x47d774,'*Change\x20%0\x20content*',_0x5345fd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41dbe8=this['editor'],_0x41658c=_0x41dbe8['locale'];_0x41dbe8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x147005=>{if('formatBlock'!=_0x147005['type'])return;const {data:_0x49b258}=_0x147005;if(_0x49b258&&'htmlEmbed'==_0x49b258['commandName']){const _0x71c702=o(_0x41658c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41658c,'*Change\x20%0\x20content*',_0x71c702)};}});}}class it extends _0x3be5df{['afterInit'](){const _0x7aac9c=this['editor'];if(!_0x7aac9c['plugins']['has']('ImageEditing'))return;const _0x310f70=_0x7aac9c['plugins']['get']('TrackChangesEditing'),_0x3ea0b7=_0x7aac9c['plugins']['get']('ImageUtils'),_0x3c3cf7=_0x7aac9c['locale'];_0x310f70['enableCommand']('insertImage'),_0x310f70['descriptionFactory']['registerElementLabel']('imageBlock',_0x284897=>o(_0x3c3cf7,'ELEMENT_IMAGE',_0x284897)),_0x310f70['descriptionFactory']['registerElementLabel']('imageInline',_0xc457ae=>o(_0x3c3cf7,'ELEMENT_INLINE_IMAGE',_0xc457ae)),_0x310f70['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3c3cf7,'ELEMENT_CAPTION')),_0x7aac9c['plugins']['has']('ImageUploadEditing')&&_0x310f70['enableCommand']('uploadImage'),_0x7aac9c['plugins']['has']('ImageBlockEditing')&&_0x7aac9c['plugins']['has']('ImageInlineEditing')&&(_0x310f70['enableCommand']('imageTypeInline',(_0x319462,_0x12b75e)=>{const _0x55e3c4=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']);_0x7aac9c['model']['change'](()=>{_0x310f70['markBlockFormat'](_0x55e3c4,{'commandName':'imageTypeInline','commandParams':[_0x12b75e]},[],'convertBlockImageToInline');});}),_0x310f70['enableCommand']('imageTypeBlock',(_0x13f2ee,_0x49d6ed)=>{_0x7aac9c['model']['change'](_0x1c8039=>{let _0x447dc5=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']),_0x3c9bbe=_0x1c8039['createRangeOn'](_0x447dc5);const _0x2d1866=_0x2212d3['fromPosition'](_0x3c9bbe['start'],'toPrevious'),_0x5928a3=_0x2212d3['fromPosition'](_0x3c9bbe['end'],'toNext');_0x310f70['forceDefaultExecution'](()=>_0x13f2ee(_0x49d6ed)),_0x447dc5=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']),_0x3c9bbe=_0x1c8039['createRangeOn'](_0x447dc5);const _0x3474ab=_0x1c8039['createRange'](_0x2d1866,_0x5928a3);_0x2d1866['detach'](),_0x5928a3['detach'](),_0x310f70['markBlockFormat'](_0x447dc5,{'commandName':'imageTypeInline','commandParams':[_0x49d6ed]},[],'convertInlineImageToBlock'),_0x3474ab['start']['isBefore'](_0x3c9bbe['start'])&&_0x310f70['markInsertion'](_0x1c8039['createRange'](_0x3474ab['start'],_0x3c9bbe['start']),'convertInlineImageToBlock'),_0x3c9bbe['end']['isBefore'](_0x3474ab['end'])&&_0x310f70['markInsertion'](_0x1c8039['createRange'](_0x3c9bbe['end'],_0x3474ab['end']),'convertInlineImageToBlock');});}),_0x310f70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x310f70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x310f70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x310f70['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x310f70['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x310f70['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d1d02])=>{const _0x25cba0=_0x310f70['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4ad169=_0x1d1d02['start'],_0x35a1dd=_0x1d1d02['end'];const _0x5040d3=_0x7aac9c['model']['schema']['getNearestSelectionRange'](_0x4ad169,'backward'),_0x5f1840=_0x7aac9c['model']['schema']['getNearestSelectionRange'](_0x35a1dd,'forward');_0x5040d3['isCollapsed']&&(_0x4ad169=_0x5040d3['start']),_0x5f1840['isCollapsed']&&(_0x35a1dd=_0x5f1840['end']),_0x25cba0([_0x7aac9c['model']['createRange'](_0x4ad169,_0x35a1dd)]);}),_0x310f70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1463c9),_0x310f70['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1463c9)),_0x7aac9c['plugins']['has']('ImageCaptionEditing')&&(_0x310f70['enableCommand']('toggleImageCaption',(_0x49f7c0,_0x2d5a83)=>{const _0x3961f8=_0x7aac9c['plugins']['get']('ImageCaptionUtils');let _0x39275a=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']),_0x7107ce=_0x3961f8['getCaptionFromImageModelElement'](_0x39275a);_0x7aac9c['model']['change'](()=>{if(_0x7107ce)return void _0x310f70['markDeletion'](_0x7aac9c['model']['createRangeOn'](_0x7107ce));const _0x35b747=_0x3ea0b7['isBlockImage'](_0x39275a);_0x49f7c0(_0x2d5a83),_0x39275a=_0x3ea0b7['getClosestSelectedImageElement'](_0x7aac9c['model']['document']['selection']),_0x7107ce=_0x3961f8['getCaptionFromImageModelElement'](_0x39275a),_0x310f70['markInsertion'](_0x7aac9c['model']['createRangeOn'](_0x7107ce),_0x35b747?null:'imageCaption');});}),_0x310f70['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1463c9));const _0x46148d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b00b2(_0x52cdf0,_0x12bec8){const _0x4b8977=_0x46148d['findIndex'](({type:_0xe509e1,subType:_0x2c72e9})=>_0x52cdf0['type']==_0xe509e1&&_0x52cdf0['subType']==_0x2c72e9),_0x2fb7b0=_0x46148d['findIndex'](({type:_0x2bedbf,subType:_0x3b63d2})=>_0x12bec8['type']==_0x2bedbf&&_0x12bec8['subType']==_0x3b63d2);if(_0x4b8977<0x0||_0x2fb7b0<0x0)return!0x1;const _0x257603=_0x52cdf0['getFirstRange'](),_0xf7c8dd=_0x12bec8['getFirstRange']();if((0x0==_0x4b8977||0x1==_0x4b8977)&&0x2==_0x2fb7b0&&_0x257603['isIntersecting'](_0xf7c8dd))return!0x0;if(0x2==_0x4b8977&&0x3==_0x2fb7b0){const _0x48953b=_0x310f70['_findSuggestions'](_0x257603,'insertion')['filter'](({suggestion:_0x306891,meta:_0x5a3d7c})=>_0x5a3d7c['isOwn']&&'convertInlineImageToBlock'==_0x306891['subType']);if(_0x48953b['length']>0x1&&_0xf7c8dd['end']['isEqual'](_0x257603['start']))return!0x0;if(0x1==_0x48953b['length']&&(_0x257603['start']['isEqual'](_0xf7c8dd['end'])||_0x257603['end']['isEqual'](_0xf7c8dd['start'])))return!0x0;}if(0x3==_0x4b8977&&0x3==_0x2fb7b0&&_0x257603['start']['isBefore'](_0xf7c8dd['start'])){const _0x8a7a4b=_0x257603['end']['nodeAfter'],_0x403bf6=_0xf7c8dd['start']['nodeBefore'];return _0x3ea0b7['isBlockImage'](_0x8a7a4b)&&_0x8a7a4b===_0x403bf6;}return!0x1;}function _0x1463c9(_0x24eb01,_0x4a5e3f){return _0x5b00b2(_0x24eb01,_0x4a5e3f)?[_0x24eb01,_0x4a5e3f]:_0x5b00b2(_0x4a5e3f,_0x24eb01)?[_0x4a5e3f,_0x24eb01]:null;}_0x7aac9c['plugins']['has']('ImageResize')&&(_0x310f70['enableDefaultAttributesIntegration']('resizeImage'),_0x310f70['registerBlockAttribute']('resizedWidth'),_0x310f70['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3c3cf7,'FORMAT_IMAGE_SIZE'))),_0x7aac9c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x310f70['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x310f70['registerBlockAttribute']('alt')),_0x310f70['descriptionFactory']['registerDescriptionCallback'](_0x36498a=>{if(!!_0x46148d['find'](({type:_0x544c1b,subType:_0x5e1fe0})=>_0x36498a['type']==_0x544c1b&&_0x36498a['subType']==_0x5e1fe0))return _0x36498a['previous']?{}:void 0x0;}),_0x310f70['descriptionFactory']['registerDescriptionCallback'](_0x5a5862=>{if('insertion'==_0x5a5862['type']||'deletion'==_0x5a5862['type']){const _0xe1391b=_0x5a5862['getContainedElement']();if(_0xe1391b&&_0xe1391b['is']('element','caption'))return{'type':'insertion'==_0x5a5862['type']?'addObject':'removeObject','element':_0xe1391b,'quantity':0x1};}}),_0x310f70['descriptionFactory']['registerDescriptionCallback'](_0x11f1d5=>'formatBlock'==_0x11f1d5['type']&&'convertInlineImageToBlock'==_0x11f1d5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11f1d5['type']&&'convertBlockImageToInline'==_0x11f1d5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x310f70['descriptionFactory']['registerDescriptionCallback'](_0x9c2642=>{if('attribute'!=_0x9c2642['type'])return;const {data:_0x507439}=_0x9c2642;if(!_0x507439||'alt'!=_0x507439['key'])return;const _0x309e5f=_0x507439['newValue'];return _0x309e5f?{'type':'format','content':o(_0x3c3cf7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x309e5f+'\x22')}:{'type':'format','content':o(_0x3c3cf7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292d64=this['editor'],_0x2cf986=_0x292d64['locale'];_0x292d64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32682c=>{if('formatBlock'!=_0x32682c['type']&&'formatInline'!=_0x32682c['type'])return;const {data:_0x2b2df3}=_0x32682c;if(_0x2b2df3){if('imageTextAlternative'==_0x2b2df3['commandName']){const _0x45eb98=_0x2b2df3['commandParams'][0x0]['newValue'];return _0x45eb98?{'type':'format','content':o(_0x2cf986,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45eb98+'\x22')}:{'type':'format','content':o(_0x2cf986,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b2df3['commandName']){const _0x9c2c30=_0x2b2df3['commandParams'][0x0]['width'];return _0x9c2c30?{'type':'format','content':o(_0x2cf986,'*Set\x20image\x20width:*\x20%0',_0x9c2c30)}:{'type':'format','content':o(_0x2cf986,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4ff102=this['editor']['locale'],_0x4f7314=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f7314['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f7314['registerBlockAttribute']('src'),_0x4f7314['descriptionFactory']['registerDescriptionCallback'](_0x361f78=>{if('attribute'!=_0x361f78['type'])return;const {data:_0x3860f6}=_0x361f78;return _0x3860f6&&'src'==_0x3860f6['key']?_0x3860f6['newValue']&&_0x3860f6['oldValue']?{'type':'format','content':o(_0x4ff102,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5549d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5549d4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5549d4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5549d4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5549d4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a655a=this['editor'],_0x2f61da=_0x5a655a['locale'];_0x5a655a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1e95=>{if('formatBlock'!=_0x4a1e95['type']&&'formatInline'!=_0x4a1e95['type'])return;const {data:_0xa0fe0d}=_0x4a1e95;if(!_0xa0fe0d||'replaceImageSource'!=_0xa0fe0d['commandName'])return;return{'type':'format','content':o(_0x2f61da,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x3be5df{['afterInit'](){const _0x4cccb4=this['editor'];if(!_0x4cccb4['plugins']['has']('ImageStyleEditing'))return;const _0xb72c0d=_0x4cccb4['plugins']['get']('TrackChangesEditing'),_0x3f5bf7=_0x4cccb4['plugins']['get']('ImageUtils'),_0x408ad7={};_0xb72c0d['enableCommand']('imageStyle',(_0x5fc19b,_0x402b4b)=>{const _0x32415e=_0x4cccb4['plugins']['get']('Users')['me'],_0x192b26=_0x4cccb4['commands']['get']('imageStyle');let _0x5f2283=_0x3f5bf7['getClosestSelectedImageElement'](_0x4cccb4['model']['document']['selection']),_0x2477dc=_0x4cccb4['model']['createRangeOn'](_0x5f2283),_0xdfd3dd=_0x192b26['value'];if(_0xdfd3dd==_0x402b4b['value'])return;const _0x1cdfa8={'commandName':'imageStyle','commandParams':[_0x402b4b],'formatGroupId':_0x3035a1()};_0x4cccb4['model']['change'](()=>{if(_0xb72c0d['getSuggestions']()['filter'](_0x1f43e2=>_0x1f43e2['isInContent']&&_0x32415e==_0x1f43e2['author']&&('formatBlock'==_0x1f43e2['type']||'formatInline'==_0x1f43e2['type'])&&('imageStylePreApply'==_0x1f43e2['subType']||'imageStylePostApply'==_0x1f43e2['subType'])&&_0x1f43e2['getFirstRange']()['isEqual'](_0x2477dc))['forEach'](_0x19920e=>_0xb72c0d['discardSuggestion'](_0x19920e['head'])),_0x5f2283=_0x3f5bf7['getClosestSelectedImageElement'](_0x4cccb4['model']['document']['selection']),_0x2477dc=_0x4cccb4['model']['createRangeOn'](_0x5f2283),_0x192b26['refresh'](),_0x4cccb4['commands']['get']('imageTypeInline')['refresh'](),_0x4cccb4['commands']['get']('imageTypeBlock')['refresh'](),_0xdfd3dd=_0x192b26['value'],_0xdfd3dd!=_0x402b4b['value'])return _0x3f5bf7['isInlineImage'](_0x5f2283)&&_0x192b26['shouldConvertImageType'](_0x402b4b['value'],_0x5f2283)?(_0x5fc19b({..._0x402b4b,'setImageSizes':!0x1}),_0x5f2283=_0x3f5bf7['getClosestSelectedImageElement'](_0x4cccb4['model']['document']['selection']),void _0xb72c0d['markBlockFormat'](_0x5f2283,{..._0x1cdfa8,'commandReversedParams':[{'value':_0xdfd3dd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3f5bf7['isBlockImage'](_0x5f2283)?_0xb72c0d['markBlockFormat'](_0x5f2283,_0x1cdfa8,[],'imageStylePostApply'):_0xb72c0d['markInlineFormat'](_0x2477dc,_0x1cdfa8,'imageStylePostApply'));});});for(const _0x3579cf of _0x4cccb4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x408ad7[_0x3579cf['name']]=_0x3579cf['title']['toLowerCase']();_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52faac])=>{_0x3f5bf7['setImageNaturalSizeAttributes'](_0x52faac['getContainedElement']());}),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3082fc,_0x23c24c)=>{_0xb72c0d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3082fc,{'commandName':_0x23c24c['commandName'],'commandParams':_0x23c24c['commandReversedParams']});}),_0xb72c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2b6852,_0x3e9470){if(_0x498932(_0x2b6852,_0x3e9470))return[_0x2b6852,_0x3e9470];if(_0x498932(_0x3e9470,_0x2b6852))return[_0x3e9470,_0x2b6852];return null;});const _0xd9a5d6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x498932(_0x1957c8,_0x1f01e8){const _0x4b4eb8=_0xd9a5d6['findIndex'](({type:_0x2bf197,subType:_0x30cd9a})=>_0x1957c8['type']==_0x2bf197&&_0x1957c8['subType']==_0x30cd9a),_0x4e4fcb=_0xd9a5d6['findIndex'](({type:_0x3315f0,subType:_0xa3143})=>_0x1f01e8['type']==_0x3315f0&&_0x1f01e8['subType']==_0xa3143);if(_0x4b4eb8<0x0||_0x4e4fcb<0x0)return!0x1;const _0x1fbe2e=_0x1957c8['getFirstRange'](),_0x177085=_0x1f01e8['getFirstRange']();if((0x0==_0x4b4eb8||0x1==_0x4b4eb8)&&0x2==_0x4e4fcb&&_0x1fbe2e['isIntersecting'](_0x177085))return!0x0;if(0x2==_0x4b4eb8&&0x3==_0x4e4fcb){const _0x17f640=_0xb72c0d['_findSuggestions'](_0x1fbe2e,'insertion')['filter'](({suggestion:_0x204ff9,meta:_0x1c00b1})=>_0x1c00b1['isOwn']&&'convertInlineImageToBlock'==_0x204ff9['subType']);if(_0x17f640['length']>0x1&&_0x177085['end']['isEqual'](_0x1fbe2e['start']))return!0x0;if(0x1==_0x17f640['length']&&(_0x1fbe2e['start']['isEqual'](_0x177085['end'])||_0x1fbe2e['end']['isEqual'](_0x177085['start'])))return!0x0;}if(0x3==_0x4b4eb8&&0x3==_0x4e4fcb&&_0x1fbe2e['start']['isBefore'](_0x177085['start'])){const _0x1bae8c=_0x1fbe2e['end']['nodeAfter'],_0x5c838b=_0x177085['start']['nodeBefore'];return _0x3f5bf7['isBlockImage'](_0x1bae8c)&&_0x1bae8c===_0x5c838b;}return!0x1;}_0x4cccb4['model']['document']['registerPostFixer'](()=>{let _0x5abcb5=!0x1;const _0x3b7236=Array['from'](_0x4cccb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x442dd7,data:_0x157a6f}of _0x3b7236){const {group:_0x5481fc,type:_0x34938c,subType:_0x50ab85,id:_0xe2db2e}=_0xb72c0d['_splitMarkerName'](_0x442dd7);if('suggestion'==_0x5481fc&&_0xb72c0d['hasSuggestion'](_0xe2db2e)){if('formatBlock'==_0x34938c&&('imageStylePreApply'==_0x50ab85||'imageStylePostApply'==_0x50ab85)){const _0x2a3070=_0xb72c0d['getSuggestion'](_0xe2db2e);if(_0x157a6f['newRange']){const _0x562bae=_0x2a3070['getFirstRange']()['getContainedElement']();if(_0x3f5bf7['isBlockImage'](_0x562bae))continue;_0xb72c0d['discardSuggestion'](_0x2a3070),_0x5abcb5=!0x0;}}if('insertion'==_0x34938c&&'imageCaption'==_0x50ab85&&!_0x157a6f['newRange']){const _0x2f2290=_0xb72c0d['getSuggestion'](_0xe2db2e);_0x2f2290['next']&&_0x2f2290['next']['isInContent']&&(_0xb72c0d['discardSuggestion'](_0x2f2290['next']),_0x5abcb5=!0x0);}}}return _0x5abcb5;}),this['_registerLegacyDescription'](_0x408ad7);}['_registerLegacyDescription'](_0x41add9){const _0x1816ad=this['editor'],_0x5b7fd0=_0x1816ad['locale'];_0x1816ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1362c1=>{if('formatBlock'!=_0x1362c1['type']&&'formatInline'!=_0x1362c1['type'])return;const {data:_0x339564}=_0x1362c1;if(!_0x339564||'imageStyle'!=_0x339564['commandName'])return;const _0x56e637=_0x339564['commandParams'][0x0]['value'];return _0x3350c7('side'===_0x56e637?o(_0x5b7fd0,'FORMAT_SIDE_IMAGE'):_0x41add9[_0x56e637]||_0x56e637);function _0x3350c7(_0x2d8544){return{'type':'format','content':o(_0x5b7fd0,'*Format:*\x20%0',_0x2d8544)};}});}}class ot extends _0x3be5df{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8d1e28){super(_0x8d1e28),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1c34e4=this['editor'],_0x556d70=_0x1c34e4['commands']['get']('importWord'),_0x3d81cb=_0x1c34e4['commands']['get']('trackChanges');_0x556d70&&(_0x556d70['on']('execute',(_0x4cba76,[,_0x55fbcf])=>{this['_trackChangesValueDuringImport']=_0x3d81cb['value'],_0x55fbcf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x556d70,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x556d70,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3d81cb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1c34e4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1d4e10,_0x45cadd){const {suggestions:_0x111879}=_0x45cadd,_0x1144f3=this['editor']['commands']['get']('trackChanges'),_0x20a5c4=_0x1144f3['value'];this['_trackChangesValueDuringImport']!==_0x20a5c4&&(_0x1144f3['execute'](),this['_trackChangesExecuted']=!0x0),_0x111879&&_0x111879['forEach'](({id:_0x47b49e,type:_0x51db45,author:_0x2639ff,created_at:_0x503a2c})=>{const _0x4f534c={'id':_0x47b49e,'type':_0x51db45,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2639ff,'createdAt':_0x503a2c?new Date(_0x503a2c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4f534c);});}}class rt extends _0x3be5df{['afterInit'](){const _0x241126=this['editor'],_0x58f9c5=_0x241126['plugins']['get']('TrackChangesEditing');if(_0x241126['plugins']['has']('IndentEditing')&&(_0x58f9c5['enableCommand']('indent'),_0x58f9c5['enableCommand']('outdent')),_0x241126['plugins']['has']('IndentBlock')){for(const _0xdee515 of['indentBlock','outdentBlock'])_0x58f9c5['enableDefaultAttributesIntegration'](_0xdee515);}const _0x543478=_0x241126['locale'];_0x58f9c5['registerBlockAttribute']('blockIndent'),_0x58f9c5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x543478,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50b9c4=this['editor'],_0x60aee8=_0x50b9c4['locale'],_0x4b982c=_0x50b9c4['plugins']['get']('TrackChangesEditing');_0x4b982c['descriptionFactory']['registerDescriptionCallback'](_0x4e81b1=>{if('formatBlock'!=_0x4e81b1['type'])return;const {data:_0x8dc529}=_0x4e81b1;if(!_0x8dc529)return;if('indentBlock'!=_0x8dc529['commandName']&&'outdentBlock'!=_0x8dc529['commandName'])return;const _0x2b47be=_0x4e81b1['getItems']()[0x0],_0x2deb37=_0x4b982c['descriptionFactory']['getItemLabel'](_0x2b47be);return'indentBlock'==_0x8dc529['commandName']?{'type':'format','content':o(_0x60aee8,'*Indent:*\x20%0',_0x2deb37)}:'outdentBlock'==_0x8dc529['commandName']?{'type':'format','content':o(_0x60aee8,'*Outdent:*\x20%0',_0x2deb37)}:void 0x0;});}}class at extends _0x3be5df{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x3be5df{['afterInit'](){const _0x55db4a=this['editor'];if(!_0x55db4a['plugins']['has']('LinkEditing'))return;const _0x44298d=_0x55db4a['plugins']['get']('TrackChangesEditing'),_0xc79dd4=_0x55db4a['commands']['get']('link');_0x44298d['enableDefaultAttributesIntegration']('link'),_0x44298d['enableDefaultAttributesIntegration']('unlink'),_0x44298d['registerInlineAttribute']('linkHref');for(const _0x2d24e5 of _0xc79dd4['manualDecorators'])_0x44298d['registerInlineAttribute'](_0x2d24e5['id']),_0x44298d['descriptionFactory']['registerAttributeLabel'](_0x2d24e5['id'],'link\x20('+_0x2d24e5['label']['toLowerCase']()+')');_0x44298d['descriptionFactory']['registerDescriptionCallback'](_0x4536a0=>{if('attribute'!=_0x4536a0['type'])return;const {data:_0x4d9fdc}=_0x4536a0;if(!_0x4d9fdc||'linkHref'!=_0x4d9fdc['key'])return;const _0x45c30a=_0x4d9fdc['newValue'],_0x178e4f=_0x55db4a['locale'];return{'type':'format','content':null==_0x45c30a?o(_0x178e4f,'*Remove\x20link*'):o(_0x178e4f,'*Set\x20link:*\x20%0','\x22'+_0x45c30a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e0c6e=this['editor'],_0x5d4aed=_0x4e0c6e['locale'];_0x4e0c6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6b1395=>{if('formatInline'!=_0x6b1395['type'])return;const {data:_0x319768}=_0x6b1395;if(_0x319768){if('link'==_0x319768['commandName']){const _0x395159=_0x319768['commandParams'][0x0];return{'type':'format','content':o(_0x5d4aed,'*Set\x20link:*\x20%0','\x22'+_0x395159+'\x22')};}return'unlink'==_0x319768['commandName']?{'type':'format','content':o(_0x5d4aed,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x3be5df{['afterInit'](){const _0x141c3c=this['editor'],_0x1976f8=_0x141c3c['locale'];if(!_0x141c3c['plugins']['has']('LegacyListEditing'))return;const _0x3aac03=_0x141c3c['plugins']['get']('TrackChangesEditing'),_0x13a139=_0x141c3c['plugins']['has']('LegacyTodoListEditing');function _0x5b582f(_0x5df89a){return()=>{const _0x4b5ea3=_0x141c3c['model']['document']['selection'],_0x4ae0dd=_0x141c3c['commands']['get'](_0x5df89a);if(_0x4ae0dd['value'])return void _0x141c3c['execute']('paragraph',{});const _0x3a59ac=_0x5df89a['slice'](0x0,-0x4),_0x2ea57e=function(_0x2fd25e,_0x35a78b,_0x4cfbd0){let _0x10cbf8=Array['from'](_0x2fd25e)['filter'](_0x58448=>function(_0x2958c6,_0x2514c8){return _0x2514c8['checkChild'](_0x2958c6['parent'],'listItem')&&!_0x2514c8['isObject'](_0x2958c6);}(_0x58448,_0x4cfbd0));_0x10cbf8=_0x10cbf8['filter'](_0x3a83d8=>!_0x3a83d8['is']('element','listItem')||_0x3a83d8['getAttribute']('listType')!=_0x35a78b);const _0x2d736d=new Set();for(const _0x9ad4be of _0x10cbf8)_0x9ad4be['is']('element','listItem')?_0x2d736d['add'](me(_0x9ad4be)):_0x2d736d['add'](_0x9ad4be);return Array['from'](_0x2d736d);}(_0x4b5ea3['getSelectedBlocks'](),_0x3a59ac,_0x141c3c['model']['schema']);_0x141c3c['model']['change'](()=>{for(const _0x2d0801 of _0x2ea57e)_0x3aac03['markBlockFormat'](_0x2d0801,{'commandName':_0x5df89a,'commandParams':[{'forceValue':!_0x4ae0dd['value']}],'formatGroupId':'blockName'},fe(_0x2d0801));});};}function _0x4f212d(_0x59e2d4){return()=>{const _0x1bf7ff=function(_0xa42298){let _0x596fe2=Array['from'](_0xa42298);const _0x4379e5=_0x596fe2['findIndex'](_0x49dc08=>'listItem'!=_0x49dc08['name']);return _0x4379e5>-0x1&&(_0x596fe2=_0x596fe2['slice'](0x0,_0x4379e5)),_0x596fe2;}(_0x141c3c['model']['document']['selection']['getSelectedBlocks']()),_0x6b0d13=_0x141c3c['model']['createRange'](_0x141c3c['model']['createPositionAt'](_0x1bf7ff[0x0],'before'),_0x141c3c['model']['createPositionAt'](_0x1bf7ff[_0x1bf7ff['length']-0x1],'end'));_0x141c3c['model']['change'](()=>{_0x3aac03['markBlockFormat'](_0x6b0d13,{'commandName':_0x59e2d4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a5f5a){const _0x4cad84=new Set();for(const _0x272a5a of _0x1a5f5a){let _0x23b1f7=_0x272a5a['nextSibling'];for(;_0x23b1f7&&_0x23b1f7['getAttribute']('listIndent')>_0x272a5a['getAttribute']('listIndent');)_0x4cad84['add'](_0x23b1f7),_0x23b1f7=_0x23b1f7['nextSibling'];}return Array['from'](_0x4cad84);}(_0x1bf7ff));});};}_0x3aac03['enableCommand']('numberedList',_0x5b582f('numberedList')),_0x3aac03['enableCommand']('bulletedList',_0x5b582f('bulletedList')),_0x13a139&&_0x3aac03['enableCommand']('todoList',_0x5b582f('todoList')),_0x3aac03['enableCommand']('indentList',_0x4f212d('indentList')),_0x3aac03['enableCommand']('outdentList',_0x4f212d('outdentList')),_0x13a139&&_0x3aac03['enableCommand']('checkTodoList',()=>{const _0x22fe05=_0x141c3c['commands']['get']('checkTodoList'),_0x345821=Array['from'](_0x22fe05['_selectedElements']);_0x345821['filter'](_0x4d03fd=>_0x4d03fd['getAttribute']('todoListChecked')!=_0x22fe05['value']),_0x141c3c['model']['change'](()=>{for(const _0x199f63 of _0x345821)_0x3aac03['markBlockFormat'](_0x199f63,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x22fe05['value']}]});});}),_0x3aac03['descriptionFactory']['registerElementLabel']('listItem',_0x523637=>o(_0x1976f8,'ELEMENT_LIST_ITEM',_0x523637)),_0x3aac03['descriptionFactory']['registerDescriptionCallback'](_0x2f76ad=>{if('formatBlock'!=_0x2f76ad['type']&&'formatInline'!=_0x2f76ad['type'])return;const {data:_0x1105ef}=_0x2f76ad;if(_0x1105ef){if('numberedList'==_0x1105ef['commandName']||'bulletedList'==_0x1105ef['commandName']||'todoList'==_0x1105ef['commandName'])switch(_0x1105ef['commandName']['replace']('List','')){case'bulleted':return _0x513d81(o(_0x1976f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x513d81(o(_0x1976f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x513d81(o(_0x1976f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1105ef['commandName'])return{'type':'format','content':o(_0x1976f8,'*Indent:*\x20%0',o(_0x1976f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1105ef['commandName'])return{'type':'format','content':o(_0x1976f8,'*Outdent:*\x20%0',o(_0x1976f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1105ef['commandName'])return _0x1105ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1976f8,'*Check\x20item*')}:{'type':'format','content':o(_0x1976f8,'*Uncheck\x20item*')};}function _0x513d81(_0x451dd9){return{'type':'format','content':o(_0x1976f8,'*Change\x20to:*\x20%0',_0x451dd9)};}});}}function me(_0x841183){const _0x59c356=_0x841183['getAttribute']('listIndent');if(0x0==_0x59c356)return _0x841183;let _0x2296c4=_0x841183;for(;_0x841183['previousSibling']&&_0x841183['previousSibling']['is']('element','listItem');){const _0x3d48a8=_0x841183['previousSibling']['getAttribute']('listIndent');if(_0x3d48a8==_0x59c356)_0x2296c4=_0x841183['previousSibling'];else{if(_0x3d48a8<_0x59c356)break;}_0x841183=_0x841183['previousSibling'];}return _0x2296c4;}function fe(_0x3d5155){const _0x1c3136=[];if(_0x3d5155['is']('element','listItem')&&_0x3d5155['getAttribute']('listIndent')>0x0){let _0x286687=_0x3d5155['nextSibling'];for(;_0x286687&&'listItem'==_0x286687['name']&&_0x286687['getAttribute']('listIndent')==_0x3d5155['getAttribute']('listIndent');)_0x1c3136['push'](_0x286687),_0x286687=_0x286687['nextSibling'];}return _0x1c3136;}class K extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x532262=this['editor']['config']['get']('list.properties'),_0xe320c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x532262['styles']&&_0xe320c6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x532262['reversed']&&_0xe320c6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x532262['startIndex']&&_0xe320c6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xe320c6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x211419,_0x257ac0={}){const _0x2ca8ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a39d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ca8ac['markMultiRangeBlockFormat'](_0x25a39d,{'commandName':'listStyle','commandParams':[{'type':_0x257ac0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x392ce1,_0x80899a={}){const _0x3fd1e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52bde5=this['_getSuggestionBlocks'](_0x2c4fb3=>_0x2c4fb3['is']('element','listItem')&&'numbered'===_0x2c4fb3['getAttribute']('listType'));if(_0x52bde5['length']<0x1)return;const _0x5540e7=_0x52bde5['map'](_0x3477ab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3477ab,'before'),this['editor']['model']['createPositionAt'](_0x3477ab,0x0)));this['editor']['model']['change'](()=>{_0x3fd1e1['markMultiRangeBlockFormat'](_0x5540e7,{'commandName':'listReversed','commandParams':[{'reversed':_0x80899a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3cce64,_0x3909b7={}){const _0x1cb367=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c12f5=this['_getSuggestionBlocks'](_0x3925df=>_0x3925df['is']('element','listItem')&&'numbered'===_0x3925df['getAttribute']('listType'));if(_0x3c12f5['length']<0x1)return;const _0x144dc4=_0x3c12f5['map'](_0x3f6400=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f6400,'before'),this['editor']['model']['createPositionAt'](_0x3f6400,0x0)));this['editor']['model']['change'](()=>{_0x1cb367['markMultiRangeBlockFormat'](_0x144dc4,{'commandName':'listStart','commandParams':[{'startIndex':_0x3909b7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x147ce6){if('formatBlock'!=_0x147ce6['type']&&'formatInline'!=_0x147ce6['type'])return;const _0x6dff33=this['editor']['locale'],{data:_0x15805b}=_0x147ce6;if(!_0x15805b)return;let _0x2130c6,_0x4dc5e5;switch(_0x15805b['commandName']){case'listStyle':_0x2130c6='*Change\x20to:*\x20%0',_0x4dc5e5={'type':'format','content':o(_0x6dff33,_0x2130c6,o(_0x6dff33,this['_getTranslationKeyForListStyle'](_0x15805b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2130c6=_0x15805b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4dc5e5={'type':'format','content':o(_0x6dff33,_0x2130c6)};break;case'listStart':_0x2130c6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4dc5e5={'type':'format','content':o(_0x6dff33,_0x2130c6,_0x15805b['commandParams'][0x0]['startIndex'])};}return _0x4dc5e5;}['_getSuggestionBlocksForListStyle'](){const _0x3a5cb7=this['editor']['plugins']['get']('LegacyListUtils');let _0x213a98=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x213a98[0x0]?.['is']('element','listItem')&&_0x213a98['unshift'](..._0x3a5cb7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x213a98[_0x213a98['length']-0x1]?.['is']('element','listItem')&&_0x213a98['push'](..._0x3a5cb7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x213a98=[...new Set(_0x213a98)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x213a98=_0x213a98['filter'](_0x41382d=>_0x41382d['is']('element','listItem'))),_0x213a98;}['_getSuggestionBlocks'](_0x43bd2f){const _0x411210=this['editor']['plugins']['get']('LegacyListUtils');let _0x35dc6a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x43bd2f)['map'](_0xd378cb=>{const _0x9da6a7=this['editor']['model']['createPositionAt'](_0xd378cb,0x0);return[..._0x411210['getSiblingNodes'](_0x9da6a7,'backward'),..._0x411210['getSiblingNodes'](_0x9da6a7,'forward')];})['flat']();return _0x35dc6a=[...new Set(_0x35dc6a)],_0x35dc6a;}['_getTranslationKeyForListStyle'](_0x3f884c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3f884c)||'default')['toUpperCase']()+'_LIST_'+_0x3f884c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x3be5df{['afterInit'](){const _0x332f27=this['editor'];if(!_0x332f27['plugins']['has']('MediaEmbedEditing'))return;const _0x2946ea=_0x332f27['plugins']['get']('TrackChangesEditing'),_0x48831c=_0x332f27['locale'];_0x2946ea['enableCommand']('mediaEmbed'),_0x2946ea['descriptionFactory']['registerElementLabel']('media',_0x33a801=>o(_0x48831c,'ELEMENT_MEDIA',_0x33a801)),_0x332f27['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d3b5f,{writer:_0x49f1d7,options:_0xd93162})=>{if(_0xd93162['showSuggestionHighlights'])return _0x49f1d7['createEmptyElement']('div');},'converterPriority':'high'}),_0x332f27['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5262c6,_0x257a4c,_0x397c79)=>{_0x397c79['options']['showSuggestionHighlights']&&_0x5262c6['stop']();},{'priority':'high'});}}class gt extends _0x3be5df{['afterInit'](){const _0x28c546=this['editor'];_0x28c546['plugins']['has']('MentionEditing')&&_0x28c546['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x3be5df{['afterInit'](){const _0x13ebd8=this['editor'],_0xa80107=_0x13ebd8['plugins']['get']('TrackChangesEditing');_0x13ebd8['plugins']['has']('MultiLevelList')&&(_0xa80107['enableDefaultAttributesIntegration']('multiLevelList'),_0xa80107['registerBlockAttribute']('listMarkerStyle'),_0xa80107['descriptionFactory']['registerDescriptionCallback'](_0x23e4a7=>this['handleDescriptions'](_0x23e4a7)));}['handleDescriptions'](_0x147155){const _0x10f125=this['editor']['locale'],{data:_0xa73d5}=_0x147155,_0x20c5a5={'type':'format','content':''};if(_0xa73d5&&'listMarkerStyle'==_0xa73d5['key']){if(!_0xa73d5['oldValue'])return{'type':'format','content':o(_0x10f125,'*Set\x20format:*\x20%0',o(_0x10f125,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xa73d5['newValue']+')'};if(!_0xa73d5['newValue']){let _0x1ff70e=_0x147155['head'];for(;_0x1ff70e;){if(_0x1ff70e['data']&&'listType'==_0x1ff70e['data']['key']&&_0x1ff70e['data']['newValue'])return _0x20c5a5;_0x1ff70e=_0x1ff70e['next'];}return{'type':'format','content':o(_0x10f125,'*Remove\x20format:*\x20%0',o(_0x10f125,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xa73d5['oldValue']+')'};}}}}class mt extends _0x3be5df{['afterInit'](){const _0x3b2f4d=this['editor'];if(!_0x3b2f4d['plugins']['has']('PageBreakEditing'))return;_0x3b2f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x392f88=_0x3b2f4d['plugins']['get']('TrackChangesEditing'),_0x51d02f=_0x3b2f4d['locale'];_0x392f88['descriptionFactory']['registerElementLabel']('pageBreak',_0x6d123b=>o(_0x51d02f,'ELEMENT_PAGE_BREAK',_0x6d123b));}}class dt extends _0x3be5df{['afterInit'](){const _0x2bb795=this['editor'];if(!_0x2bb795['plugins']['has']('Paragraph'))return;const _0xc41c81=_0x2bb795['locale'],_0x31f975=_0x2bb795['plugins']['get']('TrackChangesEditing');_0x31f975['descriptionFactory']['registerElementLabel']('paragraph',_0x1c4023=>o(_0xc41c81,'ELEMENT_PARAGRAPH',_0x1c4023)),_0x31f975['enableDefaultAttributesIntegration']('paragraph'),_0x31f975['enableCommand']('insertParagraph'),_0x2bb795['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2bb795),{'priority':'highest'}),_0x2bb795['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41228f,_0x4abe02,_0x46d0e6)=>{_0x46d0e6['options']['showSuggestionHighlights']&&nr(_0x2bb795,{'showActiveMarker':!0x1})(_0x41228f,_0x4abe02,_0x46d0e6);},{'priority':'highest'});const _0x50f92e=_0x31f975['descriptionFactory'];_0x50f92e['registerDescriptionCallback'](_0x2acf57=>{if('insertion'!==_0x2acf57['type'])return;const {start:_0x4107bd,end:_0x8b1d07}=_0x2acf57['getFirstRange']();if(!_0x4107bd['isTouching'](_0x8b1d07)||!_0x4107bd['nodeAfter'])return;const _0x421e8f=_0x2bb795['model']['schema'],_0x3a83b9=_0x4107bd['nodeAfter'];return _0x421e8f['isBlock'](_0x3a83b9)&&!_0x421e8f['isLimit'](_0x3a83b9)&&_0x421e8f['checkChild'](_0x3a83b9,'$text')?{'type':'insertion','content':o(_0xc41c81,'*Insert:*\x20%0',_0x50f92e['getItemLabel'](_0x3a83b9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb70d0d=this['editor'],_0x311a46=_0xb70d0d['locale'];_0xb70d0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ff174=>{if('formatBlock'!=_0x3ff174['type'])return;const {data:_0x4dfe08}=_0x3ff174;return _0x4dfe08&&'paragraph'==_0x4dfe08['commandName']?{'type':'format','content':o(_0x311a46,'*Change\x20to:*\x20%0',o(_0x311a46,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x132a6b,{showActiveMarker:_0x162fb4=!0x0}={}){return(_0x42dab4,_0x1ef832,_0x5e77ea)=>{const _0x14073d=_0x132a6b['plugins']['get']('TrackChangesEditing'),_0xe728a1=_0x1ef832['markerRange']['start'],_0x297062=_0x1ef832['markerRange']['end'],_0x304649=_0x132a6b['model']['schema'];if(!_0xe728a1['isTouching'](_0x297062)||!_0xe728a1['nodeAfter'])return;const _0x2a2f1d=_0xe728a1['nodeAfter'];if(_0x304649['isBlock'](_0x2a2f1d)&&!_0x304649['isLimit'](_0x2a2f1d)&&_0x304649['checkChild'](_0x2a2f1d,'$text')){if(!_0x5e77ea['consumable']['consume'](_0x1ef832['markerRange'],_0x42dab4['name']))return;const _0x385f43=_0x5e77ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3d5df9=_0x5e77ea['mapper']['toViewPosition'](_0x297062);_0x162fb4&&_0x14073d['activeMarkers']['includes'](_0x1ef832['markerName'])&&_0x5e77ea['writer']['addClass']('ck-suggestion-marker--active',_0x385f43),_0x5e77ea['writer']['insert'](_0x3d5df9,_0x385f43),_0x5e77ea['mapper']['bindElementToMarker'](_0x385f43,_0x1ef832['markerName']);}};}class pt extends _0x3be5df{['afterInit'](){const _0x4aea51=this['editor'];if(!_0x4aea51['plugins']['has']('RemoveFormatEditing'))return;_0x4aea51['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x397e86=this['editor'];_0x397e86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ed6cf=>{if('formatBlock'!=_0x2ed6cf['type']&&'formatInline'!=_0x2ed6cf['type'])return;const {data:_0x56133b}=_0x2ed6cf;return _0x56133b&&'removeFormat'==_0x56133b['commandName']?{'type':'format','content':o(_0x397e86['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x3be5df{['afterInit'](){const _0x3dfaa8=this['editor'];if(!_0x3dfaa8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1d2691=_0x3dfaa8['plugins']['get']('TrackChangesEditing');_0x1d2691['enableCommand']('goToPreviousRestrictedEditingException'),_0x1d2691['enableCommand']('goToNextRestrictedEditingException');const _0x238378=_0x3dfaa8['plugins']['get']('RestrictedEditingModeEditing');_0x238378['enableCommand']('trackChanges'),_0x238378['enableCommand']('acceptSuggestion'),_0x238378['enableCommand']('discardSuggestion'),_0x238378['enableCommand']('acceptAllSuggestions'),_0x238378['enableCommand']('discardAllSuggestions'),_0x238378['enableCommand']('acceptSelectedSuggestions'),_0x238378['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x3be5df{static get['requires'](){return[_0x417959];}['init'](){const _0x5d89e4=this['editor'],_0x296e87=_0x5d89e4['plugins']['get']('TrackChangesEditing');_0x296e87['enableCommand']('shiftEnter'),_0x5d89e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5d89e4),{'priority':'high'}),_0x5d89e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5d89e4),{'priority':'high'}),_0x5d89e4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x232b94,_0x47d8ec,_0x15b0f3)=>{_0x15b0f3['options']['showSuggestionHighlights']&&de(_0x5d89e4,{'showActiveMarker':!0x1})(_0x232b94,_0x47d8ec,_0x15b0f3);}),_0x296e87['descriptionFactory']['registerElementLabel']('softBreak',_0x255662=>o(_0x5d89e4['locale'],'ELEMENT_LINE_BREAK',_0x255662));}}function de(_0x376fb4,{showActiveMarker:_0x4b392d=!0x0}={}){return(_0x55898a,_0x1c6547,_0x1daa55)=>{const _0x2c3491=_0x376fb4['plugins']['get']('TrackChangesEditing');if(!_0x1daa55['consumable']['test'](_0x1c6547['markerRange'],_0x55898a['name']))return;const _0x2715eb=_0x376fb4['model'];for(const _0x2437bd of _0x1c6547['markerRange']['getItems']()){if(!_0x2437bd['is']('element','softBreak'))continue;const _0x4ddc10='deletion'==_0x1c6547['markerName']['split'](':')[0x1]?'merge':'split',_0x5e947b=_0x1daa55['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ddc10}),_0x136972=_0x1daa55['mapper']['toViewPosition'](_0x2715eb['createPositionBefore'](_0x2437bd));_0x4b392d&&_0x2c3491['activeMarkers']['includes'](_0x1c6547['markerName'])&&_0x1daa55['writer']['addClass']('ck-suggestion-marker--active',_0x5e947b),_0x1daa55['writer']['insert'](_0x136972,_0x5e947b),_0x1daa55['mapper']['bindElementToMarker'](_0x5e947b,_0x1c6547['markerName']);}};}class wt extends _0x3be5df{['afterInit'](){const _0xe7bdd2=this['editor'],_0x59f4ed=_0xe7bdd2['model'],_0x33fc0c=_0xe7bdd2['locale'];if(!_0xe7bdd2['plugins']['has']('StandardEditingModeEditing'))return;const _0x23ae31=_0xe7bdd2['plugins']['get']('TrackChangesEditing'),_0xe63917='restrictedEditingException',_0xc7ce6e=_0xe7bdd2['commands']['get'](_0xe63917);_0x23ae31['enableCommand'](_0xe63917,(_0x2e0314,_0x15785f={})=>{const _0x30798a=_0x59f4ed['document']['selection'];if(_0x30798a['isCollapsed'])return void _0x2e0314(_0x15785f);const _0x3836a0=void 0x0!==_0x15785f['forceValue']?_0x15785f['forceValue']:!_0xc7ce6e['value'];_0x59f4ed['change'](()=>{const _0x68c59a=Array['from'](_0x30798a['getRanges']());for(const _0x438ddf of _0x68c59a){const _0x3d0b1e=_0x3836a0?[_0x438ddf]:io(_0xe63917,_0x438ddf,_0x59f4ed);for(const _0xd724b0 of _0x3d0b1e)_0x23ae31['markInlineFormat'](_0xd724b0,{'commandName':_0xe63917,'commandParams':[{'forceValue':_0x3836a0}]});}});}),_0x23ae31['descriptionFactory']['registerDescriptionCallback'](_0x32d4d3=>{if('formatBlock'!=_0x32d4d3['type']&&'formatInline'!=_0x32d4d3['type'])return;const {data:_0x32913b}=_0x32d4d3;return _0x32913b&&_0x32913b['commandName']==_0xe63917?_0x32913b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33fc0c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x33fc0c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x3be5df{['afterInit'](){const _0x9a1398=this['editor'];if(!_0x9a1398['plugins']['has']('Style')||!_0x9a1398['plugins']['has']('DataSchema'))return;const _0x2e8318=_0x9a1398['plugins']['get']('TrackChangesEditing'),_0x1b3696=_0x9a1398['locale'],_0x3ff0f9=_0x9a1398['config']['get']('style')||{},_0x2504ac=_0x9a1398['plugins']['get']('GeneralHtmlSupport'),_0xe9ae48=_0x9a1398['plugins']['get']('StyleUtils')['normalizeConfig'](_0x9a1398['plugins']['get']('DataSchema'),_0x3ff0f9['definitions']);_0x2e8318['enableDefaultAttributesIntegration']('style');const _0x22ef42=new Set();for(const _0xb195e6 of _0xe9ae48['block']){const _0x2dd5a7=_0x2504ac['getGhsAttributeNameForElement'](_0xb195e6['element']);_0x22ef42['add'](_0x2dd5a7);}const _0x4c0e25=new Set();for(const _0x38d13f of _0xe9ae48['inline']){const _0x400501=_0x2504ac['getGhsAttributeNameForElement'](_0x38d13f['element']);_0x4c0e25['add'](_0x400501);for(const _0x131566 of _0x38d13f['ghsAttributes'])_0x4c0e25['add'](_0x131566);}for(const _0x1b1d31 of _0x22ef42)_0x2e8318['registerBlockAttribute'](_0x1b1d31),_0x2e8318['descriptionFactory']['registerAttributeLabel'](_0x1b1d31,o(_0x1b3696,'FORMAT_STYLE'));for(const _0x3987e6 of _0x4c0e25)_0x2e8318['registerInlineAttribute'](_0x3987e6),_0x2e8318['descriptionFactory']['registerAttributeLabel'](_0x3987e6,o(_0x1b3696,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ab8b=this['editor'],_0x3bfe13=_0x28ab8b['locale'];_0x28ab8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a0735=>{if('formatBlock'!=_0x4a0735['type']&&'formatInline'!=_0x4a0735['type'])return;const {data:_0x54d0aa}=_0x4a0735;return _0x54d0aa&&'style'===_0x54d0aa['commandName']?_0x54d0aa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bfe13,'*Set\x20format:*\x20%0',_0x54d0aa['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3bfe13,'*Remove\x20format:*\x20%0',_0x54d0aa['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x3be5df{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x31136d){super(_0x31136d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x300526=this['editor'],_0x2c835f=_0x300526['model']['document']['selection'];if(!_0x300526['plugins']['has']('TableEditing'))return;const _0x585d6d=_0x300526['locale'],_0x123bd1=_0x300526['plugins']['get']('TrackChangesEditing'),_0x46a430=_0x300526['plugins']['get']('TableUtils');_0x123bd1['descriptionFactory']['registerElementLabel']('table',_0x12c2c2=>o(_0x585d6d,'ELEMENT_TABLE',_0x12c2c2)),this['_setupColumnsRowsFixing'](),_0x123bd1['enableCommand']('insertTable'),_0x123bd1['enableCommand']('selectTableRow'),_0x123bd1['enableCommand']('selectTableColumn');for(const _0x19aab8 of['insertTableRowAbove','insertTableRowBelow']){const _0x458839=_0x300526['commands']['get'](_0x19aab8);_0x123bd1['enableCommand'](_0x19aab8,_0x52cf57=>{_0x300526['model']['change'](_0x249900=>{_0x52cf57();const _0x20f9ee='above'===_0x458839['order'],_0x4d6ce7=_0x46a430['getSelectionAffectedTableCells'](_0x2c835f),_0x274ed8=_0x46a430['getRowIndexes'](_0x4d6ce7),_0x5776a5=_0x20f9ee?_0x274ed8['first']-0x1:_0x274ed8['last']+0x1,_0x4e64cb=_0x4d6ce7[0x0]['findAncestor']('table'),_0x10c2e0=_0x46a430['createTableWalker'](_0x4e64cb,{'startRow':_0x5776a5,'endRow':_0x5776a5}),_0x5a4115=Array['from'](_0x10c2e0)['map'](_0x16aeeb=>_0x249900['createRangeOn'](_0x16aeeb['cell']));_0x123bd1['markMultiRangeInsertion'](_0x5a4115,'tableRow');});});}for(const _0x214144 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d3f77=_0x300526['commands']['get'](_0x214144);_0x123bd1['enableCommand'](_0x214144,_0x58501d=>{_0x300526['model']['change'](_0x18b46c=>{_0x58501d();const _0x7bc7da='left'===_0x4d3f77['order'],_0x5dcd55=_0x46a430['getSelectionAffectedTableCells'](_0x2c835f),_0x2c9fc5=_0x46a430['getColumnIndexes'](_0x5dcd55),_0x21a56c=_0x7bc7da?_0x2c9fc5['first']-0x1:_0x2c9fc5['last']+0x1,_0x5a7120=_0x5dcd55[0x0]['findAncestor']('table'),_0x5db379=_0x46a430['createTableWalker'](_0x5a7120,{'startRow':0x0,'column':_0x21a56c,'includeAllSlots':!0x1}),_0xa01cc7=Array['from'](_0x5db379)['map'](_0x10fec2=>_0x18b46c['createRangeOn'](_0x10fec2['cell']));_0x123bd1['markMultiRangeInsertion'](_0xa01cc7,'tableColumn');});});}for(const _0x5e8e5b of['removeTableRow','removeTableColumn']){const _0x25446f=_0x5e8e5b['substr'](0xb),_0x63c3a5=_0x25446f['toLowerCase'](),_0x24db55=_0x63c3a5['substr'](0x0,0x3)+'span',_0x13c6d6='table'+_0x25446f,_0x26df38='min'+_0x25446f,_0x1a310a='max'+_0x25446f;_0x123bd1['enableCommand'](_0x5e8e5b,()=>{_0x300526['model']['change'](_0x1f6f01=>{const _0x309d68=_0x46a430['getSelectionAffectedTableCells'](_0x2c835f),_0x59caab=_0x309d68[0x0]['findAncestor']('table');let _0x23c67d;if('removeTableRow'==_0x5e8e5b){const _0x1c8a4a=_0x46a430['getRowIndexes'](_0x309d68);_0x23c67d={'startRow':_0x1c8a4a['first'],'endRow':_0x1c8a4a['last'],'includeAllSlots':!0x0};}else{const _0x49816a=_0x46a430['getColumnIndexes'](_0x309d68);_0x23c67d={'startColumn':_0x49816a['first'],'endColumn':_0x49816a['last'],'includeAllSlots':!0x0};}const _0x291179=_0x46a430['createTableWalker'](_0x59caab,_0x23c67d),_0x2489ee=Array['from'](_0x291179)['map'](({cell:_0x56096b})=>_0x56096b),_0x4f19b8=Ee(_0x2489ee['filter'](_0x3075e7=>_0x3075e7['hasAttribute'](_0x24db55))),_0x51a1da=Ee(_0x2489ee['filter'](_0x3b77d8=>!_0x3b77d8['hasAttribute'](_0x24db55)))['map'](_0x376c23=>_0x1f6f01['createRangeOn'](_0x376c23)),_0x17908f=_0x123bd1['markMultiRangeDeletion'](_0x51a1da,_0x13c6d6);if(_0x17908f&&('tableRow'==_0x17908f['subType']||'tableColumn'==_0x17908f['subType'])){const _0x10a998=this['_getSuggestionCoords'](_0x17908f);for(const _0x56d4ab of _0x4f19b8){const _0x85f4b7=_0x1f6f01['createRangeOn'](_0x56d4ab),_0x248d3f=_0x46a430['getCellLocation'](_0x56d4ab),_0x5c9496=_0x56d4ab['getAttribute'](_0x24db55)-0x1,_0xd03a91=_0x10a998[_0x26df38],_0x309e72=_0x10a998[_0x1a310a];_0xd03a91<=_0x248d3f[_0x63c3a5]&&_0x248d3f[_0x63c3a5]+_0x5c9496<=_0x309e72&&_0x17908f['addRange'](_0x85f4b7);}}});});}function _0x3062f3(_0x5f9b13){const _0x4dd594=Array['from'](_0x2c835f['getRanges']())['map'](_0x5a5317=>_0x2ded21['fromRange'](_0x5a5317));_0x300526['model']['change'](_0x306092=>{const _0x162bd4=_0x306092['batch'];_0x5f9b13=_0x5f9b13['filter'](_0x1546c8=>'$graveyard'!=_0x1546c8['root']['rootName']),_0x306092['setSelection'](_0x5f9b13),_0x300526['commands']['get']('removeTableRow')['refresh'](),_0x300526['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x300526['model']['enqueueChange'](()=>{_0x300526['model']['enqueueChange'](_0x162bd4,_0x161826=>{const _0x3895a7=_0x4dd594['filter'](_0x2b81fc=>'$graveyard'!=_0x2b81fc['root']['rootName']);_0x3895a7['length']>0x0&&_0x161826['setSelection'](_0x3895a7);for(const _0x28f1c7 of _0x4dd594)_0x28f1c7['detach']();});});});}function _0x3c3468(_0x366c42){_0x300526['model']['change'](_0x47617f=>{const _0x2d986e=Array['from'](_0x2c835f['getRanges']())['map'](_0x17d5bf=>_0x2ded21['fromRange'](_0x17d5bf)),_0x3b3d36=[];for(const _0x412405 of _0x366c42)for(const _0x4f104e of _0x412405['getItems']({'shallow':!0x0}))_0x3b3d36['push'](_0x4f104e);for(const _0x15c193 of _0x3b3d36)'$graveyard'!=_0x15c193['root']['rootName']&&(_0x47617f['setSelection'](_0x47617f['createPositionAt'](_0x15c193,0x0)),_0x300526['commands']['get']('removeTableColumn')['refresh'](),_0x300526['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x612af3=_0x2d986e['filter'](_0x1976c3=>'$graveyard'!=_0x1976c3['root']['rootName']);_0x612af3['length']>0x0&&_0x47617f['setSelection'](_0x612af3);for(const _0x298d46 of _0x2d986e)_0x298d46['detach']();});}function _0x1d0536(_0x516a57,_0x30b706){return _0x30b706['every'](_0x534f34=>_0x516a57['some'](_0x5f1b47=>_0x5f1b47['end']['isEqual'](_0x534f34['start'])||_0x534f34['end']['isEqual'](_0x5f1b47['start'])));}function _0x2e0cca(_0x37415e,_0x4433b5){return _0x37415e['some'](_0x3ad666=>_0x4433b5['some'](_0x53757e=>_0x3ad666['end']['isTouching'](_0x53757e['start'])));}_0x300526['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52c09f,_0x392cb7,_0x2c4af4)=>{if(!_0x2c4af4['options']['showSuggestionHighlights'])return;const _0x46b269=_0x392cb7['item'];if(!_0x46b269)return;const _0x2851c5=_0x2c4af4['mapper']['toViewElement'](_0x46b269);function _0x1f9841(_0x53a88f){return Array['isArray'](_0x53a88f)?_0x53a88f:[_0x53a88f];}_0x2851c5&&'tableCell'===_0x46b269['name']&&_0x1897ff(_0x2851c5,_0x2c4af4['writer'],(_0x526d32,_0x467709,_0x28a4f8)=>_0x28a4f8['addClass'](_0x1f9841(_0x467709['classes']),_0x526d32),(_0x22401b,_0x3d7ae9,_0x55bbac)=>_0x55bbac['removeClass'](_0x1f9841(_0x3d7ae9['classes']),_0x22401b));},{'priority':'highest'}),_0x123bd1['descriptionFactory']['registerDescriptionCallback'](_0x3452da=>{if('insertion'!=_0x3452da['type']&&'deletion'!=_0x3452da['type'])return;const _0x536278=_0x3452da['getContainedElement']();if(null!=_0x536278&&_0x536278['is']('element','table')){if('insertion'==_0x3452da['type']){const _0x36d0f2=_0x3452da['getItems']()['filter'](_0x34402e=>_0x34402e['is']('$textProxy'))['map'](_0x5cfd3d=>_0x5cfd3d['data']);if(_0x36d0f2['length'])return{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36d0f2['join']('\x20')+'\x22'))};}if('deletion'==_0x3452da['type']){const _0x8c5711=_0x3452da['getItems']()['filter'](_0x13353c=>_0x13353c['is']('$textProxy'))['map'](_0x54d28b=>_0x54d28b['data']);if(_0x8c5711['length'])return{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8c5711['join']('\x20')+'\x22'))};}}}),_0x123bd1['descriptionFactory']['registerDescriptionCallback'](_0x5508ca=>{if('tableRow'==_0x5508ca['subType']){const _0x10d610=_0x5508ca['getItems']()['filter'](_0xe58898=>_0xe58898['is']('$textProxy'))['map'](_0x2fa22b=>_0x2fa22b['data']),_0x605557=this['_getSuggestionCoords'](_0x5508ca),_0x5081b8=_0x605557['maxRow']-_0x605557['minRow']+0x1;if('insertion'==_0x5508ca['type'])return _0x10d610['length']?{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5081b8,'\x22'+_0x10d610['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_ROW',_0x5081b8))};if('deletion'==_0x5508ca['type'])return _0x10d610['length']?{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5081b8,'\x22'+_0x10d610['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_ROW',_0x5081b8))};}if('tableColumn'==_0x5508ca['subType']){const _0xc37859=_0x5508ca['getItems']()['filter'](_0x569353=>_0x569353['is']('$textProxy'))['map'](_0x2f0966=>_0x2f0966['data']),_0x3e3290=this['_getSuggestionCoords'](_0x5508ca),_0x31207e=_0x3e3290['maxColumn']-_0x3e3290['minColumn']+0x1;if('insertion'==_0x5508ca['type'])return _0xc37859['length']?{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31207e,'\x22'+_0xc37859['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x585d6d,'*Insert:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_COLUMN',_0x31207e))};if('deletion'==_0x5508ca['type'])return _0xc37859['length']?{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31207e,'\x22'+_0xc37859['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x585d6d,'*Remove:*\x20%0',o(_0x585d6d,'ELEMENT_TABLE_COLUMN',_0x31207e))};}}),_0x123bd1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3062f3),_0x123bd1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3062f3),_0x123bd1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c3468),_0x123bd1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c3468),_0x123bd1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1d0536),_0x123bd1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1d0536),_0x123bd1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2e0cca),_0x123bd1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2e0cca);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4deacc=this['editor'],_0x59ca0b=_0x4deacc['model']['document']['selection'];return(_0x33e0bf,_0x12f66f)=>{_0x4deacc['model']['change'](_0x5e4511=>{const {commandName:_0x565a2c,commandParams:_0x2efdb2}=_0x12f66f;let _0x582870=_0x33e0bf[0x0]['end']['nodeBefore'];_0x2efdb2&&_0x2efdb2[0x0]&&!0x1===_0x2efdb2[0x0]['forceValue']&&(_0x582870=_0x33e0bf[0x0]['start']['nodeAfter']);const _0x257247=_0x5e4511['createRangeIn'](_0x582870);if('$graveyard'==_0x257247['root']['rootName'])return;const _0x178499=Array['from'](_0x59ca0b['getRanges']())['map'](_0x412db2=>_0x2ded21['fromRange'](_0x412db2));_0x5e4511['setSelection'](_0x257247),_0x4deacc['commands']['get'](_0x565a2c)['refresh'](),_0x2efdb2['push']({'forceDefaultExecution':!0x0}),_0x4deacc['execute'](_0x565a2c,..._0x2efdb2);const _0xbe890d=_0x178499['filter'](_0x135d4a=>'$graveyard'!=_0x135d4a['root']['rootName']);_0xbe890d['length']>0x0&&_0x5e4511['setSelection'](_0xbe890d);for(const _0x1d89f9 of _0x178499)_0x1d89f9['detach']();});};}['_getCoordsForCells'](_0x100747){const _0x56e62b=this['editor']['plugins']['get']('TableUtils');let _0x526b85=Number['MAX_SAFE_INTEGER'],_0x53aeef=Number['MIN_SAFE_INTEGER'],_0x1c6da7=Number['MAX_SAFE_INTEGER'],_0x3e4b95=Number['MIN_SAFE_INTEGER'];for(const _0x120b48 of _0x100747){if('$graveyard'==_0x120b48['root']['rootName'])continue;const {row:_0x40729b,column:_0x2d806e}=_0x56e62b['getCellLocation'](_0x120b48),_0x1d6a8a=_0x120b48['hasAttribute']('rowspan')?_0x120b48['getAttribute']('rowspan')-0x1:0x0,_0x55f6b3=_0x120b48['hasAttribute']('colspan')?_0x120b48['getAttribute']('colspan')-0x1:0x0;_0x526b85=_0x40729b<_0x526b85?_0x40729b:_0x526b85,_0x53aeef=_0x40729b+_0x1d6a8a>_0x53aeef?_0x40729b+_0x1d6a8a:_0x53aeef,_0x1c6da7=_0x2d806e<_0x1c6da7?_0x2d806e:_0x1c6da7,_0x3e4b95=_0x2d806e+_0x55f6b3>_0x3e4b95?_0x2d806e+_0x55f6b3:_0x3e4b95;}return{'minRow':_0x526b85,'maxRow':_0x53aeef,'minColumn':_0x1c6da7,'maxColumn':_0x3e4b95};}['_setupColumnsRowsFixing'](){const _0xff56f1=this['editor'],_0xc6026c=_0xff56f1['plugins']['get']('TrackChangesEditing'),_0x33cbcb=_0xff56f1['plugins']['get']('TableUtils');_0xff56f1['model']['document']['on']('change:data',()=>{const _0x272a73=Array['from'](_0xff56f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26c366,data:_0x47a858}of _0x272a73){const {group:_0x3ad0c3,id:_0x9d5c6f,subType:_0x1cfa37}=_0xc6026c['_splitMarkerName'](_0x26c366);if('suggestion'!=_0x3ad0c3)continue;if(null!=_0x47a858['oldRange'])continue;const _0x28706b=_0xc6026c['getSuggestion'](_0x9d5c6f);this['_tablePostFixingSubtypes']['includes'](_0x1cfa37)&&this['_tableSuggestions']['add'](_0x28706b);}},{'priority':'low'});const _0x307a0b=(_0x54ddd7,_0x3d59c3)=>{let _0x4e888e=!0x1;const _0x14c43b=_0x3d59c3['createRangeOn'](_0x54ddd7),_0x3aa36d=_0x54ddd7['findAncestor']('table'),_0x2bd5d7=_0x33cbcb['getCellLocation'](_0x54ddd7);for(const _0x1b0539 of this['_tableSuggestions']){const _0x5ca986=_0x1b0539['subType'],_0x938e23=_0x5ca986['startsWith']('tablePaste'),_0x5a9c03=_0x5ca986['substr'](_0x938e23?0xa:0x5),_0x22f9c6=_0x5a9c03['toLowerCase'](),_0x32a516=_0x22f9c6['substr'](0x0,0x3)+'span',_0x373ca5='min'+_0x5a9c03,_0x41a3d4='max'+_0x5a9c03;if(!_0x1b0539['isInContent'])continue;if(_0x3aa36d!=_0x1b0539['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1b0539['isIntersectingWithRange'](_0x14c43b))continue;const _0x4373c2=_0x54ddd7['hasAttribute'](_0x32a516)?_0x54ddd7['getAttribute'](_0x32a516)-0x1:0x0,_0x293b64=this['_getSuggestionCoords'](_0x1b0539),_0x459f35=_0x293b64[_0x373ca5],_0x3f1dda=_0x293b64[_0x41a3d4];_0x459f35<=_0x2bd5d7[_0x22f9c6]&&_0x2bd5d7[_0x22f9c6]+_0x4373c2<=_0x3f1dda&&(_0x1b0539['addRange'](_0x14c43b),_0x4e888e=!0x0);}return _0x4e888e;};_0xff56f1['model']['document']['registerPostFixer'](_0x3b44ab=>{let _0x408c61=!0x1;for(const _0x6d53d0 of _0xff56f1['model']['document']['differ']['getChanges']())if('insert'==_0x6d53d0['type']){if('tableRow'==_0x6d53d0['name']){for(const _0x4109b7 of _0x6d53d0['position']['nodeAfter']['getChildren']())_0x408c61=_0x408c61||_0x307a0b(_0x4109b7,_0x3b44ab);}else'tableCell'==_0x6d53d0['name']&&(_0x408c61=_0x408c61||_0x307a0b(_0x6d53d0['position']['nodeAfter'],_0x3b44ab));}return _0x408c61;});}['_getSuggestionCoords'](_0x5057df){return this['_getCoordsForCells'](_0x5057df['getRanges']()['map'](_0x1ea5a2=>_0x1ea5a2['start']['nodeAfter']));}}function Ee(_0x1b37dc){return Array['from'](new Set(_0x1b37dc)['values']());}class St extends _0x3be5df{static get['requires'](){return[jt];}['afterInit'](){const _0xca2d66=this['editor'],_0x571a47=_0xca2d66['model']['document']['selection'],_0x370c93=_0xca2d66['locale'];if(!_0xca2d66['plugins']['has']('TableEditing'))return;const _0x1b83df=_0xca2d66['plugins']['get']('TrackChangesEditing'),_0x10638a=_0xca2d66['plugins']['get']('TableUtils'),_0x8b286=_0xca2d66['plugins']['get'](jt);_0x8b286['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1b83df['enableCommand']('mergeTableCells',()=>{const _0x33b2f4=_0x10638a['getSelectionAffectedTableCells'](_0xca2d66['model']['document']['selection']);_0xca2d66['model']['change'](()=>{_0x1b83df['markMultiRangeBlockFormat'](_0x33b2f4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xca2d66['commands']['get']('mergeTableCells')['on']('execute',(_0x26bea0,_0x5694e2)=>{_0xca2d66['commands']['get']('trackChanges')['value']&&(_0x5694e2['length']>0x0&&_0x5694e2[_0x5694e2['length']-0x1]&&_0x5694e2[_0x5694e2['length']-0x1]['forceDefaultExecution']||_0x1b83df['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x26bea0['stop']());},{'priority':'highest'});for(const _0x455ba5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5834e1=_0xca2d66['commands']['get'](_0x455ba5);_0x1b83df['enableCommand'](_0x455ba5,()=>{const _0x7e6ada=_0xca2d66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x44d02d=>_0x44d02d['is']('element','tableCell')),_0x454e55=_0x5834e1['value'];_0xca2d66['model']['change'](()=>{_0x1b83df['markMultiRangeBlockFormat']([_0x7e6ada,_0x454e55],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x293835 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3c1f5d=_0xca2d66['commands']['get'](_0x293835);_0x1b83df['enableCommand'](_0x293835,()=>{const _0x23abad=_0x10638a['getSelectionAffectedTableCells'](_0xca2d66['model']['document']['selection'])[0x0],_0x18be1d=_0x23abad['findAncestor']('table'),{column:_0x1694d9,row:_0x52bc9a}=_0x10638a['getCellLocation'](_0x23abad);let _0x1cfd91=[];if('horizontally'==_0x3c1f5d['direction']){const _0x4ac0aa=_0x10638a['createTableWalker'](_0x18be1d,{'startRow':_0x52bc9a,'endRow':_0x52bc9a,'includeAllSlots':!0x0});_0x1cfd91=Array['from'](_0x4ac0aa)['map'](_0x4d520a=>_0x4d520a['cell']);}else{const _0x145278=_0x10638a['createTableWalker'](_0x18be1d,{'column':_0x1694d9,'includeAllSlots':!0x0});_0x1cfd91=Array['from'](_0x145278)['map'](_0x1dd3ce=>_0x1dd3ce['cell']);}_0xca2d66['model']['change'](_0x5ac9c8=>{_0x1b83df['markBlockFormat'](_0x5ac9c8['createRangeOn'](_0x23abad),{'commandName':_0x293835,'commandParams':[]},_0x1cfd91,_0x293835);});});}_0x1b83df['descriptionFactory']['registerDescriptionCallback'](_0x71354b=>{if('formatBlock'!=_0x71354b['type']&&'formatInline'!=_0x71354b['type'])return;const {data:_0x43ddbf}=_0x71354b;return _0x43ddbf&&'mergeTableCells'==_0x43ddbf['commandName']?{'type':'format','content':o(_0x370c93,'*Merge\x20cells*')}:void 0x0;}),_0x1b83df['descriptionFactory']['registerDescriptionCallback'](_0x7ba8ac=>{if('formatBlock'!=_0x7ba8ac['type']&&'formatInline'!=_0x7ba8ac['type'])return;const {data:_0x325854}=_0x7ba8ac;return _0x325854?'splitTableCellVertically'==_0x325854['commandName']?{'type':'format','content':o(_0x370c93,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x325854['commandName']?{'type':'format','content':o(_0x370c93,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x21e02e=_0x8b286['_acceptFormatSuggestionCallbackFactory']();for(const _0x153c38 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1b83df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x153c38,'accept',_0x21e02e);for(const _0x57aaba of['splitTableCellVertically','splitTableCellHorizontally'])_0x1b83df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57aaba,'accept',_0x21e02e);_0x1b83df['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2b26dd=>{_0xca2d66['model']['change'](_0x52ef4d=>{const _0x18bf67=Array['from'](_0x571a47['getRanges']())['map'](_0x44ac3d=>_0x2ded21['fromRange'](_0x44ac3d));_0x52ef4d['setSelection'](_0x2b26dd),_0xca2d66['commands']['get']('mergeTableCells')['refresh'](),_0xca2d66['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x53891a=_0x18bf67['filter'](_0xf652b0=>'$graveyard'!=_0xf652b0['root']['rootName']);_0x53891a['length']>0x0&&_0x52ef4d['setSelection'](_0x53891a);for(const _0x95d6a6 of _0x18bf67)_0x95d6a6['detach']();});});for(const _0x5875ad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x194eff=_0xca2d66['commands']['get'](_0x5875ad);_0x194eff['on']('set:isEnabled',(_0x12d152,_0x574b5e,_0x4c40a3)=>{if(_0x4c40a3){const _0x168124=_0xca2d66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45d816=>_0x45d816['is']('element','tableCell'));this['_areMergableCells'](_0x194eff['value'],_0x168124)||(_0x12d152['return']=!0x1,_0x12d152['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25eb94=this['editor']['commands']['get']('mergeTableCells'),_0x4f94db=this['editor']['plugins']['get']('TableUtils');if(!_0x25eb94['isEnabled'])return!0x1;const _0x3ed3ed=_0x4f94db['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3f6cb8 of _0x3ed3ed)for(const _0x266031 of _0x3ed3ed)if(_0x3f6cb8!=_0x266031&&!this['_areMergableCells'](_0x3f6cb8,_0x266031))return!0x1;return!0x0;}['_areMergableCells'](_0x3aa1de,_0x37915b){const _0x5c8fed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x427c89=this['editor']['model']['createRangeOn'](_0x3aa1de),_0x3c2a0d=this['editor']['model']['createRangeOn'](_0x37915b),_0x4e4ce9=new Set(),_0x43d774=new Set();for(const _0x4be775 of _0x5c8fed['getSuggestions']())if(('insertion'==_0x4be775['type']||'deletion'==_0x4be775['type']||'mergeTableCells'==_0x4be775['subType'])&&_0x4be775['isInContent']){for(const _0x1db086 of _0x4be775['getRanges']())_0x1db086['containsRange'](_0x427c89,!0x0)&&_0x4e4ce9['add'](_0x4be775['type']+':'+_0x4be775['author']['id']),_0x1db086['containsRange'](_0x3c2a0d,!0x0)&&_0x43d774['add'](_0x4be775['type']+':'+_0x4be775['author']['id']);}if(_0x4e4ce9['size']!=_0x43d774['size'])return!0x1;for(const _0x995252 of _0x4e4ce9)if(!_0x43d774['has'](_0x995252))return!0x1;return!0x0;}}class At extends _0x3be5df{static get['requires'](){return[jt];}['afterInit'](){const _0x1b7600=this['editor'];if(!_0x1b7600['plugins']['has']('TableEditing'))return;const _0x1160ce=_0x1b7600['locale'],_0x149e72=_0x1b7600['plugins']['get']('TrackChangesEditing');_0x149e72['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x149e72['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x149e72['registerBlockAttribute']('headingRows'),_0x149e72['registerBlockAttribute']('headingColumns'),_0x149e72['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1160ce,'FORMAT_HEADER_ROW')),_0x149e72['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1160ce,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x484c79=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf88428=this['editor']['plugins']['get']('TableUtils'),_0x5f160c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3540e4({showActiveMarker:_0x4b8377=!0x0,setDataAttribute:_0x24f964=!0x0}={}){return(_0x43a493,_0x285023,_0x306636)=>{const {type:_0x316659,id:_0x262602}=_0x484c79['_splitMarkerName'](_0x285023['markerName']),_0x38b41c=_0x484c79['getSuggestion'](_0x262602),_0x1d751b=_0x38b41c['data'];if('formatBlock'!=_0x38b41c['type']||!_0x1d751b||'setTableColumnHeader'!=_0x1d751b['commandName'])return;if(_0x285023['item'])return void _0x43a493['stop']();if(!_0x306636['consumable']['consume'](_0x285023['markerRange'],_0x43a493['name']))return;const _0x50e631=_0x285023['markerRange']['start']['nodeAfter'],_0x439555=_0x285023['markerRange']['end']['nodeBefore'],_0x902a10=_0x50e631['parent']['parent'],{column:_0x543153}=_0xf88428['getCellLocation'](_0x50e631),{column:_0x395304}=_0xf88428['getCellLocation'](_0x439555);for(let _0xc4ba12=_0x543153;_0xc4ba12<=_0x395304;_0xc4ba12++){const _0x56fe80=_0xf88428['createTableWalker'](_0x902a10,{'column':_0xc4ba12,'includeAllSlots':!0x1});for(const _0x42ff0c of _0x56fe80){const _0x199ca5=_0x42ff0c['cell'],_0x11e0e8=_0x306636['mapper']['toViewElement'](_0x199ca5);_0x306636['writer']['addClass']('ck-suggestion-marker-'+_0x316659,_0x11e0e8),_0x24f964&&_0x306636['writer']['setAttribute']('data-suggestion',_0x262602,_0x11e0e8),_0x306636['mapper']['bindElementToMarker'](_0x11e0e8,_0x285023['markerName']),_0x4b8377&&(_0x484c79['activeMarkers']['includes'](_0x285023['markerName'])?_0x306636['writer']['addClass']('ck-suggestion-marker--active',_0x11e0e8):_0x306636['writer']['removeClass']('ck-suggestion-marker--active',_0x11e0e8));}}};}_0x484c79['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5f160c),_0x484c79['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5f160c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3540e4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x233653,_0x396785,_0x2bd441)=>{_0x2bd441['options']['showSuggestionHighlights']&&_0x3540e4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x233653,_0x396785,_0x2bd441);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x54cfa5,_0x598a5f,_0x11d697)=>{const {type:_0x35f648,id:_0x3fb7c7}=_0x484c79['_splitMarkerName'](_0x598a5f['markerName']),_0x2737cb=_0x484c79['getSuggestion'](_0x3fb7c7),_0x479c6f=_0x2737cb['data'];if('formatBlock'!=_0x2737cb['type']||!_0x479c6f||'setTableColumnHeader'!=_0x479c6f['commandName'])return;const _0x3c3793=_0x11d697['mapper']['markerNameToElements'](_0x598a5f['markerName']);if(_0x3c3793){for(const _0x384b89 of _0x3c3793)_0x11d697['writer']['removeClass']('ck-suggestion-marker-'+_0x35f648,_0x384b89),_0x11d697['writer']['removeClass']('ck-suggestion-marker--active',_0x384b89),_0x11d697['writer']['removeAttribute']('data-suggestion',_0x384b89),_0x11d697['mapper']['unbindElementFromMarkerName'](_0x384b89,_0x598a5f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1caeae=this['editor'],_0x4321cc=_0x1caeae['locale'];function _0x219549(_0x3f5b12){return{'type':'format','content':o(_0x4321cc,'*Format:*\x20%0',_0x3f5b12)};}_0x1caeae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ad7e4=>{if('formatBlock'!=_0x4ad7e4['type'])return;const {data:_0x46a888}=_0x4ad7e4;if(_0x46a888){if('setTableRowHeader'==_0x46a888['commandName']){const _0x390b00=_0x46a888['commandParams'][0x0]['forceValue'];return _0x219549(o(_0x4321cc,_0x390b00?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x46a888['commandName']){const _0x8494ef=_0x46a888['commandParams'][0x0]['forceValue'];return _0x219549(o(_0x4321cc,_0x8494ef?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2ba0f6=>[_0x2ba0f6,null]));class It extends _0x3be5df{static get['requires'](){return[jt];}['afterInit'](){const _0x207193=this['editor'];if(!_0x207193['plugins']['has']('TableClipboard'))return;const _0x12f73e=_0x207193['plugins']['get']('TrackChangesEditing'),_0x39fb59=_0x207193['plugins']['get']('TableUtils'),_0x566240=_0x207193['plugins']['get'](jt),_0x2191ba=_0x207193['plugins']['get']('TableClipboard');_0x566240['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x207193['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x207193['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x49db8b=null;_0x207193['model']['on']('insertContent',(_0x578ff8,_0x202ed8)=>{const [_0x30c38f,_0x5cf50b]=_0x202ed8,_0x4fbc08=_0x202ed8[_0x202ed8['length']-0x1];_0x4fbc08&&_0x4fbc08['forceDefaultExecution']||_0x12f73e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1129f2,_0x35f31e,_0x564948,_0x6d5b68,_0x423b12){if(_0x35f31e&&!_0x35f31e['is']('documentSelection'))return!0x1;const _0x46d764=_0x423b12['getTableIfOnlyTableInContent'](_0x1129f2,_0x564948);if(!_0x46d764||!he(_0x46d764,void 0x0,_0x6d5b68))return!0x1;const _0x3b1dcc=_0x6d5b68['getSelectionAffectedTableCells'](_0x564948['document']['selection']);if(!_0x3b1dcc['length'])return!0x1;const _0x29393e=_0x3b1dcc[0x0]['findAncestor']('table'),_0x2e7e73=_0x6d5b68['getRowIndexes'](_0x3b1dcc),_0x27021b=_0x6d5b68['getColumnIndexes'](_0x3b1dcc),_0x237621={'startRow':_0x2e7e73['first'],'endRow':_0x2e7e73['last'],'startColumn':_0x27021b['first'],'endColumn':_0x27021b['last']};return 0x1==_0x3b1dcc['length']&&(_0x237621['endRow']+=_0x6d5b68['getRows'](_0x46d764)-0x1,_0x237621['endColumn']+=_0x6d5b68['getColumns'](_0x46d764)-0x1),he(_0x29393e,_0x237621,_0x6d5b68);}(_0x30c38f,_0x5cf50b,_0x207193['model'],_0x39fb59,_0x2191ba)&&(_0x578ff8['stop'](),_0x49db8b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x207193['model']['change'](()=>{_0x207193['model']['insertContent'](_0x202ed8[0x0],_0x202ed8[0x1],_0x202ed8[0x2],{'forceDefaultExecution':!0x0});const _0x4035a9=_0x3035a1(),{rowInsertionRanges:_0x6ab199,columnInsertionRanges:_0x4373fe,insertionRanges:_0x1e8d9d,deletionRanges:_0x998a67,cells:_0x4b8fd1}=_0x49db8b;_0x6ab199['length']&&_0x12f73e['markMultiRangeInsertion'](_0x6ab199,'tablePasteRow',{'tablePasteChainId':_0x4035a9}),_0x4373fe['length']&&_0x12f73e['markMultiRangeInsertion'](_0x4373fe,'tablePasteColumn',{'tablePasteChainId':_0x4035a9}),_0x1e8d9d['length']&&(_0x12f73e['markMultiRangeInsertion'](_0x1e8d9d,'tablePaste',{'tablePasteChainId':_0x4035a9,'skipNestingCheck':!0x0}),_0x1e8d9d['forEach'](_0x304504=>_0x304504['detach']?.())),_0x998a67['length']&&(_0x12f73e['markMultiRangeDeletion'](_0x998a67,'tablePaste',{'tablePasteChainId':_0x4035a9,'skipNestingCheck':!0x0}),_0x998a67['forEach'](_0x7e91a5=>_0x7e91a5['detach']?.()));const _0x45416a=_0x12f73e['markMultiRangeBlockFormat'](_0x4b8fd1['map'](({element:_0x5b3343})=>_0x5b3343),{'formatGroupId':_0x3035a1()},[],'tablePasteCell',{'tablePasteChainId':_0x4035a9});if(_0x45416a){const _0x320949=_0x45416a['getMarkers'](),_0x784ccf=[];for(const {element:_0x2f6a35,attributes:_0x17f413}of _0x4b8fd1){if(!_0x17f413)continue;const _0x219953=_0x207193['model']['createRangeOn'](_0x2f6a35),_0x176f9a=_0x320949['find'](_0x2c3313=>_0x2c3313['getRange']()['isEqual'](_0x219953));_0x176f9a&&_0x784ccf['push']([_0x176f9a['name'],_0x17f413]);}_0x784ccf['length']&&_0x45416a['setAttribute']('markerAttributes',Object['fromEntries'](_0x784ccf));}_0x49db8b=null;}));},{'priority':_0x3b4600['high']+0xa}),_0x207193['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3a59d9,_0x34ce28)=>{const [_0xe51a2f,_0xdad5de,,_0x16dfd0]=_0x34ce28;if(!_0x49db8b)return;_0x3a59d9['stop']();const _0x476e67=_0xe51a2f['cell'],_0x56a95=_0xdad5de,_0x52daa1=Pe(_0x476e67),_0x427106=Pe(_0x56a95);_0x3a59d9['return']=_0x476e67;let _0x5ea92b=null,_0xef1d4f=null;if(_0x427106||_0x52daa1){if(_0x52daa1&&!_0x427106){_0x16dfd0['remove'](_0x476e67['getChild'](0x0));for(const _0x2d2dd0 of Array['from'](_0x56a95['getChildren']()))_0x16dfd0['insert'](_0x2d2dd0,_0x476e67,'end');const _0x26fcf6=_0x49db8b['rowInsertionIndexes']['includes'](_0xe51a2f['row']),_0x127232=_0x49db8b['columnInsertionIndexes']['includes'](_0xe51a2f['column']);_0x26fcf6||_0x127232||(_0x5ea92b=_0x2ded21['fromRange'](_0x16dfd0['createRangeIn'](_0x476e67)));}else _0x427106&&!_0x52daa1&&(_0xef1d4f=_0x16dfd0['createRangeIn'](_0x476e67));}else{const _0x303519=_0x16dfd0['createElement']('tableCellSuggestion'),_0x28b4c1=_0x16dfd0['createElement']('tableCellSuggestion');_0x16dfd0['wrap'](_0x16dfd0['createRangeIn'](_0x476e67),_0x28b4c1),_0x16dfd0['insert'](_0x303519,_0x476e67,0x0);for(const _0x273c77 of Array['from'](_0x56a95['getChildren']()))_0x16dfd0['insert'](_0x273c77,_0x303519,'end');_0x5ea92b=_0x2ded21['fromRange'](_0x16dfd0['createRangeOn'](_0x303519)),_0xef1d4f=_0x2ded21['fromRange'](_0x16dfd0['createRangeOn'](_0x28b4c1));}const _0x5bcd60=Array['from'](_0x56a95['getAttributes']())['filter'](([_0x171a95])=>ge['includes'](_0x171a95));_0x49db8b['cells']['push']({'element':_0x476e67,'attributes':_0x5bcd60['length']?Object['fromEntries'](_0x5bcd60):null}),_0x5ea92b&&_0x49db8b['insertionRanges']['push'](_0x5ea92b),_0xef1d4f&&_0x49db8b['deletionRanges']['push'](_0xef1d4f);},{'priority':'high'}),_0x39fb59['on']('insertColumns',(_0x150329,_0x398b0f)=>{const [_0x501cf8,_0x38b718={}]=_0x398b0f;if(!_0x49db8b)return;const _0x3d3c6c=_0x38b718['at']||0x0,_0x247ecb=_0x38b718['columns']||0x1;_0x49db8b['columnInsertionIndexes']=new Array(_0x247ecb)['fill'](_0x3d3c6c)['map']((_0x3bcfcb,_0x5272d7)=>_0x3bcfcb+_0x5272d7);for(const {cell:_0xdba7ce}of _0x39fb59['createTableWalker'](_0x501cf8,{'startColumn':_0x3d3c6c,'endColumn':_0x3d3c6c+_0x247ecb-0x1}))_0x49db8b['columnInsertionRanges']['push'](_0x207193['model']['createRangeOn'](_0xdba7ce));},{'priority':'low'}),_0x39fb59['on']('insertRows',(_0x513c8a,_0x1f8d08)=>{const [_0x3149ab,_0x48331b={}]=_0x1f8d08;if(!_0x49db8b)return;const _0x522b04=_0x48331b['at']||0x0,_0x228f94=_0x48331b['rows']||0x1;_0x49db8b['rowInsertionIndexes']=new Array(_0x228f94)['fill'](_0x522b04)['map']((_0x140581,_0x46cb33)=>_0x140581+_0x46cb33);for(const {cell:_0x4904da}of _0x39fb59['createTableWalker'](_0x3149ab,{'startRow':_0x522b04,'endRow':_0x522b04+_0x228f94-0x1}))_0x49db8b['rowInsertionRanges']['push'](_0x207193['model']['createRangeOn'](_0x4904da));},{'priority':'low'}),_0x12f73e['descriptionFactory']['registerDescriptionCallback'](_0x5966bb=>{if(_0x5966bb['subType']&&_0x5966bb['subType']['startsWith']('tablePaste'))return _0x5966bb['previous']?{}:{'type':'insertion','content':o(_0x207193['locale'],'*Replace\x20table\x20cells*')};});const _0x3eb8ef=()=>!0x1;for(const _0x1728d3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x12f73e['_suggestionFactory']['registerCustomCallback']('insertion',_0x1728d3,'join',_0x3eb8ef),_0x12f73e['_suggestionFactory']['registerCustomCallback']('deletion',_0x1728d3,'join',_0x3eb8ef),_0x12f73e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1728d3,'join',_0x3eb8ef);_0x12f73e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3eb8ef),_0x12f73e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5af4d8,_0x4398a3,_0x155177)=>{const _0x1a413b=_0x5af4d8['map'](_0x22b64c=>_0x22b64c['getContainedElement']())['filter'](_0x3f3237=>_0x3f3237),_0x3afb39=new Map(_0x1a413b['map'](_0x40827e=>[_0x40827e,null]));if(_0x49db8b){for(const {element:_0x4b4d52,attributes:_0xf3391c}of _0x49db8b['cells'])_0xf3391c&&_0x3afb39['set'](_0x4b4d52,_0xf3391c);}else{if(_0x155177&&_0x155177['markerAttributes'])for(const [_0x56c854,_0x40b4ea]of Object['entries'](_0x155177['markerAttributes'])){const _0x233da7=_0x207193['model']['markers']['get'](_0x56c854),_0x3f3af7=_0x233da7?_0x233da7['getRange']()['getContainedElement']():null;_0x3f3af7&&_0x3afb39['set'](_0x3f3af7,_0x40b4ea);}}_0x207193['model']['change'](_0x43760c=>{for(const [_0x422ec0,_0x66d5d8]of _0x3afb39)_0x43760c['setAttributes']({...Ce,..._0x66d5d8},_0x422ec0);});});const _0x441bdf=(_0x40ed88,_0x4eb08f)=>{_0x12f73e['_suggestionFactory']['registerCustomCallback'](_0x40ed88,'tablePaste',_0x4eb08f,(_0x10281d,_0x215f9a,_0x224750)=>{_0x207193['model']['change'](_0x416c0f=>{const _0x1ca868=[];for(const _0x31c897 of _0x10281d){const _0x35088b=_0x31c897['start']['nodeAfter'];_0x35088b['is']('element','tableCellSuggestion')&&_0x1ca868['push'](_0x35088b);}_0x12f73e['_suggestionFactory']['getSuggestionCallback'](_0x40ed88,null,_0x4eb08f)(_0x10281d,_0x215f9a,_0x224750);for(const _0x1764a5 of _0x1ca868)'$graveyard'!=_0x1764a5['root']['rootName']&&_0x416c0f['unwrap'](_0x1764a5);});});};_0x441bdf('insertion','accept'),_0x441bdf('insertion','discard'),_0x441bdf('deletion','accept'),_0x441bdf('deletion','discard'),_0x12f73e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xcf4c83=>{const _0x2bcb6e=_0xcf4c83['map'](_0x5a84b5=>_0x5a84b5['getContainedElement']()),_0x4ab337=_0x2bcb6e[0x0]['findAncestor']('table'),{minRow:_0x3477ee,maxRow:_0x34c019}=_0x566240['_getCoordsForCells'](_0x2bcb6e);_0x39fb59['removeRows'](_0x4ab337,{'at':_0x3477ee,'rows':_0x34c019-_0x3477ee+0x1});}),_0x12f73e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1ebf0f=>{const _0x203116=_0x1ebf0f['map'](_0x30c768=>_0x30c768['getContainedElement']()),_0x2dc39a=_0x203116[0x0]['findAncestor']('table'),{minColumn:_0x542536,maxColumn:_0x484561}=_0x566240['_getCoordsForCells'](_0x203116);_0x39fb59['removeColumns'](_0x2dc39a,{'at':_0x542536,'columns':_0x484561-_0x542536+0x1});});const _0x233419=(_0x4a9cc4,_0x48cab2)=>{if(!_0x48cab2['subType']||!_0x48cab2['subType']['startsWith']('tablePaste'))return;const _0x85079f=_0x48cab2['attributes']['tablePasteChainId'],_0x1e2d83=_0x12f73e['getSuggestions']()['filter'](_0x35a0c9=>_0x35a0c9['isInContent']&&_0x35a0c9['attributes']&&_0x35a0c9['attributes']['tablePasteChainId']==_0x85079f);_0x1e2d83['length']&&_0x48cab2['getAllAdjacentSuggestions']()['length']!=_0x1e2d83['length']&&_0x1e2d83['reduce']((_0xee5edc,_0xc5b326)=>(_0xee5edc['next']=_0xc5b326,_0xc5b326['previous']=_0xee5edc,_0xc5b326));};function _0xa3b400(_0x1e1a4e,_0x43b6ac=!0x0){const {id:_0x2a126d}=_0x12f73e['_splitMarkerName'](_0x1e1a4e['markerName']),_0x63c0c7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x59ea69=_0x12f73e['activeMarkers']['includes'](_0x1e1a4e['markerName']);return _0x59ea69&&_0x63c0c7['push']('ck-suggestion-marker--active'),{'classes':_0x63c0c7,'attributes':{'data-suggestion':_0x2a126d},'priority':_0x59ea69&&_0x43b6ac?0xbc2:0xbb8};}_0x12f73e['on']('suggestionLoaded',_0x233419,{'priority':'high'}),_0x12f73e['on']('suggestionUnloaded',_0x233419,{'priority':'high'}),_0x207193['model']['document']['registerPostFixer'](()=>{let _0x4c1af9=!0x1;const _0x317676=Array['from'](_0x207193['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9f973b,data:_0x50e87f}of _0x317676){const {group:_0x7abecf,type:_0x122b2d,id:_0x1b9d66}=_0x12f73e['_splitMarkerName'](_0x9f973b);if('suggestion'!=_0x7abecf||'deletion'!=_0x122b2d||_0x50e87f['oldRange'])continue;if(!_0x12f73e['hasSuggestion'](_0x1b9d66))continue;const _0x435d4d=_0x12f73e['getSuggestion'](_0x1b9d66)['getRanges'](),_0x4ca78f=_0x207193['plugins']['get']('Users')['me'];for(const _0x3e1b70 of _0x12f73e['getSuggestions']()){if(!_0x3e1b70['isInContent']||_0x3e1b70['author']!=_0x4ca78f)continue;if('formatBlock'!=_0x3e1b70['type']||'tablePasteCell'!=_0x3e1b70['subType'])continue;if(_0x3e1b70['getRanges']()['every'](_0x281191=>_0x435d4d['some'](_0x3c9776=>_0x3c9776['containsRange'](_0x281191,!0x0)))){for(const _0x4632b7 of _0x3e1b70['getAllAdjacentSuggestions']())_0x4632b7['isInContent']&&(_0x4632b7['discard'](),_0x4c1af9=!0x0);}}}return _0x4c1af9;}),_0x207193['model']['document']['registerPostFixer'](_0x1c26f3=>{const _0x38cb58=_0x207193['commands']['get']('redo');if(!_0x38cb58||!_0x38cb58['_createdBatches']['has'](_0x1c26f3['batch']))return!0x1;let _0x168a1c=!0x1;const _0x41c1bc=_0x207193['plugins']['get']('Users')['me'],_0x55b250=_0x207193['model']['document']['differ']['getChanges'](),_0x3af78c=Array['from'](_0x207193['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x451375,data:_0x545147})=>{const {group:_0x5c372b,subType:_0x3639d4,authorId:_0x10cfb5}=_0x12f73e['_splitMarkerName'](_0x451375);return'suggestion'==_0x5c372b&&'tablePaste'==_0x3639d4&&_0x10cfb5==_0x41c1bc['id']&&!_0x545147['oldRange'];});for(const _0x42f098 of _0x55b250){if('insert'!=_0x42f098['type']||'tableCellSuggestion'!=_0x42f098['name']||0x1!=_0x42f098['length'])continue;const _0x1d396c=_0x1c26f3['createRange'](_0x42f098['position'],_0x42f098['position']['getShiftedBy'](0x1));if(!_0x3af78c['find'](({data:_0x40ec13})=>_0x40ec13['newRange']['isEqual'](_0x1d396c))){for(const {name:_0x418a14,data:_0x18ff0b}of _0x3af78c)if(_0x1d396c['containsRange'](_0x18ff0b['newRange'])){_0x1c26f3['updateMarker'](_0x418a14,{'range':_0x1d396c}),_0x168a1c=!0x0;break;}}}return _0x168a1c;}),_0x207193['model']['document']['registerPostFixer'](_0x1907e2=>{let _0x2b3544=!0x1;const _0x220872=_0x207193['plugins']['get']('Users')['me'],_0x47f6f7=_0x12f73e['getSuggestions']()['filter'](_0x58fc67=>_0x58fc67['isInContent']&&_0x58fc67['author']==_0x220872),_0x328a82=new Set(),_0x346c31=new Set();for(const _0x976ba5 of _0x47f6f7)if('tablePaste'==_0x976ba5['subType'])for(const _0x515036 of _0x976ba5['getMarkers']()){const _0x2788ba=_0x515036['getRange']()['getContainedElement']();if(_0x2788ba){if(_0x2788ba['is']('element','tableCellSuggestion')&&Pe(_0x2788ba)){_0x976ba5['removeMarker'](_0x515036['name']),_0x328a82['add'](_0x2788ba),_0x2b3544=!0x0;const _0x5234a9=_0x2788ba['nextSibling'],_0x5c6ce4=_0x2788ba['previousSibling'],_0x167480=_0x5234a9&&_0x5234a9['is']('element','tableCellSuggestion'),_0x4ece4f=_0x5c6ce4&&_0x5c6ce4['is']('element','tableCellSuggestion');_0x167480&&!_0x328a82['has'](_0x5234a9)&&_0x346c31['add'](_0x5234a9),_0x4ece4f&&!_0x328a82['has'](_0x5c6ce4)&&_0x346c31['add'](_0x5c6ce4);}else _0x2788ba['is']('element','paragraph')&&_0x2788ba['isEmpty']&&(_0x976ba5['removeMarker'](_0x515036['name']),_0x2b3544=!0x0);}}else{if('tablePasteCell'==_0x976ba5['subType']){if(!_0x976ba5['attributes']||!_0x976ba5['attributes']['tablePasteChainId'])continue;const _0x34217f=_0x976ba5['attributes']['markerAttributes'];if(_0x34217f&&Object['keys'](_0x34217f)['length'])continue;const _0x4d8a3e=_0x976ba5['attributes']['tablePasteChainId'];let _0x5e4d84=!0x0,_0x1ecf01=!0x0;for(const _0x38b9ce of _0x47f6f7)if(_0x38b9ce['subType']&&_0x38b9ce['subType']['startsWith']('tablePaste')){if(!_0x38b9ce['attributes']['tablePasteChainId']){_0x1ecf01=!0x1;break;}if(_0x38b9ce['id']!=_0x976ba5['id']&&_0x38b9ce['attributes']['tablePasteChainId']==_0x4d8a3e){_0x5e4d84=!0x1;break;}}_0x1ecf01&&_0x5e4d84&&(_0x976ba5['removeMarkers'](),_0x2b3544=!0x0);}}for(const _0x25a00d of _0x328a82)_0x1907e2['remove'](_0x25a00d);for(const _0x14aa61 of _0x346c31)_0x1907e2['unwrap'](_0x14aa61);return _0x2b3544;}),_0x207193['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xddfe9d,_0x149f4f)=>_0xa3b400(_0xddfe9d),'converterPriority':'high'}),_0x207193['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b5bcd,_0x3432c7)=>_0x3432c7['options']['showSuggestionHighlights']?_0xa3b400(_0x5b5bcd,!0x1):null,'converterPriority':'high'});const _0x45a14a=_0x207193['editing']['view'];this['listenTo'](_0x45a14a['document'],'clipboardOutput',(_0x21720d,_0x34a674)=>{const _0x8de32a=[];for(const _0x528211 of _0x45a14a['createRangeIn'](_0x34a674['content'])['getItems']())_0x528211['is']('element','suggestion-td')&&_0x8de32a['push'](_0x528211);_0x45a14a['change'](_0x531623=>{for(const _0x523f7b of _0x8de32a)_0x531623['move'](_0x531623['createRangeIn'](_0x523f7b),_0x531623['createPositionBefore'](_0x523f7b)),_0x531623['remove'](_0x523f7b);});});}}function Pe(_0x20eba3){if(_0x20eba3['isEmpty'])return!0x0;const _0x43a307=_0x20eba3['getChild'](0x0);return _0x43a307['is']('element','paragraph')&&_0x43a307['isEmpty'];}function he(_0xaedf20,_0x2af8eb={},_0x4a9a96){for(const {isAnchor:_0x2e0f18,cellHeight:_0x5d2971,cellWidth:_0x17837c}of _0x4a9a96['createTableWalker'](_0xaedf20,{'includeAllSlots':!0x0,..._0x2af8eb}))if(!_0x2e0f18||0x1!=_0x5d2971||0x1!=_0x17837c)return!0x1;return!0x0;}class vt extends _0x3be5df{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1efd80=this['editor']['plugins']['get']('TrackChangesEditing');_0x1efd80['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1efd80['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1efd80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1efd80['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1efd80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1efd80['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1305bb,_0x4762fd){const _0x102d63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2343bb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x93a0c2=_0x4762fd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xa7593a=_0x2343bb['getColumnGroupElement'](_0x93a0c2);let _0x2de6d1=_0xa7593a?_0x2343bb['getTableColumnsWidths'](_0xa7593a):null,_0x2de996=_0x93a0c2['getAttribute']('tableWidth')||null;const _0x433d69=_0x4762fd['tableWidth']||_0x2de996,_0x37f24f=_0x4762fd['columnWidths']||_0x2de6d1,_0x2cef20=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d447b of _0x102d63['getSuggestions']()){const _0x2d8d57=_0x4d447b['getContainedElement']();if('resizeTable'===_0x4d447b['subType']&&_0x2d8d57===_0x93a0c2){_0x4d447b['author']!==_0x2cef20&&_0x4d447b['discard']();const _0xc0f520=_0x4d447b['data']['commandParams'];_0x2de996=_0xc0f520[0x0]['tableWidth'],_0x2de6d1=_0xc0f520[0x0]['columnWidths'];break;}}_0x1305bb({'table':_0x93a0c2,'tableWidth':_0x433d69,'columnWidths':_0x37f24f}),_0x102d63['markBlockFormat'](_0x93a0c2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2de996,'columnWidths':_0x2de6d1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1d7781){if('formatBlock'!=_0x1d7781['type']&&'formatInline'!=_0x1d7781['type'])return;const {data:_0x732280}=_0x1d7781;if(_0x732280&&'resizeTable'===_0x732280['formatGroupId']){const _0x1f533d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1f533d)};}}}class _t extends _0x3be5df{['afterInit'](){const _0x1c6bfa=this['editor'];_0x1c6bfa['plugins']['has']('Template')&&_0x1c6bfa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x3be5df{['afterInit'](){const _0x172a15=this['editor'];if(!_0x172a15['commands']['get']('insertTableOfContents'))return;_0x172a15['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x57254c=_0x172a15['plugins']['get']('TrackChangesEditing'),_0x216522=_0x172a15['locale'];_0x57254c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a7f04=>o(_0x216522,'ELEMENT_TABLE_OF_CONTENTS',_0x2a7f04));}}class Dt extends _0x3be5df{['afterInit'](){const _0xe7e1a8=this['editor'];if(!_0xe7e1a8['plugins']['has']('Title'))return;const _0x17b426=_0xe7e1a8['plugins']['get']('TrackChangesEditing');_0x17b426['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe7e1a8['locale'],'ELEMENT_TITLE')),_0xe7e1a8['model']['document']['registerPostFixer'](_0x289fa0=>{let _0x1712ab=!0x1;const _0x43f55e=Array['from'](_0xe7e1a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32fd82,data:_0x489ab3}of _0x43f55e){const {group:_0x5f5401}=_0x17b426['_splitMarkerName'](_0x32fd82);if('suggestion'!==_0x5f5401||!_0x489ab3['newRange'])continue;const _0x56eed3=_0x489ab3['newRange'],_0x46be1f=_0x56eed3['end']['nodeBefore'];if(!_0x46be1f||!_0x46be1f['is']('element','title-content'))continue;if(!_0x56eed3['start']['isTouching'](_0x56eed3['end']))continue;const _0xaa2bce=_0xe7e1a8['model']['schema']['getNearestSelectionRange'](_0x56eed3['end'],'forward');if(_0xaa2bce&&_0xaa2bce['isCollapsed']){const _0x3bab97=_0x289fa0['createRange'](_0x56eed3['start'],_0xaa2bce['start']);_0x3bab97['isEqual'](_0x56eed3)||(_0x289fa0['updateMarker'](_0x32fd82,{'range':_0x3bab97}),_0x1712ab=!0x0);}_0x1712ab||(_0x289fa0['removeMarker'](_0x32fd82),_0x1712ab=!0x0);}return _0x1712ab;});}}class Nt extends _0x3be5df{['afterInit'](){const _0x4f6e97=this['editor'],_0x223f5f=_0x4f6e97['plugins']['get']('TrackChangesEditing');_0x4f6e97['plugins']['has']('UndoEditing')&&(_0x223f5f['enableCommand']('undo'),_0x223f5f['enableCommand']('redo'));}}class Mt extends _0x3be5df{static get['requires'](){return[jt];}['afterInit'](){const _0x154eec=this['editor'];if(!_0x154eec['plugins']['has']('TableCaptionEditing'))return;_0x154eec['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x3be5df{['tableProperties'];['tableCellProperties'];constructor(_0x1e9826){super(_0x1e9826),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 _0x122e11=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3b3884 of this['tableProperties'])_0x122e11['enableCommand'](_0x3b3884,(_0x29db24,_0x3e4519)=>{const _0x205117=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3b3884,[_0x205117],this['tableProperties'],'tableProperties',_0x29db24,_0x3e4519);});_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x122e11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x58c0fc,_0x41e29b)=>this['handleDiscardAction'](this['tableProperties'],_0x58c0fc,_0x41e29b)),_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1a590a of this['tableCellProperties'])_0x122e11['enableCommand'](_0x1a590a,(_0x4d355b,_0x53f730)=>{const _0x31af58=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1a590a,_0x31af58,this['tableCellProperties'],'tableCellProperties',_0x4d355b,_0x53f730);});_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x122e11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3b8aad,_0x1e8257)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3b8aad,_0x1e8257)),_0x122e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x122e11['descriptionFactory']['registerDescriptionCallback'](_0x3e6431=>this['handleSuggestionDescription'](_0x3e6431));}['_handlePropertyChange'](_0x43440e,_0x1356b4,_0x45ce4d,_0x2c06ce,_0x27f3fc,_0x31628c){const _0x5f1f39=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31628c['batch'],()=>{for(const _0x4fb52b of _0x1356b4){if(this['_getSuggestion'](_0x4fb52b,_0x2c06ce))_0x27f3fc(_0x31628c);else{const _0xc3089d={};for(const _0x58c75f of _0x45ce4d){const _0x3517f6=_0x4fb52b['getAttribute'](_0x58c75f);void 0x0!==_0x3517f6&&(_0xc3089d[_0x58c75f]=_0x3517f6);}_0x27f3fc(_0x31628c),_0x5f1f39['markBlockFormat'](_0x4fb52b,{'commandParams':[_0xc3089d]},[],_0x2c06ce);}}});}['handleDiscardAction'](_0x15cfd9,_0x4f36be,_0x85b130){const _0x3e669a=_0x4f36be[0x0]['start']['nodeAfter'],_0x53ee40=_0x85b130['commandParams'][0x0];this['editor']['model']['change'](_0x561217=>{for(const _0x4cda4d of _0x15cfd9)void 0x0!==_0x53ee40[_0x4cda4d]?_0x561217['setAttribute'](_0x4cda4d,_0x53ee40[_0x4cda4d],_0x3e669a):_0x561217['removeAttribute'](_0x4cda4d,_0x3e669a);});}['handleSuggestionDescription'](_0x44347d){if(_0x44347d['data'])switch(_0x44347d['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'](_0x14cff2,_0x3f210e){const _0x112f36=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x323b10 of _0x112f36['getSuggestions']({'skipNotAttached':!0x0})){const _0x22328c=_0x323b10['getContainedElement']();if(_0x323b10['subType']===_0x3f210e&&_0x22328c===_0x14cff2)return _0x323b10;}return null;}}const m='$elementName';class p extends _0x3be5df{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3c67fa,_0x4a2131,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x4aa4ef){function _0x34851f(_0x3c5cc8){return _0x3c5cc8['map'](_0x9100b6=>String['fromCharCode'](_0x9100b6))['join']('');}super(_0x4aa4ef),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5b721a,_0x582a82,_0x2ecf14,_0x2790b4)=>{this['_model']['change'](()=>{for(const _0x15c09a of[..._0x2790b4,..._0x2ecf14])this['_model']['markers']['has'](_0x15c09a)&&_0x4aa4ef['editing']['reconvertMarker'](_0x15c09a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4aa4ef['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(),_0x4aa4ef['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4aa4ef['config']['get']('trackChanges.trackFormatChanges'),_0x4aa4ef['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4aa4ef['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4aa4ef,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x34851f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x34851f([0x34,0x30,0x34,0x38,0x31,0x30,0x34,0x36]);}['init'](){const _0x137c6f=this['editor'],_0x11b2f3=(_0x580586,_0xb9db58)=>{if('attribute'!=_0x580586)return'ck-suggestion-marker-'+_0x580586;const _0xaf8acc=_0xb9db58['split']('|')[0x0];return this['_isBlockAttribute'](_0xaf8acc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x137c6f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2c2b4b=>{const {id:_0x50eb95,type:_0x2a965f,subType:_0x3a5814}=this['_splitMarkerName'](_0x2c2b4b['markerName']),_0x3415a8=['ck-suggestion-marker',_0x11b2f3(_0x2a965f,_0x3a5814)];let _0x2155c2=0xbb8;return this['activeMarkers']['includes'](_0x2c2b4b['markerName'])&&(_0x3415a8['push']('ck-suggestion-marker--active'),_0x2155c2=0xbc2),'deletion'==_0x2a965f&&(_0x2155c2+=0x5),{'classes':_0x3415a8,'attributes':{'data-suggestion':_0x50eb95},'priority':_0x2155c2};}}),_0x137c6f['conversion']['for']('dataDowncast')['add'](_0x32a72e=>{_0x32a72e['on']('addMarker:suggestion',(_0x4f6ae9,_0x129bc2,_0x2e9fa1)=>{if(!_0x2e9fa1['options']['showSuggestionHighlights'])return;const _0x37ed44=_0x129bc2['item'];if(!_0x37ed44)return;const _0x5694ed=_0x2e9fa1['mapper']['toViewElement'](_0x37ed44);_0x137c6f['model']['schema']['isObject'](_0x37ed44)&&_0x5694ed&&!_0x5694ed['getCustomProperty']('widget')&&_0x5694ed['is']('containerElement')&&_0x47dbfc(_0x5694ed,_0x2e9fa1['writer']);},{'priority':'high'});}),_0x137c6f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x45ad5c,_0x1d0437)=>{if(!_0x1d0437['options']['showSuggestionHighlights'])return null;const {type:_0x3973f3,subType:_0x5c9403}=this['_splitMarkerName'](_0x45ad5c['markerName']);return{'classes':['ck-suggestion-marker',_0x11b2f3(_0x3973f3,_0x5c9403)],'priority':0xbb8};}});const _0x2116c1=({showActiveMarkers:_0x5372b7=!0x0,isAttributeSuggestion:_0x3c9f41=!0x1}={})=>(_0x1fffcb,_0x51205e,_0x59bed3)=>{if(!_0x51205e['item'])return;const {id:_0x4c70c3}=this['_splitMarkerName'](_0x51205e['markerName']);if(_0x3c9f41){const _0x40c2af=this['_suggestions']['get'](_0x4c70c3),_0x53849d=this['_getAttributeKey'](_0x40c2af);if(!this['_isBlockAttribute'](_0x53849d))return;}if(_0x51205e['item']['is']('selection'))return void _0x59bed3['consumable']['consume'](_0x51205e['item'],_0x1fffcb['name']);const _0x1479f9=_0x59bed3['mapper']['toViewElement'](_0x51205e['item']);if(_0x51205e['item']['is']('element')&&_0x137c6f['model']['schema']['isBlock'](_0x51205e['item'])&&!_0x1479f9['getCustomProperty']('addHighlight')){_0x59bed3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1479f9),_0x59bed3['writer']['setAttribute']('data-suggestion',_0x4c70c3,_0x1479f9),_0x59bed3['mapper']['bindElementToMarker'](_0x1479f9,_0x51205e['markerName']),_0x5372b7&&(this['activeMarkers']['includes'](_0x51205e['markerName'])?_0x59bed3['writer']['addClass']('ck-suggestion-marker--active',_0x1479f9):_0x59bed3['writer']['removeClass']('ck-suggestion-marker--active',_0x1479f9));for(const _0xb52727 of _0x137c6f['model']['createRangeIn'](_0x51205e['item'])['getItems']())_0x59bed3['consumable']['consume'](_0xb52727,_0x1fffcb['name']);_0x59bed3['consumable']['consume'](_0x51205e['item'],_0x1fffcb['name']);}};_0x137c6f['conversion']['for']('dataDowncast')['add'](_0x6d8ca7=>{_0x6d8ca7['on']('addMarker:suggestion:formatBlock',(_0x418470,_0xa77ae6,_0xd9de4c)=>{_0xd9de4c['options']['showSuggestionHighlights']&&_0x2116c1({'showActiveMarkers':!0x1})(_0x418470,_0xa77ae6,_0xd9de4c);},{'priority':'highest'});}),_0x137c6f['conversion']['for']('dataDowncast')['add'](_0x1bd5b7=>{_0x1bd5b7['on']('addMarker:suggestion:attribute',(_0x3ac161,_0x3725f9,_0x22ce12)=>{_0x22ce12['options']['showSuggestionHighlights']&&_0x2116c1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ac161,_0x3725f9,_0x22ce12);},{'priority':'highest'});}),_0x137c6f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27f54e,_0x12e5ae)=>_0x12e5ae['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x27f54e['substr'](0xb)}}),_0x137c6f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41e974,{writer:_0x83c287})=>{let _0x25a809='suggestion:'+_0x41e974['getAttribute']('suggestion-type')+':'+_0x41e974['getAttribute']('id');return _0x41e974['getAttribute']('marker-count')&&(_0x25a809+=':'+_0x41e974['getAttribute']('marker-count')),_0x83c287['createElement']('$marker',{'data-name':_0x25a809});}}),_0x137c6f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x137c6f['conversion']['for']('editingDowncast')['add'](_0x4e08b5=>{_0x4e08b5['on']('addMarker:suggestion:formatBlock',_0x2116c1(),{'priority':'high'});}),_0x137c6f['conversion']['for']('editingDowncast')['add'](_0x38e5fe=>{_0x38e5fe['on']('addMarker:suggestion:attribute',_0x2116c1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x137c6f['conversion']['for']('editingDowncast')['add'](_0x2e776d=>{_0x2e776d['on']('removeMarker:suggestion:formatBlock',(_0x1d0643,_0x4984c8,_0x2bf06a)=>{const _0x63d177=_0x2bf06a['mapper']['markerNameToElements'](_0x4984c8['markerName']);if(_0x63d177){for(const _0x317c09 of _0x63d177)_0x317c09['getCustomProperty']('addHighlight')||(_0x2bf06a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x317c09),_0x2bf06a['writer']['removeAttribute']('data-suggestion',_0x317c09),_0x2bf06a['mapper']['unbindElementFromMarkerName'](_0x317c09,_0x4984c8['markerName']));}},{'priority':'high'});}),_0x137c6f['conversion']['for']('editingDowncast')['add'](_0x3b912e=>{_0x3b912e['on']('removeMarker:suggestion:attribute',(_0x16f28b,_0x6575db,_0x11d1fd)=>{const _0x4e5a49=_0x11d1fd['mapper']['markerNameToElements'](_0x6575db['markerName']);if(!_0x4e5a49)return;const {id:_0x3853c5}=this['_splitMarkerName'](_0x6575db['markerName']),_0x39462f=this['_suggestions']['get'](_0x3853c5),_0x2a339a=this['_getAttributeKey'](_0x39462f);if(this['_isBlockAttribute'](_0x2a339a)){for(const _0x36b03c of _0x4e5a49)_0x36b03c['getCustomProperty']('addHighlight')||(_0x11d1fd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x36b03c),_0x11d1fd['writer']['removeAttribute']('data-suggestion',_0x36b03c),_0x11d1fd['mapper']['unbindElementFromMarkerName'](_0x36b03c,_0x6575db['markerName']));}},{'priority':'high'});}),_0x137c6f['model']['document']['registerPostFixer'](_0x44d854=>{let _0x187c60=!0x1;const _0x49eb1d=Array['from'](_0x137c6f['model']['document']['differ']['getChangedMarkers']()),_0xfe521e=new Set();for(const {name:_0xc1fee4,data:_0x45fbb2}of _0x49eb1d){const {group:_0x5ee8dd,type:_0x1078be,subType:_0x5081d7,id:_0x30a8bf}=this['_splitMarkerName'](_0xc1fee4);if('suggestion'!==_0x5ee8dd)continue;const _0x1bfc7c=this['_suggestions']['get'](_0x30a8bf);if(null!=_0x45fbb2['newRange']){'formatInline'==_0x1078be&&(_0x187c60=_0x187c60||Et(_0x45fbb2['newRange'],_0xc1fee4,_0x44d854,_0x137c6f['model']['schema']));const _0x3b6bc4='attribute'==_0x1078be&&this['_isBlockAttribute'](_0x5081d7['split']('|')[0x0]);if(_0x45fbb2['newRange']['isCollapsed']||'$graveyard'==_0x45fbb2['newRange']['root']['rootName']||'formatBlock'==_0x1078be&&!Ut(_0x45fbb2['newRange'])||_0x3b6bc4&&!Ut(_0x45fbb2['newRange'])||'deletion'==_0x1078be&&!(!Tt(_0x33a68d=_0x45fbb2['newRange'])&&!function(_0x4d2f01){return _0x4d2f01['start']['parent']==_0x4d2f01['end']['nodeBefore']&&_0x4d2f01['start']['isAtEnd'];}(_0x33a68d)))_0x44d854['removeMarker'](_0xc1fee4),_0x187c60=!0x0;else{if(!_0x1bfc7c||!_0x1bfc7c['isInContent'])continue;_0xfe521e['add'](_0x1bfc7c);}}}var _0x33a68d;return _0xfe521e['size']>0x0&&(_0x187c60=!!this['_joinWithAdjacentSuggestions'](_0xfe521e)||_0x187c60),_0x187c60;}),_0x137c6f['model']['document']['registerPostFixer'](_0x58af55=>{let _0x332d14=!0x1;for(const _0x2bc5dd of _0x137c6f['model']['document']['differ']['getChanges']())if('insert'==_0x2bc5dd['type'])for(const _0x2981cb of this['_suggestions']['values']()){if(_0x2981cb['isMultiRange']||!_0x2981cb['isInContent'])continue;const _0xb43d0a='formatBlock'==_0x2981cb['type'],_0x17c64f=this['_getAttributeKey'](_0x2981cb),_0x392d82=_0x17c64f&&this['_isBlockAttribute'](_0x17c64f);if(!_0xb43d0a&&!_0x392d82)continue;const _0x4d5c57=_0x2981cb['getFirstRange']();if(_0x4d5c57['start']['parent']!=_0x4d5c57['end']['parent']&&!_0x4d5c57['end']['isAtEnd']){const _0x46c554=_0x137c6f['model']['createPositionAt'](_0x4d5c57['start']['nodeAfter'],'end'),_0x5123e7=_0x137c6f['model']['createRange'](_0x4d5c57['start'],_0x46c554);_0x58af55['updateMarker'](_0x2981cb['getFirstMarker'](),{'range':_0x5123e7}),_0x332d14=!0x0;}}return _0x332d14;}),_0x137c6f['model']['document']['registerPostFixer'](_0x35b1ca=>this['_processAttributeChanges'](_0x35b1ca)),_0x137c6f['model']['document']['registerPostFixer'](_0x2d9b92=>!_0x2d9b92['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2d9b92)),_0x137c6f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x137c6f['model']['document']['on']('change:data',(_0x90a016,_0x4d05d5)=>{if(!_0x4d05d5['isLocal']||_0x4d05d5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ba41e=_0x137c6f['model']['document']['differ']['getChanges']();if(0x0==_0x4ba41e['length'])return;const _0x545ddf=[],_0x4f80ef=_0x4ba41e['filter'](_0x2a5de1=>'attribute'==_0x2a5de1['type']),_0x2ef3cf=_0x4ba41e['filter'](_0x13943a=>'insert'==_0x13943a['type']&&'$text'!=_0x13943a['name']),_0x4c0b72=_0x4ba41e['filter'](_0x36b534=>'remove'==_0x36b534['type']&&'$text'!=_0x36b534['name']);for(const _0x453654 of _0x4f80ef)this['_isRegisteredAttribute'](_0x453654['attributeKey'])&&_0x545ddf['push']({'key':_0x453654['attributeKey'],'newValue':_0x453654['attributeNewValue'],'oldValue':_0x453654['attributeOldValue'],'range':Ot(_0x453654['range'],_0x137c6f['model'])});for(const _0x7370a0 of _0x2ef3cf){const _0x167ce0=_0x4c0b72['find'](_0x3443ad=>_0x3443ad['_element']===_0x7370a0['_element']);if(_0x167ce0){const _0x366803=Ft(_0x7370a0['position']['nodeAfter'],_0x137c6f['model']);_0x167ce0['name']!==_0x7370a0['name']&&_0x545ddf['push']({'key':m,'newValue':_0x7370a0['name'],'oldValue':_0x167ce0['name'],'range':_0x366803});for(const [_0x5d1316,_0x494d81]of _0x167ce0['attributes']){if(!this['_isRegisteredAttribute'](_0x5d1316))continue;const _0x468451=_0x7370a0['attributes']['get'](_0x5d1316);_0x494d81!==_0x468451&&_0x545ddf['push']({'key':_0x5d1316,'newValue':_0x468451,'oldValue':_0x494d81,'range':_0x366803});}for(const [_0x2cf2a2,_0x51c068]of _0x7370a0['attributes'])this['_isRegisteredAttribute'](_0x2cf2a2)&&(_0x167ce0['attributes']['has'](_0x2cf2a2)||_0x545ddf['push']({'key':_0x2cf2a2,'newValue':_0x51c068,'oldValue':null,'range':_0x366803}));}}0x0!=_0x545ddf['length']&&_0x137c6f['model']['enqueueChange'](_0x4d05d5,_0xbaa7df=>{const _0x10fbbd=_0x3035a1();for(const {range:_0x4b01e7,key:_0x2efded,oldValue:_0x334ce1,newValue:_0x3a3edf}of _0x545ddf)this['markAttributeChange'](_0x4b01e7,_0x2efded,_0x334ce1,_0x3a3edf,{'groupId':_0x10fbbd});this['_reduceExistingSuggestions'](_0xbaa7df,_0x545ddf);});},{'priority':'lowest'}),_0x137c6f['model']['markers']['on']('update:suggestion',(_0x2fa823,_0x1f81a9,_0x1b7673)=>{if(null==_0x1b7673){const {id:_0x2f263f}=this['_splitMarkerName'](_0x1f81a9['name']),_0x2cf0a0=this['_suggestions']['get'](_0x2f263f);_0x2cf0a0&&_0x2cf0a0['addMarkerName'](_0x1f81a9['name']);}}),_0x137c6f['model']['document']['on']('change:data',()=>{const _0x16db61=Array['from'](_0x137c6f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x11a33a=>'suggestion'===this['_splitMarkerName'](_0x11a33a['name'])['group']);if(0x0===_0x16db61['length'])return;_0x16db61['sort']((_0x3fa6e0,_0x555e04)=>{const _0x1c9d81=_0x3fa6e0['data']['oldRange'],_0x5c2138=_0x555e04['data']['oldRange'];return null===_0x1c9d81&&null===_0x5c2138?0x0:null===_0x1c9d81&&null!==_0x5c2138?-0x1:null!==_0x1c9d81&&null===_0x5c2138?0x1:_0x1c9d81['start']['isBefore'](_0x5c2138['start'])?-0x1:0x1;});const _0x222769=new Set(),_0x955e62=new Set();for(const {name:_0x43ea6b,data:_0x57b10a}of _0x16db61){const {id:_0x3ebbf3}=this['_splitMarkerName'](_0x43ea6b);if(null===_0x57b10a['oldRange']){const _0x11e1f0=this['_handleNewSuggestionMarker'](_0x43ea6b);_0x955e62['add'](_0x11e1f0);}else{const _0x11d0ad=this['_suggestions']['get'](_0x3ebbf3);null!==_0x57b10a['newRange']||_0x11d0ad['isInContent']?(_0x222769['add'](_0x11d0ad['head']),_0x955e62['add'](_0x11d0ad)):this['_removeSuggestion'](_0x11d0ad);}}_0x955e62['size']>0x0&&this['_refreshSuggestionsChain'](_0x955e62);for(const _0x12aa56 of _0x222769)this['fire']('suggestionChanged',_0x12aa56);}),_0x137c6f['model']['on']('applyOperation',(_0x7af0a0,_0x2aa642)=>{const _0x3f33ce=_0x2aa642[0x0];if(!this['_suggestions']['size'])return;if(!_0x3f33ce['isDocumentOperation'])return;if(_0x3f33ce['batch']['isUndo']||!_0x3f33ce['batch']['isLocal'])return;let _0x396114,_0x245eaa;switch(_0x3f33ce['type']){case'insert':_0x396114=_0x137c6f['model']['createPositionAt'](_0x3f33ce['position']),_0x245eaa=_0x396114['getShiftedBy'](_0x3f33ce['howMany']);break;case'split':_0x396114=_0x137c6f['model']['createPositionAt'](_0x3f33ce['splitPosition']),_0x245eaa=_0x137c6f['model']['createPositionAt'](_0x3f33ce['moveTargetPosition']);break;case'move':_0x396114=_0x137c6f['model']['createPositionAt'](_0x3f33ce['targetPosition']),_0x245eaa=_0x396114['getShiftedBy'](_0x3f33ce['howMany']);break;default:return;}const _0x2c9863=_0x137c6f['model']['createRange'](_0x396114,_0x245eaa);_0x137c6f['model']['change'](()=>{for(const {suggestion:_0x28e5ca,meta:_0x3dce1d}of this['_findSuggestions'](_0x2c9863)){if(_0x28e5ca['isMultiRange'])continue;if('formatInline'==_0x28e5ca['type'])continue;const _0x41515f=this['_getAttributeKey'](_0x28e5ca);if(_0x41515f&&this['_isBlockAttribute'](_0x41515f)&&'split'!=_0x3f33ce['type'])continue;const _0xc088ca=_0x28e5ca['data']&&_0x28e5ca['data']['multipleBlocks'];('formatBlock'!=_0x28e5ca['type']||'split'==_0x3f33ce['type']&&!_0xc088ca)&&(_0x3dce1d['containsRangeInObject']||'insertion'==_0x28e5ca['type']&&_0x3dce1d['isOwn']||_0x28e5ca['getFirstRange']()['containsRange'](_0x2c9863)&&this['_breakSuggestionMarker'](_0x28e5ca,_0x396114,_0x245eaa));}});},{'priority':'lowest'}),_0x137c6f['model']['on']('deleteContent',(_0x3f4690,_0x3369ae)=>{const _0xa04172=_0x3369ae[0x0],_0x4f7d20=_0x3369ae[0x1];if(_0x4f7d20&&_0x4f7d20['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xa04172['isCollapsed'])return;const _0x1acb70=_0x137c6f['model']['schema'],{start:_0x4e7613,end:_0x2c2198}=_0xa04172['getFirstRange'](),_0x268008=_0x4e7613['nodeAfter']&&_0x1acb70['isLimit'](_0x4e7613['nodeAfter'])?null:_0x1acb70['getNearestSelectionRange'](_0x4e7613,'forward'),_0xc6946f=_0x2c2198['nodeBefore']&&_0x1acb70['isLimit'](_0x2c2198['nodeBefore'])?null:_0x1acb70['getNearestSelectionRange'](_0x2c2198,'backward'),_0xf9c616=_0x137c6f['model']['createRange'](_0x268008?_0x268008['start']:_0x4e7613,_0xc6946f?_0xc6946f['end']:_0x2c2198);_0x137c6f['model']['change'](_0x258e6c=>{this['markDeletion'](_0xf9c616);const _0x273b48=_0x137c6f['model']['schema']['getNearestSelectionRange'](_0xf9c616['start']);_0xa04172['is']('documentSelection')?_0x258e6c['setSelection'](_0x273b48):_0xa04172['setTo'](_0x273b48);}),_0x3f4690['stop']();},{'priority':_0x3b4600['normal']+0xa}),_0x137c6f['model']['on']('insertContent',(_0x19d87f,_0x2badae)=>{const _0x34b9cf=_0x2badae[_0x2badae['length']-0x1];_0x34b9cf&&_0x34b9cf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x137c6f['model']['change'](()=>{let _0x4d2656=_0x137c6f['model']['insertContent'](_0x2badae[0x0],_0x2badae[0x1],_0x2badae[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d2656)return;_0x19d87f['return']=_0x4d2656['clone']();const _0x478326=_0x4d2656['end']['nodeBefore'],_0x45b298=_0x137c6f['model']['schema'];_0x478326&&_0x45b298['isBlock'](_0x478326)&&!_0x45b298['isObject'](_0x478326)&&(_0x4d2656=_0x137c6f['model']['createRange'](_0x4d2656['start'],_0x137c6f['model']['createPositionAt'](_0x478326,'end'))),this['markInsertion'](_0x4d2656);}),_0x19d87f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xd30dc=new $(_0x137c6f,this['_suggestions']);_0x137c6f['commands']['add']('acceptSuggestion',_0xd30dc),this['enableCommand']('acceptSuggestion');const _0x248d57=new B(_0x137c6f,this['_suggestions']);_0x137c6f['commands']['add']('discardSuggestion',_0x248d57),this['enableCommand']('discardSuggestion'),_0x137c6f['commands']['add']('acceptAllSuggestions',new x(_0x137c6f,_0xd30dc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x137c6f['commands']['add']('discardAllSuggestions',new x(_0x137c6f,_0x248d57,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x137c6f['commands']['add']('acceptSelectedSuggestions',new R(_0x137c6f,_0xd30dc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x137c6f['commands']['add']('discardSelectedSuggestions',new R(_0x137c6f,_0x248d57,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x57c2b4=_0x137c6f['plugins']['get']('CommentsRepository');this['listenTo'](_0x57c2b4,'addComment',(_0x51715c,{threadId:_0x2f69e5})=>{const _0x300527=this['_suggestions']['get'](_0x2f69e5);_0x300527&&_0x300527['commentThread']&&0x1===_0x300527['commentThread']['length']&&this['_updateSuggestionData'](_0x2f69e5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x57c2b4,'removeComment',(_0x162fb9,{threadId:_0xa6e411})=>{const _0x291fb4=this['_suggestions']['get'](_0xa6e411);_0x291fb4&&_0x291fb4['commentThread']&&!_0x291fb4['commentThread']['length']&&this['_updateSuggestionData'](_0xa6e411,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x21af0f){if(this['_adapter'])throw new _0x357ebd('track-changes-adapter-already-set',this);this['_adapter']=_0x21af0f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5f237c=!0x1,toJSON:_0x34d124=!0x1}={}){const _0x3eb8a4=[];for(const _0x1ca6d5 of this['_suggestions']['values']())_0x5f237c&&!_0x1ca6d5['isInContent']||_0x3eb8a4['push'](_0x1ca6d5);return _0x34d124?_0x3eb8a4['map'](_0x55199a=>_0x55199a['toJSON']()):_0x3eb8a4;}['getSuggestion'](_0x3f0012){const _0x371768=this['_suggestions']['get'](_0x3f0012);if(!_0x371768)throw new _0x357ebd('track-changes-suggestion-not-found',this);return _0x371768;}['hasSuggestion'](_0x2646c7){return this['_suggestions']['has'](_0x2646c7);}['addSuggestionData'](_0x4236c7){const {authorId:_0x23cfb9,id:_0x4e1018,attributes:_0x5b1825}=_0x4236c7,[_0x12e687,_0xae1260]=_0x4236c7['type']['split'](':'),_0x233688=this['_suggestions']['get'](_0x4e1018)||this['_createSuggestion'](_0x12e687,_0xae1260,_0x4e1018,_0x23cfb9,_0x5b1825);if(this['_addThreadToSuggestion'](_0x233688),this['_checkSuggestionCorrectness'](_0x233688,_0x12e687,_0xae1260||null,_0x23cfb9),_0x233688['createdAt']=_0x4236c7['createdAt'],_0x233688['_isDataLoaded']=!0x0,_0x5b1825&&_0x5b1825['@external']){const _0x161f68=_0x5b1825['@external'],_0x58bb45=this['_getExternalAuthor'](_0x161f68['authorName']);_0x233688['authoredAt']=_0x161f68['createdAt'],_0x233688['author']=_0x58bb45,_0x233688['isExternal']=!0x0;}else _0x233688['authoredAt']=_0x4236c7['createdAt'];switch(_0x4236c7['data']&&(_0x233688['data']=_0x4236c7['data']),_0x4236c7['attributes']&&(_0x233688['attributes']=_0x4236c7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x233688['_saved']=!0x0),this['_suggestionState']['get'](_0x233688)){case'notReady':this['_suggestionState']['set'](_0x233688,'dataReady');break;case'markerReady':_0x233688['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x233688])),this['_refreshSuggestionsChain'](new Set([_0x233688])),this['_suggestionState']['set'](_0x233688,'ready'),this['fire']('suggestionLoaded',_0x233688)):this['_suggestionState']['set'](_0x233688,'removed');}return _0x233688;}['acceptSuggestion'](_0x1374e9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x11cdfc of _0x1374e9['getAllAdjacentSuggestions']())_0x11cdfc['accept']();});});}['discardSuggestion'](_0x59fa39){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xfca6a5 of _0x59fa39['getAllAdjacentSuggestions']())_0xfca6a5['discard']();});});}['enableCommand'](_0x20f847,_0x317ab8){const _0x47376c=this['editor']['commands']['get'](_0x20f847);if(!_0x47376c)throw new _0x357ebd('track-changes-command-not-found',this,{'commandName':_0x20f847});if(this['_enabledCommands']['has'](_0x47376c))throw new _0x357ebd('track-changes-enable-command-twice',this,{'commandName':_0x20f847});this['_enabledCommands']['add'](_0x47376c),_0x317ab8&&_0x47376c['on']('execute',(_0x49388d,_0x7facfa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x7facfa['length']>0x0&&_0x7facfa[_0x7facfa['length']-0x1]&&_0x7facfa[_0x7facfa['length']-0x1]['forceDefaultExecution']?_0x7facfa['pop']():(_0x49388d['return']=_0x317ab8((..._0x2329f9)=>_0x47376c['execute'](..._0x2329f9,{'forceDefaultExecution':!0x0}),..._0x7facfa),_0x49388d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x417e4e){let _0x5e0bb4,_0x4ee89c;const _0x2d9295=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5e0bb4=_0x417e4e();}catch(_0x210415){_0x4ee89c=_0x210415;}return _0x2d9295||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4ee89c&&_0x357ebd['rethrowUnexpectedError'](_0x4ee89c,this),_0x5e0bb4;}['markInsertion'](_0xf1d53e,_0x8ee97=null,_0x442e61={}){if(_0xf1d53e['isCollapsed'])return null;const _0x10d404=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xe87b93,meta:_0x5be9f7}of this['_findSuggestions'](_0xf1d53e,'insertion'))if(_0x5be9f7['isOwn']){if(!_0x5be9f7['isNextTo']){if(_0x5be9f7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0xe87b93,_0x442e61))continue;return _0xe87b93;}if(Lt(_0xe87b93,_0x442e61))return _0xe87b93;this['_breakSuggestionMarker'](_0xe87b93,_0xf1d53e['start'],_0xf1d53e['end']);break;}if(_0x8ee97==_0xe87b93['subType']&&Lt(_0xe87b93,_0x442e61)){const _0x24fb07=_0xe87b93['getFirstRange']();return _0x24fb07['start']['isEqual'](_0xf1d53e['end'])?this['_setSuggestionRange'](_0xe87b93,this['_model']['createRange'](_0xf1d53e['start'],_0x24fb07['end'])):this['_setSuggestionRange'](_0xe87b93,this['_model']['createRange'](_0x24fb07['start'],_0xf1d53e['end'])),_0xe87b93;}}const _0x89bc6=_0x3035a1(),_0x43868b=_0x10d404['id'],_0x4bc781=_0x8ee97?'insertion:'+_0x8ee97:'insertion',_0x6e94f8=this['_setSuggestionData']({'id':_0x89bc6,'type':_0x4bc781,'createdAt':new Date(),'authorId':_0x43868b,'attributes':_0x442e61});return this['_addSuggestionMarker'](_0x4bc781,_0x89bc6,_0x43868b,_0xf1d53e),_0x6e94f8;}['markMultiRangeInsertion'](_0x4864b9,_0x4ffb4e='multi',_0x4ea507={}){const _0x431c7a=this['editor']['plugins']['get']('Users')['me'],_0x5b896d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4ffb4e,'join');for(const _0x10858a of this['getSuggestions']())if(_0x10858a['author']['id']==_0x431c7a['id']&&'insertion'==_0x10858a['type']&&_0x10858a['subType']==_0x4ffb4e&&Lt(_0x10858a,_0x4ea507)&&(_0x5b896d(_0x10858a['getRanges'](),_0x4864b9)||_0x5b896d(_0x4864b9,_0x10858a['getRanges']()))){for(const _0x275e58 of _0x4864b9)_0x10858a['addRange'](_0x275e58);return _0x10858a;}for(const {suggestion:_0x2a81f7,meta:_0x111fca}of this['_findSuggestions'](_0x4864b9,'insertion')){if(!_0x111fca['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x111fca['containsRangeInObject'])continue;if(!Lt(_0x2a81f7,_0x4ea507))continue;let _0x6835f0=!0x0;for(const _0x1f392a of _0x2a81f7['getRanges']())for(const _0x93bfe8 of _0x4864b9)if(!_0x1f392a['containsRange'](_0x93bfe8)){_0x6835f0=!0x1;break;}if(_0x6835f0)return _0x2a81f7;}const _0x1c9384=_0x3035a1(),_0x22fe5d=_0x431c7a['id'],_0x2bab62='insertion:'+_0x4ffb4e,_0x86a2a=this['_setSuggestionData']({'id':_0x1c9384,'type':_0x2bab62,'createdAt':new Date(),'authorId':_0x22fe5d,'attributes':_0x4ea507});for(const _0x2886fe of _0x4864b9)this['_addSuggestionMarker'](_0x2bab62,_0x1c9384,_0x22fe5d,_0x2886fe,u['getMultiRangeId']());return _0x86a2a;}['markInlineFormat'](_0x111622,_0x1fd72c,_0x37ea4e=null,_0x1ba837={}){if(_0x37ea4e=_0x37ea4e||Vt(_0x1fd72c),_0x111622['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x594600=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ea4e,'accept');return this['forceDefaultExecution'](()=>_0x594600([_0x111622],_0x1fd72c,_0x1ba837)),null;}const _0x51aa38=this['editor']['plugins']['get']('Users')['me'],_0x2a2299=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2f8cd9,meta:_0x5c25cb}of this['_findSuggestions'](_0x111622,'insertion'))_0x5c25cb['isOwn']&&!_0x5c25cb['isInsideObject']&&_0x2a2299['push'](..._0x2f8cd9['getRanges']());}const _0x90de2f=function(_0x59a177,_0x14b2ca){const _0x234175=[];for(const _0xfa2a08 of _0x14b2ca){const _0xbe9ea1=_0x59a177['getIntersection'](_0xfa2a08);_0xbe9ea1&&_0x234175['push'](_0xbe9ea1);}return _0x234175;}(_0x111622,_0x2a2299),_0x1e1ea5=function(_0x6508ec,_0x4f835e){const _0x3af40c=[_0x6508ec];for(const _0x5d65c5 of _0x4f835e){let _0x2aaec2=0x0;for(;_0x2aaec2<_0x3af40c['length'];){const _0x3f3b32=_0x3af40c[_0x2aaec2]['getDifference'](_0x5d65c5);_0x3af40c['splice'](_0x2aaec2,0x1,..._0x3f3b32),_0x2aaec2+=_0x3f3b32['length'];}}return _0x3af40c;}(_0x111622,_0x2a2299);_0x90de2f['length']&&this['_model']['change'](()=>{for(const _0x53c121 of _0x90de2f){const _0x317e81=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ea4e,'accept');this['forceDefaultExecution'](()=>_0x317e81([_0x53c121],_0x1fd72c,_0x1ba837));}});for(const _0x31fbcd of _0x1e1ea5){let _0x13ee88=null,_0x179c2a=_0x31fbcd['start'],_0x261981=_0x31fbcd['end'];for(const {suggestion:_0xf8731b,meta:_0x31f9be}of this['_findSuggestions'](_0x31fbcd,'formatInline')){if(!_0x31f9be['isOwn'])continue;if(_0xf8731b['subType']!=_0x37ea4e)continue;if(!Lt(_0xf8731b,_0x1ba837))continue;const _0x1c5320=_0xf8731b['getFirstRange']();if(_0x1c5320['containsRange'](_0x31fbcd,!0x0))return null;_0x179c2a=_0x179c2a['isBefore'](_0x1c5320['start'])?_0x179c2a:_0x1c5320['start'],_0x261981=_0x261981['isAfter'](_0x1c5320['end'])?_0x261981:_0x1c5320['end'],_0x13ee88?_0x1c5320['start']['isBefore'](_0x13ee88['getFirstRange']()['start'])?(_0x13ee88['removeMarkers'](),_0x13ee88=_0xf8731b):_0xf8731b['removeMarkers']():_0x13ee88=_0xf8731b;}const _0x4ee0e6=this['_model']['createRange'](_0x179c2a,_0x261981);if(_0x13ee88)this['_setSuggestionRange'](_0x13ee88,_0x4ee0e6);else{const _0x39089f=_0x3035a1(),_0x585b1f=_0x51aa38['id'];this['_setSuggestionData']({'id':_0x39089f,'type':'formatInline:'+_0x37ea4e,'data':_0x1fd72c,'createdAt':new Date(),'authorId':_0x585b1f,'attributes':_0x1ba837}),this['_addSuggestionMarker']('formatInline:'+_0x37ea4e,_0x39089f,_0x585b1f,_0x4ee0e6);}}return null;}['markBlockFormat'](_0x5af6da,_0x30c71d,_0x1b449d=[],_0x4f2ba7=null,_0x1f57b6={}){_0x30c71d['formatGroupId']||(_0x30c71d['formatGroupId']=_0x30c71d['commandName']),_0x30c71d['multipleBlocks']=_0x5af6da['is']('range'),_0x4f2ba7=_0x4f2ba7||Vt(_0x30c71d);const _0x41f7f3=_0x1b449d['map'](_0x2eab24=>Ft(_0x2eab24,this['_model'])),_0x2fade6=_0x5af6da['is']('range')?_0x5af6da:Ft(_0x5af6da,this['_model']);if('never'===this['_trackFormatChanges']){const _0x280336=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f2ba7,'accept');return this['forceDefaultExecution'](()=>_0x280336([_0x2fade6],_0x30c71d,_0x1f57b6)),null;}_0x41f7f3['push'](_0x2fade6);let _0x487a0e=!0x0;for(const _0x16e020 of _0x41f7f3)if(!this['_rangeIsInLocalUserInsertion'](_0x16e020)){_0x487a0e=!0x1;break;}if(_0x487a0e&&'always'!==this['_trackFormatChanges']){const _0x1a8378=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f2ba7,'accept');return this['forceDefaultExecution'](()=>_0x1a8378([_0x2fade6],_0x30c71d,_0x1f57b6)),null;}let _0x5b3e01=null,_0x4909f8=_0x2fade6['start'],_0x543bbb=_0x2fade6['end'];for(const {suggestion:_0x3bbbb0,meta:_0x350fe9}of this['_findSuggestions'](_0x2fade6,'formatBlock')){if(!_0x350fe9['isOwn'])continue;if(_0x350fe9['isNextTo']||_0x350fe9['containsRangeInObject']||_0x350fe9['isInsideObject'])continue;if(_0x3bbbb0['data']['formatGroupId']!=_0x30c71d['formatGroupId'])continue;if(!Lt(_0x3bbbb0,_0x1f57b6))continue;const _0x5167d8=_0x3bbbb0['getFirstRange']();if(_0x3bbbb0['subType']==_0x4f2ba7){if(_0x5167d8['containsRange'](_0x2fade6,!0x0))return null;_0x4909f8=_0x4909f8['isBefore'](_0x5167d8['start'])?_0x4909f8:_0x5167d8['start'],_0x543bbb=_0x543bbb['isAfter'](_0x5167d8['end'])?_0x543bbb:_0x5167d8['end'],_0x5b3e01?_0x5167d8['start']['isBefore'](_0x5b3e01['getFirstRange']()['start'])?(_0x5b3e01['removeMarkers'](),_0x5b3e01=_0x3bbbb0):_0x3bbbb0['removeMarkers']():_0x5b3e01=_0x3bbbb0;}else{const _0x2ea17f=_0x2fade6['getIntersection'](_0x5167d8);this['_cutOutSuggestionMarker'](_0x3bbbb0,_0x2ea17f);}}const _0x253bdc=this['editor']['plugins']['get']('Users')['me'],_0x49b07b=_0x3035a1(),_0x1a9fc1=_0x253bdc['id'];if(_0x5b3e01)return this['_setSuggestionRange'](_0x5b3e01,this['_model']['createRange'](_0x4909f8,_0x543bbb)),_0x5b3e01;{const _0x17f30e=this['_setSuggestionData']({'id':_0x49b07b,'type':'formatBlock:'+_0x4f2ba7,'data':_0x30c71d,'createdAt':new Date(),'authorId':_0x1a9fc1,'attributes':_0x1f57b6});return this['_addSuggestionMarker']('formatBlock:'+_0x4f2ba7,_0x49b07b,_0x1a9fc1,this['_model']['createRange'](_0x4909f8,_0x543bbb)),_0x17f30e;}}['markMultiRangeBlockFormat'](_0x12f957,_0x32cecd,_0x2504a4=[],_0x3f7da8=null,_0x27c28c={}){_0x32cecd['formatGroupId']||(_0x32cecd['formatGroupId']=_0x32cecd['commandName']);const _0x15dba4=_0x12f957[0x0];_0x32cecd['multipleBlocks']=_0x15dba4['is']('range'),_0x3f7da8=_0x3f7da8||Vt(_0x32cecd);const _0x5bf752=_0x2504a4['map'](_0x181abd=>Ft(_0x181abd,this['_model'])),_0x206747=_0x15dba4['is']('range')?_0x12f957:_0x12f957['map'](_0x43dd46=>Ft(_0x43dd46,this['_model']));if('never'===this['_trackFormatChanges']){const _0x51b04f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f7da8,'accept');return this['forceDefaultExecution'](()=>_0x51b04f(_0x206747,_0x32cecd,_0x27c28c)),null;}_0x5bf752['push'](..._0x206747);let _0x31e9e5=!0x0;for(const _0x5a0bb1 of _0x5bf752)if(!this['_rangeIsInLocalUserInsertion'](_0x5a0bb1)){_0x31e9e5=!0x1;break;}if(_0x31e9e5&&'always'!==this['_trackFormatChanges']){const _0x109c48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f7da8,'accept');return this['forceDefaultExecution'](()=>_0x109c48(_0x206747,_0x32cecd,_0x27c28c)),null;}const _0x492bff=this['editor']['plugins']['get']('Users')['me'];for(const _0x3be57a of this['getSuggestions']()){if(_0x3be57a['author']['id']!=_0x492bff['id'])continue;if('formatBlock'!=_0x3be57a['type']||_0x3be57a['data']['formatGroupId']!=_0x32cecd['formatGroupId'])continue;if(!Lt(_0x3be57a,_0x27c28c))continue;const _0x2fa05c=_0x3be57a['subType']==_0x3f7da8;for(let _0x36c64c=0x0;_0x36c64c<_0x206747['length'];_0x36c64c++){const _0x375a6e=_0x206747[_0x36c64c];for(const _0x525a1b of _0x3be57a['getMarkers']()){const _0x532f0b=_0x525a1b['getRange']();if(_0x375a6e['isEqual'](_0x532f0b)){_0x2fa05c?(_0x206747['splice'](_0x36c64c,0x1),_0x36c64c--):_0x3be57a['removeMarker'](_0x525a1b['name']);break;}}}}if(0x0==_0x206747['length'])return null;const _0x1a95ab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f7da8,'join');for(const _0x56c5c1 of this['getSuggestions']())if(_0x56c5c1['author']['id']==_0x492bff['id']&&'formatBlock'==_0x56c5c1['type']&&_0x56c5c1['data']['formatGroupId']==_0x32cecd['formatGroupId']&&_0x56c5c1['subType']==_0x3f7da8&&Lt(_0x56c5c1,_0x27c28c)&&(_0x1a95ab(_0x56c5c1['getRanges'](),_0x206747)||_0x1a95ab(_0x206747,_0x56c5c1['getRanges']()))){for(const _0x37be42 of _0x206747)_0x56c5c1['addRange'](_0x37be42);return _0x56c5c1;}const _0xf3dd89=_0x3035a1(),_0x4678f5=_0x492bff['id'],_0x41fc36='formatBlock:'+_0x3f7da8,_0x50c914=this['_setSuggestionData']({'id':_0xf3dd89,'type':_0x41fc36,'data':_0x32cecd,'createdAt':new Date(),'authorId':_0x4678f5,'attributes':_0x27c28c});for(const _0x49f96b of _0x206747)this['_addSuggestionMarker'](_0x41fc36,_0xf3dd89,_0x4678f5,_0x49f96b,u['getMultiRangeId']());return _0x50c914;}['markDeletion'](_0x2d8e6d,_0x4404d4=null,_0x3dc91f={}){if(_0x2d8e6d['isCollapsed'])return null;const _0x48f3d0=this['editor']['plugins']['get']('Users')['me'],_0x462999=new _0x2ded21(_0x2d8e6d['start'],_0x2d8e6d['end']);for(const {suggestion:_0x5f115c,meta:_0x53dfd1}of this['_findSuggestions'](_0x462999,'insertion'))if(_0x53dfd1['isOwn']&&!_0x53dfd1['isNextTo']){if(_0x5f115c['isMultiRange']){const _0x2f4505=_0x5f115c['getRanges']()['filter'](_0x54d8be=>'$graveyard'!=_0x54d8be['root']['rootName']);_0x2f4505['every'](_0x3415cd=>_0x462999['containsRange'](_0x3415cd,!0x0))&&_0x5f115c['discard']();if(_0x2f4505['some'](_0x4876c7=>_0x4876c7['containsRange'](_0x462999,!0x0))){const _0x4a2b33=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4404d4,'accept');return this['forceDefaultExecution'](()=>_0x4a2b33([_0x462999],null,_0x3dc91f)),null;}}else{const _0x532932=_0x462999['getIntersection'](_0x5f115c['getFirstRange']());null!==_0x532932&&_0x5f115c['_onDiscard']([_0x532932],null,_0x3dc91f);}}if(_0x462999['detach'](),_0x462999['isCollapsed']||'$graveyard'==_0x462999['root']['rootName'])return null;let _0x1f749c=null,_0x5d7ca4=_0x462999['start'],_0x51d212=_0x462999['end'];const _0x1af8b1=this['_findSuggestions'](_0x462999,'deletion');for(const {suggestion:_0x53e093,meta:_0x5d607d}of _0x1af8b1){const _0xcf357=this['_model']['createRange'](_0x5d7ca4,_0x51d212);if(_0x5d607d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5d607d['containsRangeInObject']&&!_0x5d607d['isInsideObject'])){if(_0x53e093['isMultiRange']){if(!Lt(_0x53e093,_0x3dc91f))continue;let _0x57ad79=!0x0;for(const _0x105cc7 of _0x53e093['getRanges']()){if(_0x105cc7['containsRange'](_0xcf357,!0x0))return _0x53e093;_0xcf357['containsRange'](_0x105cc7)||(_0x57ad79=!0x1);}_0x57ad79&&_0x53e093['discard']();}else{const _0x2e7400=_0x53e093['getFirstRange']();if(_0x2e7400['containsRange'](_0xcf357,!0x0))return _0x53e093;if(!Lt(_0x53e093,_0x3dc91f)){_0xcf357['containsRange'](_0x2e7400)?_0x53e093['removeMarkers']():_0x2e7400['containsPosition'](_0x5d7ca4)?_0x5d7ca4=_0x2e7400['end']:_0x2e7400['containsPosition'](_0x51d212)&&(_0x51d212=_0x2e7400['start']);continue;}_0x5d7ca4=_0x5d7ca4['isBefore'](_0x2e7400['start'])?_0x5d7ca4:_0x2e7400['start'],_0x51d212=_0x51d212['isAfter'](_0x2e7400['end'])?_0x51d212:_0x2e7400['end'],_0x3dc91f=Object['assign']({},_0x53e093['attributes']),_0x1f749c?_0x2e7400['start']['isBefore'](_0x1f749c['getFirstRange']()['start'])?(_0x1f749c['removeMarkers'](),_0x1f749c=_0x53e093):_0x53e093['removeMarkers']():_0x1f749c=_0x53e093;}}}if(_0x1f749c)return this['_setSuggestionRange'](_0x1f749c,this['_model']['createRange'](_0x5d7ca4,_0x51d212)),_0x1f749c;{const _0x1a2e2d=_0x3035a1(),_0x5900f5=this['_model']['createRange'](_0x5d7ca4,_0x51d212),_0x35efe1=_0x48f3d0['id'],_0x4c0716=_0x4404d4?'deletion:'+_0x4404d4:'deletion',_0x3f52d7=this['_setSuggestionData']({'id':_0x1a2e2d,'type':_0x4c0716,'createdAt':new Date(),'authorId':_0x35efe1,'attributes':_0x3dc91f});return this['_addSuggestionMarker'](_0x4c0716,_0x1a2e2d,_0x35efe1,_0x5900f5),_0x3f52d7;}}['markMultiRangeDeletion'](_0x19a336,_0x296030='multi',_0x3c6ef4={}){const _0x2bacf9=this['editor']['plugins']['get']('Users')['me'],_0x19678c=_0x19a336['map'](_0x33022e=>new _0x2ded21(_0x33022e['start'],_0x33022e['end'])),_0x36e146=new Set();for(const {suggestion:_0x24f8c5,meta:_0x846dae}of this['_findSuggestions'](_0x19678c,'insertion'))_0x846dae['isOwn']&&!_0x846dae['isNextTo']&&_0x36e146['add'](_0x24f8c5);for(const _0x4ce316 of _0x36e146)if(_0x4ce316['isMultiRange']){const _0x10828b=_0x4ce316['getRanges']();(!_0x4ce316['attributes']||!_0x4ce316['attributes']['skipNestingCheck'])&&(_0x10828b['every'](_0x2df378=>_0x19678c['some'](_0x50bfe2=>_0x50bfe2['containsRange'](_0x2df378,!0x0)))&&_0x4ce316['discard']());if(_0x19678c['every'](_0x58ba2d=>_0x10828b['some'](_0x3c7bb6=>_0x3c7bb6['containsRange'](_0x58ba2d,!0x0)))){const _0xb7f9d4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x296030,'accept');return this['forceDefaultExecution'](()=>_0xb7f9d4(_0x19a336,null,_0x3c6ef4)),null;}}else{const _0x6ef4d3=_0x4ce316['getFirstRange']();_0x19678c['some'](_0x238d1a=>_0x238d1a['containsRange'](_0x6ef4d3,!0x0))&&_0x4ce316['discard']();if(_0x19678c['every'](_0x3dc766=>_0x6ef4d3['containsRange'](_0x3dc766,!0x0))){const _0x994a0e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x296030,'accept');return this['forceDefaultExecution'](()=>_0x994a0e(_0x19678c,null,_0x3c6ef4)),null;}}const _0x1d3326=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x296030,'join');let _0x49f8dc=null;for(const _0x24383c of this['getSuggestions']())if(_0x24383c['author']['id']==_0x2bacf9['id']&&_0x24383c['isInContent']&&'deletion'==_0x24383c['type']&&_0x24383c['subType']==_0x296030&&Lt(_0x24383c,_0x3c6ef4)&&(_0x1d3326(_0x24383c['getRanges'](),_0x19678c)||_0x1d3326(_0x19678c,_0x24383c['getRanges']()))){if(_0x49f8dc){if(_0x24383c['commentThread']&&_0x24383c['commentThread']['length'])continue;for(const _0x5c325f of _0x24383c['getRanges']())_0x49f8dc['isIntersectingWithRange'](_0x5c325f)||_0x49f8dc['addRange'](_0x5c325f);_0x24383c['removeMarkers']();}else{_0x49f8dc=_0x24383c;for(const _0x5a72f5 of _0x19678c)_0x24383c['isIntersectingWithRange'](_0x5a72f5)||_0x24383c['addRange'](_0x5a72f5);}}if(_0x49f8dc)return _0x49f8dc;_0x36e146['clear']();for(const {suggestion:_0x23606c,meta:_0x8cd772}of this['_findSuggestions'](_0x19678c,'deletion'))_0x8cd772['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8cd772['containsRangeInObject']&&!_0x8cd772['isInsideObject'])&&Lt(_0x23606c,_0x3c6ef4)&&_0x36e146['add'](_0x23606c);for(const _0x5c2db1 of _0x36e146){const _0x227af6=_0x5c2db1['getRanges']();if(!_0x3c6ef4||!_0x3c6ef4['skipNestingCheck']){if(_0x19678c['every'](_0x792bd8=>_0x227af6['some'](_0x295f98=>_0x295f98['containsRange'](_0x792bd8,!0x0))))return _0x5c2db1;}(!_0x5c2db1['attributes']||!_0x5c2db1['attributes']['skipNestingCheck'])&&(_0x227af6['every'](_0x14ad50=>_0x19678c['some'](_0x14294f=>_0x14294f['containsRange'](_0x14ad50,!0x0)))&&_0x5c2db1['discard']());}const _0x440864=_0x3035a1(),_0x287213=_0x2bacf9['id'],_0x3d5694='deletion:'+_0x296030,_0x2754df=this['_setSuggestionData']({'id':_0x440864,'type':_0x3d5694,'createdAt':new Date(),'authorId':_0x287213,'attributes':_0x3c6ef4});for(const _0x47e880 of _0x19678c)_0x47e880['detach'](),_0x47e880['isCollapsed']||'$graveyard'==_0x47e880['root']['rootName']||this['_addSuggestionMarker'](_0x3d5694,_0x440864,_0x287213,_0x47e880,u['getMultiRangeId']());return _0x2754df;}['markAttributeChange'](_0xaf94bc,_0xcfa19b,_0x1532ac,_0x48b983,_0x53c5dd){if(_0xaf94bc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27b3e7=this['editor']['plugins']['get']('Users')['me']['id'],_0x288807=Array['from'](this['_suggestions']['values']())['filter'](_0x57fa70=>'attribute'==_0x57fa70['type']&&_0x57fa70['data']['key']==_0xcfa19b&&_0x57fa70['isIntersectingWithRange'](_0xaf94bc));if('default'===this['_trackFormatChanges']){const _0x376d3d=this['_findSuggestions'](_0xaf94bc,'insertion')['filter'](({meta:_0x5d7b25})=>_0x5d7b25['isOwn']&&!_0x5d7b25['isInsideObject']&&!_0x5d7b25['isNextTo'])['map'](({suggestion:_0x5ac396})=>_0x5ac396);_0x288807['unshift'](..._0x376d3d);}const _0x165b20=new Map([[_0xaf94bc,_0x1532ac]]);for(const _0x49c621 of _0x288807){const _0x48183b='attribute'==_0x49c621['type']?_0x49c621['data']['oldValue']:void 0x0,_0x57d76f=_0x49c621['getFirstRange'](),_0x28e906=Array['from'](_0x165b20['keys']())['find'](_0x1045ae=>_0x1045ae['isIntersecting'](_0x57d76f));if(!_0x28e906)continue;const _0x28482b=_0x28e906['getDifference'](_0x57d76f);this['_isBlockAttribute'](_0xcfa19b)&&'insertion'==_0x49c621['type']&&0x0!=_0x28482b['length']||(_0x165b20['delete'](_0x28e906),_0x28482b['forEach'](_0x221703=>{_0x165b20['set'](_0x221703,_0x1532ac);}),'insertion'!=_0x49c621['type']&&_0x48183b!=_0x48b983&&_0x165b20['set'](_0x28e906['getIntersection'](_0x57d76f),_0x48183b));}const _0x3a4ca7=[];for(const [_0xbeed7,_0x13eaa6]of _0x165b20){const _0x16ef1c=_0x3035a1(),_0xece1b={'key':_0xcfa19b,'oldValue':_0x13eaa6,'newValue':_0x48b983};_0xcfa19b['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':_0xcfa19b});const _0x2b77dc=('attribute:'+(_0xcfa19b+'|'+Vt({'newValue':_0x48b983})))['substring'](0x0,0x3c),_0x13ce3b=this['_setSuggestionData']({'id':_0x16ef1c,'type':_0x2b77dc,'data':_0xece1b,'createdAt':new Date(),'authorId':_0x27b3e7,'attributes':_0x53c5dd});_0x3a4ca7['push'](_0x13ce3b),this['_addSuggestionMarker'](_0x2b77dc,_0x16ef1c,_0x27b3e7,_0xbeed7);}return _0x3a4ca7;}['enableDefaultAttributesIntegration'](_0xab3916){this['enableCommand'](_0xab3916,(_0x6f73f1,..._0x40c639)=>{this['_recordAttributeChanges'](()=>{_0x6f73f1(..._0x40c639);});});}['registerBlockAttribute'](_0x4e16f2){this['_blockAttributeKeys']['add'](_0x4e16f2);}['registerInlineAttribute'](_0x3514a2){this['_inlineAttributeKeys']['add'](_0x3514a2);}['_getAttributeKey'](_0x3ff2d2){return'attribute'==_0x3ff2d2['type']?_0x3ff2d2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x56993c,_0xed7cdd){const _0x5e53fc=_0x56993c['getFirstMarker']();this['_model']['change'](_0x35bcfd=>{_0x35bcfd['updateMarker'](_0x5e53fc,{'range':_0xed7cdd});});}['_addThreadToSuggestion'](_0x4ebd55){const _0x400a10=_0x4ebd55['id'],_0x29d56c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x400a10)||this['_commentsRepository']['addCommentThread']({'channelId':_0x29d56c,'threadId':_0x400a10,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2f51ee=this['_commentsRepository']['getCommentThread'](_0x400a10);_0x2f51ee['unbind']('isRemovable'),_0x2f51ee['isRemovable']=!0x1,_0x4ebd55['commentThread']=_0x2f51ee;}['_checkSuggestionCorrectness'](_0x34b4d5,_0x456cb6,_0xa97118,_0x81df00){if(_0x34b4d5['type']!=_0x456cb6||_0x34b4d5['subType']!=_0xa97118||_0x34b4d5['creator']['id']!=_0x81df00)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x357ebd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5f3e7e,_0x222580){const _0x4d8776=_0x5f3e7e['getFirstRange']();if(_0x222580['isEqual'](_0x4d8776))_0x5f3e7e['removeMarkers']();else{if(_0x4d8776['containsRange'](_0x222580)){const _0x3e669e=this['_model']['createPositionAt'](_0x222580['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5f3e7e,this['_model']['createRange'](_0x4d8776['start'],_0x3e669e));const _0x4b3dfb=_0x3035a1(),_0x8b62f0=_0x5f3e7e['creator']['id'],_0x2eadb8=_0x5f3e7e['type']+':'+_0x5f3e7e['subType'];this['_setSuggestionData']({'id':_0x4b3dfb,'type':_0x2eadb8,'createdAt':new Date(),'authorId':_0x8b62f0,'data':_0x5f3e7e['data'],'attributes':_0x5f3e7e['attributes']});const _0x5e0ff1=this['_model']['createPositionAt'](_0x222580['end']['parent'],'after'),_0x49d145=this['_model']['createRange'](_0x5e0ff1,_0x4d8776['end']);this['_addSuggestionMarker'](_0x2eadb8,_0x4b3dfb,_0x8b62f0,_0x49d145);}else{if(_0x4d8776['containsPosition'](_0x222580['start'])){const _0x41f8ea=this['_model']['createPositionAt'](_0x222580['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5f3e7e,this['_model']['createRange'](_0x4d8776['start'],_0x41f8ea));}else{const _0x1af0d0=this['_model']['createPositionAt'](_0x222580['end']['parent'],'after');this['_setSuggestionRange'](_0x5f3e7e,this['_model']['createRange'](_0x1af0d0,_0x4d8776['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x207104){for(const {suggestion:_0x903dc2,meta:_0x3990ab}of this['_findSuggestions'](_0x207104,'insertion')){if(!_0x3990ab['isOwn'])continue;const _0x318b45=_0x903dc2['getRanges']();for(const _0x1eed57 of _0x318b45)if(!_0x207104['getDifference'](_0x1eed57)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3467e4){const _0x2d4dcb=this['editor']['plugins']['get']('Users')['getUser'](_0x3467e4);if(!_0x2d4dcb)throw new _0x357ebd('track-changes-user-not-found',this);return _0x2d4dcb;}['_getExternalAuthor'](_0x399117){const _0x6aff73=this['editor']['plugins']['get']('Users'),_0x36b72a=_0x2c54bc('external:'+_0x399117),_0xeaa5d4=_0x6aff73['getUser'](_0x36b72a);return _0xeaa5d4||_0x6aff73['addUser']({'id':_0x36b72a,'name':_0x399117});}['_createSuggestion'](_0x4b65cd,_0x220574,_0x25d131,_0x19d3d4,_0x1165a3){const _0x433c56=this['_getAuthorFromId'](_0x19d3d4),_0x17ec9c=this['_suggestionFactory']['buildSuggestion'](_0x4b65cd,_0x220574,_0x25d131,_0x433c56,_0x1165a3,_0x316141=>{this['_updateSuggestionData'](_0x25d131,{'attributes':_0x316141});const _0x2296c6=this['getSuggestion'](_0x25d131);this['_joinWithAdjacentSuggestions'](new Set([_0x2296c6])),this['_refreshSuggestionsChain'](new Set([_0x2296c6]));});return this['listenTo'](_0x17ec9c,'accept',()=>{this['_updateSuggestionData'](_0x25d131,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x17ec9c,'discard',()=>{this['_updateSuggestionData'](_0x25d131,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x25d131,_0x17ec9c),this['_suggestionState']['set'](_0x17ec9c,'notReady'),_0x17ec9c;}['_splitMarkerName'](_0x2265f7){const _0x30d922=_0x2265f7['split'](':');return{'group':_0x30d922[0x0],'type':_0x30d922[0x1],'subType':_0x30d922['length']>=0x5?_0x30d922[0x2]:null,'id':_0x30d922['length']<0x5?_0x30d922[0x2]:_0x30d922[0x3],'authorId':_0x30d922['length']<0x5?_0x30d922[0x3]:_0x30d922[0x4],'markerCount':0x6==_0x30d922['length']?_0x30d922[0x5]:null};}['_breakSuggestionMarker'](_0xabaf49,_0x7d79e6,_0x30ddbe){const _0x1bd62f=_0xabaf49['getFirstRange'](),_0x219bc7=_0x1bd62f['start'],_0x520914=_0x1bd62f['end'];this['_setSuggestionRange'](_0xabaf49,this['_model']['createRange'](_0x219bc7,_0x7d79e6));const _0x16d287=_0x3035a1(),_0x5e5115=_0xabaf49['creator']['id'],_0x71ca3a=_0xabaf49['type']+(_0xabaf49['subType']?':'+_0xabaf49['subType']:'');this['_setSuggestionData']({'id':_0x16d287,'type':_0x71ca3a,'createdAt':new Date(),'authorId':_0x5e5115,'originalSuggestionId':_0xabaf49['id'],'attributes':_0xabaf49['attributes'],'data':_0xabaf49['data']});const _0x5c5206=this['_getAttributeKey'](_0xabaf49);('formatBlock'==_0xabaf49['type']||_0x5c5206&&this['_isBlockAttribute'](_0x5c5206))&&(_0x30ddbe=this['_model']['createPositionBefore'](_0x30ddbe['parent'])),this['_addSuggestionMarker'](_0x71ca3a,_0x16d287,_0x5e5115,this['_model']['createRange'](_0x30ddbe,_0x520914));}['_findSuggestions'](_0x21b253,_0x3ad1dd=null){const _0x54ffd6=[],_0x14c1be=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21b253)||(_0x21b253=[_0x21b253]);for(const _0x51c401 of this['getSuggestions']()){if(!_0x51c401['isInContent'])continue;if(_0x3ad1dd&&_0x51c401['type']!=_0x3ad1dd)continue;let _0x2a2fd3=!0x1;for(const _0x4b9290 of _0x51c401['getRanges']()){for(const _0x1bd7cb of _0x21b253){const _0x4e4cff=_0x1bd7cb['start']['isEqual'](_0x4b9290['end'])||_0x1bd7cb['end']['isEqual'](_0x4b9290['start']);if(_0x4e4cff||_0x1bd7cb['getIntersection'](_0x4b9290)){const _0x1498a7=_0x1bd7cb['containsRange'](_0x4b9290)&&Rt(this['_model']['schema'],_0x4b9290['start'],_0x1bd7cb),_0x2abb69=_0x4b9290['containsRange'](_0x1bd7cb)&&Rt(this['_model']['schema'],_0x1bd7cb['start'],_0x4b9290);_0x54ffd6['push']({'suggestion':_0x51c401,'meta':{'isOwn':_0x14c1be==_0x51c401['author'],'isNextTo':_0x4e4cff,'isInsideObject':_0x1498a7,'containsRangeInObject':_0x2abb69}}),_0x2a2fd3=!0x0;break;}}if(_0x2a2fd3)break;}}return _0x54ffd6;}['_addSuggestionMarker'](_0x3ac0dc,_0x9995ed,_0x3352a2,_0x255c9e,_0x369572){this['_model']['change'](_0x1a4d82=>{let _0x554ab5='suggestion:'+_0x3ac0dc+':'+_0x9995ed+':'+_0x3352a2;_0x369572&&(_0x554ab5=_0x554ab5+':'+_0x369572),_0x1a4d82['addMarker'](_0x554ab5,{'range':_0x255c9e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x237b49){const _0x1940f2=_0x237b49['previous'],_0xbcfbcb=_0x237b49['next'];_0x237b49['previous']=null,_0x237b49['next']=null,null!=_0x1940f2&&_0x1940f2['next']==_0x237b49&&(_0x1940f2['next']=_0xbcfbcb),null!=_0xbcfbcb&&_0xbcfbcb['previous']==_0x237b49&&(_0xbcfbcb['previous']=_0x1940f2),'ready'==this['_suggestionState']['get'](_0x237b49)&&(this['_suggestionState']['set'](_0x237b49,'removed'),this['fire']('suggestionUnloaded',_0x237b49,_0x1940f2,_0xbcfbcb));}['_setSuggestionData'](_0x127439){const _0xbef2b9=_0x127439['id'],_0x4d2579=this['addSuggestionData'](_0x127439);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34c366=this['editor']['plugins']['get']('PendingActions'),_0x45e905=_0x4d2579['hasComments'],_0x3cb804=_0x4d2579['subType']?_0x4d2579['type']+':'+_0x4d2579['subType']:_0x4d2579['type'],_0x2084d8=this['editor']['locale'],_0x406c6d=_0x34c366['add'](o(_0x2084d8,'PENDING_ACTION_SUGGESTION')),_0x575f86={'id':_0xbef2b9,'type':_0x3cb804,'hasComments':_0x45e905,'data':_0x127439['data']||null,'originalSuggestionId':_0x127439['originalSuggestionId']||null,'attributes':_0x4d2579['attributes']};this['_adapter']['addSuggestion'](_0x575f86)['then'](_0x388740=>{_0x4d2579['_saved']=!0x0,_0x34c366['remove'](_0x406c6d),_0x388740&&_0x388740['createdAt']&&(this['_suggestions']['get'](_0xbef2b9)['createdAt']=_0x388740['createdAt']);})['catch'](_0x56f26d=>{throw _0x272dfa('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4d2579['discard']();}),_0x4d2579['stopListening'](),this['_suggestions']['delete'](_0x4d2579['id']),this['_suggestionState']['delete'](_0x4d2579),_0x56f26d;});}return _0x4d2579;}['_isBlockAttribute'](_0x56098d){return this['_blockAttributeKeys']['has'](_0x56098d);}['_updateSuggestionData'](_0x2c3305,_0x4af8da){const _0x1792f9=this['editor']['plugins']['get']('PendingActions'),_0xb2d560=this['getSuggestion'](_0x2c3305);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xb2d560['_saved']){const _0x1f56d8=_0x1792f9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2c3305,_0x4af8da)['then'](()=>{_0x1792f9['remove'](_0x1f56d8);});}else _0xb2d560['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2c3305,_0x4af8da);});}}['_getSuggestionData'](_0x556e62){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x357ebd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x556e62);}['_handleNewSuggestionMarker'](_0x384cf9){const {id:_0x2b64cd,type:_0x4b423a,subType:_0x2f6c94,authorId:_0x1ad2d3}=this['_splitMarkerName'](_0x384cf9),_0x456a23=this['_suggestions']['get'](_0x2b64cd)||this['_createSuggestion'](_0x4b423a,_0x2f6c94,_0x2b64cd,_0x1ad2d3,{});switch(this['_checkSuggestionCorrectness'](_0x456a23,_0x4b423a,_0x2f6c94,_0x1ad2d3),this['_suggestionState']['get'](_0x456a23)){case'notReady':this['_getSuggestionData'](_0x2b64cd)['then'](_0x2a921b=>{let _0x235725=Promise['resolve']();_0x2a921b['hasComments']&&(_0x235725=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2b64cd})),_0x235725['then'](()=>{this['addSuggestionData'](_0x2a921b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x456a23,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2b64cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x456a23,'ready'),this['fire']('suggestionLoaded',_0x456a23);break;case'ready':this['fire']('suggestionChanged',_0x456a23);}return _0x456a23['addMarkerName'](_0x384cf9),_0x456a23;}['_refreshSuggestionsChain'](_0x3493c0){const _0x1b0a3b=Array['from'](_0x3493c0),_0xe24608=_0x1b0a3b['filter'](_0x5671de=>'attribute'==_0x5671de['type']);this['_refreshAttributeSuggestionsChain'](_0xe24608);const _0x16438f=_0x1b0a3b['filter'](_0x5779cb=>!_0x5779cb['isMultiRange']&&'attribute'!=_0x5779cb['type']),_0x4d7600=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x66eff0=>!_0x66eff0['isMultiRange']&&'attribute'!=_0x66eff0['type']),_0x5fa9d8=_0x4d7600['filter'](_0x50bf04=>!_0x3493c0['has'](_0x50bf04)),_0x487240=new Map(_0x4d7600['map'](_0x41b4fd=>[_0x41b4fd,this['_suggestionFactory']['getSuggestionCallback'](_0x41b4fd['type'],_0x41b4fd['subType'],'chain')])),_0x410a9a=new Map(_0x4d7600['map'](_0x3bbeaa=>[_0x3bbeaa,_0x3bbeaa['getFirstRange']()])),_0x218c97=new Set(),_0x623aaf=new Set();for(let _0x59bf75=0x0;_0x59bf75<_0x16438f['length'];_0x59bf75++)_0x2e4f71(_0x16438f[_0x59bf75],_0x16438f,_0x59bf75+0x1);for(let _0x2ecdf5=0x0;_0x2ecdf5<_0x16438f['length'];_0x2ecdf5++)_0x2e4f71(_0x16438f[_0x2ecdf5],_0x5fa9d8,0x0);const _0x5a8264=new Set();for(let _0x55c2ea=0x0;_0x55c2ea<_0x16438f['length'];_0x55c2ea++){const _0x43452b=_0x16438f[_0x55c2ea];!_0x623aaf['has'](_0x43452b)&&_0x43452b['previous']&&(_0x5a8264['add'](_0x43452b['previous']),_0x43452b['previous']['next']===_0x43452b&&(_0x43452b['previous']['next']=null),_0x43452b['previous']=null),!_0x218c97['has'](_0x43452b)&&_0x43452b['next']&&(_0x5a8264['add'](_0x43452b['next']),_0x43452b['next']['previous']===_0x43452b&&(_0x43452b['next']['previous']=null),_0x43452b['next']=null);}function _0x2e4f71(_0x4e9a2c,_0x4bcbda,_0x34c936){for(let _0x2f3e32=_0x34c936;_0x2f3e32<_0x4bcbda['length'];_0x2f3e32++){const _0x1e3b9b=_0x2e08b1(_0x4e9a2c,_0x4bcbda[_0x2f3e32]);_0x1e3b9b&&(_0x1e3b9b[0x0]['next']=_0x1e3b9b[0x1],_0x1e3b9b[0x1]['previous']=_0x1e3b9b[0x0],_0x218c97['add'](_0x1e3b9b[0x0]),_0x623aaf['add'](_0x1e3b9b[0x1]));}}function _0x2e08b1(_0x462f70,_0x1c5a80){if(_0x462f70['author']['id']!==_0x1c5a80['author']['id'])return null;const _0x1f31f7=_0x487240['get'](_0x462f70)(_0x462f70,_0x1c5a80,_0x410a9a['get'](_0x462f70),_0x410a9a['get'](_0x1c5a80));if(!_0x1f31f7)return null;return _0x487240['get'](_0x1c5a80)(_0x462f70,_0x1c5a80,_0x410a9a['get'](_0x462f70),_0x410a9a['get'](_0x1c5a80))?_0x1f31f7[0x1]['commentThread']&&_0x1f31f7[0x1]['commentThread']['length']?null:_0x1f31f7:null;}_0x5a8264['size']&&this['_refreshSuggestionsChain'](_0x5a8264);}['_refreshAttributeSuggestionsChain'](_0x5bc116){if(0x0==_0x5bc116['length'])return;const _0x14525f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ccd01=>'attribute'==_0x2ccd01['type']&&_0x2ccd01['_isDataLoaded']),_0x234dfa=[],_0x3164de=new Map();for(const _0x1756ae of _0x14525f){const _0x1a2b98=_0x2c54bc(_0x1756ae['attributes']);_0x3164de['has'](_0x1a2b98)||(_0x3164de['set'](_0x1a2b98,_0x234dfa['length']),_0x234dfa['push']([]));const _0x109aae=_0x3164de['get'](_0x1a2b98);_0x234dfa[_0x109aae]['push'](_0x1756ae);}!(function(){_0x234dfa['sort']((_0x19005d,_0x3bb0ae)=>{const _0xac6aeb=_0x19005d[0x0]['createdAt'],_0x15c837=_0x3bb0ae[0x0]['createdAt'];return _0xac6aeb==_0x15c837?_0x19005d[0x0]['attributes']['groupId']<_0x3bb0ae[0x0]['attributes']['groupId']?-0x1:0x1:_0xac6aeb<_0x15c837?-0x1:0x1;});for(const _0x30e26b of _0x234dfa)_0x30e26b['sort']((_0x16ac1d,_0x2abdce)=>_0x16ac1d['id']<_0x2abdce['id']?-0x1:0x1);}());for(let _0x5651b3=0x0;_0x5651b3<_0x234dfa['length'];_0x5651b3++){if(0x0==_0x234dfa[_0x5651b3]['length'])continue;const _0x14f160=[];for(let _0x4e984a=_0x5651b3+0x1;_0x4e984a<_0x234dfa['length'];_0x4e984a++)0x0!=_0x234dfa[_0x4e984a]['length']&&_0x1e186a(_0x234dfa[_0x5651b3],_0x234dfa[_0x4e984a])&&_0x14f160['push'](_0x4e984a);for(const _0x38b6c1 of _0x14f160)_0x234dfa[_0x5651b3]=_0x234dfa[_0x5651b3]['concat'](_0x234dfa[_0x38b6c1]),_0x234dfa[_0x38b6c1]=[];}for(const _0x385447 of _0x234dfa)for(let _0x3f68b6=0x0;_0x3f68b6<_0x385447['length'];_0x3f68b6++)_0x385447[_0x3f68b6]['next']=_0x385447[_0x3f68b6+0x1]||null;for(const _0x1b47d1 of _0x234dfa)for(let _0x37a5e1=0x0;_0x37a5e1<_0x1b47d1['length'];_0x37a5e1++)_0x1b47d1[_0x37a5e1]['previous']=_0x1b47d1[_0x37a5e1-0x1]||null;function _0x1e186a(_0x45e59b,_0x45a93d){if(_0x45e59b[0x0]['attributes']['groupId']!==_0x45a93d[0x0]['attributes']['groupId']&&_0x45e59b[0x0]['author']!==_0x45a93d[0x0]['author'])return!0x1;if(!function(_0x4e9b14,_0x318670){if(!_0x4e9b14['hasComments']&&!_0x318670['hasComments'])return!0x0;if(_0x4e9b14['hasComments']&&_0x318670['hasComments'])return!0x1;if(_0x4e9b14['hasComments']&&_0x318670['createdAt']<_0x4e9b14['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x318670['hasComments']&&_0x4e9b14['createdAt']<_0x318670['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45e59b[0x0],_0x45a93d[0x0]))return!0x1;const _0x4c5082=Bt(_0x45e59b[0x0]['attributes'],'groupId'),_0x23a50c=Bt(_0x45a93d[0x0]['attributes'],'groupId');if(!_0x9c88fc(_0x4c5082,_0x23a50c))return!0x1;return!!_0x45e59b['every'](_0x5e57da=>_0x45a93d['some'](_0x5b7a36=>_0x5e57da['getFirstRange']()['isEqual'](_0x5b7a36['getFirstRange']())))&&_0x45a93d['every'](_0x49411f=>_0x45e59b['some'](_0x4b73ff=>_0x49411f['getFirstRange']()['isEqual'](_0x4b73ff['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe3bcb8){const _0x32aac4=Array['from'](_0xe3bcb8),_0x156a85=this['getSuggestions']({'skipNotAttached':!0x0}),_0x49435e=_0x156a85['filter'](_0xc60c7=>!_0xe3bcb8['has'](_0xc60c7)),_0x1f583a=new Map(_0x32aac4['map'](_0x541571=>[_0x541571,this['_suggestionFactory']['getSuggestionCallback'](_0x541571['type'],_0x541571['subType'],'join')])),_0x2d64cd=new Map(_0x156a85['map'](_0x56ba50=>[_0x56ba50,_0x56ba50['getRanges']()]));for(let _0x54dbb2=0x0;_0x54dbb2<_0x32aac4['length'];_0x54dbb2++){if(_0x4cb314(this,_0x32aac4[_0x54dbb2],_0x32aac4,_0x54dbb2+0x1))return!0x0;}for(let _0x39ca87=0x0;_0x39ca87<_0x32aac4['length'];_0x39ca87++){if(_0x4cb314(this,_0x32aac4[_0x39ca87],_0x49435e,0x0))return!0x0;}return!0x1;function _0x4cb314(_0x5f30d7,_0xa9711d,_0x41840f,_0x3883c5){for(let _0xe79980=_0x3883c5;_0xe79980<_0x41840f['length'];_0xe79980++){const _0x5061c9=_0x41840f[_0xe79980];if(_0x5061c9['type']!==_0xa9711d['type']||_0x5061c9['author']['id']!==_0xa9711d['author']['id']||_0x5061c9['subType']!==_0xa9711d['subType'])continue;if(!Pt(_0xa9711d,_0x5061c9,['groupId']))continue;if('attribute'==_0xa9711d['type']&&_0xa9711d['data']['oldValue']!=_0x5061c9['data']['oldValue'])continue;if('attribute'==_0xa9711d['type']&&_0x5f30d7['_isBlockAttribute'](_0xa9711d['data']['key']))continue;if('formatBlock'==_0xa9711d['type']){const _0x31e08e=_0x5f30d7['editor']['model'],_0x5649e6=_0xa9711d['getContainedElement']();if(_0x5649e6&&(_0x31e08e['schema']['isObject'](_0x5649e6)||_0x31e08e['schema']['isLimit'](_0x5649e6)))continue;}const _0x13b0d7=_0x1f583a['get'](_0xa9711d),_0x43ae2f=_0x2d64cd['get'](_0xa9711d),_0x448aa4=_0x2d64cd['get'](_0x5061c9),_0x221965=_0xa9711d['commentThread']&&_0xa9711d['commentThread']['length'],_0x4a5558=_0x5061c9['commentThread']&&_0x5061c9['commentThread']['length'];if(!_0x221965&&_0x13b0d7(_0x448aa4,_0x43ae2f))return _0x5f30d7['_joinSuggestions'](_0x5061c9,_0xa9711d),_0x2d64cd['delete'](_0xa9711d),!0x0;if(!_0x4a5558&&_0x13b0d7(_0x43ae2f,_0x448aa4))return _0x5f30d7['_joinSuggestions'](_0xa9711d,_0x5061c9),_0x2d64cd['delete'](_0x5061c9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x431c95,_0x538d83){if(_0x431c95['isMultiRange']){for(const _0x32c8ca of _0x538d83['getRanges']())_0x431c95['addRange'](_0x32c8ca);}else{const _0x3684f7=_0x538d83['getFirstRange']()['end'];this['_setSuggestionRange'](_0x431c95,this['_model']['createRange'](_0x431c95['getFirstRange']()['start'],_0x3684f7));}_0x538d83['removeMarkers']();}['_getMarkerAnnouncementText'](_0x39f731,_0x4bbb40){const _0xead260=_0x39f731['startsWith']('format')||_0x39f731['startsWith']('attribute')?'FORMATTING':_0x39f731['toUpperCase']();return o(this['editor']['locale'],_0x4bbb40+'_'+_0xead260+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x55ae74=this['editor'];if(!_0x55ae74['ui'])return;const {ariaLiveAnnouncer:_0x574747}=_0x55ae74['ui'];_0x14fed6(this['_model'],({left:_0x218546,entered:_0x49792c})=>{for(const _0x5570ae of _0x218546){const {group:_0x5efa20,type:_0x3c5ea9}=this['_splitMarkerName'](_0x5570ae['name']);if('suggestion'===_0x5efa20){_0x574747['announce'](this['_getMarkerAnnouncementText'](_0x3c5ea9,'LEAVE'));break;}}for(const _0x54b4cf of _0x49792c){const {group:_0x12c47e,type:_0x1878b1}=this['_splitMarkerName'](_0x54b4cf['name']);if('suggestion'===_0x12c47e){_0x574747['announce'](this['_getMarkerAnnouncementText'](_0x1878b1,'ENTER'));break;}}});}['_processAttributeChanges'](_0x824707){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd4c2ea=this['editor'],_0x2baf2c=_0xd4c2ea['model']['document']['differ']['getChanges']();if(0x0==_0x2baf2c['length'])return!0x1;const _0x43ca8b=[],_0x53027d=_0x2baf2c['filter'](_0x2a02ac=>'attribute'==_0x2a02ac['type']),_0x45cc56=_0x2baf2c['filter'](_0x4da295=>'insert'==_0x4da295['type']&&'$text'!=_0x4da295['name']),_0x1755ac=_0x2baf2c['filter'](_0x43ea4b=>'remove'==_0x43ea4b['type']&&'$text'!=_0x43ea4b['name']);for(const _0x486b05 of _0x53027d)_0x43ca8b['push']({'key':_0x486b05['attributeKey'],'newValue':_0x486b05['attributeNewValue'],'oldValue':_0x486b05['attributeOldValue'],'range':Ot(_0x486b05['range'],_0xd4c2ea['model'])});for(const _0x54024b of _0x45cc56){const _0x3c69b0=_0x1755ac['find'](_0x3241bd=>_0x3241bd['position']['isEqual'](_0x54024b['position']));_0x3c69b0&&_0x43ca8b['push']({'key':m,'newValue':_0x54024b['name'],'oldValue':_0x3c69b0['name'],'range':_0xd4c2ea['model']['createRangeOn'](_0x54024b['position']['nodeAfter'])});}return 0x0!=_0x43ca8b['length']&&this['_reduceExistingSuggestions'](_0x824707,_0x43ca8b);}['_processAttributeSuggestions'](_0x2b1994){let _0x523cae=!0x1;const _0x4ccb20=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ee94e=>_0x4ee94e['data']['newRange']&&_0x4ee94e['name']['startsWith']('suggestion:attribute:'));for(const _0x481d63 of _0x4ccb20){const {subType:_0x1b3517,id:_0x2c6bb4}=this['_splitMarkerName'](_0x481d63['name']),_0x78d718=_0x1b3517['split']('|')[0x0];for(const _0x4a0a2b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4a0a2b['id']!=_0x2c6bb4&&'attribute'==_0x4a0a2b['type']&&_0x4a0a2b['data']&&_0x4a0a2b['data']['key']==_0x78d718&&_0x4a0a2b['getFirstRange']()['isIntersecting'](_0x481d63['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4a0a2b,_0x481d63['data']['newRange'],_0x2b1994),_0x523cae=!0x0);}return _0x523cae;}['_recordAttributeChanges'](_0x58e1a9){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x58e1a9();}['_isRegisteredAttribute'](_0x56a8ff){const _0x328a7a=this['_isBlockAttribute'](_0x56a8ff),_0x1e474b=this['_inlineAttributeKeys']['has'](_0x56a8ff);return _0x328a7a||_0x1e474b;}['_reduceExistingSuggestions'](_0xa64979,_0x2d1af1){if(0x0==_0x2d1af1['length'])return!0x1;let _0x2851ea=!0x1;for(const _0x20f2f9 of _0x2d1af1){const _0x50d59b=this['_findSuggestions'](_0x20f2f9['range'],'attribute')['filter'](_0x3dc83d=>!_0x3dc83d['meta']['isNextTo'])['map'](_0x36453b=>_0x36453b['suggestion']),_0x5ada84=_0x2c54bc({'newValue':_0x20f2f9['newValue']});_0x50d59b['filter'](_0x456504=>{const [_0x253374,_0x36ee31]=_0x456504['subType']['split']('|');return _0x253374==_0x20f2f9['key']&&_0x36ee31!=_0x5ada84;})['forEach'](_0x394325=>{this['_reduceSuggestionAttributeRange'](_0x394325,_0x20f2f9['range'],_0xa64979),_0x2851ea=!0x0;});}return _0x2851ea;}['_reduceSuggestionAttributeRange'](_0xcf0c87,_0x142ab2,_0x56e162){const _0x4ac8f8=_0xcf0c87['getFirstRange']()['getDifference'](_0x142ab2);0x0!==_0x4ac8f8['length']?0x1!==_0x4ac8f8['length']?this['_breakSuggestionMarker'](_0xcf0c87,_0x142ab2['start'],_0x142ab2['end']):this['_setSuggestionRange'](_0xcf0c87,_0x4ac8f8[0x0]):_0x56e162['removeMarker'](_0xcf0c87['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4b6a1b){this['_editor']=_0x4b6a1b,this['_model']=_0x4b6a1b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x20d6e8,_0x103117,_0x55ded4,_0x3437e0,_0x408645,_0x3ea8b4){return new u(this['_model'],{'type':_0x20d6e8,'subType':_0x103117,'id':_0x55ded4,'author':_0x3437e0,'creator':_0x3437e0,'attributes':_0x408645,'onAttributesChange':_0x3ea8b4,'onAccept':(..._0x55f8b0)=>this['getSuggestionCallback'](_0x20d6e8,_0x103117,'accept')(..._0x55f8b0),'onDiscard':(..._0x492f04)=>this['getSuggestionCallback'](_0x20d6e8,_0x103117,'discard')(..._0x492f04)});}['registerCustomCallback'](_0x4f31c9,_0x12f6a6,_0x1cbf90,_0x3f18f3){const _0x393e6e=_0x4f31c9+':'+_0x12f6a6+':'+_0x1cbf90;this['_customCallbacks']['set'](_0x393e6e,_0x3f18f3);}['getSuggestionCallback'](_0x259d70,_0x55470f,_0x1fae84){const _0x141932=_0x259d70+':'+_0x55470f+':'+_0x1fae84;return this['_customCallbacks']['get'](_0x141932)||this['_defaultCallbacks']['get'](_0x259d70+':'+_0x1fae84);}['_registerDefaultCallbacks'](){const _0x40feea=()=>!0x1,_0x46f978=_0x1401c6=>{_0x1401c6['sort']((_0x2b3801,_0x591901)=>_0x2b3801['start']['isBefore'](_0x591901['start'])?0x1:-0x1),this['_model']['change'](_0x4aad7a=>{for(const _0x2f43fe of _0x1401c6){let _0x9116b;_0x9116b=_0x2f43fe['end']['isAtEnd']&&_0x2f43fe['end']['parent']==_0x2f43fe['start']['nodeAfter']?_0x4aad7a['createSelection'](_0x2f43fe['start']['nodeAfter'],'on'):_0x4aad7a['createSelection'](_0x2f43fe),this['_model']['deleteContent'](_0x9116b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xfdd78e=(_0x3dff30,_0x4fd883)=>{_0x4fd883&&this['_model']['change'](_0x4240ac=>{const {commandName:_0x51711d,commandParams:_0x1f3d4f=[]}=_0x4fd883,_0x508821=_0x3dff30['map'](_0x201b94=>(Tt(_0x201b94)&&(_0x201b94=this['_model']['createRange'](_0x201b94['end'])),_0x201b94))['filter'](_0x18fae2=>'$graveyard'!==_0x18fae2['root']['rootName']);if(_0x508821['length']<0x1)return;const _0x364c9b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x353121=>_0x2ded21['fromRange'](_0x353121));_0x4240ac['setSelection'](_0x508821);for(const _0xd1b2b6 of this['_editor']['commands']['commands']())_0xd1b2b6['refresh']();_0x1f3d4f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x51711d,..._0x1f3d4f);const _0x12496a=_0x364c9b['filter'](_0x275764=>'$graveyard'!=_0x275764['root']['rootName']);_0x12496a['length']>0x0&&_0x4240ac['setSelection'](_0x12496a);for(const _0xdefdd4 of _0x364c9b)_0xdefdd4['detach']();});},_0x3671c2=(_0x370628,_0x47ec6e)=>0x1==_0x370628['length']&&0x1==_0x47ec6e['length']&&_0x370628[0x0]['end']['isEqual'](_0x47ec6e[0x0]['start']),_0x1ee60e=(_0x16cc24,_0x379878,_0x4f9fa3,_0x47f9d1)=>Gt(_0x16cc24,_0x379878,_0x4f9fa3,_0x47f9d1,this['_model'])?[_0x16cc24,_0x379878]:Gt(_0x379878,_0x16cc24,_0x47f9d1,_0x4f9fa3,this['_model'])?[_0x379878,_0x16cc24]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x40feea),this['_defaultCallbacks']['set']('insertion:discard',_0x46f978),this['_defaultCallbacks']['set']('insertion:join',_0x3671c2),this['_defaultCallbacks']['set']('insertion:chain',_0x1ee60e),this['_defaultCallbacks']['set']('deletion:accept',_0x46f978),this['_defaultCallbacks']['set']('deletion:discard',_0x40feea),this['_defaultCallbacks']['set']('deletion:join',_0x3671c2),this['_defaultCallbacks']['set']('deletion:chain',_0x1ee60e),this['_defaultCallbacks']['set']('formatInline:accept',_0xfdd78e),this['_defaultCallbacks']['set']('formatInline:discard',_0x40feea),this['_defaultCallbacks']['set']('formatInline:join',_0x3671c2),this['_defaultCallbacks']['set']('formatInline:chain',_0x40feea),this['_defaultCallbacks']['set']('formatBlock:accept',_0xfdd78e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x40feea),this['_defaultCallbacks']['set']('formatBlock:join',_0x3671c2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x40feea),this['_defaultCallbacks']['set']('attribute:accept',_0x40feea),this['_defaultCallbacks']['set']('attribute:discard',(_0x2eac17,_0x87f96c)=>{if(!_0x87f96c)return;const _0x4185a5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x291677=>{if(_0x87f96c['key']==m)for(const _0x17af89 of _0x2eac17){const _0x5172b3=_0x17af89['start']['nodeAfter'],_0x471d40=_0x87f96c['oldValue'];_0x291677['rename'](_0x5172b3,_0x471d40);}else{if(_0x4185a5['_isBlockAttribute'](_0x87f96c['key'])){for(const _0x1253b9 of _0x2eac17)void 0x0!==_0x87f96c['oldValue']?_0x291677['setAttribute'](_0x87f96c['key'],_0x87f96c['oldValue'],_0x1253b9['start']['nodeAfter']):_0x291677['removeAttribute'](_0x87f96c['key'],_0x1253b9['start']['nodeAfter']);}else{for(const _0x437d9b of _0x2eac17)_0x87f96c['oldValue']?_0x291677['setAttribute'](_0x87f96c['key'],_0x87f96c['oldValue'],_0x437d9b):_0x291677['removeAttribute'](_0x87f96c['key'],_0x437d9b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3671c2);}}function Rt(_0xace82,_0x552068,_0x550662){for(const _0x4af162 of _0x552068['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4af162['root']==_0x4af162)return!0x1;if(!_0x550662['containsItem'](_0x4af162))return!0x1;if(_0xace82['isObject'](_0x4af162)||_0xace82['isLimit'](_0x4af162))return!0x0;}return!0x1;}function Tt(_0x1ad0fb){return _0x1ad0fb['end']['parent']==_0x1ad0fb['start']['nodeAfter']&&_0x1ad0fb['end']['isAtStart'];}function Et(_0x47380f,_0x3a9985,_0x5c1da6,_0x28b608){const _0x117662=_0x45f54f=>!_0x45f54f['item']['is']('$textProxy')&&!_0x28b608['isObject'](_0x45f54f['item']),_0x1fa2e1=_0x47380f['start']['getLastMatchingPosition'](_0x117662),_0x40f399=_0x47380f['end']['getLastMatchingPosition'](_0x117662,{'direction':'backward'});return(!_0x47380f['start']['isEqual'](_0x1fa2e1)||!_0x47380f['end']['isEqual'](_0x40f399))&&(_0x1fa2e1['isBefore'](_0x40f399)?_0x5c1da6['updateMarker'](_0x3a9985,{'range':_0x5c1da6['createRange'](_0x1fa2e1,_0x40f399)}):_0x5c1da6['removeMarker'](_0x3a9985),!0x0);}function Vt(_0x29f73a){return _0x2c54bc(_0x29f73a);}function Ut(_0x542188){const _0x1ce6af=_0x542188['start']['nodeAfter'];return _0x1ce6af&&_0x1ce6af['is']('element');}function Ot(_0x1fb5a8,_0xe1add4){return null==_0x1fb5a8['end']['nodeBefore']&&_0x1fb5a8['end']['parent']==_0x1fb5a8['start']['nodeAfter']?Ft(_0x1fb5a8['start']['nodeAfter'],_0xe1add4):_0x1fb5a8;}function Ft(_0x2fa2a9,_0x20f678){const _0x37715a=_0x20f678['schema']['isObject'](_0x2fa2a9)||_0x20f678['schema']['isSelectable'](_0x2fa2a9);return _0x20f678['createRange'](_0x20f678['createPositionAt'](_0x2fa2a9,'before'),_0x37715a?_0x20f678['createPositionAfter'](_0x2fa2a9):_0x20f678['createPositionAt'](_0x2fa2a9,'end'));}function Gt(_0x10e18c,_0x1eeb40,_0xa50df9,_0x44369c,_0x2b48ed){if(!Pt(_0x10e18c,_0x1eeb40))return!0x1;if(_0xa50df9['end']['isEqual'](_0x44369c['start']))return!0x0;if(_0x10e18c['type']!=_0x1eeb40['type'])return!0x1;if(!_0xa50df9['end']['isTouching'](_0x44369c['start']))return!0x1;const _0x4c7576=_0x2b48ed['createRange'](_0xa50df9['end'],_0x44369c['start'])['getWalker']();for(const _0x2ae6b2 of _0x4c7576)if(['elementStart','elementEnd']['includes'](_0x2ae6b2['type'])&&_0x2b48ed['schema']['isLimit'](_0x2ae6b2['item']))return!0x1;return!0x0;}function Pt(_0xee4eab,_0x3a58bd,_0x616eca=[]){return!(!_0xee4eab['_isDataLoaded']||!_0x3a58bd['_isDataLoaded'])&&_0x9c88fc(Bt(_0xee4eab['attributes'],_0x616eca),Bt(_0x3a58bd['attributes'],_0x616eca));}function Lt(_0xf085b6,_0x289cbd){const _0x2909be=Ht(_0xf085b6['attributes']),_0x478215=Ht(_0x289cbd);if(!_0xf085b6['_isDataLoaded'])return!0x1;for(const _0x40c7f1 of Object['keys'](_0x478215))if(!_0x9c88fc(_0x2909be[_0x40c7f1],_0x478215[_0x40c7f1]))return!0x1;return!0x0;}function Ht(_0x127d65){const _0x2727ed=Object['assign']({},_0x127d65);return delete _0x2727ed['skipNestingCheck'],delete _0x2727ed['tablePasteChainId'],_0x2727ed;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x13aff3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3285d8,_0x5c96a6,_0x52cc03,_0x12eee3){super(),this['model']=_0x5c96a6,this['view']=_0x52cc03,this['commentThreadController']=_0x12eee3,this['_editor']=_0x3285d8,this['_acceptCommand']=_0x3285d8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3285d8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x381de4,_0x3926ff)=>_0x381de4||_0x3926ff),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x33efaf=>_0x33efaf&&this['_editor']['model']['canEditAt'](_0x5c96a6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x208b57=>_0x208b57&&this['_editor']['model']['canEditAt'](_0x5c96a6['getRanges']())),this['_pendingAction']=null,_0x52cc03['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x52cc03,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x52cc03,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x52cc03,'change:isDirty',()=>{_0x52cc03['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 _0x3b0eb4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3b0eb4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x337c6b{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x17f2e0,_0x22b2b5,_0x2d7036,_0xf1a57f){super(_0x17f2e0),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x22b2b5['authoredAt']),this['bind']('authoredAt')['to'](_0x22b2b5),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x22b2b5,this['_localUser']=_0x2d7036,this['_config']=_0xf1a57f,_0xf1a57f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x432540}=this['_config'];this['commentsListView']=new _0x432540(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',_0x3d2c54=>_0x3d2c54+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4ee877,_0x542dd7)=>_0x4ee877||!!_0x542dd7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x253373}=this['_config'],_0x44489b=new _0x253373(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x547ade=_0x44489b['commentInputView'];return _0x44489b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x547ade,'value',(_0x527bc3,_0x48805c,_0x1348c2)=>!!_0x1348c2||_0x527bc3&&!_0x48805c),_0x547ade['on']('submit',(_0x186a8d,_0x24b6f0)=>{this['fire']('addComment',_0x24b6f0),_0x547ade['editor']['setData']('');}),_0x547ade['on']('cancel',()=>this['focus']()),_0x547ade['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x44489b;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5be5ad,_0x75d24f,_0x33be2a,_0x36dbca){super(_0x5be5ad,_0x75d24f,_0x33be2a,_0x36dbca),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22e8b9=>_0x22e8b9&&_0x22e8b9[0x0]?_0x22e8b9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b61fd,_0x203779)=>{let _0x58b1c2='';for(const _0x37d514 of _0x3b61fd)_0x58b1c2+='<p>'+ds(_0x37d514['content'],_0x37d514['color'])+'</p>';return _0x203779?_0x58b1c2:_0x4037e5(_0x58b1c2,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5be5ad,'Accept\x20suggestion'),_0xdf767d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5be5ad,'Discard\x20suggestion'),_0xdf767d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xc8bfc5(_0x5be5ad,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5e92f3=this['bindTemplate'],_0x590de3=[{'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':_0x5e92f3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e92f3['to']('authoredAt',_0x163894=>this['_config']['formatDateTime'](_0x163894))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x590de3['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1e2950={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5e92f3['if']('isActive','ck-suggestion-wrapper--active'),_0x5e92f3['to']('type',_0x10e3bd=>'ck-suggestion-'+_0x10e3bd),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x590de3}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1e2950['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1e2950;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x16ea8c,_0xe4e248,_0x3983cb)=>{this['_descriptionElement']['innerHTML']=_0x3983cb;});}['_createButton'](_0x146c18,_0x49bf2f,_0x5ebdf4,_0x5acf21,_0x19faac){const _0x5a6432=new _0x37be95(this['locale']);return _0x5a6432['set']({'label':_0x146c18,'icon':_0x49bf2f,'tooltip':!0x0,'tooltipPosition':_0x19faac}),_0x5a6432['extendTemplate']({'attributes':{'class':_0x5ebdf4}}),_0x5a6432['on']('execute',()=>{this['fire'](_0x5acf21,this['_model']['id']);}),_0x5a6432;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x3066ab,_0x18d6ef){let _0x3d48db='';return _0x3d48db+=_0x3066ab['split']('*')['map']((_0x1e51c2,_0xa95a10)=>_0xa95a10%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x1e51c2)+'</span>':us(_0x1e51c2))['join'](''),_0x18d6ef&&(_0x3d48db+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x18d6ef['value']+'\x22\x20title=\x22'+_0x18d6ef['title']+'\x22></span>'),_0x3d48db;}function us(_0x10ee61){const _0x4dc8bd=document['createElement']('span');return _0x4dc8bd['innerText']=_0x10ee61,_0x4dc8bd['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x3be5df{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3c67fa,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4d0a35){super(_0x4d0a35),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x563cef=this['editor']['config'];_0x563cef['define']('trackChanges.SuggestionThreadView',ne),_0x563cef['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x563cef['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x10f271,_0x431a08){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3eb2c7,_0x565a67]of this['_handleControllerBuffer']){const _0x57eb84=this['_suggestionToController']['has'](_0x3eb2c7);_0x57eb84||_0x565a67?_0x57eb84&&_0x565a67&&this['_destroyController'](_0x3eb2c7):this['_initializeController'](_0x3eb2c7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x10f271,_0x431a08);}['init'](){const _0x21ebbc=this['editor'],_0x1c07f5=_0x21ebbc['plugins']['get']('TrackChangesEditing'),_0x2508bf=_0x21ebbc['plugins']['get']('Annotations'),_0x139c6f=_0x21ebbc['plugins']['get']('EditorAnnotations'),_0x381865=_0x21ebbc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x139c6f['addSourceCollector'](()=>{const _0x8448fc=[];for(const [_0x26c1e2,_0x3a818b]of Array['from'](this['_suggestionToController'])){const _0x28506e=_0x26c1e2['getAllAdjacentSuggestions'](),_0x5c0d65=[];for(const _0x49d637 of _0x28506e){if(!_0x49d637['isInContent'])continue;if(_0x49d637['isMultiRange']){_0x5c0d65['push'](..._0x49d637['getRanges']());continue;}const _0x5f0db9=_0x49d637['getFirstRange']();if(_0x5c0d65['length']>0x0){const _0x4bbe47=_0x5c0d65[0x0]['getJoined'](_0x5f0db9);if(_0x4bbe47){_0x5c0d65[0x0]=_0x4bbe47;continue;}}_0x5c0d65['push'](_0x5f0db9);}_0x8448fc['push']([_0x3a818b['view'],_0x5c0d65]);}return _0x8448fc;}),this['listenTo'](_0x1c07f5,'suggestionLoaded',(_0x24dbc1,_0x52463f)=>{this['listenTo'](_0x52463f,'change:previous',(_0x59e542,_0x1f01b8,_0x28dff2,_0x43e380)=>{_0x52463f['isInContent']&&(null==_0x28dff2?(this['_updateController'](_0x43e380['head']),this['_handleSuggestionControllerDelayed'](_0x52463f,!0x1)):(this['_updateController'](_0x28dff2['head']),null==_0x43e380&&this['_handleSuggestionControllerDelayed'](_0x52463f,!0x0)));}),null!==_0x52463f['previous']?this['_updateController'](_0x52463f['head']):this['_handleSuggestionControllerDelayed'](_0x52463f,!0x1);}),this['listenTo'](_0x1c07f5,'suggestionUnloaded',(_0x32f326,_0x3c5ee8,_0x4135db)=>{this['stopListening'](_0x3c5ee8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c5ee8),this['_suggestionToController']['has'](_0x3c5ee8)&&this['_destroyController'](_0x3c5ee8),_0x4135db&&this['_updateController'](_0x4135db['head']);}),this['listenTo'](_0x1c07f5,'suggestionChanged',(_0x4f74fe,_0x1b2e89)=>{this['_updateController'](_0x1b2e89);}),this['listenTo'](_0x2508bf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x381865,'addComment',(_0x3f4901,{threadId:_0x1f35ff,isFromAdapter:_0xc7ec8d})=>{if(_0xc7ec8d||!_0x1c07f5['hasSuggestion'](_0x1f35ff))return;const _0x31b595=_0x1c07f5['getSuggestion'](_0x1f35ff);this['_suggestionToController']['get'](_0x31b595)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3c069a=this['editor']['plugins']['get']('Annotations'),_0x22e0e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0c87=Array['from'](_0x3c069a['activeAnnotations'],_0x3ed839=>_0x3ed839['innerView'])['filter'](_0x5470e8=>this['_viewToController']['has'](_0x5470e8)),_0x2001ea=[];for(const _0x490848 of _0x5f0c87){const _0x1b66e0=this['_viewToController']['get'](_0x490848)['model']['getAllAdjacentSuggestions']();_0x2001ea['push'](..._0x1b66e0['reduce']((_0xd2d486,_0x559226)=>[..._0xd2d486,..._0x559226['getMarkerNames']()],[]));}_0x22e0e0['activeMarkers']=_0x2001ea;}['_addUIComponentsToFactory'](){const _0x4d9b15=this['editor'],_0x333162=_0x4d9b15['locale'],_0x696d8f=o(_0x333162,'Track\x20changes'),_0x452c07=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x696d8f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x333162,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x333162,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x333162,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x333162,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1462f1 of _0x452c07)if(ae(_0x1462f1)){const _0x35532b=_0x4d9b15['commands']['get'](_0x1462f1['model']['commandName']);_0x1462f1['model']['bind']('isOn','isEnabled')['to'](_0x35532b,'value','isEnabled');}_0x4d9b15['ui']['componentFactory']['add']('trackChanges',_0x372594=>this['_createToolbarButton'](_0x372594,_0x452c07,_0x696d8f)),_0x4d9b15['ui']['componentFactory']['add']('menuBar:trackChanges',_0x57b40f=>this['_createMenuBarMenu'](_0x57b40f,_0x452c07,_0x696d8f));}['_createToolbarButton'](_0x5d5aea,_0x410af7,_0x40ec78){const _0xcba351=zt(_0x5d5aea,Zt),_0x5359f3=this['editor']['commands']['get']('trackChanges');_0xcba351['buttonView']['set']({'tooltip':_0x40ec78,'label':_0x40ec78,'icon':ie}),_0xcba351['buttonView']['bind']('isOn')['to'](_0x5359f3,'value'),_0xcba351['buttonView']['on']('execute',()=>{_0x5359f3['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xcba351,_0x410af7,{'role':'menu'});const _0x59d410=[];for(const _0x590412 of _0x410af7)ae(_0x590412)&&_0x59d410['push'](this['editor']['commands']['get'](_0x590412['model']['commandName']));const _0x27343d=_0xcba351['buttonView'];return _0x27343d['actionView']['unbind']('isEnabled'),_0x27343d['arrowView']['unbind']('isEnabled'),_0x27343d['actionView']['bind']('isEnabled')['to'](_0x5359f3,'isEnabled'),_0x27343d['arrowView']['bind']('isEnabled')['toMany'](_0x59d410,'isEnabled',(..._0x5e5740)=>_0x5e5740['some'](_0x5e63d3=>_0x5e63d3)),_0xcba351['on']('execute',_0x26a087=>{this['editor']['execute'](_0x26a087['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xcba351;}['_createMenuBarMenu'](_0x18c6f1,_0x30f162,_0x5f38ef){const _0x512296=new Kt(_0x18c6f1),_0x350a3f=this['editor']['commands']['get']('trackChanges');_0x512296['buttonView']['set']({'label':_0x5f38ef,'icon':ie});const _0x4ae68d=new Qt(_0x18c6f1);for(const _0x31c61a of _0x30f162){if('separator'==_0x31c61a['type']){_0x4ae68d['items']['add'](new Jt(_0x18c6f1));continue;}const _0x1ade5f=new Xt(_0x18c6f1,_0x512296),_0x15a668=new Yt(_0x18c6f1),_0x320814=_0x31c61a['model'];_0x15a668['bind'](...Object['keys'](_0x320814))['to'](_0x320814),_0x15a668['delegate']('execute')['to'](_0x512296),_0x15a668['on']('execute',()=>{this['editor']['execute'](_0x320814['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ade5f['children']['add'](_0x15a668),_0x4ae68d['items']['add'](_0x1ade5f);}return _0x512296['bind']('isEnabled')['to'](_0x350a3f,'isEnabled'),_0x512296['panelView']['children']['add'](_0x4ae68d),_0x512296;}['_initializeController'](_0x314fcc){const _0x32e6b5=this['editor'],_0x3f5e04=_0x32e6b5['config'],_0x1a7809=_0x32e6b5['plugins']['get']('Annotations'),_0x1c3659=_0x32e6b5['plugins']['get']('CommentsRepository'),_0x3a1e26=_0x32e6b5['plugins']['get']('EditorAnnotations'),_0x243860=_0x32e6b5['plugins']['get'](_0x3c67fa)['me'],_0x158bd5=_0x3f5e04['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x49f600,CommentThreadInputView:_0x5ff67a}=_0x32e6b5['plugins']['get']('CommentsUI');let _0x15d7a8,_0x2d7fec;this['_annotationViews']['has'](_0x314fcc['id'])?(_0x2d7fec=this['_annotationViews']['get'](_0x314fcc['id']),_0x15d7a8=_0x2d7fec['mainView']):(_0x15d7a8=new _0x158bd5(_0x32e6b5['locale'],_0x314fcc,_0x243860,{'disableComments':this['_disableComments'],'editorConfig':_0x3f5e04['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3f5e04['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3f5e04['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3f5e04['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x42ab4e(_0x3f5e04['get']('locale')),'CommentView':_0x3f5e04['get']('comments')['CommentView'],'CommentsListView':_0x49f600,'CommentThreadInputView':_0x5ff67a}),_0x15d7a8['acceptButton']['on']('execute',()=>{_0x32e6b5['editing']['view']['focus']();}),_0x15d7a8['discardButton']['on']('execute',()=>{_0x32e6b5['editing']['view']['focus']();}),_0x2d7fec=_0x1a7809['createAnnotationView'](this['editor']['locale'],_0x15d7a8),_0x2d7fec['bind']('isDirty')['to'](_0x15d7a8,'isDirty'),_0x2d7fec['bind']('length')['to'](_0x15d7a8),_0x2d7fec['bind']('type')['to'](_0x15d7a8,'type',_0x291817=>'suggestion-'+_0x291817),this['_annotationViews']['set'](_0x314fcc['id'],_0x2d7fec));const _0x1208b4=_0x1c3659['createCommentThreadController'](_0x314fcc['commentThread'],_0x15d7a8),_0x28d103=new oe(_0x32e6b5,_0x314fcc,_0x15d7a8,_0x1208b4),_0x38eb7d=_0x314fcc['getAllAdjacentSuggestions']()['filter'](_0x3d9916=>_0x3d9916['isInContent']);_0x15d7a8['descriptionParts']=_0x32e6b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x38eb7d),this['_suggestionToController']['set'](_0x314fcc,_0x28d103),this['_viewToController']['set'](_0x15d7a8,_0x28d103);const _0x414356=_0x1a7809['createAnnotation']({'view':_0x2d7fec,'target':()=>{const _0x34019a=[],_0x306242=_0x314fcc['getAllAdjacentSuggestions']()['filter'](_0x5671e3=>_0x5671e3['isInContent']);for(const _0x2615bb of _0x306242)_0x34019a['push'](..._0x2615bb['getMarkers']());return _0x362eea(_0x32e6b5['editing'],_0x34019a);},'type':()=>'suggestion-'+_0x28d103['view']['type']});_0x1c3659['_bindAnnotationToEditors'](_0x15d7a8,_0x414356),_0x1a7809['add'](_0x414356),_0x3a1e26['registerAnnotation'](_0x414356);}['_destroyController'](_0x22b1f7){const _0x40b171=this['editor']['plugins']['get']('CommentsRepository'),_0x1815f2=this['editor']['plugins']['get']('Annotations'),_0x3a9368=this['_suggestionToController']['get'](_0x22b1f7),_0x4f42d6=_0x3a9368['view'],_0x5a2688=_0x1815f2['getByInnerView'](_0x4f42d6);_0x40b171['_unbindEditors'](_0x4f42d6),_0x5a2688&&_0x1815f2['remove'](_0x5a2688),this['_suggestionToController']['delete'](_0x22b1f7),this['_viewToController']['delete'](_0x4f42d6),_0x3a9368['destroy']();}['_updateController'](_0x4ebce1){if(!_0x4ebce1['isInContent']||!this['_suggestionToController']['has'](_0x4ebce1))return;const _0xed3e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b5810=this['_suggestionToController']['get'](_0x4ebce1),_0x3f56cc=_0x4ebce1['getAllAdjacentSuggestions']();_0x1b5810['view']['descriptionParts']=_0xed3e3['descriptionFactory']['getDescriptions'](_0x3f56cc);}['destroy'](){for(const _0x1bbf35 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1bbf35);for(const _0x4773ac of this['_annotationViews']['values']())_0x4773ac['mainView']['destroy']();super['destroy']();}}function ae(_0x4daf2d){return'model'in _0x4daf2d;}class k extends _0x3be5df{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x39717b){this['editor']['plugins']['get'](p)['adapter']=_0x39717b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x428319){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x428319);}['getSuggestions']({skipNotAttached:_0x31d980=!0x1,toJSON:_0xc359ba=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x31d980,'toJSON':_0xc359ba});}['getSuggestion'](_0x30565f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x30565f);}}const T=['Pagination'];class P extends _0x3be5df{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4991d8=this['editor'];if(_0x4991d8['config']['define']('trackChangesData.editorCreator',_0x5893aa=>{const _0x52a883=_0x4991d8['model']['document']['getRootNames']()['reduce']((_0x4bcfe4,_0x599c3f)=>(_0x4bcfe4[_0x599c3f]='',_0x4bcfe4),{});return _0x4991d8['constructor']['create'](_0x52a883,_0x5893aa);}),'function'!=typeof _0x4991d8['config']['get']('trackChangesData')['editorCreator'])throw new _0x357ebd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x572577){return N(this['editor'],!0x0,_0x572577);}['getDataWithDiscardedSuggestions'](_0x536c77){return N(this['editor'],!0x1,_0x536c77);}}class D extends _0x3be5df{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x59c6ff){super(_0x59c6ff),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(_0x1239e9){return void 0x0!==_0x1239e9['getRootsAttributes'];}async function N(_0x2d9250,_0x5b798b,_0x4e476f){const _0x1fc11c=_0x3c199d(_0x2d9250,T);_0x1fc11c['plugins']['push'](p,D),_0x1fc11c['rootsAttributes']=v(_0x2d9250)?_0x2d9250['getRootsAttributes']():void 0x0;const _0x26c9b7=document['createDocumentFragment'](),_0x4996e0=_0x2d9250['config']['get']('trackChangesData')['editorCreator'],_0x23295c=await _0x4996e0(_0x1fc11c,()=>function(_0x2c8185){const _0x24b106=document['createElement']('div');return _0x2c8185['appendChild'](_0x24b106),_0x24b106;}(_0x26c9b7));!function(_0x145a80,_0x41f129){const _0x4256af=_0x145a80['model']['document']['getRootNames']()['reduce']((_0xcfbdbb,_0x2baeb0)=>(_0xcfbdbb[_0x2baeb0]=_0x145a80['data']['get']({'rootName':_0x2baeb0}),_0xcfbdbb),{}),_0x292501=_0x145a80['plugins']['get']('Users')['users']['map'](_0x2e25de=>({'id':_0x2e25de['id'],'name':_0x2e25de['name']})),_0x427fea=_0x145a80['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17751c=_0x145a80['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x517608=_0x41f129['plugins']['get']('Users'),_0x1b4f12=_0x41f129['plugins']['get']('TrackChangesEditing'),_0x1d37e4=_0x41f129['plugins']['get']('CommentsRepository');for(const _0x10426a of _0x292501)_0x517608['getUser'](_0x10426a['id'])||_0x517608['addUser'](_0x10426a);_0x517608['me']||_0x517608['useAnonymousUser']();for(const _0x4d5164 of _0x427fea)_0x1b4f12['addSuggestionData'](_0x4d5164);for(const _0x439cd6 of _0x17751c)_0x1d37e4['addCommentThread'](_0x439cd6);_0x41f129['data']['set'](_0x4256af);}(_0x2d9250,_0x23295c),_0x23295c['execute'](_0x5b798b?'acceptAllSuggestions':'discardAllSuggestions');const _0x1d6e7a=v(_0x23295c)?_0x23295c['getFullData'](_0x4e476f):_0x23295c['data']['get'](_0x4e476f);return await _0x23295c['destroy'](),_0x1d6e7a;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x6b635c,PendingActions as _0x64d1b5,icons as _0x2d9f06}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1be5c9,ObservableMixin as _0xf726f3,uid as _0x367149,insertToPriorityArray as _0x472a08,priorities as _0x229655,logWarning as _0x3d3b87,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x331075,View as _0x212140,ButtonView as _0x41140c,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2d7bb2,hashObject as _0x3b5e4d,surroundingMarkersDetector as _0x377118,trimHtml as _0x3e73f0,UserView as _0x5a6558,getDateTimeFormatter as _0x347bd5,getAllMarkersDomElementsSorted as _0x1d7c3e,sanitizeEditorConfig as _0x34bd0b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2b658e,LiveRange as _0x2bf34c,LivePosition as _0xd3d076}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x897d52,toWidget as _0x31a0ad}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x245aed,set as _0x293ca6,isEqual as _0x4754b0,unset as _0x6cafd5,omit as Bt}from'lodash-es';import{Delete as _0x59baee,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x28a696,ShiftEnter as _0x3a402f}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2b2087,_0x42e802){super(_0x2b2087),this['_enabledCommands']=_0x42e802,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 _0x1168ff of this['editor']['commands']['commands']())_0x1168ff['affectsData']&&!this['_enabledCommands']['has'](_0x1168ff)&&_0x1168ff['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xc71f33 of this['editor']['commands']['commands']())_0xc71f33['affectsData']&&!this['_enabledCommands']['has'](_0xc71f33)&&_0xc71f33['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x20eb46,_0x1266b5){super(_0x20eb46),this['_suggestions']=_0x1266b5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x222f55){const _0x3739dc=this['_suggestions']['get'](_0x222f55);if(!_0x3739dc)throw new _0x1be5c9('track-changes-accept-suggestion-not-found',this);const _0x306ef5=_0x3739dc['getRanges']();this['editor']['model']['canEditAt'](_0x306ef5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3739dc);}}class B extends ts{['_suggestions'];constructor(_0x3f36e4,_0x1a5e3c){super(_0x3f36e4),this['_suggestions']=_0x1a5e3c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24f62a){const _0xbda902=this['_suggestions']['get'](_0x24f62a);if(!_0xbda902)throw new _0x1be5c9('track-changes-discard-suggestion-not-found',this);const _0x335a06=_0xbda902['getRanges']();this['editor']['model']['canEditAt'](_0x335a06)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xbda902);}}function ss(_0x4ac2be){return _0x4ac2be['sort']((_0x2f06c3,_0x383f54)=>'deletion'==_0x2f06c3['type']&&'deletion'!=_0x383f54['type']?-0x1:'deletion'!=_0x2f06c3['type']&&'deletion'==_0x383f54['type']?0x1:0x0);}function to(_0x566413,_0xfea53){let _0x28bc9b,_0x170269=0x0;const _0x594279=[],_0x2ecb27=_0xfea53['schema'];for(;_0x170269<_0x566413['length'];){const _0x4411c8=_0x566413[_0x170269],_0x4c2821=_0x566413[_0x170269+0x1];_0x28bc9b||(_0x28bc9b=_0xfea53['createPositionBefore'](_0x4411c8)),co(_0xfea53,_0x4411c8,_0x4c2821)||(_0x594279['push'](_0xfea53['createRange'](_0x28bc9b,_0x2ecb27['isObject'](_0x4411c8)?_0xfea53['createPositionAfter'](_0x4411c8):_0xfea53['createPositionAt'](_0x4411c8,'end'))),_0x28bc9b=null),_0x170269++;}return _0x594279;}function co(_0x5acdb3,_0x3a5c20,_0x2b7ce4){if(!_0x2b7ce4)return!0x1;const _0x1d8699=_0x5acdb3['createPositionAfter'](_0x3a5c20),_0x45c49a=_0x5acdb3['createPositionBefore'](_0x2b7ce4);return _0x1d8699['isTouching'](_0x45c49a);}function rs(_0x37a07d,_0x18ede8,_0x59743d){for(;_0x59743d['length'];){const _0x39318e=_0x59743d['splice'](0x0,0x64);_0x37a07d['change'](()=>{for(const _0x7c1783 of _0x39318e)_0x7c1783['isInContent']&&_0x18ede8['execute'](_0x7c1783['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x12614e,_0x20e787,_0x37c8ae){super(_0x12614e),this['_command']=_0x20e787,this['_suggestions']=_0x37c8ae,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1360bc=Array['from'](this['_suggestions']['values']())['some'](_0x5a049b=>_0x5a049b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1360bc;}['execute'](){const _0x572dfe=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4fe90b of _0x572dfe){const _0x90102=_0x4fe90b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x90102))return;}rs(this['editor']['model'],this['_command'],_0x572dfe);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1c5f2e,_0x5dec21,_0x410880){super(_0x1c5f2e),this['_command']=_0x5dec21,this['_suggestions']=_0x410880,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x55e0e7=this['editor']['model']['document']['selection'],_0x484f0a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10f1a8,_0x538dde){const _0x54df1e=Array['from'](_0x10f1a8['getRanges']()),_0x64b678=new Set();for(const _0x546fae of _0x538dde)if(_0x546fae['isInContent']){for(const _0x2a370a of _0x54df1e)for(const _0x335ded of _0x546fae['getRanges']())(_0x2a370a['isIntersecting'](_0x335ded)||_0x10f1a8['isCollapsed']&&!_0x546fae['isMultiRange']&&_0x546fae['next']&&_0x335ded['end']['isTouching'](_0x2a370a['start']))&&_0x64b678['add'](_0x546fae);}return _0x64b678;}(_0x55e0e7,_0x484f0a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1540bd=ss(Array['from'](this['_selectedSuggestions']));for(const _0x39e8f2 of _0x1540bd){const _0x3a9de6=_0x39e8f2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a9de6))return;}rs(this['editor']['model'],this['_command'],_0x1540bd);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xf726f3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x18e7dd,_0x3d2a75){super(),this['id']=_0x3d2a75['id'],this['type']=_0x3d2a75['type'],this['subType']=_0x3d2a75['subType']||null,this['author']=_0x3d2a75['author'],this['creator']=_0x3d2a75['creator']||_0x3d2a75['author'],this['isExternal']=Boolean(_0x3d2a75['attributes']&&_0x3d2a75['attributes']['@external']),this['data']=null,this['_model']=_0x18e7dd,this['_onAccept']=_0x3d2a75['onAccept'],this['_onDiscard']=_0x3d2a75['onDiscard'],this['_onAttributesChange']=_0x3d2a75['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3d2a75['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 _0xb89198=this;for(;_0xb89198['previous'];)_0xb89198=_0xb89198['previous'];return _0xb89198;}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'](_0x300184){this['_markerNames']['add'](_0x300184);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1e18d1=>this['_model']['markers']['get'](_0x1e18d1))['filter'](_0x4c672b=>_0x4c672b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3d0937=>{for(const _0x47f0e0 of this['getMarkers']())_0x3d0937['removeMarker'](_0x47f0e0);}),this['_markerNames']['clear']();}['removeMarker'](_0x444281){this['_model']['change'](_0x59ce18=>{_0x59ce18['removeMarker'](_0x444281);}),this['_markerNames']['delete'](_0x444281);}['addRange'](_0x3aa0c1){const _0x273546='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x273546),this['_model']['change'](_0x47f985=>{_0x47f985['addMarker'](_0x273546,{'range':_0x3aa0c1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x32ce4a){for(const _0x3ae649 of this['getRanges']())if(_0x3ae649['isIntersecting'](_0x32ce4a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xd9f2bf=>_0xd9f2bf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x380378,_0x4b650e)=>[..._0x380378,..._0x4b650e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ed7c2=this['getRanges']();if(0x1!=_0x2ed7c2['length'])return null;const _0x8b5e8f=_0x2ed7c2[0x0],_0x485d6f=_0x8b5e8f['start']['nodeAfter'],_0x4b3377=_0x8b5e8f['end']['nodeBefore'];return _0x485d6f instanceof _0x2b658e?_0x485d6f!=_0x4b3377?null:_0x485d6f: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 _0x2b3955=[];let _0x2ce595=this['head'];for(;_0x2ce595;)_0x2b3955['push'](_0x2ce595),_0x2ce595=_0x2ce595['next'];return _0x2b3955;}['setAttribute'](_0x5c5fa9,_0x37760b){const _0x4baf14=_0x245aed(this['attributes']);_0x293ca6(_0x4baf14,_0x5c5fa9,_0x37760b),_0x4754b0(_0x4baf14,this['attributes'])||(this['attributes']=_0x4baf14,this['_onAttributesChange'](_0x4baf14));}['removeAttribute'](_0x41310d){const _0x53ca1d=_0x245aed(this['attributes']);_0x6cafd5(_0x53ca1d,_0x41310d),_0x4754b0(_0x53ca1d,this['attributes'])||(this['attributes']=_0x53ca1d,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 _0x367149()['substr'](0x1,0x5);}}function o(_0x5190a4,_0x107731,_0x27ee73){const t=_0x5190a4['t'];switch(_0x107731){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',_0x27ee73);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x27ee73);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x27ee73);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x27ee73);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x27ee73);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',_0x27ee73);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x27ee73);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',_0x27ee73);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x27ee73);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x27ee73);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x27ee73);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x27ee73);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x27ee73);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x27ee73);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x27ee73);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x27ee73);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x27ee73);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x27ee73);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x27ee73);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x27ee73);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x27ee73);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x27ee73);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x27ee73);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'},_0x27ee73);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x27ee73);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x27ee73);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x27ee73);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x27ee73);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x27ee73);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'},_0x27ee73);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x27ee73);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x27ee73);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x27ee73);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x27ee73);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'},_0x27ee73);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x27ee73);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'},_0x27ee73);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'},_0x27ee73);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x27ee73);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'},_0x27ee73);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x27ee73);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'},_0x27ee73);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x27ee73);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x27ee73);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x27ee73);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'},_0x27ee73);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x107731;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38cb00,_0x24babd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38cb00,this['_locale']=_0x24babd;}['getDescriptions'](_0x3028c8){const _0xa3993f=[],_0x51d067=new Set(),_0x1b59c1=new Set();for(let _0x5a5368=0x0;_0x5a5368<_0x3028c8['length'];_0x5a5368++){const _0x1dae28=_0x3028c8[_0x5a5368];if(!_0x1dae28['isInContent'])continue;const _0x2272b7=this['_handleCustomCallbackDescription'](_0x1dae28);if(_0x2272b7){if(null!=_0x1dae28['subType']){if(_0x51d067['has'](_0x1dae28['subType']))continue;_0x51d067['add'](_0x1dae28['subType']);}_0xa3993f['push'](_0x2272b7);}else{if('attribute'!=_0x1dae28['type'])'insertion'!=_0x1dae28['type']&&'deletion'!=_0x1dae28['type']||this['_handleInsertRemoveSuggestionDescription'](_0xa3993f,_0x1dae28,_0x3028c8[_0x5a5368+0x1]);else{const _0x5bc792=_0x1dae28['data']['key'];if(_0x1b59c1['has'](_0x5bc792))continue;_0x1b59c1['add'](_0x1dae28['data']['key']),_0x5bc792==m?this['_handleRenameSuggestionDescription'](_0xa3993f,_0x1dae28):this['_handleAttributeSuggestionDescription'](_0xa3993f,_0x1dae28);}}}return this['_resolveDescriptionItems'](_0xa3993f);}['registerDescriptionCallback'](_0x274cf5){this['_customCallbacks']['push'](_0x274cf5);}['registerElementLabel'](_0x4f33cd,_0xcde71e,_0x348974=_0x229655['normal']){'function'==typeof _0x4f33cd?_0x472a08(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4f33cd,'label':_0xcde71e,'priority':_0x348974}):this['_itemLabels']['set'](_0x4f33cd,_0xcde71e);}['registerAttributeLabel'](_0x50d5f6,_0x5dc31c){this['_attributeLabels']['set'](_0x50d5f6,_0x5dc31c);}['getItemLabel'](_0x4aabf0,_0x4c3f86=0x1){let _0x33a7fc;for(const _0x209d4 of this['_itemLabelsCallbacks'])if(_0x209d4['matchingCallback'](_0x4aabf0)){_0x33a7fc=_0x209d4['label'];break;}return _0x33a7fc||(_0x33a7fc=this['_itemLabels']['get'](_0x4aabf0['name'])),_0x33a7fc?_0x33a7fc(_0x4c3f86):0x1!==_0x4c3f86?_0x4c3f86+'\x20'+_0x4aabf0['name']+'s':''+_0x4aabf0['name'];}['_addDescriptionItems'](_0x58061a,_0x3afa63){const _0xcdee71=_0x3afa63['getFirstRange']()['getWalker'](),_0x5ddf3e='insertion'==_0x3afa63['type']?'add':'remove';for(const _0x120d8e of _0xcdee71){const _0x298c4f=_0x120d8e['item'],_0x2666c3=_0x58061a[_0x58061a['length']-0x1];if(_0x298c4f['is']('$textProxy'))_0x2666c3&&_0x2666c3['type']['indexOf']('Container')>-0x1&&_0x58061a['pop'](),_0x2666c3&&'text'==_0x2666c3['type']?_0x2666c3[_0x5ddf3e]+=_0x298c4f['data']:_0x58061a['push']({'type':'text','add':'add'==_0x5ddf3e?_0x298c4f['data']:'','remove':'remove'==_0x5ddf3e?_0x298c4f['data']:''});else{if(this['_schema']['isObject'](_0x298c4f)){const _0x22b0ba=_0x298c4f;if(_0x2666c3&&_0x2666c3['type']['indexOf']('Container')>-0x1&&_0x58061a['pop'](),'elementEnd'==_0x120d8e['type'])continue;_0x2666c3&&_0x2666c3['type']==_0x5ddf3e+'Object'&&_0x2666c3['element']['name']==_0x22b0ba['name']?_0x2666c3['quantity']++:_0x58061a['push']({'type':_0x5ddf3e+'Object','element':_0x22b0ba,'quantity':0x1}),_0xcdee71['skip'](_0x3bfd2a=>!('elementEnd'==_0x3bfd2a['type']&&_0x3bfd2a['item']==_0x298c4f));}else{if(this['_schema']['checkChild'](_0x298c4f,'$text')||_0x298c4f['is']('element','softBreak')){const _0x3c835f=_0x298c4f;if('add'==_0x5ddf3e&&'elementStart'==_0x120d8e['type']||'remove'==_0x5ddf3e&&'elementEnd'==_0x120d8e['type'])continue;if(_0x2666c3&&-0x1==_0x2666c3['type']['indexOf']('Container')){'text'==_0x2666c3['type']&&(_0x2666c3[_0x5ddf3e]+='\x0a');continue;}let _0x4cb236;if(_0x4cb236='add'==_0x5ddf3e?_0x3c835f['nextSibling']&&!this['_schema']['isObject'](_0x3c835f['nextSibling'])?_0x3c835f['nextSibling']:null:_0x3c835f['previousSibling']&&!this['_schema']['isObject'](_0x3c835f['previousSibling'])?_0x3c835f['previousSibling']:null,_0x3c835f['isEmpty']||_0x4cb236&&_0x4cb236['isEmpty']){const _0x18a0d6=_0x4cb236&&_0x4cb236['isEmpty']?_0x4cb236:_0x3c835f;_0x2666c3&&_0x2666c3['type']==_0x5ddf3e+'EmptyContainer'&&_0x2666c3['element']['name']==_0x18a0d6['name']?_0x2666c3['quantity']++:_0x58061a['push']({'type':_0x5ddf3e+'EmptyContainer','element':_0x18a0d6,'quantity':0x1});}else _0x58061a['push']({'type':_0x5ddf3e+'Container','element':_0x3c835f});}}}}}['_resolveDescriptionItems'](_0x514299){const _0x17194c=this['_locale'],_0x94c75e=[],_0x307973=[],_0x350efc=[];for(const _0x3e6ba3 of _0x514299)switch(_0x3e6ba3['type']){case'text':if(_0x3e6ba3['add']=_0x3e6ba3['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3e6ba3['remove']=_0x3e6ba3['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3e6ba3['add']&&''!=_0x3e6ba3['remove']){_0x94c75e['push']({'type':'replace','content':o(_0x17194c,'REPLACE_TEXT',['\x22'+_0x3e6ba3['remove']+'\x22','\x22'+_0x3e6ba3['add']+'\x22'])});continue;}if(null!=_0x3e6ba3['add']['match'](/^ +$/)){_0x94c75e['push']({'type':'insertion','content':o(_0x17194c,'*Insert:*\x20%0',o(_0x17194c,'ELEMENT_SPACE',_0x3e6ba3['add']['length']))});continue;}if(null!=_0x3e6ba3['remove']['match'](/^ +$/)){_0x94c75e['push']({'type':'deletion','content':o(_0x17194c,'*Remove:*\x20%0',o(_0x17194c,'ELEMENT_SPACE',_0x3e6ba3['remove']['length']))});continue;}if(''!=_0x3e6ba3['add']){_0x94c75e['push']({'type':'insertion','content':o(_0x17194c,'*Insert:*\x20%0','\x22'+_0x3e6ba3['add']+'\x22')});continue;}_0x94c75e['push']({'type':'deletion','content':o(_0x17194c,'*Remove:*\x20%0','\x22'+_0x3e6ba3['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x94c75e['push']({'type':'insertion','content':o(_0x17194c,'*Insert:*\x20%0',this['getItemLabel'](_0x3e6ba3['element'],_0x3e6ba3['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x94c75e['push']({'type':'deletion','content':o(_0x17194c,'*Remove:*\x20%0',this['getItemLabel'](_0x3e6ba3['element'],_0x3e6ba3['quantity']))});continue;case'addContainer':_0x94c75e['push']({'type':'insertion','content':o(_0x17194c,'*Split:*\x20%0',this['getItemLabel'](_0x3e6ba3['element'],_0x3e6ba3['quantity']))});continue;case'removeContainer':_0x94c75e['push']({'type':'deletion','content':o(_0x17194c,'*Merge:*\x20%0',this['getItemLabel'](_0x3e6ba3['element'],_0x3e6ba3['quantity']))});continue;case'addFormat':_0x307973['push'](_0x3e6ba3['key']);continue;case'removeFormat':_0x350efc['push'](_0x3e6ba3['key']);continue;default:_0x94c75e['push'](_0x3e6ba3);}if(_0x307973['length']){const _0xf9fe79=_0x307973['map'](_0x2b5278=>this['_attributeLabels']['has'](_0x2b5278)?this['_attributeLabels']['get'](_0x2b5278):_0x2b5278)['join'](',\x20');_0x94c75e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xf9fe79)});}if(_0x350efc['length']){const _0x466aa1=_0x350efc['map'](_0x2b38e3=>this['_attributeLabels']['has'](_0x2b38e3)?this['_attributeLabels']['get'](_0x2b38e3):_0x2b38e3)['join'](',\x20');_0x94c75e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x466aa1)});}return _0x94c75e;}['_handleCustomCallbackDescription'](_0x32dca2){for(const _0x14e56f of this['_customCallbacks']){const _0x54c8f6=_0x14e56f(_0x32dca2);if(_0x54c8f6&&'type'in _0x54c8f6)return _0x54c8f6;}}['_handleAttributeSuggestionDescription'](_0x5b18e8,_0x4c3178){const _0x120f69=_0x4c3178['data'],_0x26371a=void 0x0===_0x120f69['newValue']?'removeFormat':'addFormat';_0x5b18e8['push']({'type':_0x26371a,'key':_0x120f69['key']});}['_handleRenameSuggestionDescription'](_0x3d4a60,_0x19842e){_0x3d4a60['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x19842e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x586ad7,_0x19dc85,_0x471863){if(this['_addDescriptionItems'](_0x586ad7,_0x19dc85),_0x471863&&_0x471863['getFirstRange']()&&!_0x19dc85['getFirstRange']()['end']['isEqual'](_0x471863['getFirstRange']()['start'])){const _0x279d1c=_0x586ad7[_0x586ad7['length']-0x1],_0x1f9890='insertion'==_0x19dc85['type']?'add':'remove';_0x279d1c&&'text'==_0x279d1c['type']&&(_0x279d1c[_0x1f9890]+='\x0a');}}}class E extends _0x6b635c{['afterInit'](){const _0x2e84ba=this['editor'],_0x4c71f0=_0x2e84ba['plugins']['get']('TrackChangesEditing');_0x2e84ba['commands']['get']('showAIAssistant')&&_0x4c71f0['enableCommand']('showAIAssistant');}}class V extends _0x6b635c{['afterInit'](){const _0x3e1fb9=this['editor'],_0xe2696d=_0x3e1fb9['locale'];if(!_0x3e1fb9['plugins']['has']('AlignmentEditing'))return;const _0x57660d=_0x3e1fb9['plugins']['get']('TrackChangesEditing');_0x57660d['enableDefaultAttributesIntegration']('alignment'),_0x57660d['registerBlockAttribute']('alignment'),_0x57660d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xe2696d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4eb839=this['editor'],_0x28434e=_0x4eb839['locale'];_0x4eb839['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cbc35=>{if('formatBlock'!=_0x3cbc35['type'])return;const {data:_0x2cb5e9}=_0x3cbc35;if(_0x2cb5e9&&'alignment'==_0x2cb5e9['commandName']){const _0x2c5ad5=_0x2cb5e9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x28434e,'*Format:*\x20%0',function(_0x50e274){switch(_0x50e274){case'left':return o(_0x28434e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x28434e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x28434e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x28434e,'FORMAT_JUSTIFY_TEXT');}}(_0x2c5ad5))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x6b635c{['afterInit'](){const _0x482d42=this['editor'],_0x354d53=_0x482d42['plugins']['get']('TrackChangesEditing'),_0x41e692=_0x482d42['locale'];for(const _0x1faec4 of ti){if(!_0x482d42['plugins']['has'](_0x1faec4))continue;const _0x2cbadf=_0x1faec4['slice'](0x0,-0x7)['toLowerCase'](),_0x287db7='FORMAT_'+_0x2cbadf['toUpperCase']();_0x354d53['enableDefaultAttributesIntegration'](_0x2cbadf),_0x354d53['registerInlineAttribute'](_0x2cbadf),_0x354d53['descriptionFactory']['registerAttributeLabel'](_0x2cbadf,o(_0x41e692,_0x287db7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a4def=this['editor'],_0x12bf3d=_0x2a4def['locale'],_0x12d9d3=_0x2a4def['plugins']['get']('TrackChangesEditing');function _0x1bfdcc(_0x1ff7fe,_0x1b639a){_0x12d9d3['descriptionFactory']['registerDescriptionCallback'](_0x4f9b2c=>{if('formatInline'!=_0x4f9b2c['type'])return;const {data:_0x220a73}=_0x4f9b2c;return _0x220a73&&_0x220a73['commandName']===_0x1ff7fe?_0x220a73['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12bf3d,'*Format:*\x20%0',_0x1b639a)}:{'type':'format','content':o(_0x12bf3d,'*Remove\x20format:*\x20%0',_0x1b639a)}:void 0x0;});}_0x1bfdcc('bold',o(_0x12bf3d,'FORMAT_BOLD')),_0x1bfdcc('italic',o(_0x12bf3d,'FORMAT_ITALIC')),_0x1bfdcc('underline',o(_0x12bf3d,'FORMAT_UNDERLINE')),_0x1bfdcc('code',o(_0x12bf3d,'FORMAT_CODE')),_0x1bfdcc('strikethrough',o(_0x12bf3d,'FORMAT_STRIKETHROUGH')),_0x1bfdcc('subscript',o(_0x12bf3d,'FORMAT_SUBSCRIPT')),_0x1bfdcc('superscript',o(_0x12bf3d,'FORMAT_SUPERSCRIPT'));}}class O extends _0x6b635c{['afterInit'](){const _0x12f2d0=this['editor'],_0x1fc8a8=_0x12f2d0['locale'];if(!_0x12f2d0['plugins']['has']('BlockQuoteEditing'))return;const _0x4d39b4=_0x12f2d0['plugins']['get']('TrackChangesEditing'),_0x363c4e=this['editor']['commands']['get']('blockQuote');_0x4d39b4['enableCommand']('blockQuote',(_0x510cd5,_0x496b04={})=>{const _0x19fa36=this['editor']['model']['document']['selection'],_0x540e17=_0x496b04&&void 0x0!==_0x496b04['forceValue']?_0x496b04['forceValue']:!_0x363c4e['value'];let _0x5ea83f=[];if(_0x540e17){const _0x57672f=Array['from'](_0x19fa36['getSelectedBlocks']())['filter'](_0x40f097=>oo(_0x40f097)||function(_0x2896ad,_0x1aa730){const _0xbeefdf=_0x1aa730['checkChild'](_0x2896ad['parent'],'blockQuote'),_0x318067=_0x1aa730['checkChild'](['$root','blockQuote'],_0x2896ad);return _0xbeefdf&&_0x318067;}(_0x40f097,this['editor']['model']['schema']));_0x5ea83f=to(_0x57672f,_0x12f2d0['model']);}else{const _0x24767f=Array['from'](_0x19fa36['getSelectedBlocks']())['filter'](_0x4ed320=>oo(_0x4ed320));_0x5ea83f=to(_0x24767f,_0x12f2d0['model']);}_0x12f2d0['model']['change'](()=>{for(const _0x46697a of _0x5ea83f)_0x4d39b4['markBlockFormat'](_0x46697a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x540e17}]});});}),_0x4d39b4['descriptionFactory']['registerDescriptionCallback'](_0x2b91d1=>{const {data:_0x28d2e4}=_0x2b91d1;if(_0x28d2e4&&'blockQuote'==_0x28d2e4['commandName']){const _0x21c243=o(_0x1fc8a8,'ELEMENT_BLOCK_QUOTE');return _0x28d2e4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fc8a8,'*Set\x20format:*\x20%0',_0x21c243)}:{'type':'format','content':o(_0x1fc8a8,'*Remove\x20format:*\x20%0',_0x21c243)};}});}}function oo(_0x52af1f){return'blockQuote'==_0x52af1f['parent']['name'];}class F extends _0x6b635c{['afterInit'](){const _0x2f6c0e=this['editor'];_0x2f6c0e['plugins']['has']('CaseChange')&&(_0x2f6c0e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2f6c0e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2f6c0e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x6b635c{['afterInit'](){const _0x3478c5=this['editor'];_0x3478c5['commands']['get']('ckbox')&&_0x3478c5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x6b635c{['afterInit'](){const _0x1086e8=this['editor'];if(!_0x1086e8['plugins']['has']('CodeBlock'))return;const _0x1d5338=_0x1086e8['plugins']['get']('TrackChangesEditing'),_0x2af6f1=_0x1086e8['locale'],_0x192a84=_0x1086e8['config']['get']('codeBlock')['languages'],_0x2f8682=_0x1086e8['commands']['get']('codeBlock');_0x1d5338['enableCommand']('indentCodeBlock'),_0x1d5338['enableCommand']('outdentCodeBlock'),_0x1d5338['enableCommand']('codeBlock',(_0x15c477,_0x143749={})=>{const _0x532107=_0x1086e8['model'],_0x315878=_0x1086e8['model']['document']['selection'],_0x2531de=_0x143749&&void 0x0!==_0x143749['forceValue']?_0x143749['forceValue']:!_0x2f8682['value'];let _0x16a013;_0x143749['language']||(_0x143749['language']=_0x192a84[0x0]['language']),_0x16a013=_0x2531de?Array['from'](_0x315878['getSelectedBlocks']())['filter'](_0x3d5246=>eo(_0x3d5246)||function(_0x5da29e,_0x1919b7){if(_0x5da29e['is']('rootElement')||_0x1919b7['isLimit'](_0x5da29e))return!0x1;return _0x1919b7['checkChild'](_0x5da29e['parent'],'codeBlock');}(_0x3d5246,_0x532107['schema'])):Array['from'](_0x315878['getSelectedBlocks']())['filter'](_0x5b6d58=>eo(_0x5b6d58));const _0x224927=to(_0x16a013,_0x532107);_0x532107['change'](()=>{for(const _0x36b8a1 of _0x224927)_0x1d5338['markBlockFormat'](_0x36b8a1,{'commandName':'codeBlock','commandParams':[{..._0x143749,'forceValue':_0x2531de}],'formatGroupId':'blockName'});});}),(_0x1d5338['descriptionFactory']['registerElementLabel']('codeBlock',_0x2c6574=>o(_0x2af6f1,'ELEMENT_CODE_BLOCK',_0x2c6574)),_0x1d5338['descriptionFactory']['registerDescriptionCallback'](_0x2fa3b3=>{if('formatBlock'!=_0x2fa3b3['type'])return;const _0x57a4f2=_0x2af6f1['t'],{data:_0x30bcae}=_0x2fa3b3;if(!_0x30bcae||'codeBlock'!=_0x30bcae['commandName'])return;const _0x4e6f9c=_0x30bcae['commandParams'][0x0]['language'],_0xcaf486=_0x57a4f2(_0x192a84['find'](_0x184456=>_0x184456['language']===_0x4e6f9c)['label'])['toLowerCase']();return _0x30bcae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2af6f1,'*Set\x20format:*\x20%0',o(_0x2af6f1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xcaf486+')')}:{'type':'format','content':o(_0x2af6f1,'*Remove\x20format:*\x20%0',o(_0x2af6f1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5ae139){return'codeBlock'==_0x5ae139['name'];}class H extends _0x6b635c{['afterInit'](){const _0x7befa8=this['editor'];if(!_0x7befa8['plugins']['has']('CommentsEditing'))return;_0x7befa8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4f0df3,_0x3cacba,_0x6d278f){const _0x510668=[];for(const _0x371bbf of _0x3cacba['getItems']())_0x371bbf['hasAttribute'](_0x4f0df3)&&_0x510668['push'](_0x6d278f['createRangeOn'](_0x371bbf));return _0x510668;}function _e(_0x5cb141,_0x38b9a2,{showActiveMarker:_0x5baefd=!0x0}={}){const _0x153332=_0x5cb141['plugins']['get']('TrackChangesEditing');return(_0x2469fc,_0x3bda9e,_0x26981f)=>{if(!_0x26981f['consumable']['test'](_0x3bda9e['markerRange'],_0x2469fc['name']))return;const _0x30ad3b=_0x3bda9e['markerRange']['getWalker'](),_0x58a4fb=_0x3bda9e['markerRange']['start'],_0x25ae21=_0x5cb141['model']['schema'];let _0x4fdcc9=null,_0x453d42=null,_0x3c76e2=!0x1,_0x488784=!0x1;for(const _0x10c54c of _0x30ad3b){const _0x207bf4=_0x10c54c['item'];_0x3c76e2=_0x3c76e2||_0x25ae21['isContent'](_0x207bf4);const _0x543e47=_0x26981f['mapper']['toViewElement'](_0x207bf4);if(_0x543e47&&_0x543e47['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10c54c['type']&&(_0x25ae21['isBlock'](_0x207bf4)&&!_0x25ae21['isLimit'](_0x207bf4)&&(_0x207bf4['nextSibling']||_0x58a4fb['isAtEnd']?_0x4fdcc9&&_0x4fdcc9['parent']==_0x207bf4||(_0x4fdcc9=_0x207bf4,_0x1f8c4c(_0x10c54c['previousPosition']),_0x488784=!0x0):_0x453d42=_0x453d42||_0x10c54c['previousPosition']));}function _0x1f8c4c(_0x5c402f){const _0x4be904=_0x26981f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38b9a2}),_0x4fbd3a=_0x26981f['mapper']['toViewPosition'](_0x5c402f);_0x5baefd&&_0x153332['activeMarkers']['includes'](_0x3bda9e['markerName'])&&_0x26981f['writer']['addClass']('ck-suggestion-marker--active',_0x4be904),_0x26981f['writer']['insert'](_0x4fbd3a,_0x4be904),_0x26981f['mapper']['bindElementToMarker'](_0x4be904,_0x3bda9e['markerName']);}_0x3c76e2||_0x488784||!_0x453d42||_0x1f8c4c(_0x453d42);};}class q extends _0x6b635c{static get['requires'](){return[_0x59baee];}['init'](){const _0x19c2f3=this['editor'],_0x15cc91=_0x19c2f3['plugins']['get']('TrackChangesEditing');_0x15cc91['enableCommand']('delete');const _0x2be10a=_0x19c2f3['commands']['get']('deleteForward');_0x15cc91['enableCommand']('deleteForward',(_0x124d90,_0x2bd60b={})=>{const _0x438aa6=_0x19c2f3['model']['createSelection'](_0x19c2f3['model']['document']['selection']);_0x438aa6['isCollapsed']&&_0x19c2f3['model']['modifySelection'](_0x438aa6,{'direction':'forward','unit':_0x2bd60b['unit']});const _0x487dc9=_0x438aa6['getFirstRange'](),_0x151184=_0x2bf34c['fromRange'](_0x487dc9);let _0x4a7429;_0x124d90(_0x2bd60b),_0x4a7429='$graveyard'==_0x151184['root']['rootName']?_0x19c2f3['model']['createRange'](_0x487dc9['start']):_0x19c2f3['model']['createRange'](_0x151184['start'],_0x151184['end']),_0x151184['detach'](),_0x19c2f3['model']['enqueueChange'](_0x2be10a['buffer']['batch'],_0x4d0fb7=>{_0x2be10a['buffer']['lock'](),_0x4d0fb7['setSelection'](_0x4d0fb7['createRange'](_0x4a7429['end'])),_0x2be10a['buffer']['unlock']();});}),_0x19c2f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x19c2f3,'merge'),{'priority':'high'}),_0x19c2f3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x20f881,_0x31bfa7,_0x1ed2ba)=>{_0x1ed2ba['options']['showSuggestionHighlights']&&_e(_0x19c2f3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x20f881,_0x31bfa7,_0x1ed2ba);},{'priority':'high'}),_0x19c2f3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2436e2,_0x44f87c,_0x507dea)=>{const _0x452bfc=_0x507dea['mapper']['markerNameToElements'](_0x44f87c['markerName']);if(_0x452bfc){for(const _0x8c0f23 of _0x452bfc)_0x8c0f23['is']('uiElement')&&(_0x507dea['mapper']['unbindElementFromMarkerName'](_0x8c0f23,_0x44f87c['markerName']),_0x507dea['writer']['remove'](_0x8c0f23));}},{'priority':'high'});}}class z extends _0x6b635c{['afterInit'](){const _0x1c95ce=this['editor'];if(!_0x1c95ce['plugins']['has']('ListEditing'))return;const _0x3d70a1=_0x1c95ce['locale'],_0x5e3755=_0x1c95ce['plugins']['get']('TrackChangesEditing'),_0x122ad6=_0x1c95ce['plugins']['has']('TodoListEditing'),_0x4291f3=!!_0x1c95ce['config']['get']('list.multiBlock');function _0x440d38(_0x22e91d){return{'type':'format','content':''+o(_0x3d70a1,'*Set\x20format:*\x20%0',_0x22e91d)};}function _0xf339f3(_0x179678){return{'type':'format','content':''+o(_0x3d70a1,'*Remove\x20format:*\x20%0',_0x179678)};}_0x5e3755['enableDefaultAttributesIntegration']('numberedList'),_0x5e3755['enableDefaultAttributesIntegration']('bulletedList'),_0x5e3755['enableDefaultAttributesIntegration']('customNumberedList'),_0x5e3755['enableDefaultAttributesIntegration']('customBulletedList'),_0x5e3755['enableDefaultAttributesIntegration']('indentList'),_0x5e3755['enableDefaultAttributesIntegration']('outdentList'),_0x5e3755['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5e3755['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5e3755['registerBlockAttribute']('listItemId'),_0x5e3755['registerBlockAttribute']('listType'),_0x5e3755['registerBlockAttribute']('listIndent'),_0x4291f3&&(_0x5e3755['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5e3755['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x122ad6&&(_0x5e3755['enableDefaultAttributesIntegration']('todoList'),_0x5e3755['enableDefaultAttributesIntegration']('checkTodoList'),_0x5e3755['registerBlockAttribute']('todoListChecked'),_0x5e3755['descriptionFactory']['registerDescriptionCallback'](_0x11bc65=>{const {data:_0x30c370}=_0x11bc65;if(_0x30c370&&'todoListChecked'==_0x30c370['key'])return{'type':'format','content':_0x30c370['newValue']?o(_0x3d70a1,'*Check\x20item*'):o(_0x3d70a1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d812d=>{if(_0x2d812d['batch']['isUndo'])return!0x1;let _0x40c889=!0x1;const _0x1e1c9b=_0x5e3755['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e1dc5=>'todoListChecked'===_0x5e3755['_getAttributeKey'](_0x5e1dc5));for(const _0x30bc7f of _0x1e1c9b){'todo'!=_0x30bc7f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5e3755['_findSuggestions'](_0x30bc7f['getFirstRange'](),'attribute')['find'](_0x23480e=>'listType'===_0x5e3755['_getAttributeKey'](_0x23480e['suggestion']))||(_0x2d812d['removeMarker'](_0x30bc7f['getFirstMarker']()),_0x40c889=!0x0));}return _0x40c889;})),_0x5e3755['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3d70a1,'FORMAT_INDENT'));const _0x2d1e1c={'type':'format','content':''};_0x5e3755['descriptionFactory']['registerDescriptionCallback'](_0x26ce88=>{const {data:_0x48e696}=_0x26ce88;if(!_0x48e696||'listType'!=_0x48e696['key'])return;let _0x1da1f7=_0x26ce88['head'];for(;_0x1da1f7;){if(_0x1da1f7['data']&&(('listStyle'==_0x1da1f7['data']['key']||'listMarkerStyle'==_0x1da1f7['data']['key'])&&(_0x1da1f7['data']['newValue']&&'default'!=_0x1da1f7['data']['newValue']||'default'!=_0x1da1f7['data']['oldValue']&&!_0x48e696['newValue'])||!_0x4291f3&&_0x1da1f7['data']['key']==m))return _0x2d1e1c;_0x1da1f7=_0x1da1f7['next'];}if(null==_0x48e696['newValue'])switch(_0x48e696['oldValue']){case'bulleted':return _0xf339f3(o(_0x3d70a1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf339f3(o(_0x3d70a1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf339f3(o(_0x3d70a1,'ELEMENT_TODO_LIST'));}switch(_0x48e696['newValue']){case'bulleted':return _0x440d38(o(_0x3d70a1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x440d38(o(_0x3d70a1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x440d38(o(_0x3d70a1,'ELEMENT_TODO_LIST'));}}),_0x5e3755['descriptionFactory']['registerDescriptionCallback'](_0x62b043=>{const {data:_0x197352}=_0x62b043;if(_0x197352&&'listIndent'==_0x197352['key'])return null==_0x197352['newValue']||null==_0x197352['oldValue']&&0x0==_0x197352['newValue']?_0x2d1e1c:void 0x0;}),_0x5e3755['descriptionFactory']['registerDescriptionCallback'](_0x2949ef=>{if('attribute'!=_0x2949ef['type'])return;const {data:_0x4c1c4e}=_0x2949ef;if(!_0x4c1c4e||'listItemId'!=_0x4c1c4e['key'])return;const _0x44ebdb=le(_0x2949ef);return'newValue'==_0x44ebdb?{'type':'format','content':o(_0x3d70a1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x44ebdb?{'type':'format','content':o(_0x3d70a1,'*Split:*\x20list\x20item')}:_0x2d1e1c;}),_0x1c95ce['model']['document']['registerPostFixer'](_0x42827f=>this['listItemIdFixer'](_0x42827f)),_0x1c95ce['model']['document']['registerPostFixer'](_0x9b9c2e=>this['noTrackChangesFixer'](_0x9b9c2e)),_0x1c95ce['model']['document']['registerPostFixer'](_0xf817b=>this['assureChains'](_0xf817b)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x303bc7){if(_0x303bc7['batch']['isUndo']||!_0x303bc7['batch']['isLocal'])return!0x1;let _0x7e913c=!0x1;const _0xff27b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33dccc=>_0x33dccc['data']&&'listItemId'==_0x33dccc['data']['key'])['filter'](_0x3ab780=>_0x3ab780['data']['newValue']&&_0x3ab780['data']['oldValue']);for(const _0x2c1c1a of _0xff27b)le(_0x2c1c1a)||(_0x303bc7['removeMarker'](_0x2c1c1a['getFirstMarker']()),_0x7e913c=!0x0);return _0x7e913c;}['noTrackChangesFixer'](_0x1c8462){if(_0x1c8462['batch']['isUndo']||!_0x1c8462['batch']['isLocal'])return!0x1;const _0x194bd4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x194bd4['trackChangesCommand']['value'])return!0x1;let _0x3e6f26=!0x1;const _0x34531f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x516440=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x249804=>'attribute'==_0x249804['type'])['filter'](_0x49dc37=>_0x34531f['includes'](_0x49dc37['attributeKey']));if(0x0==_0x516440['length'])return _0x3e6f26;for(const _0x370017 of _0x516440){const _0x5d3cd5=_0x194bd4['_findSuggestions'](_0x370017['range'],'attribute')['filter'](_0xb70e39=>!_0xb70e39['meta']['isNextTo'])['map'](_0x177e6e=>_0x177e6e['suggestion'])['filter'](_0x1d5d2b=>{const _0x1059b4=_0x194bd4['_getAttributeKey'](_0x1d5d2b);return _0x34531f['includes'](_0x1059b4);});if(_0x5d3cd5['length']){for(const _0x2395d7 of _0x5d3cd5)_0x1c8462['removeMarker'](_0x2395d7['getFirstMarker']());_0x3e6f26=!0x0;}}return _0x3e6f26;}['assureChains'](_0x1be9ba){if(_0x1be9ba['batch']['isUndo']||!_0x1be9ba['batch']['isLocal'])return!0x1;const _0x420844=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2cc2fa=!0x1;const _0x3bb14a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x438530 of _0x420844['getSuggestions']({'skipNotAttached':!0x0})){const _0x275597=_0x420844['_findSuggestions'](_0x438530['getFirstRange'](),'attribute')['map'](_0x1c62e4=>_0x1c62e4['suggestion'])['filter'](_0x52425c=>_0x52425c['data']&&_0x3bb14a['includes'](_0x52425c['data']['key']));if(!_0x275597['length'])continue;const _0x4c11b2=_0x275597[0x0]['head']['attributes']['groupId'];if(!_0x275597['every'](_0x25285f=>_0x25285f['attributes']['groupId']===_0x4c11b2)){for(const _0x48e18b of _0x275597)_0xafb0e7(_0x48e18b,_0x4c11b2)&&(_0x2cc2fa=!0x0);}}return _0x2cc2fa;function _0x38d645(_0x121b44,_0x16ea2b){for(const _0x574a30 of _0x420844['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3224f9=>'attribute'==_0x3224f9['type']&&_0x3224f9['attributes']['groupId']==_0x121b44))_0x574a30['setAttribute']('groupId',_0x16ea2b);}function _0xafb0e7(_0x5479cd,_0x12b6f4){let _0x5ca7d9=_0x5479cd['head'],_0xf99a7b=!0x1;for(;_0x5ca7d9;)_0x5ca7d9['attributes']['groupId']!=_0x12b6f4&&(_0x38d645(_0x5ca7d9['attributes']['groupId'],_0x12b6f4),_0x5ca7d9['setAttribute']('groupId',_0x12b6f4),_0xf99a7b=!0x0),_0x5ca7d9=_0x5ca7d9['next'];return _0xf99a7b;}}['_supportLegacySuggestions'](){const _0x6e73a1=this['editor'],_0x3c29d0=_0x6e73a1['locale'],_0x1807cc=_0x6e73a1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1807cc['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x533180,_0x3683a2){const _0x554c05=[];for(let _0x551d3b of _0x533180)_0x551d3b['start']['nodeAfter']===_0x551d3b['end']['parent']&&(_0x551d3b=_0x6e73a1['model']['createRange'](_0x6e73a1['model']['createPositionAt'](_0x551d3b['start']['nodeAfter'],0x0))),_0x554c05['push'](_0x551d3b);_0x6e73a1['model']['change'](_0x5263c7=>{const _0x4d7995=_0x6e73a1['model']['document']['selection'],_0x1e3ec8=Array['from'](_0x4d7995['getRanges']())['map'](_0x454f0f=>_0x2bf34c['fromRange'](_0x454f0f));_0x5263c7['setSelection'](_0x554c05),_0x6e73a1['commands']['get'](_0x3683a2['commandName'])['refresh'](),_0x3683a2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x6e73a1['execute'](_0x3683a2['commandName'],..._0x3683a2['commandParams']),_0x5263c7['setSelection'](_0x1e3ec8);for(const _0x2c83fa of _0x1e3ec8)_0x2c83fa['detach']();});}),_0x1807cc['descriptionFactory']['registerElementLabel'](function(_0x40753c){const _0x40ada4=!_0x6e73a1['model']['schema']['isObject'](_0x40753c),_0x533160=_0x40753c['previousSibling'],_0x1af977=_0x40753c['nextSibling'],_0x3aacd9=_0x40753c['getAttribute']('listItemId'),_0x5c49c6=!_0x533160||_0x533160['getAttribute']('listItemId')!==_0x3aacd9,_0x5d392e=!_0x1af977||_0x1af977['getAttribute']('listItemId')!==_0x3aacd9;return _0x40ada4&&Boolean(_0x3aacd9)&&_0x5c49c6&&_0x5d392e;},_0x40705c=>o(_0x3c29d0,'ELEMENT_LIST_ITEM',_0x40705c));}['_registerLegacyDescription'](){const _0x5427b7=this['editor'],_0x35face=_0x5427b7['locale'];function _0x102f35(_0x4e463a){const _0x5061d2=_0x5427b7['commands']['get']('bulletedList')['value'],_0x562e25=_0x5427b7['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e463a?_0x5061d2:_0x562e25;}_0x5427b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x32973e){if('formatBlock'!=_0x32973e['type'])return;const {data:_0x1ea906}=_0x32973e;if(!_0x1ea906)return;let _0x1c1ea0,_0xf18730,_0x285ab5,_0x49bad2;switch(_0x1ea906['commandName']){case'bulletedList':_0x285ab5=_0x1ea906['commandParams'][0x0]['forceValue'],_0x49bad2=_0x102f35(_0x1ea906['commandName']),_0x1c1ea0=_0x285ab5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49bad2&&_0x5427b7['config']['get']('list.multiBlock')||(_0x1c1ea0='*Change\x20to:*\x20%0'),_0xf18730={'type':'format','content':o(_0x35face,_0x1c1ea0,o(_0x35face,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x285ab5=_0x1ea906['commandParams'][0x0]['forceValue'],_0x49bad2=_0x102f35(_0x1ea906['commandName']),_0x1c1ea0=_0x285ab5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49bad2&&_0x5427b7['config']['get']('list.multiBlock')||(_0x1c1ea0='*Change\x20to:*\x20%0'),_0xf18730={'type':'format','content':o(_0x35face,_0x1c1ea0,o(_0x35face,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c1ea0='*Indent:*\x20%0',_0xf18730={'type':'format','content':o(_0x35face,_0x1c1ea0,o(_0x35face,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c1ea0=function(_0x2b2e96){const _0xcf0510=_0x2b2e96['getFirstRange']();let _0x52c8e6=_0xcf0510['start']['nodeAfter'];for(;_0x52c8e6&&_0xcf0510['containsItem'](_0x52c8e6);){if(_0x52c8e6['getAttribute']('listIndent')>0x0)return!0x1;_0x52c8e6=_0x52c8e6['nextSibling'];}return!0x0;}(_0x32973e)?o(_0x35face,'*Format:*\x20remove\x20from\x20%0',o(_0x35face,function(_0x4703b8){return'ELEMENT_'+_0x4703b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x32973e))):o(_0x35face,'*Outdent:*\x20%0',o(_0x35face,'ELEMENT_LIST_ITEM')),_0xf18730={'type':'format','content':_0x1c1ea0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ea906['multipleBlocks']&&(_0x1c1ea0='*Merge:*\x20%0',_0xf18730={'type':'deletion','content':o(_0x35face,_0x1c1ea0,o(_0x35face,'ELEMENT_LIST_ITEM'))});}return _0xf18730;});}}function le(_0x1cacbc){let _0x5bcf31=_0x1cacbc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5bcf31;){const _0x52aeb7=_0x5bcf31['getAttribute']('listItemId');if(!_0x52aeb7)return!0x1;if(_0x52aeb7==_0x1cacbc['data']['newValue'])return'newValue';if(_0x52aeb7==_0x1cacbc['data']['oldValue'])return'oldValue';_0x5bcf31=_0x5bcf31['previousSibling'];}return!0x1;}class ue extends _0x6b635c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x19cd17=this['editor']['config']['get']('list.properties'),_0x4832e7=this['editor']['plugins']['get']('TrackChangesEditing');_0x19cd17['styles']&&(_0x4832e7['enableDefaultAttributesIntegration']('listStyle'),_0x4832e7['registerBlockAttribute']('listStyle')),_0x19cd17['reversed']&&(_0x4832e7['enableDefaultAttributesIntegration']('listReversed'),_0x4832e7['registerBlockAttribute']('listReversed')),_0x19cd17['startIndex']&&(_0x4832e7['enableDefaultAttributesIntegration']('listStart'),_0x4832e7['registerBlockAttribute']('listStart'));const _0x45b441={'type':'format','content':''};_0x4832e7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x6afd46=this['editor']['locale'];_0x4832e7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x6afd46,'FORMAT_LIST_REVERSED')),_0x4832e7['descriptionFactory']['registerDescriptionCallback'](_0x468c72=>{const {data:_0x3b248c}=_0x468c72;if(_0x3b248c&&'listReversed'==_0x3b248c['key'])return null==_0x3b248c['newValue']||0x0==_0x3b248c['newValue']&&null==_0x3b248c['oldValue']?_0x45b441:void 0x0;}),_0x4832e7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x6afd46,'FORMAT_LIST_START')),_0x4832e7['descriptionFactory']['registerDescriptionCallback'](_0x18ac5d=>{const {data:_0x11afdf}=_0x18ac5d;if(_0x11afdf&&'listStart'==_0x11afdf['key'])return null==_0x11afdf['newValue']||0x1==_0x11afdf['newValue']&&null==_0x11afdf['oldValue']?_0x45b441:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2157ac=>{if(_0x2157ac['batch']['isUndo'])return!0x1;let _0x59c566=!0x1;const _0x2e3271=_0x4832e7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x86691f=>{const _0x3e8960=_0x4832e7['_getAttributeKey'](_0x86691f);return'listStart'==_0x3e8960||'listReversed'==_0x3e8960;});for(const _0x2cedd1 of _0x2e3271){const _0x2abae9=_0x2cedd1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2abae9||'customNumbered'==_0x2abae9)continue;_0x4832e7['_findSuggestions'](_0x2cedd1['getFirstRange'](),'attribute')['find'](_0x1f83ae=>'listType'==_0x4832e7['_getAttributeKey'](_0x1f83ae['suggestion']))||(_0x2157ac['removeMarker'](_0x2cedd1['getFirstMarker']()),_0x59c566=!0x0);}return _0x59c566;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5811de){const _0x5cc66f=this['editor']['locale'],{data:_0x5420c7}=_0x5811de,_0x338d2a={'type':'format','content':''};if(!_0x5420c7||'listStyle'!=_0x5420c7['key'])return;if(!_0x5420c7['oldValue'])return'default'==_0x5420c7['newValue']?_0x338d2a:{'type':'format','content':''+o(_0x5cc66f,'*Set\x20format:*\x20%0',o(_0x5cc66f,this['_getTranslationKeyForListStyle'](_0x5420c7['newValue'])))};if(!_0x5420c7['newValue']){if('default'==_0x5420c7['oldValue'])return _0x338d2a;let _0x166bf3=_0x5811de['head'];for(;_0x166bf3;){if(_0x166bf3['data']&&'listType'==_0x166bf3['data']['key']&&_0x166bf3['data']['newValue'])return _0x338d2a;_0x166bf3=_0x166bf3['next'];}return{'type':'format','content':''+o(_0x5cc66f,'*Remove\x20format:*\x20%0',o(_0x5cc66f,this['_getTranslationKeyForListStyle'](_0x5420c7['oldValue'])))};}if('default'!=_0x5420c7['newValue'])return{'type':'format','content':''+o(_0x5cc66f,'*Set\x20format:*\x20%0',o(_0x5cc66f,this['_getTranslationKeyForListStyle'](_0x5420c7['newValue'])))};let _0x20c07a=_0x5811de['head'];for(;_0x20c07a;){if(_0x20c07a['data']&&'listType'==_0x20c07a['data']['key']&&_0x20c07a['data']['newValue']&&_0x20c07a['data']['oldValue'])return _0x338d2a;_0x20c07a=_0x20c07a['next'];}return{'type':'format','content':o(_0x5cc66f,'*Set\x20format:*\x20%0',o(_0x5cc66f,'ELEMENT_'+_0x5811de['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x22fafb=this['editor'],_0x165468=_0x22fafb['locale'];_0x22fafb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b3772=>{if('formatBlock'!=_0x5b3772['type'])return;const {data:_0x2a3183}=_0x5b3772;if(!_0x2a3183)return;let _0x31969a,_0x16243a;switch(_0x2a3183['commandName']){case'listStyle':_0x31969a='*Change\x20to:*\x20%0',_0x16243a={'type':'format','content':o(_0x165468,_0x31969a,o(_0x165468,this['_getTranslationKeyForListStyle'](_0x2a3183['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31969a=_0x2a3183['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16243a={'type':'format','content':o(_0x165468,_0x31969a)};break;case'listStart':_0x31969a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16243a={'type':'format','content':o(_0x165468,_0x31969a,_0x2a3183['commandParams'][0x0]['startIndex'])};}return _0x16243a;});}['_getTranslationKeyForListStyle'](_0x1e92d3){return'ELEMENT_'+function(_0x408d8b){if(pe['includes'](_0x408d8b))return'bulleted';if(ye['includes'](_0x408d8b))return'numbered';return null;}(_0x1e92d3)['toUpperCase']()+'_LIST_'+_0x1e92d3['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x6b635c{static get['requires'](){return[_0x28a696];}['init'](){const _0x563b95=this['editor'],_0x55d92d=_0x563b95['plugins']['get']('TrackChangesEditing'),_0x18e111=_0x563b95['commands']['get']('enter');_0x55d92d['enableCommand']('enter',()=>{_0x563b95['model']['change'](_0xb2bd8=>{const _0x5c8d92=_0x563b95['model']['document']['selection'],_0x24b222=_0x5c8d92['getFirstPosition'](),_0x577c0b=_0x2bf34c['fromRange'](_0x5c8d92['getFirstRange']());if(_0x18e111['enterBlock'](_0xb2bd8)){const _0x1d7a48=_0x563b95['model']['createPositionAt'](_0x24b222['parent']['nextSibling'],0x0),_0x426ef8=_0xb2bd8['createRange'](_0x24b222,_0x1d7a48);_0x55d92d['markInsertion'](_0x426ef8);}else _0xb2bd8['setSelection'](_0xb2bd8['createRange'](_0x577c0b['end']));_0x577c0b['detach'](),_0x18e111['fire']('afterExecute',{'writer':_0xb2bd8});});}),_0x563b95['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x563b95,'split'),{'priority':'high'}),_0x563b95['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x269267,_0x16597f,_0x63064)=>{const _0xc4642c=_0x63064['mapper']['markerNameToElements'](_0x16597f['markerName']);if(_0xc4642c){for(const _0x2dff59 of _0xc4642c)_0x2dff59['hasClass']('ck-suggestion-marker-split')&&(_0x63064['mapper']['unbindElementFromMarkerName'](_0x2dff59,_0x16597f['markerName']),_0x63064['writer']['remove'](_0x2dff59));}},{'priority':'high'}),_0x563b95['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x177823,_0x508518,_0xdd4121)=>{_0xdd4121['options']['showSuggestionHighlights']&&_e(_0x563b95,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x177823,_0x508518,_0xdd4121);},{'priority':'high'});}}class J extends _0x6b635c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x35e63a=this['editor']['plugins']['get']('TrackChangesEditing');_0x35e63a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x35e63a['enableCommand']('findNext'),_0x35e63a['enableCommand']('findPrevious'),_0x35e63a['enableCommand']('replace'),_0x35e63a['enableCommand']('replaceAll');}['handleFindCommand'](_0x163c86,_0xbf014a,_0x59a22f={}){const _0x1b4ec6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x163c86(_0x59464c=>('string'==typeof _0xbf014a?_0x1b4ec6['findByTextCallback'](_0xbf014a,_0x59a22f):_0xbf014a)(_0x59464c)['filter'](_0x4fcbd2=>!0x1===this['_isInDeletionRange'](_0x4fcbd2,_0x59464c['item'])),_0x59a22f);}['_isInDeletionRange'](_0x117406,_0x4240c7){const _0x4a9be0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4240c7,_0x117406['start']),this['editor']['model']['createPositionAt'](_0x4240c7,_0x117406['end']));for(const _0x5843f2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4a9be0['getIntersection'](_0x5843f2['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x6b635c{['afterInit'](){const _0x2d4d1a=this['editor']['locale'],_0x1a5558=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x33ae8f,commandName:_0x553861}of ro)this['editor']['plugins']['has'](_0x33ae8f)&&(_0x1a5558['enableDefaultAttributesIntegration'](_0x553861),_0x1a5558['registerInlineAttribute'](_0x553861));_0x2d4d1a['t'],_0x1a5558['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2d4d1a,'FORMAT_FONT_SIZE')),_0x1a5558['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2d4d1a,'FORMAT_FONT_FAMILY')),_0x1a5558['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2d4d1a,'FORMAT_FONT_COLOR')),_0x1a5558['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2d4d1a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x244469=this['editor'],_0x42eef2=_0x244469['locale'];_0x244469['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538b6b=>{const _0x185038=_0x42eef2['t'];if('formatInline'!=_0x538b6b['type'])return;const {data:_0x572eed}=_0x538b6b;if(null!=_0x572eed){if('fontSize'==_0x572eed['commandName']){const _0x31aee8=_0x572eed['commandParams'][0x0]['value'];if(_0x31aee8){const _0x54dc76=_0x185038(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x430479=>_0x430479['model']==_0x31aee8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x42eef2,'*Set\x20font\x20size:*\x20%0',_0x54dc76)};}return{'type':'format','content':o(_0x42eef2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x572eed['commandName']){const _0x32e077=_0x572eed['commandParams'][0x0]['value'];return _0x32e077?{'type':'format','content':o(_0x42eef2,'*Set\x20font\x20family:*\x20%0',_0x32e077)}:{'type':'format','content':o(_0x42eef2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x572eed['commandName']){const _0x4f6ec7=_0x572eed['commandParams'][0x0]['value'];if(_0x4f6ec7){const _0x2de122=_0x331075(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2cfe12=>_0x2cfe12['model']==_0x4f6ec7);let _0x32ff5e=_0x4f6ec7,_0x5e7450='';return _0x2de122&&(_0x32ff5e=_0x2de122['label'],_0x5e7450=_0x185038(_0x32ff5e)['toLowerCase']()),{'type':'format','content':o(_0x42eef2,'*Set\x20font\x20color:*\x20%0',_0x5e7450)['trim'](),'color':{'value':_0x4f6ec7,'title':_0x5e7450||_0x32ff5e}};}return{'type':'format','content':o(_0x42eef2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x572eed['commandName']){const _0x11d07a=_0x572eed['commandParams'][0x0]['value'];if(_0x11d07a){const _0x13e3d3=_0x331075(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x340fe2=>_0x340fe2['model']==_0x11d07a);let _0x56630a=_0x11d07a,_0x1e8f54='';return _0x13e3d3&&(_0x56630a=_0x13e3d3['label'],_0x1e8f54=_0x185038(_0x56630a)['toLowerCase']()),{'type':'format','content':o(_0x42eef2,'*Set\x20font\x20background\x20color:*\x20%0',_0x1e8f54)['trim'](),'color':{'value':_0x11d07a,'title':_0x1e8f54||_0x56630a}};}return{'type':'format','content':o(_0x42eef2,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x6b635c{['afterInit'](){const _0x3ca9a6=this['editor'],_0x48b279=_0x3ca9a6['plugins']['get']('TrackChangesEditing'),_0x36fb03=_0x3ca9a6['commands']['get']('copyFormat'),_0x1afcdc=_0x3ca9a6['commands']['get']('pasteFormat');_0x36fb03&&_0x1afcdc&&(_0x48b279['enableDefaultAttributesIntegration']('pasteFormat'),_0x48b279['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xfc3788=this['editor'],_0x4aa44c=_0xfc3788['locale'];_0xfc3788['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5319f3=>{if('formatBlock'!=_0x5319f3['type']&&'formatInline'!=_0x5319f3['type'])return;const {data:_0x136c16}=_0x5319f3;if(_0x136c16&&'pasteFormat'===_0x136c16['commandName']){const _0x2fca16=[],_0x23017a=_0x136c16['commandParams'][0x0];for(const [_0xa5a56b,_0x58b7f0]of Object['entries'](_0x23017a))_0x2fca16['push'](so(_0xfc3788,_0xa5a56b,_0x58b7f0));return _0x2fca16['length']?{'type':'format','content':o(_0x4aa44c,'*Set\x20format\x20to:*\x20%0',_0x2fca16['join'](',\x20'))}:{'type':'format','content':o(_0x4aa44c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2811af,_0x470860,_0x6094b){const _0x240556=_0x2811af['locale']['t'],_0x211f46=_0x470860['split'](/(?=[A-Z])/)['join']('\x20'),_0xc3cd56=_0x240556(_0x211f46['charAt'](0x0)['toUpperCase']()+_0x211f46['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x6094b)return _0xc3cd56;if('fontColor'===_0x470860||'fontBackgroundColor'===_0x470860){const _0xe2c5fe=_0x331075(_0x2811af['config']['get']('fontColor.colors'))['find'](_0x412bc3=>_0x412bc3['model']==_0x6094b);return _0xc3cd56+'\x20('+(_0xe2c5fe?_0x240556(_0xe2c5fe['label'])['toLowerCase']():_0x6094b)+')';}if('fontSize'===_0x470860&&isNaN(parseFloat(_0x6094b))){const _0x1c2b89=_0x2811af['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2811af['config']['get']('fontSize.options'))['find'](_0x3bf98f=>_0x3bf98f['model']==_0x6094b);return _0xc3cd56+'\x20('+(_0x1c2b89?_0x240556(_0x1c2b89['title'])['toLowerCase']():_0x6094b)+')';}return _0xc3cd56+'\x20('+_0x6094b+')';}class Y extends _0x6b635c{['_headingOptions'];['afterInit'](){const _0x27ed45=this['editor'];if(!_0x27ed45['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x27ed45['config']['get']('heading.options');const _0xd94a0e=_0x27ed45['locale'],_0x52f099=_0x27ed45['plugins']['get']('TrackChangesEditing');_0x52f099['enableDefaultAttributesIntegration']('heading');for(const _0x38cdbb of this['_headingOptions'])'paragraph'!=_0x38cdbb['model']&&_0x52f099['descriptionFactory']['registerElementLabel'](_0x38cdbb['model'],_0x3491ee=>{const _0x3175c6=this['_getHeadingLevel'](_0x38cdbb['model']);return null!==_0x3175c6?_0x345d66(_0x3491ee,_0x3175c6):_0xc8691e(_0x3491ee,_0x38cdbb['title']);});function _0x345d66(_0x3e3ed2,_0x4704eb){return o(_0xd94a0e,'ELEMENT_HEADING',[_0x3e3ed2,_0x4704eb]);}function _0xc8691e(_0x28a30d,_0x5432c7){return o(_0xd94a0e,'ELEMENT_HEADING_CUSTOM',[_0x28a30d,_0x5432c7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cfdc1=this['editor'],_0x4d6a30=_0x5cfdc1['locale'];function _0x297a61(_0x40c4b8,_0x2da7d7){return o(_0x4d6a30,'ELEMENT_HEADING_CUSTOM',[_0x40c4b8,_0x2da7d7]);}_0x5cfdc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308368=>{if('formatBlock'!=_0x308368['type'])return;const {data:_0x492ad5}=_0x308368;if(_0x492ad5&&'heading'==_0x492ad5['commandName']){const _0x449bff=_0x492ad5['commandParams'][0x0]['value'],_0x587d01=this['_getHeadingLevel'](_0x449bff);if(null!==_0x587d01)return{'type':'format','content':o(_0x4d6a30,'*Change\x20to:*\x20%0',(_0x2c5e78=0x1,_0x15565f=_0x587d01,o(_0x4d6a30,'ELEMENT_HEADING',[_0x2c5e78,_0x15565f])))};const _0x3c6468=this['_headingOptions']['find'](_0x4a6121=>_0x4a6121['model']===_0x449bff)['title'];return{'type':'format','content':o(_0x4d6a30,'*Change\x20to:*\x20%0',_0x297a61(0x1,_0x3c6468))};}var _0x2c5e78,_0x15565f;});}['_getHeadingLevel'](_0x1e3d99){const _0xca8dc9=_0x1e3d99['match'](/^heading(\d+)/);if(_0xca8dc9)return _0xca8dc9[0x1];const _0x139d4f=this['_headingOptions']?.['find'](_0xfe0fa0=>_0xfe0fa0['model']==_0x1e3d99);if(_0x139d4f&&_0x139d4f['view']){const _0x5048b3=_0x139d4f['view'],_0x4399d0=(_0x5048b3['name']??_0x5048b3)['match'](/^h(\d+)/);if(_0x4399d0)return _0x4399d0[0x1];}return null;}}class Z extends _0x6b635c{['afterInit'](){const _0x2f2002=this['editor'];if(!_0x2f2002['plugins']['has']('HighlightEditing'))return;const _0x23dd2e=_0x2f2002['plugins']['get']('TrackChangesEditing'),_0x133c4c=_0x2f2002['locale'];_0x23dd2e['enableDefaultAttributesIntegration']('highlight'),_0x23dd2e['registerInlineAttribute']('highlight'),_0x23dd2e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x133c4c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403863=this['editor'],_0x16b417=_0x403863['locale'];_0x403863['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x277b50=>{if('formatInline'!=_0x277b50['type'])return;const {data:_0x146636}=_0x277b50;if(_0x146636&&'highlight'==_0x146636['commandName']){const _0x1b0d32=_0x16b417['t'],_0x172616=_0x146636['commandParams'][0x0]['value'];if(_0x172616){const _0x58270f=_0x403863['config']['get']('highlight.options')['find'](_0x2eca03=>_0x2eca03['model']==_0x172616),_0x103b6d=_0x1b0d32(_0x58270f['title'])['toLowerCase']();return{'type':'format','content':o(_0x16b417,'*Set\x20highlight:*\x20%0',_0x103b6d),'color':{'value':_0x58270f['color'],'title':_0x58270f['title']}};}return{'type':'format','content':o(_0x16b417,'*Remove\x20highlight*',o(_0x16b417,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x6b635c{['afterInit'](){const _0x53cd4d=this['editor'];if(!_0x53cd4d['plugins']['has']('HorizontalLineEditing'))return;_0x53cd4d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50402e=_0x53cd4d['plugins']['get']('TrackChangesEditing'),_0xbfc44f=_0x53cd4d['locale'];_0x50402e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2b63c0=>o(_0xbfc44f,'ELEMENT_HORIZONTAL_LINE',_0x2b63c0)),_0x53cd4d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x46f338,{writer:_0x1f3c8b,options:_0xa04b6d})=>{if(!_0xa04b6d['showSuggestionHighlights'])return null;const _0xd84c01=_0x1f3c8b['createContainerElement']('div'),_0x572c35=_0x1f3c8b['createEmptyElement']('hr');return _0x1f3c8b['addClass']('ck-horizontal-line',_0xd84c01),_0x1f3c8b['insert'](_0x1f3c8b['createPositionAt'](_0xd84c01,0x0),_0x572c35),_0xd84c01;},'converterPriority':'high'});}}class et extends _0x6b635c{['afterInit'](){const _0x50c905=this['editor'];if(!_0x50c905['plugins']['has']('HtmlEmbed'))return;const _0x29215a=_0x50c905['plugins']['get']('TrackChangesEditing'),_0x5f52db=_0x50c905['locale'];_0x29215a['descriptionFactory']['registerElementLabel']('rawHtml',_0x28b30b=>o(_0x5f52db,'ELEMENT_HTML_EMBED',_0x28b30b)),_0x29215a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29215a['registerBlockAttribute']('value'),_0x29215a['descriptionFactory']['registerDescriptionCallback'](_0x60b822=>{if('attribute'!=_0x60b822['type'])return;const {data:_0x54fac9}=_0x60b822;if(_0x54fac9&&'value'==_0x54fac9['key']&&_0x60b822['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x161a1a=o(_0x5f52db,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5f52db,'*Change\x20%0\x20content*',_0x161a1a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d5648=this['editor'],_0x549c19=_0x5d5648['locale'];_0x5d5648['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c4cc9=>{if('formatBlock'!=_0x3c4cc9['type'])return;const {data:_0x3870f5}=_0x3c4cc9;if(_0x3870f5&&'htmlEmbed'==_0x3870f5['commandName']){const _0xce0d64=o(_0x549c19,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x549c19,'*Change\x20%0\x20content*',_0xce0d64)};}});}}class it extends _0x6b635c{['afterInit'](){const _0x4e470d=this['editor'];if(!_0x4e470d['plugins']['has']('ImageEditing'))return;const _0x45fcdd=_0x4e470d['plugins']['get']('TrackChangesEditing'),_0x2d0efe=_0x4e470d['plugins']['get']('ImageUtils'),_0x2f254c=_0x4e470d['locale'];_0x45fcdd['enableCommand']('insertImage'),_0x45fcdd['descriptionFactory']['registerElementLabel']('imageBlock',_0x154373=>o(_0x2f254c,'ELEMENT_IMAGE',_0x154373)),_0x45fcdd['descriptionFactory']['registerElementLabel']('imageInline',_0x2ee5f0=>o(_0x2f254c,'ELEMENT_INLINE_IMAGE',_0x2ee5f0)),_0x45fcdd['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2f254c,'ELEMENT_CAPTION')),_0x4e470d['plugins']['has']('ImageUploadEditing')&&_0x45fcdd['enableCommand']('uploadImage'),_0x4e470d['plugins']['has']('ImageBlockEditing')&&_0x4e470d['plugins']['has']('ImageInlineEditing')&&(_0x45fcdd['enableCommand']('imageTypeInline',(_0x3e9b98,_0x7f06aa)=>{const _0x28e383=_0x2d0efe['getClosestSelectedImageElement'](_0x4e470d['model']['document']['selection']);_0x4e470d['model']['change'](()=>{_0x45fcdd['markBlockFormat'](_0x28e383,{'commandName':'imageTypeInline','commandParams':[_0x7f06aa]},[],'convertBlockImageToInline');});}),_0x45fcdd['enableCommand']('imageTypeBlock',(_0xcdf2f7,_0x58267b)=>{_0x4e470d['model']['change'](_0x36a6d9=>{let _0x3c1bce=_0x2d0efe['getClosestSelectedImageElement'](_0x4e470d['model']['document']['selection']),_0x4a7eac=_0x36a6d9['createRangeOn'](_0x3c1bce);const _0x268579=_0xd3d076['fromPosition'](_0x4a7eac['start'],'toPrevious'),_0x30b8d1=_0xd3d076['fromPosition'](_0x4a7eac['end'],'toNext');_0x45fcdd['forceDefaultExecution'](()=>_0xcdf2f7(_0x58267b)),_0x3c1bce=_0x2d0efe['getClosestSelectedImageElement'](_0x4e470d['model']['document']['selection']),_0x4a7eac=_0x36a6d9['createRangeOn'](_0x3c1bce);const _0x45052d=_0x36a6d9['createRange'](_0x268579,_0x30b8d1);_0x268579['detach'](),_0x30b8d1['detach'](),_0x45fcdd['markBlockFormat'](_0x3c1bce,{'commandName':'imageTypeInline','commandParams':[_0x58267b]},[],'convertInlineImageToBlock'),_0x45052d['start']['isBefore'](_0x4a7eac['start'])&&_0x45fcdd['markInsertion'](_0x36a6d9['createRange'](_0x45052d['start'],_0x4a7eac['start']),'convertInlineImageToBlock'),_0x4a7eac['end']['isBefore'](_0x45052d['end'])&&_0x45fcdd['markInsertion'](_0x36a6d9['createRange'](_0x4a7eac['end'],_0x45052d['end']),'convertInlineImageToBlock');});}),_0x45fcdd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x45fcdd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x45fcdd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x45fcdd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x45fcdd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x45fcdd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x51830f])=>{const _0x1c4cf6=_0x45fcdd['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x493690=_0x51830f['start'],_0x2bb78b=_0x51830f['end'];const _0x737ff1=_0x4e470d['model']['schema']['getNearestSelectionRange'](_0x493690,'backward'),_0x168fb3=_0x4e470d['model']['schema']['getNearestSelectionRange'](_0x2bb78b,'forward');_0x737ff1['isCollapsed']&&(_0x493690=_0x737ff1['start']),_0x168fb3['isCollapsed']&&(_0x2bb78b=_0x168fb3['end']),_0x1c4cf6([_0x4e470d['model']['createRange'](_0x493690,_0x2bb78b)]);}),_0x45fcdd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x430d8b),_0x45fcdd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x430d8b)),_0x4e470d['plugins']['has']('ImageCaptionEditing')&&(_0x45fcdd['enableCommand']('toggleImageCaption',(_0x5af43d,_0x4b93c3)=>{const _0xb1d410=_0x4e470d['plugins']['get']('ImageCaptionUtils');let _0x5be8fe=_0x2d0efe['getClosestSelectedImageElement'](_0x4e470d['model']['document']['selection']),_0x2ffe01=_0xb1d410['getCaptionFromImageModelElement'](_0x5be8fe);_0x4e470d['model']['change'](()=>{if(_0x2ffe01)return void _0x45fcdd['markDeletion'](_0x4e470d['model']['createRangeOn'](_0x2ffe01));const _0x5c721a=_0x2d0efe['isBlockImage'](_0x5be8fe);_0x5af43d(_0x4b93c3),_0x5be8fe=_0x2d0efe['getClosestSelectedImageElement'](_0x4e470d['model']['document']['selection']),_0x2ffe01=_0xb1d410['getCaptionFromImageModelElement'](_0x5be8fe),_0x45fcdd['markInsertion'](_0x4e470d['model']['createRangeOn'](_0x2ffe01),_0x5c721a?null:'imageCaption');});}),_0x45fcdd['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x430d8b));const _0x2b68ec=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29a9b1(_0x228fc0,_0x2586fb){const _0x35c3fb=_0x2b68ec['findIndex'](({type:_0x18469e,subType:_0x2cfe94})=>_0x228fc0['type']==_0x18469e&&_0x228fc0['subType']==_0x2cfe94),_0x1ae2e1=_0x2b68ec['findIndex'](({type:_0x4d307e,subType:_0x54514f})=>_0x2586fb['type']==_0x4d307e&&_0x2586fb['subType']==_0x54514f);if(_0x35c3fb<0x0||_0x1ae2e1<0x0)return!0x1;const _0x4d901c=_0x228fc0['getFirstRange'](),_0x51abc1=_0x2586fb['getFirstRange']();if((0x0==_0x35c3fb||0x1==_0x35c3fb)&&0x2==_0x1ae2e1&&_0x4d901c['isIntersecting'](_0x51abc1))return!0x0;if(0x2==_0x35c3fb&&0x3==_0x1ae2e1){const _0x5aeb5a=_0x45fcdd['_findSuggestions'](_0x4d901c,'insertion')['filter'](({suggestion:_0x569b89,meta:_0x5b13e5})=>_0x5b13e5['isOwn']&&'convertInlineImageToBlock'==_0x569b89['subType']);if(_0x5aeb5a['length']>0x1&&_0x51abc1['end']['isEqual'](_0x4d901c['start']))return!0x0;if(0x1==_0x5aeb5a['length']&&(_0x4d901c['start']['isEqual'](_0x51abc1['end'])||_0x4d901c['end']['isEqual'](_0x51abc1['start'])))return!0x0;}if(0x3==_0x35c3fb&&0x3==_0x1ae2e1&&_0x4d901c['start']['isBefore'](_0x51abc1['start'])){const _0x4307ff=_0x4d901c['end']['nodeAfter'],_0x2ce075=_0x51abc1['start']['nodeBefore'];return _0x2d0efe['isBlockImage'](_0x4307ff)&&_0x4307ff===_0x2ce075;}return!0x1;}function _0x430d8b(_0x5f00f7,_0x3a1eb5){return _0x29a9b1(_0x5f00f7,_0x3a1eb5)?[_0x5f00f7,_0x3a1eb5]:_0x29a9b1(_0x3a1eb5,_0x5f00f7)?[_0x3a1eb5,_0x5f00f7]:null;}_0x4e470d['plugins']['has']('ImageResize')&&(_0x45fcdd['enableDefaultAttributesIntegration']('resizeImage'),_0x45fcdd['registerBlockAttribute']('resizedWidth'),_0x45fcdd['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2f254c,'FORMAT_IMAGE_SIZE'))),_0x4e470d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x45fcdd['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x45fcdd['registerBlockAttribute']('alt')),_0x45fcdd['descriptionFactory']['registerDescriptionCallback'](_0x5c7405=>{if(!!_0x2b68ec['find'](({type:_0x1f8ddf,subType:_0xd042df})=>_0x5c7405['type']==_0x1f8ddf&&_0x5c7405['subType']==_0xd042df))return _0x5c7405['previous']?{}:void 0x0;}),_0x45fcdd['descriptionFactory']['registerDescriptionCallback'](_0x5e2ad7=>{if('insertion'==_0x5e2ad7['type']||'deletion'==_0x5e2ad7['type']){const _0x5402ce=_0x5e2ad7['getContainedElement']();if(_0x5402ce&&_0x5402ce['is']('element','caption'))return{'type':'insertion'==_0x5e2ad7['type']?'addObject':'removeObject','element':_0x5402ce,'quantity':0x1};}}),_0x45fcdd['descriptionFactory']['registerDescriptionCallback'](_0x1948ee=>'formatBlock'==_0x1948ee['type']&&'convertInlineImageToBlock'==_0x1948ee['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1948ee['type']&&'convertBlockImageToInline'==_0x1948ee['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x45fcdd['descriptionFactory']['registerDescriptionCallback'](_0x1fba37=>{if('attribute'!=_0x1fba37['type'])return;const {data:_0xfb51d5}=_0x1fba37;if(!_0xfb51d5||'alt'!=_0xfb51d5['key'])return;const _0x58d316=_0xfb51d5['newValue'];return _0x58d316?{'type':'format','content':o(_0x2f254c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x58d316+'\x22')}:{'type':'format','content':o(_0x2f254c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34b4fc=this['editor'],_0x4e1696=_0x34b4fc['locale'];_0x34b4fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9d432e=>{if('formatBlock'!=_0x9d432e['type']&&'formatInline'!=_0x9d432e['type'])return;const {data:_0x631886}=_0x9d432e;if(_0x631886){if('imageTextAlternative'==_0x631886['commandName']){const _0x29afed=_0x631886['commandParams'][0x0]['newValue'];return _0x29afed?{'type':'format','content':o(_0x4e1696,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29afed+'\x22')}:{'type':'format','content':o(_0x4e1696,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x631886['commandName']){const _0x5e21c5=_0x631886['commandParams'][0x0]['width'];return _0x5e21c5?{'type':'format','content':o(_0x4e1696,'*Set\x20image\x20width:*\x20%0',_0x5e21c5)}:{'type':'format','content':o(_0x4e1696,'*Reset\x20image\x20width*')};}}});}}class st extends _0x6b635c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1ea357=this['editor']['locale'],_0x6b5a1c=this['editor']['plugins']['get']('TrackChangesEditing');_0x6b5a1c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x6b5a1c['registerBlockAttribute']('src'),_0x6b5a1c['descriptionFactory']['registerDescriptionCallback'](_0x14a304=>{if('attribute'!=_0x14a304['type'])return;const {data:_0x2ad0c3}=_0x14a304;return _0x2ad0c3&&'src'==_0x2ad0c3['key']?_0x2ad0c3['newValue']&&_0x2ad0c3['oldValue']?{'type':'format','content':o(_0x1ea357,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x467612=this['editor']['plugins']['get']('TrackChangesEditing');_0x467612['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x467612['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x467612['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x467612['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27244c=this['editor'],_0x348d6e=_0x27244c['locale'];_0x27244c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x182244=>{if('formatBlock'!=_0x182244['type']&&'formatInline'!=_0x182244['type'])return;const {data:_0x261090}=_0x182244;if(!_0x261090||'replaceImageSource'!=_0x261090['commandName'])return;return{'type':'format','content':o(_0x348d6e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x6b635c{['afterInit'](){const _0x5909d2=this['editor'];if(!_0x5909d2['plugins']['has']('ImageStyleEditing'))return;const _0x271118=_0x5909d2['plugins']['get']('TrackChangesEditing'),_0x3b4512=_0x5909d2['plugins']['get']('ImageUtils'),_0x59a4a4={};_0x271118['enableCommand']('imageStyle',(_0x382dac,_0x426481)=>{const _0x196814=_0x5909d2['plugins']['get']('Users')['me'],_0x52146c=_0x5909d2['commands']['get']('imageStyle');let _0x551e7b=_0x3b4512['getClosestSelectedImageElement'](_0x5909d2['model']['document']['selection']),_0xe8470f=_0x5909d2['model']['createRangeOn'](_0x551e7b),_0x406d47=_0x52146c['value'];if(_0x406d47==_0x426481['value'])return;const _0x20e5ae={'commandName':'imageStyle','commandParams':[_0x426481],'formatGroupId':_0x367149()};_0x5909d2['model']['change'](()=>{if(_0x271118['getSuggestions']()['filter'](_0x47462b=>_0x47462b['isInContent']&&_0x196814==_0x47462b['author']&&('formatBlock'==_0x47462b['type']||'formatInline'==_0x47462b['type'])&&('imageStylePreApply'==_0x47462b['subType']||'imageStylePostApply'==_0x47462b['subType'])&&_0x47462b['getFirstRange']()['isEqual'](_0xe8470f))['forEach'](_0x4092b8=>_0x271118['discardSuggestion'](_0x4092b8['head'])),_0x551e7b=_0x3b4512['getClosestSelectedImageElement'](_0x5909d2['model']['document']['selection']),_0xe8470f=_0x5909d2['model']['createRangeOn'](_0x551e7b),_0x52146c['refresh'](),_0x5909d2['commands']['get']('imageTypeInline')['refresh'](),_0x5909d2['commands']['get']('imageTypeBlock')['refresh'](),_0x406d47=_0x52146c['value'],_0x406d47!=_0x426481['value'])return _0x3b4512['isInlineImage'](_0x551e7b)&&_0x52146c['shouldConvertImageType'](_0x426481['value'],_0x551e7b)?(_0x382dac({..._0x426481,'setImageSizes':!0x1}),_0x551e7b=_0x3b4512['getClosestSelectedImageElement'](_0x5909d2['model']['document']['selection']),void _0x271118['markBlockFormat'](_0x551e7b,{..._0x20e5ae,'commandReversedParams':[{'value':_0x406d47||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b4512['isBlockImage'](_0x551e7b)?_0x271118['markBlockFormat'](_0x551e7b,_0x20e5ae,[],'imageStylePostApply'):_0x271118['markInlineFormat'](_0xe8470f,_0x20e5ae,'imageStylePostApply'));});});for(const _0x4d7ff0 of _0x5909d2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x59a4a4[_0x4d7ff0['name']]=_0x4d7ff0['title']['toLowerCase']();_0x271118['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x271118['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x271118['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x271118['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x19ef33])=>{_0x3b4512['setImageNaturalSizeAttributes'](_0x19ef33['getContainedElement']());}),_0x271118['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5f5d21,_0x85519f)=>{_0x271118['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5f5d21,{'commandName':_0x85519f['commandName'],'commandParams':_0x85519f['commandReversedParams']});}),_0x271118['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x170d7d,_0x1b6af7){if(_0x9b4ebb(_0x170d7d,_0x1b6af7))return[_0x170d7d,_0x1b6af7];if(_0x9b4ebb(_0x1b6af7,_0x170d7d))return[_0x1b6af7,_0x170d7d];return null;});const _0x543b37=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x9b4ebb(_0x411ccd,_0x3182ef){const _0x2a3c9a=_0x543b37['findIndex'](({type:_0x4702eb,subType:_0x5466c6})=>_0x411ccd['type']==_0x4702eb&&_0x411ccd['subType']==_0x5466c6),_0x25f218=_0x543b37['findIndex'](({type:_0x3e541e,subType:_0x1ac845})=>_0x3182ef['type']==_0x3e541e&&_0x3182ef['subType']==_0x1ac845);if(_0x2a3c9a<0x0||_0x25f218<0x0)return!0x1;const _0x1ec18a=_0x411ccd['getFirstRange'](),_0x31b2fa=_0x3182ef['getFirstRange']();if((0x0==_0x2a3c9a||0x1==_0x2a3c9a)&&0x2==_0x25f218&&_0x1ec18a['isIntersecting'](_0x31b2fa))return!0x0;if(0x2==_0x2a3c9a&&0x3==_0x25f218){const _0xe25a36=_0x271118['_findSuggestions'](_0x1ec18a,'insertion')['filter'](({suggestion:_0x4a88fd,meta:_0x2df702})=>_0x2df702['isOwn']&&'convertInlineImageToBlock'==_0x4a88fd['subType']);if(_0xe25a36['length']>0x1&&_0x31b2fa['end']['isEqual'](_0x1ec18a['start']))return!0x0;if(0x1==_0xe25a36['length']&&(_0x1ec18a['start']['isEqual'](_0x31b2fa['end'])||_0x1ec18a['end']['isEqual'](_0x31b2fa['start'])))return!0x0;}if(0x3==_0x2a3c9a&&0x3==_0x25f218&&_0x1ec18a['start']['isBefore'](_0x31b2fa['start'])){const _0x30e746=_0x1ec18a['end']['nodeAfter'],_0x5514f4=_0x31b2fa['start']['nodeBefore'];return _0x3b4512['isBlockImage'](_0x30e746)&&_0x30e746===_0x5514f4;}return!0x1;}_0x5909d2['model']['document']['registerPostFixer'](()=>{let _0x453694=!0x1;const _0x1ca9ce=Array['from'](_0x5909d2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b2f8d,data:_0x2feb2c}of _0x1ca9ce){const {group:_0x1738cc,type:_0x48a366,subType:_0x2375eb,id:_0x460f24}=_0x271118['_splitMarkerName'](_0x1b2f8d);if('suggestion'==_0x1738cc&&_0x271118['hasSuggestion'](_0x460f24)){if('formatBlock'==_0x48a366&&('imageStylePreApply'==_0x2375eb||'imageStylePostApply'==_0x2375eb)){const _0x4fca75=_0x271118['getSuggestion'](_0x460f24);if(_0x2feb2c['newRange']){const _0x4c0bdd=_0x4fca75['getFirstRange']()['getContainedElement']();if(_0x3b4512['isBlockImage'](_0x4c0bdd))continue;_0x271118['discardSuggestion'](_0x4fca75),_0x453694=!0x0;}}if('insertion'==_0x48a366&&'imageCaption'==_0x2375eb&&!_0x2feb2c['newRange']){const _0x1d5fab=_0x271118['getSuggestion'](_0x460f24);_0x1d5fab['next']&&_0x1d5fab['next']['isInContent']&&(_0x271118['discardSuggestion'](_0x1d5fab['next']),_0x453694=!0x0);}}}return _0x453694;}),this['_registerLegacyDescription'](_0x59a4a4);}['_registerLegacyDescription'](_0x48b38a){const _0x52f4d9=this['editor'],_0x2110b7=_0x52f4d9['locale'];_0x52f4d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25c989=>{if('formatBlock'!=_0x25c989['type']&&'formatInline'!=_0x25c989['type'])return;const {data:_0x36ac94}=_0x25c989;if(!_0x36ac94||'imageStyle'!=_0x36ac94['commandName'])return;const _0x1adca5=_0x36ac94['commandParams'][0x0]['value'];return _0x10c3c6('side'===_0x1adca5?o(_0x2110b7,'FORMAT_SIDE_IMAGE'):_0x48b38a[_0x1adca5]||_0x1adca5);function _0x10c3c6(_0x4c20ff){return{'type':'format','content':o(_0x2110b7,'*Format:*\x20%0',_0x4c20ff)};}});}}class ot extends _0x6b635c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x191a04){super(_0x191a04),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3e0476=this['editor'],_0xe3787b=_0x3e0476['commands']['get']('importWord'),_0x54e8a5=_0x3e0476['commands']['get']('trackChanges');_0xe3787b&&(_0xe3787b['on']('execute',(_0x9e5950,[,_0x571dae])=>{this['_trackChangesValueDuringImport']=_0x54e8a5['value'],_0x571dae['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xe3787b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xe3787b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54e8a5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3e0476['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x39dfeb,_0x3af4d0){const {suggestions:_0x5531bd}=_0x3af4d0,_0x274a12=this['editor']['commands']['get']('trackChanges'),_0x539434=_0x274a12['value'];this['_trackChangesValueDuringImport']!==_0x539434&&(_0x274a12['execute'](),this['_trackChangesExecuted']=!0x0),_0x5531bd&&_0x5531bd['forEach'](({id:_0x4e814f,type:_0x4b9f6b,author:_0x2c8c5b,created_at:_0xb67d6b})=>{const _0x2d6f0f={'id':_0x4e814f,'type':_0x4b9f6b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2c8c5b,'createdAt':_0xb67d6b?new Date(_0xb67d6b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2d6f0f);});}}class rt extends _0x6b635c{['afterInit'](){const _0x1e7159=this['editor'],_0x2861bf=_0x1e7159['plugins']['get']('TrackChangesEditing');if(_0x1e7159['plugins']['has']('IndentEditing')&&(_0x2861bf['enableCommand']('indent'),_0x2861bf['enableCommand']('outdent')),_0x1e7159['plugins']['has']('IndentBlock')){for(const _0x12f6b3 of['indentBlock','outdentBlock'])_0x2861bf['enableDefaultAttributesIntegration'](_0x12f6b3);}const _0x931289=_0x1e7159['locale'];_0x2861bf['registerBlockAttribute']('blockIndent'),_0x2861bf['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x931289,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20963d=this['editor'],_0x4882d5=_0x20963d['locale'],_0x34f2a9=_0x20963d['plugins']['get']('TrackChangesEditing');_0x34f2a9['descriptionFactory']['registerDescriptionCallback'](_0x5f225b=>{if('formatBlock'!=_0x5f225b['type'])return;const {data:_0x4d8402}=_0x5f225b;if(!_0x4d8402)return;if('indentBlock'!=_0x4d8402['commandName']&&'outdentBlock'!=_0x4d8402['commandName'])return;const _0x305f83=_0x5f225b['getItems']()[0x0],_0x47ec7c=_0x34f2a9['descriptionFactory']['getItemLabel'](_0x305f83);return'indentBlock'==_0x4d8402['commandName']?{'type':'format','content':o(_0x4882d5,'*Indent:*\x20%0',_0x47ec7c)}:'outdentBlock'==_0x4d8402['commandName']?{'type':'format','content':o(_0x4882d5,'*Outdent:*\x20%0',_0x47ec7c)}:void 0x0;});}}class at extends _0x6b635c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x6b635c{['afterInit'](){const _0x5445e3=this['editor'];if(!_0x5445e3['plugins']['has']('LinkEditing'))return;const _0x25204e=_0x5445e3['plugins']['get']('TrackChangesEditing'),_0x214d37=_0x5445e3['commands']['get']('link');_0x25204e['enableDefaultAttributesIntegration']('link'),_0x25204e['enableDefaultAttributesIntegration']('unlink'),_0x25204e['registerInlineAttribute']('linkHref');for(const _0x248b36 of _0x214d37['manualDecorators'])_0x25204e['registerInlineAttribute'](_0x248b36['id']),_0x25204e['descriptionFactory']['registerAttributeLabel'](_0x248b36['id'],'link\x20('+_0x248b36['label']['toLowerCase']()+')');_0x25204e['descriptionFactory']['registerDescriptionCallback'](_0x12ee1d=>{if('attribute'!=_0x12ee1d['type'])return;const {data:_0x5243a9}=_0x12ee1d;if(!_0x5243a9||'linkHref'!=_0x5243a9['key'])return;const _0x2f925d=_0x5243a9['newValue'],_0x6cf884=_0x5445e3['locale'];return{'type':'format','content':null==_0x2f925d?o(_0x6cf884,'*Remove\x20link*'):o(_0x6cf884,'*Set\x20link:*\x20%0','\x22'+_0x2f925d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xde225b=this['editor'],_0x300603=_0xde225b['locale'];_0xde225b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45f20a=>{if('formatInline'!=_0x45f20a['type'])return;const {data:_0xcc28ad}=_0x45f20a;if(_0xcc28ad){if('link'==_0xcc28ad['commandName']){const _0x56cf3d=_0xcc28ad['commandParams'][0x0];return{'type':'format','content':o(_0x300603,'*Set\x20link:*\x20%0','\x22'+_0x56cf3d+'\x22')};}return'unlink'==_0xcc28ad['commandName']?{'type':'format','content':o(_0x300603,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x6b635c{['afterInit'](){const _0x4dd213=this['editor'],_0x217d34=_0x4dd213['locale'];if(!_0x4dd213['plugins']['has']('LegacyListEditing'))return;const _0x529f75=_0x4dd213['plugins']['get']('TrackChangesEditing'),_0x48d43a=_0x4dd213['plugins']['has']('LegacyTodoListEditing');function _0x193b3b(_0x1bfb92){return()=>{const _0x335b23=_0x4dd213['model']['document']['selection'],_0x4d55d6=_0x4dd213['commands']['get'](_0x1bfb92);if(_0x4d55d6['value'])return void _0x4dd213['execute']('paragraph',{});const _0x1abfe5=_0x1bfb92['slice'](0x0,-0x4),_0x245a56=function(_0xb07692,_0x1f8aa4,_0x2d1c51){let _0x3648b0=Array['from'](_0xb07692)['filter'](_0x47117f=>function(_0x5908bc,_0x388377){return _0x388377['checkChild'](_0x5908bc['parent'],'listItem')&&!_0x388377['isObject'](_0x5908bc);}(_0x47117f,_0x2d1c51));_0x3648b0=_0x3648b0['filter'](_0x401711=>!_0x401711['is']('element','listItem')||_0x401711['getAttribute']('listType')!=_0x1f8aa4);const _0x4de5be=new Set();for(const _0x2f03fd of _0x3648b0)_0x2f03fd['is']('element','listItem')?_0x4de5be['add'](me(_0x2f03fd)):_0x4de5be['add'](_0x2f03fd);return Array['from'](_0x4de5be);}(_0x335b23['getSelectedBlocks'](),_0x1abfe5,_0x4dd213['model']['schema']);_0x4dd213['model']['change'](()=>{for(const _0xb8e9a1 of _0x245a56)_0x529f75['markBlockFormat'](_0xb8e9a1,{'commandName':_0x1bfb92,'commandParams':[{'forceValue':!_0x4d55d6['value']}],'formatGroupId':'blockName'},fe(_0xb8e9a1));});};}function _0x2759b7(_0x452680){return()=>{const _0x24a8b7=function(_0x59e73b){let _0x10df86=Array['from'](_0x59e73b);const _0x5e30f3=_0x10df86['findIndex'](_0x5af2ef=>'listItem'!=_0x5af2ef['name']);return _0x5e30f3>-0x1&&(_0x10df86=_0x10df86['slice'](0x0,_0x5e30f3)),_0x10df86;}(_0x4dd213['model']['document']['selection']['getSelectedBlocks']()),_0x133301=_0x4dd213['model']['createRange'](_0x4dd213['model']['createPositionAt'](_0x24a8b7[0x0],'before'),_0x4dd213['model']['createPositionAt'](_0x24a8b7[_0x24a8b7['length']-0x1],'end'));_0x4dd213['model']['change'](()=>{_0x529f75['markBlockFormat'](_0x133301,{'commandName':_0x452680,'commandParams':[],'formatGroupId':'listIndent'},function(_0xe4a3ed){const _0x4ee81d=new Set();for(const _0x2822c9 of _0xe4a3ed){let _0xeff93c=_0x2822c9['nextSibling'];for(;_0xeff93c&&_0xeff93c['getAttribute']('listIndent')>_0x2822c9['getAttribute']('listIndent');)_0x4ee81d['add'](_0xeff93c),_0xeff93c=_0xeff93c['nextSibling'];}return Array['from'](_0x4ee81d);}(_0x24a8b7));});};}_0x529f75['enableCommand']('numberedList',_0x193b3b('numberedList')),_0x529f75['enableCommand']('bulletedList',_0x193b3b('bulletedList')),_0x48d43a&&_0x529f75['enableCommand']('todoList',_0x193b3b('todoList')),_0x529f75['enableCommand']('indentList',_0x2759b7('indentList')),_0x529f75['enableCommand']('outdentList',_0x2759b7('outdentList')),_0x48d43a&&_0x529f75['enableCommand']('checkTodoList',()=>{const _0x289a58=_0x4dd213['commands']['get']('checkTodoList'),_0x7685e0=Array['from'](_0x289a58['_selectedElements']);_0x7685e0['filter'](_0x54dcd1=>_0x54dcd1['getAttribute']('todoListChecked')!=_0x289a58['value']),_0x4dd213['model']['change'](()=>{for(const _0x41a880 of _0x7685e0)_0x529f75['markBlockFormat'](_0x41a880,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x289a58['value']}]});});}),_0x529f75['descriptionFactory']['registerElementLabel']('listItem',_0x2cd9c3=>o(_0x217d34,'ELEMENT_LIST_ITEM',_0x2cd9c3)),_0x529f75['descriptionFactory']['registerDescriptionCallback'](_0x1a9d78=>{if('formatBlock'!=_0x1a9d78['type']&&'formatInline'!=_0x1a9d78['type'])return;const {data:_0x4d92e7}=_0x1a9d78;if(_0x4d92e7){if('numberedList'==_0x4d92e7['commandName']||'bulletedList'==_0x4d92e7['commandName']||'todoList'==_0x4d92e7['commandName'])switch(_0x4d92e7['commandName']['replace']('List','')){case'bulleted':return _0x40de58(o(_0x217d34,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40de58(o(_0x217d34,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40de58(o(_0x217d34,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4d92e7['commandName'])return{'type':'format','content':o(_0x217d34,'*Indent:*\x20%0',o(_0x217d34,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4d92e7['commandName'])return{'type':'format','content':o(_0x217d34,'*Outdent:*\x20%0',o(_0x217d34,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4d92e7['commandName'])return _0x4d92e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x217d34,'*Check\x20item*')}:{'type':'format','content':o(_0x217d34,'*Uncheck\x20item*')};}function _0x40de58(_0x43b8bc){return{'type':'format','content':o(_0x217d34,'*Change\x20to:*\x20%0',_0x43b8bc)};}});}}function me(_0xb63605){const _0x2e776f=_0xb63605['getAttribute']('listIndent');if(0x0==_0x2e776f)return _0xb63605;let _0x5e776a=_0xb63605;for(;_0xb63605['previousSibling']&&_0xb63605['previousSibling']['is']('element','listItem');){const _0x589cc6=_0xb63605['previousSibling']['getAttribute']('listIndent');if(_0x589cc6==_0x2e776f)_0x5e776a=_0xb63605['previousSibling'];else{if(_0x589cc6<_0x2e776f)break;}_0xb63605=_0xb63605['previousSibling'];}return _0x5e776a;}function fe(_0x471bc7){const _0xfdd884=[];if(_0x471bc7['is']('element','listItem')&&_0x471bc7['getAttribute']('listIndent')>0x0){let _0x360170=_0x471bc7['nextSibling'];for(;_0x360170&&'listItem'==_0x360170['name']&&_0x360170['getAttribute']('listIndent')==_0x471bc7['getAttribute']('listIndent');)_0xfdd884['push'](_0x360170),_0x360170=_0x360170['nextSibling'];}return _0xfdd884;}class K extends _0x6b635c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4b7cf8=this['editor']['config']['get']('list.properties'),_0x398a88=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b7cf8['styles']&&_0x398a88['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4b7cf8['reversed']&&_0x398a88['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4b7cf8['startIndex']&&_0x398a88['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x398a88['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x22d19c,_0x5df501={}){const _0x376b8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c043e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x376b8f['markMultiRangeBlockFormat'](_0x5c043e,{'commandName':'listStyle','commandParams':[{'type':_0x5df501['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5e616c,_0x260695={}){const _0x933f3f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a6a71=this['_getSuggestionBlocks'](_0x6b497e=>_0x6b497e['is']('element','listItem')&&'numbered'===_0x6b497e['getAttribute']('listType'));if(_0x1a6a71['length']<0x1)return;const _0x53ed78=_0x1a6a71['map'](_0x1648f5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1648f5,'before'),this['editor']['model']['createPositionAt'](_0x1648f5,0x0)));this['editor']['model']['change'](()=>{_0x933f3f['markMultiRangeBlockFormat'](_0x53ed78,{'commandName':'listReversed','commandParams':[{'reversed':_0x260695['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x32c6c7,_0x22da92={}){const _0x4eaa1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f3088=this['_getSuggestionBlocks'](_0x4d4214=>_0x4d4214['is']('element','listItem')&&'numbered'===_0x4d4214['getAttribute']('listType'));if(_0x1f3088['length']<0x1)return;const _0x1225b9=_0x1f3088['map'](_0x2e406f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e406f,'before'),this['editor']['model']['createPositionAt'](_0x2e406f,0x0)));this['editor']['model']['change'](()=>{_0x4eaa1c['markMultiRangeBlockFormat'](_0x1225b9,{'commandName':'listStart','commandParams':[{'startIndex':_0x22da92['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4946be){if('formatBlock'!=_0x4946be['type']&&'formatInline'!=_0x4946be['type'])return;const _0x53c425=this['editor']['locale'],{data:_0x491465}=_0x4946be;if(!_0x491465)return;let _0x377475,_0x3d2d01;switch(_0x491465['commandName']){case'listStyle':_0x377475='*Change\x20to:*\x20%0',_0x3d2d01={'type':'format','content':o(_0x53c425,_0x377475,o(_0x53c425,this['_getTranslationKeyForListStyle'](_0x491465['commandParams'][0x0]['type'])))};break;case'listReversed':_0x377475=_0x491465['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3d2d01={'type':'format','content':o(_0x53c425,_0x377475)};break;case'listStart':_0x377475='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3d2d01={'type':'format','content':o(_0x53c425,_0x377475,_0x491465['commandParams'][0x0]['startIndex'])};}return _0x3d2d01;}['_getSuggestionBlocksForListStyle'](){const _0x3ee388=this['editor']['plugins']['get']('LegacyListUtils');let _0x39e5ea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x39e5ea[0x0]?.['is']('element','listItem')&&_0x39e5ea['unshift'](..._0x3ee388['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x39e5ea[_0x39e5ea['length']-0x1]?.['is']('element','listItem')&&_0x39e5ea['push'](..._0x3ee388['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x39e5ea=[...new Set(_0x39e5ea)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x39e5ea=_0x39e5ea['filter'](_0x29f8ac=>_0x29f8ac['is']('element','listItem'))),_0x39e5ea;}['_getSuggestionBlocks'](_0xb8e206){const _0x3bf7c1=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b3c09=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xb8e206)['map'](_0xf03f88=>{const _0x4b506e=this['editor']['model']['createPositionAt'](_0xf03f88,0x0);return[..._0x3bf7c1['getSiblingNodes'](_0x4b506e,'backward'),..._0x3bf7c1['getSiblingNodes'](_0x4b506e,'forward')];})['flat']();return _0x5b3c09=[...new Set(_0x5b3c09)],_0x5b3c09;}['_getTranslationKeyForListStyle'](_0x7a7c12){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x7a7c12)||'default')['toUpperCase']()+'_LIST_'+_0x7a7c12['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x6b635c{['afterInit'](){const _0x365f24=this['editor'];if(!_0x365f24['plugins']['has']('MediaEmbedEditing'))return;const _0x33fc15=_0x365f24['plugins']['get']('TrackChangesEditing'),_0x2d9289=_0x365f24['locale'];_0x33fc15['enableCommand']('mediaEmbed'),_0x33fc15['descriptionFactory']['registerElementLabel']('media',_0x3fb27c=>o(_0x2d9289,'ELEMENT_MEDIA',_0x3fb27c)),_0x365f24['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2136ad,{writer:_0x3f49a3,options:_0x1e62ba})=>{if(_0x1e62ba['showSuggestionHighlights'])return _0x3f49a3['createEmptyElement']('div');},'converterPriority':'high'}),_0x365f24['data']['downcastDispatcher']['on']('attribute:url:media',(_0x57d660,_0xbd0290,_0x271878)=>{_0x271878['options']['showSuggestionHighlights']&&_0x57d660['stop']();},{'priority':'high'});}}class gt extends _0x6b635c{['afterInit'](){const _0x141f7e=this['editor'];_0x141f7e['plugins']['has']('MentionEditing')&&_0x141f7e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x6b635c{['afterInit'](){const _0x5c96a0=this['editor'],_0x20c112=_0x5c96a0['plugins']['get']('TrackChangesEditing');_0x5c96a0['plugins']['has']('MultiLevelList')&&(_0x20c112['enableDefaultAttributesIntegration']('multiLevelList'),_0x20c112['registerBlockAttribute']('listMarkerStyle'),_0x20c112['descriptionFactory']['registerDescriptionCallback'](_0x254306=>this['handleDescriptions'](_0x254306)));}['handleDescriptions'](_0x4052cc){const _0x3c3778=this['editor']['locale'],{data:_0x419707}=_0x4052cc,_0x511451={'type':'format','content':''};if(_0x419707&&'listMarkerStyle'==_0x419707['key']){if(!_0x419707['oldValue'])return{'type':'format','content':o(_0x3c3778,'*Set\x20format:*\x20%0',o(_0x3c3778,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x419707['newValue']+')'};if(!_0x419707['newValue']){let _0x3f3099=_0x4052cc['head'];for(;_0x3f3099;){if(_0x3f3099['data']&&'listType'==_0x3f3099['data']['key']&&_0x3f3099['data']['newValue'])return _0x511451;_0x3f3099=_0x3f3099['next'];}return{'type':'format','content':o(_0x3c3778,'*Remove\x20format:*\x20%0',o(_0x3c3778,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x419707['oldValue']+')'};}}}}class mt extends _0x6b635c{['afterInit'](){const _0x35d2b3=this['editor'];if(!_0x35d2b3['plugins']['has']('PageBreakEditing'))return;_0x35d2b3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x99f1c6=_0x35d2b3['plugins']['get']('TrackChangesEditing'),_0x13c46f=_0x35d2b3['locale'];_0x99f1c6['descriptionFactory']['registerElementLabel']('pageBreak',_0x4af4d1=>o(_0x13c46f,'ELEMENT_PAGE_BREAK',_0x4af4d1));}}class dt extends _0x6b635c{['afterInit'](){const _0x20f4de=this['editor'];if(!_0x20f4de['plugins']['has']('Paragraph'))return;const _0x274471=_0x20f4de['locale'],_0x2cee14=_0x20f4de['plugins']['get']('TrackChangesEditing');_0x2cee14['descriptionFactory']['registerElementLabel']('paragraph',_0x1bb3ea=>o(_0x274471,'ELEMENT_PARAGRAPH',_0x1bb3ea)),_0x2cee14['enableDefaultAttributesIntegration']('paragraph'),_0x2cee14['enableCommand']('insertParagraph'),_0x20f4de['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x20f4de),{'priority':'highest'}),_0x20f4de['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12b775,_0x3c06c4,_0x4e939c)=>{_0x4e939c['options']['showSuggestionHighlights']&&nr(_0x20f4de,{'showActiveMarker':!0x1})(_0x12b775,_0x3c06c4,_0x4e939c);},{'priority':'highest'});const _0x4b32a5=_0x2cee14['descriptionFactory'];_0x4b32a5['registerDescriptionCallback'](_0xd0a3f4=>{if('insertion'!==_0xd0a3f4['type'])return;const {start:_0x2b880f,end:_0xbc98b7}=_0xd0a3f4['getFirstRange']();if(!_0x2b880f['isTouching'](_0xbc98b7)||!_0x2b880f['nodeAfter'])return;const _0x1ca33f=_0x20f4de['model']['schema'],_0x35bb70=_0x2b880f['nodeAfter'];return _0x1ca33f['isBlock'](_0x35bb70)&&!_0x1ca33f['isLimit'](_0x35bb70)&&_0x1ca33f['checkChild'](_0x35bb70,'$text')?{'type':'insertion','content':o(_0x274471,'*Insert:*\x20%0',_0x4b32a5['getItemLabel'](_0x35bb70,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd70c61=this['editor'],_0x4c0461=_0xd70c61['locale'];_0xd70c61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c727a=>{if('formatBlock'!=_0x2c727a['type'])return;const {data:_0x44f8a8}=_0x2c727a;return _0x44f8a8&&'paragraph'==_0x44f8a8['commandName']?{'type':'format','content':o(_0x4c0461,'*Change\x20to:*\x20%0',o(_0x4c0461,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x50c5f3,{showActiveMarker:_0x1160c2=!0x0}={}){return(_0x140bad,_0xedf976,_0x523b95)=>{const _0x56e54b=_0x50c5f3['plugins']['get']('TrackChangesEditing'),_0x4af08d=_0xedf976['markerRange']['start'],_0x56eba0=_0xedf976['markerRange']['end'],_0x590ba9=_0x50c5f3['model']['schema'];if(!_0x4af08d['isTouching'](_0x56eba0)||!_0x4af08d['nodeAfter'])return;const _0x550031=_0x4af08d['nodeAfter'];if(_0x590ba9['isBlock'](_0x550031)&&!_0x590ba9['isLimit'](_0x550031)&&_0x590ba9['checkChild'](_0x550031,'$text')){if(!_0x523b95['consumable']['consume'](_0xedf976['markerRange'],_0x140bad['name']))return;const _0x423899=_0x523b95['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0xab2c95=_0x523b95['mapper']['toViewPosition'](_0x56eba0);_0x1160c2&&_0x56e54b['activeMarkers']['includes'](_0xedf976['markerName'])&&_0x523b95['writer']['addClass']('ck-suggestion-marker--active',_0x423899),_0x523b95['writer']['insert'](_0xab2c95,_0x423899),_0x523b95['mapper']['bindElementToMarker'](_0x423899,_0xedf976['markerName']);}};}class pt extends _0x6b635c{['afterInit'](){const _0x4d8dd6=this['editor'];if(!_0x4d8dd6['plugins']['has']('RemoveFormatEditing'))return;_0x4d8dd6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39aca8=this['editor'];_0x39aca8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x216d67=>{if('formatBlock'!=_0x216d67['type']&&'formatInline'!=_0x216d67['type'])return;const {data:_0x50214b}=_0x216d67;return _0x50214b&&'removeFormat'==_0x50214b['commandName']?{'type':'format','content':o(_0x39aca8['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x6b635c{['afterInit'](){const _0xdf6cfc=this['editor'];if(!_0xdf6cfc['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3793ba=_0xdf6cfc['plugins']['get']('TrackChangesEditing');_0x3793ba['enableCommand']('goToPreviousRestrictedEditingException'),_0x3793ba['enableCommand']('goToNextRestrictedEditingException');const _0x30a3d2=_0xdf6cfc['plugins']['get']('RestrictedEditingModeEditing');_0x30a3d2['enableCommand']('trackChanges'),_0x30a3d2['enableCommand']('acceptSuggestion'),_0x30a3d2['enableCommand']('discardSuggestion'),_0x30a3d2['enableCommand']('acceptAllSuggestions'),_0x30a3d2['enableCommand']('discardAllSuggestions'),_0x30a3d2['enableCommand']('acceptSelectedSuggestions'),_0x30a3d2['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x6b635c{static get['requires'](){return[_0x3a402f];}['init'](){const _0x1becb8=this['editor'],_0x1f84f0=_0x1becb8['plugins']['get']('TrackChangesEditing');_0x1f84f0['enableCommand']('shiftEnter'),_0x1becb8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1becb8),{'priority':'high'}),_0x1becb8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1becb8),{'priority':'high'}),_0x1becb8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4083ef,_0xcd5468,_0x1bb86c)=>{_0x1bb86c['options']['showSuggestionHighlights']&&de(_0x1becb8,{'showActiveMarker':!0x1})(_0x4083ef,_0xcd5468,_0x1bb86c);}),_0x1f84f0['descriptionFactory']['registerElementLabel']('softBreak',_0x52e8d9=>o(_0x1becb8['locale'],'ELEMENT_LINE_BREAK',_0x52e8d9));}}function de(_0xc8b90a,{showActiveMarker:_0x16734e=!0x0}={}){return(_0x338ac7,_0x4bb690,_0x43e7ac)=>{const _0x2e2c60=_0xc8b90a['plugins']['get']('TrackChangesEditing');if(!_0x43e7ac['consumable']['test'](_0x4bb690['markerRange'],_0x338ac7['name']))return;const _0x58407b=_0xc8b90a['model'];for(const _0x3fdb02 of _0x4bb690['markerRange']['getItems']()){if(!_0x3fdb02['is']('element','softBreak'))continue;const _0x328c20='deletion'==_0x4bb690['markerName']['split'](':')[0x1]?'merge':'split',_0x3dfd83=_0x43e7ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x328c20}),_0x3f4648=_0x43e7ac['mapper']['toViewPosition'](_0x58407b['createPositionBefore'](_0x3fdb02));_0x16734e&&_0x2e2c60['activeMarkers']['includes'](_0x4bb690['markerName'])&&_0x43e7ac['writer']['addClass']('ck-suggestion-marker--active',_0x3dfd83),_0x43e7ac['writer']['insert'](_0x3f4648,_0x3dfd83),_0x43e7ac['mapper']['bindElementToMarker'](_0x3dfd83,_0x4bb690['markerName']);}};}class wt extends _0x6b635c{['afterInit'](){const _0x1e000d=this['editor'],_0x188e83=_0x1e000d['model'],_0x1e37e5=_0x1e000d['locale'];if(!_0x1e000d['plugins']['has']('StandardEditingModeEditing'))return;const _0xf11bf3=_0x1e000d['plugins']['get']('TrackChangesEditing'),_0x5734df='restrictedEditingException',_0x4ae4f6=_0x1e000d['commands']['get'](_0x5734df);_0xf11bf3['enableCommand'](_0x5734df,(_0x5baaf6,_0x1d6c88={})=>{const _0x369faa=_0x188e83['document']['selection'];if(_0x369faa['isCollapsed'])return void _0x5baaf6(_0x1d6c88);const _0x3dc975=void 0x0!==_0x1d6c88['forceValue']?_0x1d6c88['forceValue']:!_0x4ae4f6['value'];_0x188e83['change'](()=>{const _0xe3367d=Array['from'](_0x369faa['getRanges']());for(const _0x3c0412 of _0xe3367d){const _0x11cd1b=_0x3dc975?[_0x3c0412]:io(_0x5734df,_0x3c0412,_0x188e83);for(const _0x2664a0 of _0x11cd1b)_0xf11bf3['markInlineFormat'](_0x2664a0,{'commandName':_0x5734df,'commandParams':[{'forceValue':_0x3dc975}]});}});}),_0xf11bf3['descriptionFactory']['registerDescriptionCallback'](_0x496e0b=>{if('formatBlock'!=_0x496e0b['type']&&'formatInline'!=_0x496e0b['type'])return;const {data:_0x33e3f5}=_0x496e0b;return _0x33e3f5&&_0x33e3f5['commandName']==_0x5734df?_0x33e3f5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e37e5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1e37e5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x6b635c{['afterInit'](){const _0x3b0076=this['editor'];if(!_0x3b0076['plugins']['has']('Style')||!_0x3b0076['plugins']['has']('DataSchema'))return;const _0x1938cf=_0x3b0076['plugins']['get']('TrackChangesEditing'),_0x5c2950=_0x3b0076['locale'],_0xa73466=_0x3b0076['config']['get']('style')||{},_0x4737b1=_0x3b0076['plugins']['get']('GeneralHtmlSupport'),_0x1805e8=_0x3b0076['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b0076['plugins']['get']('DataSchema'),_0xa73466['definitions']);_0x1938cf['enableDefaultAttributesIntegration']('style');const _0x1a4360=new Set();for(const _0x76fbbc of _0x1805e8['block']){const _0x1430da=_0x4737b1['getGhsAttributeNameForElement'](_0x76fbbc['element']);_0x1a4360['add'](_0x1430da);}const _0x54aab0=new Set();for(const _0x1bd597 of _0x1805e8['inline']){const _0x3e00d3=_0x4737b1['getGhsAttributeNameForElement'](_0x1bd597['element']);_0x54aab0['add'](_0x3e00d3);for(const _0x34154d of _0x1bd597['ghsAttributes'])_0x54aab0['add'](_0x34154d);}for(const _0x3bf597 of _0x1a4360)_0x1938cf['registerBlockAttribute'](_0x3bf597),_0x1938cf['descriptionFactory']['registerAttributeLabel'](_0x3bf597,o(_0x5c2950,'FORMAT_STYLE'));for(const _0x48656f of _0x54aab0)_0x1938cf['registerInlineAttribute'](_0x48656f),_0x1938cf['descriptionFactory']['registerAttributeLabel'](_0x48656f,o(_0x5c2950,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x177e78=this['editor'],_0x2bb45d=_0x177e78['locale'];_0x177e78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0afc=>{if('formatBlock'!=_0x5e0afc['type']&&'formatInline'!=_0x5e0afc['type'])return;const {data:_0x15641a}=_0x5e0afc;return _0x15641a&&'style'===_0x15641a['commandName']?_0x15641a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bb45d,'*Set\x20format:*\x20%0',_0x15641a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2bb45d,'*Remove\x20format:*\x20%0',_0x15641a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x6b635c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5c8fee){super(_0x5c8fee),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ecf91=this['editor'],_0x1324ac=_0x3ecf91['model']['document']['selection'];if(!_0x3ecf91['plugins']['has']('TableEditing'))return;const _0x613f32=_0x3ecf91['locale'],_0x5aef4f=_0x3ecf91['plugins']['get']('TrackChangesEditing'),_0x4c8420=_0x3ecf91['plugins']['get']('TableUtils');_0x5aef4f['descriptionFactory']['registerElementLabel']('table',_0x4a7929=>o(_0x613f32,'ELEMENT_TABLE',_0x4a7929)),this['_setupColumnsRowsFixing'](),_0x5aef4f['enableCommand']('insertTable'),_0x5aef4f['enableCommand']('selectTableRow'),_0x5aef4f['enableCommand']('selectTableColumn');for(const _0x3e6acb of['insertTableRowAbove','insertTableRowBelow']){const _0x29abde=_0x3ecf91['commands']['get'](_0x3e6acb);_0x5aef4f['enableCommand'](_0x3e6acb,_0x5242e5=>{_0x3ecf91['model']['change'](_0x211c14=>{_0x5242e5();const _0x71b8c6='above'===_0x29abde['order'],_0x170ca3=_0x4c8420['getSelectionAffectedTableCells'](_0x1324ac),_0x949c6b=_0x4c8420['getRowIndexes'](_0x170ca3),_0xe09e73=_0x71b8c6?_0x949c6b['first']-0x1:_0x949c6b['last']+0x1,_0x232a4f=_0x170ca3[0x0]['findAncestor']('table'),_0xd7bda5=_0x4c8420['createTableWalker'](_0x232a4f,{'startRow':_0xe09e73,'endRow':_0xe09e73}),_0x5e9609=Array['from'](_0xd7bda5)['map'](_0xe63f89=>_0x211c14['createRangeOn'](_0xe63f89['cell']));_0x5aef4f['markMultiRangeInsertion'](_0x5e9609,'tableRow');});});}for(const _0x49bea3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ad216=_0x3ecf91['commands']['get'](_0x49bea3);_0x5aef4f['enableCommand'](_0x49bea3,_0x6eea8e=>{_0x3ecf91['model']['change'](_0x31ba47=>{_0x6eea8e();const _0x3850f5='left'===_0x5ad216['order'],_0x378db8=_0x4c8420['getSelectionAffectedTableCells'](_0x1324ac),_0x5e2276=_0x4c8420['getColumnIndexes'](_0x378db8),_0x1a27a6=_0x3850f5?_0x5e2276['first']-0x1:_0x5e2276['last']+0x1,_0x45461a=_0x378db8[0x0]['findAncestor']('table'),_0x18ccc4=_0x4c8420['createTableWalker'](_0x45461a,{'startRow':0x0,'column':_0x1a27a6,'includeAllSlots':!0x1}),_0x3c4277=Array['from'](_0x18ccc4)['map'](_0x5b0e3b=>_0x31ba47['createRangeOn'](_0x5b0e3b['cell']));_0x5aef4f['markMultiRangeInsertion'](_0x3c4277,'tableColumn');});});}for(const _0x5ad02c of['removeTableRow','removeTableColumn']){const _0x112d69=_0x5ad02c['substr'](0xb),_0x14cf99=_0x112d69['toLowerCase'](),_0xcd1079=_0x14cf99['substr'](0x0,0x3)+'span',_0x4f39e3='table'+_0x112d69,_0x541a0a='min'+_0x112d69,_0x36079f='max'+_0x112d69;_0x5aef4f['enableCommand'](_0x5ad02c,()=>{_0x3ecf91['model']['change'](_0x1a0e92=>{const _0x166fa3=_0x4c8420['getSelectionAffectedTableCells'](_0x1324ac),_0x3cd804=_0x166fa3[0x0]['findAncestor']('table');let _0x2fb5c;if('removeTableRow'==_0x5ad02c){const _0x54a862=_0x4c8420['getRowIndexes'](_0x166fa3);_0x2fb5c={'startRow':_0x54a862['first'],'endRow':_0x54a862['last'],'includeAllSlots':!0x0};}else{const _0x4b6b98=_0x4c8420['getColumnIndexes'](_0x166fa3);_0x2fb5c={'startColumn':_0x4b6b98['first'],'endColumn':_0x4b6b98['last'],'includeAllSlots':!0x0};}const _0x49fc89=_0x4c8420['createTableWalker'](_0x3cd804,_0x2fb5c),_0x34d1ab=Array['from'](_0x49fc89)['map'](({cell:_0xc58eff})=>_0xc58eff),_0x1ce323=Ee(_0x34d1ab['filter'](_0x52ff51=>_0x52ff51['hasAttribute'](_0xcd1079))),_0x2bd325=Ee(_0x34d1ab['filter'](_0x147eb6=>!_0x147eb6['hasAttribute'](_0xcd1079)))['map'](_0x1a95fb=>_0x1a0e92['createRangeOn'](_0x1a95fb)),_0x53a185=_0x5aef4f['markMultiRangeDeletion'](_0x2bd325,_0x4f39e3);if(_0x53a185&&('tableRow'==_0x53a185['subType']||'tableColumn'==_0x53a185['subType'])){const _0x1ba504=this['_getSuggestionCoords'](_0x53a185);for(const _0x339289 of _0x1ce323){const _0xfedc0=_0x1a0e92['createRangeOn'](_0x339289),_0xf4b9f=_0x4c8420['getCellLocation'](_0x339289),_0x509db3=_0x339289['getAttribute'](_0xcd1079)-0x1,_0x31729c=_0x1ba504[_0x541a0a],_0x82317c=_0x1ba504[_0x36079f];_0x31729c<=_0xf4b9f[_0x14cf99]&&_0xf4b9f[_0x14cf99]+_0x509db3<=_0x82317c&&_0x53a185['addRange'](_0xfedc0);}}});});}function _0x2d0038(_0x43b777){const _0x40e929=Array['from'](_0x1324ac['getRanges']())['map'](_0x23f87d=>_0x2bf34c['fromRange'](_0x23f87d));_0x3ecf91['model']['change'](_0x15b62e=>{const _0x27a3d7=_0x15b62e['batch'];_0x43b777=_0x43b777['filter'](_0x1e18a0=>'$graveyard'!=_0x1e18a0['root']['rootName']),_0x15b62e['setSelection'](_0x43b777),_0x3ecf91['commands']['get']('removeTableRow')['refresh'](),_0x3ecf91['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ecf91['model']['enqueueChange'](()=>{_0x3ecf91['model']['enqueueChange'](_0x27a3d7,_0x3b3834=>{const _0x5792d4=_0x40e929['filter'](_0x5653a9=>'$graveyard'!=_0x5653a9['root']['rootName']);_0x5792d4['length']>0x0&&_0x3b3834['setSelection'](_0x5792d4);for(const _0x1f2906 of _0x40e929)_0x1f2906['detach']();});});});}function _0xc9a32a(_0xe3474d){_0x3ecf91['model']['change'](_0x39b8c5=>{const _0x5723ad=Array['from'](_0x1324ac['getRanges']())['map'](_0x4a5b8a=>_0x2bf34c['fromRange'](_0x4a5b8a)),_0x2632bc=[];for(const _0x45a5d5 of _0xe3474d)for(const _0x2e5070 of _0x45a5d5['getItems']({'shallow':!0x0}))_0x2632bc['push'](_0x2e5070);for(const _0x471c97 of _0x2632bc)'$graveyard'!=_0x471c97['root']['rootName']&&(_0x39b8c5['setSelection'](_0x39b8c5['createPositionAt'](_0x471c97,0x0)),_0x3ecf91['commands']['get']('removeTableColumn')['refresh'](),_0x3ecf91['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x9da88c=_0x5723ad['filter'](_0x40c525=>'$graveyard'!=_0x40c525['root']['rootName']);_0x9da88c['length']>0x0&&_0x39b8c5['setSelection'](_0x9da88c);for(const _0x175b55 of _0x5723ad)_0x175b55['detach']();});}function _0x2cee66(_0x4021ab,_0x2c1870){return _0x2c1870['every'](_0x13e62a=>_0x4021ab['some'](_0x5199c5=>_0x5199c5['end']['isEqual'](_0x13e62a['start'])||_0x13e62a['end']['isEqual'](_0x5199c5['start'])));}function _0xba4f7b(_0x547f69,_0x2bb5f1){return _0x547f69['some'](_0x3716e4=>_0x2bb5f1['some'](_0x341304=>_0x3716e4['end']['isTouching'](_0x341304['start'])));}_0x3ecf91['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x31ac91,_0x402722,_0x262880)=>{if(!_0x262880['options']['showSuggestionHighlights'])return;const _0x53e356=_0x402722['item'];if(!_0x53e356)return;const _0x46fa1a=_0x262880['mapper']['toViewElement'](_0x53e356);function _0x5e5bc6(_0x3b7a9b){return Array['isArray'](_0x3b7a9b)?_0x3b7a9b:[_0x3b7a9b];}_0x46fa1a&&'tableCell'===_0x53e356['name']&&_0x897d52(_0x46fa1a,_0x262880['writer'],(_0x35e379,_0xa79e41,_0x53997f)=>_0x53997f['addClass'](_0x5e5bc6(_0xa79e41['classes']),_0x35e379),(_0x1af4eb,_0x3bb6ce,_0x3178d5)=>_0x3178d5['removeClass'](_0x5e5bc6(_0x3bb6ce['classes']),_0x1af4eb));},{'priority':'highest'}),_0x5aef4f['descriptionFactory']['registerDescriptionCallback'](_0x1fa87c=>{if('insertion'!=_0x1fa87c['type']&&'deletion'!=_0x1fa87c['type'])return;const _0x393c71=_0x1fa87c['getContainedElement']();if(null!=_0x393c71&&_0x393c71['is']('element','table')){if('insertion'==_0x1fa87c['type']){const _0x1c56bc=_0x1fa87c['getItems']()['filter'](_0x5afa27=>_0x5afa27['is']('$textProxy'))['map'](_0x372091=>_0x372091['data']);if(_0x1c56bc['length'])return{'type':'insertion','content':o(_0x613f32,'*Insert:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1c56bc['join']('\x20')+'\x22'))};}if('deletion'==_0x1fa87c['type']){const _0x1772de=_0x1fa87c['getItems']()['filter'](_0x58ee02=>_0x58ee02['is']('$textProxy'))['map'](_0x2a6aee=>_0x2a6aee['data']);if(_0x1772de['length'])return{'type':'deletion','content':o(_0x613f32,'*Remove:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1772de['join']('\x20')+'\x22'))};}}}),_0x5aef4f['descriptionFactory']['registerDescriptionCallback'](_0x14736d=>{if('tableRow'==_0x14736d['subType']){const _0xc60da2=_0x14736d['getItems']()['filter'](_0x4bd513=>_0x4bd513['is']('$textProxy'))['map'](_0x8c39a2=>_0x8c39a2['data']),_0x50e8f5=this['_getSuggestionCoords'](_0x14736d),_0x1a2692=_0x50e8f5['maxRow']-_0x50e8f5['minRow']+0x1;if('insertion'==_0x14736d['type'])return _0xc60da2['length']?{'type':'insertion','content':o(_0x613f32,'*Insert:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a2692,'\x22'+_0xc60da2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x613f32,'*Insert:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_ROW',_0x1a2692))};if('deletion'==_0x14736d['type'])return _0xc60da2['length']?{'type':'deletion','content':o(_0x613f32,'*Remove:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a2692,'\x22'+_0xc60da2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x613f32,'*Remove:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_ROW',_0x1a2692))};}if('tableColumn'==_0x14736d['subType']){const _0x5b49fc=_0x14736d['getItems']()['filter'](_0x1b139a=>_0x1b139a['is']('$textProxy'))['map'](_0x2df846=>_0x2df846['data']),_0x3e8eff=this['_getSuggestionCoords'](_0x14736d),_0x39673f=_0x3e8eff['maxColumn']-_0x3e8eff['minColumn']+0x1;if('insertion'==_0x14736d['type'])return _0x5b49fc['length']?{'type':'insertion','content':o(_0x613f32,'*Insert:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39673f,'\x22'+_0x5b49fc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x613f32,'*Insert:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_COLUMN',_0x39673f))};if('deletion'==_0x14736d['type'])return _0x5b49fc['length']?{'type':'deletion','content':o(_0x613f32,'*Remove:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39673f,'\x22'+_0x5b49fc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x613f32,'*Remove:*\x20%0',o(_0x613f32,'ELEMENT_TABLE_COLUMN',_0x39673f))};}}),_0x5aef4f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2d0038),_0x5aef4f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2d0038),_0x5aef4f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xc9a32a),_0x5aef4f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xc9a32a),_0x5aef4f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2cee66),_0x5aef4f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2cee66),_0x5aef4f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xba4f7b),_0x5aef4f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xba4f7b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x22b8ce=this['editor'],_0x6a83fa=_0x22b8ce['model']['document']['selection'];return(_0x4ef6cd,_0x29307b)=>{_0x22b8ce['model']['change'](_0x51821f=>{const {commandName:_0x263a78,commandParams:_0x5a02f5}=_0x29307b;let _0x229816=_0x4ef6cd[0x0]['end']['nodeBefore'];_0x5a02f5&&_0x5a02f5[0x0]&&!0x1===_0x5a02f5[0x0]['forceValue']&&(_0x229816=_0x4ef6cd[0x0]['start']['nodeAfter']);const _0x18d998=_0x51821f['createRangeIn'](_0x229816);if('$graveyard'==_0x18d998['root']['rootName'])return;const _0x132bac=Array['from'](_0x6a83fa['getRanges']())['map'](_0x1bf2c8=>_0x2bf34c['fromRange'](_0x1bf2c8));_0x51821f['setSelection'](_0x18d998),_0x22b8ce['commands']['get'](_0x263a78)['refresh'](),_0x5a02f5['push']({'forceDefaultExecution':!0x0}),_0x22b8ce['execute'](_0x263a78,..._0x5a02f5);const _0x1ad055=_0x132bac['filter'](_0x9d5b5b=>'$graveyard'!=_0x9d5b5b['root']['rootName']);_0x1ad055['length']>0x0&&_0x51821f['setSelection'](_0x1ad055);for(const _0x11167f of _0x132bac)_0x11167f['detach']();});};}['_getCoordsForCells'](_0x1237b2){const _0x2e6ead=this['editor']['plugins']['get']('TableUtils');let _0xa1186d=Number['MAX_SAFE_INTEGER'],_0x4ac0c6=Number['MIN_SAFE_INTEGER'],_0x4bce90=Number['MAX_SAFE_INTEGER'],_0x4d8828=Number['MIN_SAFE_INTEGER'];for(const _0x54f69f of _0x1237b2){if('$graveyard'==_0x54f69f['root']['rootName'])continue;const {row:_0x4cf6f7,column:_0x4a9de4}=_0x2e6ead['getCellLocation'](_0x54f69f),_0x13c563=_0x54f69f['hasAttribute']('rowspan')?_0x54f69f['getAttribute']('rowspan')-0x1:0x0,_0xfa5c49=_0x54f69f['hasAttribute']('colspan')?_0x54f69f['getAttribute']('colspan')-0x1:0x0;_0xa1186d=_0x4cf6f7<_0xa1186d?_0x4cf6f7:_0xa1186d,_0x4ac0c6=_0x4cf6f7+_0x13c563>_0x4ac0c6?_0x4cf6f7+_0x13c563:_0x4ac0c6,_0x4bce90=_0x4a9de4<_0x4bce90?_0x4a9de4:_0x4bce90,_0x4d8828=_0x4a9de4+_0xfa5c49>_0x4d8828?_0x4a9de4+_0xfa5c49:_0x4d8828;}return{'minRow':_0xa1186d,'maxRow':_0x4ac0c6,'minColumn':_0x4bce90,'maxColumn':_0x4d8828};}['_setupColumnsRowsFixing'](){const _0x5640fd=this['editor'],_0x282e45=_0x5640fd['plugins']['get']('TrackChangesEditing'),_0x3be8ff=_0x5640fd['plugins']['get']('TableUtils');_0x5640fd['model']['document']['on']('change:data',()=>{const _0x5eb8d4=Array['from'](_0x5640fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x494b66,data:_0x3f9f78}of _0x5eb8d4){const {group:_0x1517ff,id:_0x2250f3,subType:_0x3f1928}=_0x282e45['_splitMarkerName'](_0x494b66);if('suggestion'!=_0x1517ff)continue;if(null!=_0x3f9f78['oldRange'])continue;const _0x5b3a37=_0x282e45['getSuggestion'](_0x2250f3);this['_tablePostFixingSubtypes']['includes'](_0x3f1928)&&this['_tableSuggestions']['add'](_0x5b3a37);}},{'priority':'low'});const _0x1fb81f=(_0x51ee37,_0x3448d0)=>{let _0x3f195f=!0x1;const _0x43716f=_0x3448d0['createRangeOn'](_0x51ee37),_0x26fc1e=_0x51ee37['findAncestor']('table'),_0x3cefd3=_0x3be8ff['getCellLocation'](_0x51ee37);for(const _0x206769 of this['_tableSuggestions']){const _0x154344=_0x206769['subType'],_0x1feb47=_0x154344['startsWith']('tablePaste'),_0x26a121=_0x154344['substr'](_0x1feb47?0xa:0x5),_0x2dde2c=_0x26a121['toLowerCase'](),_0xd0f595=_0x2dde2c['substr'](0x0,0x3)+'span',_0x30090e='min'+_0x26a121,_0x41fd54='max'+_0x26a121;if(!_0x206769['isInContent'])continue;if(_0x26fc1e!=_0x206769['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x206769['isIntersectingWithRange'](_0x43716f))continue;const _0x196fcc=_0x51ee37['hasAttribute'](_0xd0f595)?_0x51ee37['getAttribute'](_0xd0f595)-0x1:0x0,_0x494642=this['_getSuggestionCoords'](_0x206769),_0x4270c7=_0x494642[_0x30090e],_0x589b63=_0x494642[_0x41fd54];_0x4270c7<=_0x3cefd3[_0x2dde2c]&&_0x3cefd3[_0x2dde2c]+_0x196fcc<=_0x589b63&&(_0x206769['addRange'](_0x43716f),_0x3f195f=!0x0);}return _0x3f195f;};_0x5640fd['model']['document']['registerPostFixer'](_0x43a39b=>{let _0x300e0d=!0x1;for(const _0x5b8c96 of _0x5640fd['model']['document']['differ']['getChanges']())if('insert'==_0x5b8c96['type']){if('tableRow'==_0x5b8c96['name']){for(const _0x4dff4b of _0x5b8c96['position']['nodeAfter']['getChildren']())_0x300e0d=_0x300e0d||_0x1fb81f(_0x4dff4b,_0x43a39b);}else'tableCell'==_0x5b8c96['name']&&(_0x300e0d=_0x300e0d||_0x1fb81f(_0x5b8c96['position']['nodeAfter'],_0x43a39b));}return _0x300e0d;});}['_getSuggestionCoords'](_0x1f5fc0){return this['_getCoordsForCells'](_0x1f5fc0['getRanges']()['map'](_0x2c0819=>_0x2c0819['start']['nodeAfter']));}}function Ee(_0x38ba66){return Array['from'](new Set(_0x38ba66)['values']());}class St extends _0x6b635c{static get['requires'](){return[jt];}['afterInit'](){const _0x2da6bb=this['editor'],_0x20d0bb=_0x2da6bb['model']['document']['selection'],_0x1c414a=_0x2da6bb['locale'];if(!_0x2da6bb['plugins']['has']('TableEditing'))return;const _0x36fa16=_0x2da6bb['plugins']['get']('TrackChangesEditing'),_0x319cc3=_0x2da6bb['plugins']['get']('TableUtils'),_0x273e23=_0x2da6bb['plugins']['get'](jt);_0x273e23['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x36fa16['enableCommand']('mergeTableCells',()=>{const _0x59900a=_0x319cc3['getSelectionAffectedTableCells'](_0x2da6bb['model']['document']['selection']);_0x2da6bb['model']['change'](()=>{_0x36fa16['markMultiRangeBlockFormat'](_0x59900a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2da6bb['commands']['get']('mergeTableCells')['on']('execute',(_0x2493a4,_0x2032cd)=>{_0x2da6bb['commands']['get']('trackChanges')['value']&&(_0x2032cd['length']>0x0&&_0x2032cd[_0x2032cd['length']-0x1]&&_0x2032cd[_0x2032cd['length']-0x1]['forceDefaultExecution']||_0x36fa16['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2493a4['stop']());},{'priority':'highest'});for(const _0xfc5835 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3c3398=_0x2da6bb['commands']['get'](_0xfc5835);_0x36fa16['enableCommand'](_0xfc5835,()=>{const _0x235b24=_0x2da6bb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5ba14d=>_0x5ba14d['is']('element','tableCell')),_0x3a4ca9=_0x3c3398['value'];_0x2da6bb['model']['change'](()=>{_0x36fa16['markMultiRangeBlockFormat']([_0x235b24,_0x3a4ca9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41d5a3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17c083=_0x2da6bb['commands']['get'](_0x41d5a3);_0x36fa16['enableCommand'](_0x41d5a3,()=>{const _0x4d6763=_0x319cc3['getSelectionAffectedTableCells'](_0x2da6bb['model']['document']['selection'])[0x0],_0x16a378=_0x4d6763['findAncestor']('table'),{column:_0x359796,row:_0x2cdff3}=_0x319cc3['getCellLocation'](_0x4d6763);let _0x3b1fc2=[];if('horizontally'==_0x17c083['direction']){const _0xa2184f=_0x319cc3['createTableWalker'](_0x16a378,{'startRow':_0x2cdff3,'endRow':_0x2cdff3,'includeAllSlots':!0x0});_0x3b1fc2=Array['from'](_0xa2184f)['map'](_0x7197eb=>_0x7197eb['cell']);}else{const _0x35f03f=_0x319cc3['createTableWalker'](_0x16a378,{'column':_0x359796,'includeAllSlots':!0x0});_0x3b1fc2=Array['from'](_0x35f03f)['map'](_0x42ca11=>_0x42ca11['cell']);}_0x2da6bb['model']['change'](_0x512883=>{_0x36fa16['markBlockFormat'](_0x512883['createRangeOn'](_0x4d6763),{'commandName':_0x41d5a3,'commandParams':[]},_0x3b1fc2,_0x41d5a3);});});}_0x36fa16['descriptionFactory']['registerDescriptionCallback'](_0x1535fd=>{if('formatBlock'!=_0x1535fd['type']&&'formatInline'!=_0x1535fd['type'])return;const {data:_0x6fcbad}=_0x1535fd;return _0x6fcbad&&'mergeTableCells'==_0x6fcbad['commandName']?{'type':'format','content':o(_0x1c414a,'*Merge\x20cells*')}:void 0x0;}),_0x36fa16['descriptionFactory']['registerDescriptionCallback'](_0x347f13=>{if('formatBlock'!=_0x347f13['type']&&'formatInline'!=_0x347f13['type'])return;const {data:_0x12fb9f}=_0x347f13;return _0x12fb9f?'splitTableCellVertically'==_0x12fb9f['commandName']?{'type':'format','content':o(_0x1c414a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x12fb9f['commandName']?{'type':'format','content':o(_0x1c414a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x768499=_0x273e23['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a3019 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x36fa16['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a3019,'accept',_0x768499);for(const _0x25e45f of['splitTableCellVertically','splitTableCellHorizontally'])_0x36fa16['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25e45f,'accept',_0x768499);_0x36fa16['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x205e69=>{_0x2da6bb['model']['change'](_0x25afbf=>{const _0x5c350f=Array['from'](_0x20d0bb['getRanges']())['map'](_0x21aea5=>_0x2bf34c['fromRange'](_0x21aea5));_0x25afbf['setSelection'](_0x205e69),_0x2da6bb['commands']['get']('mergeTableCells')['refresh'](),_0x2da6bb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x55786b=_0x5c350f['filter'](_0x205d57=>'$graveyard'!=_0x205d57['root']['rootName']);_0x55786b['length']>0x0&&_0x25afbf['setSelection'](_0x55786b);for(const _0x1cf553 of _0x5c350f)_0x1cf553['detach']();});});for(const _0x35f98b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37a966=_0x2da6bb['commands']['get'](_0x35f98b);_0x37a966['on']('set:isEnabled',(_0x98dbdb,_0x33d777,_0x3e0827)=>{if(_0x3e0827){const _0x1088db=_0x2da6bb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13f7b8=>_0x13f7b8['is']('element','tableCell'));this['_areMergableCells'](_0x37a966['value'],_0x1088db)||(_0x98dbdb['return']=!0x1,_0x98dbdb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ab1d4=this['editor']['commands']['get']('mergeTableCells'),_0x1b59c0=this['editor']['plugins']['get']('TableUtils');if(!_0x1ab1d4['isEnabled'])return!0x1;const _0x3bbf40=_0x1b59c0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x29cbd5 of _0x3bbf40)for(const _0x37514f of _0x3bbf40)if(_0x29cbd5!=_0x37514f&&!this['_areMergableCells'](_0x29cbd5,_0x37514f))return!0x1;return!0x0;}['_areMergableCells'](_0x1f8721,_0x3d4110){const _0x154413=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e2849=this['editor']['model']['createRangeOn'](_0x1f8721),_0x22a32c=this['editor']['model']['createRangeOn'](_0x3d4110),_0xce3c51=new Set(),_0x128444=new Set();for(const _0x252502 of _0x154413['getSuggestions']())if(('insertion'==_0x252502['type']||'deletion'==_0x252502['type']||'mergeTableCells'==_0x252502['subType'])&&_0x252502['isInContent']){for(const _0x27ea24 of _0x252502['getRanges']())_0x27ea24['containsRange'](_0x4e2849,!0x0)&&_0xce3c51['add'](_0x252502['type']+':'+_0x252502['author']['id']),_0x27ea24['containsRange'](_0x22a32c,!0x0)&&_0x128444['add'](_0x252502['type']+':'+_0x252502['author']['id']);}if(_0xce3c51['size']!=_0x128444['size'])return!0x1;for(const _0x54ee93 of _0xce3c51)if(!_0x128444['has'](_0x54ee93))return!0x1;return!0x0;}}class At extends _0x6b635c{static get['requires'](){return[jt];}['afterInit'](){const _0xe355e=this['editor'];if(!_0xe355e['plugins']['has']('TableEditing'))return;const _0xb943c9=_0xe355e['locale'],_0x29474a=_0xe355e['plugins']['get']('TrackChangesEditing');_0x29474a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x29474a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x29474a['registerBlockAttribute']('headingRows'),_0x29474a['registerBlockAttribute']('headingColumns'),_0x29474a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xb943c9,'FORMAT_HEADER_ROW')),_0x29474a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xb943c9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd6dcee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b890=this['editor']['plugins']['get']('TableUtils'),_0xb0c4a9=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x11840b({showActiveMarker:_0x4817ad=!0x0,setDataAttribute:_0x888add=!0x0}={}){return(_0x1ad686,_0x459d11,_0x23ab15)=>{const {type:_0x33409c,id:_0x24fe52}=_0xd6dcee['_splitMarkerName'](_0x459d11['markerName']),_0x4f6945=_0xd6dcee['getSuggestion'](_0x24fe52),_0x4f04a7=_0x4f6945['data'];if('formatBlock'!=_0x4f6945['type']||!_0x4f04a7||'setTableColumnHeader'!=_0x4f04a7['commandName'])return;if(_0x459d11['item'])return void _0x1ad686['stop']();if(!_0x23ab15['consumable']['consume'](_0x459d11['markerRange'],_0x1ad686['name']))return;const _0x5b847e=_0x459d11['markerRange']['start']['nodeAfter'],_0x14b222=_0x459d11['markerRange']['end']['nodeBefore'],_0x497e3b=_0x5b847e['parent']['parent'],{column:_0x53591e}=_0x34b890['getCellLocation'](_0x5b847e),{column:_0x1a43ab}=_0x34b890['getCellLocation'](_0x14b222);for(let _0x2c0cbd=_0x53591e;_0x2c0cbd<=_0x1a43ab;_0x2c0cbd++){const _0xc38200=_0x34b890['createTableWalker'](_0x497e3b,{'column':_0x2c0cbd,'includeAllSlots':!0x1});for(const _0x25ffc7 of _0xc38200){const _0x27962c=_0x25ffc7['cell'],_0x2e44e4=_0x23ab15['mapper']['toViewElement'](_0x27962c);_0x23ab15['writer']['addClass']('ck-suggestion-marker-'+_0x33409c,_0x2e44e4),_0x888add&&_0x23ab15['writer']['setAttribute']('data-suggestion',_0x24fe52,_0x2e44e4),_0x23ab15['mapper']['bindElementToMarker'](_0x2e44e4,_0x459d11['markerName']),_0x4817ad&&(_0xd6dcee['activeMarkers']['includes'](_0x459d11['markerName'])?_0x23ab15['writer']['addClass']('ck-suggestion-marker--active',_0x2e44e4):_0x23ab15['writer']['removeClass']('ck-suggestion-marker--active',_0x2e44e4));}}};}_0xd6dcee['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xb0c4a9),_0xd6dcee['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xb0c4a9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x11840b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x140892,_0x4fd54c,_0x5ed685)=>{_0x5ed685['options']['showSuggestionHighlights']&&_0x11840b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x140892,_0x4fd54c,_0x5ed685);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4411b7,_0x260715,_0x3b2546)=>{const {type:_0x5b829a,id:_0x31c46e}=_0xd6dcee['_splitMarkerName'](_0x260715['markerName']),_0x40413a=_0xd6dcee['getSuggestion'](_0x31c46e),_0x10b5a4=_0x40413a['data'];if('formatBlock'!=_0x40413a['type']||!_0x10b5a4||'setTableColumnHeader'!=_0x10b5a4['commandName'])return;const _0x8d310e=_0x3b2546['mapper']['markerNameToElements'](_0x260715['markerName']);if(_0x8d310e){for(const _0xa8c05d of _0x8d310e)_0x3b2546['writer']['removeClass']('ck-suggestion-marker-'+_0x5b829a,_0xa8c05d),_0x3b2546['writer']['removeClass']('ck-suggestion-marker--active',_0xa8c05d),_0x3b2546['writer']['removeAttribute']('data-suggestion',_0xa8c05d),_0x3b2546['mapper']['unbindElementFromMarkerName'](_0xa8c05d,_0x260715['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2c22=this['editor'],_0x46c959=_0x1f2c22['locale'];function _0x4299f1(_0x6d9d22){return{'type':'format','content':o(_0x46c959,'*Format:*\x20%0',_0x6d9d22)};}_0x1f2c22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5158ce=>{if('formatBlock'!=_0x5158ce['type'])return;const {data:_0x4b9551}=_0x5158ce;if(_0x4b9551){if('setTableRowHeader'==_0x4b9551['commandName']){const _0x4f6f78=_0x4b9551['commandParams'][0x0]['forceValue'];return _0x4299f1(o(_0x46c959,_0x4f6f78?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4b9551['commandName']){const _0x3064df=_0x4b9551['commandParams'][0x0]['forceValue'];return _0x4299f1(o(_0x46c959,_0x3064df?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xce378=>[_0xce378,null]));class It extends _0x6b635c{static get['requires'](){return[jt];}['afterInit'](){const _0x44cb1f=this['editor'];if(!_0x44cb1f['plugins']['has']('TableClipboard'))return;const _0x4b41ca=_0x44cb1f['plugins']['get']('TrackChangesEditing'),_0x2801fe=_0x44cb1f['plugins']['get']('TableUtils'),_0x17e28a=_0x44cb1f['plugins']['get'](jt),_0xf05e77=_0x44cb1f['plugins']['get']('TableClipboard');_0x17e28a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x44cb1f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x44cb1f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x588b8d=null;_0x44cb1f['model']['on']('insertContent',(_0x5944cb,_0x5953a9)=>{const [_0x31e946,_0x5503db]=_0x5953a9,_0x8aea46=_0x5953a9[_0x5953a9['length']-0x1];_0x8aea46&&_0x8aea46['forceDefaultExecution']||_0x4b41ca['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x55fe64,_0x1f74c4,_0x50373a,_0x3d088c,_0x598acd){if(_0x1f74c4&&!_0x1f74c4['is']('documentSelection'))return!0x1;const _0x2e2261=_0x598acd['getTableIfOnlyTableInContent'](_0x55fe64,_0x50373a);if(!_0x2e2261||!he(_0x2e2261,void 0x0,_0x3d088c))return!0x1;const _0x38231b=_0x3d088c['getSelectionAffectedTableCells'](_0x50373a['document']['selection']);if(!_0x38231b['length'])return!0x1;const _0x2de5bf=_0x38231b[0x0]['findAncestor']('table'),_0x35aaab=_0x3d088c['getRowIndexes'](_0x38231b),_0x5383bb=_0x3d088c['getColumnIndexes'](_0x38231b),_0x450aeb={'startRow':_0x35aaab['first'],'endRow':_0x35aaab['last'],'startColumn':_0x5383bb['first'],'endColumn':_0x5383bb['last']};return 0x1==_0x38231b['length']&&(_0x450aeb['endRow']+=_0x3d088c['getRows'](_0x2e2261)-0x1,_0x450aeb['endColumn']+=_0x3d088c['getColumns'](_0x2e2261)-0x1),he(_0x2de5bf,_0x450aeb,_0x3d088c);}(_0x31e946,_0x5503db,_0x44cb1f['model'],_0x2801fe,_0xf05e77)&&(_0x5944cb['stop'](),_0x588b8d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x44cb1f['model']['change'](()=>{_0x44cb1f['model']['insertContent'](_0x5953a9[0x0],_0x5953a9[0x1],_0x5953a9[0x2],{'forceDefaultExecution':!0x0});const _0xcfe451=_0x367149(),{rowInsertionRanges:_0x4dfd8e,columnInsertionRanges:_0x978da0,insertionRanges:_0x47490d,deletionRanges:_0x39579e,cells:_0x354c83}=_0x588b8d;_0x4dfd8e['length']&&_0x4b41ca['markMultiRangeInsertion'](_0x4dfd8e,'tablePasteRow',{'tablePasteChainId':_0xcfe451}),_0x978da0['length']&&_0x4b41ca['markMultiRangeInsertion'](_0x978da0,'tablePasteColumn',{'tablePasteChainId':_0xcfe451}),_0x47490d['length']&&(_0x4b41ca['markMultiRangeInsertion'](_0x47490d,'tablePaste',{'tablePasteChainId':_0xcfe451,'skipNestingCheck':!0x0}),_0x47490d['forEach'](_0x1c646e=>_0x1c646e['detach']?.())),_0x39579e['length']&&(_0x4b41ca['markMultiRangeDeletion'](_0x39579e,'tablePaste',{'tablePasteChainId':_0xcfe451,'skipNestingCheck':!0x0}),_0x39579e['forEach'](_0x5213a3=>_0x5213a3['detach']?.()));const _0x13f9c0=_0x4b41ca['markMultiRangeBlockFormat'](_0x354c83['map'](({element:_0x157de7})=>_0x157de7),{'formatGroupId':_0x367149()},[],'tablePasteCell',{'tablePasteChainId':_0xcfe451});if(_0x13f9c0){const _0x5367fe=_0x13f9c0['getMarkers'](),_0x1329c4=[];for(const {element:_0x2938c9,attributes:_0x5dc7ac}of _0x354c83){if(!_0x5dc7ac)continue;const _0x29ea12=_0x44cb1f['model']['createRangeOn'](_0x2938c9),_0x231d5e=_0x5367fe['find'](_0x2ac482=>_0x2ac482['getRange']()['isEqual'](_0x29ea12));_0x231d5e&&_0x1329c4['push']([_0x231d5e['name'],_0x5dc7ac]);}_0x1329c4['length']&&_0x13f9c0['setAttribute']('markerAttributes',Object['fromEntries'](_0x1329c4));}_0x588b8d=null;}));},{'priority':_0x229655['high']+0xa}),_0x44cb1f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x460d65,_0x4ed289)=>{const [_0x181d5d,_0x192d8b,,_0x109e03]=_0x4ed289;if(!_0x588b8d)return;_0x460d65['stop']();const _0x423dfd=_0x181d5d['cell'],_0x5f07a8=_0x192d8b,_0x5a2560=Pe(_0x423dfd),_0x5e1ca5=Pe(_0x5f07a8);_0x460d65['return']=_0x423dfd;let _0x15ea95=null,_0x582c89=null;if(_0x5e1ca5||_0x5a2560){if(_0x5a2560&&!_0x5e1ca5){_0x109e03['remove'](_0x423dfd['getChild'](0x0));for(const _0x515dd7 of Array['from'](_0x5f07a8['getChildren']()))_0x109e03['insert'](_0x515dd7,_0x423dfd,'end');const _0x3dfaf4=_0x588b8d['rowInsertionIndexes']['includes'](_0x181d5d['row']),_0x5b5d07=_0x588b8d['columnInsertionIndexes']['includes'](_0x181d5d['column']);_0x3dfaf4||_0x5b5d07||(_0x15ea95=_0x2bf34c['fromRange'](_0x109e03['createRangeIn'](_0x423dfd)));}else _0x5e1ca5&&!_0x5a2560&&(_0x582c89=_0x109e03['createRangeIn'](_0x423dfd));}else{const _0x3a225d=_0x109e03['createElement']('tableCellSuggestion'),_0x55e060=_0x109e03['createElement']('tableCellSuggestion');_0x109e03['wrap'](_0x109e03['createRangeIn'](_0x423dfd),_0x55e060),_0x109e03['insert'](_0x3a225d,_0x423dfd,0x0);for(const _0x21d4bc of Array['from'](_0x5f07a8['getChildren']()))_0x109e03['insert'](_0x21d4bc,_0x3a225d,'end');_0x15ea95=_0x2bf34c['fromRange'](_0x109e03['createRangeOn'](_0x3a225d)),_0x582c89=_0x2bf34c['fromRange'](_0x109e03['createRangeOn'](_0x55e060));}const _0x222f46=Array['from'](_0x5f07a8['getAttributes']())['filter'](([_0x2bb52c])=>ge['includes'](_0x2bb52c));_0x588b8d['cells']['push']({'element':_0x423dfd,'attributes':_0x222f46['length']?Object['fromEntries'](_0x222f46):null}),_0x15ea95&&_0x588b8d['insertionRanges']['push'](_0x15ea95),_0x582c89&&_0x588b8d['deletionRanges']['push'](_0x582c89);},{'priority':'high'}),_0x2801fe['on']('insertColumns',(_0x37a3ae,_0x2f9379)=>{const [_0x3fcabe,_0xa69c2d={}]=_0x2f9379;if(!_0x588b8d)return;const _0x313dd0=_0xa69c2d['at']||0x0,_0x41a331=_0xa69c2d['columns']||0x1;_0x588b8d['columnInsertionIndexes']=new Array(_0x41a331)['fill'](_0x313dd0)['map']((_0x45d2bd,_0x3bc5f0)=>_0x45d2bd+_0x3bc5f0);for(const {cell:_0x5bfc5e}of _0x2801fe['createTableWalker'](_0x3fcabe,{'startColumn':_0x313dd0,'endColumn':_0x313dd0+_0x41a331-0x1}))_0x588b8d['columnInsertionRanges']['push'](_0x44cb1f['model']['createRangeOn'](_0x5bfc5e));},{'priority':'low'}),_0x2801fe['on']('insertRows',(_0x2c75d5,_0x4d2a54)=>{const [_0x30d0e8,_0x326aa1={}]=_0x4d2a54;if(!_0x588b8d)return;const _0x1756b7=_0x326aa1['at']||0x0,_0x28b4fd=_0x326aa1['rows']||0x1;_0x588b8d['rowInsertionIndexes']=new Array(_0x28b4fd)['fill'](_0x1756b7)['map']((_0xc47652,_0x3b9391)=>_0xc47652+_0x3b9391);for(const {cell:_0x174ede}of _0x2801fe['createTableWalker'](_0x30d0e8,{'startRow':_0x1756b7,'endRow':_0x1756b7+_0x28b4fd-0x1}))_0x588b8d['rowInsertionRanges']['push'](_0x44cb1f['model']['createRangeOn'](_0x174ede));},{'priority':'low'}),_0x4b41ca['descriptionFactory']['registerDescriptionCallback'](_0x4a3508=>{if(_0x4a3508['subType']&&_0x4a3508['subType']['startsWith']('tablePaste'))return _0x4a3508['previous']?{}:{'type':'insertion','content':o(_0x44cb1f['locale'],'*Replace\x20table\x20cells*')};});const _0x53b4df=()=>!0x1;for(const _0x187752 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b41ca['_suggestionFactory']['registerCustomCallback']('insertion',_0x187752,'join',_0x53b4df),_0x4b41ca['_suggestionFactory']['registerCustomCallback']('deletion',_0x187752,'join',_0x53b4df),_0x4b41ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x187752,'join',_0x53b4df);_0x4b41ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53b4df),_0x4b41ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x361957,_0x130b12,_0x45c9f0)=>{const _0x5245cf=_0x361957['map'](_0x2b92ad=>_0x2b92ad['getContainedElement']())['filter'](_0x29167e=>_0x29167e),_0x177ee4=new Map(_0x5245cf['map'](_0x3c3221=>[_0x3c3221,null]));if(_0x588b8d){for(const {element:_0x12b772,attributes:_0x4af9d2}of _0x588b8d['cells'])_0x4af9d2&&_0x177ee4['set'](_0x12b772,_0x4af9d2);}else{if(_0x45c9f0&&_0x45c9f0['markerAttributes'])for(const [_0x985b32,_0x3eb973]of Object['entries'](_0x45c9f0['markerAttributes'])){const _0x43cb3f=_0x44cb1f['model']['markers']['get'](_0x985b32),_0x2d33ce=_0x43cb3f?_0x43cb3f['getRange']()['getContainedElement']():null;_0x2d33ce&&_0x177ee4['set'](_0x2d33ce,_0x3eb973);}}_0x44cb1f['model']['change'](_0x28094e=>{for(const [_0x5a8c8e,_0x5d2c78]of _0x177ee4)_0x28094e['setAttributes']({...Ce,..._0x5d2c78},_0x5a8c8e);});});const _0x3c522d=(_0xe827d9,_0x5b9de5)=>{_0x4b41ca['_suggestionFactory']['registerCustomCallback'](_0xe827d9,'tablePaste',_0x5b9de5,(_0x5dabc6,_0x2091b1,_0x3099d3)=>{_0x44cb1f['model']['change'](_0x1ce61a=>{const _0x532994=[];for(const _0x3fbfa0 of _0x5dabc6){const _0x54aecc=_0x3fbfa0['start']['nodeAfter'];_0x54aecc['is']('element','tableCellSuggestion')&&_0x532994['push'](_0x54aecc);}_0x4b41ca['_suggestionFactory']['getSuggestionCallback'](_0xe827d9,null,_0x5b9de5)(_0x5dabc6,_0x2091b1,_0x3099d3);for(const _0x46eed8 of _0x532994)'$graveyard'!=_0x46eed8['root']['rootName']&&_0x1ce61a['unwrap'](_0x46eed8);});});};_0x3c522d('insertion','accept'),_0x3c522d('insertion','discard'),_0x3c522d('deletion','accept'),_0x3c522d('deletion','discard'),_0x4b41ca['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e661a=>{const _0x8915b6=_0x1e661a['map'](_0x1185d2=>_0x1185d2['getContainedElement']()),_0x19c803=_0x8915b6[0x0]['findAncestor']('table'),{minRow:_0x8bde72,maxRow:_0x3dfbc0}=_0x17e28a['_getCoordsForCells'](_0x8915b6);_0x2801fe['removeRows'](_0x19c803,{'at':_0x8bde72,'rows':_0x3dfbc0-_0x8bde72+0x1});}),_0x4b41ca['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x18796a=>{const _0x3e8c8c=_0x18796a['map'](_0x4fd1c1=>_0x4fd1c1['getContainedElement']()),_0x23ff7f=_0x3e8c8c[0x0]['findAncestor']('table'),{minColumn:_0x3e8c94,maxColumn:_0x3c49bb}=_0x17e28a['_getCoordsForCells'](_0x3e8c8c);_0x2801fe['removeColumns'](_0x23ff7f,{'at':_0x3e8c94,'columns':_0x3c49bb-_0x3e8c94+0x1});});const _0x4ba483=(_0x345f16,_0x3351c1)=>{if(!_0x3351c1['subType']||!_0x3351c1['subType']['startsWith']('tablePaste'))return;const _0x1d4a46=_0x3351c1['attributes']['tablePasteChainId'],_0x289ad0=_0x4b41ca['getSuggestions']()['filter'](_0x27e4b8=>_0x27e4b8['isInContent']&&_0x27e4b8['attributes']&&_0x27e4b8['attributes']['tablePasteChainId']==_0x1d4a46);_0x289ad0['length']&&_0x3351c1['getAllAdjacentSuggestions']()['length']!=_0x289ad0['length']&&_0x289ad0['reduce']((_0x4db8aa,_0x444ed4)=>(_0x4db8aa['next']=_0x444ed4,_0x444ed4['previous']=_0x4db8aa,_0x444ed4));};function _0x58b2a9(_0x33019d,_0x572f9a=!0x0){const {id:_0x2939eb}=_0x4b41ca['_splitMarkerName'](_0x33019d['markerName']),_0x5ee4b0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xe4d4a7=_0x4b41ca['activeMarkers']['includes'](_0x33019d['markerName']);return _0xe4d4a7&&_0x5ee4b0['push']('ck-suggestion-marker--active'),{'classes':_0x5ee4b0,'attributes':{'data-suggestion':_0x2939eb},'priority':_0xe4d4a7&&_0x572f9a?0xbc2:0xbb8};}_0x4b41ca['on']('suggestionLoaded',_0x4ba483,{'priority':'high'}),_0x4b41ca['on']('suggestionUnloaded',_0x4ba483,{'priority':'high'}),_0x44cb1f['model']['document']['registerPostFixer'](()=>{let _0x260d72=!0x1;const _0x4522e0=Array['from'](_0x44cb1f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b37e2,data:_0x4dd83b}of _0x4522e0){const {group:_0x40384e,type:_0x16099c,id:_0x3bf469}=_0x4b41ca['_splitMarkerName'](_0x5b37e2);if('suggestion'!=_0x40384e||'deletion'!=_0x16099c||_0x4dd83b['oldRange'])continue;if(!_0x4b41ca['hasSuggestion'](_0x3bf469))continue;const _0xacf68d=_0x4b41ca['getSuggestion'](_0x3bf469)['getRanges'](),_0x2a600f=_0x44cb1f['plugins']['get']('Users')['me'];for(const _0x275add of _0x4b41ca['getSuggestions']()){if(!_0x275add['isInContent']||_0x275add['author']!=_0x2a600f)continue;if('formatBlock'!=_0x275add['type']||'tablePasteCell'!=_0x275add['subType'])continue;if(_0x275add['getRanges']()['every'](_0x16a59a=>_0xacf68d['some'](_0x1f99ae=>_0x1f99ae['containsRange'](_0x16a59a,!0x0)))){for(const _0x594c6e of _0x275add['getAllAdjacentSuggestions']())_0x594c6e['isInContent']&&(_0x594c6e['discard'](),_0x260d72=!0x0);}}}return _0x260d72;}),_0x44cb1f['model']['document']['registerPostFixer'](_0x204713=>{const _0x4370d8=_0x44cb1f['commands']['get']('redo');if(!_0x4370d8||!_0x4370d8['_createdBatches']['has'](_0x204713['batch']))return!0x1;let _0x2da2c3=!0x1;const _0x23c2f0=_0x44cb1f['plugins']['get']('Users')['me'],_0x2cb5ac=_0x44cb1f['model']['document']['differ']['getChanges'](),_0x16673a=Array['from'](_0x44cb1f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x33d686,data:_0x50128c})=>{const {group:_0x48e0cf,subType:_0x56c16a,authorId:_0x4b3efa}=_0x4b41ca['_splitMarkerName'](_0x33d686);return'suggestion'==_0x48e0cf&&'tablePaste'==_0x56c16a&&_0x4b3efa==_0x23c2f0['id']&&!_0x50128c['oldRange'];});for(const _0x73effc of _0x2cb5ac){if('insert'!=_0x73effc['type']||'tableCellSuggestion'!=_0x73effc['name']||0x1!=_0x73effc['length'])continue;const _0x123db7=_0x204713['createRange'](_0x73effc['position'],_0x73effc['position']['getShiftedBy'](0x1));if(!_0x16673a['find'](({data:_0x27b360})=>_0x27b360['newRange']['isEqual'](_0x123db7))){for(const {name:_0x148c91,data:_0x4711fc}of _0x16673a)if(_0x123db7['containsRange'](_0x4711fc['newRange'])){_0x204713['updateMarker'](_0x148c91,{'range':_0x123db7}),_0x2da2c3=!0x0;break;}}}return _0x2da2c3;}),_0x44cb1f['model']['document']['registerPostFixer'](_0x58baff=>{let _0x6680ef=!0x1;const _0x4f5d93=_0x44cb1f['plugins']['get']('Users')['me'],_0x3b9ad1=_0x4b41ca['getSuggestions']()['filter'](_0x59e64a=>_0x59e64a['isInContent']&&_0x59e64a['author']==_0x4f5d93),_0x36802d=new Set(),_0x29b86b=new Set();for(const _0x55c06e of _0x3b9ad1)if('tablePaste'==_0x55c06e['subType'])for(const _0x210c64 of _0x55c06e['getMarkers']()){const _0xe6aa22=_0x210c64['getRange']()['getContainedElement']();if(_0xe6aa22){if(_0xe6aa22['is']('element','tableCellSuggestion')&&Pe(_0xe6aa22)){_0x55c06e['removeMarker'](_0x210c64['name']),_0x36802d['add'](_0xe6aa22),_0x6680ef=!0x0;const _0x390141=_0xe6aa22['nextSibling'],_0x957e9e=_0xe6aa22['previousSibling'],_0x1015cf=_0x390141&&_0x390141['is']('element','tableCellSuggestion'),_0x190632=_0x957e9e&&_0x957e9e['is']('element','tableCellSuggestion');_0x1015cf&&!_0x36802d['has'](_0x390141)&&_0x29b86b['add'](_0x390141),_0x190632&&!_0x36802d['has'](_0x957e9e)&&_0x29b86b['add'](_0x957e9e);}else _0xe6aa22['is']('element','paragraph')&&_0xe6aa22['isEmpty']&&(_0x55c06e['removeMarker'](_0x210c64['name']),_0x6680ef=!0x0);}}else{if('tablePasteCell'==_0x55c06e['subType']){if(!_0x55c06e['attributes']||!_0x55c06e['attributes']['tablePasteChainId'])continue;const _0x481efc=_0x55c06e['attributes']['markerAttributes'];if(_0x481efc&&Object['keys'](_0x481efc)['length'])continue;const _0x25f1d1=_0x55c06e['attributes']['tablePasteChainId'];let _0x36236a=!0x0,_0x305ba3=!0x0;for(const _0x346cdb of _0x3b9ad1)if(_0x346cdb['subType']&&_0x346cdb['subType']['startsWith']('tablePaste')){if(!_0x346cdb['attributes']['tablePasteChainId']){_0x305ba3=!0x1;break;}if(_0x346cdb['id']!=_0x55c06e['id']&&_0x346cdb['attributes']['tablePasteChainId']==_0x25f1d1){_0x36236a=!0x1;break;}}_0x305ba3&&_0x36236a&&(_0x55c06e['removeMarkers'](),_0x6680ef=!0x0);}}for(const _0x3076ae of _0x36802d)_0x58baff['remove'](_0x3076ae);for(const _0x20746d of _0x29b86b)_0x58baff['unwrap'](_0x20746d);return _0x6680ef;}),_0x44cb1f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x11fe97,_0x207dd8)=>_0x58b2a9(_0x11fe97),'converterPriority':'high'}),_0x44cb1f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4d3214,_0x1551de)=>_0x1551de['options']['showSuggestionHighlights']?_0x58b2a9(_0x4d3214,!0x1):null,'converterPriority':'high'});const _0x2a953c=_0x44cb1f['editing']['view'];this['listenTo'](_0x2a953c['document'],'clipboardOutput',(_0x386fbf,_0x41191c)=>{const _0x1f2616=[];for(const _0x77a0bb of _0x2a953c['createRangeIn'](_0x41191c['content'])['getItems']())_0x77a0bb['is']('element','suggestion-td')&&_0x1f2616['push'](_0x77a0bb);_0x2a953c['change'](_0x1f4318=>{for(const _0x28fb12 of _0x1f2616)_0x1f4318['move'](_0x1f4318['createRangeIn'](_0x28fb12),_0x1f4318['createPositionBefore'](_0x28fb12)),_0x1f4318['remove'](_0x28fb12);});});}}function Pe(_0x4cf1d9){if(_0x4cf1d9['isEmpty'])return!0x0;const _0x32d346=_0x4cf1d9['getChild'](0x0);return _0x32d346['is']('element','paragraph')&&_0x32d346['isEmpty'];}function he(_0x553ca9,_0x3a4a2a={},_0x1327dc){for(const {isAnchor:_0x3be117,cellHeight:_0x2675f1,cellWidth:_0x1f3e7d}of _0x1327dc['createTableWalker'](_0x553ca9,{'includeAllSlots':!0x0,..._0x3a4a2a}))if(!_0x3be117||0x1!=_0x2675f1||0x1!=_0x1f3e7d)return!0x1;return!0x0;}class vt extends _0x6b635c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x16b8c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x16b8c6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x16b8c6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x16b8c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x16b8c6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x16b8c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x16b8c6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x19ee17,_0x530972){const _0x4adbfb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b8b54=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x15e31b=_0x530972['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x42710b=_0x5b8b54['getColumnGroupElement'](_0x15e31b);let _0x3dec32=_0x42710b?_0x5b8b54['getTableColumnsWidths'](_0x42710b):null,_0x4f2bdc=_0x15e31b['getAttribute']('tableWidth')||null;const _0x1991ef=_0x530972['tableWidth']||_0x4f2bdc,_0x111077=_0x530972['columnWidths']||_0x3dec32,_0x324966=this['editor']['plugins']['get']('Users')['me'];for(const _0x34dda5 of _0x4adbfb['getSuggestions']()){const _0x2ea11a=_0x34dda5['getContainedElement']();if('resizeTable'===_0x34dda5['subType']&&_0x2ea11a===_0x15e31b){_0x34dda5['author']!==_0x324966&&_0x34dda5['discard']();const _0x5b2439=_0x34dda5['data']['commandParams'];_0x4f2bdc=_0x5b2439[0x0]['tableWidth'],_0x3dec32=_0x5b2439[0x0]['columnWidths'];break;}}_0x19ee17({'table':_0x15e31b,'tableWidth':_0x1991ef,'columnWidths':_0x111077}),_0x4adbfb['markBlockFormat'](_0x15e31b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4f2bdc,'columnWidths':_0x3dec32}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4d0277){if('formatBlock'!=_0x4d0277['type']&&'formatInline'!=_0x4d0277['type'])return;const {data:_0x5ade29}=_0x4d0277;if(_0x5ade29&&'resizeTable'===_0x5ade29['formatGroupId']){const _0x3cdde3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3cdde3)};}}}class _t extends _0x6b635c{['afterInit'](){const _0x2097cd=this['editor'];_0x2097cd['plugins']['has']('Template')&&_0x2097cd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x6b635c{['afterInit'](){const _0x5ca1fd=this['editor'];if(!_0x5ca1fd['commands']['get']('insertTableOfContents'))return;_0x5ca1fd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x181c8c=_0x5ca1fd['plugins']['get']('TrackChangesEditing'),_0x5db9b7=_0x5ca1fd['locale'];_0x181c8c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x154c24=>o(_0x5db9b7,'ELEMENT_TABLE_OF_CONTENTS',_0x154c24));}}class Dt extends _0x6b635c{['afterInit'](){const _0x22ac4f=this['editor'];if(!_0x22ac4f['plugins']['has']('Title'))return;const _0x51da66=_0x22ac4f['plugins']['get']('TrackChangesEditing');_0x51da66['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x22ac4f['locale'],'ELEMENT_TITLE')),_0x22ac4f['model']['document']['registerPostFixer'](_0x5aa0bf=>{let _0x2d3bf4=!0x1;const _0x23e274=Array['from'](_0x22ac4f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x457f06,data:_0x47385d}of _0x23e274){const {group:_0x9a1cf}=_0x51da66['_splitMarkerName'](_0x457f06);if('suggestion'!==_0x9a1cf||!_0x47385d['newRange'])continue;const _0x5a77f2=_0x47385d['newRange'],_0x18316e=_0x5a77f2['end']['nodeBefore'];if(!_0x18316e||!_0x18316e['is']('element','title-content'))continue;if(!_0x5a77f2['start']['isTouching'](_0x5a77f2['end']))continue;const _0x282c75=_0x22ac4f['model']['schema']['getNearestSelectionRange'](_0x5a77f2['end'],'forward');if(_0x282c75&&_0x282c75['isCollapsed']){const _0x47fc6=_0x5aa0bf['createRange'](_0x5a77f2['start'],_0x282c75['start']);_0x47fc6['isEqual'](_0x5a77f2)||(_0x5aa0bf['updateMarker'](_0x457f06,{'range':_0x47fc6}),_0x2d3bf4=!0x0);}_0x2d3bf4||(_0x5aa0bf['removeMarker'](_0x457f06),_0x2d3bf4=!0x0);}return _0x2d3bf4;});}}class Nt extends _0x6b635c{['afterInit'](){const _0x1233a2=this['editor'],_0x5ae02d=_0x1233a2['plugins']['get']('TrackChangesEditing');_0x1233a2['plugins']['has']('UndoEditing')&&(_0x5ae02d['enableCommand']('undo'),_0x5ae02d['enableCommand']('redo'));}}class Mt extends _0x6b635c{static get['requires'](){return[jt];}['afterInit'](){const _0x5c0c91=this['editor'];if(!_0x5c0c91['plugins']['has']('TableCaptionEditing'))return;_0x5c0c91['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x6b635c{['tableProperties'];['tableCellProperties'];constructor(_0x4ada45){super(_0x4ada45),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 _0x287711=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x14f60f of this['tableProperties'])_0x287711['enableCommand'](_0x14f60f,(_0x1da6d6,_0x4e9c36)=>{const _0x52003b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x14f60f,[_0x52003b],this['tableProperties'],'tableProperties',_0x1da6d6,_0x4e9c36);});_0x287711['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x287711['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x287711['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x523371,_0x475fcf)=>this['handleDiscardAction'](this['tableProperties'],_0x523371,_0x475fcf)),_0x287711['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3085bc of this['tableCellProperties'])_0x287711['enableCommand'](_0x3085bc,(_0x23bf95,_0x390952)=>{const _0x4e8998=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3085bc,_0x4e8998,this['tableCellProperties'],'tableCellProperties',_0x23bf95,_0x390952);});_0x287711['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x287711['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x287711['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1db01a,_0x34210b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1db01a,_0x34210b)),_0x287711['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x287711['descriptionFactory']['registerDescriptionCallback'](_0x57d60b=>this['handleSuggestionDescription'](_0x57d60b));}['_handlePropertyChange'](_0x104c98,_0x365adf,_0x6198f1,_0x3ad99f,_0x40fb22,_0x199a38){const _0x12a607=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x199a38['batch'],()=>{for(const _0x41ea02 of _0x365adf){if(this['_getSuggestion'](_0x41ea02,_0x3ad99f))_0x40fb22(_0x199a38);else{const _0x3ec8f9={};for(const _0x44f1bb of _0x6198f1){const _0x438fdd=_0x41ea02['getAttribute'](_0x44f1bb);void 0x0!==_0x438fdd&&(_0x3ec8f9[_0x44f1bb]=_0x438fdd);}_0x40fb22(_0x199a38),_0x12a607['markBlockFormat'](_0x41ea02,{'commandParams':[_0x3ec8f9]},[],_0x3ad99f);}}});}['handleDiscardAction'](_0x33182a,_0x557b3d,_0xd815a5){const _0x2094a5=_0x557b3d[0x0]['start']['nodeAfter'],_0x3c906a=_0xd815a5['commandParams'][0x0];this['editor']['model']['change'](_0x51b6d4=>{for(const _0x2ea678 of _0x33182a)void 0x0!==_0x3c906a[_0x2ea678]?_0x51b6d4['setAttribute'](_0x2ea678,_0x3c906a[_0x2ea678],_0x2094a5):_0x51b6d4['removeAttribute'](_0x2ea678,_0x2094a5);});}['handleSuggestionDescription'](_0x19b7ce){if(_0x19b7ce['data'])switch(_0x19b7ce['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'](_0x1659cf,_0x1f6508){const _0x10bdf2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3a1b35 of _0x10bdf2['getSuggestions']({'skipNotAttached':!0x0})){const _0x503018=_0x3a1b35['getContainedElement']();if(_0x3a1b35['subType']===_0x1f6508&&_0x503018===_0x1659cf)return _0x3a1b35;}return null;}}const m='$elementName';class p extends _0x6b635c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2d7bb2,_0x64d1b5,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0xea4aaf){function _0x6608d4(_0x52b85d){return _0x52b85d['map'](_0x308340=>String['fromCharCode'](_0x308340))['join']('');}super(_0xea4aaf),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xbc8eea,_0x33cad1,_0x2f9c67,_0xd5b347)=>{this['_model']['change'](()=>{for(const _0xefb9d6 of[..._0xd5b347,..._0x2f9c67])this['_model']['markers']['has'](_0xefb9d6)&&_0xea4aaf['editing']['reconvertMarker'](_0xefb9d6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xea4aaf['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(),_0xea4aaf['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xea4aaf['config']['get']('trackChanges.trackFormatChanges'),_0xea4aaf['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xea4aaf['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0xea4aaf,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x6608d4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x6608d4([0x34,0x30,0x34,0x38,0x31,0x30,0x35,0x30]);}['init'](){const _0x3aed8d=this['editor'],_0x306871=(_0x37f351,_0x43947f)=>{if('attribute'!=_0x37f351)return'ck-suggestion-marker-'+_0x37f351;const _0x665864=_0x43947f['split']('|')[0x0];return this['_isBlockAttribute'](_0x665864)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3aed8d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1c50d0=>{const {id:_0xd475af,type:_0x35c94b,subType:_0x17c0b8}=this['_splitMarkerName'](_0x1c50d0['markerName']),_0x5abc3f=['ck-suggestion-marker',_0x306871(_0x35c94b,_0x17c0b8)];let _0x3f8f19=0xbb8;return this['activeMarkers']['includes'](_0x1c50d0['markerName'])&&(_0x5abc3f['push']('ck-suggestion-marker--active'),_0x3f8f19=0xbc2),'deletion'==_0x35c94b&&(_0x3f8f19+=0x5),{'classes':_0x5abc3f,'attributes':{'data-suggestion':_0xd475af},'priority':_0x3f8f19};}}),_0x3aed8d['conversion']['for']('dataDowncast')['add'](_0x26468e=>{_0x26468e['on']('addMarker:suggestion',(_0x2d2492,_0x2090b2,_0x4d8041)=>{if(!_0x4d8041['options']['showSuggestionHighlights'])return;const _0x381c19=_0x2090b2['item'];if(!_0x381c19)return;const _0x24335e=_0x4d8041['mapper']['toViewElement'](_0x381c19);_0x3aed8d['model']['schema']['isObject'](_0x381c19)&&_0x24335e&&!_0x24335e['getCustomProperty']('widget')&&_0x24335e['is']('containerElement')&&_0x31a0ad(_0x24335e,_0x4d8041['writer']);},{'priority':'high'});}),_0x3aed8d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4ccc37,_0x234b94)=>{if(!_0x234b94['options']['showSuggestionHighlights'])return null;const {type:_0x11e344,subType:_0x34d292}=this['_splitMarkerName'](_0x4ccc37['markerName']);return{'classes':['ck-suggestion-marker',_0x306871(_0x11e344,_0x34d292)],'priority':0xbb8};}});const _0x73b593=({showActiveMarkers:_0x15982b=!0x0,isAttributeSuggestion:_0xdf1e13=!0x1}={})=>(_0x167d22,_0x447b99,_0xaaf143)=>{if(!_0x447b99['item'])return;const {id:_0x4999c6}=this['_splitMarkerName'](_0x447b99['markerName']);if(_0xdf1e13){const _0xb07d79=this['_suggestions']['get'](_0x4999c6),_0x3d99b0=this['_getAttributeKey'](_0xb07d79);if(!this['_isBlockAttribute'](_0x3d99b0))return;}if(_0x447b99['item']['is']('selection'))return void _0xaaf143['consumable']['consume'](_0x447b99['item'],_0x167d22['name']);const _0x22ee13=_0xaaf143['mapper']['toViewElement'](_0x447b99['item']);if(_0x447b99['item']['is']('element')&&_0x3aed8d['model']['schema']['isBlock'](_0x447b99['item'])&&!_0x22ee13['getCustomProperty']('addHighlight')){_0xaaf143['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x22ee13),_0xaaf143['writer']['setAttribute']('data-suggestion',_0x4999c6,_0x22ee13),_0xaaf143['mapper']['bindElementToMarker'](_0x22ee13,_0x447b99['markerName']),_0x15982b&&(this['activeMarkers']['includes'](_0x447b99['markerName'])?_0xaaf143['writer']['addClass']('ck-suggestion-marker--active',_0x22ee13):_0xaaf143['writer']['removeClass']('ck-suggestion-marker--active',_0x22ee13));for(const _0x5ee506 of _0x3aed8d['model']['createRangeIn'](_0x447b99['item'])['getItems']())_0xaaf143['consumable']['consume'](_0x5ee506,_0x167d22['name']);_0xaaf143['consumable']['consume'](_0x447b99['item'],_0x167d22['name']);}};_0x3aed8d['conversion']['for']('dataDowncast')['add'](_0x3cfd29=>{_0x3cfd29['on']('addMarker:suggestion:formatBlock',(_0x4915c0,_0x69bd56,_0x4f5c21)=>{_0x4f5c21['options']['showSuggestionHighlights']&&_0x73b593({'showActiveMarkers':!0x1})(_0x4915c0,_0x69bd56,_0x4f5c21);},{'priority':'highest'});}),_0x3aed8d['conversion']['for']('dataDowncast')['add'](_0xdecc53=>{_0xdecc53['on']('addMarker:suggestion:attribute',(_0x112dae,_0x3abeea,_0x2bd393)=>{_0x2bd393['options']['showSuggestionHighlights']&&_0x73b593({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x112dae,_0x3abeea,_0x2bd393);},{'priority':'highest'});}),_0x3aed8d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4eff74,_0x2fbe3f)=>_0x2fbe3f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4eff74['substr'](0xb)}}),_0x3aed8d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2fd704,{writer:_0x57d846})=>{let _0x1e684d='suggestion:'+_0x2fd704['getAttribute']('suggestion-type')+':'+_0x2fd704['getAttribute']('id');return _0x2fd704['getAttribute']('marker-count')&&(_0x1e684d+=':'+_0x2fd704['getAttribute']('marker-count')),_0x57d846['createElement']('$marker',{'data-name':_0x1e684d});}}),_0x3aed8d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3aed8d['conversion']['for']('editingDowncast')['add'](_0x6f6fc3=>{_0x6f6fc3['on']('addMarker:suggestion:formatBlock',_0x73b593(),{'priority':'high'});}),_0x3aed8d['conversion']['for']('editingDowncast')['add'](_0x9f93aa=>{_0x9f93aa['on']('addMarker:suggestion:attribute',_0x73b593({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3aed8d['conversion']['for']('editingDowncast')['add'](_0x201c95=>{_0x201c95['on']('removeMarker:suggestion:formatBlock',(_0x2a18da,_0x55e82e,_0x314edf)=>{const _0x181252=_0x314edf['mapper']['markerNameToElements'](_0x55e82e['markerName']);if(_0x181252){for(const _0x541b1c of _0x181252)_0x541b1c['getCustomProperty']('addHighlight')||(_0x314edf['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x541b1c),_0x314edf['writer']['removeAttribute']('data-suggestion',_0x541b1c),_0x314edf['mapper']['unbindElementFromMarkerName'](_0x541b1c,_0x55e82e['markerName']));}},{'priority':'high'});}),_0x3aed8d['conversion']['for']('editingDowncast')['add'](_0x2aa811=>{_0x2aa811['on']('removeMarker:suggestion:attribute',(_0x17e790,_0x2d1130,_0x37ee70)=>{const _0x44b799=_0x37ee70['mapper']['markerNameToElements'](_0x2d1130['markerName']);if(!_0x44b799)return;const {id:_0x6ebf98}=this['_splitMarkerName'](_0x2d1130['markerName']),_0x2a57e5=this['_suggestions']['get'](_0x6ebf98),_0x4d78b0=this['_getAttributeKey'](_0x2a57e5);if(this['_isBlockAttribute'](_0x4d78b0)){for(const _0x21a85b of _0x44b799)_0x21a85b['getCustomProperty']('addHighlight')||(_0x37ee70['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x21a85b),_0x37ee70['writer']['removeAttribute']('data-suggestion',_0x21a85b),_0x37ee70['mapper']['unbindElementFromMarkerName'](_0x21a85b,_0x2d1130['markerName']));}},{'priority':'high'});}),_0x3aed8d['model']['document']['registerPostFixer'](_0xc377d3=>{let _0x59cf69=!0x1;const _0x27b8ec=Array['from'](_0x3aed8d['model']['document']['differ']['getChangedMarkers']()),_0x57cec4=new Set();for(const {name:_0x428317,data:_0x5c3b15}of _0x27b8ec){const {group:_0x4391b8,type:_0x51ea43,subType:_0x4e7028,id:_0x16db8b}=this['_splitMarkerName'](_0x428317);if('suggestion'!==_0x4391b8)continue;const _0x45a73b=this['_suggestions']['get'](_0x16db8b);if(null!=_0x5c3b15['newRange']){'formatInline'==_0x51ea43&&(_0x59cf69=_0x59cf69||Et(_0x5c3b15['newRange'],_0x428317,_0xc377d3,_0x3aed8d['model']['schema']));const _0x404227='attribute'==_0x51ea43&&this['_isBlockAttribute'](_0x4e7028['split']('|')[0x0]);if(_0x5c3b15['newRange']['isCollapsed']||'$graveyard'==_0x5c3b15['newRange']['root']['rootName']||'formatBlock'==_0x51ea43&&!Ut(_0x5c3b15['newRange'])||_0x404227&&!Ut(_0x5c3b15['newRange'])||'deletion'==_0x51ea43&&!(!Tt(_0x375225=_0x5c3b15['newRange'])&&!function(_0x5d5fec){return _0x5d5fec['start']['parent']==_0x5d5fec['end']['nodeBefore']&&_0x5d5fec['start']['isAtEnd'];}(_0x375225)))_0xc377d3['removeMarker'](_0x428317),_0x59cf69=!0x0;else{if(!_0x45a73b||!_0x45a73b['isInContent'])continue;_0x57cec4['add'](_0x45a73b);}}}var _0x375225;return _0x57cec4['size']>0x0&&(_0x59cf69=!!this['_joinWithAdjacentSuggestions'](_0x57cec4)||_0x59cf69),_0x59cf69;}),_0x3aed8d['model']['document']['registerPostFixer'](_0x2c7a3a=>{let _0x39f64c=!0x1;for(const _0x40b80e of _0x3aed8d['model']['document']['differ']['getChanges']())if('insert'==_0x40b80e['type'])for(const _0x5a717c of this['_suggestions']['values']()){if(_0x5a717c['isMultiRange']||!_0x5a717c['isInContent'])continue;const _0x3c6e8f='formatBlock'==_0x5a717c['type'],_0x1f1b2e=this['_getAttributeKey'](_0x5a717c),_0x5eb541=_0x1f1b2e&&this['_isBlockAttribute'](_0x1f1b2e);if(!_0x3c6e8f&&!_0x5eb541)continue;const _0x51bdee=_0x5a717c['getFirstRange']();if(_0x51bdee['start']['parent']!=_0x51bdee['end']['parent']&&!_0x51bdee['end']['isAtEnd']){const _0x1ce278=_0x3aed8d['model']['createPositionAt'](_0x51bdee['start']['nodeAfter'],'end'),_0x50714d=_0x3aed8d['model']['createRange'](_0x51bdee['start'],_0x1ce278);_0x2c7a3a['updateMarker'](_0x5a717c['getFirstMarker'](),{'range':_0x50714d}),_0x39f64c=!0x0;}}return _0x39f64c;}),_0x3aed8d['model']['document']['registerPostFixer'](_0xa85604=>this['_processAttributeChanges'](_0xa85604)),_0x3aed8d['model']['document']['registerPostFixer'](_0x54893a=>!_0x54893a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54893a)),_0x3aed8d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3aed8d['model']['document']['on']('change:data',(_0x12b3e2,_0x41ca8f)=>{if(!_0x41ca8f['isLocal']||_0x41ca8f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x180043=_0x3aed8d['model']['document']['differ']['getChanges']();if(0x0==_0x180043['length'])return;const _0x345f4d=[],_0x160cf9=_0x180043['filter'](_0x233b69=>'attribute'==_0x233b69['type']),_0x2ef8ae=_0x180043['filter'](_0x2240e4=>'insert'==_0x2240e4['type']&&'$text'!=_0x2240e4['name']),_0x1d9c8e=_0x180043['filter'](_0x11f6d5=>'remove'==_0x11f6d5['type']&&'$text'!=_0x11f6d5['name']);for(const _0x41a3ca of _0x160cf9)this['_isRegisteredAttribute'](_0x41a3ca['attributeKey'])&&_0x345f4d['push']({'key':_0x41a3ca['attributeKey'],'newValue':_0x41a3ca['attributeNewValue'],'oldValue':_0x41a3ca['attributeOldValue'],'range':Ot(_0x41a3ca['range'],_0x3aed8d['model'])});for(const _0x309335 of _0x2ef8ae){const _0x5a8bc7=_0x1d9c8e['find'](_0x455915=>_0x455915['_element']===_0x309335['_element']);if(_0x5a8bc7){const _0x143a53=Ft(_0x309335['position']['nodeAfter'],_0x3aed8d['model']);_0x5a8bc7['name']!==_0x309335['name']&&_0x345f4d['push']({'key':m,'newValue':_0x309335['name'],'oldValue':_0x5a8bc7['name'],'range':_0x143a53});for(const [_0x49122d,_0x225972]of _0x5a8bc7['attributes']){if(!this['_isRegisteredAttribute'](_0x49122d))continue;const _0x4c87f5=_0x309335['attributes']['get'](_0x49122d);_0x225972!==_0x4c87f5&&_0x345f4d['push']({'key':_0x49122d,'newValue':_0x4c87f5,'oldValue':_0x225972,'range':_0x143a53});}for(const [_0x5ec6b9,_0x2eea42]of _0x309335['attributes'])this['_isRegisteredAttribute'](_0x5ec6b9)&&(_0x5a8bc7['attributes']['has'](_0x5ec6b9)||_0x345f4d['push']({'key':_0x5ec6b9,'newValue':_0x2eea42,'oldValue':null,'range':_0x143a53}));}}0x0!=_0x345f4d['length']&&_0x3aed8d['model']['enqueueChange'](_0x41ca8f,_0x5cf286=>{const _0x39a080=_0x367149();for(const {range:_0x3f7b55,key:_0x3f9fb6,oldValue:_0x38dc9d,newValue:_0x226436}of _0x345f4d)this['markAttributeChange'](_0x3f7b55,_0x3f9fb6,_0x38dc9d,_0x226436,{'groupId':_0x39a080});this['_reduceExistingSuggestions'](_0x5cf286,_0x345f4d);});},{'priority':'lowest'}),_0x3aed8d['model']['markers']['on']('update:suggestion',(_0x4d8405,_0x4a81ed,_0x5d9c99)=>{if(null==_0x5d9c99){const {id:_0x369f9d}=this['_splitMarkerName'](_0x4a81ed['name']),_0x55c1b2=this['_suggestions']['get'](_0x369f9d);_0x55c1b2&&_0x55c1b2['addMarkerName'](_0x4a81ed['name']);}}),_0x3aed8d['model']['document']['on']('change:data',()=>{const _0x2783f4=Array['from'](_0x3aed8d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1f8ebe=>'suggestion'===this['_splitMarkerName'](_0x1f8ebe['name'])['group']);if(0x0===_0x2783f4['length'])return;_0x2783f4['sort']((_0x30fb68,_0x3c14b2)=>{const _0x4364d7=_0x30fb68['data']['oldRange'],_0x502c11=_0x3c14b2['data']['oldRange'];return null===_0x4364d7&&null===_0x502c11?0x0:null===_0x4364d7&&null!==_0x502c11?-0x1:null!==_0x4364d7&&null===_0x502c11?0x1:_0x4364d7['start']['isBefore'](_0x502c11['start'])?-0x1:0x1;});const _0x325914=new Set(),_0x466159=new Set();for(const {name:_0x1d62bc,data:_0x6a2ac0}of _0x2783f4){const {id:_0x21e433}=this['_splitMarkerName'](_0x1d62bc);if(null===_0x6a2ac0['oldRange']){const _0x420628=this['_handleNewSuggestionMarker'](_0x1d62bc);_0x466159['add'](_0x420628);}else{const _0x93bce1=this['_suggestions']['get'](_0x21e433);null!==_0x6a2ac0['newRange']||_0x93bce1['isInContent']?(_0x325914['add'](_0x93bce1['head']),_0x466159['add'](_0x93bce1)):this['_removeSuggestion'](_0x93bce1);}}_0x466159['size']>0x0&&this['_refreshSuggestionsChain'](_0x466159);for(const _0x4cba88 of _0x325914)this['fire']('suggestionChanged',_0x4cba88);}),_0x3aed8d['model']['on']('applyOperation',(_0x1de2c0,_0x3190f4)=>{const _0x4a048b=_0x3190f4[0x0];if(!this['_suggestions']['size'])return;if(!_0x4a048b['isDocumentOperation'])return;if(_0x4a048b['batch']['isUndo']||!_0x4a048b['batch']['isLocal'])return;let _0x1d2353,_0xbb62e0;switch(_0x4a048b['type']){case'insert':_0x1d2353=_0x3aed8d['model']['createPositionAt'](_0x4a048b['position']),_0xbb62e0=_0x1d2353['getShiftedBy'](_0x4a048b['howMany']);break;case'split':_0x1d2353=_0x3aed8d['model']['createPositionAt'](_0x4a048b['splitPosition']),_0xbb62e0=_0x3aed8d['model']['createPositionAt'](_0x4a048b['moveTargetPosition']);break;case'move':_0x1d2353=_0x3aed8d['model']['createPositionAt'](_0x4a048b['targetPosition']),_0xbb62e0=_0x1d2353['getShiftedBy'](_0x4a048b['howMany']);break;default:return;}const _0x3136a4=_0x3aed8d['model']['createRange'](_0x1d2353,_0xbb62e0);_0x3aed8d['model']['change'](()=>{for(const {suggestion:_0x2d94c3,meta:_0xf45157}of this['_findSuggestions'](_0x3136a4)){if(_0x2d94c3['isMultiRange'])continue;if('formatInline'==_0x2d94c3['type'])continue;const _0x344e4c=this['_getAttributeKey'](_0x2d94c3);if(_0x344e4c&&this['_isBlockAttribute'](_0x344e4c)&&'split'!=_0x4a048b['type'])continue;const _0xeb8c4c=_0x2d94c3['data']&&_0x2d94c3['data']['multipleBlocks'];('formatBlock'!=_0x2d94c3['type']||'split'==_0x4a048b['type']&&!_0xeb8c4c)&&(_0xf45157['containsRangeInObject']||'insertion'==_0x2d94c3['type']&&_0xf45157['isOwn']||_0x2d94c3['getFirstRange']()['containsRange'](_0x3136a4)&&this['_breakSuggestionMarker'](_0x2d94c3,_0x1d2353,_0xbb62e0));}});},{'priority':'lowest'}),_0x3aed8d['model']['on']('deleteContent',(_0x3c6459,_0x1151ac)=>{const _0x8e005b=_0x1151ac[0x0],_0x504876=_0x1151ac[0x1];if(_0x504876&&_0x504876['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x8e005b['isCollapsed'])return;const _0x2ed95e=_0x3aed8d['model']['schema'],{start:_0x5603de,end:_0x1c9b42}=_0x8e005b['getFirstRange'](),_0x2e4b55=_0x5603de['nodeAfter']&&_0x2ed95e['isLimit'](_0x5603de['nodeAfter'])?null:_0x2ed95e['getNearestSelectionRange'](_0x5603de,'forward'),_0x473f12=_0x1c9b42['nodeBefore']&&_0x2ed95e['isLimit'](_0x1c9b42['nodeBefore'])?null:_0x2ed95e['getNearestSelectionRange'](_0x1c9b42,'backward'),_0x3c7b8f=_0x3aed8d['model']['createRange'](_0x2e4b55?_0x2e4b55['start']:_0x5603de,_0x473f12?_0x473f12['end']:_0x1c9b42);_0x3aed8d['model']['change'](_0x54e577=>{this['markDeletion'](_0x3c7b8f);const _0x7458c=_0x3aed8d['model']['schema']['getNearestSelectionRange'](_0x3c7b8f['start']);_0x8e005b['is']('documentSelection')?_0x54e577['setSelection'](_0x7458c):_0x8e005b['setTo'](_0x7458c);}),_0x3c6459['stop']();},{'priority':_0x229655['normal']+0xa}),_0x3aed8d['model']['on']('insertContent',(_0x41fbcd,_0x62bf6f)=>{const _0x4a1312=_0x62bf6f[_0x62bf6f['length']-0x1];_0x4a1312&&_0x4a1312['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3aed8d['model']['change'](()=>{let _0x14112e=_0x3aed8d['model']['insertContent'](_0x62bf6f[0x0],_0x62bf6f[0x1],_0x62bf6f[0x2],{'forceDefaultExecution':!0x0});if(!_0x14112e)return;_0x41fbcd['return']=_0x14112e['clone']();const _0xfe0cfb=_0x14112e['end']['nodeBefore'],_0x257548=_0x3aed8d['model']['schema'];_0xfe0cfb&&_0x257548['isBlock'](_0xfe0cfb)&&!_0x257548['isObject'](_0xfe0cfb)&&(_0x14112e=_0x3aed8d['model']['createRange'](_0x14112e['start'],_0x3aed8d['model']['createPositionAt'](_0xfe0cfb,'end'))),this['markInsertion'](_0x14112e);}),_0x41fbcd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2cecea=new $(_0x3aed8d,this['_suggestions']);_0x3aed8d['commands']['add']('acceptSuggestion',_0x2cecea),this['enableCommand']('acceptSuggestion');const _0x550110=new B(_0x3aed8d,this['_suggestions']);_0x3aed8d['commands']['add']('discardSuggestion',_0x550110),this['enableCommand']('discardSuggestion'),_0x3aed8d['commands']['add']('acceptAllSuggestions',new x(_0x3aed8d,_0x2cecea,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3aed8d['commands']['add']('discardAllSuggestions',new x(_0x3aed8d,_0x550110,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3aed8d['commands']['add']('acceptSelectedSuggestions',new R(_0x3aed8d,_0x2cecea,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3aed8d['commands']['add']('discardSelectedSuggestions',new R(_0x3aed8d,_0x550110,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5116e6=_0x3aed8d['plugins']['get']('CommentsRepository');this['listenTo'](_0x5116e6,'addComment',(_0x253721,{threadId:_0x53039b})=>{const _0x11d4af=this['_suggestions']['get'](_0x53039b);_0x11d4af&&_0x11d4af['commentThread']&&0x1===_0x11d4af['commentThread']['length']&&this['_updateSuggestionData'](_0x53039b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5116e6,'removeComment',(_0xd2c00,{threadId:_0x691136})=>{const _0x339a79=this['_suggestions']['get'](_0x691136);_0x339a79&&_0x339a79['commentThread']&&!_0x339a79['commentThread']['length']&&this['_updateSuggestionData'](_0x691136,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2cd77a){if(this['_adapter'])throw new _0x1be5c9('track-changes-adapter-already-set',this);this['_adapter']=_0x2cd77a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x473ad8=!0x1,toJSON:_0x3d2a83=!0x1}={}){const _0x474aab=[];for(const _0x2a6445 of this['_suggestions']['values']())_0x473ad8&&!_0x2a6445['isInContent']||_0x474aab['push'](_0x2a6445);return _0x3d2a83?_0x474aab['map'](_0x3c048a=>_0x3c048a['toJSON']()):_0x474aab;}['getSuggestion'](_0x1d8873){const _0x2ec5cc=this['_suggestions']['get'](_0x1d8873);if(!_0x2ec5cc)throw new _0x1be5c9('track-changes-suggestion-not-found',this);return _0x2ec5cc;}['hasSuggestion'](_0x18222e){return this['_suggestions']['has'](_0x18222e);}['addSuggestionData'](_0x33bf24){const {authorId:_0xa31486,id:_0x564953,attributes:_0xca46a3}=_0x33bf24,[_0x3f9881,_0x561bf7]=_0x33bf24['type']['split'](':'),_0x3e0a79=this['_suggestions']['get'](_0x564953)||this['_createSuggestion'](_0x3f9881,_0x561bf7,_0x564953,_0xa31486,_0xca46a3);if(this['_addThreadToSuggestion'](_0x3e0a79),this['_checkSuggestionCorrectness'](_0x3e0a79,_0x3f9881,_0x561bf7||null,_0xa31486),_0x3e0a79['createdAt']=_0x33bf24['createdAt'],_0x3e0a79['_isDataLoaded']=!0x0,_0xca46a3&&_0xca46a3['@external']){const _0x530d63=_0xca46a3['@external'],_0x140e0e=this['_getExternalAuthor'](_0x530d63['authorName']);_0x3e0a79['authoredAt']=_0x530d63['createdAt'],_0x3e0a79['author']=_0x140e0e,_0x3e0a79['isExternal']=!0x0;}else _0x3e0a79['authoredAt']=_0x33bf24['createdAt'];switch(_0x33bf24['data']&&(_0x3e0a79['data']=_0x33bf24['data']),_0x33bf24['attributes']&&(_0x3e0a79['attributes']=_0x33bf24['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3e0a79['_saved']=!0x0),this['_suggestionState']['get'](_0x3e0a79)){case'notReady':this['_suggestionState']['set'](_0x3e0a79,'dataReady');break;case'markerReady':_0x3e0a79['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3e0a79])),this['_refreshSuggestionsChain'](new Set([_0x3e0a79])),this['_suggestionState']['set'](_0x3e0a79,'ready'),this['fire']('suggestionLoaded',_0x3e0a79)):this['_suggestionState']['set'](_0x3e0a79,'removed');}return _0x3e0a79;}['acceptSuggestion'](_0x181733){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1af845 of _0x181733['getAllAdjacentSuggestions']())_0x1af845['accept']();});});}['discardSuggestion'](_0x448ee9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x128b08 of _0x448ee9['getAllAdjacentSuggestions']())_0x128b08['discard']();});});}['enableCommand'](_0x55814b,_0x5c99ad){const _0x2d27ff=this['editor']['commands']['get'](_0x55814b);if(!_0x2d27ff)throw new _0x1be5c9('track-changes-command-not-found',this,{'commandName':_0x55814b});if(this['_enabledCommands']['has'](_0x2d27ff))throw new _0x1be5c9('track-changes-enable-command-twice',this,{'commandName':_0x55814b});this['_enabledCommands']['add'](_0x2d27ff),_0x5c99ad&&_0x2d27ff['on']('execute',(_0xc8c972,_0x1d58a3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1d58a3['length']>0x0&&_0x1d58a3[_0x1d58a3['length']-0x1]&&_0x1d58a3[_0x1d58a3['length']-0x1]['forceDefaultExecution']?_0x1d58a3['pop']():(_0xc8c972['return']=_0x5c99ad((..._0x5a3da4)=>_0x2d27ff['execute'](..._0x5a3da4,{'forceDefaultExecution':!0x0}),..._0x1d58a3),_0xc8c972['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5f58e8){let _0x20a4c8,_0x181f3c;const _0x308510=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x20a4c8=_0x5f58e8();}catch(_0x505ce0){_0x181f3c=_0x505ce0;}return _0x308510||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x181f3c&&_0x1be5c9['rethrowUnexpectedError'](_0x181f3c,this),_0x20a4c8;}['markInsertion'](_0xfc23b8,_0x279a2f=null,_0x12151d={}){if(_0xfc23b8['isCollapsed'])return null;const _0x1406d2=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x140031,meta:_0x34f1cf}of this['_findSuggestions'](_0xfc23b8,'insertion'))if(_0x34f1cf['isOwn']){if(!_0x34f1cf['isNextTo']){if(_0x34f1cf['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x140031,_0x12151d))continue;return _0x140031;}if(Lt(_0x140031,_0x12151d))return _0x140031;this['_breakSuggestionMarker'](_0x140031,_0xfc23b8['start'],_0xfc23b8['end']);break;}if(_0x279a2f==_0x140031['subType']&&Lt(_0x140031,_0x12151d)){const _0x3fe297=_0x140031['getFirstRange']();return _0x3fe297['start']['isEqual'](_0xfc23b8['end'])?this['_setSuggestionRange'](_0x140031,this['_model']['createRange'](_0xfc23b8['start'],_0x3fe297['end'])):this['_setSuggestionRange'](_0x140031,this['_model']['createRange'](_0x3fe297['start'],_0xfc23b8['end'])),_0x140031;}}const _0x2f5705=_0x367149(),_0x235ab8=_0x1406d2['id'],_0x4f6fd5=_0x279a2f?'insertion:'+_0x279a2f:'insertion',_0x4092e6=this['_setSuggestionData']({'id':_0x2f5705,'type':_0x4f6fd5,'createdAt':new Date(),'authorId':_0x235ab8,'attributes':_0x12151d});return this['_addSuggestionMarker'](_0x4f6fd5,_0x2f5705,_0x235ab8,_0xfc23b8),_0x4092e6;}['markMultiRangeInsertion'](_0x22d2f1,_0x1341bb='multi',_0x4fa460={}){const _0x27168e=this['editor']['plugins']['get']('Users')['me'],_0x5d54cd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1341bb,'join');for(const _0x3d0fa5 of this['getSuggestions']())if(_0x3d0fa5['author']['id']==_0x27168e['id']&&'insertion'==_0x3d0fa5['type']&&_0x3d0fa5['subType']==_0x1341bb&&Lt(_0x3d0fa5,_0x4fa460)&&(_0x5d54cd(_0x3d0fa5['getRanges'](),_0x22d2f1)||_0x5d54cd(_0x22d2f1,_0x3d0fa5['getRanges']()))){for(const _0x283a80 of _0x22d2f1)_0x3d0fa5['addRange'](_0x283a80);return _0x3d0fa5;}for(const {suggestion:_0x37b3bc,meta:_0x910708}of this['_findSuggestions'](_0x22d2f1,'insertion')){if(!_0x910708['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x910708['containsRangeInObject'])continue;if(!Lt(_0x37b3bc,_0x4fa460))continue;let _0x3e115a=!0x0;for(const _0x53a46e of _0x37b3bc['getRanges']())for(const _0x40e1eb of _0x22d2f1)if(!_0x53a46e['containsRange'](_0x40e1eb)){_0x3e115a=!0x1;break;}if(_0x3e115a)return _0x37b3bc;}const _0x498f60=_0x367149(),_0x447c1c=_0x27168e['id'],_0x5f39fb='insertion:'+_0x1341bb,_0x39f64f=this['_setSuggestionData']({'id':_0x498f60,'type':_0x5f39fb,'createdAt':new Date(),'authorId':_0x447c1c,'attributes':_0x4fa460});for(const _0x152782 of _0x22d2f1)this['_addSuggestionMarker'](_0x5f39fb,_0x498f60,_0x447c1c,_0x152782,u['getMultiRangeId']());return _0x39f64f;}['markInlineFormat'](_0x1a86ea,_0x4f375e,_0x14ea5f=null,_0x39c116={}){if(_0x14ea5f=_0x14ea5f||Vt(_0x4f375e),_0x1a86ea['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4261b7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x14ea5f,'accept');return this['forceDefaultExecution'](()=>_0x4261b7([_0x1a86ea],_0x4f375e,_0x39c116)),null;}const _0x56d803=this['editor']['plugins']['get']('Users')['me'],_0x23793e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x46377e,meta:_0x1b04ce}of this['_findSuggestions'](_0x1a86ea,'insertion'))_0x1b04ce['isOwn']&&!_0x1b04ce['isInsideObject']&&_0x23793e['push'](..._0x46377e['getRanges']());}const _0x5b9868=function(_0xfb4b0b,_0x1cc895){const _0x1c2d14=[];for(const _0x2ef929 of _0x1cc895){const _0x44e979=_0xfb4b0b['getIntersection'](_0x2ef929);_0x44e979&&_0x1c2d14['push'](_0x44e979);}return _0x1c2d14;}(_0x1a86ea,_0x23793e),_0x3737c7=function(_0x244d69,_0x4e1a07){const _0x48b5f0=[_0x244d69];for(const _0x510f15 of _0x4e1a07){let _0x5e39eb=0x0;for(;_0x5e39eb<_0x48b5f0['length'];){const _0x4d900f=_0x48b5f0[_0x5e39eb]['getDifference'](_0x510f15);_0x48b5f0['splice'](_0x5e39eb,0x1,..._0x4d900f),_0x5e39eb+=_0x4d900f['length'];}}return _0x48b5f0;}(_0x1a86ea,_0x23793e);_0x5b9868['length']&&this['_model']['change'](()=>{for(const _0x208b34 of _0x5b9868){const _0x5d6247=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x14ea5f,'accept');this['forceDefaultExecution'](()=>_0x5d6247([_0x208b34],_0x4f375e,_0x39c116));}});for(const _0xa3352b of _0x3737c7){let _0x4d7b25=null,_0x199fc2=_0xa3352b['start'],_0x517bd7=_0xa3352b['end'];for(const {suggestion:_0x1cec7d,meta:_0x13b651}of this['_findSuggestions'](_0xa3352b,'formatInline')){if(!_0x13b651['isOwn'])continue;if(_0x1cec7d['subType']!=_0x14ea5f)continue;if(!Lt(_0x1cec7d,_0x39c116))continue;const _0x2f458a=_0x1cec7d['getFirstRange']();if(_0x2f458a['containsRange'](_0xa3352b,!0x0))return null;_0x199fc2=_0x199fc2['isBefore'](_0x2f458a['start'])?_0x199fc2:_0x2f458a['start'],_0x517bd7=_0x517bd7['isAfter'](_0x2f458a['end'])?_0x517bd7:_0x2f458a['end'],_0x4d7b25?_0x2f458a['start']['isBefore'](_0x4d7b25['getFirstRange']()['start'])?(_0x4d7b25['removeMarkers'](),_0x4d7b25=_0x1cec7d):_0x1cec7d['removeMarkers']():_0x4d7b25=_0x1cec7d;}const _0x484f09=this['_model']['createRange'](_0x199fc2,_0x517bd7);if(_0x4d7b25)this['_setSuggestionRange'](_0x4d7b25,_0x484f09);else{const _0x470486=_0x367149(),_0xd7259f=_0x56d803['id'];this['_setSuggestionData']({'id':_0x470486,'type':'formatInline:'+_0x14ea5f,'data':_0x4f375e,'createdAt':new Date(),'authorId':_0xd7259f,'attributes':_0x39c116}),this['_addSuggestionMarker']('formatInline:'+_0x14ea5f,_0x470486,_0xd7259f,_0x484f09);}}return null;}['markBlockFormat'](_0x53930e,_0x770807,_0x366ab1=[],_0x555681=null,_0x2b4459={}){_0x770807['formatGroupId']||(_0x770807['formatGroupId']=_0x770807['commandName']),_0x770807['multipleBlocks']=_0x53930e['is']('range'),_0x555681=_0x555681||Vt(_0x770807);const _0x4abc04=_0x366ab1['map'](_0x28e6a8=>Ft(_0x28e6a8,this['_model'])),_0x3688dc=_0x53930e['is']('range')?_0x53930e:Ft(_0x53930e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x48955a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x555681,'accept');return this['forceDefaultExecution'](()=>_0x48955a([_0x3688dc],_0x770807,_0x2b4459)),null;}_0x4abc04['push'](_0x3688dc);let _0x38796b=!0x0;for(const _0x92cc50 of _0x4abc04)if(!this['_rangeIsInLocalUserInsertion'](_0x92cc50)){_0x38796b=!0x1;break;}if(_0x38796b&&'always'!==this['_trackFormatChanges']){const _0x682c31=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x555681,'accept');return this['forceDefaultExecution'](()=>_0x682c31([_0x3688dc],_0x770807,_0x2b4459)),null;}let _0x398bb5=null,_0x1d9ad5=_0x3688dc['start'],_0x376f6f=_0x3688dc['end'];for(const {suggestion:_0x3d4b12,meta:_0x426f58}of this['_findSuggestions'](_0x3688dc,'formatBlock')){if(!_0x426f58['isOwn'])continue;if(_0x426f58['isNextTo']||_0x426f58['containsRangeInObject']||_0x426f58['isInsideObject'])continue;if(_0x3d4b12['data']['formatGroupId']!=_0x770807['formatGroupId'])continue;if(!Lt(_0x3d4b12,_0x2b4459))continue;const _0x4b979c=_0x3d4b12['getFirstRange']();if(_0x3d4b12['subType']==_0x555681){if(_0x4b979c['containsRange'](_0x3688dc,!0x0))return null;_0x1d9ad5=_0x1d9ad5['isBefore'](_0x4b979c['start'])?_0x1d9ad5:_0x4b979c['start'],_0x376f6f=_0x376f6f['isAfter'](_0x4b979c['end'])?_0x376f6f:_0x4b979c['end'],_0x398bb5?_0x4b979c['start']['isBefore'](_0x398bb5['getFirstRange']()['start'])?(_0x398bb5['removeMarkers'](),_0x398bb5=_0x3d4b12):_0x3d4b12['removeMarkers']():_0x398bb5=_0x3d4b12;}else{const _0x188087=_0x3688dc['getIntersection'](_0x4b979c);this['_cutOutSuggestionMarker'](_0x3d4b12,_0x188087);}}const _0x41ab63=this['editor']['plugins']['get']('Users')['me'],_0x5569b4=_0x367149(),_0x174068=_0x41ab63['id'];if(_0x398bb5)return this['_setSuggestionRange'](_0x398bb5,this['_model']['createRange'](_0x1d9ad5,_0x376f6f)),_0x398bb5;{const _0x1a32d5=this['_setSuggestionData']({'id':_0x5569b4,'type':'formatBlock:'+_0x555681,'data':_0x770807,'createdAt':new Date(),'authorId':_0x174068,'attributes':_0x2b4459});return this['_addSuggestionMarker']('formatBlock:'+_0x555681,_0x5569b4,_0x174068,this['_model']['createRange'](_0x1d9ad5,_0x376f6f)),_0x1a32d5;}}['markMultiRangeBlockFormat'](_0x4ab4f5,_0x220f2a,_0x6be304=[],_0x9e0a4c=null,_0x20f35b={}){_0x220f2a['formatGroupId']||(_0x220f2a['formatGroupId']=_0x220f2a['commandName']);const _0x1e66c8=_0x4ab4f5[0x0];_0x220f2a['multipleBlocks']=_0x1e66c8['is']('range'),_0x9e0a4c=_0x9e0a4c||Vt(_0x220f2a);const _0x59ee4a=_0x6be304['map'](_0x20185f=>Ft(_0x20185f,this['_model'])),_0x29036c=_0x1e66c8['is']('range')?_0x4ab4f5:_0x4ab4f5['map'](_0x187777=>Ft(_0x187777,this['_model']));if('never'===this['_trackFormatChanges']){const _0x366950=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9e0a4c,'accept');return this['forceDefaultExecution'](()=>_0x366950(_0x29036c,_0x220f2a,_0x20f35b)),null;}_0x59ee4a['push'](..._0x29036c);let _0x51bfde=!0x0;for(const _0x37ed76 of _0x59ee4a)if(!this['_rangeIsInLocalUserInsertion'](_0x37ed76)){_0x51bfde=!0x1;break;}if(_0x51bfde&&'always'!==this['_trackFormatChanges']){const _0x3f2a3e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9e0a4c,'accept');return this['forceDefaultExecution'](()=>_0x3f2a3e(_0x29036c,_0x220f2a,_0x20f35b)),null;}const _0x3b86d8=this['editor']['plugins']['get']('Users')['me'];for(const _0x19203a of this['getSuggestions']()){if(_0x19203a['author']['id']!=_0x3b86d8['id'])continue;if('formatBlock'!=_0x19203a['type']||_0x19203a['data']['formatGroupId']!=_0x220f2a['formatGroupId'])continue;if(!Lt(_0x19203a,_0x20f35b))continue;const _0x2d5df2=_0x19203a['subType']==_0x9e0a4c;for(let _0x15ee47=0x0;_0x15ee47<_0x29036c['length'];_0x15ee47++){const _0x215929=_0x29036c[_0x15ee47];for(const _0x1d1c4e of _0x19203a['getMarkers']()){const _0x1e18d6=_0x1d1c4e['getRange']();if(_0x215929['isEqual'](_0x1e18d6)){_0x2d5df2?(_0x29036c['splice'](_0x15ee47,0x1),_0x15ee47--):_0x19203a['removeMarker'](_0x1d1c4e['name']);break;}}}}if(0x0==_0x29036c['length'])return null;const _0x7156e4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9e0a4c,'join');for(const _0x12dc65 of this['getSuggestions']())if(_0x12dc65['author']['id']==_0x3b86d8['id']&&'formatBlock'==_0x12dc65['type']&&_0x12dc65['data']['formatGroupId']==_0x220f2a['formatGroupId']&&_0x12dc65['subType']==_0x9e0a4c&&Lt(_0x12dc65,_0x20f35b)&&(_0x7156e4(_0x12dc65['getRanges'](),_0x29036c)||_0x7156e4(_0x29036c,_0x12dc65['getRanges']()))){for(const _0x18b287 of _0x29036c)_0x12dc65['addRange'](_0x18b287);return _0x12dc65;}const _0x17ef53=_0x367149(),_0x5bdea5=_0x3b86d8['id'],_0x58f2c6='formatBlock:'+_0x9e0a4c,_0x49ea82=this['_setSuggestionData']({'id':_0x17ef53,'type':_0x58f2c6,'data':_0x220f2a,'createdAt':new Date(),'authorId':_0x5bdea5,'attributes':_0x20f35b});for(const _0x136a31 of _0x29036c)this['_addSuggestionMarker'](_0x58f2c6,_0x17ef53,_0x5bdea5,_0x136a31,u['getMultiRangeId']());return _0x49ea82;}['markDeletion'](_0x10bac2,_0x43de42=null,_0x4a1407={}){if(_0x10bac2['isCollapsed'])return null;const _0x181057=this['editor']['plugins']['get']('Users')['me'],_0x50d8c5=new _0x2bf34c(_0x10bac2['start'],_0x10bac2['end']);for(const {suggestion:_0x43d4c6,meta:_0x2d382f}of this['_findSuggestions'](_0x50d8c5,'insertion'))if(_0x2d382f['isOwn']&&!_0x2d382f['isNextTo']){if(_0x43d4c6['isMultiRange']){const _0x318d42=_0x43d4c6['getRanges']()['filter'](_0x15b726=>'$graveyard'!=_0x15b726['root']['rootName']);_0x318d42['every'](_0x4dfd83=>_0x50d8c5['containsRange'](_0x4dfd83,!0x0))&&_0x43d4c6['discard']();if(_0x318d42['some'](_0x6ab76b=>_0x6ab76b['containsRange'](_0x50d8c5,!0x0))){const _0x596310=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43de42,'accept');return this['forceDefaultExecution'](()=>_0x596310([_0x50d8c5],null,_0x4a1407)),null;}}else{const _0x59681e=_0x50d8c5['getIntersection'](_0x43d4c6['getFirstRange']());null!==_0x59681e&&_0x43d4c6['_onDiscard']([_0x59681e],null,_0x4a1407);}}if(_0x50d8c5['detach'](),_0x50d8c5['isCollapsed']||'$graveyard'==_0x50d8c5['root']['rootName'])return null;let _0x4b61dc=null,_0x40c385=_0x50d8c5['start'],_0x14d929=_0x50d8c5['end'];const _0x38f320=this['_findSuggestions'](_0x50d8c5,'deletion');for(const {suggestion:_0xbac8d6,meta:_0x432f6e}of _0x38f320){const _0x293513=this['_model']['createRange'](_0x40c385,_0x14d929);if(_0x432f6e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x432f6e['containsRangeInObject']&&!_0x432f6e['isInsideObject'])){if(_0xbac8d6['isMultiRange']){if(!Lt(_0xbac8d6,_0x4a1407))continue;let _0x7461ab=!0x0;for(const _0x3685db of _0xbac8d6['getRanges']()){if(_0x3685db['containsRange'](_0x293513,!0x0))return _0xbac8d6;_0x293513['containsRange'](_0x3685db)||(_0x7461ab=!0x1);}_0x7461ab&&_0xbac8d6['discard']();}else{const _0x268e85=_0xbac8d6['getFirstRange']();if(_0x268e85['containsRange'](_0x293513,!0x0))return _0xbac8d6;if(!Lt(_0xbac8d6,_0x4a1407)){_0x293513['containsRange'](_0x268e85)?_0xbac8d6['removeMarkers']():_0x268e85['containsPosition'](_0x40c385)?_0x40c385=_0x268e85['end']:_0x268e85['containsPosition'](_0x14d929)&&(_0x14d929=_0x268e85['start']);continue;}_0x40c385=_0x40c385['isBefore'](_0x268e85['start'])?_0x40c385:_0x268e85['start'],_0x14d929=_0x14d929['isAfter'](_0x268e85['end'])?_0x14d929:_0x268e85['end'],_0x4a1407=Object['assign']({},_0xbac8d6['attributes']),_0x4b61dc?_0x268e85['start']['isBefore'](_0x4b61dc['getFirstRange']()['start'])?(_0x4b61dc['removeMarkers'](),_0x4b61dc=_0xbac8d6):_0xbac8d6['removeMarkers']():_0x4b61dc=_0xbac8d6;}}}if(_0x4b61dc)return this['_setSuggestionRange'](_0x4b61dc,this['_model']['createRange'](_0x40c385,_0x14d929)),_0x4b61dc;{const _0x39b959=_0x367149(),_0x24cf63=this['_model']['createRange'](_0x40c385,_0x14d929),_0x44339c=_0x181057['id'],_0x5a0361=_0x43de42?'deletion:'+_0x43de42:'deletion',_0x51b8a2=this['_setSuggestionData']({'id':_0x39b959,'type':_0x5a0361,'createdAt':new Date(),'authorId':_0x44339c,'attributes':_0x4a1407});return this['_addSuggestionMarker'](_0x5a0361,_0x39b959,_0x44339c,_0x24cf63),_0x51b8a2;}}['markMultiRangeDeletion'](_0x2aa0da,_0x2fd8c6='multi',_0x16da3b={}){const _0x21f983=this['editor']['plugins']['get']('Users')['me'],_0x5e1fcc=_0x2aa0da['map'](_0x22a580=>new _0x2bf34c(_0x22a580['start'],_0x22a580['end'])),_0x21665e=new Set();for(const {suggestion:_0x1f7eda,meta:_0x1f7580}of this['_findSuggestions'](_0x5e1fcc,'insertion'))_0x1f7580['isOwn']&&!_0x1f7580['isNextTo']&&_0x21665e['add'](_0x1f7eda);for(const _0x378a1b of _0x21665e)if(_0x378a1b['isMultiRange']){const _0x154920=_0x378a1b['getRanges']();(!_0x378a1b['attributes']||!_0x378a1b['attributes']['skipNestingCheck'])&&(_0x154920['every'](_0x3f87b2=>_0x5e1fcc['some'](_0x5d5ab7=>_0x5d5ab7['containsRange'](_0x3f87b2,!0x0)))&&_0x378a1b['discard']());if(_0x5e1fcc['every'](_0x2f389f=>_0x154920['some'](_0x3cf050=>_0x3cf050['containsRange'](_0x2f389f,!0x0)))){const _0x2c09f3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd8c6,'accept');return this['forceDefaultExecution'](()=>_0x2c09f3(_0x2aa0da,null,_0x16da3b)),null;}}else{const _0x46432f=_0x378a1b['getFirstRange']();_0x5e1fcc['some'](_0x502c47=>_0x502c47['containsRange'](_0x46432f,!0x0))&&_0x378a1b['discard']();if(_0x5e1fcc['every'](_0x1e8da2=>_0x46432f['containsRange'](_0x1e8da2,!0x0))){const _0x562db4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd8c6,'accept');return this['forceDefaultExecution'](()=>_0x562db4(_0x5e1fcc,null,_0x16da3b)),null;}}const _0x229289=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd8c6,'join');let _0x21816c=null;for(const _0xb3d26f of this['getSuggestions']())if(_0xb3d26f['author']['id']==_0x21f983['id']&&_0xb3d26f['isInContent']&&'deletion'==_0xb3d26f['type']&&_0xb3d26f['subType']==_0x2fd8c6&&Lt(_0xb3d26f,_0x16da3b)&&(_0x229289(_0xb3d26f['getRanges'](),_0x5e1fcc)||_0x229289(_0x5e1fcc,_0xb3d26f['getRanges']()))){if(_0x21816c){if(_0xb3d26f['commentThread']&&_0xb3d26f['commentThread']['length'])continue;for(const _0x26decc of _0xb3d26f['getRanges']())_0x21816c['isIntersectingWithRange'](_0x26decc)||_0x21816c['addRange'](_0x26decc);_0xb3d26f['removeMarkers']();}else{_0x21816c=_0xb3d26f;for(const _0x1baf42 of _0x5e1fcc)_0xb3d26f['isIntersectingWithRange'](_0x1baf42)||_0xb3d26f['addRange'](_0x1baf42);}}if(_0x21816c)return _0x21816c;_0x21665e['clear']();for(const {suggestion:_0x2c54cc,meta:_0x138918}of this['_findSuggestions'](_0x5e1fcc,'deletion'))_0x138918['isOwn']&&(this['_mergeNestedSuggestions']||!_0x138918['containsRangeInObject']&&!_0x138918['isInsideObject'])&&Lt(_0x2c54cc,_0x16da3b)&&_0x21665e['add'](_0x2c54cc);for(const _0x2d8cfa of _0x21665e){const _0x351860=_0x2d8cfa['getRanges']();if(!_0x16da3b||!_0x16da3b['skipNestingCheck']){if(_0x5e1fcc['every'](_0x20f06f=>_0x351860['some'](_0x22d605=>_0x22d605['containsRange'](_0x20f06f,!0x0))))return _0x2d8cfa;}(!_0x2d8cfa['attributes']||!_0x2d8cfa['attributes']['skipNestingCheck'])&&(_0x351860['every'](_0x3eefa6=>_0x5e1fcc['some'](_0x22bed1=>_0x22bed1['containsRange'](_0x3eefa6,!0x0)))&&_0x2d8cfa['discard']());}const _0x3ca29d=_0x367149(),_0x5d67b1=_0x21f983['id'],_0x40a419='deletion:'+_0x2fd8c6,_0x5882c4=this['_setSuggestionData']({'id':_0x3ca29d,'type':_0x40a419,'createdAt':new Date(),'authorId':_0x5d67b1,'attributes':_0x16da3b});for(const _0x1e5bd8 of _0x5e1fcc)_0x1e5bd8['detach'](),_0x1e5bd8['isCollapsed']||'$graveyard'==_0x1e5bd8['root']['rootName']||this['_addSuggestionMarker'](_0x40a419,_0x3ca29d,_0x5d67b1,_0x1e5bd8,u['getMultiRangeId']());return _0x5882c4;}['markAttributeChange'](_0x816e42,_0x27677f,_0x4d486a,_0x41314a,_0x1686fe){if(_0x816e42['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x57eb47=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f7498=Array['from'](this['_suggestions']['values']())['filter'](_0x51ba27=>'attribute'==_0x51ba27['type']&&_0x51ba27['data']['key']==_0x27677f&&_0x51ba27['isIntersectingWithRange'](_0x816e42));if('default'===this['_trackFormatChanges']){const _0x1f3819=this['_findSuggestions'](_0x816e42,'insertion')['filter'](({meta:_0x4ee5f4})=>_0x4ee5f4['isOwn']&&!_0x4ee5f4['isInsideObject']&&!_0x4ee5f4['isNextTo'])['map'](({suggestion:_0x13576a})=>_0x13576a);_0x3f7498['unshift'](..._0x1f3819);}const _0x1f808c=new Map([[_0x816e42,_0x4d486a]]);for(const _0x478c86 of _0x3f7498){const _0x55752a='attribute'==_0x478c86['type']?_0x478c86['data']['oldValue']:void 0x0,_0x214f93=_0x478c86['getFirstRange'](),_0x564424=Array['from'](_0x1f808c['keys']())['find'](_0x2d6153=>_0x2d6153['isIntersecting'](_0x214f93));if(!_0x564424)continue;const _0x2fa607=_0x564424['getDifference'](_0x214f93);this['_isBlockAttribute'](_0x27677f)&&'insertion'==_0x478c86['type']&&0x0!=_0x2fa607['length']||(_0x1f808c['delete'](_0x564424),_0x2fa607['forEach'](_0x37cfc6=>{_0x1f808c['set'](_0x37cfc6,_0x4d486a);}),'insertion'!=_0x478c86['type']&&_0x55752a!=_0x41314a&&_0x1f808c['set'](_0x564424['getIntersection'](_0x214f93),_0x55752a));}const _0x44b2f7=[];for(const [_0x2d1548,_0x370325]of _0x1f808c){const _0x526582=_0x367149(),_0x536591={'key':_0x27677f,'oldValue':_0x370325,'newValue':_0x41314a};_0x27677f['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':_0x27677f});const _0x445e12=('attribute:'+(_0x27677f+'|'+Vt({'newValue':_0x41314a})))['substring'](0x0,0x3c),_0x33613f=this['_setSuggestionData']({'id':_0x526582,'type':_0x445e12,'data':_0x536591,'createdAt':new Date(),'authorId':_0x57eb47,'attributes':_0x1686fe});_0x44b2f7['push'](_0x33613f),this['_addSuggestionMarker'](_0x445e12,_0x526582,_0x57eb47,_0x2d1548);}return _0x44b2f7;}['enableDefaultAttributesIntegration'](_0x46b543){this['enableCommand'](_0x46b543,(_0x5af8fa,..._0x3c4360)=>{this['_recordAttributeChanges'](()=>{_0x5af8fa(..._0x3c4360);});});}['registerBlockAttribute'](_0x56a1e9){this['_blockAttributeKeys']['add'](_0x56a1e9);}['registerInlineAttribute'](_0x4e82eb){this['_inlineAttributeKeys']['add'](_0x4e82eb);}['_getAttributeKey'](_0x3aae74){return'attribute'==_0x3aae74['type']?_0x3aae74['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x252f5a,_0x39ff04){const _0x46188b=_0x252f5a['getFirstMarker']();this['_model']['change'](_0xc1186c=>{_0xc1186c['updateMarker'](_0x46188b,{'range':_0x39ff04});});}['_addThreadToSuggestion'](_0x2747be){const _0x26c250=_0x2747be['id'],_0x28ecbe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x26c250)||this['_commentsRepository']['addCommentThread']({'channelId':_0x28ecbe,'threadId':_0x26c250,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3c5e0c=this['_commentsRepository']['getCommentThread'](_0x26c250);_0x3c5e0c['unbind']('isRemovable'),_0x3c5e0c['isRemovable']=!0x1,_0x2747be['commentThread']=_0x3c5e0c;}['_checkSuggestionCorrectness'](_0xae4933,_0x5d2c31,_0x262cd9,_0x541293){if(_0xae4933['type']!=_0x5d2c31||_0xae4933['subType']!=_0x262cd9||_0xae4933['creator']['id']!=_0x541293)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1be5c9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1f9621,_0x868472){const _0xa30ff3=_0x1f9621['getFirstRange']();if(_0x868472['isEqual'](_0xa30ff3))_0x1f9621['removeMarkers']();else{if(_0xa30ff3['containsRange'](_0x868472)){const _0x4b136c=this['_model']['createPositionAt'](_0x868472['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f9621,this['_model']['createRange'](_0xa30ff3['start'],_0x4b136c));const _0x38f23c=_0x367149(),_0xc92561=_0x1f9621['creator']['id'],_0x293980=_0x1f9621['type']+':'+_0x1f9621['subType'];this['_setSuggestionData']({'id':_0x38f23c,'type':_0x293980,'createdAt':new Date(),'authorId':_0xc92561,'data':_0x1f9621['data'],'attributes':_0x1f9621['attributes']});const _0x499dab=this['_model']['createPositionAt'](_0x868472['end']['parent'],'after'),_0x357aa5=this['_model']['createRange'](_0x499dab,_0xa30ff3['end']);this['_addSuggestionMarker'](_0x293980,_0x38f23c,_0xc92561,_0x357aa5);}else{if(_0xa30ff3['containsPosition'](_0x868472['start'])){const _0x5a37f8=this['_model']['createPositionAt'](_0x868472['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f9621,this['_model']['createRange'](_0xa30ff3['start'],_0x5a37f8));}else{const _0x3d512b=this['_model']['createPositionAt'](_0x868472['end']['parent'],'after');this['_setSuggestionRange'](_0x1f9621,this['_model']['createRange'](_0x3d512b,_0xa30ff3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x19fd2e){for(const {suggestion:_0x53a342,meta:_0x20331d}of this['_findSuggestions'](_0x19fd2e,'insertion')){if(!_0x20331d['isOwn'])continue;const _0x4467b6=_0x53a342['getRanges']();for(const _0x36edd3 of _0x4467b6)if(!_0x19fd2e['getDifference'](_0x36edd3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x33ccbb){const _0x29a73b=this['editor']['plugins']['get']('Users')['getUser'](_0x33ccbb);if(!_0x29a73b)throw new _0x1be5c9('track-changes-user-not-found',this);return _0x29a73b;}['_getExternalAuthor'](_0x2ca5b9){const _0x5a30cc=this['editor']['plugins']['get']('Users'),_0x160bca=_0x3b5e4d('external:'+_0x2ca5b9),_0x64b5d9=_0x5a30cc['getUser'](_0x160bca);return _0x64b5d9||_0x5a30cc['addUser']({'id':_0x160bca,'name':_0x2ca5b9});}['_createSuggestion'](_0x4700fe,_0x9dab3a,_0x29b5b3,_0x5652f7,_0x20ea6f){const _0x17ba29=this['_getAuthorFromId'](_0x5652f7),_0x278030=this['_suggestionFactory']['buildSuggestion'](_0x4700fe,_0x9dab3a,_0x29b5b3,_0x17ba29,_0x20ea6f,_0x42a9a6=>{this['_updateSuggestionData'](_0x29b5b3,{'attributes':_0x42a9a6});const _0x6fec63=this['getSuggestion'](_0x29b5b3);this['_joinWithAdjacentSuggestions'](new Set([_0x6fec63])),this['_refreshSuggestionsChain'](new Set([_0x6fec63]));});return this['listenTo'](_0x278030,'accept',()=>{this['_updateSuggestionData'](_0x29b5b3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x278030,'discard',()=>{this['_updateSuggestionData'](_0x29b5b3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x29b5b3,_0x278030),this['_suggestionState']['set'](_0x278030,'notReady'),_0x278030;}['_splitMarkerName'](_0xb9b319){const _0x2001c4=_0xb9b319['split'](':');return{'group':_0x2001c4[0x0],'type':_0x2001c4[0x1],'subType':_0x2001c4['length']>=0x5?_0x2001c4[0x2]:null,'id':_0x2001c4['length']<0x5?_0x2001c4[0x2]:_0x2001c4[0x3],'authorId':_0x2001c4['length']<0x5?_0x2001c4[0x3]:_0x2001c4[0x4],'markerCount':0x6==_0x2001c4['length']?_0x2001c4[0x5]:null};}['_breakSuggestionMarker'](_0x4751cd,_0x51e079,_0x422efb){const _0x30e22f=_0x4751cd['getFirstRange'](),_0x3d386f=_0x30e22f['start'],_0x1cfed9=_0x30e22f['end'];this['_setSuggestionRange'](_0x4751cd,this['_model']['createRange'](_0x3d386f,_0x51e079));const _0x49f97d=_0x367149(),_0x44a0cc=_0x4751cd['creator']['id'],_0x1cf59=_0x4751cd['type']+(_0x4751cd['subType']?':'+_0x4751cd['subType']:'');this['_setSuggestionData']({'id':_0x49f97d,'type':_0x1cf59,'createdAt':new Date(),'authorId':_0x44a0cc,'originalSuggestionId':_0x4751cd['id'],'attributes':_0x4751cd['attributes'],'data':_0x4751cd['data']});const _0x13e420=this['_getAttributeKey'](_0x4751cd);('formatBlock'==_0x4751cd['type']||_0x13e420&&this['_isBlockAttribute'](_0x13e420))&&(_0x422efb=this['_model']['createPositionBefore'](_0x422efb['parent'])),this['_addSuggestionMarker'](_0x1cf59,_0x49f97d,_0x44a0cc,this['_model']['createRange'](_0x422efb,_0x1cfed9));}['_findSuggestions'](_0x68491c,_0x124434=null){const _0x4387bf=[],_0x45323f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x68491c)||(_0x68491c=[_0x68491c]);for(const _0x3304bb of this['getSuggestions']()){if(!_0x3304bb['isInContent'])continue;if(_0x124434&&_0x3304bb['type']!=_0x124434)continue;let _0x111b04=!0x1;for(const _0x3eb8fb of _0x3304bb['getRanges']()){for(const _0x5f3717 of _0x68491c){const _0x2da1c2=_0x5f3717['start']['isEqual'](_0x3eb8fb['end'])||_0x5f3717['end']['isEqual'](_0x3eb8fb['start']);if(_0x2da1c2||_0x5f3717['getIntersection'](_0x3eb8fb)){const _0x2bf9a0=_0x5f3717['containsRange'](_0x3eb8fb)&&Rt(this['_model']['schema'],_0x3eb8fb['start'],_0x5f3717),_0x1e3456=_0x3eb8fb['containsRange'](_0x5f3717)&&Rt(this['_model']['schema'],_0x5f3717['start'],_0x3eb8fb);_0x4387bf['push']({'suggestion':_0x3304bb,'meta':{'isOwn':_0x45323f==_0x3304bb['author'],'isNextTo':_0x2da1c2,'isInsideObject':_0x2bf9a0,'containsRangeInObject':_0x1e3456}}),_0x111b04=!0x0;break;}}if(_0x111b04)break;}}return _0x4387bf;}['_addSuggestionMarker'](_0x3fe6c6,_0x4b1e97,_0x82eafc,_0x2295c3,_0x4e8122){this['_model']['change'](_0x29de3f=>{let _0x250cd8='suggestion:'+_0x3fe6c6+':'+_0x4b1e97+':'+_0x82eafc;_0x4e8122&&(_0x250cd8=_0x250cd8+':'+_0x4e8122),_0x29de3f['addMarker'](_0x250cd8,{'range':_0x2295c3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x54e24e){const _0x34901c=_0x54e24e['previous'],_0x10322f=_0x54e24e['next'];_0x54e24e['previous']=null,_0x54e24e['next']=null,null!=_0x34901c&&_0x34901c['next']==_0x54e24e&&(_0x34901c['next']=_0x10322f),null!=_0x10322f&&_0x10322f['previous']==_0x54e24e&&(_0x10322f['previous']=_0x34901c),'ready'==this['_suggestionState']['get'](_0x54e24e)&&(this['_suggestionState']['set'](_0x54e24e,'removed'),this['fire']('suggestionUnloaded',_0x54e24e,_0x34901c,_0x10322f));}['_setSuggestionData'](_0x3cbaf9){const _0x1bc47d=_0x3cbaf9['id'],_0x38fc45=this['addSuggestionData'](_0x3cbaf9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5c51b8=this['editor']['plugins']['get']('PendingActions'),_0x434f17=_0x38fc45['hasComments'],_0x576cbc=_0x38fc45['subType']?_0x38fc45['type']+':'+_0x38fc45['subType']:_0x38fc45['type'],_0xc05b50=this['editor']['locale'],_0x382e3d=_0x5c51b8['add'](o(_0xc05b50,'PENDING_ACTION_SUGGESTION')),_0x213b42={'id':_0x1bc47d,'type':_0x576cbc,'hasComments':_0x434f17,'data':_0x3cbaf9['data']||null,'originalSuggestionId':_0x3cbaf9['originalSuggestionId']||null,'attributes':_0x38fc45['attributes']};this['_adapter']['addSuggestion'](_0x213b42)['then'](_0x2364cb=>{_0x38fc45['_saved']=!0x0,_0x5c51b8['remove'](_0x382e3d),_0x2364cb&&_0x2364cb['createdAt']&&(this['_suggestions']['get'](_0x1bc47d)['createdAt']=_0x2364cb['createdAt']);})['catch'](_0x5bfaae=>{throw _0x3d3b87('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x38fc45['discard']();}),_0x38fc45['stopListening'](),this['_suggestions']['delete'](_0x38fc45['id']),this['_suggestionState']['delete'](_0x38fc45),_0x5bfaae;});}return _0x38fc45;}['_isBlockAttribute'](_0x422be1){return this['_blockAttributeKeys']['has'](_0x422be1);}['_updateSuggestionData'](_0x36ae90,_0x5cc395){const _0x1035c6=this['editor']['plugins']['get']('PendingActions'),_0x567b62=this['getSuggestion'](_0x36ae90);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x567b62['_saved']){const _0x335728=_0x1035c6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x36ae90,_0x5cc395)['then'](()=>{_0x1035c6['remove'](_0x335728);});}else _0x567b62['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x36ae90,_0x5cc395);});}}['_getSuggestionData'](_0xaa2ee9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1be5c9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xaa2ee9);}['_handleNewSuggestionMarker'](_0x9788d8){const {id:_0x54c44f,type:_0x4057bb,subType:_0x48f4c3,authorId:_0x23f111}=this['_splitMarkerName'](_0x9788d8),_0x2e11f6=this['_suggestions']['get'](_0x54c44f)||this['_createSuggestion'](_0x4057bb,_0x48f4c3,_0x54c44f,_0x23f111,{});switch(this['_checkSuggestionCorrectness'](_0x2e11f6,_0x4057bb,_0x48f4c3,_0x23f111),this['_suggestionState']['get'](_0x2e11f6)){case'notReady':this['_getSuggestionData'](_0x54c44f)['then'](_0x378345=>{let _0x104383=Promise['resolve']();_0x378345['hasComments']&&(_0x104383=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x54c44f})),_0x104383['then'](()=>{this['addSuggestionData'](_0x378345)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2e11f6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x54c44f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2e11f6,'ready'),this['fire']('suggestionLoaded',_0x2e11f6);break;case'ready':this['fire']('suggestionChanged',_0x2e11f6);}return _0x2e11f6['addMarkerName'](_0x9788d8),_0x2e11f6;}['_refreshSuggestionsChain'](_0x5eed99){const _0x227edb=Array['from'](_0x5eed99),_0x35f292=_0x227edb['filter'](_0x54a429=>'attribute'==_0x54a429['type']);this['_refreshAttributeSuggestionsChain'](_0x35f292);const _0x304b04=_0x227edb['filter'](_0x37f0cd=>!_0x37f0cd['isMultiRange']&&'attribute'!=_0x37f0cd['type']),_0x100c2e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x556556=>!_0x556556['isMultiRange']&&'attribute'!=_0x556556['type']),_0x127465=_0x100c2e['filter'](_0x210d48=>!_0x5eed99['has'](_0x210d48)),_0x1ac90f=new Map(_0x100c2e['map'](_0x1c3417=>[_0x1c3417,this['_suggestionFactory']['getSuggestionCallback'](_0x1c3417['type'],_0x1c3417['subType'],'chain')])),_0x3d021d=new Map(_0x100c2e['map'](_0x4bc218=>[_0x4bc218,_0x4bc218['getFirstRange']()])),_0x5e2e80=new Set(),_0x29d213=new Set();for(let _0x5efe47=0x0;_0x5efe47<_0x304b04['length'];_0x5efe47++)_0x1e07d0(_0x304b04[_0x5efe47],_0x304b04,_0x5efe47+0x1);for(let _0x3dd934=0x0;_0x3dd934<_0x304b04['length'];_0x3dd934++)_0x1e07d0(_0x304b04[_0x3dd934],_0x127465,0x0);const _0x46c172=new Set();for(let _0x495ead=0x0;_0x495ead<_0x304b04['length'];_0x495ead++){const _0x548e91=_0x304b04[_0x495ead];!_0x29d213['has'](_0x548e91)&&_0x548e91['previous']&&(_0x46c172['add'](_0x548e91['previous']),_0x548e91['previous']['next']===_0x548e91&&(_0x548e91['previous']['next']=null),_0x548e91['previous']=null),!_0x5e2e80['has'](_0x548e91)&&_0x548e91['next']&&(_0x46c172['add'](_0x548e91['next']),_0x548e91['next']['previous']===_0x548e91&&(_0x548e91['next']['previous']=null),_0x548e91['next']=null);}function _0x1e07d0(_0x4292d6,_0x5986ba,_0x21e313){for(let _0x5d2201=_0x21e313;_0x5d2201<_0x5986ba['length'];_0x5d2201++){const _0x5e8419=_0x1cebfc(_0x4292d6,_0x5986ba[_0x5d2201]);_0x5e8419&&(_0x5e8419[0x0]['next']=_0x5e8419[0x1],_0x5e8419[0x1]['previous']=_0x5e8419[0x0],_0x5e2e80['add'](_0x5e8419[0x0]),_0x29d213['add'](_0x5e8419[0x1]));}}function _0x1cebfc(_0x5bca7a,_0xf84377){if(_0x5bca7a['author']['id']!==_0xf84377['author']['id'])return null;const _0xd3ab3d=_0x1ac90f['get'](_0x5bca7a)(_0x5bca7a,_0xf84377,_0x3d021d['get'](_0x5bca7a),_0x3d021d['get'](_0xf84377));if(!_0xd3ab3d)return null;return _0x1ac90f['get'](_0xf84377)(_0x5bca7a,_0xf84377,_0x3d021d['get'](_0x5bca7a),_0x3d021d['get'](_0xf84377))?_0xd3ab3d[0x1]['commentThread']&&_0xd3ab3d[0x1]['commentThread']['length']?null:_0xd3ab3d:null;}_0x46c172['size']&&this['_refreshSuggestionsChain'](_0x46c172);}['_refreshAttributeSuggestionsChain'](_0x576f5c){if(0x0==_0x576f5c['length'])return;const _0x7fa7cd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x350e3b=>'attribute'==_0x350e3b['type']&&_0x350e3b['_isDataLoaded']),_0x40fc8b=[],_0xec82d0=new Map();for(const _0x58012c of _0x7fa7cd){const _0x29e367=_0x3b5e4d(_0x58012c['attributes']);_0xec82d0['has'](_0x29e367)||(_0xec82d0['set'](_0x29e367,_0x40fc8b['length']),_0x40fc8b['push']([]));const _0x5e9ad0=_0xec82d0['get'](_0x29e367);_0x40fc8b[_0x5e9ad0]['push'](_0x58012c);}!(function(){_0x40fc8b['sort']((_0xaf6a40,_0x3ca9f6)=>{const _0x116553=_0xaf6a40[0x0]['createdAt'],_0x395057=_0x3ca9f6[0x0]['createdAt'];return _0x116553==_0x395057?_0xaf6a40[0x0]['attributes']['groupId']<_0x3ca9f6[0x0]['attributes']['groupId']?-0x1:0x1:_0x116553<_0x395057?-0x1:0x1;});for(const _0x46487c of _0x40fc8b)_0x46487c['sort']((_0x4b54f0,_0x56d58d)=>_0x4b54f0['id']<_0x56d58d['id']?-0x1:0x1);}());for(let _0x63ebfd=0x0;_0x63ebfd<_0x40fc8b['length'];_0x63ebfd++){if(0x0==_0x40fc8b[_0x63ebfd]['length'])continue;const _0x538ef0=[];for(let _0x27860e=_0x63ebfd+0x1;_0x27860e<_0x40fc8b['length'];_0x27860e++)0x0!=_0x40fc8b[_0x27860e]['length']&&_0x23b0f1(_0x40fc8b[_0x63ebfd],_0x40fc8b[_0x27860e])&&_0x538ef0['push'](_0x27860e);for(const _0x1f8d27 of _0x538ef0)_0x40fc8b[_0x63ebfd]=_0x40fc8b[_0x63ebfd]['concat'](_0x40fc8b[_0x1f8d27]),_0x40fc8b[_0x1f8d27]=[];}for(const _0x342eb4 of _0x40fc8b)for(let _0x37bca9=0x0;_0x37bca9<_0x342eb4['length'];_0x37bca9++)_0x342eb4[_0x37bca9]['next']=_0x342eb4[_0x37bca9+0x1]||null;for(const _0x10d7ee of _0x40fc8b)for(let _0x2e122b=0x0;_0x2e122b<_0x10d7ee['length'];_0x2e122b++)_0x10d7ee[_0x2e122b]['previous']=_0x10d7ee[_0x2e122b-0x1]||null;function _0x23b0f1(_0x572235,_0x2966d2){if(_0x572235[0x0]['attributes']['groupId']!==_0x2966d2[0x0]['attributes']['groupId']&&_0x572235[0x0]['author']!==_0x2966d2[0x0]['author'])return!0x1;if(!function(_0x2ff21d,_0x5e8d49){if(!_0x2ff21d['hasComments']&&!_0x5e8d49['hasComments'])return!0x0;if(_0x2ff21d['hasComments']&&_0x5e8d49['hasComments'])return!0x1;if(_0x2ff21d['hasComments']&&_0x5e8d49['createdAt']<_0x2ff21d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5e8d49['hasComments']&&_0x2ff21d['createdAt']<_0x5e8d49['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x572235[0x0],_0x2966d2[0x0]))return!0x1;const _0x5e40ec=Bt(_0x572235[0x0]['attributes'],'groupId'),_0xf3e51b=Bt(_0x2966d2[0x0]['attributes'],'groupId');if(!_0x4754b0(_0x5e40ec,_0xf3e51b))return!0x1;return!!_0x572235['every'](_0x463d37=>_0x2966d2['some'](_0x6bf269=>_0x463d37['getFirstRange']()['isEqual'](_0x6bf269['getFirstRange']())))&&_0x2966d2['every'](_0x5dbe75=>_0x572235['some'](_0x4947c3=>_0x5dbe75['getFirstRange']()['isEqual'](_0x4947c3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x11b05e){const _0x57c255=Array['from'](_0x11b05e),_0x53a1f1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x48be79=_0x53a1f1['filter'](_0x5a12e0=>!_0x11b05e['has'](_0x5a12e0)),_0x1face9=new Map(_0x57c255['map'](_0x9dc35f=>[_0x9dc35f,this['_suggestionFactory']['getSuggestionCallback'](_0x9dc35f['type'],_0x9dc35f['subType'],'join')])),_0x1be7b2=new Map(_0x53a1f1['map'](_0xd5ac09=>[_0xd5ac09,_0xd5ac09['getRanges']()]));for(let _0x240340=0x0;_0x240340<_0x57c255['length'];_0x240340++){if(_0x5667ce(this,_0x57c255[_0x240340],_0x57c255,_0x240340+0x1))return!0x0;}for(let _0x1ad955=0x0;_0x1ad955<_0x57c255['length'];_0x1ad955++){if(_0x5667ce(this,_0x57c255[_0x1ad955],_0x48be79,0x0))return!0x0;}return!0x1;function _0x5667ce(_0xe23692,_0x2f1bff,_0x12d7ac,_0x4df4f2){for(let _0x27b00d=_0x4df4f2;_0x27b00d<_0x12d7ac['length'];_0x27b00d++){const _0x1657a8=_0x12d7ac[_0x27b00d];if(_0x1657a8['type']!==_0x2f1bff['type']||_0x1657a8['author']['id']!==_0x2f1bff['author']['id']||_0x1657a8['subType']!==_0x2f1bff['subType'])continue;if(!Pt(_0x2f1bff,_0x1657a8,['groupId']))continue;if('attribute'==_0x2f1bff['type']&&_0x2f1bff['data']['oldValue']!=_0x1657a8['data']['oldValue'])continue;if('attribute'==_0x2f1bff['type']&&_0xe23692['_isBlockAttribute'](_0x2f1bff['data']['key']))continue;if('formatBlock'==_0x2f1bff['type']){const _0xed2652=_0xe23692['editor']['model'],_0x5b1052=_0x2f1bff['getContainedElement']();if(_0x5b1052&&(_0xed2652['schema']['isObject'](_0x5b1052)||_0xed2652['schema']['isLimit'](_0x5b1052)))continue;}const _0x5db8bc=_0x1face9['get'](_0x2f1bff),_0x30c8bd=_0x1be7b2['get'](_0x2f1bff),_0x50772a=_0x1be7b2['get'](_0x1657a8),_0x408a66=_0x2f1bff['commentThread']&&_0x2f1bff['commentThread']['length'],_0x7a90fe=_0x1657a8['commentThread']&&_0x1657a8['commentThread']['length'];if(!_0x408a66&&_0x5db8bc(_0x50772a,_0x30c8bd))return _0xe23692['_joinSuggestions'](_0x1657a8,_0x2f1bff),_0x1be7b2['delete'](_0x2f1bff),!0x0;if(!_0x7a90fe&&_0x5db8bc(_0x30c8bd,_0x50772a))return _0xe23692['_joinSuggestions'](_0x2f1bff,_0x1657a8),_0x1be7b2['delete'](_0x1657a8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x105c4d,_0x1ba2ae){if(_0x105c4d['isMultiRange']){for(const _0x344230 of _0x1ba2ae['getRanges']())_0x105c4d['addRange'](_0x344230);}else{const _0x2a34cd=_0x1ba2ae['getFirstRange']()['end'];this['_setSuggestionRange'](_0x105c4d,this['_model']['createRange'](_0x105c4d['getFirstRange']()['start'],_0x2a34cd));}_0x1ba2ae['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e1288,_0x4506b4){const _0x4b0555=_0x5e1288['startsWith']('format')||_0x5e1288['startsWith']('attribute')?'FORMATTING':_0x5e1288['toUpperCase']();return o(this['editor']['locale'],_0x4506b4+'_'+_0x4b0555+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x395241=this['editor'];if(!_0x395241['ui'])return;const {ariaLiveAnnouncer:_0x597179}=_0x395241['ui'];_0x377118(this['_model'],({left:_0x178d29,entered:_0x47cd4d})=>{for(const _0x2b1c36 of _0x178d29){const {group:_0x4d1890,type:_0x5a7444}=this['_splitMarkerName'](_0x2b1c36['name']);if('suggestion'===_0x4d1890){_0x597179['announce'](this['_getMarkerAnnouncementText'](_0x5a7444,'LEAVE'));break;}}for(const _0x5528fb of _0x47cd4d){const {group:_0x37b540,type:_0x33dbfc}=this['_splitMarkerName'](_0x5528fb['name']);if('suggestion'===_0x37b540){_0x597179['announce'](this['_getMarkerAnnouncementText'](_0x33dbfc,'ENTER'));break;}}});}['_processAttributeChanges'](_0xa45150){if(this['_recordAttributeSuggestions'])return!0x1;const _0x11bcd8=this['editor'],_0x21d3b5=_0x11bcd8['model']['document']['differ']['getChanges']();if(0x0==_0x21d3b5['length'])return!0x1;const _0x171e95=[],_0x1220da=_0x21d3b5['filter'](_0x4a9dba=>'attribute'==_0x4a9dba['type']),_0x4b74f4=_0x21d3b5['filter'](_0x5e7ebc=>'insert'==_0x5e7ebc['type']&&'$text'!=_0x5e7ebc['name']),_0xab915a=_0x21d3b5['filter'](_0x285585=>'remove'==_0x285585['type']&&'$text'!=_0x285585['name']);for(const _0x255698 of _0x1220da)_0x171e95['push']({'key':_0x255698['attributeKey'],'newValue':_0x255698['attributeNewValue'],'oldValue':_0x255698['attributeOldValue'],'range':Ot(_0x255698['range'],_0x11bcd8['model'])});for(const _0x3cd821 of _0x4b74f4){const _0x3ce0b4=_0xab915a['find'](_0x15ce66=>_0x15ce66['position']['isEqual'](_0x3cd821['position']));_0x3ce0b4&&_0x171e95['push']({'key':m,'newValue':_0x3cd821['name'],'oldValue':_0x3ce0b4['name'],'range':_0x11bcd8['model']['createRangeOn'](_0x3cd821['position']['nodeAfter'])});}return 0x0!=_0x171e95['length']&&this['_reduceExistingSuggestions'](_0xa45150,_0x171e95);}['_processAttributeSuggestions'](_0x5c2218){let _0x44d33f=!0x1;const _0x927919=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x453cbb=>_0x453cbb['data']['newRange']&&_0x453cbb['name']['startsWith']('suggestion:attribute:'));for(const _0x5a8b20 of _0x927919){const {subType:_0x3e0449,id:_0x14bcf9}=this['_splitMarkerName'](_0x5a8b20['name']),_0x14a7c4=_0x3e0449['split']('|')[0x0];for(const _0x392663 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x392663['id']!=_0x14bcf9&&'attribute'==_0x392663['type']&&_0x392663['data']&&_0x392663['data']['key']==_0x14a7c4&&_0x392663['getFirstRange']()['isIntersecting'](_0x5a8b20['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x392663,_0x5a8b20['data']['newRange'],_0x5c2218),_0x44d33f=!0x0);}return _0x44d33f;}['_recordAttributeChanges'](_0x2c2719){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2c2719();}['_isRegisteredAttribute'](_0x26f528){const _0x3229fb=this['_isBlockAttribute'](_0x26f528),_0x108ca9=this['_inlineAttributeKeys']['has'](_0x26f528);return _0x3229fb||_0x108ca9;}['_reduceExistingSuggestions'](_0x31220b,_0x5c3821){if(0x0==_0x5c3821['length'])return!0x1;let _0x1e621b=!0x1;for(const _0x2f916e of _0x5c3821){const _0x23c0f7=this['_findSuggestions'](_0x2f916e['range'],'attribute')['filter'](_0x4d967a=>!_0x4d967a['meta']['isNextTo'])['map'](_0x3f3492=>_0x3f3492['suggestion']),_0x4beafa=_0x3b5e4d({'newValue':_0x2f916e['newValue']});_0x23c0f7['filter'](_0x2dcb1c=>{const [_0x1a4795,_0x514766]=_0x2dcb1c['subType']['split']('|');return _0x1a4795==_0x2f916e['key']&&_0x514766!=_0x4beafa;})['forEach'](_0x5b85a0=>{this['_reduceSuggestionAttributeRange'](_0x5b85a0,_0x2f916e['range'],_0x31220b),_0x1e621b=!0x0;});}return _0x1e621b;}['_reduceSuggestionAttributeRange'](_0x46eb81,_0x13d684,_0x3d35f4){const _0x2b3b22=_0x46eb81['getFirstRange']()['getDifference'](_0x13d684);0x0!==_0x2b3b22['length']?0x1!==_0x2b3b22['length']?this['_breakSuggestionMarker'](_0x46eb81,_0x13d684['start'],_0x13d684['end']):this['_setSuggestionRange'](_0x46eb81,_0x2b3b22[0x0]):_0x3d35f4['removeMarker'](_0x46eb81['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xddd23a){this['_editor']=_0xddd23a,this['_model']=_0xddd23a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1bb189,_0x4948a4,_0x58146b,_0x5421b9,_0x3e28e8,_0x4dd906){return new u(this['_model'],{'type':_0x1bb189,'subType':_0x4948a4,'id':_0x58146b,'author':_0x5421b9,'creator':_0x5421b9,'attributes':_0x3e28e8,'onAttributesChange':_0x4dd906,'onAccept':(..._0x2a1a08)=>this['getSuggestionCallback'](_0x1bb189,_0x4948a4,'accept')(..._0x2a1a08),'onDiscard':(..._0x565058)=>this['getSuggestionCallback'](_0x1bb189,_0x4948a4,'discard')(..._0x565058)});}['registerCustomCallback'](_0x2956db,_0x11a3c5,_0x32d55f,_0x39cf2c){const _0x53dcc3=_0x2956db+':'+_0x11a3c5+':'+_0x32d55f;this['_customCallbacks']['set'](_0x53dcc3,_0x39cf2c);}['getSuggestionCallback'](_0x4402b9,_0x1fba77,_0x51423b){const _0x30ad9d=_0x4402b9+':'+_0x1fba77+':'+_0x51423b;return this['_customCallbacks']['get'](_0x30ad9d)||this['_defaultCallbacks']['get'](_0x4402b9+':'+_0x51423b);}['_registerDefaultCallbacks'](){const _0xde3979=()=>!0x1,_0x27b5a2=_0x210295=>{_0x210295['sort']((_0x345b3c,_0x4c0671)=>_0x345b3c['start']['isBefore'](_0x4c0671['start'])?0x1:-0x1),this['_model']['change'](_0x10a953=>{for(const _0x35795d of _0x210295){let _0x468ea3;_0x468ea3=_0x35795d['end']['isAtEnd']&&_0x35795d['end']['parent']==_0x35795d['start']['nodeAfter']?_0x10a953['createSelection'](_0x35795d['start']['nodeAfter'],'on'):_0x10a953['createSelection'](_0x35795d),this['_model']['deleteContent'](_0x468ea3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ef2d6=(_0x272ae1,_0x1d09ea)=>{_0x1d09ea&&this['_model']['change'](_0x3a99ba=>{const {commandName:_0x4f7163,commandParams:_0x4046a1=[]}=_0x1d09ea,_0x9b68c1=_0x272ae1['map'](_0x40e9f1=>(Tt(_0x40e9f1)&&(_0x40e9f1=this['_model']['createRange'](_0x40e9f1['end'])),_0x40e9f1))['filter'](_0x436847=>'$graveyard'!==_0x436847['root']['rootName']);if(_0x9b68c1['length']<0x1)return;const _0x3d319c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3cde07=>_0x2bf34c['fromRange'](_0x3cde07));_0x3a99ba['setSelection'](_0x9b68c1);for(const _0x122443 of this['_editor']['commands']['commands']())_0x122443['refresh']();_0x4046a1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4f7163,..._0x4046a1);const _0x3ac89e=_0x3d319c['filter'](_0x2d50a5=>'$graveyard'!=_0x2d50a5['root']['rootName']);_0x3ac89e['length']>0x0&&_0x3a99ba['setSelection'](_0x3ac89e);for(const _0x3b8250 of _0x3d319c)_0x3b8250['detach']();});},_0x2dc0c3=(_0x5220ac,_0x13e837)=>0x1==_0x5220ac['length']&&0x1==_0x13e837['length']&&_0x5220ac[0x0]['end']['isEqual'](_0x13e837[0x0]['start']),_0x5690c6=(_0x23a6d6,_0x208419,_0x48b0d6,_0x4269e0)=>Gt(_0x23a6d6,_0x208419,_0x48b0d6,_0x4269e0,this['_model'])?[_0x23a6d6,_0x208419]:Gt(_0x208419,_0x23a6d6,_0x4269e0,_0x48b0d6,this['_model'])?[_0x208419,_0x23a6d6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xde3979),this['_defaultCallbacks']['set']('insertion:discard',_0x27b5a2),this['_defaultCallbacks']['set']('insertion:join',_0x2dc0c3),this['_defaultCallbacks']['set']('insertion:chain',_0x5690c6),this['_defaultCallbacks']['set']('deletion:accept',_0x27b5a2),this['_defaultCallbacks']['set']('deletion:discard',_0xde3979),this['_defaultCallbacks']['set']('deletion:join',_0x2dc0c3),this['_defaultCallbacks']['set']('deletion:chain',_0x5690c6),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ef2d6),this['_defaultCallbacks']['set']('formatInline:discard',_0xde3979),this['_defaultCallbacks']['set']('formatInline:join',_0x2dc0c3),this['_defaultCallbacks']['set']('formatInline:chain',_0xde3979),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ef2d6),this['_defaultCallbacks']['set']('formatBlock:discard',_0xde3979),this['_defaultCallbacks']['set']('formatBlock:join',_0x2dc0c3),this['_defaultCallbacks']['set']('formatBlock:chain',_0xde3979),this['_defaultCallbacks']['set']('attribute:accept',_0xde3979),this['_defaultCallbacks']['set']('attribute:discard',(_0xa178aa,_0x3d013c)=>{if(!_0x3d013c)return;const _0xd60351=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x8f4d10=>{if(_0x3d013c['key']==m)for(const _0x27b3fd of _0xa178aa){const _0x404960=_0x27b3fd['start']['nodeAfter'],_0x1165f3=_0x3d013c['oldValue'];_0x8f4d10['rename'](_0x404960,_0x1165f3);}else{if(_0xd60351['_isBlockAttribute'](_0x3d013c['key'])){for(const _0x11fde7 of _0xa178aa)void 0x0!==_0x3d013c['oldValue']?_0x8f4d10['setAttribute'](_0x3d013c['key'],_0x3d013c['oldValue'],_0x11fde7['start']['nodeAfter']):_0x8f4d10['removeAttribute'](_0x3d013c['key'],_0x11fde7['start']['nodeAfter']);}else{for(const _0x104145 of _0xa178aa)_0x3d013c['oldValue']?_0x8f4d10['setAttribute'](_0x3d013c['key'],_0x3d013c['oldValue'],_0x104145):_0x8f4d10['removeAttribute'](_0x3d013c['key'],_0x104145);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2dc0c3);}}function Rt(_0x68a124,_0x294f7e,_0x12d166){for(const _0x355eb8 of _0x294f7e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x355eb8['root']==_0x355eb8)return!0x1;if(!_0x12d166['containsItem'](_0x355eb8))return!0x1;if(_0x68a124['isObject'](_0x355eb8)||_0x68a124['isLimit'](_0x355eb8))return!0x0;}return!0x1;}function Tt(_0x32fcd5){return _0x32fcd5['end']['parent']==_0x32fcd5['start']['nodeAfter']&&_0x32fcd5['end']['isAtStart'];}function Et(_0x40f94a,_0x41e1fb,_0x2a3a2f,_0x4e2d3a){const _0x246bb2=_0x48146b=>!_0x48146b['item']['is']('$textProxy')&&!_0x4e2d3a['isObject'](_0x48146b['item']),_0x3cd85a=_0x40f94a['start']['getLastMatchingPosition'](_0x246bb2),_0x5b7d68=_0x40f94a['end']['getLastMatchingPosition'](_0x246bb2,{'direction':'backward'});return(!_0x40f94a['start']['isEqual'](_0x3cd85a)||!_0x40f94a['end']['isEqual'](_0x5b7d68))&&(_0x3cd85a['isBefore'](_0x5b7d68)?_0x2a3a2f['updateMarker'](_0x41e1fb,{'range':_0x2a3a2f['createRange'](_0x3cd85a,_0x5b7d68)}):_0x2a3a2f['removeMarker'](_0x41e1fb),!0x0);}function Vt(_0x20cd50){return _0x3b5e4d(_0x20cd50);}function Ut(_0x2a4996){const _0x3a0688=_0x2a4996['start']['nodeAfter'];return _0x3a0688&&_0x3a0688['is']('element');}function Ot(_0x210ff9,_0x369851){return null==_0x210ff9['end']['nodeBefore']&&_0x210ff9['end']['parent']==_0x210ff9['start']['nodeAfter']?Ft(_0x210ff9['start']['nodeAfter'],_0x369851):_0x210ff9;}function Ft(_0x52961d,_0x276552){const _0x855195=_0x276552['schema']['isObject'](_0x52961d)||_0x276552['schema']['isSelectable'](_0x52961d);return _0x276552['createRange'](_0x276552['createPositionAt'](_0x52961d,'before'),_0x855195?_0x276552['createPositionAfter'](_0x52961d):_0x276552['createPositionAt'](_0x52961d,'end'));}function Gt(_0x19d3ac,_0x344052,_0x57206f,_0x1540d9,_0x238edd){if(!Pt(_0x19d3ac,_0x344052))return!0x1;if(_0x57206f['end']['isEqual'](_0x1540d9['start']))return!0x0;if(_0x19d3ac['type']!=_0x344052['type'])return!0x1;if(!_0x57206f['end']['isTouching'](_0x1540d9['start']))return!0x1;const _0xb6c7ed=_0x238edd['createRange'](_0x57206f['end'],_0x1540d9['start'])['getWalker']();for(const _0xf992de of _0xb6c7ed)if(['elementStart','elementEnd']['includes'](_0xf992de['type'])&&_0x238edd['schema']['isLimit'](_0xf992de['item']))return!0x1;return!0x0;}function Pt(_0xf9cdaa,_0x4c0cc1,_0x457ea8=[]){return!(!_0xf9cdaa['_isDataLoaded']||!_0x4c0cc1['_isDataLoaded'])&&_0x4754b0(Bt(_0xf9cdaa['attributes'],_0x457ea8),Bt(_0x4c0cc1['attributes'],_0x457ea8));}function Lt(_0x22bb2f,_0x34bb90){const _0x4c3be9=Ht(_0x22bb2f['attributes']),_0x3e4c5e=Ht(_0x34bb90);if(!_0x22bb2f['_isDataLoaded'])return!0x1;for(const _0x1bd929 of Object['keys'](_0x3e4c5e))if(!_0x4754b0(_0x4c3be9[_0x1bd929],_0x3e4c5e[_0x1bd929]))return!0x1;return!0x0;}function Ht(_0x372919){const _0x57b77b=Object['assign']({},_0x372919);return delete _0x57b77b['skipNestingCheck'],delete _0x57b77b['tablePasteChainId'],_0x57b77b;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0xf726f3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5a18e1,_0x2843a9,_0x5afe67,_0x2841ce){super(),this['model']=_0x2843a9,this['view']=_0x5afe67,this['commentThreadController']=_0x2841ce,this['_editor']=_0x5a18e1,this['_acceptCommand']=_0x5a18e1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5a18e1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x58c641,_0x1f9c32)=>_0x58c641||_0x1f9c32),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x555194=>_0x555194&&this['_editor']['model']['canEditAt'](_0x2843a9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x8010a4=>_0x8010a4&&this['_editor']['model']['canEditAt'](_0x2843a9['getRanges']())),this['_pendingAction']=null,_0x5afe67['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5afe67,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5afe67,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5afe67,'change:isDirty',()=>{_0x5afe67['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 _0x2f3df5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f3df5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x212140{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0xaf2ed0,_0x3e88b0,_0x4245f9,_0x555fe4){super(_0xaf2ed0),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3e88b0['authoredAt']),this['bind']('authoredAt')['to'](_0x3e88b0),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3e88b0,this['_localUser']=_0x4245f9,this['_config']=_0x555fe4,_0x555fe4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x116d67}=this['_config'];this['commentsListView']=new _0x116d67(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',_0x20c79a=>_0x20c79a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x42a863,_0x43dbab)=>_0x42a863||!!_0x43dbab);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x597d79}=this['_config'],_0x562624=new _0x597d79(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2dd024=_0x562624['commentInputView'];return _0x562624['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2dd024,'value',(_0x3d58ee,_0x4ac65b,_0x1eb40a)=>!!_0x1eb40a||_0x3d58ee&&!_0x4ac65b),_0x2dd024['on']('submit',(_0x364582,_0x40e110)=>{this['fire']('addComment',_0x40e110),_0x2dd024['editor']['setData']('');}),_0x2dd024['on']('cancel',()=>this['focus']()),_0x2dd024['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x562624;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x234967,_0xa394de,_0x3fe004,_0x7046df){super(_0x234967,_0xa394de,_0x3fe004,_0x7046df),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x319513=>_0x319513&&_0x319513[0x0]?_0x319513[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x458d64,_0x582a53)=>{let _0x3340d3='';for(const _0x50914e of _0x458d64)_0x3340d3+='<p>'+ds(_0x50914e['content'],_0x50914e['color'])+'</p>';return _0x582a53?_0x3340d3:_0x3e73f0(_0x3340d3,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x234967,'Accept\x20suggestion'),_0x2d9f06['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x234967,'Discard\x20suggestion'),_0x2d9f06['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5a6558(_0x234967,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1eec75=this['bindTemplate'],_0x12ee80=[{'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':_0x1eec75['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1eec75['to']('authoredAt',_0x46fc8e=>this['_config']['formatDateTime'](_0x46fc8e))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x12ee80['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x186b60={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1eec75['if']('isActive','ck-suggestion-wrapper--active'),_0x1eec75['to']('type',_0xa34e25=>'ck-suggestion-'+_0xa34e25),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x12ee80}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x186b60['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x186b60;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2f79be,_0x1738d5,_0xf7bc8f)=>{this['_descriptionElement']['innerHTML']=_0xf7bc8f;});}['_createButton'](_0x504380,_0x5b8933,_0x2c9da0,_0x13f8c1,_0x514515){const _0x1ff656=new _0x41140c(this['locale']);return _0x1ff656['set']({'label':_0x504380,'icon':_0x5b8933,'tooltip':!0x0,'tooltipPosition':_0x514515}),_0x1ff656['extendTemplate']({'attributes':{'class':_0x2c9da0}}),_0x1ff656['on']('execute',()=>{this['fire'](_0x13f8c1,this['_model']['id']);}),_0x1ff656;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x53dcb4,_0x336a28){let _0x540bb7='';return _0x540bb7+=_0x53dcb4['split']('*')['map']((_0x17bc9d,_0x5a09a4)=>_0x5a09a4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x17bc9d)+'</span>':us(_0x17bc9d))['join'](''),_0x336a28&&(_0x540bb7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x336a28['value']+'\x22\x20title=\x22'+_0x336a28['title']+'\x22></span>'),_0x540bb7;}function us(_0x50b386){const _0x532207=document['createElement']('span');return _0x532207['innerText']=_0x50b386,_0x532207['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x6b635c{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2d7bb2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x42fc7d){super(_0x42fc7d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x252fb7=this['editor']['config'];_0x252fb7['define']('trackChanges.SuggestionThreadView',ne),_0x252fb7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x252fb7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x304dfb,_0xdd9b49){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11f470,_0x1c7266]of this['_handleControllerBuffer']){const _0x15ff9d=this['_suggestionToController']['has'](_0x11f470);_0x15ff9d||_0x1c7266?_0x15ff9d&&_0x1c7266&&this['_destroyController'](_0x11f470):this['_initializeController'](_0x11f470);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x304dfb,_0xdd9b49);}['init'](){const _0x1e3539=this['editor'],_0x39b8dc=_0x1e3539['plugins']['get']('TrackChangesEditing'),_0x4cf84a=_0x1e3539['plugins']['get']('Annotations'),_0x35c17d=_0x1e3539['plugins']['get']('EditorAnnotations'),_0x2b7e5f=_0x1e3539['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x35c17d['addSourceCollector'](()=>{const _0x12cd96=[];for(const [_0x5a8be0,_0x23e56e]of Array['from'](this['_suggestionToController'])){const _0x1d4493=_0x5a8be0['getAllAdjacentSuggestions'](),_0x13d13c=[];for(const _0x5eb439 of _0x1d4493){if(!_0x5eb439['isInContent'])continue;if(_0x5eb439['isMultiRange']){_0x13d13c['push'](..._0x5eb439['getRanges']());continue;}const _0x196046=_0x5eb439['getFirstRange']();if(_0x13d13c['length']>0x0){const _0xe2de88=_0x13d13c[0x0]['getJoined'](_0x196046);if(_0xe2de88){_0x13d13c[0x0]=_0xe2de88;continue;}}_0x13d13c['push'](_0x196046);}_0x12cd96['push']([_0x23e56e['view'],_0x13d13c]);}return _0x12cd96;}),this['listenTo'](_0x39b8dc,'suggestionLoaded',(_0x14fbc0,_0x1fea64)=>{this['listenTo'](_0x1fea64,'change:previous',(_0x33cd21,_0x320d22,_0x3d0303,_0x37db3c)=>{_0x1fea64['isInContent']&&(null==_0x3d0303?(this['_updateController'](_0x37db3c['head']),this['_handleSuggestionControllerDelayed'](_0x1fea64,!0x1)):(this['_updateController'](_0x3d0303['head']),null==_0x37db3c&&this['_handleSuggestionControllerDelayed'](_0x1fea64,!0x0)));}),null!==_0x1fea64['previous']?this['_updateController'](_0x1fea64['head']):this['_handleSuggestionControllerDelayed'](_0x1fea64,!0x1);}),this['listenTo'](_0x39b8dc,'suggestionUnloaded',(_0x23fce1,_0x9bf50,_0x2d0135)=>{this['stopListening'](_0x9bf50,'change:previous'),this['_handleControllerBuffer']['delete'](_0x9bf50),this['_suggestionToController']['has'](_0x9bf50)&&this['_destroyController'](_0x9bf50),_0x2d0135&&this['_updateController'](_0x2d0135['head']);}),this['listenTo'](_0x39b8dc,'suggestionChanged',(_0x178737,_0x2acd5b)=>{this['_updateController'](_0x2acd5b);}),this['listenTo'](_0x4cf84a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2b7e5f,'addComment',(_0x524c86,{threadId:_0x18f997,isFromAdapter:_0x252d1c})=>{if(_0x252d1c||!_0x39b8dc['hasSuggestion'](_0x18f997))return;const _0x59267f=_0x39b8dc['getSuggestion'](_0x18f997);this['_suggestionToController']['get'](_0x59267f)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x192e6b=this['editor']['plugins']['get']('Annotations'),_0x46e8fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x231533=Array['from'](_0x192e6b['activeAnnotations'],_0x22a226=>_0x22a226['innerView'])['filter'](_0x55a5df=>this['_viewToController']['has'](_0x55a5df)),_0x2016be=[];for(const _0x48e33a of _0x231533){const _0x4699ba=this['_viewToController']['get'](_0x48e33a)['model']['getAllAdjacentSuggestions']();_0x2016be['push'](..._0x4699ba['reduce']((_0x2bfc65,_0x2389a1)=>[..._0x2bfc65,..._0x2389a1['getMarkerNames']()],[]));}_0x46e8fa['activeMarkers']=_0x2016be;}['_addUIComponentsToFactory'](){const _0x52f8a4=this['editor'],_0x4b6009=_0x52f8a4['locale'],_0x562cbb=o(_0x4b6009,'Track\x20changes'),_0x1164c1=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x562cbb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4b6009,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4b6009,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4b6009,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4b6009,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x13db8c of _0x1164c1)if(ae(_0x13db8c)){const _0x405580=_0x52f8a4['commands']['get'](_0x13db8c['model']['commandName']);_0x13db8c['model']['bind']('isOn','isEnabled')['to'](_0x405580,'value','isEnabled');}_0x52f8a4['ui']['componentFactory']['add']('trackChanges',_0x54cbcf=>this['_createToolbarButton'](_0x54cbcf,_0x1164c1,_0x562cbb)),_0x52f8a4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3c4046=>this['_createMenuBarMenu'](_0x3c4046,_0x1164c1,_0x562cbb));}['_createToolbarButton'](_0x5ccfea,_0xf6ed5,_0x57bea2){const _0x5e4a47=zt(_0x5ccfea,Zt),_0x5d7dd5=this['editor']['commands']['get']('trackChanges');_0x5e4a47['buttonView']['set']({'tooltip':_0x57bea2,'label':_0x57bea2,'icon':ie}),_0x5e4a47['buttonView']['bind']('isOn')['to'](_0x5d7dd5,'value'),_0x5e4a47['buttonView']['on']('execute',()=>{_0x5d7dd5['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x5e4a47,_0xf6ed5,{'role':'menu'});const _0x12abb6=[];for(const _0x1c57df of _0xf6ed5)ae(_0x1c57df)&&_0x12abb6['push'](this['editor']['commands']['get'](_0x1c57df['model']['commandName']));const _0x5426e4=_0x5e4a47['buttonView'];return _0x5426e4['actionView']['unbind']('isEnabled'),_0x5426e4['arrowView']['unbind']('isEnabled'),_0x5426e4['actionView']['bind']('isEnabled')['to'](_0x5d7dd5,'isEnabled'),_0x5426e4['arrowView']['bind']('isEnabled')['toMany'](_0x12abb6,'isEnabled',(..._0x2ae6d1)=>_0x2ae6d1['some'](_0x563958=>_0x563958)),_0x5e4a47['on']('execute',_0x575176=>{this['editor']['execute'](_0x575176['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e4a47;}['_createMenuBarMenu'](_0x3c3b20,_0x28a167,_0x3b76ee){const _0x439ccb=new Kt(_0x3c3b20),_0x5d3c98=this['editor']['commands']['get']('trackChanges');_0x439ccb['buttonView']['set']({'label':_0x3b76ee,'icon':ie});const _0x59eae2=new Qt(_0x3c3b20);for(const _0x490df6 of _0x28a167){if('separator'==_0x490df6['type']){_0x59eae2['items']['add'](new Jt(_0x3c3b20));continue;}const _0x2ca506=new Xt(_0x3c3b20,_0x439ccb),_0x3d298a=new Yt(_0x3c3b20),_0x15330c=_0x490df6['model'];_0x3d298a['bind'](...Object['keys'](_0x15330c))['to'](_0x15330c),_0x3d298a['delegate']('execute')['to'](_0x439ccb),_0x3d298a['on']('execute',()=>{this['editor']['execute'](_0x15330c['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ca506['children']['add'](_0x3d298a),_0x59eae2['items']['add'](_0x2ca506);}return _0x439ccb['bind']('isEnabled')['to'](_0x5d3c98,'isEnabled'),_0x439ccb['panelView']['children']['add'](_0x59eae2),_0x439ccb;}['_initializeController'](_0x386f98){const _0x5b82a8=this['editor'],_0x161585=_0x5b82a8['config'],_0xe21738=_0x5b82a8['plugins']['get']('Annotations'),_0x3eee7f=_0x5b82a8['plugins']['get']('CommentsRepository'),_0x7731af=_0x5b82a8['plugins']['get']('EditorAnnotations'),_0x38fb74=_0x5b82a8['plugins']['get'](_0x2d7bb2)['me'],_0x27c180=_0x161585['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x21a372,CommentThreadInputView:_0xa1815e}=_0x5b82a8['plugins']['get']('CommentsUI');let _0x10dbba,_0x57d827;this['_annotationViews']['has'](_0x386f98['id'])?(_0x57d827=this['_annotationViews']['get'](_0x386f98['id']),_0x10dbba=_0x57d827['mainView']):(_0x10dbba=new _0x27c180(_0x5b82a8['locale'],_0x386f98,_0x38fb74,{'disableComments':this['_disableComments'],'editorConfig':_0x161585['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x161585['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x161585['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x161585['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x347bd5(_0x161585['get']('locale')),'CommentView':_0x161585['get']('comments')['CommentView'],'CommentsListView':_0x21a372,'CommentThreadInputView':_0xa1815e}),_0x10dbba['acceptButton']['on']('execute',()=>{_0x5b82a8['editing']['view']['focus']();}),_0x10dbba['discardButton']['on']('execute',()=>{_0x5b82a8['editing']['view']['focus']();}),_0x57d827=_0xe21738['createAnnotationView'](this['editor']['locale'],_0x10dbba),_0x57d827['bind']('isDirty')['to'](_0x10dbba,'isDirty'),_0x57d827['bind']('length')['to'](_0x10dbba),_0x57d827['bind']('type')['to'](_0x10dbba,'type',_0x225bbc=>'suggestion-'+_0x225bbc),this['_annotationViews']['set'](_0x386f98['id'],_0x57d827));const _0xc7cd24=_0x3eee7f['createCommentThreadController'](_0x386f98['commentThread'],_0x10dbba),_0x5e5698=new oe(_0x5b82a8,_0x386f98,_0x10dbba,_0xc7cd24),_0x53ec25=_0x386f98['getAllAdjacentSuggestions']()['filter'](_0x12a300=>_0x12a300['isInContent']);_0x10dbba['descriptionParts']=_0x5b82a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x53ec25),this['_suggestionToController']['set'](_0x386f98,_0x5e5698),this['_viewToController']['set'](_0x10dbba,_0x5e5698);const _0x20efdd=_0xe21738['createAnnotation']({'view':_0x57d827,'target':()=>{const _0x5dbc14=[],_0x5222dd=_0x386f98['getAllAdjacentSuggestions']()['filter'](_0x485d46=>_0x485d46['isInContent']);for(const _0x52f2a1 of _0x5222dd)_0x5dbc14['push'](..._0x52f2a1['getMarkers']());return _0x1d7c3e(_0x5b82a8['editing'],_0x5dbc14);},'type':()=>'suggestion-'+_0x5e5698['view']['type']});_0x3eee7f['_bindAnnotationToEditors'](_0x10dbba,_0x20efdd),_0xe21738['add'](_0x20efdd),_0x7731af['registerAnnotation'](_0x20efdd);}['_destroyController'](_0x583fff){const _0xa71ba3=this['editor']['plugins']['get']('CommentsRepository'),_0xcba6fe=this['editor']['plugins']['get']('Annotations'),_0x1109b2=this['_suggestionToController']['get'](_0x583fff),_0x573979=_0x1109b2['view'],_0x387e24=_0xcba6fe['getByInnerView'](_0x573979);_0xa71ba3['_unbindEditors'](_0x573979),_0x387e24&&_0xcba6fe['remove'](_0x387e24),this['_suggestionToController']['delete'](_0x583fff),this['_viewToController']['delete'](_0x573979),_0x1109b2['destroy']();}['_updateController'](_0x4024d0){if(!_0x4024d0['isInContent']||!this['_suggestionToController']['has'](_0x4024d0))return;const _0x1bce74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x591ed3=this['_suggestionToController']['get'](_0x4024d0),_0x1d5c76=_0x4024d0['getAllAdjacentSuggestions']();_0x591ed3['view']['descriptionParts']=_0x1bce74['descriptionFactory']['getDescriptions'](_0x1d5c76);}['destroy'](){for(const _0x5302da of this['_suggestionToController']['keys']())this['_destroyController'](_0x5302da);for(const _0x9c968f of this['_annotationViews']['values']())_0x9c968f['mainView']['destroy']();super['destroy']();}}function ae(_0x1d8406){return'model'in _0x1d8406;}class k extends _0x6b635c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x245af5){this['editor']['plugins']['get'](p)['adapter']=_0x245af5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2b4fa3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2b4fa3);}['getSuggestions']({skipNotAttached:_0x445894=!0x1,toJSON:_0x11e40d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x445894,'toJSON':_0x11e40d});}['getSuggestion'](_0x35fd54){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x35fd54);}}const T=['Pagination'];class P extends _0x6b635c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x11ffa4=this['editor'];if(_0x11ffa4['config']['define']('trackChangesData.editorCreator',_0x54e3c9=>{const _0x298d26=_0x11ffa4['model']['document']['getRootNames']()['reduce']((_0x335d26,_0x1fa462)=>(_0x335d26[_0x1fa462]='',_0x335d26),{});return _0x11ffa4['constructor']['create'](_0x298d26,_0x54e3c9);}),'function'!=typeof _0x11ffa4['config']['get']('trackChangesData')['editorCreator'])throw new _0x1be5c9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x128f19){return N(this['editor'],!0x0,_0x128f19);}['getDataWithDiscardedSuggestions'](_0x4371cb){return N(this['editor'],!0x1,_0x4371cb);}}class D extends _0x6b635c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4f8288){super(_0x4f8288),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(_0x563355){return void 0x0!==_0x563355['getRootsAttributes'];}async function N(_0x4ceb58,_0x35e004,_0x26157c){const _0x4776d8=_0x34bd0b(_0x4ceb58,T);_0x4776d8['plugins']['push'](p,D),_0x4776d8['rootsAttributes']=v(_0x4ceb58)?_0x4ceb58['getRootsAttributes']():void 0x0;const _0x12daf5=document['createDocumentFragment'](),_0x2483e8=_0x4ceb58['config']['get']('trackChangesData')['editorCreator'],_0x3484e1=await _0x2483e8(_0x4776d8,()=>function(_0x325839){const _0x3c99a7=document['createElement']('div');return _0x325839['appendChild'](_0x3c99a7),_0x3c99a7;}(_0x12daf5));!function(_0x27aa3d,_0x420fb9){const _0x44554a=_0x27aa3d['model']['document']['getRootNames']()['reduce']((_0x2b105c,_0x12a96b)=>(_0x2b105c[_0x12a96b]=_0x27aa3d['data']['get']({'rootName':_0x12a96b}),_0x2b105c),{}),_0x32a090=_0x27aa3d['plugins']['get']('Users')['users']['map'](_0x1ab43a=>({'id':_0x1ab43a['id'],'name':_0x1ab43a['name']})),_0x101260=_0x27aa3d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ae28d=_0x27aa3d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xfd4b96=_0x420fb9['plugins']['get']('Users'),_0x577ca9=_0x420fb9['plugins']['get']('TrackChangesEditing'),_0x3aa123=_0x420fb9['plugins']['get']('CommentsRepository');for(const _0x1a6c9e of _0x32a090)_0xfd4b96['getUser'](_0x1a6c9e['id'])||_0xfd4b96['addUser'](_0x1a6c9e);_0xfd4b96['me']||_0xfd4b96['useAnonymousUser']();for(const _0x157429 of _0x101260)_0x577ca9['addSuggestionData'](_0x157429);for(const _0x1e39bb of _0x2ae28d)_0x3aa123['addCommentThread'](_0x1e39bb);_0x420fb9['data']['set'](_0x44554a);}(_0x4ceb58,_0x3484e1),_0x3484e1['execute'](_0x35e004?'acceptAllSuggestions':'discardAllSuggestions');const _0x447248=v(_0x3484e1)?_0x3484e1['getFullData'](_0x26157c):_0x3484e1['data']['get'](_0x26157c);return await _0x3484e1['destroy'](),_0x447248;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};