@ckeditor/ckeditor5-track-changes 48.4.0-alpha.6 → 48.4.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/translations/af.js +1 -1
  3. package/dist/translations/af.umd.js +1 -1
  4. package/dist/translations/ar.js +1 -1
  5. package/dist/translations/ar.umd.js +1 -1
  6. package/dist/translations/ast.js +1 -1
  7. package/dist/translations/ast.umd.js +1 -1
  8. package/dist/translations/az.js +1 -1
  9. package/dist/translations/az.umd.js +1 -1
  10. package/dist/translations/be.js +1 -1
  11. package/dist/translations/be.umd.js +1 -1
  12. package/dist/translations/bg.js +1 -1
  13. package/dist/translations/bg.umd.js +1 -1
  14. package/dist/translations/bn.js +1 -1
  15. package/dist/translations/bn.umd.js +1 -1
  16. package/dist/translations/bs.js +1 -1
  17. package/dist/translations/bs.umd.js +1 -1
  18. package/dist/translations/ca.js +1 -1
  19. package/dist/translations/ca.umd.js +1 -1
  20. package/dist/translations/cs.js +1 -1
  21. package/dist/translations/cs.umd.js +1 -1
  22. package/dist/translations/da.js +1 -1
  23. package/dist/translations/da.umd.js +1 -1
  24. package/dist/translations/de-ch.js +1 -1
  25. package/dist/translations/de-ch.umd.js +1 -1
  26. package/dist/translations/de.js +1 -1
  27. package/dist/translations/de.umd.js +1 -1
  28. package/dist/translations/el.js +1 -1
  29. package/dist/translations/el.umd.js +1 -1
  30. package/dist/translations/en-au.js +1 -1
  31. package/dist/translations/en-au.umd.js +1 -1
  32. package/dist/translations/en-gb.js +1 -1
  33. package/dist/translations/en-gb.umd.js +1 -1
  34. package/dist/translations/en.js +1 -1
  35. package/dist/translations/en.umd.js +1 -1
  36. package/dist/translations/eo.js +1 -1
  37. package/dist/translations/eo.umd.js +1 -1
  38. package/dist/translations/es-co.js +1 -1
  39. package/dist/translations/es-co.umd.js +1 -1
  40. package/dist/translations/es.js +1 -1
  41. package/dist/translations/es.umd.js +1 -1
  42. package/dist/translations/et.js +1 -1
  43. package/dist/translations/et.umd.js +1 -1
  44. package/dist/translations/eu.js +1 -1
  45. package/dist/translations/eu.umd.js +1 -1
  46. package/dist/translations/fa.js +1 -1
  47. package/dist/translations/fa.umd.js +1 -1
  48. package/dist/translations/fi.js +1 -1
  49. package/dist/translations/fi.umd.js +1 -1
  50. package/dist/translations/fr.js +1 -1
  51. package/dist/translations/fr.umd.js +1 -1
  52. package/dist/translations/gl.js +1 -1
  53. package/dist/translations/gl.umd.js +1 -1
  54. package/dist/translations/gu.js +1 -1
  55. package/dist/translations/gu.umd.js +1 -1
  56. package/dist/translations/he.js +1 -1
  57. package/dist/translations/he.umd.js +1 -1
  58. package/dist/translations/hi.js +1 -1
  59. package/dist/translations/hi.umd.js +1 -1
  60. package/dist/translations/hr.js +1 -1
  61. package/dist/translations/hr.umd.js +1 -1
  62. package/dist/translations/hu.js +1 -1
  63. package/dist/translations/hu.umd.js +1 -1
  64. package/dist/translations/hy.js +1 -1
  65. package/dist/translations/hy.umd.js +1 -1
  66. package/dist/translations/id.js +1 -1
  67. package/dist/translations/id.umd.js +1 -1
  68. package/dist/translations/it.js +1 -1
  69. package/dist/translations/it.umd.js +1 -1
  70. package/dist/translations/ja.js +1 -1
  71. package/dist/translations/ja.umd.js +1 -1
  72. package/dist/translations/jv.js +1 -1
  73. package/dist/translations/jv.umd.js +1 -1
  74. package/dist/translations/kk.js +1 -1
  75. package/dist/translations/kk.umd.js +1 -1
  76. package/dist/translations/km.js +1 -1
  77. package/dist/translations/km.umd.js +1 -1
  78. package/dist/translations/kn.js +1 -1
  79. package/dist/translations/kn.umd.js +1 -1
  80. package/dist/translations/ko.js +1 -1
  81. package/dist/translations/ko.umd.js +1 -1
  82. package/dist/translations/ku.js +1 -1
  83. package/dist/translations/ku.umd.js +1 -1
  84. package/dist/translations/lt.js +1 -1
  85. package/dist/translations/lt.umd.js +1 -1
  86. package/dist/translations/lv.js +1 -1
  87. package/dist/translations/lv.umd.js +1 -1
  88. package/dist/translations/ms.js +1 -1
  89. package/dist/translations/ms.umd.js +1 -1
  90. package/dist/translations/nb.js +1 -1
  91. package/dist/translations/nb.umd.js +1 -1
  92. package/dist/translations/ne.js +1 -1
  93. package/dist/translations/ne.umd.js +1 -1
  94. package/dist/translations/nl.js +1 -1
  95. package/dist/translations/nl.umd.js +1 -1
  96. package/dist/translations/no.js +1 -1
  97. package/dist/translations/no.umd.js +1 -1
  98. package/dist/translations/oc.js +1 -1
  99. package/dist/translations/oc.umd.js +1 -1
  100. package/dist/translations/pl.js +1 -1
  101. package/dist/translations/pl.umd.js +1 -1
  102. package/dist/translations/pt-br.js +1 -1
  103. package/dist/translations/pt-br.umd.js +1 -1
  104. package/dist/translations/pt.js +1 -1
  105. package/dist/translations/pt.umd.js +1 -1
  106. package/dist/translations/ro.js +1 -1
  107. package/dist/translations/ro.umd.js +1 -1
  108. package/dist/translations/ru.js +1 -1
  109. package/dist/translations/ru.umd.js +1 -1
  110. package/dist/translations/si.js +1 -1
  111. package/dist/translations/si.umd.js +1 -1
  112. package/dist/translations/sk.js +1 -1
  113. package/dist/translations/sk.umd.js +1 -1
  114. package/dist/translations/sl.js +1 -1
  115. package/dist/translations/sl.umd.js +1 -1
  116. package/dist/translations/sq.js +1 -1
  117. package/dist/translations/sq.umd.js +1 -1
  118. package/dist/translations/sr-latn.js +1 -1
  119. package/dist/translations/sr-latn.umd.js +1 -1
  120. package/dist/translations/sr.js +1 -1
  121. package/dist/translations/sr.umd.js +1 -1
  122. package/dist/translations/sv.js +1 -1
  123. package/dist/translations/sv.umd.js +1 -1
  124. package/dist/translations/th.js +1 -1
  125. package/dist/translations/th.umd.js +1 -1
  126. package/dist/translations/ti.js +1 -1
  127. package/dist/translations/ti.umd.js +1 -1
  128. package/dist/translations/tk.js +1 -1
  129. package/dist/translations/tk.umd.js +1 -1
  130. package/dist/translations/tr.js +1 -1
  131. package/dist/translations/tr.umd.js +1 -1
  132. package/dist/translations/tt.js +1 -1
  133. package/dist/translations/tt.umd.js +1 -1
  134. package/dist/translations/ug.js +1 -1
  135. package/dist/translations/ug.umd.js +1 -1
  136. package/dist/translations/uk.js +1 -1
  137. package/dist/translations/uk.umd.js +1 -1
  138. package/dist/translations/ur.js +1 -1
  139. package/dist/translations/ur.umd.js +1 -1
  140. package/dist/translations/uz.js +1 -1
  141. package/dist/translations/uz.umd.js +1 -1
  142. package/dist/translations/vi.js +1 -1
  143. package/dist/translations/vi.umd.js +1 -1
  144. package/dist/translations/zh-cn.js +1 -1
  145. package/dist/translations/zh-cn.umd.js +1 -1
  146. package/dist/translations/zh.js +1 -1
  147. package/dist/translations/zh.umd.js +1 -1
  148. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x2d4b1a,PendingActions as _0x2c21b8,Plugin as _0x46623c}from'@ckeditor/ckeditor5-core';import{Annotations as _0x2a90fc,Comments as _0x4185e5,CommentsRepository as _0x20d369,EditorAnnotations as _0x23f102}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x30d1b9,Collection as _0x38d6ab,FocusTracker as _0x372a02,KeystrokeHandler as _0x5f12a8,ObservableMixin as _0x57a455,getEnvKeystrokeText as _0x3d7c40,insertToPriorityArray as _0x600d33,logWarning as _0x201241,priorities as _0x2abd23,uid as _0xb256dd}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x3b8033,IconCancel as _0xecd571,IconCheck as _0x145b10,IconSparkle as _0x460fe9,IconTrackChanges as _0x2a8cb9}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x3249a9,Dialog as _0xcae17c,FocusCycler as _0x25d76f,ListSeparatorView as _0x401df3,MenuBarMenuListItemButtonView as _0x4ff684,MenuBarMenuListItemView as _0x3d6de3,MenuBarMenuListView as _0x49f11b,MenuBarMenuView as _0x3cc620,SplitButtonView as _0x10f459,UIModel as _0x3732df,View as _0x51fc04,ViewCollection as _0x3903f4,addListToDropdown as _0x39cb2d,createDropdown as _0x193872,normalizeColorOptions as _0x1dd982}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x190603,CollaborationUserColor as _0x2775ce,DocumentCompare as _0x54de65,FOCUS_ANNOTATION_KEYSTROKE as _0x299aec,LateFocusButtonView as _0x3479ab,PillView as _0x1fc6cd,SuggestionsConversion as _0x5bcc45,User as _0x4c40b2,UserView as _0x10b490,Users as _0x56d88b,fixElementSuggestionRange as _0x2cb2d4,getAllMarkersDomElementsSorted as _0xa09f19,getDateTimeFormatter as _0x33f4c3,hashObject as _0x5ed3e3,isInvalidAttributeOperation as _0x1fd0be,sanitizeEditorConfig as _0x1f50ae,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0x2d4b1a{['_enabledCommands'];constructor(_0x3cacdc,_0xe6e3b0){super(_0x3cacdc),this['_enabledCommands']=_0xe6e3b0,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 _0x13fb81 of this['editor']['commands']['commands']())_0x13fb81['affectsData']&&!this['_enabledCommands']['has'](_0x13fb81)&&_0x13fb81['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xb270ce of this['editor']['commands']['commands']())_0xb270ce['affectsData']&&!this['_enabledCommands']['has'](_0xb270ce)&&_0xb270ce['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0x2d4b1a{_suggestions;constructor(_0x5e42a1,_0xb95203){super(_0x5e42a1),this['_suggestions']=_0xb95203,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x956c8c){const _0x1794da=this['_suggestions']['get'](_0x956c8c);if(!_0x1794da)throw new _0x30d1b9('track-changes-accept-suggestion-not-found',this);const _0x2c8a7c=_0x1794da['getRanges']();this['editor']['model']['canEditAt'](_0x2c8a7c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1794da);}},Lt=class extends _0x2d4b1a{_suggestions;constructor(_0x57c968,_0x298292){super(_0x57c968),this['_suggestions']=_0x298292,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x175cdc){const _0xabceaa=this['_suggestions']['get'](_0x175cdc);if(!_0xabceaa)throw new _0x30d1b9('track-changes-discard-suggestion-not-found',this);const _0x408c1=_0xabceaa['getRanges']();this['editor']['model']['canEditAt'](_0x408c1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xabceaa);}};function It(_0x7541e8,_0x2b4e36){let _0x39d703='';return _0x39d703+=_0x7541e8['split']('*')['map']((_0x21a854,_0xc3d3ad)=>_0xc3d3ad%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0x21a854)+'</span>':At(_0x21a854))['join'](''),_0x2b4e36&&(_0x39d703+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2b4e36['value']+'\x22\x20title=\x22'+_0x2b4e36['title']+'\x22></span>'),_0x39d703;}function At(_0x2c16e4){const _0x24f406=document['createElement']('span');return _0x24f406['innerText']=_0x2c16e4,_0x24f406['innerHTML'];}function bt(_0x2dc858){return _0x2dc858['sort']((_0x57dca6,_0x993ef3)=>'attribute'===_0x57dca6['type']&&'attribute'!==_0x993ef3['type']?-0x1:'attribute'!==_0x57dca6['type']&&'attribute'===_0x993ef3['type']?0x1:'deletion'==_0x57dca6['type']&&'deletion'!=_0x993ef3['type']?-0x1:'deletion'!=_0x57dca6['type']&&'deletion'==_0x993ef3['type']?0x1:0x0);}function Ct(_0x193071,_0x599c80){let _0x568562,_0x14b181=0x0;const _0x1eb8a7=[],_0x38989c=_0x599c80['schema'];for(;_0x14b181<_0x193071['length'];){const _0x13729d=_0x193071[_0x14b181],_0x4d2a46=_0x193071[_0x14b181+0x1];_0x568562||(_0x568562=_0x599c80['createPositionBefore'](_0x13729d)),kt(_0x599c80,_0x13729d,_0x4d2a46)||(_0x1eb8a7['push'](_0x599c80['createRange'](_0x568562,_0x38989c['isObject'](_0x13729d)?_0x599c80['createPositionAfter'](_0x13729d):_0x599c80['createPositionAt'](_0x13729d,'end'))),_0x568562=null),_0x14b181++;}return _0x1eb8a7;}function kt(_0x3f6fb4,_0x3a69cc,_0x246f64){if(!_0x246f64)return!0x1;const _0x23cee5=_0x3f6fb4['createPositionAfter'](_0x3a69cc),_0x20c8a4=_0x3f6fb4['createPositionBefore'](_0x246f64);return _0x23cee5['isTouching'](_0x20c8a4);}function Rt(_0x139892,_0x605658,_0x502e2d){for(;_0x502e2d['length'];){const _0x594860=_0x502e2d['splice'](0x0,0x64);_0x139892['change'](()=>{for(const _0x3861e9 of _0x594860)_0x3861e9['isInContent']&&_0x605658['execute'](_0x3861e9['id']);});}}var yt=class extends _0x2d4b1a{['_command'];_suggestions;constructor(_0x4c6681,_0x33b2b5,_0x124351){super(_0x4c6681),this['_command']=_0x33b2b5,this['_suggestions']=_0x124351,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x171ca0=Array['from'](this['_suggestions']['values']())['some'](_0x299835=>_0x299835['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x171ca0;}execute(){const _0x5a5cce=bt(Array['from'](this['_suggestions']['values']()));for(const _0x265127 of _0x5a5cce){const _0x54aa5a=_0x265127['getRanges']();if(!this['editor']['model']['canEditAt'](_0x54aa5a))return;}Rt(this['editor']['model'],this['_command'],_0x5a5cce);}},Nt=class extends _0x2d4b1a{['_command'];_suggestions;_selectedSuggestions;constructor(_0x456cf5,_0x2934fe,_0x524816){super(_0x456cf5),this['_command']=_0x2934fe,this['_suggestions']=_0x524816,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14be2e=this['editor']['model']['document']['selection'],_0x3f3726=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2abb17,_0x529b5f){const _0x367644=Array['from'](_0x2abb17['getRanges']()),_0x31f826=new Set();for(const _0x5291b4 of _0x529b5f)if(_0x5291b4['isInContent']){for(const _0x1b062f of _0x367644)for(const _0x1f1278 of _0x5291b4['getRanges']())(_0x1b062f['isIntersecting'](_0x1f1278)||_0x2abb17['isCollapsed']&&!_0x5291b4['isMultiRange']&&_0x5291b4['next']&&_0x1f1278['end']['isTouching'](_0x1b062f['start']))&&_0x31f826['add'](_0x5291b4);}return _0x31f826;}(_0x14be2e,_0x3f3726),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x24fd54=bt(Array['from'](this['_selectedSuggestions']));for(const _0x5f5cfc of _0x24fd54){const _0x1076f9=_0x5f5cfc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1076f9))return;}Rt(this['editor']['model'],this['_command'],_0x24fd54);}};const St=/* #__PURE__ -- @preserve */
24
- _0x57a455();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x24338b,_0x5deb5c){super(),this['id']=_0x5deb5c['id'],this['type']=_0x5deb5c['type'],this['subType']=_0x5deb5c['subType']||null,this['author']=_0x5deb5c['author'],this['creator']=_0x5deb5c['creator']||_0x5deb5c['author'],this['data']=null,this['_originalSuggestionId']=_0x5deb5c['originalSuggestionId']||null,this['_model']=_0x24338b,this['_onAccept']=_0x5deb5c['onAccept'],this['_onDiscard']=_0x5deb5c['onDiscard'],this['_onAttributesChange']=_0x5deb5c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5deb5c['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x10a683=this;for(;_0x10a683['previous'];)_0x10a683=_0x10a683['previous'];return _0x10a683;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x53eac9){this['_markerNames']['add'](_0x53eac9);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x4fb7a3=>this['_model']['markers']['get'](_0x4fb7a3))['filter'](_0x1d9b2a=>_0x1d9b2a);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x33ee8e=>{for(const _0x5b143a of this['getMarkers']())_0x33ee8e['removeMarker'](_0x5b143a);}),this['_markerNames']['clear']();}['removeMarker'](_0x2b3064){this['_model']['change'](_0x551c08=>{_0x551c08['removeMarker'](_0x2b3064);}),this['_markerNames']['delete'](_0x2b3064);}['addRange'](_0x510990){const _0x2ec0ea='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x2ec0ea),this['_model']['change'](_0x16f7fa=>{_0x16f7fa['addMarker'](_0x2ec0ea,{'range':_0x510990,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x434247){for(const _0x2115b8 of this['getRanges']())if(_0x2115b8['isIntersecting'](_0x434247))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x4ee48f=>_0x4ee48f['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x9bfea3,_0x4b8000)=>[..._0x9bfea3,..._0x4b8000['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x17e349=this['getRanges']();if(0x1!=_0x17e349['length'])return null;const _0x15df97=_0x17e349[0x0],_0x49f733=_0x15df97['start']['nodeAfter'],_0x370de8=_0x15df97['end']['nodeBefore'];return _0x49f733 instanceof st?_0x49f733!=_0x370de8?null:_0x49f733: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 _0x4d4139=[];let _0x521c9f=this['head'];for(;_0x521c9f;)_0x4d4139['push'](_0x521c9f),_0x521c9f=_0x521c9f['next'];return _0x4d4139;}setAttribute(_0x1a9dd5,_0x43ea19){const _0x361e04=ct(this['attributes']);dt(_0x361e04,_0x1a9dd5,_0x43ea19),lt(_0x361e04,this['attributes'])||(this['attributes']=_0x361e04,this['_onAttributesChange'](_0x361e04));}removeAttribute(_0x316f6a){const _0x3f9e80=ct(this['attributes']);ht(_0x3f9e80,_0x316f6a),lt(_0x3f9e80,this['attributes'])||(this['attributes']=_0x3f9e80,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 _0xb256dd()['substr'](0x1,0x5);}};function Ot(_0x31e70e,_0x65880b,_0x26d9c6){const _0x1de4f2=_0x31e70e['t'],t=_0x31e70e['t'];switch(_0x65880b){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x26d9c6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x26d9c6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x26d9c6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x26d9c6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x26d9c6);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',_0x26d9c6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x26d9c6);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x26d9c6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x26d9c6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x26d9c6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x26d9c6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x26d9c6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x26d9c6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x26d9c6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x26d9c6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x26d9c6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x26d9c6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x26d9c6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x26d9c6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x26d9c6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x26d9c6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x26d9c6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x26d9c6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x26d9c6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x26d9c6);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'},_0x26d9c6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x26d9c6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x26d9c6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x26d9c6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x26d9c6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x26d9c6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x26d9c6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x26d9c6);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x26d9c6);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x26d9c6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x26d9c6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x26d9c6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x26d9c6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x26d9c6);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x26d9c6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x26d9c6);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'},_0x26d9c6);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x26d9c6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x26d9c6);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'},_0x26d9c6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x26d9c6);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'},_0x26d9c6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x26d9c6);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x26d9c6);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x26d9c6);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x26d9c6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x26d9c6);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x26d9c6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x26d9c6);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x1de4f2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x26d9c6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1de4f2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x26d9c6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x26d9c6);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x26d9c6);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x26d9c6);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x26d9c6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x65880b;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0xb4c955,_0x4c8044){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xb4c955,this['_locale']=_0x4c8044;}getDescriptions(_0x4b3319){const _0x192f12=[],_0x714dba=new Set(),_0x3bb94b=new Set();for(let _0xabe218=0x0;_0xabe218<_0x4b3319['length'];_0xabe218++){const _0x429713=_0x4b3319[_0xabe218];if(!_0x429713['isInContent'])continue;const _0x2c7c47=this['_handleCustomCallbackDescription'](_0x429713);if(_0x2c7c47){if(null!=_0x429713['subType']){if(_0x714dba['has'](_0x429713['subType']))continue;_0x714dba['add'](_0x429713['subType']);}_0x192f12['push'](_0x2c7c47);}else{if('attribute'==_0x429713['type']){const _0x178b29=_0x429713['data']['key'];if(_0x3bb94b['has'](_0x178b29))continue;_0x3bb94b['add'](_0x429713['data']['key']),'$elementName'==_0x178b29?this['_handleRenameSuggestionDescription'](_0x192f12,_0x429713):this['_handleAttributeSuggestionDescription'](_0x192f12,_0x429713);continue;}'insertion'!=_0x429713['type']&&'deletion'!=_0x429713['type']||this['_handleInsertRemoveSuggestionDescription'](_0x192f12,_0x429713,_0x4b3319[_0xabe218+0x1]);}}return this['_resolveDescriptionItems'](_0x192f12);}registerDescriptionCallback(_0x12961c){this['_customCallbacks']['push'](_0x12961c);}registerElementLabel(_0x3faa46,_0x10b641,_0x7f8273=_0x2abd23['normal']){'function'==typeof _0x3faa46?_0x600d33(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3faa46,'label':_0x10b641,'priority':_0x7f8273}):this['_itemLabels']['set'](_0x3faa46,_0x10b641);}registerAttributeLabel(_0x531fff,_0x4f9c36){this['_attributeLabels']['set'](_0x531fff,_0x4f9c36);}getItemLabel(_0x462192,_0x30452b=0x1){let _0x2f6082;for(const _0x4ae3f4 of this['_itemLabelsCallbacks'])if(_0x4ae3f4['matchingCallback'](_0x462192)){_0x2f6082=_0x4ae3f4['label'];break;}return _0x2f6082||(_0x2f6082=this['_itemLabels']['get'](_0x462192['name'])),_0x2f6082?_0x2f6082(_0x30452b):0x1!==_0x30452b?_0x30452b+'\x20'+_0x462192['name']+'s':''+_0x462192['name'];}_addDescriptionItems(_0x49458c,_0x22d47d){const _0x566270=_0x22d47d['getFirstRange']()['getWalker'](),_0x2bc041='insertion'==_0x22d47d['type']?'add':'remove';for(const _0x378135 of _0x566270){const _0x25a92d=_0x378135['item'],_0x42f590=_0x49458c[_0x49458c['length']-0x1];if(_0x25a92d['is']('$textProxy'))_0x42f590&&_0x42f590['type']['indexOf']('Container')>-0x1&&_0x49458c['pop'](),_0x42f590&&'text'==_0x42f590['type']?_0x42f590[_0x2bc041]+=_0x25a92d['data']:_0x49458c['push']({'type':'text','add':'add'==_0x2bc041?_0x25a92d['data']:'','remove':'remove'==_0x2bc041?_0x25a92d['data']:''});else{if(this['_schema']['isObject'](_0x25a92d)){const _0x44fcd7=_0x25a92d;if(_0x42f590&&_0x42f590['type']['indexOf']('Container')>-0x1&&_0x49458c['pop'](),'elementEnd'==_0x378135['type'])continue;_0x42f590&&_0x42f590['type']==_0x2bc041+'Object'&&_0x42f590['element']['name']==_0x44fcd7['name']?_0x42f590['quantity']++:_0x49458c['push']({'type':_0x2bc041+'Object','element':_0x44fcd7,'quantity':0x1}),_0x566270['skip'](_0x4db20e=>!('elementEnd'==_0x4db20e['type']&&_0x4db20e['item']==_0x25a92d));}else{if(this['_schema']['checkChild'](_0x25a92d,'$text')||_0x25a92d['is']('element','softBreak')){const _0x253469=_0x25a92d;if('add'==_0x2bc041&&'elementStart'==_0x378135['type']||'remove'==_0x2bc041&&'elementEnd'==_0x378135['type'])continue;if(_0x42f590&&-0x1==_0x42f590['type']['indexOf']('Container')){'text'==_0x42f590['type']&&(_0x42f590[_0x2bc041]+='\x0a');continue;}let _0x9f0804;if(_0x9f0804='add'==_0x2bc041?_0x253469['nextSibling']&&!this['_schema']['isObject'](_0x253469['nextSibling'])?_0x253469['nextSibling']:null:_0x253469['previousSibling']&&!this['_schema']['isObject'](_0x253469['previousSibling'])?_0x253469['previousSibling']:null,_0x253469['isEmpty']||_0x9f0804&&_0x9f0804['isEmpty']){const _0x359e84=_0x9f0804&&_0x9f0804['isEmpty']?_0x9f0804:_0x253469;_0x42f590&&_0x42f590['type']==_0x2bc041+'EmptyContainer'&&_0x42f590['element']['name']==_0x359e84['name']?_0x42f590['quantity']++:_0x49458c['push']({'type':_0x2bc041+'EmptyContainer','element':_0x359e84,'quantity':0x1});}else _0x49458c['push']({'type':_0x2bc041+'Container','element':_0x253469});}}}}}_resolveDescriptionItems(_0x4577be){const _0x3df88e=this['_locale'],_0xcd6193=[],_0x11c1ba=[],_0x15ffb0=[];for(const _0x4c0dfd of _0x4577be)switch(_0x4c0dfd['type']){case'text':if(_0x4c0dfd['add']=_0x4c0dfd['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c0dfd['remove']=_0x4c0dfd['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c0dfd['add']&&''!=_0x4c0dfd['remove']){_0xcd6193['push']({'type':'replace','content':Ot(_0x3df88e,'REPLACE_TEXT',['\x22'+_0x4c0dfd['remove']+'\x22','\x22'+_0x4c0dfd['add']+'\x22'])});continue;}if(null!=_0x4c0dfd['add']['match'](/^ +$/)){_0xcd6193['push']({'type':'insertion','content':Ot(_0x3df88e,'*Insert:*\x20%0',Ot(_0x3df88e,'ELEMENT_SPACE',_0x4c0dfd['add']['length']))});continue;}if(null!=_0x4c0dfd['remove']['match'](/^ +$/)){_0xcd6193['push']({'type':'deletion','content':Ot(_0x3df88e,'*Remove:*\x20%0',Ot(_0x3df88e,'ELEMENT_SPACE',_0x4c0dfd['remove']['length']))});continue;}if(''!=_0x4c0dfd['add']){_0xcd6193['push']({'type':'insertion','content':Ot(_0x3df88e,'*Insert:*\x20%0','\x22'+_0x4c0dfd['add']+'\x22')});continue;}_0xcd6193['push']({'type':'deletion','content':Ot(_0x3df88e,'*Remove:*\x20%0','\x22'+_0x4c0dfd['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xcd6193['push']({'type':'insertion','content':Ot(_0x3df88e,'*Insert:*\x20%0',this['getItemLabel'](_0x4c0dfd['element'],_0x4c0dfd['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xcd6193['push']({'type':'deletion','content':Ot(_0x3df88e,'*Remove:*\x20%0',this['getItemLabel'](_0x4c0dfd['element'],_0x4c0dfd['quantity']))});continue;case'addContainer':_0xcd6193['push']({'type':'insertion','content':Ot(_0x3df88e,'*Split:*\x20%0',this['getItemLabel'](_0x4c0dfd['element'],_0x4c0dfd['quantity']))});continue;case'removeContainer':_0xcd6193['push']({'type':'deletion','content':Ot(_0x3df88e,'*Merge:*\x20%0',this['getItemLabel'](_0x4c0dfd['element'],_0x4c0dfd['quantity']))});continue;case'addFormat':_0x11c1ba['push'](_0x4c0dfd['key']);continue;case'removeFormat':_0x15ffb0['push'](_0x4c0dfd['key']);continue;default:_0xcd6193['push'](_0x4c0dfd);}if(_0x11c1ba['length']){const _0x3fd8f3=_0x11c1ba['map'](_0x13a6af=>this['_attributeLabels']['has'](_0x13a6af)?this['_attributeLabels']['get'](_0x13a6af):_0x13a6af)['join'](',\x20');_0xcd6193['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x3fd8f3)});}if(_0x15ffb0['length']){const _0x2c1926=_0x15ffb0['map'](_0x373909=>this['_attributeLabels']['has'](_0x373909)?this['_attributeLabels']['get'](_0x373909):_0x373909)['join'](',\x20');_0xcd6193['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x2c1926)});}return _0xcd6193;}_handleCustomCallbackDescription(_0x531244){for(const _0x5bfd0b of this['_customCallbacks']){const _0x571cb6=_0x5bfd0b(_0x531244);if(_0x571cb6&&'type'in _0x571cb6)return _0x571cb6;}}_handleAttributeSuggestionDescription(_0x1b92d0,_0x421365){const _0x554a3d=_0x421365['data'],_0x3303fe=void 0x0===_0x554a3d['newValue']?'removeFormat':'addFormat';_0x1b92d0['push']({'type':_0x3303fe,'key':_0x554a3d['key']});}_handleRenameSuggestionDescription(_0x1401f0,_0x2e86b5){_0x1401f0['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2e86b5['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x5abc9c,_0x45d4f9,_0x38f811){if(this['_addDescriptionItems'](_0x5abc9c,_0x45d4f9),_0x38f811&&_0x38f811['getFirstRange']()&&!_0x45d4f9['getFirstRange']()['end']['isEqual'](_0x38f811['getFirstRange']()['start'])){const _0x2a59eb=_0x5abc9c[_0x5abc9c['length']-0x1],_0x2234f0='insertion'==_0x45d4f9['type']?'add':'remove';_0x2a59eb&&'text'==_0x2a59eb['type']&&(_0x2a59eb[_0x2234f0]+='\x0a');}}},Ft=class extends _0x46623c{afterInit(){const _0x3c3338=this['editor'],_0x310ed6=_0x3c3338['plugins']['get']('TrackChangesEditing');_0x3c3338['commands']['get']('showAIAssistant')&&_0x310ed6['enableCommand']('showAIAssistant');}},Bt=class extends _0x46623c{afterInit(){const _0x219f0e=this['editor'],_0x264b61=_0x219f0e['plugins']['get']('TrackChangesEditing');_0x219f0e['commands']['get']('toggleAi')&&_0x264b61['enableCommand']('toggleAi');}},vt=class extends _0x46623c{afterInit(){const _0x3c89c4=this['editor'],_0x3da05f=_0x3c89c4['plugins']['get']('TrackChangesEditing');_0x3c89c4['commands']['get']('aiQuickAction')&&_0x3da05f['enableCommand']('aiQuickAction');}},Dt=class extends _0x46623c{afterInit(){const _0x33ce98=this['editor'],_0x5377a0=_0x33ce98['locale'];if(!_0x33ce98['plugins']['has']('AlignmentEditing'))return;const _0x312889=_0x33ce98['plugins']['get']('TrackChangesEditing');_0x312889['enableDefaultAttributesIntegration']('alignment'),_0x312889['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x5377a0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d45e9=this['editor'],_0xbc2309=_0x5d45e9['locale'];_0x5d45e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x509b4a=>{if('formatBlock'!=_0x509b4a['type'])return;const {data:_0x393893}=_0x509b4a;if(_0x393893&&'alignment'==_0x393893['commandName']){const _0x4e767a=_0x393893['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0xbc2309,'*Format:*\x20%0',function(_0x832b91){switch(_0x832b91){case'left':return Ot(_0xbc2309,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0xbc2309,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0xbc2309,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0xbc2309,'FORMAT_JUSTIFY_TEXT');}}(_0x4e767a))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x46623c{afterInit(){const _0xe557ac=this['editor'],_0x1b5b13=_0xe557ac['plugins']['get']('TrackChangesEditing'),_0x378e70=_0xe557ac['locale'];for(const _0x5b38b2 of Ut){if(!_0xe557ac['plugins']['has'](_0x5b38b2))continue;const _0x1c8141=_0x5b38b2['slice'](0x0,-0x7)['toLowerCase'](),_0x129001='FORMAT_'+_0x1c8141['toUpperCase']();_0x1b5b13['enableDefaultAttributesIntegration'](_0x1c8141),_0x1b5b13['descriptionFactory']['registerAttributeLabel'](_0x1c8141,Ot(_0x378e70,_0x129001));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x44eb44=this['editor'],_0x3463f9=_0x44eb44['locale'],_0x5dfebc=_0x44eb44['plugins']['get']('TrackChangesEditing');function _0x4f04a0(_0x1f8ca6,_0x233f48){_0x5dfebc['descriptionFactory']['registerDescriptionCallback'](_0x4d73db=>{if('formatInline'!=_0x4d73db['type'])return;const {data:_0x13f977}=_0x4d73db;return _0x13f977&&_0x13f977['commandName']===_0x1f8ca6?_0x13f977['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x3463f9,'*Format:*\x20%0',_0x233f48)}:{'type':'format','content':Ot(_0x3463f9,'*Remove\x20format:*\x20%0',_0x233f48)}:void 0x0;});}_0x4f04a0('bold',Ot(_0x3463f9,'FORMAT_BOLD')),_0x4f04a0('italic',Ot(_0x3463f9,'FORMAT_ITALIC')),_0x4f04a0('underline',Ot(_0x3463f9,'FORMAT_UNDERLINE')),_0x4f04a0('code',Ot(_0x3463f9,'FORMAT_CODE')),_0x4f04a0('strikethrough',Ot(_0x3463f9,'FORMAT_STRIKETHROUGH')),_0x4f04a0('subscript',Ot(_0x3463f9,'FORMAT_SUBSCRIPT')),_0x4f04a0('superscript',Ot(_0x3463f9,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x46623c{afterInit(){const _0x451d72=this['editor'],_0x42063d=_0x451d72['locale'];if(!_0x451d72['plugins']['has']('BlockQuoteEditing'))return;const _0x20e681=_0x451d72['plugins']['get']('TrackChangesEditing'),_0x43be1d=this['editor']['commands']['get']('blockQuote');_0x20e681['enableCommand']('blockQuote',(_0x29607d,_0x56aaa5={})=>{const _0xe22e82=this['editor']['model']['document']['selection'],_0x3f3388=_0x56aaa5&&void 0x0!==_0x56aaa5['forceValue']?_0x56aaa5['forceValue']:!_0x43be1d['value'];let _0x54fcb6=[];_0x54fcb6=Ct(_0x3f3388?Array['from'](_0xe22e82['getSelectedBlocks']())['filter'](_0x26f6fc=>Gt(_0x26f6fc)||function(_0x267c37,_0x4e3fcb){const _0x231df2=_0x4e3fcb['createContext'](_0x267c37['parent']);return!!_0x4e3fcb['checkChild'](_0x231df2,'blockQuote')&&!!_0x4e3fcb['checkChild'](_0x231df2['push']('blockQuote'),_0x267c37);}(_0x26f6fc,this['editor']['model']['schema'])):Array['from'](_0xe22e82['getSelectedBlocks']())['filter'](_0x2f51ee=>Gt(_0x2f51ee)),_0x451d72['model']),_0x451d72['model']['change'](()=>{for(const _0x31f795 of _0x54fcb6)_0x20e681['markBlockFormat'](_0x31f795,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f3388}]});});}),_0x20e681['descriptionFactory']['registerDescriptionCallback'](_0x528082=>{const {data:_0x5f5534}=_0x528082;if(_0x5f5534&&'blockQuote'==_0x5f5534['commandName']){const _0x2640c0=Ot(_0x42063d,'ELEMENT_BLOCK_QUOTE');return _0x5f5534['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x42063d,'*Set\x20format:*\x20%0',_0x2640c0)}:{'type':'format','content':Ot(_0x42063d,'*Remove\x20format:*\x20%0',_0x2640c0)};}});}};function Gt(_0x5d02dc){return'blockQuote'==_0x5d02dc['parent']['name'];}var Ht=class extends _0x46623c{afterInit(){const _0x1d0fe1=this['editor'],_0x293a8b=_0x1d0fe1['locale'],_0x601c5=_0x1d0fe1['plugins']['get']('TrackChangesEditing');_0x1d0fe1['plugins']['has']('BookmarkEditing')&&(_0x601c5['enableCommand']('insertBookmark'),_0x601c5['enableDefaultAttributesIntegration']('updateBookmark'),_0x601c5['descriptionFactory']['registerDescriptionCallback'](_0x2447e0=>{if('insertion'!=_0x2447e0['type']&&'deletion'!=_0x2447e0['type']&&'attribute'!=_0x2447e0['type'])return;const _0x25218c=_0x2447e0['getContainedElement']();if(null==_0x25218c)return;if(!_0x25218c['is']('element','bookmark'))return;const _0x11a855=_0x25218c['getAttribute']('bookmarkId');if('insertion'==_0x2447e0['type'])return{'type':'insertion','content':Ot(_0x293a8b,'*Insert:*\x20%0','\x22'+_0x11a855+'\x22\x20'+Ot(_0x293a8b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2447e0['type'])return{'type':'deletion','content':Ot(_0x293a8b,'*Remove:*\x20%0','\x22'+_0x11a855+'\x22\x20'+Ot(_0x293a8b,'ELEMENT_BOOKMARK'))};const {data:_0x594da3}=_0x2447e0;return _0x594da3&&'bookmarkId'==_0x594da3['key']?{'type':'format','content':Ot(_0x293a8b,'*Set\x20bookmark:*\x20%0','\x22'+_0x594da3['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x46623c{afterInit(){const _0x3fde83=this['editor'];_0x3fde83['plugins']['has']('CaseChange')&&(_0x3fde83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3fde83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3fde83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x46623c{afterInit(){const _0x57de13=this['editor'];_0x57de13['commands']['get']('ckbox')&&_0x57de13['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x46623c{static get requires(){return[gt,ft];}constructor(_0x3deef4){super(_0x3deef4),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x185981=this['editor'],_0x41d7e0=_0x185981['plugins']['get']('ClipboardMarkersUtils'),_0x519abc=_0x185981['plugins']['get'](ft);_0x41d7e0['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x519abc['on']('outputTransformation',(_0x216f49,_0x109294)=>{const _0xd6d346=this['_getSuggestionEntries'](_0x109294);for(const [_0x2cc0b7,_0x13d14e]of _0x109294['content']['markers']){const _0x10fe79=ot['_fromRangeInDocumentFragment'](_0x13d14e,_0x185981['model']);function _0x2f0345(){_0x10fe79['detach'](),_0x109294['content']['markers']['delete'](_0x2cc0b7);}_0x10fe79['on']('change:drop',_0x2f0345),(_0x2cc0b7['startsWith']('suggestion:')||_0x2cc0b7['startsWith']('comment:'))&&_0x10fe79['on']('change:range',()=>{_0x10fe79['isCollapsed']&&_0x2f0345();}),_0x109294['content']['markers']['set'](_0x2cc0b7,_0x10fe79);}const _0x540e40=_0xd6d346['filter'](_0x26f505=>'deletion'===_0x26f505['meta']['type'])['map'](_0x4f0382=>_0x4f0382['modelRange']);if(this['_shouldSkipDeletions'](_0x540e40,_0x109294['content']))return[..._0xd6d346]['forEach'](_0x504f29=>{_0x109294['content']['markers']['get'](_0x504f29['markerName'])['detach'](),_0x109294['content']['markers']['delete'](_0x504f29['markerName']);}),void this['_restoreRegularRanges'](_0x109294['content']['markers']);[..._0xd6d346]['forEach'](_0x4b0283=>{const _0x332f2d=_0x185981['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x4b0283['meta']['type'],_0x4b0283['meta']['subType'],'accept'),{markerName:_0x1a22b7,meta:_0x1c164b}=_0x4b0283;if(_0x109294['content']['markers']['has'](_0x1a22b7)){switch(_0x1c164b['type']){case'deletion':if('tableRow'===_0x1c164b['subType']||'tableColumn'===_0x1c164b['subType']){if(!_0x185981['plugins']['has']('TableUtils'))break;const _0x46911a=_0x185981['plugins']['get']('TableUtils'),_0x1e9b64=_0x46911a['getSelectionAffectedTableCells'](_0x185981['model']['createSelection'](_0x109294['content']['markers']['get'](_0x1a22b7))),_0x1f758d=_0x1e9b64[0x0]['findAncestor']('table');if('tableRow'===_0x1c164b['subType']){const {first:_0x3ce56a,last:_0xe3c6a4}=_0x46911a['getRowIndexes'](_0x1e9b64);_0x46911a['removeRows'](_0x1f758d,{'at':_0x3ce56a,'rows':_0xe3c6a4-_0x3ce56a+0x1});}else{const {first:_0x3284a0,last:_0x459fa6}=_0x46911a['getColumnIndexes'](_0x1e9b64);_0x46911a['removeColumns'](_0x1f758d,{'at':_0x3284a0,'columns':_0x459fa6-_0x3284a0+0x1});}break;}_0x332f2d([_0x109294['content']['markers']['get'](_0x1a22b7)]);}_0x109294['content']['markers']['has'](_0x1a22b7)&&(_0x109294['content']['markers']['get'](_0x1a22b7)['detach'](),_0x109294['content']['markers']['delete'](_0x1a22b7));}}),this['_restoreRegularRanges'](_0x109294['content']['markers']);});}_getSuggestionEntries(_0x374ef1){const _0x31a0b0=_0x249215=>'dragstart'===_0x374ef1['method']?_0x249215['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x249215;return Array['from'](_0x374ef1['content']['markers'])['map'](([_0x1dd0a2,_0xf03324])=>({'markerName':_0x1dd0a2,'modelRange':_0xf03324,'meta':et(_0x31a0b0(_0x1dd0a2))}))['filter'](({meta:_0x5cf634})=>'suggestion'===_0x5cf634['group']);}_shouldSkipDeletions(_0x2cec20,_0x17db80){if(!_0x2cec20['length'])return!0x1;let _0x5c4d85=[this['editor']['model']['createRangeIn'](_0x17db80)];for(const _0x530822 of _0x2cec20)_0x5c4d85=_0x5c4d85['flatMap'](_0x5666eb=>_0x5666eb['getDifference'](_0x530822));return!_0x5c4d85['some'](_0x29ed93=>this['editor']['model']['hasContent'](_0x29ed93,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x2eb176){[..._0x2eb176['keys']()]['forEach'](_0x1c8f08=>{const _0x5dad51=_0x2eb176['get'](_0x1c8f08);_0x5dad51['detach'](),_0x2eb176['set'](_0x1c8f08,_0x5dad51['toRange']());});}},jt=class extends _0x46623c{afterInit(){const _0x83f534=this['editor'];if(!_0x83f534['plugins']['has']('CodeBlock'))return;const _0x97e3b3=_0x83f534['plugins']['get']('TrackChangesEditing'),_0x201b70=_0x83f534['locale'],_0x11f95a=_0x83f534['config']['get']('codeBlock')['languages'],_0x2dbd2a=_0x83f534['commands']['get']('codeBlock');_0x97e3b3['enableCommand']('indentCodeBlock'),_0x97e3b3['enableCommand']('outdentCodeBlock'),_0x97e3b3['enableCommand']('codeBlock',(_0x9d7c7e,_0x249016={})=>{const _0x30cf36=_0x83f534['model'],_0xfb1f6e=_0x83f534['model']['document']['selection'],_0x3b40a0=_0x249016&&void 0x0!==_0x249016['forceValue']?_0x249016['forceValue']:!_0x2dbd2a['value'];let _0x2b6fd0;_0x249016['language']||(_0x249016['language']=_0x11f95a[0x0]['language']),_0x2b6fd0=_0x3b40a0?Array['from'](_0xfb1f6e['getSelectedBlocks']())['filter'](_0x577373=>{return zt(_0x577373)||(_0x31f19d=_0x577373,_0x34c654=_0x30cf36['schema'],!_0x31f19d['is']('rootElement')&&!_0x34c654['isLimit'](_0x31f19d)&&_0x34c654['checkChild'](_0x31f19d['parent'],'codeBlock'));var _0x31f19d,_0x34c654;}):Array['from'](_0xfb1f6e['getSelectedBlocks']())['filter'](_0x332065=>zt(_0x332065));const _0x297dec=Ct(_0x2b6fd0,_0x30cf36);_0x30cf36['change'](()=>{for(const _0x1ea319 of _0x297dec)_0x97e3b3['markBlockFormat'](_0x1ea319,{'commandName':'codeBlock','commandParams':[{..._0x249016,'forceValue':_0x3b40a0}],'formatGroupId':'blockName'});});}),(_0x97e3b3['descriptionFactory']['registerElementLabel']('codeBlock',_0x288706=>Ot(_0x201b70,'ELEMENT_CODE_BLOCK',_0x288706)),_0x97e3b3['descriptionFactory']['registerDescriptionCallback'](_0x4e1d3c=>{if('formatBlock'!=_0x4e1d3c['type'])return;const _0x5de3bc=_0x201b70['t'],{data:_0x3d0464}=_0x4e1d3c;if(!_0x3d0464||'codeBlock'!=_0x3d0464['commandName'])return;const _0x5b9f6e=_0x3d0464['commandParams'][0x0]['language'],_0xa8005d=_0x5de3bc(_0x11f95a['find'](_0xfc2159=>_0xfc2159['language']===_0x5b9f6e)['label'])['toLowerCase']();return _0x3d0464['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x201b70,'*Set\x20format:*\x20%0',Ot(_0x201b70,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa8005d+')')}:{'type':'format','content':Ot(_0x201b70,'*Remove\x20format:*\x20%0',Ot(_0x201b70,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x111fbd){return'codeBlock'==_0x111fbd['name'];}var Kt=class extends _0x46623c{afterInit(){const _0x441e96=this['editor'];_0x441e96['plugins']['has']('CommentsEditing')&&_0x441e96['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x46623c{static get requires(){return[mt];}init(){const _0xd8da5=this['editor'],_0x1a941f=_0xd8da5['plugins']['get']('TrackChangesEditing');_0x1a941f['enableCommand']('delete');const _0xf5ae7=_0xd8da5['commands']['get']('deleteForward');_0x1a941f['enableCommand']('deleteForward',(_0x49b19e,_0x5efb1f={})=>{const _0x42d79d=_0xd8da5['model']['createSelection'](_0xd8da5['model']['document']['selection']);_0x42d79d['isCollapsed']&&_0xd8da5['model']['modifySelection'](_0x42d79d,{'direction':'forward','unit':_0x5efb1f['unit']});const _0x27be8d=_0x42d79d['getFirstRange'](),_0x24a1bb=ot['fromRange'](_0x27be8d);let _0x352f97;_0x49b19e(_0x5efb1f),_0x352f97='$graveyard'==_0x24a1bb['root']['rootName']?_0xd8da5['model']['createRange'](_0x27be8d['start']):_0xd8da5['model']['createRange'](_0x24a1bb['start'],_0x24a1bb['end']),_0x24a1bb['detach'](),_0xd8da5['model']['enqueueChange'](_0xf5ae7['buffer']['batch'],_0x519139=>{_0xf5ae7['buffer']['lock'](),_0x519139['setSelection'](_0x519139['createRange'](_0x352f97['end'])),_0xf5ae7['buffer']['unlock']();});});}},qt=class extends _0x46623c{afterInit(){const _0x5d35ac=this['editor'];if(!_0x5d35ac['plugins']['has']('ListEditing'))return;const _0x50a936=_0x5d35ac['locale'],_0x4c6017=_0x5d35ac['plugins']['get']('TrackChangesEditing'),_0x373712=_0x5d35ac['plugins']['has']('TodoListEditing'),_0x29bdee=!!_0x5d35ac['config']['get']('list.multiBlock');function _0x50bfea(_0x1ea96b){return{'type':'format','content':''+Ot(_0x50a936,'*Set\x20format:*\x20%0',_0x1ea96b)};}function _0x37fd25(_0x1c1c08){return{'type':'format','content':''+Ot(_0x50a936,'*Remove\x20format:*\x20%0',_0x1c1c08)};}_0x4c6017['enableDefaultAttributesIntegration']('numberedList'),_0x4c6017['enableDefaultAttributesIntegration']('bulletedList'),_0x4c6017['enableDefaultAttributesIntegration']('customNumberedList'),_0x4c6017['enableDefaultAttributesIntegration']('customBulletedList'),_0x4c6017['enableDefaultAttributesIntegration']('indentList'),_0x4c6017['enableDefaultAttributesIntegration']('outdentList'),_0x4c6017['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4c6017['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x29bdee&&(_0x4c6017['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4c6017['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x373712&&(_0x4c6017['enableDefaultAttributesIntegration']('todoList'),_0x4c6017['enableDefaultAttributesIntegration']('checkTodoList'),_0x4c6017['descriptionFactory']['registerDescriptionCallback'](_0x5d8591=>{const {data:_0x46ab20}=_0x5d8591;if(_0x46ab20&&'todoListChecked'==_0x46ab20['key'])return{'type':'format','content':_0x46ab20['newValue']?Ot(_0x50a936,'*Check\x20item*'):Ot(_0x50a936,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2453f5=>{if(_0x2453f5['batch']['isUndo'])return!0x1;let _0x5f6a8a=!0x1;const _0x2e5a8e=_0x4c6017['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x186e6d=>'todoListChecked'===_0x4c6017['_getAttributeKey'](_0x186e6d));for(const _0x1ffc3d of _0x2e5a8e)'todo'!=_0x1ffc3d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4c6017['_findSuggestions'](_0x1ffc3d['getFirstRange'](),'attribute')['find'](_0x26beae=>'listType'===_0x4c6017['_getAttributeKey'](_0x26beae['suggestion']))||(_0x2453f5['removeMarker'](_0x1ffc3d['getFirstMarker']()),_0x5f6a8a=!0x0));return _0x5f6a8a;})),_0x4c6017['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x50a936,'FORMAT_INDENT'));const _0x180c30={'type':'format','content':''};_0x4c6017['descriptionFactory']['registerDescriptionCallback'](_0x17bc2f=>{const {data:_0x40d24a}=_0x17bc2f;if(!_0x40d24a||'listType'!=_0x40d24a['key'])return;let _0x49c136=_0x17bc2f['head'];for(;_0x49c136;){if(_0x49c136['data']&&(('listStyle'==_0x49c136['data']['key']||'listMarkerStyle'==_0x49c136['data']['key'])&&(_0x49c136['data']['newValue']&&'default'!=_0x49c136['data']['newValue']||'default'!=_0x49c136['data']['oldValue']&&!_0x40d24a['newValue'])||!_0x29bdee&&'$elementName'==_0x49c136['data']['key']))return _0x180c30;_0x49c136=_0x49c136['next'];}if(null==_0x40d24a['newValue'])switch(_0x40d24a['oldValue']){case'bulleted':return _0x37fd25(Ot(_0x50a936,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37fd25(Ot(_0x50a936,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37fd25(Ot(_0x50a936,'ELEMENT_TODO_LIST'));}switch(_0x40d24a['newValue']){case'bulleted':return _0x50bfea(Ot(_0x50a936,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x50bfea(Ot(_0x50a936,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x50bfea(Ot(_0x50a936,'ELEMENT_TODO_LIST'));}}),_0x4c6017['descriptionFactory']['registerDescriptionCallback'](_0x3d6199=>{const {data:_0xd6705a}=_0x3d6199;if(_0xd6705a&&'listIndent'==_0xd6705a['key'])return null==_0xd6705a['newValue']||null==_0xd6705a['oldValue']&&0x0==_0xd6705a['newValue']?_0x180c30:void 0x0;}),_0x4c6017['descriptionFactory']['registerDescriptionCallback'](_0x3e2566=>{if('attribute'!=_0x3e2566['type'])return;const {data:_0x4ad6f8}=_0x3e2566;if(!_0x4ad6f8||'listItemId'!=_0x4ad6f8['key'])return;const _0x16857d=Yt(_0x3e2566);return'newValue'==_0x16857d?{'type':'format','content':Ot(_0x50a936,'*Merge:*\x20list\x20item')}:'oldValue'==_0x16857d?{'type':'format','content':Ot(_0x50a936,'*Split:*\x20list\x20item')}:_0x180c30;}),_0x5d35ac['model']['document']['registerPostFixer'](_0x3189d5=>this['listItemIdFixer'](_0x3189d5)),_0x5d35ac['model']['document']['registerPostFixer'](_0x292dd6=>this['noTrackChangesFixer'](_0x292dd6)),_0x5d35ac['model']['document']['on']('change:data',(_0x215005,_0x3e375e)=>{if(_0x3e375e['isUndo']||!_0x3e375e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x16eff1){if(_0x16eff1['batch']['isUndo']||!_0x16eff1['batch']['isLocal'])return!0x1;let _0x41f722=!0x1;const _0x341092=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc2e268=>_0xc2e268['data']&&'listItemId'==_0xc2e268['data']['key'])['filter'](_0x2c7b54=>_0x2c7b54['data']['newValue']&&_0x2c7b54['data']['oldValue']);for(const _0x2d58a4 of _0x341092)Yt(_0x2d58a4)||(_0x16eff1['removeMarker'](_0x2d58a4['getFirstMarker']()),_0x41f722=!0x0);return _0x41f722;}['noTrackChangesFixer'](_0x1b9291){if(_0x1b9291['batch']['isUndo']||!_0x1b9291['batch']['isLocal'])return!0x1;const _0x1cae04=this['editor']['model']['document']['differ'],_0x297ee9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x297ee9['trackChangesCommand']['value'])return!0x1;let _0x5e162c=!0x1;const _0x45b311=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x5bb294=_0x1cae04['getChanges']()['filter'](_0x16eeb6=>'attribute'==_0x16eeb6['type'])['filter'](_0x59642d=>_0x45b311['has'](_0x59642d['attributeKey']));if(0x0==_0x5bb294['length'])return _0x5e162c;const _0x129802=new Set(_0x1cae04['getMarkersToAdd']()['filter'](_0x146c1a=>{if(!_0x146c1a['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x244683=et(_0x146c1a['name'])['subType']['split']('|')[0x0];return _0x45b311['has'](_0x244683);})['map'](_0x38660b=>et(_0x38660b['name'])['id']));for(const _0x4bb011 of _0x5bb294){const _0x1c10c9=_0x297ee9['_findSuggestions'](_0x4bb011['range'],'attribute')['filter'](_0x3e14e4=>{if(_0x3e14e4['meta']['isNextTo'])return!0x1;if(_0x129802['has'](_0x3e14e4['suggestion']['id']))return!0x1;const _0x3cd398=_0x297ee9['_getAttributeKey'](_0x3e14e4['suggestion']);return _0x45b311['has'](_0x3cd398);})['map'](_0x46dc6a=>_0x46dc6a['suggestion']);if(_0x1c10c9['length']){for(const _0x5d323c of _0x1c10c9)_0x1b9291['removeMarker'](_0x5d323c['getFirstMarker']());_0x5e162c=!0x0;}}return _0x5e162c;}['assureChains'](){const _0x5c21a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cbb53=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x21f1b9;const _0x1a4ee9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x335a6c=>{if(_0x335a6c['data']['oldRange']||!_0x335a6c['data']['newRange'])return null;if(!_0x335a6c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x23be0e}=et(_0x335a6c['name']);if(!_0x5c21a6['hasSuggestion'](_0x23be0e))return null;const _0x3752cb=_0x5c21a6['getSuggestion'](_0x23be0e);return _0x4cbb53['includes'](_0x3752cb['data']['key']);})['map'](_0x1ae9b2=>{const {id:_0x51d3ab}=et(_0x1ae9b2['name']),_0xf9faaf=_0x5c21a6['getSuggestion'](_0x51d3ab);return _0x21f1b9=_0xf9faaf['attributes']['groupId'],_0xf9faaf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1a4ee9['size'])return;const _0x210011=_0x5c21a6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x123361=>'attribute'==_0x123361['type']&&_0x123361['data']&&_0x4cbb53['includes'](_0x123361['data']['key'])&&_0x123361['attributes']['groupId']!=_0x21f1b9)['map'](_0x1da58d=>({'listItem':_0x1da58d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1da58d['attributes']['groupId']})),_0x42f14d=new Set();for(const {groupId:_0x34960a,listItem:_0x56b4d2}of _0x210011)_0x1a4ee9['has'](_0x56b4d2)&&_0x42f14d['add'](_0x34960a);for(const _0x1ccf1b of _0x5c21a6['getSuggestions']())_0x42f14d['has'](_0x1ccf1b['attributes']['groupId'])&&_0x1ccf1b['setAttribute']('groupId',_0x21f1b9);}_supportLegacySuggestions(){const _0x555640=this['editor'],_0x99fc6d=_0x555640['locale'],_0x5f1bec=_0x555640['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5f1bec['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5b5a79,_0x2d67b7){const _0x2e22bb=[];for(let _0x280562 of _0x5b5a79)_0x280562['start']['nodeAfter']===_0x280562['end']['parent']&&(_0x280562=_0x555640['model']['createRange'](_0x555640['model']['createPositionAt'](_0x280562['start']['nodeAfter'],0x0))),_0x2e22bb['push'](_0x280562);_0x555640['model']['change'](_0x2aa7c4=>{const _0x511e49=_0x555640['model']['document']['selection'],_0x1f996e=Array['from'](_0x511e49['getRanges']())['map'](_0x4d4cbd=>ot['fromRange'](_0x4d4cbd));_0x2aa7c4['setSelection'](_0x2e22bb),_0x555640['commands']['get'](_0x2d67b7['commandName'])['refresh'](),_0x2d67b7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x555640['execute'](_0x2d67b7['commandName'],..._0x2d67b7['commandParams']),_0x2aa7c4['setSelection'](_0x1f996e);for(const _0x3ce112 of _0x1f996e)_0x3ce112['detach']();});}),_0x5f1bec['descriptionFactory']['registerElementLabel'](function(_0x4e0e93){const _0x4e770e=!_0x555640['model']['schema']['isObject'](_0x4e0e93),_0x41f4f4=_0x4e0e93['previousSibling'],_0x4465b4=_0x4e0e93['nextSibling'],_0x54f898=_0x4e0e93['getAttribute']('listItemId'),_0x3480dc=!_0x41f4f4||_0x41f4f4['getAttribute']('listItemId')!==_0x54f898,_0x204f13=!_0x4465b4||_0x4465b4['getAttribute']('listItemId')!==_0x54f898;return _0x4e770e&&Boolean(_0x54f898)&&_0x3480dc&&_0x204f13;},_0x5818a9=>Ot(_0x99fc6d,'ELEMENT_LIST_ITEM',_0x5818a9));}_registerLegacyDescription(){const _0x4f78f9=this['editor'],_0x31b935=_0x4f78f9['locale'];function _0x7bde4(_0x25b333){const _0x56579f=_0x4f78f9['commands']['get']('bulletedList')['value'],_0x254fe2=_0x4f78f9['commands']['get']('numberedList')['value'];return'numberedList'===_0x25b333?_0x56579f:_0x254fe2;}_0x4f78f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2bb422){if('formatBlock'!=_0x2bb422['type'])return;const {data:_0x4b961e}=_0x2bb422;if(!_0x4b961e)return;let _0x20b3e5,_0x5a9450,_0xbb536a,_0x5ec3ca;switch(_0x4b961e['commandName']){case'bulletedList':_0xbb536a=_0x4b961e['commandParams'][0x0]['forceValue'],_0x5ec3ca=_0x7bde4(_0x4b961e['commandName']),_0x20b3e5=_0xbb536a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5ec3ca&&_0x4f78f9['config']['get']('list.multiBlock')||(_0x20b3e5='*Change\x20to:*\x20%0'),_0x5a9450={'type':'format','content':Ot(_0x31b935,_0x20b3e5,Ot(_0x31b935,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xbb536a=_0x4b961e['commandParams'][0x0]['forceValue'],_0x5ec3ca=_0x7bde4(_0x4b961e['commandName']),_0x20b3e5=_0xbb536a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5ec3ca&&_0x4f78f9['config']['get']('list.multiBlock')||(_0x20b3e5='*Change\x20to:*\x20%0'),_0x5a9450={'type':'format','content':Ot(_0x31b935,_0x20b3e5,Ot(_0x31b935,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x20b3e5='*Indent:*\x20%0',_0x5a9450={'type':'format','content':Ot(_0x31b935,_0x20b3e5,Ot(_0x31b935,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x20b3e5=function(_0x23a3a7){const _0x35d0f3=_0x23a3a7['getFirstRange']();let _0x4fe285=_0x35d0f3['start']['nodeAfter'];for(;_0x4fe285&&_0x35d0f3['containsItem'](_0x4fe285);){if(_0x4fe285['getAttribute']('listIndent')>0x0)return!0x1;_0x4fe285=_0x4fe285['nextSibling'];}return!0x0;}(_0x2bb422)?Ot(_0x31b935,'*Format:*\x20remove\x20from\x20%0',Ot(_0x31b935,function(_0x177c1c){return'ELEMENT_'+_0x177c1c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2bb422))):Ot(_0x31b935,'*Outdent:*\x20%0',Ot(_0x31b935,'ELEMENT_LIST_ITEM')),_0x5a9450={'type':'format','content':_0x20b3e5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4b961e['multipleBlocks']&&(_0x20b3e5='*Merge:*\x20%0',_0x5a9450={'type':'deletion','content':Ot(_0x31b935,_0x20b3e5,Ot(_0x31b935,'ELEMENT_LIST_ITEM'))});}return _0x5a9450;});}};function Yt(_0x37b24e){let _0x32c915=_0x37b24e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x32c915;){const _0x587442=_0x32c915['getAttribute']('listItemId');if(!_0x587442)return!0x1;if(_0x587442==_0x37b24e['data']['newValue'])return'newValue';if(_0x587442==_0x37b24e['data']['oldValue'])return'oldValue';_0x32c915=_0x32c915['previousSibling'];}return!0x1;}var Qt=class extends _0x46623c{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4384c7=this['editor']['config']['get']('list.properties'),_0x25a94c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4384c7['styles']&&_0x25a94c['enableDefaultAttributesIntegration']('listStyle'),_0x4384c7['reversed']&&_0x25a94c['enableDefaultAttributesIntegration']('listReversed'),_0x4384c7['startIndex']&&_0x25a94c['enableDefaultAttributesIntegration']('listStart');const _0x515a13={'type':'format','content':''};_0x25a94c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29a677=this['editor']['locale'];_0x25a94c['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x29a677,'FORMAT_LIST_REVERSED')),_0x25a94c['descriptionFactory']['registerDescriptionCallback'](_0x55c0f2=>{const {data:_0x3cb2ea}=_0x55c0f2;if(_0x3cb2ea&&'listReversed'==_0x3cb2ea['key'])return null==_0x3cb2ea['newValue']||0x0==_0x3cb2ea['newValue']&&null==_0x3cb2ea['oldValue']?_0x515a13:void 0x0;}),_0x25a94c['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x29a677,'FORMAT_LIST_START')),_0x25a94c['descriptionFactory']['registerDescriptionCallback'](_0x54804c=>{const {data:_0x418a9c}=_0x54804c;if(_0x418a9c&&'listStart'==_0x418a9c['key'])return null==_0x418a9c['newValue']||0x1==_0x418a9c['newValue']&&null==_0x418a9c['oldValue']?_0x515a13:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x588b3b=>{if(_0x588b3b['batch']['isUndo'])return!0x1;let _0x1313b8=!0x1;const _0x184b36=_0x25a94c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2763a1=>{const _0x102868=_0x25a94c['_getAttributeKey'](_0x2763a1);return'listStart'==_0x102868||'listReversed'==_0x102868;});for(const _0xcfe1cf of _0x184b36){const _0x1ea7b6=_0xcfe1cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x1ea7b6&&'customNumbered'!=_0x1ea7b6&&(_0x25a94c['_findSuggestions'](_0xcfe1cf['getFirstRange'](),'attribute')['find'](_0x198f4c=>'listType'==_0x25a94c['_getAttributeKey'](_0x198f4c['suggestion']))||(_0x588b3b['removeMarker'](_0xcfe1cf['getFirstMarker']()),_0x1313b8=!0x0));}return _0x1313b8;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3341fc){const _0x312ca4=this['editor']['locale'],{data:_0x5a811f}=_0x3341fc,_0x131f75={'type':'format','content':''};if(!_0x5a811f||'listStyle'!=_0x5a811f['key'])return;if(!_0x5a811f['oldValue'])return'default'==_0x5a811f['newValue']?_0x131f75:{'type':'format','content':''+Ot(_0x312ca4,'*Set\x20format:*\x20%0',Ot(_0x312ca4,this['_getTranslationKeyForListStyle'](_0x5a811f['newValue'])))};if(!_0x5a811f['newValue']){if('default'==_0x5a811f['oldValue'])return _0x131f75;let _0x224291=_0x3341fc['head'];for(;_0x224291;){if(_0x224291['data']&&'listType'==_0x224291['data']['key']&&_0x224291['data']['newValue'])return _0x131f75;_0x224291=_0x224291['next'];}return{'type':'format','content':''+Ot(_0x312ca4,'*Remove\x20format:*\x20%0',Ot(_0x312ca4,this['_getTranslationKeyForListStyle'](_0x5a811f['oldValue'])))};}if('default'!=_0x5a811f['newValue'])return{'type':'format','content':''+Ot(_0x312ca4,'*Set\x20format:*\x20%0',Ot(_0x312ca4,this['_getTranslationKeyForListStyle'](_0x5a811f['newValue'])))};let _0x2cb0a0=_0x3341fc['head'];for(;_0x2cb0a0;){if(_0x2cb0a0['data']&&'listType'==_0x2cb0a0['data']['key']&&_0x2cb0a0['data']['newValue']&&_0x2cb0a0['data']['oldValue'])return _0x131f75;_0x2cb0a0=_0x2cb0a0['next'];}return{'type':'format','content':Ot(_0x312ca4,'*Set\x20format:*\x20%0',Ot(_0x312ca4,'ELEMENT_'+_0x3341fc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x39b4ab=this['editor'],_0x148860=_0x39b4ab['locale'];_0x39b4ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x403011=>{if('formatBlock'!=_0x403011['type'])return;const {data:_0x42191c}=_0x403011;if(!_0x42191c)return;let _0x7b5a5c,_0x36685e;switch(_0x42191c['commandName']){case'listStyle':_0x7b5a5c='*Change\x20to:*\x20%0',_0x36685e={'type':'format','content':Ot(_0x148860,_0x7b5a5c,Ot(_0x148860,this['_getTranslationKeyForListStyle'](_0x42191c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x7b5a5c=_0x42191c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x36685e={'type':'format','content':Ot(_0x148860,_0x7b5a5c)};break;case'listStart':_0x7b5a5c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x36685e={'type':'format','content':Ot(_0x148860,_0x7b5a5c,_0x42191c['commandParams'][0x0]['startIndex'])};}return _0x36685e;});}_getTranslationKeyForListStyle(_0xd4e8bb){return'ELEMENT_'+(_0x3c7a53=_0xd4e8bb,Zt['includes'](_0x3c7a53)?'bulleted':Jt['includes'](_0x3c7a53)?'numbered':null)['toUpperCase']()+'_LIST_'+_0xd4e8bb['toUpperCase']()['replace'](/-/g,'_');var _0x3c7a53;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x46623c{afterInit(){const _0x5be971=this['editor'];_0x5be971['commands']['get']('emoji')&&_0x5be971['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x46623c{static get requires(){return[Tt];}init(){const _0x53d835=this['editor'],_0x6a7e9d=_0x53d835['plugins']['get']('TrackChangesEditing'),_0x16b97a=_0x53d835['commands']['get']('enter');_0x6a7e9d['enableCommand']('enter',()=>{_0x53d835['model']['change'](_0x4963d0=>{const _0x4b31ae=_0x53d835['model']['document']['selection'],_0x27572b=_0x4b31ae['getFirstPosition'](),_0xfe0c70=ot['fromRange'](_0x4b31ae['getFirstRange']());if(_0x16b97a['enterBlock'](_0x4963d0)){const _0x6b7c1a=_0x53d835['model']['createPositionAt'](_0x27572b['parent']['nextSibling'],0x0),_0x43d04b=_0x4963d0['createRange'](_0x27572b,_0x6b7c1a);_0x6a7e9d['markInsertion'](_0x43d04b);}else _0x4963d0['setSelection'](_0x4963d0['createRange'](_0xfe0c70['end']));_0xfe0c70['detach'](),_0x16b97a['fire']('afterExecute',{'writer':_0x4963d0});});});}},ne=class extends _0x46623c{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xdd748c=this['editor']['plugins']['get']('TrackChangesEditing');_0xdd748c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xdd748c['enableCommand']('findNext'),_0xdd748c['enableCommand']('findPrevious'),_0xdd748c['enableCommand']('replace'),_0xdd748c['enableCommand']('replaceAll');}['handleFindCommand'](_0x31020c,_0x2b2fd9,_0x5bd40c={}){const _0x4efa18=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x31020c(_0x58bb6b=>{let _0x1bebe2=('string'==typeof _0x2b2fd9?_0x4efa18['findByTextCallback'](_0x2b2fd9,_0x5bd40c):_0x2b2fd9)(_0x58bb6b);Array['isArray'](_0x1bebe2)&&(_0x1bebe2={'results':_0x1bebe2,'searchText':'string'==typeof _0x2b2fd9?_0x2b2fd9:''});const _0x3494ff=_0x1bebe2['results']['filter'](_0x481793=>!0x1===this['_isInDeletionRange'](_0x481793,_0x58bb6b['item']));return{..._0x1bebe2,'results':_0x3494ff};},_0x5bd40c);}_isInDeletionRange(_0x3aabcd,_0x57942e){const _0x1cd4f3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57942e,_0x3aabcd['start']),this['editor']['model']['createPositionAt'](_0x57942e,_0x3aabcd['end']));for(const _0x53896b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1cd4f3['getIntersection'](_0x53896b['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x46623c{afterInit(){const _0x340334=this['editor']['locale'],_0x26c3ca=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x52158c,commandName:_0x5e0720}of ie)this['editor']['plugins']['has'](_0x52158c)&&_0x26c3ca['enableDefaultAttributesIntegration'](_0x5e0720);_0x26c3ca['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x340334,'FORMAT_FONT_SIZE')),_0x26c3ca['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x340334,'FORMAT_FONT_FAMILY')),_0x26c3ca['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x340334,'FORMAT_FONT_COLOR')),_0x26c3ca['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x340334,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d2199=this['editor'],_0x5937ab=_0x5d2199['locale'];_0x5d2199['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df9bd=>{const _0x3a0011=_0x5937ab['t'];if('formatInline'!=_0x5df9bd['type'])return;const {data:_0x5097d9}=_0x5df9bd;if(null!=_0x5097d9){if('fontSize'==_0x5097d9['commandName']){const _0x4a3bc4=_0x5097d9['commandParams'][0x0]['value'];if(_0x4a3bc4){const _0x309f06=_0x3a0011(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3266b3=>_0x3266b3['model']==_0x4a3bc4)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x5937ab,'*Set\x20font\x20size:*\x20%0',_0x309f06)};}return{'type':'format','content':Ot(_0x5937ab,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5097d9['commandName']){const _0x34563a=_0x5097d9['commandParams'][0x0]['value'];return _0x34563a?{'type':'format','content':Ot(_0x5937ab,'*Set\x20font\x20family:*\x20%0',_0x34563a)}:{'type':'format','content':Ot(_0x5937ab,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5097d9['commandName']){const _0x46f829=_0x5097d9['commandParams'][0x0]['value'];if(_0x46f829){const _0x881fc4=_0x1dd982(this['editor']['config']['get']('fontColor.colors'))['find'](_0x38684d=>_0x38684d['model']==_0x46f829);let _0x2520a4=_0x46f829,_0x18bc80='';return _0x881fc4&&(_0x2520a4=_0x881fc4['label'],_0x18bc80=_0x3a0011(_0x2520a4)['toLowerCase']()),{'type':'format','content':Ot(_0x5937ab,'*Set\x20font\x20color:*\x20%0',_0x18bc80)['trim'](),'color':{'value':_0x46f829,'title':_0x18bc80||_0x2520a4}};}return{'type':'format','content':Ot(_0x5937ab,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5097d9['commandName']){const _0x1e8716=_0x5097d9['commandParams'][0x0]['value'];if(_0x1e8716){const _0x17f21b=_0x1dd982(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xaaea3f=>_0xaaea3f['model']==_0x1e8716);let _0x2b257a=_0x1e8716,_0x3bbe06='';return _0x17f21b&&(_0x2b257a=_0x17f21b['label'],_0x3bbe06=_0x3a0011(_0x2b257a)['toLowerCase']()),{'type':'format','content':Ot(_0x5937ab,'*Set\x20font\x20background\x20color:*\x20%0',_0x3bbe06)['trim'](),'color':{'value':_0x1e8716,'title':_0x3bbe06||_0x2b257a}};}return{'type':'format','content':Ot(_0x5937ab,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x46623c{afterInit(){const {plugins:_0xf97406}=this['editor'];_0xf97406['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xf97406['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x345188,plugins:_0x3c46d1,commands:_0x35124a}=this['editor'],_0x37dacc=_0x3c46d1['get']('TrackChangesEditing');_0x35124a['get']('footnotesStyle')&&_0x37dacc['enableDefaultAttributesIntegration']('footnotesStyle'),_0x35124a['get']('footnotesStart')&&_0x37dacc['enableDefaultAttributesIntegration']('footnotesStart'),_0x37dacc['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x345188,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x37dacc['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x345188,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x2a4d41=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2e4c91,commands:_0x251fdb}=this['editor'];_0x251fdb['get']('insertFootnote')&&_0x2a4d41['enableCommand']('insertFootnote'),_0x2a4d41['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4e83bf=>Ot(_0x2e4c91,'ELEMENT_FOOTNOTE_REF',_0x4e83bf)),_0x2a4d41['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x2e9b46=>Ot(_0x2e4c91,'ELEMENT_FOOTNOTE_DEFINITION',_0x2e9b46)),_0x2a4d41['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x16ae87=>Ot(_0x2e4c91,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x16ae87));}},oe=class extends _0x46623c{afterInit(){const _0x194307=this['editor'],_0x217d75=_0x194307['plugins']['get']('TrackChangesEditing'),_0x485bb2=_0x194307['commands']['get']('copyFormat'),_0x28628e=_0x194307['commands']['get']('pasteFormat');_0x485bb2&&_0x28628e&&(_0x217d75['enableDefaultAttributesIntegration']('pasteFormat'),_0x217d75['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x2ac5d3=this['editor'],_0x2e9e02=_0x2ac5d3['locale'];_0x2ac5d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x395c6f=>{if('formatBlock'!=_0x395c6f['type']&&'formatInline'!=_0x395c6f['type'])return;const {data:_0x81e56a}=_0x395c6f;if(_0x81e56a&&'pasteFormat'===_0x81e56a['commandName']){const _0x409f72=[],_0x49711b=_0x81e56a['commandParams'][0x0];for(const [_0x404100,_0x230d3c]of Object['entries'](_0x49711b))_0x409f72['push'](ae(_0x2ac5d3,_0x404100,_0x230d3c));return _0x409f72['length']?{'type':'format','content':Ot(_0x2e9e02,'*Set\x20format\x20to:*\x20%0',_0x409f72['join'](',\x20'))}:{'type':'format','content':Ot(_0x2e9e02,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x36a91c,_0x4edf53,_0x4bc3c2){const _0xa4669d=_0x36a91c['locale']['t'],_0x895ed7=_0x4edf53['split'](/(?=[A-Z])/)['join']('\x20'),_0x2a137d=_0xa4669d(_0x895ed7['charAt'](0x0)['toUpperCase']()+_0x895ed7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4bc3c2)return _0x2a137d;if('fontColor'===_0x4edf53||'fontBackgroundColor'===_0x4edf53){const _0x308b4d=_0x1dd982(_0x36a91c['config']['get']('fontColor.colors'))['find'](_0x1ce7f3=>_0x1ce7f3['model']==_0x4bc3c2);return _0x2a137d+'\x20('+(_0x308b4d?_0xa4669d(_0x308b4d['label'])['toLowerCase']():_0x4bc3c2)+')';}if('fontSize'===_0x4edf53&&isNaN(parseFloat(_0x4bc3c2))){const _0x405780=_0x36a91c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36a91c['config']['get']('fontSize.options'))['find'](_0xf8f2a3=>_0xf8f2a3['model']==_0x4bc3c2);return _0x2a137d+'\x20('+(_0x405780?_0xa4669d(_0x405780['title'])['toLowerCase']():_0x4bc3c2)+')';}return _0x2a137d+'\x20('+_0x4bc3c2+')';}var ce=class extends _0x46623c{afterInit(){const _0x278794=this['editor'];if(!_0x278794['plugins']['has']('GeneralHtmlSupport')||!_0x278794['plugins']['has']('DataSchema'))return;const _0x4ff7ec=_0x278794['plugins']['get']('TrackChangesEditing'),_0x1f5c83=_0x278794['plugins']['get']('GeneralHtmlSupport'),_0x387b07=_0x278794['plugins']['get']('DataSchema'),_0x356e30=_0x278794['locale'],_0x883d6=new Set(['htmlContent']);for(const _0xe1a69 of _0x387b07['getDefinitionsForView'](/.*/,!0x1)){const _0x55d038=_0xe1a69['view'],_0x24f01d=_0x1f5c83['getGhsAttributeNameForElement'](_0x55d038);_0x883d6['add'](_0x24f01d),!_0xe1a69['isInline']||_0xe1a69['isObject']||'appliesToBlock'in _0xe1a69&&_0xe1a69['appliesToBlock']||_0x4ff7ec['descriptionFactory']['registerAttributeLabel'](_0x24f01d,_0x55d038),_0xe1a69['model']['startsWith']('html')&&_0x4ff7ec['descriptionFactory']['registerElementLabel'](_0xe1a69['model'],_0x25001a=>Ot(_0x356e30,'ELEMENT_HTML_TAG',[_0x25001a,_0x55d038]));}_0x4ff7ec['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x356e30,'FORMAT_RAW_HTML_CONTENT')),_0x4ff7ec['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x356e30,'FORMAT_HTML_LIST_ITEM')),_0x4ff7ec['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x356e30,'FORMAT_HTML_BULLETED_LIST')),_0x4ff7ec['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x356e30,'FORMAT_HTML_NUMBERED_LIST')),_0x4ff7ec['descriptionFactory']['registerDescriptionCallback'](_0x1d7a25=>{if('attribute'!==_0x1d7a25['type'])return;const _0x6f88ea=_0x1d7a25['data'];if(!_0x6f88ea||!_0x883d6['has'](_0x6f88ea['key']))return;if('htmlContent'===_0x6f88ea['key'])return{'type':'format','content':Ot(_0x356e30,'*Change\x20%0\x20content*',Ot(_0x356e30,'ELEMENT_RAW_HTML'))};const {setItems:_0x555f18,removeItems:_0x28d95d}=function(_0x213652,_0x51aa33,_0xb28bcd){const _0x29f0cd=[],_0x10d413=[],_0x19a3b0=_0x213652['styles']??{},_0x31c88c=_0x51aa33['styles']??{};for(const _0x1172a1 of new Set([...Object['keys'](_0x19a3b0),...Object['keys'](_0x31c88c)]))_0x19a3b0[_0x1172a1]!==_0x31c88c[_0x1172a1]&&(void 0x0===_0x31c88c[_0x1172a1]?_0x10d413['push'](_0x1172a1):_0x29f0cd['push'](_0x1172a1+'\x20('+_0x31c88c[_0x1172a1]+')'));const _0x56da31=Ot(_0xb28bcd,'FORMAT_HTML_CLASS'),_0x387b78=new Set(_0x213652['classes']??[]),_0x370fb4=new Set(_0x51aa33['classes']??[]),_0x140759=[..._0x370fb4]['some'](_0x29123f=>!_0x387b78['has'](_0x29123f)),_0x16288f=[..._0x387b78]['some'](_0xd4ce50=>!_0x370fb4['has'](_0xd4ce50));_0x140759&&_0x29f0cd['push'](_0x56da31),_0x16288f&&_0x10d413['push'](_0x56da31);const _0x224a54=Ot(_0xb28bcd,'FORMAT_HTML_ATTRIBUTE'),_0xc560b=_0x213652['attributes']??{},_0x17cd85=_0x51aa33['attributes']??{};let _0x2d0739=!0x1,_0x486954=!0x1;for(const _0xe3df51 of new Set([...Object['keys'](_0xc560b),...Object['keys'](_0x17cd85)]))_0xc560b[_0xe3df51]!==_0x17cd85[_0xe3df51]&&(void 0x0===_0x17cd85[_0xe3df51]?_0x486954=!0x0:_0x2d0739=!0x0);return _0x2d0739&&_0x29f0cd['push'](_0x224a54),_0x486954&&_0x10d413['push'](_0x224a54),{'setItems':_0x29f0cd,'removeItems':_0x10d413};}(_0x6f88ea['oldValue']??{},_0x6f88ea['newValue']??{},_0x356e30);if(!_0x555f18['length']&&!_0x28d95d['length'])return;const _0x1b08ca=[];return _0x555f18['length']&&_0x1b08ca['push'](Ot(_0x356e30,'*Set\x20format:*\x20%0',_0x555f18['join'](',\x20'))),_0x28d95d['length']&&_0x1b08ca['push'](Ot(_0x356e30,'*Remove\x20format:*\x20%0',_0x28d95d['join'](',\x20'))),{'type':'format','content':_0x1b08ca['join']('\x0a')};});}},le=class extends _0x46623c{_headingOptions;afterInit(){const _0x5f4d98=this['editor'];if(!_0x5f4d98['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f4d98['config']['get']('heading.options');const _0x2cd5b0=_0x5f4d98['locale'],_0x50f111=_0x5f4d98['plugins']['get']('TrackChangesEditing');_0x50f111['enableDefaultAttributesIntegration']('heading');for(const _0x117fee of this['_headingOptions'])'paragraph'!=_0x117fee['model']&&_0x50f111['descriptionFactory']['registerElementLabel'](_0x117fee['model'],_0x436167=>{const _0x115b3c=this['_getHeadingLevel'](_0x117fee['model']);return null!==_0x115b3c?_0x289550(_0x436167,_0x115b3c):_0x34889f(_0x436167,_0x117fee['title']);});function _0x289550(_0x37ce51,_0x500f81){return Ot(_0x2cd5b0,'ELEMENT_HEADING',[_0x37ce51,_0x500f81]);}function _0x34889f(_0x1a5a32,_0x1963b9){return Ot(_0x2cd5b0,'ELEMENT_HEADING_CUSTOM',[_0x1a5a32,_0x1963b9]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x29f6af=this['editor'],_0x5ca1c3=_0x29f6af['locale'];function _0x1b1e76(_0xadf960,_0x5002f7){return Ot(_0x5ca1c3,'ELEMENT_HEADING_CUSTOM',[_0xadf960,_0x5002f7]);}_0x29f6af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13448a=>{if('formatBlock'!=_0x13448a['type'])return;const {data:_0x374c9c}=_0x13448a;if(_0x374c9c&&'heading'==_0x374c9c['commandName']){const _0x16ff68=_0x374c9c['commandParams'][0x0]['value'],_0x4e20d2=this['_getHeadingLevel'](_0x16ff68);if(null!==_0x4e20d2)return{'type':'format','content':Ot(_0x5ca1c3,'*Change\x20to:*\x20%0',(_0x2ec1ad=0x1,_0x3dc057=_0x4e20d2,Ot(_0x5ca1c3,'ELEMENT_HEADING',[_0x2ec1ad,_0x3dc057])))};const _0x35bb31=this['_headingOptions']['find'](_0x4f908=>_0x4f908['model']===_0x16ff68)['title'];return{'type':'format','content':Ot(_0x5ca1c3,'*Change\x20to:*\x20%0',_0x1b1e76(0x1,_0x35bb31))};}var _0x2ec1ad,_0x3dc057;});}_getHeadingLevel(_0x5ab234){const _0x3963ee=_0x5ab234['match'](/^heading(\d+)/);if(_0x3963ee)return _0x3963ee[0x1];const _0xb61a53=this['_headingOptions']?.['find'](_0x2855d7=>_0x2855d7['model']==_0x5ab234);if(_0xb61a53&&_0xb61a53['view']){const _0x4bac43=_0xb61a53['view'],_0x3702b6=(_0x4bac43['name']??_0x4bac43)['match'](/^h(\d+)/);if(_0x3702b6)return _0x3702b6[0x1];}return null;}},ue=class extends _0x46623c{afterInit(){const _0x2e91a2=this['editor'];if(!_0x2e91a2['plugins']['has']('HighlightEditing'))return;const _0x92abe9=_0x2e91a2['plugins']['get']('TrackChangesEditing'),_0x367689=_0x2e91a2['locale'];_0x92abe9['enableDefaultAttributesIntegration']('highlight'),_0x92abe9['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x367689,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2b3fef=this['editor'],_0x2ce3da=_0x2b3fef['locale'];_0x2b3fef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c127b=>{if('formatInline'!=_0x1c127b['type'])return;const {data:_0x45076d}=_0x1c127b;if(_0x45076d&&'highlight'==_0x45076d['commandName']){const _0x1a6e46=_0x2ce3da['t'],_0x572dd4=_0x45076d['commandParams'][0x0]['value'];if(_0x572dd4){const _0x32b288=_0x2b3fef['config']['get']('highlight.options')['find'](_0x14f79e=>_0x14f79e['model']==_0x572dd4),_0x42479e=_0x1a6e46(_0x32b288['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x2ce3da,'*Set\x20highlight:*\x20%0',_0x42479e),'color':{'value':_0x32b288['color'],'title':_0x32b288['title']}};}return{'type':'format','content':Ot(_0x2ce3da,'*Remove\x20highlight*',Ot(_0x2ce3da,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x46623c{afterInit(){const _0x31fc87=this['editor'];if(!_0x31fc87['plugins']['has']('HorizontalLineEditing'))return;_0x31fc87['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4fdcf7=_0x31fc87['plugins']['get']('TrackChangesEditing'),_0x360412=_0x31fc87['locale'];_0x4fdcf7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x509fa0=>Ot(_0x360412,'ELEMENT_HORIZONTAL_LINE',_0x509fa0));}},he=class extends _0x46623c{afterInit(){const _0x4ca1ad=this['editor'];if(!_0x4ca1ad['plugins']['has']('HtmlEmbed'))return;const _0x11c735=_0x4ca1ad['plugins']['get']('TrackChangesEditing'),_0x4bd97d=_0x4ca1ad['locale'];_0x11c735['descriptionFactory']['registerElementLabel']('rawHtml',_0x141cce=>Ot(_0x4bd97d,'ELEMENT_HTML_EMBED',_0x141cce)),_0x11c735['enableDefaultAttributesIntegration']('htmlEmbed'),_0x11c735['descriptionFactory']['registerDescriptionCallback'](_0x4e5b1a=>{if('attribute'!=_0x4e5b1a['type'])return;const {data:_0xc40fc7}=_0x4e5b1a;if(_0xc40fc7&&'value'==_0xc40fc7['key']&&_0x4e5b1a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x364f25=Ot(_0x4bd97d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x4bd97d,'*Change\x20%0\x20content*',_0x364f25)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xdf81b=this['editor'],_0x11d68d=_0xdf81b['locale'];_0xdf81b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530729=>{if('formatBlock'!=_0x530729['type'])return;const {data:_0x38ca9a}=_0x530729;if(_0x38ca9a&&'htmlEmbed'==_0x38ca9a['commandName']){const _0x35e4eb=Ot(_0x11d68d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x11d68d,'*Change\x20%0\x20content*',_0x35e4eb)};}});}},ge=class extends _0x46623c{afterInit(){const _0x21c194=this['editor'];if(!_0x21c194['plugins']['has']('ImageEditing'))return;const _0x198afe=_0x21c194['plugins']['get']('TrackChangesEditing'),_0x5a1332=_0x21c194['plugins']['get']('ImageUtils'),_0x5377c0=_0x21c194['locale'];_0x198afe['enableCommand']('insertImage'),_0x198afe['descriptionFactory']['registerElementLabel']('imageBlock',_0x59832e=>Ot(_0x5377c0,'ELEMENT_IMAGE',_0x59832e)),_0x198afe['descriptionFactory']['registerElementLabel']('imageInline',_0x5e1358=>Ot(_0x5377c0,'ELEMENT_INLINE_IMAGE',_0x5e1358)),_0x198afe['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x5377c0,'ELEMENT_CAPTION')),_0x21c194['plugins']['has']('ImageUploadEditing')&&_0x198afe['enableCommand']('uploadImage'),_0x21c194['plugins']['has']('ImageBlockEditing')&&_0x21c194['plugins']['has']('ImageInlineEditing')&&(_0x198afe['enableCommand']('imageTypeInline',(_0x17ebfc,_0x442117)=>{const _0x54340f=_0x5a1332['getClosestSelectedImageElement'](_0x21c194['model']['document']['selection']);_0x21c194['model']['change'](()=>{_0x198afe['markBlockFormat'](_0x54340f,{'commandName':'imageTypeInline','commandParams':[_0x442117]},[],'convertBlockImageToInline');});}),_0x198afe['enableCommand']('imageTypeBlock',(_0xa6f9d4,_0x897a2)=>{_0x21c194['model']['change'](_0x5c33d3=>{let _0x3ed945=_0x5a1332['getClosestSelectedImageElement'](_0x21c194['model']['document']['selection']),_0x10f041=_0x5c33d3['createRangeOn'](_0x3ed945);const _0x212fe6=rt['fromPosition'](_0x10f041['start'],'toPrevious'),_0x3c4668=rt['fromPosition'](_0x10f041['end'],'toNext');_0x198afe['forceDefaultExecution'](()=>_0xa6f9d4(_0x897a2)),_0x3ed945=_0x5a1332['getClosestSelectedImageElement'](_0x21c194['model']['document']['selection']),_0x10f041=_0x5c33d3['createRangeOn'](_0x3ed945);const _0x2b976d=_0x5c33d3['createRange'](_0x212fe6,_0x3c4668);_0x212fe6['detach'](),_0x3c4668['detach'](),_0x198afe['markBlockFormat'](_0x3ed945,{'commandName':'imageTypeInline','commandParams':[_0x897a2]},[],'convertInlineImageToBlock'),_0x2b976d['start']['isBefore'](_0x10f041['start'])&&_0x198afe['markInsertion'](_0x5c33d3['createRange'](_0x2b976d['start'],_0x10f041['start']),'convertInlineImageToBlock'),_0x10f041['end']['isBefore'](_0x2b976d['end'])&&_0x198afe['markInsertion'](_0x5c33d3['createRange'](_0x10f041['end'],_0x2b976d['end']),'convertInlineImageToBlock');});}),_0x198afe['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x198afe['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x198afe['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x198afe['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x198afe['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x198afe['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x48dc1b])=>{const _0x150ef1=_0x198afe['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1cd87a=_0x48dc1b['start'],_0x8b807a=_0x48dc1b['end'];const _0xdcbb23=_0x21c194['model']['schema']['getNearestSelectionRange'](_0x1cd87a,'backward'),_0x21741f=_0x21c194['model']['schema']['getNearestSelectionRange'](_0x8b807a,'forward');_0xdcbb23['isCollapsed']&&(_0x1cd87a=_0xdcbb23['start']),_0x21741f['isCollapsed']&&(_0x8b807a=_0x21741f['end']),_0x150ef1([_0x21c194['model']['createRange'](_0x1cd87a,_0x8b807a)]);}),_0x198afe['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xdeabed),_0x198afe['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xdeabed)),_0x21c194['plugins']['has']('ImageCaptionEditing')&&(_0x198afe['enableCommand']('toggleImageCaption',(_0x1cd8c2,_0x6523e9)=>{const _0x496bc4=_0x21c194['plugins']['get']('ImageCaptionUtils');let _0x4ce979=_0x5a1332['getClosestSelectedImageElement'](_0x21c194['model']['document']['selection']),_0x382bc9=_0x496bc4['getCaptionFromImageModelElement'](_0x4ce979);_0x21c194['model']['change'](()=>{if(_0x382bc9)return void _0x198afe['markDeletion'](_0x21c194['model']['createRangeOn'](_0x382bc9));const _0x48320d=_0x5a1332['isBlockImage'](_0x4ce979);_0x1cd8c2(_0x6523e9),_0x4ce979=_0x5a1332['getClosestSelectedImageElement'](_0x21c194['model']['document']['selection']),_0x382bc9=_0x496bc4['getCaptionFromImageModelElement'](_0x4ce979),_0x198afe['markInsertion'](_0x21c194['model']['createRangeOn'](_0x382bc9),_0x48320d?null:'imageCaption');});}),_0x198afe['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xdeabed));const _0x317b81=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49b62e(_0x501eae,_0x574e38){const _0x151531=_0x317b81['findIndex'](({type:_0x57b294,subType:_0x17a5c7})=>_0x501eae['type']==_0x57b294&&_0x501eae['subType']==_0x17a5c7),_0x260433=_0x317b81['findIndex'](({type:_0x4de71f,subType:_0xf03957})=>_0x574e38['type']==_0x4de71f&&_0x574e38['subType']==_0xf03957);if(_0x151531<0x0||_0x260433<0x0)return!0x1;const _0x44d8ef=_0x501eae['getFirstRange'](),_0x25bcab=_0x574e38['getFirstRange']();if((0x0==_0x151531||0x1==_0x151531)&&0x2==_0x260433&&_0x44d8ef['isIntersecting'](_0x25bcab))return!0x0;if(0x2==_0x151531&&0x3==_0x260433){const _0x2c504e=_0x198afe['_findSuggestions'](_0x44d8ef,'insertion')['filter'](({suggestion:_0x3eebe4,meta:_0x20ea74})=>_0x20ea74['isOwn']&&'convertInlineImageToBlock'==_0x3eebe4['subType']);if(_0x2c504e['length']>0x1&&_0x25bcab['end']['isEqual'](_0x44d8ef['start']))return!0x0;if(0x1==_0x2c504e['length']&&(_0x44d8ef['start']['isEqual'](_0x25bcab['end'])||_0x44d8ef['end']['isEqual'](_0x25bcab['start'])))return!0x0;}if(0x3==_0x151531&&0x3==_0x260433&&_0x44d8ef['start']['isBefore'](_0x25bcab['start'])){const _0x1ace28=_0x44d8ef['end']['nodeAfter'],_0x4d9336=_0x25bcab['start']['nodeBefore'];return _0x5a1332['isBlockImage'](_0x1ace28)&&_0x1ace28===_0x4d9336;}return!0x1;}function _0xdeabed(_0x42f32c,_0x73f1ed){return _0x49b62e(_0x42f32c,_0x73f1ed)?[_0x42f32c,_0x73f1ed]:_0x49b62e(_0x73f1ed,_0x42f32c)?[_0x73f1ed,_0x42f32c]:null;}_0x21c194['plugins']['has']('ImageResize')&&(_0x198afe['enableDefaultAttributesIntegration']('resizeImage'),_0x198afe['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x5377c0,'FORMAT_IMAGE_SIZE'))),_0x21c194['plugins']['has']('ImageTextAlternativeEditing')&&_0x198afe['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x21c194['plugins']['has']('PictureEditing')&&_0x198afe['descriptionFactory']['registerDescriptionCallback'](_0x21710c=>{if('attribute'!=_0x21710c['type'])return;const {data:_0x26cb81}=_0x21710c;return _0x26cb81&&'sources'==_0x26cb81['key']?{'type':'format','content':''}:void 0x0;}),_0x21c194['plugins']['has']('ImageSizeAttributes')&&_0x198afe['descriptionFactory']['registerDescriptionCallback'](_0x439d94=>{if('attribute'!=_0x439d94['type'])return;const {data:_0x5734ac}=_0x439d94;return!_0x5734ac||'width'!=_0x5734ac['key']&&'height'!=_0x5734ac['key']?void 0x0:{'type':'format','content':''};}),_0x198afe['descriptionFactory']['registerDescriptionCallback'](_0x3169d=>{if(_0x317b81['find'](({type:_0x12e420,subType:_0x23dd1c})=>_0x3169d['type']==_0x12e420&&_0x3169d['subType']==_0x23dd1c))return _0x3169d['previous']?{}:void 0x0;}),_0x198afe['descriptionFactory']['registerDescriptionCallback'](_0xff8675=>{if('insertion'==_0xff8675['type']||'deletion'==_0xff8675['type']){const _0x2f22db=_0xff8675['getContainedElement']();if(_0x2f22db&&_0x2f22db['is']('element','caption'))return{'type':'insertion'==_0xff8675['type']?'addObject':'removeObject','element':_0x2f22db,'quantity':0x1};}}),_0x198afe['descriptionFactory']['registerDescriptionCallback'](_0x37f560=>'formatBlock'==_0x37f560['type']&&'convertInlineImageToBlock'==_0x37f560['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x37f560['type']&&'convertBlockImageToInline'==_0x37f560['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x198afe['descriptionFactory']['registerDescriptionCallback'](_0x37e460=>{if('attribute'!=_0x37e460['type'])return;const {data:_0x3068fc}=_0x37e460;if(!_0x3068fc||'alt'!=_0x3068fc['key'])return;const _0x168f9e=_0x3068fc['newValue'];return _0x168f9e?{'type':'format','content':Ot(_0x5377c0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x168f9e+'\x22')}:{'type':'format','content':Ot(_0x5377c0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x14d60c=this['editor'],_0x11ead4=_0x14d60c['locale'];_0x14d60c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6b18eb=>{if('formatBlock'!=_0x6b18eb['type']&&'formatInline'!=_0x6b18eb['type'])return;const {data:_0x51d917}=_0x6b18eb;if(_0x51d917){if('imageTextAlternative'==_0x51d917['commandName']){const _0x7a9b08=_0x51d917['commandParams'][0x0]['newValue'];return _0x7a9b08?{'type':'format','content':Ot(_0x11ead4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7a9b08+'\x22')}:{'type':'format','content':Ot(_0x11ead4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x51d917['commandName']){const _0x3d3a5e=_0x51d917['commandParams'][0x0]['width'];return _0x3d3a5e?{'type':'format','content':Ot(_0x11ead4,'*Set\x20image\x20width:*\x20%0',_0x3d3a5e)}:{'type':'format','content':Ot(_0x11ead4,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x46623c{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x142891=this['editor']['locale'],_0x5d66d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d66d3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5d66d3['descriptionFactory']['registerDescriptionCallback'](_0x5adcf8=>{if('attribute'!=_0x5adcf8['type'])return;const {data:_0x343780}=_0x5adcf8;return _0x343780&&'src'==_0x343780['key']?_0x343780['newValue']&&_0x343780['oldValue']?{'type':'format','content':Ot(_0x142891,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x310fda=this['editor']['plugins']['get']('TrackChangesEditing');_0x310fda['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x310fda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x310fda['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x310fda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x22b82b=this['editor'],_0x24a67d=_0x22b82b['locale'];_0x22b82b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2258c8=>{if('formatBlock'!=_0x2258c8['type']&&'formatInline'!=_0x2258c8['type'])return;const {data:_0x51aca6}=_0x2258c8;return _0x51aca6&&'replaceImageSource'==_0x51aca6['commandName']?{'type':'format','content':Ot(_0x24a67d,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x46623c{afterInit(){const _0x53aef3=this['editor'];if(!_0x53aef3['plugins']['has']('ImageStyleEditing'))return;const _0xd8959e=_0x53aef3['plugins']['get']('TrackChangesEditing'),_0x572a99=_0x53aef3['plugins']['get']('ImageUtils'),_0x5a549c={};_0xd8959e['enableCommand']('imageStyle',(_0x47db67,_0x506857)=>{const _0x511475=_0x53aef3['plugins']['get']('Users')['me'],_0x23f3ea=_0x53aef3['commands']['get']('imageStyle');let _0x1228c8=_0x572a99['getClosestSelectedImageElement'](_0x53aef3['model']['document']['selection']),_0x243bdf=_0x53aef3['model']['createRangeOn'](_0x1228c8),_0x1571b0=_0x23f3ea['value'];if(_0x1571b0==_0x506857['value'])return;if(_0x506857['value']&&_0x572a99['isInlineImage'](_0x1228c8)&&!_0x23f3ea['isStyleEnabled'](_0x506857['value']))return;const _0x1e9dba={'commandName':'imageStyle','commandParams':[_0x506857],'formatGroupId':_0xb256dd()};_0x53aef3['model']['change'](()=>{if(_0xd8959e['getSuggestions']()['filter'](_0x496962=>_0x496962['isInContent']&&_0x511475==_0x496962['author']&&('formatBlock'==_0x496962['type']||'formatInline'==_0x496962['type'])&&('imageStylePreApply'==_0x496962['subType']||'imageStylePostApply'==_0x496962['subType'])&&_0x496962['getFirstRange']()['isEqual'](_0x243bdf))['forEach'](_0x2df5c9=>_0xd8959e['discardSuggestion'](_0x2df5c9['head'])),_0x1228c8=_0x572a99['getClosestSelectedImageElement'](_0x53aef3['model']['document']['selection']),_0x243bdf=_0x53aef3['model']['createRangeOn'](_0x1228c8),_0x23f3ea['refresh'](),_0x53aef3['commands']['get']('imageTypeInline')['refresh'](),_0x53aef3['commands']['get']('imageTypeBlock')['refresh'](),_0x1571b0=_0x23f3ea['value'],_0x1571b0!=_0x506857['value'])return _0x572a99['isInlineImage'](_0x1228c8)&&_0x23f3ea['shouldConvertImageType'](_0x506857['value'],_0x1228c8)?(_0x47db67({..._0x506857,'setImageSizes':!0x1}),_0x1228c8=_0x572a99['getClosestSelectedImageElement'](_0x53aef3['model']['document']['selection']),void _0xd8959e['markBlockFormat'](_0x1228c8,{..._0x1e9dba,'commandReversedParams':[{'value':_0x1571b0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x572a99['isBlockImage'](_0x1228c8)?_0xd8959e['markBlockFormat'](_0x1228c8,_0x1e9dba,[],'imageStylePostApply'):_0xd8959e['markInlineFormat'](_0x243bdf,_0x1e9dba,'imageStylePostApply'));});});for(const _0xfe4e19 of _0x53aef3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5a549c[_0xfe4e19['name']]=_0xfe4e19['title']['toLowerCase']();_0xd8959e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xd8959e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xd8959e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xd8959e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x251d4a])=>{_0x572a99['setImageNaturalSizeAttributes'](_0x251d4a['getContainedElement']());}),_0xd8959e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x154e7e,_0x2cd096)=>{_0xd8959e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x154e7e,{'commandName':_0x2cd096['commandName'],'commandParams':_0x2cd096['commandReversedParams']});}),_0xd8959e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x55fc32,_0x2f9d4a){return _0x50c3de(_0x55fc32,_0x2f9d4a)?[_0x55fc32,_0x2f9d4a]:_0x50c3de(_0x2f9d4a,_0x55fc32)?[_0x2f9d4a,_0x55fc32]:null;});const _0x2fc984=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x50c3de(_0x52f491,_0xfd8798){const _0x8afcf=_0x2fc984['findIndex'](({type:_0x1d9c03,subType:_0x121e11})=>_0x52f491['type']==_0x1d9c03&&_0x52f491['subType']==_0x121e11),_0x4a2904=_0x2fc984['findIndex'](({type:_0x46730c,subType:_0x5e0154})=>_0xfd8798['type']==_0x46730c&&_0xfd8798['subType']==_0x5e0154);if(_0x8afcf<0x0||_0x4a2904<0x0)return!0x1;const _0x54b6f8=_0x52f491['getFirstRange'](),_0x594637=_0xfd8798['getFirstRange']();if((0x0==_0x8afcf||0x1==_0x8afcf)&&0x2==_0x4a2904&&_0x54b6f8['isIntersecting'](_0x594637))return!0x0;if(0x2==_0x8afcf&&0x3==_0x4a2904){const _0x299510=_0xd8959e['_findSuggestions'](_0x54b6f8,'insertion')['filter'](({suggestion:_0x25078e,meta:_0x3b597c})=>_0x3b597c['isOwn']&&'convertInlineImageToBlock'==_0x25078e['subType']);if(_0x299510['length']>0x1&&_0x594637['end']['isEqual'](_0x54b6f8['start']))return!0x0;if(0x1==_0x299510['length']&&(_0x54b6f8['start']['isEqual'](_0x594637['end'])||_0x54b6f8['end']['isEqual'](_0x594637['start'])))return!0x0;}if(0x3==_0x8afcf&&0x3==_0x4a2904&&_0x54b6f8['start']['isBefore'](_0x594637['start'])){const _0x5e57c7=_0x54b6f8['end']['nodeAfter'],_0x5f3936=_0x594637['start']['nodeBefore'];return _0x572a99['isBlockImage'](_0x5e57c7)&&_0x5e57c7===_0x5f3936;}return!0x1;}_0x53aef3['model']['document']['registerPostFixer'](()=>{let _0x2d4367=!0x1;const _0x4d9759=Array['from'](_0x53aef3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f3225,data:_0x1b32bd}of _0x4d9759){const {group:_0x4435ce,type:_0x40548d,subType:_0x32f12e,id:_0x1ebd11}=et(_0x3f3225);if('suggestion'==_0x4435ce&&_0xd8959e['hasSuggestion'](_0x1ebd11)){if('formatBlock'==_0x40548d&&('imageStylePreApply'==_0x32f12e||'imageStylePostApply'==_0x32f12e)){const _0xfbef8f=_0xd8959e['getSuggestion'](_0x1ebd11);if(_0x1b32bd['newRange']){const _0x9de866=_0xfbef8f['getFirstRange']()['getContainedElement']();if(_0x572a99['isBlockImage'](_0x9de866))continue;_0xd8959e['discardSuggestion'](_0xfbef8f),_0x2d4367=!0x0;}}if('insertion'==_0x40548d&&'imageCaption'==_0x32f12e&&!_0x1b32bd['newRange']){const _0xbe2c70=_0xd8959e['getSuggestion'](_0x1ebd11);_0xbe2c70['next']&&_0xbe2c70['next']['isInContent']&&(_0xd8959e['discardSuggestion'](_0xbe2c70['next']),_0x2d4367=!0x0);}}}return _0x2d4367;}),this['_registerLegacyDescription'](_0x5a549c);}_registerLegacyDescription(_0xefa65){const _0x5a3883=this['editor'],_0x2c795b=_0x5a3883['locale'];_0x5a3883['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29c1c6=>{if('formatBlock'!=_0x29c1c6['type']&&'formatInline'!=_0x29c1c6['type'])return;const {data:_0x281e83}=_0x29c1c6;if(!_0x281e83||'imageStyle'!=_0x281e83['commandName'])return;const _0x12abda=_0x281e83['commandParams'][0x0]['value'];return _0x2f80b7('side'===_0x12abda?Ot(_0x2c795b,'FORMAT_SIDE_IMAGE'):_0xefa65[_0x12abda]||_0x12abda);function _0x2f80b7(_0x54669f){return{'type':'format','content':Ot(_0x2c795b,'*Format:*\x20%0',_0x54669f)};}});}},Ee=class extends _0x46623c{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x3c9534){super(_0x3c9534),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x509be6=this['editor'],_0x4d4b42=_0x509be6['commands']['get']('importWord'),_0x11add7=_0x509be6['commands']['get']('trackChanges');_0x4d4b42&&(_0x4d4b42['on']('execute',(_0x3d2884,[,_0x12ced4])=>{this['_trackChangesValueDuringImport']=_0x11add7['value'],_0x12ced4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4d4b42,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4d4b42,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11add7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x509be6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x56cad5,_0x169434){const {suggestions:_0x3af315}=_0x169434,_0x2c1af6=this['editor']['commands']['get']('trackChanges'),_0x4ae8ad=_0x2c1af6['value'];this['_trackChangesValueDuringImport']!==_0x4ae8ad&&(_0x2c1af6['execute'](),this['_trackChangesExecuted']=!0x0),_0x3af315&&_0x3af315['forEach'](({id:_0x29d668,type:_0x35d92f,author:_0x19121a,created_at:_0x2a6082})=>{const _0x18bc73={'id':_0x29d668,'type':_0x35d92f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x19121a,'createdAt':_0x2a6082?new Date(_0x2a6082):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x18bc73);});}},Te=class extends _0x46623c{afterInit(){const _0xbfecd=this['editor'],_0x19b0f2=_0xbfecd['plugins']['get']('TrackChangesEditing');if(_0xbfecd['plugins']['has']('IndentEditing')&&(_0x19b0f2['enableCommand']('indent'),_0x19b0f2['enableCommand']('outdent')),_0xbfecd['plugins']['has']('IndentBlock')){for(const _0x2ccd8e of['indentBlock','outdentBlock'])_0x19b0f2['enableDefaultAttributesIntegration'](_0x2ccd8e);if(_0xbfecd['plugins']['has']('ListEditing')){for(const _0x2f20d9 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x19b0f2['enableDefaultAttributesIntegration'](_0x2f20d9);}}const _0x4e49df=_0xbfecd['locale'];_0x19b0f2['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x4e49df,'FORMAT_INDENT')),_0x19b0f2['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x4e49df,'FORMAT_INDENT')),_0x19b0f2['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x4e49df,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x15b5c2=this['editor'],_0x5ea3bf=_0x15b5c2['locale'],_0x4e9f63=_0x15b5c2['plugins']['get']('TrackChangesEditing');_0x4e9f63['descriptionFactory']['registerDescriptionCallback'](_0x595c94=>{if('formatBlock'!=_0x595c94['type'])return;const {data:_0x2f1832}=_0x595c94;if(!_0x2f1832)return;if('indentBlock'!=_0x2f1832['commandName']&&'outdentBlock'!=_0x2f1832['commandName'])return;const _0x551a68=_0x595c94['getItems']()[0x0],_0xa7b416=_0x4e9f63['descriptionFactory']['getItemLabel'](_0x551a68);return'indentBlock'==_0x2f1832['commandName']?{'type':'format','content':Ot(_0x5ea3bf,'*Indent:*\x20%0',_0xa7b416)}:'outdentBlock'==_0x2f1832['commandName']?{'type':'format','content':Ot(_0x5ea3bf,'*Outdent:*\x20%0',_0xa7b416)}:void 0x0;});}},_e=class extends _0x46623c{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x46623c{afterInit(){const _0x5daaac=this['editor'];if(!_0x5daaac['plugins']['has']('LinkEditing'))return;const _0x16589a=_0x5daaac['plugins']['get']('TrackChangesEditing'),_0x22d03e=_0x5daaac['commands']['get']('link');_0x16589a['enableDefaultAttributesIntegration']('link'),_0x16589a['enableDefaultAttributesIntegration']('unlink');for(const _0x59de40 of _0x22d03e['manualDecorators'])_0x16589a['descriptionFactory']['registerAttributeLabel'](_0x59de40['id'],'link\x20('+_0x59de40['label']['toLowerCase']()+')');_0x16589a['descriptionFactory']['registerDescriptionCallback'](_0x45cb80=>{if('attribute'!=_0x45cb80['type'])return;const {data:_0x430264}=_0x45cb80;if(!_0x430264||'linkHref'!=_0x430264['key'])return;const _0x5b461d=_0x430264['newValue'],_0x20ed73=_0x5daaac['locale'];return{'type':'format','content':null==_0x5b461d?Ot(_0x20ed73,'*Remove\x20link*'):Ot(_0x20ed73,'*Set\x20link:*\x20%0','\x22'+_0x5b461d+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x28fbf6=this['editor'],_0x58b051=_0x28fbf6['locale'];_0x28fbf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11d32f=>{if('formatInline'!=_0x11d32f['type'])return;const {data:_0x1bcb17}=_0x11d32f;if(_0x1bcb17){if('link'==_0x1bcb17['commandName']){const _0x175fdd=_0x1bcb17['commandParams'][0x0];return{'type':'format','content':Ot(_0x58b051,'*Set\x20link:*\x20%0','\x22'+_0x175fdd+'\x22')};}return'unlink'==_0x1bcb17['commandName']?{'type':'format','content':Ot(_0x58b051,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x46623c{afterInit(){const _0x325c40=this['editor'],_0x247e24=_0x325c40['locale'];if(!_0x325c40['plugins']['has']('LegacyListEditing'))return;const _0x501858=_0x325c40['plugins']['get']('TrackChangesEditing'),_0x4b6c9b=_0x325c40['plugins']['has']('LegacyTodoListEditing');function _0x18d969(_0x5432ae){return()=>{const _0x417142=_0x325c40['model']['document']['selection'],_0x2fdf41=_0x325c40['commands']['get'](_0x5432ae);if(_0x2fdf41['value'])return void _0x325c40['execute']('paragraph',{});const _0x36d677=_0x5432ae['slice'](0x0,-0x4),_0x5d1318=function(_0x2edd0f,_0x3ed8f6,_0x5038ef){let _0xe8c38c=Array['from'](_0x2edd0f)['filter'](_0x4e7f8e=>function(_0x5b1c4f,_0x42fec7){return _0x42fec7['checkChild'](_0x5b1c4f['parent'],'listItem')&&!_0x42fec7['isObject'](_0x5b1c4f);}(_0x4e7f8e,_0x5038ef));_0xe8c38c=_0xe8c38c['filter'](_0x43d45c=>!_0x43d45c['is']('element','listItem')||_0x43d45c['getAttribute']('listType')!=_0x3ed8f6);const _0x1e0a21=new Set();for(const _0x29cd7f of _0xe8c38c)_0x29cd7f['is']('element','listItem')?_0x1e0a21['add'](Ie(_0x29cd7f)):_0x1e0a21['add'](_0x29cd7f);return Array['from'](_0x1e0a21);}(_0x417142['getSelectedBlocks'](),_0x36d677,_0x325c40['model']['schema']);_0x325c40['model']['change'](()=>{for(const _0x51ee23 of _0x5d1318)_0x501858['markBlockFormat'](_0x51ee23,{'commandName':_0x5432ae,'commandParams':[{'forceValue':!_0x2fdf41['value']}],'formatGroupId':'blockName'},Ae(_0x51ee23));});};}function _0x498928(_0x38080e){return()=>{const _0x38bfc1=function(_0x56961b){let _0x9ff23f=Array['from'](_0x56961b);const _0x436c3e=_0x9ff23f['findIndex'](_0x3ab948=>'listItem'!=_0x3ab948['name']);return _0x436c3e>-0x1&&(_0x9ff23f=_0x9ff23f['slice'](0x0,_0x436c3e)),_0x9ff23f;}(_0x325c40['model']['document']['selection']['getSelectedBlocks']()),_0x265fbc=_0x325c40['model']['createRange'](_0x325c40['model']['createPositionAt'](_0x38bfc1[0x0],'before'),_0x325c40['model']['createPositionAt'](_0x38bfc1[_0x38bfc1['length']-0x1],'end'));_0x325c40['model']['change'](()=>{_0x501858['markBlockFormat'](_0x265fbc,{'commandName':_0x38080e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2442ed){const _0x5afedc=new Set();for(const _0x234dff of _0x2442ed){let _0x22533d=_0x234dff['nextSibling'];for(;_0x22533d&&_0x22533d['getAttribute']('listIndent')>_0x234dff['getAttribute']('listIndent');)_0x5afedc['add'](_0x22533d),_0x22533d=_0x22533d['nextSibling'];}return Array['from'](_0x5afedc);}(_0x38bfc1));});};}_0x501858['enableCommand']('numberedList',_0x18d969('numberedList')),_0x501858['enableCommand']('bulletedList',_0x18d969('bulletedList')),_0x4b6c9b&&_0x501858['enableCommand']('todoList',_0x18d969('todoList')),_0x501858['enableCommand']('indentList',_0x498928('indentList')),_0x501858['enableCommand']('outdentList',_0x498928('outdentList')),_0x4b6c9b&&_0x501858['enableCommand']('checkTodoList',()=>{const _0x47ea49=_0x325c40['commands']['get']('checkTodoList'),_0x52868a=Array['from'](_0x47ea49['_selectedElements']);_0x52868a['filter'](_0x3bfacf=>_0x3bfacf['getAttribute']('todoListChecked')!=_0x47ea49['value']),_0x325c40['model']['change'](()=>{for(const _0x2987b0 of _0x52868a)_0x501858['markBlockFormat'](_0x2987b0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47ea49['value']}]});});}),_0x501858['descriptionFactory']['registerElementLabel']('listItem',_0x558de2=>Ot(_0x247e24,'ELEMENT_LIST_ITEM',_0x558de2)),_0x501858['descriptionFactory']['registerDescriptionCallback'](_0x5f0fcb=>{if('formatBlock'!=_0x5f0fcb['type']&&'formatInline'!=_0x5f0fcb['type'])return;const {data:_0x246ef3}=_0x5f0fcb;if(_0x246ef3){if('numberedList'==_0x246ef3['commandName']||'bulletedList'==_0x246ef3['commandName']||'todoList'==_0x246ef3['commandName'])switch(_0x246ef3['commandName']['replace']('List','')){case'bulleted':return _0x1a5ccb(Ot(_0x247e24,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a5ccb(Ot(_0x247e24,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a5ccb(Ot(_0x247e24,'ELEMENT_TODO_LIST'));}if('indentList'==_0x246ef3['commandName'])return{'type':'format','content':Ot(_0x247e24,'*Indent:*\x20%0',Ot(_0x247e24,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x246ef3['commandName'])return{'type':'format','content':Ot(_0x247e24,'*Outdent:*\x20%0',Ot(_0x247e24,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x246ef3['commandName'])return _0x246ef3['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x247e24,'*Check\x20item*')}:{'type':'format','content':Ot(_0x247e24,'*Uncheck\x20item*')};}function _0x1a5ccb(_0x5b785c){return{'type':'format','content':Ot(_0x247e24,'*Change\x20to:*\x20%0',_0x5b785c)};}});}};function Ie(_0x3466a2){const _0x523d7e=_0x3466a2['getAttribute']('listIndent');if(0x0==_0x523d7e)return _0x3466a2;let _0x4c7b38=_0x3466a2;for(;_0x3466a2['previousSibling']&&_0x3466a2['previousSibling']['is']('element','listItem');){const _0x5804fb=_0x3466a2['previousSibling']['getAttribute']('listIndent');if(_0x5804fb==_0x523d7e)_0x4c7b38=_0x3466a2['previousSibling'];else{if(_0x5804fb<_0x523d7e)break;}_0x3466a2=_0x3466a2['previousSibling'];}return _0x4c7b38;}function Ae(_0x5f5509){const _0x4a4142=[];if(_0x5f5509['is']('element','listItem')&&_0x5f5509['getAttribute']('listIndent')>0x0){let _0x56fc55=_0x5f5509['nextSibling'];for(;_0x56fc55&&'listItem'==_0x56fc55['name']&&_0x56fc55['getAttribute']('listIndent')==_0x5f5509['getAttribute']('listIndent');)_0x4a4142['push'](_0x56fc55),_0x56fc55=_0x56fc55['nextSibling'];}return _0x4a4142;}var be=class extends _0x46623c{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x50c453=this['editor']['config']['get']('list.properties'),_0x3c5574=this['editor']['plugins']['get']('TrackChangesEditing');_0x50c453['styles']&&_0x3c5574['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x50c453['reversed']&&_0x3c5574['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x50c453['startIndex']&&_0x3c5574['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3c5574['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x451d83,_0x2333d5={}){const _0x96d083=this['editor']['plugins']['get']('TrackChangesEditing'),_0x283de0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x96d083['markMultiRangeBlockFormat'](_0x283de0,{'commandName':'listStyle','commandParams':[{'type':_0x2333d5['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x56fec7,_0x8edb52={}){const _0x524886=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2327b0=this['_getSuggestionBlocks'](_0x12d06e=>_0x12d06e['is']('element','listItem')&&'numbered'===_0x12d06e['getAttribute']('listType'));if(_0x2327b0['length']<0x1)return;const _0x27ae0c=_0x2327b0['map'](_0x23469e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23469e,'before'),this['editor']['model']['createPositionAt'](_0x23469e,0x0)));this['editor']['model']['change'](()=>{_0x524886['markMultiRangeBlockFormat'](_0x27ae0c,{'commandName':'listReversed','commandParams':[{'reversed':_0x8edb52['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x48f1b9,_0x467dae={}){const _0x316009=this['editor']['plugins']['get']('TrackChangesEditing'),_0x512ca5=this['_getSuggestionBlocks'](_0x56373d=>_0x56373d['is']('element','listItem')&&'numbered'===_0x56373d['getAttribute']('listType'));if(_0x512ca5['length']<0x1)return;const _0xc58d4d=_0x512ca5['map'](_0x3c79d2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c79d2,'before'),this['editor']['model']['createPositionAt'](_0x3c79d2,0x0)));this['editor']['model']['change'](()=>{_0x316009['markMultiRangeBlockFormat'](_0xc58d4d,{'commandName':'listStart','commandParams':[{'startIndex':_0x467dae['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x3dd06b){if('formatBlock'!=_0x3dd06b['type']&&'formatInline'!=_0x3dd06b['type'])return;const _0x110907=this['editor']['locale'],{data:_0x32a53f}=_0x3dd06b;if(!_0x32a53f)return;let _0x6bdeb5,_0x5340cb;switch(_0x32a53f['commandName']){case'listStyle':_0x6bdeb5='*Change\x20to:*\x20%0',_0x5340cb={'type':'format','content':Ot(_0x110907,_0x6bdeb5,Ot(_0x110907,this['_getTranslationKeyForListStyle'](_0x32a53f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6bdeb5=_0x32a53f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5340cb={'type':'format','content':Ot(_0x110907,_0x6bdeb5)};break;case'listStart':_0x6bdeb5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5340cb={'type':'format','content':Ot(_0x110907,_0x6bdeb5,_0x32a53f['commandParams'][0x0]['startIndex'])};}return _0x5340cb;}_getSuggestionBlocksForListStyle(){const _0x37df93=this['editor']['plugins']['get']('LegacyListUtils');let _0x713710=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x713710[0x0]?.['is']('element','listItem')&&_0x713710['unshift'](..._0x37df93['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x713710[_0x713710['length']-0x1]?.['is']('element','listItem')&&_0x713710['push'](..._0x37df93['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x713710=[...new Set(_0x713710)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x713710=_0x713710['filter'](_0x505534=>_0x505534['is']('element','listItem'))),_0x713710;}_getSuggestionBlocks(_0x1dcdde){const _0x386270=this['editor']['plugins']['get']('LegacyListUtils');let _0x1565c9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1dcdde)['map'](_0xf6dbf7=>{const _0x320700=this['editor']['model']['createPositionAt'](_0xf6dbf7,0x0);return[..._0x386270['getSiblingNodes'](_0x320700,'backward'),..._0x386270['getSiblingNodes'](_0x320700,'forward')];})['flat']();return _0x1565c9=[...new Set(_0x1565c9)],_0x1565c9;}_getTranslationKeyForListStyle(_0x35dd1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x35dd1)||'default')['toUpperCase']()+'_LIST_'+_0x35dd1['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x46623c{afterInit(){const _0x166c4e=this['editor'];if(!_0x166c4e['plugins']['has']('MediaEmbedEditing'))return;const _0x1fa145=_0x166c4e['plugins']['get']('TrackChangesEditing'),_0x4ec637=_0x166c4e['locale'];_0x1fa145['enableCommand']('mediaEmbed'),_0x1fa145['descriptionFactory']['registerElementLabel']('media',_0x2edbd5=>Ot(_0x4ec637,'ELEMENT_MEDIA',_0x2edbd5)),_0x166c4e['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1fa145['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1fa145['descriptionFactory']['registerDescriptionCallback'](_0x1ea3e2=>{if('attribute'!=_0x1ea3e2['type'])return;const {data:_0x901f86}=_0x1ea3e2;if(!_0x901f86||'resizedWidth'!=_0x901f86['key'])return;const _0x1d0808=_0x1ea3e2['getContainedElement']();if(!_0x1d0808||!_0x1d0808['is']('element','media'))return;const _0x3c96fe=Ot(_0x4ec637,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x4ec637,'*Set\x20format:*\x20%0',_0x3c96fe)};}));}},ke=class extends _0x46623c{afterInit(){const _0x7d563e=this['editor'];if(!_0x7d563e['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x346e63=_0x7d563e['plugins']['get']('TrackChangesEditing'),_0x1f19c3=_0x7d563e['locale'],_0x3653fa=_0x7d563e['plugins']['get']('MediaEmbedStyleEditing'),_0x4a2017={};for(const _0x4ce97b of _0x3653fa['normalizedStyles'])_0x4a2017[_0x4ce97b['name']]=_0x4ce97b['title']['toLowerCase']();const _0x30f4df=_0x3653fa['normalizedStyles']['find'](_0x350f35=>_0x350f35['isDefault'])?.['name'];_0x346e63['enableCommand']('mediaStyle',(_0x3a4c1e,_0x5d684f)=>{const _0x172747=_0x7d563e['plugins']['get']('Users')['me'],_0x26aa96=_0x7d563e['commands']['get']('mediaStyle'),_0x4232c0=function(_0x5abffd){const _0x1ee994=_0x5abffd['model']['document']['selection']['getSelectedElement']();return _0x1ee994&&_0x1ee994['is']('element','media')?_0x1ee994:null;}(_0x7d563e);if(!_0x4232c0)return;const _0x56b770=_0x7d563e['model']['createRangeOn'](_0x4232c0);let _0xfdb2e4=_0x26aa96['value'];if(_0xfdb2e4==_0x5d684f['value'])return;const _0x53379c={'commandName':'mediaStyle','commandParams':[_0x5d684f],'formatGroupId':_0xb256dd()};_0x7d563e['model']['change'](()=>{_0x346e63['getSuggestions']()['filter'](_0x2a80d6=>_0x2a80d6['isInContent']&&_0x172747==_0x2a80d6['author']&&'formatBlock'==_0x2a80d6['type']&&'mediaStylePostApply'==_0x2a80d6['subType']&&_0x2a80d6['getFirstRange']()['isEqual'](_0x56b770))['forEach'](_0x573de3=>_0x346e63['discardSuggestion'](_0x573de3['head'])),_0x26aa96['refresh'](),_0xfdb2e4=_0x26aa96['value'],_0xfdb2e4!=_0x5d684f['value']&&_0x346e63['markBlockFormat'](_0x4232c0,{..._0x53379c,'commandReversedParams':[{'value':'string'==typeof _0xfdb2e4?_0xfdb2e4:null}]},[],'mediaStylePostApply');});}),_0x346e63['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x346e63['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x2a9c7c,_0x44188c)=>{_0x346e63['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2a9c7c,{'commandName':_0x44188c['commandName'],'commandParams':_0x44188c['commandReversedParams']});}),_0x346e63['descriptionFactory']['registerDescriptionCallback'](_0x32c0e9=>{if('formatBlock'!=_0x32c0e9['type'])return;const {data:_0x1113d5}=_0x32c0e9;if(!_0x1113d5||'mediaStyle'!=_0x1113d5['commandName'])return;const _0x48f7ec=_0x1113d5['commandParams'][0x0]['value']||_0x30f4df;if(!_0x48f7ec)return;const _0x2a8f78=_0x4a2017[_0x48f7ec]||_0x48f7ec;return{'type':'format','content':Ot(_0x1f19c3,'*Format:*\x20%0',_0x2a8f78)};});}},Re=class extends _0x46623c{afterInit(){const _0x4401ef=this['editor'];_0x4401ef['plugins']['has']('MentionEditing')&&_0x4401ef['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x46623c{afterInit(){const _0x395da1=this['editor'];if(!_0x395da1['plugins']['has']('MergeFieldsEditing'))return;const _0x509f2a=_0x395da1['plugins']['get']('TrackChangesEditing'),_0x56eb79=_0x395da1['locale'];_0x509f2a['enableCommand']('insertMergeField'),_0x509f2a['enableCommand']('insertMergeFieldBlock'),_0x509f2a['enableCommand']('insertMergeFieldImage'),_0x509f2a['descriptionFactory']['registerElementLabel']('mergeField',_0x345782=>Ot(_0x56eb79,'ELEMENT_MERGE_FIELD',_0x345782)),_0x509f2a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x40ee05=>Ot(_0x56eb79,'ELEMENT_MERGE_FIELD',_0x40ee05)),_0x509f2a['descriptionFactory']['registerDescriptionCallback'](_0x1e4268=>{if('insertion'!=_0x1e4268['type']&&'deletion'!=_0x1e4268['type'])return;const _0x1ea638=_0x1e4268['getContainedElement']();if(null==_0x1ea638)return;const _0x2c645a=_0x395da1['plugins']['get']('MergeFieldsEditing');let _0x2a6382;switch(_0x2c645a['getMergeFieldType'](_0x1ea638)){case null:return;case'image':{const _0x2c0c6e=_0x2c645a['unwrapAffixes'](_0x1ea638['getAttribute']('src'));_0x2a6382=_0x2c645a['getLabel'](_0x2c0c6e)||_0x2c0c6e;break;}default:{const _0xd0bd8a=_0x1ea638['getAttribute']('id');_0x2a6382=_0x2c645a['getLabel'](_0xd0bd8a)||_0xd0bd8a;break;}}return'insertion'==_0x1e4268['type']?{'type':'insertion','content':Ot(_0x56eb79,'*Insert:*\x20%0','\x22'+_0x2a6382+'\x22\x20'+Ot(_0x56eb79,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x56eb79,'*Remove:*\x20%0','\x22'+_0x2a6382+'\x22\x20'+Ot(_0x56eb79,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x46623c{afterInit(){const _0x103c92=this['editor'],_0x2b6b0e=_0x103c92['plugins']['get']('TrackChangesEditing');_0x103c92['plugins']['has']('MultiLevelList')&&(_0x2b6b0e['enableDefaultAttributesIntegration']('multiLevelList'),_0x2b6b0e['descriptionFactory']['registerDescriptionCallback'](_0x3f5a79=>this['handleDescriptions'](_0x3f5a79)));}handleDescriptions(_0x55dfa6){const _0x587519=this['editor']['locale'],{data:_0x3d8d9d}=_0x55dfa6,_0xce789d={'type':'format','content':''};if(_0x3d8d9d&&'listMarkerStyle'==_0x3d8d9d['key']){if(!_0x3d8d9d['oldValue'])return{'type':'format','content':Ot(_0x587519,'*Set\x20format:*\x20%0',Ot(_0x587519,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d8d9d['newValue']+')'};if(!_0x3d8d9d['newValue']){let _0xb8fa5=_0x55dfa6['head'];for(;_0xb8fa5;){if(_0xb8fa5['data']&&'listType'==_0xb8fa5['data']['key']&&_0xb8fa5['data']['newValue'])return _0xce789d;_0xb8fa5=_0xb8fa5['next'];}return{'type':'format','content':Ot(_0x587519,'*Remove\x20format:*\x20%0',Ot(_0x587519,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d8d9d['oldValue']+')'};}}}},Se=class extends _0x46623c{afterInit(){const _0x35000b=this['editor'];if(!_0x35000b['plugins']['has']('PageBreakEditing'))return;_0x35000b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x424f44=_0x35000b['plugins']['get']('TrackChangesEditing'),_0x2ef8cb=_0x35000b['locale'];_0x424f44['descriptionFactory']['registerElementLabel']('pageBreak',_0x38944c=>Ot(_0x2ef8cb,'ELEMENT_PAGE_BREAK',_0x38944c));}},Me=class extends _0x46623c{afterInit(){const _0x78b112=this['editor'];if(!_0x78b112['plugins']['has']('Paragraph'))return;const _0x1f51ef=_0x78b112['locale'],_0x4f1769=_0x78b112['plugins']['get']('TrackChangesEditing');_0x4f1769['descriptionFactory']['registerElementLabel']('paragraph',_0x4276fc=>Ot(_0x1f51ef,'ELEMENT_PARAGRAPH',_0x4276fc)),_0x4f1769['enableDefaultAttributesIntegration']('paragraph'),_0x4f1769['enableCommand']('insertParagraph');const _0x325c3e=_0x4f1769['descriptionFactory'];_0x325c3e['registerDescriptionCallback'](_0x3807dc=>{if('insertion'!==_0x3807dc['type'])return;const {start:_0x1f9d23,end:_0xfca48b}=_0x3807dc['getFirstRange']();if(!_0x1f9d23['isTouching'](_0xfca48b)||!_0x1f9d23['nodeAfter'])return;const _0x3525f4=_0x78b112['model']['schema'],_0x8e385c=_0x1f9d23['nodeAfter'];return _0x3525f4['isBlock'](_0x8e385c)&&!_0x3525f4['isLimit'](_0x8e385c)&&_0x3525f4['checkChild'](_0x8e385c,'$text')?{'type':'insertion','content':Ot(_0x1f51ef,'*Insert:*\x20%0',_0x325c3e['getItemLabel'](_0x8e385c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1c2f47=this['editor'],_0x1691c2=_0x1c2f47['locale'];_0x1c2f47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ee3de=>{if('formatBlock'!=_0x4ee3de['type'])return;const {data:_0x8cf109}=_0x4ee3de;return _0x8cf109&&'paragraph'==_0x8cf109['commandName']?{'type':'format','content':Ot(_0x1691c2,'*Change\x20to:*\x20%0',Ot(_0x1691c2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x46623c{afterInit(){const _0x23be62=this['editor'];_0x23be62['commands']['get']('replaceSource')&&_0x23be62['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x46623c{afterInit(){const _0x21bb65=this['editor'];_0x21bb65['plugins']['has']('RemoveFormatEditing')&&(_0x21bb65['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x153c52=this['editor'];_0x153c52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4da6e9=>{if('formatBlock'!=_0x4da6e9['type']&&'formatInline'!=_0x4da6e9['type'])return;const {data:_0x566341}=_0x4da6e9;return _0x566341&&'removeFormat'==_0x566341['commandName']?{'type':'format','content':Ot(_0x153c52['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x46623c{afterInit(){const _0x20b7fc=this['editor'];if(!_0x20b7fc['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x205f1e=_0x20b7fc['plugins']['get']('TrackChangesEditing');_0x205f1e['enableCommand']('goToPreviousRestrictedEditingException'),_0x205f1e['enableCommand']('goToNextRestrictedEditingException');const _0x340a4e=_0x20b7fc['plugins']['get']('RestrictedEditingModeEditing');_0x340a4e['enableCommand']('trackChanges'),_0x340a4e['enableCommand']('acceptSuggestion'),_0x340a4e['enableCommand']('discardSuggestion'),_0x340a4e['enableCommand']('acceptAllSuggestions'),_0x340a4e['enableCommand']('discardAllSuggestions'),_0x340a4e['enableCommand']('acceptSelectedSuggestions'),_0x340a4e['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x46623c{afterInit(){const _0x103559=this['editor'];if(!_0x103559['plugins']['has']('ShiftEnter'))return;const _0xecf332=_0x103559['plugins']['get']('TrackChangesEditing');_0xecf332['enableCommand']('shiftEnter'),_0xecf332['descriptionFactory']['registerElementLabel']('softBreak',_0x26eb27=>Ot(_0x103559['locale'],'ELEMENT_LINE_BREAK',_0x26eb27));}};function ve(_0x28fb75,_0x1c26f1,_0xcd124f){const _0x58c99b=[];for(const _0xcb0e33 of _0x1c26f1['getItems']())_0xcb0e33['hasAttribute'](_0x28fb75)&&_0x58c99b['push'](_0xcd124f['createRangeOn'](_0xcb0e33));return _0x58c99b;}var De=class extends _0x46623c{afterInit(){const _0x4be856=this['editor'],_0x3f3e4d=_0x4be856['plugins']['get']('TrackChangesEditing');_0x4be856['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3f3e4d['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x3dc353=this['editor'],_0x3fcae0=_0x3dc353['model'],_0x3f1b60=_0x3dc353['locale'],_0x146357=_0x3dc353['plugins']['get']('TrackChangesEditing'),_0x21f88f='restrictedEditingException',_0x22e217=_0x3dc353['commands']['get'](_0x21f88f);_0x146357['enableCommand'](_0x21f88f,(_0x5a7416,_0x4c6819={})=>{const _0x1a2463=_0x3fcae0['document']['selection'];if(_0x1a2463['isCollapsed'])return void _0x5a7416(_0x4c6819);const _0x521a17=void 0x0!==_0x4c6819['forceValue']?_0x4c6819['forceValue']:!_0x22e217['value'];_0x3fcae0['change'](()=>{const _0x14a1a2=Array['from'](_0x1a2463['getRanges']());for(const _0x3f7ada of _0x14a1a2){const _0x57742c=_0x521a17?[_0x3f7ada]:ve(_0x21f88f,_0x3f7ada,_0x3fcae0);for(const _0x5734df of _0x57742c)_0x146357['markInlineFormat'](_0x5734df,{'commandName':_0x21f88f,'commandParams':[{'forceValue':_0x521a17}]});}});}),_0x146357['descriptionFactory']['registerDescriptionCallback'](_0x1a217d=>{if('formatBlock'!=_0x1a217d['type']&&'formatInline'!=_0x1a217d['type'])return;const {data:_0x1b7e9f}=_0x1a217d;return _0x1b7e9f&&_0x1b7e9f['commandName']==_0x21f88f?_0x1b7e9f['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x3f1b60,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x3f1b60,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x122402=this['editor'],_0x3b7d56=_0x122402['locale'],_0x5dcf5e=_0x122402['plugins']['get']('TrackChangesEditing'),_0x37b9da='restrictedEditingExceptionBlock',_0x5e0c62=this['editor']['commands']['get'](_0x37b9da);_0x5dcf5e['enableCommand'](_0x37b9da,(_0x2a2446,_0x4754fb={})=>{const _0x2b163e=this['editor']['model']['document']['selection'],_0xd493ad=_0x4754fb&&void 0x0!==_0x4754fb['forceValue']?_0x4754fb['forceValue']:!_0x5e0c62['value'];let _0x779158=[];_0x779158=Ct(_0xd493ad?Array['from'](_0x2b163e['getSelectedBlocks']())['filter'](_0x231666=>function(_0x32a6c0){return!!_0x32a6c0['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x231666)||function(_0xa4cfb3,_0x24fd9e){const _0x2e3a85=_0x24fd9e['createContext'](_0xa4cfb3['parent']);return!!_0x24fd9e['checkChild'](_0x2e3a85,'restrictedEditingException')&&!!_0x24fd9e['checkChild'](_0x2e3a85['push']('restrictedEditingException'),_0xa4cfb3);}(_0x231666,this['editor']['model']['schema'])):Array['from'](_0x2b163e['getSelectedBlocks']())['map'](_0x179be9=>function(_0x45718e){let _0x1db244=_0x45718e;for(;_0x1db244['parent'];){if('restrictedEditingException'==_0x1db244['parent']['name'])return _0x1db244;_0x1db244=_0x1db244['parent'];}return null;}(_0x179be9))['filter'](_0x31b381=>!!_0x31b381),_0x122402['model']),_0x122402['model']['change'](()=>{for(const _0x103187 of _0x779158)_0x5dcf5e['markBlockFormat'](_0x103187,{'commandName':_0x37b9da,'commandParams':[{'forceValue':_0xd493ad}]});});}),_0x5dcf5e['descriptionFactory']['registerDescriptionCallback'](_0x1bfc96=>{const {data:_0x5d5864}=_0x1bfc96;if(_0x5d5864&&_0x5d5864['commandName']==_0x37b9da)return _0x5d5864['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x3b7d56,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x3b7d56,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x46623c{afterInit(){const _0x3c1d80=this['editor'];_0x3c1d80['plugins']['has']('Style')&&_0x3c1d80['plugins']['has']('DataSchema')&&(_0x3c1d80['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3fa5ea=this['editor'],_0x44aee2=_0x3fa5ea['locale'];_0x3fa5ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1042ea=>{if('formatBlock'!=_0x1042ea['type']&&'formatInline'!=_0x1042ea['type'])return;const {data:_0x2d54a8}=_0x1042ea;return _0x2d54a8&&'style'===_0x2d54a8['commandName']?_0x2d54a8['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x44aee2,'*Set\x20format:*\x20%0',_0x2d54a8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x44aee2,'*Remove\x20format:*\x20%0',_0x2d54a8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x46623c{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x526940){super(_0x526940),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x55e16d=this['editor'],_0x5b4137=_0x55e16d['model']['document']['selection'];if(!_0x55e16d['plugins']['has']('TableEditing'))return;const _0x6e9e52=_0x55e16d['locale'],_0x4e8667=_0x55e16d['plugins']['get']('TrackChangesEditing'),_0x383021=_0x55e16d['plugins']['get']('TableUtils');_0x4e8667['descriptionFactory']['registerElementLabel']('table',_0x84331b=>Ot(_0x6e9e52,'ELEMENT_TABLE',_0x84331b)),this['_setupColumnsRowsFixing'](),_0x4e8667['enableCommand']('insertTable'),_0x4e8667['enableCommand']('selectTableRow'),_0x4e8667['enableCommand']('selectTableColumn');for(const _0x5aae13 of['insertTableRowAbove','insertTableRowBelow']){const _0x6f36a6=_0x55e16d['commands']['get'](_0x5aae13);_0x4e8667['enableCommand'](_0x5aae13,_0x4c3079=>{_0x55e16d['model']['change'](_0x13f75c=>{_0x4c3079();const _0x353bfb='above'===_0x6f36a6['order'],_0x594990=_0x383021['getSelectionAffectedTableCells'](_0x5b4137),_0x1e608b=_0x383021['getRowIndexes'](_0x594990),_0x4dba17=_0x353bfb?_0x1e608b['first']-0x1:_0x1e608b['last']+0x1,_0x2139d4=_0x594990[0x0]['findAncestor']('table'),_0x1ccd28=_0x383021['createTableWalker'](_0x2139d4,{'startRow':_0x4dba17,'endRow':_0x4dba17}),_0x3aa075=Array['from'](_0x1ccd28)['map'](_0x4b0410=>_0x13f75c['createRangeOn'](_0x4b0410['cell']));_0x4e8667['markMultiRangeInsertion'](_0x3aa075,'tableRow');});});}for(const _0x5148aa of['insertTableColumnLeft','insertTableColumnRight']){const _0x23edf3=_0x55e16d['commands']['get'](_0x5148aa);_0x4e8667['enableCommand'](_0x5148aa,_0x1288cb=>{_0x55e16d['model']['change'](_0x5ca98b=>{_0x1288cb();const _0x516d60='left'===_0x23edf3['order'],_0x3a87b5=_0x383021['getSelectionAffectedTableCells'](_0x5b4137),_0x5d8234=_0x383021['getColumnIndexes'](_0x3a87b5),_0x1b71f1=_0x516d60?_0x5d8234['first']-0x1:_0x5d8234['last']+0x1,_0x5cb36b=_0x3a87b5[0x0]['findAncestor']('table'),_0x4906cc=_0x383021['createTableWalker'](_0x5cb36b,{'startRow':0x0,'column':_0x1b71f1,'includeAllSlots':!0x1}),_0x4b10fe=Array['from'](_0x4906cc)['map'](_0x29bb65=>_0x5ca98b['createRangeOn'](_0x29bb65['cell']));_0x4e8667['markMultiRangeInsertion'](_0x4b10fe,'tableColumn');});});}for(const _0x33b82f of['removeTableRow','removeTableColumn']){const _0xdb2180=_0x33b82f['substr'](0xb),_0xaa1d2d=_0xdb2180['toLowerCase'](),_0x589ed2=_0xaa1d2d['substr'](0x0,0x3)+'span',_0x1138f1='table'+_0xdb2180,_0xbc76e4='min'+_0xdb2180,_0x36e0bd='max'+_0xdb2180;_0x4e8667['enableCommand'](_0x33b82f,()=>{_0x55e16d['model']['change'](_0xae0adf=>{const _0x1e15fd=_0x383021['getSelectionAffectedTableCells'](_0x5b4137),_0x4948f1=_0x1e15fd[0x0]['findAncestor']('table');let _0x26ae3f;if('removeTableRow'==_0x33b82f){const _0x2f0479=_0x383021['getRowIndexes'](_0x1e15fd);_0x26ae3f={'startRow':_0x2f0479['first'],'endRow':_0x2f0479['last'],'includeAllSlots':!0x0};}else{const _0xabb612=_0x383021['getColumnIndexes'](_0x1e15fd);_0x26ae3f={'startColumn':_0xabb612['first'],'endColumn':_0xabb612['last'],'includeAllSlots':!0x0};}const _0x40aa39=_0x383021['createTableWalker'](_0x4948f1,_0x26ae3f),_0x160c39=Array['from'](_0x40aa39)['map'](({cell:_0x4c1dfb})=>_0x4c1dfb),_0x3923d6=xe(_0x160c39['filter'](_0x42a8cc=>_0x42a8cc['hasAttribute'](_0x589ed2))),_0x3720bf=xe(_0x160c39['filter'](_0x1651c8=>!_0x1651c8['hasAttribute'](_0x589ed2)))['map'](_0x257eb0=>_0xae0adf['createRangeOn'](_0x257eb0)),_0x6bf0ad=_0x4e8667['markMultiRangeDeletion'](_0x3720bf,_0x1138f1);if(_0x6bf0ad&&('tableRow'==_0x6bf0ad['subType']||'tableColumn'==_0x6bf0ad['subType'])){const _0x104078=this['_getSuggestionCoords'](_0x6bf0ad);for(const _0x16afab of _0x3923d6){const _0x47ce7f=_0xae0adf['createRangeOn'](_0x16afab),_0x4b3546=_0x383021['getCellLocation'](_0x16afab),_0x4dc6a6=_0x16afab['getAttribute'](_0x589ed2)-0x1,_0x1db0ca=_0x104078[_0xbc76e4],_0xb69ccc=_0x104078[_0x36e0bd];_0x1db0ca<=_0x4b3546[_0xaa1d2d]&&_0x4b3546[_0xaa1d2d]+_0x4dc6a6<=_0xb69ccc&&_0x6bf0ad['addRange'](_0x47ce7f);}}});});}function _0x5aafc1(_0x1f3b8f){const _0x58e928=Array['from'](_0x5b4137['getRanges']())['map'](_0x42533a=>ot['fromRange'](_0x42533a));_0x55e16d['model']['change'](_0xbfb9a3=>{const _0x46e3b0=_0xbfb9a3['batch'];_0x1f3b8f=_0x1f3b8f['filter'](_0x114bfe=>'$graveyard'!=_0x114bfe['root']['rootName']),_0xbfb9a3['setSelection'](_0x1f3b8f),_0x55e16d['commands']['get']('removeTableRow')['refresh'](),_0x55e16d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x55e16d['model']['enqueueChange'](()=>{_0x55e16d['model']['enqueueChange'](_0x46e3b0,_0x438c3f=>{const _0x280cf3=_0x58e928['filter'](_0x276347=>'$graveyard'!=_0x276347['root']['rootName']);_0x280cf3['length']>0x0&&_0x438c3f['setSelection'](_0x280cf3);for(const _0x2d89bf of _0x58e928)_0x2d89bf['detach']();});});});}function _0xee6740(_0x4ce658){_0x55e16d['model']['change'](_0x19c0fa=>{const _0x4bb5e7=Array['from'](_0x5b4137['getRanges']())['map'](_0x28afb2=>ot['fromRange'](_0x28afb2)),_0xe9c3c6=[];for(const _0x1e3ad8 of _0x4ce658)for(const _0x2a10e8 of _0x1e3ad8['getItems']({'shallow':!0x0}))_0xe9c3c6['push'](_0x2a10e8);for(const _0x5b5536 of _0xe9c3c6)'$graveyard'!=_0x5b5536['root']['rootName']&&(_0x19c0fa['setSelection'](_0x19c0fa['createPositionAt'](_0x5b5536,0x0)),_0x55e16d['commands']['get']('removeTableColumn')['refresh'](),_0x55e16d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1f8e3a=_0x4bb5e7['filter'](_0x28e5f0=>'$graveyard'!=_0x28e5f0['root']['rootName']);_0x1f8e3a['length']>0x0&&_0x19c0fa['setSelection'](_0x1f8e3a);for(const _0x1e8436 of _0x4bb5e7)_0x1e8436['detach']();});}function _0x405597(_0x29cabc,_0x346935){return _0x346935['every'](_0x36d921=>_0x29cabc['some'](_0x2c5df2=>_0x2c5df2['end']['isEqual'](_0x36d921['start'])||_0x36d921['end']['isEqual'](_0x2c5df2['start'])));}function _0x5f440a(_0x252bde,_0x33ed32){return!_0x252bde['some'](_0x2e1f42=>_0x33ed32['some'](_0x41280b=>_0x2e1f42['isIntersecting'](_0x41280b)))&&_0x252bde['some'](_0x206fd2=>_0x33ed32['some'](_0x3b0cac=>_0x206fd2['end']['isTouching'](_0x3b0cac['start'])));}_0x4e8667['descriptionFactory']['registerDescriptionCallback'](_0x1d6640=>{if('insertion'!=_0x1d6640['type']&&'deletion'!=_0x1d6640['type'])return;const _0x186c6c=_0x1d6640['getContainedElement']();if(null!=_0x186c6c&&_0x186c6c['is']('element','table')){if('insertion'==_0x1d6640['type']){const _0x56eb06=_0x1d6640['getItems']()['filter'](_0x316dd9=>_0x316dd9['is']('$textProxy'))['map'](_0x1ce11f=>_0x1ce11f['data']);if(_0x56eb06['length'])return{'type':'insertion','content':Ot(_0x6e9e52,'*Insert:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x56eb06['join']('\x20')+'\x22'))};}if('deletion'==_0x1d6640['type']){const _0x41fd20=_0x1d6640['getItems']()['filter'](_0x5ceca2=>_0x5ceca2['is']('$textProxy'))['map'](_0x1d5ef0=>_0x1d5ef0['data']);if(_0x41fd20['length'])return{'type':'deletion','content':Ot(_0x6e9e52,'*Remove:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41fd20['join']('\x20')+'\x22'))};}}}),_0x4e8667['descriptionFactory']['registerDescriptionCallback'](_0x59ae10=>{if('tableRow'==_0x59ae10['subType']){const _0x3e3344=_0x59ae10['getItems']()['filter'](_0xda637d=>_0xda637d['is']('$textProxy'))['map'](_0x2b1020=>_0x2b1020['data']),_0x4e56aa=this['_getSuggestionCoords'](_0x59ae10),_0x435487=_0x4e56aa['maxRow']-_0x4e56aa['minRow']+0x1;if('insertion'==_0x59ae10['type'])return _0x3e3344['length']?{'type':'insertion','content':Ot(_0x6e9e52,'*Insert:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x435487,'\x22'+_0x3e3344['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x6e9e52,'*Insert:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_ROW',_0x435487))};if('deletion'==_0x59ae10['type'])return _0x3e3344['length']?{'type':'deletion','content':Ot(_0x6e9e52,'*Remove:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x435487,'\x22'+_0x3e3344['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x6e9e52,'*Remove:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_ROW',_0x435487))};}if('tableColumn'==_0x59ae10['subType']){const _0x2faa6e=_0x59ae10['getItems']()['filter'](_0x30633d=>_0x30633d['is']('$textProxy'))['map'](_0x2daf9f=>_0x2daf9f['data']),_0x39de9d=this['_getSuggestionCoords'](_0x59ae10),_0x11dbe2=_0x39de9d['maxColumn']-_0x39de9d['minColumn']+0x1;if('insertion'==_0x59ae10['type'])return _0x2faa6e['length']?{'type':'insertion','content':Ot(_0x6e9e52,'*Insert:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11dbe2,'\x22'+_0x2faa6e['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x6e9e52,'*Insert:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_COLUMN',_0x11dbe2))};if('deletion'==_0x59ae10['type'])return _0x2faa6e['length']?{'type':'deletion','content':Ot(_0x6e9e52,'*Remove:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11dbe2,'\x22'+_0x2faa6e['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x6e9e52,'*Remove:*\x20%0',Ot(_0x6e9e52,'ELEMENT_TABLE_COLUMN',_0x11dbe2))};}}),_0x4e8667['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5aafc1),_0x4e8667['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5aafc1),_0x4e8667['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xee6740),_0x4e8667['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xee6740),_0x4e8667['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x405597),_0x4e8667['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x405597),_0x4e8667['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5f440a),_0x4e8667['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5f440a);}_acceptFormatSuggestionCallbackFactory(){const _0x29ebb0=this['editor'],_0x2f8863=_0x29ebb0['model']['document']['selection'];return(_0x253113,_0x1f6886)=>{_0x29ebb0['model']['change'](_0x33e391=>{const {commandName:_0x228561,commandParams:_0x5b21db}=_0x1f6886;let _0x131ee7=_0x253113[0x0]['end']['nodeBefore'];_0x5b21db&&_0x5b21db[0x0]&&!0x1===_0x5b21db[0x0]['forceValue']&&(_0x131ee7=_0x253113[0x0]['start']['nodeAfter']);const _0x1ec0b4=_0x33e391['createRangeIn'](_0x131ee7);if('$graveyard'==_0x1ec0b4['root']['rootName'])return;const _0x44123f=Array['from'](_0x2f8863['getRanges']())['map'](_0x49be56=>ot['fromRange'](_0x49be56));_0x33e391['setSelection'](_0x1ec0b4),_0x29ebb0['commands']['get'](_0x228561)['refresh'](),_0x5b21db['push']({'forceDefaultExecution':!0x0}),_0x29ebb0['execute'](_0x228561,..._0x5b21db);const _0x30f5a7=_0x44123f['filter'](_0x1eff12=>'$graveyard'!=_0x1eff12['root']['rootName']);_0x30f5a7['length']>0x0&&_0x33e391['setSelection'](_0x30f5a7);for(const _0x5dff26 of _0x44123f)_0x5dff26['detach']();});};}_getCoordsForCells(_0x1624e4){const _0x1b1703=this['editor']['plugins']['get']('TableUtils');let _0x76c37f=Number['MAX_SAFE_INTEGER'],_0x50e8df=Number['MIN_SAFE_INTEGER'],_0x34389e=Number['MAX_SAFE_INTEGER'],_0x33aa5b=Number['MIN_SAFE_INTEGER'];for(const _0x17586c of _0x1624e4){if('$graveyard'==_0x17586c['root']['rootName'])continue;const {row:_0x4ca359,column:_0x481251}=_0x1b1703['getCellLocation'](_0x17586c),_0x9213c7=_0x17586c['hasAttribute']('rowspan')?_0x17586c['getAttribute']('rowspan')-0x1:0x0,_0x516b96=_0x17586c['hasAttribute']('colspan')?_0x17586c['getAttribute']('colspan')-0x1:0x0;_0x76c37f=_0x4ca359<_0x76c37f?_0x4ca359:_0x76c37f,_0x50e8df=_0x4ca359+_0x9213c7>_0x50e8df?_0x4ca359+_0x9213c7:_0x50e8df,_0x34389e=_0x481251<_0x34389e?_0x481251:_0x34389e,_0x33aa5b=_0x481251+_0x516b96>_0x33aa5b?_0x481251+_0x516b96:_0x33aa5b;}return{'minRow':_0x76c37f,'maxRow':_0x50e8df,'minColumn':_0x34389e,'maxColumn':_0x33aa5b};}_setupColumnsRowsFixing(){const _0x3b4928=this['editor'],_0x5e09c4=_0x3b4928['plugins']['get']('TrackChangesEditing'),_0x151156=_0x3b4928['plugins']['get']('TableUtils');_0x3b4928['model']['document']['on']('change:data',()=>{const _0x3e7f74=Array['from'](_0x3b4928['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20bd46,data:_0x12ebf2}of _0x3e7f74){const {group:_0x37da9e,id:_0x57ca30,subType:_0x19638e}=et(_0x20bd46);if('suggestion'!=_0x37da9e)continue;if(null!=_0x12ebf2['oldRange'])continue;const _0x22191f=_0x5e09c4['getSuggestion'](_0x57ca30);this['_tablePostFixingSubtypes']['includes'](_0x19638e)&&this['_tableSuggestions']['add'](_0x22191f);}},{'priority':'low'});const _0x33c33b=(_0xe8f1f9,_0x1c7357)=>{let _0x48fcb6=!0x1;const _0x18c6d5=_0x1c7357['createRangeOn'](_0xe8f1f9),_0x293e6d=_0xe8f1f9['findAncestor']('table'),_0x4d22d4=_0x151156['getCellLocation'](_0xe8f1f9);for(const _0x5e0cf1 of this['_tableSuggestions']){const _0x6202a=_0x5e0cf1['subType'],_0xfc26ae=_0x6202a['startsWith']('tablePaste'),_0x10ba16=_0x6202a['substr'](_0xfc26ae?0xa:0x5),_0x1c19f4=_0x10ba16['toLowerCase'](),_0x270ae1=_0x1c19f4['substr'](0x0,0x3)+'span',_0x1c06fd='min'+_0x10ba16,_0x347c59='max'+_0x10ba16;if(!_0x5e0cf1['isInContent'])continue;if(_0x293e6d!=_0x5e0cf1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5e0cf1['isIntersectingWithRange'](_0x18c6d5))continue;const _0x3024df=_0xe8f1f9['hasAttribute'](_0x270ae1)?_0xe8f1f9['getAttribute'](_0x270ae1)-0x1:0x0,_0x45c2da=this['_getSuggestionCoords'](_0x5e0cf1),_0x4c128b=_0x45c2da[_0x1c06fd],_0x268967=_0x45c2da[_0x347c59];_0x4c128b<=_0x4d22d4[_0x1c19f4]&&_0x4d22d4[_0x1c19f4]+_0x3024df<=_0x268967&&(_0x5e0cf1['addRange'](_0x18c6d5),_0x48fcb6=!0x0);}return _0x48fcb6;};_0x3b4928['model']['document']['registerPostFixer'](_0x27e6d1=>{let _0x5f08b9=!0x1;for(const _0x12cfeb of _0x3b4928['model']['document']['differ']['getChanges']())if('insert'==_0x12cfeb['type']){if('tableRow'==_0x12cfeb['name']){for(const _0xd5cb95 of _0x12cfeb['position']['nodeAfter']['getChildren']())_0x5f08b9=_0x5f08b9||_0x33c33b(_0xd5cb95,_0x27e6d1);}else'tableCell'==_0x12cfeb['name']&&(_0x5f08b9=_0x5f08b9||_0x33c33b(_0x12cfeb['position']['nodeAfter'],_0x27e6d1));}return _0x5f08b9;});}_getSuggestionCoords(_0x41d265){return this['_getCoordsForCells'](_0x41d265['getRanges']()['map'](_0x48ec24=>_0x48ec24['start']['nodeAfter']));}};function xe(_0x59e9bf){return Array['from'](new Set(_0x59e9bf)['values']());}var Ge=class extends _0x46623c{static get requires(){return[Pe];}afterInit(){const _0x4b5661=this['editor'],_0x5bfe05=_0x4b5661['model']['document']['selection'],_0x10d923=_0x4b5661['locale'];if(!_0x4b5661['plugins']['has']('TableEditing'))return;const _0x3dcf6c=_0x4b5661['plugins']['get']('TrackChangesEditing'),_0x121fce=_0x4b5661['plugins']['get']('TableUtils'),_0x56755d=_0x4b5661['plugins']['get'](Pe);_0x56755d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3dcf6c['enableCommand']('mergeTableCells',()=>{const _0x596c31=_0x121fce['getSelectionAffectedTableCells'](_0x4b5661['model']['document']['selection']);_0x4b5661['model']['change'](()=>{_0x3dcf6c['markMultiRangeBlockFormat'](_0x596c31,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4b5661['commands']['get']('mergeTableCells')['on']('execute',(_0x6be3ec,_0x257e19)=>{_0x4b5661['commands']['get']('trackChanges')['value']&&(_0x257e19['length']>0x0&&_0x257e19[_0x257e19['length']-0x1]&&_0x257e19[_0x257e19['length']-0x1]['forceDefaultExecution']||_0x3dcf6c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x6be3ec['stop']());},{'priority':'highest'});for(const _0x4e4e05 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50035d=_0x4b5661['commands']['get'](_0x4e4e05);_0x3dcf6c['enableCommand'](_0x4e4e05,()=>{const _0x23f72e=_0x4b5661['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4bf058=>_0x4bf058['is']('element','tableCell')),_0x52848d=_0x50035d['value'];_0x4b5661['model']['change'](()=>{_0x3dcf6c['markMultiRangeBlockFormat']([_0x23f72e,_0x52848d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x22f8d0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xc41964=_0x4b5661['commands']['get'](_0x22f8d0);_0x3dcf6c['enableCommand'](_0x22f8d0,()=>{const _0x51f32a=_0x121fce['getSelectionAffectedTableCells'](_0x4b5661['model']['document']['selection']),_0x2b27b4=_0x51f32a[0x0]['findAncestor']('table'),_0x29f8ab=new Set();for(const _0x227739 of _0x51f32a){const {column:_0x14b38b,row:_0xafc445}=_0x121fce['getCellLocation'](_0x227739),_0x3f4e86='horizontally'==_0xc41964['direction']?_0x121fce['createTableWalker'](_0x2b27b4,{'startRow':_0xafc445,'endRow':_0xafc445,'includeAllSlots':!0x0}):_0x121fce['createTableWalker'](_0x2b27b4,{'column':_0x14b38b,'includeAllSlots':!0x0});for(const {cell:_0x4fe60a}of _0x3f4e86)_0x29f8ab['add'](_0x4fe60a);}_0x4b5661['model']['change'](()=>{_0x3dcf6c['markMultiRangeBlockFormat'](_0x51f32a,{'commandName':_0x22f8d0,'commandParams':[]},Array['from'](_0x29f8ab),_0x22f8d0);});});}_0x3dcf6c['descriptionFactory']['registerDescriptionCallback'](_0x3bae56=>{if('formatBlock'!=_0x3bae56['type']&&'formatInline'!=_0x3bae56['type'])return;const {data:_0x5e445b}=_0x3bae56;return _0x5e445b&&'mergeTableCells'==_0x5e445b['commandName']?{'type':'format','content':Ot(_0x10d923,'*Merge\x20cells*')}:void 0x0;}),_0x3dcf6c['descriptionFactory']['registerDescriptionCallback'](_0x1799f9=>{if('formatBlock'!=_0x1799f9['type']&&'formatInline'!=_0x1799f9['type'])return;const {data:_0x35bb20}=_0x1799f9;return _0x35bb20?'splitTableCellVertically'==_0x35bb20['commandName']?{'type':'format','content':Ot(_0x10d923,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x35bb20['commandName']?{'type':'format','content':Ot(_0x10d923,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x455374=_0x56755d['_acceptFormatSuggestionCallbackFactory']();for(const _0x53f6ca of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3dcf6c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53f6ca,'accept',_0x455374);for(const _0x1f7a05 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3dcf6c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f7a05,'accept',_0x4c8c8c=>{_0x4b5661['model']['change'](_0x2f6240=>{const _0x51124d=Array['from'](_0x4c8c8c)['filter'](_0x28828b=>'$graveyard'!=_0x28828b['root']['rootName']&&!!_0x28828b['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x51124d['length'])return;const _0x4eb3aa=Array['from'](_0x5bfe05['getRanges']())['map'](_0x36a6c4=>ot['fromRange'](_0x36a6c4));_0x2f6240['setSelection'](_0x51124d),_0x4b5661['commands']['get'](_0x1f7a05)['refresh'](),_0x4b5661['execute'](_0x1f7a05,{'forceDefaultExecution':!0x0});const _0x197c41=_0x4eb3aa['filter'](_0x2aadd5=>'$graveyard'!=_0x2aadd5['root']['rootName']);_0x197c41['length']>0x0&&_0x2f6240['setSelection'](_0x197c41);for(const _0x4986d8 of _0x4eb3aa)_0x4986d8['detach']();});});_0x3dcf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x46131a=>{_0x4b5661['model']['change'](_0x249173=>{const _0x13b626=Array['from'](_0x5bfe05['getRanges']())['map'](_0x4ee755=>ot['fromRange'](_0x4ee755));_0x249173['setSelection'](_0x46131a),_0x4b5661['commands']['get']('mergeTableCells')['refresh'](),_0x4b5661['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x584143=_0x13b626['filter'](_0x4edf45=>'$graveyard'!=_0x4edf45['root']['rootName']);_0x584143['length']>0x0&&_0x249173['setSelection'](_0x584143);for(const _0x2516a5 of _0x13b626)_0x2516a5['detach']();});});for(const _0x5611b8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x124064=_0x4b5661['commands']['get'](_0x5611b8);_0x124064['on']('set:isEnabled',(_0x323e9d,_0x597931,_0x4bd195)=>{if(_0x4bd195){const _0x17ad8e=_0x4b5661['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e6aec=>_0x2e6aec['is']('element','tableCell'));this['_areMergableCells'](_0x124064['value'],_0x17ad8e)||(_0x323e9d['return']=!0x1,_0x323e9d['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x21f254=this['editor']['commands']['get']('mergeTableCells'),_0x3614b3=this['editor']['plugins']['get']('TableUtils');if(!_0x21f254['isEnabled'])return!0x1;const _0x74edaa=_0x3614b3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x249f0b of _0x74edaa)for(const _0xbf6d13 of _0x74edaa)if(_0x249f0b!=_0xbf6d13&&!this['_areMergableCells'](_0x249f0b,_0xbf6d13))return!0x1;return!0x0;}['_areMergableCells'](_0x57338a,_0x225b0b){const _0x121506=this['editor']['plugins']['get']('TrackChangesEditing'),_0x306d38=this['editor']['model']['createRangeOn'](_0x57338a),_0x3c2337=this['editor']['model']['createRangeOn'](_0x225b0b),_0x249b84=new Set(),_0x127346=new Set();for(const _0x98e9a5 of _0x121506['getSuggestions']())if(('insertion'==_0x98e9a5['type']||'deletion'==_0x98e9a5['type']||'mergeTableCells'==_0x98e9a5['subType'])&&_0x98e9a5['isInContent']){for(const _0x19e6ca of _0x98e9a5['getRanges']())_0x19e6ca['containsRange'](_0x306d38,!0x0)&&_0x249b84['add'](_0x98e9a5['type']+':'+_0x98e9a5['author']['id']),_0x19e6ca['containsRange'](_0x3c2337,!0x0)&&_0x127346['add'](_0x98e9a5['type']+':'+_0x98e9a5['author']['id']);}if(_0x249b84['size']!=_0x127346['size'])return!0x1;for(const _0x32f964 of _0x249b84)if(!_0x127346['has'](_0x32f964))return!0x1;return!0x0;}},He=class extends _0x46623c{static get requires(){return[Pe];}afterInit(){const _0x1bc76d=this['editor'];if(!_0x1bc76d['plugins']['has']('TableEditing'))return;const _0x49b3b6=_0x1bc76d['locale'],_0x55badc=_0x1bc76d['plugins']['get']('TrackChangesEditing');_0x55badc['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55badc['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55badc['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x49b3b6,'FORMAT_HEADER_ROW')),_0x55badc['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x49b3b6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3875de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3262a0=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x3875de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3262a0),_0x3875de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3262a0),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x42e67d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12c655=this['editor']['plugins']['get']('TableUtils');function _0x172413({showActiveMarker:_0xe8c093=!0x0,setDataAttribute:_0x1ebf11=!0x0}={}){return(_0x58510d,_0x4bf9c2,_0x2d9653)=>{const {type:_0x23ba2f,id:_0x3f6986}=et(_0x4bf9c2['markerName']);if(!_0x42e67d['hasSuggestion'](_0x3f6986))return;const _0x17ee1e=_0x42e67d['getSuggestion'](_0x3f6986),_0x14d4b4=_0x17ee1e['data'];if('formatBlock'!=_0x17ee1e['type']||!_0x14d4b4||'setTableColumnHeader'!=_0x14d4b4['commandName'])return;if(_0x4bf9c2['item'])return void _0x58510d['stop']();if(!_0x2d9653['consumable']['consume'](_0x4bf9c2['markerRange'],_0x58510d['name']))return;const _0x33c114=_0x4bf9c2['markerRange']['start']['nodeAfter'],_0xd70d6d=_0x4bf9c2['markerRange']['end']['nodeBefore'],_0x1a10d1=_0x33c114['parent']['parent'],{column:_0x98904d}=_0x12c655['getCellLocation'](_0x33c114),{column:_0x1d03b0}=_0x12c655['getCellLocation'](_0xd70d6d);for(let _0x13393c=_0x98904d;_0x13393c<=_0x1d03b0;_0x13393c++){const _0x4f8765=_0x12c655['createTableWalker'](_0x1a10d1,{'column':_0x13393c,'includeAllSlots':!0x1});for(const _0x875550 of _0x4f8765){const _0x2d1c89=_0x875550['cell'],_0x2d3e8d=_0x2d9653['mapper']['toViewElement'](_0x2d1c89);_0x2d9653['writer']['addClass']('ck-suggestion-marker-'+_0x23ba2f,_0x2d3e8d),_0x1ebf11&&_0x2d9653['writer']['setAttribute']('data-suggestion',_0x3f6986,_0x2d3e8d),_0x2d9653['mapper']['bindElementToMarker'](_0x2d3e8d,_0x4bf9c2['markerName']),_0xe8c093&&(_0x42e67d['activeMarkers']['includes'](_0x4bf9c2['markerName'])?_0x2d9653['writer']['addClass']('ck-suggestion-marker--active',_0x2d3e8d):_0x2d9653['writer']['removeClass']('ck-suggestion-marker--active',_0x2d3e8d));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x172413(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1bd5dc,_0x2728f0,_0x2e21b0)=>{_0x2e21b0['options']['showSuggestionHighlights']&&_0x172413({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1bd5dc,_0x2728f0,_0x2e21b0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xb4a78a,_0x153e27,_0x128df0)=>{const {type:_0x3846e9,id:_0x3b3e3c}=et(_0x153e27['markerName']);if(!_0x42e67d['hasSuggestion'](_0x3b3e3c))return;const _0x350d15=_0x42e67d['getSuggestion'](_0x3b3e3c),_0x500dac=_0x350d15['data'];if('formatBlock'!=_0x350d15['type']||!_0x500dac||'setTableColumnHeader'!=_0x500dac['commandName'])return;const _0x59343f=_0x128df0['mapper']['markerNameToElements'](_0x153e27['markerName']);if(_0x59343f){for(const _0x13085a of _0x59343f)_0x128df0['writer']['removeClass']('ck-suggestion-marker-'+_0x3846e9,_0x13085a),_0x128df0['writer']['removeClass']('ck-suggestion-marker--active',_0x13085a),_0x128df0['writer']['removeAttribute']('data-suggestion',_0x13085a),_0x128df0['mapper']['unbindElementFromMarkerName'](_0x13085a,_0x153e27['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0xe0d1e8=this['editor'],_0x4e6dfc=_0xe0d1e8['locale'];function _0x362593(_0xfdbb91){return{'type':'format','content':Ot(_0x4e6dfc,'*Format:*\x20%0',_0xfdbb91)};}_0xe0d1e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d9c86=>{if('formatBlock'!=_0x2d9c86['type'])return;const {data:_0x24b341}=_0x2d9c86;return _0x24b341?'setTableRowHeader'==_0x24b341['commandName']?_0x24b341['commandParams'][0x0]['forceValue']?_0x362593(Ot(_0x4e6dfc,'FORMAT_HEADER_ROW')):_0x362593(Ot(_0x4e6dfc,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x24b341['commandName']?_0x24b341['commandParams'][0x0]['forceValue']?_0x362593(Ot(_0x4e6dfc,'FORMAT_HEADER_COLUMN')):_0x362593(Ot(_0x4e6dfc,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x46623c{static get requires(){return[Pe];}afterInit(){const _0x2905d9=this['editor'];if(!_0x2905d9['plugins']['has']('TableEditing')||!_0x2905d9['config']['get']('table.enableFooters'))return;const _0xde16f=_0x2905d9['locale'],_0x2e253b=_0x2905d9['plugins']['get']('TrackChangesEditing');_0x2e253b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x2e253b['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0xde16f,'FORMAT_FOOTER_ROW'));}},We=class extends _0x46623c{afterInit(){const _0x1b784e=this['editor'],_0x6a4513=_0x1b784e['locale'],_0x34c2ae=_0x1b784e['plugins']['get']('TrackChangesEditing');function _0x5df522(_0x53b634){return{'type':'format','content':''+Ot(_0x6a4513,'*Set\x20table\x20type:*\x20%0',_0x53b634)};}_0x1b784e['plugins']['has']('TableLayout')&&(_0x34c2ae['enableCommand']('insertTableLayout'),_0x34c2ae['enableDefaultAttributesIntegration']('tableType'),_0x34c2ae['descriptionFactory']['registerElementLabel'](_0x5238ab=>_0x5238ab['is']('element','table')&&'layout'===_0x5238ab['getAttribute']('tableType'),_0x44f3a0=>Ot(_0x6a4513,'ELEMENT_LAYOUT_TABLE',_0x44f3a0)),_0x34c2ae['descriptionFactory']['registerDescriptionCallback'](_0x543e31=>{const {data:_0x16b0d8}=_0x543e31;if(_0x16b0d8&&'tableType'==_0x16b0d8['key'])switch(_0x16b0d8['newValue']){case'layout':return _0x5df522(Ot(_0x6a4513,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5df522(Ot(_0x6a4513,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Ve['map'](_0xd25393=>[_0xd25393,null]));var ze=class extends _0x46623c{static get requires(){return[Pe];}afterInit(){const _0x23fb7a=this['editor'];if(!_0x23fb7a['plugins']['has']('TableClipboard'))return;const _0x5e6d79=_0x23fb7a['plugins']['get']('TrackChangesEditing'),_0x256a48=_0x23fb7a['plugins']['get']('TableUtils'),_0xf33ffe=_0x23fb7a['plugins']['get'](Pe),_0x254223=_0x23fb7a['plugins']['get']('TableClipboard'),_0x1383ee=_0x23fb7a['plugins']['get']('TableSelection'),_0x20fbea=_0x23fb7a['plugins']['get'](ft);_0xf33ffe['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x23fb7a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x23fb7a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x150b5e=null,_0x5d6b94=!0x1;_0x20fbea['on']('contentInsertion',(_0x175407,_0x2d6415)=>{_0x5d6b94='paste'===_0x2d6415['method'];}),_0x23fb7a['model']['on']('insertContent',(_0x4969f2,_0x37ba26)=>{if(!_0x5d6b94&&null===_0x1383ee['getSelectedTableCells']())return;const [_0x323d5e,_0x5f68ac]=_0x37ba26,_0x317ca6=_0x37ba26[_0x37ba26['length']-0x1];_0x317ca6&&_0x317ca6['forceDefaultExecution']||_0x5e6d79['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x385892,_0x14facb,_0xb01edd,_0x379259,_0x11f4f6){if(_0x14facb&&!_0x14facb['is']('documentSelection'))return!0x1;const _0x464b80=_0x11f4f6['getTableIfOnlyTableInContent'](_0x385892,_0xb01edd);if(!_0x464b80||!Xe(_0x464b80,void 0x0,_0x379259))return!0x1;const _0x4bddbd=_0x379259['getSelectionAffectedTableCells'](_0xb01edd['document']['selection']);if(!_0x4bddbd['length'])return!0x1;const _0x234640=_0x4bddbd[0x0]['findAncestor']('table'),_0x20c563=_0x379259['getRowIndexes'](_0x4bddbd),_0x3ac983=_0x379259['getColumnIndexes'](_0x4bddbd),_0x1e42d2={'startRow':_0x20c563['first'],'endRow':_0x20c563['last'],'startColumn':_0x3ac983['first'],'endColumn':_0x3ac983['last']};return 0x1==_0x4bddbd['length']&&(_0x1e42d2['endRow']+=_0x379259['getRows'](_0x464b80)-0x1,_0x1e42d2['endColumn']+=_0x379259['getColumns'](_0x464b80)-0x1),Xe(_0x234640,_0x1e42d2,_0x379259);}(_0x323d5e,_0x5f68ac,_0x23fb7a['model'],_0x256a48,_0x254223)&&(_0x4969f2['stop'](),_0x150b5e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x23fb7a['model']['change'](()=>{_0x23fb7a['model']['insertContent'](_0x37ba26[0x0],_0x37ba26[0x1],_0x37ba26[0x2],{'forceDefaultExecution':!0x0});const _0x4ae04a=_0xb256dd(),{rowInsertionRanges:_0x596ef5,columnInsertionRanges:_0x2b8a0c,insertionRanges:_0x5589d1,deletionRanges:_0x4d1756,cells:_0x149ffa}=_0x150b5e;_0x596ef5['length']&&_0x5e6d79['markMultiRangeInsertion'](_0x596ef5,'tablePasteRow',{'tablePasteChainId':_0x4ae04a}),_0x2b8a0c['length']&&_0x5e6d79['markMultiRangeInsertion'](_0x2b8a0c,'tablePasteColumn',{'tablePasteChainId':_0x4ae04a}),_0x5589d1['length']&&(_0x5e6d79['markMultiRangeInsertion'](_0x5589d1,'tablePaste',{'tablePasteChainId':_0x4ae04a,'skipNestingCheck':!0x0}),_0x5589d1['forEach'](_0x582979=>_0x582979['detach']?.())),_0x4d1756['length']&&(_0x5e6d79['markMultiRangeDeletion'](_0x4d1756,'tablePaste',{'tablePasteChainId':_0x4ae04a,'skipNestingCheck':!0x0}),_0x4d1756['forEach'](_0x5f0ef1=>_0x5f0ef1['detach']?.()));const _0x756170=_0x5e6d79['markMultiRangeBlockFormat'](_0x149ffa['map'](({element:_0x2e4bcc})=>_0x2e4bcc),{'formatGroupId':_0xb256dd()},[],'tablePasteCell',{'tablePasteChainId':_0x4ae04a});if(_0x756170){const _0x4908b4=_0x756170['getMarkers'](),_0x38def5=[];for(const {element:_0x4a5baf,attributes:_0x4fc9c4}of _0x149ffa){if(!_0x4fc9c4)continue;const _0x515dbf=_0x23fb7a['model']['createRangeOn'](_0x4a5baf),_0x3024f6=_0x4908b4['find'](_0x21e014=>_0x21e014['getRange']()['isEqual'](_0x515dbf));_0x3024f6&&_0x38def5['push']([_0x3024f6['name'],_0x4fc9c4]);}_0x38def5['length']&&_0x756170['setAttribute']('markerAttributes',Object['fromEntries'](_0x38def5));}_0x150b5e=null;}));},{'priority':_0x2abd23['high']+0xa}),_0x20fbea['on']('contentInsertion',()=>{_0x5d6b94=!0x1;},{'priority':'lowest'}),_0x23fb7a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1e79fc,_0x46395e)=>{const [_0x11f8a4,_0x5b1eaf,,_0x41de18]=_0x46395e;if(!_0x150b5e)return;_0x1e79fc['stop']();const _0x534a1f=_0x11f8a4['cell'],_0x309fac=_0x5b1eaf,_0x3a31f8=Ke(_0x534a1f),_0xc7bc4d=Ke(_0x309fac);_0x1e79fc['return']=_0x534a1f;let _0x245d4e=null,_0x4d82c6=null;if(_0xc7bc4d||_0x3a31f8){if(_0x3a31f8&&!_0xc7bc4d){_0x41de18['remove'](_0x534a1f['getChild'](0x0));for(const _0x2467d3 of Array['from'](_0x309fac['getChildren']()))_0x41de18['insert'](_0x2467d3,_0x534a1f,'end');const _0x2b40f6=_0x150b5e['rowInsertionIndexes']['includes'](_0x11f8a4['row']),_0x50778f=_0x150b5e['columnInsertionIndexes']['includes'](_0x11f8a4['column']);_0x2b40f6||_0x50778f||(_0x245d4e=ot['fromRange'](_0x41de18['createRangeIn'](_0x534a1f)));}else _0xc7bc4d&&!_0x3a31f8&&(_0x4d82c6=_0x41de18['createRangeIn'](_0x534a1f));}else{const _0x94afcb=_0x41de18['createElement']('tableCellSuggestion'),_0x25a76e=_0x41de18['createElement']('tableCellSuggestion');_0x41de18['wrap'](_0x41de18['createRangeIn'](_0x534a1f),_0x25a76e),_0x41de18['insert'](_0x94afcb,_0x534a1f,0x0);for(const _0x269b3d of Array['from'](_0x309fac['getChildren']()))_0x41de18['insert'](_0x269b3d,_0x94afcb,'end');_0x245d4e=ot['fromRange'](_0x41de18['createRangeOn'](_0x94afcb)),_0x4d82c6=ot['fromRange'](_0x41de18['createRangeOn'](_0x25a76e));}const _0x29cef3=Array['from'](_0x309fac['getAttributes']())['filter'](([_0x12b4a9])=>Ve['includes'](_0x12b4a9));_0x150b5e['cells']['push']({'element':_0x534a1f,'attributes':_0x29cef3['length']?Object['fromEntries'](_0x29cef3):null}),_0x245d4e&&_0x150b5e['insertionRanges']['push'](_0x245d4e),_0x4d82c6&&_0x150b5e['deletionRanges']['push'](_0x4d82c6);},{'priority':'high'}),_0x256a48['on']('insertColumns',(_0x3fde50,_0x432ba9)=>{const [_0x14bacd,_0x383026={}]=_0x432ba9;if(!_0x150b5e)return;const _0x2f9e0a=_0x383026['at']||0x0,_0x38c312=_0x383026['columns']||0x1;_0x150b5e['columnInsertionIndexes']=new Array(_0x38c312)['fill'](_0x2f9e0a)['map']((_0x447300,_0x40ecbb)=>_0x447300+_0x40ecbb);for(const {cell:_0x3ae63d}of _0x256a48['createTableWalker'](_0x14bacd,{'startColumn':_0x2f9e0a,'endColumn':_0x2f9e0a+_0x38c312-0x1}))_0x150b5e['columnInsertionRanges']['push'](_0x23fb7a['model']['createRangeOn'](_0x3ae63d));},{'priority':'low'}),_0x256a48['on']('insertRows',(_0x4d4ba4,_0x43f37c)=>{const [_0x5835f3,_0x13912d={}]=_0x43f37c;if(!_0x150b5e)return;const _0x46e7c9=_0x13912d['at']||0x0,_0x29ee34=_0x13912d['rows']||0x1;_0x150b5e['rowInsertionIndexes']=new Array(_0x29ee34)['fill'](_0x46e7c9)['map']((_0x34793c,_0x18583b)=>_0x34793c+_0x18583b);for(const {cell:_0x4ec12b}of _0x256a48['createTableWalker'](_0x5835f3,{'startRow':_0x46e7c9,'endRow':_0x46e7c9+_0x29ee34-0x1}))_0x150b5e['rowInsertionRanges']['push'](_0x23fb7a['model']['createRangeOn'](_0x4ec12b));},{'priority':'low'}),_0x5e6d79['descriptionFactory']['registerDescriptionCallback'](_0x145f09=>{if(_0x145f09['subType']&&_0x145f09['subType']['startsWith']('tablePaste'))return _0x145f09['previous']?{}:{'type':'insertion','content':Ot(_0x23fb7a['locale'],'*Replace\x20table\x20cells*')};});const _0xbed355=()=>!0x1;for(const _0x6ce170 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5e6d79['_suggestionFactory']['registerCustomCallback']('insertion',_0x6ce170,'join',_0xbed355),_0x5e6d79['_suggestionFactory']['registerCustomCallback']('deletion',_0x6ce170,'join',_0xbed355),_0x5e6d79['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6ce170,'join',_0xbed355);_0x5e6d79['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xbed355),_0x5e6d79['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d1afc,_0xa4f36e,_0xf3bb1)=>{const _0x5a68f4=_0x5d1afc['map'](_0x1fcf72=>_0x1fcf72['getContainedElement']())['filter'](_0x1817e1=>_0x1817e1),_0xcaa139=new Map(_0x5a68f4['map'](_0x1ef113=>[_0x1ef113,null]));if(_0x150b5e){for(const {element:_0x16bca1,attributes:_0x4d4373}of _0x150b5e['cells'])_0x4d4373&&_0xcaa139['set'](_0x16bca1,_0x4d4373);}else{if(_0xf3bb1&&_0xf3bb1['markerAttributes'])for(const [_0x453635,_0x2c9ac9]of Object['entries'](_0xf3bb1['markerAttributes'])){const _0xebc566=_0x23fb7a['model']['markers']['get'](_0x453635),_0x39e4f0=_0xebc566?_0xebc566['getRange']()['getContainedElement']():null;_0x39e4f0&&_0xcaa139['set'](_0x39e4f0,_0x2c9ac9);}}_0x23fb7a['model']['change'](_0x31815f=>{for(const [_0x512ff3,_0x3a692c]of _0xcaa139)_0x31815f['setAttributes']({...je,..._0x3a692c},_0x512ff3);});});const _0x291654=(_0xfa3d10,_0x4ad721)=>{_0x5e6d79['_suggestionFactory']['registerCustomCallback'](_0xfa3d10,'tablePaste',_0x4ad721,(_0x30f16d,_0x3abbc7,_0x2998f8)=>{_0x23fb7a['model']['change'](_0x1d2bd7=>{const _0x2d4c7f=[];for(const _0x4c572c of _0x30f16d){const _0x3f7e79=_0x4c572c['start']['nodeAfter'];_0x3f7e79['is']('element','tableCellSuggestion')&&_0x2d4c7f['push'](_0x3f7e79);}_0x5e6d79['_suggestionFactory']['getSuggestionCallback'](_0xfa3d10,null,_0x4ad721)(_0x30f16d,_0x3abbc7,_0x2998f8);for(const _0x814cc9 of _0x2d4c7f)'$graveyard'!=_0x814cc9['root']['rootName']&&_0x1d2bd7['unwrap'](_0x814cc9);});});};_0x291654('insertion','accept'),_0x291654('insertion','discard'),_0x291654('deletion','accept'),_0x291654('deletion','discard'),_0x5e6d79['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2be693=>{const _0x126aa1=_0x2be693['map'](_0x8e5d76=>_0x8e5d76['getContainedElement']()),_0x4e3cea=_0x126aa1[0x0]['findAncestor']('table'),{minRow:_0x4f023c,maxRow:_0x25dce7}=_0xf33ffe['_getCoordsForCells'](_0x126aa1);_0x256a48['removeRows'](_0x4e3cea,{'at':_0x4f023c,'rows':_0x25dce7-_0x4f023c+0x1});}),_0x5e6d79['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x18b0de=>{const _0x4831c2=_0x18b0de['map'](_0x31cdd3=>_0x31cdd3['getContainedElement']()),_0x116bbb=_0x4831c2[0x0]['findAncestor']('table'),{minColumn:_0x44031e,maxColumn:_0x3178af}=_0xf33ffe['_getCoordsForCells'](_0x4831c2);_0x256a48['removeColumns'](_0x116bbb,{'at':_0x44031e,'columns':_0x3178af-_0x44031e+0x1});});const _0x1982b4=(_0x570015,_0x45aef2)=>{if(!_0x45aef2['subType']||!_0x45aef2['subType']['startsWith']('tablePaste'))return;const _0x560bbd=_0x45aef2['attributes']['tablePasteChainId'],_0x5e3d1a=_0x5e6d79['getSuggestions']()['filter'](_0x418d6e=>_0x418d6e['isInContent']&&_0x418d6e['attributes']&&_0x418d6e['attributes']['tablePasteChainId']==_0x560bbd);_0x5e3d1a['length']&&_0x45aef2['getAllAdjacentSuggestions']()['length']!=_0x5e3d1a['length']&&_0x5e3d1a['reduce']((_0xb8aaa5,_0xc5a805)=>(_0xb8aaa5['next']=_0xc5a805,_0xc5a805['previous']=_0xb8aaa5,_0xc5a805));};function _0x26f5c4(_0x1f0daf,_0x21e279=!0x0){const {id:_0x3bf083,authorId:_0x25cb6b}=et(_0x1f0daf['markerName']),_0x330e6e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x213711=_0x5e6d79['activeMarkers']['includes'](_0x1f0daf['markerName']);return _0x213711&&_0x330e6e['push']('ck-suggestion-marker--active'),{'classes':_0x330e6e,'attributes':{'data-suggestion':_0x3bf083,'data-author-id':_0x25cb6b},'priority':_0x213711&&_0x21e279?0xbc2:0xbb8};}_0x5e6d79['on']('suggestionLoaded',_0x1982b4,{'priority':'high'}),_0x5e6d79['on']('suggestionUnloaded',_0x1982b4,{'priority':'high'}),_0x23fb7a['model']['document']['registerPostFixer'](()=>{let _0x17fc79=!0x1;const _0x5e493c=Array['from'](_0x23fb7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x567a9e,data:_0x2aeb68}of _0x5e493c){const {group:_0xf053a1,type:_0x5a299f,id:_0x2ae569}=et(_0x567a9e);if('suggestion'!=_0xf053a1||'deletion'!=_0x5a299f||_0x2aeb68['oldRange'])continue;if(!_0x5e6d79['hasSuggestion'](_0x2ae569))continue;const _0x1cb3a6=_0x5e6d79['getSuggestion'](_0x2ae569)['getRanges'](),_0xadec98=_0x23fb7a['plugins']['get']('Users')['me'];for(const _0x2185d9 of _0x5e6d79['getSuggestions']())if(_0x2185d9['isInContent']&&_0x2185d9['author']==_0xadec98&&'formatBlock'==_0x2185d9['type']&&'tablePasteCell'==_0x2185d9['subType']&&_0x2185d9['getRanges']()['every'](_0x2d8575=>_0x1cb3a6['some'](_0x3c4ef0=>_0x3c4ef0['containsRange'](_0x2d8575,!0x0)))){for(const _0x38d160 of _0x2185d9['getAllAdjacentSuggestions']())_0x38d160['isInContent']&&(_0x38d160['discard'](),_0x17fc79=!0x0);}}return _0x17fc79;}),_0x23fb7a['model']['document']['registerPostFixer'](_0x4ad662=>{const _0x580465=_0x23fb7a['commands']['get']('redo');if(!_0x580465||!_0x580465['_createdBatches']['has'](_0x4ad662['batch']))return!0x1;let _0x105bbe=!0x1;const _0x4883f0=_0x23fb7a['plugins']['get']('Users')['me'],_0x299301=_0x23fb7a['model']['document']['differ']['getChanges'](),_0x593146=Array['from'](_0x23fb7a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x278601,data:_0xfeff96})=>{const {group:_0x3f71bd,subType:_0x5469c1,authorId:_0x8a9a73}=et(_0x278601);return'suggestion'==_0x3f71bd&&'tablePaste'==_0x5469c1&&_0x8a9a73==_0x4883f0['id']&&!_0xfeff96['oldRange'];});for(const _0x407df4 of _0x299301){if('insert'!=_0x407df4['type']||'tableCellSuggestion'!=_0x407df4['name']||0x1!=_0x407df4['length'])continue;const _0x2293ea=_0x4ad662['createRange'](_0x407df4['position'],_0x407df4['position']['getShiftedBy'](0x1));if(!_0x593146['find'](({data:_0x5dbd50})=>_0x5dbd50['newRange']['isEqual'](_0x2293ea))){for(const {name:_0x487cc4,data:_0x4faeaa}of _0x593146)if(_0x2293ea['containsRange'](_0x4faeaa['newRange'])){_0x4ad662['updateMarker'](_0x487cc4,{'range':_0x2293ea}),_0x105bbe=!0x0;break;}}}return _0x105bbe;}),_0x23fb7a['model']['document']['registerPostFixer'](_0x543a53=>{let _0x5288e=!0x1;const _0x5e6bde=_0x23fb7a['plugins']['get']('Users')['me'],_0x5a3844=_0x5e6d79['getSuggestions']()['filter'](_0x3230ac=>_0x3230ac['isInContent']&&_0x3230ac['author']==_0x5e6bde),_0x4f58e0=new Set(),_0x3bbb9f=new Set();for(const _0x4a1c09 of _0x5a3844)if('tablePaste'==_0x4a1c09['subType'])for(const _0x715ee9 of _0x4a1c09['getMarkers']()){const _0xf80df0=_0x715ee9['getRange']()['getContainedElement']();if(_0xf80df0){if(_0xf80df0['is']('element','tableCellSuggestion')&&Ke(_0xf80df0)){_0x4a1c09['removeMarker'](_0x715ee9['name']),_0x4f58e0['add'](_0xf80df0),_0x5288e=!0x0;const _0x4650bb=_0xf80df0['nextSibling'],_0x397d72=_0xf80df0['previousSibling'],_0x2c905c=_0x4650bb&&_0x4650bb['is']('element','tableCellSuggestion'),_0x41e886=_0x397d72&&_0x397d72['is']('element','tableCellSuggestion');_0x2c905c&&!_0x4f58e0['has'](_0x4650bb)&&_0x3bbb9f['add'](_0x4650bb),_0x41e886&&!_0x4f58e0['has'](_0x397d72)&&_0x3bbb9f['add'](_0x397d72);}else _0xf80df0['is']('element','paragraph')&&_0xf80df0['isEmpty']&&(_0x4a1c09['removeMarker'](_0x715ee9['name']),_0x5288e=!0x0);}}else{if('tablePasteCell'==_0x4a1c09['subType']){if(!_0x4a1c09['attributes']||!_0x4a1c09['attributes']['tablePasteChainId'])continue;const _0x12390a=_0x4a1c09['attributes']['markerAttributes'];if(_0x12390a&&Object['keys'](_0x12390a)['length'])continue;const _0x176a31=_0x4a1c09['attributes']['tablePasteChainId'];let _0x441387=!0x0,_0x55ac51=!0x0;for(const _0x36fb20 of _0x5a3844)if(_0x36fb20['subType']&&_0x36fb20['subType']['startsWith']('tablePaste')){if(!_0x36fb20['attributes']['tablePasteChainId']){_0x55ac51=!0x1;break;}if(_0x36fb20['id']!=_0x4a1c09['id']&&_0x36fb20['attributes']['tablePasteChainId']==_0x176a31){_0x441387=!0x1;break;}}_0x55ac51&&_0x441387&&(_0x4a1c09['removeMarkers'](),_0x5288e=!0x0);}}for(const _0x462997 of _0x4f58e0)_0x543a53['remove'](_0x462997);for(const _0x424306 of _0x3bbb9f)_0x543a53['unwrap'](_0x424306);return _0x5288e;}),_0x23fb7a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x7ec9fa=>_0x26f5c4(_0x7ec9fa),'converterPriority':'high'}),_0x23fb7a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3abae4,_0x3f1881)=>_0x3f1881['options']['showSuggestionHighlights']?_0x26f5c4(_0x3abae4,!0x1):null,'converterPriority':'high'});const _0x31852f=_0x23fb7a['editing']['view'];this['listenTo'](_0x31852f['document'],'clipboardOutput',(_0x4b0773,_0x97190a)=>{const _0xe39fd4=[];for(const _0x3d6725 of _0x31852f['createRangeIn'](_0x97190a['content'])['getItems']())_0x3d6725['is']('element','suggestion-td')&&_0xe39fd4['push'](_0x3d6725);_0x31852f['change'](_0x2c87a8=>{for(const _0xc56fe of _0xe39fd4)_0x2c87a8['move'](_0x2c87a8['createRangeIn'](_0xc56fe),_0x2c87a8['createPositionBefore'](_0xc56fe)),_0x2c87a8['remove'](_0xc56fe);});});}};function Ke(_0x4abd69){if(_0x4abd69['isEmpty'])return!0x0;const _0x2b4387=_0x4abd69['getChild'](0x0);return _0x2b4387['is']('element','paragraph')&&_0x2b4387['isEmpty'];}function Xe(_0xf4242,_0x27f68c={},_0x9c3a81){for(const {isAnchor:_0x530834,cellHeight:_0x47daf7,cellWidth:_0x81feae}of _0x9c3a81['createTableWalker'](_0xf4242,{'includeAllSlots':!0x0,..._0x27f68c}))if(!_0x530834||0x1!=_0x47daf7||0x1!=_0x81feae)return!0x1;return!0x0;}var qe=class extends _0x46623c{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4d54fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d54fe['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x4d54fe['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x4d54fe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4d54fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x3d0114=_0x4d54fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x4d54fe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x4d7b54,_0xb2e0f0)=>{_0x3d0114(_0x4d7b54,_0xb2e0f0),this['_restoreCellWidths'](_0x4d7b54[0x0]['start']['nodeAfter'],_0xb2e0f0['commandParams'][0x0]['cellWidths']);}),_0x4d54fe['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x20680e,_0xf47028){const _0x88a3d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5559af=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x159e50=_0xf47028['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xebe54c=_0x5559af['getColumnGroupElement'](_0x159e50);let _0x2f6aaf=_0xebe54c?_0x5559af['getTableColumnsWidths'](_0xebe54c):null,_0x100dfc=_0x159e50['getAttribute']('tableWidth')||null;const _0x125433=_0xf47028['tableWidth']||_0x100dfc,_0x518b59=_0xf47028['columnWidths']||_0x2f6aaf;let _0x5c5b1e=this['_getCellWidths'](_0x159e50);const _0x48cf3a=this['_foldResizeTableSuggestion'](_0x159e50);_0x48cf3a&&(_0x100dfc=_0x48cf3a['tableWidth'],_0x2f6aaf=_0x48cf3a['columnWidths'],_0x5c5b1e=_0x48cf3a['cellWidths']||_0x5c5b1e),_0x20680e({'table':_0x159e50,'tableWidth':_0x125433,'columnWidths':_0x518b59}),_0x88a3d0['markBlockFormat'](_0x159e50,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x100dfc,'columnWidths':_0x2f6aaf,'cellWidths':_0x5c5b1e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x46e3b8,_0x1641b1={}){if(void 0x0===_0x1641b1['value']||''===_0x1641b1['value'])return void _0x46e3b8(_0x1641b1);const _0x1f1b3e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ea544=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5e9f28=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x1641b1['batch']||(_0x1641b1['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x1641b1['batch'],()=>{const _0x1b70fe=_0x3ea544['getColumnGroupElement'](_0x5e9f28);let _0x283bca=_0x1b70fe?_0x3ea544['getTableColumnsWidths'](_0x1b70fe):null,_0x1867bd=_0x5e9f28['getAttribute']('tableWidth')||null,_0x9e7e1b=this['_getCellWidths'](_0x5e9f28);const _0x4cbcf0=this['_foldResizeTableSuggestion'](_0x5e9f28,!0x0);_0x4cbcf0&&(_0x1867bd=_0x4cbcf0['tableWidth'],_0x283bca=_0x4cbcf0['columnWidths'],_0x9e7e1b=_0x4cbcf0['cellWidths']||_0x9e7e1b),_0x46e3b8(_0x1641b1),_0x1f1b3e['markBlockFormat'](_0x5e9f28,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1867bd,'columnWidths':_0x283bca,'cellWidths':_0x9e7e1b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x1e4813,_0x126112=!0x1){const _0x29f92c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ff551=this['editor']['plugins']['get']('Users')['me'];for(const _0x48be4b of _0x29f92c['getSuggestions']({'skipNotAttached':!0x0})){const _0x11877d=_0x48be4b['getContainedElement']();if('resizeTable'===_0x48be4b['subType']&&_0x11877d===_0x1e4813){_0x48be4b['author']!==_0x3ff551&&(_0x126112?_0x48be4b['removeMarkers']():_0x48be4b['discard']());const _0x5abfb2=_0x48be4b['data']['commandParams'];return{'tableWidth':_0x5abfb2[0x0]['tableWidth'],'columnWidths':_0x5abfb2[0x0]['columnWidths'],'cellWidths':_0x5abfb2[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x32aa27){const _0x5ad2da=[];for(const _0x247f6c of _0x32aa27['getChildren']())if(_0x247f6c['is']('element','tableRow')){for(const _0x1d1ea6 of _0x247f6c['getChildren']())_0x5ad2da['push'](_0x1d1ea6['getAttribute']('tableCellWidth')||null);}return _0x5ad2da;}_restoreCellWidths(_0x3859d0,_0x530532){_0x530532&&this['editor']['model']['change'](_0x56dad9=>{let _0x198e7b=0x0;for(const _0xb13175 of _0x3859d0['getChildren']())if(_0xb13175['is']('element','tableRow'))for(const _0x13feb5 of _0xb13175['getChildren']()){const _0x48c0df=_0x530532[_0x198e7b++];_0x48c0df&&_0x56dad9['setAttribute']('tableCellWidth',_0x48c0df,_0x13feb5);}});}handleSuggestionDescription(_0x165a49){if('formatBlock'!=_0x165a49['type']&&'formatInline'!=_0x165a49['type'])return;const {data:_0x5bc414}=_0x165a49;return _0x5bc414&&'resizeTable'===_0x5bc414['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x46623c{afterInit(){const _0x2c3271=this['editor'];_0x2c3271['plugins']['has']('Template')&&_0x2c3271['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x46623c{afterInit(){const _0x5d2598=this['editor'];if(!_0x5d2598['commands']['get']('insertTableOfContents'))return;_0x5d2598['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xe35ced=_0x5d2598['plugins']['get']('TrackChangesEditing'),_0xe3da1e=_0x5d2598['locale'];_0xe35ced['descriptionFactory']['registerElementLabel']('tableOfContents',_0x535dbc=>Ot(_0xe3da1e,'ELEMENT_TABLE_OF_CONTENTS',_0x535dbc));}},Ze=class extends _0x46623c{afterInit(){const _0x11d7a0=this['editor'];_0x11d7a0['plugins']['has']('Title')&&(_0x11d7a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x11d7a0['locale'],'ELEMENT_TITLE')),_0x11d7a0['model']['document']['registerPostFixer'](_0x249414=>{let _0x3ed25e=!0x1;const _0x4a9f01=Array['from'](_0x11d7a0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4565d5,data:_0x5b86df}of _0x4a9f01){const {group:_0x483d09}=et(_0x4565d5);if('suggestion'!==_0x483d09||!_0x5b86df['newRange'])continue;const _0x529075=_0x5b86df['newRange'],_0xb4404b=_0x529075['end']['nodeBefore'];if(!_0xb4404b||!_0xb4404b['is']('element','title-content'))continue;if(!_0x529075['start']['isTouching'](_0x529075['end']))continue;const _0x34dc19=_0x11d7a0['model']['schema']['getNearestSelectionRange'](_0x529075['end'],'forward');if(_0x34dc19&&_0x34dc19['isCollapsed']){const _0x460a78=_0x249414['createRange'](_0x529075['start'],_0x34dc19['start']);_0x460a78['isEqual'](_0x529075)||(_0x249414['updateMarker'](_0x4565d5,{'range':_0x460a78}),_0x3ed25e=!0x0);}_0x3ed25e||(_0x249414['removeMarker'](_0x4565d5),_0x3ed25e=!0x0);}return _0x3ed25e;}));}},Je=class extends _0x46623c{afterInit(){const _0x1fb0b7=this['editor'],_0x53eb50=_0x1fb0b7['plugins']['get']('TrackChangesEditing');_0x1fb0b7['plugins']['has']('Uploadcare')&&(_0x53eb50['enableCommand']('uploadcare'),_0x1fb0b7['plugins']['has']('UploadcareImageEdit')&&(_0x53eb50['enableCommand']('uploadcareImageEdit'),_0x53eb50['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x53eb50['descriptionFactory']['registerDescriptionCallback'](_0x3dd58e=>{if('attribute'!=_0x3dd58e['type'])return;const {data:_0x1d8db9}=_0x3dd58e;return _0x1d8db9&&'uploadcareImageId'==_0x1d8db9['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x46623c{afterInit(){const _0x4e1620=this['editor'],_0x10bc4b=_0x4e1620['plugins']['get']('TrackChangesEditing');_0x4e1620['plugins']['has']('UndoEditing')&&(_0x10bc4b['enableCommand']('undo'),_0x10bc4b['enableCommand']('redo'));}},en=class extends _0x46623c{static get requires(){return[Pe];}afterInit(){const _0x2ee002=this['editor'];_0x2ee002['plugins']['has']('TableCaptionEditing')&&_0x2ee002['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x46623c{tableProperties;tableCellProperties;constructor(_0x5c42a4){super(_0x5c42a4),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4f90d2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x255f30 of this['tableProperties'])_0x4f90d2['enableCommand'](_0x255f30,(_0x19bdee,_0x4445c9)=>{const _0xb05c20=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x255f30,[_0xb05c20],this['tableProperties'],'tableProperties',_0x19bdee,_0x4445c9);});_0x4f90d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4f90d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f90d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x53ada1,_0xdfc21c)=>this['handleDiscardAction'](this['tableProperties'],_0x53ada1,_0xdfc21c)),_0x4f90d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x165a63 of this['tableCellProperties'])this['editor']['commands']['get'](_0x165a63)&&_0x4f90d2['enableCommand'](_0x165a63,(_0x19f790,_0xe0ee5f)=>{const _0x5aa3a6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x165a63,_0x5aa3a6,this['tableCellProperties'],'tableCellProperties',_0x19f790,_0xe0ee5f);});_0x4f90d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4f90d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f90d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x808ae,_0x1efd6c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x808ae,_0x1efd6c)),_0x4f90d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4f90d2['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4f90d2['descriptionFactory']['registerDescriptionCallback'](_0x41c266=>this['handleSuggestionDescription'](_0x41c266)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x20b7cc,_0x401b03,_0x2cd25b,_0x4835b6,_0x3a4c59,_0x57cb6a){const _0x25d312=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x57cb6a['batch'],()=>{for(const _0x5844f8 of _0x401b03)if(this['_getSuggestion'](_0x5844f8,_0x4835b6))_0x3a4c59(_0x57cb6a);else{const _0x8b4e2={};for(const _0x5a7686 of _0x2cd25b){const _0xefb834=_0x5844f8['getAttribute'](_0x5a7686);void 0x0!==_0xefb834&&(_0x8b4e2[_0x5a7686]=_0xefb834);}const _0xc2ed8a=this['_getResizedColumnWidths'](_0x5844f8);_0xc2ed8a&&(_0x8b4e2['columnWidths']=_0xc2ed8a),_0x3a4c59(_0x57cb6a),_0x25d312['markBlockFormat'](_0x5844f8,{'commandParams':[_0x8b4e2]},[],_0x4835b6);}});}handleDiscardAction(_0x17c7a9,_0x18d728,_0x50602e){const _0x577571=_0x18d728[0x0]['start']['nodeAfter'],_0x175c0f=_0x50602e['commandParams'][0x0];this['editor']['model']['change'](_0x2f364f=>{for(const _0x28e888 of _0x17c7a9)void 0x0!==_0x175c0f[_0x28e888]?_0x2f364f['setAttribute'](_0x28e888,_0x175c0f[_0x28e888],_0x577571):_0x2f364f['removeAttribute'](_0x28e888,_0x577571);if(_0x175c0f['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x412856=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5e3e9e=_0x412856['getColumnGroupElement'](_0x577571);if(_0x5e3e9e){const _0x564656=_0x412856['getTableColumnsWidths'](_0x5e3e9e),_0x4dd513=_0x577571['getAttribute']('tableWidth');if(('string'==typeof _0x4dd513&&_0x4dd513['trim']()['endsWith']('px'))!==_0x564656['some'](_0x3b3156=>'string'==typeof _0x3b3156&&_0x3b3156['endsWith']('px'))){const _0x4825bf=_0x412856['getTableColumnElements'](_0x5e3e9e);_0x175c0f['columnWidths']['forEach']((_0x2ea810,_0xf13a19)=>{_0x4825bf[_0xf13a19]&&_0x2f364f['setAttribute']('columnWidth',_0x2ea810,_0x4825bf[_0xf13a19]);});}}}});}_getResizedColumnWidths(_0x57e5f2){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x57e5f2['is']('element','table'))return;const _0x525dd9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4c3612=_0x525dd9['getColumnGroupElement'](_0x57e5f2);return _0x4c3612?_0x525dd9['getTableColumnsWidths'](_0x4c3612):void 0x0;}handleSuggestionDescription(_0x425352){if(_0x425352['data'])switch(_0x425352['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x428158,_0x36048f){const _0x5ee220=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2b5d1b of _0x5ee220['getSuggestions']({'skipNotAttached':!0x0})){const _0x4f086e=_0x2b5d1b['getContainedElement']();if(_0x2b5d1b['subType']===_0x36048f&&_0x4f086e===_0x428158)return _0x2b5d1b;}return null;}_registerTablePropertiesAttributes(){const _0x4791c2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa969f7=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x309329 of _0xa969f7){const _0x2270e5=_0x309329['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4791c2['descriptionFactory']['registerAttributeLabel'](_0x309329,Ot(this['editor']['locale'],'FORMAT_'+_0x2270e5));}}},sn=class extends _0x46623c{afterInit(){const _0x49eb7f=this['editor'];if(!_0x49eb7f['plugins']['has']('LineHeight'))return;const _0x1a6d1b=_0x49eb7f['plugins']['get']('TrackChangesEditing'),_0x92a0de=_0x49eb7f['locale'];_0x1a6d1b['enableDefaultAttributesIntegration']('lineHeight'),_0x1a6d1b['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x92a0de,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x46623c{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x20d369,_0x5bcc45,_0x56d88b,_0x2c21b8,_0x54de65,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e0612){super(_0x1e0612),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4dc2f8,_0x29f431,_0x1dbd92,_0x5ee00d)=>{this['_model']['change'](()=>{for(const _0x873510 of[..._0x5ee00d,..._0x1dbd92])this['_model']['markers']['has'](_0x873510)&&_0x1e0612['editing']['reconvertMarker'](_0x873510);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1e0612['plugins']['get'](_0x20d369),this['_suggestionsConversion']=_0x1e0612['plugins']['get'](_0x5bcc45),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1e0612['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1e0612['config']['get']('trackChanges.trackFormatChanges'),_0x1e0612['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1e0612['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x1e0612,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x3c434f=this['editor'];_0x3c434f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34b4d1,{writer:_0x3b4d5b})=>{let _0x598aa0='suggestion:'+_0x34b4d1['getAttribute']('suggestion-type')+':'+_0x34b4d1['getAttribute']('id');return _0x34b4d1['getAttribute']('marker-count')&&(_0x598aa0+=':'+_0x34b4d1['getAttribute']('marker-count')),_0x3b4d5b['createElement']('$marker',{'data-name':_0x598aa0});}}),_0x3c434f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3c434f['model']['document']['registerPostFixer'](_0x2a24cd=>{let _0x197011=!0x1;const _0xcda93f=Array['from'](_0x3c434f['model']['document']['differ']['getChangedMarkers']()),_0x199283=new Set();for(const {name:_0x1a3d2e,data:_0x58cea8}of _0xcda93f){const {group:_0x5dd2d2,type:_0x36c075,subType:_0x1e1652,id:_0x38e87e}=et(_0x1a3d2e);if('suggestion'!==_0x5dd2d2)continue;const _0x4fc567=_0x1e1652?'suggestion:'+_0x36c075+':'+_0x1e1652+':'+_0x38e87e:'suggestion:'+_0x36c075+':'+_0x38e87e,_0x2d7d3c=_0x3c434f['model']['markers']['getMarkersGroup'](_0x4fc567),_0xe076b3=_0x3c434f['model']['markers']['get'](_0x1a3d2e),_0x2a8a28=this['_suggestions']['get'](_0x38e87e);if(null!=_0x58cea8['newRange']){'formatInline'==_0x36c075&&(_0x197011=_0x197011||un(_0x58cea8['newRange'],_0x1a3d2e,_0x2a24cd,_0x3c434f['model']['schema']));const _0x2344bf='attribute'==_0x36c075&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x1e1652)),_0x5c15ad='attribute'==_0x36c075&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x1e1652));if(_0x58cea8['newRange']['isCollapsed']||'$graveyard'==_0x58cea8['newRange']['root']['rootName']||'formatBlock'==_0x36c075&&!hn(_0x58cea8['newRange'])||_0x2344bf&&!hn(_0x58cea8['newRange'])||_0x5c15ad&&gn(_0x58cea8['newRange'])||'deletion'==_0x36c075&&gn(_0x58cea8['newRange'])||_0xe076b3&&fn(_0xe076b3,_0x2d7d3c))_0x2a24cd['removeMarker'](_0x1a3d2e),_0x197011=!0x0;else{if(!_0x2a8a28||!_0x2a8a28['isInContent'])continue;if(_0x58cea8['newRange']&&_0x58cea8['oldRange']&&_0x58cea8['newRange']['isEqual'](_0x58cea8['oldRange']))continue;_0x199283['add'](_0x2a8a28);}}}return _0x199283['size']>0x0&&(_0x197011=!!this['_joinWithAdjacentSuggestions'](_0x199283)||_0x197011),_0x197011;}),_0x3c434f['model']['document']['registerPostFixer'](_0x2e63d5=>{let _0x12b62f=!0x1;for(const _0x594bb6 of _0x3c434f['model']['document']['differ']['getChanges']())if('insert'==_0x594bb6['type'])for(const _0x3604ab of this['_suggestions']['values']()){if(_0x3604ab['isMultiRange']||!_0x3604ab['isInContent'])continue;const _0x2ac53c='formatBlock'==_0x3604ab['type'],_0x3a0921=this['_getAttributeKey'](_0x3604ab),_0x406c56=_0x3a0921&&this['_suggestionsConversion']['isBlockAttribute'](_0x3a0921);if(!_0x2ac53c&&!_0x406c56)continue;const _0x1b0205=_0x3604ab['getFirstRange']();if(_0x1b0205['start']['parent']!=_0x1b0205['end']['parent']&&!_0x1b0205['end']['isAtEnd']){const _0x16ae52=_0x3c434f['model']['createPositionAt'](_0x1b0205['start']['nodeAfter'],'end'),_0x27de17=_0x3c434f['model']['createRange'](_0x1b0205['start'],_0x16ae52);_0x2e63d5['updateMarker'](_0x3604ab['getFirstMarker'](),{'range':_0x27de17}),_0x12b62f=!0x0;}}return _0x12b62f;}),_0x3c434f['model']['document']['registerPostFixer'](_0x47413d=>this['_processAttributeChanges'](_0x47413d)),_0x3c434f['model']['document']['registerPostFixer'](_0x253972=>!_0x253972['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x253972)),_0x3c434f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3c434f['model']['document']['on']('change:data',(_0x5876d8,_0x4a2af7)=>{if(!_0x4a2af7['isLocal']||_0x4a2af7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x29bf78=_0x3c434f['model']['document']['differ']['getChanges']();if(0x0==_0x29bf78['length'])return;const _0x53aec1=[],_0x4846df=_0x29bf78['filter'](_0x123fd4=>'attribute'==_0x123fd4['type']),_0x3ddff0=_0x29bf78['filter'](_0x24cc8b=>'insert'==_0x24cc8b['type']&&'$text'!=_0x24cc8b['name']);for(const _0x1719df of _0x4846df)this['_suggestionsConversion']['isRegisteredAttribute'](_0x1719df['attributeKey'])&&_0x53aec1['push']({'key':_0x1719df['attributeKey'],'newValue':_0x1719df['attributeNewValue'],'oldValue':_0x1719df['attributeOldValue'],'range':mn(_0x1719df['range'],_0x3c434f['model'])});for(const _0x19f756 of _0x3ddff0){if('rename'!=_0x19f756['action']&&'refresh'!=_0x19f756['action'])continue;const _0xd4edbe=En(_0x19f756['position']['nodeAfter'],_0x3c434f['model']),_0x3685af=_0x19f756['before'];'rename'==_0x19f756['action']&&_0x53aec1['push']({'key':rn,'newValue':_0x19f756['name'],'oldValue':_0x3685af['name'],'range':_0xd4edbe});for(const [_0x334b36,_0x89754]of _0x3685af['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x334b36))continue;const _0x41cbe7=_0x19f756['attributes']['get'](_0x334b36);_0x89754!==_0x41cbe7&&_0x53aec1['push']({'key':_0x334b36,'newValue':_0x41cbe7,'oldValue':_0x89754,'range':_0xd4edbe});}for(const [_0x4b0606,_0x263679]of _0x19f756['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x4b0606)&&(_0x3685af['attributes']['has'](_0x4b0606)||_0x53aec1['push']({'key':_0x4b0606,'newValue':_0x263679,'oldValue':null,'range':_0xd4edbe}));}0x0!=_0x53aec1['length']&&_0x3c434f['model']['enqueueChange'](_0x4a2af7,_0x1b387b=>{const _0x5d3251=_0xb256dd();for(const {range:_0x3e7f73,key:_0x1b4fc7,oldValue:_0x177cb4,newValue:_0x8c32e5}of _0x53aec1)this['markAttributeChange'](_0x3e7f73,_0x1b4fc7,_0x177cb4,_0x8c32e5,{'groupId':_0x5d3251});this['_reduceExistingSuggestions'](_0x1b387b,_0x53aec1);});},{'priority':'lowest'}),_0x3c434f['model']['markers']['on']('update:suggestion',(_0xb08fc3,_0x4f14c8,_0x307c55)=>{if(null==_0x307c55){const {id:_0x32572b}=et(_0x4f14c8['name']),_0x156530=this['_suggestions']['get'](_0x32572b);_0x156530&&_0x156530['addMarkerName'](_0x4f14c8['name']);}}),_0x3c434f['model']['document']['on']('change:data',()=>{const _0x349e58=Array['from'](_0x3c434f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20220d=>'suggestion'===et(_0x20220d['name'])['group']);if(0x0===_0x349e58['length'])return;_0x349e58['sort']((_0x389454,_0x881d6e)=>{const _0x2aae5c=_0x389454['data']['oldRange'],_0xa27d5d=_0x881d6e['data']['oldRange'];return null===_0x2aae5c&&null===_0xa27d5d?0x0:null===_0x2aae5c&&null!==_0xa27d5d?-0x1:null!==_0x2aae5c&&null===_0xa27d5d?0x1:_0x2aae5c['start']['isBefore'](_0xa27d5d['start'])?-0x1:0x1;});const _0x26bdd3=new Set(),_0x4cffdb=new Set();for(const {name:_0x174447,data:_0x27f330}of _0x349e58){const {id:_0x10afdf}=et(_0x174447);if(null===_0x27f330['oldRange']){const _0x161abb=this['_handleNewSuggestionMarker'](_0x174447);_0x4cffdb['add'](_0x161abb);}else{const _0x495655=this['_suggestions']['get'](_0x10afdf);null!==_0x27f330['newRange']||_0x495655['isInContent']?(_0x26bdd3['add'](_0x495655['head']),_0x4cffdb['add'](_0x495655)):this['_removeSuggestion'](_0x495655);}}_0x4cffdb['size']>0x0&&this['_refreshSuggestionsChain'](_0x4cffdb);for(const _0x16e0e3 of _0x26bdd3)this['fire']('suggestionChanged',_0x16e0e3);}),_0x3c434f['model']['on']('applyOperation',(_0x2216c3,_0x500c7f)=>{const _0x24984f=_0x500c7f[0x0];if(!this['_suggestions']['size'])return;if(!_0x24984f['isDocumentOperation'])return;if(_0x24984f['batch']['isUndo']||!_0x24984f['batch']['isLocal'])return;let _0x181ad4,_0x42a76d;switch(_0x24984f['type']){case'insert':_0x181ad4=_0x3c434f['model']['createPositionAt'](_0x24984f['position']),_0x42a76d=_0x181ad4['getShiftedBy'](_0x24984f['howMany']);break;case'split':_0x181ad4=_0x3c434f['model']['createPositionAt'](_0x24984f['splitPosition']),_0x42a76d=_0x3c434f['model']['createPositionAt'](_0x24984f['moveTargetPosition']);break;case'move':_0x181ad4=_0x3c434f['model']['createPositionAt'](_0x24984f['targetPosition']),_0x42a76d=_0x181ad4['getShiftedBy'](_0x24984f['howMany']);break;default:return;}const _0x1abf9f=_0x3c434f['model']['createRange'](_0x181ad4,_0x42a76d);_0x3c434f['model']['change'](()=>{for(const {suggestion:_0x36d65a,meta:_0x4abf87}of this['_findSuggestions'](_0x1abf9f)){if(_0x36d65a['isMultiRange'])continue;if('formatInline'==_0x36d65a['type'])continue;const _0x1890c5=this['_getAttributeKey'](_0x36d65a);if(_0x1890c5&&this['_suggestionsConversion']['isBlockAttribute'](_0x1890c5)&&'split'!=_0x24984f['type'])continue;const _0x2779eb=_0x36d65a['data']&&_0x36d65a['data']['multipleBlocks'];('formatBlock'!=_0x36d65a['type']||'split'==_0x24984f['type']&&!_0x2779eb)&&(_0x4abf87['containsRangeInObject']||'insertion'==_0x36d65a['type']&&_0x4abf87['isOwn']||_0x36d65a['getFirstRange']()['containsRange'](_0x1abf9f)&&this['_breakSuggestionMarker'](_0x36d65a,_0x181ad4,_0x42a76d));}});},{'priority':'lowest'}),_0x3c434f['model']['on']('deleteContent',(_0x466df2,_0xb873cd)=>{const _0x247b84=_0xb873cd[0x0],_0x39bff5=_0xb873cd[0x1];if(_0x39bff5&&_0x39bff5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x247b84['isCollapsed'])return;const _0x599998=_0x3c434f['model']['schema'],{start:_0x38dcb0,end:_0x4733ea}=_0x247b84['getFirstRange'](),_0x2e141e=_0x38dcb0['nodeAfter']&&_0x599998['isLimit'](_0x38dcb0['nodeAfter'])?null:_0x599998['getNearestSelectionRange'](_0x38dcb0,'forward'),_0x37ca5b=_0x4733ea['nodeBefore']&&_0x599998['isLimit'](_0x4733ea['nodeBefore'])?null:_0x599998['getNearestSelectionRange'](_0x4733ea,'backward'),_0x1f750e=_0x3c434f['model']['createRange'](_0x2e141e?_0x2e141e['start']:_0x38dcb0,_0x37ca5b?_0x37ca5b['end']:_0x4733ea);_0x3c434f['model']['change'](_0x520de9=>{this['markDeletion'](_0x1f750e);const _0x4def8d=_0x3c434f['model']['schema']['getNearestSelectionRange'](_0x1f750e['start']);_0x247b84['is']('documentSelection')?_0x520de9['setSelection'](_0x4def8d):_0x247b84['setTo'](_0x4def8d);}),_0x466df2['stop']();},{'priority':_0x2abd23['normal']+0xa}),_0x3c434f['model']['on']('insertContent',(_0x35d4c2,_0x2a5e70)=>{const _0x1caae2=_0x2a5e70[_0x2a5e70['length']-0x1];_0x1caae2&&_0x1caae2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3c434f['model']['change'](()=>{let _0x32369c=_0x3c434f['model']['insertContent'](_0x2a5e70[0x0],_0x2a5e70[0x1],_0x2a5e70[0x2],{'forceDefaultExecution':!0x0});if(!_0x32369c)return;_0x35d4c2['return']=_0x32369c['clone']();const _0x10a9ae=_0x32369c['end']['nodeBefore'],_0x40a6f8=_0x3c434f['model']['schema'];_0x10a9ae&&_0x40a6f8['isBlock'](_0x10a9ae)&&!_0x40a6f8['isObject'](_0x10a9ae)&&(_0x32369c=_0x3c434f['model']['createRange'](_0x32369c['start'],_0x3c434f['model']['createPositionAt'](_0x10a9ae,'end'))),this['markInsertion'](_0x32369c);}),_0x35d4c2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1a51d0=new pt(_0x3c434f,this['_suggestions']);_0x3c434f['commands']['add']('acceptSuggestion',_0x1a51d0),this['enableCommand']('acceptSuggestion');const _0x5d6dbf=new Lt(_0x3c434f,this['_suggestions']);_0x3c434f['commands']['add']('discardSuggestion',_0x5d6dbf),this['enableCommand']('discardSuggestion'),_0x3c434f['commands']['add']('acceptAllSuggestions',new yt(_0x3c434f,_0x1a51d0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3c434f['commands']['add']('discardAllSuggestions',new yt(_0x3c434f,_0x5d6dbf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3c434f['commands']['add']('acceptSelectedSuggestions',new Nt(_0x3c434f,_0x1a51d0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3c434f['commands']['add']('discardSelectedSuggestions',new Nt(_0x3c434f,_0x5d6dbf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5a6514=_0x3c434f['plugins']['get'](_0x20d369);this['listenTo'](_0x5a6514,'addComment',(_0x49e59a,{threadId:_0x29271c})=>{const _0x1dc747=this['_suggestions']['get'](_0x29271c);_0x1dc747&&_0x1dc747['commentThread']&&0x1===_0x1dc747['commentThread']['length']&&this['_updateSuggestionData'](_0x29271c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5a6514,'removeComment',(_0x16caae,{threadId:_0x47c3d3})=>{const _0x2b1966=this['_suggestions']['get'](_0x47c3d3);_0x2b1966&&_0x2b1966['commentThread']&&!_0x2b1966['commentThread']['length']&&this['_updateSuggestionData'](_0x47c3d3,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x5b2270){const _0x568aac='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x9a2b1f=0x791b8,_0x523c2b=window['Date']['now'](),_0x3eaba6=_0x5b2270['editor'],_0x3d869c=new window['Promise'](_0x854fc9=>{_0x3eaba6['once']('ready',_0x854fc9);}),_0x53dfc3={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x7e3768=_0x3eaba6['config']['get']('licenseKey');async function _0x700a71(){let _0x43146a,_0x1fd1fc=null,_0x1d6561=null;try{return'GPL'==_0x7e3768?'NotAllowed':(_0x43146a=_0x30f104(),_0x43146a?(_0x43146a['usageEndpoint']&&(_0x1d6561=_0x341f05(_0x43146a['usageEndpoint'],_0x43146a['jti'])),await _0x246017()?_0x26a270()?_0x25d8f6()?'Expired':_0x242682()?('evaluation'==_0x43146a['licenseType']&&(_0x1fd1fc=_0x134ea4('EvaluationLimit')),await _0x247c64()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x25d8f6(){const _0x50c716=['evaluation','trial']['includes'](_0x43146a['licenseType'])?_0x523c2b/0x3e8:0xe10*_0x9a2b1f;return _0x43146a['exp']<_0x50c716;}function _0x26a270(){const _0x12193f=_0x43146a['features'];if(!_0x12193f)return!0x1;if(_0x12193f['includes']('*'))return!0x0;if(_0x12193f['includes']('TC'))return!0x0;if(_0x12193f['includes']('RTC')){if(_0x4f439c())return!0x0;if(_0x29fe32()||_0x3dd260())return!0x0;}return!0x1;}function _0x242682(){const _0x1ebfc9=_0x43146a['licensedHosts'];if(!_0x1ebfc9||0x0==_0x1ebfc9['length'])return!0x0;const {hostname:_0x2aa1c4}=new URL(window['location']['href']);if(_0x1ebfc9['includes'](_0x2aa1c4))return!0x0;const _0x49b496=_0x2aa1c4['split']('.');return _0x1ebfc9['filter'](_0x1a9b5b=>_0x1a9b5b['includes']('*'))['map'](_0x3390c4=>_0x3390c4['split']('.'))['filter'](_0x313cbf=>_0x313cbf['length']<=_0x49b496['length'])['map'](_0x571dbc=>Array(_0x49b496['length']-_0x571dbc['length'])['fill']('*'===_0x571dbc[0x0]?'*':'')['concat'](_0x571dbc))['some'](_0x2d90d3=>_0x49b496['every']((_0x2894b6,_0x185695)=>_0x2d90d3[_0x185695]===_0x2894b6||'*'===_0x2d90d3[_0x185695]));}function _0x247c64(){return _0x1fd1fc&&_0x1d6561?new window['Promise']((_0x359907,_0x2f4d58)=>{_0x1fd1fc['then'](_0x359907,_0x2f4d58),_0x1d6561['then'](_0x10d0d7=>{'Valid'!=_0x10d0d7&&_0x359907(_0x10d0d7);},_0x2f4d58);}):_0x1fd1fc||_0x1d6561||'Valid';}}function _0x341f05(_0x3942c1,_0x9f6c74){return new window['Promise'](_0x137802=>{if(_0x158f33())return _0x137802('Valid');_0x2a7e4f(),_0x3eaba6['decorate']('_sendUsageRequest');let _0x71c977=!0x1;const _0x23e624=_0xb256dd();function _0x184f0e(_0x5718f){return!!_0x5718f&&('object'==typeof _0x5718f||'function'==typeof _0x5718f)&&'function'==typeof _0x5718f['then']&&'function'==typeof _0x5718f['catch'];}function _0x4ca4b0(_0x4331b6){_0x26b4c9(_0x4331b6)['then'](_0x3c0910=>_0x3c0910&&'ok'==_0x3c0910['status']?_0x1e9061(_0x781e70(_0x23e624+_0x9f6c74))!=_0x3c0910['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x157a75=>(_0x131dd7(),_0x157a75),()=>{const _0xe1b592=_0x5ab9c2();return null==_0xe1b592?(_0x131dd7(),'Valid'):_0x523c2b-_0xe1b592>0x240c8400?'UsageLimit':'Valid';})['then'](_0x137802)['catch'](()=>{_0x137802('UsageLimit');});const _0x8ba960=0x36ee80;function _0x131dd7(){const _0x3dceea='llct-'+_0x1e9061(_0x781e70(_0x3942c1)),_0x16c184=_0x1ca6fc(_0x1e9061(window['Math']['ceil'](_0x523c2b/_0x8ba960)));window['localStorage']['setItem'](_0x3dceea,_0x16c184);}function _0x5ab9c2(){const _0x5a2e7a='llct-'+_0x1e9061(_0x781e70(_0x3942c1)),_0x53dd4d=window['localStorage']['getItem'](_0x5a2e7a);return _0x53dd4d?window['parseInt'](_0x1ca6fc(_0x53dd4d),0x10)*_0x8ba960:null;}function _0x26b4c9(_0x2e08c8){return new window['Promise']((_0x5e5257,_0x403d82)=>{_0x2e08c8['then'](_0x5e5257,_0x403d82),window['setTimeout'](_0x403d82,0x1d4c0);});}}_0x3eaba6['on']('_sendUsageRequest',(_0x5c14e4,_0x422273)=>{if(_0x422273[0x0]!=_0x3942c1)return _0x137802('UsageLimit');_0x422273[0x1]={..._0x422273[0x1],'requestId':_0x23e624};},{'priority':'high'}),_0x3eaba6['on']('_sendUsageRequest',_0x4b5937=>{_0x184f0e(_0x4b5937['return'])&&(_0x71c977=!0x0,_0x4ca4b0(_0x4b5937['return']));},{'priority':'low'}),_0x3d869c['then'](()=>{_0x71c977||_0x137802('UsageLimit');});});function _0x158f33(){return'auto'==_0x3eaba6['editing']['view']['_overlayModeHint'];}function _0x2a7e4f(){_0x3eaba6['editing']['view']['_overlayModeHint']='auto';}}function _0x134ea4(_0xb2b53e){const _0x366078=[new window['Promise'](_0xff97cc=>setTimeout(_0xff97cc,0x93ecc)),_0x3d869c['then'](()=>new window['Promise'](_0x77e13f=>{let _0x342b1f=0x0;_0x3eaba6['model']['on']('applyOperation',(_0x27bd1c,_0xcdf843)=>{_0xcdf843[0x0]['isDocumentOperation']&&_0x342b1f++,0x5e8==_0x342b1f&&(_0x77e13f(),_0x27bd1c['off']());});}))];return window['Promise']['race'](_0x366078)['then'](()=>_0xb2b53e);}async function _0x54500f(){await _0x3d869c,_0x3eaba6['model']['change']=_0x18179e,_0x3eaba6['model']['enqueueChange']=_0x18179e,_0x3eaba6['enableReadOnlyMode']('model');}function _0x4f439c(){return _0x229c5a('WebSocketGateway')&&'connected'==_0xc037e7('WebSocketGateway')['state'];}function _0x29fe32(){return _0x229c5a('RevisionViewerIntegration');}function _0x3dd260(){return _0x229c5a('TrackChangesDataGetter');}function _0x217384(_0xb1aac2){const _0x406843=_0x2ca7f1();_0x3eaba6[_0x406843]='trackChangesLicenseKey'+_0xb1aac2,'Valid'!=_0xb1aac2&&_0x54500f();}function _0x2ca7f1(){const _0x3360b7=window['String'](window['performance']['now']())['replace']('.','');let _0x32c539='R';for(let _0x120c01=0x0;_0x120c01<_0x3360b7['length'];_0x120c01+=0x2){let _0x225889=window['parseInt'](_0x3360b7['substring'](_0x120c01,_0x120c01+0x2));_0x225889>=0x3e&&(_0x225889-=0x3e),_0x32c539+=_0x568aac[_0x225889];}return _0x32c539;}function _0x30f104(){const _0x2b3eb9=_0x7e3768['split']('.');if(0x3!=_0x2b3eb9['length'])return null;return _0x535a73(_0x2b3eb9[0x1]);function _0x535a73(_0x5f346a){const _0xea839=_0x3519ad(_0x5f346a);return _0xea839&&_0x27b39a()?_0xea839:null;function _0x27b39a(){const _0xae3076=_0xea839['jti'],_0xe9b2bc=window['parseInt'](_0xae3076['substring'](_0xae3076['length']-0x8),0x10),_0x121fca={..._0xea839,'jti':_0xae3076['substring'](0x0,_0xae3076['length']-0x8)};return delete _0x121fca['vc'],_0x781e70(_0x121fca)==_0xe9b2bc;}}}async function _0x246017(){let _0x23552d=!0x0;try{const [_0x19427e,_0x50c754,_0x338e20]=_0x7e3768['split']('.');return _0x59d039(_0x19427e),await _0x2ce73d(_0x19427e,_0x50c754,_0x338e20),_0x23552d;}catch{return!0x1;}function _0x59d039(_0x2306e7){const _0x238fed=_0x3519ad(_0x2306e7);_0x238fed&&'ES256'==_0x238fed['alg']||(_0x23552d=!0x1);}async function _0x2ce73d(_0x47e601,_0x387fef,_0x1e6164){const _0x232696=window['Uint8Array']['from'](_0x6bf62b(_0x1e6164),_0x55877b=>_0x55877b['charCodeAt'](0x0)),_0x19e718=new window['TextEncoder']()['encode'](_0x47e601+'.'+_0x387fef),_0x4beaca=window['crypto']['subtle'];if(!_0x4beaca)return;const _0x121750=await _0x4beaca['importKey']('jwk',_0x53dfc3,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4beaca['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x121750,_0x232696,_0x19e718)||(_0x23552d=!0x1);}}function _0x3519ad(_0x4a3837){return _0x4a3837['startsWith']('ey')?JSON['parse'](_0x6bf62b(_0x4a3837)):null;}function _0x6bf62b(_0x14e3b4){return window['atob'](_0x14e3b4['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x781e70(_0x340835){let _0x5a152a=0x1505;function _0x177ec5(_0x15b239){for(let _0x247bc0=0x0;_0x247bc0<_0x15b239['length'];_0x247bc0++){const _0x56171c=_0x15b239['charCodeAt'](_0x247bc0);_0x5a152a=(_0x5a152a<<0x5)+_0x5a152a+_0x56171c,_0x5a152a&=_0x5a152a;}}function _0x1e2778(_0x109658){Array['isArray'](_0x109658)?_0x109658['forEach'](_0x1e2778):_0x109658&&'object'==typeof _0x109658?Object['entries'](_0x109658)['sort']()['forEach'](([_0x14997c,_0x24e371])=>{_0x177ec5(_0x14997c),_0x1e2778(_0x24e371);}):_0x177ec5(window['String'](_0x109658));}return _0x1e2778(_0x340835),_0x5a152a>>>0x0;}function _0x1e9061(_0x20faa3){return _0x20faa3['toString'](0x10)['padStart'](0x8,'0');}function _0x1ca6fc(_0x156040){return _0x156040['split']('')['reverse']()['join']('');}function _0x229c5a(_0x17603c){return _0x3eaba6['plugins']['has'](_0x17603c);}function _0xc037e7(_0x562297){return _0x3eaba6['plugins']['get'](_0x562297);}function _0x18179e(){}_0x217384(await _0x700a71());}(this);}set adapter(_0x111876){if(this['_adapter'])throw new _0x30d1b9('track-changes-adapter-already-set',this);this['_adapter']=_0x111876;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x548ce6=!0x1,toJSON:_0x5ae274=!0x1}={}){const _0x3cf70d=[];for(const _0x32bfe8 of this['_suggestions']['values']())_0x548ce6&&!_0x32bfe8['isInContent']||_0x3cf70d['push'](_0x32bfe8);return _0x5ae274?_0x3cf70d['map'](_0xb3f979=>_0xb3f979['toJSON']()):_0x3cf70d;}getSuggestion(_0x2e2d63){const _0x4a8289=this['_suggestions']['get'](_0x2e2d63);if(!_0x4a8289)throw new _0x30d1b9('track-changes-suggestion-not-found',this);return _0x4a8289;}hasSuggestion(_0x242d5a){return this['_suggestions']['has'](_0x242d5a);}addSuggestionData(_0x528a4d){const {authorId:_0x4da105,id:_0x37e4a2,originalSuggestionId:_0x1b804d,attributes:_0x27a2ac}=_0x528a4d,[_0x550da1,_0x13db76]=_0x528a4d['type']['split'](':'),_0xce684e=this['_suggestions']['get'](_0x37e4a2)||this['_createSuggestion'](_0x550da1,_0x13db76,_0x37e4a2,_0x4da105,_0x27a2ac,_0x1b804d);if(this['_addThreadToSuggestion'](_0xce684e),this['_checkSuggestionCorrectness'](_0xce684e,_0x550da1,_0x13db76||null,_0x4da105),_0xce684e['createdAt']=_0x528a4d['createdAt'],_0xce684e['_isDataLoaded']=!0x0,_0x27a2ac&&_0x27a2ac['@external']){const _0x59be84=_0x27a2ac['@external'],_0x23a869=this['_getExternalAuthor'](_0x59be84['authorName']);_0xce684e['authoredAt']=_0x59be84['createdAt'],_0xce684e['author']=_0x23a869;}else _0xce684e['authoredAt']=_0x528a4d['createdAt'];switch(_0x528a4d['data']&&(_0xce684e['data']=_0x528a4d['data']),_0x528a4d['attributes']&&(_0xce684e['attributes']=_0x528a4d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xce684e['_saved']=!0x0),this['_suggestionState']['get'](_0xce684e)){case'notReady':this['_suggestionState']['set'](_0xce684e,'dataReady');break;case'markerReady':_0xce684e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xce684e])),this['_refreshSuggestionsChain'](new Set([_0xce684e])),this['_suggestionState']['set'](_0xce684e,'ready'),this['fire']('suggestionLoaded',_0xce684e)):this['_suggestionState']['set'](_0xce684e,'removed');}return _0xce684e;}acceptSuggestion(_0x3aa157){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x257830 of _0x3aa157['getAllAdjacentSuggestions']())_0x257830['accept']();});});}discardSuggestion(_0x256b99){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f0110 of _0x256b99['getAllAdjacentSuggestions']())_0x1f0110['discard']();});});}['enableCommand'](_0x259c03,_0x2d7c50){const _0x30d7fd=this['editor']['commands']['get'](_0x259c03);if(!_0x30d7fd)throw new _0x30d1b9('track-changes-command-not-found',this,{'commandName':_0x259c03});if(this['_enabledCommands']['has'](_0x30d7fd))throw new _0x30d1b9('track-changes-enable-command-twice',this,{'commandName':_0x259c03});this['_enabledCommands']['add'](_0x30d7fd),_0x2d7c50&&_0x30d7fd['on']('execute',(_0x13c1fc,_0x174ac8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x174ac8['length']>0x0&&_0x174ac8[_0x174ac8['length']-0x1]&&_0x174ac8[_0x174ac8['length']-0x1]['forceDefaultExecution']?_0x174ac8['pop']():(_0x13c1fc['return']=_0x2d7c50((..._0x43d7ed)=>_0x30d7fd['execute'](..._0x43d7ed,{'forceDefaultExecution':!0x0}),..._0x174ac8),_0x13c1fc['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x5ea25a){let _0x2b4f50,_0x5606f5;const _0x3e9766=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b4f50=_0x5ea25a();}catch(_0x41c405){_0x5606f5=_0x41c405;}return _0x3e9766||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5606f5&&_0x30d1b9['rethrowUnexpectedError'](_0x5606f5,this),_0x2b4f50;}markInsertion(_0x267c44,_0x488fb3=null,_0xbfab73={}){if(_0x267c44['isCollapsed'])return null;const _0x341b08=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xbfab73['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x511ab5,meta:_0x319bdc}of this['_findSuggestions'](_0x267c44,'insertion'))if(_0x319bdc['isOwn']){if(!_0x319bdc['isNextTo']){if(_0x319bdc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x511ab5,_0xbfab73))continue;return _0x511ab5;}if(pn(_0x511ab5,_0xbfab73))return _0x511ab5;this['_breakSuggestionMarker'](_0x511ab5,_0x267c44['start'],_0x267c44['end']);break;}if(_0x488fb3==_0x511ab5['subType']&&pn(_0x511ab5,_0xbfab73)){const _0xd0d584=_0x511ab5['getFirstRange']();return _0xd0d584['start']['isEqual'](_0x267c44['end'])?this['_setSuggestionRange'](_0x511ab5,this['_model']['createRange'](_0x267c44['start'],_0xd0d584['end'])):this['_setSuggestionRange'](_0x511ab5,this['_model']['createRange'](_0xd0d584['start'],_0x267c44['end'])),_0x511ab5;}}const _0x10bf64=_0xb256dd(),_0x5cd6c8=_0x341b08['id'],_0x114cd4=_0x488fb3?'insertion:'+_0x488fb3:'insertion',_0x46686f=this['_setSuggestionData']({'id':_0x10bf64,'type':_0x114cd4,'createdAt':new Date(),'authorId':_0x5cd6c8,'attributes':_0xbfab73});return this['_addSuggestionMarker'](_0x114cd4,_0x10bf64,_0x5cd6c8,_0x267c44),_0x46686f;}markMultiRangeInsertion(_0x2daffc,_0x5938e3='multi',_0x59c690={}){const _0x1f44fe=this['editor']['plugins']['get']('Users')['me'],_0x2c117f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5938e3,'join');this['_trackingSessionId']&&(_0x59c690['trackingSessionId']=this['_trackingSessionId']);for(const _0x13645e of this['getSuggestions']())if(_0x13645e['author']['id']==_0x1f44fe['id']&&'insertion'==_0x13645e['type']&&_0x13645e['subType']==_0x5938e3&&pn(_0x13645e,_0x59c690)&&(_0x2c117f(_0x13645e['getRanges'](),_0x2daffc)||_0x2c117f(_0x2daffc,_0x13645e['getRanges']()))){for(const _0x37316e of _0x2daffc)_0x13645e['addRange'](_0x37316e);return _0x13645e;}for(const {suggestion:_0x4e6b85,meta:_0x47e18a}of this['_findSuggestions'](_0x2daffc,'insertion')){if(!_0x47e18a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x47e18a['containsRangeInObject'])continue;if(!pn(_0x4e6b85,_0x59c690))continue;let _0xd80d12=!0x0;for(const _0x2211b9 of _0x4e6b85['getRanges']())for(const _0x326b1c of _0x2daffc)if(!_0x2211b9['containsRange'](_0x326b1c)){_0xd80d12=!0x1;break;}if(_0xd80d12)return _0x4e6b85;}const _0x457db6=_0xb256dd(),_0x7c34b9=_0x1f44fe['id'],_0x421dec='insertion:'+_0x5938e3,_0x1323ab=this['_setSuggestionData']({'id':_0x457db6,'type':_0x421dec,'createdAt':new Date(),'authorId':_0x7c34b9,'attributes':_0x59c690});for(const _0x5e19bc of _0x2daffc)this['_addSuggestionMarker'](_0x421dec,_0x457db6,_0x7c34b9,_0x5e19bc,Mt['getMultiRangeId']());return _0x1323ab;}markInlineFormat(_0xba952b,_0xb60686,_0x4a08b4=null,_0x44471c={}){if(_0x4a08b4=_0x4a08b4||dn(_0xb60686),_0xba952b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x44471c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x509bfc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a08b4,'accept');return this['forceDefaultExecution'](()=>_0x509bfc([_0xba952b],_0xb60686,_0x44471c)),null;}const _0x119fdb=this['editor']['plugins']['get']('Users')['me'],_0x5bfb15=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28675e,meta:_0x54e6f2}of this['_findSuggestions'](_0xba952b,'insertion'))_0x54e6f2['isOwn']&&!_0x54e6f2['isInsideObject']&&_0x5bfb15['push'](..._0x28675e['getRanges']());}const _0x3c7505=function(_0x48b2a7,_0x5a47cb){const _0x5802b8=[];for(const _0x1047ea of _0x5a47cb){const _0x32bfc3=_0x48b2a7['getIntersection'](_0x1047ea);_0x32bfc3&&_0x5802b8['push'](_0x32bfc3);}return _0x5802b8;}(_0xba952b,_0x5bfb15),_0x4aca72=function(_0x4713c3,_0x392d38){const _0x1fbd9b=[_0x4713c3];for(const _0x6483c5 of _0x392d38){let _0x25dba7=0x0;for(;_0x25dba7<_0x1fbd9b['length'];){const _0x4382ce=_0x1fbd9b[_0x25dba7]['getDifference'](_0x6483c5);_0x1fbd9b['splice'](_0x25dba7,0x1,..._0x4382ce),_0x25dba7+=_0x4382ce['length'];}}return _0x1fbd9b;}(_0xba952b,_0x5bfb15);_0x3c7505['length']&&this['_model']['change'](()=>{for(const _0x1652e of _0x3c7505){const _0x4302b2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a08b4,'accept');this['forceDefaultExecution'](()=>_0x4302b2([_0x1652e],_0xb60686,_0x44471c));}});for(const _0x5269c7 of _0x4aca72){let _0x40c8e2=null,_0x50535c=_0x5269c7['start'],_0x14fbbe=_0x5269c7['end'];for(const {suggestion:_0x5b0948,meta:_0x39e471}of this['_findSuggestions'](_0x5269c7,'formatInline')){if(!_0x39e471['isOwn'])continue;if(_0x5b0948['subType']!=_0x4a08b4)continue;if(!pn(_0x5b0948,_0x44471c))continue;const _0x109d3b=_0x5b0948['getFirstRange']();if(_0x109d3b['containsRange'](_0x5269c7,!0x0))return null;_0x50535c=_0x50535c['isBefore'](_0x109d3b['start'])?_0x50535c:_0x109d3b['start'],_0x14fbbe=_0x14fbbe['isAfter'](_0x109d3b['end'])?_0x14fbbe:_0x109d3b['end'],_0x40c8e2?_0x109d3b['start']['isBefore'](_0x40c8e2['getFirstRange']()['start'])?(_0x40c8e2['removeMarkers'](),_0x40c8e2=_0x5b0948):_0x5b0948['removeMarkers']():_0x40c8e2=_0x5b0948;}const _0x181db6=this['_model']['createRange'](_0x50535c,_0x14fbbe);if(_0x40c8e2)this['_setSuggestionRange'](_0x40c8e2,_0x181db6);else{const _0x5debc2=_0xb256dd(),_0x1b4d38=_0x119fdb['id'];this['_setSuggestionData']({'id':_0x5debc2,'type':'formatInline:'+_0x4a08b4,'data':_0xb60686,'createdAt':new Date(),'authorId':_0x1b4d38,'attributes':_0x44471c}),this['_addSuggestionMarker']('formatInline:'+_0x4a08b4,_0x5debc2,_0x1b4d38,_0x181db6);}}return null;}markBlockFormat(_0x2f9fe5,_0x52db21,_0x5e0fc6=[],_0x26fd06=null,_0x2bbb51={}){_0x52db21['formatGroupId']||(_0x52db21['formatGroupId']=_0x52db21['commandName']),_0x52db21['multipleBlocks']=_0x2f9fe5['is']('range'),_0x26fd06=_0x26fd06||dn(_0x52db21);const _0x3cce66=_0x5e0fc6['map'](_0x446c45=>En(_0x446c45,this['_model'])),_0x59d71a=_0x2f9fe5['is']('range')?_0x2f9fe5:En(_0x2f9fe5,this['_model']);if(this['_trackingSessionId']&&(_0x2bbb51['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x13cf0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26fd06,'accept');return this['forceDefaultExecution'](()=>_0x13cf0b([_0x59d71a],_0x52db21,_0x2bbb51)),null;}_0x3cce66['push'](_0x59d71a);let _0x4728b7=!0x0;for(const _0x184dc9 of _0x3cce66)if(!this['_rangeIsInLocalUserInsertion'](_0x184dc9)){_0x4728b7=!0x1;break;}if(_0x4728b7&&'always'!==this['_trackFormatChanges']){const _0x1f89af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26fd06,'accept');return this['forceDefaultExecution'](()=>_0x1f89af([_0x59d71a],_0x52db21,_0x2bbb51)),null;}let _0x26161f=null,_0x2edcb9=_0x59d71a['start'],_0x3c571a=_0x59d71a['end'];for(const {suggestion:_0x585f04,meta:_0x5b4b7a}of this['_findSuggestions'](_0x59d71a,'formatBlock')){if(!_0x5b4b7a['isOwn'])continue;if(_0x5b4b7a['isNextTo']||_0x5b4b7a['containsRangeInObject']||_0x5b4b7a['isInsideObject'])continue;if(_0x585f04['data']['formatGroupId']!=_0x52db21['formatGroupId'])continue;if(!pn(_0x585f04,_0x2bbb51))continue;const _0x6e2817=_0x585f04['getFirstRange']();if(_0x585f04['subType']==_0x26fd06){if(_0x6e2817['containsRange'](_0x59d71a,!0x0))return null;_0x2edcb9=_0x2edcb9['isBefore'](_0x6e2817['start'])?_0x2edcb9:_0x6e2817['start'],_0x3c571a=_0x3c571a['isAfter'](_0x6e2817['end'])?_0x3c571a:_0x6e2817['end'],_0x26161f?_0x6e2817['start']['isBefore'](_0x26161f['getFirstRange']()['start'])?(_0x26161f['removeMarkers'](),_0x26161f=_0x585f04):_0x585f04['removeMarkers']():_0x26161f=_0x585f04;}else{const _0x11a220=_0x59d71a['getIntersection'](_0x6e2817);this['_cutOutSuggestionMarker'](_0x585f04,_0x11a220);}}const _0x5e9aab=this['editor']['plugins']['get']('Users')['me'],_0x3257f6=_0xb256dd(),_0x5e7926=_0x5e9aab['id'];if(_0x26161f)return this['_setSuggestionRange'](_0x26161f,this['_model']['createRange'](_0x2edcb9,_0x3c571a)),_0x26161f;{const _0x2e1189=this['_setSuggestionData']({'id':_0x3257f6,'type':'formatBlock:'+_0x26fd06,'data':_0x52db21,'createdAt':new Date(),'authorId':_0x5e7926,'attributes':_0x2bbb51});return this['_addSuggestionMarker']('formatBlock:'+_0x26fd06,_0x3257f6,_0x5e7926,this['_model']['createRange'](_0x2edcb9,_0x3c571a)),_0x2e1189;}}markMultiRangeBlockFormat(_0xed12c1,_0x2b2dcc,_0x3792da=[],_0x143962=null,_0x29ba7f={}){_0x2b2dcc['formatGroupId']||(_0x2b2dcc['formatGroupId']=_0x2b2dcc['commandName']);const _0x459890=_0xed12c1[0x0];_0x2b2dcc['multipleBlocks']=_0x459890['is']('range'),_0x143962=_0x143962||dn(_0x2b2dcc);const _0x3819b8=_0x3792da['map'](_0x76f853=>En(_0x76f853,this['_model'])),_0x8d5076=_0x459890['is']('range')?_0xed12c1:_0xed12c1['map'](_0x15cb49=>En(_0x15cb49,this['_model']));if(this['_trackingSessionId']&&(_0x29ba7f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x53b880=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x143962,'accept');return this['forceDefaultExecution'](()=>_0x53b880(_0x8d5076,_0x2b2dcc,_0x29ba7f)),null;}_0x3819b8['push'](..._0x8d5076);let _0x343452=!0x0;for(const _0x4c1714 of _0x3819b8)if(!this['_rangeIsInLocalUserInsertion'](_0x4c1714)){_0x343452=!0x1;break;}if(_0x343452&&'always'!==this['_trackFormatChanges']){const _0x3cfcb9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x143962,'accept');return this['forceDefaultExecution'](()=>_0x3cfcb9(_0x8d5076,_0x2b2dcc,_0x29ba7f)),null;}const _0x5d9ce4=this['editor']['plugins']['get']('Users')['me'];for(const _0x25b144 of this['getSuggestions']()){const _0x5b0f5b=_0x25b144['data'];if(_0x25b144['author']['id']!=_0x5d9ce4['id'])continue;if('formatBlock'!=_0x25b144['type']||_0x5b0f5b['formatGroupId']!=_0x2b2dcc['formatGroupId'])continue;if(!pn(_0x25b144,_0x29ba7f))continue;const _0x4adfa1=_0x25b144['subType']==_0x143962;for(let _0x439db2=0x0;_0x439db2<_0x8d5076['length'];_0x439db2++){const _0x4b7d3b=_0x8d5076[_0x439db2];for(const _0x462180 of _0x25b144['getMarkers']()){const _0x2c6665=_0x462180['getRange']();if(_0x4b7d3b['isEqual'](_0x2c6665)){_0x4adfa1?(_0x8d5076['splice'](_0x439db2,0x1),_0x439db2--):_0x25b144['removeMarker'](_0x462180['name']);break;}}}}if(0x0==_0x8d5076['length'])return null;const _0x2447f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x143962,'join');for(const _0x47e41b of this['getSuggestions']()){const _0x266bca=_0x47e41b['data'];if(_0x47e41b['author']['id']==_0x5d9ce4['id']&&('formatBlock'==_0x47e41b['type']&&_0x266bca['formatGroupId']==_0x2b2dcc['formatGroupId']&&_0x47e41b['subType']==_0x143962&&pn(_0x47e41b,_0x29ba7f)&&(_0x2447f1(_0x47e41b['getRanges'](),_0x8d5076)||_0x2447f1(_0x8d5076,_0x47e41b['getRanges']())))){for(const _0x508a41 of _0x8d5076)_0x47e41b['addRange'](_0x508a41);return _0x47e41b;}}const _0x466cda=_0xb256dd(),_0x569b53=_0x5d9ce4['id'],_0x1bde5c='formatBlock:'+_0x143962,_0x49d44b=this['_setSuggestionData']({'id':_0x466cda,'type':_0x1bde5c,'data':_0x2b2dcc,'createdAt':new Date(),'authorId':_0x569b53,'attributes':_0x29ba7f});for(const _0x33b2e6 of _0x8d5076)this['_addSuggestionMarker'](_0x1bde5c,_0x466cda,_0x569b53,_0x33b2e6,Mt['getMultiRangeId']());return _0x49d44b;}markDeletion(_0x39751a,_0x58f326=null,_0x7404b={}){if(_0x39751a['isCollapsed'])return null;const _0x442c6b=this['editor']['plugins']['get']('Users')['me'],_0x4708ee=new ot(_0x39751a['start'],_0x39751a['end']);this['_trackingSessionId']&&(_0x7404b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1bc179,meta:_0x18c043}of this['_findSuggestions'](_0x4708ee,'insertion'))if(_0x18c043['isOwn']&&!_0x18c043['isNextTo']){if(_0x1bc179['isMultiRange']){const _0x57dd19=_0x1bc179['getRanges']()['filter'](_0x14bed4=>'$graveyard'!=_0x14bed4['root']['rootName']);if(_0x57dd19['every'](_0x2f54b8=>_0x4708ee['containsRange'](_0x2f54b8,!0x0))&&_0x1bc179['discard'](),_0x57dd19['some'](_0x2efdd6=>_0x2efdd6['containsRange'](_0x4708ee,!0x0))){const _0x4b8332=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58f326,'accept');return this['forceDefaultExecution'](()=>_0x4b8332([_0x4708ee],null,_0x7404b)),null;}}else{const _0x5b7ac2=_0x4708ee['getIntersection'](_0x1bc179['getFirstRange']());null!==_0x5b7ac2&&_0x1bc179['_onDiscard']([_0x5b7ac2],null,_0x7404b);}}if(_0x4708ee['detach'](),_0x4708ee['isCollapsed']||'$graveyard'==_0x4708ee['root']['rootName'])return null;let _0x197f7a=null,_0x546966=_0x4708ee['start'],_0x3b842d=_0x4708ee['end'];const _0x46c636=this['_findSuggestions'](_0x4708ee,'deletion');for(const {suggestion:_0x4ce8cd,meta:_0x328717}of _0x46c636){const _0x27c4d4=this['_model']['createRange'](_0x546966,_0x3b842d);if(_0x328717['isOwn']&&(this['_mergeNestedSuggestions']||!_0x328717['containsRangeInObject']&&!_0x328717['isInsideObject'])){if(_0x4ce8cd['isMultiRange']){if(!pn(_0x4ce8cd,_0x7404b))continue;let _0x30a3dd=!0x0;for(const _0x4fcb7b of _0x4ce8cd['getRanges']()){if(_0x4fcb7b['containsRange'](_0x27c4d4,!0x0))return _0x4ce8cd;_0x27c4d4['containsRange'](_0x4fcb7b)||(_0x30a3dd=!0x1);}_0x30a3dd&&_0x4ce8cd['discard']();}else{const _0x494e59=_0x4ce8cd['getFirstRange']();if(_0x494e59['containsRange'](_0x27c4d4,!0x0))return _0x4ce8cd;if(!pn(_0x4ce8cd,_0x7404b)){_0x27c4d4['containsRange'](_0x494e59)?_0x4ce8cd['removeMarkers']():_0x494e59['containsPosition'](_0x546966)?_0x546966=_0x494e59['end']:_0x494e59['containsPosition'](_0x3b842d)&&(_0x3b842d=_0x494e59['start']);continue;}_0x546966=_0x546966['isBefore'](_0x494e59['start'])?_0x546966:_0x494e59['start'],_0x3b842d=_0x3b842d['isAfter'](_0x494e59['end'])?_0x3b842d:_0x494e59['end'],_0x7404b=Object['assign']({},_0x4ce8cd['attributes']),_0x197f7a?_0x494e59['start']['isBefore'](_0x197f7a['getFirstRange']()['start'])?(_0x197f7a['removeMarkers'](),_0x197f7a=_0x4ce8cd):_0x4ce8cd['removeMarkers']():_0x197f7a=_0x4ce8cd;}}}if(_0x197f7a)return this['_setSuggestionRange'](_0x197f7a,this['_model']['createRange'](_0x546966,_0x3b842d)),_0x197f7a;{const _0x514168=_0xb256dd(),_0x152427=this['_model']['createRange'](_0x546966,_0x3b842d),_0x4c5483=_0x442c6b['id'],_0x1cc52e=_0x58f326?'deletion:'+_0x58f326:'deletion',_0x39762e=this['_setSuggestionData']({'id':_0x514168,'type':_0x1cc52e,'createdAt':new Date(),'authorId':_0x4c5483,'attributes':_0x7404b});return this['_addSuggestionMarker'](_0x1cc52e,_0x514168,_0x4c5483,_0x152427),_0x39762e;}}markMultiRangeDeletion(_0x17e169,_0x52f2f1='multi',_0xa2531d={}){const _0x4ca11f=this['editor']['plugins']['get']('Users')['me'],_0x12c683=_0x17e169['map'](_0x1f4d89=>new ot(_0x1f4d89['start'],_0x1f4d89['end'])),_0xdff180=new Set();this['_trackingSessionId']&&(_0xa2531d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x38c599,meta:_0x4e7264}of this['_findSuggestions'](_0x12c683,'insertion'))_0x4e7264['isOwn']&&!_0x4e7264['isNextTo']&&_0xdff180['add'](_0x38c599);for(const _0x12c8a4 of _0xdff180)if(_0x12c8a4['isMultiRange']){const _0x21dd94=_0x12c8a4['getRanges']();if(_0x12c8a4['attributes']&&_0x12c8a4['attributes']['skipNestingCheck']||_0x21dd94['every'](_0x78c962=>_0x12c683['some'](_0xd0bd30=>_0xd0bd30['containsRange'](_0x78c962,!0x0)))&&_0x12c8a4['discard'](),_0x12c683['every'](_0x1bebfc=>_0x21dd94['some'](_0x40aa50=>_0x40aa50['containsRange'](_0x1bebfc,!0x0)))){const _0x43e53f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52f2f1,'accept');return this['forceDefaultExecution'](()=>_0x43e53f(_0x17e169,null,_0xa2531d)),null;}}else{const _0x38a796=_0x12c8a4['getFirstRange']();if(_0x12c683['some'](_0x79f420=>_0x79f420['containsRange'](_0x38a796,!0x0))&&_0x12c8a4['discard'](),_0x12c683['every'](_0x3f3242=>_0x38a796['containsRange'](_0x3f3242,!0x0))){const _0x30367c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52f2f1,'accept');return this['forceDefaultExecution'](()=>_0x30367c(_0x12c683,null,_0xa2531d)),null;}}const _0x1d49b5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52f2f1,'join');let _0x535dfd=null;for(const _0x47bc87 of this['getSuggestions']())if(_0x47bc87['author']['id']==_0x4ca11f['id']&&_0x47bc87['isInContent']&&'deletion'==_0x47bc87['type']&&_0x47bc87['subType']==_0x52f2f1&&pn(_0x47bc87,_0xa2531d)&&(_0x1d49b5(_0x47bc87['getRanges'](),_0x12c683)||_0x1d49b5(_0x12c683,_0x47bc87['getRanges']()))){if(_0x535dfd){if(_0x47bc87['commentThread']&&_0x47bc87['commentThread']['length'])continue;for(const _0xa753ed of _0x47bc87['getRanges']())_0x535dfd['isIntersectingWithRange'](_0xa753ed)||_0x535dfd['addRange'](_0xa753ed);_0x47bc87['removeMarkers']();}else{_0x535dfd=_0x47bc87;for(const _0x4c7826 of _0x12c683)_0x47bc87['isIntersectingWithRange'](_0x4c7826)||_0x47bc87['addRange'](_0x4c7826);}}if(_0x535dfd)return _0x535dfd;_0xdff180['clear']();for(const {suggestion:_0x441428,meta:_0x3a97d8}of this['_findSuggestions'](_0x12c683,'deletion'))_0x3a97d8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a97d8['containsRangeInObject']&&!_0x3a97d8['isInsideObject'])&&pn(_0x441428,_0xa2531d)&&_0xdff180['add'](_0x441428);for(const _0x531dac of _0xdff180){const _0x195cc2=_0x531dac['getRanges']();if((!_0xa2531d||!_0xa2531d['skipNestingCheck'])&&_0x12c683['every'](_0x43fe0d=>_0x195cc2['some'](_0x5a24b4=>_0x5a24b4['containsRange'](_0x43fe0d,!0x0))))return _0x531dac;_0x531dac['attributes']&&_0x531dac['attributes']['skipNestingCheck']||_0x195cc2['every'](_0x91bd17=>_0x12c683['some'](_0x2ba6e1=>_0x2ba6e1['containsRange'](_0x91bd17,!0x0)))&&_0x531dac['discard']();}const _0x57aaf2=_0xb256dd(),_0x1b80e1=_0x4ca11f['id'],_0x20a7a5='deletion:'+_0x52f2f1,_0x3fed89=this['_setSuggestionData']({'id':_0x57aaf2,'type':_0x20a7a5,'createdAt':new Date(),'authorId':_0x1b80e1,'attributes':_0xa2531d});for(const _0x341221 of _0x12c683)_0x341221['detach'](),_0x341221['isCollapsed']||'$graveyard'==_0x341221['root']['rootName']||this['_addSuggestionMarker'](_0x20a7a5,_0x57aaf2,_0x1b80e1,_0x341221,Mt['getMultiRangeId']());return _0x3fed89;}markAttributeChange(_0x24726e,_0x2bd9a6,_0x5a8382,_0xb49899,_0x51d036){if(_0x24726e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3f3fcb=this['editor']['plugins']['get']('Users')['me']['id'],_0x180bf3=Array['from'](this['_suggestions']['values']())['filter'](_0x3e0fcf=>'attribute'==_0x3e0fcf['type']&&_0x3e0fcf['data']['key']==_0x2bd9a6&&_0x3e0fcf['isIntersectingWithRange'](_0x24726e));if(this['_trackingSessionId']&&(_0x51d036['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4c96cf=this['_findSuggestions'](_0x24726e,'insertion')['filter'](({meta:_0x2f4369})=>_0x2f4369['isOwn']&&!_0x2f4369['isInsideObject']&&!_0x2f4369['isNextTo'])['map'](({suggestion:_0x1890ba})=>_0x1890ba);_0x180bf3['unshift'](..._0x4c96cf);}const _0x432c1e=new Map([[_0x24726e,_0x5a8382]]);for(const _0x57bd13 of _0x180bf3){const _0x4c087c='attribute'==_0x57bd13['type']?_0x57bd13['data']['oldValue']:void 0x0,_0x4d3da2=_0x57bd13['getFirstRange'](),_0x154e86=Array['from'](_0x432c1e['keys']())['find'](_0x1bf034=>_0x1bf034['isIntersecting'](_0x4d3da2));if(!_0x154e86)continue;const _0x57602b=_0x154e86['getDifference'](_0x4d3da2);this['_suggestionsConversion']['isBlockAttribute'](_0x2bd9a6)&&'insertion'==_0x57bd13['type']&&0x0!=_0x57602b['length']||(_0x432c1e['delete'](_0x154e86),_0x57602b['forEach'](_0x38db47=>{_0x432c1e['set'](_0x38db47,_0x5a8382);}),'insertion'!=_0x57bd13['type']&&_0x4c087c!=_0xb49899&&_0x432c1e['set'](_0x154e86['getIntersection'](_0x4d3da2),_0x4c087c));}const _0x4e98c7=[];for(const [_0x248469,_0x4886c1]of _0x432c1e){const _0x2e13ec=_0xb256dd(),_0x1ee20b={'key':_0x2bd9a6,'oldValue':_0x4886c1,'newValue':_0xb49899};_0x2bd9a6['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':_0x2bd9a6});const _0x63e217=('attribute:'+_0x2bd9a6+'|'+dn({'newValue':_0xb49899}))['substring'](0x0,0x3c),_0x47f117=this['_setSuggestionData']({'id':_0x2e13ec,'type':_0x63e217,'data':_0x1ee20b,'createdAt':new Date(),'authorId':_0x3f3fcb,'attributes':_0x51d036});_0x4e98c7['push'](_0x47f117),this['_addSuggestionMarker'](_0x63e217,_0x2e13ec,_0x3f3fcb,_0x248469);}return _0x4e98c7;}enableDefaultAttributesIntegration(_0x49e9e5){this['enableCommand'](_0x49e9e5,(_0x2023ad,..._0x1242c9)=>{this['recordAttributeChanges'](()=>{_0x2023ad(..._0x1242c9);});});}startTrackingSession(_0x518bce){return this['_trackingSessionId']=void 0x0!==_0x518bce?_0x518bce:_0xb256dd(),this['_trackingSessionId'];}_getAttributeKey(_0x55db42){return'attribute'==_0x55db42['type']?In(_0x55db42['subType']):null;}_applyOperationsAsSuggestions(_0x4f34fd){if(0x0==_0x4f34fd['length'])return;const _0x4334b3=this['editor'],_0x236ae1=_0x4334b3['plugins']['get'](_0x54de65),_0x1e0266=[],_0x48e7e9=_0x32a2aa=>{const _0xafb27b=_0x32a2aa['_aiSource'];return _0xafb27b?{'@ai':{'type':_0xafb27b}}:{};},_0xfe667e=(_0x130a6a,_0x36e32a,_0x533450)=>{for(let _0x4d1839=_0x36e32a;_0x4d1839<_0x130a6a['operations']['length'];_0x4d1839++){const _0xc9ed92=_0x130a6a['operations'][_0x4d1839];'marker'===_0xc9ed92['type']&&(_0xc9ed92['_aiSource']=_0x533450);}};_0x4334b3['model']['change'](_0x4f58c8=>{for(let _0x41af46=0x0;_0x41af46<_0x4f34fd['length'];_0x41af46++){const _0x33deb5=_0x4f34fd[_0x41af46],_0x751847=_0x33deb5['_aiSource'],_0x5da8be=_0x4f58c8['batch']['operations']['length'];if(_0x33deb5['baseVersion']=_0x4334b3['model']['document']['version'],_0x33deb5['isDocumentOperation']=!0x0,!_0x1fd0be(_0x33deb5)){if(_0x236ae1['isMarkedRemoveOperation'](_0x33deb5)){const _0x9d27e0=_0x2cb2d4(_0x33deb5['newRange'],_0x4334b3['model']);_0x1e0266['unshift']({'range':ot['fromRange'](_0x9d27e0),'opAttributes':_0x48e7e9(_0x33deb5),'aiSource':_0x751847});}else{switch(_0x33deb5['type']){case'rename':{const _0x3502a3=_0x33deb5['oldName'],_0x35f7e0=_0x33deb5['newName'];if(_0x3502a3==_0x35f7e0)break;_0x4f58c8['batch']['addOperation'](_0x33deb5),_0x4334b3['model']['applyOperation'](_0x33deb5);const _0x545a5f='$elementName',_0x3a4f5b=_0x33deb5['position'],_0x114793=_0x4334b3['model']['createRange'](_0x3a4f5b,_0x4334b3['model']['createPositionAt'](_0x3a4f5b['nodeAfter'],'end'));this['markAttributeChange'](_0x114793,_0x545a5f,_0x3502a3,_0x35f7e0,{..._0x48e7e9(_0x33deb5),'groupId':_0xb256dd()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x29da25=_0x33deb5['oldValue'],_0x35f7f8=_0x33deb5['newValue'];if(_0x29da25==_0x35f7f8)break;_0x4f58c8['batch']['addOperation'](_0x33deb5),_0x4334b3['model']['applyOperation'](_0x33deb5);const _0x33e872=_0x33deb5['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x33e872))break;const _0x241a94=_0x2cb2d4(_0x33deb5['range'],_0x4334b3['model']);this['markAttributeChange'](_0x241a94,_0x33e872,_0x29da25,_0x35f7f8,{..._0x48e7e9(_0x33deb5),'groupId':_0xb256dd()});break;}case'insert':{if(_0x4f58c8['batch']['addOperation'](_0x33deb5),_0x4334b3['model']['applyOperation'](_0x33deb5),_0x4f34fd[_0x41af46+0x1]&&'move'==_0x4f34fd[_0x41af46+0x1]['type'])break;const _0x40be53=_0x33deb5['position'],_0x480b88=_0x33deb5['howMany'],_0x4097d7=_0x2cb2d4(_0x4334b3['model']['createRange'](_0x40be53,_0x40be53['getShiftedBy'](_0x480b88)),_0x4334b3['model']);this['markInsertion'](_0x4097d7,null,{..._0x48e7e9(_0x33deb5)});break;}case'split':{_0x4f58c8['batch']['addOperation'](_0x33deb5),_0x4334b3['model']['applyOperation'](_0x33deb5);const _0x5e9d48=_0x33deb5['splitPosition'],_0x16204b=_0x33deb5['moveTargetPosition'],_0x37267c=_0x4334b3['model']['createRange'](_0x5e9d48,_0x16204b);this['markInsertion'](_0x37267c,null,{..._0x48e7e9(_0x33deb5)});break;}case'move':case'remove':_0x4f58c8['batch']['addOperation'](_0x33deb5),_0x4334b3['model']['applyOperation'](_0x33deb5);}_0x751847&&_0xfe667e(_0x4f58c8['batch'],_0x5da8be,_0x751847);}}}for(const {range:_0x50cb9d,opAttributes:_0x5a207f,aiSource:_0xed06e2}of _0x1e0266){const _0x685b62=_0x4f58c8['batch']['operations']['length'];_0x50cb9d['detach'](),this['markDeletion'](_0x50cb9d,null,{..._0x5a207f}),_0xed06e2&&_0xfe667e(_0x4f58c8['batch'],_0x685b62,_0xed06e2);}});}_setSuggestionRange(_0x2efd48,_0x4452b6){const _0xb161e=_0x2efd48['getFirstMarker']();this['_model']['change'](_0x57c006=>{_0x57c006['updateMarker'](_0xb161e,{'range':_0x4452b6});});}_addThreadToSuggestion(_0xc7f724){const _0xa0f24e=_0xc7f724['id'],_0x3d5a1e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xa0f24e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d5a1e,'threadId':_0xa0f24e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x583dae=this['_commentsRepository']['getCommentThread'](_0xa0f24e);_0x583dae['unbind']('isRemovable'),_0x583dae['isRemovable']=!0x1,_0xc7f724['commentThread']=_0x583dae;}_checkSuggestionCorrectness(_0x32c635,_0x5af07a,_0x3ebb0c,_0x2af06f){if(_0x32c635['type']!=_0x5af07a||_0x32c635['subType']!=_0x3ebb0c||_0x32c635['creator']['id']!=_0x2af06f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x30d1b9('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x1d6ec8,_0x503a7f){const _0x5cc87a=_0x1d6ec8['getFirstRange']();if(_0x503a7f['isEqual'](_0x5cc87a))_0x1d6ec8['removeMarkers']();else{if(_0x5cc87a['containsRange'](_0x503a7f)){const _0x34529f=this['_model']['createPositionAt'](_0x503a7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1d6ec8,this['_model']['createRange'](_0x5cc87a['start'],_0x34529f));const _0x25d5cc=_0xb256dd(),_0x569212=_0x1d6ec8['creator']['id'],_0x27ae51=_0x1d6ec8['type']+':'+_0x1d6ec8['subType'];this['_setSuggestionData']({'id':_0x25d5cc,'type':_0x27ae51,'createdAt':new Date(),'authorId':_0x569212,'data':_0x1d6ec8['data'],'attributes':_0x1d6ec8['attributes']});const _0xd8d930=this['_model']['createPositionAt'](_0x503a7f['end']['parent'],'after'),_0x5a5ad0=this['_model']['createRange'](_0xd8d930,_0x5cc87a['end']);this['_addSuggestionMarker'](_0x27ae51,_0x25d5cc,_0x569212,_0x5a5ad0);}else{if(_0x5cc87a['containsPosition'](_0x503a7f['start'])){const _0x27548b=this['_model']['createPositionAt'](_0x503a7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1d6ec8,this['_model']['createRange'](_0x5cc87a['start'],_0x27548b));}else{const _0x3d63b3=this['_model']['createPositionAt'](_0x503a7f['end']['parent'],'after');this['_setSuggestionRange'](_0x1d6ec8,this['_model']['createRange'](_0x3d63b3,_0x5cc87a['end']));}}}}_rangeIsInLocalUserInsertion(_0x306835){for(const {suggestion:_0x18f9a3,meta:_0x18a480}of this['_findSuggestions'](_0x306835,'insertion')){if(!_0x18a480['isOwn'])continue;const _0x500ecb=_0x18f9a3['getRanges']();for(const _0x252f84 of _0x500ecb)if(!_0x306835['getDifference'](_0x252f84)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x20fb7b){return this['editor']['plugins']['get']('Users')['getUser'](_0x20fb7b);}_getExternalAuthor(_0x5480d0){const _0x248a12=this['editor']['plugins']['get']('Users'),_0x1c897d=_0x5ed3e3('external:'+_0x5480d0),_0x38d81=_0x248a12['getUser'](_0x1c897d);return _0x38d81||_0x248a12['addUser']({'id':_0x1c897d,'name':_0x5480d0});}_createSuggestion(_0x226e75,_0x403487,_0x1b9185,_0x1f30af,_0xf0e2e9,_0x5134d3){const _0x4b4221=this['_getAuthorFromId'](_0x1f30af);if(!_0x4b4221)throw new _0x30d1b9('track-changes-user-not-found',this,{'authorId':_0x1f30af,'suggestionId':_0x1b9185});const _0x48e0a7=this['_suggestionFactory']['buildSuggestion'](_0x226e75,_0x403487,_0x1b9185,_0x4b4221,_0xf0e2e9,_0x28cb39=>{this['_updateSuggestionData'](_0x1b9185,{'attributes':_0x28cb39});const _0x4431d9=this['getSuggestion'](_0x1b9185);this['_joinWithAdjacentSuggestions'](new Set([_0x4431d9])),this['_refreshSuggestionsChain'](new Set([_0x4431d9]));},_0x5134d3);return this['listenTo'](_0x48e0a7,'accept',()=>{this['_updateSuggestionData'](_0x1b9185,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x48e0a7,'discard',()=>{this['_updateSuggestionData'](_0x1b9185,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1b9185,_0x48e0a7),this['_suggestionState']['set'](_0x48e0a7,'notReady'),_0x48e0a7;}_breakSuggestionMarker(_0x470db5,_0x4b2c95,_0x4fcd63){const _0x189752=_0x470db5['getFirstRange'](),_0x23a798=_0x189752['start'],_0x1cf85b=_0x189752['end'];this['_setSuggestionRange'](_0x470db5,this['_model']['createRange'](_0x23a798,_0x4b2c95));const _0x1c46b4=_0xb256dd(),_0x8f6e37=_0x470db5['creator']['id'],_0x742274=_0x470db5['type']+(_0x470db5['subType']?':'+_0x470db5['subType']:'');this['_setSuggestionData']({'id':_0x1c46b4,'type':_0x742274,'createdAt':new Date(),'authorId':_0x8f6e37,'originalSuggestionId':_0x470db5['_originalSuggestionId']||_0x470db5['id'],'attributes':_0x470db5['attributes'],'data':_0x470db5['data']});const _0x11515e=this['_getAttributeKey'](_0x470db5);('formatBlock'==_0x470db5['type']||_0x11515e&&this['_suggestionsConversion']['isBlockAttribute'](_0x11515e))&&(_0x4fcd63=this['_model']['createPositionBefore'](_0x4fcd63['parent'])),this['_addSuggestionMarker'](_0x742274,_0x1c46b4,_0x8f6e37,this['_model']['createRange'](_0x4fcd63,_0x1cf85b));}_findSuggestions(_0x247f96,_0xe81e7a=null){const _0x264025=[],_0x162cc5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x247f96)||(_0x247f96=[_0x247f96]);for(const _0x2911be of this['getSuggestions']()){if(!_0x2911be['isInContent'])continue;if(_0xe81e7a&&_0x2911be['type']!=_0xe81e7a)continue;let _0x28b142=!0x1;for(const _0x337ef5 of _0x2911be['getRanges']()){for(const _0x4fe9e7 of _0x247f96){const _0x5e3723=_0x4fe9e7['start']['isEqual'](_0x337ef5['end'])||_0x4fe9e7['end']['isEqual'](_0x337ef5['start']);if(_0x5e3723||_0x4fe9e7['getIntersection'](_0x337ef5)){const _0x3e8a27=_0x4fe9e7['containsRange'](_0x337ef5)&&cn(this['_model']['schema'],_0x337ef5['start'],_0x4fe9e7),_0xd31a22=_0x337ef5['containsRange'](_0x4fe9e7)&&cn(this['_model']['schema'],_0x4fe9e7['start'],_0x337ef5);_0x264025['push']({'suggestion':_0x2911be,'meta':{'isOwn':_0x162cc5==_0x2911be['author'],'isNextTo':_0x5e3723,'isInsideObject':_0x3e8a27,'containsRangeInObject':_0xd31a22}}),_0x28b142=!0x0;break;}}if(_0x28b142)break;}}return _0x264025;}_addSuggestionMarker(_0x26f0f3,_0xa2c0e,_0x110e7d,_0x4b4928,_0x2d2261){this['_model']['change'](_0x47c3ee=>{let _0x13eaf6='suggestion:'+_0x26f0f3+':'+_0xa2c0e+':'+_0x110e7d;_0x2d2261&&(_0x13eaf6=_0x13eaf6+':'+_0x2d2261),_0x47c3ee['addMarker'](_0x13eaf6,{'range':_0x4b4928,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x166d17){const _0x47ecf5=_0x166d17['previous'],_0x4aca8b=_0x166d17['next'];_0x166d17['previous']=null,_0x166d17['next']=null,null!=_0x47ecf5&&_0x47ecf5['next']==_0x166d17&&(_0x47ecf5['next']=_0x4aca8b),null!=_0x4aca8b&&_0x4aca8b['previous']==_0x166d17&&(_0x4aca8b['previous']=_0x47ecf5),'ready'==this['_suggestionState']['get'](_0x166d17)&&(this['_suggestionState']['set'](_0x166d17,'removed'),this['fire']('suggestionUnloaded',_0x166d17,_0x47ecf5,_0x4aca8b));}_setSuggestionData(_0x45ac65){const _0x41d8e1=_0x45ac65['id'],_0x2d8d63=this['addSuggestionData'](_0x45ac65);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x11dd0e=this['editor']['plugins']['get']('PendingActions'),_0x46e4d4=_0x2d8d63['hasComments'],_0x15fb8c=_0x2d8d63['subType']?_0x2d8d63['type']+':'+_0x2d8d63['subType']:_0x2d8d63['type'],_0x382027=this['editor']['locale'],_0x4980c8=_0x11dd0e['add'](Ot(_0x382027,'PENDING_ACTION_SUGGESTION')),_0x1b119c={'id':_0x41d8e1,'type':_0x15fb8c,'hasComments':_0x46e4d4,'data':_0x45ac65['data']||null,'originalSuggestionId':_0x45ac65['originalSuggestionId']||null,'attributes':_0x2d8d63['attributes']};this['_adapter']['addSuggestion'](_0x1b119c)['then'](_0xa856f7=>{_0x2d8d63['_saved']=!0x0,_0x11dd0e['remove'](_0x4980c8),_0xa856f7&&_0xa856f7['createdAt']&&(this['_suggestions']['get'](_0x41d8e1)['createdAt']=_0xa856f7['createdAt']);})['catch'](_0x8c53c4=>{throw _0x201241('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d8d63['discard']();}),_0x2d8d63['stopListening'](),this['_suggestions']['delete'](_0x2d8d63['id']),this['_suggestionState']['delete'](_0x2d8d63),_0x8c53c4;});}return _0x2d8d63;}_updateSuggestionData(_0xe6ec6f,_0x5bd042){const _0x2cfb39=this['editor']['plugins']['get']('PendingActions'),_0x19cc98=this['getSuggestion'](_0xe6ec6f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x19cc98['_saved']){const _0x5928db=_0x2cfb39['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xe6ec6f,_0x5bd042)['then'](()=>{_0x2cfb39['remove'](_0x5928db);});}else _0x19cc98['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xe6ec6f,_0x5bd042);});}}_getSuggestionData(_0x5267fc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x30d1b9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5267fc);}_handleNewSuggestionMarker(_0x4d6584){const {id:_0xc4a2d7,type:_0x28f877,subType:_0x493fbe,authorId:_0x119242}=et(_0x4d6584),_0x213220=this['_suggestions']['get'](_0xc4a2d7)||this['_createSuggestion'](_0x28f877,_0x493fbe,_0xc4a2d7,_0x119242,{});switch(this['_checkSuggestionCorrectness'](_0x213220,_0x28f877,_0x493fbe,_0x119242),this['_suggestionState']['get'](_0x213220)){case'notReady':this['_getSuggestionData'](_0xc4a2d7)['then'](_0x491129=>{let _0x38d3b3=Promise['resolve']();_0x491129['hasComments']&&(_0x38d3b3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc4a2d7})),_0x38d3b3['then'](()=>{this['addSuggestionData'](_0x491129)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x213220,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc4a2d7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x213220,'ready'),this['fire']('suggestionLoaded',_0x213220);break;case'ready':this['fire']('suggestionChanged',_0x213220);}return _0x213220['addMarkerName'](_0x4d6584),_0x213220;}_refreshSuggestionsChain(_0x5c420e){const _0x3ac1a5=Array['from'](_0x5c420e),_0x49d684=_0x3ac1a5['filter'](_0x3735ee=>'attribute'==_0x3735ee['type']);this['_refreshAttributeSuggestionsChain'](_0x49d684);const _0x86017e=_0x3ac1a5['filter'](_0x51a1d7=>!_0x51a1d7['isMultiRange']&&'attribute'!=_0x51a1d7['type']),_0x19e8e1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e9e05=>!_0x5e9e05['isMultiRange']&&'attribute'!=_0x5e9e05['type']),_0x99d11d=_0x19e8e1['filter'](_0x2fb097=>!_0x5c420e['has'](_0x2fb097)),_0x2ca670=new Map(_0x19e8e1['map'](_0x5aa81b=>[_0x5aa81b,this['_suggestionFactory']['getSuggestionCallback'](_0x5aa81b['type'],_0x5aa81b['subType'],'chain')])),_0x4858f3=new Map(_0x19e8e1['map'](_0x40eb40=>[_0x40eb40,_0x40eb40['getFirstRange']()])),_0x189d08=new Set(),_0x4fdfda=new Set();for(let _0x4908e3=0x0;_0x4908e3<_0x86017e['length'];_0x4908e3++)_0x31a4ad(_0x86017e[_0x4908e3],_0x86017e,_0x4908e3+0x1);for(let _0xfcedf7=0x0;_0xfcedf7<_0x86017e['length'];_0xfcedf7++)_0x31a4ad(_0x86017e[_0xfcedf7],_0x99d11d,0x0);const _0x48e8f9=new Set();for(let _0x12cec1=0x0;_0x12cec1<_0x86017e['length'];_0x12cec1++){const _0x14414d=_0x86017e[_0x12cec1];!_0x4fdfda['has'](_0x14414d)&&_0x14414d['previous']&&(_0x48e8f9['add'](_0x14414d['previous']),_0x14414d['previous']['next']===_0x14414d&&(_0x14414d['previous']['next']=null),_0x14414d['previous']=null),!_0x189d08['has'](_0x14414d)&&_0x14414d['next']&&(_0x48e8f9['add'](_0x14414d['next']),_0x14414d['next']['previous']===_0x14414d&&(_0x14414d['next']['previous']=null),_0x14414d['next']=null);}function _0x31a4ad(_0x268d75,_0x52facb,_0x25836e){for(let _0x53dd63=_0x25836e;_0x53dd63<_0x52facb['length'];_0x53dd63++){const _0x3917a2=_0x16c494(_0x268d75,_0x52facb[_0x53dd63]);_0x3917a2&&(_0x3917a2[0x0]['next']=_0x3917a2[0x1],_0x3917a2[0x1]['previous']=_0x3917a2[0x0],_0x189d08['add'](_0x3917a2[0x0]),_0x4fdfda['add'](_0x3917a2[0x1]));}}function _0x16c494(_0x172261,_0xa36c50){if(_0x172261['author']['id']!==_0xa36c50['author']['id'])return null;const _0x2b33da=_0x2ca670['get'](_0x172261)(_0x172261,_0xa36c50,_0x4858f3['get'](_0x172261),_0x4858f3['get'](_0xa36c50));return _0x2b33da&&_0x2ca670['get'](_0xa36c50)(_0x172261,_0xa36c50,_0x4858f3['get'](_0x172261),_0x4858f3['get'](_0xa36c50))?_0x2b33da[0x1]['commentThread']&&_0x2b33da[0x1]['commentThread']['length']?null:_0x2b33da:null;}_0x48e8f9['size']&&this['_refreshSuggestionsChain'](_0x48e8f9);}_refreshAttributeSuggestionsChain(_0x27fe1a){if(0x0==_0x27fe1a['length'])return;const _0x26219f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x411cd0=>'attribute'==_0x411cd0['type']&&_0x411cd0['_isDataLoaded']),_0xc118eb=[],_0x5b8e5c=new Map();for(const _0x22a11b of _0x26219f){const _0x2dd19c=_0x5ed3e3(_0x22a11b['attributes']);_0x5b8e5c['has'](_0x2dd19c)||(_0x5b8e5c['set'](_0x2dd19c,_0xc118eb['length']),_0xc118eb['push']([])),_0xc118eb[_0x5b8e5c['get'](_0x2dd19c)]['push'](_0x22a11b);}!(function(){_0xc118eb['sort']((_0x38baf9,_0x3a2cbc)=>{const _0x1e957b=_0x38baf9[0x0]['createdAt'],_0x5d128e=_0x3a2cbc[0x0]['createdAt'];return _0x1e957b==_0x5d128e?_0x38baf9[0x0]['attributes']['groupId']<_0x3a2cbc[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e957b<_0x5d128e?-0x1:0x1;});for(const _0x4474ad of _0xc118eb)_0x4474ad['sort']((_0x18ad29,_0xf35d89)=>_0x18ad29['id']<_0xf35d89['id']?-0x1:0x1);}());for(let _0x34f164=0x0;_0x34f164<_0xc118eb['length'];_0x34f164++){if(0x0==_0xc118eb[_0x34f164]['length'])continue;const _0xc94304=[];for(let _0x37b096=_0x34f164+0x1;_0x37b096<_0xc118eb['length'];_0x37b096++)0x0!=_0xc118eb[_0x37b096]['length']&&_0xccd715(_0xc118eb[_0x34f164],_0xc118eb[_0x37b096])&&_0xc94304['push'](_0x37b096);for(const _0x223e66 of _0xc94304)_0xc118eb[_0x34f164]=_0xc118eb[_0x34f164]['concat'](_0xc118eb[_0x223e66]),_0xc118eb[_0x223e66]=[];}for(const _0x46c876 of _0xc118eb)for(let _0x14feb2=0x0;_0x14feb2<_0x46c876['length'];_0x14feb2++){const _0x52a60b=_0x46c876[_0x14feb2+0x1]||null;_0x46c876[_0x14feb2]['next']!==_0x52a60b&&(_0x46c876[_0x14feb2]['next']=_0x52a60b);}for(const _0x56705c of _0xc118eb)for(let _0x323f5c=0x0;_0x323f5c<_0x56705c['length'];_0x323f5c++){const _0x26293e=_0x56705c[_0x323f5c-0x1]||null;_0x56705c[_0x323f5c]['previous']!==_0x26293e&&(_0x56705c[_0x323f5c]['previous']=_0x26293e);}function _0xccd715(_0x51521b,_0x3fe632){return(_0x51521b[0x0]['attributes']['groupId']===_0x3fe632[0x0]['attributes']['groupId']||_0x51521b[0x0]['author']===_0x3fe632[0x0]['author'])&&(!!function(_0x47391e,_0x220f5d){return!_0x47391e['hasComments']&&!_0x220f5d['hasComments']||(!_0x47391e['hasComments']||!_0x220f5d['hasComments'])&&(!!(_0x47391e['hasComments']&&_0x220f5d['createdAt']<_0x47391e['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x220f5d['hasComments']&&_0x47391e['createdAt']<_0x220f5d['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x51521b[0x0],_0x3fe632[0x0])&&(!!lt(ut(_0x51521b[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x3fe632[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x51521b[0x0]['attributes']['groupId']==_0x3fe632[0x0]['attributes']['groupId']||_0x51521b[0x0]['attributes']['trackingSessionId']===_0x3fe632[0x0]['attributes']['trackingSessionId']&&(!!_0x51521b['every'](_0x269f03=>_0x3fe632['some'](_0x3b4a29=>_0x269f03['getFirstRange']()['isEqual'](_0x3b4a29['getFirstRange']())))&&_0x3fe632['every'](_0x59f4b8=>_0x51521b['some'](_0x14d732=>_0x59f4b8['getFirstRange']()['isEqual'](_0x14d732['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x32cd9c){const _0x54b593=Array['from'](_0x32cd9c),_0x1395d8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5cf4f4=_0x1395d8['filter'](_0x2ff2f5=>!_0x32cd9c['has'](_0x2ff2f5)),_0x1b03c0=new Map(_0x54b593['map'](_0x477dae=>[_0x477dae,this['_suggestionFactory']['getSuggestionCallback'](_0x477dae['type'],_0x477dae['subType'],'join')])),_0x12e9e4=new Map(_0x1395d8['map'](_0x552e5b=>[_0x552e5b,_0x552e5b['getRanges']()]));for(let _0x5f2acf=0x0;_0x5f2acf<_0x54b593['length'];_0x5f2acf++)if(_0x29d471(this,_0x54b593[_0x5f2acf],_0x54b593,_0x5f2acf+0x1))return!0x0;for(let _0x312721=0x0;_0x312721<_0x54b593['length'];_0x312721++)if(_0x29d471(this,_0x54b593[_0x312721],_0x5cf4f4,0x0))return!0x0;return!0x1;function _0x29d471(_0x16c26d,_0x47fa59,_0x12756a,_0x5b60ec){for(let _0x39df38=_0x5b60ec;_0x39df38<_0x12756a['length'];_0x39df38++){const _0x5318e3=_0x12756a[_0x39df38];if(_0x5318e3['type']!==_0x47fa59['type']||_0x5318e3['author']['id']!==_0x47fa59['author']['id']||_0x5318e3['subType']!==_0x47fa59['subType'])continue;if(!_n(_0x47fa59,_0x5318e3))continue;if('attribute'==_0x47fa59['type']&&_0x47fa59['data']['oldValue']!=_0x5318e3['data']['oldValue'])continue;if('attribute'==_0x47fa59['type']&&_0x16c26d['_suggestionsConversion']['isBlockAttribute'](_0x47fa59['data']['key']))continue;if('formatBlock'==_0x47fa59['type']){const _0x128497=_0x16c26d['editor']['model'],_0x368da4=_0x47fa59['getContainedElement']();if(_0x368da4&&(_0x128497['schema']['isObject'](_0x368da4)||_0x128497['schema']['isLimit'](_0x368da4)))continue;}const _0x349934=_0x1b03c0['get'](_0x47fa59),_0x37c9a1=_0x12e9e4['get'](_0x47fa59),_0x35f608=_0x12e9e4['get'](_0x5318e3),_0x4ce3b4=_0x47fa59['commentThread']&&_0x47fa59['commentThread']['length'],_0x218268=_0x5318e3['commentThread']&&_0x5318e3['commentThread']['length'];if(!_0x4ce3b4&&_0x349934(_0x35f608,_0x37c9a1))return _0x16c26d['_joinSuggestions'](_0x5318e3,_0x47fa59),_0x12e9e4['delete'](_0x47fa59),!0x0;if(!_0x218268&&_0x349934(_0x37c9a1,_0x35f608))return _0x16c26d['_joinSuggestions'](_0x47fa59,_0x5318e3),_0x12e9e4['delete'](_0x5318e3),!0x0;}return!0x1;}}_joinSuggestions(_0x3e5986,_0x412926){if(_0x3e5986['isMultiRange']){for(const _0x4c6da1 of _0x412926['getRanges']())_0x3e5986['addRange'](_0x4c6da1);}else{const _0x2036d3=_0x412926['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3e5986,this['_model']['createRange'](_0x3e5986['getFirstRange']()['start'],_0x2036d3));}_0x412926['removeMarkers']();}_getMarkerAnnouncementText(_0x1831fd,_0x2bc358,_0x5c5229){const _0x365e99=_0x1831fd['startsWith']('format')||_0x1831fd['startsWith']('attribute')?'FORMATTING':_0x1831fd['toUpperCase']();return Ot(this['editor']['locale'],_0x2bc358+'_'+_0x365e99+'_SUGGESTION_ANNOUNCEMENT',_0x5c5229);}_initAriaMarkerChangeAnnouncements(){const _0x4abe13=this['editor'];if(!_0x4abe13['ui'])return;const {ariaLiveAnnouncer:_0xa7bb77}=_0x4abe13['ui'];nt(this['_model'],({left:_0x10a908,entered:_0x59f181})=>{for(const _0x10c5ba of _0x10a908){const {group:_0x4cedd9,type:_0x23b573}=et(_0x10c5ba['name']);if('suggestion'===_0x4cedd9){_0xa7bb77['announce'](this['_getMarkerAnnouncementText'](_0x23b573,'LEAVE'));break;}}for(const _0x4144ac of _0x59f181){const {group:_0x48af9a,type:_0x1c1795}=et(_0x4144ac['name']);if('suggestion'===_0x48af9a){_0xa7bb77['announce'](this['_getMarkerAnnouncementText'](_0x1c1795,'ENTER',_0x3d7c40(_0x299aec)));break;}}});}_processAttributeChanges(_0x2896f8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1734c0=this['editor'],_0x1785db=_0x1734c0['model']['document']['differ']['getChanges']();if(0x0==_0x1785db['length'])return!0x1;const _0x4b65cc=[],_0x531a48=_0x1785db['filter'](_0x3cc950=>'attribute'==_0x3cc950['type']),_0x5e0de1=_0x1785db['filter'](_0x18f254=>'insert'==_0x18f254['type']&&'$text'!=_0x18f254['name']),_0x59d952=_0x1785db['filter'](_0x2186b2=>'remove'==_0x2186b2['type']&&'$text'!=_0x2186b2['name']);for(const _0x42bf9f of _0x531a48)_0x4b65cc['push']({'key':_0x42bf9f['attributeKey'],'newValue':_0x42bf9f['attributeNewValue'],'oldValue':_0x42bf9f['attributeOldValue'],'range':mn(_0x42bf9f['range'],_0x1734c0['model'])});for(const _0x44a9fd of _0x5e0de1){const _0x5d6756=_0x59d952['find'](_0x4c4bdb=>_0x4c4bdb['position']['isEqual'](_0x44a9fd['position']));_0x5d6756&&_0x4b65cc['push']({'key':rn,'newValue':_0x44a9fd['name'],'oldValue':_0x5d6756['name'],'range':_0x1734c0['model']['createRangeOn'](_0x44a9fd['position']['nodeAfter'])});}return 0x0!=_0x4b65cc['length']&&this['_reduceExistingSuggestions'](_0x2896f8,_0x4b65cc);}_processAttributeSuggestions(_0x25c823){let _0x5f2626=!0x1;const _0x489961=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x221222=>_0x221222['data']['newRange']&&_0x221222['name']['startsWith']('suggestion:attribute:'));for(const _0x3b577e of _0x489961){const {subType:_0xd05aad,id:_0x2408a3}=et(_0x3b577e['name']),_0x504846=_0xd05aad['split']('|')[0x0];for(const _0x387b40 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x387b40['id']!=_0x2408a3&&'attribute'==_0x387b40['type']&&_0x387b40['data']&&_0x387b40['data']['key']==_0x504846&&_0x387b40['getFirstRange']()['isIntersecting'](_0x3b577e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x387b40,_0x3b577e['data']['newRange'],_0x25c823),_0x5f2626=!0x0);}return _0x5f2626;}recordAttributeChanges(_0x406c64){this['_recordAttributeSuggestions']=!0x0,_0x406c64();}_reduceExistingSuggestions(_0x1da6f2,_0x5985d4){if(0x0==_0x5985d4['length'])return!0x1;let _0x445b54=!0x1;for(const _0xc39e89 of _0x5985d4){const _0x440a70=this['_findSuggestions'](_0xc39e89['range'],'attribute')['filter'](_0x358aea=>!_0x358aea['meta']['isNextTo'])['map'](_0x2860b4=>_0x2860b4['suggestion']),_0x1cc405=_0x5ed3e3({'newValue':_0xc39e89['newValue']});_0x440a70['filter'](_0x51dc0d=>{const [_0x5292ef,_0x48b301]=_0x51dc0d['subType']['split']('|');return _0x5292ef==_0xc39e89['key']&&_0x48b301!=_0x1cc405;})['forEach'](_0x32353d=>{this['_reduceSuggestionAttributeRange'](_0x32353d,_0xc39e89['range'],_0x1da6f2),_0x445b54=!0x0;});}return _0x445b54;}_reduceSuggestionAttributeRange(_0x20c8c4,_0x29c4e4,_0x1e08ea){const _0x51e5d0=_0x20c8c4['getFirstRange']()['getDifference'](_0x29c4e4);0x0!==_0x51e5d0['length']?0x1!==_0x51e5d0['length']?this['_breakSuggestionMarker'](_0x20c8c4,_0x29c4e4['start'],_0x29c4e4['end']):this['_setSuggestionRange'](_0x20c8c4,_0x51e5d0[0x0]):_0x1e08ea['removeMarker'](_0x20c8c4['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x56e8cd){this['_editor']=_0x56e8cd,this['_model']=_0x56e8cd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x11e8ab,_0x457ebf,_0x453333,_0xfc0dbc,_0x4bf128,_0xf5848e,_0xfb2b85){return new Mt(this['_model'],{'type':_0x11e8ab,'subType':_0x457ebf,'id':_0x453333,'originalSuggestionId':_0xfb2b85,'author':_0xfc0dbc,'creator':_0xfc0dbc,'attributes':_0x4bf128,'onAttributesChange':_0xf5848e,'onAccept':(..._0xd0c180)=>this['getSuggestionCallback'](_0x11e8ab,_0x457ebf,'accept')(..._0xd0c180),'onDiscard':(..._0xcfc3aa)=>this['getSuggestionCallback'](_0x11e8ab,_0x457ebf,'discard')(..._0xcfc3aa)});}registerCustomCallback(_0x26f9e6,_0x1bbe06,_0x397574,_0x1c2d8d){const _0x2337e8=_0x26f9e6+':'+_0x1bbe06+':'+_0x397574;this['_customCallbacks']['set'](_0x2337e8,_0x1c2d8d);}getSuggestionCallback(_0x1b329f,_0x7f2974,_0x3b43ea){const _0x20f3f4=_0x1b329f+':'+_0x7f2974+':'+_0x3b43ea;return this['_customCallbacks']['get'](_0x20f3f4)||this['_defaultCallbacks']['get'](_0x1b329f+':'+_0x3b43ea);}_registerDefaultCallbacks(){const _0x1568a5=()=>!0x1,_0x1f18f8=_0x1a264f=>{_0x1a264f['sort']((_0x133788,_0x48b94e)=>_0x133788['start']['isBefore'](_0x48b94e['start'])?0x1:-0x1),this['_model']['change'](_0x478bee=>{for(const _0x1ccc2f of _0x1a264f){let _0x1dde88;_0x1dde88=_0x1ccc2f['end']['isAtEnd']&&_0x1ccc2f['end']['parent']==_0x1ccc2f['start']['nodeAfter']?_0x478bee['createSelection'](_0x1ccc2f['start']['nodeAfter'],'on'):_0x478bee['createSelection'](_0x1ccc2f),this['_model']['deleteContent'](_0x1dde88,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4975c6=(_0x3ddced,_0x5093d2)=>{_0x5093d2&&this['_model']['change'](_0x582b71=>{const {commandName:_0x16488f,commandParams:_0x315e66=[]}=_0x5093d2,_0x258a79=_0x3ddced['map'](_0x544d6d=>(ln(_0x544d6d)&&(_0x544d6d=this['_model']['createRange'](_0x544d6d['end'])),_0x544d6d))['filter'](_0x397c8d=>'$graveyard'!==_0x397c8d['root']['rootName']);if(_0x258a79['length']<0x1)return;const _0x1c9439=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5a2b26=>ot['fromRange'](_0x5a2b26));_0x582b71['setSelection'](_0x258a79);for(const _0x49920a of this['_editor']['commands']['commands']())_0x49920a['refresh']();_0x315e66['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x16488f,..._0x315e66);const _0x2e982f=_0x1c9439['filter'](_0x2563eb=>'$graveyard'!=_0x2563eb['root']['rootName']);_0x2e982f['length']>0x0&&_0x582b71['setSelection'](_0x2e982f);for(const _0xa63844 of _0x1c9439)_0xa63844['detach']();});},_0x252d98=(_0xf90ad5,_0x777131)=>0x1==_0xf90ad5['length']&&0x1==_0x777131['length']&&_0xf90ad5[0x0]['end']['isEqual'](_0x777131[0x0]['start']),_0xc5bb51=(_0x4aa68c,_0x3f28c4,_0x4e8c34,_0x12e8f3)=>Tn(_0x4aa68c,_0x3f28c4,_0x4e8c34,_0x12e8f3)?[_0x4aa68c,_0x3f28c4]:Tn(_0x3f28c4,_0x4aa68c,_0x12e8f3,_0x4e8c34)?[_0x3f28c4,_0x4aa68c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1568a5),this['_defaultCallbacks']['set']('insertion:discard',_0x1f18f8),this['_defaultCallbacks']['set']('insertion:join',_0x252d98),this['_defaultCallbacks']['set']('insertion:chain',_0xc5bb51),this['_defaultCallbacks']['set']('deletion:accept',_0x1f18f8),this['_defaultCallbacks']['set']('deletion:discard',_0x1568a5),this['_defaultCallbacks']['set']('deletion:join',_0x252d98),this['_defaultCallbacks']['set']('deletion:chain',_0xc5bb51),this['_defaultCallbacks']['set']('formatInline:accept',_0x4975c6),this['_defaultCallbacks']['set']('formatInline:discard',_0x1568a5),this['_defaultCallbacks']['set']('formatInline:join',_0x252d98),this['_defaultCallbacks']['set']('formatInline:chain',_0x1568a5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4975c6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1568a5),this['_defaultCallbacks']['set']('formatBlock:join',_0x252d98),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1568a5),this['_defaultCallbacks']['set']('attribute:accept',_0x1568a5),this['_defaultCallbacks']['set']('attribute:discard',(_0x10e76e,_0xf31f1c)=>{if(!_0xf31f1c)return;const _0x26dcb2=this['_editor']['plugins']['get'](_0x5bcc45);this['_model']['change'](_0x1a529b=>{if('$elementName'==_0xf31f1c['key'])for(const _0x27721b of _0x10e76e){const _0xa434ba=_0x27721b['start']['nodeAfter'],_0x180706=_0xf31f1c['oldValue'];_0x1a529b['rename'](_0xa434ba,_0x180706);}else{if(_0x26dcb2['isBlockAttribute'](_0xf31f1c['key'])){for(const _0x1dc96d of _0x10e76e)void 0x0!==_0xf31f1c['oldValue']?_0x1a529b['setAttribute'](_0xf31f1c['key'],_0xf31f1c['oldValue'],_0x1dc96d['start']['nodeAfter']):_0x1a529b['removeAttribute'](_0xf31f1c['key'],_0x1dc96d['start']['nodeAfter']);}else{for(const _0x4afe30 of _0x10e76e)_0xf31f1c['oldValue']?_0x1a529b['setAttribute'](_0xf31f1c['key'],_0xf31f1c['oldValue'],_0x4afe30):_0x1a529b['removeAttribute'](_0xf31f1c['key'],_0x4afe30);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x252d98);}};function cn(_0x16bab0,_0x2d285d,_0x4ba328){for(const _0x2c4dea of _0x2d285d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c4dea['root']==_0x2c4dea)return!0x1;if(!_0x4ba328['containsItem'](_0x2c4dea))return!0x1;if(_0x16bab0['isObject'](_0x2c4dea)||_0x16bab0['isLimit'](_0x2c4dea))return!0x0;}return!0x1;}function ln(_0x17dd6b){return _0x17dd6b['end']['parent']==_0x17dd6b['start']['nodeAfter']&&_0x17dd6b['end']['isAtStart'];}function un(_0xd948e3,_0xfbd428,_0x22dead,_0x5e8aa5){const _0x3b5d31=_0x44582a=>!_0x44582a['item']['is']('$textProxy')&&!_0x5e8aa5['isObject'](_0x44582a['item']),_0x2411e8=_0xd948e3['start']['getLastMatchingPosition'](_0x3b5d31),_0x6ad1d3=_0xd948e3['end']['getLastMatchingPosition'](_0x3b5d31,{'direction':'backward'});return(!_0xd948e3['start']['isEqual'](_0x2411e8)||!_0xd948e3['end']['isEqual'](_0x6ad1d3))&&(_0x2411e8['isBefore'](_0x6ad1d3)?_0x22dead['updateMarker'](_0xfbd428,{'range':_0x22dead['createRange'](_0x2411e8,_0x6ad1d3)}):_0x22dead['removeMarker'](_0xfbd428),!0x0);}function dn(_0x48c431){return _0x5ed3e3(_0x48c431);}function hn(_0x453bcc){const _0x478d2a=_0x453bcc['start']['nodeAfter'];return _0x478d2a&&_0x478d2a['is']('element');}function gn(_0xeeb88){return ln(_0xeeb88)||function(_0x4384c1){return _0x4384c1['start']['parent']==_0x4384c1['end']['nodeBefore']&&_0x4384c1['start']['isAtEnd'];}(_0xeeb88);}function fn(_0x3ca602,_0x48468a){try{const _0x581b6c=_0x3ca602['getRange']();for(const _0x186bf3 of _0x48468a)if(_0x3ca602!==_0x186bf3&&_0x581b6c&&_0x581b6c['isIntersecting'](_0x186bf3['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x3495e1,_0x36870f){return null==_0x3495e1['end']['nodeBefore']&&_0x3495e1['end']['parent']==_0x3495e1['start']['nodeAfter']?En(_0x3495e1['start']['nodeAfter'],_0x36870f):_0x3495e1;}function En(_0x180d5d,_0x46f0c2){const _0x576030=_0x46f0c2['schema']['isObject'](_0x180d5d)||_0x46f0c2['schema']['isSelectable'](_0x180d5d);return _0x46f0c2['createRange'](_0x46f0c2['createPositionAt'](_0x180d5d,'before'),_0x576030?_0x46f0c2['createPositionAfter'](_0x180d5d):_0x46f0c2['createPositionAt'](_0x180d5d,'end'));}function Tn(_0x332b4b,_0x55c64d,_0x4704ee,_0x4c5e19){return!!_n(_0x332b4b,_0x55c64d)&&_0x4704ee['end']['isEqual'](_0x4c5e19['start']);}function _n(_0x330a13,_0x5cface){if(!_0x330a13['_isDataLoaded']||!_0x5cface['_isDataLoaded'])return!0x1;const _0x2a3471=new Set(Object['keys'](_0x330a13['attributes'])),_0x5d76f7=new Set(Object['keys'](_0x5cface['attributes']));if(_0x2a3471['delete']('groupId'),_0x5d76f7['delete']('groupId'),0x0==_0x2a3471['size']&&0x0==_0x5d76f7['size'])return!0x0;if(_0x2a3471['size']!=_0x5d76f7['size'])return!0x1;const _0x1db4d1={..._0x330a13['attributes']},_0x3d03a1={..._0x5cface['attributes']};return delete _0x1db4d1['groupId'],delete _0x3d03a1['groupId'],JSON['stringify'](_0x1db4d1)==JSON['stringify'](_0x3d03a1);}function pn(_0x38a3e1,_0x48710b){const _0x4a99a8=Ln(_0x38a3e1['attributes']),_0x599f03=Ln(_0x48710b);if(!_0x38a3e1['_isDataLoaded'])return!0x1;if(!lt(_0x4a99a8['@ai'],_0x599f03['@ai']))return!0x1;for(const _0x4225b5 of Object['keys'](_0x599f03))if(!lt(_0x4a99a8[_0x4225b5],_0x599f03[_0x4225b5]))return!0x1;return!0x0;}function Ln(_0x3bb080){const _0x3474f8=Object['assign']({},_0x3bb080);return delete _0x3474f8['skipNestingCheck'],delete _0x3474f8['tablePasteChainId'],_0x3474f8;}function In(_0x2205b2){return _0x2205b2['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
- _0x57a455();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x194cf3,_0x532b5c,_0xc7ad66,_0x307588){super(),this['model']=_0x532b5c,this['view']=_0xc7ad66,this['commentThreadController']=_0x307588,this['_editor']=_0x194cf3,this['_acceptCommand']=_0x194cf3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x194cf3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x257da8,_0x1b425a)=>_0x257da8||_0x1b425a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x55a664=>_0x55a664&&this['_editor']['model']['canEditAt'](_0x532b5c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x460b19=>_0x460b19&&this['_editor']['model']['canEditAt'](_0x532b5c['getRanges']())),this['_pendingAction']=null,_0xc7ad66['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xc7ad66,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xc7ad66,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xc7ad66,'change:isDirty',()=>{_0xc7ad66['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 _0xd2f585=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xd2f585);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x51fc04{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2f9303,_0x5a6b57,_0x155ee1,_0x598dc3){super(_0x2f9303),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x190603(_0x2f9303,Ot(_0x2f9303,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5a6b57['authoredAt']),this['bind']('authoredAt')['to'](_0x5a6b57),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x5a6b57,'authoredAt',this,'descriptionParts',(_0x51b3cc,_0x555c0c,_0x332cf1)=>{const _0x3e51e9=_0x332cf1['map'](_0x32d77e=>It(_0x32d77e['content']))['join']('.\x20')+'.',_0x507f18=_0x5a6b57['aiSource']&&'author'===_0x598dc3['showAISource']?_0x598dc3['aiAuthor']['name']:_0x5a6b57['author']['name'],_0x16a2ed=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x51b3cc-0x1,_0x507f18,_0x555c0c?_0x598dc3['formatDateTime'](_0x555c0c):'',new DOMParser()['parseFromString'](_0x3e51e9,'text/html')['body']['textContent']]);return _0x5a6b57['aiSource']&&'pill'===_0x598dc3['showAISource']?_0x16a2ed+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x16a2ed;}),this['focusables']=new _0x3903f4(),this['focusTracker']=new _0x372a02(),this['keystrokes']=new _0x5f12a8(),this['focusCycler']=new _0x25d76f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x38a62c=>_0x38a62c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5a6b57,this['_localUser']=_0x155ee1,this['_config']=_0x598dc3,_0x598dc3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x4470be}=this['_config'];this['commentsListView']=new _0x4470be(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',_0x16f7dc=>_0x16f7dc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3cf529,_0xb41b18)=>_0x3cf529||!!_0xb41b18);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x4b9cad}=this['_config'],_0x3b7f4f=new _0x4b9cad(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x765f29=_0x3b7f4f['commentInputView'];return _0x3b7f4f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x765f29,'value',(_0x4d94bc,_0x114e48,_0x4e9385)=>!!_0x4e9385||_0x4d94bc&&!_0x114e48),_0x765f29['on']('submit',(_0x117620,_0x35a144)=>{this['fire']('addComment',_0x35a144),_0x765f29['editor']['setData']('');}),_0x765f29['on']('cancel',()=>this['focus']()),_0x765f29['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3b7f4f;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x514c65,_0x5baed5,_0x4ef247,_0x6b7cfc){super(_0x514c65,_0x5baed5,_0x4ef247,_0x6b7cfc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5a2f39=>_0x5a2f39&&_0x5a2f39[0x0]?_0x5a2f39[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x19194e,_0xa65e2)=>{let _0x2d0102='';for(const _0x2c68cb of _0x19194e)_0x2d0102+='<p>'+It(_0x2c68cb['content'],_0x2c68cb['color'])+'</p>';return _0xa65e2?_0x2d0102:it(_0x2d0102,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x6b7cfc['SuggestionView'](_0x514c65,_0x5baed5,{'formatDateTime':_0x6b7cfc['formatDateTime'],'showAISource':_0x6b7cfc['showAISource'],'aiAuthor':_0x6b7cfc['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x5ec150=this['bindTemplate'],_0x1613fc=[this['suggestionView']];return this['commentsListView']&&_0x1613fc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1613fc['push'](this['commentThreadInputView']),_0x1613fc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ec150['if']('isActive','ck-suggestion-wrapper--active'),_0x5ec150['to']('type',_0x48600b=>'ck-suggestion-'+_0x48600b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5ec150['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1613fc};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Rn=class extends _0x51fc04{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x485291,_0x5b5b99,_0x26c3a5){super(_0x485291),this['_model']=_0x5b5b99,this['_config']=_0x26c3a5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5b5b99),this['acceptButton']=this['_createButton'](Ot(_0x485291,'Accept\x20suggestion'),_0x145b10,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x485291,'Discard\x20suggestion'),_0xecd571,'ck-suggestion--discard','discardSuggestion','sw');const _0x44b66d=!!_0x5b5b99['aiSource']&&'author'===_0x26c3a5['showAISource'],_0x2ae75d=_0x44b66d?this['_createAIUser'](_0x26c3a5['aiAuthor']):_0x5b5b99['author'],_0x5d936c=_0x44b66d&&!_0x26c3a5['aiAuthor']['avatar']?_0x3b8033:void 0x0;this['userView']=new _0x10b490(_0x485291,_0x2ae75d,this['getUserViewNotificationText'](),_0x5d936c),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3903f4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x372a02(),this['keystrokes']=new _0x5f12a8(),this['focusCycler']=new _0x25d76f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2d787d=>_0x2d787d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2fbf32=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2fbf32['innerHTML']=this['description'],this['on']('change:description',(_0x431468,_0x3dbfa2,_0x33aed0)=>{_0x2fbf32['innerHTML']=_0x33aed0;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x3d43da=this['bindTemplate'],_0x2ac612=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x3d43da['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3d43da['to']('authoredAt',_0x3fc26d=>this['_config']['formatDateTime'](_0x3fc26d))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x2ac612['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x50fe20=new _0x1fc6cd(this['locale']);_0x50fe20['set']({'icon':_0x460fe9,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x2ac612['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x50fe20]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2ac612}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x2e6f1d){return new _0x4c40b2({'id':'ck-ai-author','name':_0x2e6f1d['name'],'avatar':_0x2e6f1d['avatar'],'color':new _0x2775ce(0x0)});}_createButton(_0xf5b101,_0x110019,_0x3973f1,_0x35495f,_0x1430f6){const _0x2fcabc=new _0x3479ab(this['locale']);return _0x2fcabc['set']({'label':_0xf5b101,'icon':_0x110019,'tooltip':!0x0,'tooltipPosition':_0x1430f6}),_0x2fcabc['extendTemplate']({'attributes':{'class':_0x3973f1}}),_0x2fcabc['on']('execute',()=>{this['fire'](_0x35495f,this['_model']['id']);}),_0x2fcabc;}_setupKeyboardNavigation(){const _0x5a1e35=this['element'];this['keystrokes']['listenTo'](_0x5a1e35);for(const _0x5d3b2d of this['focusables'])this['focusTracker']['add'](_0x5d3b2d['element']),this['keystrokes']['listenTo'](_0x5d3b2d['element']);this['keystrokes']['set']('enter',(_0x20ec88,_0x4c605a)=>{_0x5a1e35===_0x20ec88['target']&&(this['focusCycler']['focusFirst'](),_0x4c605a());}),this['keystrokes']['set']('esc',(_0x3e537d,_0x26e329)=>{_0x5a1e35!==_0x3e537d['target']&&(this['focus'](),_0x26e329());});}},yn=class extends _0x46623c{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x56d88b,_0x20d369,_0x2a90fc,_0x23f102];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2194b5){super(_0x2194b5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x383c61=this['editor']['config'];_0x383c61['define']('trackChanges.SuggestionThreadView',kn),_0x383c61['define']('trackChanges.SuggestionView',Rn),_0x383c61['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x383c61['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x41aba4,_0x2f4bb5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xff4bf4,_0x51fe32]of this['_handleControllerBuffer']){const _0x596a9b=this['_suggestionToController']['has'](_0xff4bf4);_0x596a9b||_0x51fe32?_0x596a9b&&_0x51fe32&&this['_destroyController'](_0xff4bf4):this['_initializeController'](_0xff4bf4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x23f102)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x41aba4,_0x2f4bb5);}init(){const _0x1fc091=this['editor'],_0x17a4c0=_0x1fc091['plugins']['get'](on),_0x948ef5=_0x1fc091['plugins']['get'](_0x2a90fc),_0x82c88e=_0x1fc091['plugins']['get'](_0x23f102),_0x352800=_0x1fc091['plugins']['get'](_0x20d369);this['_addUIComponentsToFactory'](),_0x82c88e['addSourceCollector'](()=>{const _0x5e813f=[];for(const [_0x1e3a32,_0x58422e]of Array['from'](this['_suggestionToController'])){const _0x5428e3=_0x1e3a32['getAllAdjacentSuggestions'](),_0x53da5c=[];for(const _0x7b127c of _0x5428e3){if(!_0x7b127c['isInContent'])continue;if(_0x7b127c['isMultiRange']){_0x53da5c['push'](..._0x7b127c['getRanges']());continue;}const _0x7ceeb3=_0x7b127c['getFirstRange']();if(_0x53da5c['length']>0x0){const _0x356851=_0x53da5c[0x0]['getJoined'](_0x7ceeb3);if(_0x356851){_0x53da5c[0x0]=_0x356851;continue;}}_0x53da5c['push'](_0x7ceeb3);}_0x5e813f['push']([_0x58422e['view'],_0x53da5c]);}return _0x5e813f;}),this['listenTo'](_0x17a4c0,'suggestionLoaded',(_0x136948,_0x198371)=>{this['listenTo'](_0x198371,'change:previous',(_0x528960,_0x4a0adf,_0xe43775,_0x19026d)=>{_0x198371['isInContent']&&(null==_0xe43775?(this['_updateController'](_0x19026d['head']),this['_handleSuggestionControllerDelayed'](_0x198371,!0x1)):(this['_updateController'](_0xe43775['head']),null==_0x19026d&&this['_handleSuggestionControllerDelayed'](_0x198371,!0x0)));}),null!==_0x198371['previous']?this['_updateController'](_0x198371['head']):this['_handleSuggestionControllerDelayed'](_0x198371,!0x1);}),this['listenTo'](_0x17a4c0,'suggestionUnloaded',(_0x40b0fc,_0x5b7dff,_0x52ca0f)=>{this['stopListening'](_0x5b7dff,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5b7dff),this['_suggestionToController']['has'](_0x5b7dff)&&this['_destroyController'](_0x5b7dff),_0x52ca0f&&this['_updateController'](_0x52ca0f['head']);}),this['listenTo'](_0x17a4c0,'suggestionChanged',(_0x3c5906,_0x5048a5)=>{this['_updateController'](_0x5048a5);}),this['listenTo'](_0x948ef5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x352800,'addComment',(_0x1c313e,{threadId:_0x267b4d,isFromAdapter:_0x33cc28})=>{if(_0x33cc28||!_0x17a4c0['hasSuggestion'](_0x267b4d))return;const _0x1352cb=_0x17a4c0['getSuggestion'](_0x267b4d);this['_suggestionToController']['get'](_0x1352cb)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c4f3e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53f55a;for(const _0x363031 in _0x3c4f3e){const _0x129033=_0x363031,_0x151a48=_0x3c4f3e[_0x129033];if('trackChangesLicenseKeyValid'==_0x151a48||'trackChangesLicenseKeyInvalid'==_0x151a48||'trackChangesLicenseKeyExpired'==_0x151a48||'trackChangesLicenseKeyDomainLimit'==_0x151a48||'trackChangesLicenseKeyNotAllowed'==_0x151a48||'trackChangesLicenseKeyEvaluationLimit'==_0x151a48||'trackChangesLicenseKeyUsageLimit'==_0x151a48){delete _0x3c4f3e[_0x129033],_0x53f55a=_0x151a48,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x53f55a&&_0x3c4f3e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x53f55a&&_0x3c4f3e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x53f55a&&_0x3c4f3e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x53f55a&&_0x3c4f3e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x53f55a&&_0x3c4f3e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x53f55a&&_0x3c4f3e['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x4d9fa7){const _0x8ab9e4=this['_suggestionToController']['get'](_0x4d9fa7);return _0x8ab9e4&&this['editor']['plugins']['get'](_0x2a90fc)['getByInnerView'](_0x8ab9e4['view'])||null;}getSuggestionForAnnotation(_0x57f5d9){const _0x27f49a=this['_viewToController']['get'](_0x57f5d9['innerView']);return _0x27f49a?_0x27f49a['model']:null;}_refreshActiveMarkers(){const _0x35407e=this['editor']['plugins']['get'](_0x2a90fc),_0x4ba52c=this['editor']['plugins']['get'](on),_0x3258fe=Array['from'](_0x35407e['activeAnnotations'],_0x573a57=>_0x573a57['innerView'])['filter'](_0x4b763d=>this['_viewToController']['has'](_0x4b763d)),_0x2c9641=[];for(const _0x41de2e of _0x3258fe){const _0x53266a=this['_viewToController']['get'](_0x41de2e)['model']['getAllAdjacentSuggestions']();_0x2c9641['push'](..._0x53266a['reduce']((_0x2838f4,_0x9aaea8)=>[..._0x2838f4,..._0x9aaea8['getMarkerNames']()],[]));}_0x4ba52c['activeMarkers']=_0x2c9641;}_addUIComponentsToFactory(){const _0xdb0a42=this['editor'],_0x2b6658=_0xdb0a42['locale'],_0x56ec06=Ot(_0x2b6658,'Track\x20changes'),_0x22bad4=new _0x38d6ab([{'type':'switchbutton','model':new _0x3732df({'withText':!0x0,'isToggleable':!0x0,'label':_0x56ec06,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3732df({'withText':!0x0,'label':Ot(_0x2b6658,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3732df({'withText':!0x0,'label':Ot(_0x2b6658,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3732df({'withText':!0x0,'label':Ot(_0x2b6658,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3732df({'withText':!0x0,'label':Ot(_0x2b6658,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xdb0a42['plugins']['has']('TrackChangesPreview')&&_0x22bad4['addMany']([{'type':'separator'},{'type':'button','model':new _0x3732df({'withText':!0x0,'label':Ot(_0x2b6658,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x22ab9d of _0x22bad4)if(Nn(_0x22ab9d)){const _0x30d810=_0xdb0a42['commands']['get'](_0x22ab9d['model']['commandName']);_0x22ab9d['model']['bind']('isOn','isEnabled')['to'](_0x30d810,'value','isEnabled');}_0xdb0a42['ui']['componentFactory']['add']('trackChanges',_0x2404c8=>this['_createToolbarButton'](_0x2404c8,_0x22bad4,_0x56ec06)),_0xdb0a42['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4b109e=>this['_createMenuBarMenu'](_0x4b109e,_0x22bad4,_0x56ec06));}_createToolbarButton(_0x417222,_0x530d2d,_0x62e01a){const _0x56bcb1=_0x193872(_0x417222,_0x10f459),_0x3c3a7f=this['editor']['commands']['get']('trackChanges');_0x56bcb1['buttonView']['set']({'tooltip':_0x62e01a,'label':_0x62e01a,'icon':_0x2a8cb9}),_0x56bcb1['buttonView']['bind']('isOn')['to'](_0x3c3a7f,'value'),_0x56bcb1['buttonView']['on']('execute',()=>{_0x3c3a7f['execute'](),this['editor']['editing']['view']['focus']();}),_0x39cb2d(_0x56bcb1,_0x530d2d,{'role':'menu'});const _0x360055=[];for(const _0x5e21e8 of _0x530d2d)Nn(_0x5e21e8)&&_0x360055['push'](this['editor']['commands']['get'](_0x5e21e8['model']['commandName']));const _0x362450=_0x56bcb1['buttonView'];return _0x362450['actionView']['unbind']('isEnabled'),_0x362450['arrowView']['unbind']('isEnabled'),_0x362450['actionView']['bind']('isEnabled')['to'](_0x3c3a7f,'isEnabled'),_0x362450['arrowView']['bind']('isEnabled')['toMany'](_0x360055,'isEnabled',(..._0x23c76f)=>_0x23c76f['some'](_0x5dee64=>_0x5dee64)),_0x56bcb1['on']('execute',_0x51d762=>{this['editor']['execute'](_0x51d762['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x56bcb1;}_createMenuBarMenu(_0x3fa613,_0x34d739,_0x5b7ee0){const _0x391274=new _0x3cc620(_0x3fa613),_0x241d34=this['editor']['commands']['get']('trackChanges');_0x391274['buttonView']['set']({'label':_0x5b7ee0,'icon':_0x2a8cb9});const _0x105309=new _0x49f11b(_0x3fa613);for(const _0x3f1441 of _0x34d739){if('separator'==_0x3f1441['type']){_0x105309['items']['add'](new _0x401df3(_0x3fa613));continue;}const _0x48aee9=new _0x3d6de3(_0x3fa613,_0x391274),_0x2acc27=new _0x4ff684(_0x3fa613),_0x3318ba=_0x3f1441['model'];_0x2acc27['bind'](...Object['keys'](_0x3318ba))['to'](_0x3318ba),_0x2acc27['delegate']('execute')['to'](_0x391274),_0x2acc27['on']('execute',()=>{this['editor']['execute'](_0x3318ba['commandName']),this['editor']['editing']['view']['focus']();}),_0x48aee9['children']['add'](_0x2acc27),_0x105309['items']['add'](_0x48aee9);}return _0x391274['bind']('isEnabled')['to'](_0x241d34,'isEnabled'),_0x391274['panelView']['children']['add'](_0x105309),_0x391274;}_initializeController(_0x1a3214){const _0x1c0297=this['editor'],_0x341b9e=_0x1c0297['config'],_0x54f0bd=_0x1c0297['plugins']['get'](_0x2a90fc),_0x2110d8=_0x1c0297['plugins']['get'](_0x20d369),_0x1300a9=_0x1c0297['plugins']['get'](_0x23f102),_0x4e6501=_0x1c0297['plugins']['get'](_0x56d88b)['me'],_0x58e3cc=_0x341b9e['get']('trackChanges')['SuggestionThreadView'],_0x2f4fa9=_0x341b9e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2637b3,CommentThreadInputView:_0x146818}=_0x1c0297['plugins']['get']('CommentsUI');let _0x2bd0da,_0x45568f,_0x1accff;this['_annotationViews']['has'](_0x1a3214['id'])?(_0x45568f=this['_annotationViews']['get'](_0x1a3214['id']),_0x2bd0da=_0x45568f['mainView']):(_0x2bd0da=new _0x58e3cc(_0x1c0297['locale'],_0x1a3214,_0x4e6501,{'disableComments':this['_disableComments'],'editorConfig':{..._0x341b9e['get']('comments.editorConfig'),'licenseKey':_0x341b9e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x341b9e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x341b9e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x341b9e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x33f4c3(_0x341b9e['get']('locale'),_0x1c0297['locale']),'CommentView':_0x341b9e['get']('comments')['CommentView'],'CommentsListView':_0x2637b3,'CommentThreadInputView':_0x146818,'SuggestionView':_0x2f4fa9,'showAISource':_0x341b9e['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x341b9e['get']('trackChanges.aiAuthor'),'name':_0x341b9e['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x1c0297['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x2bd0da['suggestionView']['acceptButton']['on']('execute',()=>{_0x1c0297['editing']['view']['focus']();}),_0x2bd0da['suggestionView']['discardButton']['on']('execute',()=>{_0x1c0297['editing']['view']['focus']();}),_0x45568f=_0x54f0bd['createAnnotationView'](this['editor']['locale'],_0x2bd0da),_0x45568f['bind']('isDirty')['to'](_0x2bd0da,'isDirty'),_0x45568f['bind']('length')['to'](_0x2bd0da),_0x45568f['bind']('type')['to'](_0x2bd0da,'type',_0x5b822e=>'suggestion-'+_0x5b822e),_0x2bd0da['on']('escape',()=>{_0x1accff['fire']('escape');}),this['_annotationViews']['set'](_0x1a3214['id'],_0x45568f));const _0x5a5408=_0x2110d8['createCommentThreadController'](_0x1a3214['commentThread'],_0x2bd0da),_0x2933ba=new bn(_0x1c0297,_0x1a3214,_0x2bd0da,_0x5a5408),_0x522a56=_0x1a3214['getAllAdjacentSuggestions']()['filter'](_0x217410=>_0x217410['isInContent']);_0x2bd0da['descriptionParts']=_0x1c0297['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x522a56),this['_suggestionToController']['set'](_0x1a3214,_0x2933ba),this['_viewToController']['set'](_0x2bd0da,_0x2933ba);const _0x3d7c32=()=>{const _0x3138e8=[],_0x148622=_0x1a3214['getAllAdjacentSuggestions']()['filter'](_0x313f58=>_0x313f58['isInContent']);for(const _0x372787 of _0x148622)_0x3138e8['push'](..._0x372787['getMarkers']());return _0xa09f19(_0x1c0297['editing'],_0x3138e8);};_0x1accff=_0x54f0bd['createAnnotation']({'view':_0x45568f,'target':_0x3d7c32,'type':()=>'suggestion-'+_0x2933ba['view']['type'],'isVisible':!!_0x3d7c32()}),_0x2110d8['_bindAnnotationToEditors'](_0x2bd0da,_0x1accff),_0x54f0bd['add'](_0x1accff),_0x1300a9['registerAnnotation'](_0x1accff);}_destroyController(_0x11db2b){const _0x20af3c=this['editor']['plugins']['get'](_0x20d369),_0x10f6ff=this['editor']['plugins']['get'](_0x2a90fc),_0x487211=this['_suggestionToController']['get'](_0x11db2b),_0x31e614=_0x487211['view'],_0x29ca53=_0x10f6ff['getByInnerView'](_0x31e614);_0x20af3c['_unbindEditors'](_0x31e614),_0x29ca53&&_0x10f6ff['remove'](_0x29ca53),this['_suggestionToController']['delete'](_0x11db2b),this['_viewToController']['delete'](_0x31e614),_0x487211['destroy']();}_updateController(_0x1dfb3b){if(!_0x1dfb3b['isInContent']||!this['_suggestionToController']['has'](_0x1dfb3b))return;const _0x40c8d1=this['editor']['plugins']['get'](on),_0xea4d3b=this['_suggestionToController']['get'](_0x1dfb3b),_0x3e3be3=_0x1dfb3b['getAllAdjacentSuggestions']();_0xea4d3b['view']['descriptionParts']=_0x40c8d1['descriptionFactory']['getDescriptions'](_0x3e3be3);}destroy(){for(const _0x328409 of this['_suggestionToController']['keys']())this['_destroyController'](_0x328409);for(const _0xa13e85 of this['_annotationViews']['values']())_0xa13e85['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x30a88d){return'model'in _0x30a88d;}var Sn=class extends _0x46623c{static get requires(){return[on,yn,_0x4185e5];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x419215){this['editor']['plugins']['get'](on)['adapter']=_0x419215;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x2ceeed){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x2ceeed);}getSuggestions({skipNotAttached:_0x40c07c=!0x1,toJSON:_0x3eb871=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x40c07c,'toJSON':_0x3eb871});}getSuggestion(_0x41948a){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x41948a);}};const Mn=['Pagination'];var On=class extends _0x46623c{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x2f9e37=this['editor'];if(_0x2f9e37['config']['define']('trackChangesData.editorCreator',_0x6ac83=>{const _0x4ab613=_0x2f9e37['model']['document']['getRootNames']()['reduce']((_0x3fc203,_0x4720d0)=>(_0x3fc203[_0x4720d0]='',_0x3fc203),{});return _0x2f9e37['constructor']['create'](_0x4ab613,_0x6ac83);}),'function'!=typeof _0x2f9e37['config']['get']('trackChangesData')['editorCreator'])throw new _0x30d1b9('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x50f75a){return Bn(this['editor'],!0x0,_0x50f75a);}getDataWithDiscardedSuggestions(_0x1c8d63){return Bn(this['editor'],!0x1,_0x1c8d63);}},wn=class extends _0x46623c{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3409de){super(_0x3409de),this['result']='end',_0x3409de['editing']['view']['_overlayModeHint']='auto',_0x3409de['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x321fc4){return void 0x0!==_0x321fc4['getRootsAttributes'];}async function Bn(_0x461463,_0x50f2d9,_0x5959ba){const _0x3a5cb4=_0x1f50ae(_0x461463,Mn);if(_0x3a5cb4['plugins']['push'](on,wn),Fn(_0x461463)){_0x3a5cb4['roots']=Object['create'](null);for(const _0x390d03 of _0x461463['model']['document']['getRootNames']())_0x3a5cb4['roots'][_0x390d03]={'modelAttributes':_0x461463['getRootAttributes'](_0x390d03)};}const _0x5d0dad=document['createDocumentFragment'](),_0x4625a1=_0x461463['config']['get']('trackChangesData')['editorCreator'],_0x54024d=await _0x4625a1(_0x3a5cb4,()=>function(_0x11fd7f){const _0x452bee=document['createElement']('div');return _0x11fd7f['appendChild'](_0x452bee),_0x452bee;}(_0x5d0dad));!function(_0x314c4d,_0x396049){const _0x1578b6=_0x314c4d['model']['document']['getRootNames']()['reduce']((_0x194472,_0x415ed2)=>(_0x194472[_0x415ed2]=_0x314c4d['data']['get']({'rootName':_0x415ed2}),_0x194472),{}),_0x5546f2=_0x314c4d['plugins']['get']('Users')['users']['map'](_0x1f41f8=>({'id':_0x1f41f8['id'],'name':_0x1f41f8['name']})),_0x26e64b=_0x314c4d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf380fa=_0x314c4d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x522f46=_0x396049['plugins']['get']('Users'),_0x4664a3=_0x396049['plugins']['get']('TrackChangesEditing'),_0x248873=_0x396049['plugins']['get']('CommentsRepository');for(const _0x5a4793 of _0x248873['getCommentThreads']())_0x5a4793['remove']();for(const _0x51bb38 of _0x5546f2)_0x522f46['getUser'](_0x51bb38['id'])||_0x522f46['addUser'](_0x51bb38);_0x522f46['me']||_0x522f46['useAnonymousUser']();for(const _0xddd5b0 of _0xf380fa)_0x248873['addCommentThread'](_0xddd5b0);for(const _0x5e6026 of _0x26e64b)_0x4664a3['addSuggestionData'](_0x5e6026);_0x396049['data']['set'](_0x1578b6);}(_0x461463,_0x54024d),_0x54024d['execute'](_0x50f2d9?'acceptAllSuggestions':'discardAllSuggestions');const _0xe4ab4a=Fn(_0x54024d)?_0x54024d['getFullData'](_0x5959ba):_0x54024d['data']['get'](_0x5959ba);return await _0x54024d['destroy'](),_0xe4ab4a;}var vn=class extends _0x51fc04{options;constructor(_0x57219b,_0x5e7048){super(_0x57219b),this['options']=_0x5e7048,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x3a6791,_0x1426fa){if(!this['element'])return;const _0xca0483=[];for(const [_0x2cfa2b,_0x29302c]of _0x3a6791){const _0x5a2efd=document['createElement']('div');_0x5a2efd['setAttribute']('data-ck-root-name',_0x2cfa2b),_0x5a2efd['className']=_0x29302c['classes']+'\x20ck-track-changes-preview__root-container',_0x5a2efd['innerHTML']=_0x29302c['content'],_0xca0483['push'](_0x5a2efd);}_0x1426fa(this['element'],_0xca0483),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x2d4b1a{constructor(_0x5b6b49){super(_0x5b6b49),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x3bc17d=this['editor'],_0x484f39=_0x3bc17d['locale'],_0x22fc8f=_0x3bc17d['plugins']['get']('Dialog');let _0x313023;const _0x5e574a=function(_0x316e5a){const _0x442aaf={};if('editables'in _0x316e5a['ui']['view']){for(const [_0x5e6be2,_0x1a9b40]of Object['entries'](_0x316e5a['ui']['view']['editables']))_0x442aaf[_0x5e6be2]=_0x1a9b40['element'];}else _0x442aaf[_0x316e5a['model']['document']['getRootNames']()[0x0]]=_0x316e5a['ui']['view']['editable']['element'];return _0x442aaf;}(_0x3bc17d),_0x598dc6=function(_0x435b4b){let _0x3413e5=0x0;for(const _0x41f7d3 of Object['values'](_0x435b4b))_0x3413e5=Math['max'](_0x3413e5,_0x41f7d3['getBoundingClientRect']()['width']);let _0x39bc66=0x0;for(const _0x5e097b of Object['values'](_0x435b4b))_0x39bc66+=_0x5e097b['getBoundingClientRect']()['height'];const _0x4f94b9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x3413e5,'height':Math['min'](_0x39bc66,_0x4f94b9)};}(_0x5e574a);_0x22fc8f['show']({'id':'finalContentPreview','title':Ot(_0x484f39,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x484f39,{'dialogRects':_0x598dc6}),'onHide':()=>{_0x313023['detachFromDom']();},'onShow':()=>{_0x3bc17d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3b6081=>{const _0x3efa13=this['_standarizeRootsData'](_0x3b6081,_0x3bc17d,_0x5e574a);_0x22fc8f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3efa13,_0x3bc17d['config']['get']('trackChanges.preview.renderFunction'));}),_0x313023=new _0x3249a9(_0x484f39,[_0x22fc8f['view']]),_0x313023['attachToDom'](),_0x313023['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3bc17d['once']('destroy',()=>{_0x313023['detachFromDom']();});const _0xe6dec8=_0x22fc8f['view']['headerView']['class'];_0x22fc8f['view']['headerView']['class']=_0xe6dec8?_0xe6dec8+'\x20ck-reset_all':'ck-reset_all',_0x22fc8f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x22fc8f['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x22813e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4e3cd1=_0x22813e['previewMode'],_0xa0c119={};if('$labels'===_0x4e3cd1){for(const _0x170b24 of _0x22813e['getMergeFieldsIds']())_0xa0c119[_0x170b24]=_0x22813e['getLabel'](_0x170b24)||_0x170b24;}else{const _0x466bc4='$defaultValues'===_0x4e3cd1?_0x22813e['getDefaultValues']():_0x22813e['getDataSetValues'](_0x4e3cd1,!0x0);for(const _0x256f22 of Object['entries'](_0x466bc4)){const [_0x196662,_0x25213a]=_0x256f22;_0xa0c119[_0x196662]=null!==_0x25213a?_0x25213a:_0x22813e['getLabel'](_0x196662)||_0x196662;}}return{'mergeFieldsData':_0xa0c119};}_standarizeRootsData(_0x482ca6,_0x42d399,_0x5a36d8){let _0x339d6e;_0x339d6e='string'==typeof _0x482ca6?{[_0x42d399['model']['document']['getRootNames']()[0x0]]:_0x482ca6}:_0x482ca6;const _0x3f50f9=this['_fixMediaEmbeds'](_0x339d6e,_0x42d399);return function(_0x3507a6,_0x3c8238){for(const [_0x588750,_0x4f7f9f]of _0x3507a6)_0x4f7f9f['classes']=_0x3c8238[_0x588750]['classList']['value']['replace']('ck-focused','');return _0x3507a6;}(this['_sortRoots'](_0x42d399)['reduce']((_0x566dcc,_0xc87a3f)=>(_0x566dcc['push']([_0xc87a3f,{'content':_0x3f50f9[_0xc87a3f],'classes':''}]),_0x566dcc),[]),_0x5a36d8);}['_fixMediaEmbeds'](_0x4f6189,_0x51b000){if(!_0x51b000['plugins']['has']('MediaEmbedEditing'))return _0x4f6189;const _0x1bb55d=_0x51b000['plugins']['get']('MediaEmbedEditing');for(const [_0x2a57ae,_0x1a6fd1]of Object['entries'](_0x4f6189)){const _0x2bf89a=document['createElement']('div');_0x2bf89a['innerHTML']=_0x1a6fd1,_0x2bf89a['querySelectorAll']('figure.media')['forEach'](_0x2e51ea=>{const _0x57c645=_0x2e51ea['querySelector']('oembed');if(_0x57c645){const _0x2bc545=_0x57c645['getAttribute']('url');if(_0x2bc545){const _0x4d1562=_0x1bb55d['registry']['getMediaViewElement'](new at(_0x51b000['editing']['view']['document']),_0x2bc545,{'elementName':'','renderForEditingView':!0x0}),_0x13176d=document['createElement']('div');_0x13176d['classList']['add']('ck-media__wrapper'),_0x4d1562['render'](_0x13176d,_0x51b000['editing']['view']['domConverter']),_0x57c645['replaceWith'](_0x13176d);}}}),_0x4f6189[_0x2a57ae]=_0x2bf89a['innerHTML'];}return _0x4f6189;}_sortRoots(_0x1db054){if(!function(_0x47ff03){return void 0x0!==_0x47ff03['getRootsAttributes'];}(_0x1db054))return _0x1db054['model']['document']['getRootNames']();const _0x1e626c=[],_0x43e3dd=new Map();for(const _0x54e552 of _0x1db054['model']['document']['getRootNames']()){const _0x26d0ae=_0x1db054['editing']['view']['getDomRoot'](_0x54e552)['getClientRects']()['item'](0x0);_0x1e626c['push'](_0x54e552),_0x43e3dd['set'](_0x54e552,_0x26d0ae);}return _0x1e626c['sort']((_0x4a7139,_0x1cb280)=>{const _0x1eb759=_0x43e3dd['get'](_0x4a7139),_0x42c771=_0x43e3dd['get'](_0x1cb280);return _0x1eb759['y']-_0x42c771['y']||_0x1eb759['x']-_0x42c771['x'];}),_0x1e626c;}},Un=class extends _0x46623c{static get requires(){return[On,_0xcae17c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2456ea){super(_0x2456ea),_0x2456ea['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x2456ea['config']['define']('trackChanges.preview.renderFunction',(_0x5e2331,_0x4aec3b)=>{for(const _0x480db7 of _0x4aec3b)_0x5e2331['appendChild'](_0x480db7);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
23
+ import{Command as _0x36cb40,PendingActions as _0x3845e1,Plugin as _0x1f600}from'@ckeditor/ckeditor5-core';import{Annotations as _0x47fad5,Comments as _0x31c31a,CommentsRepository as _0x496d24,EditorAnnotations as _0x4a5899}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x551602,Collection as _0x40a69f,FocusTracker as _0x232d1c,KeystrokeHandler as _0x3f3b3a,ObservableMixin as _0x561130,getEnvKeystrokeText as _0x2d824e,insertToPriorityArray as _0x4972bf,logWarning as _0x57e45c,priorities as _0x15636f,uid as _0x51282a}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x37e2a9,IconCancel as _0x5c91fc,IconCheck as _0x3a25ec,IconSparkle as _0x35255a,IconTrackChanges as _0x2d40ca}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x5cdee9,Dialog as _0x2f5204,FocusCycler as _0xb80481,ListSeparatorView as _0x4f740e,MenuBarMenuListItemButtonView as _0x46ff38,MenuBarMenuListItemView as _0x8130a5,MenuBarMenuListView as _0x57c1a0,MenuBarMenuView as _0xb5c3ae,SplitButtonView as _0x10711f,UIModel as _0x45771c,View as _0xb5c2ba,ViewCollection as _0x952a5c,addListToDropdown as _0x5c6760,createDropdown as _0x216057,normalizeColorOptions as _0x440930}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x55adc0,CollaborationUserColor as _0x283d91,DocumentCompare as _0x5ad44d,FOCUS_ANNOTATION_KEYSTROKE as _0xe738f5,LateFocusButtonView as _0x5ab2ba,PillView as _0x101e7c,SuggestionsConversion as _0x323228,User as _0x3c1377,UserView as _0x2cbd2f,Users as _0x340ac5,fixElementSuggestionRange as _0x38a61e,getAllMarkersDomElementsSorted as _0x533ece,getDateTimeFormatter as _0x258310,hashObject as _0x4156df,isInvalidAttributeOperation as _0x56ea0e,sanitizeEditorConfig as _0x301952,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0x36cb40{['_enabledCommands'];constructor(_0x4dcad3,_0x4963e8){super(_0x4dcad3),this['_enabledCommands']=_0x4963e8,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 _0x4a805c of this['editor']['commands']['commands']())_0x4a805c['affectsData']&&!this['_enabledCommands']['has'](_0x4a805c)&&_0x4a805c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x509975 of this['editor']['commands']['commands']())_0x509975['affectsData']&&!this['_enabledCommands']['has'](_0x509975)&&_0x509975['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0x36cb40{_suggestions;constructor(_0x3e6012,_0x36830b){super(_0x3e6012),this['_suggestions']=_0x36830b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x10a4ca){const _0x38a08e=this['_suggestions']['get'](_0x10a4ca);if(!_0x38a08e)throw new _0x551602('track-changes-accept-suggestion-not-found',this);const _0x2f3b0e=_0x38a08e['getRanges']();this['editor']['model']['canEditAt'](_0x2f3b0e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x38a08e);}},Lt=class extends _0x36cb40{_suggestions;constructor(_0xbc9487,_0x591172){super(_0xbc9487),this['_suggestions']=_0x591172,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x4e6148){const _0x1478c8=this['_suggestions']['get'](_0x4e6148);if(!_0x1478c8)throw new _0x551602('track-changes-discard-suggestion-not-found',this);const _0xd44ed6=_0x1478c8['getRanges']();this['editor']['model']['canEditAt'](_0xd44ed6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1478c8);}};function It(_0x441a41,_0x575bb1){let _0x4ad1ee='';return _0x4ad1ee+=_0x441a41['split']('*')['map']((_0x3f2d48,_0x2d7493)=>_0x2d7493%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0x3f2d48)+'</span>':At(_0x3f2d48))['join'](''),_0x575bb1&&(_0x4ad1ee+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x575bb1['value']+'\x22\x20title=\x22'+_0x575bb1['title']+'\x22></span>'),_0x4ad1ee;}function At(_0x905cd9){const _0x53587e=document['createElement']('span');return _0x53587e['innerText']=_0x905cd9,_0x53587e['innerHTML'];}function bt(_0x805948){return _0x805948['sort']((_0x4713f5,_0x2121a4)=>'attribute'===_0x4713f5['type']&&'attribute'!==_0x2121a4['type']?-0x1:'attribute'!==_0x4713f5['type']&&'attribute'===_0x2121a4['type']?0x1:'deletion'==_0x4713f5['type']&&'deletion'!=_0x2121a4['type']?-0x1:'deletion'!=_0x4713f5['type']&&'deletion'==_0x2121a4['type']?0x1:0x0);}function Ct(_0x3a687b,_0x13b64b){let _0x39a556,_0x5f533c=0x0;const _0x2573c3=[],_0x374aff=_0x13b64b['schema'];for(;_0x5f533c<_0x3a687b['length'];){const _0x17936f=_0x3a687b[_0x5f533c],_0x3e44f9=_0x3a687b[_0x5f533c+0x1];_0x39a556||(_0x39a556=_0x13b64b['createPositionBefore'](_0x17936f)),kt(_0x13b64b,_0x17936f,_0x3e44f9)||(_0x2573c3['push'](_0x13b64b['createRange'](_0x39a556,_0x374aff['isObject'](_0x17936f)?_0x13b64b['createPositionAfter'](_0x17936f):_0x13b64b['createPositionAt'](_0x17936f,'end'))),_0x39a556=null),_0x5f533c++;}return _0x2573c3;}function kt(_0x1a1065,_0x2b8889,_0x277033){if(!_0x277033)return!0x1;const _0x5f250b=_0x1a1065['createPositionAfter'](_0x2b8889),_0x221fd3=_0x1a1065['createPositionBefore'](_0x277033);return _0x5f250b['isTouching'](_0x221fd3);}function Rt(_0x2d98ec,_0x5a8519,_0x29f23f){for(;_0x29f23f['length'];){const _0x4f89c5=_0x29f23f['splice'](0x0,0x64);_0x2d98ec['change'](()=>{for(const _0x29f944 of _0x4f89c5)_0x29f944['isInContent']&&_0x5a8519['execute'](_0x29f944['id']);});}}var yt=class extends _0x36cb40{['_command'];_suggestions;constructor(_0x8621d6,_0x218e29,_0x3c299e){super(_0x8621d6),this['_command']=_0x218e29,this['_suggestions']=_0x3c299e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2de039=Array['from'](this['_suggestions']['values']())['some'](_0xba4c64=>_0xba4c64['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2de039;}execute(){const _0x2bae42=bt(Array['from'](this['_suggestions']['values']()));for(const _0x3babc0 of _0x2bae42){const _0x18087e=_0x3babc0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x18087e))return;}Rt(this['editor']['model'],this['_command'],_0x2bae42);}},Nt=class extends _0x36cb40{['_command'];_suggestions;_selectedSuggestions;constructor(_0xc4636d,_0x1a4846,_0x5695b9){super(_0xc4636d),this['_command']=_0x1a4846,this['_suggestions']=_0x5695b9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xeb2af4=this['editor']['model']['document']['selection'],_0xf194d6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x40a98b,_0x4a0e46){const _0x553d76=Array['from'](_0x40a98b['getRanges']()),_0x4c1371=new Set();for(const _0x452afa of _0x4a0e46)if(_0x452afa['isInContent']){for(const _0x74d1cb of _0x553d76)for(const _0x5e0b7a of _0x452afa['getRanges']())(_0x74d1cb['isIntersecting'](_0x5e0b7a)||_0x40a98b['isCollapsed']&&!_0x452afa['isMultiRange']&&_0x452afa['next']&&_0x5e0b7a['end']['isTouching'](_0x74d1cb['start']))&&_0x4c1371['add'](_0x452afa);}return _0x4c1371;}(_0xeb2af4,_0xf194d6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x18d74b=bt(Array['from'](this['_selectedSuggestions']));for(const _0x3464a8 of _0x18d74b){const _0x4e7b1f=_0x3464a8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e7b1f))return;}Rt(this['editor']['model'],this['_command'],_0x18d74b);}};const St=/* #__PURE__ -- @preserve */
24
+ _0x561130();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x3fc82d,_0x4c1ad4){super(),this['id']=_0x4c1ad4['id'],this['type']=_0x4c1ad4['type'],this['subType']=_0x4c1ad4['subType']||null,this['author']=_0x4c1ad4['author'],this['creator']=_0x4c1ad4['creator']||_0x4c1ad4['author'],this['data']=null,this['_originalSuggestionId']=_0x4c1ad4['originalSuggestionId']||null,this['_model']=_0x3fc82d,this['_onAccept']=_0x4c1ad4['onAccept'],this['_onDiscard']=_0x4c1ad4['onDiscard'],this['_onAttributesChange']=_0x4c1ad4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4c1ad4['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x47de14=this;for(;_0x47de14['previous'];)_0x47de14=_0x47de14['previous'];return _0x47de14;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x474e39){this['_markerNames']['add'](_0x474e39);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x598445=>this['_model']['markers']['get'](_0x598445))['filter'](_0x2056e9=>_0x2056e9);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f29ab=>{for(const _0x8703fb of this['getMarkers']())_0x5f29ab['removeMarker'](_0x8703fb);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c67ac){this['_model']['change'](_0x54e9e8=>{_0x54e9e8['removeMarker'](_0x1c67ac);}),this['_markerNames']['delete'](_0x1c67ac);}['addRange'](_0xdc8326){const _0x49e448='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x49e448),this['_model']['change'](_0x2b9950=>{_0x2b9950['addMarker'](_0x49e448,{'range':_0xdc8326,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x2a8dc1){for(const _0x4a70ef of this['getRanges']())if(_0x4a70ef['isIntersecting'](_0x2a8dc1))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0xa6d19f=>_0xa6d19f['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x1df17d,_0xf89fcc)=>[..._0x1df17d,..._0xf89fcc['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x59a311=this['getRanges']();if(0x1!=_0x59a311['length'])return null;const _0x1e795=_0x59a311[0x0],_0x4eaa62=_0x1e795['start']['nodeAfter'],_0x338699=_0x1e795['end']['nodeBefore'];return _0x4eaa62 instanceof st?_0x4eaa62!=_0x338699?null:_0x4eaa62: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 _0x4230e2=[];let _0x52d6f9=this['head'];for(;_0x52d6f9;)_0x4230e2['push'](_0x52d6f9),_0x52d6f9=_0x52d6f9['next'];return _0x4230e2;}setAttribute(_0x47d02a,_0x5dff86){const _0x16a757=ct(this['attributes']);dt(_0x16a757,_0x47d02a,_0x5dff86),lt(_0x16a757,this['attributes'])||(this['attributes']=_0x16a757,this['_onAttributesChange'](_0x16a757));}removeAttribute(_0x178abf){const _0x46ec5a=ct(this['attributes']);ht(_0x46ec5a,_0x178abf),lt(_0x46ec5a,this['attributes'])||(this['attributes']=_0x46ec5a,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 _0x51282a()['substr'](0x1,0x5);}};function Ot(_0x2a6d28,_0x283dcf,_0x535e59){const _0x464cb3=_0x2a6d28['t'],t=_0x2a6d28['t'];switch(_0x283dcf){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x535e59);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x535e59);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x535e59);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x535e59);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x535e59);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',_0x535e59);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x535e59);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x535e59);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x535e59);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x535e59);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x535e59);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x535e59);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x535e59);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x535e59);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x535e59);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x535e59);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x535e59);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x535e59);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x535e59);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x535e59);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x535e59);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x535e59);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x535e59);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x535e59);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x535e59);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'},_0x535e59);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x535e59);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x535e59);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x535e59);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x535e59);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x535e59);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x535e59);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x535e59);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x535e59);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x535e59);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x535e59);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x535e59);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x535e59);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x535e59);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x535e59);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x535e59);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'},_0x535e59);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x535e59);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x535e59);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'},_0x535e59);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x535e59);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'},_0x535e59);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x535e59);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x535e59);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x535e59);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x535e59);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x535e59);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x535e59);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x535e59);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x464cb3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x535e59);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x464cb3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x535e59);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x535e59);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x535e59);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x535e59);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x535e59);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x283dcf;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x3db952,_0x5ba327){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3db952,this['_locale']=_0x5ba327;}getDescriptions(_0x4b056a){const _0x275f69=[],_0x79907e=new Set(),_0x4d3484=new Set();for(let _0x207e23=0x0;_0x207e23<_0x4b056a['length'];_0x207e23++){const _0xedc752=_0x4b056a[_0x207e23];if(!_0xedc752['isInContent'])continue;const _0x1780bf=this['_handleCustomCallbackDescription'](_0xedc752);if(_0x1780bf){if(null!=_0xedc752['subType']){if(_0x79907e['has'](_0xedc752['subType']))continue;_0x79907e['add'](_0xedc752['subType']);}_0x275f69['push'](_0x1780bf);}else{if('attribute'==_0xedc752['type']){const _0x49e063=_0xedc752['data']['key'];if(_0x4d3484['has'](_0x49e063))continue;_0x4d3484['add'](_0xedc752['data']['key']),'$elementName'==_0x49e063?this['_handleRenameSuggestionDescription'](_0x275f69,_0xedc752):this['_handleAttributeSuggestionDescription'](_0x275f69,_0xedc752);continue;}'insertion'!=_0xedc752['type']&&'deletion'!=_0xedc752['type']||this['_handleInsertRemoveSuggestionDescription'](_0x275f69,_0xedc752,_0x4b056a[_0x207e23+0x1]);}}return this['_resolveDescriptionItems'](_0x275f69);}registerDescriptionCallback(_0x4e727f){this['_customCallbacks']['push'](_0x4e727f);}registerElementLabel(_0x3ef8fb,_0x33c44e,_0x2ac237=_0x15636f['normal']){'function'==typeof _0x3ef8fb?_0x4972bf(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3ef8fb,'label':_0x33c44e,'priority':_0x2ac237}):this['_itemLabels']['set'](_0x3ef8fb,_0x33c44e);}registerAttributeLabel(_0x54a77e,_0xc2bb97){this['_attributeLabels']['set'](_0x54a77e,_0xc2bb97);}getItemLabel(_0x22e069,_0x35742a=0x1){let _0x49ddf9;for(const _0x489cc7 of this['_itemLabelsCallbacks'])if(_0x489cc7['matchingCallback'](_0x22e069)){_0x49ddf9=_0x489cc7['label'];break;}return _0x49ddf9||(_0x49ddf9=this['_itemLabels']['get'](_0x22e069['name'])),_0x49ddf9?_0x49ddf9(_0x35742a):0x1!==_0x35742a?_0x35742a+'\x20'+_0x22e069['name']+'s':''+_0x22e069['name'];}_addDescriptionItems(_0x26fee7,_0x56a725){const _0x17dcb1=_0x56a725['getFirstRange']()['getWalker'](),_0x3f98d9='insertion'==_0x56a725['type']?'add':'remove';for(const _0x54f1dc of _0x17dcb1){const _0x43442c=_0x54f1dc['item'],_0x5cfd0b=_0x26fee7[_0x26fee7['length']-0x1];if(_0x43442c['is']('$textProxy'))_0x5cfd0b&&_0x5cfd0b['type']['indexOf']('Container')>-0x1&&_0x26fee7['pop'](),_0x5cfd0b&&'text'==_0x5cfd0b['type']?_0x5cfd0b[_0x3f98d9]+=_0x43442c['data']:_0x26fee7['push']({'type':'text','add':'add'==_0x3f98d9?_0x43442c['data']:'','remove':'remove'==_0x3f98d9?_0x43442c['data']:''});else{if(this['_schema']['isObject'](_0x43442c)){const _0x1d707c=_0x43442c;if(_0x5cfd0b&&_0x5cfd0b['type']['indexOf']('Container')>-0x1&&_0x26fee7['pop'](),'elementEnd'==_0x54f1dc['type'])continue;_0x5cfd0b&&_0x5cfd0b['type']==_0x3f98d9+'Object'&&_0x5cfd0b['element']['name']==_0x1d707c['name']?_0x5cfd0b['quantity']++:_0x26fee7['push']({'type':_0x3f98d9+'Object','element':_0x1d707c,'quantity':0x1}),_0x17dcb1['skip'](_0x3887dc=>!('elementEnd'==_0x3887dc['type']&&_0x3887dc['item']==_0x43442c));}else{if(this['_schema']['checkChild'](_0x43442c,'$text')||_0x43442c['is']('element','softBreak')){const _0x2c943d=_0x43442c;if('add'==_0x3f98d9&&'elementStart'==_0x54f1dc['type']||'remove'==_0x3f98d9&&'elementEnd'==_0x54f1dc['type'])continue;if(_0x5cfd0b&&-0x1==_0x5cfd0b['type']['indexOf']('Container')){'text'==_0x5cfd0b['type']&&(_0x5cfd0b[_0x3f98d9]+='\x0a');continue;}let _0x572230;if(_0x572230='add'==_0x3f98d9?_0x2c943d['nextSibling']&&!this['_schema']['isObject'](_0x2c943d['nextSibling'])?_0x2c943d['nextSibling']:null:_0x2c943d['previousSibling']&&!this['_schema']['isObject'](_0x2c943d['previousSibling'])?_0x2c943d['previousSibling']:null,_0x2c943d['isEmpty']||_0x572230&&_0x572230['isEmpty']){const _0x1e2b8c=_0x572230&&_0x572230['isEmpty']?_0x572230:_0x2c943d;_0x5cfd0b&&_0x5cfd0b['type']==_0x3f98d9+'EmptyContainer'&&_0x5cfd0b['element']['name']==_0x1e2b8c['name']?_0x5cfd0b['quantity']++:_0x26fee7['push']({'type':_0x3f98d9+'EmptyContainer','element':_0x1e2b8c,'quantity':0x1});}else _0x26fee7['push']({'type':_0x3f98d9+'Container','element':_0x2c943d});}}}}}_resolveDescriptionItems(_0x5f2cda){const _0x2d166d=this['_locale'],_0x3681b6=[],_0x145d0d=[],_0x4f39c2=[];for(const _0x4251ca of _0x5f2cda)switch(_0x4251ca['type']){case'text':if(_0x4251ca['add']=_0x4251ca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4251ca['remove']=_0x4251ca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4251ca['add']&&''!=_0x4251ca['remove']){_0x3681b6['push']({'type':'replace','content':Ot(_0x2d166d,'REPLACE_TEXT',['\x22'+_0x4251ca['remove']+'\x22','\x22'+_0x4251ca['add']+'\x22'])});continue;}if(null!=_0x4251ca['add']['match'](/^ +$/)){_0x3681b6['push']({'type':'insertion','content':Ot(_0x2d166d,'*Insert:*\x20%0',Ot(_0x2d166d,'ELEMENT_SPACE',_0x4251ca['add']['length']))});continue;}if(null!=_0x4251ca['remove']['match'](/^ +$/)){_0x3681b6['push']({'type':'deletion','content':Ot(_0x2d166d,'*Remove:*\x20%0',Ot(_0x2d166d,'ELEMENT_SPACE',_0x4251ca['remove']['length']))});continue;}if(''!=_0x4251ca['add']){_0x3681b6['push']({'type':'insertion','content':Ot(_0x2d166d,'*Insert:*\x20%0','\x22'+_0x4251ca['add']+'\x22')});continue;}_0x3681b6['push']({'type':'deletion','content':Ot(_0x2d166d,'*Remove:*\x20%0','\x22'+_0x4251ca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3681b6['push']({'type':'insertion','content':Ot(_0x2d166d,'*Insert:*\x20%0',this['getItemLabel'](_0x4251ca['element'],_0x4251ca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3681b6['push']({'type':'deletion','content':Ot(_0x2d166d,'*Remove:*\x20%0',this['getItemLabel'](_0x4251ca['element'],_0x4251ca['quantity']))});continue;case'addContainer':_0x3681b6['push']({'type':'insertion','content':Ot(_0x2d166d,'*Split:*\x20%0',this['getItemLabel'](_0x4251ca['element'],_0x4251ca['quantity']))});continue;case'removeContainer':_0x3681b6['push']({'type':'deletion','content':Ot(_0x2d166d,'*Merge:*\x20%0',this['getItemLabel'](_0x4251ca['element'],_0x4251ca['quantity']))});continue;case'addFormat':_0x145d0d['push'](_0x4251ca['key']);continue;case'removeFormat':_0x4f39c2['push'](_0x4251ca['key']);continue;default:_0x3681b6['push'](_0x4251ca);}if(_0x145d0d['length']){const _0x12d347=_0x145d0d['map'](_0x1f2ad2=>this['_attributeLabels']['has'](_0x1f2ad2)?this['_attributeLabels']['get'](_0x1f2ad2):_0x1f2ad2)['join'](',\x20');_0x3681b6['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x12d347)});}if(_0x4f39c2['length']){const _0xc2e55=_0x4f39c2['map'](_0x3da3be=>this['_attributeLabels']['has'](_0x3da3be)?this['_attributeLabels']['get'](_0x3da3be):_0x3da3be)['join'](',\x20');_0x3681b6['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0xc2e55)});}return _0x3681b6;}_handleCustomCallbackDescription(_0x2e99cf){for(const _0x4f68f7 of this['_customCallbacks']){const _0x3a451b=_0x4f68f7(_0x2e99cf);if(_0x3a451b&&'type'in _0x3a451b)return _0x3a451b;}}_handleAttributeSuggestionDescription(_0x4d4eaa,_0x153db5){const _0x5f4b52=_0x153db5['data'],_0x3ebe11=void 0x0===_0x5f4b52['newValue']?'removeFormat':'addFormat';_0x4d4eaa['push']({'type':_0x3ebe11,'key':_0x5f4b52['key']});}_handleRenameSuggestionDescription(_0x24a968,_0x44d700){_0x24a968['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44d700['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x418de8,_0x183b6e,_0x2f7e90){if(this['_addDescriptionItems'](_0x418de8,_0x183b6e),_0x2f7e90&&_0x2f7e90['getFirstRange']()&&!_0x183b6e['getFirstRange']()['end']['isEqual'](_0x2f7e90['getFirstRange']()['start'])){const _0x4d6629=_0x418de8[_0x418de8['length']-0x1],_0x25d6af='insertion'==_0x183b6e['type']?'add':'remove';_0x4d6629&&'text'==_0x4d6629['type']&&(_0x4d6629[_0x25d6af]+='\x0a');}}},Ft=class extends _0x1f600{afterInit(){const _0x59dd90=this['editor'],_0x165849=_0x59dd90['plugins']['get']('TrackChangesEditing');_0x59dd90['commands']['get']('showAIAssistant')&&_0x165849['enableCommand']('showAIAssistant');}},Bt=class extends _0x1f600{afterInit(){const _0x26ecd5=this['editor'],_0x168ae6=_0x26ecd5['plugins']['get']('TrackChangesEditing');_0x26ecd5['commands']['get']('toggleAi')&&_0x168ae6['enableCommand']('toggleAi');}},vt=class extends _0x1f600{afterInit(){const _0x256735=this['editor'],_0xade325=_0x256735['plugins']['get']('TrackChangesEditing');_0x256735['commands']['get']('aiQuickAction')&&_0xade325['enableCommand']('aiQuickAction');}},Dt=class extends _0x1f600{afterInit(){const _0x9ba413=this['editor'],_0x53c0dd=_0x9ba413['locale'];if(!_0x9ba413['plugins']['has']('AlignmentEditing'))return;const _0x1a7f7a=_0x9ba413['plugins']['get']('TrackChangesEditing');_0x1a7f7a['enableDefaultAttributesIntegration']('alignment'),_0x1a7f7a['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x53c0dd,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x40d839=this['editor'],_0x2b6a19=_0x40d839['locale'];_0x40d839['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x242ca2=>{if('formatBlock'!=_0x242ca2['type'])return;const {data:_0x4d3134}=_0x242ca2;if(_0x4d3134&&'alignment'==_0x4d3134['commandName']){const _0x24d364=_0x4d3134['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x2b6a19,'*Format:*\x20%0',function(_0x12e509){switch(_0x12e509){case'left':return Ot(_0x2b6a19,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x2b6a19,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x2b6a19,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x2b6a19,'FORMAT_JUSTIFY_TEXT');}}(_0x24d364))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x1f600{afterInit(){const _0x1c1b0f=this['editor'],_0x137abe=_0x1c1b0f['plugins']['get']('TrackChangesEditing'),_0x164b67=_0x1c1b0f['locale'];for(const _0x434e27 of Ut){if(!_0x1c1b0f['plugins']['has'](_0x434e27))continue;const _0x2f5a00=_0x434e27['slice'](0x0,-0x7)['toLowerCase'](),_0x4e0ab9='FORMAT_'+_0x2f5a00['toUpperCase']();_0x137abe['enableDefaultAttributesIntegration'](_0x2f5a00),_0x137abe['descriptionFactory']['registerAttributeLabel'](_0x2f5a00,Ot(_0x164b67,_0x4e0ab9));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xe1593b=this['editor'],_0x2e1af4=_0xe1593b['locale'],_0x338060=_0xe1593b['plugins']['get']('TrackChangesEditing');function _0x401a7a(_0x57aaaa,_0x3bae98){_0x338060['descriptionFactory']['registerDescriptionCallback'](_0x5c40fe=>{if('formatInline'!=_0x5c40fe['type'])return;const {data:_0x1a48d6}=_0x5c40fe;return _0x1a48d6&&_0x1a48d6['commandName']===_0x57aaaa?_0x1a48d6['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x2e1af4,'*Format:*\x20%0',_0x3bae98)}:{'type':'format','content':Ot(_0x2e1af4,'*Remove\x20format:*\x20%0',_0x3bae98)}:void 0x0;});}_0x401a7a('bold',Ot(_0x2e1af4,'FORMAT_BOLD')),_0x401a7a('italic',Ot(_0x2e1af4,'FORMAT_ITALIC')),_0x401a7a('underline',Ot(_0x2e1af4,'FORMAT_UNDERLINE')),_0x401a7a('code',Ot(_0x2e1af4,'FORMAT_CODE')),_0x401a7a('strikethrough',Ot(_0x2e1af4,'FORMAT_STRIKETHROUGH')),_0x401a7a('subscript',Ot(_0x2e1af4,'FORMAT_SUBSCRIPT')),_0x401a7a('superscript',Ot(_0x2e1af4,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x1f600{afterInit(){const _0x2be0e8=this['editor'],_0x47e478=_0x2be0e8['locale'];if(!_0x2be0e8['plugins']['has']('BlockQuoteEditing'))return;const _0x1150c5=_0x2be0e8['plugins']['get']('TrackChangesEditing'),_0x3ff120=this['editor']['commands']['get']('blockQuote');_0x1150c5['enableCommand']('blockQuote',(_0xddbf1d,_0x43f0ec={})=>{const _0x570a36=this['editor']['model']['document']['selection'],_0x79e4d1=_0x43f0ec&&void 0x0!==_0x43f0ec['forceValue']?_0x43f0ec['forceValue']:!_0x3ff120['value'];let _0x598dfd=[];_0x598dfd=Ct(_0x79e4d1?Array['from'](_0x570a36['getSelectedBlocks']())['filter'](_0x3a6d43=>Gt(_0x3a6d43)||function(_0x566c05,_0x2e63e2){const _0x2de5a2=_0x2e63e2['createContext'](_0x566c05['parent']);return!!_0x2e63e2['checkChild'](_0x2de5a2,'blockQuote')&&!!_0x2e63e2['checkChild'](_0x2de5a2['push']('blockQuote'),_0x566c05);}(_0x3a6d43,this['editor']['model']['schema'])):Array['from'](_0x570a36['getSelectedBlocks']())['filter'](_0x235166=>Gt(_0x235166)),_0x2be0e8['model']),_0x2be0e8['model']['change'](()=>{for(const _0x2305d7 of _0x598dfd)_0x1150c5['markBlockFormat'](_0x2305d7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x79e4d1}]});});}),_0x1150c5['descriptionFactory']['registerDescriptionCallback'](_0xa66838=>{const {data:_0x35300b}=_0xa66838;if(_0x35300b&&'blockQuote'==_0x35300b['commandName']){const _0x2081c1=Ot(_0x47e478,'ELEMENT_BLOCK_QUOTE');return _0x35300b['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x47e478,'*Set\x20format:*\x20%0',_0x2081c1)}:{'type':'format','content':Ot(_0x47e478,'*Remove\x20format:*\x20%0',_0x2081c1)};}});}};function Gt(_0x797c91){return'blockQuote'==_0x797c91['parent']['name'];}var Ht=class extends _0x1f600{afterInit(){const _0x28c2c5=this['editor'],_0x552f60=_0x28c2c5['locale'],_0x38c053=_0x28c2c5['plugins']['get']('TrackChangesEditing');_0x28c2c5['plugins']['has']('BookmarkEditing')&&(_0x38c053['enableCommand']('insertBookmark'),_0x38c053['enableDefaultAttributesIntegration']('updateBookmark'),_0x38c053['descriptionFactory']['registerDescriptionCallback'](_0x3513e6=>{if('insertion'!=_0x3513e6['type']&&'deletion'!=_0x3513e6['type']&&'attribute'!=_0x3513e6['type'])return;const _0x3e1c84=_0x3513e6['getContainedElement']();if(null==_0x3e1c84)return;if(!_0x3e1c84['is']('element','bookmark'))return;const _0xf7634d=_0x3e1c84['getAttribute']('bookmarkId');if('insertion'==_0x3513e6['type'])return{'type':'insertion','content':Ot(_0x552f60,'*Insert:*\x20%0','\x22'+_0xf7634d+'\x22\x20'+Ot(_0x552f60,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3513e6['type'])return{'type':'deletion','content':Ot(_0x552f60,'*Remove:*\x20%0','\x22'+_0xf7634d+'\x22\x20'+Ot(_0x552f60,'ELEMENT_BOOKMARK'))};const {data:_0x2789ce}=_0x3513e6;return _0x2789ce&&'bookmarkId'==_0x2789ce['key']?{'type':'format','content':Ot(_0x552f60,'*Set\x20bookmark:*\x20%0','\x22'+_0x2789ce['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x1f600{afterInit(){const _0x2178bd=this['editor'];_0x2178bd['plugins']['has']('CaseChange')&&(_0x2178bd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2178bd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2178bd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x1f600{afterInit(){const _0x1a9ed5=this['editor'];_0x1a9ed5['commands']['get']('ckbox')&&_0x1a9ed5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x1f600{static get requires(){return[gt,ft];}constructor(_0xb304e9){super(_0xb304e9),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x4619ea=this['editor'],_0x2f7c11=_0x4619ea['plugins']['get']('ClipboardMarkersUtils'),_0x5bf274=_0x4619ea['plugins']['get'](ft);_0x2f7c11['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x5bf274['on']('outputTransformation',(_0x278db8,_0x36af60)=>{const _0x3cc3b0=this['_getSuggestionEntries'](_0x36af60);for(const [_0x5d9fb2,_0x165425]of _0x36af60['content']['markers']){const _0x219449=ot['_fromRangeInDocumentFragment'](_0x165425,_0x4619ea['model']);function _0x5d51fb(){_0x219449['detach'](),_0x36af60['content']['markers']['delete'](_0x5d9fb2);}_0x219449['on']('change:drop',_0x5d51fb),(_0x5d9fb2['startsWith']('suggestion:')||_0x5d9fb2['startsWith']('comment:'))&&_0x219449['on']('change:range',()=>{_0x219449['isCollapsed']&&_0x5d51fb();}),_0x36af60['content']['markers']['set'](_0x5d9fb2,_0x219449);}const _0x47d058=_0x3cc3b0['filter'](_0xbc2c28=>'deletion'===_0xbc2c28['meta']['type'])['map'](_0x4f4870=>_0x4f4870['modelRange']);if(this['_shouldSkipDeletions'](_0x47d058,_0x36af60['content']))return[..._0x3cc3b0]['forEach'](_0x7e01c9=>{_0x36af60['content']['markers']['get'](_0x7e01c9['markerName'])['detach'](),_0x36af60['content']['markers']['delete'](_0x7e01c9['markerName']);}),void this['_restoreRegularRanges'](_0x36af60['content']['markers']);[..._0x3cc3b0]['forEach'](_0x58f597=>{const _0x1c35f8=_0x4619ea['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x58f597['meta']['type'],_0x58f597['meta']['subType'],'accept'),{markerName:_0x1965e2,meta:_0x5d0c15}=_0x58f597;if(_0x36af60['content']['markers']['has'](_0x1965e2)){switch(_0x5d0c15['type']){case'deletion':if('tableRow'===_0x5d0c15['subType']||'tableColumn'===_0x5d0c15['subType']){if(!_0x4619ea['plugins']['has']('TableUtils'))break;const _0x340c48=_0x4619ea['plugins']['get']('TableUtils'),_0x5891d3=_0x340c48['getSelectionAffectedTableCells'](_0x4619ea['model']['createSelection'](_0x36af60['content']['markers']['get'](_0x1965e2))),_0x330869=_0x5891d3[0x0]['findAncestor']('table');if('tableRow'===_0x5d0c15['subType']){const {first:_0x507dbe,last:_0x464f10}=_0x340c48['getRowIndexes'](_0x5891d3);_0x340c48['removeRows'](_0x330869,{'at':_0x507dbe,'rows':_0x464f10-_0x507dbe+0x1});}else{const {first:_0x2ceee8,last:_0x3c9f24}=_0x340c48['getColumnIndexes'](_0x5891d3);_0x340c48['removeColumns'](_0x330869,{'at':_0x2ceee8,'columns':_0x3c9f24-_0x2ceee8+0x1});}break;}_0x1c35f8([_0x36af60['content']['markers']['get'](_0x1965e2)]);}_0x36af60['content']['markers']['has'](_0x1965e2)&&(_0x36af60['content']['markers']['get'](_0x1965e2)['detach'](),_0x36af60['content']['markers']['delete'](_0x1965e2));}}),this['_restoreRegularRanges'](_0x36af60['content']['markers']);});}_getSuggestionEntries(_0x50d507){const _0x281717=_0x2f2ed6=>'dragstart'===_0x50d507['method']?_0x2f2ed6['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x2f2ed6;return Array['from'](_0x50d507['content']['markers'])['map'](([_0x251913,_0x541677])=>({'markerName':_0x251913,'modelRange':_0x541677,'meta':et(_0x281717(_0x251913))}))['filter'](({meta:_0xb800ce})=>'suggestion'===_0xb800ce['group']);}_shouldSkipDeletions(_0x850e4c,_0x2347ca){if(!_0x850e4c['length'])return!0x1;let _0x2922a4=[this['editor']['model']['createRangeIn'](_0x2347ca)];for(const _0x26270f of _0x850e4c)_0x2922a4=_0x2922a4['flatMap'](_0x3ba5af=>_0x3ba5af['getDifference'](_0x26270f));return!_0x2922a4['some'](_0x3fdf57=>this['editor']['model']['hasContent'](_0x3fdf57,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x57ed2f){[..._0x57ed2f['keys']()]['forEach'](_0x3ea0ca=>{const _0x39de0e=_0x57ed2f['get'](_0x3ea0ca);_0x39de0e['detach'](),_0x57ed2f['set'](_0x3ea0ca,_0x39de0e['toRange']());});}},jt=class extends _0x1f600{afterInit(){const _0x2b684a=this['editor'];if(!_0x2b684a['plugins']['has']('CodeBlock'))return;const _0x2e4a87=_0x2b684a['plugins']['get']('TrackChangesEditing'),_0x5b0a3d=_0x2b684a['locale'],_0x4028ed=_0x2b684a['config']['get']('codeBlock')['languages'],_0x3ed7c1=_0x2b684a['commands']['get']('codeBlock');_0x2e4a87['enableCommand']('indentCodeBlock'),_0x2e4a87['enableCommand']('outdentCodeBlock'),_0x2e4a87['enableCommand']('codeBlock',(_0x56fcad,_0x108c4f={})=>{const _0x9bfa19=_0x2b684a['model'],_0x14b916=_0x2b684a['model']['document']['selection'],_0x22574a=_0x108c4f&&void 0x0!==_0x108c4f['forceValue']?_0x108c4f['forceValue']:!_0x3ed7c1['value'];let _0x40ad25;_0x108c4f['language']||(_0x108c4f['language']=_0x4028ed[0x0]['language']),_0x40ad25=_0x22574a?Array['from'](_0x14b916['getSelectedBlocks']())['filter'](_0x55d1b1=>{return zt(_0x55d1b1)||(_0x2d4e12=_0x55d1b1,_0x53cc8e=_0x9bfa19['schema'],!_0x2d4e12['is']('rootElement')&&!_0x53cc8e['isLimit'](_0x2d4e12)&&_0x53cc8e['checkChild'](_0x2d4e12['parent'],'codeBlock'));var _0x2d4e12,_0x53cc8e;}):Array['from'](_0x14b916['getSelectedBlocks']())['filter'](_0xeef531=>zt(_0xeef531));const _0x5bff47=Ct(_0x40ad25,_0x9bfa19);_0x9bfa19['change'](()=>{for(const _0x5d51c7 of _0x5bff47)_0x2e4a87['markBlockFormat'](_0x5d51c7,{'commandName':'codeBlock','commandParams':[{..._0x108c4f,'forceValue':_0x22574a}],'formatGroupId':'blockName'});});}),(_0x2e4a87['descriptionFactory']['registerElementLabel']('codeBlock',_0x287522=>Ot(_0x5b0a3d,'ELEMENT_CODE_BLOCK',_0x287522)),_0x2e4a87['descriptionFactory']['registerDescriptionCallback'](_0x58ab8d=>{if('formatBlock'!=_0x58ab8d['type'])return;const _0x2e3cc9=_0x5b0a3d['t'],{data:_0x2d53a2}=_0x58ab8d;if(!_0x2d53a2||'codeBlock'!=_0x2d53a2['commandName'])return;const _0x464897=_0x2d53a2['commandParams'][0x0]['language'],_0x177ad7=_0x2e3cc9(_0x4028ed['find'](_0x3e4efd=>_0x3e4efd['language']===_0x464897)['label'])['toLowerCase']();return _0x2d53a2['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x5b0a3d,'*Set\x20format:*\x20%0',Ot(_0x5b0a3d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x177ad7+')')}:{'type':'format','content':Ot(_0x5b0a3d,'*Remove\x20format:*\x20%0',Ot(_0x5b0a3d,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x1c5e75){return'codeBlock'==_0x1c5e75['name'];}var Kt=class extends _0x1f600{afterInit(){const _0x15910f=this['editor'];_0x15910f['plugins']['has']('CommentsEditing')&&_0x15910f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x1f600{static get requires(){return[mt];}init(){const _0x59dd0b=this['editor'],_0x3edaa9=_0x59dd0b['plugins']['get']('TrackChangesEditing');_0x3edaa9['enableCommand']('delete');const _0x1c5664=_0x59dd0b['commands']['get']('deleteForward');_0x3edaa9['enableCommand']('deleteForward',(_0x3124c6,_0x4d88d2={})=>{const _0x186092=_0x59dd0b['model']['createSelection'](_0x59dd0b['model']['document']['selection']);_0x186092['isCollapsed']&&_0x59dd0b['model']['modifySelection'](_0x186092,{'direction':'forward','unit':_0x4d88d2['unit']});const _0x152735=_0x186092['getFirstRange'](),_0x78455f=ot['fromRange'](_0x152735);let _0x1c5822;_0x3124c6(_0x4d88d2),_0x1c5822='$graveyard'==_0x78455f['root']['rootName']?_0x59dd0b['model']['createRange'](_0x152735['start']):_0x59dd0b['model']['createRange'](_0x78455f['start'],_0x78455f['end']),_0x78455f['detach'](),_0x59dd0b['model']['enqueueChange'](_0x1c5664['buffer']['batch'],_0x36ce70=>{_0x1c5664['buffer']['lock'](),_0x36ce70['setSelection'](_0x36ce70['createRange'](_0x1c5822['end'])),_0x1c5664['buffer']['unlock']();});});}},qt=class extends _0x1f600{afterInit(){const _0x33b585=this['editor'];if(!_0x33b585['plugins']['has']('ListEditing'))return;const _0x33788d=_0x33b585['locale'],_0x39755d=_0x33b585['plugins']['get']('TrackChangesEditing'),_0xb154ca=_0x33b585['plugins']['has']('TodoListEditing'),_0x40c14f=!!_0x33b585['config']['get']('list.multiBlock');function _0x2351e6(_0x356837){return{'type':'format','content':''+Ot(_0x33788d,'*Set\x20format:*\x20%0',_0x356837)};}function _0x25efcb(_0x33715a){return{'type':'format','content':''+Ot(_0x33788d,'*Remove\x20format:*\x20%0',_0x33715a)};}_0x39755d['enableDefaultAttributesIntegration']('numberedList'),_0x39755d['enableDefaultAttributesIntegration']('bulletedList'),_0x39755d['enableDefaultAttributesIntegration']('customNumberedList'),_0x39755d['enableDefaultAttributesIntegration']('customBulletedList'),_0x39755d['enableDefaultAttributesIntegration']('indentList'),_0x39755d['enableDefaultAttributesIntegration']('outdentList'),_0x39755d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x39755d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x40c14f&&(_0x39755d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x39755d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb154ca&&(_0x39755d['enableDefaultAttributesIntegration']('todoList'),_0x39755d['enableDefaultAttributesIntegration']('checkTodoList'),_0x39755d['descriptionFactory']['registerDescriptionCallback'](_0x46b49d=>{const {data:_0x576401}=_0x46b49d;if(_0x576401&&'todoListChecked'==_0x576401['key'])return{'type':'format','content':_0x576401['newValue']?Ot(_0x33788d,'*Check\x20item*'):Ot(_0x33788d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x145ae1=>{if(_0x145ae1['batch']['isUndo'])return!0x1;let _0x4540ea=!0x1;const _0x117c22=_0x39755d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25d581=>'todoListChecked'===_0x39755d['_getAttributeKey'](_0x25d581));for(const _0xacb8f4 of _0x117c22)'todo'!=_0xacb8f4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x39755d['_findSuggestions'](_0xacb8f4['getFirstRange'](),'attribute')['find'](_0x187d25=>'listType'===_0x39755d['_getAttributeKey'](_0x187d25['suggestion']))||(_0x145ae1['removeMarker'](_0xacb8f4['getFirstMarker']()),_0x4540ea=!0x0));return _0x4540ea;})),_0x39755d['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x33788d,'FORMAT_INDENT'));const _0x18848f={'type':'format','content':''};_0x39755d['descriptionFactory']['registerDescriptionCallback'](_0x458c7c=>{const {data:_0x77de21}=_0x458c7c;if(!_0x77de21||'listType'!=_0x77de21['key'])return;let _0x38e2b8=_0x458c7c['head'];for(;_0x38e2b8;){if(_0x38e2b8['data']&&(('listStyle'==_0x38e2b8['data']['key']||'listMarkerStyle'==_0x38e2b8['data']['key'])&&(_0x38e2b8['data']['newValue']&&'default'!=_0x38e2b8['data']['newValue']||'default'!=_0x38e2b8['data']['oldValue']&&!_0x77de21['newValue'])||!_0x40c14f&&'$elementName'==_0x38e2b8['data']['key']))return _0x18848f;_0x38e2b8=_0x38e2b8['next'];}if(null==_0x77de21['newValue'])switch(_0x77de21['oldValue']){case'bulleted':return _0x25efcb(Ot(_0x33788d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25efcb(Ot(_0x33788d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25efcb(Ot(_0x33788d,'ELEMENT_TODO_LIST'));}switch(_0x77de21['newValue']){case'bulleted':return _0x2351e6(Ot(_0x33788d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2351e6(Ot(_0x33788d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2351e6(Ot(_0x33788d,'ELEMENT_TODO_LIST'));}}),_0x39755d['descriptionFactory']['registerDescriptionCallback'](_0x2f91eb=>{const {data:_0x21654}=_0x2f91eb;if(_0x21654&&'listIndent'==_0x21654['key'])return null==_0x21654['newValue']||null==_0x21654['oldValue']&&0x0==_0x21654['newValue']?_0x18848f:void 0x0;}),_0x39755d['descriptionFactory']['registerDescriptionCallback'](_0x1ac1be=>{if('attribute'!=_0x1ac1be['type'])return;const {data:_0x242390}=_0x1ac1be;if(!_0x242390||'listItemId'!=_0x242390['key'])return;const _0x123770=Yt(_0x1ac1be);return'newValue'==_0x123770?{'type':'format','content':Ot(_0x33788d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x123770?{'type':'format','content':Ot(_0x33788d,'*Split:*\x20list\x20item')}:_0x18848f;}),_0x33b585['model']['document']['registerPostFixer'](_0x485e32=>this['listItemIdFixer'](_0x485e32)),_0x33b585['model']['document']['registerPostFixer'](_0xc564a0=>this['noTrackChangesFixer'](_0xc564a0)),_0x33b585['model']['document']['on']('change:data',(_0x214d2b,_0x2fb614)=>{if(_0x2fb614['isUndo']||!_0x2fb614['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x4bac87){if(_0x4bac87['batch']['isUndo']||!_0x4bac87['batch']['isLocal'])return!0x1;let _0x45e4d4=!0x1;const _0xc5e0de=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x411cb8=>_0x411cb8['data']&&'listItemId'==_0x411cb8['data']['key'])['filter'](_0x1cb35f=>_0x1cb35f['data']['newValue']&&_0x1cb35f['data']['oldValue']);for(const _0xdd9ad2 of _0xc5e0de)Yt(_0xdd9ad2)||(_0x4bac87['removeMarker'](_0xdd9ad2['getFirstMarker']()),_0x45e4d4=!0x0);return _0x45e4d4;}['noTrackChangesFixer'](_0x5b64e6){if(_0x5b64e6['batch']['isUndo']||!_0x5b64e6['batch']['isLocal'])return!0x1;const _0x27a20a=this['editor']['model']['document']['differ'],_0x23e361=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x23e361['trackChangesCommand']['value'])return!0x1;let _0x9680bd=!0x1;const _0x214dee=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x744ca8=_0x27a20a['getChanges']()['filter'](_0x4a3dd0=>'attribute'==_0x4a3dd0['type'])['filter'](_0x3fb59b=>_0x214dee['has'](_0x3fb59b['attributeKey']));if(0x0==_0x744ca8['length'])return _0x9680bd;const _0x4b3140=new Set(_0x27a20a['getMarkersToAdd']()['filter'](_0x15221c=>{if(!_0x15221c['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x19c71f=et(_0x15221c['name'])['subType']['split']('|')[0x0];return _0x214dee['has'](_0x19c71f);})['map'](_0x1d0822=>et(_0x1d0822['name'])['id']));for(const _0x154da5 of _0x744ca8){const _0x202543=_0x23e361['_findSuggestions'](_0x154da5['range'],'attribute')['filter'](_0x12bc20=>{if(_0x12bc20['meta']['isNextTo'])return!0x1;if(_0x4b3140['has'](_0x12bc20['suggestion']['id']))return!0x1;const _0xb1e5c4=_0x23e361['_getAttributeKey'](_0x12bc20['suggestion']);return _0x214dee['has'](_0xb1e5c4);})['map'](_0x4cfa2c=>_0x4cfa2c['suggestion']);if(_0x202543['length']){for(const _0x80bd2b of _0x202543)_0x5b64e6['removeMarker'](_0x80bd2b['getFirstMarker']());_0x9680bd=!0x0;}}return _0x9680bd;}['assureChains'](){const _0xe0a4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ac3a9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x280033;const _0x5a175d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x150963=>{if(_0x150963['data']['oldRange']||!_0x150963['data']['newRange'])return null;if(!_0x150963['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3e3cb2}=et(_0x150963['name']);if(!_0xe0a4d['hasSuggestion'](_0x3e3cb2))return null;const _0x51bd7a=_0xe0a4d['getSuggestion'](_0x3e3cb2);return _0x1ac3a9['includes'](_0x51bd7a['data']['key']);})['map'](_0x53e5ed=>{const {id:_0xed5f13}=et(_0x53e5ed['name']),_0x2f9977=_0xe0a4d['getSuggestion'](_0xed5f13);return _0x280033=_0x2f9977['attributes']['groupId'],_0x2f9977['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a175d['size'])return;const _0x41f92b=_0xe0a4d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x298843=>'attribute'==_0x298843['type']&&_0x298843['data']&&_0x1ac3a9['includes'](_0x298843['data']['key'])&&_0x298843['attributes']['groupId']!=_0x280033)['map'](_0x371433=>({'listItem':_0x371433['getFirstRange']()['start']['nodeAfter'],'groupId':_0x371433['attributes']['groupId']})),_0xcc0da6=new Set();for(const {groupId:_0x431323,listItem:_0x545d87}of _0x41f92b)_0x5a175d['has'](_0x545d87)&&_0xcc0da6['add'](_0x431323);for(const _0x183d41 of _0xe0a4d['getSuggestions']())_0xcc0da6['has'](_0x183d41['attributes']['groupId'])&&_0x183d41['setAttribute']('groupId',_0x280033);}_supportLegacySuggestions(){const _0x27ac73=this['editor'],_0x375c27=_0x27ac73['locale'],_0x5da578=_0x27ac73['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5da578['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x333b46,_0x334388){const _0x36aa25=[];for(let _0x1c7006 of _0x333b46)_0x1c7006['start']['nodeAfter']===_0x1c7006['end']['parent']&&(_0x1c7006=_0x27ac73['model']['createRange'](_0x27ac73['model']['createPositionAt'](_0x1c7006['start']['nodeAfter'],0x0))),_0x36aa25['push'](_0x1c7006);_0x27ac73['model']['change'](_0xe339e2=>{const _0x2b7eef=_0x27ac73['model']['document']['selection'],_0x263d44=Array['from'](_0x2b7eef['getRanges']())['map'](_0x5212b8=>ot['fromRange'](_0x5212b8));_0xe339e2['setSelection'](_0x36aa25),_0x27ac73['commands']['get'](_0x334388['commandName'])['refresh'](),_0x334388['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27ac73['execute'](_0x334388['commandName'],..._0x334388['commandParams']),_0xe339e2['setSelection'](_0x263d44);for(const _0x556f73 of _0x263d44)_0x556f73['detach']();});}),_0x5da578['descriptionFactory']['registerElementLabel'](function(_0x3f6609){const _0x5cca05=!_0x27ac73['model']['schema']['isObject'](_0x3f6609),_0x1628c6=_0x3f6609['previousSibling'],_0x2dd7dc=_0x3f6609['nextSibling'],_0x1de6b3=_0x3f6609['getAttribute']('listItemId'),_0x288746=!_0x1628c6||_0x1628c6['getAttribute']('listItemId')!==_0x1de6b3,_0x3e6131=!_0x2dd7dc||_0x2dd7dc['getAttribute']('listItemId')!==_0x1de6b3;return _0x5cca05&&Boolean(_0x1de6b3)&&_0x288746&&_0x3e6131;},_0x4397fa=>Ot(_0x375c27,'ELEMENT_LIST_ITEM',_0x4397fa));}_registerLegacyDescription(){const _0x577d80=this['editor'],_0x124d3b=_0x577d80['locale'];function _0x4dc436(_0x5f169d){const _0x49b23a=_0x577d80['commands']['get']('bulletedList')['value'],_0x3417c6=_0x577d80['commands']['get']('numberedList')['value'];return'numberedList'===_0x5f169d?_0x49b23a:_0x3417c6;}_0x577d80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2eb352){if('formatBlock'!=_0x2eb352['type'])return;const {data:_0x46e4ea}=_0x2eb352;if(!_0x46e4ea)return;let _0x55f78c,_0x41ea34,_0x283f55,_0x3e943a;switch(_0x46e4ea['commandName']){case'bulletedList':_0x283f55=_0x46e4ea['commandParams'][0x0]['forceValue'],_0x3e943a=_0x4dc436(_0x46e4ea['commandName']),_0x55f78c=_0x283f55?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e943a&&_0x577d80['config']['get']('list.multiBlock')||(_0x55f78c='*Change\x20to:*\x20%0'),_0x41ea34={'type':'format','content':Ot(_0x124d3b,_0x55f78c,Ot(_0x124d3b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x283f55=_0x46e4ea['commandParams'][0x0]['forceValue'],_0x3e943a=_0x4dc436(_0x46e4ea['commandName']),_0x55f78c=_0x283f55?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e943a&&_0x577d80['config']['get']('list.multiBlock')||(_0x55f78c='*Change\x20to:*\x20%0'),_0x41ea34={'type':'format','content':Ot(_0x124d3b,_0x55f78c,Ot(_0x124d3b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x55f78c='*Indent:*\x20%0',_0x41ea34={'type':'format','content':Ot(_0x124d3b,_0x55f78c,Ot(_0x124d3b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x55f78c=function(_0x56cbc3){const _0x18a29c=_0x56cbc3['getFirstRange']();let _0xa71cc6=_0x18a29c['start']['nodeAfter'];for(;_0xa71cc6&&_0x18a29c['containsItem'](_0xa71cc6);){if(_0xa71cc6['getAttribute']('listIndent')>0x0)return!0x1;_0xa71cc6=_0xa71cc6['nextSibling'];}return!0x0;}(_0x2eb352)?Ot(_0x124d3b,'*Format:*\x20remove\x20from\x20%0',Ot(_0x124d3b,function(_0x5477e1){return'ELEMENT_'+_0x5477e1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2eb352))):Ot(_0x124d3b,'*Outdent:*\x20%0',Ot(_0x124d3b,'ELEMENT_LIST_ITEM')),_0x41ea34={'type':'format','content':_0x55f78c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x46e4ea['multipleBlocks']&&(_0x55f78c='*Merge:*\x20%0',_0x41ea34={'type':'deletion','content':Ot(_0x124d3b,_0x55f78c,Ot(_0x124d3b,'ELEMENT_LIST_ITEM'))});}return _0x41ea34;});}};function Yt(_0x27b453){let _0x469e26=_0x27b453['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x469e26;){const _0x1081bc=_0x469e26['getAttribute']('listItemId');if(!_0x1081bc)return!0x1;if(_0x1081bc==_0x27b453['data']['newValue'])return'newValue';if(_0x1081bc==_0x27b453['data']['oldValue'])return'oldValue';_0x469e26=_0x469e26['previousSibling'];}return!0x1;}var Qt=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2138be=this['editor']['config']['get']('list.properties'),_0x172048=this['editor']['plugins']['get']('TrackChangesEditing');_0x2138be['styles']&&_0x172048['enableDefaultAttributesIntegration']('listStyle'),_0x2138be['reversed']&&_0x172048['enableDefaultAttributesIntegration']('listReversed'),_0x2138be['startIndex']&&_0x172048['enableDefaultAttributesIntegration']('listStart');const _0x4bb036={'type':'format','content':''};_0x172048['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ff62b=this['editor']['locale'];_0x172048['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x4ff62b,'FORMAT_LIST_REVERSED')),_0x172048['descriptionFactory']['registerDescriptionCallback'](_0x5e51cc=>{const {data:_0x5efd0a}=_0x5e51cc;if(_0x5efd0a&&'listReversed'==_0x5efd0a['key'])return null==_0x5efd0a['newValue']||0x0==_0x5efd0a['newValue']&&null==_0x5efd0a['oldValue']?_0x4bb036:void 0x0;}),_0x172048['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x4ff62b,'FORMAT_LIST_START')),_0x172048['descriptionFactory']['registerDescriptionCallback'](_0x10eed9=>{const {data:_0x3edae5}=_0x10eed9;if(_0x3edae5&&'listStart'==_0x3edae5['key'])return null==_0x3edae5['newValue']||0x1==_0x3edae5['newValue']&&null==_0x3edae5['oldValue']?_0x4bb036:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1e34a7=>{if(_0x1e34a7['batch']['isUndo'])return!0x1;let _0x326958=!0x1;const _0x5a934e=_0x172048['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13359c=>{const _0x892951=_0x172048['_getAttributeKey'](_0x13359c);return'listStart'==_0x892951||'listReversed'==_0x892951;});for(const _0x1cb9d7 of _0x5a934e){const _0x3fb2ae=_0x1cb9d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x3fb2ae&&'customNumbered'!=_0x3fb2ae&&(_0x172048['_findSuggestions'](_0x1cb9d7['getFirstRange'](),'attribute')['find'](_0x415359=>'listType'==_0x172048['_getAttributeKey'](_0x415359['suggestion']))||(_0x1e34a7['removeMarker'](_0x1cb9d7['getFirstMarker']()),_0x326958=!0x0));}return _0x326958;}),this['_registerLegacyDescription']();}handleDescriptions(_0x221a73){const _0x29b439=this['editor']['locale'],{data:_0x2c0afa}=_0x221a73,_0x278a31={'type':'format','content':''};if(!_0x2c0afa||'listStyle'!=_0x2c0afa['key'])return;if(!_0x2c0afa['oldValue'])return'default'==_0x2c0afa['newValue']?_0x278a31:{'type':'format','content':''+Ot(_0x29b439,'*Set\x20format:*\x20%0',Ot(_0x29b439,this['_getTranslationKeyForListStyle'](_0x2c0afa['newValue'])))};if(!_0x2c0afa['newValue']){if('default'==_0x2c0afa['oldValue'])return _0x278a31;let _0x56d744=_0x221a73['head'];for(;_0x56d744;){if(_0x56d744['data']&&'listType'==_0x56d744['data']['key']&&_0x56d744['data']['newValue'])return _0x278a31;_0x56d744=_0x56d744['next'];}return{'type':'format','content':''+Ot(_0x29b439,'*Remove\x20format:*\x20%0',Ot(_0x29b439,this['_getTranslationKeyForListStyle'](_0x2c0afa['oldValue'])))};}if('default'!=_0x2c0afa['newValue'])return{'type':'format','content':''+Ot(_0x29b439,'*Set\x20format:*\x20%0',Ot(_0x29b439,this['_getTranslationKeyForListStyle'](_0x2c0afa['newValue'])))};let _0x58d9c3=_0x221a73['head'];for(;_0x58d9c3;){if(_0x58d9c3['data']&&'listType'==_0x58d9c3['data']['key']&&_0x58d9c3['data']['newValue']&&_0x58d9c3['data']['oldValue'])return _0x278a31;_0x58d9c3=_0x58d9c3['next'];}return{'type':'format','content':Ot(_0x29b439,'*Set\x20format:*\x20%0',Ot(_0x29b439,'ELEMENT_'+_0x221a73['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0xd8b2bd=this['editor'],_0x3b95d6=_0xd8b2bd['locale'];_0xd8b2bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ce472=>{if('formatBlock'!=_0x5ce472['type'])return;const {data:_0x488905}=_0x5ce472;if(!_0x488905)return;let _0x124b9e,_0x5a2a83;switch(_0x488905['commandName']){case'listStyle':_0x124b9e='*Change\x20to:*\x20%0',_0x5a2a83={'type':'format','content':Ot(_0x3b95d6,_0x124b9e,Ot(_0x3b95d6,this['_getTranslationKeyForListStyle'](_0x488905['commandParams'][0x0]['type'])))};break;case'listReversed':_0x124b9e=_0x488905['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a2a83={'type':'format','content':Ot(_0x3b95d6,_0x124b9e)};break;case'listStart':_0x124b9e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a2a83={'type':'format','content':Ot(_0x3b95d6,_0x124b9e,_0x488905['commandParams'][0x0]['startIndex'])};}return _0x5a2a83;});}_getTranslationKeyForListStyle(_0x32bc31){return'ELEMENT_'+(_0x3c9f94=_0x32bc31,Zt['includes'](_0x3c9f94)?'bulleted':Jt['includes'](_0x3c9f94)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x32bc31['toUpperCase']()['replace'](/-/g,'_');var _0x3c9f94;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x1f600{afterInit(){const _0x15c8de=this['editor'];_0x15c8de['commands']['get']('emoji')&&_0x15c8de['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x1f600{static get requires(){return[Tt];}init(){const _0x205524=this['editor'],_0x5eb907=_0x205524['plugins']['get']('TrackChangesEditing'),_0x5789e6=_0x205524['commands']['get']('enter');_0x5eb907['enableCommand']('enter',()=>{_0x205524['model']['change'](_0x3e39b7=>{const _0x2594d8=_0x205524['model']['document']['selection'],_0x49e814=_0x2594d8['getFirstPosition'](),_0x35d037=ot['fromRange'](_0x2594d8['getFirstRange']());if(_0x5789e6['enterBlock'](_0x3e39b7)){const _0x19cc0f=_0x205524['model']['createPositionAt'](_0x49e814['parent']['nextSibling'],0x0),_0x1c4199=_0x3e39b7['createRange'](_0x49e814,_0x19cc0f);_0x5eb907['markInsertion'](_0x1c4199);}else _0x3e39b7['setSelection'](_0x3e39b7['createRange'](_0x35d037['end']));_0x35d037['detach'](),_0x5789e6['fire']('afterExecute',{'writer':_0x3e39b7});});});}},ne=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x112890=this['editor']['plugins']['get']('TrackChangesEditing');_0x112890['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x112890['enableCommand']('findNext'),_0x112890['enableCommand']('findPrevious'),_0x112890['enableCommand']('replace'),_0x112890['enableCommand']('replaceAll');}['handleFindCommand'](_0x3acfbc,_0x472b39,_0xe484ea={}){const _0x1f192a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3acfbc(_0x21ff12=>{let _0x53cbb3=('string'==typeof _0x472b39?_0x1f192a['findByTextCallback'](_0x472b39,_0xe484ea):_0x472b39)(_0x21ff12);Array['isArray'](_0x53cbb3)&&(_0x53cbb3={'results':_0x53cbb3,'searchText':'string'==typeof _0x472b39?_0x472b39:''});const _0x5248fe=_0x53cbb3['results']['filter'](_0x3dee60=>!0x1===this['_isInDeletionRange'](_0x3dee60,_0x21ff12['item']));return{..._0x53cbb3,'results':_0x5248fe};},_0xe484ea);}_isInDeletionRange(_0x48ecbb,_0x22cfba){const _0x34e2eb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22cfba,_0x48ecbb['start']),this['editor']['model']['createPositionAt'](_0x22cfba,_0x48ecbb['end']));for(const _0x4aa3c5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x34e2eb['getIntersection'](_0x4aa3c5['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x1f600{afterInit(){const _0xacbdb1=this['editor']['locale'],_0x5b3772=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xaa6145,commandName:_0x51fe89}of ie)this['editor']['plugins']['has'](_0xaa6145)&&_0x5b3772['enableDefaultAttributesIntegration'](_0x51fe89);_0x5b3772['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0xacbdb1,'FORMAT_FONT_SIZE')),_0x5b3772['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0xacbdb1,'FORMAT_FONT_FAMILY')),_0x5b3772['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0xacbdb1,'FORMAT_FONT_COLOR')),_0x5b3772['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0xacbdb1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x510cba=this['editor'],_0x352c92=_0x510cba['locale'];_0x510cba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbdd975=>{const _0x20fba5=_0x352c92['t'];if('formatInline'!=_0xbdd975['type'])return;const {data:_0x1d9be2}=_0xbdd975;if(null!=_0x1d9be2){if('fontSize'==_0x1d9be2['commandName']){const _0x412539=_0x1d9be2['commandParams'][0x0]['value'];if(_0x412539){const _0x45167f=_0x20fba5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x103113=>_0x103113['model']==_0x412539)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x352c92,'*Set\x20font\x20size:*\x20%0',_0x45167f)};}return{'type':'format','content':Ot(_0x352c92,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d9be2['commandName']){const _0x5ecaa7=_0x1d9be2['commandParams'][0x0]['value'];return _0x5ecaa7?{'type':'format','content':Ot(_0x352c92,'*Set\x20font\x20family:*\x20%0',_0x5ecaa7)}:{'type':'format','content':Ot(_0x352c92,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d9be2['commandName']){const _0x57be43=_0x1d9be2['commandParams'][0x0]['value'];if(_0x57be43){const _0x1e388a=_0x440930(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3c8c50=>_0x3c8c50['model']==_0x57be43);let _0x2be1da=_0x57be43,_0x5836d3='';return _0x1e388a&&(_0x2be1da=_0x1e388a['label'],_0x5836d3=_0x20fba5(_0x2be1da)['toLowerCase']()),{'type':'format','content':Ot(_0x352c92,'*Set\x20font\x20color:*\x20%0',_0x5836d3)['trim'](),'color':{'value':_0x57be43,'title':_0x5836d3||_0x2be1da}};}return{'type':'format','content':Ot(_0x352c92,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d9be2['commandName']){const _0x1c5a89=_0x1d9be2['commandParams'][0x0]['value'];if(_0x1c5a89){const _0x2cea40=_0x440930(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a9293=>_0x5a9293['model']==_0x1c5a89);let _0x3095b0=_0x1c5a89,_0x52bf52='';return _0x2cea40&&(_0x3095b0=_0x2cea40['label'],_0x52bf52=_0x20fba5(_0x3095b0)['toLowerCase']()),{'type':'format','content':Ot(_0x352c92,'*Set\x20font\x20background\x20color:*\x20%0',_0x52bf52)['trim'](),'color':{'value':_0x1c5a89,'title':_0x52bf52||_0x3095b0}};}return{'type':'format','content':Ot(_0x352c92,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x1f600{afterInit(){const {plugins:_0x1335e2}=this['editor'];_0x1335e2['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1335e2['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x1a29df,plugins:_0xaeb3e0,commands:_0x2a9502}=this['editor'],_0x372364=_0xaeb3e0['get']('TrackChangesEditing');_0x2a9502['get']('footnotesStyle')&&_0x372364['enableDefaultAttributesIntegration']('footnotesStyle'),_0x2a9502['get']('footnotesStart')&&_0x372364['enableDefaultAttributesIntegration']('footnotesStart'),_0x372364['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x1a29df,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x372364['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x1a29df,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x1702fd=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2e776a,commands:_0x1e3cf1}=this['editor'];_0x1e3cf1['get']('insertFootnote')&&_0x1702fd['enableCommand']('insertFootnote'),_0x1702fd['descriptionFactory']['registerElementLabel']('footnoteRef',_0x12f769=>Ot(_0x2e776a,'ELEMENT_FOOTNOTE_REF',_0x12f769)),_0x1702fd['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1db4f8=>Ot(_0x2e776a,'ELEMENT_FOOTNOTE_DEFINITION',_0x1db4f8)),_0x1702fd['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4189eb=>Ot(_0x2e776a,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4189eb));}},oe=class extends _0x1f600{afterInit(){const _0x1695f2=this['editor'],_0x3380ad=_0x1695f2['plugins']['get']('TrackChangesEditing'),_0x54631b=_0x1695f2['commands']['get']('copyFormat'),_0x3d3e5a=_0x1695f2['commands']['get']('pasteFormat');_0x54631b&&_0x3d3e5a&&(_0x3380ad['enableDefaultAttributesIntegration']('pasteFormat'),_0x3380ad['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x256fb5=this['editor'],_0x1ae1dd=_0x256fb5['locale'];_0x256fb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x267a1c=>{if('formatBlock'!=_0x267a1c['type']&&'formatInline'!=_0x267a1c['type'])return;const {data:_0x4bc818}=_0x267a1c;if(_0x4bc818&&'pasteFormat'===_0x4bc818['commandName']){const _0x4765a7=[],_0x2a06ce=_0x4bc818['commandParams'][0x0];for(const [_0x594d84,_0x42a6a8]of Object['entries'](_0x2a06ce))_0x4765a7['push'](ae(_0x256fb5,_0x594d84,_0x42a6a8));return _0x4765a7['length']?{'type':'format','content':Ot(_0x1ae1dd,'*Set\x20format\x20to:*\x20%0',_0x4765a7['join'](',\x20'))}:{'type':'format','content':Ot(_0x1ae1dd,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x336caa,_0x40c422,_0x46e81b){const _0x1d6ed2=_0x336caa['locale']['t'],_0x520e1f=_0x40c422['split'](/(?=[A-Z])/)['join']('\x20'),_0x452e33=_0x1d6ed2(_0x520e1f['charAt'](0x0)['toUpperCase']()+_0x520e1f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x46e81b)return _0x452e33;if('fontColor'===_0x40c422||'fontBackgroundColor'===_0x40c422){const _0x5a30b3=_0x440930(_0x336caa['config']['get']('fontColor.colors'))['find'](_0xb22a6d=>_0xb22a6d['model']==_0x46e81b);return _0x452e33+'\x20('+(_0x5a30b3?_0x1d6ed2(_0x5a30b3['label'])['toLowerCase']():_0x46e81b)+')';}if('fontSize'===_0x40c422&&isNaN(parseFloat(_0x46e81b))){const _0xd20ca4=_0x336caa['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x336caa['config']['get']('fontSize.options'))['find'](_0x24760b=>_0x24760b['model']==_0x46e81b);return _0x452e33+'\x20('+(_0xd20ca4?_0x1d6ed2(_0xd20ca4['title'])['toLowerCase']():_0x46e81b)+')';}return _0x452e33+'\x20('+_0x46e81b+')';}var ce=class extends _0x1f600{afterInit(){const _0x3a1813=this['editor'];if(!_0x3a1813['plugins']['has']('GeneralHtmlSupport')||!_0x3a1813['plugins']['has']('DataSchema'))return;const _0x4e65a6=_0x3a1813['plugins']['get']('TrackChangesEditing'),_0xea1743=_0x3a1813['plugins']['get']('GeneralHtmlSupport'),_0x4ded84=_0x3a1813['plugins']['get']('DataSchema'),_0x2d3cfa=_0x3a1813['locale'],_0x26e64c=new Set(['htmlContent']);for(const _0x471e81 of _0x4ded84['getDefinitionsForView'](/.*/,!0x1)){const _0x2e5d8d=_0x471e81['view'],_0x38d956=_0xea1743['getGhsAttributeNameForElement'](_0x2e5d8d);_0x26e64c['add'](_0x38d956),!_0x471e81['isInline']||_0x471e81['isObject']||'appliesToBlock'in _0x471e81&&_0x471e81['appliesToBlock']||_0x4e65a6['descriptionFactory']['registerAttributeLabel'](_0x38d956,_0x2e5d8d),_0x471e81['model']['startsWith']('html')&&_0x4e65a6['descriptionFactory']['registerElementLabel'](_0x471e81['model'],_0x5c5a4a=>Ot(_0x2d3cfa,'ELEMENT_HTML_TAG',[_0x5c5a4a,_0x2e5d8d]));}_0x4e65a6['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x2d3cfa,'FORMAT_RAW_HTML_CONTENT')),_0x4e65a6['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x2d3cfa,'FORMAT_HTML_LIST_ITEM')),_0x4e65a6['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x2d3cfa,'FORMAT_HTML_BULLETED_LIST')),_0x4e65a6['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x2d3cfa,'FORMAT_HTML_NUMBERED_LIST')),_0x4e65a6['descriptionFactory']['registerDescriptionCallback'](_0xbb862f=>{if('attribute'!==_0xbb862f['type'])return;const _0x22dbe5=_0xbb862f['data'];if(!_0x22dbe5||!_0x26e64c['has'](_0x22dbe5['key']))return;if('htmlContent'===_0x22dbe5['key'])return{'type':'format','content':Ot(_0x2d3cfa,'*Change\x20%0\x20content*',Ot(_0x2d3cfa,'ELEMENT_RAW_HTML'))};const {setItems:_0x5d3c14,removeItems:_0x34a8ad}=function(_0x3261d,_0x48968c,_0x28267d){const _0x5e4649=[],_0x308700=[],_0x47bff6=_0x3261d['styles']??{},_0x4ba661=_0x48968c['styles']??{};for(const _0xf96d64 of new Set([...Object['keys'](_0x47bff6),...Object['keys'](_0x4ba661)]))_0x47bff6[_0xf96d64]!==_0x4ba661[_0xf96d64]&&(void 0x0===_0x4ba661[_0xf96d64]?_0x308700['push'](_0xf96d64):_0x5e4649['push'](_0xf96d64+'\x20('+_0x4ba661[_0xf96d64]+')'));const _0x403cc3=Ot(_0x28267d,'FORMAT_HTML_CLASS'),_0x469b74=new Set(_0x3261d['classes']??[]),_0x25ddcb=new Set(_0x48968c['classes']??[]),_0x25ff43=[..._0x25ddcb]['some'](_0x2db71b=>!_0x469b74['has'](_0x2db71b)),_0x272310=[..._0x469b74]['some'](_0x1823d6=>!_0x25ddcb['has'](_0x1823d6));_0x25ff43&&_0x5e4649['push'](_0x403cc3),_0x272310&&_0x308700['push'](_0x403cc3);const _0x11125c=Ot(_0x28267d,'FORMAT_HTML_ATTRIBUTE'),_0x25e887=_0x3261d['attributes']??{},_0x4427df=_0x48968c['attributes']??{};let _0x1b5d49=!0x1,_0x1122ce=!0x1;for(const _0x3e1d98 of new Set([...Object['keys'](_0x25e887),...Object['keys'](_0x4427df)]))_0x25e887[_0x3e1d98]!==_0x4427df[_0x3e1d98]&&(void 0x0===_0x4427df[_0x3e1d98]?_0x1122ce=!0x0:_0x1b5d49=!0x0);return _0x1b5d49&&_0x5e4649['push'](_0x11125c),_0x1122ce&&_0x308700['push'](_0x11125c),{'setItems':_0x5e4649,'removeItems':_0x308700};}(_0x22dbe5['oldValue']??{},_0x22dbe5['newValue']??{},_0x2d3cfa);if(!_0x5d3c14['length']&&!_0x34a8ad['length'])return;const _0x2732a1=[];return _0x5d3c14['length']&&_0x2732a1['push'](Ot(_0x2d3cfa,'*Set\x20format:*\x20%0',_0x5d3c14['join'](',\x20'))),_0x34a8ad['length']&&_0x2732a1['push'](Ot(_0x2d3cfa,'*Remove\x20format:*\x20%0',_0x34a8ad['join'](',\x20'))),{'type':'format','content':_0x2732a1['join']('\x0a')};});}},le=class extends _0x1f600{_headingOptions;afterInit(){const _0x3d11ac=this['editor'];if(!_0x3d11ac['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3d11ac['config']['get']('heading.options');const _0x120737=_0x3d11ac['locale'],_0x33c2ae=_0x3d11ac['plugins']['get']('TrackChangesEditing');_0x33c2ae['enableDefaultAttributesIntegration']('heading');for(const _0x226370 of this['_headingOptions'])'paragraph'!=_0x226370['model']&&_0x33c2ae['descriptionFactory']['registerElementLabel'](_0x226370['model'],_0x167599=>{const _0x245d8a=this['_getHeadingLevel'](_0x226370['model']);return null!==_0x245d8a?_0x1fa7e8(_0x167599,_0x245d8a):_0xe5d75f(_0x167599,_0x226370['title']);});function _0x1fa7e8(_0x5273b0,_0x2334c7){return Ot(_0x120737,'ELEMENT_HEADING',[_0x5273b0,_0x2334c7]);}function _0xe5d75f(_0x30029c,_0x6fb2e6){return Ot(_0x120737,'ELEMENT_HEADING_CUSTOM',[_0x30029c,_0x6fb2e6]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e4257=this['editor'],_0x53bb29=_0x2e4257['locale'];function _0x5f59c0(_0x1f7163,_0x22bf2f){return Ot(_0x53bb29,'ELEMENT_HEADING_CUSTOM',[_0x1f7163,_0x22bf2f]);}_0x2e4257['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x301bb0=>{if('formatBlock'!=_0x301bb0['type'])return;const {data:_0x5de44c}=_0x301bb0;if(_0x5de44c&&'heading'==_0x5de44c['commandName']){const _0x4e8d2e=_0x5de44c['commandParams'][0x0]['value'],_0x56dda8=this['_getHeadingLevel'](_0x4e8d2e);if(null!==_0x56dda8)return{'type':'format','content':Ot(_0x53bb29,'*Change\x20to:*\x20%0',(_0x1063d3=0x1,_0x2b1346=_0x56dda8,Ot(_0x53bb29,'ELEMENT_HEADING',[_0x1063d3,_0x2b1346])))};const _0x185a74=this['_headingOptions']['find'](_0x369910=>_0x369910['model']===_0x4e8d2e)['title'];return{'type':'format','content':Ot(_0x53bb29,'*Change\x20to:*\x20%0',_0x5f59c0(0x1,_0x185a74))};}var _0x1063d3,_0x2b1346;});}_getHeadingLevel(_0x16018b){const _0xfb30e4=_0x16018b['match'](/^heading(\d+)/);if(_0xfb30e4)return _0xfb30e4[0x1];const _0x583f96=this['_headingOptions']?.['find'](_0xaa9b1b=>_0xaa9b1b['model']==_0x16018b);if(_0x583f96&&_0x583f96['view']){const _0x59d014=_0x583f96['view'],_0x146f0a=(_0x59d014['name']??_0x59d014)['match'](/^h(\d+)/);if(_0x146f0a)return _0x146f0a[0x1];}return null;}},ue=class extends _0x1f600{afterInit(){const _0x7adb04=this['editor'];if(!_0x7adb04['plugins']['has']('HighlightEditing'))return;const _0x574eb7=_0x7adb04['plugins']['get']('TrackChangesEditing'),_0x20ce35=_0x7adb04['locale'];_0x574eb7['enableDefaultAttributesIntegration']('highlight'),_0x574eb7['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x20ce35,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5b2871=this['editor'],_0x903ae8=_0x5b2871['locale'];_0x5b2871['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e4a60=>{if('formatInline'!=_0x5e4a60['type'])return;const {data:_0x5f5c2f}=_0x5e4a60;if(_0x5f5c2f&&'highlight'==_0x5f5c2f['commandName']){const _0x35e79e=_0x903ae8['t'],_0x25857c=_0x5f5c2f['commandParams'][0x0]['value'];if(_0x25857c){const _0xa81d56=_0x5b2871['config']['get']('highlight.options')['find'](_0x189e4e=>_0x189e4e['model']==_0x25857c),_0x4b2b2c=_0x35e79e(_0xa81d56['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x903ae8,'*Set\x20highlight:*\x20%0',_0x4b2b2c),'color':{'value':_0xa81d56['color'],'title':_0xa81d56['title']}};}return{'type':'format','content':Ot(_0x903ae8,'*Remove\x20highlight*',Ot(_0x903ae8,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x1f600{afterInit(){const _0x9719d6=this['editor'];if(!_0x9719d6['plugins']['has']('HorizontalLineEditing'))return;_0x9719d6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2acec0=_0x9719d6['plugins']['get']('TrackChangesEditing'),_0x222fbc=_0x9719d6['locale'];_0x2acec0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x23e635=>Ot(_0x222fbc,'ELEMENT_HORIZONTAL_LINE',_0x23e635));}},he=class extends _0x1f600{afterInit(){const _0x4c6e9b=this['editor'];if(!_0x4c6e9b['plugins']['has']('HtmlEmbed'))return;const _0x467831=_0x4c6e9b['plugins']['get']('TrackChangesEditing'),_0x11c903=_0x4c6e9b['locale'];_0x467831['descriptionFactory']['registerElementLabel']('rawHtml',_0x4707b7=>Ot(_0x11c903,'ELEMENT_HTML_EMBED',_0x4707b7)),_0x467831['enableDefaultAttributesIntegration']('htmlEmbed'),_0x467831['descriptionFactory']['registerDescriptionCallback'](_0x16932a=>{if('attribute'!=_0x16932a['type'])return;const {data:_0x27948c}=_0x16932a;if(_0x27948c&&'value'==_0x27948c['key']&&_0x16932a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5317e8=Ot(_0x11c903,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x11c903,'*Change\x20%0\x20content*',_0x5317e8)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2d2005=this['editor'],_0x1aa509=_0x2d2005['locale'];_0x2d2005['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e0b9d=>{if('formatBlock'!=_0x3e0b9d['type'])return;const {data:_0x5f32ac}=_0x3e0b9d;if(_0x5f32ac&&'htmlEmbed'==_0x5f32ac['commandName']){const _0x23745e=Ot(_0x1aa509,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x1aa509,'*Change\x20%0\x20content*',_0x23745e)};}});}},ge=class extends _0x1f600{afterInit(){const _0xc30e72=this['editor'];if(!_0xc30e72['plugins']['has']('ImageEditing'))return;const _0xd56c5f=_0xc30e72['plugins']['get']('TrackChangesEditing'),_0x9cbaaa=_0xc30e72['plugins']['get']('ImageUtils'),_0x3c96c5=_0xc30e72['locale'];_0xd56c5f['enableCommand']('insertImage'),_0xd56c5f['descriptionFactory']['registerElementLabel']('imageBlock',_0x4bcf13=>Ot(_0x3c96c5,'ELEMENT_IMAGE',_0x4bcf13)),_0xd56c5f['descriptionFactory']['registerElementLabel']('imageInline',_0x5a8543=>Ot(_0x3c96c5,'ELEMENT_INLINE_IMAGE',_0x5a8543)),_0xd56c5f['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x3c96c5,'ELEMENT_CAPTION')),_0xc30e72['plugins']['has']('ImageUploadEditing')&&_0xd56c5f['enableCommand']('uploadImage'),_0xc30e72['plugins']['has']('ImageBlockEditing')&&_0xc30e72['plugins']['has']('ImageInlineEditing')&&(_0xd56c5f['enableCommand']('imageTypeInline',(_0x292b7d,_0x14db67)=>{const _0x930c40=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']);_0xc30e72['model']['change'](()=>{_0xd56c5f['markBlockFormat'](_0x930c40,{'commandName':'imageTypeInline','commandParams':[_0x14db67]},[],'convertBlockImageToInline');});}),_0xd56c5f['enableCommand']('imageTypeBlock',(_0xc672cd,_0x2aca32)=>{_0xc30e72['model']['change'](_0x5af069=>{let _0xb47c10=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']),_0xb95049=_0x5af069['createRangeOn'](_0xb47c10);const _0x925587=rt['fromPosition'](_0xb95049['start'],'toPrevious'),_0x1c38d7=rt['fromPosition'](_0xb95049['end'],'toNext');_0xd56c5f['forceDefaultExecution'](()=>_0xc672cd(_0x2aca32)),_0xb47c10=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']),_0xb95049=_0x5af069['createRangeOn'](_0xb47c10);const _0x1945d3=_0x5af069['createRange'](_0x925587,_0x1c38d7);_0x925587['detach'](),_0x1c38d7['detach'](),_0xd56c5f['markBlockFormat'](_0xb47c10,{'commandName':'imageTypeInline','commandParams':[_0x2aca32]},[],'convertInlineImageToBlock'),_0x1945d3['start']['isBefore'](_0xb95049['start'])&&_0xd56c5f['markInsertion'](_0x5af069['createRange'](_0x1945d3['start'],_0xb95049['start']),'convertInlineImageToBlock'),_0xb95049['end']['isBefore'](_0x1945d3['end'])&&_0xd56c5f['markInsertion'](_0x5af069['createRange'](_0xb95049['end'],_0x1945d3['end']),'convertInlineImageToBlock');});}),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xd56c5f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3eaca8])=>{const _0x9477f4=_0xd56c5f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x32972c=_0x3eaca8['start'],_0x56d755=_0x3eaca8['end'];const _0x4319dc=_0xc30e72['model']['schema']['getNearestSelectionRange'](_0x32972c,'backward'),_0x34ef28=_0xc30e72['model']['schema']['getNearestSelectionRange'](_0x56d755,'forward');_0x4319dc['isCollapsed']&&(_0x32972c=_0x4319dc['start']),_0x34ef28['isCollapsed']&&(_0x56d755=_0x34ef28['end']),_0x9477f4([_0xc30e72['model']['createRange'](_0x32972c,_0x56d755)]);}),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f4d14),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f4d14)),_0xc30e72['plugins']['has']('ImageCaptionEditing')&&(_0xd56c5f['enableCommand']('toggleImageCaption',(_0x428b4c,_0x458c4a)=>{const _0x3cc459=_0xc30e72['plugins']['get']('ImageCaptionUtils');let _0x46703c=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']),_0x3076ca=_0x3cc459['getCaptionFromImageModelElement'](_0x46703c);_0xc30e72['model']['change'](()=>{if(_0x3076ca)return void _0xd56c5f['markDeletion'](_0xc30e72['model']['createRangeOn'](_0x3076ca));const _0x224349=_0x9cbaaa['isBlockImage'](_0x46703c);_0x428b4c(_0x458c4a),_0x46703c=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']),_0x3076ca=_0x3cc459['getCaptionFromImageModelElement'](_0x46703c),_0xd56c5f['markInsertion'](_0xc30e72['model']['createRangeOn'](_0x3076ca),_0x224349?null:'imageCaption');});}),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f4d14));const _0x1a6739=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x111d93(_0x1ade20,_0x5f3e00){const _0x365673=_0x1a6739['findIndex'](({type:_0x332130,subType:_0x312ee3})=>_0x1ade20['type']==_0x332130&&_0x1ade20['subType']==_0x312ee3),_0x170a15=_0x1a6739['findIndex'](({type:_0x57e236,subType:_0x7f4eb1})=>_0x5f3e00['type']==_0x57e236&&_0x5f3e00['subType']==_0x7f4eb1);if(_0x365673<0x0||_0x170a15<0x0)return!0x1;const _0x1a01cc=_0x1ade20['getFirstRange'](),_0x4fa27c=_0x5f3e00['getFirstRange']();if((0x0==_0x365673||0x1==_0x365673)&&0x2==_0x170a15&&_0x1a01cc['isIntersecting'](_0x4fa27c))return!0x0;if(0x2==_0x365673&&0x3==_0x170a15){const _0x1faf0e=_0xd56c5f['_findSuggestions'](_0x1a01cc,'insertion')['filter'](({suggestion:_0x27e3bd,meta:_0x5f0d0a})=>_0x5f0d0a['isOwn']&&'convertInlineImageToBlock'==_0x27e3bd['subType']);if(_0x1faf0e['length']>0x1&&_0x4fa27c['end']['isEqual'](_0x1a01cc['start']))return!0x0;if(0x1==_0x1faf0e['length']&&(_0x1a01cc['start']['isEqual'](_0x4fa27c['end'])||_0x1a01cc['end']['isEqual'](_0x4fa27c['start'])))return!0x0;}if(0x3==_0x365673&&0x3==_0x170a15&&_0x1a01cc['start']['isBefore'](_0x4fa27c['start'])){const _0x31636=_0x1a01cc['end']['nodeAfter'],_0x49a24d=_0x4fa27c['start']['nodeBefore'];return _0x9cbaaa['isBlockImage'](_0x31636)&&_0x31636===_0x49a24d;}return!0x1;}function _0x2f4d14(_0x481ecd,_0x263231){return _0x111d93(_0x481ecd,_0x263231)?[_0x481ecd,_0x263231]:_0x111d93(_0x263231,_0x481ecd)?[_0x263231,_0x481ecd]:null;}_0xc30e72['plugins']['has']('ImageResize')&&(_0xd56c5f['enableDefaultAttributesIntegration']('resizeImage'),_0xd56c5f['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x3c96c5,'FORMAT_IMAGE_SIZE'))),_0xc30e72['plugins']['has']('ImageTextAlternativeEditing')&&_0xd56c5f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xc30e72['plugins']['has']('PictureEditing')&&_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x2b04be=>{if('attribute'!=_0x2b04be['type'])return;const {data:_0x5a8dd8}=_0x2b04be;return _0x5a8dd8&&'sources'==_0x5a8dd8['key']?{'type':'format','content':''}:void 0x0;}),_0xc30e72['plugins']['has']('ImageSizeAttributes')&&_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x2c4755=>{if('attribute'!=_0x2c4755['type'])return;const {data:_0x469e19}=_0x2c4755;return!_0x469e19||'width'!=_0x469e19['key']&&'height'!=_0x469e19['key']?void 0x0:{'type':'format','content':''};}),_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x6a0c61=>{if(_0x1a6739['find'](({type:_0x2bad41,subType:_0x282f7c})=>_0x6a0c61['type']==_0x2bad41&&_0x6a0c61['subType']==_0x282f7c))return _0x6a0c61['previous']?{}:void 0x0;}),_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x51ee06=>{if('insertion'==_0x51ee06['type']||'deletion'==_0x51ee06['type']){const _0xdd8b4c=_0x51ee06['getContainedElement']();if(_0xdd8b4c&&_0xdd8b4c['is']('element','caption'))return{'type':'insertion'==_0x51ee06['type']?'addObject':'removeObject','element':_0xdd8b4c,'quantity':0x1};}}),_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x12009a=>'formatBlock'==_0x12009a['type']&&'convertInlineImageToBlock'==_0x12009a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x12009a['type']&&'convertBlockImageToInline'==_0x12009a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x3c6cf0=>{if('attribute'!=_0x3c6cf0['type'])return;const {data:_0x4a8c0e}=_0x3c6cf0;if(!_0x4a8c0e||'alt'!=_0x4a8c0e['key'])return;const _0x134ae0=_0x4a8c0e['newValue'];return _0x134ae0?{'type':'format','content':Ot(_0x3c96c5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x134ae0+'\x22')}:{'type':'format','content':Ot(_0x3c96c5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5359ed=this['editor'],_0x286a9e=_0x5359ed['locale'];_0x5359ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487e6d=>{if('formatBlock'!=_0x487e6d['type']&&'formatInline'!=_0x487e6d['type'])return;const {data:_0x675f11}=_0x487e6d;if(_0x675f11){if('imageTextAlternative'==_0x675f11['commandName']){const _0x4849c2=_0x675f11['commandParams'][0x0]['newValue'];return _0x4849c2?{'type':'format','content':Ot(_0x286a9e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4849c2+'\x22')}:{'type':'format','content':Ot(_0x286a9e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x675f11['commandName']){const _0x1b4c1b=_0x675f11['commandParams'][0x0]['width'];return _0x1b4c1b?{'type':'format','content':Ot(_0x286a9e,'*Set\x20image\x20width:*\x20%0',_0x1b4c1b)}:{'type':'format','content':Ot(_0x286a9e,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4991ab=this['editor']['locale'],_0x485fe0=this['editor']['plugins']['get']('TrackChangesEditing');_0x485fe0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x485fe0['descriptionFactory']['registerDescriptionCallback'](_0x298e27=>{if('attribute'!=_0x298e27['type'])return;const {data:_0x2e8247}=_0x298e27;return _0x2e8247&&'src'==_0x2e8247['key']?_0x2e8247['newValue']&&_0x2e8247['oldValue']?{'type':'format','content':Ot(_0x4991ab,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0xddb8d2=this['editor']['plugins']['get']('TrackChangesEditing');_0xddb8d2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xddb8d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xddb8d2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xddb8d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3ad92c=this['editor'],_0x9945c4=_0x3ad92c['locale'];_0x3ad92c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38a79b=>{if('formatBlock'!=_0x38a79b['type']&&'formatInline'!=_0x38a79b['type'])return;const {data:_0x43d9b3}=_0x38a79b;return _0x43d9b3&&'replaceImageSource'==_0x43d9b3['commandName']?{'type':'format','content':Ot(_0x9945c4,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x1f600{afterInit(){const _0x232499=this['editor'];if(!_0x232499['plugins']['has']('ImageStyleEditing'))return;const _0xaf89ab=_0x232499['plugins']['get']('TrackChangesEditing'),_0x58a909=_0x232499['plugins']['get']('ImageUtils'),_0x133f65={};_0xaf89ab['enableCommand']('imageStyle',(_0xaf47b2,_0xa61c10)=>{const _0x43f135=_0x232499['plugins']['get']('Users')['me'],_0x20c0c8=_0x232499['commands']['get']('imageStyle');let _0x5c2a74=_0x58a909['getClosestSelectedImageElement'](_0x232499['model']['document']['selection']),_0x5d67f3=_0x232499['model']['createRangeOn'](_0x5c2a74),_0x29170b=_0x20c0c8['value'];if(_0x29170b==_0xa61c10['value'])return;if(_0xa61c10['value']&&_0x58a909['isInlineImage'](_0x5c2a74)&&!_0x20c0c8['isStyleEnabled'](_0xa61c10['value']))return;const _0x2fae88={'commandName':'imageStyle','commandParams':[_0xa61c10],'formatGroupId':_0x51282a()};_0x232499['model']['change'](()=>{if(_0xaf89ab['getSuggestions']()['filter'](_0x206858=>_0x206858['isInContent']&&_0x43f135==_0x206858['author']&&('formatBlock'==_0x206858['type']||'formatInline'==_0x206858['type'])&&('imageStylePreApply'==_0x206858['subType']||'imageStylePostApply'==_0x206858['subType'])&&_0x206858['getFirstRange']()['isEqual'](_0x5d67f3))['forEach'](_0xd90754=>_0xaf89ab['discardSuggestion'](_0xd90754['head'])),_0x5c2a74=_0x58a909['getClosestSelectedImageElement'](_0x232499['model']['document']['selection']),_0x5d67f3=_0x232499['model']['createRangeOn'](_0x5c2a74),_0x20c0c8['refresh'](),_0x232499['commands']['get']('imageTypeInline')['refresh'](),_0x232499['commands']['get']('imageTypeBlock')['refresh'](),_0x29170b=_0x20c0c8['value'],_0x29170b!=_0xa61c10['value'])return _0x58a909['isInlineImage'](_0x5c2a74)&&_0x20c0c8['shouldConvertImageType'](_0xa61c10['value'],_0x5c2a74)?(_0xaf47b2({..._0xa61c10,'setImageSizes':!0x1}),_0x5c2a74=_0x58a909['getClosestSelectedImageElement'](_0x232499['model']['document']['selection']),void _0xaf89ab['markBlockFormat'](_0x5c2a74,{..._0x2fae88,'commandReversedParams':[{'value':_0x29170b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x58a909['isBlockImage'](_0x5c2a74)?_0xaf89ab['markBlockFormat'](_0x5c2a74,_0x2fae88,[],'imageStylePostApply'):_0xaf89ab['markInlineFormat'](_0x5d67f3,_0x2fae88,'imageStylePostApply'));});});for(const _0x3592e9 of _0x232499['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x133f65[_0x3592e9['name']]=_0x3592e9['title']['toLowerCase']();_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf7a335])=>{_0x58a909['setImageNaturalSizeAttributes'](_0xf7a335['getContainedElement']());}),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6e8d13,_0x103a6f)=>{_0xaf89ab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6e8d13,{'commandName':_0x103a6f['commandName'],'commandParams':_0x103a6f['commandReversedParams']});}),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x35434b,_0x127918){return _0x1be680(_0x35434b,_0x127918)?[_0x35434b,_0x127918]:_0x1be680(_0x127918,_0x35434b)?[_0x127918,_0x35434b]:null;});const _0x53873f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1be680(_0x33013f,_0x47f38a){const _0x1a3e70=_0x53873f['findIndex'](({type:_0x14aa7,subType:_0x51e534})=>_0x33013f['type']==_0x14aa7&&_0x33013f['subType']==_0x51e534),_0xb8f7b9=_0x53873f['findIndex'](({type:_0x42495e,subType:_0x2154d4})=>_0x47f38a['type']==_0x42495e&&_0x47f38a['subType']==_0x2154d4);if(_0x1a3e70<0x0||_0xb8f7b9<0x0)return!0x1;const _0x108d99=_0x33013f['getFirstRange'](),_0x4c60f8=_0x47f38a['getFirstRange']();if((0x0==_0x1a3e70||0x1==_0x1a3e70)&&0x2==_0xb8f7b9&&_0x108d99['isIntersecting'](_0x4c60f8))return!0x0;if(0x2==_0x1a3e70&&0x3==_0xb8f7b9){const _0x3a3b9c=_0xaf89ab['_findSuggestions'](_0x108d99,'insertion')['filter'](({suggestion:_0x210978,meta:_0x9b272e})=>_0x9b272e['isOwn']&&'convertInlineImageToBlock'==_0x210978['subType']);if(_0x3a3b9c['length']>0x1&&_0x4c60f8['end']['isEqual'](_0x108d99['start']))return!0x0;if(0x1==_0x3a3b9c['length']&&(_0x108d99['start']['isEqual'](_0x4c60f8['end'])||_0x108d99['end']['isEqual'](_0x4c60f8['start'])))return!0x0;}if(0x3==_0x1a3e70&&0x3==_0xb8f7b9&&_0x108d99['start']['isBefore'](_0x4c60f8['start'])){const _0x41c820=_0x108d99['end']['nodeAfter'],_0x4a609b=_0x4c60f8['start']['nodeBefore'];return _0x58a909['isBlockImage'](_0x41c820)&&_0x41c820===_0x4a609b;}return!0x1;}_0x232499['model']['document']['registerPostFixer'](()=>{let _0x4105f1=!0x1;const _0x2abe1d=Array['from'](_0x232499['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e193d,data:_0x543fdd}of _0x2abe1d){const {group:_0x471c03,type:_0x47490c,subType:_0x27b352,id:_0x50665d}=et(_0x2e193d);if('suggestion'==_0x471c03&&_0xaf89ab['hasSuggestion'](_0x50665d)){if('formatBlock'==_0x47490c&&('imageStylePreApply'==_0x27b352||'imageStylePostApply'==_0x27b352)){const _0x5f3035=_0xaf89ab['getSuggestion'](_0x50665d);if(_0x543fdd['newRange']){const _0x332b44=_0x5f3035['getFirstRange']()['getContainedElement']();if(_0x58a909['isBlockImage'](_0x332b44))continue;_0xaf89ab['discardSuggestion'](_0x5f3035),_0x4105f1=!0x0;}}if('insertion'==_0x47490c&&'imageCaption'==_0x27b352&&!_0x543fdd['newRange']){const _0x25326b=_0xaf89ab['getSuggestion'](_0x50665d);_0x25326b['next']&&_0x25326b['next']['isInContent']&&(_0xaf89ab['discardSuggestion'](_0x25326b['next']),_0x4105f1=!0x0);}}}return _0x4105f1;}),this['_registerLegacyDescription'](_0x133f65);}_registerLegacyDescription(_0x564eaf){const _0x21ac9f=this['editor'],_0x209230=_0x21ac9f['locale'];_0x21ac9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x364e49=>{if('formatBlock'!=_0x364e49['type']&&'formatInline'!=_0x364e49['type'])return;const {data:_0x5708fb}=_0x364e49;if(!_0x5708fb||'imageStyle'!=_0x5708fb['commandName'])return;const _0x2ac2ab=_0x5708fb['commandParams'][0x0]['value'];return _0x32668b('side'===_0x2ac2ab?Ot(_0x209230,'FORMAT_SIDE_IMAGE'):_0x564eaf[_0x2ac2ab]||_0x2ac2ab);function _0x32668b(_0x4ff708){return{'type':'format','content':Ot(_0x209230,'*Format:*\x20%0',_0x4ff708)};}});}},Ee=class extends _0x1f600{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x1d89b2){super(_0x1d89b2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x35c311=this['editor'],_0x378ed5=_0x35c311['commands']['get']('importWord'),_0x505e5a=_0x35c311['commands']['get']('trackChanges');_0x378ed5&&(_0x378ed5['on']('execute',(_0x2cad40,[,_0x1bf619])=>{this['_trackChangesValueDuringImport']=_0x505e5a['value'],_0x1bf619['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x378ed5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x378ed5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x505e5a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x35c311['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x1d37a6,_0x4dcc9d){const {suggestions:_0x540744}=_0x4dcc9d,_0x3eaeae=this['editor']['commands']['get']('trackChanges'),_0x5f550e=_0x3eaeae['value'];this['_trackChangesValueDuringImport']!==_0x5f550e&&(_0x3eaeae['execute'](),this['_trackChangesExecuted']=!0x0),_0x540744&&_0x540744['forEach'](({id:_0xefa5a1,type:_0x27e2e7,author:_0x3159b2,created_at:_0x18a041})=>{const _0xcf013b={'id':_0xefa5a1,'type':_0x27e2e7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3159b2,'createdAt':_0x18a041?new Date(_0x18a041):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xcf013b);});}},Te=class extends _0x1f600{afterInit(){const _0x22050b=this['editor'],_0x353beb=_0x22050b['plugins']['get']('TrackChangesEditing');if(_0x22050b['plugins']['has']('IndentEditing')&&(_0x353beb['enableCommand']('indent'),_0x353beb['enableCommand']('outdent')),_0x22050b['plugins']['has']('IndentBlock')){for(const _0x1d893a of['indentBlock','outdentBlock'])_0x353beb['enableDefaultAttributesIntegration'](_0x1d893a);if(_0x22050b['plugins']['has']('ListEditing')){for(const _0x463bfa of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x353beb['enableDefaultAttributesIntegration'](_0x463bfa);}}const _0xcd13d8=_0x22050b['locale'];_0x353beb['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0xcd13d8,'FORMAT_INDENT')),_0x353beb['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0xcd13d8,'FORMAT_INDENT')),_0x353beb['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0xcd13d8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x38f859=this['editor'],_0x6eb9fd=_0x38f859['locale'],_0xd0753e=_0x38f859['plugins']['get']('TrackChangesEditing');_0xd0753e['descriptionFactory']['registerDescriptionCallback'](_0x59e924=>{if('formatBlock'!=_0x59e924['type'])return;const {data:_0x342781}=_0x59e924;if(!_0x342781)return;if('indentBlock'!=_0x342781['commandName']&&'outdentBlock'!=_0x342781['commandName'])return;const _0x4190dd=_0x59e924['getItems']()[0x0],_0x31e805=_0xd0753e['descriptionFactory']['getItemLabel'](_0x4190dd);return'indentBlock'==_0x342781['commandName']?{'type':'format','content':Ot(_0x6eb9fd,'*Indent:*\x20%0',_0x31e805)}:'outdentBlock'==_0x342781['commandName']?{'type':'format','content':Ot(_0x6eb9fd,'*Outdent:*\x20%0',_0x31e805)}:void 0x0;});}},_e=class extends _0x1f600{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x1f600{afterInit(){const _0x4535a5=this['editor'];if(!_0x4535a5['plugins']['has']('LinkEditing'))return;const _0x1565bf=_0x4535a5['plugins']['get']('TrackChangesEditing'),_0x240f09=_0x4535a5['commands']['get']('link');_0x1565bf['enableDefaultAttributesIntegration']('link'),_0x1565bf['enableDefaultAttributesIntegration']('unlink');for(const _0x4b5725 of _0x240f09['manualDecorators'])_0x1565bf['descriptionFactory']['registerAttributeLabel'](_0x4b5725['id'],'link\x20('+_0x4b5725['label']['toLowerCase']()+')');_0x1565bf['descriptionFactory']['registerDescriptionCallback'](_0x4f44a9=>{if('attribute'!=_0x4f44a9['type'])return;const {data:_0x7383d7}=_0x4f44a9;if(!_0x7383d7||'linkHref'!=_0x7383d7['key'])return;const _0x34cd28=_0x7383d7['newValue'],_0x10826c=_0x4535a5['locale'];return{'type':'format','content':null==_0x34cd28?Ot(_0x10826c,'*Remove\x20link*'):Ot(_0x10826c,'*Set\x20link:*\x20%0','\x22'+_0x34cd28+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3aa2f6=this['editor'],_0x4b9963=_0x3aa2f6['locale'];_0x3aa2f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8bd2=>{if('formatInline'!=_0x4f8bd2['type'])return;const {data:_0x2fd5dd}=_0x4f8bd2;if(_0x2fd5dd){if('link'==_0x2fd5dd['commandName']){const _0x5e9480=_0x2fd5dd['commandParams'][0x0];return{'type':'format','content':Ot(_0x4b9963,'*Set\x20link:*\x20%0','\x22'+_0x5e9480+'\x22')};}return'unlink'==_0x2fd5dd['commandName']?{'type':'format','content':Ot(_0x4b9963,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x1f600{afterInit(){const _0xd7a325=this['editor'],_0x6192de=_0xd7a325['locale'];if(!_0xd7a325['plugins']['has']('LegacyListEditing'))return;const _0x3f3c72=_0xd7a325['plugins']['get']('TrackChangesEditing'),_0x175535=_0xd7a325['plugins']['has']('LegacyTodoListEditing');function _0x547e69(_0x20841c){return()=>{const _0x33d45b=_0xd7a325['model']['document']['selection'],_0x54f309=_0xd7a325['commands']['get'](_0x20841c);if(_0x54f309['value'])return void _0xd7a325['execute']('paragraph',{});const _0x102b44=_0x20841c['slice'](0x0,-0x4),_0x4ad0f2=function(_0x26fd85,_0x100a23,_0x3bae99){let _0x5d61cb=Array['from'](_0x26fd85)['filter'](_0x521247=>function(_0x1d609e,_0x18b6f5){return _0x18b6f5['checkChild'](_0x1d609e['parent'],'listItem')&&!_0x18b6f5['isObject'](_0x1d609e);}(_0x521247,_0x3bae99));_0x5d61cb=_0x5d61cb['filter'](_0x1d7002=>!_0x1d7002['is']('element','listItem')||_0x1d7002['getAttribute']('listType')!=_0x100a23);const _0x3d783a=new Set();for(const _0x303f21 of _0x5d61cb)_0x303f21['is']('element','listItem')?_0x3d783a['add'](Ie(_0x303f21)):_0x3d783a['add'](_0x303f21);return Array['from'](_0x3d783a);}(_0x33d45b['getSelectedBlocks'](),_0x102b44,_0xd7a325['model']['schema']);_0xd7a325['model']['change'](()=>{for(const _0x21dcb2 of _0x4ad0f2)_0x3f3c72['markBlockFormat'](_0x21dcb2,{'commandName':_0x20841c,'commandParams':[{'forceValue':!_0x54f309['value']}],'formatGroupId':'blockName'},Ae(_0x21dcb2));});};}function _0x2cc7a1(_0x2f9dfc){return()=>{const _0x23923e=function(_0x4b4925){let _0x1384e1=Array['from'](_0x4b4925);const _0x36994c=_0x1384e1['findIndex'](_0x62ca25=>'listItem'!=_0x62ca25['name']);return _0x36994c>-0x1&&(_0x1384e1=_0x1384e1['slice'](0x0,_0x36994c)),_0x1384e1;}(_0xd7a325['model']['document']['selection']['getSelectedBlocks']()),_0x5d8625=_0xd7a325['model']['createRange'](_0xd7a325['model']['createPositionAt'](_0x23923e[0x0],'before'),_0xd7a325['model']['createPositionAt'](_0x23923e[_0x23923e['length']-0x1],'end'));_0xd7a325['model']['change'](()=>{_0x3f3c72['markBlockFormat'](_0x5d8625,{'commandName':_0x2f9dfc,'commandParams':[],'formatGroupId':'listIndent'},function(_0x86af2d){const _0x23b58d=new Set();for(const _0x464b70 of _0x86af2d){let _0x3a0cb0=_0x464b70['nextSibling'];for(;_0x3a0cb0&&_0x3a0cb0['getAttribute']('listIndent')>_0x464b70['getAttribute']('listIndent');)_0x23b58d['add'](_0x3a0cb0),_0x3a0cb0=_0x3a0cb0['nextSibling'];}return Array['from'](_0x23b58d);}(_0x23923e));});};}_0x3f3c72['enableCommand']('numberedList',_0x547e69('numberedList')),_0x3f3c72['enableCommand']('bulletedList',_0x547e69('bulletedList')),_0x175535&&_0x3f3c72['enableCommand']('todoList',_0x547e69('todoList')),_0x3f3c72['enableCommand']('indentList',_0x2cc7a1('indentList')),_0x3f3c72['enableCommand']('outdentList',_0x2cc7a1('outdentList')),_0x175535&&_0x3f3c72['enableCommand']('checkTodoList',()=>{const _0x2aaa3d=_0xd7a325['commands']['get']('checkTodoList'),_0x3effe7=Array['from'](_0x2aaa3d['_selectedElements']);_0x3effe7['filter'](_0x29141a=>_0x29141a['getAttribute']('todoListChecked')!=_0x2aaa3d['value']),_0xd7a325['model']['change'](()=>{for(const _0x28f85c of _0x3effe7)_0x3f3c72['markBlockFormat'](_0x28f85c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2aaa3d['value']}]});});}),_0x3f3c72['descriptionFactory']['registerElementLabel']('listItem',_0x1f2140=>Ot(_0x6192de,'ELEMENT_LIST_ITEM',_0x1f2140)),_0x3f3c72['descriptionFactory']['registerDescriptionCallback'](_0x4a4166=>{if('formatBlock'!=_0x4a4166['type']&&'formatInline'!=_0x4a4166['type'])return;const {data:_0x3edda3}=_0x4a4166;if(_0x3edda3){if('numberedList'==_0x3edda3['commandName']||'bulletedList'==_0x3edda3['commandName']||'todoList'==_0x3edda3['commandName'])switch(_0x3edda3['commandName']['replace']('List','')){case'bulleted':return _0x20464a(Ot(_0x6192de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20464a(Ot(_0x6192de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20464a(Ot(_0x6192de,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3edda3['commandName'])return{'type':'format','content':Ot(_0x6192de,'*Indent:*\x20%0',Ot(_0x6192de,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3edda3['commandName'])return{'type':'format','content':Ot(_0x6192de,'*Outdent:*\x20%0',Ot(_0x6192de,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3edda3['commandName'])return _0x3edda3['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x6192de,'*Check\x20item*')}:{'type':'format','content':Ot(_0x6192de,'*Uncheck\x20item*')};}function _0x20464a(_0x4285ae){return{'type':'format','content':Ot(_0x6192de,'*Change\x20to:*\x20%0',_0x4285ae)};}});}};function Ie(_0x2ec26f){const _0x1ae4db=_0x2ec26f['getAttribute']('listIndent');if(0x0==_0x1ae4db)return _0x2ec26f;let _0x4c548f=_0x2ec26f;for(;_0x2ec26f['previousSibling']&&_0x2ec26f['previousSibling']['is']('element','listItem');){const _0x61190=_0x2ec26f['previousSibling']['getAttribute']('listIndent');if(_0x61190==_0x1ae4db)_0x4c548f=_0x2ec26f['previousSibling'];else{if(_0x61190<_0x1ae4db)break;}_0x2ec26f=_0x2ec26f['previousSibling'];}return _0x4c548f;}function Ae(_0x188906){const _0x33b559=[];if(_0x188906['is']('element','listItem')&&_0x188906['getAttribute']('listIndent')>0x0){let _0x59db73=_0x188906['nextSibling'];for(;_0x59db73&&'listItem'==_0x59db73['name']&&_0x59db73['getAttribute']('listIndent')==_0x188906['getAttribute']('listIndent');)_0x33b559['push'](_0x59db73),_0x59db73=_0x59db73['nextSibling'];}return _0x33b559;}var be=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4d710f=this['editor']['config']['get']('list.properties'),_0x28b2a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d710f['styles']&&_0x28b2a4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4d710f['reversed']&&_0x28b2a4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4d710f['startIndex']&&_0x28b2a4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x28b2a4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x357473,_0x328756={}){const _0x232df3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4600ca=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x232df3['markMultiRangeBlockFormat'](_0x4600ca,{'commandName':'listStyle','commandParams':[{'type':_0x328756['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x4fee2f,_0x5cda60={}){const _0x4ea4ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x266fe0=this['_getSuggestionBlocks'](_0xabce07=>_0xabce07['is']('element','listItem')&&'numbered'===_0xabce07['getAttribute']('listType'));if(_0x266fe0['length']<0x1)return;const _0x2f9c1f=_0x266fe0['map'](_0x2f50fb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f50fb,'before'),this['editor']['model']['createPositionAt'](_0x2f50fb,0x0)));this['editor']['model']['change'](()=>{_0x4ea4ca['markMultiRangeBlockFormat'](_0x2f9c1f,{'commandName':'listReversed','commandParams':[{'reversed':_0x5cda60['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x2d2e60,_0x11dc65={}){const _0x101385=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e4f77=this['_getSuggestionBlocks'](_0x3dcdaf=>_0x3dcdaf['is']('element','listItem')&&'numbered'===_0x3dcdaf['getAttribute']('listType'));if(_0x1e4f77['length']<0x1)return;const _0x540761=_0x1e4f77['map'](_0x1de66b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1de66b,'before'),this['editor']['model']['createPositionAt'](_0x1de66b,0x0)));this['editor']['model']['change'](()=>{_0x101385['markMultiRangeBlockFormat'](_0x540761,{'commandName':'listStart','commandParams':[{'startIndex':_0x11dc65['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x31d263){if('formatBlock'!=_0x31d263['type']&&'formatInline'!=_0x31d263['type'])return;const _0x2a733e=this['editor']['locale'],{data:_0x47857c}=_0x31d263;if(!_0x47857c)return;let _0x2f0121,_0x224085;switch(_0x47857c['commandName']){case'listStyle':_0x2f0121='*Change\x20to:*\x20%0',_0x224085={'type':'format','content':Ot(_0x2a733e,_0x2f0121,Ot(_0x2a733e,this['_getTranslationKeyForListStyle'](_0x47857c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f0121=_0x47857c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x224085={'type':'format','content':Ot(_0x2a733e,_0x2f0121)};break;case'listStart':_0x2f0121='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x224085={'type':'format','content':Ot(_0x2a733e,_0x2f0121,_0x47857c['commandParams'][0x0]['startIndex'])};}return _0x224085;}_getSuggestionBlocksForListStyle(){const _0x3478ec=this['editor']['plugins']['get']('LegacyListUtils');let _0x52c5c3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x52c5c3[0x0]?.['is']('element','listItem')&&_0x52c5c3['unshift'](..._0x3478ec['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x52c5c3[_0x52c5c3['length']-0x1]?.['is']('element','listItem')&&_0x52c5c3['push'](..._0x3478ec['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x52c5c3=[...new Set(_0x52c5c3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x52c5c3=_0x52c5c3['filter'](_0x348598=>_0x348598['is']('element','listItem'))),_0x52c5c3;}_getSuggestionBlocks(_0x441ea6){const _0x4b464a=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b6174=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x441ea6)['map'](_0x29db35=>{const _0xccb178=this['editor']['model']['createPositionAt'](_0x29db35,0x0);return[..._0x4b464a['getSiblingNodes'](_0xccb178,'backward'),..._0x4b464a['getSiblingNodes'](_0xccb178,'forward')];})['flat']();return _0x3b6174=[...new Set(_0x3b6174)],_0x3b6174;}_getTranslationKeyForListStyle(_0x42773f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x42773f)||'default')['toUpperCase']()+'_LIST_'+_0x42773f['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x1f600{afterInit(){const _0x106fbe=this['editor'];if(!_0x106fbe['plugins']['has']('MediaEmbedEditing'))return;const _0x196e64=_0x106fbe['plugins']['get']('TrackChangesEditing'),_0x273a84=_0x106fbe['locale'];_0x196e64['enableCommand']('mediaEmbed'),_0x196e64['descriptionFactory']['registerElementLabel']('media',_0x4f52cd=>Ot(_0x273a84,'ELEMENT_MEDIA',_0x4f52cd)),_0x106fbe['plugins']['has']('MediaEmbedResizeEditing')&&(_0x196e64['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x196e64['descriptionFactory']['registerDescriptionCallback'](_0x58b835=>{if('attribute'!=_0x58b835['type'])return;const {data:_0x28d15d}=_0x58b835;if(!_0x28d15d||'resizedWidth'!=_0x28d15d['key'])return;const _0x50f31c=_0x58b835['getContainedElement']();if(!_0x50f31c||!_0x50f31c['is']('element','media'))return;const _0x35e2c4=Ot(_0x273a84,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x273a84,'*Set\x20format:*\x20%0',_0x35e2c4)};}));}},ke=class extends _0x1f600{afterInit(){const _0x3c1c86=this['editor'];if(!_0x3c1c86['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x10eb98=_0x3c1c86['plugins']['get']('TrackChangesEditing'),_0x246c8f=_0x3c1c86['locale'],_0x280732=_0x3c1c86['plugins']['get']('MediaEmbedStyleEditing'),_0x513395={};for(const _0x5a4438 of _0x280732['normalizedStyles'])_0x513395[_0x5a4438['name']]=_0x5a4438['title']['toLowerCase']();const _0x2e7bfe=_0x280732['normalizedStyles']['find'](_0x54513e=>_0x54513e['isDefault'])?.['name'];_0x10eb98['enableCommand']('mediaStyle',(_0x569d68,_0x35dd81)=>{const _0x4f8f99=_0x3c1c86['plugins']['get']('Users')['me'],_0x47439a=_0x3c1c86['commands']['get']('mediaStyle'),_0x403fef=function(_0x25fcb0){const _0x50f7ef=_0x25fcb0['model']['document']['selection']['getSelectedElement']();return _0x50f7ef&&_0x50f7ef['is']('element','media')?_0x50f7ef:null;}(_0x3c1c86);if(!_0x403fef)return;const _0x4b0713=_0x3c1c86['model']['createRangeOn'](_0x403fef);let _0x48ba1f=_0x47439a['value'];if(_0x48ba1f==_0x35dd81['value'])return;const _0x585af8={'commandName':'mediaStyle','commandParams':[_0x35dd81],'formatGroupId':_0x51282a()};_0x3c1c86['model']['change'](()=>{_0x10eb98['getSuggestions']()['filter'](_0x14f27c=>_0x14f27c['isInContent']&&_0x4f8f99==_0x14f27c['author']&&'formatBlock'==_0x14f27c['type']&&'mediaStylePostApply'==_0x14f27c['subType']&&_0x14f27c['getFirstRange']()['isEqual'](_0x4b0713))['forEach'](_0x5c2a65=>_0x10eb98['discardSuggestion'](_0x5c2a65['head'])),_0x47439a['refresh'](),_0x48ba1f=_0x47439a['value'],_0x48ba1f!=_0x35dd81['value']&&_0x10eb98['markBlockFormat'](_0x403fef,{..._0x585af8,'commandReversedParams':[{'value':'string'==typeof _0x48ba1f?_0x48ba1f:null}]},[],'mediaStylePostApply');});}),_0x10eb98['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x10eb98['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1fd361,_0x345471)=>{_0x10eb98['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1fd361,{'commandName':_0x345471['commandName'],'commandParams':_0x345471['commandReversedParams']});}),_0x10eb98['descriptionFactory']['registerDescriptionCallback'](_0x2ec8e1=>{if('formatBlock'!=_0x2ec8e1['type'])return;const {data:_0x461d7a}=_0x2ec8e1;if(!_0x461d7a||'mediaStyle'!=_0x461d7a['commandName'])return;const _0x1e6c40=_0x461d7a['commandParams'][0x0]['value']||_0x2e7bfe;if(!_0x1e6c40)return;const _0x50eb1e=_0x513395[_0x1e6c40]||_0x1e6c40;return{'type':'format','content':Ot(_0x246c8f,'*Format:*\x20%0',_0x50eb1e)};});}},Re=class extends _0x1f600{afterInit(){const _0x3889cd=this['editor'];_0x3889cd['plugins']['has']('MentionEditing')&&_0x3889cd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x1f600{afterInit(){const _0x3f8dd2=this['editor'];if(!_0x3f8dd2['plugins']['has']('MergeFieldsEditing'))return;const _0x42fd08=_0x3f8dd2['plugins']['get']('TrackChangesEditing'),_0x3534ca=_0x3f8dd2['locale'];_0x42fd08['enableCommand']('insertMergeField'),_0x42fd08['enableCommand']('insertMergeFieldBlock'),_0x42fd08['enableCommand']('insertMergeFieldImage'),_0x42fd08['descriptionFactory']['registerElementLabel']('mergeField',_0x2e6ed8=>Ot(_0x3534ca,'ELEMENT_MERGE_FIELD',_0x2e6ed8)),_0x42fd08['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x426a67=>Ot(_0x3534ca,'ELEMENT_MERGE_FIELD',_0x426a67)),_0x42fd08['descriptionFactory']['registerDescriptionCallback'](_0x3663b9=>{if('insertion'!=_0x3663b9['type']&&'deletion'!=_0x3663b9['type'])return;const _0x2bd27b=_0x3663b9['getContainedElement']();if(null==_0x2bd27b)return;const _0x55aa28=_0x3f8dd2['plugins']['get']('MergeFieldsEditing');let _0xb2b20f;switch(_0x55aa28['getMergeFieldType'](_0x2bd27b)){case null:return;case'image':{const _0x188464=_0x55aa28['unwrapAffixes'](_0x2bd27b['getAttribute']('src'));_0xb2b20f=_0x55aa28['getLabel'](_0x188464)||_0x188464;break;}default:{const _0x35f43f=_0x2bd27b['getAttribute']('id');_0xb2b20f=_0x55aa28['getLabel'](_0x35f43f)||_0x35f43f;break;}}return'insertion'==_0x3663b9['type']?{'type':'insertion','content':Ot(_0x3534ca,'*Insert:*\x20%0','\x22'+_0xb2b20f+'\x22\x20'+Ot(_0x3534ca,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x3534ca,'*Remove:*\x20%0','\x22'+_0xb2b20f+'\x22\x20'+Ot(_0x3534ca,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x1f600{afterInit(){const _0x3c3848=this['editor'],_0x362187=_0x3c3848['plugins']['get']('TrackChangesEditing');_0x3c3848['plugins']['has']('MultiLevelList')&&(_0x362187['enableDefaultAttributesIntegration']('multiLevelList'),_0x362187['descriptionFactory']['registerDescriptionCallback'](_0x4b234a=>this['handleDescriptions'](_0x4b234a)));}handleDescriptions(_0x4a1e55){const _0x3b2723=this['editor']['locale'],{data:_0x5a29df}=_0x4a1e55,_0x245a8e={'type':'format','content':''};if(_0x5a29df&&'listMarkerStyle'==_0x5a29df['key']){if(!_0x5a29df['oldValue'])return{'type':'format','content':Ot(_0x3b2723,'*Set\x20format:*\x20%0',Ot(_0x3b2723,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a29df['newValue']+')'};if(!_0x5a29df['newValue']){let _0x5dbc10=_0x4a1e55['head'];for(;_0x5dbc10;){if(_0x5dbc10['data']&&'listType'==_0x5dbc10['data']['key']&&_0x5dbc10['data']['newValue'])return _0x245a8e;_0x5dbc10=_0x5dbc10['next'];}return{'type':'format','content':Ot(_0x3b2723,'*Remove\x20format:*\x20%0',Ot(_0x3b2723,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a29df['oldValue']+')'};}}}},Se=class extends _0x1f600{afterInit(){const _0x1abb03=this['editor'];if(!_0x1abb03['plugins']['has']('PageBreakEditing'))return;_0x1abb03['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2580f7=_0x1abb03['plugins']['get']('TrackChangesEditing'),_0xc4c969=_0x1abb03['locale'];_0x2580f7['descriptionFactory']['registerElementLabel']('pageBreak',_0x1cb68c=>Ot(_0xc4c969,'ELEMENT_PAGE_BREAK',_0x1cb68c));}},Me=class extends _0x1f600{afterInit(){const _0x42a398=this['editor'];if(!_0x42a398['plugins']['has']('Paragraph'))return;const _0x2348e2=_0x42a398['locale'],_0xa73b85=_0x42a398['plugins']['get']('TrackChangesEditing');_0xa73b85['descriptionFactory']['registerElementLabel']('paragraph',_0x2aa51d=>Ot(_0x2348e2,'ELEMENT_PARAGRAPH',_0x2aa51d)),_0xa73b85['enableDefaultAttributesIntegration']('paragraph'),_0xa73b85['enableCommand']('insertParagraph');const _0x4b6b6a=_0xa73b85['descriptionFactory'];_0x4b6b6a['registerDescriptionCallback'](_0x537849=>{if('insertion'!==_0x537849['type'])return;const {start:_0x14d154,end:_0x3f2144}=_0x537849['getFirstRange']();if(!_0x14d154['isTouching'](_0x3f2144)||!_0x14d154['nodeAfter'])return;const _0x5058fa=_0x42a398['model']['schema'],_0x225a1a=_0x14d154['nodeAfter'];return _0x5058fa['isBlock'](_0x225a1a)&&!_0x5058fa['isLimit'](_0x225a1a)&&_0x5058fa['checkChild'](_0x225a1a,'$text')?{'type':'insertion','content':Ot(_0x2348e2,'*Insert:*\x20%0',_0x4b6b6a['getItemLabel'](_0x225a1a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x446a18=this['editor'],_0x151e8b=_0x446a18['locale'];_0x446a18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x525f8d=>{if('formatBlock'!=_0x525f8d['type'])return;const {data:_0x15b046}=_0x525f8d;return _0x15b046&&'paragraph'==_0x15b046['commandName']?{'type':'format','content':Ot(_0x151e8b,'*Change\x20to:*\x20%0',Ot(_0x151e8b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x1f600{afterInit(){const _0x34d925=this['editor'];_0x34d925['commands']['get']('replaceSource')&&_0x34d925['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x1f600{afterInit(){const _0x522c60=this['editor'];_0x522c60['plugins']['has']('RemoveFormatEditing')&&(_0x522c60['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xf94ebc=this['editor'];_0xf94ebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16c782=>{if('formatBlock'!=_0x16c782['type']&&'formatInline'!=_0x16c782['type'])return;const {data:_0x177c45}=_0x16c782;return _0x177c45&&'removeFormat'==_0x177c45['commandName']?{'type':'format','content':Ot(_0xf94ebc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x1f600{afterInit(){const _0x1f5e97=this['editor'];if(!_0x1f5e97['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x30db66=_0x1f5e97['plugins']['get']('TrackChangesEditing');_0x30db66['enableCommand']('goToPreviousRestrictedEditingException'),_0x30db66['enableCommand']('goToNextRestrictedEditingException');const _0x1c47f2=_0x1f5e97['plugins']['get']('RestrictedEditingModeEditing');_0x1c47f2['enableCommand']('trackChanges'),_0x1c47f2['enableCommand']('acceptSuggestion'),_0x1c47f2['enableCommand']('discardSuggestion'),_0x1c47f2['enableCommand']('acceptAllSuggestions'),_0x1c47f2['enableCommand']('discardAllSuggestions'),_0x1c47f2['enableCommand']('acceptSelectedSuggestions'),_0x1c47f2['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x1f600{afterInit(){const _0x443f77=this['editor'];if(!_0x443f77['plugins']['has']('ShiftEnter'))return;const _0x38e08e=_0x443f77['plugins']['get']('TrackChangesEditing');_0x38e08e['enableCommand']('shiftEnter'),_0x38e08e['descriptionFactory']['registerElementLabel']('softBreak',_0x5d95d4=>Ot(_0x443f77['locale'],'ELEMENT_LINE_BREAK',_0x5d95d4));}};function ve(_0x278faf,_0x303f0d,_0x1dae76){const _0x1a7e20=[];for(const _0x404edf of _0x303f0d['getItems']())_0x404edf['hasAttribute'](_0x278faf)&&_0x1a7e20['push'](_0x1dae76['createRangeOn'](_0x404edf));return _0x1a7e20;}var De=class extends _0x1f600{afterInit(){const _0x1dc6a5=this['editor'],_0x1bea4f=_0x1dc6a5['plugins']['get']('TrackChangesEditing');_0x1dc6a5['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1bea4f['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0xf20400=this['editor'],_0xee9b21=_0xf20400['model'],_0x222810=_0xf20400['locale'],_0x36c4c0=_0xf20400['plugins']['get']('TrackChangesEditing'),_0x9042f7='restrictedEditingException',_0x575368=_0xf20400['commands']['get'](_0x9042f7);_0x36c4c0['enableCommand'](_0x9042f7,(_0xdf550a,_0x47074b={})=>{const _0x32665e=_0xee9b21['document']['selection'];if(_0x32665e['isCollapsed'])return void _0xdf550a(_0x47074b);const _0xd9b216=void 0x0!==_0x47074b['forceValue']?_0x47074b['forceValue']:!_0x575368['value'];_0xee9b21['change'](()=>{const _0x24ce5c=Array['from'](_0x32665e['getRanges']());for(const _0x300d5b of _0x24ce5c){const _0x43a8ea=_0xd9b216?[_0x300d5b]:ve(_0x9042f7,_0x300d5b,_0xee9b21);for(const _0x2379d7 of _0x43a8ea)_0x36c4c0['markInlineFormat'](_0x2379d7,{'commandName':_0x9042f7,'commandParams':[{'forceValue':_0xd9b216}]});}});}),_0x36c4c0['descriptionFactory']['registerDescriptionCallback'](_0x4ab7d5=>{if('formatBlock'!=_0x4ab7d5['type']&&'formatInline'!=_0x4ab7d5['type'])return;const {data:_0x2b2d95}=_0x4ab7d5;return _0x2b2d95&&_0x2b2d95['commandName']==_0x9042f7?_0x2b2d95['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x222810,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x222810,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x2654b4=this['editor'],_0x49c9bb=_0x2654b4['locale'],_0x3c1f91=_0x2654b4['plugins']['get']('TrackChangesEditing'),_0x318059='restrictedEditingExceptionBlock',_0x4da19b=this['editor']['commands']['get'](_0x318059);_0x3c1f91['enableCommand'](_0x318059,(_0x24e4c8,_0x431d46={})=>{const _0x107458=this['editor']['model']['document']['selection'],_0x33e591=_0x431d46&&void 0x0!==_0x431d46['forceValue']?_0x431d46['forceValue']:!_0x4da19b['value'];let _0x15f543=[];_0x15f543=Ct(_0x33e591?Array['from'](_0x107458['getSelectedBlocks']())['filter'](_0x13772e=>function(_0x2d786a){return!!_0x2d786a['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x13772e)||function(_0x144611,_0x321518){const _0x25d7ae=_0x321518['createContext'](_0x144611['parent']);return!!_0x321518['checkChild'](_0x25d7ae,'restrictedEditingException')&&!!_0x321518['checkChild'](_0x25d7ae['push']('restrictedEditingException'),_0x144611);}(_0x13772e,this['editor']['model']['schema'])):Array['from'](_0x107458['getSelectedBlocks']())['map'](_0x269f67=>function(_0x135968){let _0x349a38=_0x135968;for(;_0x349a38['parent'];){if('restrictedEditingException'==_0x349a38['parent']['name'])return _0x349a38;_0x349a38=_0x349a38['parent'];}return null;}(_0x269f67))['filter'](_0x548bb0=>!!_0x548bb0),_0x2654b4['model']),_0x2654b4['model']['change'](()=>{for(const _0x220beb of _0x15f543)_0x3c1f91['markBlockFormat'](_0x220beb,{'commandName':_0x318059,'commandParams':[{'forceValue':_0x33e591}]});});}),_0x3c1f91['descriptionFactory']['registerDescriptionCallback'](_0x4b4a55=>{const {data:_0x301874}=_0x4b4a55;if(_0x301874&&_0x301874['commandName']==_0x318059)return _0x301874['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x49c9bb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x49c9bb,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x1f600{afterInit(){const _0x2bc12f=this['editor'];_0x2bc12f['plugins']['has']('Style')&&_0x2bc12f['plugins']['has']('DataSchema')&&(_0x2bc12f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3e0b8d=this['editor'],_0x1bac39=_0x3e0b8d['locale'];_0x3e0b8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x285284=>{if('formatBlock'!=_0x285284['type']&&'formatInline'!=_0x285284['type'])return;const {data:_0x958468}=_0x285284;return _0x958468&&'style'===_0x958468['commandName']?_0x958468['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1bac39,'*Set\x20format:*\x20%0',_0x958468['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x1bac39,'*Remove\x20format:*\x20%0',_0x958468['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x1f600{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x36cb0e){super(_0x36cb0e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x130f1a=this['editor'],_0x30dbc0=_0x130f1a['model']['document']['selection'];if(!_0x130f1a['plugins']['has']('TableEditing'))return;const _0x3cab6d=_0x130f1a['locale'],_0x151352=_0x130f1a['plugins']['get']('TrackChangesEditing'),_0x141e90=_0x130f1a['plugins']['get']('TableUtils');_0x151352['descriptionFactory']['registerElementLabel']('table',_0x270c93=>Ot(_0x3cab6d,'ELEMENT_TABLE',_0x270c93)),this['_setupColumnsRowsFixing'](),_0x151352['enableCommand']('insertTable'),_0x151352['enableCommand']('selectTableRow'),_0x151352['enableCommand']('selectTableColumn');for(const _0x455723 of['insertTableRowAbove','insertTableRowBelow']){const _0x5dd69f=_0x130f1a['commands']['get'](_0x455723);_0x151352['enableCommand'](_0x455723,_0x19511a=>{_0x130f1a['model']['change'](_0x187e76=>{_0x19511a();const _0x589b47='above'===_0x5dd69f['order'],_0x86f0b7=_0x141e90['getSelectionAffectedTableCells'](_0x30dbc0),_0x30613b=_0x141e90['getRowIndexes'](_0x86f0b7),_0x141ec0=_0x589b47?_0x30613b['first']-0x1:_0x30613b['last']+0x1,_0xcb622d=_0x86f0b7[0x0]['findAncestor']('table'),_0x5cfbae=_0x141e90['createTableWalker'](_0xcb622d,{'startRow':_0x141ec0,'endRow':_0x141ec0}),_0x30d33c=Array['from'](_0x5cfbae)['map'](_0x556637=>_0x187e76['createRangeOn'](_0x556637['cell']));_0x151352['markMultiRangeInsertion'](_0x30d33c,'tableRow');});});}for(const _0x7f42e7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x198d92=_0x130f1a['commands']['get'](_0x7f42e7);_0x151352['enableCommand'](_0x7f42e7,_0x4ba6ee=>{_0x130f1a['model']['change'](_0x52bad6=>{_0x4ba6ee();const _0x133e06='left'===_0x198d92['order'],_0x33179b=_0x141e90['getSelectionAffectedTableCells'](_0x30dbc0),_0x20d9b9=_0x141e90['getColumnIndexes'](_0x33179b),_0x1ec2cb=_0x133e06?_0x20d9b9['first']-0x1:_0x20d9b9['last']+0x1,_0x59fde6=_0x33179b[0x0]['findAncestor']('table'),_0x497777=_0x141e90['createTableWalker'](_0x59fde6,{'startRow':0x0,'column':_0x1ec2cb,'includeAllSlots':!0x1}),_0x4f4122=Array['from'](_0x497777)['map'](_0x1df0b5=>_0x52bad6['createRangeOn'](_0x1df0b5['cell']));_0x151352['markMultiRangeInsertion'](_0x4f4122,'tableColumn');});});}for(const _0x21adee of['removeTableRow','removeTableColumn']){const _0x4c7e6b=_0x21adee['substr'](0xb),_0x423a2f=_0x4c7e6b['toLowerCase'](),_0x560161=_0x423a2f['substr'](0x0,0x3)+'span',_0x1b571d='table'+_0x4c7e6b,_0x1960a7='min'+_0x4c7e6b,_0x25fd36='max'+_0x4c7e6b;_0x151352['enableCommand'](_0x21adee,()=>{_0x130f1a['model']['change'](_0x2b68e6=>{const _0x343da6=_0x141e90['getSelectionAffectedTableCells'](_0x30dbc0),_0x2cb3b6=_0x343da6[0x0]['findAncestor']('table');let _0x130a54;if('removeTableRow'==_0x21adee){const _0xe6c160=_0x141e90['getRowIndexes'](_0x343da6);_0x130a54={'startRow':_0xe6c160['first'],'endRow':_0xe6c160['last'],'includeAllSlots':!0x0};}else{const _0x59700f=_0x141e90['getColumnIndexes'](_0x343da6);_0x130a54={'startColumn':_0x59700f['first'],'endColumn':_0x59700f['last'],'includeAllSlots':!0x0};}const _0x484b59=_0x141e90['createTableWalker'](_0x2cb3b6,_0x130a54),_0xad6d50=Array['from'](_0x484b59)['map'](({cell:_0x52d172})=>_0x52d172),_0x2759c6=xe(_0xad6d50['filter'](_0x3c1877=>_0x3c1877['hasAttribute'](_0x560161))),_0x566a5f=xe(_0xad6d50['filter'](_0x9d1e84=>!_0x9d1e84['hasAttribute'](_0x560161)))['map'](_0x28b8c3=>_0x2b68e6['createRangeOn'](_0x28b8c3)),_0x58c2d9=_0x151352['markMultiRangeDeletion'](_0x566a5f,_0x1b571d);if(_0x58c2d9&&('tableRow'==_0x58c2d9['subType']||'tableColumn'==_0x58c2d9['subType'])){const _0x3f2ad5=this['_getSuggestionCoords'](_0x58c2d9);for(const _0x7f496d of _0x2759c6){const _0x4147f2=_0x2b68e6['createRangeOn'](_0x7f496d),_0x3cd576=_0x141e90['getCellLocation'](_0x7f496d),_0x5b1587=_0x7f496d['getAttribute'](_0x560161)-0x1,_0x457483=_0x3f2ad5[_0x1960a7],_0x35219d=_0x3f2ad5[_0x25fd36];_0x457483<=_0x3cd576[_0x423a2f]&&_0x3cd576[_0x423a2f]+_0x5b1587<=_0x35219d&&_0x58c2d9['addRange'](_0x4147f2);}}});});}function _0x20a3de(_0x1fa126){const _0x23faa0=Array['from'](_0x30dbc0['getRanges']())['map'](_0x48f7fa=>ot['fromRange'](_0x48f7fa));_0x130f1a['model']['change'](_0x81daf4=>{const _0x3d313e=_0x81daf4['batch'];_0x1fa126=_0x1fa126['filter'](_0xe22d90=>'$graveyard'!=_0xe22d90['root']['rootName']),_0x81daf4['setSelection'](_0x1fa126),_0x130f1a['commands']['get']('removeTableRow')['refresh'](),_0x130f1a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x130f1a['model']['enqueueChange'](()=>{_0x130f1a['model']['enqueueChange'](_0x3d313e,_0x48a00a=>{const _0x3fbd33=_0x23faa0['filter'](_0x59c4bb=>'$graveyard'!=_0x59c4bb['root']['rootName']);_0x3fbd33['length']>0x0&&_0x48a00a['setSelection'](_0x3fbd33);for(const _0xec946c of _0x23faa0)_0xec946c['detach']();});});});}function _0x4d386f(_0x222f23){_0x130f1a['model']['change'](_0x349efb=>{const _0x161f3c=Array['from'](_0x30dbc0['getRanges']())['map'](_0x51a987=>ot['fromRange'](_0x51a987)),_0x59c8c5=[];for(const _0x5796d3 of _0x222f23)for(const _0x3ea442 of _0x5796d3['getItems']({'shallow':!0x0}))_0x59c8c5['push'](_0x3ea442);for(const _0x140864 of _0x59c8c5)'$graveyard'!=_0x140864['root']['rootName']&&(_0x349efb['setSelection'](_0x349efb['createPositionAt'](_0x140864,0x0)),_0x130f1a['commands']['get']('removeTableColumn')['refresh'](),_0x130f1a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x458411=_0x161f3c['filter'](_0xd5a9d4=>'$graveyard'!=_0xd5a9d4['root']['rootName']);_0x458411['length']>0x0&&_0x349efb['setSelection'](_0x458411);for(const _0x2c22b6 of _0x161f3c)_0x2c22b6['detach']();});}function _0x24516f(_0x5badca,_0x50a36d){return _0x50a36d['every'](_0x4ca8bf=>_0x5badca['some'](_0x286886=>_0x286886['end']['isEqual'](_0x4ca8bf['start'])||_0x4ca8bf['end']['isEqual'](_0x286886['start'])));}function _0x48cd42(_0x1ae223,_0x2f0d07){return!_0x1ae223['some'](_0x1d3c5c=>_0x2f0d07['some'](_0x7d7941=>_0x1d3c5c['isIntersecting'](_0x7d7941)))&&_0x1ae223['some'](_0x19239e=>_0x2f0d07['some'](_0x1492c9=>_0x19239e['end']['isTouching'](_0x1492c9['start'])));}_0x151352['descriptionFactory']['registerDescriptionCallback'](_0x935fc=>{if('insertion'!=_0x935fc['type']&&'deletion'!=_0x935fc['type'])return;const _0x367242=_0x935fc['getContainedElement']();if(null!=_0x367242&&_0x367242['is']('element','table')){if('insertion'==_0x935fc['type']){const _0xecaa2=_0x935fc['getItems']()['filter'](_0x40c2eb=>_0x40c2eb['is']('$textProxy'))['map'](_0x1ed825=>_0x1ed825['data']);if(_0xecaa2['length'])return{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xecaa2['join']('\x20')+'\x22'))};}if('deletion'==_0x935fc['type']){const _0x5855f5=_0x935fc['getItems']()['filter'](_0x43e059=>_0x43e059['is']('$textProxy'))['map'](_0x46bf25=>_0x46bf25['data']);if(_0x5855f5['length'])return{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5855f5['join']('\x20')+'\x22'))};}}}),_0x151352['descriptionFactory']['registerDescriptionCallback'](_0x140613=>{if('tableRow'==_0x140613['subType']){const _0x1ae4b4=_0x140613['getItems']()['filter'](_0x5bec76=>_0x5bec76['is']('$textProxy'))['map'](_0x50ae8e=>_0x50ae8e['data']),_0x1a4a3c=this['_getSuggestionCoords'](_0x140613),_0x22e2ff=_0x1a4a3c['maxRow']-_0x1a4a3c['minRow']+0x1;if('insertion'==_0x140613['type'])return _0x1ae4b4['length']?{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22e2ff,'\x22'+_0x1ae4b4['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_ROW',_0x22e2ff))};if('deletion'==_0x140613['type'])return _0x1ae4b4['length']?{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22e2ff,'\x22'+_0x1ae4b4['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_ROW',_0x22e2ff))};}if('tableColumn'==_0x140613['subType']){const _0x509cac=_0x140613['getItems']()['filter'](_0x2f1ea9=>_0x2f1ea9['is']('$textProxy'))['map'](_0x2adc95=>_0x2adc95['data']),_0x39f5b8=this['_getSuggestionCoords'](_0x140613),_0x48bc43=_0x39f5b8['maxColumn']-_0x39f5b8['minColumn']+0x1;if('insertion'==_0x140613['type'])return _0x509cac['length']?{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48bc43,'\x22'+_0x509cac['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_COLUMN',_0x48bc43))};if('deletion'==_0x140613['type'])return _0x509cac['length']?{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48bc43,'\x22'+_0x509cac['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_COLUMN',_0x48bc43))};}}),_0x151352['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x20a3de),_0x151352['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x20a3de),_0x151352['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4d386f),_0x151352['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4d386f),_0x151352['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x24516f),_0x151352['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x24516f),_0x151352['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x48cd42),_0x151352['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x48cd42);}_acceptFormatSuggestionCallbackFactory(){const _0x58a373=this['editor'],_0x290652=_0x58a373['model']['document']['selection'];return(_0x37fad9,_0x2ba474)=>{_0x58a373['model']['change'](_0x29c76b=>{const {commandName:_0x581a5a,commandParams:_0x4068de}=_0x2ba474;let _0x2d5366=_0x37fad9[0x0]['end']['nodeBefore'];_0x4068de&&_0x4068de[0x0]&&!0x1===_0x4068de[0x0]['forceValue']&&(_0x2d5366=_0x37fad9[0x0]['start']['nodeAfter']);const _0x5ffb7c=_0x29c76b['createRangeIn'](_0x2d5366);if('$graveyard'==_0x5ffb7c['root']['rootName'])return;const _0x3a6ba6=Array['from'](_0x290652['getRanges']())['map'](_0x33baa6=>ot['fromRange'](_0x33baa6));_0x29c76b['setSelection'](_0x5ffb7c),_0x58a373['commands']['get'](_0x581a5a)['refresh'](),_0x4068de['push']({'forceDefaultExecution':!0x0}),_0x58a373['execute'](_0x581a5a,..._0x4068de);const _0x4f5eea=_0x3a6ba6['filter'](_0x3d10fe=>'$graveyard'!=_0x3d10fe['root']['rootName']);_0x4f5eea['length']>0x0&&_0x29c76b['setSelection'](_0x4f5eea);for(const _0x59db04 of _0x3a6ba6)_0x59db04['detach']();});};}_getCoordsForCells(_0x1e2184){const _0x2674aa=this['editor']['plugins']['get']('TableUtils');let _0x5283d3=Number['MAX_SAFE_INTEGER'],_0x5b6d18=Number['MIN_SAFE_INTEGER'],_0x367534=Number['MAX_SAFE_INTEGER'],_0xfd3772=Number['MIN_SAFE_INTEGER'];for(const _0x4c7cbf of _0x1e2184){if('$graveyard'==_0x4c7cbf['root']['rootName'])continue;const {row:_0x5ae7cb,column:_0x2eeaf6}=_0x2674aa['getCellLocation'](_0x4c7cbf),_0x5183d6=_0x4c7cbf['hasAttribute']('rowspan')?_0x4c7cbf['getAttribute']('rowspan')-0x1:0x0,_0x2d8032=_0x4c7cbf['hasAttribute']('colspan')?_0x4c7cbf['getAttribute']('colspan')-0x1:0x0;_0x5283d3=_0x5ae7cb<_0x5283d3?_0x5ae7cb:_0x5283d3,_0x5b6d18=_0x5ae7cb+_0x5183d6>_0x5b6d18?_0x5ae7cb+_0x5183d6:_0x5b6d18,_0x367534=_0x2eeaf6<_0x367534?_0x2eeaf6:_0x367534,_0xfd3772=_0x2eeaf6+_0x2d8032>_0xfd3772?_0x2eeaf6+_0x2d8032:_0xfd3772;}return{'minRow':_0x5283d3,'maxRow':_0x5b6d18,'minColumn':_0x367534,'maxColumn':_0xfd3772};}_setupColumnsRowsFixing(){const _0x9e41e8=this['editor'],_0x53e080=_0x9e41e8['plugins']['get']('TrackChangesEditing'),_0x3289bd=_0x9e41e8['plugins']['get']('TableUtils');_0x9e41e8['model']['document']['on']('change:data',()=>{const _0x5874f4=Array['from'](_0x9e41e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x312289,data:_0xb781d9}of _0x5874f4){const {group:_0x311a5c,id:_0x1c2fd6,subType:_0x495eaf}=et(_0x312289);if('suggestion'!=_0x311a5c)continue;if(null!=_0xb781d9['oldRange'])continue;const _0x2df555=_0x53e080['getSuggestion'](_0x1c2fd6);this['_tablePostFixingSubtypes']['includes'](_0x495eaf)&&this['_tableSuggestions']['add'](_0x2df555);}},{'priority':'low'});const _0x2eb936=(_0x15c174,_0x539450)=>{let _0x241ade=!0x1;const _0x4d91f3=_0x539450['createRangeOn'](_0x15c174),_0x45865b=_0x15c174['findAncestor']('table'),_0x88a5a1=_0x3289bd['getCellLocation'](_0x15c174);for(const _0x454f1 of this['_tableSuggestions']){const _0x359937=_0x454f1['subType'],_0x576759=_0x359937['startsWith']('tablePaste'),_0x13f1b0=_0x359937['substr'](_0x576759?0xa:0x5),_0x3af616=_0x13f1b0['toLowerCase'](),_0x3d00ac=_0x3af616['substr'](0x0,0x3)+'span',_0x382b4e='min'+_0x13f1b0,_0x9d2c1='max'+_0x13f1b0;if(!_0x454f1['isInContent'])continue;if(_0x45865b!=_0x454f1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x454f1['isIntersectingWithRange'](_0x4d91f3))continue;const _0x3a8d26=_0x15c174['hasAttribute'](_0x3d00ac)?_0x15c174['getAttribute'](_0x3d00ac)-0x1:0x0,_0x3b967a=this['_getSuggestionCoords'](_0x454f1),_0x567b3a=_0x3b967a[_0x382b4e],_0xc6dc70=_0x3b967a[_0x9d2c1];_0x567b3a<=_0x88a5a1[_0x3af616]&&_0x88a5a1[_0x3af616]+_0x3a8d26<=_0xc6dc70&&(_0x454f1['addRange'](_0x4d91f3),_0x241ade=!0x0);}return _0x241ade;};_0x9e41e8['model']['document']['registerPostFixer'](_0x52f4a9=>{let _0x21b76a=!0x1;for(const _0x12abdf of _0x9e41e8['model']['document']['differ']['getChanges']())if('insert'==_0x12abdf['type']){if('tableRow'==_0x12abdf['name']){for(const _0x10708d of _0x12abdf['position']['nodeAfter']['getChildren']())_0x21b76a=_0x21b76a||_0x2eb936(_0x10708d,_0x52f4a9);}else'tableCell'==_0x12abdf['name']&&(_0x21b76a=_0x21b76a||_0x2eb936(_0x12abdf['position']['nodeAfter'],_0x52f4a9));}return _0x21b76a;});}_getSuggestionCoords(_0xb2f5d9){return this['_getCoordsForCells'](_0xb2f5d9['getRanges']()['map'](_0x3bdea7=>_0x3bdea7['start']['nodeAfter']));}};function xe(_0x550aa8){return Array['from'](new Set(_0x550aa8)['values']());}var Ge=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x4be58c=this['editor'],_0x5667ff=_0x4be58c['model']['document']['selection'],_0x1695b2=_0x4be58c['locale'];if(!_0x4be58c['plugins']['has']('TableEditing'))return;const _0x3515ca=_0x4be58c['plugins']['get']('TrackChangesEditing'),_0x479179=_0x4be58c['plugins']['get']('TableUtils'),_0x1e6f54=_0x4be58c['plugins']['get'](Pe);_0x1e6f54['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3515ca['enableCommand']('mergeTableCells',()=>{const _0x20e896=_0x479179['getSelectionAffectedTableCells'](_0x4be58c['model']['document']['selection']);_0x4be58c['model']['change'](()=>{_0x3515ca['markMultiRangeBlockFormat'](_0x20e896,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4be58c['commands']['get']('mergeTableCells')['on']('execute',(_0x4aaaf5,_0x9987f0)=>{_0x4be58c['commands']['get']('trackChanges')['value']&&(_0x9987f0['length']>0x0&&_0x9987f0[_0x9987f0['length']-0x1]&&_0x9987f0[_0x9987f0['length']-0x1]['forceDefaultExecution']||_0x3515ca['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4aaaf5['stop']());},{'priority':'highest'});for(const _0x59fe87 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3ec3e9=_0x4be58c['commands']['get'](_0x59fe87);_0x3515ca['enableCommand'](_0x59fe87,()=>{const _0x395da4=_0x4be58c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53d614=>_0x53d614['is']('element','tableCell')),_0xda2d78=_0x3ec3e9['value'];_0x4be58c['model']['change'](()=>{_0x3515ca['markMultiRangeBlockFormat']([_0x395da4,_0xda2d78],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2eec4a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x33bac9=_0x4be58c['commands']['get'](_0x2eec4a);_0x3515ca['enableCommand'](_0x2eec4a,()=>{const _0xfbdb83=_0x479179['getSelectionAffectedTableCells'](_0x4be58c['model']['document']['selection']),_0x2715c0=_0xfbdb83[0x0]['findAncestor']('table'),_0x2377b2=new Set();for(const _0x1fed47 of _0xfbdb83){const {column:_0x4e23fe,row:_0x5ce0f9}=_0x479179['getCellLocation'](_0x1fed47),_0x1a31a4='horizontally'==_0x33bac9['direction']?_0x479179['createTableWalker'](_0x2715c0,{'startRow':_0x5ce0f9,'endRow':_0x5ce0f9,'includeAllSlots':!0x0}):_0x479179['createTableWalker'](_0x2715c0,{'column':_0x4e23fe,'includeAllSlots':!0x0});for(const {cell:_0x68b693}of _0x1a31a4)_0x2377b2['add'](_0x68b693);}_0x4be58c['model']['change'](()=>{_0x3515ca['markMultiRangeBlockFormat'](_0xfbdb83,{'commandName':_0x2eec4a,'commandParams':[]},Array['from'](_0x2377b2),_0x2eec4a);});});}_0x3515ca['descriptionFactory']['registerDescriptionCallback'](_0x272336=>{if('formatBlock'!=_0x272336['type']&&'formatInline'!=_0x272336['type'])return;const {data:_0x331c5b}=_0x272336;return _0x331c5b&&'mergeTableCells'==_0x331c5b['commandName']?{'type':'format','content':Ot(_0x1695b2,'*Merge\x20cells*')}:void 0x0;}),_0x3515ca['descriptionFactory']['registerDescriptionCallback'](_0x284013=>{if('formatBlock'!=_0x284013['type']&&'formatInline'!=_0x284013['type'])return;const {data:_0x9551c7}=_0x284013;return _0x9551c7?'splitTableCellVertically'==_0x9551c7['commandName']?{'type':'format','content':Ot(_0x1695b2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x9551c7['commandName']?{'type':'format','content':Ot(_0x1695b2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x412ed1=_0x1e6f54['_acceptFormatSuggestionCallbackFactory']();for(const _0x196a12 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3515ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x196a12,'accept',_0x412ed1);for(const _0x598c62 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3515ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x598c62,'accept',_0x57df62=>{_0x4be58c['model']['change'](_0x4667b4=>{const _0x191260=Array['from'](_0x57df62)['filter'](_0x36e876=>'$graveyard'!=_0x36e876['root']['rootName']&&!!_0x36e876['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x191260['length'])return;const _0x1cf553=Array['from'](_0x5667ff['getRanges']())['map'](_0x3d571f=>ot['fromRange'](_0x3d571f));_0x4667b4['setSelection'](_0x191260),_0x4be58c['commands']['get'](_0x598c62)['refresh'](),_0x4be58c['execute'](_0x598c62,{'forceDefaultExecution':!0x0});const _0x420f44=_0x1cf553['filter'](_0x390884=>'$graveyard'!=_0x390884['root']['rootName']);_0x420f44['length']>0x0&&_0x4667b4['setSelection'](_0x420f44);for(const _0x3f9d84 of _0x1cf553)_0x3f9d84['detach']();});});_0x3515ca['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x29609c=>{_0x4be58c['model']['change'](_0xf1f3dd=>{const _0x3e88cc=Array['from'](_0x5667ff['getRanges']())['map'](_0x49a4e0=>ot['fromRange'](_0x49a4e0));_0xf1f3dd['setSelection'](_0x29609c),_0x4be58c['commands']['get']('mergeTableCells')['refresh'](),_0x4be58c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5eab88=_0x3e88cc['filter'](_0x19d657=>'$graveyard'!=_0x19d657['root']['rootName']);_0x5eab88['length']>0x0&&_0xf1f3dd['setSelection'](_0x5eab88);for(const _0x32bc35 of _0x3e88cc)_0x32bc35['detach']();});});for(const _0x1e9351 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x509f30=_0x4be58c['commands']['get'](_0x1e9351);_0x509f30['on']('set:isEnabled',(_0x3b407f,_0x3d0c81,_0x2e6694)=>{if(_0x2e6694){const _0x501ec6=_0x4be58c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x483fbc=>_0x483fbc['is']('element','tableCell'));this['_areMergableCells'](_0x509f30['value'],_0x501ec6)||(_0x3b407f['return']=!0x1,_0x3b407f['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x12bc0d=this['editor']['commands']['get']('mergeTableCells'),_0x4952b9=this['editor']['plugins']['get']('TableUtils');if(!_0x12bc0d['isEnabled'])return!0x1;const _0x55cec3=_0x4952b9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2a89d2 of _0x55cec3)for(const _0x4594b1 of _0x55cec3)if(_0x2a89d2!=_0x4594b1&&!this['_areMergableCells'](_0x2a89d2,_0x4594b1))return!0x1;return!0x0;}['_areMergableCells'](_0x55ab68,_0x3f4e8e){const _0x321f87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ba18=this['editor']['model']['createRangeOn'](_0x55ab68),_0x2b11a5=this['editor']['model']['createRangeOn'](_0x3f4e8e),_0x4f832d=new Set(),_0x554d74=new Set();for(const _0x21c4bc of _0x321f87['getSuggestions']())if(('insertion'==_0x21c4bc['type']||'deletion'==_0x21c4bc['type']||'mergeTableCells'==_0x21c4bc['subType'])&&_0x21c4bc['isInContent']){for(const _0x18c26e of _0x21c4bc['getRanges']())_0x18c26e['containsRange'](_0x31ba18,!0x0)&&_0x4f832d['add'](_0x21c4bc['type']+':'+_0x21c4bc['author']['id']),_0x18c26e['containsRange'](_0x2b11a5,!0x0)&&_0x554d74['add'](_0x21c4bc['type']+':'+_0x21c4bc['author']['id']);}if(_0x4f832d['size']!=_0x554d74['size'])return!0x1;for(const _0x121e80 of _0x4f832d)if(!_0x554d74['has'](_0x121e80))return!0x1;return!0x0;}},He=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x5e5253=this['editor'];if(!_0x5e5253['plugins']['has']('TableEditing'))return;const _0x46f1a5=_0x5e5253['locale'],_0x3f11fd=_0x5e5253['plugins']['get']('TrackChangesEditing');_0x3f11fd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3f11fd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3f11fd['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x46f1a5,'FORMAT_HEADER_ROW')),_0x3f11fd['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x46f1a5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0xe44d1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cbbbb=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0xe44d1f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cbbbb),_0xe44d1f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cbbbb),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x58127e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34a8a1=this['editor']['plugins']['get']('TableUtils');function _0x59c048({showActiveMarker:_0x425050=!0x0,setDataAttribute:_0x48428b=!0x0}={}){return(_0x3712ce,_0x2ebf48,_0x4ff15a)=>{const {type:_0x30b4d4,id:_0x57f599}=et(_0x2ebf48['markerName']);if(!_0x58127e['hasSuggestion'](_0x57f599))return;const _0x530cec=_0x58127e['getSuggestion'](_0x57f599),_0x5b69ec=_0x530cec['data'];if('formatBlock'!=_0x530cec['type']||!_0x5b69ec||'setTableColumnHeader'!=_0x5b69ec['commandName'])return;if(_0x2ebf48['item'])return void _0x3712ce['stop']();if(!_0x4ff15a['consumable']['consume'](_0x2ebf48['markerRange'],_0x3712ce['name']))return;const _0x1c154b=_0x2ebf48['markerRange']['start']['nodeAfter'],_0xf776b2=_0x2ebf48['markerRange']['end']['nodeBefore'],_0x491257=_0x1c154b['parent']['parent'],{column:_0x30bda3}=_0x34a8a1['getCellLocation'](_0x1c154b),{column:_0x131df1}=_0x34a8a1['getCellLocation'](_0xf776b2);for(let _0x4ae7d8=_0x30bda3;_0x4ae7d8<=_0x131df1;_0x4ae7d8++){const _0x4d6c47=_0x34a8a1['createTableWalker'](_0x491257,{'column':_0x4ae7d8,'includeAllSlots':!0x1});for(const _0x3cb7f1 of _0x4d6c47){const _0x2c0c82=_0x3cb7f1['cell'],_0x304beb=_0x4ff15a['mapper']['toViewElement'](_0x2c0c82);_0x4ff15a['writer']['addClass']('ck-suggestion-marker-'+_0x30b4d4,_0x304beb),_0x48428b&&_0x4ff15a['writer']['setAttribute']('data-suggestion',_0x57f599,_0x304beb),_0x4ff15a['mapper']['bindElementToMarker'](_0x304beb,_0x2ebf48['markerName']),_0x425050&&(_0x58127e['activeMarkers']['includes'](_0x2ebf48['markerName'])?_0x4ff15a['writer']['addClass']('ck-suggestion-marker--active',_0x304beb):_0x4ff15a['writer']['removeClass']('ck-suggestion-marker--active',_0x304beb));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x59c048(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5db58f,_0x47ba80,_0x4c9447)=>{_0x4c9447['options']['showSuggestionHighlights']&&_0x59c048({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5db58f,_0x47ba80,_0x4c9447);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13273f,_0x1c2a42,_0x5f138d)=>{const {type:_0x1229e0,id:_0x28c0af}=et(_0x1c2a42['markerName']);if(!_0x58127e['hasSuggestion'](_0x28c0af))return;const _0x427f91=_0x58127e['getSuggestion'](_0x28c0af),_0x2510f8=_0x427f91['data'];if('formatBlock'!=_0x427f91['type']||!_0x2510f8||'setTableColumnHeader'!=_0x2510f8['commandName'])return;const _0x3aa244=_0x5f138d['mapper']['markerNameToElements'](_0x1c2a42['markerName']);if(_0x3aa244){for(const _0x29683b of _0x3aa244)_0x5f138d['writer']['removeClass']('ck-suggestion-marker-'+_0x1229e0,_0x29683b),_0x5f138d['writer']['removeClass']('ck-suggestion-marker--active',_0x29683b),_0x5f138d['writer']['removeAttribute']('data-suggestion',_0x29683b),_0x5f138d['mapper']['unbindElementFromMarkerName'](_0x29683b,_0x1c2a42['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0xfcf846=this['editor'],_0x34b548=_0xfcf846['locale'];function _0x167b73(_0x3a9abb){return{'type':'format','content':Ot(_0x34b548,'*Format:*\x20%0',_0x3a9abb)};}_0xfcf846['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a3f18=>{if('formatBlock'!=_0x3a3f18['type'])return;const {data:_0x289d5a}=_0x3a3f18;return _0x289d5a?'setTableRowHeader'==_0x289d5a['commandName']?_0x289d5a['commandParams'][0x0]['forceValue']?_0x167b73(Ot(_0x34b548,'FORMAT_HEADER_ROW')):_0x167b73(Ot(_0x34b548,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x289d5a['commandName']?_0x289d5a['commandParams'][0x0]['forceValue']?_0x167b73(Ot(_0x34b548,'FORMAT_HEADER_COLUMN')):_0x167b73(Ot(_0x34b548,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x2744ee=this['editor'];if(!_0x2744ee['plugins']['has']('TableEditing')||!_0x2744ee['config']['get']('table.enableFooters'))return;const _0x4eb04d=_0x2744ee['locale'],_0x1eda7f=_0x2744ee['plugins']['get']('TrackChangesEditing');_0x1eda7f['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1eda7f['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x4eb04d,'FORMAT_FOOTER_ROW'));}},We=class extends _0x1f600{afterInit(){const _0x3f3f3f=this['editor'],_0x38c854=_0x3f3f3f['locale'],_0x2a7339=_0x3f3f3f['plugins']['get']('TrackChangesEditing');function _0xda0af(_0x5dac0d){return{'type':'format','content':''+Ot(_0x38c854,'*Set\x20table\x20type:*\x20%0',_0x5dac0d)};}_0x3f3f3f['plugins']['has']('TableLayout')&&(_0x2a7339['enableCommand']('insertTableLayout'),_0x2a7339['enableDefaultAttributesIntegration']('tableType'),_0x2a7339['descriptionFactory']['registerElementLabel'](_0x337662=>_0x337662['is']('element','table')&&'layout'===_0x337662['getAttribute']('tableType'),_0x13d163=>Ot(_0x38c854,'ELEMENT_LAYOUT_TABLE',_0x13d163)),_0x2a7339['descriptionFactory']['registerDescriptionCallback'](_0x45b2ad=>{const {data:_0x2730e4}=_0x45b2ad;if(_0x2730e4&&'tableType'==_0x2730e4['key'])switch(_0x2730e4['newValue']){case'layout':return _0xda0af(Ot(_0x38c854,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xda0af(Ot(_0x38c854,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ve['map'](_0x88a5a8=>[_0x88a5a8,null]));var ze=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x5d651d=this['editor'];if(!_0x5d651d['plugins']['has']('TableClipboard'))return;const _0xce301d=_0x5d651d['plugins']['get']('TrackChangesEditing'),_0x19a78a=_0x5d651d['plugins']['get']('TableUtils'),_0x59e440=_0x5d651d['plugins']['get'](Pe),_0x7f188d=_0x5d651d['plugins']['get']('TableClipboard'),_0x291194=_0x5d651d['plugins']['get']('TableSelection'),_0x31ae31=_0x5d651d['plugins']['get'](ft);_0x59e440['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5d651d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5d651d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x28b623=null,_0x1655b3=!0x1;_0x31ae31['on']('contentInsertion',(_0x3bf860,_0x4e376b)=>{_0x1655b3='paste'===_0x4e376b['method'];}),_0x5d651d['model']['on']('insertContent',(_0x250288,_0x558e67)=>{if(!_0x1655b3&&null===_0x291194['getSelectedTableCells']())return;const [_0x5937b1,_0x331e24]=_0x558e67,_0x5f3789=_0x558e67[_0x558e67['length']-0x1];_0x5f3789&&_0x5f3789['forceDefaultExecution']||_0xce301d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc08b1a,_0x1cafc7,_0x162846,_0x353301,_0x1f01aa){if(_0x1cafc7&&!_0x1cafc7['is']('documentSelection'))return!0x1;const _0x39fea0=_0x1f01aa['getTableIfOnlyTableInContent'](_0xc08b1a,_0x162846);if(!_0x39fea0||!Xe(_0x39fea0,void 0x0,_0x353301))return!0x1;const _0x2ab61e=_0x353301['getSelectionAffectedTableCells'](_0x162846['document']['selection']);if(!_0x2ab61e['length'])return!0x1;const _0x4e17a5=_0x2ab61e[0x0]['findAncestor']('table'),_0x41a89c=_0x353301['getRowIndexes'](_0x2ab61e),_0x348f9b=_0x353301['getColumnIndexes'](_0x2ab61e),_0x3558a0={'startRow':_0x41a89c['first'],'endRow':_0x41a89c['last'],'startColumn':_0x348f9b['first'],'endColumn':_0x348f9b['last']};return 0x1==_0x2ab61e['length']&&(_0x3558a0['endRow']+=_0x353301['getRows'](_0x39fea0)-0x1,_0x3558a0['endColumn']+=_0x353301['getColumns'](_0x39fea0)-0x1),Xe(_0x4e17a5,_0x3558a0,_0x353301);}(_0x5937b1,_0x331e24,_0x5d651d['model'],_0x19a78a,_0x7f188d)&&(_0x250288['stop'](),_0x28b623={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5d651d['model']['change'](()=>{_0x5d651d['model']['insertContent'](_0x558e67[0x0],_0x558e67[0x1],_0x558e67[0x2],{'forceDefaultExecution':!0x0});const _0x5e4fb3=_0x51282a(),{rowInsertionRanges:_0x309433,columnInsertionRanges:_0x1b6b37,insertionRanges:_0x1172e6,deletionRanges:_0x45afe7,cells:_0x263b65}=_0x28b623;_0x309433['length']&&_0xce301d['markMultiRangeInsertion'](_0x309433,'tablePasteRow',{'tablePasteChainId':_0x5e4fb3}),_0x1b6b37['length']&&_0xce301d['markMultiRangeInsertion'](_0x1b6b37,'tablePasteColumn',{'tablePasteChainId':_0x5e4fb3}),_0x1172e6['length']&&(_0xce301d['markMultiRangeInsertion'](_0x1172e6,'tablePaste',{'tablePasteChainId':_0x5e4fb3,'skipNestingCheck':!0x0}),_0x1172e6['forEach'](_0x406b76=>_0x406b76['detach']?.())),_0x45afe7['length']&&(_0xce301d['markMultiRangeDeletion'](_0x45afe7,'tablePaste',{'tablePasteChainId':_0x5e4fb3,'skipNestingCheck':!0x0}),_0x45afe7['forEach'](_0x3596bf=>_0x3596bf['detach']?.()));const _0x308537=_0xce301d['markMultiRangeBlockFormat'](_0x263b65['map'](({element:_0x30fbbe})=>_0x30fbbe),{'formatGroupId':_0x51282a()},[],'tablePasteCell',{'tablePasteChainId':_0x5e4fb3});if(_0x308537){const _0x51cd1b=_0x308537['getMarkers'](),_0x568b04=[];for(const {element:_0x168c3b,attributes:_0x1270ab}of _0x263b65){if(!_0x1270ab)continue;const _0x4384d2=_0x5d651d['model']['createRangeOn'](_0x168c3b),_0xbe2660=_0x51cd1b['find'](_0x16d205=>_0x16d205['getRange']()['isEqual'](_0x4384d2));_0xbe2660&&_0x568b04['push']([_0xbe2660['name'],_0x1270ab]);}_0x568b04['length']&&_0x308537['setAttribute']('markerAttributes',Object['fromEntries'](_0x568b04));}_0x28b623=null;}));},{'priority':_0x15636f['high']+0xa}),_0x31ae31['on']('contentInsertion',()=>{_0x1655b3=!0x1;},{'priority':'lowest'}),_0x5d651d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x207334,_0x4ba277)=>{const [_0x4eadfd,_0x2e2699,,_0x3bf671]=_0x4ba277;if(!_0x28b623)return;_0x207334['stop']();const _0x46416c=_0x4eadfd['cell'],_0x33ce83=_0x2e2699,_0x65bcd8=Ke(_0x46416c),_0x43e9f2=Ke(_0x33ce83);_0x207334['return']=_0x46416c;let _0x39cba2=null,_0x17a049=null;if(_0x43e9f2||_0x65bcd8){if(_0x65bcd8&&!_0x43e9f2){_0x3bf671['remove'](_0x46416c['getChild'](0x0));for(const _0x3bb59d of Array['from'](_0x33ce83['getChildren']()))_0x3bf671['insert'](_0x3bb59d,_0x46416c,'end');const _0x373edc=_0x28b623['rowInsertionIndexes']['includes'](_0x4eadfd['row']),_0x17466b=_0x28b623['columnInsertionIndexes']['includes'](_0x4eadfd['column']);_0x373edc||_0x17466b||(_0x39cba2=ot['fromRange'](_0x3bf671['createRangeIn'](_0x46416c)));}else _0x43e9f2&&!_0x65bcd8&&(_0x17a049=_0x3bf671['createRangeIn'](_0x46416c));}else{const _0x24a14e=_0x3bf671['createElement']('tableCellSuggestion'),_0x34e79f=_0x3bf671['createElement']('tableCellSuggestion');_0x3bf671['wrap'](_0x3bf671['createRangeIn'](_0x46416c),_0x34e79f),_0x3bf671['insert'](_0x24a14e,_0x46416c,0x0);for(const _0x543510 of Array['from'](_0x33ce83['getChildren']()))_0x3bf671['insert'](_0x543510,_0x24a14e,'end');_0x39cba2=ot['fromRange'](_0x3bf671['createRangeOn'](_0x24a14e)),_0x17a049=ot['fromRange'](_0x3bf671['createRangeOn'](_0x34e79f));}const _0x3f70ea=Array['from'](_0x33ce83['getAttributes']())['filter'](([_0x4e6f9e])=>Ve['includes'](_0x4e6f9e));_0x28b623['cells']['push']({'element':_0x46416c,'attributes':_0x3f70ea['length']?Object['fromEntries'](_0x3f70ea):null}),_0x39cba2&&_0x28b623['insertionRanges']['push'](_0x39cba2),_0x17a049&&_0x28b623['deletionRanges']['push'](_0x17a049);},{'priority':'high'}),_0x19a78a['on']('insertColumns',(_0x2316ba,_0x543b35)=>{const [_0x45c4c5,_0x4357ba={}]=_0x543b35;if(!_0x28b623)return;const _0x4bcc78=_0x4357ba['at']||0x0,_0x1a759c=_0x4357ba['columns']||0x1;_0x28b623['columnInsertionIndexes']=new Array(_0x1a759c)['fill'](_0x4bcc78)['map']((_0x4eca51,_0xb441f5)=>_0x4eca51+_0xb441f5);for(const {cell:_0x122bdc}of _0x19a78a['createTableWalker'](_0x45c4c5,{'startColumn':_0x4bcc78,'endColumn':_0x4bcc78+_0x1a759c-0x1}))_0x28b623['columnInsertionRanges']['push'](_0x5d651d['model']['createRangeOn'](_0x122bdc));},{'priority':'low'}),_0x19a78a['on']('insertRows',(_0x432872,_0x1d791b)=>{const [_0x27000f,_0x3b4bbd={}]=_0x1d791b;if(!_0x28b623)return;const _0x4dfb6b=_0x3b4bbd['at']||0x0,_0x4fe70f=_0x3b4bbd['rows']||0x1;_0x28b623['rowInsertionIndexes']=new Array(_0x4fe70f)['fill'](_0x4dfb6b)['map']((_0xbff9cc,_0x57e535)=>_0xbff9cc+_0x57e535);for(const {cell:_0xf9eb43}of _0x19a78a['createTableWalker'](_0x27000f,{'startRow':_0x4dfb6b,'endRow':_0x4dfb6b+_0x4fe70f-0x1}))_0x28b623['rowInsertionRanges']['push'](_0x5d651d['model']['createRangeOn'](_0xf9eb43));},{'priority':'low'}),_0xce301d['descriptionFactory']['registerDescriptionCallback'](_0x3058a6=>{if(_0x3058a6['subType']&&_0x3058a6['subType']['startsWith']('tablePaste'))return _0x3058a6['previous']?{}:{'type':'insertion','content':Ot(_0x5d651d['locale'],'*Replace\x20table\x20cells*')};});const _0x332d37=()=>!0x1;for(const _0x23a4cc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xce301d['_suggestionFactory']['registerCustomCallback']('insertion',_0x23a4cc,'join',_0x332d37),_0xce301d['_suggestionFactory']['registerCustomCallback']('deletion',_0x23a4cc,'join',_0x332d37),_0xce301d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23a4cc,'join',_0x332d37);_0xce301d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x332d37),_0xce301d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xefe9a0,_0x4fb9a5,_0x29f777)=>{const _0x235cbe=_0xefe9a0['map'](_0x4ef818=>_0x4ef818['getContainedElement']())['filter'](_0x36c0da=>_0x36c0da),_0x16cfc9=new Map(_0x235cbe['map'](_0x51deb9=>[_0x51deb9,null]));if(_0x28b623){for(const {element:_0x4065b5,attributes:_0x3bc6ac}of _0x28b623['cells'])_0x3bc6ac&&_0x16cfc9['set'](_0x4065b5,_0x3bc6ac);}else{if(_0x29f777&&_0x29f777['markerAttributes'])for(const [_0xc36e14,_0x253aa3]of Object['entries'](_0x29f777['markerAttributes'])){const _0x1e48a2=_0x5d651d['model']['markers']['get'](_0xc36e14),_0x3d21d5=_0x1e48a2?_0x1e48a2['getRange']()['getContainedElement']():null;_0x3d21d5&&_0x16cfc9['set'](_0x3d21d5,_0x253aa3);}}_0x5d651d['model']['change'](_0x3c721b=>{for(const [_0xab4a1f,_0x4256f7]of _0x16cfc9)_0x3c721b['setAttributes']({...je,..._0x4256f7},_0xab4a1f);});});const _0xcbdf25=(_0x13c279,_0x5c86d7)=>{_0xce301d['_suggestionFactory']['registerCustomCallback'](_0x13c279,'tablePaste',_0x5c86d7,(_0x4758dd,_0x7ecec7,_0x5d7664)=>{_0x5d651d['model']['change'](_0x27aa2d=>{const _0x48db91=[];for(const _0x5eca4b of _0x4758dd){const _0x443297=_0x5eca4b['start']['nodeAfter'];_0x443297['is']('element','tableCellSuggestion')&&_0x48db91['push'](_0x443297);}_0xce301d['_suggestionFactory']['getSuggestionCallback'](_0x13c279,null,_0x5c86d7)(_0x4758dd,_0x7ecec7,_0x5d7664);for(const _0x2088c5 of _0x48db91)'$graveyard'!=_0x2088c5['root']['rootName']&&_0x27aa2d['unwrap'](_0x2088c5);});});};_0xcbdf25('insertion','accept'),_0xcbdf25('insertion','discard'),_0xcbdf25('deletion','accept'),_0xcbdf25('deletion','discard'),_0xce301d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x28f744=>{const _0x33a3c7=_0x28f744['map'](_0x40944d=>_0x40944d['getContainedElement']()),_0x2bf291=_0x33a3c7[0x0]['findAncestor']('table'),{minRow:_0x511d58,maxRow:_0x49b68d}=_0x59e440['_getCoordsForCells'](_0x33a3c7);_0x19a78a['removeRows'](_0x2bf291,{'at':_0x511d58,'rows':_0x49b68d-_0x511d58+0x1});}),_0xce301d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x479d73=>{const _0x3da758=_0x479d73['map'](_0x268048=>_0x268048['getContainedElement']()),_0x16d643=_0x3da758[0x0]['findAncestor']('table'),{minColumn:_0x3a204f,maxColumn:_0x44ca38}=_0x59e440['_getCoordsForCells'](_0x3da758);_0x19a78a['removeColumns'](_0x16d643,{'at':_0x3a204f,'columns':_0x44ca38-_0x3a204f+0x1});});const _0x159c5f=(_0x5482c3,_0x271ad7)=>{if(!_0x271ad7['subType']||!_0x271ad7['subType']['startsWith']('tablePaste'))return;const _0x24f217=_0x271ad7['attributes']['tablePasteChainId'],_0x46d8f9=_0xce301d['getSuggestions']()['filter'](_0x372145=>_0x372145['isInContent']&&_0x372145['attributes']&&_0x372145['attributes']['tablePasteChainId']==_0x24f217);_0x46d8f9['length']&&_0x271ad7['getAllAdjacentSuggestions']()['length']!=_0x46d8f9['length']&&_0x46d8f9['reduce']((_0x3b80e6,_0xaf3f52)=>(_0x3b80e6['next']=_0xaf3f52,_0xaf3f52['previous']=_0x3b80e6,_0xaf3f52));};function _0x3d93a1(_0x4d36f0,_0x551502=!0x0){const {id:_0x45daca,authorId:_0x438c6c}=et(_0x4d36f0['markerName']),_0x5b950b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x33c6dc=_0xce301d['activeMarkers']['includes'](_0x4d36f0['markerName']);return _0x33c6dc&&_0x5b950b['push']('ck-suggestion-marker--active'),{'classes':_0x5b950b,'attributes':{'data-suggestion':_0x45daca,'data-author-id':_0x438c6c},'priority':_0x33c6dc&&_0x551502?0xbc2:0xbb8};}_0xce301d['on']('suggestionLoaded',_0x159c5f,{'priority':'high'}),_0xce301d['on']('suggestionUnloaded',_0x159c5f,{'priority':'high'}),_0x5d651d['model']['document']['registerPostFixer'](()=>{let _0xcab718=!0x1;const _0x142a21=Array['from'](_0x5d651d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a56c6,data:_0x95910d}of _0x142a21){const {group:_0x27768d,type:_0x31d037,id:_0x3d927d}=et(_0x4a56c6);if('suggestion'!=_0x27768d||'deletion'!=_0x31d037||_0x95910d['oldRange'])continue;if(!_0xce301d['hasSuggestion'](_0x3d927d))continue;const _0x2ca2c6=_0xce301d['getSuggestion'](_0x3d927d)['getRanges'](),_0x51dad8=_0x5d651d['plugins']['get']('Users')['me'];for(const _0x5b4e86 of _0xce301d['getSuggestions']())if(_0x5b4e86['isInContent']&&_0x5b4e86['author']==_0x51dad8&&'formatBlock'==_0x5b4e86['type']&&'tablePasteCell'==_0x5b4e86['subType']&&_0x5b4e86['getRanges']()['every'](_0x5a70af=>_0x2ca2c6['some'](_0x2fe7d5=>_0x2fe7d5['containsRange'](_0x5a70af,!0x0)))){for(const _0x492ef9 of _0x5b4e86['getAllAdjacentSuggestions']())_0x492ef9['isInContent']&&(_0x492ef9['discard'](),_0xcab718=!0x0);}}return _0xcab718;}),_0x5d651d['model']['document']['registerPostFixer'](_0x5929c5=>{const _0x49f962=_0x5d651d['commands']['get']('redo');if(!_0x49f962||!_0x49f962['_createdBatches']['has'](_0x5929c5['batch']))return!0x1;let _0x3ecd5f=!0x1;const _0x32eb60=_0x5d651d['plugins']['get']('Users')['me'],_0xdd4ea7=_0x5d651d['model']['document']['differ']['getChanges'](),_0x4b17bb=Array['from'](_0x5d651d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x844d9f,data:_0x1393e1})=>{const {group:_0x1af7b8,subType:_0x572306,authorId:_0x58a8e9}=et(_0x844d9f);return'suggestion'==_0x1af7b8&&'tablePaste'==_0x572306&&_0x58a8e9==_0x32eb60['id']&&!_0x1393e1['oldRange'];});for(const _0x1c7520 of _0xdd4ea7){if('insert'!=_0x1c7520['type']||'tableCellSuggestion'!=_0x1c7520['name']||0x1!=_0x1c7520['length'])continue;const _0x41b63c=_0x5929c5['createRange'](_0x1c7520['position'],_0x1c7520['position']['getShiftedBy'](0x1));if(!_0x4b17bb['find'](({data:_0x5e9954})=>_0x5e9954['newRange']['isEqual'](_0x41b63c))){for(const {name:_0x1d7f72,data:_0x327701}of _0x4b17bb)if(_0x41b63c['containsRange'](_0x327701['newRange'])){_0x5929c5['updateMarker'](_0x1d7f72,{'range':_0x41b63c}),_0x3ecd5f=!0x0;break;}}}return _0x3ecd5f;}),_0x5d651d['model']['document']['registerPostFixer'](_0x38a9f4=>{let _0x4cbf18=!0x1;const _0x326918=_0x5d651d['plugins']['get']('Users')['me'],_0x47d90b=_0xce301d['getSuggestions']()['filter'](_0x378cfd=>_0x378cfd['isInContent']&&_0x378cfd['author']==_0x326918),_0x3b8b4f=new Set(),_0x194055=new Set();for(const _0x53adc0 of _0x47d90b)if('tablePaste'==_0x53adc0['subType'])for(const _0x2c8697 of _0x53adc0['getMarkers']()){const _0x4c6142=_0x2c8697['getRange']()['getContainedElement']();if(_0x4c6142){if(_0x4c6142['is']('element','tableCellSuggestion')&&Ke(_0x4c6142)){_0x53adc0['removeMarker'](_0x2c8697['name']),_0x3b8b4f['add'](_0x4c6142),_0x4cbf18=!0x0;const _0x49f7e8=_0x4c6142['nextSibling'],_0x4c4703=_0x4c6142['previousSibling'],_0x181d1f=_0x49f7e8&&_0x49f7e8['is']('element','tableCellSuggestion'),_0x5e6f32=_0x4c4703&&_0x4c4703['is']('element','tableCellSuggestion');_0x181d1f&&!_0x3b8b4f['has'](_0x49f7e8)&&_0x194055['add'](_0x49f7e8),_0x5e6f32&&!_0x3b8b4f['has'](_0x4c4703)&&_0x194055['add'](_0x4c4703);}else _0x4c6142['is']('element','paragraph')&&_0x4c6142['isEmpty']&&(_0x53adc0['removeMarker'](_0x2c8697['name']),_0x4cbf18=!0x0);}}else{if('tablePasteCell'==_0x53adc0['subType']){if(!_0x53adc0['attributes']||!_0x53adc0['attributes']['tablePasteChainId'])continue;const _0x172164=_0x53adc0['attributes']['markerAttributes'];if(_0x172164&&Object['keys'](_0x172164)['length'])continue;const _0x4458f7=_0x53adc0['attributes']['tablePasteChainId'];let _0x425a1c=!0x0,_0xe998e2=!0x0;for(const _0x3c3b96 of _0x47d90b)if(_0x3c3b96['subType']&&_0x3c3b96['subType']['startsWith']('tablePaste')){if(!_0x3c3b96['attributes']['tablePasteChainId']){_0xe998e2=!0x1;break;}if(_0x3c3b96['id']!=_0x53adc0['id']&&_0x3c3b96['attributes']['tablePasteChainId']==_0x4458f7){_0x425a1c=!0x1;break;}}_0xe998e2&&_0x425a1c&&(_0x53adc0['removeMarkers'](),_0x4cbf18=!0x0);}}for(const _0x51ff47 of _0x3b8b4f)_0x38a9f4['remove'](_0x51ff47);for(const _0x21aba7 of _0x194055)_0x38a9f4['unwrap'](_0x21aba7);return _0x4cbf18;}),_0x5d651d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2eb466=>_0x3d93a1(_0x2eb466),'converterPriority':'high'}),_0x5d651d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a16a0,_0xaef54)=>_0xaef54['options']['showSuggestionHighlights']?_0x3d93a1(_0x3a16a0,!0x1):null,'converterPriority':'high'});const _0xac0f13=_0x5d651d['editing']['view'];this['listenTo'](_0xac0f13['document'],'clipboardOutput',(_0x5c8695,_0x52a4e0)=>{const _0x5ca5b9=[];for(const _0x47eded of _0xac0f13['createRangeIn'](_0x52a4e0['content'])['getItems']())_0x47eded['is']('element','suggestion-td')&&_0x5ca5b9['push'](_0x47eded);_0xac0f13['change'](_0x456c90=>{for(const _0x10d35a of _0x5ca5b9)_0x456c90['move'](_0x456c90['createRangeIn'](_0x10d35a),_0x456c90['createPositionBefore'](_0x10d35a)),_0x456c90['remove'](_0x10d35a);});});}};function Ke(_0x55f3e0){if(_0x55f3e0['isEmpty'])return!0x0;const _0x22039c=_0x55f3e0['getChild'](0x0);return _0x22039c['is']('element','paragraph')&&_0x22039c['isEmpty'];}function Xe(_0x20b591,_0x872dd={},_0x3c71cb){for(const {isAnchor:_0x10854a,cellHeight:_0x5ebf2a,cellWidth:_0x784910}of _0x3c71cb['createTableWalker'](_0x20b591,{'includeAllSlots':!0x0,..._0x872dd}))if(!_0x10854a||0x1!=_0x5ebf2a||0x1!=_0x784910)return!0x1;return!0x0;}var qe=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x161783=this['editor']['plugins']['get']('TrackChangesEditing');_0x161783['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x161783['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x161783['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x161783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x43b676=_0x161783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x161783['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x20c00f,_0x253821)=>{_0x43b676(_0x20c00f,_0x253821),this['_restoreCellWidths'](_0x20c00f[0x0]['start']['nodeAfter'],_0x253821['commandParams'][0x0]['cellWidths']);}),_0x161783['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x301e09,_0x53c452){const _0x2d922a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18e3f9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2ea2d1=_0x53c452['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2f85b5=_0x18e3f9['getColumnGroupElement'](_0x2ea2d1);let _0x17387b=_0x2f85b5?_0x18e3f9['getTableColumnsWidths'](_0x2f85b5):null,_0x16dcea=_0x2ea2d1['getAttribute']('tableWidth')||null;const _0xae0ca5=_0x53c452['tableWidth']||_0x16dcea,_0x5ebb8a=_0x53c452['columnWidths']||_0x17387b;let _0x3256c3=this['_getCellWidths'](_0x2ea2d1);const _0x580015=this['_foldResizeTableSuggestion'](_0x2ea2d1);_0x580015&&(_0x16dcea=_0x580015['tableWidth'],_0x17387b=_0x580015['columnWidths'],_0x3256c3=_0x580015['cellWidths']||_0x3256c3),_0x301e09({'table':_0x2ea2d1,'tableWidth':_0xae0ca5,'columnWidths':_0x5ebb8a}),_0x2d922a['markBlockFormat'](_0x2ea2d1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16dcea,'columnWidths':_0x17387b,'cellWidths':_0x3256c3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x1127db,_0x39072a={}){if(void 0x0===_0x39072a['value']||''===_0x39072a['value'])return void _0x1127db(_0x39072a);const _0x5b6461=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53a789=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xfca994=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x39072a['batch']||(_0x39072a['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x39072a['batch'],()=>{const _0x2b9902=_0x53a789['getColumnGroupElement'](_0xfca994);let _0x12db2f=_0x2b9902?_0x53a789['getTableColumnsWidths'](_0x2b9902):null,_0x23c3ab=_0xfca994['getAttribute']('tableWidth')||null,_0x1d74ce=this['_getCellWidths'](_0xfca994);const _0x549f75=this['_foldResizeTableSuggestion'](_0xfca994,!0x0);_0x549f75&&(_0x23c3ab=_0x549f75['tableWidth'],_0x12db2f=_0x549f75['columnWidths'],_0x1d74ce=_0x549f75['cellWidths']||_0x1d74ce),_0x1127db(_0x39072a),_0x5b6461['markBlockFormat'](_0xfca994,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x23c3ab,'columnWidths':_0x12db2f,'cellWidths':_0x1d74ce}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x2535b7,_0x28657e=!0x1){const _0x14cd9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4af74d=this['editor']['plugins']['get']('Users')['me'];for(const _0x80bc67 of _0x14cd9d['getSuggestions']({'skipNotAttached':!0x0})){const _0x302caf=_0x80bc67['getContainedElement']();if('resizeTable'===_0x80bc67['subType']&&_0x302caf===_0x2535b7){_0x80bc67['author']!==_0x4af74d&&(_0x28657e?_0x80bc67['removeMarkers']():_0x80bc67['discard']());const _0x3d2d87=_0x80bc67['data']['commandParams'];return{'tableWidth':_0x3d2d87[0x0]['tableWidth'],'columnWidths':_0x3d2d87[0x0]['columnWidths'],'cellWidths':_0x3d2d87[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x3aa402){const _0x3291af=[];for(const _0x5eb95e of _0x3aa402['getChildren']())if(_0x5eb95e['is']('element','tableRow')){for(const _0x2f9fcd of _0x5eb95e['getChildren']())_0x3291af['push'](_0x2f9fcd['getAttribute']('tableCellWidth')||null);}return _0x3291af;}_restoreCellWidths(_0x4e521c,_0x17b943){_0x17b943&&this['editor']['model']['change'](_0x556b90=>{let _0x471a56=0x0;for(const _0xb38cb9 of _0x4e521c['getChildren']())if(_0xb38cb9['is']('element','tableRow'))for(const _0x2c2528 of _0xb38cb9['getChildren']()){const _0x7bc690=_0x17b943[_0x471a56++];_0x7bc690&&_0x556b90['setAttribute']('tableCellWidth',_0x7bc690,_0x2c2528);}});}handleSuggestionDescription(_0x814a79){if('formatBlock'!=_0x814a79['type']&&'formatInline'!=_0x814a79['type'])return;const {data:_0x3024ca}=_0x814a79;return _0x3024ca&&'resizeTable'===_0x3024ca['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x1f600{afterInit(){const _0x3c58ed=this['editor'];_0x3c58ed['plugins']['has']('Template')&&_0x3c58ed['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x1f600{afterInit(){const _0x7b510e=this['editor'];if(!_0x7b510e['commands']['get']('insertTableOfContents'))return;_0x7b510e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x248579=_0x7b510e['plugins']['get']('TrackChangesEditing'),_0x887871=_0x7b510e['locale'];_0x248579['descriptionFactory']['registerElementLabel']('tableOfContents',_0x161260=>Ot(_0x887871,'ELEMENT_TABLE_OF_CONTENTS',_0x161260));}},Ze=class extends _0x1f600{afterInit(){const _0x2d739e=this['editor'];_0x2d739e['plugins']['has']('Title')&&(_0x2d739e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x2d739e['locale'],'ELEMENT_TITLE')),_0x2d739e['model']['document']['registerPostFixer'](_0x120b23=>{let _0x3a1928=!0x1;const _0x4c37fe=Array['from'](_0x2d739e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10e7bd,data:_0x96d5cd}of _0x4c37fe){const {group:_0x295c11}=et(_0x10e7bd);if('suggestion'!==_0x295c11||!_0x96d5cd['newRange'])continue;const _0x59943e=_0x96d5cd['newRange'],_0x57f72d=_0x59943e['end']['nodeBefore'];if(!_0x57f72d||!_0x57f72d['is']('element','title-content'))continue;if(!_0x59943e['start']['isTouching'](_0x59943e['end']))continue;const _0x5abf29=_0x2d739e['model']['schema']['getNearestSelectionRange'](_0x59943e['end'],'forward');if(_0x5abf29&&_0x5abf29['isCollapsed']){const _0x4201a6=_0x120b23['createRange'](_0x59943e['start'],_0x5abf29['start']);_0x4201a6['isEqual'](_0x59943e)||(_0x120b23['updateMarker'](_0x10e7bd,{'range':_0x4201a6}),_0x3a1928=!0x0);}_0x3a1928||(_0x120b23['removeMarker'](_0x10e7bd),_0x3a1928=!0x0);}return _0x3a1928;}));}},Je=class extends _0x1f600{afterInit(){const _0x455365=this['editor'],_0x497450=_0x455365['plugins']['get']('TrackChangesEditing');_0x455365['plugins']['has']('Uploadcare')&&(_0x497450['enableCommand']('uploadcare'),_0x455365['plugins']['has']('UploadcareImageEdit')&&(_0x497450['enableCommand']('uploadcareImageEdit'),_0x497450['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x497450['descriptionFactory']['registerDescriptionCallback'](_0x1722ce=>{if('attribute'!=_0x1722ce['type'])return;const {data:_0x50bb18}=_0x1722ce;return _0x50bb18&&'uploadcareImageId'==_0x50bb18['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x1f600{afterInit(){const _0x5d3989=this['editor'],_0x53dc8c=_0x5d3989['plugins']['get']('TrackChangesEditing');_0x5d3989['plugins']['has']('UndoEditing')&&(_0x53dc8c['enableCommand']('undo'),_0x53dc8c['enableCommand']('redo'));}},en=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x465ce1=this['editor'];_0x465ce1['plugins']['has']('TableCaptionEditing')&&_0x465ce1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x1f600{tableProperties;tableCellProperties;constructor(_0x17f0f4){super(_0x17f0f4),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0xd4d9c0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x391b8f of this['tableProperties'])_0xd4d9c0['enableCommand'](_0x391b8f,(_0x3ecb04,_0x37d41c)=>{const _0x107539=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x391b8f,[_0x107539],this['tableProperties'],'tableProperties',_0x3ecb04,_0x37d41c);});_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xd4d9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x129c05,_0x3ece39)=>this['handleDiscardAction'](this['tableProperties'],_0x129c05,_0x3ece39)),_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc5a582 of this['tableCellProperties'])this['editor']['commands']['get'](_0xc5a582)&&_0xd4d9c0['enableCommand'](_0xc5a582,(_0x278812,_0x5aea67)=>{const _0x3c9bd6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc5a582,_0x3c9bd6,this['tableCellProperties'],'tableCellProperties',_0x278812,_0x5aea67);});_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xd4d9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x496788,_0x3b2575)=>this['handleDiscardAction'](this['tableCellProperties'],_0x496788,_0x3b2575)),_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xd4d9c0['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xd4d9c0['descriptionFactory']['registerDescriptionCallback'](_0x58d8e0=>this['handleSuggestionDescription'](_0x58d8e0)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x5f0cd7,_0x1aa7f9,_0x43ddf1,_0x2ae033,_0x114f07,_0x174324){const _0x431232=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x174324['batch'],()=>{for(const _0x27824a of _0x1aa7f9)if(this['_getSuggestion'](_0x27824a,_0x2ae033))_0x114f07(_0x174324);else{const _0x51d992={};for(const _0xc6b5ad of _0x43ddf1){const _0x303c2f=_0x27824a['getAttribute'](_0xc6b5ad);void 0x0!==_0x303c2f&&(_0x51d992[_0xc6b5ad]=_0x303c2f);}const _0x5b61b6=this['_getResizedColumnWidths'](_0x27824a);_0x5b61b6&&(_0x51d992['columnWidths']=_0x5b61b6),_0x114f07(_0x174324),_0x431232['markBlockFormat'](_0x27824a,{'commandParams':[_0x51d992]},[],_0x2ae033);}});}handleDiscardAction(_0x471751,_0x2de353,_0xcf7053){const _0x345af1=_0x2de353[0x0]['start']['nodeAfter'],_0x32bf8e=_0xcf7053['commandParams'][0x0];this['editor']['model']['change'](_0x1be605=>{for(const _0x3940c7 of _0x471751)void 0x0!==_0x32bf8e[_0x3940c7]?_0x1be605['setAttribute'](_0x3940c7,_0x32bf8e[_0x3940c7],_0x345af1):_0x1be605['removeAttribute'](_0x3940c7,_0x345af1);if(_0x32bf8e['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x26f8e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xeb8c91=_0x26f8e6['getColumnGroupElement'](_0x345af1);if(_0xeb8c91){const _0x24d2cb=_0x26f8e6['getTableColumnsWidths'](_0xeb8c91),_0x72da59=_0x345af1['getAttribute']('tableWidth');if(('string'==typeof _0x72da59&&_0x72da59['trim']()['endsWith']('px'))!==_0x24d2cb['some'](_0xefb1d5=>'string'==typeof _0xefb1d5&&_0xefb1d5['endsWith']('px'))){const _0x105c77=_0x26f8e6['getTableColumnElements'](_0xeb8c91);_0x32bf8e['columnWidths']['forEach']((_0x24829d,_0x415cd9)=>{_0x105c77[_0x415cd9]&&_0x1be605['setAttribute']('columnWidth',_0x24829d,_0x105c77[_0x415cd9]);});}}}});}_getResizedColumnWidths(_0x52eb9a){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x52eb9a['is']('element','table'))return;const _0x4cc8e5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4d4bdb=_0x4cc8e5['getColumnGroupElement'](_0x52eb9a);return _0x4d4bdb?_0x4cc8e5['getTableColumnsWidths'](_0x4d4bdb):void 0x0;}handleSuggestionDescription(_0x3f302f){if(_0x3f302f['data'])switch(_0x3f302f['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x5b7856,_0x4ed3cc){const _0x320659=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3f180a of _0x320659['getSuggestions']({'skipNotAttached':!0x0})){const _0xfc1e30=_0x3f180a['getContainedElement']();if(_0x3f180a['subType']===_0x4ed3cc&&_0xfc1e30===_0x5b7856)return _0x3f180a;}return null;}_registerTablePropertiesAttributes(){const _0x49bab4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d53ac=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5bb68f of _0x4d53ac){const _0x4125b6=_0x5bb68f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x49bab4['descriptionFactory']['registerAttributeLabel'](_0x5bb68f,Ot(this['editor']['locale'],'FORMAT_'+_0x4125b6));}}},sn=class extends _0x1f600{afterInit(){const _0x367aa0=this['editor'];if(!_0x367aa0['plugins']['has']('LineHeight'))return;const _0x5ba180=_0x367aa0['plugins']['get']('TrackChangesEditing'),_0xd77994=_0x367aa0['locale'];_0x5ba180['enableDefaultAttributesIntegration']('lineHeight'),_0x5ba180['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0xd77994,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x1f600{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x496d24,_0x323228,_0x340ac5,_0x3845e1,_0x5ad44d,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43ec5f){super(_0x43ec5f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2ce651,_0x4db08b,_0x49c4d3,_0x36c9bf)=>{this['_model']['change'](()=>{for(const _0xcd67ee of[..._0x36c9bf,..._0x49c4d3])this['_model']['markers']['has'](_0xcd67ee)&&_0x43ec5f['editing']['reconvertMarker'](_0xcd67ee);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x43ec5f['plugins']['get'](_0x496d24),this['_suggestionsConversion']=_0x43ec5f['plugins']['get'](_0x323228),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x43ec5f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x43ec5f['config']['get']('trackChanges.trackFormatChanges'),_0x43ec5f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x43ec5f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x43ec5f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x105a06=this['editor'];_0x105a06['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x46c280,{writer:_0x5d6992})=>{let _0x3309eb='suggestion:'+_0x46c280['getAttribute']('suggestion-type')+':'+_0x46c280['getAttribute']('id');return _0x46c280['getAttribute']('marker-count')&&(_0x3309eb+=':'+_0x46c280['getAttribute']('marker-count')),_0x5d6992['createElement']('$marker',{'data-name':_0x3309eb});}}),_0x105a06['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x105a06['model']['document']['registerPostFixer'](_0xe4a72a=>{let _0x167821=!0x1;const _0x2ebbfe=Array['from'](_0x105a06['model']['document']['differ']['getChangedMarkers']()),_0x7b62a9=new Set();for(const {name:_0x2f2f20,data:_0x1ad0f8}of _0x2ebbfe){const {group:_0x503e83,type:_0x52244c,subType:_0x2f978e,id:_0x11e680}=et(_0x2f2f20);if('suggestion'!==_0x503e83)continue;const _0x3ea7ce=_0x2f978e?'suggestion:'+_0x52244c+':'+_0x2f978e+':'+_0x11e680:'suggestion:'+_0x52244c+':'+_0x11e680,_0x38ba80=_0x105a06['model']['markers']['getMarkersGroup'](_0x3ea7ce),_0x19bf76=_0x105a06['model']['markers']['get'](_0x2f2f20),_0x30f8bd=this['_suggestions']['get'](_0x11e680);if(null!=_0x1ad0f8['newRange']){'formatInline'==_0x52244c&&(_0x167821=_0x167821||un(_0x1ad0f8['newRange'],_0x2f2f20,_0xe4a72a,_0x105a06['model']['schema']));const _0x2f1961='attribute'==_0x52244c&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x2f978e)),_0x3da356='attribute'==_0x52244c&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x2f978e));if(_0x1ad0f8['newRange']['isCollapsed']||'$graveyard'==_0x1ad0f8['newRange']['root']['rootName']||'formatBlock'==_0x52244c&&!hn(_0x1ad0f8['newRange'])||_0x2f1961&&!hn(_0x1ad0f8['newRange'])||_0x3da356&&gn(_0x1ad0f8['newRange'])||'deletion'==_0x52244c&&gn(_0x1ad0f8['newRange'])||_0x19bf76&&fn(_0x19bf76,_0x38ba80))_0xe4a72a['removeMarker'](_0x2f2f20),_0x167821=!0x0;else{if(!_0x30f8bd||!_0x30f8bd['isInContent'])continue;if(_0x1ad0f8['newRange']&&_0x1ad0f8['oldRange']&&_0x1ad0f8['newRange']['isEqual'](_0x1ad0f8['oldRange']))continue;_0x7b62a9['add'](_0x30f8bd);}}}return _0x7b62a9['size']>0x0&&(_0x167821=!!this['_joinWithAdjacentSuggestions'](_0x7b62a9)||_0x167821),_0x167821;}),_0x105a06['model']['document']['registerPostFixer'](_0x2ced4e=>{let _0x56ccf7=!0x1;for(const _0x111972 of _0x105a06['model']['document']['differ']['getChanges']())if('insert'==_0x111972['type'])for(const _0x19264e of this['_suggestions']['values']()){if(_0x19264e['isMultiRange']||!_0x19264e['isInContent'])continue;const _0x51aa95='formatBlock'==_0x19264e['type'],_0xa7191f=this['_getAttributeKey'](_0x19264e),_0x36eb56=_0xa7191f&&this['_suggestionsConversion']['isBlockAttribute'](_0xa7191f);if(!_0x51aa95&&!_0x36eb56)continue;const _0x5819eb=_0x19264e['getFirstRange']();if(_0x5819eb['start']['parent']!=_0x5819eb['end']['parent']&&!_0x5819eb['end']['isAtEnd']){const _0x5586d1=_0x105a06['model']['createPositionAt'](_0x5819eb['start']['nodeAfter'],'end'),_0x1cb841=_0x105a06['model']['createRange'](_0x5819eb['start'],_0x5586d1);_0x2ced4e['updateMarker'](_0x19264e['getFirstMarker'](),{'range':_0x1cb841}),_0x56ccf7=!0x0;}}return _0x56ccf7;}),_0x105a06['model']['document']['registerPostFixer'](_0x22d7ed=>this['_processAttributeChanges'](_0x22d7ed)),_0x105a06['model']['document']['registerPostFixer'](_0x94037a=>!_0x94037a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x94037a)),_0x105a06['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x105a06['model']['document']['on']('change:data',(_0x3cb7de,_0x5ab007)=>{if(!_0x5ab007['isLocal']||_0x5ab007['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x56036d=_0x105a06['model']['document']['differ']['getChanges']();if(0x0==_0x56036d['length'])return;const _0x20bbc8=[],_0x5554bb=_0x56036d['filter'](_0x25c605=>'attribute'==_0x25c605['type']),_0x2841b4=_0x56036d['filter'](_0x340b94=>'insert'==_0x340b94['type']&&'$text'!=_0x340b94['name']);for(const _0x20ea66 of _0x5554bb)this['_suggestionsConversion']['isRegisteredAttribute'](_0x20ea66['attributeKey'])&&_0x20bbc8['push']({'key':_0x20ea66['attributeKey'],'newValue':_0x20ea66['attributeNewValue'],'oldValue':_0x20ea66['attributeOldValue'],'range':mn(_0x20ea66['range'],_0x105a06['model'])});for(const _0x4527d1 of _0x2841b4){if('rename'!=_0x4527d1['action']&&'refresh'!=_0x4527d1['action'])continue;const _0x4fddf9=En(_0x4527d1['position']['nodeAfter'],_0x105a06['model']),_0x2114c=_0x4527d1['before'];'rename'==_0x4527d1['action']&&_0x20bbc8['push']({'key':rn,'newValue':_0x4527d1['name'],'oldValue':_0x2114c['name'],'range':_0x4fddf9});for(const [_0x37d485,_0x27fc1a]of _0x2114c['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x37d485))continue;const _0x1cb3ef=_0x4527d1['attributes']['get'](_0x37d485);_0x27fc1a!==_0x1cb3ef&&_0x20bbc8['push']({'key':_0x37d485,'newValue':_0x1cb3ef,'oldValue':_0x27fc1a,'range':_0x4fddf9});}for(const [_0x2b8c0f,_0x4c8aa0]of _0x4527d1['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2b8c0f)&&(_0x2114c['attributes']['has'](_0x2b8c0f)||_0x20bbc8['push']({'key':_0x2b8c0f,'newValue':_0x4c8aa0,'oldValue':null,'range':_0x4fddf9}));}0x0!=_0x20bbc8['length']&&_0x105a06['model']['enqueueChange'](_0x5ab007,_0x236062=>{const _0x14b01f=_0x51282a();for(const {range:_0x4acb6c,key:_0x5c5f68,oldValue:_0xee4cbb,newValue:_0x1036dd}of _0x20bbc8)this['markAttributeChange'](_0x4acb6c,_0x5c5f68,_0xee4cbb,_0x1036dd,{'groupId':_0x14b01f});this['_reduceExistingSuggestions'](_0x236062,_0x20bbc8);});},{'priority':'lowest'}),_0x105a06['model']['markers']['on']('update:suggestion',(_0x4e3c44,_0x49dc9f,_0x37843e)=>{if(null==_0x37843e){const {id:_0x23d781}=et(_0x49dc9f['name']),_0x29c74d=this['_suggestions']['get'](_0x23d781);_0x29c74d&&_0x29c74d['addMarkerName'](_0x49dc9f['name']);}}),_0x105a06['model']['document']['on']('change:data',()=>{const _0x36ac87=Array['from'](_0x105a06['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5bb8f0=>'suggestion'===et(_0x5bb8f0['name'])['group']);if(0x0===_0x36ac87['length'])return;_0x36ac87['sort']((_0x4a89b2,_0x1654c8)=>{const _0x23cb63=_0x4a89b2['data']['oldRange'],_0x3ead5a=_0x1654c8['data']['oldRange'];return null===_0x23cb63&&null===_0x3ead5a?0x0:null===_0x23cb63&&null!==_0x3ead5a?-0x1:null!==_0x23cb63&&null===_0x3ead5a?0x1:_0x23cb63['start']['isBefore'](_0x3ead5a['start'])?-0x1:0x1;});const _0x4589f3=new Set(),_0x45da4e=new Set();for(const {name:_0xc60135,data:_0x2c8d60}of _0x36ac87){const {id:_0x2a81cc}=et(_0xc60135);if(null===_0x2c8d60['oldRange']){const _0xd80165=this['_handleNewSuggestionMarker'](_0xc60135);_0x45da4e['add'](_0xd80165);}else{const _0x1826f1=this['_suggestions']['get'](_0x2a81cc);null!==_0x2c8d60['newRange']||_0x1826f1['isInContent']?(_0x4589f3['add'](_0x1826f1['head']),_0x45da4e['add'](_0x1826f1)):this['_removeSuggestion'](_0x1826f1);}}_0x45da4e['size']>0x0&&this['_refreshSuggestionsChain'](_0x45da4e);for(const _0x1d7777 of _0x4589f3)this['fire']('suggestionChanged',_0x1d7777);}),_0x105a06['model']['on']('applyOperation',(_0x4456a0,_0x280e4d)=>{const _0x542c25=_0x280e4d[0x0];if(!this['_suggestions']['size'])return;if(!_0x542c25['isDocumentOperation'])return;if(_0x542c25['batch']['isUndo']||!_0x542c25['batch']['isLocal'])return;let _0x4b423a,_0x434846;switch(_0x542c25['type']){case'insert':_0x4b423a=_0x105a06['model']['createPositionAt'](_0x542c25['position']),_0x434846=_0x4b423a['getShiftedBy'](_0x542c25['howMany']);break;case'split':_0x4b423a=_0x105a06['model']['createPositionAt'](_0x542c25['splitPosition']),_0x434846=_0x105a06['model']['createPositionAt'](_0x542c25['moveTargetPosition']);break;case'move':_0x4b423a=_0x105a06['model']['createPositionAt'](_0x542c25['targetPosition']),_0x434846=_0x4b423a['getShiftedBy'](_0x542c25['howMany']);break;default:return;}const _0x50a0a6=_0x105a06['model']['createRange'](_0x4b423a,_0x434846);_0x105a06['model']['change'](()=>{for(const {suggestion:_0x2a0187,meta:_0x1e58d0}of this['_findSuggestions'](_0x50a0a6)){if(_0x2a0187['isMultiRange'])continue;if('formatInline'==_0x2a0187['type'])continue;const _0x21d061=this['_getAttributeKey'](_0x2a0187);if(_0x21d061&&this['_suggestionsConversion']['isBlockAttribute'](_0x21d061)&&'split'!=_0x542c25['type'])continue;const _0x4f869b=_0x2a0187['data']&&_0x2a0187['data']['multipleBlocks'];('formatBlock'!=_0x2a0187['type']||'split'==_0x542c25['type']&&!_0x4f869b)&&(_0x1e58d0['containsRangeInObject']||'insertion'==_0x2a0187['type']&&_0x1e58d0['isOwn']||_0x2a0187['getFirstRange']()['containsRange'](_0x50a0a6)&&this['_breakSuggestionMarker'](_0x2a0187,_0x4b423a,_0x434846));}});},{'priority':'lowest'}),_0x105a06['model']['on']('deleteContent',(_0x46f369,_0x3f8e90)=>{const _0x5e8b33=_0x3f8e90[0x0],_0x3196ad=_0x3f8e90[0x1];if(_0x3196ad&&_0x3196ad['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5e8b33['isCollapsed'])return;const _0x40112a=_0x105a06['model']['schema'],{start:_0x2d4309,end:_0x3a9c76}=_0x5e8b33['getFirstRange'](),_0x588222=_0x2d4309['nodeAfter']&&_0x40112a['isLimit'](_0x2d4309['nodeAfter'])?null:_0x40112a['getNearestSelectionRange'](_0x2d4309,'forward'),_0xe32243=_0x3a9c76['nodeBefore']&&_0x40112a['isLimit'](_0x3a9c76['nodeBefore'])?null:_0x40112a['getNearestSelectionRange'](_0x3a9c76,'backward'),_0x3f5783=_0x105a06['model']['createRange'](_0x588222?_0x588222['start']:_0x2d4309,_0xe32243?_0xe32243['end']:_0x3a9c76);_0x105a06['model']['change'](_0x4927e0=>{this['markDeletion'](_0x3f5783);const _0x54a71c=_0x105a06['model']['schema']['getNearestSelectionRange'](_0x3f5783['start']);_0x5e8b33['is']('documentSelection')?_0x4927e0['setSelection'](_0x54a71c):_0x5e8b33['setTo'](_0x54a71c);}),_0x46f369['stop']();},{'priority':_0x15636f['normal']+0xa}),_0x105a06['model']['on']('insertContent',(_0x4ef9d0,_0x2aa706)=>{const _0x547ec4=_0x2aa706[_0x2aa706['length']-0x1];_0x547ec4&&_0x547ec4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x105a06['model']['change'](()=>{let _0x3a66c9=_0x105a06['model']['insertContent'](_0x2aa706[0x0],_0x2aa706[0x1],_0x2aa706[0x2],{'forceDefaultExecution':!0x0});if(!_0x3a66c9)return;_0x4ef9d0['return']=_0x3a66c9['clone']();const _0x32247e=_0x3a66c9['end']['nodeBefore'],_0x10550c=_0x105a06['model']['schema'];_0x32247e&&_0x10550c['isBlock'](_0x32247e)&&!_0x10550c['isObject'](_0x32247e)&&(_0x3a66c9=_0x105a06['model']['createRange'](_0x3a66c9['start'],_0x105a06['model']['createPositionAt'](_0x32247e,'end'))),this['markInsertion'](_0x3a66c9);}),_0x4ef9d0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5cf3eb=new pt(_0x105a06,this['_suggestions']);_0x105a06['commands']['add']('acceptSuggestion',_0x5cf3eb),this['enableCommand']('acceptSuggestion');const _0x15dafb=new Lt(_0x105a06,this['_suggestions']);_0x105a06['commands']['add']('discardSuggestion',_0x15dafb),this['enableCommand']('discardSuggestion'),_0x105a06['commands']['add']('acceptAllSuggestions',new yt(_0x105a06,_0x5cf3eb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x105a06['commands']['add']('discardAllSuggestions',new yt(_0x105a06,_0x15dafb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x105a06['commands']['add']('acceptSelectedSuggestions',new Nt(_0x105a06,_0x5cf3eb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x105a06['commands']['add']('discardSelectedSuggestions',new Nt(_0x105a06,_0x15dafb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xade273=_0x105a06['plugins']['get'](_0x496d24);this['listenTo'](_0xade273,'addComment',(_0x38e6c8,{threadId:_0x3e3e81})=>{const _0x441c32=this['_suggestions']['get'](_0x3e3e81);_0x441c32&&_0x441c32['commentThread']&&0x1===_0x441c32['commentThread']['length']&&this['_updateSuggestionData'](_0x3e3e81,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xade273,'removeComment',(_0x5ae5ad,{threadId:_0x49829d})=>{const _0x48abc0=this['_suggestions']['get'](_0x49829d);_0x48abc0&&_0x48abc0['commentThread']&&!_0x48abc0['commentThread']['length']&&this['_updateSuggestionData'](_0x49829d,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x465144){const _0xf6ca57='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x485564=0x791d0,_0x5bf68a=window['Date']['now'](),_0x4c4f64=_0x465144['editor'],_0x456f80=new window['Promise'](_0x286524=>{_0x4c4f64['once']('ready',_0x286524);}),_0x466132={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xb40e36=_0x4c4f64['config']['get']('licenseKey');async function _0x57c206(){let _0x3144f1,_0x1053af=null,_0xb94194=null;try{return'GPL'==_0xb40e36?'NotAllowed':(_0x3144f1=_0x3c6f7e(),_0x3144f1?(_0x3144f1['usageEndpoint']&&(_0xb94194=_0xb40860(_0x3144f1['usageEndpoint'],_0x3144f1['jti'])),await _0x53fc29()?_0x17163a()?_0x804c3c()?'Expired':_0x1d5ac5()?('evaluation'==_0x3144f1['licenseType']&&(_0x1053af=_0x544967('EvaluationLimit')),await _0x37a21a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x804c3c(){const _0x171a95=['evaluation','trial']['includes'](_0x3144f1['licenseType'])?_0x5bf68a/0x3e8:0xe10*_0x485564;return _0x3144f1['exp']<_0x171a95;}function _0x17163a(){const _0x647415=_0x3144f1['features'];if(!_0x647415)return!0x1;if(_0x647415['includes']('*'))return!0x0;if(_0x647415['includes']('TC'))return!0x0;if(_0x647415['includes']('RTC')){if(_0x1099de())return!0x0;if(_0x3d8099()||_0x21f62b())return!0x0;}return!0x1;}function _0x1d5ac5(){const _0x525532=_0x3144f1['licensedHosts'];if(!_0x525532||0x0==_0x525532['length'])return!0x0;const {hostname:_0x31ef80}=new URL(window['location']['href']);if(_0x525532['includes'](_0x31ef80))return!0x0;const _0x1adef7=_0x31ef80['split']('.');return _0x525532['filter'](_0x183e40=>_0x183e40['includes']('*'))['map'](_0x5905a3=>_0x5905a3['split']('.'))['filter'](_0x1b35ba=>_0x1b35ba['length']<=_0x1adef7['length'])['map'](_0x55df05=>Array(_0x1adef7['length']-_0x55df05['length'])['fill']('*'===_0x55df05[0x0]?'*':'')['concat'](_0x55df05))['some'](_0xb52bfe=>_0x1adef7['every']((_0x5eefef,_0x11e48f)=>_0xb52bfe[_0x11e48f]===_0x5eefef||'*'===_0xb52bfe[_0x11e48f]));}function _0x37a21a(){return _0x1053af&&_0xb94194?new window['Promise']((_0x5c00f4,_0x3a84bf)=>{_0x1053af['then'](_0x5c00f4,_0x3a84bf),_0xb94194['then'](_0x247e9f=>{'Valid'!=_0x247e9f&&_0x5c00f4(_0x247e9f);},_0x3a84bf);}):_0x1053af||_0xb94194||'Valid';}}function _0xb40860(_0x4bfc6f,_0x4f3d8a){return new window['Promise'](_0x55b9c3=>{if(_0x1c8155())return _0x55b9c3('Valid');_0x5d6a66(),_0x4c4f64['decorate']('_sendUsageRequest');let _0x407aa5=!0x1;const _0x285dfa=_0x51282a();function _0x1bdf37(_0x401c94){return!!_0x401c94&&('object'==typeof _0x401c94||'function'==typeof _0x401c94)&&'function'==typeof _0x401c94['then']&&'function'==typeof _0x401c94['catch'];}function _0x419f97(_0xf980fb){_0x1e4ed1(_0xf980fb)['then'](_0x18e0b9=>_0x18e0b9&&'ok'==_0x18e0b9['status']?_0x5dd8de(_0x269fb8(_0x285dfa+_0x4f3d8a))!=_0x18e0b9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x55d4ae=>(_0x114800(),_0x55d4ae),()=>{const _0x4569eb=_0x5002f8();return null==_0x4569eb?(_0x114800(),'Valid'):_0x5bf68a-_0x4569eb>0x240c8400?'UsageLimit':'Valid';})['then'](_0x55b9c3)['catch'](()=>{_0x55b9c3('UsageLimit');});const _0x4ea562=0x36ee80;function _0x114800(){const _0x2cb1d4='llct-'+_0x5dd8de(_0x269fb8(_0x4bfc6f)),_0x493be7=_0x230354(_0x5dd8de(window['Math']['ceil'](_0x5bf68a/_0x4ea562)));window['localStorage']['setItem'](_0x2cb1d4,_0x493be7);}function _0x5002f8(){const _0x5c5f29='llct-'+_0x5dd8de(_0x269fb8(_0x4bfc6f)),_0x4a3bf1=window['localStorage']['getItem'](_0x5c5f29);return _0x4a3bf1?window['parseInt'](_0x230354(_0x4a3bf1),0x10)*_0x4ea562:null;}function _0x1e4ed1(_0x4a114f){return new window['Promise']((_0x155238,_0x388629)=>{_0x4a114f['then'](_0x155238,_0x388629),window['setTimeout'](_0x388629,0x1d4c0);});}}_0x4c4f64['on']('_sendUsageRequest',(_0x3ab62b,_0x48d284)=>{if(_0x48d284[0x0]!=_0x4bfc6f)return _0x55b9c3('UsageLimit');_0x48d284[0x1]={..._0x48d284[0x1],'requestId':_0x285dfa};},{'priority':'high'}),_0x4c4f64['on']('_sendUsageRequest',_0x36fc7a=>{_0x1bdf37(_0x36fc7a['return'])&&(_0x407aa5=!0x0,_0x419f97(_0x36fc7a['return']));},{'priority':'low'}),_0x456f80['then'](()=>{_0x407aa5||_0x55b9c3('UsageLimit');});});function _0x1c8155(){return'auto'==_0x4c4f64['editing']['view']['_overlayModeHint'];}function _0x5d6a66(){_0x4c4f64['editing']['view']['_overlayModeHint']='auto';}}function _0x544967(_0x27ae4c){const _0x18454a=[new window['Promise'](_0x5bdbc0=>setTimeout(_0x5bdbc0,0x93ecc)),_0x456f80['then'](()=>new window['Promise'](_0x2b0373=>{let _0x2ff1bf=0x0;_0x4c4f64['model']['on']('applyOperation',(_0x35cd12,_0x5cc2db)=>{_0x5cc2db[0x0]['isDocumentOperation']&&_0x2ff1bf++,0x5e8==_0x2ff1bf&&(_0x2b0373(),_0x35cd12['off']());});}))];return window['Promise']['race'](_0x18454a)['then'](()=>_0x27ae4c);}async function _0x26af79(){await _0x456f80,_0x4c4f64['model']['change']=_0x51d661,_0x4c4f64['model']['enqueueChange']=_0x51d661,_0x4c4f64['enableReadOnlyMode']('model');}function _0x1099de(){return _0x33b062('WebSocketGateway')&&'connected'==_0x1567c5('WebSocketGateway')['state'];}function _0x3d8099(){return _0x33b062('RevisionViewerIntegration');}function _0x21f62b(){return _0x33b062('TrackChangesDataGetter');}function _0x477435(_0x22fc8a){const _0x1af495=_0x6810a9();_0x4c4f64[_0x1af495]='trackChangesLicenseKey'+_0x22fc8a,'Valid'!=_0x22fc8a&&_0x26af79();}function _0x6810a9(){const _0x9d923=window['String'](window['performance']['now']())['replace']('.','');let _0x5ce384='R';for(let _0x1943d7=0x0;_0x1943d7<_0x9d923['length'];_0x1943d7+=0x2){let _0x3f5460=window['parseInt'](_0x9d923['substring'](_0x1943d7,_0x1943d7+0x2));_0x3f5460>=0x3e&&(_0x3f5460-=0x3e),_0x5ce384+=_0xf6ca57[_0x3f5460];}return _0x5ce384;}function _0x3c6f7e(){const _0x3c7455=_0xb40e36['split']('.');if(0x3!=_0x3c7455['length'])return null;return _0x430e27(_0x3c7455[0x1]);function _0x430e27(_0x284b6d){const _0x5e0cef=_0x378d96(_0x284b6d);return _0x5e0cef&&_0x50f1e3()?_0x5e0cef:null;function _0x50f1e3(){const _0x30a585=_0x5e0cef['jti'],_0x2fd1bd=window['parseInt'](_0x30a585['substring'](_0x30a585['length']-0x8),0x10),_0x4e57fc={..._0x5e0cef,'jti':_0x30a585['substring'](0x0,_0x30a585['length']-0x8)};return delete _0x4e57fc['vc'],_0x269fb8(_0x4e57fc)==_0x2fd1bd;}}}async function _0x53fc29(){let _0x361ee5=!0x0;try{const [_0x66179,_0x3ebdfc,_0x49c773]=_0xb40e36['split']('.');return _0x62d50a(_0x66179),await _0x4fff0c(_0x66179,_0x3ebdfc,_0x49c773),_0x361ee5;}catch{return!0x1;}function _0x62d50a(_0x4ed39f){const _0x6bd2ac=_0x378d96(_0x4ed39f);_0x6bd2ac&&'ES256'==_0x6bd2ac['alg']||(_0x361ee5=!0x1);}async function _0x4fff0c(_0xad164e,_0x3593b1,_0x4538f8){const _0x137f9c=window['Uint8Array']['from'](_0x41df56(_0x4538f8),_0x47fb98=>_0x47fb98['charCodeAt'](0x0)),_0x12c568=new window['TextEncoder']()['encode'](_0xad164e+'.'+_0x3593b1),_0x3dca97=window['crypto']['subtle'];if(!_0x3dca97)return;const _0x30eef3=await _0x3dca97['importKey']('jwk',_0x466132,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3dca97['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x30eef3,_0x137f9c,_0x12c568)||(_0x361ee5=!0x1);}}function _0x378d96(_0x13b423){return _0x13b423['startsWith']('ey')?JSON['parse'](_0x41df56(_0x13b423)):null;}function _0x41df56(_0x5beb9f){return window['atob'](_0x5beb9f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x269fb8(_0x3fb13a){let _0x341b12=0x1505;function _0x17e823(_0x1847ad){for(let _0x2e19f0=0x0;_0x2e19f0<_0x1847ad['length'];_0x2e19f0++){const _0x8a729c=_0x1847ad['charCodeAt'](_0x2e19f0);_0x341b12=(_0x341b12<<0x5)+_0x341b12+_0x8a729c,_0x341b12&=_0x341b12;}}function _0x569515(_0x264391){Array['isArray'](_0x264391)?_0x264391['forEach'](_0x569515):_0x264391&&'object'==typeof _0x264391?Object['entries'](_0x264391)['sort']()['forEach'](([_0x3b4a3b,_0x312523])=>{_0x17e823(_0x3b4a3b),_0x569515(_0x312523);}):_0x17e823(window['String'](_0x264391));}return _0x569515(_0x3fb13a),_0x341b12>>>0x0;}function _0x5dd8de(_0x2686ec){return _0x2686ec['toString'](0x10)['padStart'](0x8,'0');}function _0x230354(_0x4a9c17){return _0x4a9c17['split']('')['reverse']()['join']('');}function _0x33b062(_0x17eaea){return _0x4c4f64['plugins']['has'](_0x17eaea);}function _0x1567c5(_0x38377f){return _0x4c4f64['plugins']['get'](_0x38377f);}function _0x51d661(){}_0x477435(await _0x57c206());}(this);}set adapter(_0x5e143f){if(this['_adapter'])throw new _0x551602('track-changes-adapter-already-set',this);this['_adapter']=_0x5e143f;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x259dfa=!0x1,toJSON:_0x3c885f=!0x1}={}){const _0x488c62=[];for(const _0x48d6f4 of this['_suggestions']['values']())_0x259dfa&&!_0x48d6f4['isInContent']||_0x488c62['push'](_0x48d6f4);return _0x3c885f?_0x488c62['map'](_0xfe15a9=>_0xfe15a9['toJSON']()):_0x488c62;}getSuggestion(_0x24181c){const _0xb6b80e=this['_suggestions']['get'](_0x24181c);if(!_0xb6b80e)throw new _0x551602('track-changes-suggestion-not-found',this);return _0xb6b80e;}hasSuggestion(_0x444c9d){return this['_suggestions']['has'](_0x444c9d);}addSuggestionData(_0x2a154b){const {authorId:_0x4dfcb5,id:_0x54be28,originalSuggestionId:_0xe53313,attributes:_0x52cf1e}=_0x2a154b,[_0x236db8,_0x4f86b2]=_0x2a154b['type']['split'](':'),_0xf5ca91=this['_suggestions']['get'](_0x54be28)||this['_createSuggestion'](_0x236db8,_0x4f86b2,_0x54be28,_0x4dfcb5,_0x52cf1e,_0xe53313);if(this['_addThreadToSuggestion'](_0xf5ca91),this['_checkSuggestionCorrectness'](_0xf5ca91,_0x236db8,_0x4f86b2||null,_0x4dfcb5),_0xf5ca91['createdAt']=_0x2a154b['createdAt'],_0xf5ca91['_isDataLoaded']=!0x0,_0x52cf1e&&_0x52cf1e['@external']){const _0x320269=_0x52cf1e['@external'],_0x2e9137=this['_getExternalAuthor'](_0x320269['authorName']);_0xf5ca91['authoredAt']=_0x320269['createdAt'],_0xf5ca91['author']=_0x2e9137;}else _0xf5ca91['authoredAt']=_0x2a154b['createdAt'];switch(_0x2a154b['data']&&(_0xf5ca91['data']=_0x2a154b['data']),_0x2a154b['attributes']&&(_0xf5ca91['attributes']=_0x2a154b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf5ca91['_saved']=!0x0),this['_suggestionState']['get'](_0xf5ca91)){case'notReady':this['_suggestionState']['set'](_0xf5ca91,'dataReady');break;case'markerReady':_0xf5ca91['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf5ca91])),this['_refreshSuggestionsChain'](new Set([_0xf5ca91])),this['_suggestionState']['set'](_0xf5ca91,'ready'),this['fire']('suggestionLoaded',_0xf5ca91)):this['_suggestionState']['set'](_0xf5ca91,'removed');}return _0xf5ca91;}acceptSuggestion(_0xe5e78b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf59faf of _0xe5e78b['getAllAdjacentSuggestions']())_0xf59faf['accept']();});});}discardSuggestion(_0xdb7389){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4eb90a of _0xdb7389['getAllAdjacentSuggestions']())_0x4eb90a['discard']();});});}['enableCommand'](_0x6aca20,_0x401a35){const _0x290600=this['editor']['commands']['get'](_0x6aca20);if(!_0x290600)throw new _0x551602('track-changes-command-not-found',this,{'commandName':_0x6aca20});if(this['_enabledCommands']['has'](_0x290600))throw new _0x551602('track-changes-enable-command-twice',this,{'commandName':_0x6aca20});this['_enabledCommands']['add'](_0x290600),_0x401a35&&_0x290600['on']('execute',(_0x2ff94d,_0x220ded)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x220ded['length']>0x0&&_0x220ded[_0x220ded['length']-0x1]&&_0x220ded[_0x220ded['length']-0x1]['forceDefaultExecution']?_0x220ded['pop']():(_0x2ff94d['return']=_0x401a35((..._0x507626)=>_0x290600['execute'](..._0x507626,{'forceDefaultExecution':!0x0}),..._0x220ded),_0x2ff94d['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x46adfb){let _0x2bac27,_0x579934;const _0x5d682e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2bac27=_0x46adfb();}catch(_0x5cc6be){_0x579934=_0x5cc6be;}return _0x5d682e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x579934&&_0x551602['rethrowUnexpectedError'](_0x579934,this),_0x2bac27;}markInsertion(_0x7656d,_0x3d3c3e=null,_0x30b012={}){if(_0x7656d['isCollapsed'])return null;const _0x49af6d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x30b012['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xf4e57e,meta:_0x9ce657}of this['_findSuggestions'](_0x7656d,'insertion'))if(_0x9ce657['isOwn']){if(!_0x9ce657['isNextTo']){if(_0x9ce657['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0xf4e57e,_0x30b012))continue;return _0xf4e57e;}if(pn(_0xf4e57e,_0x30b012))return _0xf4e57e;this['_breakSuggestionMarker'](_0xf4e57e,_0x7656d['start'],_0x7656d['end']);break;}if(_0x3d3c3e==_0xf4e57e['subType']&&pn(_0xf4e57e,_0x30b012)){const _0x4006ca=_0xf4e57e['getFirstRange']();return _0x4006ca['start']['isEqual'](_0x7656d['end'])?this['_setSuggestionRange'](_0xf4e57e,this['_model']['createRange'](_0x7656d['start'],_0x4006ca['end'])):this['_setSuggestionRange'](_0xf4e57e,this['_model']['createRange'](_0x4006ca['start'],_0x7656d['end'])),_0xf4e57e;}}const _0x3654fc=_0x51282a(),_0x412a96=_0x49af6d['id'],_0x266aee=_0x3d3c3e?'insertion:'+_0x3d3c3e:'insertion',_0x5854ef=this['_setSuggestionData']({'id':_0x3654fc,'type':_0x266aee,'createdAt':new Date(),'authorId':_0x412a96,'attributes':_0x30b012});return this['_addSuggestionMarker'](_0x266aee,_0x3654fc,_0x412a96,_0x7656d),_0x5854ef;}markMultiRangeInsertion(_0x1dd283,_0x5b1710='multi',_0x24aed1={}){const _0xa3e17f=this['editor']['plugins']['get']('Users')['me'],_0x4dd055=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5b1710,'join');this['_trackingSessionId']&&(_0x24aed1['trackingSessionId']=this['_trackingSessionId']);for(const _0x152c5c of this['getSuggestions']())if(_0x152c5c['author']['id']==_0xa3e17f['id']&&'insertion'==_0x152c5c['type']&&_0x152c5c['subType']==_0x5b1710&&pn(_0x152c5c,_0x24aed1)&&(_0x4dd055(_0x152c5c['getRanges'](),_0x1dd283)||_0x4dd055(_0x1dd283,_0x152c5c['getRanges']()))){for(const _0xe8011f of _0x1dd283)_0x152c5c['addRange'](_0xe8011f);return _0x152c5c;}for(const {suggestion:_0x5cebee,meta:_0x1c744a}of this['_findSuggestions'](_0x1dd283,'insertion')){if(!_0x1c744a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1c744a['containsRangeInObject'])continue;if(!pn(_0x5cebee,_0x24aed1))continue;let _0x2e303b=!0x0;for(const _0x52e872 of _0x5cebee['getRanges']())for(const _0x459d75 of _0x1dd283)if(!_0x52e872['containsRange'](_0x459d75)){_0x2e303b=!0x1;break;}if(_0x2e303b)return _0x5cebee;}const _0x510a6d=_0x51282a(),_0x28e8a7=_0xa3e17f['id'],_0x18d90a='insertion:'+_0x5b1710,_0xdffa2f=this['_setSuggestionData']({'id':_0x510a6d,'type':_0x18d90a,'createdAt':new Date(),'authorId':_0x28e8a7,'attributes':_0x24aed1});for(const _0x53533b of _0x1dd283)this['_addSuggestionMarker'](_0x18d90a,_0x510a6d,_0x28e8a7,_0x53533b,Mt['getMultiRangeId']());return _0xdffa2f;}markInlineFormat(_0x48c3c4,_0x4ec6cf,_0x3a7479=null,_0x561ed3={}){if(_0x3a7479=_0x3a7479||dn(_0x4ec6cf),_0x48c3c4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x561ed3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37ec09=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a7479,'accept');return this['forceDefaultExecution'](()=>_0x37ec09([_0x48c3c4],_0x4ec6cf,_0x561ed3)),null;}const _0x3b6f9d=this['editor']['plugins']['get']('Users')['me'],_0x4899fb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f3510,meta:_0x5c32b7}of this['_findSuggestions'](_0x48c3c4,'insertion'))_0x5c32b7['isOwn']&&!_0x5c32b7['isInsideObject']&&_0x4899fb['push'](..._0x3f3510['getRanges']());}const _0x469526=function(_0x209d98,_0x464f9a){const _0x74a0af=[];for(const _0x5027b7 of _0x464f9a){const _0x307bc3=_0x209d98['getIntersection'](_0x5027b7);_0x307bc3&&_0x74a0af['push'](_0x307bc3);}return _0x74a0af;}(_0x48c3c4,_0x4899fb),_0x50d276=function(_0x13352f,_0x109294){const _0xdb4249=[_0x13352f];for(const _0x3e3ab8 of _0x109294){let _0x1baaad=0x0;for(;_0x1baaad<_0xdb4249['length'];){const _0x1b024e=_0xdb4249[_0x1baaad]['getDifference'](_0x3e3ab8);_0xdb4249['splice'](_0x1baaad,0x1,..._0x1b024e),_0x1baaad+=_0x1b024e['length'];}}return _0xdb4249;}(_0x48c3c4,_0x4899fb);_0x469526['length']&&this['_model']['change'](()=>{for(const _0x42184f of _0x469526){const _0x6e7a6a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a7479,'accept');this['forceDefaultExecution'](()=>_0x6e7a6a([_0x42184f],_0x4ec6cf,_0x561ed3));}});for(const _0x56c1a7 of _0x50d276){let _0x3fcb44=null,_0x532a68=_0x56c1a7['start'],_0x41ec45=_0x56c1a7['end'];for(const {suggestion:_0x1be4e7,meta:_0x594fb9}of this['_findSuggestions'](_0x56c1a7,'formatInline')){if(!_0x594fb9['isOwn'])continue;if(_0x1be4e7['subType']!=_0x3a7479)continue;if(!pn(_0x1be4e7,_0x561ed3))continue;const _0x4902d9=_0x1be4e7['getFirstRange']();if(_0x4902d9['containsRange'](_0x56c1a7,!0x0))return null;_0x532a68=_0x532a68['isBefore'](_0x4902d9['start'])?_0x532a68:_0x4902d9['start'],_0x41ec45=_0x41ec45['isAfter'](_0x4902d9['end'])?_0x41ec45:_0x4902d9['end'],_0x3fcb44?_0x4902d9['start']['isBefore'](_0x3fcb44['getFirstRange']()['start'])?(_0x3fcb44['removeMarkers'](),_0x3fcb44=_0x1be4e7):_0x1be4e7['removeMarkers']():_0x3fcb44=_0x1be4e7;}const _0x1a28b4=this['_model']['createRange'](_0x532a68,_0x41ec45);if(_0x3fcb44)this['_setSuggestionRange'](_0x3fcb44,_0x1a28b4);else{const _0x48975a=_0x51282a(),_0x510caa=_0x3b6f9d['id'];this['_setSuggestionData']({'id':_0x48975a,'type':'formatInline:'+_0x3a7479,'data':_0x4ec6cf,'createdAt':new Date(),'authorId':_0x510caa,'attributes':_0x561ed3}),this['_addSuggestionMarker']('formatInline:'+_0x3a7479,_0x48975a,_0x510caa,_0x1a28b4);}}return null;}markBlockFormat(_0x2db023,_0x183dd6,_0x12d991=[],_0x47e7e4=null,_0x9dd832={}){_0x183dd6['formatGroupId']||(_0x183dd6['formatGroupId']=_0x183dd6['commandName']),_0x183dd6['multipleBlocks']=_0x2db023['is']('range'),_0x47e7e4=_0x47e7e4||dn(_0x183dd6);const _0x50eba7=_0x12d991['map'](_0x596d1d=>En(_0x596d1d,this['_model'])),_0x37dc71=_0x2db023['is']('range')?_0x2db023:En(_0x2db023,this['_model']);if(this['_trackingSessionId']&&(_0x9dd832['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x329b1c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47e7e4,'accept');return this['forceDefaultExecution'](()=>_0x329b1c([_0x37dc71],_0x183dd6,_0x9dd832)),null;}_0x50eba7['push'](_0x37dc71);let _0x39aa09=!0x0;for(const _0x470e13 of _0x50eba7)if(!this['_rangeIsInLocalUserInsertion'](_0x470e13)){_0x39aa09=!0x1;break;}if(_0x39aa09&&'always'!==this['_trackFormatChanges']){const _0x1d2f1f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47e7e4,'accept');return this['forceDefaultExecution'](()=>_0x1d2f1f([_0x37dc71],_0x183dd6,_0x9dd832)),null;}let _0x82a2e4=null,_0x33acd2=_0x37dc71['start'],_0x5d568e=_0x37dc71['end'];for(const {suggestion:_0x1dd4c5,meta:_0x541f75}of this['_findSuggestions'](_0x37dc71,'formatBlock')){if(!_0x541f75['isOwn'])continue;if(_0x541f75['isNextTo']||_0x541f75['containsRangeInObject']||_0x541f75['isInsideObject'])continue;if(_0x1dd4c5['data']['formatGroupId']!=_0x183dd6['formatGroupId'])continue;if(!pn(_0x1dd4c5,_0x9dd832))continue;const _0x4694e7=_0x1dd4c5['getFirstRange']();if(_0x1dd4c5['subType']==_0x47e7e4){if(_0x4694e7['containsRange'](_0x37dc71,!0x0))return null;_0x33acd2=_0x33acd2['isBefore'](_0x4694e7['start'])?_0x33acd2:_0x4694e7['start'],_0x5d568e=_0x5d568e['isAfter'](_0x4694e7['end'])?_0x5d568e:_0x4694e7['end'],_0x82a2e4?_0x4694e7['start']['isBefore'](_0x82a2e4['getFirstRange']()['start'])?(_0x82a2e4['removeMarkers'](),_0x82a2e4=_0x1dd4c5):_0x1dd4c5['removeMarkers']():_0x82a2e4=_0x1dd4c5;}else{const _0x4ff5f0=_0x37dc71['getIntersection'](_0x4694e7);this['_cutOutSuggestionMarker'](_0x1dd4c5,_0x4ff5f0);}}const _0x42333b=this['editor']['plugins']['get']('Users')['me'],_0x4f971a=_0x51282a(),_0x212605=_0x42333b['id'];if(_0x82a2e4)return this['_setSuggestionRange'](_0x82a2e4,this['_model']['createRange'](_0x33acd2,_0x5d568e)),_0x82a2e4;{const _0x395b7a=this['_setSuggestionData']({'id':_0x4f971a,'type':'formatBlock:'+_0x47e7e4,'data':_0x183dd6,'createdAt':new Date(),'authorId':_0x212605,'attributes':_0x9dd832});return this['_addSuggestionMarker']('formatBlock:'+_0x47e7e4,_0x4f971a,_0x212605,this['_model']['createRange'](_0x33acd2,_0x5d568e)),_0x395b7a;}}markMultiRangeBlockFormat(_0x401be0,_0xfce234,_0x5a84bb=[],_0x3375e6=null,_0x4b4e81={}){_0xfce234['formatGroupId']||(_0xfce234['formatGroupId']=_0xfce234['commandName']);const _0x41cc9b=_0x401be0[0x0];_0xfce234['multipleBlocks']=_0x41cc9b['is']('range'),_0x3375e6=_0x3375e6||dn(_0xfce234);const _0x17cd08=_0x5a84bb['map'](_0xecd1aa=>En(_0xecd1aa,this['_model'])),_0xee06b9=_0x41cc9b['is']('range')?_0x401be0:_0x401be0['map'](_0x5f2e39=>En(_0x5f2e39,this['_model']));if(this['_trackingSessionId']&&(_0x4b4e81['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x393d49=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3375e6,'accept');return this['forceDefaultExecution'](()=>_0x393d49(_0xee06b9,_0xfce234,_0x4b4e81)),null;}_0x17cd08['push'](..._0xee06b9);let _0x2147a5=!0x0;for(const _0xea0bc5 of _0x17cd08)if(!this['_rangeIsInLocalUserInsertion'](_0xea0bc5)){_0x2147a5=!0x1;break;}if(_0x2147a5&&'always'!==this['_trackFormatChanges']){const _0x4d2108=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3375e6,'accept');return this['forceDefaultExecution'](()=>_0x4d2108(_0xee06b9,_0xfce234,_0x4b4e81)),null;}const _0x111561=this['editor']['plugins']['get']('Users')['me'];for(const _0x19478d of this['getSuggestions']()){const _0x5ff8bb=_0x19478d['data'];if(_0x19478d['author']['id']!=_0x111561['id'])continue;if('formatBlock'!=_0x19478d['type']||_0x5ff8bb['formatGroupId']!=_0xfce234['formatGroupId'])continue;if(!pn(_0x19478d,_0x4b4e81))continue;const _0x791827=_0x19478d['subType']==_0x3375e6;for(let _0x2c5663=0x0;_0x2c5663<_0xee06b9['length'];_0x2c5663++){const _0x4ce0ca=_0xee06b9[_0x2c5663];for(const _0x41ceb0 of _0x19478d['getMarkers']()){const _0x4ad4ee=_0x41ceb0['getRange']();if(_0x4ce0ca['isEqual'](_0x4ad4ee)){_0x791827?(_0xee06b9['splice'](_0x2c5663,0x1),_0x2c5663--):_0x19478d['removeMarker'](_0x41ceb0['name']);break;}}}}if(0x0==_0xee06b9['length'])return null;const _0x1bf404=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3375e6,'join');for(const _0x19d3e7 of this['getSuggestions']()){const _0x443110=_0x19d3e7['data'];if(_0x19d3e7['author']['id']==_0x111561['id']&&('formatBlock'==_0x19d3e7['type']&&_0x443110['formatGroupId']==_0xfce234['formatGroupId']&&_0x19d3e7['subType']==_0x3375e6&&pn(_0x19d3e7,_0x4b4e81)&&(_0x1bf404(_0x19d3e7['getRanges'](),_0xee06b9)||_0x1bf404(_0xee06b9,_0x19d3e7['getRanges']())))){for(const _0x5bcab5 of _0xee06b9)_0x19d3e7['addRange'](_0x5bcab5);return _0x19d3e7;}}const _0x57d4d6=_0x51282a(),_0x2e4416=_0x111561['id'],_0xa6b0d8='formatBlock:'+_0x3375e6,_0x509ea9=this['_setSuggestionData']({'id':_0x57d4d6,'type':_0xa6b0d8,'data':_0xfce234,'createdAt':new Date(),'authorId':_0x2e4416,'attributes':_0x4b4e81});for(const _0x4a79c5 of _0xee06b9)this['_addSuggestionMarker'](_0xa6b0d8,_0x57d4d6,_0x2e4416,_0x4a79c5,Mt['getMultiRangeId']());return _0x509ea9;}markDeletion(_0x1ab0c3,_0xfd961c=null,_0x55967e={}){if(_0x1ab0c3['isCollapsed'])return null;const _0x365b8e=this['editor']['plugins']['get']('Users')['me'],_0x5dc797=new ot(_0x1ab0c3['start'],_0x1ab0c3['end']);this['_trackingSessionId']&&(_0x55967e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x444448,meta:_0x50ebf9}of this['_findSuggestions'](_0x5dc797,'insertion'))if(_0x50ebf9['isOwn']&&!_0x50ebf9['isNextTo']){if(_0x444448['isMultiRange']){const _0x2f2cba=_0x444448['getRanges']()['filter'](_0x34b941=>'$graveyard'!=_0x34b941['root']['rootName']);if(_0x2f2cba['every'](_0x30e69f=>_0x5dc797['containsRange'](_0x30e69f,!0x0))&&_0x444448['discard'](),_0x2f2cba['some'](_0x3ff6b1=>_0x3ff6b1['containsRange'](_0x5dc797,!0x0))){const _0x4bb1c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfd961c,'accept');return this['forceDefaultExecution'](()=>_0x4bb1c0([_0x5dc797],null,_0x55967e)),null;}}else{const _0x269c5d=_0x5dc797['getIntersection'](_0x444448['getFirstRange']());null!==_0x269c5d&&_0x444448['_onDiscard']([_0x269c5d],null,_0x55967e);}}if(_0x5dc797['detach'](),_0x5dc797['isCollapsed']||'$graveyard'==_0x5dc797['root']['rootName'])return null;let _0xd0f8c5=null,_0x1b99e8=_0x5dc797['start'],_0x151017=_0x5dc797['end'];const _0x59b898=this['_findSuggestions'](_0x5dc797,'deletion');for(const {suggestion:_0x346edf,meta:_0x27a172}of _0x59b898){const _0x535a5d=this['_model']['createRange'](_0x1b99e8,_0x151017);if(_0x27a172['isOwn']&&(this['_mergeNestedSuggestions']||!_0x27a172['containsRangeInObject']&&!_0x27a172['isInsideObject'])){if(_0x346edf['isMultiRange']){if(!pn(_0x346edf,_0x55967e))continue;let _0x428420=!0x0;for(const _0x26ff1c of _0x346edf['getRanges']()){if(_0x26ff1c['containsRange'](_0x535a5d,!0x0))return _0x346edf;_0x535a5d['containsRange'](_0x26ff1c)||(_0x428420=!0x1);}_0x428420&&_0x346edf['discard']();}else{const _0xce32e8=_0x346edf['getFirstRange']();if(_0xce32e8['containsRange'](_0x535a5d,!0x0))return _0x346edf;if(!pn(_0x346edf,_0x55967e)){_0x535a5d['containsRange'](_0xce32e8)?_0x346edf['removeMarkers']():_0xce32e8['containsPosition'](_0x1b99e8)?_0x1b99e8=_0xce32e8['end']:_0xce32e8['containsPosition'](_0x151017)&&(_0x151017=_0xce32e8['start']);continue;}_0x1b99e8=_0x1b99e8['isBefore'](_0xce32e8['start'])?_0x1b99e8:_0xce32e8['start'],_0x151017=_0x151017['isAfter'](_0xce32e8['end'])?_0x151017:_0xce32e8['end'],_0x55967e=Object['assign']({},_0x346edf['attributes']),_0xd0f8c5?_0xce32e8['start']['isBefore'](_0xd0f8c5['getFirstRange']()['start'])?(_0xd0f8c5['removeMarkers'](),_0xd0f8c5=_0x346edf):_0x346edf['removeMarkers']():_0xd0f8c5=_0x346edf;}}}if(_0xd0f8c5)return this['_setSuggestionRange'](_0xd0f8c5,this['_model']['createRange'](_0x1b99e8,_0x151017)),_0xd0f8c5;{const _0x3991c4=_0x51282a(),_0x3cf79a=this['_model']['createRange'](_0x1b99e8,_0x151017),_0x1a3814=_0x365b8e['id'],_0x3923d4=_0xfd961c?'deletion:'+_0xfd961c:'deletion',_0x334a86=this['_setSuggestionData']({'id':_0x3991c4,'type':_0x3923d4,'createdAt':new Date(),'authorId':_0x1a3814,'attributes':_0x55967e});return this['_addSuggestionMarker'](_0x3923d4,_0x3991c4,_0x1a3814,_0x3cf79a),_0x334a86;}}markMultiRangeDeletion(_0x48891a,_0x2c7569='multi',_0x5a0d54={}){const _0x3e41a3=this['editor']['plugins']['get']('Users')['me'],_0x3d5cd5=_0x48891a['map'](_0x409e94=>new ot(_0x409e94['start'],_0x409e94['end'])),_0x31aaef=new Set();this['_trackingSessionId']&&(_0x5a0d54['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x339643,meta:_0x456280}of this['_findSuggestions'](_0x3d5cd5,'insertion'))_0x456280['isOwn']&&!_0x456280['isNextTo']&&_0x31aaef['add'](_0x339643);for(const _0x54490e of _0x31aaef)if(_0x54490e['isMultiRange']){const _0x43f48b=_0x54490e['getRanges']();if(_0x54490e['attributes']&&_0x54490e['attributes']['skipNestingCheck']||_0x43f48b['every'](_0x3e1dca=>_0x3d5cd5['some'](_0x25bc35=>_0x25bc35['containsRange'](_0x3e1dca,!0x0)))&&_0x54490e['discard'](),_0x3d5cd5['every'](_0x1f3e32=>_0x43f48b['some'](_0x249c0c=>_0x249c0c['containsRange'](_0x1f3e32,!0x0)))){const _0x46ca11=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c7569,'accept');return this['forceDefaultExecution'](()=>_0x46ca11(_0x48891a,null,_0x5a0d54)),null;}}else{const _0xd66958=_0x54490e['getFirstRange']();if(_0x3d5cd5['some'](_0x4b5452=>_0x4b5452['containsRange'](_0xd66958,!0x0))&&_0x54490e['discard'](),_0x3d5cd5['every'](_0x1d1cf3=>_0xd66958['containsRange'](_0x1d1cf3,!0x0))){const _0x3e2b98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c7569,'accept');return this['forceDefaultExecution'](()=>_0x3e2b98(_0x3d5cd5,null,_0x5a0d54)),null;}}const _0x276240=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c7569,'join');let _0x3732fc=null;for(const _0x5d6f5a of this['getSuggestions']())if(_0x5d6f5a['author']['id']==_0x3e41a3['id']&&_0x5d6f5a['isInContent']&&'deletion'==_0x5d6f5a['type']&&_0x5d6f5a['subType']==_0x2c7569&&pn(_0x5d6f5a,_0x5a0d54)&&(_0x276240(_0x5d6f5a['getRanges'](),_0x3d5cd5)||_0x276240(_0x3d5cd5,_0x5d6f5a['getRanges']()))){if(_0x3732fc){if(_0x5d6f5a['commentThread']&&_0x5d6f5a['commentThread']['length'])continue;for(const _0x58630d of _0x5d6f5a['getRanges']())_0x3732fc['isIntersectingWithRange'](_0x58630d)||_0x3732fc['addRange'](_0x58630d);_0x5d6f5a['removeMarkers']();}else{_0x3732fc=_0x5d6f5a;for(const _0x382d89 of _0x3d5cd5)_0x5d6f5a['isIntersectingWithRange'](_0x382d89)||_0x5d6f5a['addRange'](_0x382d89);}}if(_0x3732fc)return _0x3732fc;_0x31aaef['clear']();for(const {suggestion:_0x1ed1c3,meta:_0x38ba39}of this['_findSuggestions'](_0x3d5cd5,'deletion'))_0x38ba39['isOwn']&&(this['_mergeNestedSuggestions']||!_0x38ba39['containsRangeInObject']&&!_0x38ba39['isInsideObject'])&&pn(_0x1ed1c3,_0x5a0d54)&&_0x31aaef['add'](_0x1ed1c3);for(const _0x134a9e of _0x31aaef){const _0x11f775=_0x134a9e['getRanges']();if((!_0x5a0d54||!_0x5a0d54['skipNestingCheck'])&&_0x3d5cd5['every'](_0x2ec159=>_0x11f775['some'](_0x1b843a=>_0x1b843a['containsRange'](_0x2ec159,!0x0))))return _0x134a9e;_0x134a9e['attributes']&&_0x134a9e['attributes']['skipNestingCheck']||_0x11f775['every'](_0x1541e8=>_0x3d5cd5['some'](_0x22b490=>_0x22b490['containsRange'](_0x1541e8,!0x0)))&&_0x134a9e['discard']();}const _0x25821c=_0x51282a(),_0x36730e=_0x3e41a3['id'],_0x2f1373='deletion:'+_0x2c7569,_0x5019e4=this['_setSuggestionData']({'id':_0x25821c,'type':_0x2f1373,'createdAt':new Date(),'authorId':_0x36730e,'attributes':_0x5a0d54});for(const _0x325315 of _0x3d5cd5)_0x325315['detach'](),_0x325315['isCollapsed']||'$graveyard'==_0x325315['root']['rootName']||this['_addSuggestionMarker'](_0x2f1373,_0x25821c,_0x36730e,_0x325315,Mt['getMultiRangeId']());return _0x5019e4;}markAttributeChange(_0x3e5f06,_0x353b69,_0x31b98a,_0x5eea98,_0x3b2cb7){if(_0x3e5f06['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x419f51=this['editor']['plugins']['get']('Users')['me']['id'],_0x1abf27=Array['from'](this['_suggestions']['values']())['filter'](_0x580fd7=>'attribute'==_0x580fd7['type']&&_0x580fd7['data']['key']==_0x353b69&&_0x580fd7['isIntersectingWithRange'](_0x3e5f06));if(this['_trackingSessionId']&&(_0x3b2cb7['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x29388c=this['_findSuggestions'](_0x3e5f06,'insertion')['filter'](({meta:_0x10236b})=>_0x10236b['isOwn']&&!_0x10236b['isInsideObject']&&!_0x10236b['isNextTo'])['map'](({suggestion:_0x69f541})=>_0x69f541);_0x1abf27['unshift'](..._0x29388c);}const _0x5069e6=new Map([[_0x3e5f06,_0x31b98a]]);for(const _0x244556 of _0x1abf27){const _0x261e0f='attribute'==_0x244556['type']?_0x244556['data']['oldValue']:void 0x0,_0x5c51ad=_0x244556['getFirstRange'](),_0x2bc67=Array['from'](_0x5069e6['keys']())['find'](_0x346e5b=>_0x346e5b['isIntersecting'](_0x5c51ad));if(!_0x2bc67)continue;const _0x3c8220=_0x2bc67['getDifference'](_0x5c51ad);this['_suggestionsConversion']['isBlockAttribute'](_0x353b69)&&'insertion'==_0x244556['type']&&0x0!=_0x3c8220['length']||(_0x5069e6['delete'](_0x2bc67),_0x3c8220['forEach'](_0x2f89fa=>{_0x5069e6['set'](_0x2f89fa,_0x31b98a);}),'insertion'!=_0x244556['type']&&_0x261e0f!=_0x5eea98&&_0x5069e6['set'](_0x2bc67['getIntersection'](_0x5c51ad),_0x261e0f));}const _0x56c792=[];for(const [_0x5a1fbe,_0x224e01]of _0x5069e6){const _0x282651=_0x51282a(),_0x224d95={'key':_0x353b69,'oldValue':_0x224e01,'newValue':_0x5eea98};_0x353b69['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':_0x353b69});const _0x997feb=('attribute:'+_0x353b69+'|'+dn({'newValue':_0x5eea98}))['substring'](0x0,0x3c),_0x2fd388=this['_setSuggestionData']({'id':_0x282651,'type':_0x997feb,'data':_0x224d95,'createdAt':new Date(),'authorId':_0x419f51,'attributes':_0x3b2cb7});_0x56c792['push'](_0x2fd388),this['_addSuggestionMarker'](_0x997feb,_0x282651,_0x419f51,_0x5a1fbe);}return _0x56c792;}enableDefaultAttributesIntegration(_0x115239){this['enableCommand'](_0x115239,(_0x2d8f84,..._0x3e9d37)=>{this['recordAttributeChanges'](()=>{_0x2d8f84(..._0x3e9d37);});});}startTrackingSession(_0x5e5ce2){return this['_trackingSessionId']=void 0x0!==_0x5e5ce2?_0x5e5ce2:_0x51282a(),this['_trackingSessionId'];}_getAttributeKey(_0x5f3e2a){return'attribute'==_0x5f3e2a['type']?In(_0x5f3e2a['subType']):null;}_applyOperationsAsSuggestions(_0x111d9c){if(0x0==_0x111d9c['length'])return;const _0x4d6933=this['editor'],_0x4b06dc=_0x4d6933['plugins']['get'](_0x5ad44d),_0x412f1a=[],_0x3a7802=_0x19d9b1=>{const _0x223077=_0x19d9b1['_aiSource'];return _0x223077?{'@ai':{'type':_0x223077}}:{};},_0x4099ee=(_0x18fa37,_0x488600,_0x46561a)=>{for(let _0x36a1bb=_0x488600;_0x36a1bb<_0x18fa37['operations']['length'];_0x36a1bb++){const _0x462516=_0x18fa37['operations'][_0x36a1bb];'marker'===_0x462516['type']&&(_0x462516['_aiSource']=_0x46561a);}};_0x4d6933['model']['change'](_0x53d8d4=>{for(let _0x556746=0x0;_0x556746<_0x111d9c['length'];_0x556746++){const _0x12fb8f=_0x111d9c[_0x556746],_0xa96c0c=_0x12fb8f['_aiSource'],_0x12c573=_0x53d8d4['batch']['operations']['length'];if(_0x12fb8f['baseVersion']=_0x4d6933['model']['document']['version'],_0x12fb8f['isDocumentOperation']=!0x0,!_0x56ea0e(_0x12fb8f)){if(_0x4b06dc['isMarkedRemoveOperation'](_0x12fb8f)){const _0x1bbbc4=_0x38a61e(_0x12fb8f['newRange'],_0x4d6933['model']);_0x412f1a['unshift']({'range':ot['fromRange'](_0x1bbbc4),'opAttributes':_0x3a7802(_0x12fb8f),'aiSource':_0xa96c0c});}else{switch(_0x12fb8f['type']){case'rename':{const _0x1ff75c=_0x12fb8f['oldName'],_0x159b90=_0x12fb8f['newName'];if(_0x1ff75c==_0x159b90)break;_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f);const _0x13be71='$elementName',_0x39b552=_0x12fb8f['position'],_0x1cb68b=_0x4d6933['model']['createRange'](_0x39b552,_0x4d6933['model']['createPositionAt'](_0x39b552['nodeAfter'],'end'));this['markAttributeChange'](_0x1cb68b,_0x13be71,_0x1ff75c,_0x159b90,{..._0x3a7802(_0x12fb8f),'groupId':_0x51282a()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1d480d=_0x12fb8f['oldValue'],_0x59a261=_0x12fb8f['newValue'];if(_0x1d480d==_0x59a261)break;_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f);const _0x1cdbf7=_0x12fb8f['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1cdbf7))break;const _0x37f737=_0x38a61e(_0x12fb8f['range'],_0x4d6933['model']);this['markAttributeChange'](_0x37f737,_0x1cdbf7,_0x1d480d,_0x59a261,{..._0x3a7802(_0x12fb8f),'groupId':_0x51282a()});break;}case'insert':{if(_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f),_0x111d9c[_0x556746+0x1]&&'move'==_0x111d9c[_0x556746+0x1]['type'])break;const _0x1f53ef=_0x12fb8f['position'],_0x139aaa=_0x12fb8f['howMany'],_0x43ed1a=_0x38a61e(_0x4d6933['model']['createRange'](_0x1f53ef,_0x1f53ef['getShiftedBy'](_0x139aaa)),_0x4d6933['model']);this['markInsertion'](_0x43ed1a,null,{..._0x3a7802(_0x12fb8f)});break;}case'split':{_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f);const _0x26b96a=_0x12fb8f['splitPosition'],_0x1c7f23=_0x12fb8f['moveTargetPosition'],_0x17f6f2=_0x4d6933['model']['createRange'](_0x26b96a,_0x1c7f23);this['markInsertion'](_0x17f6f2,null,{..._0x3a7802(_0x12fb8f)});break;}case'move':case'remove':_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f);}_0xa96c0c&&_0x4099ee(_0x53d8d4['batch'],_0x12c573,_0xa96c0c);}}}for(const {range:_0x56dcb3,opAttributes:_0x416295,aiSource:_0xd9f974}of _0x412f1a){const _0xe44799=_0x53d8d4['batch']['operations']['length'];_0x56dcb3['detach'](),this['markDeletion'](_0x56dcb3,null,{..._0x416295}),_0xd9f974&&_0x4099ee(_0x53d8d4['batch'],_0xe44799,_0xd9f974);}});}_setSuggestionRange(_0x33e161,_0xa49044){const _0x2b9026=_0x33e161['getFirstMarker']();this['_model']['change'](_0x25800f=>{_0x25800f['updateMarker'](_0x2b9026,{'range':_0xa49044});});}_addThreadToSuggestion(_0x390428){const _0x14b3d6=_0x390428['id'],_0x3e6e56=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x14b3d6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3e6e56,'threadId':_0x14b3d6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x22e8d6=this['_commentsRepository']['getCommentThread'](_0x14b3d6);_0x22e8d6['unbind']('isRemovable'),_0x22e8d6['isRemovable']=!0x1,_0x390428['commentThread']=_0x22e8d6;}_checkSuggestionCorrectness(_0x2934f7,_0x182029,_0x3bc5a9,_0x3b8ebf){if(_0x2934f7['type']!=_0x182029||_0x2934f7['subType']!=_0x3bc5a9||_0x2934f7['creator']['id']!=_0x3b8ebf)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x551602('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x7b2ed,_0x1f20f2){const _0x2879e3=_0x7b2ed['getFirstRange']();if(_0x1f20f2['isEqual'](_0x2879e3))_0x7b2ed['removeMarkers']();else{if(_0x2879e3['containsRange'](_0x1f20f2)){const _0x4c607a=this['_model']['createPositionAt'](_0x1f20f2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7b2ed,this['_model']['createRange'](_0x2879e3['start'],_0x4c607a));const _0x270c32=_0x51282a(),_0x513a2d=_0x7b2ed['creator']['id'],_0x2ba146=_0x7b2ed['type']+':'+_0x7b2ed['subType'];this['_setSuggestionData']({'id':_0x270c32,'type':_0x2ba146,'createdAt':new Date(),'authorId':_0x513a2d,'data':_0x7b2ed['data'],'attributes':_0x7b2ed['attributes']});const _0x190275=this['_model']['createPositionAt'](_0x1f20f2['end']['parent'],'after'),_0xe8a053=this['_model']['createRange'](_0x190275,_0x2879e3['end']);this['_addSuggestionMarker'](_0x2ba146,_0x270c32,_0x513a2d,_0xe8a053);}else{if(_0x2879e3['containsPosition'](_0x1f20f2['start'])){const _0x5b37d2=this['_model']['createPositionAt'](_0x1f20f2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7b2ed,this['_model']['createRange'](_0x2879e3['start'],_0x5b37d2));}else{const _0x30473d=this['_model']['createPositionAt'](_0x1f20f2['end']['parent'],'after');this['_setSuggestionRange'](_0x7b2ed,this['_model']['createRange'](_0x30473d,_0x2879e3['end']));}}}}_rangeIsInLocalUserInsertion(_0xb3e6d4){for(const {suggestion:_0x5d5592,meta:_0x49c461}of this['_findSuggestions'](_0xb3e6d4,'insertion')){if(!_0x49c461['isOwn'])continue;const _0x10aff0=_0x5d5592['getRanges']();for(const _0x396729 of _0x10aff0)if(!_0xb3e6d4['getDifference'](_0x396729)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x53923a){return this['editor']['plugins']['get']('Users')['getUser'](_0x53923a);}_getExternalAuthor(_0x31c6ee){const _0x17d004=this['editor']['plugins']['get']('Users'),_0x288aff=_0x4156df('external:'+_0x31c6ee),_0x1190a6=_0x17d004['getUser'](_0x288aff);return _0x1190a6||_0x17d004['addUser']({'id':_0x288aff,'name':_0x31c6ee});}_createSuggestion(_0x9dd56a,_0x233ee5,_0x1eddb3,_0x1b12b4,_0x46785c,_0x2d656c){const _0x538924=this['_getAuthorFromId'](_0x1b12b4);if(!_0x538924)throw new _0x551602('track-changes-user-not-found',this,{'authorId':_0x1b12b4,'suggestionId':_0x1eddb3});const _0x26de39=this['_suggestionFactory']['buildSuggestion'](_0x9dd56a,_0x233ee5,_0x1eddb3,_0x538924,_0x46785c,_0x45bcb6=>{this['_updateSuggestionData'](_0x1eddb3,{'attributes':_0x45bcb6});const _0x315e10=this['getSuggestion'](_0x1eddb3);this['_joinWithAdjacentSuggestions'](new Set([_0x315e10])),this['_refreshSuggestionsChain'](new Set([_0x315e10]));},_0x2d656c);return this['listenTo'](_0x26de39,'accept',()=>{this['_updateSuggestionData'](_0x1eddb3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x26de39,'discard',()=>{this['_updateSuggestionData'](_0x1eddb3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1eddb3,_0x26de39),this['_suggestionState']['set'](_0x26de39,'notReady'),_0x26de39;}_breakSuggestionMarker(_0x22d2fc,_0x523ef7,_0x4f6417){const _0x4243fc=_0x22d2fc['getFirstRange'](),_0x5de7fb=_0x4243fc['start'],_0x458ead=_0x4243fc['end'];this['_setSuggestionRange'](_0x22d2fc,this['_model']['createRange'](_0x5de7fb,_0x523ef7));const _0x35b973=_0x51282a(),_0x1b8a9d=_0x22d2fc['creator']['id'],_0x1edb0e=_0x22d2fc['type']+(_0x22d2fc['subType']?':'+_0x22d2fc['subType']:'');this['_setSuggestionData']({'id':_0x35b973,'type':_0x1edb0e,'createdAt':new Date(),'authorId':_0x1b8a9d,'originalSuggestionId':_0x22d2fc['_originalSuggestionId']||_0x22d2fc['id'],'attributes':_0x22d2fc['attributes'],'data':_0x22d2fc['data']});const _0x1b28d4=this['_getAttributeKey'](_0x22d2fc);('formatBlock'==_0x22d2fc['type']||_0x1b28d4&&this['_suggestionsConversion']['isBlockAttribute'](_0x1b28d4))&&(_0x4f6417=this['_model']['createPositionBefore'](_0x4f6417['parent'])),this['_addSuggestionMarker'](_0x1edb0e,_0x35b973,_0x1b8a9d,this['_model']['createRange'](_0x4f6417,_0x458ead));}_findSuggestions(_0x14afa4,_0x3cac7c=null){const _0x1028f4=[],_0x371c2d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14afa4)||(_0x14afa4=[_0x14afa4]);for(const _0x5c7e91 of this['getSuggestions']()){if(!_0x5c7e91['isInContent'])continue;if(_0x3cac7c&&_0x5c7e91['type']!=_0x3cac7c)continue;let _0x263a91=!0x1;for(const _0x270e5e of _0x5c7e91['getRanges']()){for(const _0x3b8410 of _0x14afa4){const _0x592d6f=_0x3b8410['start']['isEqual'](_0x270e5e['end'])||_0x3b8410['end']['isEqual'](_0x270e5e['start']);if(_0x592d6f||_0x3b8410['getIntersection'](_0x270e5e)){const _0x226e00=_0x3b8410['containsRange'](_0x270e5e)&&cn(this['_model']['schema'],_0x270e5e['start'],_0x3b8410),_0x1c74bf=_0x270e5e['containsRange'](_0x3b8410)&&cn(this['_model']['schema'],_0x3b8410['start'],_0x270e5e);_0x1028f4['push']({'suggestion':_0x5c7e91,'meta':{'isOwn':_0x371c2d==_0x5c7e91['author'],'isNextTo':_0x592d6f,'isInsideObject':_0x226e00,'containsRangeInObject':_0x1c74bf}}),_0x263a91=!0x0;break;}}if(_0x263a91)break;}}return _0x1028f4;}_addSuggestionMarker(_0x357dec,_0x21b2f5,_0x11ab4e,_0x52bc44,_0x57b803){this['_model']['change'](_0x219317=>{let _0xbb661e='suggestion:'+_0x357dec+':'+_0x21b2f5+':'+_0x11ab4e;_0x57b803&&(_0xbb661e=_0xbb661e+':'+_0x57b803),_0x219317['addMarker'](_0xbb661e,{'range':_0x52bc44,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x19277d){const _0x3e700c=_0x19277d['previous'],_0x330d2f=_0x19277d['next'];_0x19277d['previous']=null,_0x19277d['next']=null,null!=_0x3e700c&&_0x3e700c['next']==_0x19277d&&(_0x3e700c['next']=_0x330d2f),null!=_0x330d2f&&_0x330d2f['previous']==_0x19277d&&(_0x330d2f['previous']=_0x3e700c),'ready'==this['_suggestionState']['get'](_0x19277d)&&(this['_suggestionState']['set'](_0x19277d,'removed'),this['fire']('suggestionUnloaded',_0x19277d,_0x3e700c,_0x330d2f));}_setSuggestionData(_0x4e0023){const _0x2c1e60=_0x4e0023['id'],_0x41cda8=this['addSuggestionData'](_0x4e0023);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x42da75=this['editor']['plugins']['get']('PendingActions'),_0x41abe9=_0x41cda8['hasComments'],_0x384635=_0x41cda8['subType']?_0x41cda8['type']+':'+_0x41cda8['subType']:_0x41cda8['type'],_0x4545b0=this['editor']['locale'],_0x141d13=_0x42da75['add'](Ot(_0x4545b0,'PENDING_ACTION_SUGGESTION')),_0xec9ac6={'id':_0x2c1e60,'type':_0x384635,'hasComments':_0x41abe9,'data':_0x4e0023['data']||null,'originalSuggestionId':_0x4e0023['originalSuggestionId']||null,'attributes':_0x41cda8['attributes']};this['_adapter']['addSuggestion'](_0xec9ac6)['then'](_0x591881=>{_0x41cda8['_saved']=!0x0,_0x42da75['remove'](_0x141d13),_0x591881&&_0x591881['createdAt']&&(this['_suggestions']['get'](_0x2c1e60)['createdAt']=_0x591881['createdAt']);})['catch'](_0x79b81d=>{throw _0x57e45c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x41cda8['discard']();}),_0x41cda8['stopListening'](),this['_suggestions']['delete'](_0x41cda8['id']),this['_suggestionState']['delete'](_0x41cda8),_0x79b81d;});}return _0x41cda8;}_updateSuggestionData(_0x32355a,_0x2055a7){const _0x552ec0=this['editor']['plugins']['get']('PendingActions'),_0x394ea5=this['getSuggestion'](_0x32355a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x394ea5['_saved']){const _0x189fca=_0x552ec0['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x32355a,_0x2055a7)['then'](()=>{_0x552ec0['remove'](_0x189fca);});}else _0x394ea5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x32355a,_0x2055a7);});}}_getSuggestionData(_0x5c2546){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x551602('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5c2546);}_handleNewSuggestionMarker(_0x2a032c){const {id:_0x49bbbf,type:_0x2d3704,subType:_0x176ce2,authorId:_0xf7cd71}=et(_0x2a032c),_0x52e755=this['_suggestions']['get'](_0x49bbbf)||this['_createSuggestion'](_0x2d3704,_0x176ce2,_0x49bbbf,_0xf7cd71,{});switch(this['_checkSuggestionCorrectness'](_0x52e755,_0x2d3704,_0x176ce2,_0xf7cd71),this['_suggestionState']['get'](_0x52e755)){case'notReady':this['_getSuggestionData'](_0x49bbbf)['then'](_0x1a8198=>{let _0x29ef86=Promise['resolve']();_0x1a8198['hasComments']&&(_0x29ef86=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x49bbbf})),_0x29ef86['then'](()=>{this['addSuggestionData'](_0x1a8198)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x52e755,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x49bbbf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x52e755,'ready'),this['fire']('suggestionLoaded',_0x52e755);break;case'ready':this['fire']('suggestionChanged',_0x52e755);}return _0x52e755['addMarkerName'](_0x2a032c),_0x52e755;}_refreshSuggestionsChain(_0x35b505){const _0x4bb3c1=Array['from'](_0x35b505),_0x2faf12=_0x4bb3c1['filter'](_0x39c76d=>'attribute'==_0x39c76d['type']);this['_refreshAttributeSuggestionsChain'](_0x2faf12);const _0x4d19ea=_0x4bb3c1['filter'](_0x842d0d=>!_0x842d0d['isMultiRange']&&'attribute'!=_0x842d0d['type']),_0x484785=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73b8d1=>!_0x73b8d1['isMultiRange']&&'attribute'!=_0x73b8d1['type']),_0x5663be=_0x484785['filter'](_0x40002e=>!_0x35b505['has'](_0x40002e)),_0x40852d=new Map(_0x484785['map'](_0x2a86a4=>[_0x2a86a4,this['_suggestionFactory']['getSuggestionCallback'](_0x2a86a4['type'],_0x2a86a4['subType'],'chain')])),_0x8a5b90=new Map(_0x484785['map'](_0x31b1b0=>[_0x31b1b0,_0x31b1b0['getFirstRange']()])),_0x4394e3=new Set(),_0x84f055=new Set();for(let _0x4af207=0x0;_0x4af207<_0x4d19ea['length'];_0x4af207++)_0x1b45fb(_0x4d19ea[_0x4af207],_0x4d19ea,_0x4af207+0x1);for(let _0x2123b6=0x0;_0x2123b6<_0x4d19ea['length'];_0x2123b6++)_0x1b45fb(_0x4d19ea[_0x2123b6],_0x5663be,0x0);const _0x2c80b7=new Set();for(let _0x7fede=0x0;_0x7fede<_0x4d19ea['length'];_0x7fede++){const _0xa9b17c=_0x4d19ea[_0x7fede];!_0x84f055['has'](_0xa9b17c)&&_0xa9b17c['previous']&&(_0x2c80b7['add'](_0xa9b17c['previous']),_0xa9b17c['previous']['next']===_0xa9b17c&&(_0xa9b17c['previous']['next']=null),_0xa9b17c['previous']=null),!_0x4394e3['has'](_0xa9b17c)&&_0xa9b17c['next']&&(_0x2c80b7['add'](_0xa9b17c['next']),_0xa9b17c['next']['previous']===_0xa9b17c&&(_0xa9b17c['next']['previous']=null),_0xa9b17c['next']=null);}function _0x1b45fb(_0x597f65,_0x2e2d6d,_0x402beb){for(let _0x5e897a=_0x402beb;_0x5e897a<_0x2e2d6d['length'];_0x5e897a++){const _0x56e8f2=_0x18b938(_0x597f65,_0x2e2d6d[_0x5e897a]);_0x56e8f2&&(_0x56e8f2[0x0]['next']=_0x56e8f2[0x1],_0x56e8f2[0x1]['previous']=_0x56e8f2[0x0],_0x4394e3['add'](_0x56e8f2[0x0]),_0x84f055['add'](_0x56e8f2[0x1]));}}function _0x18b938(_0x5aa61b,_0x4cf247){if(_0x5aa61b['author']['id']!==_0x4cf247['author']['id'])return null;const _0x7ddc7d=_0x40852d['get'](_0x5aa61b)(_0x5aa61b,_0x4cf247,_0x8a5b90['get'](_0x5aa61b),_0x8a5b90['get'](_0x4cf247));return _0x7ddc7d&&_0x40852d['get'](_0x4cf247)(_0x5aa61b,_0x4cf247,_0x8a5b90['get'](_0x5aa61b),_0x8a5b90['get'](_0x4cf247))?_0x7ddc7d[0x1]['commentThread']&&_0x7ddc7d[0x1]['commentThread']['length']?null:_0x7ddc7d:null;}_0x2c80b7['size']&&this['_refreshSuggestionsChain'](_0x2c80b7);}_refreshAttributeSuggestionsChain(_0x4ebe9e){if(0x0==_0x4ebe9e['length'])return;const _0x13ddc2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d81cf=>'attribute'==_0x2d81cf['type']&&_0x2d81cf['_isDataLoaded']),_0x1de09a=[],_0x1a252d=new Map();for(const _0x278a5e of _0x13ddc2){const _0x126f74=_0x4156df(_0x278a5e['attributes']);_0x1a252d['has'](_0x126f74)||(_0x1a252d['set'](_0x126f74,_0x1de09a['length']),_0x1de09a['push']([])),_0x1de09a[_0x1a252d['get'](_0x126f74)]['push'](_0x278a5e);}!(function(){_0x1de09a['sort']((_0x1dbde1,_0x4d34c0)=>{const _0x2bb859=_0x1dbde1[0x0]['createdAt'],_0x1ce416=_0x4d34c0[0x0]['createdAt'];return _0x2bb859==_0x1ce416?_0x1dbde1[0x0]['attributes']['groupId']<_0x4d34c0[0x0]['attributes']['groupId']?-0x1:0x1:_0x2bb859<_0x1ce416?-0x1:0x1;});for(const _0x58b9d1 of _0x1de09a)_0x58b9d1['sort']((_0x6e2ad8,_0x51785a)=>_0x6e2ad8['id']<_0x51785a['id']?-0x1:0x1);}());for(let _0x1778aa=0x0;_0x1778aa<_0x1de09a['length'];_0x1778aa++){if(0x0==_0x1de09a[_0x1778aa]['length'])continue;const _0x409028=[];for(let _0x538188=_0x1778aa+0x1;_0x538188<_0x1de09a['length'];_0x538188++)0x0!=_0x1de09a[_0x538188]['length']&&_0x4e6aee(_0x1de09a[_0x1778aa],_0x1de09a[_0x538188])&&_0x409028['push'](_0x538188);for(const _0x550c77 of _0x409028)_0x1de09a[_0x1778aa]=_0x1de09a[_0x1778aa]['concat'](_0x1de09a[_0x550c77]),_0x1de09a[_0x550c77]=[];}for(const _0x53bada of _0x1de09a)for(let _0x55fda2=0x0;_0x55fda2<_0x53bada['length'];_0x55fda2++){const _0x5b4cc0=_0x53bada[_0x55fda2+0x1]||null;_0x53bada[_0x55fda2]['next']!==_0x5b4cc0&&(_0x53bada[_0x55fda2]['next']=_0x5b4cc0);}for(const _0x13e51c of _0x1de09a)for(let _0x525f45=0x0;_0x525f45<_0x13e51c['length'];_0x525f45++){const _0x1e9de5=_0x13e51c[_0x525f45-0x1]||null;_0x13e51c[_0x525f45]['previous']!==_0x1e9de5&&(_0x13e51c[_0x525f45]['previous']=_0x1e9de5);}function _0x4e6aee(_0x349f89,_0x3dbb8e){return(_0x349f89[0x0]['attributes']['groupId']===_0x3dbb8e[0x0]['attributes']['groupId']||_0x349f89[0x0]['author']===_0x3dbb8e[0x0]['author'])&&(!!function(_0x1664df,_0x5312ad){return!_0x1664df['hasComments']&&!_0x5312ad['hasComments']||(!_0x1664df['hasComments']||!_0x5312ad['hasComments'])&&(!!(_0x1664df['hasComments']&&_0x5312ad['createdAt']<_0x1664df['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x5312ad['hasComments']&&_0x1664df['createdAt']<_0x5312ad['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x349f89[0x0],_0x3dbb8e[0x0])&&(!!lt(ut(_0x349f89[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x3dbb8e[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x349f89[0x0]['attributes']['groupId']==_0x3dbb8e[0x0]['attributes']['groupId']||_0x349f89[0x0]['attributes']['trackingSessionId']===_0x3dbb8e[0x0]['attributes']['trackingSessionId']&&(!!_0x349f89['every'](_0x5b9c3b=>_0x3dbb8e['some'](_0x1efe82=>_0x5b9c3b['getFirstRange']()['isEqual'](_0x1efe82['getFirstRange']())))&&_0x3dbb8e['every'](_0x26573b=>_0x349f89['some'](_0x102af0=>_0x26573b['getFirstRange']()['isEqual'](_0x102af0['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x5d708b){const _0x177d00=Array['from'](_0x5d708b),_0x50dca5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f3522=_0x50dca5['filter'](_0x6ae227=>!_0x5d708b['has'](_0x6ae227)),_0x580bf2=new Map(_0x177d00['map'](_0x2e7235=>[_0x2e7235,this['_suggestionFactory']['getSuggestionCallback'](_0x2e7235['type'],_0x2e7235['subType'],'join')])),_0x60f0a9=new Map(_0x50dca5['map'](_0x3f8d54=>[_0x3f8d54,_0x3f8d54['getRanges']()]));for(let _0x271b7b=0x0;_0x271b7b<_0x177d00['length'];_0x271b7b++)if(_0x431806(this,_0x177d00[_0x271b7b],_0x177d00,_0x271b7b+0x1))return!0x0;for(let _0x5a4f41=0x0;_0x5a4f41<_0x177d00['length'];_0x5a4f41++)if(_0x431806(this,_0x177d00[_0x5a4f41],_0x3f3522,0x0))return!0x0;return!0x1;function _0x431806(_0x565465,_0x1207d1,_0x40dd28,_0x528389){for(let _0x5a5dd7=_0x528389;_0x5a5dd7<_0x40dd28['length'];_0x5a5dd7++){const _0x6c579c=_0x40dd28[_0x5a5dd7];if(_0x6c579c['type']!==_0x1207d1['type']||_0x6c579c['author']['id']!==_0x1207d1['author']['id']||_0x6c579c['subType']!==_0x1207d1['subType'])continue;if(!_n(_0x1207d1,_0x6c579c))continue;if('attribute'==_0x1207d1['type']&&_0x1207d1['data']['oldValue']!=_0x6c579c['data']['oldValue'])continue;if('attribute'==_0x1207d1['type']&&_0x565465['_suggestionsConversion']['isBlockAttribute'](_0x1207d1['data']['key']))continue;if('formatBlock'==_0x1207d1['type']){const _0x3f7f7e=_0x565465['editor']['model'],_0x3192a5=_0x1207d1['getContainedElement']();if(_0x3192a5&&(_0x3f7f7e['schema']['isObject'](_0x3192a5)||_0x3f7f7e['schema']['isLimit'](_0x3192a5)))continue;}const _0x505eaf=_0x580bf2['get'](_0x1207d1),_0x26068e=_0x60f0a9['get'](_0x1207d1),_0x46658d=_0x60f0a9['get'](_0x6c579c),_0xa0cced=_0x1207d1['commentThread']&&_0x1207d1['commentThread']['length'],_0x4afb4b=_0x6c579c['commentThread']&&_0x6c579c['commentThread']['length'];if(!_0xa0cced&&_0x505eaf(_0x46658d,_0x26068e))return _0x565465['_joinSuggestions'](_0x6c579c,_0x1207d1),_0x60f0a9['delete'](_0x1207d1),!0x0;if(!_0x4afb4b&&_0x505eaf(_0x26068e,_0x46658d))return _0x565465['_joinSuggestions'](_0x1207d1,_0x6c579c),_0x60f0a9['delete'](_0x6c579c),!0x0;}return!0x1;}}_joinSuggestions(_0x42f054,_0x25a09d){if(_0x42f054['isMultiRange']){for(const _0x485489 of _0x25a09d['getRanges']())_0x42f054['addRange'](_0x485489);}else{const _0x1e5c6c=_0x25a09d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x42f054,this['_model']['createRange'](_0x42f054['getFirstRange']()['start'],_0x1e5c6c));}_0x25a09d['removeMarkers']();}_getMarkerAnnouncementText(_0x3efdc2,_0x1f47aa,_0x2256ef){const _0x4bfd8c=_0x3efdc2['startsWith']('format')||_0x3efdc2['startsWith']('attribute')?'FORMATTING':_0x3efdc2['toUpperCase']();return Ot(this['editor']['locale'],_0x1f47aa+'_'+_0x4bfd8c+'_SUGGESTION_ANNOUNCEMENT',_0x2256ef);}_initAriaMarkerChangeAnnouncements(){const _0x4bc1fe=this['editor'];if(!_0x4bc1fe['ui'])return;const {ariaLiveAnnouncer:_0x51e106}=_0x4bc1fe['ui'];nt(this['_model'],({left:_0x22f079,entered:_0x51b9cc})=>{for(const _0x12b214 of _0x22f079){const {group:_0x5a8f34,type:_0x31f4b3}=et(_0x12b214['name']);if('suggestion'===_0x5a8f34){_0x51e106['announce'](this['_getMarkerAnnouncementText'](_0x31f4b3,'LEAVE'));break;}}for(const _0x3d284c of _0x51b9cc){const {group:_0x148cad,type:_0x336d1b}=et(_0x3d284c['name']);if('suggestion'===_0x148cad){_0x51e106['announce'](this['_getMarkerAnnouncementText'](_0x336d1b,'ENTER',_0x2d824e(_0xe738f5)));break;}}});}_processAttributeChanges(_0x2c0a86){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2955ae=this['editor'],_0x582da6=_0x2955ae['model']['document']['differ']['getChanges']();if(0x0==_0x582da6['length'])return!0x1;const _0x25d7e2=[],_0x167c90=_0x582da6['filter'](_0x158530=>'attribute'==_0x158530['type']),_0x127766=_0x582da6['filter'](_0x48fef0=>'insert'==_0x48fef0['type']&&'$text'!=_0x48fef0['name']),_0xb405c2=_0x582da6['filter'](_0x405eae=>'remove'==_0x405eae['type']&&'$text'!=_0x405eae['name']);for(const _0x181cc8 of _0x167c90)_0x25d7e2['push']({'key':_0x181cc8['attributeKey'],'newValue':_0x181cc8['attributeNewValue'],'oldValue':_0x181cc8['attributeOldValue'],'range':mn(_0x181cc8['range'],_0x2955ae['model'])});for(const _0x5376bd of _0x127766){const _0x3ac071=_0xb405c2['find'](_0x21321d=>_0x21321d['position']['isEqual'](_0x5376bd['position']));_0x3ac071&&_0x25d7e2['push']({'key':rn,'newValue':_0x5376bd['name'],'oldValue':_0x3ac071['name'],'range':_0x2955ae['model']['createRangeOn'](_0x5376bd['position']['nodeAfter'])});}return 0x0!=_0x25d7e2['length']&&this['_reduceExistingSuggestions'](_0x2c0a86,_0x25d7e2);}_processAttributeSuggestions(_0x15ee2c){let _0x3a40f6=!0x1;const _0x1776a5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ab8c8=>_0x3ab8c8['data']['newRange']&&_0x3ab8c8['name']['startsWith']('suggestion:attribute:'));for(const _0x2e1d51 of _0x1776a5){const {subType:_0xca567,id:_0x50b7b0}=et(_0x2e1d51['name']),_0xbe922c=_0xca567['split']('|')[0x0];for(const _0x505fd5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x505fd5['id']!=_0x50b7b0&&'attribute'==_0x505fd5['type']&&_0x505fd5['data']&&_0x505fd5['data']['key']==_0xbe922c&&_0x505fd5['getFirstRange']()['isIntersecting'](_0x2e1d51['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x505fd5,_0x2e1d51['data']['newRange'],_0x15ee2c),_0x3a40f6=!0x0);}return _0x3a40f6;}recordAttributeChanges(_0x26e197){this['_recordAttributeSuggestions']=!0x0,_0x26e197();}_reduceExistingSuggestions(_0x1115bd,_0x54efdd){if(0x0==_0x54efdd['length'])return!0x1;let _0x449d8b=!0x1;for(const _0x25b9e9 of _0x54efdd){const _0x340396=this['_findSuggestions'](_0x25b9e9['range'],'attribute')['filter'](_0x37fa3c=>!_0x37fa3c['meta']['isNextTo'])['map'](_0x535ac1=>_0x535ac1['suggestion']),_0x3a3a68=_0x4156df({'newValue':_0x25b9e9['newValue']});_0x340396['filter'](_0x2f28fb=>{const [_0xf7d5d9,_0x37ca25]=_0x2f28fb['subType']['split']('|');return _0xf7d5d9==_0x25b9e9['key']&&_0x37ca25!=_0x3a3a68;})['forEach'](_0x45b2bc=>{this['_reduceSuggestionAttributeRange'](_0x45b2bc,_0x25b9e9['range'],_0x1115bd),_0x449d8b=!0x0;});}return _0x449d8b;}_reduceSuggestionAttributeRange(_0x5cc3bd,_0x4fe77d,_0x520c34){const _0x313bcd=_0x5cc3bd['getFirstRange']()['getDifference'](_0x4fe77d);0x0!==_0x313bcd['length']?0x1!==_0x313bcd['length']?this['_breakSuggestionMarker'](_0x5cc3bd,_0x4fe77d['start'],_0x4fe77d['end']):this['_setSuggestionRange'](_0x5cc3bd,_0x313bcd[0x0]):_0x520c34['removeMarker'](_0x5cc3bd['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4ba592){this['_editor']=_0x4ba592,this['_model']=_0x4ba592['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x46528b,_0xab4431,_0x2ee5fc,_0x43a6e4,_0x4e4bfe,_0xff4710,_0x391af8){return new Mt(this['_model'],{'type':_0x46528b,'subType':_0xab4431,'id':_0x2ee5fc,'originalSuggestionId':_0x391af8,'author':_0x43a6e4,'creator':_0x43a6e4,'attributes':_0x4e4bfe,'onAttributesChange':_0xff4710,'onAccept':(..._0x1dbbcb)=>this['getSuggestionCallback'](_0x46528b,_0xab4431,'accept')(..._0x1dbbcb),'onDiscard':(..._0x43c2e7)=>this['getSuggestionCallback'](_0x46528b,_0xab4431,'discard')(..._0x43c2e7)});}registerCustomCallback(_0x321e49,_0x5f36cd,_0x29a862,_0x2d62c2){const _0x23907e=_0x321e49+':'+_0x5f36cd+':'+_0x29a862;this['_customCallbacks']['set'](_0x23907e,_0x2d62c2);}getSuggestionCallback(_0xedda2f,_0x56ee06,_0x1705fb){const _0x2bbf6d=_0xedda2f+':'+_0x56ee06+':'+_0x1705fb;return this['_customCallbacks']['get'](_0x2bbf6d)||this['_defaultCallbacks']['get'](_0xedda2f+':'+_0x1705fb);}_registerDefaultCallbacks(){const _0x55cf3a=()=>!0x1,_0x3b1f99=_0x453ce2=>{_0x453ce2['sort']((_0x36be94,_0x49f557)=>_0x36be94['start']['isBefore'](_0x49f557['start'])?0x1:-0x1),this['_model']['change'](_0x237b31=>{for(const _0x6b26ba of _0x453ce2){let _0x1dfbee;_0x1dfbee=_0x6b26ba['end']['isAtEnd']&&_0x6b26ba['end']['parent']==_0x6b26ba['start']['nodeAfter']?_0x237b31['createSelection'](_0x6b26ba['start']['nodeAfter'],'on'):_0x237b31['createSelection'](_0x6b26ba),this['_model']['deleteContent'](_0x1dfbee,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x51608d=(_0x18dd12,_0x58afe7)=>{_0x58afe7&&this['_model']['change'](_0x5038cc=>{const {commandName:_0x336e99,commandParams:_0x18f9b9=[]}=_0x58afe7,_0x2067ec=_0x18dd12['map'](_0x16563e=>(ln(_0x16563e)&&(_0x16563e=this['_model']['createRange'](_0x16563e['end'])),_0x16563e))['filter'](_0x13e735=>'$graveyard'!==_0x13e735['root']['rootName']);if(_0x2067ec['length']<0x1)return;const _0x3e3f46=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x38a6c2=>ot['fromRange'](_0x38a6c2));_0x5038cc['setSelection'](_0x2067ec);for(const _0x54b9e1 of this['_editor']['commands']['commands']())_0x54b9e1['refresh']();_0x18f9b9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x336e99,..._0x18f9b9);const _0x238efa=_0x3e3f46['filter'](_0x2be2f1=>'$graveyard'!=_0x2be2f1['root']['rootName']);_0x238efa['length']>0x0&&_0x5038cc['setSelection'](_0x238efa);for(const _0x1493de of _0x3e3f46)_0x1493de['detach']();});},_0x17c730=(_0x53ebfa,_0xc465b)=>0x1==_0x53ebfa['length']&&0x1==_0xc465b['length']&&_0x53ebfa[0x0]['end']['isEqual'](_0xc465b[0x0]['start']),_0x424c22=(_0xed4a3e,_0xb863e3,_0x25c2ba,_0x11a3fe)=>Tn(_0xed4a3e,_0xb863e3,_0x25c2ba,_0x11a3fe)?[_0xed4a3e,_0xb863e3]:Tn(_0xb863e3,_0xed4a3e,_0x11a3fe,_0x25c2ba)?[_0xb863e3,_0xed4a3e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x55cf3a),this['_defaultCallbacks']['set']('insertion:discard',_0x3b1f99),this['_defaultCallbacks']['set']('insertion:join',_0x17c730),this['_defaultCallbacks']['set']('insertion:chain',_0x424c22),this['_defaultCallbacks']['set']('deletion:accept',_0x3b1f99),this['_defaultCallbacks']['set']('deletion:discard',_0x55cf3a),this['_defaultCallbacks']['set']('deletion:join',_0x17c730),this['_defaultCallbacks']['set']('deletion:chain',_0x424c22),this['_defaultCallbacks']['set']('formatInline:accept',_0x51608d),this['_defaultCallbacks']['set']('formatInline:discard',_0x55cf3a),this['_defaultCallbacks']['set']('formatInline:join',_0x17c730),this['_defaultCallbacks']['set']('formatInline:chain',_0x55cf3a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x51608d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x55cf3a),this['_defaultCallbacks']['set']('formatBlock:join',_0x17c730),this['_defaultCallbacks']['set']('formatBlock:chain',_0x55cf3a),this['_defaultCallbacks']['set']('attribute:accept',_0x55cf3a),this['_defaultCallbacks']['set']('attribute:discard',(_0x532845,_0x405171)=>{if(!_0x405171)return;const _0x3e525d=this['_editor']['plugins']['get'](_0x323228);this['_model']['change'](_0x283946=>{if('$elementName'==_0x405171['key'])for(const _0x2bbbb7 of _0x532845){const _0x48bfa8=_0x2bbbb7['start']['nodeAfter'],_0x4bd64b=_0x405171['oldValue'];_0x283946['rename'](_0x48bfa8,_0x4bd64b);}else{if(_0x3e525d['isBlockAttribute'](_0x405171['key'])){for(const _0x5c212e of _0x532845)void 0x0!==_0x405171['oldValue']?_0x283946['setAttribute'](_0x405171['key'],_0x405171['oldValue'],_0x5c212e['start']['nodeAfter']):_0x283946['removeAttribute'](_0x405171['key'],_0x5c212e['start']['nodeAfter']);}else{for(const _0x3ff42d of _0x532845)_0x405171['oldValue']?_0x283946['setAttribute'](_0x405171['key'],_0x405171['oldValue'],_0x3ff42d):_0x283946['removeAttribute'](_0x405171['key'],_0x3ff42d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x17c730);}};function cn(_0x3bce18,_0x4f5402,_0x5489d0){for(const _0x4cde7f of _0x4f5402['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4cde7f['root']==_0x4cde7f)return!0x1;if(!_0x5489d0['containsItem'](_0x4cde7f))return!0x1;if(_0x3bce18['isObject'](_0x4cde7f)||_0x3bce18['isLimit'](_0x4cde7f))return!0x0;}return!0x1;}function ln(_0xef9755){return _0xef9755['end']['parent']==_0xef9755['start']['nodeAfter']&&_0xef9755['end']['isAtStart'];}function un(_0x463007,_0x4d2d31,_0x561c73,_0x333715){const _0x3c1bad=_0x1fad70=>!_0x1fad70['item']['is']('$textProxy')&&!_0x333715['isObject'](_0x1fad70['item']),_0x5217eb=_0x463007['start']['getLastMatchingPosition'](_0x3c1bad),_0xa44582=_0x463007['end']['getLastMatchingPosition'](_0x3c1bad,{'direction':'backward'});return(!_0x463007['start']['isEqual'](_0x5217eb)||!_0x463007['end']['isEqual'](_0xa44582))&&(_0x5217eb['isBefore'](_0xa44582)?_0x561c73['updateMarker'](_0x4d2d31,{'range':_0x561c73['createRange'](_0x5217eb,_0xa44582)}):_0x561c73['removeMarker'](_0x4d2d31),!0x0);}function dn(_0x347b31){return _0x4156df(_0x347b31);}function hn(_0x5bc3a9){const _0x4eb3dc=_0x5bc3a9['start']['nodeAfter'];return _0x4eb3dc&&_0x4eb3dc['is']('element');}function gn(_0x1d8019){return ln(_0x1d8019)||function(_0xf322a2){return _0xf322a2['start']['parent']==_0xf322a2['end']['nodeBefore']&&_0xf322a2['start']['isAtEnd'];}(_0x1d8019);}function fn(_0x32aefb,_0x2ffae7){try{const _0x174800=_0x32aefb['getRange']();for(const _0x5c1403 of _0x2ffae7)if(_0x32aefb!==_0x5c1403&&_0x174800&&_0x174800['isIntersecting'](_0x5c1403['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0xcaf51e,_0x475199){return null==_0xcaf51e['end']['nodeBefore']&&_0xcaf51e['end']['parent']==_0xcaf51e['start']['nodeAfter']?En(_0xcaf51e['start']['nodeAfter'],_0x475199):_0xcaf51e;}function En(_0x336668,_0x62c7e6){const _0x1bc0a8=_0x62c7e6['schema']['isObject'](_0x336668)||_0x62c7e6['schema']['isSelectable'](_0x336668);return _0x62c7e6['createRange'](_0x62c7e6['createPositionAt'](_0x336668,'before'),_0x1bc0a8?_0x62c7e6['createPositionAfter'](_0x336668):_0x62c7e6['createPositionAt'](_0x336668,'end'));}function Tn(_0x3b6a6c,_0xb4392f,_0x46a204,_0x53ea02){return!!_n(_0x3b6a6c,_0xb4392f)&&_0x46a204['end']['isEqual'](_0x53ea02['start']);}function _n(_0x20a43c,_0x13a952){if(!_0x20a43c['_isDataLoaded']||!_0x13a952['_isDataLoaded'])return!0x1;const _0xef9637=new Set(Object['keys'](_0x20a43c['attributes'])),_0x5990d7=new Set(Object['keys'](_0x13a952['attributes']));if(_0xef9637['delete']('groupId'),_0x5990d7['delete']('groupId'),0x0==_0xef9637['size']&&0x0==_0x5990d7['size'])return!0x0;if(_0xef9637['size']!=_0x5990d7['size'])return!0x1;const _0x1300dc={..._0x20a43c['attributes']},_0x2925cd={..._0x13a952['attributes']};return delete _0x1300dc['groupId'],delete _0x2925cd['groupId'],JSON['stringify'](_0x1300dc)==JSON['stringify'](_0x2925cd);}function pn(_0xa98be5,_0x281556){const _0x2b2f80=Ln(_0xa98be5['attributes']),_0x5ddbe3=Ln(_0x281556);if(!_0xa98be5['_isDataLoaded'])return!0x1;if(!lt(_0x2b2f80['@ai'],_0x5ddbe3['@ai']))return!0x1;for(const _0x14933c of Object['keys'](_0x5ddbe3))if(!lt(_0x2b2f80[_0x14933c],_0x5ddbe3[_0x14933c]))return!0x1;return!0x0;}function Ln(_0x3b2cf1){const _0x47403d=Object['assign']({},_0x3b2cf1);return delete _0x47403d['skipNestingCheck'],delete _0x47403d['tablePasteChainId'],_0x47403d;}function In(_0x1c0023){return _0x1c0023['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
+ _0x561130();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x54c251,_0x1abc31,_0x71787,_0x46713c){super(),this['model']=_0x1abc31,this['view']=_0x71787,this['commentThreadController']=_0x46713c,this['_editor']=_0x54c251,this['_acceptCommand']=_0x54c251['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x54c251['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2d3ae7,_0xc83644)=>_0x2d3ae7||_0xc83644),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x43a5ca=>_0x43a5ca&&this['_editor']['model']['canEditAt'](_0x1abc31['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1e57e7=>_0x1e57e7&&this['_editor']['model']['canEditAt'](_0x1abc31['getRanges']())),this['_pendingAction']=null,_0x71787['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x71787,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x71787,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x71787,'change:isDirty',()=>{_0x71787['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 _0x49b4e6=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x49b4e6);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0xb5c2ba{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2e6fa5,_0x1e337b,_0x55e597,_0x473578){super(_0x2e6fa5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x55adc0(_0x2e6fa5,Ot(_0x2e6fa5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1e337b['authoredAt']),this['bind']('authoredAt')['to'](_0x1e337b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x1e337b,'authoredAt',this,'descriptionParts',(_0xa70fa4,_0x3a25bc,_0x490c09)=>{const _0x52ce35=_0x490c09['map'](_0x34b83b=>It(_0x34b83b['content']))['join']('.\x20')+'.',_0x538d75=_0x1e337b['aiSource']&&'author'===_0x473578['showAISource']?_0x473578['aiAuthor']['name']:_0x1e337b['author']['name'],_0x30d6e5=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xa70fa4-0x1,_0x538d75,_0x3a25bc?_0x473578['formatDateTime'](_0x3a25bc):'',new DOMParser()['parseFromString'](_0x52ce35,'text/html')['body']['textContent']]);return _0x1e337b['aiSource']&&'pill'===_0x473578['showAISource']?_0x30d6e5+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x30d6e5;}),this['focusables']=new _0x952a5c(),this['focusTracker']=new _0x232d1c(),this['keystrokes']=new _0x3f3b3a(),this['focusCycler']=new _0xb80481({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1fca27=>_0x1fca27['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1e337b,this['_localUser']=_0x55e597,this['_config']=_0x473578,_0x473578['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x58b61d}=this['_config'];this['commentsListView']=new _0x58b61d(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',_0x101eca=>_0x101eca+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5b2a58,_0x331fea)=>_0x5b2a58||!!_0x331fea);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x11938b}=this['_config'],_0x521619=new _0x11938b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5cd2db=_0x521619['commentInputView'];return _0x521619['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5cd2db,'value',(_0xf4c27f,_0x442570,_0x1c83fc)=>!!_0x1c83fc||_0xf4c27f&&!_0x442570),_0x5cd2db['on']('submit',(_0x1f0f08,_0x5954c6)=>{this['fire']('addComment',_0x5954c6),_0x5cd2db['editor']['setData']('');}),_0x5cd2db['on']('cancel',()=>this['focus']()),_0x5cd2db['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x521619;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x484674,_0x3601e3,_0x52256d,_0x236ee3){super(_0x484674,_0x3601e3,_0x52256d,_0x236ee3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x23f04e=>_0x23f04e&&_0x23f04e[0x0]?_0x23f04e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3d0458,_0x1ce517)=>{let _0x545de2='';for(const _0x3e8daa of _0x3d0458)_0x545de2+='<p>'+It(_0x3e8daa['content'],_0x3e8daa['color'])+'</p>';return _0x1ce517?_0x545de2:it(_0x545de2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x236ee3['SuggestionView'](_0x484674,_0x3601e3,{'formatDateTime':_0x236ee3['formatDateTime'],'showAISource':_0x236ee3['showAISource'],'aiAuthor':_0x236ee3['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x196615=this['bindTemplate'],_0xf73482=[this['suggestionView']];return this['commentsListView']&&_0xf73482['push'](this['commentsListView']),this['commentThreadInputView']&&_0xf73482['push'](this['commentThreadInputView']),_0xf73482['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x196615['if']('isActive','ck-suggestion-wrapper--active'),_0x196615['to']('type',_0x4e8831=>'ck-suggestion-'+_0x4e8831),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x196615['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xf73482};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Rn=class extends _0xb5c2ba{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0xbc75bc,_0x45ee24,_0xfca620){super(_0xbc75bc),this['_model']=_0x45ee24,this['_config']=_0xfca620,this['set']('description',''),this['bind']('authoredAt')['to'](_0x45ee24),this['acceptButton']=this['_createButton'](Ot(_0xbc75bc,'Accept\x20suggestion'),_0x3a25ec,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0xbc75bc,'Discard\x20suggestion'),_0x5c91fc,'ck-suggestion--discard','discardSuggestion','sw');const _0x426865=!!_0x45ee24['aiSource']&&'author'===_0xfca620['showAISource'],_0x51e17d=_0x426865?this['_createAIUser'](_0xfca620['aiAuthor']):_0x45ee24['author'],_0x33abde=_0x426865&&!_0xfca620['aiAuthor']['avatar']?_0x37e2a9:void 0x0;this['userView']=new _0x2cbd2f(_0xbc75bc,_0x51e17d,this['getUserViewNotificationText'](),_0x33abde),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x952a5c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x232d1c(),this['keystrokes']=new _0x3f3b3a(),this['focusCycler']=new _0xb80481({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3b5c60=>_0x3b5c60['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4b003e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4b003e['innerHTML']=this['description'],this['on']('change:description',(_0x312e84,_0xe1129a,_0x34a443)=>{_0x4b003e['innerHTML']=_0x34a443;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x3dce3c=this['bindTemplate'],_0xb36315=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x3dce3c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3dce3c['to']('authoredAt',_0x1c347f=>this['_config']['formatDateTime'](_0x1c347f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0xb36315['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x111f89=new _0x101e7c(this['locale']);_0x111f89['set']({'icon':_0x35255a,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0xb36315['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x111f89]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xb36315}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x1972a9){return new _0x3c1377({'id':'ck-ai-author','name':_0x1972a9['name'],'avatar':_0x1972a9['avatar'],'color':new _0x283d91(0x0)});}_createButton(_0x1e17ba,_0x33a6d0,_0x341cea,_0xa25cd1,_0xe8e775){const _0x3d3ce2=new _0x5ab2ba(this['locale']);return _0x3d3ce2['set']({'label':_0x1e17ba,'icon':_0x33a6d0,'tooltip':!0x0,'tooltipPosition':_0xe8e775}),_0x3d3ce2['extendTemplate']({'attributes':{'class':_0x341cea}}),_0x3d3ce2['on']('execute',()=>{this['fire'](_0xa25cd1,this['_model']['id']);}),_0x3d3ce2;}_setupKeyboardNavigation(){const _0x400d86=this['element'];this['keystrokes']['listenTo'](_0x400d86);for(const _0x394160 of this['focusables'])this['focusTracker']['add'](_0x394160['element']),this['keystrokes']['listenTo'](_0x394160['element']);this['keystrokes']['set']('enter',(_0x1d0107,_0x1f0827)=>{_0x400d86===_0x1d0107['target']&&(this['focusCycler']['focusFirst'](),_0x1f0827());}),this['keystrokes']['set']('esc',(_0x50355d,_0x5a26ca)=>{_0x400d86!==_0x50355d['target']&&(this['focus'](),_0x5a26ca());});}},yn=class extends _0x1f600{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x340ac5,_0x496d24,_0x47fad5,_0x4a5899];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x464dbc){super(_0x464dbc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x42ad00=this['editor']['config'];_0x42ad00['define']('trackChanges.SuggestionThreadView',kn),_0x42ad00['define']('trackChanges.SuggestionView',Rn),_0x42ad00['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x42ad00['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x2f1f34,_0xf2ac34){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39ed25,_0xba69b0]of this['_handleControllerBuffer']){const _0x1e1ea3=this['_suggestionToController']['has'](_0x39ed25);_0x1e1ea3||_0xba69b0?_0x1e1ea3&&_0xba69b0&&this['_destroyController'](_0x39ed25):this['_initializeController'](_0x39ed25);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x4a5899)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f1f34,_0xf2ac34);}init(){const _0x74ce3b=this['editor'],_0x578256=_0x74ce3b['plugins']['get'](on),_0x5a4ad7=_0x74ce3b['plugins']['get'](_0x47fad5),_0x155648=_0x74ce3b['plugins']['get'](_0x4a5899),_0x286666=_0x74ce3b['plugins']['get'](_0x496d24);this['_addUIComponentsToFactory'](),_0x155648['addSourceCollector'](()=>{const _0x459d19=[];for(const [_0x17a8f6,_0x4f46c1]of Array['from'](this['_suggestionToController'])){const _0x466ad0=_0x17a8f6['getAllAdjacentSuggestions'](),_0x2e25e2=[];for(const _0x44f254 of _0x466ad0){if(!_0x44f254['isInContent'])continue;if(_0x44f254['isMultiRange']){_0x2e25e2['push'](..._0x44f254['getRanges']());continue;}const _0x44c836=_0x44f254['getFirstRange']();if(_0x2e25e2['length']>0x0){const _0xd0b0d9=_0x2e25e2[0x0]['getJoined'](_0x44c836);if(_0xd0b0d9){_0x2e25e2[0x0]=_0xd0b0d9;continue;}}_0x2e25e2['push'](_0x44c836);}_0x459d19['push']([_0x4f46c1['view'],_0x2e25e2]);}return _0x459d19;}),this['listenTo'](_0x578256,'suggestionLoaded',(_0x3d59cd,_0xfa791c)=>{this['listenTo'](_0xfa791c,'change:previous',(_0x17fa18,_0x24b028,_0x599e51,_0x1d1fa6)=>{_0xfa791c['isInContent']&&(null==_0x599e51?(this['_updateController'](_0x1d1fa6['head']),this['_handleSuggestionControllerDelayed'](_0xfa791c,!0x1)):(this['_updateController'](_0x599e51['head']),null==_0x1d1fa6&&this['_handleSuggestionControllerDelayed'](_0xfa791c,!0x0)));}),null!==_0xfa791c['previous']?this['_updateController'](_0xfa791c['head']):this['_handleSuggestionControllerDelayed'](_0xfa791c,!0x1);}),this['listenTo'](_0x578256,'suggestionUnloaded',(_0x2c08ce,_0x2739b1,_0x18d3f8)=>{this['stopListening'](_0x2739b1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2739b1),this['_suggestionToController']['has'](_0x2739b1)&&this['_destroyController'](_0x2739b1),_0x18d3f8&&this['_updateController'](_0x18d3f8['head']);}),this['listenTo'](_0x578256,'suggestionChanged',(_0x2e2194,_0x53e1e6)=>{this['_updateController'](_0x53e1e6);}),this['listenTo'](_0x5a4ad7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x286666,'addComment',(_0xb9cddc,{threadId:_0x506504,isFromAdapter:_0x2bafb6})=>{if(_0x2bafb6||!_0x578256['hasSuggestion'](_0x506504))return;const _0x2752a0=_0x578256['getSuggestion'](_0x506504);this['_suggestionToController']['get'](_0x2752a0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58b9ef=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10ff2;for(const _0x917f44 in _0x58b9ef){const _0x4ccb16=_0x917f44,_0xc0e22f=_0x58b9ef[_0x4ccb16];if('trackChangesLicenseKeyValid'==_0xc0e22f||'trackChangesLicenseKeyInvalid'==_0xc0e22f||'trackChangesLicenseKeyExpired'==_0xc0e22f||'trackChangesLicenseKeyDomainLimit'==_0xc0e22f||'trackChangesLicenseKeyNotAllowed'==_0xc0e22f||'trackChangesLicenseKeyEvaluationLimit'==_0xc0e22f||'trackChangesLicenseKeyUsageLimit'==_0xc0e22f){delete _0x58b9ef[_0x4ccb16],_0x10ff2=_0xc0e22f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x10ff2&&_0x58b9ef['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x10ff2&&_0x58b9ef['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x10ff2&&_0x58b9ef['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x10ff2&&_0x58b9ef['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x10ff2&&_0x58b9ef['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x10ff2&&_0x58b9ef['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x16a0ee){const _0x3b19fb=this['_suggestionToController']['get'](_0x16a0ee);return _0x3b19fb&&this['editor']['plugins']['get'](_0x47fad5)['getByInnerView'](_0x3b19fb['view'])||null;}getSuggestionForAnnotation(_0x6296b){const _0x3ef76c=this['_viewToController']['get'](_0x6296b['innerView']);return _0x3ef76c?_0x3ef76c['model']:null;}_refreshActiveMarkers(){const _0x2c2bbe=this['editor']['plugins']['get'](_0x47fad5),_0x4c1e5d=this['editor']['plugins']['get'](on),_0x117125=Array['from'](_0x2c2bbe['activeAnnotations'],_0x2efee1=>_0x2efee1['innerView'])['filter'](_0x12a05c=>this['_viewToController']['has'](_0x12a05c)),_0x10f03e=[];for(const _0x1de2f3 of _0x117125){const _0xbdb731=this['_viewToController']['get'](_0x1de2f3)['model']['getAllAdjacentSuggestions']();_0x10f03e['push'](..._0xbdb731['reduce']((_0x20c9b6,_0x5a2867)=>[..._0x20c9b6,..._0x5a2867['getMarkerNames']()],[]));}_0x4c1e5d['activeMarkers']=_0x10f03e;}_addUIComponentsToFactory(){const _0x173b54=this['editor'],_0x30019d=_0x173b54['locale'],_0x4bd3a6=Ot(_0x30019d,'Track\x20changes'),_0x4c7f82=new _0x40a69f([{'type':'switchbutton','model':new _0x45771c({'withText':!0x0,'isToggleable':!0x0,'label':_0x4bd3a6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x173b54['plugins']['has']('TrackChangesPreview')&&_0x4c7f82['addMany']([{'type':'separator'},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3874f5 of _0x4c7f82)if(Nn(_0x3874f5)){const _0x47494f=_0x173b54['commands']['get'](_0x3874f5['model']['commandName']);_0x3874f5['model']['bind']('isOn','isEnabled')['to'](_0x47494f,'value','isEnabled');}_0x173b54['ui']['componentFactory']['add']('trackChanges',_0x48f931=>this['_createToolbarButton'](_0x48f931,_0x4c7f82,_0x4bd3a6)),_0x173b54['ui']['componentFactory']['add']('menuBar:trackChanges',_0xe6b425=>this['_createMenuBarMenu'](_0xe6b425,_0x4c7f82,_0x4bd3a6));}_createToolbarButton(_0x4f860d,_0x4a5208,_0x3c4d82){const _0x50cbd9=_0x216057(_0x4f860d,_0x10711f),_0x52acdc=this['editor']['commands']['get']('trackChanges');_0x50cbd9['buttonView']['set']({'tooltip':_0x3c4d82,'label':_0x3c4d82,'icon':_0x2d40ca}),_0x50cbd9['buttonView']['bind']('isOn')['to'](_0x52acdc,'value'),_0x50cbd9['buttonView']['on']('execute',()=>{_0x52acdc['execute'](),this['editor']['editing']['view']['focus']();}),_0x5c6760(_0x50cbd9,_0x4a5208,{'role':'menu'});const _0x4431d6=[];for(const _0x4034a9 of _0x4a5208)Nn(_0x4034a9)&&_0x4431d6['push'](this['editor']['commands']['get'](_0x4034a9['model']['commandName']));const _0x27f014=_0x50cbd9['buttonView'];return _0x27f014['actionView']['unbind']('isEnabled'),_0x27f014['arrowView']['unbind']('isEnabled'),_0x27f014['actionView']['bind']('isEnabled')['to'](_0x52acdc,'isEnabled'),_0x27f014['arrowView']['bind']('isEnabled')['toMany'](_0x4431d6,'isEnabled',(..._0x4cc661)=>_0x4cc661['some'](_0x5336f5=>_0x5336f5)),_0x50cbd9['on']('execute',_0x2cf61f=>{this['editor']['execute'](_0x2cf61f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x50cbd9;}_createMenuBarMenu(_0x42bf12,_0x187757,_0xe45033){const _0x2b1b86=new _0xb5c3ae(_0x42bf12),_0x1adc53=this['editor']['commands']['get']('trackChanges');_0x2b1b86['buttonView']['set']({'label':_0xe45033,'icon':_0x2d40ca});const _0x4def24=new _0x57c1a0(_0x42bf12);for(const _0x4929fb of _0x187757){if('separator'==_0x4929fb['type']){_0x4def24['items']['add'](new _0x4f740e(_0x42bf12));continue;}const _0xe55bde=new _0x8130a5(_0x42bf12,_0x2b1b86),_0x484b6a=new _0x46ff38(_0x42bf12),_0x3321d7=_0x4929fb['model'];_0x484b6a['bind'](...Object['keys'](_0x3321d7))['to'](_0x3321d7),_0x484b6a['delegate']('execute')['to'](_0x2b1b86),_0x484b6a['on']('execute',()=>{this['editor']['execute'](_0x3321d7['commandName']),this['editor']['editing']['view']['focus']();}),_0xe55bde['children']['add'](_0x484b6a),_0x4def24['items']['add'](_0xe55bde);}return _0x2b1b86['bind']('isEnabled')['to'](_0x1adc53,'isEnabled'),_0x2b1b86['panelView']['children']['add'](_0x4def24),_0x2b1b86;}_initializeController(_0x59005b){const _0x8c2a78=this['editor'],_0x5cf0da=_0x8c2a78['config'],_0xe72f88=_0x8c2a78['plugins']['get'](_0x47fad5),_0x2d1202=_0x8c2a78['plugins']['get'](_0x496d24),_0x254d3f=_0x8c2a78['plugins']['get'](_0x4a5899),_0x4cd607=_0x8c2a78['plugins']['get'](_0x340ac5)['me'],_0x1e8b47=_0x5cf0da['get']('trackChanges')['SuggestionThreadView'],_0x109e6a=_0x5cf0da['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x422660,CommentThreadInputView:_0x2b7884}=_0x8c2a78['plugins']['get']('CommentsUI');let _0x518806,_0x4ebe31,_0x8aa048;this['_annotationViews']['has'](_0x59005b['id'])?(_0x4ebe31=this['_annotationViews']['get'](_0x59005b['id']),_0x518806=_0x4ebe31['mainView']):(_0x518806=new _0x1e8b47(_0x8c2a78['locale'],_0x59005b,_0x4cd607,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5cf0da['get']('comments.editorConfig'),'licenseKey':_0x5cf0da['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5cf0da['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5cf0da['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5cf0da['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x258310(_0x5cf0da['get']('locale'),_0x8c2a78['locale']),'CommentView':_0x5cf0da['get']('comments')['CommentView'],'CommentsListView':_0x422660,'CommentThreadInputView':_0x2b7884,'SuggestionView':_0x109e6a,'showAISource':_0x5cf0da['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5cf0da['get']('trackChanges.aiAuthor'),'name':_0x5cf0da['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x8c2a78['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x518806['suggestionView']['acceptButton']['on']('execute',()=>{_0x8c2a78['editing']['view']['focus']();}),_0x518806['suggestionView']['discardButton']['on']('execute',()=>{_0x8c2a78['editing']['view']['focus']();}),_0x4ebe31=_0xe72f88['createAnnotationView'](this['editor']['locale'],_0x518806),_0x4ebe31['bind']('isDirty')['to'](_0x518806,'isDirty'),_0x4ebe31['bind']('length')['to'](_0x518806),_0x4ebe31['bind']('type')['to'](_0x518806,'type',_0x575acd=>'suggestion-'+_0x575acd),_0x518806['on']('escape',()=>{_0x8aa048['fire']('escape');}),this['_annotationViews']['set'](_0x59005b['id'],_0x4ebe31));const _0x712ab4=_0x2d1202['createCommentThreadController'](_0x59005b['commentThread'],_0x518806),_0x152dce=new bn(_0x8c2a78,_0x59005b,_0x518806,_0x712ab4),_0x598851=_0x59005b['getAllAdjacentSuggestions']()['filter'](_0x16258c=>_0x16258c['isInContent']);_0x518806['descriptionParts']=_0x8c2a78['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x598851),this['_suggestionToController']['set'](_0x59005b,_0x152dce),this['_viewToController']['set'](_0x518806,_0x152dce);const _0x5243db=()=>{const _0x3408a5=[],_0x2afc20=_0x59005b['getAllAdjacentSuggestions']()['filter'](_0x110347=>_0x110347['isInContent']);for(const _0x16d14a of _0x2afc20)_0x3408a5['push'](..._0x16d14a['getMarkers']());return _0x533ece(_0x8c2a78['editing'],_0x3408a5);};_0x8aa048=_0xe72f88['createAnnotation']({'view':_0x4ebe31,'target':_0x5243db,'type':()=>'suggestion-'+_0x152dce['view']['type'],'isVisible':!!_0x5243db()}),_0x2d1202['_bindAnnotationToEditors'](_0x518806,_0x8aa048),_0xe72f88['add'](_0x8aa048),_0x254d3f['registerAnnotation'](_0x8aa048);}_destroyController(_0x1e8e6c){const _0x2caa1b=this['editor']['plugins']['get'](_0x496d24),_0x292969=this['editor']['plugins']['get'](_0x47fad5),_0x949a29=this['_suggestionToController']['get'](_0x1e8e6c),_0x22149d=_0x949a29['view'],_0x688157=_0x292969['getByInnerView'](_0x22149d);_0x2caa1b['_unbindEditors'](_0x22149d),_0x688157&&_0x292969['remove'](_0x688157),this['_suggestionToController']['delete'](_0x1e8e6c),this['_viewToController']['delete'](_0x22149d),_0x949a29['destroy']();}_updateController(_0x5acf5b){if(!_0x5acf5b['isInContent']||!this['_suggestionToController']['has'](_0x5acf5b))return;const _0x314f1a=this['editor']['plugins']['get'](on),_0x3f6306=this['_suggestionToController']['get'](_0x5acf5b),_0xb7f27b=_0x5acf5b['getAllAdjacentSuggestions']();_0x3f6306['view']['descriptionParts']=_0x314f1a['descriptionFactory']['getDescriptions'](_0xb7f27b);}destroy(){for(const _0x3b92b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3b92b8);for(const _0x247469 of this['_annotationViews']['values']())_0x247469['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x563f86){return'model'in _0x563f86;}var Sn=class extends _0x1f600{static get requires(){return[on,yn,_0x31c31a];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x5d0629){this['editor']['plugins']['get'](on)['adapter']=_0x5d0629;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x2b38fb){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x2b38fb);}getSuggestions({skipNotAttached:_0x1f4cbb=!0x1,toJSON:_0x70cae8=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x1f4cbb,'toJSON':_0x70cae8});}getSuggestion(_0x1145c7){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x1145c7);}};const Mn=['Pagination'];var On=class extends _0x1f600{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x418ba3=this['editor'];if(_0x418ba3['config']['define']('trackChangesData.editorCreator',_0x1c9167=>{const _0x2ce990=_0x418ba3['model']['document']['getRootNames']()['reduce']((_0x1d1bc0,_0x262556)=>(_0x1d1bc0[_0x262556]='',_0x1d1bc0),{});return _0x418ba3['constructor']['create'](_0x2ce990,_0x1c9167);}),'function'!=typeof _0x418ba3['config']['get']('trackChangesData')['editorCreator'])throw new _0x551602('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x2940eb){return Bn(this['editor'],!0x0,_0x2940eb);}getDataWithDiscardedSuggestions(_0x4c3215){return Bn(this['editor'],!0x1,_0x4c3215);}},wn=class extends _0x1f600{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x532674){super(_0x532674),this['result']='end',_0x532674['editing']['view']['_overlayModeHint']='auto',_0x532674['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x671e85){return void 0x0!==_0x671e85['getRootsAttributes'];}async function Bn(_0x3d550f,_0x139f6f,_0x14efb9){const _0x424494=_0x301952(_0x3d550f,Mn);if(_0x424494['plugins']['push'](on,wn),Fn(_0x3d550f)){_0x424494['roots']=Object['create'](null);for(const _0x5104c1 of _0x3d550f['model']['document']['getRootNames']())_0x424494['roots'][_0x5104c1]={'modelAttributes':_0x3d550f['getRootAttributes'](_0x5104c1)};}const _0x4a6769=document['createDocumentFragment'](),_0x151f2b=_0x3d550f['config']['get']('trackChangesData')['editorCreator'],_0x1d92cf=await _0x151f2b(_0x424494,()=>function(_0x54b5ad){const _0x5c69f4=document['createElement']('div');return _0x54b5ad['appendChild'](_0x5c69f4),_0x5c69f4;}(_0x4a6769));!function(_0x30f194,_0x1a3864){const _0x59f977=_0x30f194['model']['document']['getRootNames']()['reduce']((_0x469bdf,_0x287943)=>(_0x469bdf[_0x287943]=_0x30f194['data']['get']({'rootName':_0x287943}),_0x469bdf),{}),_0x5d313a=_0x30f194['plugins']['get']('Users')['users']['map'](_0x573bab=>({'id':_0x573bab['id'],'name':_0x573bab['name']})),_0x28c384=_0x30f194['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x547f19=_0x30f194['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4489bd=_0x1a3864['plugins']['get']('Users'),_0x14de61=_0x1a3864['plugins']['get']('TrackChangesEditing'),_0x146cd2=_0x1a3864['plugins']['get']('CommentsRepository');for(const _0x488111 of _0x146cd2['getCommentThreads']())_0x488111['remove']();for(const _0x1f81cf of _0x5d313a)_0x4489bd['getUser'](_0x1f81cf['id'])||_0x4489bd['addUser'](_0x1f81cf);_0x4489bd['me']||_0x4489bd['useAnonymousUser']();for(const _0x597689 of _0x547f19)_0x146cd2['addCommentThread'](_0x597689);for(const _0x1b2296 of _0x28c384)_0x14de61['addSuggestionData'](_0x1b2296);_0x1a3864['data']['set'](_0x59f977);}(_0x3d550f,_0x1d92cf),_0x1d92cf['execute'](_0x139f6f?'acceptAllSuggestions':'discardAllSuggestions');const _0x3ef93a=Fn(_0x1d92cf)?_0x1d92cf['getFullData'](_0x14efb9):_0x1d92cf['data']['get'](_0x14efb9);return await _0x1d92cf['destroy'](),_0x3ef93a;}var vn=class extends _0xb5c2ba{options;constructor(_0x38d59b,_0x2d5c76){super(_0x38d59b),this['options']=_0x2d5c76,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x5a7248,_0x20844a){if(!this['element'])return;const _0x3e9e4b=[];for(const [_0x28dca5,_0x1cd8b6]of _0x5a7248){const _0x37c6b9=document['createElement']('div');_0x37c6b9['setAttribute']('data-ck-root-name',_0x28dca5),_0x37c6b9['className']=_0x1cd8b6['classes']+'\x20ck-track-changes-preview__root-container',_0x37c6b9['innerHTML']=_0x1cd8b6['content'],_0x3e9e4b['push'](_0x37c6b9);}_0x20844a(this['element'],_0x3e9e4b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x36cb40{constructor(_0x5380f7){super(_0x5380f7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x3aedd4=this['editor'],_0xd26e68=_0x3aedd4['locale'],_0x18e3ba=_0x3aedd4['plugins']['get']('Dialog');let _0x3312d1;const _0x16603e=function(_0x1fdcca){const _0x4e457c={};if('editables'in _0x1fdcca['ui']['view']){for(const [_0x690d4f,_0x22721d]of Object['entries'](_0x1fdcca['ui']['view']['editables']))_0x4e457c[_0x690d4f]=_0x22721d['element'];}else _0x4e457c[_0x1fdcca['model']['document']['getRootNames']()[0x0]]=_0x1fdcca['ui']['view']['editable']['element'];return _0x4e457c;}(_0x3aedd4),_0x1889ff=function(_0x426770){let _0x45667c=0x0;for(const _0x18de4a of Object['values'](_0x426770))_0x45667c=Math['max'](_0x45667c,_0x18de4a['getBoundingClientRect']()['width']);let _0x140885=0x0;for(const _0x1dec0f of Object['values'](_0x426770))_0x140885+=_0x1dec0f['getBoundingClientRect']()['height'];const _0x2041bf=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x45667c,'height':Math['min'](_0x140885,_0x2041bf)};}(_0x16603e);_0x18e3ba['show']({'id':'finalContentPreview','title':Ot(_0xd26e68,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0xd26e68,{'dialogRects':_0x1889ff}),'onHide':()=>{_0x3312d1['detachFromDom']();},'onShow':()=>{_0x3aedd4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5af567=>{const _0x5a3e62=this['_standarizeRootsData'](_0x5af567,_0x3aedd4,_0x16603e);_0x18e3ba['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5a3e62,_0x3aedd4['config']['get']('trackChanges.preview.renderFunction'));}),_0x3312d1=new _0x5cdee9(_0xd26e68,[_0x18e3ba['view']]),_0x3312d1['attachToDom'](),_0x3312d1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3aedd4['once']('destroy',()=>{_0x3312d1['detachFromDom']();});const _0x12c9fb=_0x18e3ba['view']['headerView']['class'];_0x18e3ba['view']['headerView']['class']=_0x12c9fb?_0x12c9fb+'\x20ck-reset_all':'ck-reset_all',_0x18e3ba['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x18e3ba['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x35315d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x40eebc=_0x35315d['previewMode'],_0x5d3967={};if('$labels'===_0x40eebc){for(const _0x19c373 of _0x35315d['getMergeFieldsIds']())_0x5d3967[_0x19c373]=_0x35315d['getLabel'](_0x19c373)||_0x19c373;}else{const _0x4595fa='$defaultValues'===_0x40eebc?_0x35315d['getDefaultValues']():_0x35315d['getDataSetValues'](_0x40eebc,!0x0);for(const _0x2b64c4 of Object['entries'](_0x4595fa)){const [_0xb79ada,_0x24d276]=_0x2b64c4;_0x5d3967[_0xb79ada]=null!==_0x24d276?_0x24d276:_0x35315d['getLabel'](_0xb79ada)||_0xb79ada;}}return{'mergeFieldsData':_0x5d3967};}_standarizeRootsData(_0x2d410d,_0x1ccb27,_0xfc289a){let _0x1b3ea9;_0x1b3ea9='string'==typeof _0x2d410d?{[_0x1ccb27['model']['document']['getRootNames']()[0x0]]:_0x2d410d}:_0x2d410d;const _0x4cb79a=this['_fixMediaEmbeds'](_0x1b3ea9,_0x1ccb27);return function(_0x48c1b5,_0x36eaff){for(const [_0x4b15b9,_0x1c7ccc]of _0x48c1b5)_0x1c7ccc['classes']=_0x36eaff[_0x4b15b9]['classList']['value']['replace']('ck-focused','');return _0x48c1b5;}(this['_sortRoots'](_0x1ccb27)['reduce']((_0x1d206b,_0x40b58e)=>(_0x1d206b['push']([_0x40b58e,{'content':_0x4cb79a[_0x40b58e],'classes':''}]),_0x1d206b),[]),_0xfc289a);}['_fixMediaEmbeds'](_0x1e5c9f,_0x14554d){if(!_0x14554d['plugins']['has']('MediaEmbedEditing'))return _0x1e5c9f;const _0x15c9de=_0x14554d['plugins']['get']('MediaEmbedEditing');for(const [_0x39d5eb,_0x5b47f5]of Object['entries'](_0x1e5c9f)){const _0xffecc8=document['createElement']('div');_0xffecc8['innerHTML']=_0x5b47f5,_0xffecc8['querySelectorAll']('figure.media')['forEach'](_0x4698e5=>{const _0x2f3998=_0x4698e5['querySelector']('oembed');if(_0x2f3998){const _0x84b9b=_0x2f3998['getAttribute']('url');if(_0x84b9b){const _0xeec537=_0x15c9de['registry']['getMediaViewElement'](new at(_0x14554d['editing']['view']['document']),_0x84b9b,{'elementName':'','renderForEditingView':!0x0}),_0x118348=document['createElement']('div');_0x118348['classList']['add']('ck-media__wrapper'),_0xeec537['render'](_0x118348,_0x14554d['editing']['view']['domConverter']),_0x2f3998['replaceWith'](_0x118348);}}}),_0x1e5c9f[_0x39d5eb]=_0xffecc8['innerHTML'];}return _0x1e5c9f;}_sortRoots(_0x95ea44){if(!function(_0x2dddf4){return void 0x0!==_0x2dddf4['getRootsAttributes'];}(_0x95ea44))return _0x95ea44['model']['document']['getRootNames']();const _0x3a1dad=[],_0x2918fb=new Map();for(const _0x1195ee of _0x95ea44['model']['document']['getRootNames']()){const _0xc517d3=_0x95ea44['editing']['view']['getDomRoot'](_0x1195ee)['getClientRects']()['item'](0x0);_0x3a1dad['push'](_0x1195ee),_0x2918fb['set'](_0x1195ee,_0xc517d3);}return _0x3a1dad['sort']((_0xccb999,_0x3d9a23)=>{const _0x1cb773=_0x2918fb['get'](_0xccb999),_0x5b30ce=_0x2918fb['get'](_0x3d9a23);return _0x1cb773['y']-_0x5b30ce['y']||_0x1cb773['x']-_0x5b30ce['x'];}),_0x3a1dad;}},Un=class extends _0x1f600{static get requires(){return[On,_0x2f5204];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31b578){super(_0x31b578),_0x31b578['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x31b578['config']['define']('trackChanges.preview.renderFunction',(_0x4a96bb,_0x1b6c48)=>{for(const _0x4b4b5d of _0x1b6c48)_0x4a96bb['appendChild'](_0x4b4b5d);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};