@ckeditor/ckeditor5-collaboration-core 47.3.0-alpha.4 → 47.3.0-alpha.5

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.
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ContextPlugin as _0x5c6081,Editor as _0xfb7eca,Plugin as _0x3ef8e2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xe246c,Collection as _0x1960b3,uid as _0x1ad9b6,toArray as rt,first as _0x315271,FocusTracker as ts,KeystrokeHandler as _0x49892a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x513579,IconView as st,ButtonView as _0x5f1be3,DropdownButtonView as _0x1a89fd,FocusCycler as _0xc2a936,isViewWithFocusCycler as _0x21f91a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as it,IconCheck as _0x5dc1c9,IconCancel as _0x2e4957}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as at,toWidget as _0x4517aa}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x450e76,MoveOperation as _0x56f860,ModelPosition as _0x325155,ModelRange as _0x5ce1b5,MarkerOperation as _0x29192c,MergeOperation as _0x21b4e8,SplitOperation as _0x4822f2,RenameOperation as _0x2def0d,AttributeOperation as _0x3257bb,ModelTreeWalker as _0x4601a5,ModelText as _0x2a45f1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x2a86d0}from'diff';class C extends _0x5c6081{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x23c703,_0x324ee3){let _0x3157ff;if(_0x324ee3||(_0x324ee3=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x324ee3?_0x3157ff=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x3157ff=this['context']['editors']['find'](_0x1ba557=>_0x1ba557['config']['get']('collaboration.channelId')==_0x324ee3)),!_0x3157ff)throw new _0xe246c('permissions-set-permissions-invalid-channel-id',null);const _0x3ab65a=_0x3157ff['plugins'],_0x1ce722=_0x3ab65a['has']('CommentsRepository')?_0x3ab65a['get']('CommentsRepository'):void 0x0,_0x3ec64a=_0x3ab65a['has']('CommentsOnly')&&_0x3ab65a['get']('CommentsOnly'),_0x551a94=_0x23c703['includes']('document:write'),_0x5cc59b=_0x23c703['includes']('comment:modify_all'),_0x55ac3b=_0x23c703['includes']('comment:admin'),_0x229d7e=_0x23c703['includes']('comment:write'),_0xf11827=_0x229d7e||_0x55ac3b,_0x3f8b11=_0xf11827||_0x5cc59b,_0xdf5c0d=_0x551a94||_0xf11827;(_0x3ec64a&&(_0x3ec64a['isEnabled']=!_0x551a94&&_0x3f8b11),_0x3157ff instanceof _0xfb7eca)&&(!(_0x551a94||_0x3f8b11&&_0x1ce722)?_0x3157ff['enableReadOnlyMode']('no-permissions'):_0x3157ff['disableReadOnlyMode']('no-permissions'));if(_0x1ce722){_0x1ce722['setPermissions']({'admin':_0x55ac3b,'modifyAll':_0x5cc59b,'write':_0x229d7e,'resolve':_0xdf5c0d},_0x324ee3);const _0x1e8bc3=_0x3157ff instanceof _0xfb7eca&&_0x3157ff['commands']['get']('addCommentThread');_0x1e8bc3&&(_0xf11827?_0x1e8bc3['clearForceDisabled']('noPermissions'):_0x1e8bc3['forceDisabled']('noPermissions'));}}}function U(_0x15a5d4,_0x523f8e){const t=_0x15a5d4['t'];switch(_0x523f8e){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class ct extends _0x5c6081{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x5b8441){super(_0x5b8441),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x1960b3(),this['_locale']=_0x5b8441['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:_0x59f15c,name:_0x2584a5,..._0x42e5d9}){if(!_0x59f15c||'string'!=typeof _0x59f15c)throw new _0xe246c('users-add-invalid-id');if(this['users']['has'](_0x59f15c))throw new _0xe246c('users-add-duplicated-id',null,{'id':_0x59f15c});const _0x1f396c=this['context']['config']['get']('users.getInitialsCallback'),_0x1edad7={..._0x42e5d9,'id':_0x59f15c,'name':A(this['_locale'],_0x2584a5),'color':this['_getNextColor']()};_0x1edad7['name']=A(this['_locale'],_0x1edad7['name']);const _0x52cbfc=new lt(_0x1edad7,_0x1f396c);return this['users']['add'](_0x52cbfc),_0x52cbfc;}['getUser'](_0x5d4381){return this['users']['get'](_0x5d4381);}['useAnonymousUser'](){const _0xc69790=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0xc69790);}['defineMe'](_0x2cf083){if(this['_myId'])throw new _0xe246c('users-me-already-defined',null);const _0x8ea062=this['getUser'](_0x2cf083);if(!_0x8ea062)throw new _0xe246c('users-me-missing-user',null);this['_myId']=_0x2cf083,_0x8ea062['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x159652=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x159652&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x255823=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x255823,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x547e10,_0x341f67){this['id']=_0x547e10['id'],this['color']=_0x547e10['color'],this['name']=_0x547e10['name'],this['initials']=_0x341f67?_0x341f67(this['name']):this['_computeInitials'](),this['avatar']=_0x547e10['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5223b2=this['name']['split']('\x20')['filter'](_0x22bf2a=>/^[\p{Letter}]/u['test'](_0x22bf2a));return 0x1===_0x5223b2['length']?this['_getInitial'](_0x5223b2[0x0]):0x0===_0x5223b2['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5223b2[0x0])+this['_getInitial'](_0x5223b2[_0x5223b2['length']-0x1]);}['_getInitial'](_0x398c74){return String['fromCodePoint'](_0x398c74['codePointAt'](0x0))['toUpperCase']();}}function A(_0xd62ba7,_0x5223f9=''){return''==(_0x5223f9=_0x5223f9['trim']())?U(_0xd62ba7,'Anonymous'):_0x5223f9;}class ut{['_id'];constructor(_0x4447e2){this['_id']=_0x4447e2;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class ht extends _0x513579{['name'];['notificationView'];constructor(_0x26d3cf,_0x2c3209,_0x23cf2c){super(_0x26d3cf),this['name']=_0x2c3209['name'],this['notificationView']=null;const _0x26209a=['ck','ck-user'],_0x26598a=['ck','ck-user__img'];if(_0x2c3209['isAnonymous']&&_0x26598a['push']('ck-user__anonymous'),!_0x2c3209['isAnonymous']&&_0x2c3209['isMe']&&_0x26209a['push']('ck-user_me'),_0x2c3209['avatar']&&_0x26598a['push']('ck-user__avatar'),_0x23cf2c){const _0x5be70a=new st();_0x5be70a['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x5be70a['content']=it,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x23cf2c},'children':[_0x5be70a]};}const _0x31fe89=[{'tag':'div','attributes':{'class':_0x26598a,'style':{'background-image':_0x2c3209['avatar']?'url(\x27'+_0x2c3209['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x2c3209['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x2c3209['name']},'children':[{'text':_0x2c3209['initials']}]}];this['notificationView']&&_0x31fe89['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x26209a,'data-user-id':_0x2c3209['id']},'children':_0x31fe89});}}class dt extends _0x513579{['id'];constructor(_0x235620,_0x3c3ed2){super(_0x235620),this['id']='ck-aria-description-'+_0x1ad9b6(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x3c3ed2}]});}}class ft extends _0x5f1be3{['render'](){super['render'](),re(this);}}class gt extends _0x1a89fd{['render'](){super['render'](),re(this);}}function re(_0x1cf304){_0x1cf304['listenTo'](_0x1cf304['element'],'mousedown',(_0x18a9a8,_0x485410)=>{_0x485410['stopPropagation'](),_0x485410['preventDefault']();}),_0x1cf304['listenTo'](_0x1cf304['element'],'mouseup',()=>{_0x1cf304['element']['focus']();});}function v(_0x52aa98){const _0x348a2d=_0x52aa98['split'](':');return{'group':_0x348a2d[0x0],'type':_0x348a2d[0x1],'subType':_0x348a2d['length']>=0x5?_0x348a2d[0x2]:null,'id':_0x348a2d['length']<0x5?_0x348a2d[0x2]:_0x348a2d[0x3],'authorId':_0x348a2d['length']<0x5?_0x348a2d[0x3]:_0x348a2d[0x4],'markerCount':0x6==_0x348a2d['length']?_0x348a2d[0x5]:null};}function mt(_0x540095,_0x28568a){const _0x2f92bd=_0x540095['end']['nodeBefore'];if(_0x2f92bd&&_0x2f92bd['is']('element')&&_0x28568a['schema']['isBlock'](_0x2f92bd)&&!_0x28568a['schema']['isObject'](_0x2f92bd)){const _0x37004a=_0x28568a['createPositionAt'](_0x2f92bd,'end');return _0x28568a['createRange'](_0x540095['start'],_0x37004a);}return _0x540095;}class M extends _0x3ef8e2{['afterInit'](){const _0x2d9a6e=this['editor'];if(!_0x2d9a6e['plugins']['has']('AlignmentEditing'))return;_0x2d9a6e['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x3ef8e2{['afterInit'](){const _0x34862b=this['editor'],_0x5bc737=_0x34862b['plugins']['get']('SuggestionsConversion');for(const _0x421321 of ii){if(!_0x34862b['plugins']['has'](_0x421321))continue;const _0x1e958c=_0x421321['slice'](0x0,-0x7)['toLowerCase']();_0x5bc737['registerInlineAttribute'](_0x1e958c);}}}class I extends _0x3ef8e2{['afterInit'](){const _0x5bc143=this['editor'],_0x5624fd=_0x5bc143['plugins']['get']('SuggestionsConversion');_0x5bc143['plugins']['has']('BookmarkEditing')&&_0x5624fd['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x3ef8e2{['afterInit'](){const _0x2c5a3a=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x13b4de,commandName:_0x25dde1}of no)this['editor']['plugins']['has'](_0x13b4de)&&_0x2c5a3a['registerInlineAttribute'](_0x25dde1);}}class T extends _0x3ef8e2{['afterInit'](){const _0x1c96ed=this['editor'];if(!_0x1c96ed['plugins']['has']('HighlightEditing'))return;_0x1c96ed['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x3ef8e2{['afterInit'](){const _0x34710a=this['editor'];if(!_0x34710a['plugins']['has']('HtmlEmbed'))return;_0x34710a['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x3ef8e2{['afterInit'](){const _0x11fb3d=this['editor'];if(!_0x11fb3d['plugins']['has']('ImageEditing'))return;const _0x28e924=_0x11fb3d['plugins']['get']('SuggestionsConversion');_0x28e924['registerBlockAttribute']('src'),_0x11fb3d['plugins']['has']('ImageResize')&&_0x28e924['registerBlockAttribute']('resizedWidth'),_0x11fb3d['plugins']['has']('ImageTextAlternativeEditing')&&_0x28e924['registerBlockAttribute']('alt'),_0x11fb3d['plugins']['has']('PictureEditing')&&_0x28e924['registerBlockAttribute']('sources'),_0x11fb3d['plugins']['has']('ImageSizeAttributes')&&(_0x28e924['registerBlockAttribute']('width'),_0x28e924['registerBlockAttribute']('height'));}}class $ extends _0x3ef8e2{['afterInit'](){const _0x1d51e8=this['editor'],_0x968ceb=_0x1d51e8['plugins']['get']('SuggestionsConversion');_0x1d51e8['plugins']['has']('IndentBlock')&&_0x968ceb['registerBlockAttribute']('blockIndent');}}class x extends _0x3ef8e2{['afterInit'](){const _0x478df0=this['editor'];if(!_0x478df0['plugins']['has']('LineHeight'))return;_0x478df0['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x3ef8e2{['afterInit'](){const _0x4eac52=this['editor'];if(!_0x4eac52['plugins']['has']('LinkEditing'))return;const _0x3136e5=_0x4eac52['plugins']['get']('SuggestionsConversion'),_0x4d4685=_0x4eac52['commands']['get']('link');_0x3136e5['registerInlineAttribute']('linkHref');for(const _0x2ea135 of _0x4d4685['manualDecorators'])_0x3136e5['registerInlineAttribute'](_0x2ea135['id']);}}class N extends _0x3ef8e2{['afterInit'](){const _0x5b17c1=this['editor'];if(!_0x5b17c1['plugins']['has']('ListEditing'))return;const _0x4bc460=_0x5b17c1['plugins']['get']('SuggestionsConversion'),_0x1c9958=_0x5b17c1['plugins']['has']('TodoListEditing');_0x4bc460['registerBlockAttribute']('listItemId'),_0x4bc460['registerBlockAttribute']('listType'),_0x4bc460['registerBlockAttribute']('listIndent'),_0x1c9958&&_0x4bc460['registerBlockAttribute']('todoListChecked');}}class P extends _0x3ef8e2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4b45f4=this['editor']['config']['get']('list.properties'),_0x31bd6b=this['editor']['plugins']['get']('SuggestionsConversion');_0x4b45f4['styles']&&_0x31bd6b['registerBlockAttribute']('listStyle'),_0x4b45f4['reversed']&&_0x31bd6b['registerBlockAttribute']('listReversed'),_0x4b45f4['startIndex']&&_0x31bd6b['registerBlockAttribute']('listStart');}}class K extends _0x3ef8e2{['afterInit'](){const _0x45c78b=this['editor'],_0x8d5785=_0x45c78b['plugins']['get']('SuggestionsConversion');_0x45c78b['plugins']['has']('MultiLevelList')&&_0x8d5785['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x3ef8e2{['afterInit'](){const _0x421738=this['editor'];if(!_0x421738['plugins']['has']('Style')||!_0x421738['plugins']['has']('DataSchema')||!_0x421738['config']['get']('style.definitions'))return;const _0x544dad=_0x421738['plugins']['get']('SuggestionsConversion'),_0x442027=_0x421738['config']['get']('style.definitions'),_0x56da11=_0x421738['plugins']['get']('GeneralHtmlSupport'),_0x211d3f=_0x421738['plugins']['get']('StyleUtils')['normalizeConfig'](_0x421738['plugins']['get']('DataSchema'),_0x442027),_0x219677=new Set();for(const _0x2b5eb3 of _0x211d3f['block']){const _0x3c5ff5=_0x56da11['getGhsAttributeNameForElement'](_0x2b5eb3['element']);_0x219677['add'](_0x3c5ff5);}const _0x5b9f42=new Set();for(const _0x3706aa of _0x211d3f['inline']){const _0x1f8bc2=_0x56da11['getGhsAttributeNameForElement'](_0x3706aa['element']);_0x5b9f42['add'](_0x1f8bc2);for(const _0x32bbe1 of _0x3706aa['ghsAttributes'])_0x5b9f42['add'](_0x32bbe1);}for(const _0x228bfd of _0x219677)_0x544dad['registerBlockAttribute'](_0x228bfd);for(const _0x374625 of _0x5b9f42)_0x544dad['registerInlineAttribute'](_0x374625);}}class z extends _0x3ef8e2{['afterInit'](){const _0x5e5b86=this['editor'];if(!_0x5e5b86['plugins']['has']('TableEditing'))return;const _0x1ba6c0=_0x5e5b86['plugins']['get']('SuggestionsConversion');_0x1ba6c0['registerBlockAttribute']('headingRows'),_0x1ba6c0['registerBlockAttribute']('headingColumns');}}class O extends _0x3ef8e2{['afterInit'](){const _0x326669=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x14341e=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x544eac of _0x14341e)_0x326669['registerBlockAttribute'](_0x544eac);}}class R extends _0x3ef8e2{['afterInit'](){const _0x4f42fe=this['editor'],_0x147a76=_0x4f42fe['plugins']['get']('SuggestionsConversion');_0x4f42fe['plugins']['has']('TableLayout')&&_0x147a76['registerBlockAttribute']('tableType');}}class F extends _0x3ef8e2{['afterInit'](){const _0x193dc2=this['editor'],_0x3dc288=this['editor']['plugins']['get']('SuggestionsConversion');_0x193dc2['plugins']['has']('Uploadcare')&&_0x193dc2['plugins']['has']('UploadcareImageEdit')&&_0x3dc288['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x3ef8e2{['afterInit'](){const _0x56a182=this['editor'];if(!_0x56a182['plugins']['has']('ShiftEnter'))return;const _0xf64fcc=_0x56a182['plugins']['get']('SuggestionsConversion'),_0x51f3d5=(_0x1d25ff,_0xa2f22b,_0x3393dc,_0x5cc2f8)=>{if(_0x5cc2f8&&!_0x3393dc['options']['showSuggestionHighlights'])return;if(!_0x3393dc['consumable']['test'](_0xa2f22b['markerRange'],_0x1d25ff['name']))return;const _0x1c721e=_0x56a182['model'];for(const _0x4b728c of _0xa2f22b['markerRange']['getItems']()){if(!_0x4b728c['is']('element','softBreak'))continue;const _0x2ba526='deletion'==_0xa2f22b['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1e57a7,authorId:_0x3bc989}=v(_0xa2f22b['markerName']),_0x1e989a=_0x3393dc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ba526,'data-suggestion':_0x1e57a7,'data-author-id':_0x3bc989}),_0x280e49=_0x3393dc['mapper']['toViewPosition'](_0x1c721e['createPositionBefore'](_0x4b728c));!_0x5cc2f8&&_0xf64fcc['_activeMarkers']['includes'](_0xa2f22b['markerName'])&&_0x3393dc['writer']['addClass']('ck-suggestion-marker--active',_0x1e989a),_0x3393dc['writer']['insert'](_0x280e49,_0x1e989a),_0x3393dc['mapper']['bindElementToMarker'](_0x1e989a,_0xa2f22b['markerName']);}};_0x56a182['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ecf81,_0x1e9953,_0x41c12a)=>{_0x51f3d5(_0x2ecf81,_0x1e9953,_0x41c12a,!0x1);},{'priority':'high'}),_0x56a182['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43f9a3,_0x39873c,_0x39aeae)=>{_0x51f3d5(_0x43f9a3,_0x39873c,_0x39aeae,!0x0);},{'priority':'high'});}}class J extends _0x3ef8e2{['afterInit'](){const _0x320e74=this['editor'];_0x320e74['plugins']['has']('MediaEmbedEditing')&&(_0x320e74['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x224a3c,{writer:_0x355d05,options:_0x866029})=>{if(_0x866029['showSuggestionHighlights'])return _0x355d05['createEmptyElement']('div');},'converterPriority':'high'}),_0x320e74['data']['downcastDispatcher']['on']('attribute:url:media',(_0x193f7f,_0x63ed55,_0x456855)=>{_0x456855['options']['showSuggestionHighlights']&&_0x193f7f['stop']();},{'priority':'high'}));}}class L extends _0x3ef8e2{['afterInit'](){const _0x1fd948=this['editor'];if(!_0x1fd948['plugins']['has']('Table'))return;_0x1fd948['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x28cbb6,_0x50740a,_0x5693c1)=>{((_0x4c78c9,_0x46b40b,_0x2214cd)=>{if(!_0x2214cd['options']['showSuggestionHighlights'])return;const _0x26d823=_0x46b40b['item'];if(!_0x26d823||!_0x26d823['is']('element','tableCell'))return;const _0x2e04be=_0x2214cd['mapper']['toViewElement'](_0x26d823);if(_0x2e04be){const {id:_0x279c76,authorId:_0x1a7917}=v(_0x46b40b['markerName']);at(_0x2e04be,_0x2214cd['writer'],(_0x3e8b2d,_0x1c782d,_0x49a865)=>{_0x49a865['addClass'](rt(_0x1c782d['classes']),_0x3e8b2d),_0x49a865['setAttribute']('data-suggestion-id',_0x279c76,_0x3e8b2d),_0x49a865['setAttribute']('data-author-id',_0x1a7917,_0x3e8b2d);});}})(0x0,_0x50740a,_0x5693c1);},{'priority':'highest'});}}class Q extends _0x3ef8e2{['afterInit'](){const _0x1e6950=this['editor'];_0x1e6950['plugins']['has']('HorizontalLineEditing')&&_0x1e6950['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x473e28,{writer:_0x315c5c,options:_0x2ca273})=>{if(!_0x2ca273['showSuggestionHighlights'])return null;const _0x1d6a6e=_0x315c5c['createContainerElement']('div'),_0x58704c=_0x315c5c['createEmptyElement']('hr');return _0x315c5c['addClass']('ck-horizontal-line',_0x1d6a6e),_0x315c5c['insert'](_0x315c5c['createPositionAt'](_0x1d6a6e,0x0),_0x58704c),_0x1d6a6e;},'converterPriority':'high'});}}class kt extends _0x3ef8e2{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,Q,E,S,$,x,H,N,P,J,K,G,q,L,z,R,O,F];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20fbcb=this['editor'],_0x455b9a=(_0x12fcf5,_0x178ac4,_0xb145ea)=>{const {id:_0x916ee4,authorId:_0x5cf611,type:_0x39caf0,subType:_0x47cf3c}=v(_0x12fcf5['markerName']),_0x3a2de5=['ck-suggestion-marker',this['_getClassName'](_0x39caf0,_0x47cf3c)];let _0x4f1f28=0xbb8;return!_0xb145ea&&(this['_activeMarkers']['includes'](_0x12fcf5['markerName'])&&(_0x3a2de5['push']('ck-suggestion-marker--active'),_0x4f1f28=0xbc2)),('deletion'==_0x39caf0&&(_0x4f1f28+=0x5),{'classes':_0x3a2de5,'attributes':{'data-suggestion':_0x916ee4,'data-author-id':_0x5cf611},'priority':_0x4f1f28});};_0x20fbcb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a8d73,_0x3dd653)=>_0x455b9a(_0x2a8d73,0x0,!0x1)}),_0x20fbcb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x510531,_0x145979)=>_0x455b9a(_0x510531,0x0,!0x0)}),_0x20fbcb['conversion']['for']('dataDowncast')['add'](_0x10f159=>{_0x10f159['on']('addMarker:suggestion',(_0x9abe9d,_0x5eed16,_0x51ce15)=>{if(!_0x51ce15['options']['showSuggestionHighlights'])return;const _0xcadf01=_0x5eed16['item'];if(!_0xcadf01)return;const _0x4cbab9=_0x51ce15['mapper']['toViewElement'](_0xcadf01);_0x20fbcb['model']['schema']['isObject'](_0xcadf01)&&_0x4cbab9&&!_0x4cbab9['getCustomProperty']('widget')&&_0x4cbab9['is']('containerElement')&&_0x4517aa(_0x4cbab9,_0x51ce15['writer']);},{'priority':'high'});});const _0x580f4f=(_0x3d989e,_0x25a066,_0x481324,_0x5f268d,_0xf00990)=>{if(_0x5f268d&&!_0x481324['options']['showSuggestionHighlights'])return;if(!_0x25a066['item'])return;const {id:_0x26b0e1,authorId:_0xd107fc,subType:_0x33b2a7}=v(_0x25a066['markerName']);if(_0xf00990){const _0x30049d=_0x33b2a7['split']('|')[0x0];if(!this['isBlockAttribute'](_0x30049d))return;}if(_0x25a066['item']['is']('selection'))return void _0x481324['consumable']['consume'](_0x25a066['item'],_0x3d989e['name']);const _0x132818=_0x481324['mapper']['toViewElement'](_0x25a066['item']);if(_0x25a066['item']['is']('element')&&_0x20fbcb['model']['schema']['isBlock'](_0x25a066['item'])&&!_0x132818['getCustomProperty']('addHighlight')){_0x481324['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x132818),_0x481324['writer']['setAttribute']('data-suggestion',_0x26b0e1,_0x132818),_0x481324['writer']['setAttribute']('data-author-id',_0xd107fc,_0x132818),_0x481324['mapper']['bindElementToMarker'](_0x132818,_0x25a066['markerName']),_0x5f268d||(this['_activeMarkers']['includes'](_0x25a066['markerName'])?_0x481324['writer']['addClass']('ck-suggestion-marker--active',_0x132818):_0x481324['writer']['removeClass']('ck-suggestion-marker--active',_0x132818));for(const _0x2fe266 of _0x20fbcb['model']['createRangeIn'](_0x25a066['item'])['getItems']())_0x481324['consumable']['consume'](_0x2fe266,_0x3d989e['name']);_0x481324['consumable']['consume'](_0x25a066['item'],_0x3d989e['name']);}},_0xffea02=(_0x29a468,_0x3b570e,_0x632a6f,_0x35c32f)=>{const _0x5c800f=_0x632a6f['mapper']['markerNameToElements'](_0x3b570e['markerName']);if(_0x5c800f){if(_0x35c32f){const {subType:_0x40db38}=v(_0x3b570e['markerName']),_0x29c16e=_0x40db38['split']('|')[0x0];if(!this['isBlockAttribute'](_0x29c16e))return;}for(const _0x7702c4 of _0x5c800f)_0x7702c4['getCustomProperty']('addHighlight')||(_0x632a6f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7702c4),_0x632a6f['writer']['removeAttribute']('data-suggestion',_0x7702c4),_0x632a6f['writer']['removeAttribute']('data-author-id',_0x7702c4),_0x632a6f['mapper']['unbindElementFromMarkerName'](_0x7702c4,_0x3b570e['markerName']));}};_0x20fbcb['conversion']['for']('editingDowncast')['add'](_0x51adeb=>{_0x51adeb['on']('addMarker:suggestion:formatBlock',(_0x41fac3,_0x495446,_0x5417c4)=>{_0x580f4f(_0x41fac3,_0x495446,_0x5417c4,!0x1,!0x1);},{'priority':'high'});}),_0x20fbcb['conversion']['for']('editingDowncast')['add'](_0x141e90=>{_0x141e90['on']('addMarker:suggestion:attribute',(_0x4a6225,_0x43e0e1,_0xa652a1)=>{_0x580f4f(_0x4a6225,_0x43e0e1,_0xa652a1,!0x1,!0x0);},{'priority':'high'});}),_0x20fbcb['conversion']['for']('editingDowncast')['add'](_0x5516e3=>{_0x5516e3['on']('removeMarker:suggestion:formatBlock',(_0x2dd52b,_0x41a3e3,_0x1f1a2c)=>{_0xffea02(0x0,_0x41a3e3,_0x1f1a2c,!0x1);},{'priority':'high'});}),_0x20fbcb['conversion']['for']('editingDowncast')['add'](_0x2bc622=>{_0x2bc622['on']('removeMarker:suggestion:attribute',(_0x52693a,_0x17706c,_0x45db3f)=>{_0xffea02(0x0,_0x17706c,_0x45db3f,!0x0);},{'priority':'high'});}),_0x20fbcb['conversion']['for']('dataDowncast')['add'](_0x8b1fe=>{_0x8b1fe['on']('addMarker:suggestion:formatBlock',(_0x4820eb,_0x9ca0f3,_0x5c1e0b)=>{_0x580f4f(_0x4820eb,_0x9ca0f3,_0x5c1e0b,!0x0,!0x1);},{'priority':'highest'});}),_0x20fbcb['conversion']['for']('dataDowncast')['add'](_0x57d304=>{_0x57d304['on']('addMarker:suggestion:attribute',(_0x126fbc,_0x245919,_0x40672e)=>{_0x580f4f(_0x126fbc,_0x245919,_0x40672e,!0x0,!0x0);},{'priority':'highest'});}),_0x20fbcb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4ec4c2,_0x2dea3c)=>{if(_0x2dea3c['options']['showSuggestionHighlights']){const {id:_0x11c6d9,authorId:_0x2c7376}=v(_0x4ec4c2);return _0x4ec4c2['includes'](':split')||_0x4ec4c2['includes'](':merge')?{'group':'suggestion','name':_0x4ec4c2['substr'](0xb),'attributes':{'data-suggestion':_0x11c6d9,'data-author-id':_0x2c7376}}:null;}return{'group':'suggestion','name':_0x4ec4c2['substr'](0xb)};}});const _0x35f13d=(_0xb6906c,_0x5ca97c,_0x588a34,_0x291cbd,_0x3d42d6)=>{if(_0x291cbd&&!_0x588a34['options']['showSuggestionHighlights'])return;if(!_0x588a34['consumable']['test'](_0x5ca97c['markerRange'],_0xb6906c['name']))return;const _0x534e2f=this['_activeMarkers'],_0x59bb24=_0x5ca97c['markerRange']['getWalker'](),_0x3ee468=_0x5ca97c['markerRange']['start'],_0x3250d0=_0x20fbcb['model']['schema'];let _0x1ddf4d=null,_0x435d86=null,_0x1f65ba=!0x1,_0x315b74=!0x1;for(const _0x522c92 of _0x59bb24){const _0x4fe791=_0x522c92['item'];_0x1f65ba=_0x1f65ba||_0x3250d0['isContent'](_0x4fe791);const _0x53a8bf=_0x588a34['mapper']['toViewElement'](_0x4fe791);if(_0x53a8bf&&_0x53a8bf['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x522c92['type']&&(_0x3250d0['isBlock'](_0x4fe791)&&!_0x3250d0['isLimit'](_0x4fe791)&&(_0x4fe791['nextSibling']||_0x3ee468['isAtEnd']?_0x1ddf4d&&_0x1ddf4d['parent']==_0x4fe791||(_0x1ddf4d=_0x4fe791,_0x2df98b(_0x522c92['previousPosition']),_0x315b74=!0x0):_0x435d86=_0x435d86||_0x522c92['previousPosition']));}function _0x2df98b(_0x4d1f55){const {id:_0x30daae,authorId:_0x16a85e}=v(_0x5ca97c['markerName']),_0x26b13a=_0x588a34['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d42d6,'data-suggestion':_0x30daae,'data-author-id':_0x16a85e}),_0x5ed8e2=_0x588a34['mapper']['toViewPosition'](_0x4d1f55);!_0x291cbd&&_0x534e2f['includes'](_0x5ca97c['markerName'])&&_0x588a34['writer']['addClass']('ck-suggestion-marker--active',_0x26b13a),_0x588a34['writer']['insert'](_0x5ed8e2,_0x26b13a),_0x588a34['mapper']['bindElementToMarker'](_0x26b13a,_0x5ca97c['markerName']);}_0x1f65ba||_0x315b74||!_0x435d86||_0x2df98b(_0x435d86);};_0x20fbcb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x52e4ba,_0xc33eb5,_0x1d0a72)=>{_0x35f13d(_0x52e4ba,_0xc33eb5,_0x1d0a72,!0x1,'merge');},{'priority':'high'}),_0x20fbcb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1bbbe0,_0x17c1e0,_0x45b9fb)=>{_0x35f13d(_0x1bbbe0,_0x17c1e0,_0x45b9fb,!0x0,'merge');},{'priority':'high'}),_0x20fbcb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15d905,_0x3e76fa,_0x1c5975)=>{_0x35f13d(_0x15d905,_0x3e76fa,_0x1c5975,!0x1,'split');},{'priority':'high'}),_0x20fbcb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2fb140,_0x236703,_0x5a19c3)=>{_0x35f13d(_0x2fb140,_0x236703,_0x5a19c3,!0x0,'split');},{'priority':'high'}),_0x20fbcb['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x449f67,_0x115425,_0x488541)=>{((_0x5e4dff,_0x308341,_0x81908b)=>{const _0x50d810=_0x81908b['mapper']['markerNameToElements'](_0x308341['markerName']);if(_0x50d810){for(const _0x4c1b83 of _0x50d810)(_0x4c1b83['hasClass']('ck-suggestion-marker-split')||_0x4c1b83['hasClass']('ck-suggestion-marker-merge'))&&(_0x81908b['mapper']['unbindElementFromMarkerName'](_0x4c1b83,_0x308341['markerName']),_0x81908b['writer']['remove'](_0x4c1b83));}})(0x0,_0x115425,_0x488541);},{'priority':'high'});const _0xe24f10=(_0x4e8311,_0x2801a1,_0x3862ae,_0x59ca5f)=>{if(_0x59ca5f&&!_0x3862ae['options']['showSuggestionHighlights'])return;const _0x377f95=_0x2801a1['markerRange']['start'],_0x3bb295=_0x2801a1['markerRange']['end'],_0x5c6186=_0x20fbcb['model']['schema'];if(!_0x377f95['isTouching'](_0x3bb295)||!_0x377f95['nodeAfter'])return;const _0x7e63e5=_0x377f95['nodeAfter'];if(_0x5c6186['isBlock'](_0x7e63e5)&&!_0x5c6186['isLimit'](_0x7e63e5)&&_0x5c6186['checkChild'](_0x7e63e5,'$text')){if(!_0x3862ae['consumable']['consume'](_0x2801a1['markerRange'],_0x4e8311['name']))return;const {id:_0x2d7603,authorId:_0xfd80e4}=v(_0x2801a1['markerName']),_0x16b49b=_0x3862ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2d7603,'data-author-id':_0xfd80e4}),_0x53b71e=_0x3862ae['mapper']['toViewPosition'](_0x3bb295);!_0x59ca5f&&this['_activeMarkers']['includes'](_0x2801a1['markerName'])&&_0x3862ae['writer']['addClass']('ck-suggestion-marker--active',_0x16b49b),_0x3862ae['writer']['insert'](_0x53b71e,_0x16b49b),_0x3862ae['mapper']['bindElementToMarker'](_0x16b49b,_0x2801a1['markerName']);}};_0x20fbcb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2bfcd5,_0x485f56,_0x526583)=>{_0xe24f10(_0x2bfcd5,_0x485f56,_0x526583,!0x1);},{'priority':'high'}),_0x20fbcb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46822a,_0x11d2a2,_0x108876)=>{_0xe24f10(_0x46822a,_0x11d2a2,_0x108876,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x470dab,_0x5f2d20,_0x34bd1a)=>{this['_activeMarkers']=_0x34bd1a['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0xcc3483){this['_blockAttributeKeys']['add'](_0xcc3483);}['registerInlineAttribute'](_0x1e9688){this['_inlineAttributeKeys']['add'](_0x1e9688);}['isBlockAttribute'](_0x3684d0){return this['_blockAttributeKeys']['has'](_0x3684d0);}['isInlineAttribute'](_0x6edc7f){return this['_inlineAttributeKeys']['has'](_0x6edc7f);}['isRegisteredAttribute'](_0x588011){return this['isInlineAttribute'](_0x588011)||this['isBlockAttribute'](_0x588011);}['_getClassName'](_0x8615fd,_0x4f75b8){if('attribute'!=_0x8615fd)return'ck-suggestion-marker-'+_0x8615fd;const _0x31ec9f=_0x4f75b8['split']('|')[0x0];return this['isBlockAttribute'](_0x31ec9f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x14e198={},_0x28bc1f){if(void 0x0!==_0x14e198['dateTimeFormat']&&'function'!=typeof _0x14e198['dateTimeFormat'])throw new _0xe246c('invalid-date-time-format');return _0x443f66=>{const _0x3170ad='string'==typeof _0x443f66?tt['fromISO'](_0x443f66):tt['fromJSDate'](_0x443f66),_0x58417d=tt['now'](),_0x12340b=Math['floor'](_0x58417d['diff'](_0x3170ad,'days')['days']);return _0x14e198['dateTimeFormat']?_0x14e198['dateTimeFormat'](_0x3170ad['toJSDate'](),_0x28bc1f&&_0x28bc1f['t']?_0x28bc1f['t']:void 0x0):0x0===_0x12340b?_0x28bc1f?U(_0x28bc1f,'Today')+'\x20'+_0x3170ad['toFormat']('hh:mma'):_0x3170ad['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x12340b?_0x28bc1f?U(_0x28bc1f,'Yesterday')+'\x20'+_0x3170ad['toFormat']('hh:mma'):_0x3170ad['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x12340b<0x7?_0x28bc1f?U(_0x28bc1f,'Last')+'\x20'+U(_0x28bc1f,_0x3170ad['toFormat']('EEEE'))+'\x20'+_0x3170ad['toFormat']('hh:mma'):_0x3170ad['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x3170ad['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x581515,_0xbe22d3){const _0x2b5d56=_0x581515['mapper']['markerNameToElements'](_0xbe22d3['name']);if(!_0x2b5d56)return null;const _0x5c80eb=_0x315271(_0x2b5d56['values']());return _0x581515['view']['domConverter']['mapViewToDom'](_0x5c80eb)||null;}function wt(_0x335aea,_0x35a4a2){if(0x0===_0x35a4a2['length'])return null;const _0x17e9b1=[],_0x4cdb10=_0x335aea['view']['domConverter'];for(const _0x4280a9 of _0x35a4a2){const _0x37bbad=_0x335aea['mapper']['markerNameToElements'](_0x4280a9['name']);if(!_0x37bbad)continue;const _0x202530=Array['from'](_0x37bbad)['map'](_0x35858c=>_0x4cdb10['mapViewToDom'](_0x35858c))['filter'](_0x3d55a6=>!!_0x3d55a6);_0x17e9b1['push'](..._0x202530);}if(0x0===_0x17e9b1['length'])return null;const _0x38a00c=[];for(const _0x212a6e of _0x17e9b1){const _0x4faf08=_0x212a6e['getClientRects']()['item'](0x0);_0x4faf08&&_0x38a00c['push']({'x':_0x4faf08['x'],'y':_0x4faf08['y'],'domElement':_0x212a6e});}return 0x0===_0x38a00c['length']?null:(_0x38a00c['sort']((_0x340cb3,_0x328f9f)=>_0x340cb3['y']-_0x328f9f['y']||_0x340cb3['x']-_0x328f9f['x']),_0x38a00c['map'](_0x4c138e=>_0x4c138e['domElement']));}function bt(_0x45efe8,{limit:_0x468ba1,suffix:_0x1c08ae='...'}){const _0x2a55c1=[];let _0x145658=0x0;const _0xbecd8e=_0x45efe8['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x295a4a=0x0;_0x295a4a<_0xbecd8e['length'];_0x295a4a++){let _0x57fca9=_0xbecd8e[_0x295a4a];const _0x10dcdb=tn(_0x57fca9);if(_0x57fca9['startsWith']('<')){if(_0x145658>=_0x468ba1){const _0x45a48d=_0x57fca9['match'](/[a-zA-Z]+/);if(!_0x45a48d){_0xbecd8e[_0x295a4a]='';continue;}const _0x4075a2=_0x45a48d[0x0];_0x57fca9['startsWith']('</')?(_0x2a55c1['length']&&(_0x57fca9=''),_0x2a55c1['pop']()):(_0x2a55c1['push'](_0x4075a2),_0x57fca9='');}}else{if(_0x145658>=_0x468ba1)_0x57fca9='';else{if(_0x145658+_0x10dcdb['length']>=_0x468ba1){let _0x178ad7=_0x468ba1-_0x145658;if('\x20'===_0x10dcdb[_0x178ad7-0x1])_0x178ad7--;else{const _0x55cde9=_0x10dcdb['slice'](_0x178ad7)['indexOf']('\x20');-0x1!==_0x55cde9?_0x178ad7+=_0x55cde9:_0x178ad7=_0x57fca9['length'];}_0x57fca9=_0x10dcdb['slice'](0x0,_0x178ad7)['join']('')+_0x1c08ae,_0x145658=_0x468ba1;}else _0x145658+=_0x10dcdb['length'];}}_0xbecd8e[_0x295a4a]=_0x57fca9;}return _0xbecd8e['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x52fdbb){const _0x3a4132=[];for(let _0x5ae309=0x0;_0x5ae309<_0x52fdbb['length'];_0x5ae309++){const _0x4f2289=_0x52fdbb['substring'](_0x5ae309)['match'](/^&[a-z0-9#]+;/);if(_0x4f2289){const _0x32608f=_0x4f2289[0x0];_0x3a4132['push'](_0x32608f),_0x5ae309+=_0x32608f['length']-0x1;}else _0x3a4132['push'](_0x52fdbb[_0x5ae309]);}return _0x3a4132;}class V extends _0x513579{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x10b056){super(_0x10b056);const _0x46ea40=this['bindTemplate'];this['set']('message',U(_0x10b056,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x10b056,U(_0x10b056,'Yes'),_0x5dc1c9,'submit'),this['cancelView']=this['_createButtonView'](_0x10b056,U(_0x10b056,'No'),_0x2e4957,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x49892a(),this['focusCycler']=new _0xc2a936({'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':_0x46ea40['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'](_0x1a7a47,_0x332754,_0x37e751,_0x399d4d){const _0x38f29e=new _0x5f1be3(_0x1a7a47);return _0x38f29e['label']=_0x332754,_0x38f29e['icon']=_0x37e751,_0x38f29e['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x399d4d}}),_0x38f29e['on']('execute',()=>this['fire'](_0x399d4d)),_0x38f29e;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0xd43e18=>{this['keystrokes']['listenTo'](_0xd43e18['element']),this['focusTracker']['add'](_0xd43e18['element']);}),this['keystrokes']['set']('esc',(_0x5ca0ba,_0x2f3439)=>{this['fire']('cancel'),_0x2f3439();});}}function vt(_0x3e3a1e){return class extends _0x3e3a1e{['showConfirm'](_0x5495b4,_0x2df5a2){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x5495b4,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x2df5a2['appendChild'](this['confirmView']['element']),_0x2df5a2['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x5233ec,_0x447793,_0x303777)=>{_0x303777||_0x2df5a2['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x1c74a6=>this['confirmView']['on']('submit',_0x1c74a6));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0x5620db){let _0x21f559=0x0,_0x4fb5ac=0x0;for(const _0x215d1a of ne(_0x5620db))_0x21f559=(_0x21f559<<0x5)-_0x21f559+_0x215d1a,_0x21f559&=_0x21f559,[_0x21f559,_0x4fb5ac]=[_0x4fb5ac,_0x21f559];return ie(_0x21f559)+ie(_0x4fb5ac);}function*ee(_0x52d6dc){null==_0x52d6dc||null==_0x52d6dc?yield 0x12b9b0a1:0x0===_0x52d6dc||!0x1===_0x52d6dc?yield 0x0:0x1===_0x52d6dc||0x1==_0x52d6dc?yield 0x1:Array['isArray'](_0x52d6dc)?yield*function*(_0x1b9fa6){for(const _0x4d4b4d of _0x1b9fa6)yield*ee(_0x4d4b4d);}(_0x52d6dc):'object'==typeof _0x52d6dc?yield*ne(_0x52d6dc):'string'==typeof _0x52d6dc?yield*oe(_0x52d6dc):'number'==typeof _0x52d6dc&&(yield _0x52d6dc);}function*ne(_0x494a8c){if(yield te('{'),_0x494a8c){const _0x5cc434=Object['keys'](_0x494a8c)['sort']();for(const _0x4009d3 of _0x5cc434){yield*oe(_0x4009d3),yield te(':');const _0x47cf42=_0x494a8c[_0x4009d3];yield*ee(_0x47cf42);}}yield te('}');}function*oe(_0x2bc561){yield te('\x22');for(const _0x20bfd5 of _0x2bc561)yield te(_0x20bfd5);yield te('\x22');}function te(_0xb5bf20){return _0xb5bf20['charCodeAt'](0x0);}function ie(_0x3b7d3a){return(_0x3b7d3a*=Math['sign'](_0x3b7d3a))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x4382c6,_0x401c13,_0x80e9be,_0x13a2d9=[]){const _0x1f5ae7='string'==typeof _0x4382c6?_0x80e9be['get'](_0x4382c6)['constructor']:_0x4382c6['prototype']['constructor'];if(_0x401c13['has'](_0x1f5ae7))return _0x401c13['get'](_0x1f5ae7);_0x401c13['set'](_0x1f5ae7,!0x0);const _0xaf4264=[...et,..._0x13a2d9]['map'](_0x450346=>{if(_0x80e9be['has'](_0x450346))return _0x80e9be['get'](_0x450346)['constructor'];})['filter'](_0x44b59c=>_0x44b59c);if(_0x1f5ae7&&_0xaf4264['includes'](_0x1f5ae7))return _0x401c13['set'](_0x1f5ae7,!0x1),!0x1;if(!_0x1f5ae7['requires'])return _0x401c13['set'](_0x1f5ae7,!0x0),!0x0;const _0x5001ce=_0x1f5ae7['requires']['every'](_0x113d95=>ot(_0x113d95,_0x401c13,_0x80e9be,_0x13a2d9));return _0x401c13['set'](_0x1f5ae7,_0x5001ce),_0x5001ce;}function Ct(_0x3cd991,_0x2de092){const _0x26e186={};for(const _0x550bfb of _0x3cd991['config']['names']())nt['includes'](_0x550bfb)||(_0x26e186[_0x550bfb]=_0x3cd991['config']['get'](_0x550bfb));const _0x3d542a=_0x26e186['plugins']||[],_0x176c72=_0x3cd991['constructor']['builtinPlugins']||[],_0x144fd2=_0x3d542a['length']?_0x3d542a:_0x176c72,_0x37476d=_0x26e186['extraPlugins']||[];delete _0x26e186['extraPlugins'];const _0x749315=_0x26e186['removePlugins']||[];delete _0x26e186['removePlugins'];const _0x3c9285=_0x3cd991['_context']['config']['get']('plugins')||[],_0x11045=_0x144fd2['concat'](_0x37476d)['concat'](_0x3c9285)['map'](_0x4e8e42=>'string'==typeof _0x4e8e42?_0x176c72['find'](_0xb360cc=>_0xb360cc['pluginName']==_0x4e8e42):_0x4e8e42)['filter'](_0x46ab8d=>!_0x749315['includes'](_0x46ab8d)&&!_0x749315['includes'](_0x46ab8d['pluginName'])),_0xc1c0fe=Array['from'](new Set(_0x11045)),_0x2c42bd=new Map();return _0x26e186['plugins']=_0xc1c0fe['filter'](_0x40f435=>ot(_0x40f435,_0x2c42bd,_0x3cd991['plugins'],_0x2de092)),_0x26e186;}function _t(_0x1787d2,_0x3da91f){const _0xf69654=[];_0x1787d2['document']['selection']['on']('change:range',()=>{const _0x208d04=function(_0x45bf06,_0xed0090){const _0x420fb0=[];for(const _0xeb2328 of _0x45bf06['markers']){const _0x19e08c=_0xeb2328['getRange']();(_0x19e08c['containsPosition'](_0xed0090)||_0x19e08c['start']['isEqual'](_0xed0090)||_0x19e08c['end']['isEqual'](_0xed0090))&&_0x420fb0['push'](_0xeb2328);}return _0x420fb0;}(_0x1787d2,_0x1787d2['document']['selection']['focus']),_0x2393ea=[],_0x22febd=[],_0x5b1b1d=[];for(const _0x530a6b of _0xf69654)_0x208d04['includes'](_0x530a6b)||_0x2393ea['push'](_0x530a6b);for(const _0x5d350b of _0x208d04)_0xf69654['includes'](_0x5d350b)||_0x22febd['push'](_0x5d350b),_0x5b1b1d['push'](_0x5d350b);(_0x2393ea['length']||_0x22febd['length'])&&_0x3da91f({'left':_0x2393ea,'entered':_0x22febd}),_0xf69654['length']=0x0,_0xf69654['push'](..._0x5b1b1d);});}const xt='Ctrl+Shift+E';function It(_0x496778,_0x1bcf97){const _0x23fc88=_0x496778['element'];_0x496778['keystrokes']['listenTo'](_0x23fc88);for(const _0x14e6fa of _0x1bcf97)ro(_0x496778,_0x14e6fa);_0x1bcf97['on']('change',(_0x75ffa,_0x24535c)=>{for(const _0xe027d3 of _0x24535c['removed'])to(_0x496778,_0xe027d3);for(const _0x5e120d of Array['from'](_0x24535c['added'])['reverse']())ro(_0x496778,_0x5e120d);}),_0x496778['keystrokes']['set']('enter',(_0x227e0,_0x35c6d5)=>{_0x23fc88===_0x227e0['target']&&(_0x496778['focusCycler']['focusFirst'](),_0x35c6d5());},{'filter':_0x5940fa=>_0x5940fa['target']===_0x23fc88}),_0x496778['keystrokes']['set']('esc',(_0x4269cb,_0x1bb457)=>{_0x23fc88!==_0x4269cb['target']?_0x496778['focus']():_0x496778['fire']('escape'),_0x1bb457();}),_0x496778['keystrokes']['set']('arrowdown',(_0x574a87,_0x433a9b)=>{_0x23fc88===_0x574a87['target']&&(_0x496778['fire']('arrowdown'),_0x433a9b());}),_0x496778['keystrokes']['set']('arrowup',(_0x57d70a,_0x5aa42e)=>{_0x23fc88===_0x57d70a['target']&&(_0x496778['fire']('arrowup'),_0x5aa42e());});}function ro(_0x5947bd,_0x2a4855){_0x2a4855['isRendered']&&(_0x5947bd['focusTracker']['add'](_0x2a4855['element']),_0x5947bd['keystrokes']['listenTo'](_0x2a4855['element']),_0x21f91a(_0x2a4855)&&function(_0x5a8a2b,_0x5a6033){const _0x100d53=_0x5a8a2b['actions'],_0x5be594=_0x5a6033['actions'];for(const _0x6bf368 of Object['keys'](_0x100d53))if(_0x6bf368 in _0x5be594&&_0x100d53[_0x6bf368]!==_0x5be594[_0x6bf368])return!0x1;return!0x0;}(_0x5947bd['focusCycler'],_0x2a4855['focusCycler'])&&_0x5947bd['focusCycler']['chain'](_0x2a4855['focusCycler']));}function to(_0x43e3fc,_0x232209){_0x43e3fc['focusTracker']['remove'](_0x232209['element']),_0x43e3fc['keystrokes']['stopListening'](_0x232209['element']),_0x21f91a(_0x232209)&&_0x43e3fc['focusCycler']['unchain'](_0x232209['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x5c6081{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0xfb7eca?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x120d6b,_0x19e905)=>{_0x19e905['on']('ready',()=>{this['_integrateEditor'](_0x19e905);});});}get['editor'](){if(this['context']instanceof _0xfb7eca)return this['context'];{const _0x2d3044=this['context']['editors']['first'];if(!_0x2d3044)throw new _0xe246c('documentcompare-no-editor',this);return _0x2d3044;}}['getDiff'](_0x4d9064,_0x4a88ef,_0x3fed11={'anchor':'main','markDeletions':!0x1}){let _0x21b9fe,_0x143110;const _0x26da65=this['editor'];if('string'==typeof _0x3fed11['anchor']){const _0x447b3c=_0x26da65['model']['document']['getRoot'](_0x3fed11['anchor']);if(!_0x447b3c)throw new _0xe246c('documentcompare-compare-no-root',this,{'anchor':_0x3fed11['anchor']});_0x21b9fe=_0x447b3c,_0x143110=_0x26da65['model']['createPositionAt'](_0x447b3c,0x0);}else _0x21b9fe=_0x3fed11['anchor']['clone'](),_0x143110=_0x3fed11['anchor']['clone']();const _0x25f0ce=_0x26da65['data']['parse'](_0x4d9064,_0x21b9fe),_0x41b2be=_0x26da65['data']['parse'](_0x4a88ef,_0x21b9fe);return new Mt(_0x25f0ce,_0x41b2be,_0x26da65,{'anchor':_0x143110,'markDeletions':_0x3fed11['markDeletions']});}['isMarkedRemoveOperation'](_0x10a3fd){return'marker'==_0x10a3fd['type']&&_0x10a3fd['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x549cc0){_0x549cc0['conversion']['for']('upcast')['add'](_0x3b7b3e=>{_0x3b7b3e['on']('element',(_0x468698,_0x288e0f,_0x82e835)=>{if(_0x288e0f['modelRange'])for(const _0x5744c1 of _0x288e0f['modelRange']['getItems']({'shallow':!0x0})){if(_0x5744c1['is']('$textProxy'))continue;const _0x347868=_0x288e0f['viewItem']['getAttribute'](Et);_0x347868&&_0x82e835['writer']['setAttribute'](St,_0x347868,_0x5744c1);}},{'priority':'lowest'});}),_0x549cc0['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x226ba9,_0xba0715,_0x3569b1,_0x550e1e){this['_editor']=_0x3569b1,this['_markDeletions']=!!_0x550e1e['markDeletions'],this['_anchor']=_0x550e1e['anchor'];const _0x2423c4=this['_tokenizeModel'](_0x226ba9),_0x2b19ff=this['_tokenizeModel'](_0xba0715);this['_diffItems']=this['_diffModelTokens'](_0x2423c4,_0x2b19ff),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x226ba9['markers'],_0xba0715['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x2ba450=this['_editor']['model']['document'],_0x4de50b=[];let _0x5d482c=_0x2ba450['version'];for(const _0x29a717 of this['_operationsData'])switch(_0x29a717['type']){case'attribute':{const _0x378296=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']),_0x4eb3a3=_0x378296['getShiftedBy'](_0x29a717['howMany']),_0x3dd76d=new _0x5ce1b5(_0x378296,_0x4eb3a3),_0x111d81=JSON['parse'](_0x29a717['oldValue']),_0x3c3981=JSON['parse'](_0x29a717['newValue']);_0x4de50b['push'](new _0x3257bb(_0x3dd76d,_0x29a717['key'],_0x111d81,_0x3c3981,_0x5d482c++));break;}case'insert':{const _0x4b531f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']),_0x34336a=this['_makeModelFromTokens'](_0x29a717['tokens']);_0x4de50b['push'](new _0x450e76(_0x4b531f,_0x34336a,_0x5d482c++));break;}case'remove':{const _0x129379=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']),_0x179762=new _0x325155(_0x2ba450['graveyard'],[0x0]);_0x4de50b['push'](new _0x56f860(_0x129379,_0x29a717['howMany'],_0x179762,_0x5d482c++));break;}case'rename':{const _0x2a01f1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']);_0x4de50b['push'](new _0x2def0d(_0x2a01f1,_0x29a717['oldName'],_0x29a717['newName'],_0x5d482c++));break;}case'split':{const _0x4b78ad=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']),_0x1237ad=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']['slice'](0x0,-0x1));_0x1237ad['offset']++,_0x4de50b['push'](new _0x4822f2(_0x4b78ad,Number['NEGATIVE_INFINITY'],_0x1237ad,null,_0x5d482c++));break;}case'merge':{const _0x29b514=_0x29a717['path']['slice'](),_0x2b1e24=_0x29b514['slice'](0x0,-0x1);_0x2b1e24[_0x2b1e24['length']-0x1]++,_0x2b1e24['push'](0x0);const _0x1b7e42=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b1e24),_0x35d7b9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29b514),_0xf14c33=new _0x325155(_0x2ba450['graveyard'],[0x0]);_0x4de50b['push'](new _0x21b4e8(_0x1b7e42,Number['NEGATIVE_INFINITY'],_0x35d7b9,_0xf14c33,_0x5d482c++));break;}case'marker':case'markedRemove':{let _0x375724=null;if(_0x29a717['range']){const _0x574fc8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['range']['start']),_0x2cec80=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['range']['end']);_0x375724=new _0x5ce1b5(_0x574fc8,_0x2cec80);}const _0x5152f5='marker'==_0x29a717['type']?_0x29a717['name']:'$markedRemove:'+_0x1ad9b6();_0x4de50b['push'](new _0x29192c(_0x5152f5,null,_0x375724,_0x2ba450['model']['markers'],!0x0,_0x5d482c++));break;}case'unwrap':{const _0x40aedd=_0x29a717['path']['slice']();_0x40aedd['push'](0x0);const _0x22c852=_0x29a717['path']['slice'](),_0x5f3efd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x40aedd),_0x448c97=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x22c852),_0x3ad918=new _0x325155(_0x2ba450['graveyard'],[0x0]);_0x4de50b['push'](new _0x56f860(_0x5f3efd,_0x29a717['howMany'],_0x448c97,_0x5d482c++)),_0x4de50b['push'](new _0x56f860(_0x448c97['getShiftedBy'](_0x29a717['howMany']),0x1,_0x3ad918,_0x5d482c++));break;}case'wrap':{const _0x24a7af=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['range']['start']),_0x488b41=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['range']['end']),_0x3e27e6=_0x29a717['token']['element']['_clone'](!0x1),_0x46d9cf=_0x29a717['range']['end']['slice']();_0x46d9cf['push'](0x0);const _0x1e1df9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x46d9cf);_0x4de50b['push'](new _0x450e76(_0x488b41,_0x3e27e6,_0x5d482c++)),_0x4de50b['push'](new _0x56f860(_0x24a7af,_0x488b41['offset']-_0x24a7af['offset'],_0x1e1df9,_0x5d482c++));break;}}return _0x4de50b;}['_tokenizeModel'](_0x52f3af){const _0x3e6d13=[],_0x409727=_0x5ce1b5['_createIn'](_0x52f3af),_0x5d40ec=new _0x4601a5({'boundaries':_0x409727});let _0x38f509='',_0x51d57b=null;const _0x137424=[''],_0x279e6d=new Map();for(const _0x27b997 of _0x5d40ec)if('elementStart'==_0x27b997['type']||'elementEnd'==_0x27b997['type']){let _0x4c6f38=_0x137424[0x0];''!==_0x38f509&&(_0x3e6d13['push'](...this['_makeTokensFromTextByWords'](_0x38f509,_0x51d57b,_0x4c6f38)),_0x38f509='');const _0x572400=_0x27b997['item'];let _0xe96e72;_0x572400['getAttribute'](St)?_0xe96e72=_0x572400['getAttribute'](St):'elementStart'==_0x27b997['type']?(_0xe96e72=_(_0x572400),_0x279e6d['set'](_0x572400,_0xe96e72)):_0xe96e72=_0x279e6d['get'](_0x572400);const _0xf96e84=this['_getElementCategory'](_0x572400);'solid'==_0xf96e84&&('elementStart'==_0x27b997['type']?(_0x4c6f38=_0xe96e72,_0x137424['unshift'](_0x4c6f38)):_0x137424['shift']());const _0x36b6d6={'type':'element','element':_0x572400,'elementId':_0xe96e72,'category':_0xf96e84,'isStart':'elementStart'==_0x27b997['type'],'limitId':_0x4c6f38};_0x3e6d13['push'](_0x36b6d6);}else''==_0x38f509&&(_0x51d57b=_0x27b997['previousPosition']['clone']()),_0x38f509+=_0x27b997['item']['data'];return''!==_0x38f509&&_0x3e6d13['push'](...this['_makeTokensFromTextByWords'](_0x38f509,_0x51d57b,_0x137424[0x0])),_0x3e6d13;}['_makeTokensFromTextByWords'](_0x823e51,_0x32163c,_0x2f7e05){const _0xabef52=_0x823e51['matchAll'](/(\s)/g),_0xa82ac0=Array['from'](_0xabef52)['map'](_0x5286af=>_0x5286af['index']);_0xa82ac0['push'](_0x823e51['length']),0x0==_0xa82ac0[0x0]&&_0xa82ac0['shift']();const _0x27d7db=[],_0x3a3732=_0x32163c['parent'];let _0x39a5ac=0x0,_0x3fc393=_0x32163c['offset'];for(let _0x4415ea=0x0;_0x4415ea<_0xa82ac0['length'];_0x4415ea++)_0x27d7db['push']({'type':'text','data':_0x823e51['slice'](_0x39a5ac,_0xa82ac0[_0x4415ea]),'parent':_0x3a3732,'offset':_0x3fc393,'limitId':_0x2f7e05}),_0x39a5ac=_0xa82ac0[_0x4415ea],_0x3fc393=_0x32163c['offset']+_0xa82ac0[_0x4415ea];return _0x27d7db;}['_getElementCategory'](_0x581f9a){const _0x3e9c3c=this['_editor']['model']['schema'];return _0x3e9c3c['isLimit'](_0x581f9a)||_0x3e9c3c['isContent'](_0x581f9a)||_0x3e9c3c['isInline'](_0x581f9a)?'solid':_0x3e9c3c['isBlock'](_0x581f9a)?'block':'container';}['_diffModelTokens'](_0x5623b2,_0x3bc3a5){const _0x4139e9=_0x2a86d0(_0x5623b2,_0x3bc3a5,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x4139e9);const _0x137d6a=_0x4139e9['flatMap'](_0x2bd4b1=>{const _0x2f7a6c=_0x2bd4b1['added']?'added':_0x2bd4b1['removed']?'removed':'unchanged';return _0x2bd4b1['value']['map'](_0x1f6379=>({'token':_0x1f6379,'change':_0x2f7a6c}));});let _0x3c1b7e=0x0;for(const _0x59db60 of _0x137d6a)'added'!=_0x59db60['change']&&('unchanged'==_0x59db60['change']&&(_0x59db60['before']=_0x5623b2[_0x3c1b7e]),_0x3c1b7e++);return _0x137d6a;}['_handleUnclosedBlockOpeningTags'](_0x282cdf){for(let _0x5c6542=0x0;_0x5c6542<_0x282cdf['length']-0x1;_0x5c6542++)if(_0x282cdf[_0x5c6542]['removed']&&_0x282cdf[_0x5c6542+0x1]['added']){const _0xba3278=this['_findUnclosedBlockOpeningToken'](_0x282cdf[_0x5c6542]['value']);if(null!==_0xba3278){const _0x331a53=this['_findUnclosedBlockOpeningToken'](_0x282cdf[_0x5c6542+0x1]['value']),_0x23e55e=_0x282cdf[_0x5c6542]['value']['splice'](_0xba3278),_0x323f68=_0x282cdf[_0x5c6542+0x1]['value']['splice'](_0x331a53),_0xdc7a05=[_0x323f68['shift']()];_0x23e55e['shift']();const _0x5e268a={'value':_0x23e55e,'removed':!0x0},_0x2fd658={'value':_0x323f68,'added':!0x0},_0x447ed4={'value':_0xdc7a05};_0x282cdf['splice'](_0x5c6542+0x2,0x0,_0x447ed4,_0x5e268a,_0x2fd658);}}}['_findUnclosedBlockOpeningToken'](_0x16d9b0){let _0x1fcb1f=0x0,_0x238fa4=-0x1;for(let _0x4df997=0x0;_0x4df997<_0x16d9b0['length'];_0x4df997++){const _0x25840f=_0x16d9b0[_0x4df997];'element'==_0x25840f['type']&&'block'==_0x25840f['category']&&(_0x1fcb1f+=_0x25840f['isStart']?0x1:-0x1,_0x25840f['isStart']&&(_0x238fa4=_0x4df997));}return 0x0===_0x1fcb1f?null:_0x238fa4;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x7ea713=0x0;_0x7ea713<this['_diffItems']['length'];_0x7ea713++){const _0x250602=this['_diffItems'][_0x7ea713]['change'],_0x44dd0a=[];_0x44dd0a['push'](this['_diffItems'][_0x7ea713]);let _0x24af6b=_0x7ea713+0x1;for(;this['_diffItems'][_0x24af6b]&&this['_diffItems'][_0x24af6b]['change']==_0x250602;)_0x44dd0a['push'](this['_diffItems'][_0x24af6b]),_0x24af6b++,_0x7ea713++;const _0x183083=_0x44dd0a['map'](_0x1ca570=>_0x1ca570['token']);if('unchanged'==_0x250602)_0x44dd0a['map'](_0x5c9de0=>_0x5c9de0['before'])['forEach'](_0x35a18e=>this['_traverseOverItem'](_0x35a18e));else{if('removed'==_0x250602){if(this['_markDeletions']){const _0x5565e1=this['_path']['slice']();_0x183083['forEach'](_0x302e83=>this['_traverseOverItem'](_0x302e83));const _0xf2d8c3=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x5565e1,'end':_0xf2d8c3}});}else this['_handleChanged'](_0x183083,!0x0,this['_path']['slice']());}else{const _0x9462ec=_0x183083['filter'](_0x52f0ad=>'element'!=_0x52f0ad['type']||'container'!=_0x52f0ad['category']);this['_handleChanged'](_0x9462ec,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xd43d17=0x0;_0xd43d17<this['_diffItems']['length'];_0xd43d17++){const _0x2d203a=this['_diffItems'][_0xd43d17]['change'],_0x65846d=[];_0x65846d['push'](this['_diffItems'][_0xd43d17]);let _0x304136=_0xd43d17+0x1;for(;this['_diffItems'][_0x304136]&&this['_diffItems'][_0x304136]['change']==_0x2d203a;)_0x65846d['push'](this['_diffItems'][_0x304136]),_0x304136++,_0xd43d17++;const _0x5e19ec=_0x65846d['map'](_0x16eedb=>_0x16eedb['token']);if('unchanged'==_0x2d203a){const _0x2c4014=_0x65846d['map'](_0x357d2e=>_0x357d2e['before']);this['_handleUnchanged'](_0x2c4014,_0x5e19ec);}else('removed'!=_0x2d203a||this['_markDeletions'])&&_0x5e19ec['forEach'](_0x2e947f=>{this['_traverseOverItem'](_0x2e947f);});}}['_calculateMarkersOperationsData'](_0x4f4e78,_0x44aafa){const _0x5eeb30={};for(const [_0x4ce2e2]of _0x4f4e78)_0x5eeb30[_0x4ce2e2]=null;for(const [_0x324866,_0x40a7fa]of _0x44aafa)_0x5eeb30[_0x324866]=_0x40a7fa;const _0x131504=Object['entries'](_0x5eeb30)['map'](([_0x394651,_0x45be93])=>({'type':'marker','name':_0x394651,'range':_0x45be93?{'start':_0x45be93['start']['path']['slice'](),'end':_0x45be93['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x131504);}['_handleUnwraps'](){const _0x4ebbee=new Map(),_0x144fa9=[],_0x28a4b9=[0x0];let _0x3e6cf4=this['_diffItems']['length']+0x1;for(let _0x3fdde5=this['_diffItems']['length']-0x1;_0x3fdde5>=0x0;_0x3fdde5--){const {token:_0x2f4bbd,before:_0x21093f,change:_0x1dc20b}=this['_diffItems'][_0x3fdde5];if('removed'!=_0x1dc20b&&(_0x3e6cf4=_0x3fdde5),'element'!=_0x2f4bbd['type']||'container'!=_0x2f4bbd['category']||'added'==_0x1dc20b)continue;const _0x4f7c9f=_0x21093f?_0x21093f['element']:_0x2f4bbd['element'];if(_0x2f4bbd['isStart']){const _0x23238b=_0x4ebbee['get'](_0x4f7c9f),_0x1e777d=this['_diffItems'][_0x23238b];('removed'==_0x1dc20b||'removed'==_0x1e777d['change'])&&_0x3e6cf4<_0x23238b&&(this['_operationsData']['push']({'type':'unwrap','path':_0x4f7c9f['getPath'](),'howMany':_0x4f7c9f['maxOffset']+_0x28a4b9[0x0]}),_0x28a4b9['shift'](),_0x28a4b9[0x0]+=_0x4f7c9f['maxOffset']-0x1,_0x144fa9['push'](_0x3fdde5),_0x144fa9['push'](_0x23238b));}else _0x4ebbee['set'](_0x4f7c9f,_0x3fdde5),_0x28a4b9['unshift'](0x0);}_0x144fa9['sort']((_0x14bbe3,_0xef33d2)=>_0xef33d2-_0x14bbe3),_0x144fa9['forEach'](_0x105fc9=>{const _0x2b0433=this['_diffItems'][_0x105fc9];'removed'==_0x2b0433['change']?this['_diffItems']['splice'](_0x105fc9,0x1):(_0x2b0433['change']='added',delete _0x2b0433['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x19e4a9=[];for(let _0x13bd7f=0x0;_0x13bd7f<this['_diffItems']['length'];_0x13bd7f++){const {change:_0x358df0,token:_0x22280e}=this['_diffItems'][_0x13bd7f];if('added'==_0x358df0&&'element'==_0x22280e['type']&&'container'==_0x22280e['category']){if(_0x22280e['isStart'])_0x19e4a9['push'](this['_path']['slice']());else{if(!_0x22280e['isStart']){const _0x2179c6=_0x19e4a9['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x2179c6,'end':this['_path']['slice']()},'token':_0x22280e}),this['_path'][this['_path']['length']-0x1]=_0x2179c6[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x358df0||this['_markDeletions'])&&this['_traverseOverItem'](_0x22280e);}}['_handleUnchanged'](_0x21e2e7,_0x152a23){for(let _0x27f9e0=0x0;_0x27f9e0<_0x21e2e7['length'];_0x27f9e0++){const _0x3bb6f1=_0x21e2e7[_0x27f9e0];if('element'==_0x3bb6f1['type']&&_0x3bb6f1['isStart']){const _0x47600c=_0x152a23[_0x27f9e0];'block'==_0x3bb6f1['category']&&this['_handleElementRename'](_0x3bb6f1['element'],_0x47600c['element'],this['_path']),this['_handleElementAttributeChanges'](_0x3bb6f1['element'],_0x47600c['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x47600c);}else{if('element'!=_0x3bb6f1['type']||_0x3bb6f1['isStart']){if('text'==_0x3bb6f1['type']){const _0x463ecf=this['_path']['slice'](),_0x10bf1b=[],_0x57dac5=[];for(;_0x21e2e7[_0x27f9e0]&&'text'==_0x21e2e7[_0x27f9e0]['type'];)_0x10bf1b['push'](_0x21e2e7[_0x27f9e0]),_0x57dac5['push'](_0x152a23[_0x27f9e0]),this['_path'][this['_path']['length']-0x1]+=_0x21e2e7[_0x27f9e0]['data']['length'],_0x27f9e0++;_0x27f9e0--,this['_handleTextAttributeChanges'](_0x10bf1b,_0x57dac5,_0x463ecf);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x427dc6,_0x45c6f7,_0x5ac8b0){const _0x16eb9b=[],_0x5eec56=[],_0xf98d14=_0x5ac8b0['slice']();for(let _0x4c894c=0x0;_0x4c894c<_0x427dc6['length'];_0x4c894c++){const _0xc6a04e=_0x427dc6[_0x4c894c],_0x49a1fc=_0x5ac8b0['slice']();if('element'!=_0xc6a04e['type']||_0xc6a04e['isStart'])'element'==_0xc6a04e['type']&&_0xc6a04e['isStart']?(_0x5ac8b0['push'](0x0),_0x45c6f7||this['_parents']['push'](_0xc6a04e),_0x5eec56['push']({'before':_0x49a1fc,'after':_0x5ac8b0['slice'](),'index':_0x4c894c})):_0x5ac8b0[_0x5ac8b0['length']-0x1]+=_0xc6a04e['data']['length'];else{let _0x58afb0;_0x5ac8b0['pop'](),_0x5ac8b0[_0x5ac8b0['length']-0x1]++,_0x58afb0=_0x45c6f7?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x5eec56['length']?_0x5eec56['pop']():_0x16eb9b['push']({'before':_0x49a1fc,'after':_0x5ac8b0['slice'](),'index':_0x4c894c,'related':_0x58afb0});}}if(_0x5eec56['length']!==_0x16eb9b['length'])throw new _0xe246c('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x427dc6,'isRemove':_0x45c6f7});const _0x367cdb=[{'after':_0xf98d14['slice'](),'index':-0x1},..._0x16eb9b,..._0x5eec56,{'before':_0x5ac8b0['slice'](),'index':_0x427dc6['length']}];if(_0x45c6f7){for(let _0xe0da47=_0x367cdb['length']-0x1;_0xe0da47>=0x1;_0xe0da47--){const _0x194e0e=_0x367cdb[_0xe0da47-0x1]['after'],_0x5e3184=_0x367cdb[_0xe0da47]['before'],_0x4e5b56=_0x5e3184[_0x5e3184['length']-0x1]-_0x194e0e[_0x194e0e['length']-0x1];_0x4e5b56&&(this['_operationsData']['push']({'type':'remove','path':_0x194e0e,'howMany':_0x4e5b56}),_0x5e3184[_0x5e3184['length']-0x1]-=_0x4e5b56);}for(const {before:_0x177db7}of _0x16eb9b)this['_operationsData']['push']({'type':'merge','path':_0x177db7});}else for(let _0x3e5a6c=0x0;_0x3e5a6c<_0x367cdb['length']-0x1;_0x3e5a6c++){const _0x1175bb=_0x367cdb[_0x3e5a6c]['after'],_0x48dc35=_0x367cdb[_0x3e5a6c+0x1]['before'],_0xb3260f=_0x367cdb[_0x3e5a6c]['index']+0x1,_0x1d001c=_0x367cdb[_0x3e5a6c+0x1]['index'];if(_0xb3260f!==_0x1d001c&&this['_operationsData']['push']({'type':'insert','path':_0x1175bb,'tokens':_0x427dc6['slice'](_0xb3260f,_0x1d001c)}),_0x3e5a6c<_0x16eb9b['length']){this['_operationsData']['push']({'type':'split','path':_0x48dc35});const _0x493874=_0x427dc6[_0x5eec56[_0x5eec56['length']-0x1-_0x3e5a6c]['index']],_0x458c59=_0x16eb9b[_0x3e5a6c]['after'],_0x4f8757=_0x16eb9b[_0x3e5a6c]['related']['element'];this['_handleElementRename'](_0x4f8757,_0x493874['element'],_0x458c59),this['_handleElementAttributeChanges'](_0x4f8757,_0x493874['element'],_0x458c59);}}}['_traverseOverItem'](_0x585045){'element'==_0x585045['type']&&_0x585045['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x585045)):'element'!=_0x585045['type']||_0x585045['isStart']?'text'==_0x585045['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x585045['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x50d8c7,_0x220bd2,_0xa36440){_0x50d8c7['name']!=_0x220bd2['name']&&this['_operationsData']['push']({'type':'rename','path':_0xa36440['slice'](),'oldName':_0x50d8c7['name'],'newName':_0x220bd2['name']});}['_handleElementAttributeChanges'](_0xa7483c,_0x539271,_0xc21466){const _0x6998eb=this['_getAttributeChanges'](_0xa7483c['getAttributes'](),_0x539271['getAttributes']());for(const _0x2a51e0 in _0x6998eb){const {oldValue:_0x5ee0f8,newValue:_0x4385a5}=_0x6998eb[_0x2a51e0];this['_operationsData']['push']({'type':'attribute','path':_0xc21466['slice'](),'howMany':0x1,'key':_0x2a51e0,'oldValue':_0x5ee0f8,'newValue':_0x4385a5});}}['_handleTextAttributeChanges'](_0x3c724e,_0xc8ac4,_0x25176e){const _0x2f6bf2=this['_operationsData'],_0x4e320e=_0x3c724e[0x0]['parent'],_0x3e6896=_0x3c724e[0x0]['offset'],_0x19a7ec=_0xc8ac4[0x0]['parent'],_0x30eec3=_0xc8ac4[0x0]['offset'],_0x1610ea=_0x3c724e['reduce']((_0x93cafd,_0x3fcfb4)=>_0x93cafd+_0x3fcfb4['data']['length'],0x0),_0xeae35e=this['_getAttrsForOffsets'](_0x4e320e,_0x3e6896,_0x1610ea),_0x169f27=this['_getAttrsForOffsets'](_0x19a7ec,_0x30eec3,_0x1610ea),_0xc5ebaf={};for(let _0x1c08a2=0x0;_0x1c08a2<_0x1610ea;_0x1c08a2++){const _0x1f9e96=_0xeae35e[_0x3e6896+_0x1c08a2],_0x207c96=_0x169f27[_0x30eec3+_0x1c08a2],_0x187994=this['_getAttributeChanges'](_0x1f9e96,_0x207c96);for(const _0x42acbb in _0xc5ebaf)_0x187994[_0x42acbb]||_0x112d4f(_0x42acbb);for(const _0x33bd58 in _0x187994){const {oldValue:_0x2fd704,newValue:_0x92e515}=_0x187994[_0x33bd58],_0x4dea17=_0xc5ebaf[_0x33bd58];_0x4dea17?_0x4dea17['oldValue']==_0x2fd704&&_0x4dea17['newValue']==_0x92e515?_0x4dea17['length']++:(_0x112d4f(_0x33bd58),_0xc5ebaf[_0x33bd58]={'oldValue':_0x2fd704,'newValue':_0x92e515,'start':_0x1c08a2,'length':0x1}):_0xc5ebaf[_0x33bd58]={'oldValue':_0x2fd704,'newValue':_0x92e515,'start':_0x1c08a2,'length':0x1};}}for(const _0x23910f in _0xc5ebaf)_0x112d4f(_0x23910f);function _0x112d4f(_0x5efd46){const _0x28a83c=_0xc5ebaf[_0x5efd46],_0x4485e7=_0x25176e['slice']();_0x4485e7[_0x4485e7['length']-0x1]+=_0x28a83c['start'],_0x2f6bf2['push']({'type':'attribute','path':_0x4485e7,'howMany':_0x28a83c['length'],'key':_0x5efd46,'oldValue':_0x28a83c['oldValue'],'newValue':_0x28a83c['newValue']}),delete _0xc5ebaf[_0x5efd46];}}['_getAttributeChanges'](_0x2f8076,_0x25f3e3){const _0x5edf08={};for(const [_0x1efc38,_0x114c21]of _0x2f8076)_0x5edf08[_0x1efc38]={'oldValue':JSON['stringify'](_0x114c21),'newValue':'null'};for(const [_0x1fd305,_0x45e796]of _0x25f3e3){const _0x3bed84=JSON['stringify'](_0x45e796);_0x5edf08[_0x1fd305]?_0x5edf08[_0x1fd305]['oldValue']==_0x3bed84?delete _0x5edf08[_0x1fd305]:_0x5edf08[_0x1fd305]['newValue']=_0x3bed84:_0x5edf08[_0x1fd305]={'oldValue':'null','newValue':_0x3bed84};}return delete _0x5edf08[St],_0x5edf08;}['_getAttrsForOffsets'](_0x300ef3,_0x5bf0ae,_0x39037b){const _0x2fbb8e=new Array(_0x5bf0ae+_0x39037b);let _0x40efb1=_0x300ef3['getChildAtOffset'](_0x5bf0ae),_0x5d4b8c=_0x40efb1['startOffset'];for(;_0x40efb1&&_0x5d4b8c<_0x5bf0ae+_0x39037b;){const _0x180104=Array['from'](_0x40efb1['getAttributes']());_0x2fbb8e['fill'](_0x180104,_0x5d4b8c,_0x5d4b8c+_0x40efb1['offsetSize']),_0x5d4b8c+=_0x40efb1['offsetSize'],_0x40efb1=_0x40efb1['nextSibling'];}return _0x2fbb8e;}['_getPositionFromAnchorAndPath'](_0x74ce40,_0x839f6f){const _0x574d2c=[..._0x74ce40['path']['slice'](0x0,-0x1),_0x74ce40['offset']+_0x839f6f[0x0],..._0x839f6f['slice'](0x1)];return new _0x325155(_0x74ce40['root'],_0x574d2c);}['_makeModelFromTokens'](_0x24fac7){const _0x5afb4d=[];let _0x4f7da0=null;for(const _0x2dd554 of _0x24fac7)if('element'!=_0x2dd554['type']||_0x2dd554['isStart']||_0x4f7da0!=_0x2dd554['element']){if(!_0x4f7da0){if('text'==_0x2dd554['type']){const _0xbb7cad=_0x325155['_createAt'](_0x2dd554['parent'],_0x2dd554['offset']),_0x597d4a=_0x5ce1b5['_createFromPositionAndShift'](_0xbb7cad,_0x2dd554['data']['length']),_0x542f64=Array['from'](_0x597d4a['getItems']())['map'](_0xc69f7b=>new _0x2a45f1(_0xc69f7b['data'],_0xc69f7b['getAttributes']()));_0x5afb4d['push'](..._0x542f64);}else{_0x4f7da0=_0x2dd554['element'];const _0x2be261=_0x2dd554['element']['_clone'](!0x0);_0x2be261['_removeAttribute'](St);for(const _0x209a21 of this['_editor']['model']['createRangeIn'](_0x2be261)['getItems']())_0x209a21['is']('element')&&_0x209a21['_removeAttribute'](St);_0x5afb4d['push'](_0x2be261);}}}else _0x4f7da0=null;return _0x5afb4d;}}function g(_0x36a559,_0x32de1e){return _0x36a559['type']===_0x32de1e['type']&&(_0x36a559['limitId']===_0x32de1e['limitId']&&('text'==_0x36a559['type']?_0x36a559['data']==_0x32de1e['data']:function(_0x46d596,_0x428453){if(_0x46d596['isStart']!=_0x428453['isStart'])return!0x1;if(_0x46d596['isStart']&&_0x46d596['elementId']!=_0x428453['elementId'])return!0x1;if(_0x46d596['category']!=_0x428453['category'])return!0x1;if('block'==_0x46d596['category'])return!0x0;if('container'==_0x46d596['category']&&_0x46d596['elementId']!=_0x428453['elementId'])return!0x1;return _0x46d596['element']['name']==_0x428453['element']['name'];}(_0x36a559,_0x32de1e)));}function _(_0x216771){return k({'name':_0x216771['name'],...Object['fromEntries'](_0x216771['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,xt as FOCUS_ANNOTATION_KEYSTROKE,ft as LateFocusButtonView,gt as LateFocusDropdownButtonView,C as Permissions,kt as SuggestionsConversion,ht as UserView,ct as Users,mt as fixElementSuggestionRange,wt as getAllMarkersDomElementsSorted,pt as getDateTimeFormatter,yt as getMarkerDomElement,k as hashObject,Ct as sanitizeEditorConfig,It as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,_t as surroundingMarkersDetector,bt as trimHtml};
23
+ import{ContextPlugin as _0x503c27,Editor as _0x220e61,Plugin as _0x24b01f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5e43ee,Collection as _0x2caf8f,uid as _0x59988c,toArray as rt,first as _0x5e5e0d,FocusTracker as ts,KeystrokeHandler as _0x4d8956}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0xf8b808,IconView as st,ButtonView as _0x51bd3a,DropdownButtonView as _0x33ee53,FocusCycler as _0x28faee,isViewWithFocusCycler as _0x2e35be}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0x448b9e,IconCancel as _0xc81095}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0x32a348}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x1e67d8,MoveOperation as _0x1d1d8d,ModelPosition as _0x38ac5c,ModelRange as _0x2ece87,MarkerOperation as _0x1fa860,MergeOperation as _0x1fa071,SplitOperation as _0x3e5e7d,RenameOperation as _0x4ebc8a,AttributeOperation as _0x1d0e28,ModelTreeWalker as _0x5d0b0b,ModelText as _0x559acd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x3399c5}from'diff';class C extends _0x503c27{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x5c0e89,_0x304322){let _0x459fe1;if(_0x304322||(_0x304322=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x304322?_0x459fe1=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x459fe1=this['context']['editors']['find'](_0x4a884a=>_0x4a884a['config']['get']('collaboration.channelId')==_0x304322)),!_0x459fe1)throw new _0x5e43ee('permissions-set-permissions-invalid-channel-id',null);const _0x133ba7=_0x459fe1['plugins'],_0x1900d4=_0x133ba7['has']('CommentsRepository')?_0x133ba7['get']('CommentsRepository'):void 0x0,_0x3a2bb5=_0x133ba7['has']('CommentsOnly')&&_0x133ba7['get']('CommentsOnly'),_0x2dcb3a=_0x5c0e89['includes']('document:write'),_0x3f847e=_0x5c0e89['includes']('comment:modify_all'),_0x124302=_0x5c0e89['includes']('comment:admin'),_0x3619ee=_0x5c0e89['includes']('comment:write'),_0x116492=_0x3619ee||_0x124302,_0x5a6f95=_0x116492||_0x3f847e,_0x1123c3=_0x2dcb3a||_0x116492;(_0x3a2bb5&&(_0x3a2bb5['isEnabled']=!_0x2dcb3a&&_0x5a6f95),_0x459fe1 instanceof _0x220e61)&&(!(_0x2dcb3a||_0x5a6f95&&_0x1900d4)?_0x459fe1['enableReadOnlyMode']('no-permissions'):_0x459fe1['disableReadOnlyMode']('no-permissions'));if(_0x1900d4){_0x1900d4['setPermissions']({'admin':_0x124302,'modifyAll':_0x3f847e,'write':_0x3619ee,'resolve':_0x1123c3},_0x304322);const _0x26cdb1=_0x459fe1 instanceof _0x220e61&&_0x459fe1['commands']['get']('addCommentThread');_0x26cdb1&&(_0x116492?_0x26cdb1['clearForceDisabled']('noPermissions'):_0x26cdb1['forceDisabled']('noPermissions'));}}}function U(_0x560467,_0x3640e7){const t=_0x560467['t'];switch(_0x3640e7){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class at extends _0x503c27{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x3f2d32){super(_0x3f2d32),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x2caf8f(),this['_locale']=_0x3f2d32['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:_0x1205dc,name:_0x50fef9,..._0x32d07c}){if(!_0x1205dc||'string'!=typeof _0x1205dc)throw new _0x5e43ee('users-add-invalid-id');if(this['users']['has'](_0x1205dc))throw new _0x5e43ee('users-add-duplicated-id',null,{'id':_0x1205dc});const _0xac3d46=this['context']['config']['get']('users.getInitialsCallback'),_0x1bda13={..._0x32d07c,'id':_0x1205dc,'name':A(this['_locale'],_0x50fef9),'color':this['_getNextColor']()};_0x1bda13['name']=A(this['_locale'],_0x1bda13['name']);const _0x301f78=new lt(_0x1bda13,_0xac3d46);return this['users']['add'](_0x301f78),_0x301f78;}['getUser'](_0x5dc75b){return this['users']['get'](_0x5dc75b);}['useAnonymousUser'](){const _0x538cd5=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x538cd5);}['defineMe'](_0x5065dc){if(this['_myId'])throw new _0x5e43ee('users-me-already-defined',null);const _0x4c9782=this['getUser'](_0x5065dc);if(!_0x4c9782)throw new _0x5e43ee('users-me-missing-user',null);this['_myId']=_0x5065dc,_0x4c9782['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x5b1aa9=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x5b1aa9&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x3ac1e6=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3ac1e6,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x2abe2a,_0x3e227a){this['id']=_0x2abe2a['id'],this['color']=_0x2abe2a['color'],this['name']=_0x2abe2a['name'],this['initials']=_0x3e227a?_0x3e227a(this['name']):this['_computeInitials'](),this['avatar']=_0x2abe2a['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5a7be8=this['name']['split']('\x20')['filter'](_0x4b4a66=>/^[\p{Letter}]/u['test'](_0x4b4a66));return 0x1===_0x5a7be8['length']?this['_getInitial'](_0x5a7be8[0x0]):0x0===_0x5a7be8['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5a7be8[0x0])+this['_getInitial'](_0x5a7be8[_0x5a7be8['length']-0x1]);}['_getInitial'](_0x282720){return String['fromCodePoint'](_0x282720['codePointAt'](0x0))['toUpperCase']();}}function A(_0x4f29ac,_0x1a5ca9=''){return''==(_0x1a5ca9=_0x1a5ca9['trim']())?U(_0x4f29ac,'Anonymous'):_0x1a5ca9;}class ut{['_id'];constructor(_0x4e64d2){this['_id']=_0x4e64d2;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class ht extends _0xf8b808{['name'];['notificationView'];constructor(_0x573036,_0x56f97f,_0x6ab287){super(_0x573036),this['name']=_0x56f97f['name'],this['notificationView']=null;const _0x449eae=['ck','ck-user'],_0x57e933=['ck','ck-user__img'];if(_0x56f97f['isAnonymous']&&_0x57e933['push']('ck-user__anonymous'),!_0x56f97f['isAnonymous']&&_0x56f97f['isMe']&&_0x449eae['push']('ck-user_me'),_0x56f97f['avatar']&&_0x57e933['push']('ck-user__avatar'),_0x6ab287){const _0x4783ce=new st();_0x4783ce['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4783ce['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x6ab287},'children':[_0x4783ce]};}const _0x3ceeb2=[{'tag':'div','attributes':{'class':_0x57e933,'style':{'background-image':_0x56f97f['avatar']?'url(\x27'+_0x56f97f['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x56f97f['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x56f97f['name']},'children':[{'text':_0x56f97f['initials']}]}];this['notificationView']&&_0x3ceeb2['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x449eae,'data-user-id':_0x56f97f['id']},'children':_0x3ceeb2});}}class dt extends _0xf8b808{['id'];constructor(_0x370ba9,_0x211f6d){super(_0x370ba9),this['id']='ck-aria-description-'+_0x59988c(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x211f6d}]});}}class ft extends _0x51bd3a{['render'](){super['render'](),re(this);}}class gt extends _0x33ee53{['render'](){super['render'](),re(this);}}function re(_0x111ef6){_0x111ef6['listenTo'](_0x111ef6['element'],'mousedown',(_0x5d6be4,_0x3452d6)=>{_0x3452d6['stopPropagation'](),_0x3452d6['preventDefault']();}),_0x111ef6['listenTo'](_0x111ef6['element'],'mouseup',()=>{_0x111ef6['element']['focus']();});}function v(_0x4c7168){const _0x266c76=_0x4c7168['split'](':');return{'group':_0x266c76[0x0],'type':_0x266c76[0x1],'subType':_0x266c76['length']>=0x5?_0x266c76[0x2]:null,'id':_0x266c76['length']<0x5?_0x266c76[0x2]:_0x266c76[0x3],'authorId':_0x266c76['length']<0x5?_0x266c76[0x3]:_0x266c76[0x4],'markerCount':0x6==_0x266c76['length']?_0x266c76[0x5]:null};}function mt(_0x19c51d,_0x2e8316){const _0x45c7bb=_0x19c51d['end']['nodeBefore'];if(_0x45c7bb&&_0x45c7bb['is']('element')&&_0x2e8316['schema']['isBlock'](_0x45c7bb)&&!_0x2e8316['schema']['isObject'](_0x45c7bb)){const _0x4a732e=_0x2e8316['createPositionAt'](_0x45c7bb,'end');return _0x2e8316['createRange'](_0x19c51d['start'],_0x4a732e);}return _0x19c51d;}class M extends _0x24b01f{['afterInit'](){const _0x52bf51=this['editor'];if(!_0x52bf51['plugins']['has']('AlignmentEditing'))return;_0x52bf51['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x24b01f{['afterInit'](){const _0x5b098c=this['editor'],_0x3ae328=_0x5b098c['plugins']['get']('SuggestionsConversion');for(const _0x15be40 of ii){if(!_0x5b098c['plugins']['has'](_0x15be40))continue;const _0xe0b2d6=_0x15be40['slice'](0x0,-0x7)['toLowerCase']();_0x3ae328['registerInlineAttribute'](_0xe0b2d6);}}}class I extends _0x24b01f{['afterInit'](){const _0x3e933e=this['editor'],_0x207d66=_0x3e933e['plugins']['get']('SuggestionsConversion');_0x3e933e['plugins']['has']('BookmarkEditing')&&_0x207d66['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x24b01f{['afterInit'](){const _0x10ca58=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x4d227a,commandName:_0xdb21c8}of no)this['editor']['plugins']['has'](_0x4d227a)&&_0x10ca58['registerInlineAttribute'](_0xdb21c8);}}class T extends _0x24b01f{['afterInit'](){const _0x7bd1fe=this['editor'];if(!_0x7bd1fe['plugins']['has']('HighlightEditing'))return;_0x7bd1fe['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x24b01f{['afterInit'](){const _0x2afc25=this['editor'];if(!_0x2afc25['plugins']['has']('HtmlEmbed'))return;_0x2afc25['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x24b01f{['afterInit'](){const _0x306b7b=this['editor'];if(!_0x306b7b['plugins']['has']('ImageEditing'))return;const _0x191de9=_0x306b7b['plugins']['get']('SuggestionsConversion');_0x191de9['registerBlockAttribute']('src'),_0x306b7b['plugins']['has']('ImageResize')&&_0x191de9['registerBlockAttribute']('resizedWidth'),_0x306b7b['plugins']['has']('ImageTextAlternativeEditing')&&_0x191de9['registerBlockAttribute']('alt'),_0x306b7b['plugins']['has']('PictureEditing')&&_0x191de9['registerBlockAttribute']('sources'),_0x306b7b['plugins']['has']('ImageSizeAttributes')&&(_0x191de9['registerBlockAttribute']('width'),_0x191de9['registerBlockAttribute']('height'));}}class $ extends _0x24b01f{['afterInit'](){const _0xdecff5=this['editor'],_0x1f05da=_0xdecff5['plugins']['get']('SuggestionsConversion');_0xdecff5['plugins']['has']('IndentBlock')&&_0x1f05da['registerBlockAttribute']('blockIndent');}}class x extends _0x24b01f{['afterInit'](){const _0xcafdea=this['editor'];if(!_0xcafdea['plugins']['has']('LineHeight'))return;_0xcafdea['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x24b01f{['afterInit'](){const _0x11f3b4=this['editor'];if(!_0x11f3b4['plugins']['has']('LinkEditing'))return;const _0x532fb3=_0x11f3b4['plugins']['get']('SuggestionsConversion'),_0x1cf9ed=_0x11f3b4['commands']['get']('link');_0x532fb3['registerInlineAttribute']('linkHref');for(const _0x287d40 of _0x1cf9ed['manualDecorators'])_0x532fb3['registerInlineAttribute'](_0x287d40['id']);}}class N extends _0x24b01f{['afterInit'](){const _0x35108d=this['editor'];if(!_0x35108d['plugins']['has']('ListEditing'))return;const _0x48f884=_0x35108d['plugins']['get']('SuggestionsConversion'),_0x4a5692=_0x35108d['plugins']['has']('TodoListEditing');_0x48f884['registerBlockAttribute']('listItemId'),_0x48f884['registerBlockAttribute']('listType'),_0x48f884['registerBlockAttribute']('listIndent'),_0x4a5692&&_0x48f884['registerBlockAttribute']('todoListChecked');}}class P extends _0x24b01f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xbfbf07=this['editor']['config']['get']('list.properties'),_0x7e5c27=this['editor']['plugins']['get']('SuggestionsConversion');_0xbfbf07['styles']&&_0x7e5c27['registerBlockAttribute']('listStyle'),_0xbfbf07['reversed']&&_0x7e5c27['registerBlockAttribute']('listReversed'),_0xbfbf07['startIndex']&&_0x7e5c27['registerBlockAttribute']('listStart');}}class K extends _0x24b01f{['afterInit'](){const _0x8c08f4=this['editor'],_0x2e1f83=_0x8c08f4['plugins']['get']('SuggestionsConversion');_0x8c08f4['plugins']['has']('MultiLevelList')&&_0x2e1f83['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x24b01f{['afterInit'](){const _0x2c0711=this['editor'];if(!_0x2c0711['plugins']['has']('Style')||!_0x2c0711['plugins']['has']('DataSchema')||!_0x2c0711['config']['get']('style.definitions'))return;const _0x1f2a84=_0x2c0711['plugins']['get']('SuggestionsConversion'),_0x1d633f=_0x2c0711['config']['get']('style.definitions'),_0x1d10a1=_0x2c0711['plugins']['get']('GeneralHtmlSupport'),_0x18a9fe=_0x2c0711['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2c0711['plugins']['get']('DataSchema'),_0x1d633f),_0x20b7cd=new Set();for(const _0x3057c9 of _0x18a9fe['block']){const _0x1fddaf=_0x1d10a1['getGhsAttributeNameForElement'](_0x3057c9['element']);_0x20b7cd['add'](_0x1fddaf);}const _0x272e18=new Set();for(const _0x556f50 of _0x18a9fe['inline']){const _0x1a378f=_0x1d10a1['getGhsAttributeNameForElement'](_0x556f50['element']);_0x272e18['add'](_0x1a378f);for(const _0x43bdb1 of _0x556f50['ghsAttributes'])_0x272e18['add'](_0x43bdb1);}for(const _0x467b7d of _0x20b7cd)_0x1f2a84['registerBlockAttribute'](_0x467b7d);for(const _0x319256 of _0x272e18)_0x1f2a84['registerInlineAttribute'](_0x319256);}}class z extends _0x24b01f{['afterInit'](){const _0x8173b5=this['editor'];if(!_0x8173b5['plugins']['has']('TableEditing'))return;const _0x41fa85=_0x8173b5['plugins']['get']('SuggestionsConversion');_0x41fa85['registerBlockAttribute']('headingRows'),_0x41fa85['registerBlockAttribute']('headingColumns');}}class O extends _0x24b01f{['afterInit'](){const _0x339cc5=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x1e3c3b=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x5d4ca2 of _0x1e3c3b)_0x339cc5['registerBlockAttribute'](_0x5d4ca2);}}class R extends _0x24b01f{['afterInit'](){const _0x1d3502=this['editor'],_0x73f088=_0x1d3502['plugins']['get']('SuggestionsConversion');_0x1d3502['plugins']['has']('TableLayout')&&_0x73f088['registerBlockAttribute']('tableType');}}class F extends _0x24b01f{['afterInit'](){const _0x211ad8=this['editor'],_0x4640b6=this['editor']['plugins']['get']('SuggestionsConversion');_0x211ad8['plugins']['has']('Uploadcare')&&_0x211ad8['plugins']['has']('UploadcareImageEdit')&&_0x4640b6['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x24b01f{['afterInit'](){const _0x4ce7c6=this['editor'];if(!_0x4ce7c6['plugins']['has']('ShiftEnter'))return;const _0x8b9a63=_0x4ce7c6['plugins']['get']('SuggestionsConversion'),_0x51250e=(_0x2f6102,_0x36f0b8,_0x15c5b8,_0x3515a5)=>{if(_0x3515a5&&!_0x15c5b8['options']['showSuggestionHighlights'])return;if(!_0x15c5b8['consumable']['test'](_0x36f0b8['markerRange'],_0x2f6102['name']))return;const _0x4f82d4=_0x4ce7c6['model'];for(const _0x1beee9 of _0x36f0b8['markerRange']['getItems']()){if(!_0x1beee9['is']('element','softBreak'))continue;const _0x3e1b8e='deletion'==_0x36f0b8['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5e250c,authorId:_0x6adcbc}=v(_0x36f0b8['markerName']),_0x3dbc4f=_0x15c5b8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e1b8e,'data-suggestion':_0x5e250c,'data-author-id':_0x6adcbc}),_0x4aabe5=_0x15c5b8['mapper']['toViewPosition'](_0x4f82d4['createPositionBefore'](_0x1beee9));!_0x3515a5&&_0x8b9a63['_activeMarkers']['includes'](_0x36f0b8['markerName'])&&_0x15c5b8['writer']['addClass']('ck-suggestion-marker--active',_0x3dbc4f),_0x15c5b8['writer']['insert'](_0x4aabe5,_0x3dbc4f),_0x15c5b8['mapper']['bindElementToMarker'](_0x3dbc4f,_0x36f0b8['markerName']);}};_0x4ce7c6['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1eba0b,_0x59ae3c,_0x147e23)=>{_0x51250e(_0x1eba0b,_0x59ae3c,_0x147e23,!0x1);},{'priority':'high'}),_0x4ce7c6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58d7d6,_0x48cf37,_0x1cc38c)=>{_0x51250e(_0x58d7d6,_0x48cf37,_0x1cc38c,!0x0);},{'priority':'high'});}}class J extends _0x24b01f{['afterInit'](){const _0x25d5b4=this['editor'];_0x25d5b4['plugins']['has']('MediaEmbedEditing')&&(_0x25d5b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x103056,{writer:_0xf69cfc,options:_0x3ab517})=>{if(_0x3ab517['showSuggestionHighlights'])return _0xf69cfc['createEmptyElement']('div');},'converterPriority':'high'}),_0x25d5b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x508734,_0x3fc72e,_0x37c9b5)=>{_0x37c9b5['options']['showSuggestionHighlights']&&_0x508734['stop']();},{'priority':'high'}));}}class L extends _0x24b01f{['afterInit'](){const _0x4a0fdc=this['editor'];if(!_0x4a0fdc['plugins']['has']('Table'))return;_0x4a0fdc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x496caf,_0x4ab50a,_0xaa7497)=>{((_0x3498d3,_0x52146b,_0x1c0ed4)=>{if(!_0x1c0ed4['options']['showSuggestionHighlights'])return;const _0x5ac55f=_0x52146b['item'];if(!_0x5ac55f||!_0x5ac55f['is']('element','tableCell'))return;const _0x10913b=_0x1c0ed4['mapper']['toViewElement'](_0x5ac55f);if(_0x10913b){const {id:_0x1137b4,authorId:_0x29e949}=v(_0x52146b['markerName']);it(_0x10913b,_0x1c0ed4['writer'],(_0x1f1ddc,_0x206834,_0x270062)=>{_0x270062['addClass'](rt(_0x206834['classes']),_0x1f1ddc),_0x270062['setAttribute']('data-suggestion-id',_0x1137b4,_0x1f1ddc),_0x270062['setAttribute']('data-author-id',_0x29e949,_0x1f1ddc);});}})(0x0,_0x4ab50a,_0xaa7497);},{'priority':'highest'});}}class Q extends _0x24b01f{['afterInit'](){const _0x29181d=this['editor'];_0x29181d['plugins']['has']('HorizontalLineEditing')&&_0x29181d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xdd1115,{writer:_0x4469b8,options:_0x2de54b})=>{if(!_0x2de54b['showSuggestionHighlights'])return null;const _0x187372=_0x4469b8['createContainerElement']('div'),_0x3adbd3=_0x4469b8['createEmptyElement']('hr');return _0x4469b8['addClass']('ck-horizontal-line',_0x187372),_0x4469b8['insert'](_0x4469b8['createPositionAt'](_0x187372,0x0),_0x3adbd3),_0x187372;},'converterPriority':'high'});}}class kt extends _0x24b01f{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,Q,E,S,$,x,H,N,P,J,K,G,q,L,z,R,O,F];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20bf5c=this['editor'],_0x2f6263=(_0x5305c9,_0x56b469,_0x250cea)=>{const {id:_0x521dc4,authorId:_0x41c9c6,type:_0x3ed5fd,subType:_0x3a30bf}=v(_0x5305c9['markerName']),_0x3b7ec9=['ck-suggestion-marker',this['_getClassName'](_0x3ed5fd,_0x3a30bf)];let _0xc7ccd2=0xbb8;return!_0x250cea&&(this['_activeMarkers']['includes'](_0x5305c9['markerName'])&&(_0x3b7ec9['push']('ck-suggestion-marker--active'),_0xc7ccd2=0xbc2)),('deletion'==_0x3ed5fd&&(_0xc7ccd2+=0x5),{'classes':_0x3b7ec9,'attributes':{'data-suggestion':_0x521dc4,'data-author-id':_0x41c9c6},'priority':_0xc7ccd2});};_0x20bf5c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d5196,_0x1f5865)=>_0x2f6263(_0x2d5196,0x0,!0x1)}),_0x20bf5c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x329225,_0x14289a)=>_0x2f6263(_0x329225,0x0,!0x0)}),_0x20bf5c['conversion']['for']('dataDowncast')['add'](_0xb4fe57=>{_0xb4fe57['on']('addMarker:suggestion',(_0x2c2878,_0x5579b8,_0x4dbb24)=>{if(!_0x4dbb24['options']['showSuggestionHighlights'])return;const _0x2be29b=_0x5579b8['item'];if(!_0x2be29b)return;const _0x48a991=_0x4dbb24['mapper']['toViewElement'](_0x2be29b);_0x20bf5c['model']['schema']['isObject'](_0x2be29b)&&_0x48a991&&!_0x48a991['getCustomProperty']('widget')&&_0x48a991['is']('containerElement')&&_0x32a348(_0x48a991,_0x4dbb24['writer']);},{'priority':'high'});});const _0x454272=(_0x1df619,_0x505eeb,_0x337784,_0x4a46e1,_0x3bced3)=>{if(_0x4a46e1&&!_0x337784['options']['showSuggestionHighlights'])return;if(!_0x505eeb['item'])return;const {id:_0x9d2bd8,authorId:_0x161d66,subType:_0x2aa672}=v(_0x505eeb['markerName']);if(_0x3bced3){const _0x2153de=_0x2aa672['split']('|')[0x0];if(!this['isBlockAttribute'](_0x2153de))return;}if(_0x505eeb['item']['is']('selection'))return void _0x337784['consumable']['consume'](_0x505eeb['item'],_0x1df619['name']);const _0x3e99f9=_0x337784['mapper']['toViewElement'](_0x505eeb['item']);if(_0x505eeb['item']['is']('element')&&_0x20bf5c['model']['schema']['isBlock'](_0x505eeb['item'])&&!_0x3e99f9['getCustomProperty']('addHighlight')){_0x337784['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3e99f9),_0x337784['writer']['setAttribute']('data-suggestion',_0x9d2bd8,_0x3e99f9),_0x337784['writer']['setAttribute']('data-author-id',_0x161d66,_0x3e99f9),_0x337784['mapper']['bindElementToMarker'](_0x3e99f9,_0x505eeb['markerName']),_0x4a46e1||(this['_activeMarkers']['includes'](_0x505eeb['markerName'])?_0x337784['writer']['addClass']('ck-suggestion-marker--active',_0x3e99f9):_0x337784['writer']['removeClass']('ck-suggestion-marker--active',_0x3e99f9));for(const _0x4a132c of _0x20bf5c['model']['createRangeIn'](_0x505eeb['item'])['getItems']())_0x337784['consumable']['consume'](_0x4a132c,_0x1df619['name']);_0x337784['consumable']['consume'](_0x505eeb['item'],_0x1df619['name']);}},_0x315775=(_0x4b9e04,_0x3d9725,_0x2223d3,_0x34b9b0)=>{const _0x453c7c=_0x2223d3['mapper']['markerNameToElements'](_0x3d9725['markerName']);if(_0x453c7c){if(_0x34b9b0){const {subType:_0x396d0f}=v(_0x3d9725['markerName']),_0x109293=_0x396d0f['split']('|')[0x0];if(!this['isBlockAttribute'](_0x109293))return;}for(const _0x400db5 of _0x453c7c)_0x400db5['getCustomProperty']('addHighlight')||(_0x2223d3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x400db5),_0x2223d3['writer']['removeAttribute']('data-suggestion',_0x400db5),_0x2223d3['writer']['removeAttribute']('data-author-id',_0x400db5),_0x2223d3['mapper']['unbindElementFromMarkerName'](_0x400db5,_0x3d9725['markerName']));}};_0x20bf5c['conversion']['for']('editingDowncast')['add'](_0x67da5a=>{_0x67da5a['on']('addMarker:suggestion:formatBlock',(_0x4b52cc,_0x5ea46e,_0x4bde16)=>{_0x454272(_0x4b52cc,_0x5ea46e,_0x4bde16,!0x1,!0x1);},{'priority':'high'});}),_0x20bf5c['conversion']['for']('editingDowncast')['add'](_0x38cd31=>{_0x38cd31['on']('addMarker:suggestion:attribute',(_0xfbe82b,_0x4bd1be,_0x263c2d)=>{_0x454272(_0xfbe82b,_0x4bd1be,_0x263c2d,!0x1,!0x0);},{'priority':'high'});}),_0x20bf5c['conversion']['for']('editingDowncast')['add'](_0x508a00=>{_0x508a00['on']('removeMarker:suggestion:formatBlock',(_0x15630f,_0x3cebd4,_0x3d4112)=>{_0x315775(0x0,_0x3cebd4,_0x3d4112,!0x1);},{'priority':'high'});}),_0x20bf5c['conversion']['for']('editingDowncast')['add'](_0x1d0f5c=>{_0x1d0f5c['on']('removeMarker:suggestion:attribute',(_0x8ef6fd,_0x287d7a,_0x3a248b)=>{_0x315775(0x0,_0x287d7a,_0x3a248b,!0x0);},{'priority':'high'});}),_0x20bf5c['conversion']['for']('dataDowncast')['add'](_0x3c9a06=>{_0x3c9a06['on']('addMarker:suggestion:formatBlock',(_0x2a5f0b,_0x1c2425,_0x2cc0eb)=>{_0x454272(_0x2a5f0b,_0x1c2425,_0x2cc0eb,!0x0,!0x1);},{'priority':'highest'});}),_0x20bf5c['conversion']['for']('dataDowncast')['add'](_0x7a2b44=>{_0x7a2b44['on']('addMarker:suggestion:attribute',(_0x32fa90,_0x58e692,_0x3256f3)=>{_0x454272(_0x32fa90,_0x58e692,_0x3256f3,!0x0,!0x0);},{'priority':'highest'});}),_0x20bf5c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1cf5b9,_0x3637f2)=>{if(_0x3637f2['options']['showSuggestionHighlights']){const {id:_0x261ab2,authorId:_0x18ffdc}=v(_0x1cf5b9);return _0x1cf5b9['includes'](':split')||_0x1cf5b9['includes'](':merge')?{'group':'suggestion','name':_0x1cf5b9['substr'](0xb),'attributes':{'data-suggestion':_0x261ab2,'data-author-id':_0x18ffdc}}:null;}return{'group':'suggestion','name':_0x1cf5b9['substr'](0xb)};}});const _0x1d0655=(_0x5bffea,_0xae70a6,_0x983e69,_0x59e211,_0x470276)=>{if(_0x59e211&&!_0x983e69['options']['showSuggestionHighlights'])return;if(!_0x983e69['consumable']['test'](_0xae70a6['markerRange'],_0x5bffea['name']))return;const _0x48c19e=this['_activeMarkers'],_0x2e136e=_0xae70a6['markerRange']['getWalker'](),_0x38ef23=_0xae70a6['markerRange']['start'],_0x1dc7c4=_0x20bf5c['model']['schema'];let _0x36c5a2=null,_0x182f53=null,_0x27e603=!0x1,_0x25434d=!0x1;for(const _0x21102d of _0x2e136e){const _0x327770=_0x21102d['item'];_0x27e603=_0x27e603||_0x1dc7c4['isContent'](_0x327770);const _0x51b93a=_0x983e69['mapper']['toViewElement'](_0x327770);if(_0x51b93a&&_0x51b93a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21102d['type']&&(_0x1dc7c4['isBlock'](_0x327770)&&!_0x1dc7c4['isLimit'](_0x327770)&&(_0x327770['nextSibling']||_0x38ef23['isAtEnd']?_0x36c5a2&&_0x36c5a2['parent']==_0x327770||(_0x36c5a2=_0x327770,_0x2029f3(_0x21102d['previousPosition']),_0x25434d=!0x0):_0x182f53=_0x182f53||_0x21102d['previousPosition']));}function _0x2029f3(_0x3a4770){const {id:_0x3b7c04,authorId:_0x443202}=v(_0xae70a6['markerName']),_0x5795ce=_0x983e69['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x470276,'data-suggestion':_0x3b7c04,'data-author-id':_0x443202}),_0x53c558=_0x983e69['mapper']['toViewPosition'](_0x3a4770);!_0x59e211&&_0x48c19e['includes'](_0xae70a6['markerName'])&&_0x983e69['writer']['addClass']('ck-suggestion-marker--active',_0x5795ce),_0x983e69['writer']['insert'](_0x53c558,_0x5795ce),_0x983e69['mapper']['bindElementToMarker'](_0x5795ce,_0xae70a6['markerName']);}_0x27e603||_0x25434d||!_0x182f53||_0x2029f3(_0x182f53);};_0x20bf5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x279775,_0x514b50,_0x233564)=>{_0x1d0655(_0x279775,_0x514b50,_0x233564,!0x1,'merge');},{'priority':'high'}),_0x20bf5c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1dbb76,_0x1a1555,_0x28aca7)=>{_0x1d0655(_0x1dbb76,_0x1a1555,_0x28aca7,!0x0,'merge');},{'priority':'high'}),_0x20bf5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x220a5a,_0xfbb20,_0x5f3d7c)=>{_0x1d0655(_0x220a5a,_0xfbb20,_0x5f3d7c,!0x1,'split');},{'priority':'high'}),_0x20bf5c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x113799,_0x2bd476,_0x361f15)=>{_0x1d0655(_0x113799,_0x2bd476,_0x361f15,!0x0,'split');},{'priority':'high'}),_0x20bf5c['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xb8689,_0x3e93c1,_0x220777)=>{((_0x58cca7,_0x175a89,_0xaed193)=>{const _0xf5c1ee=_0xaed193['mapper']['markerNameToElements'](_0x175a89['markerName']);if(_0xf5c1ee){for(const _0xf6300 of _0xf5c1ee)(_0xf6300['hasClass']('ck-suggestion-marker-split')||_0xf6300['hasClass']('ck-suggestion-marker-merge'))&&(_0xaed193['mapper']['unbindElementFromMarkerName'](_0xf6300,_0x175a89['markerName']),_0xaed193['writer']['remove'](_0xf6300));}})(0x0,_0x3e93c1,_0x220777);},{'priority':'high'});const _0x37b827=(_0x5b8b6e,_0x373101,_0x36b14c,_0x45c775)=>{if(_0x45c775&&!_0x36b14c['options']['showSuggestionHighlights'])return;const _0x91092f=_0x373101['markerRange']['start'],_0x42e86b=_0x373101['markerRange']['end'],_0x57e4d8=_0x20bf5c['model']['schema'];if(!_0x91092f['isTouching'](_0x42e86b)||!_0x91092f['nodeAfter'])return;const _0x40d5f7=_0x91092f['nodeAfter'];if(_0x57e4d8['isBlock'](_0x40d5f7)&&!_0x57e4d8['isLimit'](_0x40d5f7)&&_0x57e4d8['checkChild'](_0x40d5f7,'$text')){if(!_0x36b14c['consumable']['consume'](_0x373101['markerRange'],_0x5b8b6e['name']))return;const {id:_0x4fe6e2,authorId:_0x283139}=v(_0x373101['markerName']),_0x210dd5=_0x36b14c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4fe6e2,'data-author-id':_0x283139}),_0x2a6d54=_0x36b14c['mapper']['toViewPosition'](_0x42e86b);!_0x45c775&&this['_activeMarkers']['includes'](_0x373101['markerName'])&&_0x36b14c['writer']['addClass']('ck-suggestion-marker--active',_0x210dd5),_0x36b14c['writer']['insert'](_0x2a6d54,_0x210dd5),_0x36b14c['mapper']['bindElementToMarker'](_0x210dd5,_0x373101['markerName']);}};_0x20bf5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x227957,_0x250410,_0x15ce7c)=>{_0x37b827(_0x227957,_0x250410,_0x15ce7c,!0x1);},{'priority':'high'}),_0x20bf5c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x47d5a5,_0x597324,_0x380ebf)=>{_0x37b827(_0x47d5a5,_0x597324,_0x380ebf,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x19ac6b,_0x3e299f,_0x2f2b51)=>{this['_activeMarkers']=_0x2f2b51['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x379417){this['_blockAttributeKeys']['add'](_0x379417);}['registerInlineAttribute'](_0x3ff7f6){this['_inlineAttributeKeys']['add'](_0x3ff7f6);}['isBlockAttribute'](_0x599d77){return this['_blockAttributeKeys']['has'](_0x599d77);}['isInlineAttribute'](_0x4007bc){return this['_inlineAttributeKeys']['has'](_0x4007bc);}['isRegisteredAttribute'](_0xc4a875){return this['isInlineAttribute'](_0xc4a875)||this['isBlockAttribute'](_0xc4a875);}['_getClassName'](_0x598d97,_0x4cfbc9){if('attribute'!=_0x598d97)return'ck-suggestion-marker-'+_0x598d97;const _0x190674=_0x4cfbc9['split']('|')[0x0];return this['isBlockAttribute'](_0x190674)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x542dcb={},_0x13adfc){if(void 0x0!==_0x542dcb['dateTimeFormat']&&'function'!=typeof _0x542dcb['dateTimeFormat'])throw new _0x5e43ee('invalid-date-time-format');return _0x45a45d=>{const _0x1127de='string'==typeof _0x45a45d?tt['fromISO'](_0x45a45d):tt['fromJSDate'](_0x45a45d),_0x142488=tt['now'](),_0x362c1c=Math['floor'](_0x142488['diff'](_0x1127de,'days')['days']);return _0x542dcb['dateTimeFormat']?_0x542dcb['dateTimeFormat'](_0x1127de['toJSDate'](),_0x13adfc&&_0x13adfc['t']?_0x13adfc['t']:void 0x0):0x0===_0x362c1c?_0x13adfc?U(_0x13adfc,'Today')+'\x20'+_0x1127de['toFormat']('hh:mma'):_0x1127de['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x362c1c?_0x13adfc?U(_0x13adfc,'Yesterday')+'\x20'+_0x1127de['toFormat']('hh:mma'):_0x1127de['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x362c1c<0x7?_0x13adfc?U(_0x13adfc,'Last')+'\x20'+U(_0x13adfc,_0x1127de['toFormat']('EEEE'))+'\x20'+_0x1127de['toFormat']('hh:mma'):_0x1127de['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x1127de['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x5bb98a,_0x34a0d6){const _0xb664fc=_0x5bb98a['mapper']['markerNameToElements'](_0x34a0d6['name']);if(!_0xb664fc)return null;const _0x592c54=_0x5e5e0d(_0xb664fc['values']());return _0x5bb98a['view']['domConverter']['mapViewToDom'](_0x592c54)||null;}function wt(_0x56aa67,_0x4c956a){if(0x0===_0x4c956a['length'])return null;const _0x5735e1=[],_0x266ce9=_0x56aa67['view']['domConverter'];for(const _0x5bb18f of _0x4c956a){const _0x2638d4=_0x56aa67['mapper']['markerNameToElements'](_0x5bb18f['name']);if(!_0x2638d4)continue;const _0x497647=Array['from'](_0x2638d4)['map'](_0x5641af=>_0x266ce9['mapViewToDom'](_0x5641af))['filter'](_0x526c20=>!!_0x526c20);_0x5735e1['push'](..._0x497647);}if(0x0===_0x5735e1['length'])return null;const _0xd4f00=[];for(const _0x1b03f of _0x5735e1){const _0x493ad4=_0x1b03f['getClientRects']()['item'](0x0);_0x493ad4&&_0xd4f00['push']({'x':_0x493ad4['x'],'y':_0x493ad4['y'],'domElement':_0x1b03f});}return 0x0===_0xd4f00['length']?null:(_0xd4f00['sort']((_0x4feb1e,_0x5b1f48)=>_0x4feb1e['y']-_0x5b1f48['y']||_0x4feb1e['x']-_0x5b1f48['x']),_0xd4f00['map'](_0x3319f9=>_0x3319f9['domElement']));}function bt(_0x439298,{limit:_0x2fb65b,suffix:_0x2e1369='...'}){const _0x26aa67=[];let _0x3eb686=0x0;const _0x4c9589=_0x439298['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0xe2aeae=0x0;_0xe2aeae<_0x4c9589['length'];_0xe2aeae++){let _0x26d70f=_0x4c9589[_0xe2aeae];const _0x486c39=tn(_0x26d70f);if(_0x26d70f['startsWith']('<')){if(_0x3eb686>=_0x2fb65b){const _0x1247b3=_0x26d70f['match'](/[a-zA-Z]+/);if(!_0x1247b3){_0x4c9589[_0xe2aeae]='';continue;}const _0x4ab550=_0x1247b3[0x0];_0x26d70f['startsWith']('</')?(_0x26aa67['length']&&(_0x26d70f=''),_0x26aa67['pop']()):(_0x26aa67['push'](_0x4ab550),_0x26d70f='');}}else{if(_0x3eb686>=_0x2fb65b)_0x26d70f='';else{if(_0x3eb686+_0x486c39['length']>=_0x2fb65b){let _0x33d69f=_0x2fb65b-_0x3eb686;if('\x20'===_0x486c39[_0x33d69f-0x1])_0x33d69f--;else{const _0x4920d8=_0x486c39['slice'](_0x33d69f)['indexOf']('\x20');-0x1!==_0x4920d8?_0x33d69f+=_0x4920d8:_0x33d69f=_0x26d70f['length'];}_0x26d70f=_0x486c39['slice'](0x0,_0x33d69f)['join']('')+_0x2e1369,_0x3eb686=_0x2fb65b;}else _0x3eb686+=_0x486c39['length'];}}_0x4c9589[_0xe2aeae]=_0x26d70f;}return _0x4c9589['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x3d8805){const _0x4e7d5a=[];for(let _0x323219=0x0;_0x323219<_0x3d8805['length'];_0x323219++){const _0x4c656a=_0x3d8805['substring'](_0x323219)['match'](/^&[a-z0-9#]+;/);if(_0x4c656a){const _0x3166d1=_0x4c656a[0x0];_0x4e7d5a['push'](_0x3166d1),_0x323219+=_0x3166d1['length']-0x1;}else _0x4e7d5a['push'](_0x3d8805[_0x323219]);}return _0x4e7d5a;}class V extends _0xf8b808{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x10e1c1){super(_0x10e1c1);const _0x4e2e50=this['bindTemplate'];this['set']('message',U(_0x10e1c1,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x10e1c1,U(_0x10e1c1,'Yes'),_0x448b9e,'submit'),this['cancelView']=this['_createButtonView'](_0x10e1c1,U(_0x10e1c1,'No'),_0xc81095,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x4d8956(),this['focusCycler']=new _0x28faee({'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':_0x4e2e50['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'](_0x5edba1,_0x1f7527,_0x35568c,_0x51b1ac){const _0x56eeb8=new _0x51bd3a(_0x5edba1);return _0x56eeb8['label']=_0x1f7527,_0x56eeb8['icon']=_0x35568c,_0x56eeb8['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x51b1ac}}),_0x56eeb8['on']('execute',()=>this['fire'](_0x51b1ac)),_0x56eeb8;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x3c4127=>{this['keystrokes']['listenTo'](_0x3c4127['element']),this['focusTracker']['add'](_0x3c4127['element']);}),this['keystrokes']['set']('esc',(_0x51b8d3,_0x9bce87)=>{this['fire']('cancel'),_0x9bce87();});}}function vt(_0x5ac4eb){return class extends _0x5ac4eb{['showConfirm'](_0x33d2b0,_0x238bb0){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x33d2b0,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x238bb0['appendChild'](this['confirmView']['element']),_0x238bb0['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x23b2d8,_0x36b4a1,_0x3b2424)=>{_0x3b2424||_0x238bb0['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x39f40a=>this['confirmView']['on']('submit',_0x39f40a));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0x48851d){let _0x39fff6=0x0,_0xe6f180=0x0;for(const _0xb9ee33 of ne(_0x48851d))_0x39fff6=(_0x39fff6<<0x5)-_0x39fff6+_0xb9ee33,_0x39fff6&=_0x39fff6,[_0x39fff6,_0xe6f180]=[_0xe6f180,_0x39fff6];return ie(_0x39fff6)+ie(_0xe6f180);}function*ee(_0x4f37d4){null==_0x4f37d4||null==_0x4f37d4?yield 0x12b9b0a1:0x0===_0x4f37d4||!0x1===_0x4f37d4?yield 0x0:0x1===_0x4f37d4||0x1==_0x4f37d4?yield 0x1:Array['isArray'](_0x4f37d4)?yield*function*(_0x39e680){for(const _0x3f4b3c of _0x39e680)yield*ee(_0x3f4b3c);}(_0x4f37d4):'object'==typeof _0x4f37d4?yield*ne(_0x4f37d4):'string'==typeof _0x4f37d4?yield*oe(_0x4f37d4):'number'==typeof _0x4f37d4&&(yield _0x4f37d4);}function*ne(_0x15a274){if(yield te('{'),_0x15a274){const _0xb47734=Object['keys'](_0x15a274)['sort']();for(const _0x436f78 of _0xb47734){yield*oe(_0x436f78),yield te(':');const _0x222af9=_0x15a274[_0x436f78];yield*ee(_0x222af9);}}yield te('}');}function*oe(_0x507ebf){yield te('\x22');for(const _0x552dfe of _0x507ebf)yield te(_0x552dfe);yield te('\x22');}function te(_0x35ee2e){return _0x35ee2e['charCodeAt'](0x0);}function ie(_0x34e55a){return(_0x34e55a*=Math['sign'](_0x34e55a))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x1bbe31,_0x53265d,_0x3eface,_0x19adaf=[]){const _0x57ee70='string'==typeof _0x1bbe31?_0x3eface['get'](_0x1bbe31)['constructor']:_0x1bbe31['prototype']['constructor'];if(_0x53265d['has'](_0x57ee70))return _0x53265d['get'](_0x57ee70);_0x53265d['set'](_0x57ee70,!0x0);const _0x241744=[...et,..._0x19adaf]['map'](_0x2db52c=>{if(_0x3eface['has'](_0x2db52c))return _0x3eface['get'](_0x2db52c)['constructor'];})['filter'](_0x51bb97=>_0x51bb97);if(_0x57ee70&&_0x241744['includes'](_0x57ee70))return _0x53265d['set'](_0x57ee70,!0x1),!0x1;if(!_0x57ee70['requires'])return _0x53265d['set'](_0x57ee70,!0x0),!0x0;const _0x11907c=_0x57ee70['requires']['every'](_0x27ff33=>ot(_0x27ff33,_0x53265d,_0x3eface,_0x19adaf));return _0x53265d['set'](_0x57ee70,_0x11907c),_0x11907c;}function Ct(_0xa1b4ed,_0x2c7a06){const _0x356eae={};for(const _0x142ab5 of _0xa1b4ed['config']['names']())nt['includes'](_0x142ab5)||(_0x356eae[_0x142ab5]=_0xa1b4ed['config']['get'](_0x142ab5));const _0x194ae3=_0x356eae['plugins']||[],_0x56e20a=_0xa1b4ed['constructor']['builtinPlugins']||[],_0xb36772=_0x194ae3['length']?_0x194ae3:_0x56e20a,_0x5a0bb3=_0x356eae['extraPlugins']||[];delete _0x356eae['extraPlugins'];const _0x8db7aa=_0x356eae['removePlugins']||[];delete _0x356eae['removePlugins'];const _0xfb20a8=_0xa1b4ed['_context']['config']['get']('plugins')||[],_0x588b1f=_0xb36772['concat'](_0x5a0bb3)['concat'](_0xfb20a8)['map'](_0x478631=>'string'==typeof _0x478631?_0x56e20a['find'](_0x7c6a27=>_0x7c6a27['pluginName']==_0x478631):_0x478631)['filter'](_0x142fcc=>!_0x8db7aa['includes'](_0x142fcc)&&!_0x8db7aa['includes'](_0x142fcc['pluginName'])),_0x53d434=Array['from'](new Set(_0x588b1f)),_0x4d531c=new Map();return _0x356eae['plugins']=_0x53d434['filter'](_0x411775=>ot(_0x411775,_0x4d531c,_0xa1b4ed['plugins'],_0x2c7a06)),_0x356eae;}function _t(_0x19649a,_0x106c09){const _0x56c63e=[];_0x19649a['document']['selection']['on']('change:range',()=>{const _0x2f9a80=function(_0x5e0bae,_0x51caf8){const _0x75f663=[];for(const _0x128035 of _0x5e0bae['markers']){const _0xf45abd=_0x128035['getRange']();(_0xf45abd['containsPosition'](_0x51caf8)||_0xf45abd['start']['isEqual'](_0x51caf8)||_0xf45abd['end']['isEqual'](_0x51caf8))&&_0x75f663['push'](_0x128035);}return _0x75f663;}(_0x19649a,_0x19649a['document']['selection']['focus']),_0x52de9e=[],_0x4a63b2=[],_0x20dcf8=[];for(const _0x111860 of _0x56c63e)_0x2f9a80['includes'](_0x111860)||_0x52de9e['push'](_0x111860);for(const _0x5c3a0b of _0x2f9a80)_0x56c63e['includes'](_0x5c3a0b)||_0x4a63b2['push'](_0x5c3a0b),_0x20dcf8['push'](_0x5c3a0b);(_0x52de9e['length']||_0x4a63b2['length'])&&_0x106c09({'left':_0x52de9e,'entered':_0x4a63b2}),_0x56c63e['length']=0x0,_0x56c63e['push'](..._0x20dcf8);});}const xt='Ctrl+Shift+E';function It(_0xba86c8,_0x535827){const _0x1a1695=_0xba86c8['element'];_0xba86c8['keystrokes']['listenTo'](_0x1a1695);for(const _0x574b8f of _0x535827)ro(_0xba86c8,_0x574b8f);_0x535827['on']('change',(_0xbb948e,_0x2eb344)=>{for(const _0x176420 of _0x2eb344['removed'])to(_0xba86c8,_0x176420);for(const _0x247799 of Array['from'](_0x2eb344['added'])['reverse']())ro(_0xba86c8,_0x247799);}),_0xba86c8['keystrokes']['set']('enter',(_0x5a9cec,_0xcdf436)=>{_0x1a1695===_0x5a9cec['target']&&(_0xba86c8['focusCycler']['focusFirst'](),_0xcdf436());},{'filter':_0x6ead27=>_0x6ead27['target']===_0x1a1695}),_0xba86c8['keystrokes']['set']('esc',(_0x322cfd,_0x3e4058)=>{_0x1a1695!==_0x322cfd['target']?_0xba86c8['focus']():_0xba86c8['fire']('escape'),_0x3e4058();}),_0xba86c8['keystrokes']['set']('arrowdown',(_0x3f14a6,_0x3297f5)=>{_0x1a1695===_0x3f14a6['target']&&(_0xba86c8['fire']('arrowdown'),_0x3297f5());}),_0xba86c8['keystrokes']['set']('arrowup',(_0x44aa4b,_0x268354)=>{_0x1a1695===_0x44aa4b['target']&&(_0xba86c8['fire']('arrowup'),_0x268354());});}function ro(_0x15540a,_0x544d63){_0x544d63['isRendered']&&(_0x15540a['focusTracker']['add'](_0x544d63['element']),_0x15540a['keystrokes']['listenTo'](_0x544d63['element']),_0x2e35be(_0x544d63)&&function(_0x226f0,_0x488b15){const _0x51b151=_0x226f0['actions'],_0x98ca29=_0x488b15['actions'];for(const _0x3dc3f9 of Object['keys'](_0x51b151))if(_0x3dc3f9 in _0x98ca29&&_0x51b151[_0x3dc3f9]!==_0x98ca29[_0x3dc3f9])return!0x1;return!0x0;}(_0x15540a['focusCycler'],_0x544d63['focusCycler'])&&_0x15540a['focusCycler']['chain'](_0x544d63['focusCycler']));}function to(_0x4c14f2,_0x1aecff){_0x4c14f2['focusTracker']['remove'](_0x1aecff['element']),_0x4c14f2['keystrokes']['stopListening'](_0x1aecff['element']),_0x2e35be(_0x1aecff)&&_0x4c14f2['focusCycler']['unchain'](_0x1aecff['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x503c27{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x220e61?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x153e7f,_0x5b2a66)=>{_0x5b2a66['on']('ready',()=>{this['_integrateEditor'](_0x5b2a66);});});}get['editor'](){if(this['context']instanceof _0x220e61)return this['context'];{const _0x45c486=this['context']['editors']['first'];if(!_0x45c486)throw new _0x5e43ee('documentcompare-no-editor',this);return _0x45c486;}}['getDiff'](_0x1cefdb,_0x28b5a3,_0x2f3ddc={'anchor':'main','markDeletions':!0x1}){let _0x4131f8,_0x3ba38b;const _0x5aa8be=this['editor'];if('string'==typeof _0x2f3ddc['anchor']){const _0x5436af=_0x5aa8be['model']['document']['getRoot'](_0x2f3ddc['anchor']);if(!_0x5436af)throw new _0x5e43ee('documentcompare-compare-no-root',this,{'anchor':_0x2f3ddc['anchor']});_0x4131f8=_0x5436af,_0x3ba38b=_0x5aa8be['model']['createPositionAt'](_0x5436af,0x0);}else _0x4131f8=_0x2f3ddc['anchor']['clone'](),_0x3ba38b=_0x2f3ddc['anchor']['clone']();const _0x195f3a=_0x5aa8be['data']['parse'](_0x1cefdb,_0x4131f8),_0x3a42d4=_0x5aa8be['data']['parse'](_0x28b5a3,_0x4131f8);return new Mt(_0x195f3a,_0x3a42d4,_0x5aa8be,{'anchor':_0x3ba38b,'markDeletions':_0x2f3ddc['markDeletions']});}['isMarkedRemoveOperation'](_0x214b37){return'marker'==_0x214b37['type']&&_0x214b37['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x2ac980){_0x2ac980['conversion']['for']('upcast')['add'](_0xef0362=>{_0xef0362['on']('element',(_0x49b683,_0x1b1926,_0x138c1a)=>{if(_0x1b1926['modelRange'])for(const _0x5123e3 of _0x1b1926['modelRange']['getItems']({'shallow':!0x0})){if(_0x5123e3['is']('$textProxy'))continue;const _0x1015eb=_0x1b1926['viewItem']['getAttribute'](Et);_0x1015eb&&_0x138c1a['writer']['setAttribute'](St,_0x1015eb,_0x5123e3);}},{'priority':'lowest'});}),_0x2ac980['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x3194c5,_0x223524,_0x54b412,_0x5020db){this['_editor']=_0x54b412,this['_markDeletions']=!!_0x5020db['markDeletions'],this['_anchor']=_0x5020db['anchor'];const _0x31c604=this['_tokenizeModel'](_0x3194c5),_0x4939da=this['_tokenizeModel'](_0x223524);this['_diffItems']=this['_diffModelTokens'](_0x31c604,_0x4939da),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x3194c5['markers'],_0x223524['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x1b27e3=this['_editor']['model']['document'],_0x461100=[];let _0x39ba72=_0x1b27e3['version'];for(const _0x2fb903 of this['_operationsData'])switch(_0x2fb903['type']){case'attribute':{const _0x146ef1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']),_0x4b6e63=_0x146ef1['getShiftedBy'](_0x2fb903['howMany']),_0x4fe339=new _0x2ece87(_0x146ef1,_0x4b6e63),_0x2d3415=JSON['parse'](_0x2fb903['oldValue']),_0x29c55a=JSON['parse'](_0x2fb903['newValue']);_0x461100['push'](new _0x1d0e28(_0x4fe339,_0x2fb903['key'],_0x2d3415,_0x29c55a,_0x39ba72++));break;}case'insert':{const _0x5ae831=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']),_0x2a91fd=this['_makeModelFromTokens'](_0x2fb903['tokens']);_0x461100['push'](new _0x1e67d8(_0x5ae831,_0x2a91fd,_0x39ba72++));break;}case'remove':{const _0x12f672=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']),_0x193e5c=new _0x38ac5c(_0x1b27e3['graveyard'],[0x0]);_0x461100['push'](new _0x1d1d8d(_0x12f672,_0x2fb903['howMany'],_0x193e5c,_0x39ba72++));break;}case'rename':{const _0x42d407=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']);_0x461100['push'](new _0x4ebc8a(_0x42d407,_0x2fb903['oldName'],_0x2fb903['newName'],_0x39ba72++));break;}case'split':{const _0x132875=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']),_0xd738b1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']['slice'](0x0,-0x1));_0xd738b1['offset']++,_0x461100['push'](new _0x3e5e7d(_0x132875,Number['NEGATIVE_INFINITY'],_0xd738b1,null,_0x39ba72++));break;}case'merge':{const _0x3ede8a=_0x2fb903['path']['slice'](),_0x224689=_0x3ede8a['slice'](0x0,-0x1);_0x224689[_0x224689['length']-0x1]++,_0x224689['push'](0x0);const _0x3ccce2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x224689),_0x127a91=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3ede8a),_0x47b3a4=new _0x38ac5c(_0x1b27e3['graveyard'],[0x0]);_0x461100['push'](new _0x1fa071(_0x3ccce2,Number['NEGATIVE_INFINITY'],_0x127a91,_0x47b3a4,_0x39ba72++));break;}case'marker':case'markedRemove':{let _0x2d74ea=null;if(_0x2fb903['range']){const _0x41db09=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['range']['start']),_0x519374=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['range']['end']);_0x2d74ea=new _0x2ece87(_0x41db09,_0x519374);}const _0x482c85='marker'==_0x2fb903['type']?_0x2fb903['name']:'$markedRemove:'+_0x59988c();_0x461100['push'](new _0x1fa860(_0x482c85,null,_0x2d74ea,_0x1b27e3['model']['markers'],!0x0,_0x39ba72++));break;}case'unwrap':{const _0x5d2dbc=_0x2fb903['path']['slice']();_0x5d2dbc['push'](0x0);const _0x33a43d=_0x2fb903['path']['slice'](),_0x117bf8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5d2dbc),_0xf209b9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x33a43d),_0x35b3d4=new _0x38ac5c(_0x1b27e3['graveyard'],[0x0]);_0x461100['push'](new _0x1d1d8d(_0x117bf8,_0x2fb903['howMany'],_0xf209b9,_0x39ba72++)),_0x461100['push'](new _0x1d1d8d(_0xf209b9['getShiftedBy'](_0x2fb903['howMany']),0x1,_0x35b3d4,_0x39ba72++));break;}case'wrap':{const _0x4f7c01=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['range']['start']),_0x95e4e2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['range']['end']),_0x58a68d=_0x2fb903['token']['element']['_clone'](!0x1),_0x46b26e=_0x2fb903['range']['end']['slice']();_0x46b26e['push'](0x0);const _0x102f5b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x46b26e);_0x461100['push'](new _0x1e67d8(_0x95e4e2,_0x58a68d,_0x39ba72++)),_0x461100['push'](new _0x1d1d8d(_0x4f7c01,_0x95e4e2['offset']-_0x4f7c01['offset'],_0x102f5b,_0x39ba72++));break;}}return _0x461100;}['_tokenizeModel'](_0x22e9c3){const _0x5e8d00=[],_0x5dc52d=_0x2ece87['_createIn'](_0x22e9c3),_0x59be77=new _0x5d0b0b({'boundaries':_0x5dc52d});let _0xf379c5='',_0x2d3740=null;const _0x346df2=[''],_0x1b58a1=new Map();for(const _0x1cdb2d of _0x59be77)if('elementStart'==_0x1cdb2d['type']||'elementEnd'==_0x1cdb2d['type']){let _0x302c64=_0x346df2[0x0];''!==_0xf379c5&&(_0x5e8d00['push'](...this['_makeTokensFromTextByWords'](_0xf379c5,_0x2d3740,_0x302c64)),_0xf379c5='');const _0xa61a19=_0x1cdb2d['item'];let _0x1f0e10;_0xa61a19['getAttribute'](St)?_0x1f0e10=_0xa61a19['getAttribute'](St):'elementStart'==_0x1cdb2d['type']?(_0x1f0e10=_(_0xa61a19),_0x1b58a1['set'](_0xa61a19,_0x1f0e10)):_0x1f0e10=_0x1b58a1['get'](_0xa61a19);const _0x55fc52=this['_getElementCategory'](_0xa61a19);'solid'==_0x55fc52&&('elementStart'==_0x1cdb2d['type']?(_0x302c64=_0x1f0e10,_0x346df2['unshift'](_0x302c64)):_0x346df2['shift']());const _0x194c2c={'type':'element','element':_0xa61a19,'elementId':_0x1f0e10,'category':_0x55fc52,'isStart':'elementStart'==_0x1cdb2d['type'],'limitId':_0x302c64};_0x5e8d00['push'](_0x194c2c);}else''==_0xf379c5&&(_0x2d3740=_0x1cdb2d['previousPosition']['clone']()),_0xf379c5+=_0x1cdb2d['item']['data'];return''!==_0xf379c5&&_0x5e8d00['push'](...this['_makeTokensFromTextByWords'](_0xf379c5,_0x2d3740,_0x346df2[0x0])),_0x5e8d00;}['_makeTokensFromTextByWords'](_0x3351f5,_0x1335eb,_0x37025c){const _0x379579=_0x3351f5['matchAll'](/(\s)/g),_0x575e5b=Array['from'](_0x379579)['map'](_0x127741=>_0x127741['index']);_0x575e5b['push'](_0x3351f5['length']),0x0==_0x575e5b[0x0]&&_0x575e5b['shift']();const _0x30f889=[],_0x4392d2=_0x1335eb['parent'];let _0x5ddb46=0x0,_0x54bdd4=_0x1335eb['offset'];for(let _0x4249e4=0x0;_0x4249e4<_0x575e5b['length'];_0x4249e4++)_0x30f889['push']({'type':'text','data':_0x3351f5['slice'](_0x5ddb46,_0x575e5b[_0x4249e4]),'parent':_0x4392d2,'offset':_0x54bdd4,'limitId':_0x37025c}),_0x5ddb46=_0x575e5b[_0x4249e4],_0x54bdd4=_0x1335eb['offset']+_0x575e5b[_0x4249e4];return _0x30f889;}['_getElementCategory'](_0x4e262e){const _0x3fcd31=this['_editor']['model']['schema'];return _0x3fcd31['isLimit'](_0x4e262e)||_0x3fcd31['isContent'](_0x4e262e)||_0x3fcd31['isInline'](_0x4e262e)?'solid':_0x3fcd31['isBlock'](_0x4e262e)?'block':'container';}['_diffModelTokens'](_0x3dea21,_0x2c9b4b){const _0x30aead=_0x3399c5(_0x3dea21,_0x2c9b4b,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x30aead);const _0x3e2c14=_0x30aead['flatMap'](_0x3ac820=>{const _0x292f33=_0x3ac820['added']?'added':_0x3ac820['removed']?'removed':'unchanged';return _0x3ac820['value']['map'](_0x322a0c=>({'token':_0x322a0c,'change':_0x292f33}));});let _0x5cfd01=0x0;for(const _0x51b01e of _0x3e2c14)'added'!=_0x51b01e['change']&&('unchanged'==_0x51b01e['change']&&(_0x51b01e['before']=_0x3dea21[_0x5cfd01]),_0x5cfd01++);return _0x3e2c14;}['_handleUnclosedBlockOpeningTags'](_0x13964e){for(let _0x398dbd=0x0;_0x398dbd<_0x13964e['length']-0x1;_0x398dbd++)if(_0x13964e[_0x398dbd]['removed']&&_0x13964e[_0x398dbd+0x1]['added']){const _0x299b48=this['_findUnclosedBlockOpeningToken'](_0x13964e[_0x398dbd]['value']);if(null!==_0x299b48){const _0x86a3f5=this['_findUnclosedBlockOpeningToken'](_0x13964e[_0x398dbd+0x1]['value']),_0xfef0a0=_0x13964e[_0x398dbd]['value']['splice'](_0x299b48),_0x19c4f3=_0x13964e[_0x398dbd+0x1]['value']['splice'](_0x86a3f5),_0x3b2025=[_0x19c4f3['shift']()];_0xfef0a0['shift']();const _0x5785f4={'value':_0xfef0a0,'removed':!0x0},_0x15d6e0={'value':_0x19c4f3,'added':!0x0},_0x597c03={'value':_0x3b2025};_0x13964e['splice'](_0x398dbd+0x2,0x0,_0x597c03,_0x5785f4,_0x15d6e0);}}}['_findUnclosedBlockOpeningToken'](_0xbfdb4c){let _0x3b3904=0x0,_0x3eca78=-0x1;for(let _0x375434=0x0;_0x375434<_0xbfdb4c['length'];_0x375434++){const _0x41d963=_0xbfdb4c[_0x375434];'element'==_0x41d963['type']&&'block'==_0x41d963['category']&&(_0x3b3904+=_0x41d963['isStart']?0x1:-0x1,_0x41d963['isStart']&&(_0x3eca78=_0x375434));}return 0x0===_0x3b3904?null:_0x3eca78;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x399eef=0x0;_0x399eef<this['_diffItems']['length'];_0x399eef++){const _0x3b1ca5=this['_diffItems'][_0x399eef]['change'],_0x2a3cbe=[];_0x2a3cbe['push'](this['_diffItems'][_0x399eef]);let _0x2f7e2c=_0x399eef+0x1;for(;this['_diffItems'][_0x2f7e2c]&&this['_diffItems'][_0x2f7e2c]['change']==_0x3b1ca5;)_0x2a3cbe['push'](this['_diffItems'][_0x2f7e2c]),_0x2f7e2c++,_0x399eef++;const _0x44fb2a=_0x2a3cbe['map'](_0x5cec0c=>_0x5cec0c['token']);if('unchanged'==_0x3b1ca5)_0x2a3cbe['map'](_0x4d7a9e=>_0x4d7a9e['before'])['forEach'](_0xa6485e=>this['_traverseOverItem'](_0xa6485e));else{if('removed'==_0x3b1ca5){if(this['_markDeletions']){const _0xbf3d89=this['_path']['slice']();_0x44fb2a['forEach'](_0x2b5450=>this['_traverseOverItem'](_0x2b5450));const _0x2ddf38=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0xbf3d89,'end':_0x2ddf38}});}else this['_handleChanged'](_0x44fb2a,!0x0,this['_path']['slice']());}else{const _0x438869=_0x44fb2a['filter'](_0x1b3c2a=>'element'!=_0x1b3c2a['type']||'container'!=_0x1b3c2a['category']);this['_handleChanged'](_0x438869,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x429d13=0x0;_0x429d13<this['_diffItems']['length'];_0x429d13++){const _0x4b9693=this['_diffItems'][_0x429d13]['change'],_0x292fb2=[];_0x292fb2['push'](this['_diffItems'][_0x429d13]);let _0x2f035e=_0x429d13+0x1;for(;this['_diffItems'][_0x2f035e]&&this['_diffItems'][_0x2f035e]['change']==_0x4b9693;)_0x292fb2['push'](this['_diffItems'][_0x2f035e]),_0x2f035e++,_0x429d13++;const _0x956fff=_0x292fb2['map'](_0x41cc8b=>_0x41cc8b['token']);if('unchanged'==_0x4b9693){const _0x21b02a=_0x292fb2['map'](_0x3b6fd7=>_0x3b6fd7['before']);this['_handleUnchanged'](_0x21b02a,_0x956fff);}else('removed'!=_0x4b9693||this['_markDeletions'])&&_0x956fff['forEach'](_0x3a340b=>{this['_traverseOverItem'](_0x3a340b);});}}['_calculateMarkersOperationsData'](_0xfc69a2,_0x3f7982){const _0x29bbad={};for(const [_0x48255c]of _0xfc69a2)_0x29bbad[_0x48255c]=null;for(const [_0x462cfc,_0x4c5454]of _0x3f7982)_0x29bbad[_0x462cfc]=_0x4c5454;const _0x1f2d8c=Object['entries'](_0x29bbad)['map'](([_0x1cbcc4,_0x5eccb4])=>({'type':'marker','name':_0x1cbcc4,'range':_0x5eccb4?{'start':_0x5eccb4['start']['path']['slice'](),'end':_0x5eccb4['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x1f2d8c);}['_handleUnwraps'](){const _0x253c5f=new Map(),_0x36d075=[],_0x4254ae=[0x0];let _0x5250c1=this['_diffItems']['length']+0x1;for(let _0x313a01=this['_diffItems']['length']-0x1;_0x313a01>=0x0;_0x313a01--){const {token:_0x3a4fd7,before:_0x37bf11,change:_0x31c4d1}=this['_diffItems'][_0x313a01];if('removed'!=_0x31c4d1&&(_0x5250c1=_0x313a01),'element'!=_0x3a4fd7['type']||'container'!=_0x3a4fd7['category']||'added'==_0x31c4d1)continue;const _0x38d213=_0x37bf11?_0x37bf11['element']:_0x3a4fd7['element'];if(_0x3a4fd7['isStart']){const _0x128986=_0x253c5f['get'](_0x38d213),_0x2dbaf8=this['_diffItems'][_0x128986];('removed'==_0x31c4d1||'removed'==_0x2dbaf8['change'])&&_0x5250c1<_0x128986&&(this['_operationsData']['push']({'type':'unwrap','path':_0x38d213['getPath'](),'howMany':_0x38d213['maxOffset']+_0x4254ae[0x0]}),_0x4254ae['shift'](),_0x4254ae[0x0]+=_0x38d213['maxOffset']-0x1,_0x36d075['push'](_0x313a01),_0x36d075['push'](_0x128986));}else _0x253c5f['set'](_0x38d213,_0x313a01),_0x4254ae['unshift'](0x0);}_0x36d075['sort']((_0x170467,_0x4c4a9e)=>_0x4c4a9e-_0x170467),_0x36d075['forEach'](_0x41ad02=>{const _0x4a630f=this['_diffItems'][_0x41ad02];'removed'==_0x4a630f['change']?this['_diffItems']['splice'](_0x41ad02,0x1):(_0x4a630f['change']='added',delete _0x4a630f['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5166ac=[];for(let _0x575e68=0x0;_0x575e68<this['_diffItems']['length'];_0x575e68++){const {change:_0xb56f55,token:_0x5e13cd}=this['_diffItems'][_0x575e68];if('added'==_0xb56f55&&'element'==_0x5e13cd['type']&&'container'==_0x5e13cd['category']){if(_0x5e13cd['isStart'])_0x5166ac['push'](this['_path']['slice']());else{if(!_0x5e13cd['isStart']){const _0x33f0a3=_0x5166ac['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x33f0a3,'end':this['_path']['slice']()},'token':_0x5e13cd}),this['_path'][this['_path']['length']-0x1]=_0x33f0a3[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0xb56f55||this['_markDeletions'])&&this['_traverseOverItem'](_0x5e13cd);}}['_handleUnchanged'](_0x5e4790,_0x4535c8){for(let _0x30764a=0x0;_0x30764a<_0x5e4790['length'];_0x30764a++){const _0x14b319=_0x5e4790[_0x30764a];if('element'==_0x14b319['type']&&_0x14b319['isStart']){const _0x11239b=_0x4535c8[_0x30764a];'block'==_0x14b319['category']&&this['_handleElementRename'](_0x14b319['element'],_0x11239b['element'],this['_path']),this['_handleElementAttributeChanges'](_0x14b319['element'],_0x11239b['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x11239b);}else{if('element'!=_0x14b319['type']||_0x14b319['isStart']){if('text'==_0x14b319['type']){const _0x210587=this['_path']['slice'](),_0x30400e=[],_0x2ba4ec=[];for(;_0x5e4790[_0x30764a]&&'text'==_0x5e4790[_0x30764a]['type'];)_0x30400e['push'](_0x5e4790[_0x30764a]),_0x2ba4ec['push'](_0x4535c8[_0x30764a]),this['_path'][this['_path']['length']-0x1]+=_0x5e4790[_0x30764a]['data']['length'],_0x30764a++;_0x30764a--,this['_handleTextAttributeChanges'](_0x30400e,_0x2ba4ec,_0x210587);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x5db58c,_0x3ea376,_0x549c82){const _0x2e48e2=[],_0x10253c=[],_0x4d9cdf=_0x549c82['slice']();for(let _0x198d6e=0x0;_0x198d6e<_0x5db58c['length'];_0x198d6e++){const _0x1c5ad6=_0x5db58c[_0x198d6e],_0x445ec8=_0x549c82['slice']();if('element'!=_0x1c5ad6['type']||_0x1c5ad6['isStart'])'element'==_0x1c5ad6['type']&&_0x1c5ad6['isStart']?(_0x549c82['push'](0x0),_0x3ea376||this['_parents']['push'](_0x1c5ad6),_0x10253c['push']({'before':_0x445ec8,'after':_0x549c82['slice'](),'index':_0x198d6e})):_0x549c82[_0x549c82['length']-0x1]+=_0x1c5ad6['data']['length'];else{let _0x56395a;_0x549c82['pop'](),_0x549c82[_0x549c82['length']-0x1]++,_0x56395a=_0x3ea376?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x10253c['length']?_0x10253c['pop']():_0x2e48e2['push']({'before':_0x445ec8,'after':_0x549c82['slice'](),'index':_0x198d6e,'related':_0x56395a});}}if(_0x10253c['length']!==_0x2e48e2['length'])throw new _0x5e43ee('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x5db58c,'isRemove':_0x3ea376});const _0x28ea10=[{'after':_0x4d9cdf['slice'](),'index':-0x1},..._0x2e48e2,..._0x10253c,{'before':_0x549c82['slice'](),'index':_0x5db58c['length']}];if(_0x3ea376){for(let _0x48719c=_0x28ea10['length']-0x1;_0x48719c>=0x1;_0x48719c--){const _0x4242cf=_0x28ea10[_0x48719c-0x1]['after'],_0x344fd9=_0x28ea10[_0x48719c]['before'],_0x28af20=_0x344fd9[_0x344fd9['length']-0x1]-_0x4242cf[_0x4242cf['length']-0x1];_0x28af20&&(this['_operationsData']['push']({'type':'remove','path':_0x4242cf,'howMany':_0x28af20}),_0x344fd9[_0x344fd9['length']-0x1]-=_0x28af20);}for(const {before:_0x2a9250}of _0x2e48e2)this['_operationsData']['push']({'type':'merge','path':_0x2a9250});}else for(let _0x3693de=0x0;_0x3693de<_0x28ea10['length']-0x1;_0x3693de++){const _0xe87442=_0x28ea10[_0x3693de]['after'],_0xb6f7c8=_0x28ea10[_0x3693de+0x1]['before'],_0x466e30=_0x28ea10[_0x3693de]['index']+0x1,_0x230d48=_0x28ea10[_0x3693de+0x1]['index'];if(_0x466e30!==_0x230d48&&this['_operationsData']['push']({'type':'insert','path':_0xe87442,'tokens':_0x5db58c['slice'](_0x466e30,_0x230d48)}),_0x3693de<_0x2e48e2['length']){this['_operationsData']['push']({'type':'split','path':_0xb6f7c8});const _0x25acac=_0x5db58c[_0x10253c[_0x10253c['length']-0x1-_0x3693de]['index']],_0x165ff2=_0x2e48e2[_0x3693de]['after'],_0x5850bb=_0x2e48e2[_0x3693de]['related']['element'];this['_handleElementRename'](_0x5850bb,_0x25acac['element'],_0x165ff2),this['_handleElementAttributeChanges'](_0x5850bb,_0x25acac['element'],_0x165ff2);}}}['_traverseOverItem'](_0x4aa7e3){'element'==_0x4aa7e3['type']&&_0x4aa7e3['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x4aa7e3)):'element'!=_0x4aa7e3['type']||_0x4aa7e3['isStart']?'text'==_0x4aa7e3['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x4aa7e3['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x436126,_0x5ce462,_0x4f81fa){_0x436126['name']!=_0x5ce462['name']&&this['_operationsData']['push']({'type':'rename','path':_0x4f81fa['slice'](),'oldName':_0x436126['name'],'newName':_0x5ce462['name']});}['_handleElementAttributeChanges'](_0x181822,_0xcf2caf,_0x3f4c5e){const _0xe0d775=this['_getAttributeChanges'](_0x181822['getAttributes'](),_0xcf2caf['getAttributes']());for(const _0x266040 in _0xe0d775){const {oldValue:_0x13b69f,newValue:_0xb28907}=_0xe0d775[_0x266040];this['_operationsData']['push']({'type':'attribute','path':_0x3f4c5e['slice'](),'howMany':0x1,'key':_0x266040,'oldValue':_0x13b69f,'newValue':_0xb28907});}}['_handleTextAttributeChanges'](_0x2056ee,_0x585e99,_0xde7867){const _0x428f1d=this['_operationsData'],_0x164373=_0x2056ee[0x0]['parent'],_0x1e8217=_0x2056ee[0x0]['offset'],_0x4ca45d=_0x585e99[0x0]['parent'],_0x593ed4=_0x585e99[0x0]['offset'],_0x2419ea=_0x2056ee['reduce']((_0x36676e,_0x6ad430)=>_0x36676e+_0x6ad430['data']['length'],0x0),_0x4bb4fc=this['_getAttrsForOffsets'](_0x164373,_0x1e8217,_0x2419ea),_0x21a5ff=this['_getAttrsForOffsets'](_0x4ca45d,_0x593ed4,_0x2419ea),_0x471180={};for(let _0x4cd04f=0x0;_0x4cd04f<_0x2419ea;_0x4cd04f++){const _0x33bc7e=_0x4bb4fc[_0x1e8217+_0x4cd04f],_0x1b65c6=_0x21a5ff[_0x593ed4+_0x4cd04f],_0x3258a2=this['_getAttributeChanges'](_0x33bc7e,_0x1b65c6);for(const _0x4872fd in _0x471180)_0x3258a2[_0x4872fd]||_0x209966(_0x4872fd);for(const _0x219b61 in _0x3258a2){const {oldValue:_0x326ea1,newValue:_0x2a4050}=_0x3258a2[_0x219b61],_0x15ad14=_0x471180[_0x219b61];_0x15ad14?_0x15ad14['oldValue']==_0x326ea1&&_0x15ad14['newValue']==_0x2a4050?_0x15ad14['length']++:(_0x209966(_0x219b61),_0x471180[_0x219b61]={'oldValue':_0x326ea1,'newValue':_0x2a4050,'start':_0x4cd04f,'length':0x1}):_0x471180[_0x219b61]={'oldValue':_0x326ea1,'newValue':_0x2a4050,'start':_0x4cd04f,'length':0x1};}}for(const _0x1d7d5f in _0x471180)_0x209966(_0x1d7d5f);function _0x209966(_0x29152a){const _0x519282=_0x471180[_0x29152a],_0x445720=_0xde7867['slice']();_0x445720[_0x445720['length']-0x1]+=_0x519282['start'],_0x428f1d['push']({'type':'attribute','path':_0x445720,'howMany':_0x519282['length'],'key':_0x29152a,'oldValue':_0x519282['oldValue'],'newValue':_0x519282['newValue']}),delete _0x471180[_0x29152a];}}['_getAttributeChanges'](_0x341639,_0x48c7d9){const _0x7ed4ca={};for(const [_0x56ccbf,_0x1ba448]of _0x341639)_0x7ed4ca[_0x56ccbf]={'oldValue':JSON['stringify'](_0x1ba448),'newValue':'null'};for(const [_0x3f9a43,_0x4d3aa7]of _0x48c7d9){const _0x4038aa=JSON['stringify'](_0x4d3aa7);_0x7ed4ca[_0x3f9a43]?_0x7ed4ca[_0x3f9a43]['oldValue']==_0x4038aa?delete _0x7ed4ca[_0x3f9a43]:_0x7ed4ca[_0x3f9a43]['newValue']=_0x4038aa:_0x7ed4ca[_0x3f9a43]={'oldValue':'null','newValue':_0x4038aa};}return delete _0x7ed4ca[St],_0x7ed4ca;}['_getAttrsForOffsets'](_0x20de32,_0x1c4a56,_0x1495b3){const _0x52be30=new Array(_0x1c4a56+_0x1495b3);let _0x1a0b2f=_0x20de32['getChildAtOffset'](_0x1c4a56),_0x47f1c6=_0x1a0b2f['startOffset'];for(;_0x1a0b2f&&_0x47f1c6<_0x1c4a56+_0x1495b3;){const _0x48e26e=Array['from'](_0x1a0b2f['getAttributes']());_0x52be30['fill'](_0x48e26e,_0x47f1c6,_0x47f1c6+_0x1a0b2f['offsetSize']),_0x47f1c6+=_0x1a0b2f['offsetSize'],_0x1a0b2f=_0x1a0b2f['nextSibling'];}return _0x52be30;}['_getPositionFromAnchorAndPath'](_0xe8a5ab,_0x327e80){const _0x3a0622=[..._0xe8a5ab['path']['slice'](0x0,-0x1),_0xe8a5ab['offset']+_0x327e80[0x0],..._0x327e80['slice'](0x1)];return new _0x38ac5c(_0xe8a5ab['root'],_0x3a0622);}['_makeModelFromTokens'](_0x508772){const _0x4125d2=[];let _0x177e27=null;for(const _0xc690 of _0x508772)if('element'!=_0xc690['type']||_0xc690['isStart']||_0x177e27!=_0xc690['element']){if(!_0x177e27){if('text'==_0xc690['type']){const _0x97267c=_0x38ac5c['_createAt'](_0xc690['parent'],_0xc690['offset']),_0x5263fb=_0x2ece87['_createFromPositionAndShift'](_0x97267c,_0xc690['data']['length']),_0x36d327=Array['from'](_0x5263fb['getItems']())['map'](_0xb5f025=>new _0x559acd(_0xb5f025['data'],_0xb5f025['getAttributes']()));_0x4125d2['push'](..._0x36d327);}else{_0x177e27=_0xc690['element'];const _0x37f355=_0xc690['element']['_clone'](!0x0);_0x37f355['_removeAttribute'](St);for(const _0x4aa2aa of this['_editor']['model']['createRangeIn'](_0x37f355)['getItems']())_0x4aa2aa['is']('element')&&_0x4aa2aa['_removeAttribute'](St);_0x4125d2['push'](_0x37f355);}}}else _0x177e27=null;return _0x4125d2;}}function g(_0x55703e,_0x1e63d2){return _0x55703e['type']===_0x1e63d2['type']&&(_0x55703e['limitId']===_0x1e63d2['limitId']&&('text'==_0x55703e['type']?_0x55703e['data']==_0x1e63d2['data']:function(_0x3450c6,_0x57dc0a){if(_0x3450c6['isStart']!=_0x57dc0a['isStart'])return!0x1;if(_0x3450c6['isStart']&&_0x3450c6['elementId']!=_0x57dc0a['elementId'])return!0x1;if(_0x3450c6['category']!=_0x57dc0a['category'])return!0x1;if('block'==_0x3450c6['category'])return!0x0;if('container'==_0x3450c6['category']&&_0x3450c6['elementId']!=_0x57dc0a['elementId'])return!0x1;return _0x3450c6['element']['name']==_0x57dc0a['element']['name'];}(_0x55703e,_0x1e63d2)));}function _(_0x2c034b){return k({'name':_0x2c034b['name'],...Object['fromEntries'](_0x2c034b['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,xt as FOCUS_ANNOTATION_KEYSTROKE,ft as LateFocusButtonView,gt as LateFocusDropdownButtonView,C as Permissions,kt as SuggestionsConversion,ht as UserView,at as Users,mt as fixElementSuggestionRange,wt as getAllMarkersDomElementsSorted,pt as getDateTimeFormatter,yt as getMarkerDomElement,k as hashObject,Ct as sanitizeEditorConfig,It as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,_t as surroundingMarkersDetector,bt as trimHtml};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "47.3.0-alpha.4",
3
+ "version": "47.3.0-alpha.5",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,18 +32,18 @@
32
32
  "type": "module",
33
33
  "main": "src/index.js",
34
34
  "dependencies": {
35
- "@ckeditor/ckeditor5-engine": "47.3.0-alpha.4",
36
- "@ckeditor/ckeditor5-comments": "47.3.0-alpha.4",
37
- "@ckeditor/ckeditor5-core": "47.3.0-alpha.4",
38
- "@ckeditor/ckeditor5-icons": "47.3.0-alpha.4",
39
- "@ckeditor/ckeditor5-link": "47.3.0-alpha.4",
40
- "@ckeditor/ckeditor5-list": "47.3.0-alpha.4",
41
- "@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.4",
42
- "@ckeditor/ckeditor5-track-changes": "47.3.0-alpha.4",
43
- "@ckeditor/ckeditor5-ui": "47.3.0-alpha.4",
44
- "@ckeditor/ckeditor5-utils": "47.3.0-alpha.4",
45
- "@ckeditor/ckeditor5-widget": "47.3.0-alpha.4",
46
- "ckeditor5": "47.3.0-alpha.4",
35
+ "@ckeditor/ckeditor5-engine": "47.3.0-alpha.5",
36
+ "@ckeditor/ckeditor5-comments": "47.3.0-alpha.5",
37
+ "@ckeditor/ckeditor5-core": "47.3.0-alpha.5",
38
+ "@ckeditor/ckeditor5-icons": "47.3.0-alpha.5",
39
+ "@ckeditor/ckeditor5-link": "47.3.0-alpha.5",
40
+ "@ckeditor/ckeditor5-list": "47.3.0-alpha.5",
41
+ "@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.5",
42
+ "@ckeditor/ckeditor5-track-changes": "47.3.0-alpha.5",
43
+ "@ckeditor/ckeditor5-ui": "47.3.0-alpha.5",
44
+ "@ckeditor/ckeditor5-utils": "47.3.0-alpha.5",
45
+ "@ckeditor/ckeditor5-widget": "47.3.0-alpha.5",
46
+ "ckeditor5": "47.3.0-alpha.5",
47
47
  "diff": "8.0.2",
48
48
  "luxon": "3.6.1",
49
49
  "@types/luxon": "3.6.2"
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cfc78=_0x5931;(function(_0x3d610a,_0x17ae97){const _0x410339=_0x5931,_0x2ca4b0=_0x3d610a();while(!![]){try{const _0x3b96ca=-parseInt(_0x410339(0x7f))/0x1+parseInt(_0x410339(0x74))/0x2*(parseInt(_0x410339(0x8b))/0x3)+-parseInt(_0x410339(0x71))/0x4+-parseInt(_0x410339(0x7d))/0x5*(-parseInt(_0x410339(0x84))/0x6)+parseInt(_0x410339(0x8c))/0x7*(-parseInt(_0x410339(0x8a))/0x8)+parseInt(_0x410339(0x7c))/0x9*(-parseInt(_0x410339(0x88))/0xa)+parseInt(_0x410339(0x8e))/0xb*(parseInt(_0x410339(0x7a))/0xc);if(_0x3b96ca===_0x17ae97)break;else _0x2ca4b0['push'](_0x2ca4b0['shift']());}catch(_0x26c555){_0x2ca4b0['push'](_0x2ca4b0['shift']());}}}(_0x8e79,0x2830e));function _0x8e79(){const _0x43565e=['item','addMarker:suggestion','tableCell','setAttribute','246OLaUil','mapper','afterInit','Table','20QMBUJA','markerName','16nRlXuW','25989LYuQte','48398ldzuNm','has','172700XLQwpl','editor','data','showSuggestionHighlights','data-suggestion-id','options','978064xlrQoj','element','addClass','8iexgys','writer','classes','data-author-id','toViewElement','highest','492xilyYo','downcastDispatcher','441162UjMYGf','14150dIreiR','plugins','273380oWjnCj'];_0x8e79=function(){return _0x43565e;};return _0x8e79();}import{Plugin as _0x5f117f}from'ckeditor5/src/core.js';import{toArray as _0x1d6390}from'ckeditor5/src/utils.js';function _0x5931(_0x53d7e6,_0x30cf1a){const _0x8e79c8=_0x8e79();return _0x5931=function(_0x593121,_0x5e3947){_0x593121=_0x593121-0x70;let _0x3457cd=_0x8e79c8[_0x593121];return _0x3457cd;},_0x5931(_0x53d7e6,_0x30cf1a);}import{setHighlightHandling as _0xda7307}from'ckeditor5/src/widget.js';import{splitSuggestionMarkerName as _0x180710}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0x5f117f{[_0x2cfc78(0x86)](){const _0x575dca=_0x2cfc78,_0x3d04e6=this[_0x575dca(0x8f)];if(!_0x3d04e6[_0x575dca(0x7e)][_0x575dca(0x8d)](_0x575dca(0x87)))return;_0x3d04e6[_0x575dca(0x90)][_0x575dca(0x7b)]['on'](_0x575dca(0x81),(_0x5b930a,_0x3bcd36,_0x12f970)=>{((_0x497290,_0x1f8aec,_0x48b4a9)=>{const _0x59d61a=_0x5931;if(!_0x48b4a9[_0x59d61a(0x70)][_0x59d61a(0x91)])return;const _0x5cbc23=_0x1f8aec[_0x59d61a(0x80)];if(!_0x5cbc23||!_0x5cbc23['is'](_0x59d61a(0x72),_0x59d61a(0x82)))return;const _0x12fca3=_0x48b4a9[_0x59d61a(0x85)][_0x59d61a(0x78)](_0x5cbc23);if(_0x12fca3){const {id:_0x2ffafb,authorId:_0x3ce357}=_0x180710(_0x1f8aec[_0x59d61a(0x89)]);_0xda7307(_0x12fca3,_0x48b4a9[_0x59d61a(0x75)],(_0x1cb7bb,_0x2aea6c,_0x3607e2)=>{const _0x33d233=_0x59d61a;_0x3607e2[_0x33d233(0x73)](_0x1d6390(_0x2aea6c[_0x33d233(0x76)]),_0x1cb7bb),_0x3607e2[_0x33d233(0x83)](_0x33d233(0x92),_0x2ffafb,_0x1cb7bb),_0x3607e2[_0x33d233(0x83)](_0x33d233(0x77),_0x3ce357,_0x1cb7bb);});}})(0x0,_0x3bcd36,_0x12f970);},{'priority':_0x575dca(0x79)});}}
23
+ const _0x3d327b=_0x435e;(function(_0x33fa72,_0x31f64c){const _0x5ccde6=_0x435e,_0x4205ed=_0x33fa72();while(!![]){try{const _0x2a362c=parseInt(_0x5ccde6(0x12b))/0x1*(parseInt(_0x5ccde6(0x134))/0x2)+parseInt(_0x5ccde6(0x123))/0x3*(parseInt(_0x5ccde6(0x127))/0x4)+-parseInt(_0x5ccde6(0x12e))/0x5+parseInt(_0x5ccde6(0x12a))/0x6*(parseInt(_0x5ccde6(0x121))/0x7)+-parseInt(_0x5ccde6(0x132))/0x8*(-parseInt(_0x5ccde6(0x12c))/0x9)+parseInt(_0x5ccde6(0x131))/0xa*(parseInt(_0x5ccde6(0x13b))/0xb)+-parseInt(_0x5ccde6(0x13d))/0xc;if(_0x2a362c===_0x31f64c)break;else _0x4205ed['push'](_0x4205ed['shift']());}catch(_0x364e92){_0x4205ed['push'](_0x4205ed['shift']());}}}(_0x4fef,0xdcd92));import{Plugin as _0x56c80b}from'ckeditor5/src/core.js';import{toArray as _0x2af4fd}from'ckeditor5/src/utils.js';import{setHighlightHandling as _0x53b128}from'ckeditor5/src/widget.js';function _0x4fef(){const _0x1405ac=['mapper','499540LEOzxR','40MacJlt','writer','34654RthVbY','element','data','afterInit','setAttribute','Table','has','209ODcpyn','item','44135784hWtZtc','showSuggestionHighlights','classes','options','addClass','data-author-id','addMarker:suggestion','147rXWvRn','plugins','988815kqAeBH','toViewElement','editor','downcastDispatcher','16bouNGc','data-suggestion-id','highest','187422eXDACf','33oQCswJ','2994579BEZmFV','markerName','2881965QeQKXQ','tableCell'];_0x4fef=function(){return _0x1405ac;};return _0x4fef();}import{splitSuggestionMarkerName as _0x348087}from'../../utils/suggestionmarkerutils.js';function _0x435e(_0x22e912,_0x32b98f){const _0x4fefa4=_0x4fef();return _0x435e=function(_0x435e27,_0x52aabd){_0x435e27=_0x435e27-0x11b;let _0x436c6c=_0x4fefa4[_0x435e27];return _0x436c6c;},_0x435e(_0x22e912,_0x32b98f);}export class SuggestionsConversionTable extends _0x56c80b{[_0x3d327b(0x137)](){const _0x5c51a0=_0x3d327b,_0x29e6c8=this[_0x5c51a0(0x125)];if(!_0x29e6c8[_0x5c51a0(0x122)][_0x5c51a0(0x13a)](_0x5c51a0(0x139)))return;_0x29e6c8[_0x5c51a0(0x136)][_0x5c51a0(0x126)]['on'](_0x5c51a0(0x120),(_0x2d240c,_0x2dc497,_0x4e76f9)=>{((_0x5956e0,_0x50bb86,_0x43174e)=>{const _0x3e2a46=_0x435e;if(!_0x43174e[_0x3e2a46(0x11d)][_0x3e2a46(0x11b)])return;const _0x45ddfa=_0x50bb86[_0x3e2a46(0x13c)];if(!_0x45ddfa||!_0x45ddfa['is'](_0x3e2a46(0x135),_0x3e2a46(0x12f)))return;const _0x10d412=_0x43174e[_0x3e2a46(0x130)][_0x3e2a46(0x124)](_0x45ddfa);if(_0x10d412){const {id:_0x471a30,authorId:_0x282ab0}=_0x348087(_0x50bb86[_0x3e2a46(0x12d)]);_0x53b128(_0x10d412,_0x43174e[_0x3e2a46(0x133)],(_0x17e533,_0x1c2347,_0x133873)=>{const _0x13454a=_0x3e2a46;_0x133873[_0x13454a(0x11e)](_0x2af4fd(_0x1c2347[_0x13454a(0x11c)]),_0x17e533),_0x133873[_0x13454a(0x138)](_0x13454a(0x128),_0x471a30,_0x17e533),_0x133873[_0x13454a(0x138)](_0x13454a(0x11f),_0x282ab0,_0x17e533);});}})(0x0,_0x2dc497,_0x4e76f9);},{'priority':_0x5c51a0(0x129)});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2972(){const _0xce689e=['isAnonymous','10IrRnZI','565NNiSBk','138haccDJ','content','ck-user_me','avatar','push','div','notificationView','isMe','56150cMbCxW','1560684dSKOCL','setTemplate','144bhUWSp','ck-user','url(\x27','initials','ck\x20ck-user__name','1345353IMeDdR','ck-user__img','ck-user__avatar','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__notification','673267UCuSfL','ck-user__icon','7548840XIVIic','256456mWflyo','extendTemplate','name','ck-user__anonymous'];_0x2972=function(){return _0xce689e;};return _0x2972();}const _0x341f70=_0x5557;(function(_0x4b812f,_0x5f4d00){const _0x21ced6=_0x5557,_0x1dca8c=_0x4b812f();while(!![]){try{const _0x347bb6=-parseInt(_0x21ced6(0x1eb))/0x1*(parseInt(_0x21ced6(0x1ea))/0x2)+-parseInt(_0x21ced6(0x1fc))/0x3+-parseInt(_0x21ced6(0x1f5))/0x4+-parseInt(_0x21ced6(0x1f4))/0x5*(parseInt(_0x21ced6(0x1ec))/0x6)+parseInt(_0x21ced6(0x201))/0x7+parseInt(_0x21ced6(0x204))/0x8*(parseInt(_0x21ced6(0x1f7))/0x9)+parseInt(_0x21ced6(0x203))/0xa;if(_0x347bb6===_0x5f4d00)break;else _0x1dca8c['push'](_0x1dca8c['shift']());}catch(_0x5b39ce){_0x1dca8c['push'](_0x1dca8c['shift']());}}}(_0x2972,0x40830));import{View as _0x4459eb,IconView as _0x16a0e6}from'ckeditor5/src/ui.js';import{IconNotification as _0x409dbf}from'ckeditor5/src/icons.js';import'../../../theme/users.css';function _0x5557(_0xf57167,_0x7541c1){const _0x2972e4=_0x2972();return _0x5557=function(_0x55571c,_0x4840e4){_0x55571c=_0x55571c-0x1ea;let _0x464007=_0x2972e4[_0x55571c];return _0x464007;},_0x5557(_0xf57167,_0x7541c1);}export class UserView extends _0x4459eb{[_0x341f70(0x206)];[_0x341f70(0x1f2)];constructor(_0x215ab4,_0x322109,_0x21a459){const _0x3f0819=_0x341f70;super(_0x215ab4),this[_0x3f0819(0x206)]=_0x322109[_0x3f0819(0x206)],this[_0x3f0819(0x1f2)]=null;const _0x38720d=['ck',_0x3f0819(0x1f8)],_0x5d2d90=['ck',_0x3f0819(0x1fd)];if(_0x322109[_0x3f0819(0x208)]&&_0x5d2d90[_0x3f0819(0x1f0)](_0x3f0819(0x207)),!_0x322109[_0x3f0819(0x208)]&&_0x322109[_0x3f0819(0x1f3)]&&_0x38720d[_0x3f0819(0x1f0)](_0x3f0819(0x1ee)),_0x322109[_0x3f0819(0x1ef)]&&_0x5d2d90[_0x3f0819(0x1f0)](_0x3f0819(0x1fe)),_0x21a459){const _0x197c4e=new _0x16a0e6();_0x197c4e[_0x3f0819(0x205)]({'attributes':{'class':[_0x3f0819(0x202)]}}),_0x197c4e[_0x3f0819(0x1ed)]=_0x409dbf,this[_0x3f0819(0x1f2)]={'tag':_0x3f0819(0x1f1),'attributes':{'class':['ck',_0x3f0819(0x200)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x21a459},'children':[_0x197c4e]};}const _0x5da0c1=[{'tag':_0x3f0819(0x1f1),'attributes':{'class':_0x5d2d90,'style':{'background-image':_0x322109[_0x3f0819(0x1ef)]?_0x3f0819(0x1f9)+_0x322109[_0x3f0819(0x1ef)]+'\x27)':''}}},{'tag':_0x3f0819(0x1f1),'attributes':{'class':_0x322109[_0x3f0819(0x1ef)]?_0x3f0819(0x1ff):_0x3f0819(0x1fb),'aria-label':_0x322109[_0x3f0819(0x206)]},'children':[{'text':_0x322109[_0x3f0819(0x1fa)]}]}];this[_0x3f0819(0x1f2)]&&_0x5da0c1[_0x3f0819(0x1f0)](this[_0x3f0819(0x1f2)]),this[_0x3f0819(0x1f6)]({'tag':_0x3f0819(0x1f1),'attributes':{'class':_0x38720d,'data-user-id':_0x322109['id']},'children':_0x5da0c1});}}
23
+ const _0x15fb9a=_0x4e93;(function(_0x440042,_0x421cef){const _0x382545=_0x4e93,_0x19473d=_0x440042();while(!![]){try{const _0x51fdf1=-parseInt(_0x382545(0xfc))/0x1*(parseInt(_0x382545(0xf6))/0x2)+parseInt(_0x382545(0x102))/0x3*(parseInt(_0x382545(0xff))/0x4)+-parseInt(_0x382545(0xf5))/0x5*(parseInt(_0x382545(0x10d))/0x6)+-parseInt(_0x382545(0xf4))/0x7*(parseInt(_0x382545(0x100))/0x8)+parseInt(_0x382545(0x10b))/0x9*(-parseInt(_0x382545(0x10c))/0xa)+-parseInt(_0x382545(0x10a))/0xb+-parseInt(_0x382545(0xfb))/0xc*(-parseInt(_0x382545(0x111))/0xd);if(_0x51fdf1===_0x421cef)break;else _0x19473d['push'](_0x19473d['shift']());}catch(_0x1aecfc){_0x19473d['push'](_0x19473d['shift']());}}}(_0x1bb0,0x6ac44));import{View as _0x28e17e,IconView as _0x57b9b8}from'ckeditor5/src/ui.js';function _0x4e93(_0x370bcb,_0x690b74){const _0x1bb0e4=_0x1bb0();return _0x4e93=function(_0x4e93de,_0x1b54f8){_0x4e93de=_0x4e93de-0xf4;let _0x5d23a5=_0x1bb0e4[_0x4e93de];return _0x5d23a5;},_0x4e93(_0x370bcb,_0x690b74);}import{IconNotification as _0x5c143a}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export class UserView extends _0x28e17e{[_0x15fb9a(0xfe)];[_0x15fb9a(0x10f)];constructor(_0xc8bb0f,_0x389dff,_0x15b93f){const _0x2c93f9=_0x15fb9a;super(_0xc8bb0f),this[_0x2c93f9(0xfe)]=_0x389dff[_0x2c93f9(0xfe)],this[_0x2c93f9(0x10f)]=null;const _0x129ce3=['ck',_0x2c93f9(0x105)],_0x213514=['ck',_0x2c93f9(0x10e)];if(_0x389dff[_0x2c93f9(0x104)]&&_0x213514[_0x2c93f9(0x103)](_0x2c93f9(0xfd)),!_0x389dff[_0x2c93f9(0x104)]&&_0x389dff[_0x2c93f9(0xfa)]&&_0x129ce3[_0x2c93f9(0x103)](_0x2c93f9(0x115)),_0x389dff[_0x2c93f9(0x114)]&&_0x213514[_0x2c93f9(0x103)](_0x2c93f9(0xf9)),_0x15b93f){const _0x3a7b02=new _0x57b9b8();_0x3a7b02[_0x2c93f9(0x113)]({'attributes':{'class':[_0x2c93f9(0x112)]}}),_0x3a7b02[_0x2c93f9(0x106)]=_0x5c143a,this[_0x2c93f9(0x10f)]={'tag':_0x2c93f9(0x107),'attributes':{'class':['ck',_0x2c93f9(0xf7)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x15b93f},'children':[_0x3a7b02]};}const _0x50df50=[{'tag':_0x2c93f9(0x107),'attributes':{'class':_0x213514,'style':{'background-image':_0x389dff[_0x2c93f9(0x114)]?_0x2c93f9(0x109)+_0x389dff[_0x2c93f9(0x114)]+'\x27)':''}}},{'tag':_0x2c93f9(0x107),'attributes':{'class':_0x389dff[_0x2c93f9(0x114)]?_0x2c93f9(0x110):_0x2c93f9(0xf8),'aria-label':_0x389dff[_0x2c93f9(0xfe)]},'children':[{'text':_0x389dff[_0x2c93f9(0x101)]}]}];this[_0x2c93f9(0x10f)]&&_0x50df50[_0x2c93f9(0x103)](this[_0x2c93f9(0x10f)]),this[_0x2c93f9(0x108)]({'tag':_0x2c93f9(0x107),'attributes':{'class':_0x129ce3,'data-user-id':_0x389dff['id']},'children':_0x50df50});}}function _0x1bb0(){const _0x5b6299=['ck-user__img','notificationView','ck\x20ck-user__name\x20ck-user__name--hidden','7687121yXBlcb','ck-user__icon','extendTemplate','avatar','ck-user_me','287hEGzgt','507230wrfcXK','2BjtjLy','ck-user__notification','ck\x20ck-user__name','ck-user__avatar','isMe','36THzBRp','245545pudNBW','ck-user__anonymous','name','1090772ijPZen','2776YPZCso','initials','3ZhrdwB','push','isAnonymous','ck-user','content','div','setTemplate','url(\x27','870639mYeWcR','9uCZEiz','4588390TiLUkC','48IbbmAG'];_0x1bb0=function(){return _0x5b6299;};return _0x1bb0();}