@ckeditor/ckeditor5-collaboration-core 47.2.0-alpha.7 → 47.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/LICENSE.md +8 -8
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +13 -13
  150. package/src/documentcompare.js +1 -1
  151. package/src/index.js +1 -1
  152. package/src/legacyerrors.js +1 -1
  153. package/src/permissions.js +1 -1
  154. package/src/suggestions/integrations/alignment.js +1 -1
  155. package/src/suggestions/integrations/basicstyles.js +1 -1
  156. package/src/suggestions/integrations/bookmark.js +1 -1
  157. package/src/suggestions/integrations/font.js +1 -1
  158. package/src/suggestions/integrations/highlight.js +1 -1
  159. package/src/suggestions/integrations/horizontalline.js +1 -1
  160. package/src/suggestions/integrations/htmlembed.js +1 -1
  161. package/src/suggestions/integrations/image.js +1 -1
  162. package/src/suggestions/integrations/indent.js +1 -1
  163. package/src/suggestions/integrations/lineheight.js +1 -1
  164. package/src/suggestions/integrations/link.js +1 -1
  165. package/src/suggestions/integrations/list.js +1 -1
  166. package/src/suggestions/integrations/listproperties.js +1 -1
  167. package/src/suggestions/integrations/mediaembed.js +1 -1
  168. package/src/suggestions/integrations/multilevellist.js +1 -1
  169. package/src/suggestions/integrations/shiftenter.js +1 -1
  170. package/src/suggestions/integrations/style.js +1 -1
  171. package/src/suggestions/integrations/table.js +1 -1
  172. package/src/suggestions/integrations/tableheadings.js +1 -1
  173. package/src/suggestions/integrations/tablelayout.js +1 -1
  174. package/src/suggestions/integrations/tableproperties.js +1 -1
  175. package/src/suggestions/integrations/uploadcare.js +1 -1
  176. package/src/suggestions/suggestionsconversion.js +1 -1
  177. package/src/suggestions/view/ariadescriptionview.js +1 -1
  178. package/src/suggestions/view/latefocusbuttonview.js +1 -1
  179. package/src/suggestionstyles.js +1 -1
  180. package/src/users/view/userview.js +1 -1
  181. package/src/users.js +1 -1
  182. package/src/utils/common-translations.js +1 -1
  183. package/src/utils/confirmmixin.js +1 -1
  184. package/src/utils/confirmview.js +1 -1
  185. package/src/utils/getdatetimeformatter.js +1 -1
  186. package/src/utils/getmarkerdomelement.js +1 -1
  187. package/src/utils/hashobject.js +1 -1
  188. package/src/utils/sanitizeEditorConfig.js +1 -1
  189. package/src/utils/setupthreadkeyboardnavigation.js +1 -1
  190. package/src/utils/suggestionmarkerutils.js +1 -1
  191. package/src/utils/surroundingmarkersdetector.js +1 -1
  192. package/src/utils/trim-html.js +1 -1
package/LICENSE.md CHANGED
@@ -7,19 +7,19 @@ Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) A
7
7
  CKEditor 5 Collaboration features core is licensed under a commercial license and is protected by copyright law.
8
8
  For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
9
9
 
10
- Sources of Intellectual Property Included in CKEditor 5 Collaboration features core
11
- ----------------------------------------------------------------------------------------
10
+ Sources of Intellectual Property Included in CKEditor 5
11
+ ------------------------------------------------------------
12
12
 
13
- Where not otherwise indicated, all CKEditor 5 Collaboration features core content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
13
+ Where not otherwise indicated, all CKEditor 5 content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
14
14
 
