@ckeditor/ckeditor5-collaboration-core 48.2.0 → 48.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 (201) hide show
  1. package/dist/augmentation.d.ts +28 -28
  2. package/dist/collaborationhistory.d.ts +16 -16
  3. package/dist/collaborationoperation.d.ts +16 -16
  4. package/dist/config.d.ts +139 -139
  5. package/dist/documentcompare.d.ts +115 -115
  6. package/dist/index-editor.css +80 -0
  7. package/dist/index.css +80 -0
  8. package/dist/index.d.ts +27 -26
  9. package/dist/index.js +1 -1
  10. package/dist/legacyerrors.d.ts +0 -4
  11. package/dist/permissions.d.ts +49 -49
  12. package/dist/suggestions/integrations/alignment.d.ts +10 -10
  13. package/dist/suggestions/integrations/basicstyles.d.ts +10 -10
  14. package/dist/suggestions/integrations/bookmark.d.ts +10 -10
  15. package/dist/suggestions/integrations/font.d.ts +10 -10
  16. package/dist/suggestions/integrations/footnotes.d.ts +10 -10
  17. package/dist/suggestions/integrations/generalhtmlsupport.d.ts +20 -20
  18. package/dist/suggestions/integrations/highlight.d.ts +10 -10
  19. package/dist/suggestions/integrations/horizontalline.d.ts +10 -10
  20. package/dist/suggestions/integrations/htmlembed.d.ts +10 -10
  21. package/dist/suggestions/integrations/image.d.ts +10 -10
  22. package/dist/suggestions/integrations/indent.d.ts +10 -10
  23. package/dist/suggestions/integrations/lineheight.d.ts +10 -10
  24. package/dist/suggestions/integrations/link.d.ts +10 -10
  25. package/dist/suggestions/integrations/list.d.ts +10 -10
  26. package/dist/suggestions/integrations/listproperties.d.ts +10 -10
  27. package/dist/suggestions/integrations/mediaembed.d.ts +10 -10
  28. package/dist/suggestions/integrations/multilevellist.d.ts +10 -10
  29. package/dist/suggestions/integrations/shiftenter.d.ts +10 -10
  30. package/dist/suggestions/integrations/table.d.ts +10 -10
  31. package/dist/suggestions/integrations/tablecellproperties.d.ts +10 -10
  32. package/dist/suggestions/integrations/tablefooters.d.ts +10 -10
  33. package/dist/suggestions/integrations/tableheadings.d.ts +10 -10
  34. package/dist/suggestions/integrations/tablelayout.d.ts +10 -10
  35. package/dist/suggestions/integrations/tableproperties.d.ts +10 -10
  36. package/dist/suggestions/integrations/uploadcare.d.ts +10 -10
  37. package/dist/suggestions/suggestionsconversion.d.ts +79 -79
  38. package/dist/suggestions/view/ariadescriptionview.d.ts +18 -18
  39. package/dist/suggestions/view/latefocusbuttonview.d.ts +29 -29
  40. package/dist/suggestionstyles.d.ts +17 -16
  41. package/dist/translations/af.js +1 -1
  42. package/dist/translations/af.umd.js +1 -1
  43. package/dist/translations/ar.js +1 -1
  44. package/dist/translations/ar.umd.js +1 -1
  45. package/dist/translations/ast.js +1 -1
  46. package/dist/translations/ast.umd.js +1 -1
  47. package/dist/translations/az.js +1 -1
  48. package/dist/translations/az.umd.js +1 -1
  49. package/dist/translations/be.js +1 -1
  50. package/dist/translations/be.umd.js +1 -1
  51. package/dist/translations/bg.js +1 -1
  52. package/dist/translations/bg.umd.js +1 -1
  53. package/dist/translations/bn.js +1 -1
  54. package/dist/translations/bn.umd.js +1 -1
  55. package/dist/translations/bs.js +1 -1
  56. package/dist/translations/bs.umd.js +1 -1
  57. package/dist/translations/ca.js +1 -1
  58. package/dist/translations/ca.umd.js +1 -1
  59. package/dist/translations/cs.js +1 -1
  60. package/dist/translations/cs.umd.js +1 -1
  61. package/dist/translations/da.js +1 -1
  62. package/dist/translations/da.umd.js +1 -1
  63. package/dist/translations/de-ch.js +1 -1
  64. package/dist/translations/de-ch.umd.js +1 -1
  65. package/dist/translations/de.js +1 -1
  66. package/dist/translations/de.umd.js +1 -1
  67. package/dist/translations/el.js +1 -1
  68. package/dist/translations/el.umd.js +1 -1
  69. package/dist/translations/en-au.js +1 -1
  70. package/dist/translations/en-au.umd.js +1 -1
  71. package/dist/translations/en-gb.js +1 -1
  72. package/dist/translations/en-gb.umd.js +1 -1
  73. package/dist/translations/en.js +1 -1
  74. package/dist/translations/en.umd.js +1 -1
  75. package/dist/translations/eo.js +1 -1
  76. package/dist/translations/eo.umd.js +1 -1
  77. package/dist/translations/es-co.js +1 -1
  78. package/dist/translations/es-co.umd.js +1 -1
  79. package/dist/translations/es.js +1 -1
  80. package/dist/translations/es.umd.js +1 -1
  81. package/dist/translations/et.js +1 -1
  82. package/dist/translations/et.umd.js +1 -1
  83. package/dist/translations/eu.js +1 -1
  84. package/dist/translations/eu.umd.js +1 -1
  85. package/dist/translations/fa.js +1 -1
  86. package/dist/translations/fa.umd.js +1 -1
  87. package/dist/translations/fi.js +1 -1
  88. package/dist/translations/fi.umd.js +1 -1
  89. package/dist/translations/fr.js +1 -1
  90. package/dist/translations/fr.umd.js +1 -1
  91. package/dist/translations/gl.js +1 -1
  92. package/dist/translations/gl.umd.js +1 -1
  93. package/dist/translations/gu.js +1 -1
  94. package/dist/translations/gu.umd.js +1 -1
  95. package/dist/translations/he.js +1 -1
  96. package/dist/translations/he.umd.js +1 -1
  97. package/dist/translations/hi.js +1 -1
  98. package/dist/translations/hi.umd.js +1 -1
  99. package/dist/translations/hr.js +1 -1
  100. package/dist/translations/hr.umd.js +1 -1
  101. package/dist/translations/hu.js +1 -1
  102. package/dist/translations/hu.umd.js +1 -1
  103. package/dist/translations/hy.js +1 -1
  104. package/dist/translations/hy.umd.js +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.js +1 -1
  108. package/dist/translations/it.umd.js +1 -1
  109. package/dist/translations/ja.js +1 -1
  110. package/dist/translations/ja.umd.js +1 -1
  111. package/dist/translations/jv.js +1 -1
  112. package/dist/translations/jv.umd.js +1 -1
  113. package/dist/translations/kk.js +1 -1
  114. package/dist/translations/kk.umd.js +1 -1
  115. package/dist/translations/km.js +1 -1
  116. package/dist/translations/km.umd.js +1 -1
  117. package/dist/translations/kn.js +1 -1
  118. package/dist/translations/kn.umd.js +1 -1
  119. package/dist/translations/ko.js +1 -1
  120. package/dist/translations/ko.umd.js +1 -1
  121. package/dist/translations/ku.js +1 -1
  122. package/dist/translations/ku.umd.js +1 -1
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.js +1 -1
  130. package/dist/translations/nb.umd.js +1 -1
  131. package/dist/translations/ne.js +1 -1
  132. package/dist/translations/ne.umd.js +1 -1
  133. package/dist/translations/nl.js +1 -1
  134. package/dist/translations/nl.umd.js +1 -1
  135. package/dist/translations/no.js +1 -1
  136. package/dist/translations/no.umd.js +1 -1
  137. package/dist/translations/oc.js +1 -1
  138. package/dist/translations/oc.umd.js +1 -1
  139. package/dist/translations/pl.js +1 -1
  140. package/dist/translations/pl.umd.js +1 -1
  141. package/dist/translations/pt-br.js +1 -1
  142. package/dist/translations/pt-br.umd.js +1 -1
  143. package/dist/translations/pt.js +1 -1
  144. package/dist/translations/pt.umd.js +1 -1
  145. package/dist/translations/ro.js +1 -1
  146. package/dist/translations/ro.umd.js +1 -1
  147. package/dist/translations/ru.js +1 -1
  148. package/dist/translations/ru.umd.js +1 -1
  149. package/dist/translations/si.js +1 -1
  150. package/dist/translations/si.umd.js +1 -1
  151. package/dist/translations/sk.js +1 -1
  152. package/dist/translations/sk.umd.js +1 -1
  153. package/dist/translations/sl.js +1 -1
  154. package/dist/translations/sl.umd.js +1 -1
  155. package/dist/translations/sq.js +1 -1
  156. package/dist/translations/sq.umd.js +1 -1
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/dist/ui/pillview.d.ts +103 -0
  188. package/dist/users/view/userview.d.ts +12 -12
  189. package/dist/users.d.ts +173 -173
  190. package/dist/utils/common-translations.d.ts +6 -6
  191. package/dist/utils/confirmmixin.d.ts +27 -17
  192. package/dist/utils/confirmview.d.ts +20 -20
  193. package/dist/utils/getdatetimeformatter.d.ts +31 -31
  194. package/dist/utils/getmarkerdomelement.d.ts +17 -17
  195. package/dist/utils/hashobject.d.ts +5 -5
  196. package/dist/utils/sanitizeeditorconfig.d.ts +11 -11
  197. package/dist/utils/setupthreadkeyboardnavigation.d.ts +31 -31
  198. package/dist/utils/suggestionmarkerutils.d.ts +13 -13
  199. package/dist/utils/surroundingmarkersdetector.d.ts +11 -11
  200. package/dist/utils/trim-html.d.ts +14 -14
  201. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ContextPlugin as _0x128cd1,Editor as _0x590f34,Plugin as _0x2da5c8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4d0000,Collection as _0x3de8de,uid as _0x299d11,toArray as _0x9194b1,first as _0x11d21b,FocusTracker as _0x1e39fc,KeystrokeHandler as _0x366945}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x53b8cd,IconView as _0x47b2fe,ButtonView as _0x1aa82c,DropdownButtonView as _0x12aeae,FocusCycler as _0x48f6c2,isViewWithFocusCycler as _0x4246bf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x37cda5,IconCheck as _0x5a79a8,IconCancel as _0x3a90ef}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x1adf9a,toWidget as _0x26d629}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x23886e}from'luxon';import{InsertOperation as _0x1286d4,MoveOperation as _0x13c6d0,ModelPosition as _0x2a9804,ModelRange as _0x474654,MarkerOperation as _0x37c519,MergeOperation as _0x8d9aa7,SplitOperation as _0x34b93e,RenameOperation as _0x51b964,AttributeOperation as _0x83065e,ModelTreeWalker as _0x1d3f52,ModelText as _0x3ab9df}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x337c1d}from'diff';class Permissions extends _0x128cd1{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x2e7c8b,_0x2694fb){let _0x52f502;if(_0x2694fb||(_0x2694fb=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x2694fb?_0x52f502=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x52f502=this['context']['editors']['find'](_0x5c078b=>_0x5c078b['config']['get']('collaboration.channelId')==_0x2694fb)),!_0x52f502)throw new _0x4d0000('permissions-set-permissions-invalid-channel-id',null);const _0x1f0f3c=_0x52f502['plugins'],_0x17ab37=_0x1f0f3c['has']('CommentsRepository')?_0x1f0f3c['get']('CommentsRepository'):void 0x0,_0x15aa36=_0x1f0f3c['has']('CommentsOnly')&&_0x1f0f3c['get']('CommentsOnly'),_0x10c009=_0x2e7c8b['includes']('document:write'),_0x42e354=_0x2e7c8b['includes']('comment:modify_all'),_0x378016=_0x2e7c8b['includes']('comment:admin'),_0x470fb4=_0x2e7c8b['includes']('comment:write'),_0x55e334=_0x470fb4||_0x378016,_0x1c71d4=_0x55e334||_0x42e354,_0x12f379=_0x10c009||_0x55e334;(_0x15aa36&&(_0x15aa36['isEnabled']=!_0x10c009&&_0x1c71d4),_0x52f502 instanceof _0x590f34)&&(!(_0x10c009||_0x1c71d4&&_0x17ab37)?_0x52f502['enableReadOnlyMode']('no-permissions'):_0x52f502['disableReadOnlyMode']('no-permissions'));if(_0x17ab37){_0x17ab37['setPermissions']({'admin':_0x378016,'modifyAll':_0x42e354,'write':_0x470fb4,'resolve':_0x12f379},_0x2694fb);const _0x2e6681=_0x52f502 instanceof _0x590f34&&_0x52f502['commands']['get']('addCommentThread');_0x2e6681&&(_0x55e334?_0x2e6681['clearForceDisabled']('noPermissions'):_0x2e6681['forceDisabled']('noPermissions'));}}}function B(_0x4f9675,_0x449e8e){const t=_0x4f9675['t'];switch(_0x449e8e){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 Users extends _0x128cd1{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Permissions];}constructor(_0x2fa921){super(_0x2fa921),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x3de8de(),this['_locale']=_0x2fa921['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:_0x3afcdb,name:_0x26db5f,..._0x2c7fe5}){if(!_0x3afcdb||'string'!=typeof _0x3afcdb)throw new _0x4d0000('users-add-invalid-id');if(this['users']['has'](_0x3afcdb))throw new _0x4d0000('users-add-duplicated-id',null,{'id':_0x3afcdb});const _0x44bd91=this['context']['config']['get']('users.getInitialsCallback'),_0x3b22ef={..._0x2c7fe5,'id':_0x3afcdb,'name':N(this['_locale'],_0x26db5f),'color':this['_getNextColor']()};_0x3b22ef['name']=N(this['_locale'],_0x3b22ef['name']);const _0x3078d7=new User(_0x3b22ef,_0x44bd91);return this['users']['add'](_0x3078d7),_0x3078d7;}['getUser'](_0x4971ec){return this['users']['get'](_0x4971ec);}['useAnonymousUser'](){const _0x52a51d=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x52a51d);}['defineMe'](_0x299822){if(this['_myId'])throw new _0x4d0000('users-me-already-defined',null);const _0x4fc05e=this['getUser'](_0x299822);if(!_0x4fc05e)throw new _0x4d0000('users-me-missing-user',null);this['_myId']=_0x299822,_0x4fc05e['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x3605db=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x3605db&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x1ff578=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x1ff578,'name':B(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class User{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x456b73,_0x1adaf5){this['id']=_0x456b73['id'],this['color']=_0x456b73['color'],this['name']=_0x456b73['name'],this['initials']=_0x1adaf5?_0x1adaf5(this['name']):this['_computeInitials'](),this['avatar']=_0x456b73['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5b4d0c=this['name']['split']('\x20')['filter'](_0x1af347=>/^[\p{Letter}]/u['test'](_0x1af347));return 0x1===_0x5b4d0c['length']?this['_getInitial'](_0x5b4d0c[0x0]):0x0===_0x5b4d0c['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5b4d0c[0x0])+this['_getInitial'](_0x5b4d0c[_0x5b4d0c['length']-0x1]);}['_getInitial'](_0x2437dc){return String['fromCodePoint'](_0x2437dc['codePointAt'](0x0))['toUpperCase']();}}function N(_0x4bceee,_0x9a3279=''){return''==(_0x9a3279=_0x9a3279['trim']())?B(_0x4bceee,'Anonymous'):_0x9a3279;}class CollaborationUserColor{['_id'];constructor(_0x5328a4){this['_id']=_0x5328a4;}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'];}['getColorVariable'](){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}['getColorAlphaVariable'](){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}}class UserView extends _0x53b8cd{['name'];['notificationView'];constructor(_0x56d8e0,_0x464f52,_0x3a48e2){super(_0x56d8e0),this['name']=_0x464f52['name'],this['notificationView']=null;const _0x298351=['ck','ck-user'],_0x1fe9d0=['ck','ck-user__img'];if(_0x464f52['isAnonymous']&&_0x1fe9d0['push']('ck-user__anonymous'),!_0x464f52['isAnonymous']&&_0x464f52['isMe']&&_0x298351['push']('ck-user_me'),_0x464f52['avatar']&&_0x1fe9d0['push']('ck-user__avatar'),_0x3a48e2){const _0x85bc7b=new _0x47b2fe();_0x85bc7b['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x85bc7b['content']=_0x37cda5,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3a48e2},'children':[_0x85bc7b]};}const _0x407f07=[{'tag':'div','attributes':{'class':_0x1fe9d0,'style':{'background-image':_0x464f52['avatar']?'url(\x27'+_0x464f52['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x464f52['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x464f52['name']},'children':[{'text':_0x464f52['initials']}]}];this['notificationView']&&_0x407f07['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x298351,'data-user-id':_0x464f52['id']},'children':_0x407f07});}}class AriaDescriptionView extends _0x53b8cd{['id'];constructor(_0x24da43,_0x1bd349){super(_0x24da43),this['id']='ck-aria-description-'+_0x299d11(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x1bd349}]});}}class LateFocusButtonView extends _0x1aa82c{['render'](){super['render'](),H(this);}}class LateFocusDropdownButtonView extends _0x12aeae{['render'](){super['render'](),H(this);}}function H(_0x56a2f){_0x56a2f['listenTo'](_0x56a2f['element'],'mousedown',(_0x86c53b,_0x373e2a)=>{_0x373e2a['stopPropagation'](),_0x373e2a['preventDefault']();}),_0x56a2f['listenTo'](_0x56a2f['element'],'mouseup',()=>{_0x56a2f['element']['focus']();});}function O(_0x4b3560){const _0x51669d=_0x4b3560['split'](':');return{'group':_0x51669d[0x0],'type':_0x51669d[0x1],'subType':_0x51669d['length']>=0x5?_0x51669d[0x2]:null,'id':_0x51669d['length']<0x5?_0x51669d[0x2]:_0x51669d[0x3],'authorId':_0x51669d['length']<0x5?_0x51669d[0x3]:_0x51669d[0x4],'markerCount':0x6==_0x51669d['length']?_0x51669d[0x5]:null};}function U(_0x4a7414,_0x16ed8d){const _0x181945=_0x4a7414['end']['nodeBefore'];if(_0x181945&&_0x181945['is']('element')&&_0x16ed8d['schema']['isBlock'](_0x181945)&&!_0x16ed8d['schema']['isObject'](_0x181945)){const _0x19402e=_0x16ed8d['createPositionAt'](_0x181945,'end');return _0x16ed8d['createRange'](_0x4a7414['start'],_0x19402e);}return _0x4a7414;}class SuggestionsConversionAlignment extends _0x2da5c8{['afterInit'](){const _0x52dc21=this['editor'];if(!_0x52dc21['plugins']['has']('AlignmentEditing'))return;_0x52dc21['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const $=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends _0x2da5c8{['afterInit'](){const _0x56c3fe=this['editor'],_0x23cc6b=_0x56c3fe['plugins']['get']('SuggestionsConversion');for(const _0x47635e of $){if(!_0x56c3fe['plugins']['has'](_0x47635e))continue;const _0x3ed336=_0x47635e['slice'](0x0,-0x7)['toLowerCase']();_0x23cc6b['registerInlineAttribute'](_0x3ed336);}}}class SuggestionsConversionBookmark extends _0x2da5c8{['afterInit'](){const _0x517481=this['editor'],_0x30b948=_0x517481['plugins']['get']('SuggestionsConversion');_0x517481['plugins']['has']('BookmarkEditing')&&_0x30b948['registerBlockAttribute']('bookmarkId');}}const F=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class SuggestionsConversionFont extends _0x2da5c8{['afterInit'](){const _0x521069=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x411923,commandName:_0x13f458}of F)this['editor']['plugins']['has'](_0x411923)&&_0x521069['registerInlineAttribute'](_0x13f458);}}class SuggestionsConversionFootnotes extends _0x2da5c8{['afterInit'](){const {editor:_0x1cb622}=this;if(!_0x1cb622['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x579bae=_0x1cb622['plugins']['get']('SuggestionsConversion');_0x579bae['registerBlockAttribute']('footnotesListStyle'),_0x579bae['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionGeneralHtmlSupport extends _0x2da5c8{['afterInit'](){const _0x4c293a=this['editor'];if(!_0x4c293a['plugins']['has']('GeneralHtmlSupport')||!_0x4c293a['plugins']['has']('DataSchema'))return;const _0x9b44ad=_0x4c293a['plugins']['get']('SuggestionsConversion'),_0x32d183=_0x4c293a['plugins']['get']('GeneralHtmlSupport'),_0x299989=_0x4c293a['plugins']['get']('DataSchema');for(const _0x3ecb2c of _0x299989['getDefinitionsForView'](/.*/,!0x1)){const _0x3b4cf0=_0x32d183['getGhsAttributeNameForElement'](_0x3ecb2c['view']);_0x3ecb2c['isInline']&&!_0x3ecb2c['isObject']&&!('appliesToBlock'in _0x3ecb2c&&_0x3ecb2c['appliesToBlock'])?_0x9b44ad['registerInlineAttribute'](_0x3b4cf0):_0x9b44ad['registerBlockAttribute'](_0x3b4cf0);}}}class SuggestionsConversionHighlight extends _0x2da5c8{['afterInit'](){const _0x4acacf=this['editor'];if(!_0x4acacf['plugins']['has']('HighlightEditing'))return;_0x4acacf['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends _0x2da5c8{['afterInit'](){const _0x3aec7a=this['editor'];if(!_0x3aec7a['plugins']['has']('HtmlEmbed'))return;_0x3aec7a['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends _0x2da5c8{['afterInit'](){const _0x4c23b2=this['editor'];if(!_0x4c23b2['plugins']['has']('ImageEditing'))return;const _0x21d2d8=_0x4c23b2['plugins']['get']('SuggestionsConversion');_0x21d2d8['registerBlockAttribute']('src'),_0x4c23b2['plugins']['has']('ImageResize')&&_0x21d2d8['registerBlockAttribute']('resizedWidth'),_0x4c23b2['plugins']['has']('ImageTextAlternativeEditing')&&_0x21d2d8['registerBlockAttribute']('alt'),_0x4c23b2['plugins']['has']('PictureEditing')&&_0x21d2d8['registerBlockAttribute']('sources'),_0x4c23b2['plugins']['has']('ImageSizeAttributes')&&(_0x21d2d8['registerBlockAttribute']('width'),_0x21d2d8['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends _0x2da5c8{['afterInit'](){const _0x432778=this['editor'],_0x46a13c=_0x432778['plugins']['get']('SuggestionsConversion');_0x432778['plugins']['has']('IndentBlock')&&(_0x46a13c['registerBlockAttribute']('blockIndent'),_0x432778['plugins']['has']('ListEditing')&&(_0x46a13c['registerBlockAttribute']('blockIndentList'),_0x46a13c['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends _0x2da5c8{['afterInit'](){const _0x5411f7=this['editor'];if(!_0x5411f7['plugins']['has']('LineHeight'))return;_0x5411f7['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends _0x2da5c8{['afterInit'](){const _0x1c3669=this['editor'];if(!_0x1c3669['plugins']['has']('LinkEditing'))return;const _0x3e473c=_0x1c3669['plugins']['get']('SuggestionsConversion'),_0x24b1bd=_0x1c3669['commands']['get']('link');_0x3e473c['registerInlineAttribute']('linkHref');for(const _0x2ebbda of _0x24b1bd['manualDecorators'])_0x3e473c['registerInlineAttribute'](_0x2ebbda['id']);}}class SuggestionsConversionList extends _0x2da5c8{['afterInit'](){const _0x43d329=this['editor'];if(!_0x43d329['plugins']['has']('ListEditing'))return;const _0x25df44=_0x43d329['plugins']['get']('SuggestionsConversion'),_0x197771=_0x43d329['plugins']['has']('TodoListEditing');_0x25df44['registerBlockAttribute']('listItemId'),_0x25df44['registerBlockAttribute']('listType'),_0x25df44['registerBlockAttribute']('listIndent'),_0x197771&&_0x25df44['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends _0x2da5c8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x22051b=this['editor']['config']['get']('list.properties'),_0x2d35ad=this['editor']['plugins']['get']('SuggestionsConversion');_0x22051b['styles']&&_0x2d35ad['registerBlockAttribute']('listStyle'),_0x22051b['reversed']&&_0x2d35ad['registerBlockAttribute']('listReversed'),_0x22051b['startIndex']&&_0x2d35ad['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends _0x2da5c8{['afterInit'](){const _0x97b62=this['editor'],_0xb6792f=_0x97b62['plugins']['get']('SuggestionsConversion');_0x97b62['plugins']['has']('MultiLevelList')&&_0xb6792f['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionTableHeadings extends _0x2da5c8{['afterInit'](){const _0x25c83f=this['editor'];if(!_0x25c83f['plugins']['has']('TableEditing'))return;const _0x1c6329=_0x25c83f['plugins']['get']('SuggestionsConversion');_0x1c6329['registerBlockAttribute']('headingRows'),_0x1c6329['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends _0x2da5c8{['afterInit'](){const {plugins:_0x51439c}=this['editor'];if(!_0x51439c['has']('TablePropertiesEditing'))return;const _0x310c1c=_0x51439c['get']('SuggestionsConversion'),_0x268f7d=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x1ef27c of _0x268f7d)_0x310c1c['registerBlockAttribute'](_0x1ef27c);}}class SuggestionsConversionTableLayout extends _0x2da5c8{['afterInit'](){const _0x3dd9cc=this['editor'],_0x2ef5a0=_0x3dd9cc['plugins']['get']('SuggestionsConversion');_0x3dd9cc['plugins']['has']('TableLayout')&&_0x2ef5a0['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends _0x2da5c8{['afterInit'](){const _0x29ec04=this['editor'],_0x4b9f56=this['editor']['plugins']['get']('SuggestionsConversion');_0x29ec04['plugins']['has']('Uploadcare')&&_0x29ec04['plugins']['has']('UploadcareImageEdit')&&_0x4b9f56['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends _0x2da5c8{['afterInit'](){const _0x473316=this['editor'];if(!_0x473316['plugins']['has']('ShiftEnter'))return;const _0x1cd321=_0x473316['plugins']['get']('SuggestionsConversion'),_0xc5aee9=(_0x57a2d7,_0x42f821,_0x2c3090,_0x53ec50)=>{if(_0x53ec50&&!_0x2c3090['options']['showSuggestionHighlights'])return;if(!_0x2c3090['consumable']['test'](_0x42f821['markerRange'],_0x57a2d7['name']))return;const _0x5f503a=_0x473316['model'];for(const _0x401e42 of _0x42f821['markerRange']['getItems']()){if(!_0x401e42['is']('element','softBreak'))continue;const _0x13230a='deletion'==_0x42f821['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4ac3f4,authorId:_0x31a90a}=O(_0x42f821['markerName']),_0x4abad7=_0x2c3090['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13230a,'data-suggestion':_0x4ac3f4,'data-author-id':_0x31a90a}),_0x2c9512=_0x2c3090['mapper']['toViewPosition'](_0x5f503a['createPositionBefore'](_0x401e42));!_0x53ec50&&_0x1cd321['_activeMarkers']['includes'](_0x42f821['markerName'])&&_0x2c3090['writer']['addClass']('ck-suggestion-marker--active',_0x4abad7),_0x2c3090['writer']['insert'](_0x2c9512,_0x4abad7),_0x2c3090['mapper']['bindElementToMarker'](_0x4abad7,_0x42f821['markerName']);}};_0x473316['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d503f,_0x6420f7,_0x4f955d)=>{_0xc5aee9(_0x5d503f,_0x6420f7,_0x4f955d,!0x1);},{'priority':'high'}),_0x473316['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x141371,_0x29a6c4,_0x303639)=>{_0xc5aee9(_0x141371,_0x29a6c4,_0x303639,!0x1);},{'priority':'high'}),_0x473316['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x11dcfb,_0x21f26f,_0x265dea)=>{_0xc5aee9(_0x11dcfb,_0x21f26f,_0x265dea,!0x0);},{'priority':'high'}),_0x473316['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4d321d,_0x41f381,_0x1ae5f5)=>{_0xc5aee9(_0x4d321d,_0x41f381,_0x1ae5f5,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends _0x2da5c8{['afterInit'](){const _0x2f5f60=this['editor'];if(!_0x2f5f60['plugins']['has']('MediaEmbedEditing'))return;const _0x228d43=_0x2f5f60['plugins']['get']('SuggestionsConversion');_0x2f5f60['plugins']['has']('MediaEmbedResizeEditing')&&_0x228d43['registerBlockAttribute']('resizedWidth'),_0x2f5f60['plugins']['has']('MediaEmbedStyleEditing')&&_0x228d43['registerBlockAttribute']('mediaStyle'),_0x2f5f60['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x358bc1,{writer:_0x4b61a6,options:_0x4f374d})=>{if(_0x4f374d['showSuggestionHighlights'])return _0x4b61a6['createEmptyElement']('div');},'converterPriority':'high'}),_0x2f5f60['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2e2354,_0x4225f2,_0x4d8837)=>{_0x4d8837['options']['showSuggestionHighlights']&&_0x2e2354['stop']();},{'priority':'high'});}}class SuggestionsConversionTable extends _0x2da5c8{['afterInit'](){const _0x29dafc=this['editor'];if(!_0x29dafc['plugins']['has']('Table'))return;_0x29dafc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4fb572,_0x5caf06,_0x273ad7)=>{((_0x590a7d,_0x1aee44,_0x727311)=>{if(!_0x727311['options']['showSuggestionHighlights'])return;const _0x20306d=_0x1aee44['item'];if(!_0x20306d||!_0x20306d['is']('element','tableCell'))return;const _0x4894e3=_0x727311['mapper']['toViewElement'](_0x20306d);if(_0x4894e3){const {id:_0x581377,authorId:_0x49546e}=O(_0x1aee44['markerName']);_0x1adf9a(_0x4894e3,_0x727311['writer'],(_0x1c03ab,_0x1f60a4,_0x366062)=>{_0x366062['addClass'](_0x9194b1(_0x1f60a4['classes']),_0x1c03ab),_0x366062['setAttribute']('data-suggestion',_0x581377,_0x1c03ab),_0x366062['setAttribute']('data-author-id',_0x49546e,_0x1c03ab);});}})(0x0,_0x5caf06,_0x273ad7);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends _0x2da5c8{['afterInit'](){const _0x2a5d77=this['editor'];_0x2a5d77['plugins']['has']('HorizontalLineEditing')&&_0x2a5d77['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x535e24,{writer:_0x183b3e,options:_0x559690})=>{if(!_0x559690['showSuggestionHighlights'])return null;const _0x133618=_0x183b3e['createContainerElement']('div'),_0x199bba=_0x183b3e['createEmptyElement']('hr');return _0x183b3e['addClass']('ck-horizontal-line',_0x133618),_0x183b3e['insert'](_0x183b3e['createPositionAt'](_0x133618,0x0),_0x199bba),_0x133618;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends _0x2da5c8{['afterInit'](){const {plugins:_0x1e59a3,model:_0x406891}=this['editor'];if(!_0x1e59a3['has']('TableCellPropertiesEditing'))return;const _0x369b91=_0x1e59a3['get']('SuggestionsConversion'),_0x111313=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x3c8ce3 of _0x111313)_0x369b91['registerBlockAttribute'](_0x3c8ce3);_0x406891['schema']['checkAttribute']('tableCell','tableCellType')&&_0x369b91['registerBlockAttribute']('tableCellType');}}class SuggestionsConversionTableFooters extends _0x2da5c8{['afterInit'](){const _0x46421e=this['editor'];if(!_0x46421e['plugins']['has']('TableEditing')||!_0x46421e['config']['get']('table.enableFooters'))return;_0x46421e['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class SuggestionsConversion extends _0x2da5c8{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[SuggestionsConversionAlignment,SuggestionsConversionBasicStyles,SuggestionsConversionBookmark,SuggestionsConversionFont,SuggestionsConversionFootnotes,SuggestionsConversionGeneralHtmlSupport,SuggestionsConversionHighlight,SuggestionsConversionHorizontalLine,SuggestionsConversionHtmlEmbed,SuggestionsConversionImage,SuggestionsConversionIndent,SuggestionsConversionLineHeight,SuggestionsConversionLink,SuggestionsConversionList,SuggestionsConversionListProperties,SuggestionsConversionMediaEmbed,SuggestionsConversionMultiLevelList,SuggestionsConversionShiftEnter,SuggestionsConversionTable,SuggestionsConversionTableHeadings,SuggestionsConversionTableFooters,SuggestionsConversionTableLayout,SuggestionsConversionTableCellProperties,SuggestionsConversionTableProperties,SuggestionsConversionUploadcare];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3d2f28=this['editor'],_0x32c9fe=(_0xa710f7,_0x324bbf,_0xda1bbc)=>{const {id:_0x57aaf3,authorId:_0x3a3897,type:_0x1ac57e,subType:_0x27cb8b}=O(_0xa710f7['markerName']),_0x55e25a=['ck-suggestion-marker',this['_getClassName'](_0x1ac57e,_0x27cb8b)];let _0x2ebc6e=0xbb8;return!_0xda1bbc&&(this['_activeMarkers']['includes'](_0xa710f7['markerName'])&&(_0x55e25a['push']('ck-suggestion-marker--active'),_0x2ebc6e=0xbc2)),('deletion'==_0x1ac57e&&(_0x2ebc6e+=0x5),{'classes':_0x55e25a,'attributes':{'data-suggestion':_0x57aaf3,'data-author-id':_0x3a3897},'priority':_0x2ebc6e});};_0x3d2f28['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2556da,_0x1b00b4)=>_0x32c9fe(_0x2556da,0x0,!0x1)}),_0x3d2f28['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x32c9e7,_0x4ddf6a)=>_0x32c9fe(_0x32c9e7,0x0,!0x0)}),_0x3d2f28['conversion']['for']('dataDowncast')['add'](_0x3a9bee=>{_0x3a9bee['on']('addMarker:suggestion',(_0x41f6cc,_0x39d994,_0x43830c)=>{if(!_0x43830c['options']['showSuggestionHighlights'])return;const _0x443929=_0x39d994['item'];if(!_0x443929)return;const _0x5c291c=_0x43830c['mapper']['toViewElement'](_0x443929);_0x3d2f28['model']['schema']['isObject'](_0x443929)&&_0x5c291c&&!_0x5c291c['getCustomProperty']('widget')&&_0x5c291c['is']('containerElement')&&_0x26d629(_0x5c291c,_0x43830c['writer']);},{'priority':'high'});});const _0x42ebef=(_0x13f6af,_0x478b0a,_0x2f1e95,_0x237703,_0x52d024)=>{if(_0x237703&&!_0x2f1e95['options']['showSuggestionHighlights'])return;if(!_0x478b0a['item'])return;const {id:_0x5029e1,authorId:_0x3e9e5c,subType:_0x251638}=O(_0x478b0a['markerName']);if(_0x52d024){const _0x3fd3ba=_0x251638['split']('|')[0x0];if(!this['isBlockAttribute'](_0x3fd3ba))return;}if(_0x478b0a['item']['is']('selection'))return void _0x2f1e95['consumable']['consume'](_0x478b0a['item'],_0x13f6af['name']);const _0x199721=_0x2f1e95['mapper']['toViewElement'](_0x478b0a['item']);if(_0x478b0a['item']['is']('element')&&_0x3d2f28['model']['schema']['isBlock'](_0x478b0a['item'])&&!_0x199721['getCustomProperty']('addHighlight')){_0x2f1e95['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x199721),_0x2f1e95['writer']['setAttribute']('data-suggestion',_0x5029e1,_0x199721),_0x2f1e95['writer']['setAttribute']('data-author-id',_0x3e9e5c,_0x199721),_0x2f1e95['mapper']['bindElementToMarker'](_0x199721,_0x478b0a['markerName']),_0x237703||(this['_activeMarkers']['includes'](_0x478b0a['markerName'])?_0x2f1e95['writer']['addClass']('ck-suggestion-marker--active',_0x199721):_0x2f1e95['writer']['removeClass']('ck-suggestion-marker--active',_0x199721));for(const _0x244633 of _0x3d2f28['model']['createRangeIn'](_0x478b0a['item'])['getItems']())_0x2f1e95['consumable']['consume'](_0x244633,_0x13f6af['name']);_0x2f1e95['consumable']['consume'](_0x478b0a['item'],_0x13f6af['name']);}},_0x411f87=(_0x4d9819,_0x57c2a1,_0x4a8ae4,_0x248a73)=>{const _0x42d809=_0x4a8ae4['mapper']['markerNameToElements'](_0x57c2a1['markerName']);if(_0x42d809){if(_0x248a73){const {subType:_0x22b040}=O(_0x57c2a1['markerName']),_0x1059b0=_0x22b040['split']('|')[0x0];if(!this['isBlockAttribute'](_0x1059b0))return;}for(const _0x456e46 of _0x42d809)_0x456e46['getCustomProperty']('addHighlight')||(_0x4a8ae4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x456e46),_0x4a8ae4['writer']['removeAttribute']('data-suggestion',_0x456e46),_0x4a8ae4['writer']['removeAttribute']('data-author-id',_0x456e46),_0x4a8ae4['mapper']['unbindElementFromMarkerName'](_0x456e46,_0x57c2a1['markerName']));}};_0x3d2f28['conversion']['for']('editingDowncast')['add'](_0x453fa3=>{_0x453fa3['on']('addMarker:suggestion:formatBlock',(_0x60181b,_0x35d821,_0x54e905)=>{_0x42ebef(_0x60181b,_0x35d821,_0x54e905,!0x1,!0x1);},{'priority':'high'});}),_0x3d2f28['conversion']['for']('editingDowncast')['add'](_0x177da9=>{_0x177da9['on']('addMarker:suggestion:attribute',(_0xfd70aa,_0xc0e220,_0x3098a5)=>{_0x42ebef(_0xfd70aa,_0xc0e220,_0x3098a5,!0x1,!0x0);},{'priority':'high'});}),_0x3d2f28['conversion']['for']('editingDowncast')['add'](_0x584e49=>{_0x584e49['on']('removeMarker:suggestion:formatBlock',(_0x19b1b5,_0x37c453,_0x50010b)=>{_0x411f87(0x0,_0x37c453,_0x50010b,!0x1);},{'priority':'high'});}),_0x3d2f28['conversion']['for']('editingDowncast')['add'](_0x2ca18d=>{_0x2ca18d['on']('removeMarker:suggestion:attribute',(_0x1f098d,_0x19d117,_0x303ff0)=>{_0x411f87(0x0,_0x19d117,_0x303ff0,!0x0);},{'priority':'high'});}),_0x3d2f28['conversion']['for']('dataDowncast')['add'](_0x4275b1=>{_0x4275b1['on']('addMarker:suggestion:formatBlock',(_0x298494,_0x22066,_0x573ec5)=>{_0x42ebef(_0x298494,_0x22066,_0x573ec5,!0x0,!0x1);},{'priority':'highest'});}),_0x3d2f28['conversion']['for']('dataDowncast')['add'](_0xa33bf3=>{_0xa33bf3['on']('addMarker:suggestion:attribute',(_0x490ce0,_0x42236c,_0x3f27d0)=>{_0x42ebef(_0x490ce0,_0x42236c,_0x3f27d0,!0x0,!0x0);},{'priority':'highest'});}),_0x3d2f28['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e8e56,_0xac1333)=>_0xac1333['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e8e56['substr'](0xb)}});const _0x49096d=(_0x2220c1,_0x3c2589,_0x35567e,_0x951439,_0x109875)=>{if(_0x951439&&!_0x35567e['options']['showSuggestionHighlights'])return;if(!_0x35567e['consumable']['test'](_0x3c2589['markerRange'],_0x2220c1['name']))return;const _0x4d323f=this['_activeMarkers'],_0x5b20fd=_0x3c2589['markerRange']['getWalker'](),_0x19b63a=_0x3c2589['markerRange']['start'],_0x5c6bb9=_0x3d2f28['model']['schema'];let _0x3f26c2=null,_0x458188=null,_0x30ace7=!0x1,_0x27d1ff=!0x1;for(const _0x89bfe4 of _0x5b20fd){const _0x3588a7=_0x89bfe4['item'];_0x30ace7=_0x30ace7||_0x5c6bb9['isContent'](_0x3588a7);const _0x1ba419=_0x35567e['mapper']['toViewElement'](_0x3588a7);if(_0x1ba419&&_0x1ba419['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x89bfe4['type']&&(_0x5c6bb9['isBlock'](_0x3588a7)&&!_0x5c6bb9['isLimit'](_0x3588a7)&&(_0x3588a7['nextSibling']||_0x19b63a['isAtEnd']?_0x3f26c2&&_0x3f26c2['parent']==_0x3588a7||(_0x3f26c2=_0x3588a7,_0xd11540(_0x89bfe4['previousPosition']),_0x27d1ff=!0x0):_0x458188=_0x458188||_0x89bfe4['previousPosition']));}function _0xd11540(_0x9fdd1b){const {id:_0x5d1d59,authorId:_0x5b54b4}=O(_0x3c2589['markerName']),_0x2537e1=_0x35567e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x109875,'data-suggestion':_0x5d1d59,'data-author-id':_0x5b54b4}),_0x4ea1fa=_0x35567e['mapper']['toViewPosition'](_0x9fdd1b);!_0x951439&&_0x4d323f['includes'](_0x3c2589['markerName'])&&_0x35567e['writer']['addClass']('ck-suggestion-marker--active',_0x2537e1),_0x35567e['writer']['insert'](_0x4ea1fa,_0x2537e1),_0x35567e['mapper']['bindElementToMarker'](_0x2537e1,_0x3c2589['markerName']);}_0x30ace7||_0x27d1ff||!_0x458188||_0xd11540(_0x458188);};_0x3d2f28['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x15c44d,_0x23f1c3,_0x9e8b4b)=>{_0x49096d(_0x15c44d,_0x23f1c3,_0x9e8b4b,!0x1,'merge');},{'priority':'high'}),_0x3d2f28['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e58d9,_0x5abd1a,_0x13e235)=>{_0x49096d(_0x3e58d9,_0x5abd1a,_0x13e235,!0x0,'merge');},{'priority':'high'}),_0x3d2f28['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13ea36,_0x363ad9,_0x4dbb5c)=>{_0x49096d(_0x13ea36,_0x363ad9,_0x4dbb5c,!0x1,'split');},{'priority':'high'}),_0x3d2f28['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46742a,_0x2860bd,_0x100c9f)=>{_0x49096d(_0x46742a,_0x2860bd,_0x100c9f,!0x0,'split');},{'priority':'high'}),_0x3d2f28['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x321edb,_0x25d305,_0x2e0cfa)=>{((_0xec7dc1,_0x4e5c7a,_0x4e8822)=>{const _0x3b27c7=_0x4e8822['mapper']['markerNameToElements'](_0x4e5c7a['markerName']);if(_0x3b27c7){for(const _0x6eb4a6 of _0x3b27c7)(_0x6eb4a6['hasClass']('ck-suggestion-marker-split')||_0x6eb4a6['hasClass']('ck-suggestion-marker-merge'))&&(_0x4e8822['mapper']['unbindElementFromMarkerName'](_0x6eb4a6,_0x4e5c7a['markerName']),_0x4e8822['writer']['remove'](_0x6eb4a6));}})(0x0,_0x25d305,_0x2e0cfa);},{'priority':'high'});const _0x595a9f=(_0x23a89d,_0xcbd85a,_0x1b0879,_0x421485)=>{if(_0x421485&&!_0x1b0879['options']['showSuggestionHighlights'])return;const _0x2f4b47=_0xcbd85a['markerRange']['start'],_0x49dcdc=_0xcbd85a['markerRange']['end'],_0xd4e7dd=_0x3d2f28['model']['schema'];if(!_0x2f4b47['isTouching'](_0x49dcdc)||!_0x2f4b47['nodeAfter'])return;const _0x195598=_0x2f4b47['nodeAfter'];if(_0xd4e7dd['isBlock'](_0x195598)&&!_0xd4e7dd['isLimit'](_0x195598)&&_0xd4e7dd['checkChild'](_0x195598,'$text')){if(!_0x1b0879['consumable']['consume'](_0xcbd85a['markerRange'],_0x23a89d['name']))return;const {id:_0x368331,authorId:_0x4145a2}=O(_0xcbd85a['markerName']),_0x42af68=_0x1b0879['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x368331,'data-author-id':_0x4145a2}),_0xfc2b60=_0x1b0879['mapper']['toViewPosition'](_0x49dcdc);!_0x421485&&this['_activeMarkers']['includes'](_0xcbd85a['markerName'])&&_0x1b0879['writer']['addClass']('ck-suggestion-marker--active',_0x42af68),_0x1b0879['writer']['insert'](_0xfc2b60,_0x42af68),_0x1b0879['mapper']['bindElementToMarker'](_0x42af68,_0xcbd85a['markerName']);}};_0x3d2f28['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xe820ca,_0x1872af,_0x4f5864)=>{_0x595a9f(_0xe820ca,_0x1872af,_0x4f5864,!0x1);},{'priority':'high'}),_0x3d2f28['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4075c3,_0x593547,_0x2f4ac5)=>{_0x595a9f(_0x4075c3,_0x593547,_0x2f4ac5,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x18e21a,_0x9ee5a1,_0x45eeee)=>{this['_activeMarkers']=_0x45eeee['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x141dbb){this['_blockAttributeKeys']['add'](_0x141dbb);}['registerInlineAttribute'](_0x53f2c8){this['_inlineAttributeKeys']['add'](_0x53f2c8);}['isBlockAttribute'](_0x471ecb){return this['_blockAttributeKeys']['has'](_0x471ecb);}['isInlineAttribute'](_0x3a3cfb){return this['_inlineAttributeKeys']['has'](_0x3a3cfb);}['isRegisteredAttribute'](_0x1f76fe){return this['isInlineAttribute'](_0x1f76fe)||this['isBlockAttribute'](_0x1f76fe);}['_getClassName'](_0xca3195,_0x4d48e4){if('attribute'!=_0xca3195)return'ck-suggestion-marker-'+_0xca3195;const _0x46eb84=_0x4d48e4['split']('|')[0x0];return this['isBlockAttribute'](_0x46eb84)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function z(_0x40cdbd={},_0x38c108){if(void 0x0!==_0x40cdbd['dateTimeFormat']&&'function'!=typeof _0x40cdbd['dateTimeFormat'])throw new _0x4d0000('invalid-date-time-format');return _0x1a170c=>{const _0x5e553d='string'==typeof _0x1a170c?_0x23886e['fromISO'](_0x1a170c):_0x23886e['fromJSDate'](_0x1a170c),_0x79844c=_0x23886e['now'](),_0x53a6f0=Math['floor'](_0x79844c['diff'](_0x5e553d,'days')['days']);return _0x40cdbd['dateTimeFormat']?_0x40cdbd['dateTimeFormat'](_0x5e553d['toJSDate'](),_0x38c108&&_0x38c108['t']?_0x38c108['t']:void 0x0):0x0===_0x53a6f0?_0x38c108?B(_0x38c108,'Today')+'\x20'+_0x5e553d['toFormat']('hh:mma'):_0x5e553d['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x53a6f0?_0x38c108?B(_0x38c108,'Yesterday')+'\x20'+_0x5e553d['toFormat']('hh:mma'):_0x5e553d['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x53a6f0<0x7?_0x38c108?B(_0x38c108,'Last')+'\x20'+B(_0x38c108,_0x5e553d['toFormat']('EEEE'))+'\x20'+_0x5e553d['toFormat']('hh:mma'):_0x5e553d['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x5e553d['toFormat']('LL-dd-yyyy\x20hh:mma');};}function R(_0x39f3e0,_0x3b0a25){const _0x19b39f=_0x39f3e0['mapper']['markerNameToElements'](_0x3b0a25['name']);if(!_0x19b39f)return null;const _0x51982a=_0x11d21b(_0x19b39f['values']());return _0x39f3e0['view']['domConverter']['mapViewToDom'](_0x51982a)||null;}function W(_0x55dd1d,_0x283189){if(0x0===_0x283189['length'])return null;const _0x1e3dd3=[],_0x138e90=_0x55dd1d['view']['domConverter'];for(const _0x2f66d6 of _0x283189){const _0x376589=_0x55dd1d['mapper']['markerNameToElements'](_0x2f66d6['name']);if(!_0x376589)continue;const _0x12a431=Array['from'](_0x376589)['map'](_0x13e17f=>_0x138e90['mapViewToDom'](_0x13e17f))['filter'](_0x41152e=>!!_0x41152e);_0x1e3dd3['push'](..._0x12a431);}if(0x0===_0x1e3dd3['length'])return null;const _0x564827=[];for(const _0x1ddd94 of _0x1e3dd3){const _0x39b969=_0x1ddd94['getClientRects']()['item'](0x0);_0x39b969&&_0x564827['push']({'x':_0x39b969['x'],'y':_0x39b969['y'],'domElement':_0x1ddd94});}return 0x0===_0x564827['length']?null:(_0x564827['sort']((_0x337ee8,_0x2ecaf6)=>_0x337ee8['y']-_0x2ecaf6['y']||_0x337ee8['x']-_0x2ecaf6['x']),_0x564827['map'](_0x2dbd05=>_0x2dbd05['domElement']));}function j(_0x13ef0e,{limit:_0x565db2,suffix:_0x51d679='...'}){const _0x2652ec=[];let _0x393a7d=0x0;const _0x3edc18=_0x13ef0e['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x21832e=0x0;_0x21832e<_0x3edc18['length'];_0x21832e++){let _0x540687=_0x3edc18[_0x21832e];const _0xb652ca=Y(_0x540687);if(_0x540687['startsWith']('<')){if(_0x393a7d>=_0x565db2){const _0x283fbc=_0x540687['match'](/[a-zA-Z]+/);if(!_0x283fbc){_0x3edc18[_0x21832e]='';continue;}const _0x314461=_0x283fbc[0x0];_0x540687['startsWith']('</')?(_0x2652ec['length']&&(_0x540687=''),_0x2652ec['pop']()):(_0x2652ec['push'](_0x314461),_0x540687='');}}else{if(_0x393a7d>=_0x565db2)_0x540687='';else{if(_0x393a7d+_0xb652ca['length']>=_0x565db2){let _0x1f519a=_0x565db2-_0x393a7d;if('\x20'===_0xb652ca[_0x1f519a-0x1])_0x1f519a--;else{const _0x47aa37=_0xb652ca['slice'](_0x1f519a)['indexOf']('\x20');-0x1!==_0x47aa37?_0x1f519a+=_0x47aa37:_0x1f519a=_0x540687['length'];}_0x540687=_0xb652ca['slice'](0x0,_0x1f519a)['join']('')+_0x51d679,_0x393a7d=_0x565db2;}else _0x393a7d+=_0xb652ca['length'];}}_0x3edc18[_0x21832e]=_0x540687;}return _0x3edc18['join']('\x0a')['replace'](/\n/g,'');}function Y(_0x4e8f82){const _0xe21f29=[];for(let _0x495b0f=0x0;_0x495b0f<_0x4e8f82['length'];_0x495b0f++){const _0x1e2681=_0x4e8f82['substring'](_0x495b0f)['match'](/^&[a-z0-9#]+;/);if(_0x1e2681){const _0x420b1c=_0x1e2681[0x0];_0xe21f29['push'](_0x420b1c),_0x495b0f+=_0x420b1c['length']-0x1;}else _0xe21f29['push'](_0x4e8f82[_0x495b0f]);}return _0xe21f29;}class ConfirmView extends _0x53b8cd{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x2bd93e){super(_0x2bd93e);const _0x1eac7e=this['bindTemplate'];this['set']('message',B(_0x2bd93e,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x2bd93e,B(_0x2bd93e,'Yes'),_0x5a79a8,'submit'),this['cancelView']=this['_createButtonView'](_0x2bd93e,B(_0x2bd93e,'No'),_0x3a90ef,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x1e39fc(),this['keystrokes']=new _0x366945(),this['focusCycler']=new _0x48f6c2({'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':_0x1eac7e['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'](_0x391b60,_0x59df6a,_0x331181,_0x4858ea){const _0x40fcae=new _0x1aa82c(_0x391b60);return _0x40fcae['label']=_0x59df6a,_0x40fcae['icon']=_0x331181,_0x40fcae['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x4858ea}}),_0x40fcae['on']('execute',()=>this['fire'](_0x4858ea)),_0x40fcae;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x1dde07=>{this['keystrokes']['listenTo'](_0x1dde07['element']),this['focusTracker']['add'](_0x1dde07['element']);}),this['keystrokes']['set']('esc',(_0x2a9e09,_0x5dabf7)=>{this['fire']('cancel'),_0x5dabf7();});}}function G(_0x342bd1){return class _0x6a1de3 extends _0x342bd1{['showConfirm'](_0x2cc61c,_0x31079e){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x2cc61c,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x31079e['appendChild'](this['confirmView']['element']),_0x31079e['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x58b1c8,_0x3f32c4,_0x21bb11)=>{_0x21bb11||_0x31079e['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x72bb38=>this['confirmView']['on']('submit',_0x72bb38));}['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 J(_0x4fb058){let _0x5e38cd=0x0,_0x2e1440=0x0;for(const _0x318a73 of q(_0x4fb058))_0x5e38cd=(_0x5e38cd<<0x5)-_0x5e38cd+_0x318a73,_0x5e38cd&=_0x5e38cd,[_0x5e38cd,_0x2e1440]=[_0x2e1440,_0x5e38cd];return X(_0x5e38cd)+X(_0x2e1440);}function*K(_0x2c49ae){null==_0x2c49ae||null==_0x2c49ae?yield 0x12b9b0a1:0x0===_0x2c49ae||!0x1===_0x2c49ae?yield 0x0:0x1===_0x2c49ae||0x1==_0x2c49ae?yield 0x1:Array['isArray'](_0x2c49ae)?yield*function*(_0x388855){for(const _0x580db2 of _0x388855)yield*K(_0x580db2);}(_0x2c49ae):'object'==typeof _0x2c49ae?yield*q(_0x2c49ae):'string'==typeof _0x2c49ae?yield*Z(_0x2c49ae):'number'==typeof _0x2c49ae&&(yield _0x2c49ae);}function*q(_0x12fcb2){if(yield Q('{'),_0x12fcb2){const _0xade7ef=Object['keys'](_0x12fcb2)['sort']();for(const _0xc2ab0c of _0xade7ef){yield*Z(_0xc2ab0c),yield Q(':');const _0x406411=_0x12fcb2[_0xc2ab0c];yield*K(_0x406411);}}yield Q('}');}function*Z(_0x5937c4){yield Q('\x22');for(const _0x48c8f7 of _0x5937c4)yield Q(_0x48c8f7);yield Q('\x22');}function Q(_0x2a6707){return _0x2a6707['charCodeAt'](0x0);}function X(_0x10e282){return(_0x10e282*=Math['sign'](_0x10e282))['toString'](0x24);}const tt=['root','roots','initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function st(_0x85ad1c,_0x369012,_0x23e9cd,_0x2c8115=[]){const _0x8ec4a9='string'==typeof _0x85ad1c?_0x23e9cd['get'](_0x85ad1c)['constructor']:_0x85ad1c['prototype']['constructor'];if(_0x369012['has'](_0x8ec4a9))return _0x369012['get'](_0x8ec4a9);_0x369012['set'](_0x8ec4a9,!0x0);const _0x3e2912=[...et,..._0x2c8115]['map'](_0x4c6580=>{if(_0x23e9cd['has'](_0x4c6580))return _0x23e9cd['get'](_0x4c6580)['constructor'];})['filter'](_0x43aac8=>_0x43aac8);if(_0x8ec4a9&&_0x3e2912['includes'](_0x8ec4a9))return _0x369012['set'](_0x8ec4a9,!0x1),!0x1;if(!_0x8ec4a9['requires'])return _0x369012['set'](_0x8ec4a9,!0x0),!0x0;const _0x4798c0=_0x8ec4a9['requires']['every'](_0x5ae3dc=>st(_0x5ae3dc,_0x369012,_0x23e9cd,_0x2c8115));return _0x369012['set'](_0x8ec4a9,_0x4798c0),_0x4798c0;}function it(_0xfd7a0d,_0x4ea8db){const _0x6b9751={};for(const _0x382261 of _0xfd7a0d['config']['names']())tt['includes'](_0x382261)||(_0x6b9751[_0x382261]=_0xfd7a0d['config']['get'](_0x382261));const _0x11a3cd=_0x6b9751['plugins']||[],_0x60f647=_0xfd7a0d['constructor']['builtinPlugins']||[],_0x58f6ff=_0x11a3cd['length']?_0x11a3cd:_0x60f647,_0x1f2056=_0x6b9751['extraPlugins']||[];delete _0x6b9751['extraPlugins'];const _0x546f21=_0x6b9751['removePlugins']||[];delete _0x6b9751['removePlugins'];const _0x26f2d9=_0xfd7a0d['_context']['config']['get']('plugins')||[],_0x22cf3c=_0x58f6ff['concat'](_0x1f2056)['concat'](_0x26f2d9)['map'](_0x2e8529=>'string'==typeof _0x2e8529?_0x60f647['find'](_0x29b40a=>_0x29b40a['pluginName']==_0x2e8529):_0x2e8529)['filter'](_0x2e715f=>!_0x546f21['includes'](_0x2e715f)&&!_0x546f21['includes'](_0x2e715f['pluginName'])),_0xda1ea4=Array['from'](new Set(_0x22cf3c)),_0x4a03c7=new Map();return _0x6b9751['plugins']=_0xda1ea4['filter'](_0x3b8850=>st(_0x3b8850,_0x4a03c7,_0xfd7a0d['plugins'],_0x4ea8db)),_0x6b9751;}function nt(_0x3a6e06,_0xb1a813){const _0x559ab3=[];_0x3a6e06['document']['selection']['on']('change:range',()=>{const _0x12e026=function(_0x3ecb71,_0x3c564a){const _0x4623d1=[];for(const _0x59cde6 of _0x3ecb71['markers']){const _0x453cab=_0x59cde6['getRange']();(_0x453cab['containsPosition'](_0x3c564a)||_0x453cab['start']['isEqual'](_0x3c564a)||_0x453cab['end']['isEqual'](_0x3c564a))&&_0x4623d1['push'](_0x59cde6);}return _0x4623d1;}(_0x3a6e06,_0x3a6e06['document']['selection']['focus']),_0x4a802c=[],_0x144584=[],_0x355fc5=[];for(const _0x23fbac of _0x559ab3)_0x12e026['includes'](_0x23fbac)||_0x4a802c['push'](_0x23fbac);for(const _0x2aa282 of _0x12e026)_0x559ab3['includes'](_0x2aa282)||_0x144584['push'](_0x2aa282),_0x355fc5['push'](_0x2aa282);(_0x4a802c['length']||_0x144584['length'])&&_0xb1a813({'left':_0x4a802c,'entered':_0x144584}),_0x559ab3['length']=0x0,_0x559ab3['push'](..._0x355fc5);});}const ot='Ctrl+Shift+E';function rt(_0xe30cf3,_0x5901a8){const _0x5a07f3=_0xe30cf3['element'];_0xe30cf3['keystrokes']['listenTo'](_0x5a07f3);for(const _0x172f0b of _0x5901a8)at(_0xe30cf3,_0x172f0b);_0x5901a8['on']('change',(_0x1e1996,_0x417334)=>{for(const _0x337860 of _0x417334['removed'])ct(_0xe30cf3,_0x337860);for(const _0x9a7b05 of Array['from'](_0x417334['added'])['reverse']())at(_0xe30cf3,_0x9a7b05);}),_0xe30cf3['keystrokes']['set']('enter',(_0x1ac47f,_0x282305)=>{_0x5a07f3===_0x1ac47f['target']&&(_0xe30cf3['focusCycler']['focusFirst'](),_0x282305());},{'filter':_0x5a6b12=>_0x5a6b12['target']===_0x5a07f3}),_0xe30cf3['keystrokes']['set']('esc',(_0x30f151,_0x5e50b4)=>{_0x5a07f3!==_0x30f151['target']?_0xe30cf3['focus']():_0xe30cf3['fire']('escape'),_0x5e50b4();}),_0xe30cf3['keystrokes']['set']('arrowdown',(_0x2dd9fe,_0x32e9b3)=>{_0x5a07f3===_0x2dd9fe['target']&&(_0xe30cf3['fire']('arrowdown'),_0x32e9b3());}),_0xe30cf3['keystrokes']['set']('arrowup',(_0x309e0c,_0x182f42)=>{_0x5a07f3===_0x309e0c['target']&&(_0xe30cf3['fire']('arrowup'),_0x182f42());});}function at(_0x1100a4,_0x56533c){_0x56533c['isRendered']&&(_0x1100a4['focusTracker']['add'](_0x56533c['element']),_0x1100a4['keystrokes']['listenTo'](_0x56533c['element']),_0x4246bf(_0x56533c)&&function(_0x8283bb,_0xd89bf5){const _0x420ff7=_0x8283bb['actions'],_0x3ab82b=_0xd89bf5['actions'];for(const _0x169a18 of Object['keys'](_0x420ff7))if(_0x169a18 in _0x3ab82b&&_0x420ff7[_0x169a18]!==_0x3ab82b[_0x169a18])return!0x1;return!0x0;}(_0x1100a4['focusCycler'],_0x56533c['focusCycler'])&&_0x1100a4['focusCycler']['chain'](_0x56533c['focusCycler']));}function ct(_0x3cd076,_0x49eecc){_0x3cd076['focusTracker']['remove'](_0x49eecc['element']),_0x3cd076['keystrokes']['stopListening'](_0x49eecc['element']),_0x4246bf(_0x49eecc)&&_0x3cd076['focusCycler']['unchain'](_0x49eecc['focusCycler']);}const lt='$elementId',ut='data-id';class DocumentCompare extends _0x128cd1{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x590f34?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x3f40dd,_0x23c396)=>{_0x23c396['on']('ready',()=>{this['_integrateEditor'](_0x23c396);});});}get['editor'](){if(this['context']instanceof _0x590f34)return this['context'];{const _0x50b989=this['context']['editors']['first'];if(!_0x50b989)throw new _0x4d0000('documentcompare-no-editor',this);return _0x50b989;}}['getDiff'](_0x27d1e8,_0x2a2938,_0x138237={'anchor':'main','markDeletions':!0x1}){const _0x3200d6=_0x138237['targetEditor']||this['editor'];let _0x245ebc,_0x506228;if('string'==typeof _0x138237['anchor']){const _0xf27b64=_0x3200d6['model']['document']['getRoot'](_0x138237['anchor']);if(!_0xf27b64)throw new _0x4d0000('documentcompare-compare-no-root',this,{'anchor':_0x138237['anchor']});_0x245ebc=_0xf27b64,_0x506228=_0x3200d6['model']['createPositionAt'](_0xf27b64,0x0);}else _0x245ebc=_0x138237['anchor']['clone'](),_0x506228=_0x138237['anchor']['clone']();const _0x3e48e9=_0x3200d6['data']['parse'](_0x27d1e8,_0x245ebc),_0x59f3b9=_0x3200d6['data']['parse'](_0x2a2938,_0x245ebc);return new DocumentDiff({'editor':_0x3200d6,'before':_0x3e48e9,'after':_0x59f3b9,'options':{'anchor':_0x506228,'markDeletions':_0x138237['markDeletions']}});}['isMarkedRemoveOperation'](_0xf3430d){return'marker'==_0xf3430d['type']&&_0xf3430d['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x4a1dce){_0x4a1dce['conversion']['for']('upcast')['add'](_0x3678e9=>{_0x3678e9['on']('element',(_0x5e56ee,_0x4a42d5,_0x539cf3)=>{if(_0x4a42d5['modelRange']&&_0x539cf3['consumable']['consume'](_0x4a42d5['viewItem'],{'attributes':'data-id'}))for(const _0x5d31b7 of _0x4a42d5['modelRange']['getItems']({'shallow':!0x0})){if(_0x5d31b7['is']('$textProxy'))continue;const _0x327719=_0x4a42d5['viewItem']['getAttribute'](ut);_0x327719&&_0x539cf3['writer']['setAttribute'](lt,_0x327719,_0x5d31b7);}},{'priority':'low'});}),_0x4a1dce['model']['schema']['addAttributeCheck'](()=>!0x0,lt);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x5b51a9,before:_0x115277,after:_0x26bea9,options:_0x21abac}){this['_editor']=_0x5b51a9,this['_markDeletions']=!!_0x21abac['markDeletions'],this['_anchor']=_0x21abac['anchor'];const _0x1ccd34=this['_tokenizeModel'](_0x115277),_0xbea335=this['_tokenizeModel'](_0x26bea9);this['_diffItems']=this['_diffModelTokens'](_0x1ccd34,_0xbea335),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x115277['markers'],_0x26bea9['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x16765c=this['_editor']['model']['document'],_0x3d0dd5=[];let _0x54cc64=_0x16765c['version'];for(const _0x302ff6 of this['_operationsData'])switch(_0x302ff6['type']){case'attribute':{const _0x542321=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['path']),_0x4c5972=_0x542321['getShiftedBy'](_0x302ff6['howMany']),_0xbd8e93=new _0x474654(_0x542321,_0x4c5972),_0x15a476=JSON['parse'](_0x302ff6['oldValue']),_0x3e784a=JSON['parse'](_0x302ff6['newValue']);_0x3d0dd5['push'](new _0x83065e(_0xbd8e93,_0x302ff6['key'],_0x15a476,_0x3e784a,_0x54cc64++));break;}case'insert':{const _0x284bf0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['path']),_0x14c02c=this['_makeModelFromTokens'](_0x302ff6['tokens']);_0x3d0dd5['push'](new _0x1286d4(_0x284bf0,_0x14c02c,_0x54cc64++));break;}case'remove':{const _0x3c22d7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['path']),_0x11502d=new _0x2a9804(_0x16765c['graveyard'],[0x0]);_0x3d0dd5['push'](new _0x13c6d0(_0x3c22d7,_0x302ff6['howMany'],_0x11502d,_0x54cc64++));break;}case'rename':{const _0x4b7748=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['path']);_0x3d0dd5['push'](new _0x51b964(_0x4b7748,_0x302ff6['oldName'],_0x302ff6['newName'],_0x54cc64++));break;}case'split':{const _0x463930=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['path']),_0x26f557=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['path']['slice'](0x0,-0x1));_0x26f557['offset']++,_0x3d0dd5['push'](new _0x34b93e(_0x463930,Number['NEGATIVE_INFINITY'],_0x26f557,null,_0x54cc64++));break;}case'merge':{const _0xb31505=_0x302ff6['path']['slice'](),_0x80ee49=_0xb31505['slice'](0x0,-0x1);_0x80ee49[_0x80ee49['length']-0x1]++,_0x80ee49['push'](0x0);const _0x4f7313=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x80ee49),_0xb803fd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb31505),_0x460de2=new _0x2a9804(_0x16765c['graveyard'],[0x0]);_0x3d0dd5['push'](new _0x8d9aa7(_0x4f7313,Number['NEGATIVE_INFINITY'],_0xb803fd,_0x460de2,_0x54cc64++));break;}case'marker':case'markedRemove':{let _0x18ed45=null;if(_0x302ff6['range']){const _0x49a630=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['range']['start']),_0x4f4da1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['range']['end']);_0x18ed45=new _0x474654(_0x49a630,_0x4f4da1);}const _0xed71f3='marker'==_0x302ff6['type']?_0x302ff6['name']:'$markedRemove:'+_0x299d11();_0x3d0dd5['push'](new _0x37c519(_0xed71f3,null,_0x18ed45,_0x16765c['model']['markers'],!0x0,_0x54cc64++));break;}case'unwrap':{const _0x4931ea=_0x302ff6['path']['slice']();_0x4931ea['push'](0x0);const _0x7e3f4=_0x302ff6['path']['slice'](),_0x11b743=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4931ea),_0x51e1e1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x7e3f4),_0x2fbf2b=new _0x2a9804(_0x16765c['graveyard'],[0x0]);_0x3d0dd5['push'](new _0x13c6d0(_0x11b743,_0x302ff6['howMany'],_0x51e1e1,_0x54cc64++)),_0x3d0dd5['push'](new _0x13c6d0(_0x51e1e1['getShiftedBy'](_0x302ff6['howMany']),0x1,_0x2fbf2b,_0x54cc64++));break;}case'wrap':{const _0xf755a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['range']['start']),_0x500729=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x302ff6['range']['end']),_0x61dfb7=_0x302ff6['token']['element']['_clone'](!0x1);_0x61dfb7['_removeAttribute'](lt);const _0x1928da=_0x302ff6['range']['end']['slice']();_0x1928da['push'](0x0);const _0x4debb9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1928da);_0x3d0dd5['push'](new _0x1286d4(_0x500729,_0x61dfb7,_0x54cc64++)),_0x3d0dd5['push'](new _0x13c6d0(_0xf755a,_0x500729['offset']-_0xf755a['offset'],_0x4debb9,_0x54cc64++));break;}}return _0x3d0dd5;}['_tokenizeModel'](_0x3347a1){const _0xd722be=[],_0x28f0ad=_0x474654['_createIn'](_0x3347a1),_0x41b006=new _0x1d3f52({'boundaries':_0x28f0ad});let _0x1a7e65='',_0x1a7c1b=null;const _0x161f00=[''],_0x4487d9=new Map();for(const _0x459b11 of _0x41b006)if('elementStart'==_0x459b11['type']||'elementEnd'==_0x459b11['type']){let _0x4ce6d3=_0x161f00[0x0];''!==_0x1a7e65&&(_0xd722be['push'](...this['_makeTokensFromTextByWords'](_0x1a7e65,_0x1a7c1b,_0x4ce6d3)),_0x1a7e65='');const _0x2e19ab=_0x459b11['item'];let _0x1cc2ca;_0x2e19ab['getAttribute'](lt)?_0x1cc2ca=_0x2e19ab['getAttribute'](lt):'elementStart'==_0x459b11['type']?(_0x1cc2ca=dt(_0x2e19ab),_0x4487d9['set'](_0x2e19ab,_0x1cc2ca)):_0x1cc2ca=_0x4487d9['get'](_0x2e19ab);const _0x492ed0=this['_getElementCategory'](_0x2e19ab);'solid'==_0x492ed0&&('elementStart'==_0x459b11['type']?(_0x4ce6d3=_0x1cc2ca,_0x161f00['unshift'](_0x4ce6d3)):_0x161f00['shift']());const _0x3defa4={'type':'element','element':_0x2e19ab,'elementId':_0x1cc2ca,'category':_0x492ed0,'isStart':'elementStart'==_0x459b11['type'],'limitId':_0x4ce6d3};_0xd722be['push'](_0x3defa4);}else''==_0x1a7e65&&(_0x1a7c1b=_0x459b11['previousPosition']['clone']()),_0x1a7e65+=_0x459b11['item']['data'];return''!==_0x1a7e65&&_0xd722be['push'](...this['_makeTokensFromTextByWords'](_0x1a7e65,_0x1a7c1b,_0x161f00[0x0])),_0xd722be;}['_makeTokensFromTextByWords'](_0x45ad2b,_0x4454ec,_0x4e329d){const _0x577444=_0x45ad2b['matchAll'](/(\s)/g),_0x3a81eb=Array['from'](_0x577444)['map'](_0x320d0f=>_0x320d0f['index']);_0x3a81eb['push'](_0x45ad2b['length']),0x0==_0x3a81eb[0x0]&&_0x3a81eb['shift']();const _0x5b978f=[],_0x17665f=_0x4454ec['parent'];let _0x54e22d=0x0,_0x507f81=_0x4454ec['offset'];for(let _0x7765e2=0x0;_0x7765e2<_0x3a81eb['length'];_0x7765e2++)_0x5b978f['push']({'type':'text','data':_0x45ad2b['slice'](_0x54e22d,_0x3a81eb[_0x7765e2]),'parent':_0x17665f,'offset':_0x507f81,'limitId':_0x4e329d}),_0x54e22d=_0x3a81eb[_0x7765e2],_0x507f81=_0x4454ec['offset']+_0x3a81eb[_0x7765e2];return _0x5b978f;}['_getElementCategory'](_0x168364){const _0x4f3d6e=this['_editor']['model']['schema'];return _0x4f3d6e['isLimit'](_0x168364)||_0x4f3d6e['isContent'](_0x168364)||_0x4f3d6e['isInline'](_0x168364)?'solid':_0x4f3d6e['isBlock'](_0x168364)?'block':function(_0x2769ab,_0x2b0a8b){const _0x2a3a4f=_0x2769ab['parent'];if(!_0x2a3a4f||_0x2a3a4f['is']('documentFragment'))return!0x1;if(_0x2b0a8b['checkChild'](_0x2a3a4f,'$text'))return!0x1;for(const _0x3d84fb of _0x2769ab['getChildren']())if(_0x3d84fb['is']('$text'))return!0x0;return!0x1;}(_0x168364,_0x4f3d6e)?'solid':'container';}['_diffModelTokens'](_0x1ffce3,_0x9158c5){const _0x57a936=_0x337c1d(_0x1ffce3,_0x9158c5,{'comparator':ht});this['_handleUnclosedBlockOpeningTags'](_0x57a936);const _0x1d0306=_0x57a936['flatMap'](_0x388406=>{const _0x481005=_0x388406['added']?'added':_0x388406['removed']?'removed':'unchanged';return _0x388406['value']['map'](_0x321fda=>({'token':_0x321fda,'change':_0x481005}));});let _0x1ae339=0x0;for(const _0x422879 of _0x1d0306)'added'!=_0x422879['change']&&('unchanged'==_0x422879['change']&&(_0x422879['before']=_0x1ffce3[_0x1ae339]),_0x1ae339++);return _0x1d0306;}['_handleUnclosedBlockOpeningTags'](_0x54e333){for(let _0x121243=0x0;_0x121243<_0x54e333['length']-0x1;_0x121243++)if(_0x54e333[_0x121243]['removed']&&_0x54e333[_0x121243+0x1]['added']){const _0x2cbe5c=this['_findUnclosedBlockOpeningToken'](_0x54e333[_0x121243]['value']);if(null!==_0x2cbe5c){const _0x443ff1=this['_findUnclosedBlockOpeningToken'](_0x54e333[_0x121243+0x1]['value']),_0x571049=_0x54e333[_0x121243]['value']['splice'](_0x2cbe5c),_0x21f206=_0x54e333[_0x121243+0x1]['value']['splice'](_0x443ff1),_0x38829b=[_0x21f206['shift']()];_0x571049['shift']();const _0x4f0c73={'value':_0x571049,'removed':!0x0},_0x4fd793={'value':_0x21f206,'added':!0x0},_0x4d958d={'value':_0x38829b};_0x54e333['splice'](_0x121243+0x2,0x0,_0x4d958d,_0x4f0c73,_0x4fd793);}}}['_findUnclosedBlockOpeningToken'](_0x1519f4){let _0x5c51b6=0x0,_0x399e32=-0x1;for(let _0x3c6860=0x0;_0x3c6860<_0x1519f4['length'];_0x3c6860++){const _0x33264a=_0x1519f4[_0x3c6860];'element'==_0x33264a['type']&&'block'==_0x33264a['category']&&(_0x5c51b6+=_0x33264a['isStart']?0x1:-0x1,_0x33264a['isStart']&&(_0x399e32=_0x3c6860));}return 0x0===_0x5c51b6?null:_0x399e32;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x228d22=0x0;_0x228d22<this['_diffItems']['length'];_0x228d22++){const _0xbe47d5=this['_diffItems'][_0x228d22]['change'],_0x26dde8=[];_0x26dde8['push'](this['_diffItems'][_0x228d22]);let _0x229c02=_0x228d22+0x1;for(;this['_diffItems'][_0x229c02]&&this['_diffItems'][_0x229c02]['change']==_0xbe47d5;)_0x26dde8['push'](this['_diffItems'][_0x229c02]),_0x229c02++,_0x228d22++;const _0x25feab=_0x26dde8['map'](_0x4cce0d=>_0x4cce0d['token']);if('unchanged'==_0xbe47d5)_0x26dde8['map'](_0x37c7b5=>_0x37c7b5['before'])['forEach'](_0x3c98e9=>this['_traverseOverItem'](_0x3c98e9));else{if('removed'==_0xbe47d5){if(this['_markDeletions']){const _0x13c676=this['_path']['slice']();_0x25feab['forEach'](_0x566dd2=>this['_traverseOverItem'](_0x566dd2));const _0x5d8121=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x13c676,'end':_0x5d8121}});}else this['_handleChanged'](_0x25feab,!0x0,this['_path']['slice']());}else{const _0x32f8bc=_0x25feab['filter'](_0x344012=>'element'!=_0x344012['type']||'container'!=_0x344012['category']);this['_handleChanged'](_0x32f8bc,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x334d4a=0x0;_0x334d4a<this['_diffItems']['length'];_0x334d4a++){const _0x39c20e=this['_diffItems'][_0x334d4a]['change'],_0x33b372=[];_0x33b372['push'](this['_diffItems'][_0x334d4a]);let _0x53b31f=_0x334d4a+0x1;for(;this['_diffItems'][_0x53b31f]&&this['_diffItems'][_0x53b31f]['change']==_0x39c20e;)_0x33b372['push'](this['_diffItems'][_0x53b31f]),_0x53b31f++,_0x334d4a++;const _0x2bc269=_0x33b372['map'](_0x1277f6=>_0x1277f6['token']);if('unchanged'==_0x39c20e){const _0x2b4d41=_0x33b372['map'](_0x1bc8d4=>_0x1bc8d4['before']);this['_handleUnchanged'](_0x2b4d41,_0x2bc269);}else('added'==_0x39c20e||this['_markDeletions'])&&_0x2bc269['forEach'](_0x454a26=>{'element'==_0x454a26['type']&&_0x454a26['isStart']&&this['_splitPostponedData']['has'](_0x454a26['element'])&&this['_handleSplitPostponedData'](_0x454a26['element'],this['_path']),this['_traverseOverItem'](_0x454a26);});}}['_handleSplitPostponedData'](_0x289595,_0x102039){const _0x7792eb=this['_splitPostponedData']['get'](_0x289595);for(const _0x2d8397 of _0x7792eb)'rename'==_0x2d8397['type']?this['_operationsData']['push']({'type':'rename','path':_0x102039['slice'](),'oldName':_0x2d8397['oldValue'],'newName':_0x289595['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x102039['slice'](),'howMany':0x1,'key':_0x2d8397['key'],'oldValue':_0x2d8397['oldValue'],'newValue':JSON['stringify'](_0x289595['getAttribute'](_0x2d8397['key'])??null)});}['_calculateMarkersOperationsData'](_0x44951b,_0x5c68f4){const _0x251078={};for(const [_0x398377]of _0x44951b)_0x251078[_0x398377]=null;for(const [_0x280c7d,_0x100d4a]of _0x5c68f4)_0x251078[_0x280c7d]=_0x100d4a;const _0x4ad234=Object['entries'](_0x251078)['map'](([_0x1f7e2f,_0x3720bc])=>({'type':'marker','name':_0x1f7e2f,'range':_0x3720bc?{'start':_0x3720bc['start']['path']['slice'](),'end':_0x3720bc['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x4ad234);}['_handleUnwraps'](){const _0x340cb5=new Map(),_0x36f2b5=[],_0x1ea552=[0x0];let _0x1b4d07=this['_diffItems']['length']+0x1;for(let _0x399687=this['_diffItems']['length']-0x1;_0x399687>=0x0;_0x399687--){const {token:_0x66d39a,before:_0x30d37d,change:_0x1b4d69}=this['_diffItems'][_0x399687];if('removed'!=_0x1b4d69&&(_0x1b4d07=_0x399687),'element'!=_0x66d39a['type']||'container'!=_0x66d39a['category']||'added'==_0x1b4d69)continue;const _0x352969=_0x30d37d?_0x30d37d['element']:_0x66d39a['element'];if(_0x66d39a['isStart']){const _0x442a03=_0x340cb5['get'](_0x352969),_0x32b4a8=this['_diffItems'][_0x442a03];('removed'==_0x1b4d69||'removed'==_0x32b4a8['change'])&&_0x1b4d07<_0x442a03&&(this['_operationsData']['push']({'type':'unwrap','path':_0x352969['getPath'](),'howMany':_0x352969['maxOffset']+_0x1ea552[0x0]}),_0x1ea552['shift'](),_0x1ea552[0x0]+=_0x352969['maxOffset']-0x1,_0x36f2b5['push'](_0x399687),_0x36f2b5['push'](_0x442a03));}else _0x340cb5['set'](_0x352969,_0x399687),_0x1ea552['unshift'](0x0);}_0x36f2b5['sort']((_0x56562d,_0x27056e)=>_0x27056e-_0x56562d),_0x36f2b5['forEach'](_0x1f5b31=>{const _0x44baaf=this['_diffItems'][_0x1f5b31];'removed'==_0x44baaf['change']?this['_diffItems']['splice'](_0x1f5b31,0x1):(_0x44baaf['change']='added',delete _0x44baaf['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x56a7e7=[];for(let _0x5cdaf9=0x0;_0x5cdaf9<this['_diffItems']['length'];_0x5cdaf9++){const {change:_0x188730,token:_0x4446f7}=this['_diffItems'][_0x5cdaf9];if('added'==_0x188730&&'element'==_0x4446f7['type']&&'container'==_0x4446f7['category']){if(_0x4446f7['isStart'])_0x56a7e7['push'](this['_path']['slice']());else{if(!_0x4446f7['isStart']){const _0x1afa4e=_0x56a7e7['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x1afa4e,'end':this['_path']['slice']()},'token':_0x4446f7}),this['_path'][this['_path']['length']-0x1]=_0x1afa4e[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x188730||this['_markDeletions'])&&this['_traverseOverItem'](_0x4446f7);}}['_handleUnchanged'](_0x43c0f9,_0x5b723f){for(let _0x15ef8d=0x0;_0x15ef8d<_0x43c0f9['length'];_0x15ef8d++){const _0x285302=_0x43c0f9[_0x15ef8d];if('element'==_0x285302['type']&&_0x285302['isStart']){const _0x532c98=_0x5b723f[_0x15ef8d];'block'==_0x285302['category']&&this['_handleElementRename'](_0x285302['element'],_0x532c98['element'],this['_path']),this['_handleElementAttributeChanges'](_0x285302['element'],_0x532c98['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x532c98);}else{if('element'!=_0x285302['type']||_0x285302['isStart']){if('text'==_0x285302['type']){const _0x51a8a0=this['_path']['slice'](),_0x3b3feb=[],_0x3a7058=[];for(;_0x43c0f9[_0x15ef8d]&&'text'==_0x43c0f9[_0x15ef8d]['type'];)_0x3b3feb['push'](_0x43c0f9[_0x15ef8d]),_0x3a7058['push'](_0x5b723f[_0x15ef8d]),this['_path'][this['_path']['length']-0x1]+=_0x43c0f9[_0x15ef8d]['data']['length'],_0x15ef8d++;_0x15ef8d--,this['_handleTextAttributeChanges'](_0x3b3feb,_0x3a7058,_0x51a8a0);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x4ab79b,_0x704270,_0x4fe952){const _0x59e028=[],_0xf6d712=[],_0x257165=_0x4fe952['slice']();let _0x2fa66c=this['_parents']['length']-0x1;for(let _0x33b16d=0x0;_0x33b16d<_0x4ab79b['length'];_0x33b16d++){const _0x53288c=_0x4ab79b[_0x33b16d],_0x554cbc=_0x4fe952['slice']();'element'!=_0x53288c['type']||_0x53288c['isStart']?'element'==_0x53288c['type']&&_0x53288c['isStart']?(_0x4fe952['push'](0x0),_0x2fa66c++,_0xf6d712['push']({'before':_0x554cbc,'after':_0x4fe952['slice'](),'index':_0x33b16d})):_0x4fe952[_0x4fe952['length']-0x1]+=_0x53288c['data']['length']:(_0x4fe952['pop'](),_0x4fe952[_0x4fe952['length']-0x1]++,_0x2fa66c--,_0xf6d712['length']?_0xf6d712['pop']():_0x59e028['push']({'before':_0x554cbc,'after':_0x4fe952['slice'](),'index':_0x33b16d}));}if(_0xf6d712['length']!==_0x59e028['length'])throw new _0x4d0000('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x4ab79b,'isRemove':_0x704270});const _0x364a8e=[{'after':_0x257165['slice'](),'index':-0x1},..._0x59e028,..._0xf6d712,{'before':_0x4fe952['slice'](),'index':_0x4ab79b['length']}];if(_0x704270){for(let _0x333ee5=_0x364a8e['length']-0x1;_0x333ee5>=0x1;_0x333ee5--){const _0x5cfc41=_0x364a8e[_0x333ee5-0x1]['after'],_0x45be5e=_0x364a8e[_0x333ee5]['before'],_0x165c0a=_0x45be5e[_0x45be5e['length']-0x1]-_0x5cfc41[_0x5cfc41['length']-0x1];_0x165c0a&&(this['_operationsData']['push']({'type':'remove','path':_0x5cfc41,'howMany':_0x165c0a}),_0x45be5e[_0x45be5e['length']-0x1]-=_0x165c0a);}for(const {before:_0x163d78}of _0x59e028)this['_operationsData']['push']({'type':'merge','path':_0x163d78});}else for(let _0x2ad720=0x0;_0x2ad720<_0x364a8e['length']-0x1;_0x2ad720++){const _0x245ecd=_0x364a8e[_0x2ad720]['after'],_0x54ed00=_0x364a8e[_0x2ad720+0x1]['before'],_0x2a8ee4=_0x364a8e[_0x2ad720]['index']+0x1,_0x47956f=_0x364a8e[_0x2ad720+0x1]['index'];if(_0x2a8ee4!==_0x47956f&&this['_operationsData']['push']({'type':'insert','path':_0x245ecd,'tokens':_0x4ab79b['slice'](_0x2a8ee4,_0x47956f)}),_0x2ad720<_0x59e028['length']){this['_operationsData']['push']({'type':'split','path':_0x54ed00});const _0x21d611=_0x4ab79b[_0xf6d712[_0xf6d712['length']-0x1-_0x2ad720]['index']],_0x3672fd=this['_parents'][_0x2fa66c]['element'];_0x3672fd['name']!=_0x21d611['element']['name']&&this['_addSplitPostponedData'](_0x21d611['element'],{'type':'rename','oldValue':_0x3672fd['name']});const _0x523e29=this['_getAttributeChanges'](_0x3672fd['getAttributes'](),_0x21d611['element']['getAttributes']());for(const _0x2571bf in _0x523e29){const _0xf8d86b=_0x523e29[_0x2571bf]['oldValue'];this['_addSplitPostponedData'](_0x21d611['element'],{'type':'attribute','key':_0x2571bf,'oldValue':_0xf8d86b});}}}}['_addSplitPostponedData'](_0x151978,_0x59613e){const _0x1e482a=this['_splitPostponedData']['get'](_0x151978)||[];_0x1e482a['push'](_0x59613e),this['_splitPostponedData']['set'](_0x151978,_0x1e482a);}['_traverseOverItem'](_0x1fc38e){'element'==_0x1fc38e['type']&&_0x1fc38e['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x1fc38e)):'element'!=_0x1fc38e['type']||_0x1fc38e['isStart']?'text'==_0x1fc38e['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x1fc38e['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x56edc6,_0x2da49f,_0x3f6704){_0x56edc6['name']!=_0x2da49f['name']&&this['_operationsData']['push']({'type':'rename','path':_0x3f6704['slice'](),'oldName':_0x56edc6['name'],'newName':_0x2da49f['name']});}['_handleElementAttributeChanges'](_0x4c536f,_0x4e3061,_0x5cc2dd){const _0x4fc1b1=this['_getAttributeChanges'](_0x4c536f['getAttributes'](),_0x4e3061['getAttributes']());for(const _0x2b8d5c in _0x4fc1b1){const {oldValue:_0x943861,newValue:_0x378f0d}=_0x4fc1b1[_0x2b8d5c];this['_operationsData']['push']({'type':'attribute','path':_0x5cc2dd['slice'](),'howMany':0x1,'key':_0x2b8d5c,'oldValue':_0x943861,'newValue':_0x378f0d});}}['_handleTextAttributeChanges'](_0x435305,_0x1f2688,_0x4ba19f){const _0x33c898=this['_operationsData'],_0x51c592=_0x435305[0x0]['parent'],_0x211b2f=_0x435305[0x0]['offset'],_0x409e4f=_0x1f2688[0x0]['parent'],_0x439d20=_0x1f2688[0x0]['offset'],_0x21e16e=_0x435305['reduce']((_0x162876,_0xe3f308)=>_0x162876+_0xe3f308['data']['length'],0x0),_0x3e168d=this['_getAttrsForOffsets'](_0x51c592,_0x211b2f,_0x21e16e),_0xd47e09=this['_getAttrsForOffsets'](_0x409e4f,_0x439d20,_0x21e16e),_0xe19653={};for(let _0x408756=0x0;_0x408756<_0x21e16e;_0x408756++){const _0x21d115=_0x3e168d[_0x211b2f+_0x408756],_0x21b2c7=_0xd47e09[_0x439d20+_0x408756],_0x50a19b=this['_getAttributeChanges'](_0x21d115,_0x21b2c7);for(const _0x3976d4 in _0xe19653)_0x50a19b[_0x3976d4]||_0x4068cd(_0x3976d4);for(const _0xd80b8b in _0x50a19b){const {oldValue:_0x5106a4,newValue:_0x58ce6c}=_0x50a19b[_0xd80b8b],_0x2ae48f=_0xe19653[_0xd80b8b];_0x2ae48f?_0x2ae48f['oldValue']==_0x5106a4&&_0x2ae48f['newValue']==_0x58ce6c?_0x2ae48f['length']++:(_0x4068cd(_0xd80b8b),_0xe19653[_0xd80b8b]={'oldValue':_0x5106a4,'newValue':_0x58ce6c,'start':_0x408756,'length':0x1}):_0xe19653[_0xd80b8b]={'oldValue':_0x5106a4,'newValue':_0x58ce6c,'start':_0x408756,'length':0x1};}}for(const _0x228bdf in _0xe19653)_0x4068cd(_0x228bdf);function _0x4068cd(_0x185d96){const _0x5eac62=_0xe19653[_0x185d96],_0x480369=_0x4ba19f['slice']();_0x480369[_0x480369['length']-0x1]+=_0x5eac62['start'],_0x33c898['push']({'type':'attribute','path':_0x480369,'howMany':_0x5eac62['length'],'key':_0x185d96,'oldValue':_0x5eac62['oldValue'],'newValue':_0x5eac62['newValue']}),delete _0xe19653[_0x185d96];}}['_getAttributeChanges'](_0x33318d,_0x56b7fb){const _0x5276cf={};for(const [_0x36ca5d,_0x2c1783]of _0x33318d)_0x5276cf[_0x36ca5d]={'oldValue':JSON['stringify'](_0x2c1783),'newValue':'null'};for(const [_0x1950bf,_0xb7b29c]of _0x56b7fb){const _0x266cb5=JSON['stringify'](_0xb7b29c);_0x5276cf[_0x1950bf]?_0x5276cf[_0x1950bf]['oldValue']==_0x266cb5?delete _0x5276cf[_0x1950bf]:_0x5276cf[_0x1950bf]['newValue']=_0x266cb5:_0x5276cf[_0x1950bf]={'oldValue':'null','newValue':_0x266cb5};}return delete _0x5276cf[lt],_0x5276cf;}['_getAttrsForOffsets'](_0x48455c,_0x29daeb,_0x227acf){const _0x84abfb=new Array(_0x29daeb+_0x227acf);let _0x5575ae=_0x48455c['getChildAtOffset'](_0x29daeb),_0xd73223=_0x5575ae['startOffset'];for(;_0x5575ae&&_0xd73223<_0x29daeb+_0x227acf;){const _0x4eb385=Array['from'](_0x5575ae['getAttributes']());_0x84abfb['fill'](_0x4eb385,_0xd73223,_0xd73223+_0x5575ae['offsetSize']),_0xd73223+=_0x5575ae['offsetSize'],_0x5575ae=_0x5575ae['nextSibling'];}return _0x84abfb;}['_getPositionFromAnchorAndPath'](_0x54f3e5,_0x1f4857){const _0x2b0c24=[..._0x54f3e5['path']['slice'](0x0,-0x1),_0x54f3e5['offset']+_0x1f4857[0x0],..._0x1f4857['slice'](0x1)];return new _0x2a9804(_0x54f3e5['root'],_0x2b0c24);}['_makeModelFromTokens'](_0x4f7a7a){const _0x3907c8=[];let _0x2d3c71=null;for(const _0x281244 of _0x4f7a7a)if('element'!=_0x281244['type']||_0x281244['isStart']||_0x2d3c71!=_0x281244['element']){if(!_0x2d3c71){if('text'==_0x281244['type']){const _0x232eeb=_0x2a9804['_createAt'](_0x281244['parent'],_0x281244['offset']),_0x1c2b93=_0x474654['_createFromPositionAndShift'](_0x232eeb,_0x281244['data']['length']),_0x5074bd=Array['from'](_0x1c2b93['getItems']())['map'](_0x1e3070=>new _0x3ab9df(_0x1e3070['data'],_0x1e3070['getAttributes']()));_0x3907c8['push'](..._0x5074bd);}else{_0x2d3c71=_0x281244['element'];const _0x3d9fa2=_0x281244['element']['_clone'](!0x0);_0x3d9fa2['_removeAttribute'](lt);for(const _0x3deb40 of this['_editor']['model']['createRangeIn'](_0x3d9fa2)['getItems']())_0x3deb40['is']('element')&&_0x3deb40['_removeAttribute'](lt);_0x3907c8['push'](_0x3d9fa2);}}}else _0x2d3c71=null;return _0x3907c8;}}function ht(_0x2fa403,_0x2c28a2){return _0x2fa403['type']===_0x2c28a2['type']&&(_0x2fa403['limitId']===_0x2c28a2['limitId']&&('text'==_0x2fa403['type']?_0x2fa403['data']==_0x2c28a2['data']:function(_0x1a5e14,_0x24af3d){if(_0x1a5e14['isStart']!=_0x24af3d['isStart'])return!0x1;if(_0x1a5e14['isStart']&&_0x1a5e14['elementId']!=_0x24af3d['elementId'])return!0x1;if(_0x1a5e14['category']!=_0x24af3d['category'])return!0x1;if('block'==_0x1a5e14['category'])return!0x0;if('container'==_0x1a5e14['category']&&_0x1a5e14['elementId']!=_0x24af3d['elementId'])return!0x1;return _0x1a5e14['element']['name']==_0x24af3d['element']['name'];}(_0x2fa403,_0x2c28a2)));}function dt(_0x34e61f){return J({'name':_0x34e61f['name'],...Object['fromEntries'](_0x34e61f['getAttributes']())});}export{AriaDescriptionView,CollaborationUserColor,G as ConfirmMixin,lt as DATA_ID_MODEL_ATTRIBUTE,ut as DATA_ID_VIEW_ATTRIBUTE,DocumentCompare,DocumentDiff,ot as FOCUS_ANNOTATION_KEYSTROKE,LateFocusButtonView,LateFocusDropdownButtonView,Permissions,SuggestionsConversion,User,UserView,Users,U as fixElementSuggestionRange,W as getAllMarkersDomElementsSorted,z as getDateTimeFormatter,R as getMarkerDomElement,J as hashObject,it as sanitizeEditorConfig,rt as setupThreadKeyboardNavigation,O as splitSuggestionMarkerName,nt as surroundingMarkersDetector,j as trimHtml};
23
+ import{ContextPlugin as _0x529028,Editor as _0x215d2b,Plugin as _0x11cb42}from'@ckeditor/ckeditor5-core';import{CKEditorError as _0x275ecb,Collection as _0x2fe32f,FocusTracker as _0x249f4b,KeystrokeHandler as _0x523998,first as _0x4397a6,toArray as _0x3251dd,uid as _0x400e20}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x19ba74,DropdownButtonView as _0x14cb36,FocusCycler as _0x555f79,IconView as _0x4a1a15,View as _0x20b5aa,isViewWithFocusCycler as _0x4620ed}from'@ckeditor/ckeditor5-ui';import{IconCancel as _0x16b4d6,IconCheck as _0x14b686,IconNotification as _0x2fcd06}from'@ckeditor/ckeditor5-icons';import{setHighlightHandling as _0x481acd,toWidget as _0x4d1edb}from'@ckeditor/ckeditor5-widget';import{DateTime as _0x2f7668}from'luxon';import{AttributeOperation as _0xc4dd68,InsertOperation as _0x78b42b,MarkerOperation as _0x5e0f36,MergeOperation as _0x470146,ModelPosition as _0x375446,ModelRange as _0x27f33c,ModelText as _0x47f7f3,ModelTreeWalker as _0x100733,MoveOperation as _0x1319d8,RenameOperation as _0x2de6f1,SplitOperation as _0x5e9c01}from'@ckeditor/ckeditor5-engine';import{diffArrays as _0xedbbfb}from'diff';var D=class extends _0x529028{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x303108,_0x332380){let _0x910a6;if(_0x332380||(_0x332380=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x332380?_0x910a6=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x910a6=this['context']['editors']['find'](_0x393aea=>_0x393aea['config']['get']('collaboration.channelId')==_0x332380)),!_0x910a6)throw new _0x275ecb('permissions-set-permissions-invalid-channel-id',null);const _0x42cf7b=_0x910a6['plugins'],_0x446af9=_0x42cf7b['has']('CommentsRepository')?_0x42cf7b['get']('CommentsRepository'):void 0x0,_0x51b1c2=_0x42cf7b['has']('CommentsOnly')&&_0x42cf7b['get']('CommentsOnly'),_0x443fae=_0x303108['includes']('document:write'),_0x490fd7=_0x303108['includes']('comment:modify_all'),_0x3a2f1c=_0x303108['includes']('comment:admin'),_0x6efbed=_0x303108['includes']('comment:write'),_0x4fbbca=_0x6efbed||_0x3a2f1c,_0x42f2de=_0x4fbbca||_0x490fd7,_0x35f00e=_0x443fae||_0x4fbbca;if(_0x51b1c2&&(_0x51b1c2['isEnabled']=!_0x443fae&&_0x42f2de),_0x910a6 instanceof _0x215d2b&&(_0x443fae||_0x42f2de&&_0x446af9?_0x910a6['disableReadOnlyMode']('no-permissions'):_0x910a6['enableReadOnlyMode']('no-permissions')),_0x446af9){_0x446af9['setPermissions']({'admin':_0x3a2f1c,'modifyAll':_0x490fd7,'write':_0x6efbed,'resolve':_0x35f00e},_0x332380);const _0x3b0110=_0x910a6 instanceof _0x215d2b&&_0x910a6['commands']['get']('addCommentThread');_0x3b0110&&(_0x4fbbca?_0x3b0110['clearForceDisabled']('noPermissions'):_0x3b0110['forceDisabled']('noPermissions'));}}};function $(_0x12e403,_0x106d53){const t=_0x12e403['t'];switch(_0x106d53){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'';}}var O=class extends _0x529028{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[D];}constructor(_0x2157d5){super(_0x2157d5),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x2fe32f(),this['_locale']=_0x2157d5['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:_0x1e7ab2,name:_0x497186,..._0x545f19}){if(!_0x1e7ab2||'string'!=typeof _0x1e7ab2)throw new _0x275ecb('users-add-invalid-id');if(this['users']['has'](_0x1e7ab2))throw new _0x275ecb('users-add-duplicated-id',null,{'id':_0x1e7ab2});const _0x240df5=this['context']['config']['get']('users.getInitialsCallback'),_0x34c2c7={..._0x545f19,'id':_0x1e7ab2,'name':R(this['_locale'],_0x497186),'color':this['_getNextColor']()};_0x34c2c7['name']=R(this['_locale'],_0x34c2c7['name']);const _0x12c854=new L(_0x34c2c7,_0x240df5);return this['users']['add'](_0x12c854),_0x12c854;}['getUser'](_0x1f1ceb){return this['users']['get'](_0x1f1ceb);}['useAnonymousUser'](){const _0x3a1ff7=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x3a1ff7);}['defineMe'](_0x841f90){if(this['_myId'])throw new _0x275ecb('users-me-already-defined',null);const _0x3c0d18=this['getUser'](_0x841f90);if(!_0x3c0d18)throw new _0x275ecb('users-me-missing-user',null);this['_myId']=_0x841f90,_0x3c0d18['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x32e0a1=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x32e0a1&&(this['_lastColor']=0x0),new F(this['_lastColor']++);}['_addAnonymousUser'](){const _0x2633c8=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x2633c8,'name':$(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}},L=class{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x13c1fc,_0x5df2dd){this['id']=_0x13c1fc['id'],this['color']=_0x13c1fc['color'],this['name']=_0x13c1fc['name'],this['initials']=_0x5df2dd?_0x5df2dd(this['name']):this['_computeInitials'](),this['avatar']=_0x13c1fc['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x12b563=this['name']['split']('\x20')['filter'](_0x562a47=>/^[\p{Letter}]/u['test'](_0x562a47));return 0x1===_0x12b563['length']?this['_getInitial'](_0x12b563[0x0]):0x0===_0x12b563['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x12b563[0x0])+this['_getInitial'](_0x12b563[_0x12b563['length']-0x1]);}['_getInitial'](_0x119051){return String['fromCodePoint'](_0x119051['codePointAt'](0x0))['toUpperCase']();}};function R(_0x14c755,_0x50a94c=''){return''==(_0x50a94c=_0x50a94c['trim']())?$(_0x14c755,'Anonymous'):_0x50a94c;}var F=class{['_id'];constructor(_0x5826ce){this['_id']=_0x5826ce;}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'];}['getColorVariable'](){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}['getColorAlphaVariable'](){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}},H=class extends _0x20b5aa{['name'];['notificationView'];constructor(_0x2a64a1,_0x11edf1,_0x345f84,_0x323a41){super(_0x2a64a1),this['name']=_0x11edf1['name'],this['notificationView']=null;const _0x6a9dc2=['ck','ck-user'],_0x41f6e4=['ck','ck-user__img'];_0x11edf1['isAnonymous']&&_0x41f6e4['push']('ck-user__anonymous'),!_0x11edf1['isAnonymous']&&_0x11edf1['isMe']&&_0x6a9dc2['push']('ck-user_me'),(_0x11edf1['avatar']||_0x323a41)&&_0x41f6e4['push']('ck-user__avatar');let _0x5f56dd=null;if(_0x323a41&&(_0x5f56dd=new _0x4a1a15(),_0x5f56dd['content']=_0x323a41,_0x5f56dd['extendTemplate']({'attributes':{'class':['ck-user__avatar-icon']}})),_0x345f84){const _0x4d7917=new _0x4a1a15();_0x4d7917['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4d7917['content']=_0x2fcd06,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x345f84},'children':[_0x4d7917]};}const _0x52aac0=[{'tag':'div','attributes':{'class':_0x41f6e4,'style':{'background-image':_0x11edf1['avatar']&&!_0x323a41?'url(\x27'+_0x11edf1['avatar']+'\x27)':''}},'children':_0x5f56dd?[_0x5f56dd]:[]},{'tag':'div','attributes':{'class':_0x11edf1['avatar']||_0x323a41?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x11edf1['name']},'children':[{'text':_0x11edf1['initials']}]}];this['notificationView']&&_0x52aac0['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x6a9dc2,'data-user-id':_0x11edf1['id']},'children':_0x52aac0});}},U=class extends _0x20b5aa{['children'];['iconView'];['labelView'];constructor(_0x5179d9){super(_0x5179d9);const _0x7b9c93=this['bindTemplate'];this['set']('icon',void 0x0),this['set']('label',void 0x0),this['set']('tooltip',void 0x0),this['set']('tooltipPosition','n'),this['set']('tooltipClass',void 0x0),this['set']('iconPosition','left'),this['set']('class',void 0x0),this['children']=this['createCollection'](),this['iconView']=this['_createIconView'](),this['labelView']=this['_createLabelView'](),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill',_0x7b9c93['to']('class'),_0x7b9c93['to']('iconPosition',_0x30530b=>'right'===_0x30530b?'ck-pill_icon-right':'')],'data-cke-tooltip-text':_0x7b9c93['to']('tooltip'),'data-cke-tooltip-position':_0x7b9c93['to']('tooltipPosition'),'data-cke-tooltip-class':_0x7b9c93['to']('tooltipClass')},'children':this['children']});}['render'](){super['render'](),this['icon']&&this['children']['add'](this['iconView']),this['children']['add'](this['labelView']),this['on']('change:icon',(_0x16d351,_0x21aeb5,_0x835898,_0x1c7403)=>{_0x835898&&!_0x1c7403?this['children']['add'](this['iconView'],0x0):!_0x835898&&_0x1c7403&&this['children']['remove'](this['iconView']);});}['_createIconView'](){const _0x44f273=new _0x4a1a15();return _0x44f273['extendTemplate']({'attributes':{'class':'ck-pill__icon'}}),_0x44f273['bind']('content')['to'](this,'icon'),_0x44f273;}['_createLabelView'](){const _0x52fce9=new _0x20b5aa(this['locale']),_0x5e7095=this['bindTemplate'];return _0x52fce9['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill__label']},'children':[{'text':_0x5e7095['to']('label')}]}),_0x52fce9;}},z=class extends _0x20b5aa{['id'];constructor(_0x5e6543,_0x40f460){super(_0x5e6543),this['id']='ck-aria-description-'+_0x400e20(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x40f460}]});}},W=class extends _0x19ba74{['render'](){super['render'](),j(this);}},Y=class extends _0x14cb36{['render'](){super['render'](),j(this);}};function j(_0x1c0209){_0x1c0209['listenTo'](_0x1c0209['element'],'mousedown',(_0x2e8e69,_0x1c8796)=>{_0x1c8796['stopPropagation'](),_0x1c8796['preventDefault']();}),_0x1c0209['listenTo'](_0x1c0209['element'],'mouseup',()=>{_0x1c0209['element']['focus']();});}function J(_0x40bd98){const _0x10cc33=_0x40bd98['split'](':');return{'group':_0x10cc33[0x0],'type':_0x10cc33[0x1],'subType':_0x10cc33['length']>=0x5?_0x10cc33[0x2]:null,'id':_0x10cc33['length']<0x5?_0x10cc33[0x2]:_0x10cc33[0x3],'authorId':_0x10cc33['length']<0x5?_0x10cc33[0x3]:_0x10cc33[0x4],'markerCount':0x6==_0x10cc33['length']?_0x10cc33[0x5]:null};}function G(_0x11c4fc,_0x2e3aa5){const _0x12df26=_0x11c4fc['end']['nodeBefore'];if(_0x12df26&&_0x12df26['is']('element')&&_0x2e3aa5['schema']['isBlock'](_0x12df26)&&!_0x2e3aa5['schema']['isObject'](_0x12df26)){const _0x42c18d=_0x2e3aa5['createPositionAt'](_0x12df26,'end');return _0x2e3aa5['createRange'](_0x11c4fc['start'],_0x42c18d);}return _0x11c4fc;}var K=class extends _0x11cb42{['afterInit'](){const _0x4eb5cb=this['editor'];_0x4eb5cb['plugins']['has']('AlignmentEditing')&&_0x4eb5cb['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}};const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Z=class extends _0x11cb42{['afterInit'](){const _0x1514a0=this['editor'],_0x20bee8=_0x1514a0['plugins']['get']('SuggestionsConversion');for(const _0x503e2e of q){if(!_0x1514a0['plugins']['has'](_0x503e2e))continue;const _0x1cb2ae=_0x503e2e['slice'](0x0,-0x7)['toLowerCase']();_0x20bee8['registerInlineAttribute'](_0x1cb2ae);}}},Q=class extends _0x11cb42{['afterInit'](){const _0x5dcf67=this['editor'],_0x5033b9=_0x5dcf67['plugins']['get']('SuggestionsConversion');_0x5dcf67['plugins']['has']('BookmarkEditing')&&_0x5033b9['registerBlockAttribute']('bookmarkId');}};const X=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var tt=class extends _0x11cb42{['afterInit'](){const _0x18a80e=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x240fe3,commandName:_0x262a26}of X)this['editor']['plugins']['has'](_0x240fe3)&&_0x18a80e['registerInlineAttribute'](_0x262a26);}},et=class extends _0x11cb42{['afterInit'](){const {editor:_0x26ab64}=this;if(!_0x26ab64['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x319b49=_0x26ab64['plugins']['get']('SuggestionsConversion');_0x319b49['registerBlockAttribute']('footnotesListStyle'),_0x319b49['registerBlockAttribute']('footnotesListStart');}},st=class extends _0x11cb42{['afterInit'](){const _0x5f7ec1=this['editor'];if(!_0x5f7ec1['plugins']['has']('GeneralHtmlSupport')||!_0x5f7ec1['plugins']['has']('DataSchema'))return;const _0x105b57=_0x5f7ec1['plugins']['get']('SuggestionsConversion'),_0x4b2250=_0x5f7ec1['plugins']['get']('GeneralHtmlSupport'),_0x597080=_0x5f7ec1['plugins']['get']('DataSchema');for(const _0x565bc2 of _0x597080['getDefinitionsForView'](/.*/,!0x1)){const _0x462da2=_0x4b2250['getGhsAttributeNameForElement'](_0x565bc2['view']);!_0x565bc2['isInline']||_0x565bc2['isObject']||'appliesToBlock'in _0x565bc2&&_0x565bc2['appliesToBlock']?_0x105b57['registerBlockAttribute'](_0x462da2):_0x105b57['registerInlineAttribute'](_0x462da2);}}},it=class extends _0x11cb42{['afterInit'](){const _0x44f873=this['editor'];_0x44f873['plugins']['has']('HighlightEditing')&&_0x44f873['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}},nt=class extends _0x11cb42{['afterInit'](){const _0x12c430=this['editor'];_0x12c430['plugins']['has']('HtmlEmbed')&&_0x12c430['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}},ot=class extends _0x11cb42{['afterInit'](){const _0x73c0f4=this['editor'];if(!_0x73c0f4['plugins']['has']('ImageEditing'))return;const _0x275a51=_0x73c0f4['plugins']['get']('SuggestionsConversion');_0x275a51['registerBlockAttribute']('src'),_0x73c0f4['plugins']['has']('ImageResize')&&_0x275a51['registerBlockAttribute']('resizedWidth'),_0x73c0f4['plugins']['has']('ImageTextAlternativeEditing')&&_0x275a51['registerBlockAttribute']('alt'),_0x73c0f4['plugins']['has']('PictureEditing')&&_0x275a51['registerBlockAttribute']('sources'),_0x73c0f4['plugins']['has']('ImageSizeAttributes')&&(_0x275a51['registerBlockAttribute']('width'),_0x275a51['registerBlockAttribute']('height'));}},rt=class extends _0x11cb42{['afterInit'](){const _0x4993f9=this['editor'],_0x5bda3b=_0x4993f9['plugins']['get']('SuggestionsConversion');_0x4993f9['plugins']['has']('IndentBlock')&&(_0x5bda3b['registerBlockAttribute']('blockIndent'),_0x4993f9['plugins']['has']('ListEditing')&&(_0x5bda3b['registerBlockAttribute']('blockIndentList'),_0x5bda3b['registerBlockAttribute']('blockIndentListItem')));}},at=class extends _0x11cb42{['afterInit'](){const _0x3b22f5=this['editor'];_0x3b22f5['plugins']['has']('LineHeight')&&_0x3b22f5['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}},ct=class extends _0x11cb42{['afterInit'](){const _0x45aadd=this['editor'];if(!_0x45aadd['plugins']['has']('LinkEditing'))return;const _0x3e63de=_0x45aadd['plugins']['get']('SuggestionsConversion'),_0x102016=_0x45aadd['commands']['get']('link');_0x3e63de['registerInlineAttribute']('linkHref');for(const _0x10dab1 of _0x102016['manualDecorators'])_0x3e63de['registerInlineAttribute'](_0x10dab1['id']);}},lt=class extends _0x11cb42{['afterInit'](){const _0x4eff9f=this['editor'];if(!_0x4eff9f['plugins']['has']('ListEditing'))return;const _0x383d6a=_0x4eff9f['plugins']['get']('SuggestionsConversion'),_0x4387bb=_0x4eff9f['plugins']['has']('TodoListEditing');_0x383d6a['registerBlockAttribute']('listItemId'),_0x383d6a['registerBlockAttribute']('listType'),_0x383d6a['registerBlockAttribute']('listIndent'),_0x4387bb&&_0x383d6a['registerBlockAttribute']('todoListChecked');}},ht=class extends _0x11cb42{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5508cc=this['editor']['config']['get']('list.properties'),_0x5d51ca=this['editor']['plugins']['get']('SuggestionsConversion');_0x5508cc['styles']&&_0x5d51ca['registerBlockAttribute']('listStyle'),_0x5508cc['reversed']&&_0x5d51ca['registerBlockAttribute']('listReversed'),_0x5508cc['startIndex']&&_0x5d51ca['registerBlockAttribute']('listStart');}},ut=class extends _0x11cb42{['afterInit'](){const _0x333ad3=this['editor'],_0x476b70=_0x333ad3['plugins']['get']('SuggestionsConversion');_0x333ad3['plugins']['has']('MultiLevelList')&&_0x476b70['registerBlockAttribute']('listMarkerStyle');}},dt=class extends _0x11cb42{['afterInit'](){const _0xe85a01=this['editor'];if(!_0xe85a01['plugins']['has']('TableEditing'))return;const _0x48afdb=_0xe85a01['plugins']['get']('SuggestionsConversion');_0x48afdb['registerBlockAttribute']('headingRows'),_0x48afdb['registerBlockAttribute']('headingColumns');}},gt=class extends _0x11cb42{['afterInit'](){const {plugins:_0x4764ff}=this['editor'];if(!_0x4764ff['has']('TablePropertiesEditing'))return;const _0x21ff43=_0x4764ff['get']('SuggestionsConversion');for(const _0x59a0dd of['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'])_0x21ff43['registerBlockAttribute'](_0x59a0dd);}},ft=class extends _0x11cb42{['afterInit'](){const _0x224de3=this['editor'],_0x1ff62d=_0x224de3['plugins']['get']('SuggestionsConversion');_0x224de3['plugins']['has']('TableLayout')&&_0x1ff62d['registerBlockAttribute']('tableType');}},mt=class extends _0x11cb42{['afterInit'](){const _0xf0f782=this['editor'],_0xb1a413=this['editor']['plugins']['get']('SuggestionsConversion');_0xf0f782['plugins']['has']('Uploadcare')&&_0xf0f782['plugins']['has']('UploadcareImageEdit')&&_0xb1a413['registerBlockAttribute']('uploadcareImageId');}},pt=class extends _0x11cb42{['afterInit'](){const _0x438c39=this['editor'];if(!_0x438c39['plugins']['has']('ShiftEnter'))return;const _0x2cd0fc=_0x438c39['plugins']['get']('SuggestionsConversion'),_0x573aeb=(_0xd38e3c,_0x39f052,_0x24d534,_0x11cb1d)=>{if(_0x11cb1d&&!_0x24d534['options']['showSuggestionHighlights'])return;if(!_0x24d534['consumable']['test'](_0x39f052['markerRange'],_0xd38e3c['name']))return;const _0x5a4b90=_0x438c39['model'];for(const _0x418c09 of _0x39f052['markerRange']['getItems']()){if(!_0x418c09['is']('element','softBreak'))continue;const _0x1393dc='deletion'==_0x39f052['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xda2ac2,authorId:_0x51a0a2}=J(_0x39f052['markerName']),_0x1cb61a=_0x24d534['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1393dc,'data-suggestion':_0xda2ac2,'data-author-id':_0x51a0a2}),_0x11e73e=_0x24d534['mapper']['toViewPosition'](_0x5a4b90['createPositionBefore'](_0x418c09));!_0x11cb1d&&_0x2cd0fc['_activeMarkers']['includes'](_0x39f052['markerName'])&&_0x24d534['writer']['addClass']('ck-suggestion-marker--active',_0x1cb61a),_0x24d534['writer']['insert'](_0x11e73e,_0x1cb61a),_0x24d534['mapper']['bindElementToMarker'](_0x1cb61a,_0x39f052['markerName']);}};_0x438c39['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x81925e,_0x2d3828,_0x22337e)=>{_0x573aeb(_0x81925e,_0x2d3828,_0x22337e,!0x1);},{'priority':'high'}),_0x438c39['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e8379,_0x1bdfe1,_0x538a07)=>{_0x573aeb(_0x4e8379,_0x1bdfe1,_0x538a07,!0x1);},{'priority':'high'}),_0x438c39['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45168c,_0x386f36,_0x4f5694)=>{_0x573aeb(_0x45168c,_0x386f36,_0x4f5694,!0x0);},{'priority':'high'}),_0x438c39['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3eb81e,_0x1e4f6d,_0x12bc6b)=>{_0x573aeb(_0x3eb81e,_0x1e4f6d,_0x12bc6b,!0x0);},{'priority':'high'});}},kt=class extends _0x11cb42{['afterInit'](){const _0x30712c=this['editor'];if(!_0x30712c['plugins']['has']('MediaEmbedEditing'))return;const _0x40ce17=_0x30712c['plugins']['get']('SuggestionsConversion');_0x30712c['plugins']['has']('MediaEmbedResizeEditing')&&_0x40ce17['registerBlockAttribute']('resizedWidth'),_0x30712c['plugins']['has']('MediaEmbedStyleEditing')&&_0x40ce17['registerBlockAttribute']('mediaStyle'),_0x30712c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4a1e8b,{writer:_0x2bccad,options:_0x202ad8})=>{if(_0x202ad8['showSuggestionHighlights'])return _0x2bccad['createEmptyElement']('div');},'converterPriority':'high'}),_0x30712c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3826bf,_0x23f84a,_0xc8a914)=>{_0xc8a914['options']['showSuggestionHighlights']&&_0x3826bf['stop']();},{'priority':'high'});}},yt=class extends _0x11cb42{['afterInit'](){const _0x1bebb5=this['editor'];if(!_0x1bebb5['plugins']['has']('Table'))return;_0x1bebb5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2db629,_0x951b8d,_0x2892aa)=>{((_0x173574,_0x4c46c1,_0x4de692)=>{if(!_0x4de692['options']['showSuggestionHighlights'])return;const _0x4796e3=_0x4c46c1['item'];if(!_0x4796e3||!_0x4796e3['is']('element','tableCell'))return;const _0xe7ac7a=_0x4de692['mapper']['toViewElement'](_0x4796e3);if(_0xe7ac7a){const {id:_0x244318,authorId:_0x3ff827}=J(_0x4c46c1['markerName']);_0x481acd(_0xe7ac7a,_0x4de692['writer'],(_0x298d97,_0x3ab0d0,_0x1ab8e1)=>{_0x1ab8e1['addClass'](_0x3251dd(_0x3ab0d0['classes']),_0x298d97),_0x1ab8e1['setAttribute']('data-suggestion',_0x244318,_0x298d97),_0x1ab8e1['setAttribute']('data-author-id',_0x3ff827,_0x298d97);});}})(0x0,_0x951b8d,_0x2892aa);},{'priority':'highest'});}},bt=class extends _0x11cb42{['afterInit'](){const _0x58c290=this['editor'];_0x58c290['plugins']['has']('HorizontalLineEditing')&&_0x58c290['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xcf2365,{writer:_0x64ed63,options:_0x589c00})=>{if(!_0x589c00['showSuggestionHighlights'])return null;const _0x100860=_0x64ed63['createContainerElement']('div'),_0x387714=_0x64ed63['createEmptyElement']('hr');return _0x64ed63['addClass']('ck-horizontal-line',_0x100860),_0x64ed63['insert'](_0x64ed63['createPositionAt'](_0x100860,0x0),_0x387714),_0x100860;},'converterPriority':'high'});}},wt=class extends _0x11cb42{['afterInit'](){const {plugins:_0x7b60b2,model:_0x587344}=this['editor'];if(!_0x7b60b2['has']('TableCellPropertiesEditing'))return;const _0x4153c4=_0x7b60b2['get']('SuggestionsConversion');for(const _0x1c48f3 of['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'])_0x4153c4['registerBlockAttribute'](_0x1c48f3);_0x587344['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4153c4['registerBlockAttribute']('tableCellType');}},vt=class extends _0x11cb42{['afterInit'](){const _0x53d881=this['editor'];_0x53d881['plugins']['has']('TableEditing')&&_0x53d881['config']['get']('table.enableFooters')&&_0x53d881['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}},Ct=class extends _0x11cb42{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[K,Z,Q,tt,et,st,it,bt,nt,ot,rt,at,ct,lt,ht,kt,ut,pt,yt,dt,vt,ft,wt,gt,mt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x560bc4=this['editor'],_0x1e6fb3=(_0xac3b8a,_0x44372c,_0x3f277a)=>{const {id:_0x418e0c,authorId:_0x2983a9,type:_0x29696e,subType:_0x44f8d9}=J(_0xac3b8a['markerName']),_0x1955c8=['ck-suggestion-marker',this['_getClassName'](_0x29696e,_0x44f8d9)];let _0x12702c=0xbb8;return _0x3f277a||this['_activeMarkers']['includes'](_0xac3b8a['markerName'])&&(_0x1955c8['push']('ck-suggestion-marker--active'),_0x12702c=0xbc2),'deletion'==_0x29696e&&(_0x12702c+=0x5),{'classes':_0x1955c8,'attributes':{'data-suggestion':_0x418e0c,'data-author-id':_0x2983a9},'priority':_0x12702c};};_0x560bc4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x49713f,_0xb80585)=>_0x1e6fb3(_0x49713f,0x0,!0x1)}),_0x560bc4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x309a57,_0x4aa46f)=>_0x1e6fb3(_0x309a57,0x0,!0x0)}),_0x560bc4['conversion']['for']('dataDowncast')['add'](_0x5d8795=>{_0x5d8795['on']('addMarker:suggestion',(_0x396508,_0x3ba701,_0x3c83e4)=>{if(!_0x3c83e4['options']['showSuggestionHighlights'])return;const _0xc8e8df=_0x3ba701['item'];if(!_0xc8e8df)return;const _0xd15688=_0x3c83e4['mapper']['toViewElement'](_0xc8e8df);_0x560bc4['model']['schema']['isObject'](_0xc8e8df)&&_0xd15688&&!_0xd15688['getCustomProperty']('widget')&&_0xd15688['is']('containerElement')&&_0x4d1edb(_0xd15688,_0x3c83e4['writer']);},{'priority':'high'});});const _0x4d2468=(_0x3d56d1,_0x539f9a,_0x19a706,_0x45f894,_0x38def4)=>{if(_0x45f894&&!_0x19a706['options']['showSuggestionHighlights'])return;if(!_0x539f9a['item'])return;const {id:_0x2b6afd,authorId:_0x11eb2b,subType:_0x13bfd3}=J(_0x539f9a['markerName']);if(_0x38def4){const _0xdf818d=_0x13bfd3['split']('|')[0x0];if(!this['isBlockAttribute'](_0xdf818d))return;}if(_0x539f9a['item']['is']('selection'))return void _0x19a706['consumable']['consume'](_0x539f9a['item'],_0x3d56d1['name']);const _0x15470a=_0x19a706['mapper']['toViewElement'](_0x539f9a['item']);if(_0x539f9a['item']['is']('element')&&_0x560bc4['model']['schema']['isBlock'](_0x539f9a['item'])&&!_0x15470a['getCustomProperty']('addHighlight')){_0x19a706['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x15470a),_0x19a706['writer']['setAttribute']('data-suggestion',_0x2b6afd,_0x15470a),_0x19a706['writer']['setAttribute']('data-author-id',_0x11eb2b,_0x15470a),_0x19a706['mapper']['bindElementToMarker'](_0x15470a,_0x539f9a['markerName']),_0x45f894||(this['_activeMarkers']['includes'](_0x539f9a['markerName'])?_0x19a706['writer']['addClass']('ck-suggestion-marker--active',_0x15470a):_0x19a706['writer']['removeClass']('ck-suggestion-marker--active',_0x15470a));for(const _0x14f9f7 of _0x560bc4['model']['createRangeIn'](_0x539f9a['item'])['getItems']())_0x19a706['consumable']['consume'](_0x14f9f7,_0x3d56d1['name']);_0x19a706['consumable']['consume'](_0x539f9a['item'],_0x3d56d1['name']);}},_0x56cd13=(_0x1ec5bf,_0x29e0d5,_0x2d1ce1,_0x4c756a)=>{const _0x3a6e2b=_0x2d1ce1['mapper']['markerNameToElements'](_0x29e0d5['markerName']);if(_0x3a6e2b){if(_0x4c756a){const {subType:_0x4cf9a7}=J(_0x29e0d5['markerName']),_0x556f21=_0x4cf9a7['split']('|')[0x0];if(!this['isBlockAttribute'](_0x556f21))return;}for(const _0x6ecb3c of _0x3a6e2b)_0x6ecb3c['getCustomProperty']('addHighlight')||(_0x2d1ce1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x6ecb3c),_0x2d1ce1['writer']['removeAttribute']('data-suggestion',_0x6ecb3c),_0x2d1ce1['writer']['removeAttribute']('data-author-id',_0x6ecb3c),_0x2d1ce1['mapper']['unbindElementFromMarkerName'](_0x6ecb3c,_0x29e0d5['markerName']));}};_0x560bc4['conversion']['for']('editingDowncast')['add'](_0x3f93c2=>{_0x3f93c2['on']('addMarker:suggestion:formatBlock',(_0x3d042a,_0x3c6f2d,_0x364b18)=>{_0x4d2468(_0x3d042a,_0x3c6f2d,_0x364b18,!0x1,!0x1);},{'priority':'high'});}),_0x560bc4['conversion']['for']('editingDowncast')['add'](_0xb25112=>{_0xb25112['on']('addMarker:suggestion:attribute',(_0x1e8181,_0x299127,_0x41b428)=>{_0x4d2468(_0x1e8181,_0x299127,_0x41b428,!0x1,!0x0);},{'priority':'high'});}),_0x560bc4['conversion']['for']('editingDowncast')['add'](_0x413ac2=>{_0x413ac2['on']('removeMarker:suggestion:formatBlock',(_0x32c8e1,_0x1b5ef4,_0x5e2c7e)=>{_0x56cd13(0x0,_0x1b5ef4,_0x5e2c7e,!0x1);},{'priority':'high'});}),_0x560bc4['conversion']['for']('editingDowncast')['add'](_0x2967f0=>{_0x2967f0['on']('removeMarker:suggestion:attribute',(_0x47fd8b,_0x4b5c0c,_0x2d6898)=>{_0x56cd13(0x0,_0x4b5c0c,_0x2d6898,!0x0);},{'priority':'high'});}),_0x560bc4['conversion']['for']('dataDowncast')['add'](_0x5669da=>{_0x5669da['on']('addMarker:suggestion:formatBlock',(_0x56e63a,_0x49599d,_0x43d9c4)=>{_0x4d2468(_0x56e63a,_0x49599d,_0x43d9c4,!0x0,!0x1);},{'priority':'highest'});}),_0x560bc4['conversion']['for']('dataDowncast')['add'](_0x168d20=>{_0x168d20['on']('addMarker:suggestion:attribute',(_0x3fe837,_0x59449f,_0x5e637d)=>{_0x4d2468(_0x3fe837,_0x59449f,_0x5e637d,!0x0,!0x0);},{'priority':'highest'});}),_0x560bc4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x53df09,_0x2c12e8)=>_0x2c12e8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x53df09['substr'](0xb)}});const _0x4a9f49=(_0x2f25cc,_0x29ef71,_0x63bd82,_0x2db96e,_0x309b98)=>{if(_0x2db96e&&!_0x63bd82['options']['showSuggestionHighlights'])return;if(!_0x63bd82['consumable']['test'](_0x29ef71['markerRange'],_0x2f25cc['name']))return;const _0x63481b=this['_activeMarkers'],_0x11fa48=_0x29ef71['markerRange']['getWalker'](),_0x3641a5=_0x29ef71['markerRange']['start'],_0x2a6fc5=_0x560bc4['model']['schema'];let _0x50a4ba=null,_0x459704=null,_0x3f9879=!0x1,_0x42fcb6=!0x1;for(const _0x3dc2fa of _0x11fa48){const _0xdfce72=_0x3dc2fa['item'];_0x3f9879=_0x3f9879||_0x2a6fc5['isContent'](_0xdfce72);const _0x2935bb=_0x63bd82['mapper']['toViewElement'](_0xdfce72);if(_0x2935bb&&_0x2935bb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3dc2fa['type']&&(_0x2a6fc5['isBlock'](_0xdfce72)&&!_0x2a6fc5['isLimit'](_0xdfce72)&&(_0xdfce72['nextSibling']||_0x3641a5['isAtEnd']?_0x50a4ba&&_0x50a4ba['parent']==_0xdfce72||(_0x50a4ba=_0xdfce72,_0x21f039(_0x3dc2fa['previousPosition']),_0x42fcb6=!0x0):_0x459704=_0x459704||_0x3dc2fa['previousPosition']));}function _0x21f039(_0x2032a5){const {id:_0x3e133b,authorId:_0x515da9}=J(_0x29ef71['markerName']),_0x4eee11=_0x63bd82['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x309b98,'data-suggestion':_0x3e133b,'data-author-id':_0x515da9}),_0x199b36=_0x63bd82['mapper']['toViewPosition'](_0x2032a5);!_0x2db96e&&_0x63481b['includes'](_0x29ef71['markerName'])&&_0x63bd82['writer']['addClass']('ck-suggestion-marker--active',_0x4eee11),_0x63bd82['writer']['insert'](_0x199b36,_0x4eee11),_0x63bd82['mapper']['bindElementToMarker'](_0x4eee11,_0x29ef71['markerName']);}_0x3f9879||_0x42fcb6||!_0x459704||_0x21f039(_0x459704);};_0x560bc4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4c183a,_0xb6a6c2,_0x219fba)=>{_0x4a9f49(_0x4c183a,_0xb6a6c2,_0x219fba,!0x1,'merge');},{'priority':'high'}),_0x560bc4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5ba2d7,_0x59ce80,_0xd6ae35)=>{_0x4a9f49(_0x5ba2d7,_0x59ce80,_0xd6ae35,!0x0,'merge');},{'priority':'high'}),_0x560bc4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xe8c96d,_0x4de5b7,_0x4656d1)=>{_0x4a9f49(_0xe8c96d,_0x4de5b7,_0x4656d1,!0x1,'split');},{'priority':'high'}),_0x560bc4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x58758e,_0x32269b,_0x4ff275)=>{_0x4a9f49(_0x58758e,_0x32269b,_0x4ff275,!0x0,'split');},{'priority':'high'}),_0x560bc4['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e7957,_0x8dee0c,_0x3dc893)=>{((_0x887775,_0x229b9b,_0x497df0)=>{const _0x116d71=_0x497df0['mapper']['markerNameToElements'](_0x229b9b['markerName']);if(_0x116d71){for(const _0x4d77b4 of _0x116d71)(_0x4d77b4['hasClass']('ck-suggestion-marker-split')||_0x4d77b4['hasClass']('ck-suggestion-marker-merge'))&&(_0x497df0['mapper']['unbindElementFromMarkerName'](_0x4d77b4,_0x229b9b['markerName']),_0x497df0['writer']['remove'](_0x4d77b4));}})(0x0,_0x8dee0c,_0x3dc893);},{'priority':'high'});const _0x2a0ef1=(_0x24c41e,_0x27ec95,_0x39765a,_0x25a128)=>{if(_0x25a128&&!_0x39765a['options']['showSuggestionHighlights'])return;const _0x29d9f7=_0x27ec95['markerRange']['start'],_0x4c6721=_0x27ec95['markerRange']['end'],_0x3e96eb=_0x560bc4['model']['schema'];if(!_0x29d9f7['isTouching'](_0x4c6721)||!_0x29d9f7['nodeAfter'])return;const _0x5c45cc=_0x29d9f7['nodeAfter'];if(_0x3e96eb['isBlock'](_0x5c45cc)&&!_0x3e96eb['isLimit'](_0x5c45cc)&&_0x3e96eb['checkChild'](_0x5c45cc,'$text')){if(!_0x39765a['consumable']['consume'](_0x27ec95['markerRange'],_0x24c41e['name']))return;const {id:_0x4f757e,authorId:_0x2b171e}=J(_0x27ec95['markerName']),_0x46991c=_0x39765a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4f757e,'data-author-id':_0x2b171e}),_0x206f1c=_0x39765a['mapper']['toViewPosition'](_0x4c6721);!_0x25a128&&this['_activeMarkers']['includes'](_0x27ec95['markerName'])&&_0x39765a['writer']['addClass']('ck-suggestion-marker--active',_0x46991c),_0x39765a['writer']['insert'](_0x206f1c,_0x46991c),_0x39765a['mapper']['bindElementToMarker'](_0x46991c,_0x27ec95['markerName']);}};_0x560bc4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x453065,_0x33e8f8,_0x1f5889)=>{_0x2a0ef1(_0x453065,_0x33e8f8,_0x1f5889,!0x1);},{'priority':'high'}),_0x560bc4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d5200,_0x4a4a15,_0x3ddde5)=>{_0x2a0ef1(_0x5d5200,_0x4a4a15,_0x3ddde5,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x437647,_0xd9ddf6,_0x4337c2)=>{this['_activeMarkers']=_0x4337c2['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x53927b){this['_blockAttributeKeys']['add'](_0x53927b);}['registerInlineAttribute'](_0x18f506){this['_inlineAttributeKeys']['add'](_0x18f506);}['isBlockAttribute'](_0x1b5d0e){return this['_blockAttributeKeys']['has'](_0x1b5d0e);}['isInlineAttribute'](_0x1e07dd){return this['_inlineAttributeKeys']['has'](_0x1e07dd);}['isRegisteredAttribute'](_0xe055b4){return this['isInlineAttribute'](_0xe055b4)||this['isBlockAttribute'](_0xe055b4);}['_getClassName'](_0x1c3239,_0x3625d9){if('attribute'!=_0x1c3239)return'ck-suggestion-marker-'+_0x1c3239;const _0x4ed0b9=_0x3625d9['split']('|')[0x0];return this['isBlockAttribute'](_0x4ed0b9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}};function _t(_0x505ac9={},_0x195875){if(void 0x0!==_0x505ac9['dateTimeFormat']&&'function'!=typeof _0x505ac9['dateTimeFormat'])throw new _0x275ecb('invalid-date-time-format');return _0x4482e9=>{const _0x5b2dd2='string'==typeof _0x4482e9?_0x2f7668['fromISO'](_0x4482e9):_0x2f7668['fromJSDate'](_0x4482e9),_0x176a1a=_0x2f7668['now'](),_0x22e0a2=Math['floor'](_0x176a1a['diff'](_0x5b2dd2,'days')['days']);return _0x505ac9['dateTimeFormat']?_0x505ac9['dateTimeFormat'](_0x5b2dd2['toJSDate'](),_0x195875&&_0x195875['t']?_0x195875['t']:void 0x0):0x0===_0x22e0a2?_0x195875?$(_0x195875,'Today')+'\x20'+_0x5b2dd2['toFormat']('hh:mma'):_0x5b2dd2['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x22e0a2?_0x195875?$(_0x195875,'Yesterday')+'\x20'+_0x5b2dd2['toFormat']('hh:mma'):_0x5b2dd2['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x22e0a2<0x7?_0x195875?$(_0x195875,'Last')+'\x20'+$(_0x195875,_0x5b2dd2['toFormat']('EEEE'))+'\x20'+_0x5b2dd2['toFormat']('hh:mma'):_0x5b2dd2['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x5b2dd2['toFormat']('LL-dd-yyyy\x20hh:mma');};}function It(_0x95e1c4,_0x11aba0){const _0x124b99=_0x95e1c4['mapper']['markerNameToElements'](_0x11aba0['name']);if(!_0x124b99)return null;const _0x2d2185=_0x4397a6(_0x124b99['values']());return _0x95e1c4['view']['domConverter']['mapViewToDom'](_0x2d2185)||null;}function xt(_0x405000,_0x4316aa){if(0x0===_0x4316aa['length'])return null;const _0x23c6d5=[],_0x5a02ba=_0x405000['view']['domConverter'];for(const _0x76b7a2 of _0x4316aa){const _0x278a8c=_0x405000['mapper']['markerNameToElements'](_0x76b7a2['name']);if(!_0x278a8c)continue;const _0x3990de=Array['from'](_0x278a8c)['map'](_0x2156c2=>_0x5a02ba['mapViewToDom'](_0x2156c2))['filter'](_0x2152be=>!!_0x2152be);_0x23c6d5['push'](..._0x3990de);}if(0x0===_0x23c6d5['length'])return null;const _0x4a0952=[];for(const _0x261026 of _0x23c6d5){const _0x4b0e58=_0x261026['getClientRects']()['item'](0x0);_0x4b0e58&&_0x4a0952['push']({'x':_0x4b0e58['x'],'y':_0x4b0e58['y'],'domElement':_0x261026});}return 0x0===_0x4a0952['length']?null:(_0x4a0952['sort']((_0x37488f,_0x119ca7)=>_0x37488f['y']-_0x119ca7['y']||_0x37488f['x']-_0x119ca7['x']),_0x4a0952['map'](_0x5e9024=>_0x5e9024['domElement']));}function St(_0x4403ad,{limit:_0x5fae15,suffix:_0x491e4c='...'}){const _0x42d2d7=[];let _0x43d3cf=0x0;const _0x5713cf=_0x4403ad['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4fcdfd=0x0;_0x4fcdfd<_0x5713cf['length'];_0x4fcdfd++){let _0x4202b3=_0x5713cf[_0x4fcdfd];const _0x569585=Et(_0x4202b3);if(_0x4202b3['startsWith']('<')){if(_0x43d3cf>=_0x5fae15){const _0x1b73dc=_0x4202b3['match'](/[a-zA-Z]+/);if(!_0x1b73dc){_0x5713cf[_0x4fcdfd]='';continue;}const _0x4b1f3e=_0x1b73dc[0x0];_0x4202b3['startsWith']('</')?(_0x42d2d7['length']&&(_0x4202b3=''),_0x42d2d7['pop']()):(_0x42d2d7['push'](_0x4b1f3e),_0x4202b3='');}}else{if(_0x43d3cf>=_0x5fae15)_0x4202b3='';else{if(_0x43d3cf+_0x569585['length']>=_0x5fae15){let _0x1d4447=_0x5fae15-_0x43d3cf;if('\x20'===_0x569585[_0x1d4447-0x1])_0x1d4447--;else{const _0x5d9c4d=_0x569585['slice'](_0x1d4447)['indexOf']('\x20');-0x1!==_0x5d9c4d?_0x1d4447+=_0x5d9c4d:_0x1d4447=_0x4202b3['length'];}_0x4202b3=_0x569585['slice'](0x0,_0x1d4447)['join']('')+_0x491e4c,_0x43d3cf=_0x5fae15;}else _0x43d3cf+=_0x569585['length'];}}_0x5713cf[_0x4fcdfd]=_0x4202b3;}return _0x5713cf['join']('\x0a')['replace'](/\n/g,'');}function Et(_0x38301a){const _0x5d6311=[];for(let _0x227ac7=0x0;_0x227ac7<_0x38301a['length'];_0x227ac7++){const _0x1f75ed=_0x38301a['substring'](_0x227ac7)['match'](/^&[a-z0-9#]+;/);if(_0x1f75ed){const _0x52fb68=_0x1f75ed[0x0];_0x5d6311['push'](_0x52fb68),_0x227ac7+=_0x52fb68['length']-0x1;}else _0x5d6311['push'](_0x38301a[_0x227ac7]);}return _0x5d6311;}var Mt=class extends _0x20b5aa{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x547d0b){super(_0x547d0b);const _0xb91502=this['bindTemplate'];this['set']('message',$(_0x547d0b,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x547d0b,$(_0x547d0b,'Yes'),_0x14b686,'submit'),this['cancelView']=this['_createButtonView'](_0x547d0b,$(_0x547d0b,'No'),_0x16b4d6,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x249f4b(),this['keystrokes']=new _0x523998(),this['focusCycler']=new _0x555f79({'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':_0xb91502['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'](_0x2c1913,_0x1f0338,_0x23374d,_0x16a48b){const _0x24502d=new _0x19ba74(_0x2c1913);return _0x24502d['label']=_0x1f0338,_0x24502d['icon']=_0x23374d,_0x24502d['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x16a48b}}),_0x24502d['on']('execute',()=>this['fire'](_0x16a48b)),_0x24502d;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x4a45c7=>{this['keystrokes']['listenTo'](_0x4a45c7['element']),this['focusTracker']['add'](_0x4a45c7['element']);}),this['keystrokes']['set']('esc',(_0x3240e9,_0x4ac7da)=>{this['fire']('cancel'),_0x4ac7da();});}};function At(_0xf0047c){return class _0x2f43fc extends _0xf0047c{['showConfirm'](_0x14a6c6,_0x22e985){return this['confirmView']=new Mt(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x14a6c6,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x22e985['appendChild'](this['confirmView']['element']),_0x22e985['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x44e7bb,_0x313f89,_0x8f1604)=>{_0x8f1604||_0x22e985['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x11ab94=>this['confirmView']['on']('submit',_0x11ab94));}['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 Tt(_0x1e6ac3){let _0x209f65=0x0,_0x4d0da2=0x0;for(const _0x256032 of Nt(_0x1e6ac3))_0x209f65=(_0x209f65<<0x5)-_0x209f65+_0x256032,_0x209f65&=_0x209f65,[_0x209f65,_0x4d0da2]=[_0x4d0da2,_0x209f65];return Dt(_0x209f65)+Dt(_0x4d0da2);}function*Pt(_0x3573b2){null==_0x3573b2||null==_0x3573b2?yield 0x12b9b0a1:0x0===_0x3573b2||!0x1===_0x3573b2?yield 0x0:0x1===_0x3573b2||0x1==_0x3573b2?yield 0x1:Array['isArray'](_0x3573b2)?yield*function*(_0x4a08a7){for(const _0x4ecdf0 of _0x4a08a7)yield*Pt(_0x4ecdf0);}(_0x3573b2):'object'==typeof _0x3573b2?yield*Nt(_0x3573b2):'string'==typeof _0x3573b2?yield*Vt(_0x3573b2):'number'==typeof _0x3573b2&&(yield _0x3573b2);}function*Nt(_0x8be1d2){if(yield Bt('{'),_0x8be1d2){const _0x2b63ab=Object['keys'](_0x8be1d2)['sort']();for(const _0x555fd4 of _0x2b63ab){yield*Vt(_0x555fd4),yield Bt(':');const _0x5bf8c4=_0x8be1d2[_0x555fd4];yield*Pt(_0x5bf8c4);}}yield Bt('}');}function*Vt(_0x1fd160){yield Bt('\x22');for(const _0x2756fc of _0x1fd160)yield Bt(_0x2756fc);yield Bt('\x22');}function Bt(_0x467039){return _0x467039['charCodeAt'](0x0);}function Dt(_0x13bcc5){return(_0x13bcc5*=Math['sign'](_0x13bcc5))['toString'](0x24);}const $t=['root','roots','initialData','context','toolbar','rootsAttributes'],Ot=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Lt(_0x36d840,_0xb41451,_0x503db6,_0x3fcea6=[]){const _0x34d046='string'==typeof _0x36d840?_0x503db6['get'](_0x36d840)['constructor']:_0x36d840['prototype']['constructor'];if(_0xb41451['has'](_0x34d046))return _0xb41451['get'](_0x34d046);_0xb41451['set'](_0x34d046,!0x0);const _0x101ad8=[...Ot,..._0x3fcea6]['map'](_0x2bef82=>{if(_0x503db6['has'](_0x2bef82))return _0x503db6['get'](_0x2bef82)['constructor'];})['filter'](_0x382d0c=>_0x382d0c);if(_0x34d046&&_0x101ad8['includes'](_0x34d046))return _0xb41451['set'](_0x34d046,!0x1),!0x1;if(!_0x34d046['requires'])return _0xb41451['set'](_0x34d046,!0x0),!0x0;const _0x5140aa=_0x34d046['requires']['every'](_0x21aa8b=>Lt(_0x21aa8b,_0xb41451,_0x503db6,_0x3fcea6));return _0xb41451['set'](_0x34d046,_0x5140aa),_0x5140aa;}function Rt(_0x5387be,_0x6c47c3){const _0xd27103={};for(const _0x2380cb of _0x5387be['config']['names']())$t['includes'](_0x2380cb)||(_0xd27103[_0x2380cb]=_0x5387be['config']['get'](_0x2380cb));const _0x5e2d78=_0xd27103['plugins']||[],_0x300814=_0x5387be['constructor']['builtinPlugins']||[],_0x286904=_0x5e2d78['length']?_0x5e2d78:_0x300814,_0x9880a0=_0xd27103['extraPlugins']||[];delete _0xd27103['extraPlugins'];const _0x4026b2=_0xd27103['removePlugins']||[];delete _0xd27103['removePlugins'];const _0x5cde0d=_0x5387be['_context']['config']['get']('plugins')||[],_0x22ffe4=_0x286904['concat'](_0x9880a0)['concat'](_0x5cde0d)['map'](_0x269db4=>'string'==typeof _0x269db4?_0x300814['find'](_0x525edb=>_0x525edb['pluginName']==_0x269db4):_0x269db4)['filter'](_0x517da7=>!_0x4026b2['includes'](_0x517da7)&&!_0x4026b2['includes'](_0x517da7['pluginName'])),_0x32081c=Array['from'](new Set(_0x22ffe4)),_0x682fa1=new Map();return _0xd27103['plugins']=_0x32081c['filter'](_0x26eff0=>Lt(_0x26eff0,_0x682fa1,_0x5387be['plugins'],_0x6c47c3)),_0xd27103;}function Ft(_0x1e6805,_0x526bb7){const _0xd9bb80=[];_0x1e6805['document']['selection']['on']('change:range',()=>{const _0x53e34c=function(_0x1b7f7a,_0x330bec){const _0x268889=[];for(const _0x512726 of _0x1b7f7a['markers']){const _0xbda6c4=_0x512726['getRange']();(_0xbda6c4['containsPosition'](_0x330bec)||_0xbda6c4['start']['isEqual'](_0x330bec)||_0xbda6c4['end']['isEqual'](_0x330bec))&&_0x268889['push'](_0x512726);}return _0x268889;}(_0x1e6805,_0x1e6805['document']['selection']['focus']),_0x2b95f0=[],_0x355006=[],_0x29ada3=[];for(const _0x3d6c9a of _0xd9bb80)_0x53e34c['includes'](_0x3d6c9a)||_0x2b95f0['push'](_0x3d6c9a);for(const _0x3ebf1f of _0x53e34c)_0xd9bb80['includes'](_0x3ebf1f)||_0x355006['push'](_0x3ebf1f),_0x29ada3['push'](_0x3ebf1f);(_0x2b95f0['length']||_0x355006['length'])&&_0x526bb7({'left':_0x2b95f0,'entered':_0x355006}),_0xd9bb80['length']=0x0,_0xd9bb80['push'](..._0x29ada3);});}const Ht='Ctrl+Shift+E';function Ut(_0x3cc9b4,_0x2529a0){const _0x51efa9=_0x3cc9b4['element'];_0x3cc9b4['keystrokes']['listenTo'](_0x51efa9);for(const _0x41b9e1 of _0x2529a0)zt(_0x3cc9b4,_0x41b9e1);_0x2529a0['on']('change',(_0x54b34b,_0x4f146e)=>{for(const _0x5520fc of _0x4f146e['removed'])Wt(_0x3cc9b4,_0x5520fc);for(const _0x2d4e3f of Array['from'](_0x4f146e['added'])['reverse']())zt(_0x3cc9b4,_0x2d4e3f);}),_0x3cc9b4['keystrokes']['set']('enter',(_0x2a47ad,_0xe5d724)=>{_0x51efa9===_0x2a47ad['target']&&(_0x3cc9b4['focusCycler']['focusFirst'](),_0xe5d724());},{'filter':_0xd9b61d=>_0xd9b61d['target']===_0x51efa9}),_0x3cc9b4['keystrokes']['set']('esc',(_0x43b8f4,_0x4a425e)=>{_0x51efa9!==_0x43b8f4['target']?_0x3cc9b4['focus']():_0x3cc9b4['fire']('escape'),_0x4a425e();}),_0x3cc9b4['keystrokes']['set']('arrowdown',(_0x2d22e4,_0xd3c6de)=>{_0x51efa9===_0x2d22e4['target']&&(_0x3cc9b4['fire']('arrowdown'),_0xd3c6de());}),_0x3cc9b4['keystrokes']['set']('arrowup',(_0x3cac4a,_0x1d6a4d)=>{_0x51efa9===_0x3cac4a['target']&&(_0x3cc9b4['fire']('arrowup'),_0x1d6a4d());});}function zt(_0x9b234,_0x4f341f){_0x4f341f['isRendered']&&(_0x9b234['focusTracker']['add'](_0x4f341f['element']),_0x9b234['keystrokes']['listenTo'](_0x4f341f['element']),_0x4620ed(_0x4f341f)&&function(_0x18aed0,_0x4d16b3){const _0x3ef4cf=_0x18aed0['actions'],_0x43b3e9=_0x4d16b3['actions'];for(const _0x17d987 of Object['keys'](_0x3ef4cf))if(_0x17d987 in _0x43b3e9&&_0x3ef4cf[_0x17d987]!==_0x43b3e9[_0x17d987])return!0x1;return!0x0;}(_0x9b234['focusCycler'],_0x4f341f['focusCycler'])&&_0x9b234['focusCycler']['chain'](_0x4f341f['focusCycler']));}function Wt(_0x29a325,_0x56ca79){_0x29a325['focusTracker']['remove'](_0x56ca79['element']),_0x29a325['keystrokes']['stopListening'](_0x56ca79['element']),_0x4620ed(_0x56ca79)&&_0x29a325['focusCycler']['unchain'](_0x56ca79['focusCycler']);}const Yt='$elementId',jt='data-id';var Jt=class extends _0x529028{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x215d2b?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x4220e6,_0x63963d)=>{_0x63963d['on']('ready',()=>{this['_integrateEditor'](_0x63963d);});});}get['editor'](){if(this['context']instanceof _0x215d2b)return this['context'];{const _0x5425f1=this['context']['editors']['first'];if(!_0x5425f1)throw new _0x275ecb('documentcompare-no-editor',this);return _0x5425f1;}}['getDiff'](_0x2a6ca7,_0x192ccb,_0x7900f6={'anchor':'main','markDeletions':!0x1}){const _0x545d6f=_0x7900f6['targetEditor']||this['editor'],_0x8422f=_0x7900f6['anchor']??'main';let _0x51745e,_0x21fff7;if('string'==typeof _0x8422f){const _0xa78f0c=_0x545d6f['model']['document']['getRoot'](_0x8422f);if(!_0xa78f0c)throw new _0x275ecb('documentcompare-compare-no-root',this,{'anchor':_0x8422f});_0x51745e=_0xa78f0c,_0x21fff7=_0x545d6f['model']['createPositionAt'](_0xa78f0c,0x0);}else _0x51745e=_0x8422f['clone'](),_0x21fff7=_0x8422f['clone']();return new Gt({'editor':_0x545d6f,'before':_0x545d6f['data']['parse'](_0x2a6ca7,_0x51745e),'after':_0x545d6f['data']['parse'](_0x192ccb,_0x51745e),'options':{'anchor':_0x21fff7,'markDeletions':_0x7900f6['markDeletions']}});}['isMarkedRemoveOperation'](_0x1d7d55){return'marker'==_0x1d7d55['type']&&_0x1d7d55['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x510700){_0x510700['conversion']['for']('upcast')['add'](_0x52fe75=>{_0x52fe75['on']('element',(_0x241df1,_0x27976a,_0x2fe1d2)=>{if(_0x27976a['modelRange']&&_0x2fe1d2['consumable']['consume'](_0x27976a['viewItem'],{'attributes':'data-id'}))for(const _0x1c8e33 of _0x27976a['modelRange']['getItems']({'shallow':!0x0})){if(_0x1c8e33['is']('$textProxy'))continue;const _0x5b4c8e=_0x27976a['viewItem']['getAttribute'](jt);_0x5b4c8e&&_0x2fe1d2['writer']['setAttribute'](Yt,_0x5b4c8e,_0x1c8e33);}},{'priority':'low'});}),_0x510700['model']['schema']['addAttributeCheck'](()=>!0x0,Yt);}},Gt=class{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x4e86bd,before:_0x299ce5,after:_0x3227f5,options:_0x484a4e}){this['_editor']=_0x4e86bd,this['_markDeletions']=!!_0x484a4e['markDeletions'],this['_anchor']=_0x484a4e['anchor'];const _0x5de23f=this['_tokenizeModel'](_0x299ce5),_0x53fd32=this['_tokenizeModel'](_0x3227f5);this['_diffItems']=this['_diffModelTokens'](_0x5de23f,_0x53fd32),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x299ce5['markers'],_0x3227f5['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0xb0741d=this['_editor']['model']['document'],_0xdec2b6=[];let _0x23c21d=_0xb0741d['version'];for(const _0x4361d7 of this['_operationsData'])switch(_0x4361d7['type']){case'attribute':{const _0x5667b4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']),_0x245db6=new _0x27f33c(_0x5667b4,_0x5667b4['getShiftedBy'](_0x4361d7['howMany'])),_0x2c8b07=JSON['parse'](_0x4361d7['oldValue']),_0x518ce6=JSON['parse'](_0x4361d7['newValue']);_0xdec2b6['push'](new _0xc4dd68(_0x245db6,_0x4361d7['key'],_0x2c8b07,_0x518ce6,_0x23c21d++));break;}case'insert':{const _0x4a7923=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']),_0x137c16=this['_makeModelFromTokens'](_0x4361d7['tokens']);_0xdec2b6['push'](new _0x78b42b(_0x4a7923,_0x137c16,_0x23c21d++));break;}case'remove':{const _0x35c4e0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']),_0x252154=new _0x375446(_0xb0741d['graveyard'],[0x0]);_0xdec2b6['push'](new _0x1319d8(_0x35c4e0,_0x4361d7['howMany'],_0x252154,_0x23c21d++));break;}case'rename':{const _0x1c7cb1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']);_0xdec2b6['push'](new _0x2de6f1(_0x1c7cb1,_0x4361d7['oldName'],_0x4361d7['newName'],_0x23c21d++));break;}case'split':{const _0x2f2629=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']),_0x4909aa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']['slice'](0x0,-0x1));_0x4909aa['offset']++,_0xdec2b6['push'](new _0x5e9c01(_0x2f2629,Number['NEGATIVE_INFINITY'],_0x4909aa,null,_0x23c21d++));break;}case'merge':{const _0x2dbd07=_0x4361d7['path']['slice'](),_0x468659=_0x2dbd07['slice'](0x0,-0x1);_0x468659[_0x468659['length']-0x1]++,_0x468659['push'](0x0);const _0x5afded=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x468659),_0x385fc2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2dbd07),_0x296422=new _0x375446(_0xb0741d['graveyard'],[0x0]);_0xdec2b6['push'](new _0x470146(_0x5afded,Number['NEGATIVE_INFINITY'],_0x385fc2,_0x296422,_0x23c21d++));break;}case'marker':case'markedRemove':{let _0x51e2f9=null;_0x4361d7['range']&&(_0x51e2f9=new _0x27f33c(this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['range']['start']),this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['range']['end'])));const _0x141729='marker'==_0x4361d7['type']?_0x4361d7['name']:'$markedRemove:'+_0x400e20();_0xdec2b6['push'](new _0x5e0f36(_0x141729,null,_0x51e2f9,_0xb0741d['model']['markers'],!0x0,_0x23c21d++));break;}case'unwrap':{const _0x30d65d=_0x4361d7['path']['slice']();_0x30d65d['push'](0x0);const _0x472fd9=_0x4361d7['path']['slice'](),_0x55bfba=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30d65d),_0x3bf769=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x472fd9),_0x19ccca=new _0x375446(_0xb0741d['graveyard'],[0x0]);_0xdec2b6['push'](new _0x1319d8(_0x55bfba,_0x4361d7['howMany'],_0x3bf769,_0x23c21d++)),_0xdec2b6['push'](new _0x1319d8(_0x3bf769['getShiftedBy'](_0x4361d7['howMany']),0x1,_0x19ccca,_0x23c21d++));break;}case'wrap':{const _0x51bebf=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['range']['start']),_0x466082=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['range']['end']),_0x47ba00=_0x4361d7['token']['element']['_clone'](!0x1);_0x47ba00['_removeAttribute'](Yt);const _0x23b3e9=_0x4361d7['range']['end']['slice']();_0x23b3e9['push'](0x0);const _0x595aa6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x23b3e9);_0xdec2b6['push'](new _0x78b42b(_0x466082,_0x47ba00,_0x23c21d++)),_0xdec2b6['push'](new _0x1319d8(_0x51bebf,_0x466082['offset']-_0x51bebf['offset'],_0x595aa6,_0x23c21d++));break;}}return _0xdec2b6;}['_tokenizeModel'](_0x3f2e43){const _0x10258f=[],_0x18b1a0=new _0x100733({'boundaries':_0x27f33c['_createIn'](_0x3f2e43)});let _0x260518='',_0x459019=null;const _0x15fe98=[''],_0x63f001=new Map();for(const _0x3bdc4f of _0x18b1a0)if('elementStart'==_0x3bdc4f['type']||'elementEnd'==_0x3bdc4f['type']){let _0x5e5b54=_0x15fe98[0x0];''!==_0x260518&&(_0x10258f['push'](...this['_makeTokensFromTextByWords'](_0x260518,_0x459019,_0x5e5b54)),_0x260518='');const _0x3bb266=_0x3bdc4f['item'];let _0x406ee1;_0x3bb266['getAttribute']('$elementId')?_0x406ee1=_0x3bb266['getAttribute'](Yt):'elementStart'==_0x3bdc4f['type']?(_0x406ee1=qt(_0x3bb266),_0x63f001['set'](_0x3bb266,_0x406ee1)):_0x406ee1=_0x63f001['get'](_0x3bb266);const _0x491feb=this['_getElementCategory'](_0x3bb266);'solid'==_0x491feb&&('elementStart'==_0x3bdc4f['type']?(_0x5e5b54=_0x406ee1,_0x15fe98['unshift'](_0x5e5b54)):_0x15fe98['shift']());const _0x36c3bd={'type':'element','element':_0x3bb266,'elementId':_0x406ee1,'category':_0x491feb,'isStart':'elementStart'==_0x3bdc4f['type'],'limitId':_0x5e5b54};_0x10258f['push'](_0x36c3bd);}else''==_0x260518&&(_0x459019=_0x3bdc4f['previousPosition']['clone']()),_0x260518+=_0x3bdc4f['item']['data'];return''!==_0x260518&&_0x10258f['push'](...this['_makeTokensFromTextByWords'](_0x260518,_0x459019,_0x15fe98[0x0])),_0x10258f;}['_makeTokensFromTextByWords'](_0x24c04e,_0x10fd43,_0x7a02cc){const _0xe65176=_0x24c04e['matchAll'](/(\s)/g),_0x544300=Array['from'](_0xe65176)['map'](_0x1a13dc=>_0x1a13dc['index']);_0x544300['push'](_0x24c04e['length']),0x0==_0x544300[0x0]&&_0x544300['shift']();const _0x2e69b4=[],_0x51168b=_0x10fd43['parent'];let _0x4ba372=0x0,_0x3b023d=_0x10fd43['offset'];for(let _0x25c056=0x0;_0x25c056<_0x544300['length'];_0x25c056++)_0x2e69b4['push']({'type':'text','data':_0x24c04e['slice'](_0x4ba372,_0x544300[_0x25c056]),'parent':_0x51168b,'offset':_0x3b023d,'limitId':_0x7a02cc}),_0x4ba372=_0x544300[_0x25c056],_0x3b023d=_0x10fd43['offset']+_0x544300[_0x25c056];return _0x2e69b4;}['_getElementCategory'](_0xf5375c){const _0x2bbc4a=this['_editor']['model']['schema'];return _0x2bbc4a['isLimit'](_0xf5375c)||_0x2bbc4a['isContent'](_0xf5375c)||_0x2bbc4a['isInline'](_0xf5375c)?'solid':_0x2bbc4a['isBlock'](_0xf5375c)?'block':function(_0x2bdc99,_0x3989a2){const _0x94fa33=_0x2bdc99['parent'];if(!_0x94fa33||_0x94fa33['is']('documentFragment'))return!0x1;if(_0x3989a2['checkChild'](_0x94fa33,'$text'))return!0x1;for(const _0x4f5189 of _0x2bdc99['getChildren']())if(_0x4f5189['is']('$text'))return!0x0;return!0x1;}(_0xf5375c,_0x2bbc4a)?'solid':'container';}['_diffModelTokens'](_0x560137,_0x1efc4e){const _0xad2491=_0xedbbfb(_0x560137,_0x1efc4e,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0xad2491);const _0x11cb6e=_0xad2491['flatMap'](_0x58080b=>{const _0x91e468=_0x58080b['added']?'added':_0x58080b['removed']?'removed':'unchanged';return _0x58080b['value']['map'](_0x173d3c=>({'token':_0x173d3c,'change':_0x91e468}));});let _0x3f6d2d=0x0;for(const _0x28daf0 of _0x11cb6e)'added'!=_0x28daf0['change']&&('unchanged'==_0x28daf0['change']&&(_0x28daf0['before']=_0x560137[_0x3f6d2d]),_0x3f6d2d++);return _0x11cb6e;}['_handleUnclosedBlockOpeningTags'](_0x2e629e){for(let _0xa87e74=0x0;_0xa87e74<_0x2e629e['length']-0x1;_0xa87e74++)if(_0x2e629e[_0xa87e74]['removed']&&_0x2e629e[_0xa87e74+0x1]['added']){const _0x9fa46f=this['_findUnclosedBlockOpeningToken'](_0x2e629e[_0xa87e74]['value']);if(null!==_0x9fa46f){const _0x257de3=this['_findUnclosedBlockOpeningToken'](_0x2e629e[_0xa87e74+0x1]['value']),_0x18ee88=_0x2e629e[_0xa87e74]['value']['splice'](_0x9fa46f),_0x265b80=_0x2e629e[_0xa87e74+0x1]['value']['splice'](_0x257de3),_0x2788e9=[_0x265b80['shift']()];_0x18ee88['shift']();const _0x39aa6c={'value':_0x18ee88,'removed':!0x0},_0x4b1749={'value':_0x265b80,'added':!0x0},_0x4d4fad={'value':_0x2788e9};_0x2e629e['splice'](_0xa87e74+0x2,0x0,_0x4d4fad,_0x39aa6c,_0x4b1749);}}}['_findUnclosedBlockOpeningToken'](_0x3d7426){let _0x23b0e6=0x0,_0x3ba172=-0x1;for(let _0x3a4065=0x0;_0x3a4065<_0x3d7426['length'];_0x3a4065++){const _0x3e7082=_0x3d7426[_0x3a4065];'element'==_0x3e7082['type']&&'block'==_0x3e7082['category']&&(_0x23b0e6+=_0x3e7082['isStart']?0x1:-0x1,_0x3e7082['isStart']&&(_0x3ba172=_0x3a4065));}return 0x0===_0x23b0e6?null:_0x3ba172;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x39b037=0x0;_0x39b037<this['_diffItems']['length'];_0x39b037++){const _0x492fc5=this['_diffItems'][_0x39b037]['change'],_0x4daa7a=[];_0x4daa7a['push'](this['_diffItems'][_0x39b037]);let _0x4a22cd=_0x39b037+0x1;for(;this['_diffItems'][_0x4a22cd]&&this['_diffItems'][_0x4a22cd]['change']==_0x492fc5;)_0x4daa7a['push'](this['_diffItems'][_0x4a22cd]),_0x4a22cd++,_0x39b037++;const _0x2fe244=_0x4daa7a['map'](_0x4bd630=>_0x4bd630['token']);if('unchanged'==_0x492fc5)_0x4daa7a['map'](_0x39a50f=>_0x39a50f['before'])['forEach'](_0x7fceba=>this['_traverseOverItem'](_0x7fceba));else{if('removed'==_0x492fc5){if(this['_markDeletions']){const _0x27e10a=this['_path']['slice']();_0x2fe244['forEach'](_0x1d92eb=>this['_traverseOverItem'](_0x1d92eb));const _0x14d232=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x27e10a,'end':_0x14d232}});}else this['_handleChanged'](_0x2fe244,!0x0,this['_path']['slice']());}else{const _0x2b7c04=_0x2fe244['filter'](_0x380e23=>'element'!=_0x380e23['type']||'container'!=_0x380e23['category']);this['_handleChanged'](_0x2b7c04,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x1e7a20=0x0;_0x1e7a20<this['_diffItems']['length'];_0x1e7a20++){const _0x1187f8=this['_diffItems'][_0x1e7a20]['change'],_0x12ad0c=[];_0x12ad0c['push'](this['_diffItems'][_0x1e7a20]);let _0x3a6f22=_0x1e7a20+0x1;for(;this['_diffItems'][_0x3a6f22]&&this['_diffItems'][_0x3a6f22]['change']==_0x1187f8;)_0x12ad0c['push'](this['_diffItems'][_0x3a6f22]),_0x3a6f22++,_0x1e7a20++;const _0x1f15a8=_0x12ad0c['map'](_0x37e887=>_0x37e887['token']);if('unchanged'==_0x1187f8){const _0x548b98=_0x12ad0c['map'](_0x3c2b7e=>_0x3c2b7e['before']);this['_handleUnchanged'](_0x548b98,_0x1f15a8);}else('added'==_0x1187f8||this['_markDeletions'])&&_0x1f15a8['forEach'](_0x3b5eed=>{'element'==_0x3b5eed['type']&&_0x3b5eed['isStart']&&this['_splitPostponedData']['has'](_0x3b5eed['element'])&&this['_handleSplitPostponedData'](_0x3b5eed['element'],this['_path']),this['_traverseOverItem'](_0x3b5eed);});}}['_handleSplitPostponedData'](_0x2b16f7,_0x4e3ff7){const _0x11469a=this['_splitPostponedData']['get'](_0x2b16f7);for(const _0x14b413 of _0x11469a)'rename'==_0x14b413['type']?this['_operationsData']['push']({'type':'rename','path':_0x4e3ff7['slice'](),'oldName':_0x14b413['oldValue'],'newName':_0x2b16f7['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x4e3ff7['slice'](),'howMany':0x1,'key':_0x14b413['key'],'oldValue':_0x14b413['oldValue'],'newValue':JSON['stringify'](_0x2b16f7['getAttribute'](_0x14b413['key'])??null)});}['_calculateMarkersOperationsData'](_0x820775,_0x338a05){const _0x5ce6c9={};for(const [_0x356dc4]of _0x820775)_0x5ce6c9[_0x356dc4]=null;for(const [_0x305ca4,_0x19bbf1]of _0x338a05)_0x5ce6c9[_0x305ca4]=_0x19bbf1;const _0x3089b6=Object['entries'](_0x5ce6c9)['map'](([_0x23b341,_0x80e007])=>({'type':'marker','name':_0x23b341,'range':_0x80e007?{'start':_0x80e007['start']['path']['slice'](),'end':_0x80e007['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x3089b6);}['_handleUnwraps'](){const _0x39acf3=new Map(),_0x2e4e34=[],_0x3bb25b=[0x0];let _0x30877d=this['_diffItems']['length']+0x1;for(let _0x340160=this['_diffItems']['length']-0x1;_0x340160>=0x0;_0x340160--){const {token:_0x31a7d5,before:_0x2d277d,change:_0x39a3bf}=this['_diffItems'][_0x340160];if('removed'!=_0x39a3bf&&(_0x30877d=_0x340160),'element'!=_0x31a7d5['type']||'container'!=_0x31a7d5['category']||'added'==_0x39a3bf)continue;const _0x996039=_0x2d277d?_0x2d277d['element']:_0x31a7d5['element'];if(_0x31a7d5['isStart']){const _0x1c9777=_0x39acf3['get'](_0x996039),_0x5740dc=this['_diffItems'][_0x1c9777];('removed'==_0x39a3bf||'removed'==_0x5740dc['change'])&&_0x30877d<_0x1c9777&&(this['_operationsData']['push']({'type':'unwrap','path':_0x996039['getPath'](),'howMany':_0x996039['maxOffset']+_0x3bb25b[0x0]}),_0x3bb25b['shift'](),_0x3bb25b[0x0]+=_0x996039['maxOffset']-0x1,_0x2e4e34['push'](_0x340160),_0x2e4e34['push'](_0x1c9777));}else _0x39acf3['set'](_0x996039,_0x340160),_0x3bb25b['unshift'](0x0);}_0x2e4e34['sort']((_0x1e7c1e,_0x2a5e7f)=>_0x2a5e7f-_0x1e7c1e),_0x2e4e34['forEach'](_0x4e85d7=>{const _0x9ade2e=this['_diffItems'][_0x4e85d7];'removed'==_0x9ade2e['change']?this['_diffItems']['splice'](_0x4e85d7,0x1):(_0x9ade2e['change']='added',delete _0x9ade2e['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x1e3af2=[];for(let _0x28f7c4=0x0;_0x28f7c4<this['_diffItems']['length'];_0x28f7c4++){const {change:_0x56c95f,token:_0x197023}=this['_diffItems'][_0x28f7c4];if('added'==_0x56c95f&&'element'==_0x197023['type']&&'container'==_0x197023['category']){if(_0x197023['isStart'])_0x1e3af2['push'](this['_path']['slice']());else{if(!_0x197023['isStart']){const _0x3172d3=_0x1e3af2['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x3172d3,'end':this['_path']['slice']()},'token':_0x197023}),this['_path'][this['_path']['length']-0x1]=_0x3172d3[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x56c95f||this['_markDeletions'])&&this['_traverseOverItem'](_0x197023);}}['_handleUnchanged'](_0xd9876c,_0x397d22){for(let _0x31cf2b=0x0;_0x31cf2b<_0xd9876c['length'];_0x31cf2b++){const _0x339ab2=_0xd9876c[_0x31cf2b];if('element'==_0x339ab2['type']&&_0x339ab2['isStart']){const _0x44100d=_0x397d22[_0x31cf2b];'block'==_0x339ab2['category']&&this['_handleElementRename'](_0x339ab2['element'],_0x44100d['element'],this['_path']),this['_handleElementAttributeChanges'](_0x339ab2['element'],_0x44100d['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x44100d);}else{if('element'!=_0x339ab2['type']||_0x339ab2['isStart']){if('text'==_0x339ab2['type']){const _0x4071e2=this['_path']['slice'](),_0x60b8a9=[],_0x5eca88=[];for(;_0xd9876c[_0x31cf2b]&&'text'==_0xd9876c[_0x31cf2b]['type'];)_0x60b8a9['push'](_0xd9876c[_0x31cf2b]),_0x5eca88['push'](_0x397d22[_0x31cf2b]),this['_path'][this['_path']['length']-0x1]+=_0xd9876c[_0x31cf2b]['data']['length'],_0x31cf2b++;_0x31cf2b--,this['_handleTextAttributeChanges'](_0x60b8a9,_0x5eca88,_0x4071e2);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x12a786,_0x17d290,_0xf36a73){const _0x251e64=[],_0xf1961a=[],_0x558d45=_0xf36a73['slice']();let _0x1c0c72=this['_parents']['length']-0x1;for(let _0x386323=0x0;_0x386323<_0x12a786['length'];_0x386323++){const _0x494306=_0x12a786[_0x386323],_0x1cf1a4=_0xf36a73['slice']();'element'!=_0x494306['type']||_0x494306['isStart']?'element'==_0x494306['type']&&_0x494306['isStart']?(_0xf36a73['push'](0x0),_0x1c0c72++,_0xf1961a['push']({'before':_0x1cf1a4,'after':_0xf36a73['slice'](),'index':_0x386323})):_0xf36a73[_0xf36a73['length']-0x1]+=_0x494306['data']['length']:(_0xf36a73['pop'](),_0xf36a73[_0xf36a73['length']-0x1]++,_0x1c0c72--,_0xf1961a['length']?_0xf1961a['pop']():_0x251e64['push']({'before':_0x1cf1a4,'after':_0xf36a73['slice'](),'index':_0x386323}));}if(_0xf1961a['length']!==_0x251e64['length'])throw new _0x275ecb('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x12a786,'isRemove':_0x17d290});const _0x4babff=[{'after':_0x558d45['slice'](),'index':-0x1},..._0x251e64,..._0xf1961a,{'before':_0xf36a73['slice'](),'index':_0x12a786['length']}];if(_0x17d290){for(let _0x3976f8=_0x4babff['length']-0x1;_0x3976f8>=0x1;_0x3976f8--){const _0xff0f4d=_0x4babff[_0x3976f8-0x1]['after'],_0x8250d4=_0x4babff[_0x3976f8]['before'],_0x43b95c=_0x8250d4[_0x8250d4['length']-0x1]-_0xff0f4d[_0xff0f4d['length']-0x1];_0x43b95c&&(this['_operationsData']['push']({'type':'remove','path':_0xff0f4d,'howMany':_0x43b95c}),_0x8250d4[_0x8250d4['length']-0x1]-=_0x43b95c);}for(const {before:_0x67622a}of _0x251e64)this['_operationsData']['push']({'type':'merge','path':_0x67622a});}else for(let _0x454603=0x0;_0x454603<_0x4babff['length']-0x1;_0x454603++){const _0x5018e1=_0x4babff[_0x454603]['after'],_0x477e15=_0x4babff[_0x454603+0x1]['before'],_0x26e1d1=_0x4babff[_0x454603]['index']+0x1,_0x471307=_0x4babff[_0x454603+0x1]['index'];if(_0x26e1d1!==_0x471307&&this['_operationsData']['push']({'type':'insert','path':_0x5018e1,'tokens':_0x12a786['slice'](_0x26e1d1,_0x471307)}),_0x454603<_0x251e64['length']){this['_operationsData']['push']({'type':'split','path':_0x477e15});const _0x1b9c17=_0x12a786[_0xf1961a[_0xf1961a['length']-0x1-_0x454603]['index']],_0x5c0e61=this['_parents'][_0x1c0c72]['element'];_0x5c0e61['name']!=_0x1b9c17['element']['name']&&this['_addSplitPostponedData'](_0x1b9c17['element'],{'type':'rename','oldValue':_0x5c0e61['name']});const _0x3d8214=this['_getAttributeChanges'](_0x5c0e61['getAttributes'](),_0x1b9c17['element']['getAttributes']());for(const _0x332023 in _0x3d8214){const _0x17a9bf=_0x3d8214[_0x332023]['oldValue'];this['_addSplitPostponedData'](_0x1b9c17['element'],{'type':'attribute','key':_0x332023,'oldValue':_0x17a9bf});}}}}['_addSplitPostponedData'](_0x2ef80d,_0x14b1b1){const _0xa62f9e=this['_splitPostponedData']['get'](_0x2ef80d)||[];_0xa62f9e['push'](_0x14b1b1),this['_splitPostponedData']['set'](_0x2ef80d,_0xa62f9e);}['_traverseOverItem'](_0x2ed7a6){'element'==_0x2ed7a6['type']&&_0x2ed7a6['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x2ed7a6)):'element'!=_0x2ed7a6['type']||_0x2ed7a6['isStart']?'text'==_0x2ed7a6['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x2ed7a6['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x4bafba,_0x1a75bd,_0xd2df15){_0x4bafba['name']!=_0x1a75bd['name']&&this['_operationsData']['push']({'type':'rename','path':_0xd2df15['slice'](),'oldName':_0x4bafba['name'],'newName':_0x1a75bd['name']});}['_handleElementAttributeChanges'](_0x454ddf,_0x367e42,_0x5badc3){const _0x39ac93=this['_getAttributeChanges'](_0x454ddf['getAttributes'](),_0x367e42['getAttributes']());for(const _0x79bc74 in _0x39ac93){const {oldValue:_0x1d5e9f,newValue:_0x4cf1c5}=_0x39ac93[_0x79bc74];this['_operationsData']['push']({'type':'attribute','path':_0x5badc3['slice'](),'howMany':0x1,'key':_0x79bc74,'oldValue':_0x1d5e9f,'newValue':_0x4cf1c5});}}['_handleTextAttributeChanges'](_0x38da4a,_0x485f26,_0x4457ed){const _0x3237d8=this['_operationsData'],_0x36b1e2=_0x38da4a[0x0]['parent'],_0x2cfd65=_0x38da4a[0x0]['offset'],_0x451810=_0x485f26[0x0]['parent'],_0x388b83=_0x485f26[0x0]['offset'],_0x5cd043=_0x38da4a['reduce']((_0x4baecd,_0x507468)=>_0x4baecd+_0x507468['data']['length'],0x0),_0x281fb8=this['_getAttrsForOffsets'](_0x36b1e2,_0x2cfd65,_0x5cd043),_0x8478b4=this['_getAttrsForOffsets'](_0x451810,_0x388b83,_0x5cd043),_0x102394={};for(let _0x295227=0x0;_0x295227<_0x5cd043;_0x295227++){const _0x4bdbb3=_0x281fb8[_0x2cfd65+_0x295227],_0x5a6a96=_0x8478b4[_0x388b83+_0x295227],_0x3c06d5=this['_getAttributeChanges'](_0x4bdbb3,_0x5a6a96);for(const _0x53923a in _0x102394)_0x3c06d5[_0x53923a]||_0xe6d47(_0x53923a);for(const _0x5b3d68 in _0x3c06d5){const {oldValue:_0x5804a9,newValue:_0x57b874}=_0x3c06d5[_0x5b3d68],_0x5c7330=_0x102394[_0x5b3d68];_0x5c7330?_0x5c7330['oldValue']==_0x5804a9&&_0x5c7330['newValue']==_0x57b874?_0x5c7330['length']++:(_0xe6d47(_0x5b3d68),_0x102394[_0x5b3d68]={'oldValue':_0x5804a9,'newValue':_0x57b874,'start':_0x295227,'length':0x1}):_0x102394[_0x5b3d68]={'oldValue':_0x5804a9,'newValue':_0x57b874,'start':_0x295227,'length':0x1};}}for(const _0x47474a in _0x102394)_0xe6d47(_0x47474a);function _0xe6d47(_0x79ed5a){const _0x570e92=_0x102394[_0x79ed5a],_0x3ca98a=_0x4457ed['slice']();_0x3ca98a[_0x3ca98a['length']-0x1]+=_0x570e92['start'],_0x3237d8['push']({'type':'attribute','path':_0x3ca98a,'howMany':_0x570e92['length'],'key':_0x79ed5a,'oldValue':_0x570e92['oldValue'],'newValue':_0x570e92['newValue']}),delete _0x102394[_0x79ed5a];}}['_getAttributeChanges'](_0x38f58c,_0x473fcc){const _0x1deba0={};for(const [_0x282261,_0xc6c3e]of _0x38f58c)_0x1deba0[_0x282261]={'oldValue':JSON['stringify'](_0xc6c3e),'newValue':'null'};for(const [_0x436538,_0x49a737]of _0x473fcc){const _0x2cf536=JSON['stringify'](_0x49a737);_0x1deba0[_0x436538]?_0x1deba0[_0x436538]['oldValue']==_0x2cf536?delete _0x1deba0[_0x436538]:_0x1deba0[_0x436538]['newValue']=_0x2cf536:_0x1deba0[_0x436538]={'oldValue':'null','newValue':_0x2cf536};}return delete _0x1deba0[Yt],_0x1deba0;}['_getAttrsForOffsets'](_0x4bf983,_0x3b867a,_0x1beee9){const _0x231a0e=new Array(_0x3b867a+_0x1beee9);let _0x1bc5a0=_0x4bf983['getChildAtOffset'](_0x3b867a),_0x596831=_0x1bc5a0['startOffset'];for(;_0x1bc5a0&&_0x596831<_0x3b867a+_0x1beee9;){const _0x223bdc=Array['from'](_0x1bc5a0['getAttributes']());_0x231a0e['fill'](_0x223bdc,_0x596831,_0x596831+_0x1bc5a0['offsetSize']),_0x596831+=_0x1bc5a0['offsetSize'],_0x1bc5a0=_0x1bc5a0['nextSibling'];}return _0x231a0e;}['_getPositionFromAnchorAndPath'](_0x584690,_0x3751ed){const _0x3b093d=[..._0x584690['path']['slice'](0x0,-0x1),_0x584690['offset']+_0x3751ed[0x0],..._0x3751ed['slice'](0x1)];return new _0x375446(_0x584690['root'],_0x3b093d);}['_makeModelFromTokens'](_0x58119d){const _0x2d4877=[];let _0x4d3da2=null;for(const _0x28565e of _0x58119d)if('element'!=_0x28565e['type']||_0x28565e['isStart']||_0x4d3da2!=_0x28565e['element']){if(!_0x4d3da2){if('text'==_0x28565e['type']){const _0x5ad1e1=_0x375446['_createAt'](_0x28565e['parent'],_0x28565e['offset']),_0xc66b7f=_0x27f33c['_createFromPositionAndShift'](_0x5ad1e1,_0x28565e['data']['length']),_0x2f907f=Array['from'](_0xc66b7f['getItems']())['map'](_0x5e870a=>new _0x47f7f3(_0x5e870a['data'],_0x5e870a['getAttributes']()));_0x2d4877['push'](..._0x2f907f);}else{_0x4d3da2=_0x28565e['element'];const _0x32fb4f=_0x28565e['element']['_clone'](!0x0);_0x32fb4f['_removeAttribute'](Yt);for(const _0x135313 of this['_editor']['model']['createRangeIn'](_0x32fb4f)['getItems']())_0x135313['is']('element')&&_0x135313['_removeAttribute'](Yt);_0x2d4877['push'](_0x32fb4f);}}}else _0x4d3da2=null;return _0x2d4877;}};function Kt(_0x3eb9ad,_0x1a9e07){return _0x3eb9ad['type']===_0x1a9e07['type']&&(_0x3eb9ad['limitId']===_0x1a9e07['limitId']&&('text'==_0x3eb9ad['type']?_0x3eb9ad['data']==_0x1a9e07['data']:function(_0x1ad8b2,_0x31aa5f){if(_0x1ad8b2['isStart']!=_0x31aa5f['isStart'])return!0x1;if(_0x1ad8b2['isStart']&&_0x1ad8b2['elementId']!=_0x31aa5f['elementId'])return!0x1;if(_0x1ad8b2['category']!=_0x31aa5f['category'])return!0x1;if('block'==_0x1ad8b2['category'])return!0x0;if('container'==_0x1ad8b2['category']&&_0x1ad8b2['elementId']!=_0x31aa5f['elementId'])return!0x1;return _0x1ad8b2['element']['name']==_0x31aa5f['element']['name'];}(_0x3eb9ad,_0x1a9e07)));}function qt(_0x365ca5){return Tt({'name':_0x365ca5['name'],...Object['fromEntries'](_0x365ca5['getAttributes']())});}export{z as AriaDescriptionView,F as CollaborationUserColor,At as ConfirmMixin,Yt as DATA_ID_MODEL_ATTRIBUTE,jt as DATA_ID_VIEW_ATTRIBUTE,Jt as DocumentCompare,Gt as DocumentDiff,Ht as FOCUS_ANNOTATION_KEYSTROKE,W as LateFocusButtonView,Y as LateFocusDropdownButtonView,D as Permissions,U as PillView,Ct as SuggestionsConversion,L as User,H as UserView,O as Users,G as fixElementSuggestionRange,xt as getAllMarkersDomElementsSorted,_t as getDateTimeFormatter,It as getMarkerDomElement,Tt as hashObject,Rt as sanitizeEditorConfig,Ut as setupThreadKeyboardNavigation,J as splitSuggestionMarkerName,Ft as surroundingMarkersDetector,St as trimHtml};
@@ -1,5 +1 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  export {};
@@ -1,54 +1,54 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module collaboration-core/permissions
7
- * @publicApi
8
- */
9
- import { ContextPlugin } from '@ckeditor/ckeditor5-core';
6
+ * @module collaboration-core/permissions
7
+ * @publicApi
8
+ */
9
+ import { ContextPlugin } from "@ckeditor/ckeditor5-core";
10
10
  /**
11
- * The `Permissions` plugin manages permissions set for the local user.
12
- *
13
- * Following is the list of all defined permissions:
14
- *
15
- * * `document:write` - modify the content of the document, and resolve comment threads created by any user,
16
- * * `comment:write` - create, edit and remove own comments and create, remove own comment threads,
17
- * and resolve comment threads created by any user,
18
- * * `comment:admin` - resolve and remove comment threads created by other users (enables `comment:write`).
19
- * * `comment:modify_all` - edit and remove any comments created by other users.
20
- *
21
- * For example, a user with `comment:write` permission but with no `document:write` permission will be able to add
22
- * comments but will not be able to change the document data (comments-only mode).
23
- *
24
- * By default, the following permissions are set: `document:write`, `comment:write`, `comment:admin`.
25
- *
26
- * Permissions are handled separately for each channel id (for each editor instance and context instance).
27
- *
28
- * See also the {@glink features/collaboration/users#user-permissions User permissions} guide to learn how to use this plugin.
29
- */
11
+ * The `Permissions` plugin manages permissions set for the local user.
12
+ *
13
+ * Following is the list of all defined permissions:
14
+ *
15
+ * * `document:write` - modify the content of the document, and resolve comment threads created by any user,
16
+ * * `comment:write` - create, edit and remove own comments and create, remove own comment threads,
17
+ * and resolve comment threads created by any user,
18
+ * * `comment:admin` - resolve and remove comment threads created by other users (enables `comment:write`).
19
+ * * `comment:modify_all` - edit and remove any comments created by other users.
20
+ *
21
+ * For example, a user with `comment:write` permission but with no `document:write` permission will be able to add
22
+ * comments but will not be able to change the document data (comments-only mode).
23
+ *
24
+ * By default, the following permissions are set: `document:write`, `comment:write`, `comment:admin`.
25
+ *
26
+ * Permissions are handled separately for each channel id (for each editor instance and context instance).
27
+ *
28
+ * See also the {@glink features/collaboration/users#user-permissions User permissions} guide to learn how to use this plugin.
29
+ */
30
30
  export declare class Permissions extends ContextPlugin {
31
- /**
32
- * @inheritDoc
33
- */
34
- static get pluginName(): "Permissions";
35
- /**
36
- * @inheritDoc
37
- */
38
- static get isOfficialPlugin(): true;
39
- /**
40
- * @inheritDoc
41
- */
42
- static get isPremiumPlugin(): true;
43
- /**
44
- * Sets permissions for editor/context instance with given `channelId`.
45
- *
46
- * If `channelId` is not set, the channel id of the editor/context to which the plugin was added will be used.
47
- * This means that it is not required if the plugin is added to the editor configuration and {@link module:core/context~Context}
48
- * is not used.
49
- *
50
- * @param permissions Permissions to set.
51
- * @param channelId The channel ID.
52
- */
53
- setPermissions(permissions: Array<string>, channelId?: string): void;
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ static get pluginName(): "Permissions";
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ static override get isOfficialPlugin(): true;
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ static override get isPremiumPlugin(): true;
43
+ /**
44
+ * Sets permissions for editor/context instance with given `channelId`.
45
+ *
46
+ * If `channelId` is not set, the channel id of the editor/context to which the plugin was added will be used.
47
+ * This means that it is not required if the plugin is added to the editor configuration and {@link module:core/context~Context}
48
+ * is not used.
49
+ *
50
+ * @param permissions Permissions to set.
51
+ * @param channelId The channel ID.
52
+ */
53
+ setPermissions(permissions: Array<string>, channelId?: string): void;
54
54
  }