15
- The following libraries are included in CKEditor 5 Collaboration features core under the [MIT license](https://opensource.org/licenses/MIT):
15
+ The following libraries are included in CKEditor 5 under the [BSD-3-Clause license](https://opensource.org/licenses/BSD-3-Clause):
16
16
 
17
- * @types/luxon - Copyright (c) DefinitelyTyped.
18
- * luxon - Copyright (c) JS Foundation and other contributors.
17
+ * diff - Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>.
19
18
 
20
- The following libraries are included in CKEditor&nbsp;5 Collaboration features core under the [BSD 3-Clause license](https://opensource.org/license/bsd-3-clause):
19
+ The following libraries are included in CKEditor&nbsp;5 under the [MIT license](https://opensource.org/licenses/MIT):
21
20
 
22
- * diff - Copyright (c) 2009-2015, Kevin Decker.
21
+ * @types/luxon - Copyright (c) Microsoft Corporation.
22
+ * luxon - Copyright 2019 JS Foundation and other contributors.
23
23
 
24
24
  Trademarks
25
25
  ----------
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ContextPlugin as _0x39281c,Editor as _0x254c31,Plugin as _0x48ca39}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1fcd88,Collection as _0x4afd9f,uid as _0x27276d,toArray as rt,first as _0x404814,FocusTracker as ts,KeystrokeHandler as _0x4c4613}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x2d5528,IconView as st,ButtonView as _0x5f5b3b,DropdownButtonView as _0x4a9da3,FocusCycler as _0x292311,isViewWithFocusCycler as _0x2767b4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0x454c6a,IconCancel as _0x357bbf}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0x567b45}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x574a4c,MoveOperation as _0x1cadca,ModelPosition as _0x300359,ModelRange as _0x1b485f,MarkerOperation as _0x329d5c,MergeOperation as _0x218f06,SplitOperation as _0x47077c,RenameOperation as _0x480db8,AttributeOperation as _0x1e8449,ModelTreeWalker as _0x36d566,ModelText as _0x211824}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x28ad2c}from'diff';class C extends _0x39281c{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x5d1214,_0x2e5403){let _0x31d6f6;if(_0x2e5403||(_0x2e5403=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x2e5403?_0x31d6f6=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x31d6f6=this['context']['editors']['find'](_0x596bc4=>_0x596bc4['config']['get']('collaboration.channelId')==_0x2e5403)),!_0x31d6f6)throw new _0x1fcd88('permissions-set-permissions-invalid-channel-id',null);const _0x50bfc6=_0x31d6f6['plugins'],_0x5c7c3c=_0x50bfc6['has']('CommentsRepository')?_0x50bfc6['get']('CommentsRepository'):void 0x0,_0x5ada23=_0x50bfc6['has']('CommentsOnly')&&_0x50bfc6['get']('CommentsOnly'),_0x3c384f=_0x5d1214['includes']('document:write'),_0x3a7481=_0x5d1214['includes']('comment:modify_all'),_0x254e33=_0x5d1214['includes']('comment:admin'),_0xad63d2=_0x5d1214['includes']('comment:write'),_0x383299=_0xad63d2||_0x254e33,_0x2e4cde=_0x383299||_0x3a7481,_0x13b34a=_0x3c384f||_0x383299;(_0x5ada23&&(_0x5ada23['isEnabled']=!_0x3c384f&&_0x2e4cde),_0x31d6f6 instanceof _0x254c31)&&(!(_0x3c384f||_0x2e4cde&&_0x5c7c3c)?_0x31d6f6['enableReadOnlyMode']('no-permissions'):_0x31d6f6['disableReadOnlyMode']('no-permissions'));if(_0x5c7c3c){_0x5c7c3c['setPermissions']({'admin':_0x254e33,'modifyAll':_0x3a7481,'write':_0xad63d2,'resolve':_0x13b34a},_0x2e5403);const _0xf707d0=_0x31d6f6 instanceof _0x254c31&&_0x31d6f6['commands']['get']('addCommentThread');_0xf707d0&&(_0x383299?_0xf707d0['clearForceDisabled']('noPermissions'):_0xf707d0['forceDisabled']('noPermissions'));}}}function U(_0x10f80,_0x5b82c5){const t=_0x10f80['t'];switch(_0x5b82c5){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class at extends _0x39281c{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x1eddec){super(_0x1eddec),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x4afd9f(),this['_locale']=_0x1eddec['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x2811c0,name:_0x23d3ed,..._0x16d923}){if(!_0x2811c0||'string'!=typeof _0x2811c0)throw new _0x1fcd88('users-add-invalid-id');if(this['users']['has'](_0x2811c0))throw new _0x1fcd88('users-add-duplicated-id',null,{'id':_0x2811c0});const _0x27e21d=this['context']['config']['get']('users.getInitialsCallback'),_0x15cfd7={..._0x16d923,'id':_0x2811c0,'name':A(this['_locale'],_0x23d3ed),'color':this['_getNextColor']()};_0x15cfd7['name']=A(this['_locale'],_0x15cfd7['name']);const _0x35fbc0=new lt(_0x15cfd7,_0x27e21d);return this['users']['add'](_0x35fbc0),_0x35fbc0;}['getUser'](_0x2a80f3){return this['users']['get'](_0x2a80f3);}['useAnonymousUser'](){const _0x5eec9c=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x5eec9c);}['defineMe'](_0x389683){if(this['_myId'])throw new _0x1fcd88('users-me-already-defined',null);const _0x146dfb=this['getUser'](_0x389683);if(!_0x146dfb)throw new _0x1fcd88('users-me-missing-user',null);this['_myId']=_0x389683,_0x146dfb['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x4620c1=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x4620c1&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x558fab=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x558fab,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x5f5bf0,_0x378c70){this['id']=_0x5f5bf0['id'],this['color']=_0x5f5bf0['color'],this['name']=_0x5f5bf0['name'],this['initials']=_0x378c70?_0x378c70(this['name']):this['_computeInitials'](),this['avatar']=_0x5f5bf0['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0xc0aa14=this['name']['split']('\x20')['filter'](_0x37e54b=>/^[\p{Letter}]/u['test'](_0x37e54b));return 0x1===_0xc0aa14['length']?this['_getInitial'](_0xc0aa14[0x0]):0x0===_0xc0aa14['length']?this['_getInitial'](this['name']):this['_getInitial'](_0xc0aa14[0x0])+this['_getInitial'](_0xc0aa14[_0xc0aa14['length']-0x1]);}['_getInitial'](_0x317566){return String['fromCodePoint'](_0x317566['codePointAt'](0x0))['toUpperCase']();}}function A(_0x4d1e40,_0x535597=''){return''==(_0x535597=_0x535597['trim']())?U(_0x4d1e40,'Anonymous'):_0x535597;}class ut{['_id'];constructor(_0x4f3dc7){this['_id']=_0x4f3dc7;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class ht extends _0x2d5528{['name'];['notificationView'];constructor(_0x49bd36,_0x8e1016,_0x17b475){super(_0x49bd36),this['name']=_0x8e1016['name'],this['notificationView']=null;const _0x7fe1b=['ck','ck-user'],_0x372c42=['ck','ck-user__img'];if(_0x8e1016['isAnonymous']&&_0x372c42['push']('ck-user__anonymous'),!_0x8e1016['isAnonymous']&&_0x8e1016['isMe']&&_0x7fe1b['push']('ck-user_me'),_0x8e1016['avatar']&&_0x372c42['push']('ck-user__avatar'),_0x17b475){const _0x4d06d5=new st();_0x4d06d5['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4d06d5['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x17b475},'children':[_0x4d06d5]};}const _0x3fbb70=[{'tag':'div','attributes':{'class':_0x372c42,'style':{'background-image':_0x8e1016['avatar']?'url(\x27'+_0x8e1016['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x8e1016['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x8e1016['name']},'children':[{'text':_0x8e1016['initials']}]}];this['notificationView']&&_0x3fbb70['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x7fe1b,'data-user-id':_0x8e1016['id']},'children':_0x3fbb70});}}class dt extends _0x2d5528{['id'];constructor(_0x8f5bc1,_0x22f5dd){super(_0x8f5bc1),this['id']='ck-aria-description-'+_0x27276d(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x22f5dd}]});}}class ft extends _0x5f5b3b{['render'](){super['render'](),re(this);}}class gt extends _0x4a9da3{['render'](){super['render'](),re(this);}}function re(_0x5112b9){_0x5112b9['listenTo'](_0x5112b9['element'],'mousedown',(_0x46e7e8,_0x32e19d)=>{_0x32e19d['stopPropagation'](),_0x32e19d['preventDefault']();}),_0x5112b9['listenTo'](_0x5112b9['element'],'mouseup',()=>{_0x5112b9['element']['focus']();});}function v(_0x2cf0b){const _0x29feae=_0x2cf0b['split'](':');return{'group':_0x29feae[0x0],'type':_0x29feae[0x1],'subType':_0x29feae['length']>=0x5?_0x29feae[0x2]:null,'id':_0x29feae['length']<0x5?_0x29feae[0x2]:_0x29feae[0x3],'authorId':_0x29feae['length']<0x5?_0x29feae[0x3]:_0x29feae[0x4],'markerCount':0x6==_0x29feae['length']?_0x29feae[0x5]:null};}function mt(_0x497735,_0x21acfc){const _0x3acab6=_0x497735['end']['nodeBefore'];if(_0x3acab6&&_0x3acab6['is']('element')&&_0x21acfc['schema']['isBlock'](_0x3acab6)&&!_0x21acfc['schema']['isObject'](_0x3acab6)){const _0x3643f9=_0x21acfc['createPositionAt'](_0x3acab6,'end');return _0x21acfc['createRange'](_0x497735['start'],_0x3643f9);}return _0x497735;}class M extends _0x48ca39{['afterInit'](){const _0x1507e6=this['editor'];if(!_0x1507e6['plugins']['has']('AlignmentEditing'))return;_0x1507e6['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x48ca39{['afterInit'](){const _0x40b8c9=this['editor'],_0x5c7405=_0x40b8c9['plugins']['get']('SuggestionsConversion');for(const _0x2f4614 of ii){if(!_0x40b8c9['plugins']['has'](_0x2f4614))continue;const _0x279741=_0x2f4614['slice'](0x0,-0x7)['toLowerCase']();_0x5c7405['registerInlineAttribute'](_0x279741);}}}class I extends _0x48ca39{['afterInit'](){const _0x35e6ed=this['editor'],_0x39e985=_0x35e6ed['plugins']['get']('SuggestionsConversion');_0x35e6ed['plugins']['has']('BookmarkEditing')&&_0x39e985['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x48ca39{['afterInit'](){const _0x514c14=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x1d1af8,commandName:_0x211887}of no)this['editor']['plugins']['has'](_0x1d1af8)&&_0x514c14['registerInlineAttribute'](_0x211887);}}class T extends _0x48ca39{['afterInit'](){const _0x4a2e0a=this['editor'];if(!_0x4a2e0a['plugins']['has']('HighlightEditing'))return;_0x4a2e0a['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x48ca39{['afterInit'](){const _0x232322=this['editor'];if(!_0x232322['plugins']['has']('HtmlEmbed'))return;_0x232322['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x48ca39{['afterInit'](){const _0x301175=this['editor'];if(!_0x301175['plugins']['has']('ImageEditing'))return;const _0x42464c=_0x301175['plugins']['get']('SuggestionsConversion');_0x42464c['registerBlockAttribute']('src'),_0x301175['plugins']['has']('ImageResize')&&_0x42464c['registerBlockAttribute']('resizedWidth'),_0x301175['plugins']['has']('ImageTextAlternativeEditing')&&_0x42464c['registerBlockAttribute']('alt'),_0x301175['plugins']['has']('PictureEditing')&&_0x42464c['registerBlockAttribute']('sources'),_0x301175['plugins']['has']('ImageSizeAttributes')&&(_0x42464c['registerBlockAttribute']('width'),_0x42464c['registerBlockAttribute']('height'));}}class $ extends _0x48ca39{['afterInit'](){const _0x3ca637=this['editor'],_0x421fb6=_0x3ca637['plugins']['get']('SuggestionsConversion');_0x3ca637['plugins']['has']('IndentBlock')&&_0x421fb6['registerBlockAttribute']('blockIndent');}}class x extends _0x48ca39{['afterInit'](){const _0x261802=this['editor'];if(!_0x261802['plugins']['has']('LineHeight'))return;_0x261802['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x48ca39{['afterInit'](){const _0x265a30=this['editor'];if(!_0x265a30['plugins']['has']('LinkEditing'))return;const _0x3c504d=_0x265a30['plugins']['get']('SuggestionsConversion'),_0x1e8c11=_0x265a30['commands']['get']('link');_0x3c504d['registerInlineAttribute']('linkHref');for(const _0x4bdc0f of _0x1e8c11['manualDecorators'])_0x3c504d['registerInlineAttribute'](_0x4bdc0f['id']);}}class N extends _0x48ca39{['afterInit'](){const _0x4b37c6=this['editor'];if(!_0x4b37c6['plugins']['has']('ListEditing'))return;const _0x56f30e=_0x4b37c6['plugins']['get']('SuggestionsConversion'),_0x495daa=_0x4b37c6['plugins']['has']('TodoListEditing');_0x56f30e['registerBlockAttribute']('listItemId'),_0x56f30e['registerBlockAttribute']('listType'),_0x56f30e['registerBlockAttribute']('listIndent'),_0x495daa&&_0x56f30e['registerBlockAttribute']('todoListChecked');}}class P extends _0x48ca39{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1daba1=this['editor']['config']['get']('list.properties'),_0x2456a8=this['editor']['plugins']['get']('SuggestionsConversion');_0x1daba1['styles']&&_0x2456a8['registerBlockAttribute']('listStyle'),_0x1daba1['reversed']&&_0x2456a8['registerBlockAttribute']('listReversed'),_0x1daba1['startIndex']&&_0x2456a8['registerBlockAttribute']('listStart');}}class K extends _0x48ca39{['afterInit'](){const _0x5d0364=this['editor'],_0x3cbcfa=_0x5d0364['plugins']['get']('SuggestionsConversion');_0x5d0364['plugins']['has']('MultiLevelList')&&_0x3cbcfa['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x48ca39{['afterInit'](){const _0x4a05c2=this['editor'];if(!_0x4a05c2['plugins']['has']('Style')||!_0x4a05c2['plugins']['has']('DataSchema')||!_0x4a05c2['config']['get']('style.definitions'))return;const _0xb43aa5=_0x4a05c2['plugins']['get']('SuggestionsConversion'),_0x540342=_0x4a05c2['config']['get']('style.definitions'),_0x4edb2d=_0x4a05c2['plugins']['get']('GeneralHtmlSupport'),_0x5d227e=_0x4a05c2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4a05c2['plugins']['get']('DataSchema'),_0x540342),_0x4a5d5a=new Set();for(const _0x50a89c of _0x5d227e['block']){const _0x3e1a1d=_0x4edb2d['getGhsAttributeNameForElement'](_0x50a89c['element']);_0x4a5d5a['add'](_0x3e1a1d);}const _0x47381d=new Set();for(const _0x4c8073 of _0x5d227e['inline']){const _0x23ce64=_0x4edb2d['getGhsAttributeNameForElement'](_0x4c8073['element']);_0x47381d['add'](_0x23ce64);for(const _0x28dd7c of _0x4c8073['ghsAttributes'])_0x47381d['add'](_0x28dd7c);}for(const _0xcf4c06 of _0x4a5d5a)_0xb43aa5['registerBlockAttribute'](_0xcf4c06);for(const _0x52a999 of _0x47381d)_0xb43aa5['registerInlineAttribute'](_0x52a999);}}class z extends _0x48ca39{['afterInit'](){const _0x2616c1=this['editor'];if(!_0x2616c1['plugins']['has']('TableEditing'))return;const _0x23e275=_0x2616c1['plugins']['get']('SuggestionsConversion');_0x23e275['registerBlockAttribute']('headingRows'),_0x23e275['registerBlockAttribute']('headingColumns');}}class O extends _0x48ca39{['afterInit'](){const _0x43bf48=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x1c0b06=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x18cd8f of _0x1c0b06)_0x43bf48['registerBlockAttribute'](_0x18cd8f);}}class R extends _0x48ca39{['afterInit'](){const _0x51ce4e=this['editor'],_0x4ab591=_0x51ce4e['plugins']['get']('SuggestionsConversion');_0x51ce4e['plugins']['has']('TableLayout')&&_0x4ab591['registerBlockAttribute']('tableType');}}class F extends _0x48ca39{['afterInit'](){const _0x580482=this['editor'],_0x566e41=this['editor']['plugins']['get']('SuggestionsConversion');_0x580482['plugins']['has']('Uploadcare')&&_0x580482['plugins']['has']('UploadcareImageEdit')&&_0x566e41['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x48ca39{['afterInit'](){const _0x488703=this['editor'];if(!_0x488703['plugins']['has']('ShiftEnter'))return;const _0x347987=_0x488703['plugins']['get']('SuggestionsConversion'),_0x5d4326=(_0x4e3922,_0x102043,_0x19c2fb,_0x2c85db)=>{if(_0x2c85db&&!_0x19c2fb['options']['showSuggestionHighlights'])return;if(!_0x19c2fb['consumable']['test'](_0x102043['markerRange'],_0x4e3922['name']))return;const _0x26fd83=_0x488703['model'];for(const _0x101793 of _0x102043['markerRange']['getItems']()){if(!_0x101793['is']('element','softBreak'))continue;const _0x10ddf3='deletion'==_0x102043['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x346e4a,authorId:_0x10f0a1}=v(_0x102043['markerName']),_0x180747=_0x19c2fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x10ddf3,'data-suggestion':_0x346e4a,'data-author-id':_0x10f0a1}),_0x20e463=_0x19c2fb['mapper']['toViewPosition'](_0x26fd83['createPositionBefore'](_0x101793));!_0x2c85db&&_0x347987['_activeMarkers']['includes'](_0x102043['markerName'])&&_0x19c2fb['writer']['addClass']('ck-suggestion-marker--active',_0x180747),_0x19c2fb['writer']['insert'](_0x20e463,_0x180747),_0x19c2fb['mapper']['bindElementToMarker'](_0x180747,_0x102043['markerName']);}};_0x488703['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x308ced,_0x116ed3,_0x3064f8)=>{_0x5d4326(_0x308ced,_0x116ed3,_0x3064f8,!0x1);},{'priority':'high'}),_0x488703['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5937ba,_0x369354,_0x3849b9)=>{_0x5d4326(_0x5937ba,_0x369354,_0x3849b9,!0x0);},{'priority':'high'});}}class J extends _0x48ca39{['afterInit'](){const _0xc18bc3=this['editor'];_0xc18bc3['plugins']['has']('MediaEmbedEditing')&&(_0xc18bc3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f8bcc,{writer:_0x1666e3,options:_0x1cc068})=>{if(_0x1cc068['showSuggestionHighlights'])return _0x1666e3['createEmptyElement']('div');},'converterPriority':'high'}),_0xc18bc3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2f76eb,_0x775724,_0x490ea5)=>{_0x490ea5['options']['showSuggestionHighlights']&&_0x2f76eb['stop']();},{'priority':'high'}));}}class L extends _0x48ca39{['afterInit'](){const _0x522496=this['editor'];if(!_0x522496['plugins']['has']('Table'))return;_0x522496['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42880c,_0x4b7f16,_0x971a5e)=>{((_0x17fb03,_0x3b3f66,_0xd5379)=>{if(!_0xd5379['options']['showSuggestionHighlights'])return;const _0x3229ac=_0x3b3f66['item'];if(!_0x3229ac||!_0x3229ac['is']('element','tableCell'))return;const _0x4093ac=_0xd5379['mapper']['toViewElement'](_0x3229ac);if(_0x4093ac){const {id:_0x253cec,authorId:_0x7c738f}=v(_0x3b3f66['markerName']);it(_0x4093ac,_0xd5379['writer'],(_0x3254d0,_0x107c8d,_0x36cd31)=>{_0x36cd31['addClass'](rt(_0x107c8d['classes']),_0x3254d0),_0x36cd31['setAttribute']('data-suggestion-id',_0x253cec,_0x3254d0),_0x36cd31['setAttribute']('data-author-id',_0x7c738f,_0x3254d0);});}})(0x0,_0x4b7f16,_0x971a5e);},{'priority':'highest'});}}class Q extends _0x48ca39{['afterInit'](){const _0x2a4464=this['editor'];_0x2a4464['plugins']['has']('HorizontalLineEditing')&&_0x2a4464['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4c6a32,{writer:_0x5dc8fa,options:_0x18c59a})=>{if(!_0x18c59a['showSuggestionHighlights'])return null;const _0x500706=_0x5dc8fa['createContainerElement']('div'),_0x3901cd=_0x5dc8fa['createEmptyElement']('hr');return _0x5dc8fa['addClass']('ck-horizontal-line',_0x500706),_0x5dc8fa['insert'](_0x5dc8fa['createPositionAt'](_0x500706,0x0),_0x3901cd),_0x500706;},'converterPriority':'high'});}}class kt extends _0x48ca39{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,Q,E,S,$,x,H,N,P,J,K,G,q,L,z,R,O,F];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x52d56a=this['editor'],_0x4a1251=(_0xed428b,_0x30a8c3,_0x3726b4)=>{const {id:_0x39d347,authorId:_0x3c795d,type:_0x2ec11c,subType:_0x2a3a57}=v(_0xed428b['markerName']),_0x3dab4f=['ck-suggestion-marker',this['_getClassName'](_0x2ec11c,_0x2a3a57)];let _0xda4583=0xbb8;return!_0x3726b4&&(this['_activeMarkers']['includes'](_0xed428b['markerName'])&&(_0x3dab4f['push']('ck-suggestion-marker--active'),_0xda4583=0xbc2)),('deletion'==_0x2ec11c&&(_0xda4583+=0x5),{'classes':_0x3dab4f,'attributes':{'data-suggestion':_0x39d347,'data-author-id':_0x3c795d},'priority':_0xda4583});};_0x52d56a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5deaf5,_0x1056b0)=>_0x4a1251(_0x5deaf5,0x0,!0x1)}),_0x52d56a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x573c11,_0x39e13a)=>_0x4a1251(_0x573c11,0x0,!0x0)}),_0x52d56a['conversion']['for']('dataDowncast')['add'](_0x256979=>{_0x256979['on']('addMarker:suggestion',(_0x4b523e,_0x22085f,_0x50724e)=>{if(!_0x50724e['options']['showSuggestionHighlights'])return;const _0x5b528=_0x22085f['item'];if(!_0x5b528)return;const _0xc9e99f=_0x50724e['mapper']['toViewElement'](_0x5b528);_0x52d56a['model']['schema']['isObject'](_0x5b528)&&_0xc9e99f&&!_0xc9e99f['getCustomProperty']('widget')&&_0xc9e99f['is']('containerElement')&&_0x567b45(_0xc9e99f,_0x50724e['writer']);},{'priority':'high'});});const _0x2d309c=(_0x3271c5,_0x51d41e,_0x1a4678,_0x49d770,_0x2c2c08)=>{if(_0x49d770&&!_0x1a4678['options']['showSuggestionHighlights'])return;if(!_0x51d41e['item'])return;const {id:_0x558896,authorId:_0x475c61,subType:_0x47e0bf}=v(_0x51d41e['markerName']);if(_0x2c2c08){const _0x487c83=_0x47e0bf['split']('|')[0x0];if(!this['isBlockAttribute'](_0x487c83))return;}if(_0x51d41e['item']['is']('selection'))return void _0x1a4678['consumable']['consume'](_0x51d41e['item'],_0x3271c5['name']);const _0x3b48ce=_0x1a4678['mapper']['toViewElement'](_0x51d41e['item']);if(_0x51d41e['item']['is']('element')&&_0x52d56a['model']['schema']['isBlock'](_0x51d41e['item'])&&!_0x3b48ce['getCustomProperty']('addHighlight')){_0x1a4678['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3b48ce),_0x1a4678['writer']['setAttribute']('data-suggestion',_0x558896,_0x3b48ce),_0x1a4678['writer']['setAttribute']('data-author-id',_0x475c61,_0x3b48ce),_0x1a4678['mapper']['bindElementToMarker'](_0x3b48ce,_0x51d41e['markerName']),_0x49d770||(this['_activeMarkers']['includes'](_0x51d41e['markerName'])?_0x1a4678['writer']['addClass']('ck-suggestion-marker--active',_0x3b48ce):_0x1a4678['writer']['removeClass']('ck-suggestion-marker--active',_0x3b48ce));for(const _0x28a410 of _0x52d56a['model']['createRangeIn'](_0x51d41e['item'])['getItems']())_0x1a4678['consumable']['consume'](_0x28a410,_0x3271c5['name']);_0x1a4678['consumable']['consume'](_0x51d41e['item'],_0x3271c5['name']);}},_0x1b1946=(_0x5103f9,_0x37206e,_0x468146,_0x5ab282)=>{const _0x21a9a9=_0x468146['mapper']['markerNameToElements'](_0x37206e['markerName']);if(_0x21a9a9){if(_0x5ab282){const {subType:_0x291a0b}=v(_0x37206e['markerName']),_0x1a8434=_0x291a0b['split']('|')[0x0];if(!this['isBlockAttribute'](_0x1a8434))return;}for(const _0x129dc0 of _0x21a9a9)_0x129dc0['getCustomProperty']('addHighlight')||(_0x468146['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x129dc0),_0x468146['writer']['removeAttribute']('data-suggestion',_0x129dc0),_0x468146['writer']['removeAttribute']('data-author-id',_0x129dc0),_0x468146['mapper']['unbindElementFromMarkerName'](_0x129dc0,_0x37206e['markerName']));}};_0x52d56a['conversion']['for']('editingDowncast')['add'](_0x2943c3=>{_0x2943c3['on']('addMarker:suggestion:formatBlock',(_0x50f9e3,_0x38e760,_0x268a68)=>{_0x2d309c(_0x50f9e3,_0x38e760,_0x268a68,!0x1,!0x1);},{'priority':'high'});}),_0x52d56a['conversion']['for']('editingDowncast')['add'](_0x36c6a6=>{_0x36c6a6['on']('addMarker:suggestion:attribute',(_0x183c99,_0x284618,_0x2618ac)=>{_0x2d309c(_0x183c99,_0x284618,_0x2618ac,!0x1,!0x0);},{'priority':'high'});}),_0x52d56a['conversion']['for']('editingDowncast')['add'](_0x120f12=>{_0x120f12['on']('removeMarker:suggestion:formatBlock',(_0x5006ce,_0x4086c1,_0xdcab7a)=>{_0x1b1946(0x0,_0x4086c1,_0xdcab7a,!0x1);},{'priority':'high'});}),_0x52d56a['conversion']['for']('editingDowncast')['add'](_0x241686=>{_0x241686['on']('removeMarker:suggestion:attribute',(_0x225d63,_0x383dd8,_0x235175)=>{_0x1b1946(0x0,_0x383dd8,_0x235175,!0x0);},{'priority':'high'});}),_0x52d56a['conversion']['for']('dataDowncast')['add'](_0x157026=>{_0x157026['on']('addMarker:suggestion:formatBlock',(_0x1c8ebf,_0xccace5,_0x955ecc)=>{_0x2d309c(_0x1c8ebf,_0xccace5,_0x955ecc,!0x0,!0x1);},{'priority':'highest'});}),_0x52d56a['conversion']['for']('dataDowncast')['add'](_0xcbe049=>{_0xcbe049['on']('addMarker:suggestion:attribute',(_0x444cfc,_0x575b49,_0x1cb771)=>{_0x2d309c(_0x444cfc,_0x575b49,_0x1cb771,!0x0,!0x0);},{'priority':'highest'});}),_0x52d56a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3985b1,_0x37cc93)=>{if(_0x37cc93['options']['showSuggestionHighlights']){const {id:_0x24bbd6,authorId:_0x5a4585}=v(_0x3985b1);return _0x3985b1['includes'](':split')||_0x3985b1['includes'](':merge')?{'group':'suggestion','name':_0x3985b1['substr'](0xb),'attributes':{'data-suggestion':_0x24bbd6,'data-author-id':_0x5a4585}}:null;}return{'group':'suggestion','name':_0x3985b1['substr'](0xb)};}});const _0x2bfcfa=(_0x57b435,_0x14abfc,_0xa641c0,_0x1eeaa5,_0x74f2f6)=>{if(_0x1eeaa5&&!_0xa641c0['options']['showSuggestionHighlights'])return;if(!_0xa641c0['consumable']['test'](_0x14abfc['markerRange'],_0x57b435['name']))return;const _0x375e88=this['_activeMarkers'],_0x5453dc=_0x14abfc['markerRange']['getWalker'](),_0x35d4d0=_0x14abfc['markerRange']['start'],_0x112646=_0x52d56a['model']['schema'];let _0x317d01=null,_0x53b1cc=null,_0x2f1030=!0x1,_0x1f7ae4=!0x1;for(const _0xd813c2 of _0x5453dc){const _0x2cf6c3=_0xd813c2['item'];_0x2f1030=_0x2f1030||_0x112646['isContent'](_0x2cf6c3);const _0x18de07=_0xa641c0['mapper']['toViewElement'](_0x2cf6c3);if(_0x18de07&&_0x18de07['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd813c2['type']&&(_0x112646['isBlock'](_0x2cf6c3)&&!_0x112646['isLimit'](_0x2cf6c3)&&(_0x2cf6c3['nextSibling']||_0x35d4d0['isAtEnd']?_0x317d01&&_0x317d01['parent']==_0x2cf6c3||(_0x317d01=_0x2cf6c3,_0x4adac2(_0xd813c2['previousPosition']),_0x1f7ae4=!0x0):_0x53b1cc=_0x53b1cc||_0xd813c2['previousPosition']));}function _0x4adac2(_0x5db619){const {id:_0x162026,authorId:_0x2ed8a5}=v(_0x14abfc['markerName']),_0xe2178b=_0xa641c0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x74f2f6,'data-suggestion':_0x162026,'data-author-id':_0x2ed8a5}),_0x525e12=_0xa641c0['mapper']['toViewPosition'](_0x5db619);!_0x1eeaa5&&_0x375e88['includes'](_0x14abfc['markerName'])&&_0xa641c0['writer']['addClass']('ck-suggestion-marker--active',_0xe2178b),_0xa641c0['writer']['insert'](_0x525e12,_0xe2178b),_0xa641c0['mapper']['bindElementToMarker'](_0xe2178b,_0x14abfc['markerName']);}_0x2f1030||_0x1f7ae4||!_0x53b1cc||_0x4adac2(_0x53b1cc);};_0x52d56a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x44ded0,_0x6724c7,_0x9e2172)=>{_0x2bfcfa(_0x44ded0,_0x6724c7,_0x9e2172,!0x1,'merge');},{'priority':'high'}),_0x52d56a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x544aa5,_0x3578f8,_0x446403)=>{_0x2bfcfa(_0x544aa5,_0x3578f8,_0x446403,!0x0,'merge');},{'priority':'high'}),_0x52d56a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x441e12,_0x4a47cb,_0x4d8d55)=>{_0x2bfcfa(_0x441e12,_0x4a47cb,_0x4d8d55,!0x1,'split');},{'priority':'high'}),_0x52d56a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x495f9d,_0x766a08,_0x3442d9)=>{_0x2bfcfa(_0x495f9d,_0x766a08,_0x3442d9,!0x0,'split');},{'priority':'high'}),_0x52d56a['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x37cf34,_0x5e2484,_0xd8e49a)=>{((_0x14e33f,_0x11f5cb,_0x2c2e66)=>{const _0x3358ff=_0x2c2e66['mapper']['markerNameToElements'](_0x11f5cb['markerName']);if(_0x3358ff){for(const _0x9dfb49 of _0x3358ff)(_0x9dfb49['hasClass']('ck-suggestion-marker-split')||_0x9dfb49['hasClass']('ck-suggestion-marker-merge'))&&(_0x2c2e66['mapper']['unbindElementFromMarkerName'](_0x9dfb49,_0x11f5cb['markerName']),_0x2c2e66['writer']['remove'](_0x9dfb49));}})(0x0,_0x5e2484,_0xd8e49a);},{'priority':'high'});const _0x1a1b16=(_0x1d842c,_0x322f48,_0x115d33,_0x433d6a)=>{if(_0x433d6a&&!_0x115d33['options']['showSuggestionHighlights'])return;const _0x2e05a3=_0x322f48['markerRange']['start'],_0x2c98af=_0x322f48['markerRange']['end'],_0x109c0c=_0x52d56a['model']['schema'];if(!_0x2e05a3['isTouching'](_0x2c98af)||!_0x2e05a3['nodeAfter'])return;const _0x1abd85=_0x2e05a3['nodeAfter'];if(_0x109c0c['isBlock'](_0x1abd85)&&!_0x109c0c['isLimit'](_0x1abd85)&&_0x109c0c['checkChild'](_0x1abd85,'$text')){if(!_0x115d33['consumable']['consume'](_0x322f48['markerRange'],_0x1d842c['name']))return;const {id:_0x69e5ba,authorId:_0x4acd94}=v(_0x322f48['markerName']),_0x2f10cd=_0x115d33['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x69e5ba,'data-author-id':_0x4acd94}),_0x5ee1f4=_0x115d33['mapper']['toViewPosition'](_0x2c98af);!_0x433d6a&&this['_activeMarkers']['includes'](_0x322f48['markerName'])&&_0x115d33['writer']['addClass']('ck-suggestion-marker--active',_0x2f10cd),_0x115d33['writer']['insert'](_0x5ee1f4,_0x2f10cd),_0x115d33['mapper']['bindElementToMarker'](_0x2f10cd,_0x322f48['markerName']);}};_0x52d56a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2a4ff8,_0x388144,_0x532479)=>{_0x1a1b16(_0x2a4ff8,_0x388144,_0x532479,!0x1);},{'priority':'high'}),_0x52d56a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b4213,_0x2b2904,_0x2a9e7e)=>{_0x1a1b16(_0x2b4213,_0x2b2904,_0x2a9e7e,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x26a46a,_0x2b5a7b,_0x25f962)=>{this['_activeMarkers']=_0x25f962['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x195d7c){this['_blockAttributeKeys']['add'](_0x195d7c);}['registerInlineAttribute'](_0x8b7ecf){this['_inlineAttributeKeys']['add'](_0x8b7ecf);}['isBlockAttribute'](_0x2bb87e){return this['_blockAttributeKeys']['has'](_0x2bb87e);}['isInlineAttribute'](_0x2acfa4){return this['_inlineAttributeKeys']['has'](_0x2acfa4);}['isRegisteredAttribute'](_0x14e7de){return this['isInlineAttribute'](_0x14e7de)||this['isBlockAttribute'](_0x14e7de);}['_getClassName'](_0xf03419,_0x487822){if('attribute'!=_0xf03419)return'ck-suggestion-marker-'+_0xf03419;const _0x42195d=_0x487822['split']('|')[0x0];return this['isBlockAttribute'](_0x42195d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x1f53ac={},_0x33dadb){if(void 0x0!==_0x1f53ac['dateTimeFormat']&&'function'!=typeof _0x1f53ac['dateTimeFormat'])throw new _0x1fcd88('invalid-date-time-format');return _0x29b977=>{const _0x25877e='string'==typeof _0x29b977?tt['fromISO'](_0x29b977):tt['fromJSDate'](_0x29b977),_0x280dbb=tt['now'](),_0x26ff51=Math['floor'](_0x280dbb['diff'](_0x25877e,'days')['days']);return _0x1f53ac['dateTimeFormat']?_0x1f53ac['dateTimeFormat'](_0x25877e['toJSDate'](),_0x33dadb&&_0x33dadb['t']?_0x33dadb['t']:void 0x0):0x0===_0x26ff51?_0x33dadb?U(_0x33dadb,'Today')+'\x20'+_0x25877e['toFormat']('hh:mma'):_0x25877e['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x26ff51?_0x33dadb?U(_0x33dadb,'Yesterday')+'\x20'+_0x25877e['toFormat']('hh:mma'):_0x25877e['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x26ff51<0x7?_0x33dadb?U(_0x33dadb,'Last')+'\x20'+U(_0x33dadb,_0x25877e['toFormat']('EEEE'))+'\x20'+_0x25877e['toFormat']('hh:mma'):_0x25877e['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x25877e['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x48d509,_0x45d3c4){const _0x96a18f=_0x48d509['mapper']['markerNameToElements'](_0x45d3c4['name']);if(!_0x96a18f)return null;const _0x42f434=_0x404814(_0x96a18f['values']());return _0x48d509['view']['domConverter']['mapViewToDom'](_0x42f434)||null;}function wt(_0x47b4ac,_0x4ec684){if(0x0===_0x4ec684['length'])return null;const _0x22c138=[],_0x10d0c5=_0x47b4ac['view']['domConverter'];for(const _0x399172 of _0x4ec684){const _0x3e7534=_0x47b4ac['mapper']['markerNameToElements'](_0x399172['name']);if(!_0x3e7534)continue;const _0x31953c=Array['from'](_0x3e7534)['map'](_0x3cec68=>_0x10d0c5['mapViewToDom'](_0x3cec68))['filter'](_0x117cbf=>!!_0x117cbf);_0x22c138['push'](..._0x31953c);}if(0x0===_0x22c138['length'])return null;const _0xcf2493=[];for(const _0x32e7ba of _0x22c138){const _0x3c3575=_0x32e7ba['getClientRects']()['item'](0x0);_0x3c3575&&_0xcf2493['push']({'x':_0x3c3575['x'],'y':_0x3c3575['y'],'domElement':_0x32e7ba});}return 0x0===_0xcf2493['length']?null:(_0xcf2493['sort']((_0x5c97f9,_0x44937f)=>_0x5c97f9['y']-_0x44937f['y']||_0x5c97f9['x']-_0x44937f['x']),_0xcf2493['map'](_0x5db4c5=>_0x5db4c5['domElement']));}function bt(_0x4cdde3,{limit:_0x5ee447,suffix:_0x24b131='...'}){const _0x45229e=[];let _0x213001=0x0;const _0x518d65=_0x4cdde3['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x46c6ce=0x0;_0x46c6ce<_0x518d65['length'];_0x46c6ce++){let _0x971ee0=_0x518d65[_0x46c6ce];const _0x3e1b6f=tn(_0x971ee0);if(_0x971ee0['startsWith']('<')){if(_0x213001>=_0x5ee447){const _0x2b1919=_0x971ee0['match'](/[a-zA-Z]+/);if(!_0x2b1919){_0x518d65[_0x46c6ce]='';continue;}const _0x267c3c=_0x2b1919[0x0];_0x971ee0['startsWith']('</')?(_0x45229e['length']&&(_0x971ee0=''),_0x45229e['pop']()):(_0x45229e['push'](_0x267c3c),_0x971ee0='');}}else{if(_0x213001>=_0x5ee447)_0x971ee0='';else{if(_0x213001+_0x3e1b6f['length']>=_0x5ee447){let _0x389746=_0x5ee447-_0x213001;if('\x20'===_0x3e1b6f[_0x389746-0x1])_0x389746--;else{const _0xaf9392=_0x3e1b6f['slice'](_0x389746)['indexOf']('\x20');-0x1!==_0xaf9392?_0x389746+=_0xaf9392:_0x389746=_0x971ee0['length'];}_0x971ee0=_0x3e1b6f['slice'](0x0,_0x389746)['join']('')+_0x24b131,_0x213001=_0x5ee447;}else _0x213001+=_0x3e1b6f['length'];}}_0x518d65[_0x46c6ce]=_0x971ee0;}return _0x518d65['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x188fce){const _0x520c0b=[];for(let _0x30bd55=0x0;_0x30bd55<_0x188fce['length'];_0x30bd55++){const _0x22d846=_0x188fce['substring'](_0x30bd55)['match'](/^&[a-z0-9#]+;/);if(_0x22d846){const _0x35f9cc=_0x22d846[0x0];_0x520c0b['push'](_0x35f9cc),_0x30bd55+=_0x35f9cc['length']-0x1;}else _0x520c0b['push'](_0x188fce[_0x30bd55]);}return _0x520c0b;}class V extends _0x2d5528{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x47932b){super(_0x47932b);const _0x2ee6d3=this['bindTemplate'];this['set']('message',U(_0x47932b,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x47932b,U(_0x47932b,'Yes'),_0x454c6a,'submit'),this['cancelView']=this['_createButtonView'](_0x47932b,U(_0x47932b,'No'),_0x357bbf,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x4c4613(),this['focusCycler']=new _0x292311({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x2ee6d3['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x340482,_0x40a11a,_0x3eed18,_0xd89451){const _0x191e2a=new _0x5f5b3b(_0x340482);return _0x191e2a['label']=_0x40a11a,_0x191e2a['icon']=_0x3eed18,_0x191e2a['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0xd89451}}),_0x191e2a['on']('execute',()=>this['fire'](_0xd89451)),_0x191e2a;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x28c896=>{this['keystrokes']['listenTo'](_0x28c896['element']),this['focusTracker']['add'](_0x28c896['element']);}),this['keystrokes']['set']('esc',(_0x27d059,_0x10920d)=>{this['fire']('cancel'),_0x10920d();});}}function vt(_0x16b3e4){return class extends _0x16b3e4{['showConfirm'](_0x4331b6,_0x17615d){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x4331b6,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x17615d['appendChild'](this['confirmView']['element']),_0x17615d['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x4a3404,_0x554715,_0x1e8a47)=>{_0x1e8a47||_0x17615d['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x4a920a=>this['confirmView']['on']('submit',_0x4a920a));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0x3ff026){let _0x5c507f=0x0,_0x226cdf=0x0;for(const _0x51a555 of ne(_0x3ff026))_0x5c507f=(_0x5c507f<<0x5)-_0x5c507f+_0x51a555,_0x5c507f&=_0x5c507f,[_0x5c507f,_0x226cdf]=[_0x226cdf,_0x5c507f];return ie(_0x5c507f)+ie(_0x226cdf);}function*ee(_0x422b72){null==_0x422b72||null==_0x422b72?yield 0x12b9b0a1:0x0===_0x422b72||!0x1===_0x422b72?yield 0x0:0x1===_0x422b72||0x1==_0x422b72?yield 0x1:Array['isArray'](_0x422b72)?yield*function*(_0x443d7c){for(const _0x14dd36 of _0x443d7c)yield*ee(_0x14dd36);}(_0x422b72):'object'==typeof _0x422b72?yield*ne(_0x422b72):'string'==typeof _0x422b72?yield*oe(_0x422b72):'number'==typeof _0x422b72&&(yield _0x422b72);}function*ne(_0x7a698c){if(yield te('{'),_0x7a698c){const _0x518abc=Object['keys'](_0x7a698c)['sort']();for(const _0x342188 of _0x518abc){yield*oe(_0x342188),yield te(':');const _0x1fbd6d=_0x7a698c[_0x342188];yield*ee(_0x1fbd6d);}}yield te('}');}function*oe(_0x434199){yield te('\x22');for(const _0x2ba04e of _0x434199)yield te(_0x2ba04e);yield te('\x22');}function te(_0x59805c){return _0x59805c['charCodeAt'](0x0);}function ie(_0x4ace81){return(_0x4ace81*=Math['sign'](_0x4ace81))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x5e9117,_0x33b72d,_0x218783,_0x33c832=[]){const _0x4a2ff9='string'==typeof _0x5e9117?_0x218783['get'](_0x5e9117)['constructor']:_0x5e9117['prototype']['constructor'];if(_0x33b72d['has'](_0x4a2ff9))return _0x33b72d['get'](_0x4a2ff9);_0x33b72d['set'](_0x4a2ff9,!0x0);const _0x34a707=[...et,..._0x33c832]['map'](_0x9b8a71=>{if(_0x218783['has'](_0x9b8a71))return _0x218783['get'](_0x9b8a71)['constructor'];})['filter'](_0x330ad1=>_0x330ad1);if(_0x4a2ff9&&_0x34a707['includes'](_0x4a2ff9))return _0x33b72d['set'](_0x4a2ff9,!0x1),!0x1;if(!_0x4a2ff9['requires'])return _0x33b72d['set'](_0x4a2ff9,!0x0),!0x0;const _0x8b1fb9=_0x4a2ff9['requires']['every'](_0x28345f=>ot(_0x28345f,_0x33b72d,_0x218783,_0x33c832));return _0x33b72d['set'](_0x4a2ff9,_0x8b1fb9),_0x8b1fb9;}function Ct(_0x2037ac,_0x4ad8bd){const _0x4d752c={};for(const _0x39e06f of _0x2037ac['config']['names']())nt['includes'](_0x39e06f)||(_0x4d752c[_0x39e06f]=_0x2037ac['config']['get'](_0x39e06f));const _0x1899ac=_0x4d752c['plugins']||[],_0x4e9845=_0x2037ac['constructor']['builtinPlugins']||[],_0x51068b=_0x1899ac['length']?_0x1899ac:_0x4e9845,_0x3e38b1=_0x4d752c['extraPlugins']||[];delete _0x4d752c['extraPlugins'];const _0x2dbfdb=_0x4d752c['removePlugins']||[];delete _0x4d752c['removePlugins'];const _0x331021=_0x2037ac['_context']['config']['get']('plugins')||[],_0xa1838c=_0x51068b['concat'](_0x3e38b1)['concat'](_0x331021)['map'](_0x35317d=>'string'==typeof _0x35317d?_0x4e9845['find'](_0x11d37b=>_0x11d37b['pluginName']==_0x35317d):_0x35317d)['filter'](_0x1b4856=>!_0x2dbfdb['includes'](_0x1b4856)&&!_0x2dbfdb['includes'](_0x1b4856['pluginName'])),_0x2370da=Array['from'](new Set(_0xa1838c)),_0x404654=new Map();return _0x4d752c['plugins']=_0x2370da['filter'](_0x57bc61=>ot(_0x57bc61,_0x404654,_0x2037ac['plugins'],_0x4ad8bd)),_0x4d752c;}function _t(_0x5c7264,_0x308655){const _0x2a0812=[];_0x5c7264['document']['selection']['on']('change:range',()=>{const _0x489f91=function(_0xda50e4,_0x189ba8){const _0x1f5788=[];for(const _0x36cb24 of _0xda50e4['markers']){const _0x4801fd=_0x36cb24['getRange']();(_0x4801fd['containsPosition'](_0x189ba8)||_0x4801fd['start']['isEqual'](_0x189ba8)||_0x4801fd['end']['isEqual'](_0x189ba8))&&_0x1f5788['push'](_0x36cb24);}return _0x1f5788;}(_0x5c7264,_0x5c7264['document']['selection']['focus']),_0x4458b8=[],_0x10152b=[],_0x1e49ad=[];for(const _0x4ab155 of _0x2a0812)_0x489f91['includes'](_0x4ab155)||_0x4458b8['push'](_0x4ab155);for(const _0x2c035a of _0x489f91)_0x2a0812['includes'](_0x2c035a)||_0x10152b['push'](_0x2c035a),_0x1e49ad['push'](_0x2c035a);(_0x4458b8['length']||_0x10152b['length'])&&_0x308655({'left':_0x4458b8,'entered':_0x10152b}),_0x2a0812['length']=0x0,_0x2a0812['push'](..._0x1e49ad);});}const xt='Ctrl+Shift+E';function It(_0x1c32b2,_0x209942){const _0x58d0f7=_0x1c32b2['element'];_0x1c32b2['keystrokes']['listenTo'](_0x58d0f7);for(const _0x1f1513 of _0x209942)ro(_0x1c32b2,_0x1f1513);_0x209942['on']('change',(_0x4976d0,_0x58ac93)=>{for(const _0x4e7b80 of _0x58ac93['removed'])to(_0x1c32b2,_0x4e7b80);for(const _0x55c873 of Array['from'](_0x58ac93['added'])['reverse']())ro(_0x1c32b2,_0x55c873);}),_0x1c32b2['keystrokes']['set']('enter',(_0x4d5123,_0x43f673)=>{_0x58d0f7===_0x4d5123['target']&&(_0x1c32b2['focusCycler']['focusFirst'](),_0x43f673());},{'filter':_0x47547e=>_0x47547e['target']===_0x58d0f7}),_0x1c32b2['keystrokes']['set']('esc',(_0x3c36b2,_0x4abbc9)=>{_0x58d0f7!==_0x3c36b2['target']?_0x1c32b2['focus']():_0x1c32b2['fire']('escape'),_0x4abbc9();}),_0x1c32b2['keystrokes']['set']('arrowdown',(_0x14a163,_0x47e57e)=>{_0x58d0f7===_0x14a163['target']&&(_0x1c32b2['fire']('arrowdown'),_0x47e57e());}),_0x1c32b2['keystrokes']['set']('arrowup',(_0x5ac47e,_0x39b744)=>{_0x58d0f7===_0x5ac47e['target']&&(_0x1c32b2['fire']('arrowup'),_0x39b744());});}function ro(_0x120e9d,_0x4f4769){_0x4f4769['isRendered']&&(_0x120e9d['focusTracker']['add'](_0x4f4769['element']),_0x120e9d['keystrokes']['listenTo'](_0x4f4769['element']),_0x2767b4(_0x4f4769)&&function(_0x2de108,_0x1b1f37){const _0x2ec28e=_0x2de108['actions'],_0x8d1d03=_0x1b1f37['actions'];for(const _0x2b6f18 of Object['keys'](_0x2ec28e))if(_0x2b6f18 in _0x8d1d03&&_0x2ec28e[_0x2b6f18]!==_0x8d1d03[_0x2b6f18])return!0x1;return!0x0;}(_0x120e9d['focusCycler'],_0x4f4769['focusCycler'])&&_0x120e9d['focusCycler']['chain'](_0x4f4769['focusCycler']));}function to(_0x5ac47f,_0x5e5fe6){_0x5ac47f['focusTracker']['remove'](_0x5e5fe6['element']),_0x5ac47f['keystrokes']['stopListening'](_0x5e5fe6['element']),_0x2767b4(_0x5e5fe6)&&_0x5ac47f['focusCycler']['unchain'](_0x5e5fe6['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x39281c{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x254c31?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x320a84,_0x3c5be5)=>{_0x3c5be5['on']('ready',()=>{this['_integrateEditor'](_0x3c5be5);});});}get['editor'](){if(this['context']instanceof _0x254c31)return this['context'];{const _0x186335=this['context']['editors']['first'];if(!_0x186335)throw new _0x1fcd88('documentcompare-no-editor',this);return _0x186335;}}['getDiff'](_0x53baca,_0x313046,_0x420302={'anchor':'main','markDeletions':!0x1}){let _0x3928a7,_0x10410c;const _0x206b8a=this['editor'];if('string'==typeof _0x420302['anchor']){const _0x1d9ede=_0x206b8a['model']['document']['getRoot'](_0x420302['anchor']);if(!_0x1d9ede)throw new _0x1fcd88('documentcompare-compare-no-root',this,{'anchor':_0x420302['anchor']});_0x3928a7=_0x1d9ede,_0x10410c=_0x206b8a['model']['createPositionAt'](_0x1d9ede,0x0);}else _0x3928a7=_0x420302['anchor']['clone'](),_0x10410c=_0x420302['anchor']['clone']();const _0x519585=_0x206b8a['data']['parse'](_0x53baca,_0x3928a7),_0x46d830=_0x206b8a['data']['parse'](_0x313046,_0x3928a7);return new Mt(_0x519585,_0x46d830,_0x206b8a,{'anchor':_0x10410c,'markDeletions':_0x420302['markDeletions']});}['isMarkedRemoveOperation'](_0x29448b){return'marker'==_0x29448b['type']&&_0x29448b['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x8f505f){_0x8f505f['conversion']['for']('upcast')['add'](_0x4de1fe=>{_0x4de1fe['on']('element',(_0x3c6b53,_0x882d43,_0xbb8a3d)=>{if(_0x882d43['modelRange'])for(const _0x22dbfb of _0x882d43['modelRange']['getItems']({'shallow':!0x0})){if(_0x22dbfb['is']('$textProxy'))continue;const _0x14ae31=_0x882d43['viewItem']['getAttribute'](Et);_0x14ae31&&_0xbb8a3d['writer']['setAttribute'](St,_0x14ae31,_0x22dbfb);}},{'priority':'lowest'});}),_0x8f505f['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x548c04,_0x50bb68,_0x47ea6e,_0x5604da){this['_editor']=_0x47ea6e,this['_markDeletions']=!!_0x5604da['markDeletions'],this['_anchor']=_0x5604da['anchor'];const _0x5601a5=this['_tokenizeModel'](_0x548c04),_0x47309c=this['_tokenizeModel'](_0x50bb68);this['_diffItems']=this['_diffModelTokens'](_0x5601a5,_0x47309c),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x548c04['markers'],_0x50bb68['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x39b770=this['_editor']['model']['document'],_0x383383=[];let _0x14034b=_0x39b770['version'];for(const _0x146a59 of this['_operationsData'])switch(_0x146a59['type']){case'attribute':{const _0x224b85=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['path']),_0x3bbc51=_0x224b85['getShiftedBy'](_0x146a59['howMany']),_0x38ffce=new _0x1b485f(_0x224b85,_0x3bbc51),_0x134375=JSON['parse'](_0x146a59['oldValue']),_0x763110=JSON['parse'](_0x146a59['newValue']);_0x383383['push'](new _0x1e8449(_0x38ffce,_0x146a59['key'],_0x134375,_0x763110,_0x14034b++));break;}case'insert':{const _0x37551b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['path']),_0x433a3b=this['_makeModelFromTokens'](_0x146a59['tokens']);_0x383383['push'](new _0x574a4c(_0x37551b,_0x433a3b,_0x14034b++));break;}case'remove':{const _0x5321dc=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['path']),_0x188d36=new _0x300359(_0x39b770['graveyard'],[0x0]);_0x383383['push'](new _0x1cadca(_0x5321dc,_0x146a59['howMany'],_0x188d36,_0x14034b++));break;}case'rename':{const _0xa6552c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['path']);_0x383383['push'](new _0x480db8(_0xa6552c,_0x146a59['oldName'],_0x146a59['newName'],_0x14034b++));break;}case'split':{const _0x4d9e13=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['path']),_0x9d05bf=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['path']['slice'](0x0,-0x1));_0x9d05bf['offset']++,_0x383383['push'](new _0x47077c(_0x4d9e13,Number['NEGATIVE_INFINITY'],_0x9d05bf,null,_0x14034b++));break;}case'merge':{const _0xb395d=_0x146a59['path']['slice'](),_0x1d698a=_0xb395d['slice'](0x0,-0x1);_0x1d698a[_0x1d698a['length']-0x1]++,_0x1d698a['push'](0x0);const _0x5b7364=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1d698a),_0x19e83c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb395d),_0x5aa03b=new _0x300359(_0x39b770['graveyard'],[0x0]);_0x383383['push'](new _0x218f06(_0x5b7364,Number['NEGATIVE_INFINITY'],_0x19e83c,_0x5aa03b,_0x14034b++));break;}case'marker':case'markedRemove':{let _0x2c1a22=null;if(_0x146a59['range']){const _0x29c742=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['range']['start']),_0xb1a66c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['range']['end']);_0x2c1a22=new _0x1b485f(_0x29c742,_0xb1a66c);}const _0x57728f='marker'==_0x146a59['type']?_0x146a59['name']:'$markedRemove:'+_0x27276d();_0x383383['push'](new _0x329d5c(_0x57728f,null,_0x2c1a22,_0x39b770['model']['markers'],!0x0,_0x14034b++));break;}case'unwrap':{const _0x28ca54=_0x146a59['path']['slice']();_0x28ca54['push'](0x0);const _0x346104=_0x146a59['path']['slice'](),_0xcd38de=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x28ca54),_0xea3865=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x346104),_0x5ce96b=new _0x300359(_0x39b770['graveyard'],[0x0]);_0x383383['push'](new _0x1cadca(_0xcd38de,_0x146a59['howMany'],_0xea3865,_0x14034b++)),_0x383383['push'](new _0x1cadca(_0xea3865['getShiftedBy'](_0x146a59['howMany']),0x1,_0x5ce96b,_0x14034b++));break;}case'wrap':{const _0x535cb8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['range']['start']),_0x1887c5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x146a59['range']['end']),_0x1050a3=_0x146a59['token']['element']['_clone'](!0x1),_0x14618c=_0x146a59['range']['end']['slice']();_0x14618c['push'](0x0);const _0xb5d152=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x14618c);_0x383383['push'](new _0x574a4c(_0x1887c5,_0x1050a3,_0x14034b++)),_0x383383['push'](new _0x1cadca(_0x535cb8,_0x1887c5['offset']-_0x535cb8['offset'],_0xb5d152,_0x14034b++));break;}}return _0x383383;}['_tokenizeModel'](_0x446a89){const _0x4756a5=[],_0x547e7d=_0x1b485f['_createIn'](_0x446a89),_0x1df0ad=new _0x36d566({'boundaries':_0x547e7d});let _0x5a3870='',_0x344fd6=null;const _0x2a44ec=[''],_0x2ca6f7=new Map();for(const _0x6358ca of _0x1df0ad)if('elementStart'==_0x6358ca['type']||'elementEnd'==_0x6358ca['type']){let _0x47fa6b=_0x2a44ec[0x0];''!==_0x5a3870&&(_0x4756a5['push'](...this['_makeTokensFromTextByWords'](_0x5a3870,_0x344fd6,_0x47fa6b)),_0x5a3870='');const _0x281996=_0x6358ca['item'];let _0x55cb10;_0x281996['getAttribute'](St)?_0x55cb10=_0x281996['getAttribute'](St):'elementStart'==_0x6358ca['type']?(_0x55cb10=_(_0x281996),_0x2ca6f7['set'](_0x281996,_0x55cb10)):_0x55cb10=_0x2ca6f7['get'](_0x281996);const _0x263b56=this['_getElementCategory'](_0x281996);'solid'==_0x263b56&&('elementStart'==_0x6358ca['type']?(_0x47fa6b=_0x55cb10,_0x2a44ec['unshift'](_0x47fa6b)):_0x2a44ec['shift']());const _0x26d613={'type':'element','element':_0x281996,'elementId':_0x55cb10,'category':_0x263b56,'isStart':'elementStart'==_0x6358ca['type'],'limitId':_0x47fa6b};_0x4756a5['push'](_0x26d613);}else''==_0x5a3870&&(_0x344fd6=_0x6358ca['previousPosition']['clone']()),_0x5a3870+=_0x6358ca['item']['data'];return''!==_0x5a3870&&_0x4756a5['push'](...this['_makeTokensFromTextByWords'](_0x5a3870,_0x344fd6,_0x2a44ec[0x0])),_0x4756a5;}['_makeTokensFromTextByWords'](_0xcae9c7,_0x4ba52e,_0x22a39a){const _0x49021b=_0xcae9c7['matchAll'](/(\s)/g),_0x3c83ac=Array['from'](_0x49021b)['map'](_0x1f477a=>_0x1f477a['index']);_0x3c83ac['push'](_0xcae9c7['length']),0x0==_0x3c83ac[0x0]&&_0x3c83ac['shift']();const _0x3e1abb=[],_0x23e384=_0x4ba52e['parent'];let _0x562643=0x0,_0x3174b3=_0x4ba52e['offset'];for(let _0x305c23=0x0;_0x305c23<_0x3c83ac['length'];_0x305c23++)_0x3e1abb['push']({'type':'text','data':_0xcae9c7['slice'](_0x562643,_0x3c83ac[_0x305c23]),'parent':_0x23e384,'offset':_0x3174b3,'limitId':_0x22a39a}),_0x562643=_0x3c83ac[_0x305c23],_0x3174b3=_0x4ba52e['offset']+_0x3c83ac[_0x305c23];return _0x3e1abb;}['_getElementCategory'](_0x6bebdf){const _0x4eaade=this['_editor']['model']['schema'];return _0x4eaade['isLimit'](_0x6bebdf)||_0x4eaade['isContent'](_0x6bebdf)||_0x4eaade['isInline'](_0x6bebdf)?'solid':_0x4eaade['isBlock'](_0x6bebdf)?'block':'container';}['_diffModelTokens'](_0x138a8f,_0x4c10cf){const _0x105ab4=_0x28ad2c(_0x138a8f,_0x4c10cf,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x105ab4);const _0x34d45a=_0x105ab4['flatMap'](_0x451a6e=>{const _0x2c872e=_0x451a6e['added']?'added':_0x451a6e['removed']?'removed':'unchanged';return _0x451a6e['value']['map'](_0x136fb0=>({'token':_0x136fb0,'change':_0x2c872e}));});let _0x1db5e7=0x0;for(const _0x94b961 of _0x34d45a)'added'!=_0x94b961['change']&&('unchanged'==_0x94b961['change']&&(_0x94b961['before']=_0x138a8f[_0x1db5e7]),_0x1db5e7++);return _0x34d45a;}['_handleUnclosedBlockOpeningTags'](_0x288a38){for(let _0x55e744=0x0;_0x55e744<_0x288a38['length']-0x1;_0x55e744++)if(_0x288a38[_0x55e744]['removed']&&_0x288a38[_0x55e744+0x1]['added']){const _0x40a347=this['_findUnclosedBlockOpeningToken'](_0x288a38[_0x55e744]['value']);if(null!==_0x40a347){const _0x20c2b1=this['_findUnclosedBlockOpeningToken'](_0x288a38[_0x55e744+0x1]['value']),_0x34b328=_0x288a38[_0x55e744]['value']['splice'](_0x40a347),_0x412f0b=_0x288a38[_0x55e744+0x1]['value']['splice'](_0x20c2b1),_0x48a7fb=[_0x412f0b['shift']()];_0x34b328['shift']();const _0x57b9aa={'value':_0x34b328,'removed':!0x0},_0x5b102d={'value':_0x412f0b,'added':!0x0},_0x5753c3={'value':_0x48a7fb};_0x288a38['splice'](_0x55e744+0x2,0x0,_0x5753c3,_0x57b9aa,_0x5b102d);}}}['_findUnclosedBlockOpeningToken'](_0x3f7503){let _0x1a9069=0x0,_0x368914=-0x1;for(let _0x1fc121=0x0;_0x1fc121<_0x3f7503['length'];_0x1fc121++){const _0x182e6b=_0x3f7503[_0x1fc121];'element'==_0x182e6b['type']&&'block'==_0x182e6b['category']&&(_0x1a9069+=_0x182e6b['isStart']?0x1:-0x1,_0x182e6b['isStart']&&(_0x368914=_0x1fc121));}return 0x0===_0x1a9069?null:_0x368914;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x46ddd6=0x0;_0x46ddd6<this['_diffItems']['length'];_0x46ddd6++){const _0x31dc42=this['_diffItems'][_0x46ddd6]['change'],_0x411240=[];_0x411240['push'](this['_diffItems'][_0x46ddd6]);let _0x270a56=_0x46ddd6+0x1;for(;this['_diffItems'][_0x270a56]&&this['_diffItems'][_0x270a56]['change']==_0x31dc42;)_0x411240['push'](this['_diffItems'][_0x270a56]),_0x270a56++,_0x46ddd6++;const _0xc52566=_0x411240['map'](_0x320344=>_0x320344['token']);if('unchanged'==_0x31dc42)_0x411240['map'](_0x2da4fd=>_0x2da4fd['before'])['forEach'](_0x16907e=>this['_traverseOverItem'](_0x16907e));else{if('removed'==_0x31dc42){if(this['_markDeletions']){const _0x4a154a=this['_path']['slice']();_0xc52566['forEach'](_0x2c1f87=>this['_traverseOverItem'](_0x2c1f87));const _0x1d59a0=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x4a154a,'end':_0x1d59a0}});}else this['_handleChanged'](_0xc52566,!0x0,this['_path']['slice']());}else{const _0x3bd1a7=_0xc52566['filter'](_0x5ac4fd=>'element'!=_0x5ac4fd['type']||'container'!=_0x5ac4fd['category']);this['_handleChanged'](_0x3bd1a7,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x3e6a4f=0x0;_0x3e6a4f<this['_diffItems']['length'];_0x3e6a4f++){const _0x23e1aa=this['_diffItems'][_0x3e6a4f]['change'],_0x26df5d=[];_0x26df5d['push'](this['_diffItems'][_0x3e6a4f]);let _0x45b103=_0x3e6a4f+0x1;for(;this['_diffItems'][_0x45b103]&&this['_diffItems'][_0x45b103]['change']==_0x23e1aa;)_0x26df5d['push'](this['_diffItems'][_0x45b103]),_0x45b103++,_0x3e6a4f++;const _0x1c866c=_0x26df5d['map'](_0x56ca76=>_0x56ca76['token']);if('unchanged'==_0x23e1aa){const _0x41afff=_0x26df5d['map'](_0x530edb=>_0x530edb['before']);this['_handleUnchanged'](_0x41afff,_0x1c866c);}else('removed'!=_0x23e1aa||this['_markDeletions'])&&_0x1c866c['forEach'](_0x230742=>{this['_traverseOverItem'](_0x230742);});}}['_calculateMarkersOperationsData'](_0xd6ee6,_0x324db8){const _0x595b60={};for(const [_0xd25ed8]of _0xd6ee6)_0x595b60[_0xd25ed8]=null;for(const [_0x1eb4c4,_0x3d118f]of _0x324db8)_0x595b60[_0x1eb4c4]=_0x3d118f;const _0xe4c9f0=Object['entries'](_0x595b60)['map'](([_0x1ec185,_0x3abd0e])=>({'type':'marker','name':_0x1ec185,'range':_0x3abd0e?{'start':_0x3abd0e['start']['path']['slice'](),'end':_0x3abd0e['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xe4c9f0);}['_handleUnwraps'](){const _0x28a9eb=new Map(),_0x2c93a8=[],_0x2b85b2=[0x0];let _0x36a5c4=this['_diffItems']['length']+0x1;for(let _0x2a6415=this['_diffItems']['length']-0x1;_0x2a6415>=0x0;_0x2a6415--){const {token:_0x5b8963,before:_0x2bd18f,change:_0x3187b4}=this['_diffItems'][_0x2a6415];if('removed'!=_0x3187b4&&(_0x36a5c4=_0x2a6415),'element'!=_0x5b8963['type']||'container'!=_0x5b8963['category']||'added'==_0x3187b4)continue;const _0x4b916f=_0x2bd18f?_0x2bd18f['element']:_0x5b8963['element'];if(_0x5b8963['isStart']){const _0x48248b=_0x28a9eb['get'](_0x4b916f),_0xe4f64=this['_diffItems'][_0x48248b];('removed'==_0x3187b4||'removed'==_0xe4f64['change'])&&_0x36a5c4<_0x48248b&&(this['_operationsData']['push']({'type':'unwrap','path':_0x4b916f['getPath'](),'howMany':_0x4b916f['maxOffset']+_0x2b85b2[0x0]}),_0x2b85b2['shift'](),_0x2b85b2[0x0]+=_0x4b916f['maxOffset']-0x1,_0x2c93a8['push'](_0x2a6415),_0x2c93a8['push'](_0x48248b));}else _0x28a9eb['set'](_0x4b916f,_0x2a6415),_0x2b85b2['unshift'](0x0);}_0x2c93a8['sort']((_0x3ab012,_0x1a2b0e)=>_0x1a2b0e-_0x3ab012),_0x2c93a8['forEach'](_0x3a4e44=>{const _0xf673c9=this['_diffItems'][_0x3a4e44];'removed'==_0xf673c9['change']?this['_diffItems']['splice'](_0x3a4e44,0x1):(_0xf673c9['change']='added',delete _0xf673c9['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x476310=[];for(let _0x4537c3=0x0;_0x4537c3<this['_diffItems']['length'];_0x4537c3++){const {change:_0x1d6e59,token:_0x4e44f9}=this['_diffItems'][_0x4537c3];if('added'==_0x1d6e59&&'element'==_0x4e44f9['type']&&'container'==_0x4e44f9['category']){if(_0x4e44f9['isStart'])_0x476310['push'](this['_path']['slice']());else{if(!_0x4e44f9['isStart']){const _0x1d7d86=_0x476310['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x1d7d86,'end':this['_path']['slice']()},'token':_0x4e44f9}),this['_path'][this['_path']['length']-0x1]=_0x1d7d86[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x1d6e59||this['_markDeletions'])&&this['_traverseOverItem'](_0x4e44f9);}}['_handleUnchanged'](_0x38fdf6,_0x459ebc){for(let _0x15b46f=0x0;_0x15b46f<_0x38fdf6['length'];_0x15b46f++){const _0x48c2e4=_0x38fdf6[_0x15b46f];if('element'==_0x48c2e4['type']&&_0x48c2e4['isStart']){const _0xf1466b=_0x459ebc[_0x15b46f];'block'==_0x48c2e4['category']&&this['_handleElementRename'](_0x48c2e4['element'],_0xf1466b['element'],this['_path']),this['_handleElementAttributeChanges'](_0x48c2e4['element'],_0xf1466b['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0xf1466b);}else{if('element'!=_0x48c2e4['type']||_0x48c2e4['isStart']){if('text'==_0x48c2e4['type']){const _0x206eaf=this['_path']['slice'](),_0x346d25=[],_0x3ae0bd=[];for(;_0x38fdf6[_0x15b46f]&&'text'==_0x38fdf6[_0x15b46f]['type'];)_0x346d25['push'](_0x38fdf6[_0x15b46f]),_0x3ae0bd['push'](_0x459ebc[_0x15b46f]),this['_path'][this['_path']['length']-0x1]+=_0x38fdf6[_0x15b46f]['data']['length'],_0x15b46f++;_0x15b46f--,this['_handleTextAttributeChanges'](_0x346d25,_0x3ae0bd,_0x206eaf);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x425672,_0x4232c9,_0x45f953){const _0x2d01a2=[],_0x4a799c=[],_0x32b1d3=_0x45f953['slice']();for(let _0x945cbf=0x0;_0x945cbf<_0x425672['length'];_0x945cbf++){const _0x8dcf85=_0x425672[_0x945cbf],_0x7a4dad=_0x45f953['slice']();if('element'!=_0x8dcf85['type']||_0x8dcf85['isStart'])'element'==_0x8dcf85['type']&&_0x8dcf85['isStart']?(_0x45f953['push'](0x0),_0x4232c9||this['_parents']['push'](_0x8dcf85),_0x4a799c['push']({'before':_0x7a4dad,'after':_0x45f953['slice'](),'index':_0x945cbf})):_0x45f953[_0x45f953['length']-0x1]+=_0x8dcf85['data']['length'];else{let _0x48c8de;_0x45f953['pop'](),_0x45f953[_0x45f953['length']-0x1]++,_0x48c8de=_0x4232c9?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x4a799c['length']?_0x4a799c['pop']():_0x2d01a2['push']({'before':_0x7a4dad,'after':_0x45f953['slice'](),'index':_0x945cbf,'related':_0x48c8de});}}if(_0x4a799c['length']!==_0x2d01a2['length'])throw new _0x1fcd88('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x425672,'isRemove':_0x4232c9});const _0x4ed441=[{'after':_0x32b1d3['slice'](),'index':-0x1},..._0x2d01a2,..._0x4a799c,{'before':_0x45f953['slice'](),'index':_0x425672['length']}];if(_0x4232c9){for(let _0x557e04=_0x4ed441['length']-0x1;_0x557e04>=0x1;_0x557e04--){const _0x3c1ca8=_0x4ed441[_0x557e04-0x1]['after'],_0x5c77ca=_0x4ed441[_0x557e04]['before'],_0x398f7d=_0x5c77ca[_0x5c77ca['length']-0x1]-_0x3c1ca8[_0x3c1ca8['length']-0x1];_0x398f7d&&(this['_operationsData']['push']({'type':'remove','path':_0x3c1ca8,'howMany':_0x398f7d}),_0x5c77ca[_0x5c77ca['length']-0x1]-=_0x398f7d);}for(const {before:_0x4f2ef1}of _0x2d01a2)this['_operationsData']['push']({'type':'merge','path':_0x4f2ef1});}else for(let _0x3f6a5e=0x0;_0x3f6a5e<_0x4ed441['length']-0x1;_0x3f6a5e++){const _0xd32a62=_0x4ed441[_0x3f6a5e]['after'],_0x5bcf05=_0x4ed441[_0x3f6a5e+0x1]['before'],_0x2471b3=_0x4ed441[_0x3f6a5e]['index']+0x1,_0x3e1e53=_0x4ed441[_0x3f6a5e+0x1]['index'];if(_0x2471b3!==_0x3e1e53&&this['_operationsData']['push']({'type':'insert','path':_0xd32a62,'tokens':_0x425672['slice'](_0x2471b3,_0x3e1e53)}),_0x3f6a5e<_0x2d01a2['length']){this['_operationsData']['push']({'type':'split','path':_0x5bcf05});const _0x5d6c37=_0x425672[_0x4a799c[_0x4a799c['length']-0x1-_0x3f6a5e]['index']],_0x3e5879=_0x2d01a2[_0x3f6a5e]['after'],_0x173e22=_0x2d01a2[_0x3f6a5e]['related']['element'];this['_handleElementRename'](_0x173e22,_0x5d6c37['element'],_0x3e5879),this['_handleElementAttributeChanges'](_0x173e22,_0x5d6c37['element'],_0x3e5879);}}}['_traverseOverItem'](_0xbe58c4){'element'==_0xbe58c4['type']&&_0xbe58c4['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0xbe58c4)):'element'!=_0xbe58c4['type']||_0xbe58c4['isStart']?'text'==_0xbe58c4['type']&&(this['_path'][this['_path']['length']-0x1]+=_0xbe58c4['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x174b72,_0x3466da,_0x34ae61){_0x174b72['name']!=_0x3466da['name']&&this['_operationsData']['push']({'type':'rename','path':_0x34ae61['slice'](),'oldName':_0x174b72['name'],'newName':_0x3466da['name']});}['_handleElementAttributeChanges'](_0x335e81,_0x5114c5,_0x117435){const _0x2cfd4c=this['_getAttributeChanges'](_0x335e81['getAttributes'](),_0x5114c5['getAttributes']());for(const _0x1f6afa in _0x2cfd4c){const {oldValue:_0x1bfd58,newValue:_0x324b99}=_0x2cfd4c[_0x1f6afa];this['_operationsData']['push']({'type':'attribute','path':_0x117435['slice'](),'howMany':0x1,'key':_0x1f6afa,'oldValue':_0x1bfd58,'newValue':_0x324b99});}}['_handleTextAttributeChanges'](_0x140c10,_0x128718,_0x168b2c){const _0x479f79=this['_operationsData'],_0x46ba8d=_0x140c10[0x0]['parent'],_0x192ee3=_0x140c10[0x0]['offset'],_0x2851ac=_0x128718[0x0]['parent'],_0x228fdb=_0x128718[0x0]['offset'],_0x4a36f6=_0x140c10['reduce']((_0x2511e2,_0x2114ce)=>_0x2511e2+_0x2114ce['data']['length'],0x0),_0x39d766=this['_getAttrsForOffsets'](_0x46ba8d,_0x192ee3,_0x4a36f6),_0x562683=this['_getAttrsForOffsets'](_0x2851ac,_0x228fdb,_0x4a36f6),_0x594a56={};for(let _0x296b47=0x0;_0x296b47<_0x4a36f6;_0x296b47++){const _0x5d2412=_0x39d766[_0x192ee3+_0x296b47],_0x425fb7=_0x562683[_0x228fdb+_0x296b47],_0x504d2e=this['_getAttributeChanges'](_0x5d2412,_0x425fb7);for(const _0x5b0f13 in _0x594a56)_0x504d2e[_0x5b0f13]||_0x852a12(_0x5b0f13);for(const _0x405075 in _0x504d2e){const {oldValue:_0x404262,newValue:_0x34fcd4}=_0x504d2e[_0x405075],_0x56f180=_0x594a56[_0x405075];_0x56f180?_0x56f180['oldValue']==_0x404262&&_0x56f180['newValue']==_0x34fcd4?_0x56f180['length']++:(_0x852a12(_0x405075),_0x594a56[_0x405075]={'oldValue':_0x404262,'newValue':_0x34fcd4,'start':_0x296b47,'length':0x1}):_0x594a56[_0x405075]={'oldValue':_0x404262,'newValue':_0x34fcd4,'start':_0x296b47,'length':0x1};}}for(const _0xfd72ed in _0x594a56)_0x852a12(_0xfd72ed);function _0x852a12(_0x478bb0){const _0x802fff=_0x594a56[_0x478bb0],_0x40557d=_0x168b2c['slice']();_0x40557d[_0x40557d['length']-0x1]+=_0x802fff['start'],_0x479f79['push']({'type':'attribute','path':_0x40557d,'howMany':_0x802fff['length'],'key':_0x478bb0,'oldValue':_0x802fff['oldValue'],'newValue':_0x802fff['newValue']}),delete _0x594a56[_0x478bb0];}}['_getAttributeChanges'](_0x301895,_0x36459e){const _0x220db7={};for(const [_0x20d37b,_0x25c954]of _0x301895)_0x220db7[_0x20d37b]={'oldValue':JSON['stringify'](_0x25c954),'newValue':'null'};for(const [_0x54f381,_0x353574]of _0x36459e){const _0x4bc9f8=JSON['stringify'](_0x353574);_0x220db7[_0x54f381]?_0x220db7[_0x54f381]['oldValue']==_0x4bc9f8?delete _0x220db7[_0x54f381]:_0x220db7[_0x54f381]['newValue']=_0x4bc9f8:_0x220db7[_0x54f381]={'oldValue':'null','newValue':_0x4bc9f8};}return delete _0x220db7[St],_0x220db7;}['_getAttrsForOffsets'](_0x3bdd49,_0x2c23fb,_0x3fd852){const _0x3d6c54=new Array(_0x2c23fb+_0x3fd852);let _0xcf50f=_0x3bdd49['getChildAtOffset'](_0x2c23fb),_0x340341=_0xcf50f['startOffset'];for(;_0xcf50f&&_0x340341<_0x2c23fb+_0x3fd852;){const _0x4bc099=Array['from'](_0xcf50f['getAttributes']());_0x3d6c54['fill'](_0x4bc099,_0x340341,_0x340341+_0xcf50f['offsetSize']),_0x340341+=_0xcf50f['offsetSize'],_0xcf50f=_0xcf50f['nextSibling'];}return _0x3d6c54;}['_getPositionFromAnchorAndPath'](_0xec42de,_0x1b4a3c){const _0x2cba18=[..._0xec42de['path']['slice'](0x0,-0x1),_0xec42de['offset']+_0x1b4a3c[0x0],..._0x1b4a3c['slice'](0x1)];return new _0x300359(_0xec42de['root'],_0x2cba18);}['_makeModelFromTokens'](_0x259e26){const _0x13e453=[];let _0x4f58aa=null;for(const _0x1f448e of _0x259e26)if('element'!=_0x1f448e['type']||_0x1f448e['isStart']||_0x4f58aa!=_0x1f448e['element']){if(!_0x4f58aa){if('text'==_0x1f448e['type']){const _0x21a284=_0x300359['_createAt'](_0x1f448e['parent'],_0x1f448e['offset']),_0x35f763=_0x1b485f['_createFromPositionAndShift'](_0x21a284,_0x1f448e['data']['length']),_0x2ccc45=Array['from'](_0x35f763['getItems']())['map'](_0x2a2b09=>new _0x211824(_0x2a2b09['data'],_0x2a2b09['getAttributes']()));_0x13e453['push'](..._0x2ccc45);}else{_0x4f58aa=_0x1f448e['element'];const _0x18d3d4=_0x1f448e['element']['_clone'](!0x0);_0x18d3d4['_removeAttribute'](St);for(const _0x27c1c6 of this['_editor']['model']['createRangeIn'](_0x18d3d4)['getItems']())_0x27c1c6['is']('element')&&_0x27c1c6['_removeAttribute'](St);_0x13e453['push'](_0x18d3d4);}}}else _0x4f58aa=null;return _0x13e453;}}function g(_0x300f77,_0xedc589){return _0x300f77['type']===_0xedc589['type']&&(_0x300f77['limitId']===_0xedc589['limitId']&&('text'==_0x300f77['type']?_0x300f77['data']==_0xedc589['data']:function(_0x51781a,_0x4f28da){if(_0x51781a['isStart']!=_0x4f28da['isStart'])return!0x1;if(_0x51781a['isStart']&&_0x51781a['elementId']!=_0x4f28da['elementId'])return!0x1;if(_0x51781a['category']!=_0x4f28da['category'])return!0x1;if('block'==_0x51781a['category'])return!0x0;if('container'==_0x51781a['category']&&_0x51781a['elementId']!=_0x4f28da['elementId'])return!0x1;return _0x51781a['element']['name']==_0x4f28da['element']['name'];}(_0x300f77,_0xedc589)));}function _(_0x7852ca){return k({'name':_0x7852ca['name'],...Object['fromEntries'](_0x7852ca['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,xt as FOCUS_ANNOTATION_KEYSTROKE,ft as LateFocusButtonView,gt as LateFocusDropdownButtonView,C as Permissions,kt as SuggestionsConversion,ht as UserView,at as Users,mt as fixElementSuggestionRange,wt as getAllMarkersDomElementsSorted,pt as getDateTimeFormatter,yt as getMarkerDomElement,k as hashObject,Ct as sanitizeEditorConfig,It as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,_t as surroundingMarkersDetector,bt as trimHtml};
23
+ import{ContextPlugin as _0x332f09,Editor as _0x45f614,Plugin as _0x205962}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x522ad6,Collection as _0x10190e,uid as _0x4ea484,toArray as rt,first as _0x5bb03e,FocusTracker as ts,KeystrokeHandler as _0x4df530}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0xfb7f07,IconView as st,ButtonView as _0x2cc86f,DropdownButtonView as _0x225d96,FocusCycler as _0x352060,isViewWithFocusCycler as _0x1a5d85}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as it,IconCheck as _0x19a31c,IconCancel as _0x8a4b0f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as at,toWidget as _0x22c4e3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x4924b4,MoveOperation as _0x52d19d,ModelPosition as _0x5e68ec,ModelRange as _0x28bd6a,MarkerOperation as _0x42009f,MergeOperation as _0x569d03,SplitOperation as _0x17d971,RenameOperation as _0x256483,AttributeOperation as _0x6465a0,ModelTreeWalker as _0x5cbeaf,ModelText as _0xc09801}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x40c913}from'diff';class C extends _0x332f09{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x23c5a7,_0x23b07a){let _0x49dda1;if(_0x23b07a||(_0x23b07a=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x23b07a?_0x49dda1=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x49dda1=this['context']['editors']['find'](_0x504cca=>_0x504cca['config']['get']('collaboration.channelId')==_0x23b07a)),!_0x49dda1)throw new _0x522ad6('permissions-set-permissions-invalid-channel-id',null);const _0x46a8ab=_0x49dda1['plugins'],_0x2ab6a5=_0x46a8ab['has']('CommentsRepository')?_0x46a8ab['get']('CommentsRepository'):void 0x0,_0x11167d=_0x46a8ab['has']('CommentsOnly')&&_0x46a8ab['get']('CommentsOnly'),_0x14a2a2=_0x23c5a7['includes']('document:write'),_0x23a71a=_0x23c5a7['includes']('comment:modify_all'),_0x47ecd9=_0x23c5a7['includes']('comment:admin'),_0x107c3f=_0x23c5a7['includes']('comment:write'),_0x3117de=_0x107c3f||_0x47ecd9,_0x57518f=_0x3117de||_0x23a71a,_0x2ce8fb=_0x14a2a2||_0x3117de;(_0x11167d&&(_0x11167d['isEnabled']=!_0x14a2a2&&_0x57518f),_0x49dda1 instanceof _0x45f614)&&(!(_0x14a2a2||_0x57518f&&_0x2ab6a5)?_0x49dda1['enableReadOnlyMode']('no-permissions'):_0x49dda1['disableReadOnlyMode']('no-permissions'));if(_0x2ab6a5){_0x2ab6a5['setPermissions']({'admin':_0x47ecd9,'modifyAll':_0x23a71a,'write':_0x107c3f,'resolve':_0x2ce8fb},_0x23b07a);const _0x12148c=_0x49dda1 instanceof _0x45f614&&_0x49dda1['commands']['get']('addCommentThread');_0x12148c&&(_0x3117de?_0x12148c['clearForceDisabled']('noPermissions'):_0x12148c['forceDisabled']('noPermissions'));}}}function U(_0x3333ed,_0x41d2d8){const t=_0x3333ed['t'];switch(_0x41d2d8){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class ct extends _0x332f09{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x18b1b6){super(_0x18b1b6),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x10190e(),this['_locale']=_0x18b1b6['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x4ec776,name:_0x65bb66,..._0x195377}){if(!_0x4ec776||'string'!=typeof _0x4ec776)throw new _0x522ad6('users-add-invalid-id');if(this['users']['has'](_0x4ec776))throw new _0x522ad6('users-add-duplicated-id',null,{'id':_0x4ec776});const _0x4f7ba6=this['context']['config']['get']('users.getInitialsCallback'),_0x60b0ea={..._0x195377,'id':_0x4ec776,'name':A(this['_locale'],_0x65bb66),'color':this['_getNextColor']()};_0x60b0ea['name']=A(this['_locale'],_0x60b0ea['name']);const _0x5f7ecf=new lt(_0x60b0ea,_0x4f7ba6);return this['users']['add'](_0x5f7ecf),_0x5f7ecf;}['getUser'](_0x179ad2){return this['users']['get'](_0x179ad2);}['useAnonymousUser'](){const _0x23b93f=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x23b93f);}['defineMe'](_0x24c508){if(this['_myId'])throw new _0x522ad6('users-me-already-defined',null);const _0x1d243a=this['getUser'](_0x24c508);if(!_0x1d243a)throw new _0x522ad6('users-me-missing-user',null);this['_myId']=_0x24c508,_0x1d243a['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x38840b=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x38840b&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x1ef5aa=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x1ef5aa,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x5003a3,_0x27a88d){this['id']=_0x5003a3['id'],this['color']=_0x5003a3['color'],this['name']=_0x5003a3['name'],this['initials']=_0x27a88d?_0x27a88d(this['name']):this['_computeInitials'](),this['avatar']=_0x5003a3['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x906198=this['name']['split']('\x20')['filter'](_0x50eaed=>/^[\p{Letter}]/u['test'](_0x50eaed));return 0x1===_0x906198['length']?this['_getInitial'](_0x906198[0x0]):0x0===_0x906198['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x906198[0x0])+this['_getInitial'](_0x906198[_0x906198['length']-0x1]);}['_getInitial'](_0x4625a8){return String['fromCodePoint'](_0x4625a8['codePointAt'](0x0))['toUpperCase']();}}function A(_0x3bbbde,_0x4b6d3c=''){return''==(_0x4b6d3c=_0x4b6d3c['trim']())?U(_0x3bbbde,'Anonymous'):_0x4b6d3c;}class ut{['_id'];constructor(_0x1b3069){this['_id']=_0x1b3069;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class ht extends _0xfb7f07{['name'];['notificationView'];constructor(_0x3a247e,_0x24913a,_0x16ddb4){super(_0x3a247e),this['name']=_0x24913a['name'],this['notificationView']=null;const _0x164e98=['ck','ck-user'],_0xe7657a=['ck','ck-user__img'];if(_0x24913a['isAnonymous']&&_0xe7657a['push']('ck-user__anonymous'),!_0x24913a['isAnonymous']&&_0x24913a['isMe']&&_0x164e98['push']('ck-user_me'),_0x24913a['avatar']&&_0xe7657a['push']('ck-user__avatar'),_0x16ddb4){const _0x4fe082=new st();_0x4fe082['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4fe082['content']=it,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x16ddb4},'children':[_0x4fe082]};}const _0x57d724=[{'tag':'div','attributes':{'class':_0xe7657a,'style':{'background-image':_0x24913a['avatar']?'url(\x27'+_0x24913a['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x24913a['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x24913a['name']},'children':[{'text':_0x24913a['initials']}]}];this['notificationView']&&_0x57d724['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x164e98,'data-user-id':_0x24913a['id']},'children':_0x57d724});}}class dt extends _0xfb7f07{['id'];constructor(_0x1b1953,_0x53c6fe){super(_0x1b1953),this['id']='ck-aria-description-'+_0x4ea484(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x53c6fe}]});}}class ft extends _0x2cc86f{['render'](){super['render'](),re(this);}}class gt extends _0x225d96{['render'](){super['render'](),re(this);}}function re(_0xd9cd46){_0xd9cd46['listenTo'](_0xd9cd46['element'],'mousedown',(_0x3785f0,_0x25bd3e)=>{_0x25bd3e['stopPropagation'](),_0x25bd3e['preventDefault']();}),_0xd9cd46['listenTo'](_0xd9cd46['element'],'mouseup',()=>{_0xd9cd46['element']['focus']();});}function v(_0x1704af){const _0x2046a5=_0x1704af['split'](':');return{'group':_0x2046a5[0x0],'type':_0x2046a5[0x1],'subType':_0x2046a5['length']>=0x5?_0x2046a5[0x2]:null,'id':_0x2046a5['length']<0x5?_0x2046a5[0x2]:_0x2046a5[0x3],'authorId':_0x2046a5['length']<0x5?_0x2046a5[0x3]:_0x2046a5[0x4],'markerCount':0x6==_0x2046a5['length']?_0x2046a5[0x5]:null};}function mt(_0x4622d3,_0x593c01){const _0x21f633=_0x4622d3['end']['nodeBefore'];if(_0x21f633&&_0x21f633['is']('element')&&_0x593c01['schema']['isBlock'](_0x21f633)&&!_0x593c01['schema']['isObject'](_0x21f633)){const _0x4782da=_0x593c01['createPositionAt'](_0x21f633,'end');return _0x593c01['createRange'](_0x4622d3['start'],_0x4782da);}return _0x4622d3;}class M extends _0x205962{['afterInit'](){const _0x4cf8a2=this['editor'];if(!_0x4cf8a2['plugins']['has']('AlignmentEditing'))return;_0x4cf8a2['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x205962{['afterInit'](){const _0x4aa625=this['editor'],_0xb9b279=_0x4aa625['plugins']['get']('SuggestionsConversion');for(const _0xd28e70 of ii){if(!_0x4aa625['plugins']['has'](_0xd28e70))continue;const _0x3c4ec8=_0xd28e70['slice'](0x0,-0x7)['toLowerCase']();_0xb9b279['registerInlineAttribute'](_0x3c4ec8);}}}class I extends _0x205962{['afterInit'](){const _0x1c5139=this['editor'],_0x871b1c=_0x1c5139['plugins']['get']('SuggestionsConversion');_0x1c5139['plugins']['has']('BookmarkEditing')&&_0x871b1c['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x205962{['afterInit'](){const _0x5facf5=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x41a95c,commandName:_0xbb9148}of no)this['editor']['plugins']['has'](_0x41a95c)&&_0x5facf5['registerInlineAttribute'](_0xbb9148);}}class T extends _0x205962{['afterInit'](){const _0x23144b=this['editor'];if(!_0x23144b['plugins']['has']('HighlightEditing'))return;_0x23144b['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x205962{['afterInit'](){const _0x482eb4=this['editor'];if(!_0x482eb4['plugins']['has']('HtmlEmbed'))return;_0x482eb4['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x205962{['afterInit'](){const _0x302013=this['editor'];if(!_0x302013['plugins']['has']('ImageEditing'))return;const _0x51308d=_0x302013['plugins']['get']('SuggestionsConversion');_0x51308d['registerBlockAttribute']('src'),_0x302013['plugins']['has']('ImageResize')&&_0x51308d['registerBlockAttribute']('resizedWidth'),_0x302013['plugins']['has']('ImageTextAlternativeEditing')&&_0x51308d['registerBlockAttribute']('alt'),_0x302013['plugins']['has']('PictureEditing')&&_0x51308d['registerBlockAttribute']('sources'),_0x302013['plugins']['has']('ImageSizeAttributes')&&(_0x51308d['registerBlockAttribute']('width'),_0x51308d['registerBlockAttribute']('height'));}}class $ extends _0x205962{['afterInit'](){const _0x59d15c=this['editor'],_0x321600=_0x59d15c['plugins']['get']('SuggestionsConversion');_0x59d15c['plugins']['has']('IndentBlock')&&_0x321600['registerBlockAttribute']('blockIndent');}}class x extends _0x205962{['afterInit'](){const _0x2d6090=this['editor'];if(!_0x2d6090['plugins']['has']('LineHeight'))return;_0x2d6090['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x205962{['afterInit'](){const _0x145ddc=this['editor'];if(!_0x145ddc['plugins']['has']('LinkEditing'))return;const _0x3e08fd=_0x145ddc['plugins']['get']('SuggestionsConversion'),_0xa4bf65=_0x145ddc['commands']['get']('link');_0x3e08fd['registerInlineAttribute']('linkHref');for(const _0x416450 of _0xa4bf65['manualDecorators'])_0x3e08fd['registerInlineAttribute'](_0x416450['id']);}}class N extends _0x205962{['afterInit'](){const _0x5af804=this['editor'];if(!_0x5af804['plugins']['has']('ListEditing'))return;const _0x349ac0=_0x5af804['plugins']['get']('SuggestionsConversion'),_0x222cb0=_0x5af804['plugins']['has']('TodoListEditing');_0x349ac0['registerBlockAttribute']('listItemId'),_0x349ac0['registerBlockAttribute']('listType'),_0x349ac0['registerBlockAttribute']('listIndent'),_0x222cb0&&_0x349ac0['registerBlockAttribute']('todoListChecked');}}class P extends _0x205962{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x14d62b=this['editor']['config']['get']('list.properties'),_0x1234d=this['editor']['plugins']['get']('SuggestionsConversion');_0x14d62b['styles']&&_0x1234d['registerBlockAttribute']('listStyle'),_0x14d62b['reversed']&&_0x1234d['registerBlockAttribute']('listReversed'),_0x14d62b['startIndex']&&_0x1234d['registerBlockAttribute']('listStart');}}class K extends _0x205962{['afterInit'](){const _0x3223b7=this['editor'],_0x34ce1a=_0x3223b7['plugins']['get']('SuggestionsConversion');_0x3223b7['plugins']['has']('MultiLevelList')&&_0x34ce1a['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x205962{['afterInit'](){const _0x42b90c=this['editor'];if(!_0x42b90c['plugins']['has']('Style')||!_0x42b90c['plugins']['has']('DataSchema')||!_0x42b90c['config']['get']('style.definitions'))return;const _0x3caddf=_0x42b90c['plugins']['get']('SuggestionsConversion'),_0x4d9d12=_0x42b90c['config']['get']('style.definitions'),_0x571d24=_0x42b90c['plugins']['get']('GeneralHtmlSupport'),_0x3f966e=_0x42b90c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x42b90c['plugins']['get']('DataSchema'),_0x4d9d12),_0x15f66c=new Set();for(const _0x548314 of _0x3f966e['block']){const _0x5094d1=_0x571d24['getGhsAttributeNameForElement'](_0x548314['element']);_0x15f66c['add'](_0x5094d1);}const _0x2c3133=new Set();for(const _0x5dd010 of _0x3f966e['inline']){const _0x4be2a1=_0x571d24['getGhsAttributeNameForElement'](_0x5dd010['element']);_0x2c3133['add'](_0x4be2a1);for(const _0x4e83a2 of _0x5dd010['ghsAttributes'])_0x2c3133['add'](_0x4e83a2);}for(const _0x400f79 of _0x15f66c)_0x3caddf['registerBlockAttribute'](_0x400f79);for(const _0x73f9fa of _0x2c3133)_0x3caddf['registerInlineAttribute'](_0x73f9fa);}}class z extends _0x205962{['afterInit'](){const _0x3874af=this['editor'];if(!_0x3874af['plugins']['has']('TableEditing'))return;const _0x390cc7=_0x3874af['plugins']['get']('SuggestionsConversion');_0x390cc7['registerBlockAttribute']('headingRows'),_0x390cc7['registerBlockAttribute']('headingColumns');}}class O extends _0x205962{['afterInit'](){const _0x9f1c6a=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x18bcb9=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x10fcc4 of _0x18bcb9)_0x9f1c6a['registerBlockAttribute'](_0x10fcc4);}}class R extends _0x205962{['afterInit'](){const _0x9c475a=this['editor'],_0xf1e322=_0x9c475a['plugins']['get']('SuggestionsConversion');_0x9c475a['plugins']['has']('TableLayout')&&_0xf1e322['registerBlockAttribute']('tableType');}}class F extends _0x205962{['afterInit'](){const _0x147b0d=this['editor'],_0xbe18f3=this['editor']['plugins']['get']('SuggestionsConversion');_0x147b0d['plugins']['has']('Uploadcare')&&_0x147b0d['plugins']['has']('UploadcareImageEdit')&&_0xbe18f3['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x205962{['afterInit'](){const _0x37f620=this['editor'];if(!_0x37f620['plugins']['has']('ShiftEnter'))return;const _0x2029e1=_0x37f620['plugins']['get']('SuggestionsConversion'),_0x2beb57=(_0x509fd5,_0x5ec2bd,_0x2f9eef,_0x342985)=>{if(_0x342985&&!_0x2f9eef['options']['showSuggestionHighlights'])return;if(!_0x2f9eef['consumable']['test'](_0x5ec2bd['markerRange'],_0x509fd5['name']))return;const _0xefa08d=_0x37f620['model'];for(const _0x4f4a7c of _0x5ec2bd['markerRange']['getItems']()){if(!_0x4f4a7c['is']('element','softBreak'))continue;const _0x2574a0='deletion'==_0x5ec2bd['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4a29f5,authorId:_0x16c355}=v(_0x5ec2bd['markerName']),_0x1b1ccb=_0x2f9eef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2574a0,'data-suggestion':_0x4a29f5,'data-author-id':_0x16c355}),_0x5317d1=_0x2f9eef['mapper']['toViewPosition'](_0xefa08d['createPositionBefore'](_0x4f4a7c));!_0x342985&&_0x2029e1['_activeMarkers']['includes'](_0x5ec2bd['markerName'])&&_0x2f9eef['writer']['addClass']('ck-suggestion-marker--active',_0x1b1ccb),_0x2f9eef['writer']['insert'](_0x5317d1,_0x1b1ccb),_0x2f9eef['mapper']['bindElementToMarker'](_0x1b1ccb,_0x5ec2bd['markerName']);}};_0x37f620['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f2703,_0x1e168d,_0x5b7cfe)=>{_0x2beb57(_0x2f2703,_0x1e168d,_0x5b7cfe,!0x1);},{'priority':'high'}),_0x37f620['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x485f94,_0x27c9ae,_0x6752d7)=>{_0x2beb57(_0x485f94,_0x27c9ae,_0x6752d7,!0x0);},{'priority':'high'});}}class J extends _0x205962{['afterInit'](){const _0x5d02e4=this['editor'];_0x5d02e4['plugins']['has']('MediaEmbedEditing')&&(_0x5d02e4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x68127d,{writer:_0x5d0bfd,options:_0x35917c})=>{if(_0x35917c['showSuggestionHighlights'])return _0x5d0bfd['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d02e4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x515ecd,_0x1c1647,_0x56d61b)=>{_0x56d61b['options']['showSuggestionHighlights']&&_0x515ecd['stop']();},{'priority':'high'}));}}class L extends _0x205962{['afterInit'](){const _0x5bf3da=this['editor'];if(!_0x5bf3da['plugins']['has']('Table'))return;_0x5bf3da['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c8ff2,_0x468888,_0x3d8dca)=>{((_0x46faa0,_0x5297ed,_0x342afe)=>{if(!_0x342afe['options']['showSuggestionHighlights'])return;const _0x1ac84d=_0x5297ed['item'];if(!_0x1ac84d||!_0x1ac84d['is']('element','tableCell'))return;const _0x2168d8=_0x342afe['mapper']['toViewElement'](_0x1ac84d);if(_0x2168d8){const {id:_0x5dcb92,authorId:_0x19f323}=v(_0x5297ed['markerName']);at(_0x2168d8,_0x342afe['writer'],(_0x4bd654,_0x4269b7,_0x2e7d26)=>{_0x2e7d26['addClass'](rt(_0x4269b7['classes']),_0x4bd654),_0x2e7d26['setAttribute']('data-suggestion-id',_0x5dcb92,_0x4bd654),_0x2e7d26['setAttribute']('data-author-id',_0x19f323,_0x4bd654);});}})(0x0,_0x468888,_0x3d8dca);},{'priority':'highest'});}}class Q extends _0x205962{['afterInit'](){const _0x345d54=this['editor'];_0x345d54['plugins']['has']('HorizontalLineEditing')&&_0x345d54['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x96ead5,{writer:_0x40c7cb,options:_0x49ed51})=>{if(!_0x49ed51['showSuggestionHighlights'])return null;const _0x802231=_0x40c7cb['createContainerElement']('div'),_0x2b47f7=_0x40c7cb['createEmptyElement']('hr');return _0x40c7cb['addClass']('ck-horizontal-line',_0x802231),_0x40c7cb['insert'](_0x40c7cb['createPositionAt'](_0x802231,0x0),_0x2b47f7),_0x802231;},'converterPriority':'high'});}}class kt extends _0x205962{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,Q,E,S,$,x,H,N,P,J,K,G,q,L,z,R,O,F];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1c61df=this['editor'],_0x2a6ca3=(_0x53545d,_0x68b9e0,_0x4dadbc)=>{const {id:_0x5713ea,authorId:_0x53544b,type:_0x57ac01,subType:_0xb7cf5b}=v(_0x53545d['markerName']),_0xd346a9=['ck-suggestion-marker',this['_getClassName'](_0x57ac01,_0xb7cf5b)];let _0x1e1506=0xbb8;return!_0x4dadbc&&(this['_activeMarkers']['includes'](_0x53545d['markerName'])&&(_0xd346a9['push']('ck-suggestion-marker--active'),_0x1e1506=0xbc2)),('deletion'==_0x57ac01&&(_0x1e1506+=0x5),{'classes':_0xd346a9,'attributes':{'data-suggestion':_0x5713ea,'data-author-id':_0x53544b},'priority':_0x1e1506});};_0x1c61df['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x6a2af9,_0x4d480a)=>_0x2a6ca3(_0x6a2af9,0x0,!0x1)}),_0x1c61df['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x19ffc4,_0x2dec0b)=>_0x2a6ca3(_0x19ffc4,0x0,!0x0)}),_0x1c61df['conversion']['for']('dataDowncast')['add'](_0x22311e=>{_0x22311e['on']('addMarker:suggestion',(_0x386115,_0x5a0429,_0x4aae38)=>{if(!_0x4aae38['options']['showSuggestionHighlights'])return;const _0xa17c63=_0x5a0429['item'];if(!_0xa17c63)return;const _0x51b13d=_0x4aae38['mapper']['toViewElement'](_0xa17c63);_0x1c61df['model']['schema']['isObject'](_0xa17c63)&&_0x51b13d&&!_0x51b13d['getCustomProperty']('widget')&&_0x51b13d['is']('containerElement')&&_0x22c4e3(_0x51b13d,_0x4aae38['writer']);},{'priority':'high'});});const _0x58201b=(_0x48d7fd,_0x571aa4,_0x3225b4,_0xccaf1c,_0x254962)=>{if(_0xccaf1c&&!_0x3225b4['options']['showSuggestionHighlights'])return;if(!_0x571aa4['item'])return;const {id:_0x1a3991,authorId:_0x452aca,subType:_0x484fc8}=v(_0x571aa4['markerName']);if(_0x254962){const _0x34f9fa=_0x484fc8['split']('|')[0x0];if(!this['isBlockAttribute'](_0x34f9fa))return;}if(_0x571aa4['item']['is']('selection'))return void _0x3225b4['consumable']['consume'](_0x571aa4['item'],_0x48d7fd['name']);const _0x49a3f9=_0x3225b4['mapper']['toViewElement'](_0x571aa4['item']);if(_0x571aa4['item']['is']('element')&&_0x1c61df['model']['schema']['isBlock'](_0x571aa4['item'])&&!_0x49a3f9['getCustomProperty']('addHighlight')){_0x3225b4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x49a3f9),_0x3225b4['writer']['setAttribute']('data-suggestion',_0x1a3991,_0x49a3f9),_0x3225b4['writer']['setAttribute']('data-author-id',_0x452aca,_0x49a3f9),_0x3225b4['mapper']['bindElementToMarker'](_0x49a3f9,_0x571aa4['markerName']),_0xccaf1c||(this['_activeMarkers']['includes'](_0x571aa4['markerName'])?_0x3225b4['writer']['addClass']('ck-suggestion-marker--active',_0x49a3f9):_0x3225b4['writer']['removeClass']('ck-suggestion-marker--active',_0x49a3f9));for(const _0x45b934 of _0x1c61df['model']['createRangeIn'](_0x571aa4['item'])['getItems']())_0x3225b4['consumable']['consume'](_0x45b934,_0x48d7fd['name']);_0x3225b4['consumable']['consume'](_0x571aa4['item'],_0x48d7fd['name']);}},_0x22d8b9=(_0x52e50e,_0x500517,_0x33eb32,_0x361ba2)=>{const _0x6b6ab3=_0x33eb32['mapper']['markerNameToElements'](_0x500517['markerName']);if(_0x6b6ab3){if(_0x361ba2){const {subType:_0x4b955c}=v(_0x500517['markerName']),_0x1dcdb6=_0x4b955c['split']('|')[0x0];if(!this['isBlockAttribute'](_0x1dcdb6))return;}for(const _0x3836a3 of _0x6b6ab3)_0x3836a3['getCustomProperty']('addHighlight')||(_0x33eb32['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3836a3),_0x33eb32['writer']['removeAttribute']('data-suggestion',_0x3836a3),_0x33eb32['writer']['removeAttribute']('data-author-id',_0x3836a3),_0x33eb32['mapper']['unbindElementFromMarkerName'](_0x3836a3,_0x500517['markerName']));}};_0x1c61df['conversion']['for']('editingDowncast')['add'](_0x439b6c=>{_0x439b6c['on']('addMarker:suggestion:formatBlock',(_0x1c8f23,_0x1f5224,_0x3385ab)=>{_0x58201b(_0x1c8f23,_0x1f5224,_0x3385ab,!0x1,!0x1);},{'priority':'high'});}),_0x1c61df['conversion']['for']('editingDowncast')['add'](_0x34f965=>{_0x34f965['on']('addMarker:suggestion:attribute',(_0x6a3784,_0x4251a7,_0x43c946)=>{_0x58201b(_0x6a3784,_0x4251a7,_0x43c946,!0x1,!0x0);},{'priority':'high'});}),_0x1c61df['conversion']['for']('editingDowncast')['add'](_0x24c2b7=>{_0x24c2b7['on']('removeMarker:suggestion:formatBlock',(_0x3436f5,_0x4d424f,_0x41d037)=>{_0x22d8b9(0x0,_0x4d424f,_0x41d037,!0x1);},{'priority':'high'});}),_0x1c61df['conversion']['for']('editingDowncast')['add'](_0x2062ac=>{_0x2062ac['on']('removeMarker:suggestion:attribute',(_0x5b46c7,_0x5d986f,_0x1b1167)=>{_0x22d8b9(0x0,_0x5d986f,_0x1b1167,!0x0);},{'priority':'high'});}),_0x1c61df['conversion']['for']('dataDowncast')['add'](_0x4dc6ea=>{_0x4dc6ea['on']('addMarker:suggestion:formatBlock',(_0x33cc9a,_0x274cc3,_0x34d723)=>{_0x58201b(_0x33cc9a,_0x274cc3,_0x34d723,!0x0,!0x1);},{'priority':'highest'});}),_0x1c61df['conversion']['for']('dataDowncast')['add'](_0x11b653=>{_0x11b653['on']('addMarker:suggestion:attribute',(_0x1d4c9b,_0xd1ed3c,_0x457d7c)=>{_0x58201b(_0x1d4c9b,_0xd1ed3c,_0x457d7c,!0x0,!0x0);},{'priority':'highest'});}),_0x1c61df['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5a8c4a,_0x509aec)=>{if(_0x509aec['options']['showSuggestionHighlights']){const {id:_0x43e7d7,authorId:_0x5a468a}=v(_0x5a8c4a);return _0x5a8c4a['includes'](':split')||_0x5a8c4a['includes'](':merge')?{'group':'suggestion','name':_0x5a8c4a['substr'](0xb),'attributes':{'data-suggestion':_0x43e7d7,'data-author-id':_0x5a468a}}:null;}return{'group':'suggestion','name':_0x5a8c4a['substr'](0xb)};}});const _0x174cfa=(_0xd1e478,_0x118f4a,_0x322919,_0x571199,_0x3ad1de)=>{if(_0x571199&&!_0x322919['options']['showSuggestionHighlights'])return;if(!_0x322919['consumable']['test'](_0x118f4a['markerRange'],_0xd1e478['name']))return;const _0xc61495=this['_activeMarkers'],_0x334c2e=_0x118f4a['markerRange']['getWalker'](),_0x3acd80=_0x118f4a['markerRange']['start'],_0x463370=_0x1c61df['model']['schema'];let _0x3ba6fb=null,_0x581fa6=null,_0x28efbd=!0x1,_0x27ec27=!0x1;for(const _0x275b2c of _0x334c2e){const _0x1d248c=_0x275b2c['item'];_0x28efbd=_0x28efbd||_0x463370['isContent'](_0x1d248c);const _0x5dc585=_0x322919['mapper']['toViewElement'](_0x1d248c);if(_0x5dc585&&_0x5dc585['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x275b2c['type']&&(_0x463370['isBlock'](_0x1d248c)&&!_0x463370['isLimit'](_0x1d248c)&&(_0x1d248c['nextSibling']||_0x3acd80['isAtEnd']?_0x3ba6fb&&_0x3ba6fb['parent']==_0x1d248c||(_0x3ba6fb=_0x1d248c,_0x1b2cac(_0x275b2c['previousPosition']),_0x27ec27=!0x0):_0x581fa6=_0x581fa6||_0x275b2c['previousPosition']));}function _0x1b2cac(_0x286711){const {id:_0x12c934,authorId:_0x436954}=v(_0x118f4a['markerName']),_0x2f3873=_0x322919['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ad1de,'data-suggestion':_0x12c934,'data-author-id':_0x436954}),_0x202458=_0x322919['mapper']['toViewPosition'](_0x286711);!_0x571199&&_0xc61495['includes'](_0x118f4a['markerName'])&&_0x322919['writer']['addClass']('ck-suggestion-marker--active',_0x2f3873),_0x322919['writer']['insert'](_0x202458,_0x2f3873),_0x322919['mapper']['bindElementToMarker'](_0x2f3873,_0x118f4a['markerName']);}_0x28efbd||_0x27ec27||!_0x581fa6||_0x1b2cac(_0x581fa6);};_0x1c61df['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5038d5,_0x472c80,_0x5168da)=>{_0x174cfa(_0x5038d5,_0x472c80,_0x5168da,!0x1,'merge');},{'priority':'high'}),_0x1c61df['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c7707,_0x46b307,_0x2edfec)=>{_0x174cfa(_0x1c7707,_0x46b307,_0x2edfec,!0x0,'merge');},{'priority':'high'}),_0x1c61df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x123a7c,_0x184be8,_0x3ae1c3)=>{_0x174cfa(_0x123a7c,_0x184be8,_0x3ae1c3,!0x1,'split');},{'priority':'high'}),_0x1c61df['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x10eb4e,_0x1f4764,_0x2534ff)=>{_0x174cfa(_0x10eb4e,_0x1f4764,_0x2534ff,!0x0,'split');},{'priority':'high'}),_0x1c61df['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x291a03,_0x44cf15,_0x3c98f3)=>{((_0x4fb828,_0xe2599a,_0xdbb81b)=>{const _0x3b7fd3=_0xdbb81b['mapper']['markerNameToElements'](_0xe2599a['markerName']);if(_0x3b7fd3){for(const _0xb275ee of _0x3b7fd3)(_0xb275ee['hasClass']('ck-suggestion-marker-split')||_0xb275ee['hasClass']('ck-suggestion-marker-merge'))&&(_0xdbb81b['mapper']['unbindElementFromMarkerName'](_0xb275ee,_0xe2599a['markerName']),_0xdbb81b['writer']['remove'](_0xb275ee));}})(0x0,_0x44cf15,_0x3c98f3);},{'priority':'high'});const _0x58db7b=(_0x5f5811,_0x7328f8,_0x570b0f,_0x43b565)=>{if(_0x43b565&&!_0x570b0f['options']['showSuggestionHighlights'])return;const _0x5bba31=_0x7328f8['markerRange']['start'],_0xe83597=_0x7328f8['markerRange']['end'],_0x273818=_0x1c61df['model']['schema'];if(!_0x5bba31['isTouching'](_0xe83597)||!_0x5bba31['nodeAfter'])return;const _0x5affb3=_0x5bba31['nodeAfter'];if(_0x273818['isBlock'](_0x5affb3)&&!_0x273818['isLimit'](_0x5affb3)&&_0x273818['checkChild'](_0x5affb3,'$text')){if(!_0x570b0f['consumable']['consume'](_0x7328f8['markerRange'],_0x5f5811['name']))return;const {id:_0x572710,authorId:_0x17d7f1}=v(_0x7328f8['markerName']),_0x49d211=_0x570b0f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x572710,'data-author-id':_0x17d7f1}),_0x4245dd=_0x570b0f['mapper']['toViewPosition'](_0xe83597);!_0x43b565&&this['_activeMarkers']['includes'](_0x7328f8['markerName'])&&_0x570b0f['writer']['addClass']('ck-suggestion-marker--active',_0x49d211),_0x570b0f['writer']['insert'](_0x4245dd,_0x49d211),_0x570b0f['mapper']['bindElementToMarker'](_0x49d211,_0x7328f8['markerName']);}};_0x1c61df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3631fe,_0x191839,_0x1ba391)=>{_0x58db7b(_0x3631fe,_0x191839,_0x1ba391,!0x1);},{'priority':'high'}),_0x1c61df['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a9cc5,_0xede214,_0xbd9d5)=>{_0x58db7b(_0x1a9cc5,_0xede214,_0xbd9d5,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x593b54,_0x357c6d,_0x159cb5)=>{this['_activeMarkers']=_0x159cb5['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x30f01c){this['_blockAttributeKeys']['add'](_0x30f01c);}['registerInlineAttribute'](_0xd04019){this['_inlineAttributeKeys']['add'](_0xd04019);}['isBlockAttribute'](_0x315c56){return this['_blockAttributeKeys']['has'](_0x315c56);}['isInlineAttribute'](_0x3e5396){return this['_inlineAttributeKeys']['has'](_0x3e5396);}['isRegisteredAttribute'](_0x4a99d1){return this['isInlineAttribute'](_0x4a99d1)||this['isBlockAttribute'](_0x4a99d1);}['_getClassName'](_0x5ad7b2,_0x5ac645){if('attribute'!=_0x5ad7b2)return'ck-suggestion-marker-'+_0x5ad7b2;const _0x461f37=_0x5ac645['split']('|')[0x0];return this['isBlockAttribute'](_0x461f37)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x2f8589={},_0x1b9072){if(void 0x0!==_0x2f8589['dateTimeFormat']&&'function'!=typeof _0x2f8589['dateTimeFormat'])throw new _0x522ad6('invalid-date-time-format');return _0xa77cfa=>{const _0x3f6791='string'==typeof _0xa77cfa?tt['fromISO'](_0xa77cfa):tt['fromJSDate'](_0xa77cfa),_0x3e4a48=tt['now'](),_0x2689e3=Math['floor'](_0x3e4a48['diff'](_0x3f6791,'days')['days']);return _0x2f8589['dateTimeFormat']?_0x2f8589['dateTimeFormat'](_0x3f6791['toJSDate'](),_0x1b9072&&_0x1b9072['t']?_0x1b9072['t']:void 0x0):0x0===_0x2689e3?_0x1b9072?U(_0x1b9072,'Today')+'\x20'+_0x3f6791['toFormat']('hh:mma'):_0x3f6791['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x2689e3?_0x1b9072?U(_0x1b9072,'Yesterday')+'\x20'+_0x3f6791['toFormat']('hh:mma'):_0x3f6791['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x2689e3<0x7?_0x1b9072?U(_0x1b9072,'Last')+'\x20'+U(_0x1b9072,_0x3f6791['toFormat']('EEEE'))+'\x20'+_0x3f6791['toFormat']('hh:mma'):_0x3f6791['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x3f6791['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x2c8f4d,_0x313269){const _0x5253ef=_0x2c8f4d['mapper']['markerNameToElements'](_0x313269['name']);if(!_0x5253ef)return null;const _0x201aa7=_0x5bb03e(_0x5253ef['values']());return _0x2c8f4d['view']['domConverter']['mapViewToDom'](_0x201aa7)||null;}function wt(_0x3317bd,_0x143b7d){if(0x0===_0x143b7d['length'])return null;const _0x5ee886=[],_0x2a6d4b=_0x3317bd['view']['domConverter'];for(const _0x59d826 of _0x143b7d){const _0x28ec8b=_0x3317bd['mapper']['markerNameToElements'](_0x59d826['name']);if(!_0x28ec8b)continue;const _0x14b064=Array['from'](_0x28ec8b)['map'](_0x2932b5=>_0x2a6d4b['mapViewToDom'](_0x2932b5))['filter'](_0x189eab=>!!_0x189eab);_0x5ee886['push'](..._0x14b064);}if(0x0===_0x5ee886['length'])return null;const _0x871933=[];for(const _0x51a880 of _0x5ee886){const _0x542e27=_0x51a880['getClientRects']()['item'](0x0);_0x542e27&&_0x871933['push']({'x':_0x542e27['x'],'y':_0x542e27['y'],'domElement':_0x51a880});}return 0x0===_0x871933['length']?null:(_0x871933['sort']((_0x30d49c,_0xe60420)=>_0x30d49c['y']-_0xe60420['y']||_0x30d49c['x']-_0xe60420['x']),_0x871933['map'](_0x10723e=>_0x10723e['domElement']));}function bt(_0x1164d0,{limit:_0xa45c09,suffix:_0x505bf6='...'}){const _0x4d6db1=[];let _0x47e902=0x0;const _0x37f852=_0x1164d0['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4b15cd=0x0;_0x4b15cd<_0x37f852['length'];_0x4b15cd++){let _0x28f9fd=_0x37f852[_0x4b15cd];const _0x3607eb=tn(_0x28f9fd);if(_0x28f9fd['startsWith']('<')){if(_0x47e902>=_0xa45c09){const _0x2bf3d2=_0x28f9fd['match'](/[a-zA-Z]+/);if(!_0x2bf3d2){_0x37f852[_0x4b15cd]='';continue;}const _0xe24e0f=_0x2bf3d2[0x0];_0x28f9fd['startsWith']('</')?(_0x4d6db1['length']&&(_0x28f9fd=''),_0x4d6db1['pop']()):(_0x4d6db1['push'](_0xe24e0f),_0x28f9fd='');}}else{if(_0x47e902>=_0xa45c09)_0x28f9fd='';else{if(_0x47e902+_0x3607eb['length']>=_0xa45c09){let _0x239f77=_0xa45c09-_0x47e902;if('\x20'===_0x3607eb[_0x239f77-0x1])_0x239f77--;else{const _0x25798d=_0x3607eb['slice'](_0x239f77)['indexOf']('\x20');-0x1!==_0x25798d?_0x239f77+=_0x25798d:_0x239f77=_0x28f9fd['length'];}_0x28f9fd=_0x3607eb['slice'](0x0,_0x239f77)['join']('')+_0x505bf6,_0x47e902=_0xa45c09;}else _0x47e902+=_0x3607eb['length'];}}_0x37f852[_0x4b15cd]=_0x28f9fd;}return _0x37f852['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x3960bf){const _0x2b5e46=[];for(let _0x5d079c=0x0;_0x5d079c<_0x3960bf['length'];_0x5d079c++){const _0x800402=_0x3960bf['substring'](_0x5d079c)['match'](/^&[a-z0-9#]+;/);if(_0x800402){const _0xdaad21=_0x800402[0x0];_0x2b5e46['push'](_0xdaad21),_0x5d079c+=_0xdaad21['length']-0x1;}else _0x2b5e46['push'](_0x3960bf[_0x5d079c]);}return _0x2b5e46;}class V extends _0xfb7f07{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x2c40c0){super(_0x2c40c0);const _0x240689=this['bindTemplate'];this['set']('message',U(_0x2c40c0,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x2c40c0,U(_0x2c40c0,'Yes'),_0x19a31c,'submit'),this['cancelView']=this['_createButtonView'](_0x2c40c0,U(_0x2c40c0,'No'),_0x8a4b0f,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x4df530(),this['focusCycler']=new _0x352060({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x240689['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0xeae2ee,_0x25974b,_0x276285,_0x92ef8d){const _0x5b20bb=new _0x2cc86f(_0xeae2ee);return _0x5b20bb['label']=_0x25974b,_0x5b20bb['icon']=_0x276285,_0x5b20bb['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x92ef8d}}),_0x5b20bb['on']('execute',()=>this['fire'](_0x92ef8d)),_0x5b20bb;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x5c5c4d=>{this['keystrokes']['listenTo'](_0x5c5c4d['element']),this['focusTracker']['add'](_0x5c5c4d['element']);}),this['keystrokes']['set']('esc',(_0x1f314c,_0x3d0f31)=>{this['fire']('cancel'),_0x3d0f31();});}}function vt(_0x261d8f){return class extends _0x261d8f{['showConfirm'](_0x423561,_0x21a1c1){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x423561,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x21a1c1['appendChild'](this['confirmView']['element']),_0x21a1c1['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x43e1b6,_0x4eadcb,_0xaa4645)=>{_0xaa4645||_0x21a1c1['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x26c456=>this['confirmView']['on']('submit',_0x26c456));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0x31543c){let _0x56bac9=0x0,_0x5083a7=0x0;for(const _0x380f2b of ne(_0x31543c))_0x56bac9=(_0x56bac9<<0x5)-_0x56bac9+_0x380f2b,_0x56bac9&=_0x56bac9,[_0x56bac9,_0x5083a7]=[_0x5083a7,_0x56bac9];return ie(_0x56bac9)+ie(_0x5083a7);}function*ee(_0x18991e){null==_0x18991e||null==_0x18991e?yield 0x12b9b0a1:0x0===_0x18991e||!0x1===_0x18991e?yield 0x0:0x1===_0x18991e||0x1==_0x18991e?yield 0x1:Array['isArray'](_0x18991e)?yield*function*(_0x23c738){for(const _0x1165ed of _0x23c738)yield*ee(_0x1165ed);}(_0x18991e):'object'==typeof _0x18991e?yield*ne(_0x18991e):'string'==typeof _0x18991e?yield*oe(_0x18991e):'number'==typeof _0x18991e&&(yield _0x18991e);}function*ne(_0x1406e2){if(yield te('{'),_0x1406e2){const _0x3d3f4a=Object['keys'](_0x1406e2)['sort']();for(const _0x3788d2 of _0x3d3f4a){yield*oe(_0x3788d2),yield te(':');const _0x4c159f=_0x1406e2[_0x3788d2];yield*ee(_0x4c159f);}}yield te('}');}function*oe(_0x586b89){yield te('\x22');for(const _0x3b0e38 of _0x586b89)yield te(_0x3b0e38);yield te('\x22');}function te(_0x5c286c){return _0x5c286c['charCodeAt'](0x0);}function ie(_0x3f0c25){return(_0x3f0c25*=Math['sign'](_0x3f0c25))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x4246ac,_0x25c2f5,_0x1b711b,_0x4a0573=[]){const _0x34ddd0='string'==typeof _0x4246ac?_0x1b711b['get'](_0x4246ac)['constructor']:_0x4246ac['prototype']['constructor'];if(_0x25c2f5['has'](_0x34ddd0))return _0x25c2f5['get'](_0x34ddd0);_0x25c2f5['set'](_0x34ddd0,!0x0);const _0x41dc3b=[...et,..._0x4a0573]['map'](_0x2a52ff=>{if(_0x1b711b['has'](_0x2a52ff))return _0x1b711b['get'](_0x2a52ff)['constructor'];})['filter'](_0x5718de=>_0x5718de);if(_0x34ddd0&&_0x41dc3b['includes'](_0x34ddd0))return _0x25c2f5['set'](_0x34ddd0,!0x1),!0x1;if(!_0x34ddd0['requires'])return _0x25c2f5['set'](_0x34ddd0,!0x0),!0x0;const _0x3715de=_0x34ddd0['requires']['every'](_0x74b8c7=>ot(_0x74b8c7,_0x25c2f5,_0x1b711b,_0x4a0573));return _0x25c2f5['set'](_0x34ddd0,_0x3715de),_0x3715de;}function Ct(_0x275ed5,_0x1ec581){const _0x3a58a1={};for(const _0x429f43 of _0x275ed5['config']['names']())nt['includes'](_0x429f43)||(_0x3a58a1[_0x429f43]=_0x275ed5['config']['get'](_0x429f43));const _0xb7499b=_0x3a58a1['plugins']||[],_0x194720=_0x275ed5['constructor']['builtinPlugins']||[],_0x24d8d3=_0xb7499b['length']?_0xb7499b:_0x194720,_0xb0ae57=_0x3a58a1['extraPlugins']||[];delete _0x3a58a1['extraPlugins'];const _0xb3caab=_0x3a58a1['removePlugins']||[];delete _0x3a58a1['removePlugins'];const _0x537778=_0x275ed5['_context']['config']['get']('plugins')||[],_0x1067b5=_0x24d8d3['concat'](_0xb0ae57)['concat'](_0x537778)['map'](_0xdb8ed5=>'string'==typeof _0xdb8ed5?_0x194720['find'](_0x324505=>_0x324505['pluginName']==_0xdb8ed5):_0xdb8ed5)['filter'](_0x1b45a2=>!_0xb3caab['includes'](_0x1b45a2)&&!_0xb3caab['includes'](_0x1b45a2['pluginName'])),_0x5bb75d=Array['from'](new Set(_0x1067b5)),_0x5f0845=new Map();return _0x3a58a1['plugins']=_0x5bb75d['filter'](_0x26013c=>ot(_0x26013c,_0x5f0845,_0x275ed5['plugins'],_0x1ec581)),_0x3a58a1;}function _t(_0xb1f432,_0x1ed2e9){const _0x282648=[];_0xb1f432['document']['selection']['on']('change:range',()=>{const _0x114c02=function(_0xa52142,_0x2576b3){const _0x4c429f=[];for(const _0x119c2f of _0xa52142['markers']){const _0x26dc56=_0x119c2f['getRange']();(_0x26dc56['containsPosition'](_0x2576b3)||_0x26dc56['start']['isEqual'](_0x2576b3)||_0x26dc56['end']['isEqual'](_0x2576b3))&&_0x4c429f['push'](_0x119c2f);}return _0x4c429f;}(_0xb1f432,_0xb1f432['document']['selection']['focus']),_0x369cf9=[],_0x1fd1ca=[],_0x1a4c4c=[];for(const _0x4325db of _0x282648)_0x114c02['includes'](_0x4325db)||_0x369cf9['push'](_0x4325db);for(const _0x12ec50 of _0x114c02)_0x282648['includes'](_0x12ec50)||_0x1fd1ca['push'](_0x12ec50),_0x1a4c4c['push'](_0x12ec50);(_0x369cf9['length']||_0x1fd1ca['length'])&&_0x1ed2e9({'left':_0x369cf9,'entered':_0x1fd1ca}),_0x282648['length']=0x0,_0x282648['push'](..._0x1a4c4c);});}const xt='Ctrl+Shift+E';function It(_0x2670e8,_0x33e854){const _0x4a2be2=_0x2670e8['element'];_0x2670e8['keystrokes']['listenTo'](_0x4a2be2);for(const _0x4f4394 of _0x33e854)ro(_0x2670e8,_0x4f4394);_0x33e854['on']('change',(_0xbeebbe,_0x438c33)=>{for(const _0x22c35c of _0x438c33['removed'])to(_0x2670e8,_0x22c35c);for(const _0x4a20d8 of Array['from'](_0x438c33['added'])['reverse']())ro(_0x2670e8,_0x4a20d8);}),_0x2670e8['keystrokes']['set']('enter',(_0x46ba4b,_0x19e50e)=>{_0x4a2be2===_0x46ba4b['target']&&(_0x2670e8['focusCycler']['focusFirst'](),_0x19e50e());},{'filter':_0x207b8e=>_0x207b8e['target']===_0x4a2be2}),_0x2670e8['keystrokes']['set']('esc',(_0xecce8a,_0x1437a0)=>{_0x4a2be2!==_0xecce8a['target']?_0x2670e8['focus']():_0x2670e8['fire']('escape'),_0x1437a0();}),_0x2670e8['keystrokes']['set']('arrowdown',(_0x50c3f7,_0x5b29a5)=>{_0x4a2be2===_0x50c3f7['target']&&(_0x2670e8['fire']('arrowdown'),_0x5b29a5());}),_0x2670e8['keystrokes']['set']('arrowup',(_0x576aed,_0x4fc49f)=>{_0x4a2be2===_0x576aed['target']&&(_0x2670e8['fire']('arrowup'),_0x4fc49f());});}function ro(_0x41968e,_0x146cda){_0x146cda['isRendered']&&(_0x41968e['focusTracker']['add'](_0x146cda['element']),_0x41968e['keystrokes']['listenTo'](_0x146cda['element']),_0x1a5d85(_0x146cda)&&function(_0x1af297,_0x4f4a17){const _0x5e8592=_0x1af297['actions'],_0x5c20a3=_0x4f4a17['actions'];for(const _0x2fea50 of Object['keys'](_0x5e8592))if(_0x2fea50 in _0x5c20a3&&_0x5e8592[_0x2fea50]!==_0x5c20a3[_0x2fea50])return!0x1;return!0x0;}(_0x41968e['focusCycler'],_0x146cda['focusCycler'])&&_0x41968e['focusCycler']['chain'](_0x146cda['focusCycler']));}function to(_0x288f85,_0x31c260){_0x288f85['focusTracker']['remove'](_0x31c260['element']),_0x288f85['keystrokes']['stopListening'](_0x31c260['element']),_0x1a5d85(_0x31c260)&&_0x288f85['focusCycler']['unchain'](_0x31c260['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x332f09{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x45f614?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x5ba08e,_0x1d5345)=>{_0x1d5345['on']('ready',()=>{this['_integrateEditor'](_0x1d5345);});});}get['editor'](){if(this['context']instanceof _0x45f614)return this['context'];{const _0x81ae31=this['context']['editors']['first'];if(!_0x81ae31)throw new _0x522ad6('documentcompare-no-editor',this);return _0x81ae31;}}['getDiff'](_0x2a1b8d,_0xc469ed,_0x1ef358={'anchor':'main','markDeletions':!0x1}){let _0x27be64,_0x107a65;const _0x113fa4=this['editor'];if('string'==typeof _0x1ef358['anchor']){const _0x6f064c=_0x113fa4['model']['document']['getRoot'](_0x1ef358['anchor']);if(!_0x6f064c)throw new _0x522ad6('documentcompare-compare-no-root',this,{'anchor':_0x1ef358['anchor']});_0x27be64=_0x6f064c,_0x107a65=_0x113fa4['model']['createPositionAt'](_0x6f064c,0x0);}else _0x27be64=_0x1ef358['anchor']['clone'](),_0x107a65=_0x1ef358['anchor']['clone']();const _0x2ab6a4=_0x113fa4['data']['parse'](_0x2a1b8d,_0x27be64),_0x5e156e=_0x113fa4['data']['parse'](_0xc469ed,_0x27be64);return new Mt(_0x2ab6a4,_0x5e156e,_0x113fa4,{'anchor':_0x107a65,'markDeletions':_0x1ef358['markDeletions']});}['isMarkedRemoveOperation'](_0xeb257f){return'marker'==_0xeb257f['type']&&_0xeb257f['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x53bad7){_0x53bad7['conversion']['for']('upcast')['add'](_0x422d2f=>{_0x422d2f['on']('element',(_0x3eda2c,_0x2a71ff,_0x30b715)=>{if(_0x2a71ff['modelRange'])for(const _0x191086 of _0x2a71ff['modelRange']['getItems']({'shallow':!0x0})){if(_0x191086['is']('$textProxy'))continue;const _0x48311f=_0x2a71ff['viewItem']['getAttribute'](Et);_0x48311f&&_0x30b715['writer']['setAttribute'](St,_0x48311f,_0x191086);}},{'priority':'lowest'});}),_0x53bad7['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x399d02,_0x410693,_0x21f42d,_0x39bf8d){this['_editor']=_0x21f42d,this['_markDeletions']=!!_0x39bf8d['markDeletions'],this['_anchor']=_0x39bf8d['anchor'];const _0x8b8082=this['_tokenizeModel'](_0x399d02),_0x4a4c49=this['_tokenizeModel'](_0x410693);this['_diffItems']=this['_diffModelTokens'](_0x8b8082,_0x4a4c49),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x399d02['markers'],_0x410693['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x5ad3e3=this['_editor']['model']['document'],_0x566cd4=[];let _0x1f61ad=_0x5ad3e3['version'];for(const _0x3f78f7 of this['_operationsData'])switch(_0x3f78f7['type']){case'attribute':{const _0x2d6353=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['path']),_0x127beb=_0x2d6353['getShiftedBy'](_0x3f78f7['howMany']),_0x4d788c=new _0x28bd6a(_0x2d6353,_0x127beb),_0x2ad961=JSON['parse'](_0x3f78f7['oldValue']),_0x164483=JSON['parse'](_0x3f78f7['newValue']);_0x566cd4['push'](new _0x6465a0(_0x4d788c,_0x3f78f7['key'],_0x2ad961,_0x164483,_0x1f61ad++));break;}case'insert':{const _0x453399=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['path']),_0x404ba5=this['_makeModelFromTokens'](_0x3f78f7['tokens']);_0x566cd4['push'](new _0x4924b4(_0x453399,_0x404ba5,_0x1f61ad++));break;}case'remove':{const _0x3e1dde=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['path']),_0x301223=new _0x5e68ec(_0x5ad3e3['graveyard'],[0x0]);_0x566cd4['push'](new _0x52d19d(_0x3e1dde,_0x3f78f7['howMany'],_0x301223,_0x1f61ad++));break;}case'rename':{const _0x332ad5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['path']);_0x566cd4['push'](new _0x256483(_0x332ad5,_0x3f78f7['oldName'],_0x3f78f7['newName'],_0x1f61ad++));break;}case'split':{const _0x298c2e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['path']),_0x5cc609=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['path']['slice'](0x0,-0x1));_0x5cc609['offset']++,_0x566cd4['push'](new _0x17d971(_0x298c2e,Number['NEGATIVE_INFINITY'],_0x5cc609,null,_0x1f61ad++));break;}case'merge':{const _0x150ac3=_0x3f78f7['path']['slice'](),_0x1ad990=_0x150ac3['slice'](0x0,-0x1);_0x1ad990[_0x1ad990['length']-0x1]++,_0x1ad990['push'](0x0);const _0x38bc53=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1ad990),_0x30a399=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x150ac3),_0x3adeac=new _0x5e68ec(_0x5ad3e3['graveyard'],[0x0]);_0x566cd4['push'](new _0x569d03(_0x38bc53,Number['NEGATIVE_INFINITY'],_0x30a399,_0x3adeac,_0x1f61ad++));break;}case'marker':case'markedRemove':{let _0x32726f=null;if(_0x3f78f7['range']){const _0x32e1ab=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['range']['start']),_0x579a8d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['range']['end']);_0x32726f=new _0x28bd6a(_0x32e1ab,_0x579a8d);}const _0x342d1b='marker'==_0x3f78f7['type']?_0x3f78f7['name']:'$markedRemove:'+_0x4ea484();_0x566cd4['push'](new _0x42009f(_0x342d1b,null,_0x32726f,_0x5ad3e3['model']['markers'],!0x0,_0x1f61ad++));break;}case'unwrap':{const _0x4f916d=_0x3f78f7['path']['slice']();_0x4f916d['push'](0x0);const _0x3ca56c=_0x3f78f7['path']['slice'](),_0xa61807=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4f916d),_0xfb2c15=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3ca56c),_0x382cb5=new _0x5e68ec(_0x5ad3e3['graveyard'],[0x0]);_0x566cd4['push'](new _0x52d19d(_0xa61807,_0x3f78f7['howMany'],_0xfb2c15,_0x1f61ad++)),_0x566cd4['push'](new _0x52d19d(_0xfb2c15['getShiftedBy'](_0x3f78f7['howMany']),0x1,_0x382cb5,_0x1f61ad++));break;}case'wrap':{const _0x398250=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['range']['start']),_0x2cb388=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3f78f7['range']['end']),_0x522fca=_0x3f78f7['token']['element']['_clone'](!0x1),_0x1dee60=_0x3f78f7['range']['end']['slice']();_0x1dee60['push'](0x0);const _0x13c3b0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1dee60);_0x566cd4['push'](new _0x4924b4(_0x2cb388,_0x522fca,_0x1f61ad++)),_0x566cd4['push'](new _0x52d19d(_0x398250,_0x2cb388['offset']-_0x398250['offset'],_0x13c3b0,_0x1f61ad++));break;}}return _0x566cd4;}['_tokenizeModel'](_0x7b450){const _0xbab465=[],_0x66f3a4=_0x28bd6a['_createIn'](_0x7b450),_0x159e70=new _0x5cbeaf({'boundaries':_0x66f3a4});let _0x1fdabc='',_0x2fbbae=null;const _0x2e1611=[''],_0x2a2456=new Map();for(const _0x56ae38 of _0x159e70)if('elementStart'==_0x56ae38['type']||'elementEnd'==_0x56ae38['type']){let _0x2affea=_0x2e1611[0x0];''!==_0x1fdabc&&(_0xbab465['push'](...this['_makeTokensFromTextByWords'](_0x1fdabc,_0x2fbbae,_0x2affea)),_0x1fdabc='');const _0x38e195=_0x56ae38['item'];let _0x44fee5;_0x38e195['getAttribute'](St)?_0x44fee5=_0x38e195['getAttribute'](St):'elementStart'==_0x56ae38['type']?(_0x44fee5=_(_0x38e195),_0x2a2456['set'](_0x38e195,_0x44fee5)):_0x44fee5=_0x2a2456['get'](_0x38e195);const _0x155eb5=this['_getElementCategory'](_0x38e195);'solid'==_0x155eb5&&('elementStart'==_0x56ae38['type']?(_0x2affea=_0x44fee5,_0x2e1611['unshift'](_0x2affea)):_0x2e1611['shift']());const _0x5b9eab={'type':'element','element':_0x38e195,'elementId':_0x44fee5,'category':_0x155eb5,'isStart':'elementStart'==_0x56ae38['type'],'limitId':_0x2affea};_0xbab465['push'](_0x5b9eab);}else''==_0x1fdabc&&(_0x2fbbae=_0x56ae38['previousPosition']['clone']()),_0x1fdabc+=_0x56ae38['item']['data'];return''!==_0x1fdabc&&_0xbab465['push'](...this['_makeTokensFromTextByWords'](_0x1fdabc,_0x2fbbae,_0x2e1611[0x0])),_0xbab465;}['_makeTokensFromTextByWords'](_0x354dad,_0x1d7f47,_0x5ae8e9){const _0x4763ec=_0x354dad['matchAll'](/(\s)/g),_0x371789=Array['from'](_0x4763ec)['map'](_0x4f7c48=>_0x4f7c48['index']);_0x371789['push'](_0x354dad['length']),0x0==_0x371789[0x0]&&_0x371789['shift']();const _0x1dcf77=[],_0x2ecf84=_0x1d7f47['parent'];let _0x2bb7fb=0x0,_0x4e0ac4=_0x1d7f47['offset'];for(let _0x29eb07=0x0;_0x29eb07<_0x371789['length'];_0x29eb07++)_0x1dcf77['push']({'type':'text','data':_0x354dad['slice'](_0x2bb7fb,_0x371789[_0x29eb07]),'parent':_0x2ecf84,'offset':_0x4e0ac4,'limitId':_0x5ae8e9}),_0x2bb7fb=_0x371789[_0x29eb07],_0x4e0ac4=_0x1d7f47['offset']+_0x371789[_0x29eb07];return _0x1dcf77;}['_getElementCategory'](_0x2ccd8f){const _0x1d910f=this['_editor']['model']['schema'];return _0x1d910f['isLimit'](_0x2ccd8f)||_0x1d910f['isContent'](_0x2ccd8f)||_0x1d910f['isInline'](_0x2ccd8f)?'solid':_0x1d910f['isBlock'](_0x2ccd8f)?'block':'container';}['_diffModelTokens'](_0x243db0,_0x17a354){const _0x69d22c=_0x40c913(_0x243db0,_0x17a354,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x69d22c);const _0x592e64=_0x69d22c['flatMap'](_0x585195=>{const _0x30139e=_0x585195['added']?'added':_0x585195['removed']?'removed':'unchanged';return _0x585195['value']['map'](_0x1cfd84=>({'token':_0x1cfd84,'change':_0x30139e}));});let _0x230951=0x0;for(const _0x23f2b4 of _0x592e64)'added'!=_0x23f2b4['change']&&('unchanged'==_0x23f2b4['change']&&(_0x23f2b4['before']=_0x243db0[_0x230951]),_0x230951++);return _0x592e64;}['_handleUnclosedBlockOpeningTags'](_0x2a1f79){for(let _0x4ff012=0x0;_0x4ff012<_0x2a1f79['length']-0x1;_0x4ff012++)if(_0x2a1f79[_0x4ff012]['removed']&&_0x2a1f79[_0x4ff012+0x1]['added']){const _0xd3443c=this['_findUnclosedBlockOpeningToken'](_0x2a1f79[_0x4ff012]['value']);if(null!==_0xd3443c){const _0x1615ee=this['_findUnclosedBlockOpeningToken'](_0x2a1f79[_0x4ff012+0x1]['value']),_0x3c31bf=_0x2a1f79[_0x4ff012]['value']['splice'](_0xd3443c),_0x472cb5=_0x2a1f79[_0x4ff012+0x1]['value']['splice'](_0x1615ee),_0x1db1bf=[_0x472cb5['shift']()];_0x3c31bf['shift']();const _0x262bfd={'value':_0x3c31bf,'removed':!0x0},_0x18966c={'value':_0x472cb5,'added':!0x0},_0x5d43db={'value':_0x1db1bf};_0x2a1f79['splice'](_0x4ff012+0x2,0x0,_0x5d43db,_0x262bfd,_0x18966c);}}}['_findUnclosedBlockOpeningToken'](_0x4e788f){let _0x22db71=0x0,_0x512085=-0x1;for(let _0x383607=0x0;_0x383607<_0x4e788f['length'];_0x383607++){const _0x9904c3=_0x4e788f[_0x383607];'element'==_0x9904c3['type']&&'block'==_0x9904c3['category']&&(_0x22db71+=_0x9904c3['isStart']?0x1:-0x1,_0x9904c3['isStart']&&(_0x512085=_0x383607));}return 0x0===_0x22db71?null:_0x512085;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x474396=0x0;_0x474396<this['_diffItems']['length'];_0x474396++){const _0x31d032=this['_diffItems'][_0x474396]['change'],_0x652e1=[];_0x652e1['push'](this['_diffItems'][_0x474396]);let _0x5249d3=_0x474396+0x1;for(;this['_diffItems'][_0x5249d3]&&this['_diffItems'][_0x5249d3]['change']==_0x31d032;)_0x652e1['push'](this['_diffItems'][_0x5249d3]),_0x5249d3++,_0x474396++;const _0x42d789=_0x652e1['map'](_0x26704a=>_0x26704a['token']);if('unchanged'==_0x31d032)_0x652e1['map'](_0xe6e607=>_0xe6e607['before'])['forEach'](_0x291453=>this['_traverseOverItem'](_0x291453));else{if('removed'==_0x31d032){if(this['_markDeletions']){const _0x29812e=this['_path']['slice']();_0x42d789['forEach'](_0x46a70b=>this['_traverseOverItem'](_0x46a70b));const _0x1eafd2=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x29812e,'end':_0x1eafd2}});}else this['_handleChanged'](_0x42d789,!0x0,this['_path']['slice']());}else{const _0x59ae89=_0x42d789['filter'](_0x17f949=>'element'!=_0x17f949['type']||'container'!=_0x17f949['category']);this['_handleChanged'](_0x59ae89,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x2f73b6=0x0;_0x2f73b6<this['_diffItems']['length'];_0x2f73b6++){const _0x2a5b4a=this['_diffItems'][_0x2f73b6]['change'],_0x1d45ae=[];_0x1d45ae['push'](this['_diffItems'][_0x2f73b6]);let _0x540e23=_0x2f73b6+0x1;for(;this['_diffItems'][_0x540e23]&&this['_diffItems'][_0x540e23]['change']==_0x2a5b4a;)_0x1d45ae['push'](this['_diffItems'][_0x540e23]),_0x540e23++,_0x2f73b6++;const _0x1d0d19=_0x1d45ae['map'](_0x39be9b=>_0x39be9b['token']);if('unchanged'==_0x2a5b4a){const _0x2684c6=_0x1d45ae['map'](_0x5beaf5=>_0x5beaf5['before']);this['_handleUnchanged'](_0x2684c6,_0x1d0d19);}else('removed'!=_0x2a5b4a||this['_markDeletions'])&&_0x1d0d19['forEach'](_0x31bc1d=>{this['_traverseOverItem'](_0x31bc1d);});}}['_calculateMarkersOperationsData'](_0x58ab4,_0xd48ba0){const _0x5caafa={};for(const [_0x43b8bb]of _0x58ab4)_0x5caafa[_0x43b8bb]=null;for(const [_0x3bea19,_0x2b917a]of _0xd48ba0)_0x5caafa[_0x3bea19]=_0x2b917a;const _0xadedb5=Object['entries'](_0x5caafa)['map'](([_0x33dad4,_0x2ecc1a])=>({'type':'marker','name':_0x33dad4,'range':_0x2ecc1a?{'start':_0x2ecc1a['start']['path']['slice'](),'end':_0x2ecc1a['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xadedb5);}['_handleUnwraps'](){const _0x5b19ab=new Map(),_0x260390=[],_0x3e436d=[0x0];let _0x41d7f8=this['_diffItems']['length']+0x1;for(let _0x3d9e8b=this['_diffItems']['length']-0x1;_0x3d9e8b>=0x0;_0x3d9e8b--){const {token:_0x1b6308,before:_0x5a6684,change:_0x103a8e}=this['_diffItems'][_0x3d9e8b];if('removed'!=_0x103a8e&&(_0x41d7f8=_0x3d9e8b),'element'!=_0x1b6308['type']||'container'!=_0x1b6308['category']||'added'==_0x103a8e)continue;const _0x40974e=_0x5a6684?_0x5a6684['element']:_0x1b6308['element'];if(_0x1b6308['isStart']){const _0x4075c2=_0x5b19ab['get'](_0x40974e),_0x574bd0=this['_diffItems'][_0x4075c2];('removed'==_0x103a8e||'removed'==_0x574bd0['change'])&&_0x41d7f8<_0x4075c2&&(this['_operationsData']['push']({'type':'unwrap','path':_0x40974e['getPath'](),'howMany':_0x40974e['maxOffset']+_0x3e436d[0x0]}),_0x3e436d['shift'](),_0x3e436d[0x0]+=_0x40974e['maxOffset']-0x1,_0x260390['push'](_0x3d9e8b),_0x260390['push'](_0x4075c2));}else _0x5b19ab['set'](_0x40974e,_0x3d9e8b),_0x3e436d['unshift'](0x0);}_0x260390['sort']((_0x1166b0,_0xa81d7e)=>_0xa81d7e-_0x1166b0),_0x260390['forEach'](_0x3108c2=>{const _0x1daa30=this['_diffItems'][_0x3108c2];'removed'==_0x1daa30['change']?this['_diffItems']['splice'](_0x3108c2,0x1):(_0x1daa30['change']='added',delete _0x1daa30['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x534cc7=[];for(let _0x3726f4=0x0;_0x3726f4<this['_diffItems']['length'];_0x3726f4++){const {change:_0x910a84,token:_0x194f1b}=this['_diffItems'][_0x3726f4];if('added'==_0x910a84&&'element'==_0x194f1b['type']&&'container'==_0x194f1b['category']){if(_0x194f1b['isStart'])_0x534cc7['push'](this['_path']['slice']());else{if(!_0x194f1b['isStart']){const _0x1c8872=_0x534cc7['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x1c8872,'end':this['_path']['slice']()},'token':_0x194f1b}),this['_path'][this['_path']['length']-0x1]=_0x1c8872[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x910a84||this['_markDeletions'])&&this['_traverseOverItem'](_0x194f1b);}}['_handleUnchanged'](_0x209b8f,_0x29083c){for(let _0x522882=0x0;_0x522882<_0x209b8f['length'];_0x522882++){const _0x3074a0=_0x209b8f[_0x522882];if('element'==_0x3074a0['type']&&_0x3074a0['isStart']){const _0x1c3d68=_0x29083c[_0x522882];'block'==_0x3074a0['category']&&this['_handleElementRename'](_0x3074a0['element'],_0x1c3d68['element'],this['_path']),this['_handleElementAttributeChanges'](_0x3074a0['element'],_0x1c3d68['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x1c3d68);}else{if('element'!=_0x3074a0['type']||_0x3074a0['isStart']){if('text'==_0x3074a0['type']){const _0x31960b=this['_path']['slice'](),_0x62514f=[],_0x37afcb=[];for(;_0x209b8f[_0x522882]&&'text'==_0x209b8f[_0x522882]['type'];)_0x62514f['push'](_0x209b8f[_0x522882]),_0x37afcb['push'](_0x29083c[_0x522882]),this['_path'][this['_path']['length']-0x1]+=_0x209b8f[_0x522882]['data']['length'],_0x522882++;_0x522882--,this['_handleTextAttributeChanges'](_0x62514f,_0x37afcb,_0x31960b);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x2c4d32,_0x10d272,_0x5f26ca){const _0xab4f97=[],_0xa8b498=[],_0xf42c6a=_0x5f26ca['slice']();for(let _0x2450f3=0x0;_0x2450f3<_0x2c4d32['length'];_0x2450f3++){const _0x167f1c=_0x2c4d32[_0x2450f3],_0x584495=_0x5f26ca['slice']();if('element'!=_0x167f1c['type']||_0x167f1c['isStart'])'element'==_0x167f1c['type']&&_0x167f1c['isStart']?(_0x5f26ca['push'](0x0),_0x10d272||this['_parents']['push'](_0x167f1c),_0xa8b498['push']({'before':_0x584495,'after':_0x5f26ca['slice'](),'index':_0x2450f3})):_0x5f26ca[_0x5f26ca['length']-0x1]+=_0x167f1c['data']['length'];else{let _0x7f6feb;_0x5f26ca['pop'](),_0x5f26ca[_0x5f26ca['length']-0x1]++,_0x7f6feb=_0x10d272?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0xa8b498['length']?_0xa8b498['pop']():_0xab4f97['push']({'before':_0x584495,'after':_0x5f26ca['slice'](),'index':_0x2450f3,'related':_0x7f6feb});}}if(_0xa8b498['length']!==_0xab4f97['length'])throw new _0x522ad6('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x2c4d32,'isRemove':_0x10d272});const _0x4aca84=[{'after':_0xf42c6a['slice'](),'index':-0x1},..._0xab4f97,..._0xa8b498,{'before':_0x5f26ca['slice'](),'index':_0x2c4d32['length']}];if(_0x10d272){for(let _0x4f44b2=_0x4aca84['length']-0x1;_0x4f44b2>=0x1;_0x4f44b2--){const _0x16aaa9=_0x4aca84[_0x4f44b2-0x1]['after'],_0x50e09d=_0x4aca84[_0x4f44b2]['before'],_0x2cb2c4=_0x50e09d[_0x50e09d['length']-0x1]-_0x16aaa9[_0x16aaa9['length']-0x1];_0x2cb2c4&&(this['_operationsData']['push']({'type':'remove','path':_0x16aaa9,'howMany':_0x2cb2c4}),_0x50e09d[_0x50e09d['length']-0x1]-=_0x2cb2c4);}for(const {before:_0x2883bc}of _0xab4f97)this['_operationsData']['push']({'type':'merge','path':_0x2883bc});}else for(let _0x78b05a=0x0;_0x78b05a<_0x4aca84['length']-0x1;_0x78b05a++){const _0x3eff02=_0x4aca84[_0x78b05a]['after'],_0x845d7c=_0x4aca84[_0x78b05a+0x1]['before'],_0x1c9500=_0x4aca84[_0x78b05a]['index']+0x1,_0x537965=_0x4aca84[_0x78b05a+0x1]['index'];if(_0x1c9500!==_0x537965&&this['_operationsData']['push']({'type':'insert','path':_0x3eff02,'tokens':_0x2c4d32['slice'](_0x1c9500,_0x537965)}),_0x78b05a<_0xab4f97['length']){this['_operationsData']['push']({'type':'split','path':_0x845d7c});const _0x5e43ff=_0x2c4d32[_0xa8b498[_0xa8b498['length']-0x1-_0x78b05a]['index']],_0x5d3acd=_0xab4f97[_0x78b05a]['after'],_0x3332fc=_0xab4f97[_0x78b05a]['related']['element'];this['_handleElementRename'](_0x3332fc,_0x5e43ff['element'],_0x5d3acd),this['_handleElementAttributeChanges'](_0x3332fc,_0x5e43ff['element'],_0x5d3acd);}}}['_traverseOverItem'](_0x1ba18e){'element'==_0x1ba18e['type']&&_0x1ba18e['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x1ba18e)):'element'!=_0x1ba18e['type']||_0x1ba18e['isStart']?'text'==_0x1ba18e['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x1ba18e['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x1ce105,_0x4398ea,_0x28184f){_0x1ce105['name']!=_0x4398ea['name']&&this['_operationsData']['push']({'type':'rename','path':_0x28184f['slice'](),'oldName':_0x1ce105['name'],'newName':_0x4398ea['name']});}['_handleElementAttributeChanges'](_0x19476f,_0x1bce03,_0x45b3e9){const _0x3dd326=this['_getAttributeChanges'](_0x19476f['getAttributes'](),_0x1bce03['getAttributes']());for(const _0x510b89 in _0x3dd326){const {oldValue:_0x2588a3,newValue:_0x3e5ad2}=_0x3dd326[_0x510b89];this['_operationsData']['push']({'type':'attribute','path':_0x45b3e9['slice'](),'howMany':0x1,'key':_0x510b89,'oldValue':_0x2588a3,'newValue':_0x3e5ad2});}}['_handleTextAttributeChanges'](_0x356e6c,_0x27be4e,_0x3e5d4d){const _0x372e5f=this['_operationsData'],_0x2825b0=_0x356e6c[0x0]['parent'],_0x5df4da=_0x356e6c[0x0]['offset'],_0x3e07a3=_0x27be4e[0x0]['parent'],_0x21ecfc=_0x27be4e[0x0]['offset'],_0x2cc037=_0x356e6c['reduce']((_0x11fd4f,_0xd11157)=>_0x11fd4f+_0xd11157['data']['length'],0x0),_0x1d755d=this['_getAttrsForOffsets'](_0x2825b0,_0x5df4da,_0x2cc037),_0x18c379=this['_getAttrsForOffsets'](_0x3e07a3,_0x21ecfc,_0x2cc037),_0x1d7932={};for(let _0x4584e3=0x0;_0x4584e3<_0x2cc037;_0x4584e3++){const _0x29cf65=_0x1d755d[_0x5df4da+_0x4584e3],_0x5af2f4=_0x18c379[_0x21ecfc+_0x4584e3],_0x574f17=this['_getAttributeChanges'](_0x29cf65,_0x5af2f4);for(const _0x11940f in _0x1d7932)_0x574f17[_0x11940f]||_0x15b747(_0x11940f);for(const _0x5ef0f1 in _0x574f17){const {oldValue:_0x122f63,newValue:_0x3e9245}=_0x574f17[_0x5ef0f1],_0x233ebb=_0x1d7932[_0x5ef0f1];_0x233ebb?_0x233ebb['oldValue']==_0x122f63&&_0x233ebb['newValue']==_0x3e9245?_0x233ebb['length']++:(_0x15b747(_0x5ef0f1),_0x1d7932[_0x5ef0f1]={'oldValue':_0x122f63,'newValue':_0x3e9245,'start':_0x4584e3,'length':0x1}):_0x1d7932[_0x5ef0f1]={'oldValue':_0x122f63,'newValue':_0x3e9245,'start':_0x4584e3,'length':0x1};}}for(const _0x1b3906 in _0x1d7932)_0x15b747(_0x1b3906);function _0x15b747(_0x49adb4){const _0x4a4dad=_0x1d7932[_0x49adb4],_0x23ffe4=_0x3e5d4d['slice']();_0x23ffe4[_0x23ffe4['length']-0x1]+=_0x4a4dad['start'],_0x372e5f['push']({'type':'attribute','path':_0x23ffe4,'howMany':_0x4a4dad['length'],'key':_0x49adb4,'oldValue':_0x4a4dad['oldValue'],'newValue':_0x4a4dad['newValue']}),delete _0x1d7932[_0x49adb4];}}['_getAttributeChanges'](_0x525c5c,_0x4d26b6){const _0x34822e={};for(const [_0x534a03,_0x3b2603]of _0x525c5c)_0x34822e[_0x534a03]={'oldValue':JSON['stringify'](_0x3b2603),'newValue':'null'};for(const [_0x6dbd61,_0x3f2a5b]of _0x4d26b6){const _0x34bc8d=JSON['stringify'](_0x3f2a5b);_0x34822e[_0x6dbd61]?_0x34822e[_0x6dbd61]['oldValue']==_0x34bc8d?delete _0x34822e[_0x6dbd61]:_0x34822e[_0x6dbd61]['newValue']=_0x34bc8d:_0x34822e[_0x6dbd61]={'oldValue':'null','newValue':_0x34bc8d};}return delete _0x34822e[St],_0x34822e;}['_getAttrsForOffsets'](_0x250d53,_0x576ff7,_0x1b0709){const _0x271ec5=new Array(_0x576ff7+_0x1b0709);let _0xfb83b4=_0x250d53['getChildAtOffset'](_0x576ff7),_0x58c3c6=_0xfb83b4['startOffset'];for(;_0xfb83b4&&_0x58c3c6<_0x576ff7+_0x1b0709;){const _0x597dcf=Array['from'](_0xfb83b4['getAttributes']());_0x271ec5['fill'](_0x597dcf,_0x58c3c6,_0x58c3c6+_0xfb83b4['offsetSize']),_0x58c3c6+=_0xfb83b4['offsetSize'],_0xfb83b4=_0xfb83b4['nextSibling'];}return _0x271ec5;}['_getPositionFromAnchorAndPath'](_0x381414,_0x363d92){const _0x15e29f=[..._0x381414['path']['slice'](0x0,-0x1),_0x381414['offset']+_0x363d92[0x0],..._0x363d92['slice'](0x1)];return new _0x5e68ec(_0x381414['root'],_0x15e29f);}['_makeModelFromTokens'](_0x26245a){const _0x1664fc=[];let _0x1db847=null;for(const _0x344b12 of _0x26245a)if('element'!=_0x344b12['type']||_0x344b12['isStart']||_0x1db847!=_0x344b12['element']){if(!_0x1db847){if('text'==_0x344b12['type']){const _0x20feb4=_0x5e68ec['_createAt'](_0x344b12['parent'],_0x344b12['offset']),_0x46e91f=_0x28bd6a['_createFromPositionAndShift'](_0x20feb4,_0x344b12['data']['length']),_0xd1095c=Array['from'](_0x46e91f['getItems']())['map'](_0x31ebbf=>new _0xc09801(_0x31ebbf['data'],_0x31ebbf['getAttributes']()));_0x1664fc['push'](..._0xd1095c);}else{_0x1db847=_0x344b12['element'];const _0x5e72f2=_0x344b12['element']['_clone'](!0x0);_0x5e72f2['_removeAttribute'](St);for(const _0x2a93f5 of this['_editor']['model']['createRangeIn'](_0x5e72f2)['getItems']())_0x2a93f5['is']('element')&&_0x2a93f5['_removeAttribute'](St);_0x1664fc['push'](_0x5e72f2);}}}else _0x1db847=null;return _0x1664fc;}}function g(_0x41ae78,_0x1fee78){return _0x41ae78['type']===_0x1fee78['type']&&(_0x41ae78['limitId']===_0x1fee78['limitId']&&('text'==_0x41ae78['type']?_0x41ae78['data']==_0x1fee78['data']:function(_0x5e6303,_0x4736bb){if(_0x5e6303['isStart']!=_0x4736bb['isStart'])return!0x1;if(_0x5e6303['isStart']&&_0x5e6303['elementId']!=_0x4736bb['elementId'])return!0x1;if(_0x5e6303['category']!=_0x4736bb['category'])return!0x1;if('block'==_0x5e6303['category'])return!0x0;if('container'==_0x5e6303['category']&&_0x5e6303['elementId']!=_0x4736bb['elementId'])return!0x1;return _0x5e6303['element']['name']==_0x4736bb['element']['name'];}(_0x41ae78,_0x1fee78)));}function _(_0x21cf70){return k({'name':_0x21cf70['name'],...Object['fromEntries'](_0x21cf70['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,xt as FOCUS_ANNOTATION_KEYSTROKE,ft as LateFocusButtonView,gt as LateFocusDropdownButtonView,C as Permissions,kt as SuggestionsConversion,ht as UserView,ct as Users,mt as fixElementSuggestionRange,wt as getAllMarkersDomElementsSorted,pt as getDateTimeFormatter,yt as getMarkerDomElement,k as hashObject,Ct as sanitizeEditorConfig,It as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,_t as surroundingMarkersDetector,bt as trimHtml};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x3e9ec4=>0x1!=_0x3e9ec4}};
23
+ export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x423aa9=>0x1!=_0x423aa9}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x3ddb27=>{const {af:{dictionary:_0x285606,getPluralForm:_0x25483e}}={'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x1b5395=>0x1!=_0x1b5395}};_0x3ddb27['af']||={'dictionary':{},'getPluralForm':null},_0x3ddb27['af']['dictionary']=Object['assign'](_0x3ddb27['af']['dictionary'],_0x285606),_0x3ddb27['af']['getPluralForm']=_0x25483e;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x199c2a=>{const {af:{dictionary:_0x1bd6f0,getPluralForm:_0x125ad8}}={'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x2446f2=>0x1!=_0x2446f2}};_0x199c2a['af']||={'dictionary':{},'getPluralForm':null},_0x199c2a['af']['dictionary']=Object['assign'](_0x199c2a['af']['dictionary'],_0x1bd6f0),_0x199c2a['af']['getPluralForm']=_0x125ad8;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x56ef66=>0x0==_0x56ef66?0x0:0x1==_0x56ef66?0x1:0x2==_0x56ef66?0x2:_0x56ef66%0x64>=0x3&&_0x56ef66%0x64<=0xa?0x3:_0x56ef66%0x64>=0xb?0x4:0x5}};
23
+ export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x5e372c=>0x0==_0x5e372c?0x0:0x1==_0x5e372c?0x1:0x2==_0x5e372c?0x2:_0x5e372c%0x64>=0x3&&_0x5e372c%0x64<=0xa?0x3:_0x5e372c%0x64>=0xb?0x4:0x5}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x18cc1a=>{const {ar:{dictionary:_0x28b23b,getPluralForm:_0x30d33c}}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x7fef53=>0x0==_0x7fef53?0x0:0x1==_0x7fef53?0x1:0x2==_0x7fef53?0x2:_0x7fef53%0x64>=0x3&&_0x7fef53%0x64<=0xa?0x3:_0x7fef53%0x64>=0xb?0x4:0x5}};_0x18cc1a['ar']||={'dictionary':{},'getPluralForm':null},_0x18cc1a['ar']['dictionary']=Object['assign'](_0x18cc1a['ar']['dictionary'],_0x28b23b),_0x18cc1a['ar']['getPluralForm']=_0x30d33c;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0xceda0b=>{const {ar:{dictionary:_0x134822,getPluralForm:_0x5d9b90}}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x50c3cd=>0x0==_0x50c3cd?0x0:0x1==_0x50c3cd?0x1:0x2==_0x50c3cd?0x2:_0x50c3cd%0x64>=0x3&&_0x50c3cd%0x64<=0xa?0x3:_0x50c3cd%0x64>=0xb?0x4:0x5}};_0xceda0b['ar']||={'dictionary':{},'getPluralForm':null},_0xceda0b['ar']['dictionary']=Object['assign'](_0xceda0b['ar']['dictionary'],_0x134822),_0xceda0b['ar']['getPluralForm']=_0x5d9b90;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x39c570=>0x1!=_0x39c570}};
23
+ export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x381ed0=>0x1!=_0x381ed0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x1dad6c=>{const {ast:{dictionary:_0x19d6ca,getPluralForm:_0x27112f}}={'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x22bc7e=>0x1!=_0x22bc7e}};_0x1dad6c['ast']||={'dictionary':{},'getPluralForm':null},_0x1dad6c['ast']['dictionary']=Object['assign'](_0x1dad6c['ast']['dictionary'],_0x19d6ca),_0x1dad6c['ast']['getPluralForm']=_0x27112f;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x2a5a2b=>{const {ast:{dictionary:_0x15560d,getPluralForm:_0x3ce774}}={'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x15ea7f=>0x1!=_0x15ea7f}};_0x2a5a2b['ast']||={'dictionary':{},'getPluralForm':null},_0x2a5a2b['ast']['dictionary']=Object['assign'](_0x2a5a2b['ast']['dictionary'],_0x15560d),_0x2a5a2b['ast']['getPluralForm']=_0x3ce774;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x1dde07=>0x1!=_0x1dde07}};
23
+ export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x4ac4ad=>0x1!=_0x4ac4ad}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x51ffa1=>{const {az:{dictionary:_0x1c7d13,getPluralForm:_0x5f4d6a}}={'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x54e618=>0x1!=_0x54e618}};_0x51ffa1['az']||={'dictionary':{},'getPluralForm':null},_0x51ffa1['az']['dictionary']=Object['assign'](_0x51ffa1['az']['dictionary'],_0x1c7d13),_0x51ffa1['az']['getPluralForm']=_0x5f4d6a;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x40ab9d=>{const {az:{dictionary:_0x276d45,getPluralForm:_0x4f6e22}}={'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x52e19d=>0x1!=_0x52e19d}};_0x40ab9d['az']||={'dictionary':{},'getPluralForm':null},_0x40ab9d['az']['dictionary']=Object['assign'](_0x40ab9d['az']['dictionary'],_0x276d45),_0x40ab9d['az']['getPluralForm']=_0x4f6e22;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x17793e=>_0x17793e%0xa==0x1&&_0x17793e%0x64!=0xb?0x0:_0x17793e%0xa>=0x2&&_0x17793e%0xa<=0x4&&(_0x17793e%0x64<0xa||_0x17793e%0x64>=0x14)?0x1:0x2}};
23
+ export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0xfc293f=>_0xfc293f%0xa==0x1&&_0xfc293f%0x64!=0xb?0x0:_0xfc293f%0xa>=0x2&&_0xfc293f%0xa<=0x4&&(_0xfc293f%0x64<0xa||_0xfc293f%0x64>=0x14)?0x1:0x2}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x131f91=>{const {be:{dictionary:_0x262d90,getPluralForm:_0x3ffe8a}}={'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x109ef5=>_0x109ef5%0xa==0x1&&_0x109ef5%0x64!=0xb?0x0:_0x109ef5%0xa>=0x2&&_0x109ef5%0xa<=0x4&&(_0x109ef5%0x64<0xa||_0x109ef5%0x64>=0x14)?0x1:0x2}};_0x131f91['be']||={'dictionary':{},'getPluralForm':null},_0x131f91['be']['dictionary']=Object['assign'](_0x131f91['be']['dictionary'],_0x262d90),_0x131f91['be']['getPluralForm']=_0x3ffe8a;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x3b08eb=>{const {be:{dictionary:_0xcc46ec,getPluralForm:_0x44c3f5}}={'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x59e00f=>_0x59e00f%0xa==0x1&&_0x59e00f%0x64!=0xb?0x0:_0x59e00f%0xa>=0x2&&_0x59e00f%0xa<=0x4&&(_0x59e00f%0x64<0xa||_0x59e00f%0x64>=0x14)?0x1:0x2}};_0x3b08eb['be']||={'dictionary':{},'getPluralForm':null},_0x3b08eb['be']['dictionary']=Object['assign'](_0x3b08eb['be']['dictionary'],_0xcc46ec),_0x3b08eb['be']['getPluralForm']=_0x44c3f5;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':_0x53446a=>0x1!=_0x53446a}};
23
+ export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':_0x50feb4=>0x1!=_0x50feb4}};