@ckeditor/ckeditor5-collaboration-core 47.3.0-alpha.7 → 47.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x503307,Editor as _0x41c0c6,Plugin as _0x347708}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c240d,Collection as _0x4199b9,uid as _0x91ff57,toArray as rt,first as _0x2f4701,FocusTracker as ts,KeystrokeHandler as _0x4a599c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x58e702,IconView as st,ButtonView as _0x161c6a,DropdownButtonView as _0x12de0f,FocusCycler as _0x3b4d5f,isViewWithFocusCycler as _0x4a9a17}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as it,IconCheck as _0x25f249,IconCancel as _0x121464}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as at,toWidget as _0x41f8d9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x522db3,MoveOperation as _0x373eba,ModelPosition as _0x13099c,ModelRange as _0x542a8e,MarkerOperation as _0x30b786,MergeOperation as _0x4d8adb,SplitOperation as _0x314125,RenameOperation as _0x4ac0cf,AttributeOperation as _0x28cff4,ModelTreeWalker as _0x52821d,ModelText as _0xf8eb20}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x2ecd06}from'diff';class C extends _0x503307{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x45ef8f,_0x1164fa){let _0x1fd9ca;if(_0x1164fa||(_0x1164fa=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x1164fa?_0x1fd9ca=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x1fd9ca=this['context']['editors']['find'](_0xf2005b=>_0xf2005b['config']['get']('collaboration.channelId')==_0x1164fa)),!_0x1fd9ca)throw new _0x1c240d('permissions-set-permissions-invalid-channel-id',null);const _0x3a4c52=_0x1fd9ca['plugins'],_0x26a50b=_0x3a4c52['has']('CommentsRepository')?_0x3a4c52['get']('CommentsRepository'):void 0x0,_0xa8a6aa=_0x3a4c52['has']('CommentsOnly')&&_0x3a4c52['get']('CommentsOnly'),_0x1f63b4=_0x45ef8f['includes']('document:write'),_0x328591=_0x45ef8f['includes']('comment:modify_all'),_0x1e85c8=_0x45ef8f['includes']('comment:admin'),_0x51e04d=_0x45ef8f['includes']('comment:write'),_0xb5587f=_0x51e04d||_0x1e85c8,_0x336ac2=_0xb5587f||_0x328591,_0x283849=_0x1f63b4||_0xb5587f;(_0xa8a6aa&&(_0xa8a6aa['isEnabled']=!_0x1f63b4&&_0x336ac2),_0x1fd9ca instanceof _0x41c0c6)&&(!(_0x1f63b4||_0x336ac2&&_0x26a50b)?_0x1fd9ca['enableReadOnlyMode']('no-permissions'):_0x1fd9ca['disableReadOnlyMode']('no-permissions'));if(_0x26a50b){_0x26a50b['setPermissions']({'admin':_0x1e85c8,'modifyAll':_0x328591,'write':_0x51e04d,'resolve':_0x283849},_0x1164fa);const _0x1fde37=_0x1fd9ca instanceof _0x41c0c6&&_0x1fd9ca['commands']['get']('addCommentThread');_0x1fde37&&(_0xb5587f?_0x1fde37['clearForceDisabled']('noPermissions'):_0x1fde37['forceDisabled']('noPermissions'));}}}function U(_0x3174c1,_0x4024ed){const t=_0x3174c1['t'];switch(_0x4024ed){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 _0x503307{['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(_0x5d691d){super(_0x5d691d),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x4199b9(),this['_locale']=_0x5d691d['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:_0x400ad6,name:_0x30f74a,..._0x3e57f8}){if(!_0x400ad6||'string'!=typeof _0x400ad6)throw new _0x1c240d('users-add-invalid-id');if(this['users']['has'](_0x400ad6))throw new _0x1c240d('users-add-duplicated-id',null,{'id':_0x400ad6});const _0x12eacf=this['context']['config']['get']('users.getInitialsCallback'),_0x1056ea={..._0x3e57f8,'id':_0x400ad6,'name':A(this['_locale'],_0x30f74a),'color':this['_getNextColor']()};_0x1056ea['name']=A(this['_locale'],_0x1056ea['name']);const _0x5f07c2=new lt(_0x1056ea,_0x12eacf);return this['users']['add'](_0x5f07c2),_0x5f07c2;}['getUser'](_0x42a6ae){return this['users']['get'](_0x42a6ae);}['useAnonymousUser'](){const _0x31b74e=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x31b74e);}['defineMe'](_0x8aa421){if(this['_myId'])throw new _0x1c240d('users-me-already-defined',null);const _0x254bdb=this['getUser'](_0x8aa421);if(!_0x254bdb)throw new _0x1c240d('users-me-missing-user',null);this['_myId']=_0x8aa421,_0x254bdb['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x47e9e1=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x47e9e1&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x32f068=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x32f068,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x3089b8,_0x52afc6){this['id']=_0x3089b8['id'],this['color']=_0x3089b8['color'],this['name']=_0x3089b8['name'],this['initials']=_0x52afc6?_0x52afc6(this['name']):this['_computeInitials'](),this['avatar']=_0x3089b8['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x8b1576=this['name']['split']('\x20')['filter'](_0x134940=>/^[\p{Letter}]/u['test'](_0x134940));return 0x1===_0x8b1576['length']?this['_getInitial'](_0x8b1576[0x0]):0x0===_0x8b1576['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x8b1576[0x0])+this['_getInitial'](_0x8b1576[_0x8b1576['length']-0x1]);}['_getInitial'](_0xb69b14){return String['fromCodePoint'](_0xb69b14['codePointAt'](0x0))['toUpperCase']();}}function A(_0x1c0e3e,_0x5ef14c=''){return''==(_0x5ef14c=_0x5ef14c['trim']())?U(_0x1c0e3e,'Anonymous'):_0x5ef14c;}class ut{['_id'];constructor(_0x4306ff){this['_id']=_0x4306ff;}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 _0x58e702{['name'];['notificationView'];constructor(_0x3056d6,_0x2fc7e4,_0x362aef){super(_0x3056d6),this['name']=_0x2fc7e4['name'],this['notificationView']=null;const _0x54997a=['ck','ck-user'],_0x4eb2e0=['ck','ck-user__img'];if(_0x2fc7e4['isAnonymous']&&_0x4eb2e0['push']('ck-user__anonymous'),!_0x2fc7e4['isAnonymous']&&_0x2fc7e4['isMe']&&_0x54997a['push']('ck-user_me'),_0x2fc7e4['avatar']&&_0x4eb2e0['push']('ck-user__avatar'),_0x362aef){const _0x1e7318=new st();_0x1e7318['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x1e7318['content']=it,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x362aef},'children':[_0x1e7318]};}const _0x2c7e2a=[{'tag':'div','attributes':{'class':_0x4eb2e0,'style':{'background-image':_0x2fc7e4['avatar']?'url(\x27'+_0x2fc7e4['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x2fc7e4['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x2fc7e4['name']},'children':[{'text':_0x2fc7e4['initials']}]}];this['notificationView']&&_0x2c7e2a['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x54997a,'data-user-id':_0x2fc7e4['id']},'children':_0x2c7e2a});}}class dt extends _0x58e702{['id'];constructor(_0x48e8dc,_0x4c5f69){super(_0x48e8dc),this['id']='ck-aria-description-'+_0x91ff57(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x4c5f69}]});}}class ft extends _0x161c6a{['render'](){super['render'](),re(this);}}class gt extends _0x12de0f{['render'](){super['render'](),re(this);}}function re(_0x535d7f){_0x535d7f['listenTo'](_0x535d7f['element'],'mousedown',(_0x97721,_0x83350c)=>{_0x83350c['stopPropagation'](),_0x83350c['preventDefault']();}),_0x535d7f['listenTo'](_0x535d7f['element'],'mouseup',()=>{_0x535d7f['element']['focus']();});}function v(_0x1f378e){const _0xedf95=_0x1f378e['split'](':');return{'group':_0xedf95[0x0],'type':_0xedf95[0x1],'subType':_0xedf95['length']>=0x5?_0xedf95[0x2]:null,'id':_0xedf95['length']<0x5?_0xedf95[0x2]:_0xedf95[0x3],'authorId':_0xedf95['length']<0x5?_0xedf95[0x3]:_0xedf95[0x4],'markerCount':0x6==_0xedf95['length']?_0xedf95[0x5]:null};}function mt(_0x57ecb5,_0x118bd9){const _0x1a2995=_0x57ecb5['end']['nodeBefore'];if(_0x1a2995&&_0x1a2995['is']('element')&&_0x118bd9['schema']['isBlock'](_0x1a2995)&&!_0x118bd9['schema']['isObject'](_0x1a2995)){const _0x775f8b=_0x118bd9['createPositionAt'](_0x1a2995,'end');return _0x118bd9['createRange'](_0x57ecb5['start'],_0x775f8b);}return _0x57ecb5;}class M extends _0x347708{['afterInit'](){const _0xcc123b=this['editor'];if(!_0xcc123b['plugins']['has']('AlignmentEditing'))return;_0xcc123b['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x347708{['afterInit'](){const _0x213dcf=this['editor'],_0x16822c=_0x213dcf['plugins']['get']('SuggestionsConversion');for(const _0x37c051 of ii){if(!_0x213dcf['plugins']['has'](_0x37c051))continue;const _0x8b797=_0x37c051['slice'](0x0,-0x7)['toLowerCase']();_0x16822c['registerInlineAttribute'](_0x8b797);}}}class I extends _0x347708{['afterInit'](){const _0x1cc5e1=this['editor'],_0x3b50ef=_0x1cc5e1['plugins']['get']('SuggestionsConversion');_0x1cc5e1['plugins']['has']('BookmarkEditing')&&_0x3b50ef['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x347708{['afterInit'](){const _0xcb090f=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x3e3db0,commandName:_0x166a5a}of no)this['editor']['plugins']['has'](_0x3e3db0)&&_0xcb090f['registerInlineAttribute'](_0x166a5a);}}class T extends _0x347708{['afterInit'](){const _0x111aa4=this['editor'];if(!_0x111aa4['plugins']['has']('HighlightEditing'))return;_0x111aa4['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x347708{['afterInit'](){const _0x27e03d=this['editor'];if(!_0x27e03d['plugins']['has']('HtmlEmbed'))return;_0x27e03d['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x347708{['afterInit'](){const _0x1641e1=this['editor'];if(!_0x1641e1['plugins']['has']('ImageEditing'))return;const _0x100eda=_0x1641e1['plugins']['get']('SuggestionsConversion');_0x100eda['registerBlockAttribute']('src'),_0x1641e1['plugins']['has']('ImageResize')&&_0x100eda['registerBlockAttribute']('resizedWidth'),_0x1641e1['plugins']['has']('ImageTextAlternativeEditing')&&_0x100eda['registerBlockAttribute']('alt'),_0x1641e1['plugins']['has']('PictureEditing')&&_0x100eda['registerBlockAttribute']('sources'),_0x1641e1['plugins']['has']('ImageSizeAttributes')&&(_0x100eda['registerBlockAttribute']('width'),_0x100eda['registerBlockAttribute']('height'));}}class $ extends _0x347708{['afterInit'](){const _0x964258=this['editor'],_0x132039=_0x964258['plugins']['get']('SuggestionsConversion');_0x964258['plugins']['has']('IndentBlock')&&_0x132039['registerBlockAttribute']('blockIndent');}}class x extends _0x347708{['afterInit'](){const _0x2ed779=this['editor'];if(!_0x2ed779['plugins']['has']('LineHeight'))return;_0x2ed779['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x347708{['afterInit'](){const _0x15d22d=this['editor'];if(!_0x15d22d['plugins']['has']('LinkEditing'))return;const _0x5487f5=_0x15d22d['plugins']['get']('SuggestionsConversion'),_0x1e07ab=_0x15d22d['commands']['get']('link');_0x5487f5['registerInlineAttribute']('linkHref');for(const _0x25fbe3 of _0x1e07ab['manualDecorators'])_0x5487f5['registerInlineAttribute'](_0x25fbe3['id']);}}class N extends _0x347708{['afterInit'](){const _0x2f4a00=this['editor'];if(!_0x2f4a00['plugins']['has']('ListEditing'))return;const _0xb404d9=_0x2f4a00['plugins']['get']('SuggestionsConversion'),_0x45cd58=_0x2f4a00['plugins']['has']('TodoListEditing');_0xb404d9['registerBlockAttribute']('listItemId'),_0xb404d9['registerBlockAttribute']('listType'),_0xb404d9['registerBlockAttribute']('listIndent'),_0x45cd58&&_0xb404d9['registerBlockAttribute']('todoListChecked');}}class P extends _0x347708{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x53bc30=this['editor']['config']['get']('list.properties'),_0x1a7bf5=this['editor']['plugins']['get']('SuggestionsConversion');_0x53bc30['styles']&&_0x1a7bf5['registerBlockAttribute']('listStyle'),_0x53bc30['reversed']&&_0x1a7bf5['registerBlockAttribute']('listReversed'),_0x53bc30['startIndex']&&_0x1a7bf5['registerBlockAttribute']('listStart');}}class K extends _0x347708{['afterInit'](){const _0x4a20d8=this['editor'],_0x4f1fb4=_0x4a20d8['plugins']['get']('SuggestionsConversion');_0x4a20d8['plugins']['has']('MultiLevelList')&&_0x4f1fb4['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x347708{['afterInit'](){const _0x1d9b2b=this['editor'];if(!_0x1d9b2b['plugins']['has']('Style')||!_0x1d9b2b['plugins']['has']('DataSchema')||!_0x1d9b2b['config']['get']('style.definitions'))return;const _0x418429=_0x1d9b2b['plugins']['get']('SuggestionsConversion'),_0x161826=_0x1d9b2b['config']['get']('style.definitions'),_0x1f0144=_0x1d9b2b['plugins']['get']('GeneralHtmlSupport'),_0x218fd0=_0x1d9b2b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1d9b2b['plugins']['get']('DataSchema'),_0x161826),_0x425696=new Set();for(const _0x18e748 of _0x218fd0['block']){const _0x12a83c=_0x1f0144['getGhsAttributeNameForElement'](_0x18e748['element']);_0x425696['add'](_0x12a83c);}const _0x1e2912=new Set();for(const _0x3c7c84 of _0x218fd0['inline']){const _0x31b1e1=_0x1f0144['getGhsAttributeNameForElement'](_0x3c7c84['element']);_0x1e2912['add'](_0x31b1e1);for(const _0x37568b of _0x3c7c84['ghsAttributes'])_0x1e2912['add'](_0x37568b);}for(const _0x444ff5 of _0x425696)_0x418429['registerBlockAttribute'](_0x444ff5);for(const _0x2321ed of _0x1e2912)_0x418429['registerInlineAttribute'](_0x2321ed);}}class z extends _0x347708{['afterInit'](){const _0x2f39fe=this['editor'];if(!_0x2f39fe['plugins']['has']('TableEditing'))return;const _0x1a7b7f=_0x2f39fe['plugins']['get']('SuggestionsConversion');_0x1a7b7f['registerBlockAttribute']('headingRows'),_0x1a7b7f['registerBlockAttribute']('headingColumns');}}class O extends _0x347708{['afterInit'](){const _0x120bb5=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0xb73a50=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x1c8297 of _0xb73a50)_0x120bb5['registerBlockAttribute'](_0x1c8297);}}class R extends _0x347708{['afterInit'](){const _0x26e3fb=this['editor'],_0xd8639d=_0x26e3fb['plugins']['get']('SuggestionsConversion');_0x26e3fb['plugins']['has']('TableLayout')&&_0xd8639d['registerBlockAttribute']('tableType');}}class F extends _0x347708{['afterInit'](){const _0x20b727=this['editor'],_0x1f61df=this['editor']['plugins']['get']('SuggestionsConversion');_0x20b727['plugins']['has']('Uploadcare')&&_0x20b727['plugins']['has']('UploadcareImageEdit')&&_0x1f61df['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x347708{['afterInit'](){const _0x1c2d6f=this['editor'];if(!_0x1c2d6f['plugins']['has']('ShiftEnter'))return;const _0x49613e=_0x1c2d6f['plugins']['get']('SuggestionsConversion'),_0x411c27=(_0x2a69b5,_0x2d4029,_0x1585ac,_0x1c3357)=>{if(_0x1c3357&&!_0x1585ac['options']['showSuggestionHighlights'])return;if(!_0x1585ac['consumable']['test'](_0x2d4029['markerRange'],_0x2a69b5['name']))return;const _0x36c911=_0x1c2d6f['model'];for(const _0x5a4cb1 of _0x2d4029['markerRange']['getItems']()){if(!_0x5a4cb1['is']('element','softBreak'))continue;const _0x4218e1='deletion'==_0x2d4029['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3421cc,authorId:_0x3e7552}=v(_0x2d4029['markerName']),_0x18ba95=_0x1585ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4218e1,'data-suggestion':_0x3421cc,'data-author-id':_0x3e7552}),_0x91c9c3=_0x1585ac['mapper']['toViewPosition'](_0x36c911['createPositionBefore'](_0x5a4cb1));!_0x1c3357&&_0x49613e['_activeMarkers']['includes'](_0x2d4029['markerName'])&&_0x1585ac['writer']['addClass']('ck-suggestion-marker--active',_0x18ba95),_0x1585ac['writer']['insert'](_0x91c9c3,_0x18ba95),_0x1585ac['mapper']['bindElementToMarker'](_0x18ba95,_0x2d4029['markerName']);}};_0x1c2d6f['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f580b,_0x588351,_0x542030)=>{_0x411c27(_0x3f580b,_0x588351,_0x542030,!0x1);},{'priority':'high'}),_0x1c2d6f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x294121,_0x46a792,_0x34dc21)=>{_0x411c27(_0x294121,_0x46a792,_0x34dc21,!0x0);},{'priority':'high'});}}class J extends _0x347708{['afterInit'](){const _0x425f36=this['editor'];_0x425f36['plugins']['has']('MediaEmbedEditing')&&(_0x425f36['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5b8e10,{writer:_0x31c5a4,options:_0xbc91ee})=>{if(_0xbc91ee['showSuggestionHighlights'])return _0x31c5a4['createEmptyElement']('div');},'converterPriority':'high'}),_0x425f36['data']['downcastDispatcher']['on']('attribute:url:media',(_0x51fa1a,_0x2ab8a9,_0xb2f2d3)=>{_0xb2f2d3['options']['showSuggestionHighlights']&&_0x51fa1a['stop']();},{'priority':'high'}));}}class L extends _0x347708{['afterInit'](){const _0x1e6d65=this['editor'];if(!_0x1e6d65['plugins']['has']('Table'))return;_0x1e6d65['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5befe0,_0x1ea3fb,_0x464c18)=>{((_0x55f199,_0x18ca5c,_0x1336f2)=>{if(!_0x1336f2['options']['showSuggestionHighlights'])return;const _0x5e1d3b=_0x18ca5c['item'];if(!_0x5e1d3b||!_0x5e1d3b['is']('element','tableCell'))return;const _0x1cf44c=_0x1336f2['mapper']['toViewElement'](_0x5e1d3b);if(_0x1cf44c){const {id:_0x3d764a,authorId:_0xef247f}=v(_0x18ca5c['markerName']);at(_0x1cf44c,_0x1336f2['writer'],(_0x16e44b,_0x158120,_0x2fc6ed)=>{_0x2fc6ed['addClass'](rt(_0x158120['classes']),_0x16e44b),_0x2fc6ed['setAttribute']('data-suggestion-id',_0x3d764a,_0x16e44b),_0x2fc6ed['setAttribute']('data-author-id',_0xef247f,_0x16e44b);});}})(0x0,_0x1ea3fb,_0x464c18);},{'priority':'highest'});}}class Q extends _0x347708{['afterInit'](){const _0x5da9d1=this['editor'];_0x5da9d1['plugins']['has']('HorizontalLineEditing')&&_0x5da9d1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ef1c2,{writer:_0x5f2d90,options:_0x16c4e7})=>{if(!_0x16c4e7['showSuggestionHighlights'])return null;const _0x409682=_0x5f2d90['createContainerElement']('div'),_0xce487=_0x5f2d90['createEmptyElement']('hr');return _0x5f2d90['addClass']('ck-horizontal-line',_0x409682),_0x5f2d90['insert'](_0x5f2d90['createPositionAt'](_0x409682,0x0),_0xce487),_0x409682;},'converterPriority':'high'});}}class kt extends _0x347708{['_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 _0x34d39e=this['editor'],_0x472ede=(_0x5849fb,_0x565452,_0x120cb6)=>{const {id:_0x5f49cc,authorId:_0x95ceb3,type:_0xb1f989,subType:_0x189fb2}=v(_0x5849fb['markerName']),_0x1f7ff9=['ck-suggestion-marker',this['_getClassName'](_0xb1f989,_0x189fb2)];let _0xa16a01=0xbb8;return!_0x120cb6&&(this['_activeMarkers']['includes'](_0x5849fb['markerName'])&&(_0x1f7ff9['push']('ck-suggestion-marker--active'),_0xa16a01=0xbc2)),('deletion'==_0xb1f989&&(_0xa16a01+=0x5),{'classes':_0x1f7ff9,'attributes':{'data-suggestion':_0x5f49cc,'data-author-id':_0x95ceb3},'priority':_0xa16a01});};_0x34d39e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5a3c21,_0x282e9a)=>_0x472ede(_0x5a3c21,0x0,!0x1)}),_0x34d39e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x483005,_0xc48a58)=>_0x472ede(_0x483005,0x0,!0x0)}),_0x34d39e['conversion']['for']('dataDowncast')['add'](_0x2867e6=>{_0x2867e6['on']('addMarker:suggestion',(_0x4a7089,_0x41c6c5,_0x21bc9e)=>{if(!_0x21bc9e['options']['showSuggestionHighlights'])return;const _0x26ce36=_0x41c6c5['item'];if(!_0x26ce36)return;const _0x54edb8=_0x21bc9e['mapper']['toViewElement'](_0x26ce36);_0x34d39e['model']['schema']['isObject'](_0x26ce36)&&_0x54edb8&&!_0x54edb8['getCustomProperty']('widget')&&_0x54edb8['is']('containerElement')&&_0x41f8d9(_0x54edb8,_0x21bc9e['writer']);},{'priority':'high'});});const _0x5c8d3f=(_0xba2375,_0x5386db,_0x37ee3f,_0x192b9b,_0x1824ea)=>{if(_0x192b9b&&!_0x37ee3f['options']['showSuggestionHighlights'])return;if(!_0x5386db['item'])return;const {id:_0x2b030a,authorId:_0x14444f,subType:_0x310d8d}=v(_0x5386db['markerName']);if(_0x1824ea){const _0x599cef=_0x310d8d['split']('|')[0x0];if(!this['isBlockAttribute'](_0x599cef))return;}if(_0x5386db['item']['is']('selection'))return void _0x37ee3f['consumable']['consume'](_0x5386db['item'],_0xba2375['name']);const _0x569faf=_0x37ee3f['mapper']['toViewElement'](_0x5386db['item']);if(_0x5386db['item']['is']('element')&&_0x34d39e['model']['schema']['isBlock'](_0x5386db['item'])&&!_0x569faf['getCustomProperty']('addHighlight')){_0x37ee3f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x569faf),_0x37ee3f['writer']['setAttribute']('data-suggestion',_0x2b030a,_0x569faf),_0x37ee3f['writer']['setAttribute']('data-author-id',_0x14444f,_0x569faf),_0x37ee3f['mapper']['bindElementToMarker'](_0x569faf,_0x5386db['markerName']),_0x192b9b||(this['_activeMarkers']['includes'](_0x5386db['markerName'])?_0x37ee3f['writer']['addClass']('ck-suggestion-marker--active',_0x569faf):_0x37ee3f['writer']['removeClass']('ck-suggestion-marker--active',_0x569faf));for(const _0x527a10 of _0x34d39e['model']['createRangeIn'](_0x5386db['item'])['getItems']())_0x37ee3f['consumable']['consume'](_0x527a10,_0xba2375['name']);_0x37ee3f['consumable']['consume'](_0x5386db['item'],_0xba2375['name']);}},_0x28e5d0=(_0x39bca5,_0x272b05,_0x1c6968,_0x5a92ce)=>{const _0x241c7b=_0x1c6968['mapper']['markerNameToElements'](_0x272b05['markerName']);if(_0x241c7b){if(_0x5a92ce){const {subType:_0x2c4670}=v(_0x272b05['markerName']),_0x461ae7=_0x2c4670['split']('|')[0x0];if(!this['isBlockAttribute'](_0x461ae7))return;}for(const _0x3f79ca of _0x241c7b)_0x3f79ca['getCustomProperty']('addHighlight')||(_0x1c6968['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3f79ca),_0x1c6968['writer']['removeAttribute']('data-suggestion',_0x3f79ca),_0x1c6968['writer']['removeAttribute']('data-author-id',_0x3f79ca),_0x1c6968['mapper']['unbindElementFromMarkerName'](_0x3f79ca,_0x272b05['markerName']));}};_0x34d39e['conversion']['for']('editingDowncast')['add'](_0x22f93d=>{_0x22f93d['on']('addMarker:suggestion:formatBlock',(_0x4a0084,_0x58603e,_0x51cf78)=>{_0x5c8d3f(_0x4a0084,_0x58603e,_0x51cf78,!0x1,!0x1);},{'priority':'high'});}),_0x34d39e['conversion']['for']('editingDowncast')['add'](_0x4ad1c8=>{_0x4ad1c8['on']('addMarker:suggestion:attribute',(_0xa3fe23,_0x130c61,_0x33ddf2)=>{_0x5c8d3f(_0xa3fe23,_0x130c61,_0x33ddf2,!0x1,!0x0);},{'priority':'high'});}),_0x34d39e['conversion']['for']('editingDowncast')['add'](_0x42524f=>{_0x42524f['on']('removeMarker:suggestion:formatBlock',(_0xb9852d,_0x5e5dca,_0x2624a2)=>{_0x28e5d0(0x0,_0x5e5dca,_0x2624a2,!0x1);},{'priority':'high'});}),_0x34d39e['conversion']['for']('editingDowncast')['add'](_0x13014d=>{_0x13014d['on']('removeMarker:suggestion:attribute',(_0x300d94,_0x5b6470,_0x52f6cb)=>{_0x28e5d0(0x0,_0x5b6470,_0x52f6cb,!0x0);},{'priority':'high'});}),_0x34d39e['conversion']['for']('dataDowncast')['add'](_0x3b8df1=>{_0x3b8df1['on']('addMarker:suggestion:formatBlock',(_0x5c8e4d,_0x4a4752,_0x37e0f8)=>{_0x5c8d3f(_0x5c8e4d,_0x4a4752,_0x37e0f8,!0x0,!0x1);},{'priority':'highest'});}),_0x34d39e['conversion']['for']('dataDowncast')['add'](_0x4d74ca=>{_0x4d74ca['on']('addMarker:suggestion:attribute',(_0x520279,_0xde2b3c,_0x282157)=>{_0x5c8d3f(_0x520279,_0xde2b3c,_0x282157,!0x0,!0x0);},{'priority':'highest'});}),_0x34d39e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4423cb,_0x35775b)=>{if(_0x35775b['options']['showSuggestionHighlights']){const {id:_0x538b1c,authorId:_0x1bb5b9}=v(_0x4423cb);return _0x4423cb['includes'](':split')||_0x4423cb['includes'](':merge')?{'group':'suggestion','name':_0x4423cb['substr'](0xb),'attributes':{'data-suggestion':_0x538b1c,'data-author-id':_0x1bb5b9}}:null;}return{'group':'suggestion','name':_0x4423cb['substr'](0xb)};}});const _0xb7dfb8=(_0x2ef6f3,_0xf87df7,_0x122024,_0x372857,_0x38bb23)=>{if(_0x372857&&!_0x122024['options']['showSuggestionHighlights'])return;if(!_0x122024['consumable']['test'](_0xf87df7['markerRange'],_0x2ef6f3['name']))return;const _0x43d531=this['_activeMarkers'],_0x12749e=_0xf87df7['markerRange']['getWalker'](),_0x17fe24=_0xf87df7['markerRange']['start'],_0x1f4a8e=_0x34d39e['model']['schema'];let _0xef036b=null,_0x55c522=null,_0x1b8920=!0x1,_0x2c345c=!0x1;for(const _0x24528a of _0x12749e){const _0x458d7c=_0x24528a['item'];_0x1b8920=_0x1b8920||_0x1f4a8e['isContent'](_0x458d7c);const _0x5d7088=_0x122024['mapper']['toViewElement'](_0x458d7c);if(_0x5d7088&&_0x5d7088['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x24528a['type']&&(_0x1f4a8e['isBlock'](_0x458d7c)&&!_0x1f4a8e['isLimit'](_0x458d7c)&&(_0x458d7c['nextSibling']||_0x17fe24['isAtEnd']?_0xef036b&&_0xef036b['parent']==_0x458d7c||(_0xef036b=_0x458d7c,_0x320e96(_0x24528a['previousPosition']),_0x2c345c=!0x0):_0x55c522=_0x55c522||_0x24528a['previousPosition']));}function _0x320e96(_0x5987cd){const {id:_0x493669,authorId:_0x1793cb}=v(_0xf87df7['markerName']),_0x18e221=_0x122024['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38bb23,'data-suggestion':_0x493669,'data-author-id':_0x1793cb}),_0x4a49e4=_0x122024['mapper']['toViewPosition'](_0x5987cd);!_0x372857&&_0x43d531['includes'](_0xf87df7['markerName'])&&_0x122024['writer']['addClass']('ck-suggestion-marker--active',_0x18e221),_0x122024['writer']['insert'](_0x4a49e4,_0x18e221),_0x122024['mapper']['bindElementToMarker'](_0x18e221,_0xf87df7['markerName']);}_0x1b8920||_0x2c345c||!_0x55c522||_0x320e96(_0x55c522);};_0x34d39e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1d8ef4,_0x35ab6c,_0x3e436d)=>{_0xb7dfb8(_0x1d8ef4,_0x35ab6c,_0x3e436d,!0x1,'merge');},{'priority':'high'}),_0x34d39e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1f4a1e,_0x211663,_0x4032b5)=>{_0xb7dfb8(_0x1f4a1e,_0x211663,_0x4032b5,!0x0,'merge');},{'priority':'high'}),_0x34d39e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e901f,_0x98d45e,_0x3cd2ae)=>{_0xb7dfb8(_0x3e901f,_0x98d45e,_0x3cd2ae,!0x1,'split');},{'priority':'high'}),_0x34d39e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38d944,_0x11e896,_0x3e31a1)=>{_0xb7dfb8(_0x38d944,_0x11e896,_0x3e31a1,!0x0,'split');},{'priority':'high'}),_0x34d39e['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31d5c4,_0x28c70a,_0x3b05ac)=>{((_0xa35a88,_0x550d74,_0x33d0dd)=>{const _0x3a60c8=_0x33d0dd['mapper']['markerNameToElements'](_0x550d74['markerName']);if(_0x3a60c8){for(const _0x160917 of _0x3a60c8)(_0x160917['hasClass']('ck-suggestion-marker-split')||_0x160917['hasClass']('ck-suggestion-marker-merge'))&&(_0x33d0dd['mapper']['unbindElementFromMarkerName'](_0x160917,_0x550d74['markerName']),_0x33d0dd['writer']['remove'](_0x160917));}})(0x0,_0x28c70a,_0x3b05ac);},{'priority':'high'});const _0x17c88c=(_0x3a2ec8,_0x32dd88,_0x14a93c,_0x15bb56)=>{if(_0x15bb56&&!_0x14a93c['options']['showSuggestionHighlights'])return;const _0x269538=_0x32dd88['markerRange']['start'],_0x22323c=_0x32dd88['markerRange']['end'],_0x5a9a07=_0x34d39e['model']['schema'];if(!_0x269538['isTouching'](_0x22323c)||!_0x269538['nodeAfter'])return;const _0x544b96=_0x269538['nodeAfter'];if(_0x5a9a07['isBlock'](_0x544b96)&&!_0x5a9a07['isLimit'](_0x544b96)&&_0x5a9a07['checkChild'](_0x544b96,'$text')){if(!_0x14a93c['consumable']['consume'](_0x32dd88['markerRange'],_0x3a2ec8['name']))return;const {id:_0x43244f,authorId:_0x51533d}=v(_0x32dd88['markerName']),_0x167bbc=_0x14a93c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x43244f,'data-author-id':_0x51533d}),_0x5c3af1=_0x14a93c['mapper']['toViewPosition'](_0x22323c);!_0x15bb56&&this['_activeMarkers']['includes'](_0x32dd88['markerName'])&&_0x14a93c['writer']['addClass']('ck-suggestion-marker--active',_0x167bbc),_0x14a93c['writer']['insert'](_0x5c3af1,_0x167bbc),_0x14a93c['mapper']['bindElementToMarker'](_0x167bbc,_0x32dd88['markerName']);}};_0x34d39e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4aa91a,_0x1b744f,_0x490ff8)=>{_0x17c88c(_0x4aa91a,_0x1b744f,_0x490ff8,!0x1);},{'priority':'high'}),_0x34d39e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35e21c,_0x2b6b8d,_0x443106)=>{_0x17c88c(_0x35e21c,_0x2b6b8d,_0x443106,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x11e9af,_0x538848,_0x27fd8d)=>{this['_activeMarkers']=_0x27fd8d['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x546c64){this['_blockAttributeKeys']['add'](_0x546c64);}['registerInlineAttribute'](_0x37af0e){this['_inlineAttributeKeys']['add'](_0x37af0e);}['isBlockAttribute'](_0x5b8927){return this['_blockAttributeKeys']['has'](_0x5b8927);}['isInlineAttribute'](_0x5bcada){return this['_inlineAttributeKeys']['has'](_0x5bcada);}['isRegisteredAttribute'](_0x2c182f){return this['isInlineAttribute'](_0x2c182f)||this['isBlockAttribute'](_0x2c182f);}['_getClassName'](_0x158b8a,_0x19bb7f){if('attribute'!=_0x158b8a)return'ck-suggestion-marker-'+_0x158b8a;const _0x4793c7=_0x19bb7f['split']('|')[0x0];return this['isBlockAttribute'](_0x4793c7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x5b0a0e={},_0x2a582b){if(void 0x0!==_0x5b0a0e['dateTimeFormat']&&'function'!=typeof _0x5b0a0e['dateTimeFormat'])throw new _0x1c240d('invalid-date-time-format');return _0x245daf=>{const _0x46da06='string'==typeof _0x245daf?tt['fromISO'](_0x245daf):tt['fromJSDate'](_0x245daf),_0x556145=tt['now'](),_0x4b5f61=Math['floor'](_0x556145['diff'](_0x46da06,'days')['days']);return _0x5b0a0e['dateTimeFormat']?_0x5b0a0e['dateTimeFormat'](_0x46da06['toJSDate'](),_0x2a582b&&_0x2a582b['t']?_0x2a582b['t']:void 0x0):0x0===_0x4b5f61?_0x2a582b?U(_0x2a582b,'Today')+'\x20'+_0x46da06['toFormat']('hh:mma'):_0x46da06['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x4b5f61?_0x2a582b?U(_0x2a582b,'Yesterday')+'\x20'+_0x46da06['toFormat']('hh:mma'):_0x46da06['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x4b5f61<0x7?_0x2a582b?U(_0x2a582b,'Last')+'\x20'+U(_0x2a582b,_0x46da06['toFormat']('EEEE'))+'\x20'+_0x46da06['toFormat']('hh:mma'):_0x46da06['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x46da06['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x409925,_0xd3caf4){const _0x136e53=_0x409925['mapper']['markerNameToElements'](_0xd3caf4['name']);if(!_0x136e53)return null;const _0x98e67f=_0x2f4701(_0x136e53['values']());return _0x409925['view']['domConverter']['mapViewToDom'](_0x98e67f)||null;}function wt(_0x1d6990,_0x938651){if(0x0===_0x938651['length'])return null;const _0x4dcf75=[],_0x596329=_0x1d6990['view']['domConverter'];for(const _0x48efdf of _0x938651){const _0x508ef6=_0x1d6990['mapper']['markerNameToElements'](_0x48efdf['name']);if(!_0x508ef6)continue;const _0x44bd62=Array['from'](_0x508ef6)['map'](_0x38dd14=>_0x596329['mapViewToDom'](_0x38dd14))['filter'](_0x39b9cd=>!!_0x39b9cd);_0x4dcf75['push'](..._0x44bd62);}if(0x0===_0x4dcf75['length'])return null;const _0x375d10=[];for(const _0x257dfa of _0x4dcf75){const _0x430544=_0x257dfa['getClientRects']()['item'](0x0);_0x430544&&_0x375d10['push']({'x':_0x430544['x'],'y':_0x430544['y'],'domElement':_0x257dfa});}return 0x0===_0x375d10['length']?null:(_0x375d10['sort']((_0x2306aa,_0x499dae)=>_0x2306aa['y']-_0x499dae['y']||_0x2306aa['x']-_0x499dae['x']),_0x375d10['map'](_0x5ace7a=>_0x5ace7a['domElement']));}function bt(_0x4a4891,{limit:_0x17896f,suffix:_0x2a7bca='...'}){const _0x141bfb=[];let _0x4d4994=0x0;const _0x4d6c4c=_0x4a4891['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4bcf26=0x0;_0x4bcf26<_0x4d6c4c['length'];_0x4bcf26++){let _0xae6f5e=_0x4d6c4c[_0x4bcf26];const _0x49ce1a=tn(_0xae6f5e);if(_0xae6f5e['startsWith']('<')){if(_0x4d4994>=_0x17896f){const _0x5091dc=_0xae6f5e['match'](/[a-zA-Z]+/);if(!_0x5091dc){_0x4d6c4c[_0x4bcf26]='';continue;}const _0xd49541=_0x5091dc[0x0];_0xae6f5e['startsWith']('</')?(_0x141bfb['length']&&(_0xae6f5e=''),_0x141bfb['pop']()):(_0x141bfb['push'](_0xd49541),_0xae6f5e='');}}else{if(_0x4d4994>=_0x17896f)_0xae6f5e='';else{if(_0x4d4994+_0x49ce1a['length']>=_0x17896f){let _0x40b43a=_0x17896f-_0x4d4994;if('\x20'===_0x49ce1a[_0x40b43a-0x1])_0x40b43a--;else{const _0x527e3b=_0x49ce1a['slice'](_0x40b43a)['indexOf']('\x20');-0x1!==_0x527e3b?_0x40b43a+=_0x527e3b:_0x40b43a=_0xae6f5e['length'];}_0xae6f5e=_0x49ce1a['slice'](0x0,_0x40b43a)['join']('')+_0x2a7bca,_0x4d4994=_0x17896f;}else _0x4d4994+=_0x49ce1a['length'];}}_0x4d6c4c[_0x4bcf26]=_0xae6f5e;}return _0x4d6c4c['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x189edc){const _0x5f07b1=[];for(let _0x46bdee=0x0;_0x46bdee<_0x189edc['length'];_0x46bdee++){const _0x1f18de=_0x189edc['substring'](_0x46bdee)['match'](/^&[a-z0-9#]+;/);if(_0x1f18de){const _0x50d098=_0x1f18de[0x0];_0x5f07b1['push'](_0x50d098),_0x46bdee+=_0x50d098['length']-0x1;}else _0x5f07b1['push'](_0x189edc[_0x46bdee]);}return _0x5f07b1;}class V extends _0x58e702{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x5ebf92){super(_0x5ebf92);const _0x340ee3=this['bindTemplate'];this['set']('message',U(_0x5ebf92,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x5ebf92,U(_0x5ebf92,'Yes'),_0x25f249,'submit'),this['cancelView']=this['_createButtonView'](_0x5ebf92,U(_0x5ebf92,'No'),_0x121464,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x4a599c(),this['focusCycler']=new _0x3b4d5f({'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':_0x340ee3['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'](_0x3187ba,_0x2b3acc,_0x352e1c,_0x168543){const _0xbc139b=new _0x161c6a(_0x3187ba);return _0xbc139b['label']=_0x2b3acc,_0xbc139b['icon']=_0x352e1c,_0xbc139b['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x168543}}),_0xbc139b['on']('execute',()=>this['fire'](_0x168543)),_0xbc139b;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x5a36d9=>{this['keystrokes']['listenTo'](_0x5a36d9['element']),this['focusTracker']['add'](_0x5a36d9['element']);}),this['keystrokes']['set']('esc',(_0x39556b,_0x4cd2f2)=>{this['fire']('cancel'),_0x4cd2f2();});}}function vt(_0x5da277){return class extends _0x5da277{['showConfirm'](_0x1dbf5c,_0x5c78f7){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x1dbf5c,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x5c78f7['appendChild'](this['confirmView']['element']),_0x5c78f7['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x3fdd37,_0x29b8f3,_0x38b995)=>{_0x38b995||_0x5c78f7['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x5313be=>this['confirmView']['on']('submit',_0x5313be));}['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(_0x10f621){let _0x24e60d=0x0,_0x370795=0x0;for(const _0x42067e of ne(_0x10f621))_0x24e60d=(_0x24e60d<<0x5)-_0x24e60d+_0x42067e,_0x24e60d&=_0x24e60d,[_0x24e60d,_0x370795]=[_0x370795,_0x24e60d];return ie(_0x24e60d)+ie(_0x370795);}function*ee(_0x4669f8){null==_0x4669f8||null==_0x4669f8?yield 0x12b9b0a1:0x0===_0x4669f8||!0x1===_0x4669f8?yield 0x0:0x1===_0x4669f8||0x1==_0x4669f8?yield 0x1:Array['isArray'](_0x4669f8)?yield*function*(_0xf55199){for(const _0x17de45 of _0xf55199)yield*ee(_0x17de45);}(_0x4669f8):'object'==typeof _0x4669f8?yield*ne(_0x4669f8):'string'==typeof _0x4669f8?yield*oe(_0x4669f8):'number'==typeof _0x4669f8&&(yield _0x4669f8);}function*ne(_0x3fb99b){if(yield te('{'),_0x3fb99b){const _0x43b419=Object['keys'](_0x3fb99b)['sort']();for(const _0x2027df of _0x43b419){yield*oe(_0x2027df),yield te(':');const _0x27abc5=_0x3fb99b[_0x2027df];yield*ee(_0x27abc5);}}yield te('}');}function*oe(_0x25d958){yield te('\x22');for(const _0x2f43a1 of _0x25d958)yield te(_0x2f43a1);yield te('\x22');}function te(_0x485d57){return _0x485d57['charCodeAt'](0x0);}function ie(_0x3a835f){return(_0x3a835f*=Math['sign'](_0x3a835f))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0xa10f4,_0x1e15f2,_0x4620b9,_0x242c9e=[]){const _0x6de868='string'==typeof _0xa10f4?_0x4620b9['get'](_0xa10f4)['constructor']:_0xa10f4['prototype']['constructor'];if(_0x1e15f2['has'](_0x6de868))return _0x1e15f2['get'](_0x6de868);_0x1e15f2['set'](_0x6de868,!0x0);const _0x453a12=[...et,..._0x242c9e]['map'](_0x2480c5=>{if(_0x4620b9['has'](_0x2480c5))return _0x4620b9['get'](_0x2480c5)['constructor'];})['filter'](_0xd59f6f=>_0xd59f6f);if(_0x6de868&&_0x453a12['includes'](_0x6de868))return _0x1e15f2['set'](_0x6de868,!0x1),!0x1;if(!_0x6de868['requires'])return _0x1e15f2['set'](_0x6de868,!0x0),!0x0;const _0x26dc0c=_0x6de868['requires']['every'](_0xe8f12f=>ot(_0xe8f12f,_0x1e15f2,_0x4620b9,_0x242c9e));return _0x1e15f2['set'](_0x6de868,_0x26dc0c),_0x26dc0c;}function Ct(_0x4b6cde,_0x2f7f79){const _0x595cdb={};for(const _0x44e583 of _0x4b6cde['config']['names']())nt['includes'](_0x44e583)||(_0x595cdb[_0x44e583]=_0x4b6cde['config']['get'](_0x44e583));const _0x1ce844=_0x595cdb['plugins']||[],_0x558172=_0x4b6cde['constructor']['builtinPlugins']||[],_0x393d15=_0x1ce844['length']?_0x1ce844:_0x558172,_0x5cbed0=_0x595cdb['extraPlugins']||[];delete _0x595cdb['extraPlugins'];const _0x34e830=_0x595cdb['removePlugins']||[];delete _0x595cdb['removePlugins'];const _0x1ad9eb=_0x4b6cde['_context']['config']['get']('plugins')||[],_0x324e95=_0x393d15['concat'](_0x5cbed0)['concat'](_0x1ad9eb)['map'](_0x1d287d=>'string'==typeof _0x1d287d?_0x558172['find'](_0x226d52=>_0x226d52['pluginName']==_0x1d287d):_0x1d287d)['filter'](_0x7ed1f3=>!_0x34e830['includes'](_0x7ed1f3)&&!_0x34e830['includes'](_0x7ed1f3['pluginName'])),_0x1f7fb5=Array['from'](new Set(_0x324e95)),_0x3181bf=new Map();return _0x595cdb['plugins']=_0x1f7fb5['filter'](_0x432750=>ot(_0x432750,_0x3181bf,_0x4b6cde['plugins'],_0x2f7f79)),_0x595cdb;}function _t(_0x36b72f,_0x49a186){const _0x871e05=[];_0x36b72f['document']['selection']['on']('change:range',()=>{const _0xdbd2af=function(_0x162f38,_0x234610){const _0x1662ee=[];for(const _0x243000 of _0x162f38['markers']){const _0x225528=_0x243000['getRange']();(_0x225528['containsPosition'](_0x234610)||_0x225528['start']['isEqual'](_0x234610)||_0x225528['end']['isEqual'](_0x234610))&&_0x1662ee['push'](_0x243000);}return _0x1662ee;}(_0x36b72f,_0x36b72f['document']['selection']['focus']),_0x3ce3ff=[],_0x34db59=[],_0x3beaa0=[];for(const _0x39da45 of _0x871e05)_0xdbd2af['includes'](_0x39da45)||_0x3ce3ff['push'](_0x39da45);for(const _0x46293d of _0xdbd2af)_0x871e05['includes'](_0x46293d)||_0x34db59['push'](_0x46293d),_0x3beaa0['push'](_0x46293d);(_0x3ce3ff['length']||_0x34db59['length'])&&_0x49a186({'left':_0x3ce3ff,'entered':_0x34db59}),_0x871e05['length']=0x0,_0x871e05['push'](..._0x3beaa0);});}const xt='Ctrl+Shift+E';function It(_0x3901d7,_0x29b2d8){const _0x5dd82d=_0x3901d7['element'];_0x3901d7['keystrokes']['listenTo'](_0x5dd82d);for(const _0xa35749 of _0x29b2d8)ro(_0x3901d7,_0xa35749);_0x29b2d8['on']('change',(_0x2de3c8,_0x105178)=>{for(const _0x282704 of _0x105178['removed'])to(_0x3901d7,_0x282704);for(const _0x483e9d of Array['from'](_0x105178['added'])['reverse']())ro(_0x3901d7,_0x483e9d);}),_0x3901d7['keystrokes']['set']('enter',(_0x4ffbfa,_0x481143)=>{_0x5dd82d===_0x4ffbfa['target']&&(_0x3901d7['focusCycler']['focusFirst'](),_0x481143());},{'filter':_0xa96fa0=>_0xa96fa0['target']===_0x5dd82d}),_0x3901d7['keystrokes']['set']('esc',(_0x417799,_0x3e3f23)=>{_0x5dd82d!==_0x417799['target']?_0x3901d7['focus']():_0x3901d7['fire']('escape'),_0x3e3f23();}),_0x3901d7['keystrokes']['set']('arrowdown',(_0x5bb4b8,_0x16b17e)=>{_0x5dd82d===_0x5bb4b8['target']&&(_0x3901d7['fire']('arrowdown'),_0x16b17e());}),_0x3901d7['keystrokes']['set']('arrowup',(_0x3dbe9f,_0x24e704)=>{_0x5dd82d===_0x3dbe9f['target']&&(_0x3901d7['fire']('arrowup'),_0x24e704());});}function ro(_0x22ec9e,_0x3a699d){_0x3a699d['isRendered']&&(_0x22ec9e['focusTracker']['add'](_0x3a699d['element']),_0x22ec9e['keystrokes']['listenTo'](_0x3a699d['element']),_0x4a9a17(_0x3a699d)&&function(_0xc9e650,_0x3b2b04){const _0x115632=_0xc9e650['actions'],_0x2e9ce2=_0x3b2b04['actions'];for(const _0x27c7e4 of Object['keys'](_0x115632))if(_0x27c7e4 in _0x2e9ce2&&_0x115632[_0x27c7e4]!==_0x2e9ce2[_0x27c7e4])return!0x1;return!0x0;}(_0x22ec9e['focusCycler'],_0x3a699d['focusCycler'])&&_0x22ec9e['focusCycler']['chain'](_0x3a699d['focusCycler']));}function to(_0x58632e,_0x254f8a){_0x58632e['focusTracker']['remove'](_0x254f8a['element']),_0x58632e['keystrokes']['stopListening'](_0x254f8a['element']),_0x4a9a17(_0x254f8a)&&_0x58632e['focusCycler']['unchain'](_0x254f8a['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x503307{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x41c0c6?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x50ada5,_0x52d46b)=>{_0x52d46b['on']('ready',()=>{this['_integrateEditor'](_0x52d46b);});});}get['editor'](){if(this['context']instanceof _0x41c0c6)return this['context'];{const _0x5ee6fa=this['context']['editors']['first'];if(!_0x5ee6fa)throw new _0x1c240d('documentcompare-no-editor',this);return _0x5ee6fa;}}['getDiff'](_0x5d7ecc,_0x2614a1,_0xacaeb7={'anchor':'main','markDeletions':!0x1}){let _0x544e51,_0x49ff93;const _0x1cb084=this['editor'];if('string'==typeof _0xacaeb7['anchor']){const _0xcf9b0c=_0x1cb084['model']['document']['getRoot'](_0xacaeb7['anchor']);if(!_0xcf9b0c)throw new _0x1c240d('documentcompare-compare-no-root',this,{'anchor':_0xacaeb7['anchor']});_0x544e51=_0xcf9b0c,_0x49ff93=_0x1cb084['model']['createPositionAt'](_0xcf9b0c,0x0);}else _0x544e51=_0xacaeb7['anchor']['clone'](),_0x49ff93=_0xacaeb7['anchor']['clone']();const _0x1fdec7=_0x1cb084['data']['parse'](_0x5d7ecc,_0x544e51),_0x432d2b=_0x1cb084['data']['parse'](_0x2614a1,_0x544e51);return new Mt(_0x1fdec7,_0x432d2b,_0x1cb084,{'anchor':_0x49ff93,'markDeletions':_0xacaeb7['markDeletions']});}['isMarkedRemoveOperation'](_0x2c4ca5){return'marker'==_0x2c4ca5['type']&&_0x2c4ca5['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x1261b1){_0x1261b1['conversion']['for']('upcast')['add'](_0x325281=>{_0x325281['on']('element',(_0x43585d,_0x5a6dbb,_0x53d100)=>{if(_0x5a6dbb['modelRange'])for(const _0x5ad20c of _0x5a6dbb['modelRange']['getItems']({'shallow':!0x0})){if(_0x5ad20c['is']('$textProxy'))continue;const _0x1f6374=_0x5a6dbb['viewItem']['getAttribute'](Et);_0x1f6374&&_0x53d100['writer']['setAttribute'](St,_0x1f6374,_0x5ad20c);}},{'priority':'lowest'});}),_0x1261b1['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0xa57f75,_0x26b2f1,_0xb1712,_0x19aa24){this['_editor']=_0xb1712,this['_markDeletions']=!!_0x19aa24['markDeletions'],this['_anchor']=_0x19aa24['anchor'];const _0x9b6b25=this['_tokenizeModel'](_0xa57f75),_0x3ac054=this['_tokenizeModel'](_0x26b2f1);this['_diffItems']=this['_diffModelTokens'](_0x9b6b25,_0x3ac054),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0xa57f75['markers'],_0x26b2f1['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x59a139=this['_editor']['model']['document'],_0x4eae8b=[];let _0x29282b=_0x59a139['version'];for(const _0x4d4dc4 of this['_operationsData'])switch(_0x4d4dc4['type']){case'attribute':{const _0xf6a929=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['path']),_0x3c58bf=_0xf6a929['getShiftedBy'](_0x4d4dc4['howMany']),_0x2ba227=new _0x542a8e(_0xf6a929,_0x3c58bf),_0x5bfb0b=JSON['parse'](_0x4d4dc4['oldValue']),_0x7e355c=JSON['parse'](_0x4d4dc4['newValue']);_0x4eae8b['push'](new _0x28cff4(_0x2ba227,_0x4d4dc4['key'],_0x5bfb0b,_0x7e355c,_0x29282b++));break;}case'insert':{const _0x252e7f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['path']),_0x2d9ac0=this['_makeModelFromTokens'](_0x4d4dc4['tokens']);_0x4eae8b['push'](new _0x522db3(_0x252e7f,_0x2d9ac0,_0x29282b++));break;}case'remove':{const _0xd9ad0c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['path']),_0x23fe4b=new _0x13099c(_0x59a139['graveyard'],[0x0]);_0x4eae8b['push'](new _0x373eba(_0xd9ad0c,_0x4d4dc4['howMany'],_0x23fe4b,_0x29282b++));break;}case'rename':{const _0x1e70e1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['path']);_0x4eae8b['push'](new _0x4ac0cf(_0x1e70e1,_0x4d4dc4['oldName'],_0x4d4dc4['newName'],_0x29282b++));break;}case'split':{const _0x241d43=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['path']),_0x51699f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['path']['slice'](0x0,-0x1));_0x51699f['offset']++,_0x4eae8b['push'](new _0x314125(_0x241d43,Number['NEGATIVE_INFINITY'],_0x51699f,null,_0x29282b++));break;}case'merge':{const _0xa9d221=_0x4d4dc4['path']['slice'](),_0x38ec6a=_0xa9d221['slice'](0x0,-0x1);_0x38ec6a[_0x38ec6a['length']-0x1]++,_0x38ec6a['push'](0x0);const _0x394ae0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x38ec6a),_0x4c8d1c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xa9d221),_0x2f0cfa=new _0x13099c(_0x59a139['graveyard'],[0x0]);_0x4eae8b['push'](new _0x4d8adb(_0x394ae0,Number['NEGATIVE_INFINITY'],_0x4c8d1c,_0x2f0cfa,_0x29282b++));break;}case'marker':case'markedRemove':{let _0x2f57d2=null;if(_0x4d4dc4['range']){const _0x52ea22=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['range']['start']),_0x450b41=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['range']['end']);_0x2f57d2=new _0x542a8e(_0x52ea22,_0x450b41);}const _0x26471f='marker'==_0x4d4dc4['type']?_0x4d4dc4['name']:'$markedRemove:'+_0x91ff57();_0x4eae8b['push'](new _0x30b786(_0x26471f,null,_0x2f57d2,_0x59a139['model']['markers'],!0x0,_0x29282b++));break;}case'unwrap':{const _0x45606b=_0x4d4dc4['path']['slice']();_0x45606b['push'](0x0);const _0x3be4ee=_0x4d4dc4['path']['slice'](),_0x289e5d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x45606b),_0x56651f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3be4ee),_0x1f2c54=new _0x13099c(_0x59a139['graveyard'],[0x0]);_0x4eae8b['push'](new _0x373eba(_0x289e5d,_0x4d4dc4['howMany'],_0x56651f,_0x29282b++)),_0x4eae8b['push'](new _0x373eba(_0x56651f['getShiftedBy'](_0x4d4dc4['howMany']),0x1,_0x1f2c54,_0x29282b++));break;}case'wrap':{const _0xbcde71=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['range']['start']),_0x33094d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4d4dc4['range']['end']),_0x43625a=_0x4d4dc4['token']['element']['_clone'](!0x1),_0x1ab878=_0x4d4dc4['range']['end']['slice']();_0x1ab878['push'](0x0);const _0x232a73=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1ab878);_0x4eae8b['push'](new _0x522db3(_0x33094d,_0x43625a,_0x29282b++)),_0x4eae8b['push'](new _0x373eba(_0xbcde71,_0x33094d['offset']-_0xbcde71['offset'],_0x232a73,_0x29282b++));break;}}return _0x4eae8b;}['_tokenizeModel'](_0x4a73a2){const _0x17194c=[],_0x3c4433=_0x542a8e['_createIn'](_0x4a73a2),_0x26cee5=new _0x52821d({'boundaries':_0x3c4433});let _0x2833d9='',_0x56bfb9=null;const _0x1456d5=[''],_0x2be79c=new Map();for(const _0x17cfbd of _0x26cee5)if('elementStart'==_0x17cfbd['type']||'elementEnd'==_0x17cfbd['type']){let _0x53079c=_0x1456d5[0x0];''!==_0x2833d9&&(_0x17194c['push'](...this['_makeTokensFromTextByWords'](_0x2833d9,_0x56bfb9,_0x53079c)),_0x2833d9='');const _0x43735e=_0x17cfbd['item'];let _0x4b2d34;_0x43735e['getAttribute'](St)?_0x4b2d34=_0x43735e['getAttribute'](St):'elementStart'==_0x17cfbd['type']?(_0x4b2d34=_(_0x43735e),_0x2be79c['set'](_0x43735e,_0x4b2d34)):_0x4b2d34=_0x2be79c['get'](_0x43735e);const _0x538a64=this['_getElementCategory'](_0x43735e);'solid'==_0x538a64&&('elementStart'==_0x17cfbd['type']?(_0x53079c=_0x4b2d34,_0x1456d5['unshift'](_0x53079c)):_0x1456d5['shift']());const _0x30988a={'type':'element','element':_0x43735e,'elementId':_0x4b2d34,'category':_0x538a64,'isStart':'elementStart'==_0x17cfbd['type'],'limitId':_0x53079c};_0x17194c['push'](_0x30988a);}else''==_0x2833d9&&(_0x56bfb9=_0x17cfbd['previousPosition']['clone']()),_0x2833d9+=_0x17cfbd['item']['data'];return''!==_0x2833d9&&_0x17194c['push'](...this['_makeTokensFromTextByWords'](_0x2833d9,_0x56bfb9,_0x1456d5[0x0])),_0x17194c;}['_makeTokensFromTextByWords'](_0x5afd0b,_0x3f1e68,_0x33605c){const _0x58c221=_0x5afd0b['matchAll'](/(\s)/g),_0x195d8f=Array['from'](_0x58c221)['map'](_0x5bd725=>_0x5bd725['index']);_0x195d8f['push'](_0x5afd0b['length']),0x0==_0x195d8f[0x0]&&_0x195d8f['shift']();const _0x34314d=[],_0x4d67fc=_0x3f1e68['parent'];let _0x2a9455=0x0,_0x8cce9c=_0x3f1e68['offset'];for(let _0x18362f=0x0;_0x18362f<_0x195d8f['length'];_0x18362f++)_0x34314d['push']({'type':'text','data':_0x5afd0b['slice'](_0x2a9455,_0x195d8f[_0x18362f]),'parent':_0x4d67fc,'offset':_0x8cce9c,'limitId':_0x33605c}),_0x2a9455=_0x195d8f[_0x18362f],_0x8cce9c=_0x3f1e68['offset']+_0x195d8f[_0x18362f];return _0x34314d;}['_getElementCategory'](_0x1134fb){const _0x3fd898=this['_editor']['model']['schema'];return _0x3fd898['isLimit'](_0x1134fb)||_0x3fd898['isContent'](_0x1134fb)||_0x3fd898['isInline'](_0x1134fb)?'solid':_0x3fd898['isBlock'](_0x1134fb)?'block':'container';}['_diffModelTokens'](_0x2ce945,_0x588997){const _0x578f09=_0x2ecd06(_0x2ce945,_0x588997,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x578f09);const _0x59ebee=_0x578f09['flatMap'](_0x2a730b=>{const _0x34a543=_0x2a730b['added']?'added':_0x2a730b['removed']?'removed':'unchanged';return _0x2a730b['value']['map'](_0x466bd8=>({'token':_0x466bd8,'change':_0x34a543}));});let _0x1970f0=0x0;for(const _0x3d0908 of _0x59ebee)'added'!=_0x3d0908['change']&&('unchanged'==_0x3d0908['change']&&(_0x3d0908['before']=_0x2ce945[_0x1970f0]),_0x1970f0++);return _0x59ebee;}['_handleUnclosedBlockOpeningTags'](_0x43e44e){for(let _0xd5fb97=0x0;_0xd5fb97<_0x43e44e['length']-0x1;_0xd5fb97++)if(_0x43e44e[_0xd5fb97]['removed']&&_0x43e44e[_0xd5fb97+0x1]['added']){const _0x36df47=this['_findUnclosedBlockOpeningToken'](_0x43e44e[_0xd5fb97]['value']);if(null!==_0x36df47){const _0x3d0609=this['_findUnclosedBlockOpeningToken'](_0x43e44e[_0xd5fb97+0x1]['value']),_0x4d331d=_0x43e44e[_0xd5fb97]['value']['splice'](_0x36df47),_0x3d5fe7=_0x43e44e[_0xd5fb97+0x1]['value']['splice'](_0x3d0609),_0x224b05=[_0x3d5fe7['shift']()];_0x4d331d['shift']();const _0x2d4b13={'value':_0x4d331d,'removed':!0x0},_0x1322ae={'value':_0x3d5fe7,'added':!0x0},_0x3ab3e1={'value':_0x224b05};_0x43e44e['splice'](_0xd5fb97+0x2,0x0,_0x3ab3e1,_0x2d4b13,_0x1322ae);}}}['_findUnclosedBlockOpeningToken'](_0x40eafb){let _0x390f93=0x0,_0xfd5cc1=-0x1;for(let _0x56b059=0x0;_0x56b059<_0x40eafb['length'];_0x56b059++){const _0x3dff65=_0x40eafb[_0x56b059];'element'==_0x3dff65['type']&&'block'==_0x3dff65['category']&&(_0x390f93+=_0x3dff65['isStart']?0x1:-0x1,_0x3dff65['isStart']&&(_0xfd5cc1=_0x56b059));}return 0x0===_0x390f93?null:_0xfd5cc1;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x5ba447=0x0;_0x5ba447<this['_diffItems']['length'];_0x5ba447++){const _0x10c9ac=this['_diffItems'][_0x5ba447]['change'],_0x6ff36=[];_0x6ff36['push'](this['_diffItems'][_0x5ba447]);let _0x176e88=_0x5ba447+0x1;for(;this['_diffItems'][_0x176e88]&&this['_diffItems'][_0x176e88]['change']==_0x10c9ac;)_0x6ff36['push'](this['_diffItems'][_0x176e88]),_0x176e88++,_0x5ba447++;const _0x340b60=_0x6ff36['map'](_0x570fc6=>_0x570fc6['token']);if('unchanged'==_0x10c9ac)_0x6ff36['map'](_0x8149ea=>_0x8149ea['before'])['forEach'](_0x2b8ef9=>this['_traverseOverItem'](_0x2b8ef9));else{if('removed'==_0x10c9ac){if(this['_markDeletions']){const _0x2b7296=this['_path']['slice']();_0x340b60['forEach'](_0x788f55=>this['_traverseOverItem'](_0x788f55));const _0x5f0ead=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x2b7296,'end':_0x5f0ead}});}else this['_handleChanged'](_0x340b60,!0x0,this['_path']['slice']());}else{const _0xc58f6e=_0x340b60['filter'](_0x201711=>'element'!=_0x201711['type']||'container'!=_0x201711['category']);this['_handleChanged'](_0xc58f6e,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x1a4c7a=0x0;_0x1a4c7a<this['_diffItems']['length'];_0x1a4c7a++){const _0x30a125=this['_diffItems'][_0x1a4c7a]['change'],_0x396569=[];_0x396569['push'](this['_diffItems'][_0x1a4c7a]);let _0x1ed0a7=_0x1a4c7a+0x1;for(;this['_diffItems'][_0x1ed0a7]&&this['_diffItems'][_0x1ed0a7]['change']==_0x30a125;)_0x396569['push'](this['_diffItems'][_0x1ed0a7]),_0x1ed0a7++,_0x1a4c7a++;const _0xaed5c3=_0x396569['map'](_0x3b6d02=>_0x3b6d02['token']);if('unchanged'==_0x30a125){const _0x35b619=_0x396569['map'](_0x483bb2=>_0x483bb2['before']);this['_handleUnchanged'](_0x35b619,_0xaed5c3);}else('removed'!=_0x30a125||this['_markDeletions'])&&_0xaed5c3['forEach'](_0xcce1ef=>{this['_traverseOverItem'](_0xcce1ef);});}}['_calculateMarkersOperationsData'](_0x365701,_0x10165f){const _0x275cd4={};for(const [_0x3b75fa]of _0x365701)_0x275cd4[_0x3b75fa]=null;for(const [_0x871af7,_0x3ea632]of _0x10165f)_0x275cd4[_0x871af7]=_0x3ea632;const _0x28c32e=Object['entries'](_0x275cd4)['map'](([_0x5ecefa,_0xd97452])=>({'type':'marker','name':_0x5ecefa,'range':_0xd97452?{'start':_0xd97452['start']['path']['slice'](),'end':_0xd97452['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x28c32e);}['_handleUnwraps'](){const _0x509dc0=new Map(),_0x2c06e2=[],_0x544640=[0x0];let _0x23d844=this['_diffItems']['length']+0x1;for(let _0x549f33=this['_diffItems']['length']-0x1;_0x549f33>=0x0;_0x549f33--){const {token:_0x46c780,before:_0x883e69,change:_0x4e8e29}=this['_diffItems'][_0x549f33];if('removed'!=_0x4e8e29&&(_0x23d844=_0x549f33),'element'!=_0x46c780['type']||'container'!=_0x46c780['category']||'added'==_0x4e8e29)continue;const _0x39af0d=_0x883e69?_0x883e69['element']:_0x46c780['element'];if(_0x46c780['isStart']){const _0x41ee8e=_0x509dc0['get'](_0x39af0d),_0x456ef5=this['_diffItems'][_0x41ee8e];('removed'==_0x4e8e29||'removed'==_0x456ef5['change'])&&_0x23d844<_0x41ee8e&&(this['_operationsData']['push']({'type':'unwrap','path':_0x39af0d['getPath'](),'howMany':_0x39af0d['maxOffset']+_0x544640[0x0]}),_0x544640['shift'](),_0x544640[0x0]+=_0x39af0d['maxOffset']-0x1,_0x2c06e2['push'](_0x549f33),_0x2c06e2['push'](_0x41ee8e));}else _0x509dc0['set'](_0x39af0d,_0x549f33),_0x544640['unshift'](0x0);}_0x2c06e2['sort']((_0x25b48e,_0xf46a83)=>_0xf46a83-_0x25b48e),_0x2c06e2['forEach'](_0x202643=>{const _0x373ac2=this['_diffItems'][_0x202643];'removed'==_0x373ac2['change']?this['_diffItems']['splice'](_0x202643,0x1):(_0x373ac2['change']='added',delete _0x373ac2['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x530b38=[];for(let _0x447450=0x0;_0x447450<this['_diffItems']['length'];_0x447450++){const {change:_0x3dc420,token:_0x51a48e}=this['_diffItems'][_0x447450];if('added'==_0x3dc420&&'element'==_0x51a48e['type']&&'container'==_0x51a48e['category']){if(_0x51a48e['isStart'])_0x530b38['push'](this['_path']['slice']());else{if(!_0x51a48e['isStart']){const _0xe34a6f=_0x530b38['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0xe34a6f,'end':this['_path']['slice']()},'token':_0x51a48e}),this['_path'][this['_path']['length']-0x1]=_0xe34a6f[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x3dc420||this['_markDeletions'])&&this['_traverseOverItem'](_0x51a48e);}}['_handleUnchanged'](_0x3b5ce0,_0x4503f0){for(let _0x20167c=0x0;_0x20167c<_0x3b5ce0['length'];_0x20167c++){const _0x988b6b=_0x3b5ce0[_0x20167c];if('element'==_0x988b6b['type']&&_0x988b6b['isStart']){const _0x15e9e1=_0x4503f0[_0x20167c];'block'==_0x988b6b['category']&&this['_handleElementRename'](_0x988b6b['element'],_0x15e9e1['element'],this['_path']),this['_handleElementAttributeChanges'](_0x988b6b['element'],_0x15e9e1['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x15e9e1);}else{if('element'!=_0x988b6b['type']||_0x988b6b['isStart']){if('text'==_0x988b6b['type']){const _0x596691=this['_path']['slice'](),_0x52f418=[],_0x204ad4=[];for(;_0x3b5ce0[_0x20167c]&&'text'==_0x3b5ce0[_0x20167c]['type'];)_0x52f418['push'](_0x3b5ce0[_0x20167c]),_0x204ad4['push'](_0x4503f0[_0x20167c]),this['_path'][this['_path']['length']-0x1]+=_0x3b5ce0[_0x20167c]['data']['length'],_0x20167c++;_0x20167c--,this['_handleTextAttributeChanges'](_0x52f418,_0x204ad4,_0x596691);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x42a444,_0x38f79c,_0x582d0e){const _0x354a89=[],_0xc81691=[],_0x5cebc0=_0x582d0e['slice']();for(let _0x13aa46=0x0;_0x13aa46<_0x42a444['length'];_0x13aa46++){const _0x11b20a=_0x42a444[_0x13aa46],_0x36d1b5=_0x582d0e['slice']();if('element'!=_0x11b20a['type']||_0x11b20a['isStart'])'element'==_0x11b20a['type']&&_0x11b20a['isStart']?(_0x582d0e['push'](0x0),_0x38f79c||this['_parents']['push'](_0x11b20a),_0xc81691['push']({'before':_0x36d1b5,'after':_0x582d0e['slice'](),'index':_0x13aa46})):_0x582d0e[_0x582d0e['length']-0x1]+=_0x11b20a['data']['length'];else{let _0x2d6c2e;_0x582d0e['pop'](),_0x582d0e[_0x582d0e['length']-0x1]++,_0x2d6c2e=_0x38f79c?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0xc81691['length']?_0xc81691['pop']():_0x354a89['push']({'before':_0x36d1b5,'after':_0x582d0e['slice'](),'index':_0x13aa46,'related':_0x2d6c2e});}}if(_0xc81691['length']!==_0x354a89['length'])throw new _0x1c240d('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x42a444,'isRemove':_0x38f79c});const _0x48bace=[{'after':_0x5cebc0['slice'](),'index':-0x1},..._0x354a89,..._0xc81691,{'before':_0x582d0e['slice'](),'index':_0x42a444['length']}];if(_0x38f79c){for(let _0x110699=_0x48bace['length']-0x1;_0x110699>=0x1;_0x110699--){const _0x25a81d=_0x48bace[_0x110699-0x1]['after'],_0x38913c=_0x48bace[_0x110699]['before'],_0x2ac362=_0x38913c[_0x38913c['length']-0x1]-_0x25a81d[_0x25a81d['length']-0x1];_0x2ac362&&(this['_operationsData']['push']({'type':'remove','path':_0x25a81d,'howMany':_0x2ac362}),_0x38913c[_0x38913c['length']-0x1]-=_0x2ac362);}for(const {before:_0x45dabf}of _0x354a89)this['_operationsData']['push']({'type':'merge','path':_0x45dabf});}else for(let _0xbb7be0=0x0;_0xbb7be0<_0x48bace['length']-0x1;_0xbb7be0++){const _0x5e3c80=_0x48bace[_0xbb7be0]['after'],_0x1251ae=_0x48bace[_0xbb7be0+0x1]['before'],_0xa4fb8c=_0x48bace[_0xbb7be0]['index']+0x1,_0x37821c=_0x48bace[_0xbb7be0+0x1]['index'];if(_0xa4fb8c!==_0x37821c&&this['_operationsData']['push']({'type':'insert','path':_0x5e3c80,'tokens':_0x42a444['slice'](_0xa4fb8c,_0x37821c)}),_0xbb7be0<_0x354a89['length']){this['_operationsData']['push']({'type':'split','path':_0x1251ae});const _0x23d34e=_0x42a444[_0xc81691[_0xc81691['length']-0x1-_0xbb7be0]['index']],_0x218495=_0x354a89[_0xbb7be0]['after'],_0x30224c=_0x354a89[_0xbb7be0]['related']['element'];this['_handleElementRename'](_0x30224c,_0x23d34e['element'],_0x218495),this['_handleElementAttributeChanges'](_0x30224c,_0x23d34e['element'],_0x218495);}}}['_traverseOverItem'](_0x1dc636){'element'==_0x1dc636['type']&&_0x1dc636['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x1dc636)):'element'!=_0x1dc636['type']||_0x1dc636['isStart']?'text'==_0x1dc636['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x1dc636['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x205853,_0x38c6a6,_0x45e3c9){_0x205853['name']!=_0x38c6a6['name']&&this['_operationsData']['push']({'type':'rename','path':_0x45e3c9['slice'](),'oldName':_0x205853['name'],'newName':_0x38c6a6['name']});}['_handleElementAttributeChanges'](_0x380cca,_0x5e57d9,_0x5c57f6){const _0x342d0e=this['_getAttributeChanges'](_0x380cca['getAttributes'](),_0x5e57d9['getAttributes']());for(const _0x4d8aa4 in _0x342d0e){const {oldValue:_0x2cbbc8,newValue:_0x5ba53e}=_0x342d0e[_0x4d8aa4];this['_operationsData']['push']({'type':'attribute','path':_0x5c57f6['slice'](),'howMany':0x1,'key':_0x4d8aa4,'oldValue':_0x2cbbc8,'newValue':_0x5ba53e});}}['_handleTextAttributeChanges'](_0x2cfda4,_0x3be297,_0x4c68ed){const _0x1c3bea=this['_operationsData'],_0x317567=_0x2cfda4[0x0]['parent'],_0x43e600=_0x2cfda4[0x0]['offset'],_0x53e0f7=_0x3be297[0x0]['parent'],_0x4ef16b=_0x3be297[0x0]['offset'],_0x317534=_0x2cfda4['reduce']((_0x45e176,_0x106251)=>_0x45e176+_0x106251['data']['length'],0x0),_0x920cd8=this['_getAttrsForOffsets'](_0x317567,_0x43e600,_0x317534),_0x4ca7d0=this['_getAttrsForOffsets'](_0x53e0f7,_0x4ef16b,_0x317534),_0x54600a={};for(let _0x3f0b20=0x0;_0x3f0b20<_0x317534;_0x3f0b20++){const _0x43166c=_0x920cd8[_0x43e600+_0x3f0b20],_0x10d98b=_0x4ca7d0[_0x4ef16b+_0x3f0b20],_0x256f43=this['_getAttributeChanges'](_0x43166c,_0x10d98b);for(const _0x1d13b8 in _0x54600a)_0x256f43[_0x1d13b8]||_0x1b613d(_0x1d13b8);for(const _0x1a6b09 in _0x256f43){const {oldValue:_0x2b3e98,newValue:_0x119769}=_0x256f43[_0x1a6b09],_0x1a5249=_0x54600a[_0x1a6b09];_0x1a5249?_0x1a5249['oldValue']==_0x2b3e98&&_0x1a5249['newValue']==_0x119769?_0x1a5249['length']++:(_0x1b613d(_0x1a6b09),_0x54600a[_0x1a6b09]={'oldValue':_0x2b3e98,'newValue':_0x119769,'start':_0x3f0b20,'length':0x1}):_0x54600a[_0x1a6b09]={'oldValue':_0x2b3e98,'newValue':_0x119769,'start':_0x3f0b20,'length':0x1};}}for(const _0x35c1cc in _0x54600a)_0x1b613d(_0x35c1cc);function _0x1b613d(_0x1fc193){const _0x2f04bc=_0x54600a[_0x1fc193],_0x3e3697=_0x4c68ed['slice']();_0x3e3697[_0x3e3697['length']-0x1]+=_0x2f04bc['start'],_0x1c3bea['push']({'type':'attribute','path':_0x3e3697,'howMany':_0x2f04bc['length'],'key':_0x1fc193,'oldValue':_0x2f04bc['oldValue'],'newValue':_0x2f04bc['newValue']}),delete _0x54600a[_0x1fc193];}}['_getAttributeChanges'](_0x4a60fd,_0x34fd3){const _0xacf4bc={};for(const [_0x55ac1f,_0x4ffd3d]of _0x4a60fd)_0xacf4bc[_0x55ac1f]={'oldValue':JSON['stringify'](_0x4ffd3d),'newValue':'null'};for(const [_0x45ffec,_0x3cded4]of _0x34fd3){const _0x495950=JSON['stringify'](_0x3cded4);_0xacf4bc[_0x45ffec]?_0xacf4bc[_0x45ffec]['oldValue']==_0x495950?delete _0xacf4bc[_0x45ffec]:_0xacf4bc[_0x45ffec]['newValue']=_0x495950:_0xacf4bc[_0x45ffec]={'oldValue':'null','newValue':_0x495950};}return delete _0xacf4bc[St],_0xacf4bc;}['_getAttrsForOffsets'](_0x5e238d,_0x17a8c6,_0x3d9239){const _0x3332c5=new Array(_0x17a8c6+_0x3d9239);let _0x33384f=_0x5e238d['getChildAtOffset'](_0x17a8c6),_0x193dc4=_0x33384f['startOffset'];for(;_0x33384f&&_0x193dc4<_0x17a8c6+_0x3d9239;){const _0x287f5b=Array['from'](_0x33384f['getAttributes']());_0x3332c5['fill'](_0x287f5b,_0x193dc4,_0x193dc4+_0x33384f['offsetSize']),_0x193dc4+=_0x33384f['offsetSize'],_0x33384f=_0x33384f['nextSibling'];}return _0x3332c5;}['_getPositionFromAnchorAndPath'](_0x5656dc,_0x1166db){const _0x222575=[..._0x5656dc['path']['slice'](0x0,-0x1),_0x5656dc['offset']+_0x1166db[0x0],..._0x1166db['slice'](0x1)];return new _0x13099c(_0x5656dc['root'],_0x222575);}['_makeModelFromTokens'](_0x4bbd0a){const _0x20695a=[];let _0x4fc39c=null;for(const _0xd350e6 of _0x4bbd0a)if('element'!=_0xd350e6['type']||_0xd350e6['isStart']||_0x4fc39c!=_0xd350e6['element']){if(!_0x4fc39c){if('text'==_0xd350e6['type']){const _0x24652a=_0x13099c['_createAt'](_0xd350e6['parent'],_0xd350e6['offset']),_0x58b471=_0x542a8e['_createFromPositionAndShift'](_0x24652a,_0xd350e6['data']['length']),_0x449c64=Array['from'](_0x58b471['getItems']())['map'](_0x537784=>new _0xf8eb20(_0x537784['data'],_0x537784['getAttributes']()));_0x20695a['push'](..._0x449c64);}else{_0x4fc39c=_0xd350e6['element'];const _0x1bc910=_0xd350e6['element']['_clone'](!0x0);_0x1bc910['_removeAttribute'](St);for(const _0x34f060 of this['_editor']['model']['createRangeIn'](_0x1bc910)['getItems']())_0x34f060['is']('element')&&_0x34f060['_removeAttribute'](St);_0x20695a['push'](_0x1bc910);}}}else _0x4fc39c=null;return _0x20695a;}}function g(_0x589a51,_0x112e34){return _0x589a51['type']===_0x112e34['type']&&(_0x589a51['limitId']===_0x112e34['limitId']&&('text'==_0x589a51['type']?_0x589a51['data']==_0x112e34['data']:function(_0x30f258,_0x4cf662){if(_0x30f258['isStart']!=_0x4cf662['isStart'])return!0x1;if(_0x30f258['isStart']&&_0x30f258['elementId']!=_0x4cf662['elementId'])return!0x1;if(_0x30f258['category']!=_0x4cf662['category'])return!0x1;if('block'==_0x30f258['category'])return!0x0;if('container'==_0x30f258['category']&&_0x30f258['elementId']!=_0x4cf662['elementId'])return!0x1;return _0x30f258['element']['name']==_0x4cf662['element']['name'];}(_0x589a51,_0x112e34)));}function _(_0xa44839){return k({'name':_0xa44839['name'],...Object['fromEntries'](_0xa44839['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 _0x365494,Editor as _0x50c02e,Plugin as _0x1550a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x21f53a,Collection as _0x5026a7,uid as _0x13346b,toArray as rt,first as _0xcbab60,FocusTracker as ts,KeystrokeHandler as _0x2851e6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x3ab4d7,IconView as st,ButtonView as _0x1c3954,DropdownButtonView as _0x39a313,FocusCycler as _0x1bf895,isViewWithFocusCycler as _0x449a4a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0xd83e77,IconCancel as _0x3472d4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0x2280fd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x25ebf1,MoveOperation as _0x1648c4,ModelPosition as _0x1427f8,ModelRange as _0x1ca5f8,MarkerOperation as _0x32ba29,MergeOperation as _0x4251f5,SplitOperation as _0x1c9b06,RenameOperation as _0x185d57,AttributeOperation as _0x376df4,ModelTreeWalker as _0x48e48a,ModelText as _0x251d52}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x1186a2}from'diff';class C extends _0x365494{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x374d0f,_0x59a1d4){let _0x479eab;if(_0x59a1d4||(_0x59a1d4=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x59a1d4?_0x479eab=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x479eab=this['context']['editors']['find'](_0x558d00=>_0x558d00['config']['get']('collaboration.channelId')==_0x59a1d4)),!_0x479eab)throw new _0x21f53a('permissions-set-permissions-invalid-channel-id',null);const _0x8e02b7=_0x479eab['plugins'],_0xe41a8d=_0x8e02b7['has']('CommentsRepository')?_0x8e02b7['get']('CommentsRepository'):void 0x0,_0x1a5a22=_0x8e02b7['has']('CommentsOnly')&&_0x8e02b7['get']('CommentsOnly'),_0x51f7a8=_0x374d0f['includes']('document:write'),_0xee12a5=_0x374d0f['includes']('comment:modify_all'),_0x5d2692=_0x374d0f['includes']('comment:admin'),_0x17075d=_0x374d0f['includes']('comment:write'),_0x406125=_0x17075d||_0x5d2692,_0x4a465c=_0x406125||_0xee12a5,_0x3c7bca=_0x51f7a8||_0x406125;(_0x1a5a22&&(_0x1a5a22['isEnabled']=!_0x51f7a8&&_0x4a465c),_0x479eab instanceof _0x50c02e)&&(!(_0x51f7a8||_0x4a465c&&_0xe41a8d)?_0x479eab['enableReadOnlyMode']('no-permissions'):_0x479eab['disableReadOnlyMode']('no-permissions'));if(_0xe41a8d){_0xe41a8d['setPermissions']({'admin':_0x5d2692,'modifyAll':_0xee12a5,'write':_0x17075d,'resolve':_0x3c7bca},_0x59a1d4);const _0x131dea=_0x479eab instanceof _0x50c02e&&_0x479eab['commands']['get']('addCommentThread');_0x131dea&&(_0x406125?_0x131dea['clearForceDisabled']('noPermissions'):_0x131dea['forceDisabled']('noPermissions'));}}}function U(_0x57eb27,_0x3c4761){const t=_0x57eb27['t'];switch(_0x3c4761){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 _0x365494{['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(_0x3ca0b2){super(_0x3ca0b2),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x5026a7(),this['_locale']=_0x3ca0b2['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:_0x289976,name:_0x2f2778,..._0x31b861}){if(!_0x289976||'string'!=typeof _0x289976)throw new _0x21f53a('users-add-invalid-id');if(this['users']['has'](_0x289976))throw new _0x21f53a('users-add-duplicated-id',null,{'id':_0x289976});const _0xa2999b=this['context']['config']['get']('users.getInitialsCallback'),_0x2e59ab={..._0x31b861,'id':_0x289976,'name':A(this['_locale'],_0x2f2778),'color':this['_getNextColor']()};_0x2e59ab['name']=A(this['_locale'],_0x2e59ab['name']);const _0x478b0f=new lt(_0x2e59ab,_0xa2999b);return this['users']['add'](_0x478b0f),_0x478b0f;}['getUser'](_0x12fe6c){return this['users']['get'](_0x12fe6c);}['useAnonymousUser'](){const _0x48cdb5=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x48cdb5);}['defineMe'](_0x2c3af1){if(this['_myId'])throw new _0x21f53a('users-me-already-defined',null);const _0x4ac635=this['getUser'](_0x2c3af1);if(!_0x4ac635)throw new _0x21f53a('users-me-missing-user',null);this['_myId']=_0x2c3af1,_0x4ac635['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x14fa7d=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x14fa7d&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x4e1388=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x4e1388,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x1a320f,_0x659e58){this['id']=_0x1a320f['id'],this['color']=_0x1a320f['color'],this['name']=_0x1a320f['name'],this['initials']=_0x659e58?_0x659e58(this['name']):this['_computeInitials'](),this['avatar']=_0x1a320f['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x362402=this['name']['split']('\x20')['filter'](_0x3891cf=>/^[\p{Letter}]/u['test'](_0x3891cf));return 0x1===_0x362402['length']?this['_getInitial'](_0x362402[0x0]):0x0===_0x362402['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x362402[0x0])+this['_getInitial'](_0x362402[_0x362402['length']-0x1]);}['_getInitial'](_0x34ba65){return String['fromCodePoint'](_0x34ba65['codePointAt'](0x0))['toUpperCase']();}}function A(_0x46a454,_0x409e4a=''){return''==(_0x409e4a=_0x409e4a['trim']())?U(_0x46a454,'Anonymous'):_0x409e4a;}class ut{['_id'];constructor(_0x526d71){this['_id']=_0x526d71;}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 _0x3ab4d7{['name'];['notificationView'];constructor(_0x1b2d8c,_0x1da905,_0x43efaa){super(_0x1b2d8c),this['name']=_0x1da905['name'],this['notificationView']=null;const _0x540c8e=['ck','ck-user'],_0x464cf3=['ck','ck-user__img'];if(_0x1da905['isAnonymous']&&_0x464cf3['push']('ck-user__anonymous'),!_0x1da905['isAnonymous']&&_0x1da905['isMe']&&_0x540c8e['push']('ck-user_me'),_0x1da905['avatar']&&_0x464cf3['push']('ck-user__avatar'),_0x43efaa){const _0x1e0800=new st();_0x1e0800['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x1e0800['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x43efaa},'children':[_0x1e0800]};}const _0x17d288=[{'tag':'div','attributes':{'class':_0x464cf3,'style':{'background-image':_0x1da905['avatar']?'url(\x27'+_0x1da905['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x1da905['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x1da905['name']},'children':[{'text':_0x1da905['initials']}]}];this['notificationView']&&_0x17d288['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x540c8e,'data-user-id':_0x1da905['id']},'children':_0x17d288});}}class dt extends _0x3ab4d7{['id'];constructor(_0x2951d0,_0x135f42){super(_0x2951d0),this['id']='ck-aria-description-'+_0x13346b(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x135f42}]});}}class ft extends _0x1c3954{['render'](){super['render'](),re(this);}}class gt extends _0x39a313{['render'](){super['render'](),re(this);}}function re(_0x1246a4){_0x1246a4['listenTo'](_0x1246a4['element'],'mousedown',(_0x342543,_0x3433e6)=>{_0x3433e6['stopPropagation'](),_0x3433e6['preventDefault']();}),_0x1246a4['listenTo'](_0x1246a4['element'],'mouseup',()=>{_0x1246a4['element']['focus']();});}function v(_0x4fc266){const _0x1f48cb=_0x4fc266['split'](':');return{'group':_0x1f48cb[0x0],'type':_0x1f48cb[0x1],'subType':_0x1f48cb['length']>=0x5?_0x1f48cb[0x2]:null,'id':_0x1f48cb['length']<0x5?_0x1f48cb[0x2]:_0x1f48cb[0x3],'authorId':_0x1f48cb['length']<0x5?_0x1f48cb[0x3]:_0x1f48cb[0x4],'markerCount':0x6==_0x1f48cb['length']?_0x1f48cb[0x5]:null};}function mt(_0x2d7f98,_0x246de7){const _0x2484af=_0x2d7f98['end']['nodeBefore'];if(_0x2484af&&_0x2484af['is']('element')&&_0x246de7['schema']['isBlock'](_0x2484af)&&!_0x246de7['schema']['isObject'](_0x2484af)){const _0x2f1505=_0x246de7['createPositionAt'](_0x2484af,'end');return _0x246de7['createRange'](_0x2d7f98['start'],_0x2f1505);}return _0x2d7f98;}class M extends _0x1550a0{['afterInit'](){const _0x151dcf=this['editor'];if(!_0x151dcf['plugins']['has']('AlignmentEditing'))return;_0x151dcf['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x1550a0{['afterInit'](){const _0xcdbbc3=this['editor'],_0x297a56=_0xcdbbc3['plugins']['get']('SuggestionsConversion');for(const _0x5cf4ce of ii){if(!_0xcdbbc3['plugins']['has'](_0x5cf4ce))continue;const _0x47e1e2=_0x5cf4ce['slice'](0x0,-0x7)['toLowerCase']();_0x297a56['registerInlineAttribute'](_0x47e1e2);}}}class I extends _0x1550a0{['afterInit'](){const _0x40f663=this['editor'],_0x3e148d=_0x40f663['plugins']['get']('SuggestionsConversion');_0x40f663['plugins']['has']('BookmarkEditing')&&_0x3e148d['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x1550a0{['afterInit'](){const _0x3d7d68=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x246747,commandName:_0x1be8a5}of no)this['editor']['plugins']['has'](_0x246747)&&_0x3d7d68['registerInlineAttribute'](_0x1be8a5);}}class T extends _0x1550a0{['afterInit'](){const _0x17ed49=this['editor'];if(!_0x17ed49['plugins']['has']('HighlightEditing'))return;_0x17ed49['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x1550a0{['afterInit'](){const _0x368b73=this['editor'];if(!_0x368b73['plugins']['has']('HtmlEmbed'))return;_0x368b73['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x1550a0{['afterInit'](){const _0x91f1c8=this['editor'];if(!_0x91f1c8['plugins']['has']('ImageEditing'))return;const _0x59d4c8=_0x91f1c8['plugins']['get']('SuggestionsConversion');_0x59d4c8['registerBlockAttribute']('src'),_0x91f1c8['plugins']['has']('ImageResize')&&_0x59d4c8['registerBlockAttribute']('resizedWidth'),_0x91f1c8['plugins']['has']('ImageTextAlternativeEditing')&&_0x59d4c8['registerBlockAttribute']('alt'),_0x91f1c8['plugins']['has']('PictureEditing')&&_0x59d4c8['registerBlockAttribute']('sources'),_0x91f1c8['plugins']['has']('ImageSizeAttributes')&&(_0x59d4c8['registerBlockAttribute']('width'),_0x59d4c8['registerBlockAttribute']('height'));}}class $ extends _0x1550a0{['afterInit'](){const _0x154500=this['editor'],_0x14f0c7=_0x154500['plugins']['get']('SuggestionsConversion');_0x154500['plugins']['has']('IndentBlock')&&_0x14f0c7['registerBlockAttribute']('blockIndent');}}class x extends _0x1550a0{['afterInit'](){const _0x5edc0b=this['editor'];if(!_0x5edc0b['plugins']['has']('LineHeight'))return;_0x5edc0b['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x1550a0{['afterInit'](){const _0x332176=this['editor'];if(!_0x332176['plugins']['has']('LinkEditing'))return;const _0xc8ce02=_0x332176['plugins']['get']('SuggestionsConversion'),_0x841cfb=_0x332176['commands']['get']('link');_0xc8ce02['registerInlineAttribute']('linkHref');for(const _0x127160 of _0x841cfb['manualDecorators'])_0xc8ce02['registerInlineAttribute'](_0x127160['id']);}}class N extends _0x1550a0{['afterInit'](){const _0x2399dc=this['editor'];if(!_0x2399dc['plugins']['has']('ListEditing'))return;const _0x59798d=_0x2399dc['plugins']['get']('SuggestionsConversion'),_0x49e3e1=_0x2399dc['plugins']['has']('TodoListEditing');_0x59798d['registerBlockAttribute']('listItemId'),_0x59798d['registerBlockAttribute']('listType'),_0x59798d['registerBlockAttribute']('listIndent'),_0x49e3e1&&_0x59798d['registerBlockAttribute']('todoListChecked');}}class P extends _0x1550a0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5508d6=this['editor']['config']['get']('list.properties'),_0x58f484=this['editor']['plugins']['get']('SuggestionsConversion');_0x5508d6['styles']&&_0x58f484['registerBlockAttribute']('listStyle'),_0x5508d6['reversed']&&_0x58f484['registerBlockAttribute']('listReversed'),_0x5508d6['startIndex']&&_0x58f484['registerBlockAttribute']('listStart');}}class K extends _0x1550a0{['afterInit'](){const _0x1d13a8=this['editor'],_0x1d94be=_0x1d13a8['plugins']['get']('SuggestionsConversion');_0x1d13a8['plugins']['has']('MultiLevelList')&&_0x1d94be['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x1550a0{['afterInit'](){const _0x426cf7=this['editor'];if(!_0x426cf7['plugins']['has']('Style')||!_0x426cf7['plugins']['has']('DataSchema')||!_0x426cf7['config']['get']('style.definitions'))return;const _0x383cb7=_0x426cf7['plugins']['get']('SuggestionsConversion'),_0x8c5ae9=_0x426cf7['config']['get']('style.definitions'),_0x104072=_0x426cf7['plugins']['get']('GeneralHtmlSupport'),_0x38881d=_0x426cf7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x426cf7['plugins']['get']('DataSchema'),_0x8c5ae9),_0x162aca=new Set();for(const _0x3eb5d4 of _0x38881d['block']){const _0x4e3857=_0x104072['getGhsAttributeNameForElement'](_0x3eb5d4['element']);_0x162aca['add'](_0x4e3857);}const _0x457dbd=new Set();for(const _0x130b84 of _0x38881d['inline']){const _0x452437=_0x104072['getGhsAttributeNameForElement'](_0x130b84['element']);_0x457dbd['add'](_0x452437);for(const _0x40574c of _0x130b84['ghsAttributes'])_0x457dbd['add'](_0x40574c);}for(const _0x5e2223 of _0x162aca)_0x383cb7['registerBlockAttribute'](_0x5e2223);for(const _0xd10db0 of _0x457dbd)_0x383cb7['registerInlineAttribute'](_0xd10db0);}}class z extends _0x1550a0{['afterInit'](){const _0x913361=this['editor'];if(!_0x913361['plugins']['has']('TableEditing'))return;const _0x50a5f6=_0x913361['plugins']['get']('SuggestionsConversion');_0x50a5f6['registerBlockAttribute']('headingRows'),_0x50a5f6['registerBlockAttribute']('headingColumns');}}class O extends _0x1550a0{['afterInit'](){const _0x40a81a=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x4304b9=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x167ee3 of _0x4304b9)_0x40a81a['registerBlockAttribute'](_0x167ee3);}}class R extends _0x1550a0{['afterInit'](){const _0x2d8691=this['editor'],_0x2f3ec6=_0x2d8691['plugins']['get']('SuggestionsConversion');_0x2d8691['plugins']['has']('TableLayout')&&_0x2f3ec6['registerBlockAttribute']('tableType');}}class F extends _0x1550a0{['afterInit'](){const _0x229653=this['editor'],_0x2cb8cc=this['editor']['plugins']['get']('SuggestionsConversion');_0x229653['plugins']['has']('Uploadcare')&&_0x229653['plugins']['has']('UploadcareImageEdit')&&_0x2cb8cc['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x1550a0{['afterInit'](){const _0xedd21f=this['editor'];if(!_0xedd21f['plugins']['has']('ShiftEnter'))return;const _0x48e684=_0xedd21f['plugins']['get']('SuggestionsConversion'),_0x193ca0=(_0x497c69,_0x35b950,_0x3e5d9f,_0x36c769)=>{if(_0x36c769&&!_0x3e5d9f['options']['showSuggestionHighlights'])return;if(!_0x3e5d9f['consumable']['test'](_0x35b950['markerRange'],_0x497c69['name']))return;const _0xd8feb9=_0xedd21f['model'];for(const _0x547b66 of _0x35b950['markerRange']['getItems']()){if(!_0x547b66['is']('element','softBreak'))continue;const _0x54a311='deletion'==_0x35b950['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5dee52,authorId:_0x4122ae}=v(_0x35b950['markerName']),_0x27c65d=_0x3e5d9f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54a311,'data-suggestion':_0x5dee52,'data-author-id':_0x4122ae}),_0x139cee=_0x3e5d9f['mapper']['toViewPosition'](_0xd8feb9['createPositionBefore'](_0x547b66));!_0x36c769&&_0x48e684['_activeMarkers']['includes'](_0x35b950['markerName'])&&_0x3e5d9f['writer']['addClass']('ck-suggestion-marker--active',_0x27c65d),_0x3e5d9f['writer']['insert'](_0x139cee,_0x27c65d),_0x3e5d9f['mapper']['bindElementToMarker'](_0x27c65d,_0x35b950['markerName']);}};_0xedd21f['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33287e,_0xe794c4,_0x3559d1)=>{_0x193ca0(_0x33287e,_0xe794c4,_0x3559d1,!0x1);},{'priority':'high'}),_0xedd21f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15fc22,_0xadf567,_0x104181)=>{_0x193ca0(_0x15fc22,_0xadf567,_0x104181,!0x0);},{'priority':'high'});}}class J extends _0x1550a0{['afterInit'](){const _0x4f9569=this['editor'];_0x4f9569['plugins']['has']('MediaEmbedEditing')&&(_0x4f9569['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x15a039,{writer:_0x52a1e6,options:_0x43c50d})=>{if(_0x43c50d['showSuggestionHighlights'])return _0x52a1e6['createEmptyElement']('div');},'converterPriority':'high'}),_0x4f9569['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3aa1ad,_0x538648,_0x39e778)=>{_0x39e778['options']['showSuggestionHighlights']&&_0x3aa1ad['stop']();},{'priority':'high'}));}}class L extends _0x1550a0{['afterInit'](){const _0x3183c0=this['editor'];if(!_0x3183c0['plugins']['has']('Table'))return;_0x3183c0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1017e3,_0x5e25e7,_0x1481e8)=>{((_0x5e4099,_0x20b3d,_0x1e86d6)=>{if(!_0x1e86d6['options']['showSuggestionHighlights'])return;const _0x571b02=_0x20b3d['item'];if(!_0x571b02||!_0x571b02['is']('element','tableCell'))return;const _0x5c0397=_0x1e86d6['mapper']['toViewElement'](_0x571b02);if(_0x5c0397){const {id:_0x52878d,authorId:_0x453668}=v(_0x20b3d['markerName']);it(_0x5c0397,_0x1e86d6['writer'],(_0x3e4630,_0x12c8c3,_0x2eb59e)=>{_0x2eb59e['addClass'](rt(_0x12c8c3['classes']),_0x3e4630),_0x2eb59e['setAttribute']('data-suggestion-id',_0x52878d,_0x3e4630),_0x2eb59e['setAttribute']('data-author-id',_0x453668,_0x3e4630);});}})(0x0,_0x5e25e7,_0x1481e8);},{'priority':'highest'});}}class Q extends _0x1550a0{['afterInit'](){const _0x1f7a7d=this['editor'];_0x1f7a7d['plugins']['has']('HorizontalLineEditing')&&_0x1f7a7d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x39ffb4,{writer:_0x4e8a7c,options:_0x3eed57})=>{if(!_0x3eed57['showSuggestionHighlights'])return null;const _0x418893=_0x4e8a7c['createContainerElement']('div'),_0x65fd36=_0x4e8a7c['createEmptyElement']('hr');return _0x4e8a7c['addClass']('ck-horizontal-line',_0x418893),_0x4e8a7c['insert'](_0x4e8a7c['createPositionAt'](_0x418893,0x0),_0x65fd36),_0x418893;},'converterPriority':'high'});}}class kt extends _0x1550a0{['_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 _0x466bb9=this['editor'],_0x415dd7=(_0x1227d0,_0x30992f,_0x2b1f37)=>{const {id:_0x36edd1,authorId:_0x102fb8,type:_0x593318,subType:_0x2589c2}=v(_0x1227d0['markerName']),_0x5f5030=['ck-suggestion-marker',this['_getClassName'](_0x593318,_0x2589c2)];let _0x197f8e=0xbb8;return!_0x2b1f37&&(this['_activeMarkers']['includes'](_0x1227d0['markerName'])&&(_0x5f5030['push']('ck-suggestion-marker--active'),_0x197f8e=0xbc2)),('deletion'==_0x593318&&(_0x197f8e+=0x5),{'classes':_0x5f5030,'attributes':{'data-suggestion':_0x36edd1,'data-author-id':_0x102fb8},'priority':_0x197f8e});};_0x466bb9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x98f6e5,_0x4897f5)=>_0x415dd7(_0x98f6e5,0x0,!0x1)}),_0x466bb9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x16315d,_0xcdcb81)=>_0x415dd7(_0x16315d,0x0,!0x0)}),_0x466bb9['conversion']['for']('dataDowncast')['add'](_0x57caf4=>{_0x57caf4['on']('addMarker:suggestion',(_0x3aecb1,_0xe20d69,_0x4bcef7)=>{if(!_0x4bcef7['options']['showSuggestionHighlights'])return;const _0x3ada4f=_0xe20d69['item'];if(!_0x3ada4f)return;const _0x14fa28=_0x4bcef7['mapper']['toViewElement'](_0x3ada4f);_0x466bb9['model']['schema']['isObject'](_0x3ada4f)&&_0x14fa28&&!_0x14fa28['getCustomProperty']('widget')&&_0x14fa28['is']('containerElement')&&_0x2280fd(_0x14fa28,_0x4bcef7['writer']);},{'priority':'high'});});const _0x2bce31=(_0x5bb4dd,_0x2d9f1d,_0x5f2ab1,_0x1b7e45,_0x850c90)=>{if(_0x1b7e45&&!_0x5f2ab1['options']['showSuggestionHighlights'])return;if(!_0x2d9f1d['item'])return;const {id:_0x5ca4d1,authorId:_0x320ae2,subType:_0x23efaa}=v(_0x2d9f1d['markerName']);if(_0x850c90){const _0xf5e4db=_0x23efaa['split']('|')[0x0];if(!this['isBlockAttribute'](_0xf5e4db))return;}if(_0x2d9f1d['item']['is']('selection'))return void _0x5f2ab1['consumable']['consume'](_0x2d9f1d['item'],_0x5bb4dd['name']);const _0x2585f6=_0x5f2ab1['mapper']['toViewElement'](_0x2d9f1d['item']);if(_0x2d9f1d['item']['is']('element')&&_0x466bb9['model']['schema']['isBlock'](_0x2d9f1d['item'])&&!_0x2585f6['getCustomProperty']('addHighlight')){_0x5f2ab1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2585f6),_0x5f2ab1['writer']['setAttribute']('data-suggestion',_0x5ca4d1,_0x2585f6),_0x5f2ab1['writer']['setAttribute']('data-author-id',_0x320ae2,_0x2585f6),_0x5f2ab1['mapper']['bindElementToMarker'](_0x2585f6,_0x2d9f1d['markerName']),_0x1b7e45||(this['_activeMarkers']['includes'](_0x2d9f1d['markerName'])?_0x5f2ab1['writer']['addClass']('ck-suggestion-marker--active',_0x2585f6):_0x5f2ab1['writer']['removeClass']('ck-suggestion-marker--active',_0x2585f6));for(const _0x31a243 of _0x466bb9['model']['createRangeIn'](_0x2d9f1d['item'])['getItems']())_0x5f2ab1['consumable']['consume'](_0x31a243,_0x5bb4dd['name']);_0x5f2ab1['consumable']['consume'](_0x2d9f1d['item'],_0x5bb4dd['name']);}},_0x4ee427=(_0x3f22cf,_0x2b959f,_0x23019f,_0x5472ca)=>{const _0x18e9ab=_0x23019f['mapper']['markerNameToElements'](_0x2b959f['markerName']);if(_0x18e9ab){if(_0x5472ca){const {subType:_0x1a624d}=v(_0x2b959f['markerName']),_0x54eec5=_0x1a624d['split']('|')[0x0];if(!this['isBlockAttribute'](_0x54eec5))return;}for(const _0x5f22b4 of _0x18e9ab)_0x5f22b4['getCustomProperty']('addHighlight')||(_0x23019f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5f22b4),_0x23019f['writer']['removeAttribute']('data-suggestion',_0x5f22b4),_0x23019f['writer']['removeAttribute']('data-author-id',_0x5f22b4),_0x23019f['mapper']['unbindElementFromMarkerName'](_0x5f22b4,_0x2b959f['markerName']));}};_0x466bb9['conversion']['for']('editingDowncast')['add'](_0x450153=>{_0x450153['on']('addMarker:suggestion:formatBlock',(_0x46fd18,_0x361f38,_0x26b956)=>{_0x2bce31(_0x46fd18,_0x361f38,_0x26b956,!0x1,!0x1);},{'priority':'high'});}),_0x466bb9['conversion']['for']('editingDowncast')['add'](_0x42016b=>{_0x42016b['on']('addMarker:suggestion:attribute',(_0x486b2e,_0x470375,_0x18bab7)=>{_0x2bce31(_0x486b2e,_0x470375,_0x18bab7,!0x1,!0x0);},{'priority':'high'});}),_0x466bb9['conversion']['for']('editingDowncast')['add'](_0x4f9804=>{_0x4f9804['on']('removeMarker:suggestion:formatBlock',(_0x123501,_0x1d93e4,_0x38091b)=>{_0x4ee427(0x0,_0x1d93e4,_0x38091b,!0x1);},{'priority':'high'});}),_0x466bb9['conversion']['for']('editingDowncast')['add'](_0x520c22=>{_0x520c22['on']('removeMarker:suggestion:attribute',(_0x1f0494,_0x34bddc,_0x1bf017)=>{_0x4ee427(0x0,_0x34bddc,_0x1bf017,!0x0);},{'priority':'high'});}),_0x466bb9['conversion']['for']('dataDowncast')['add'](_0x7bfc9a=>{_0x7bfc9a['on']('addMarker:suggestion:formatBlock',(_0x4b5670,_0x439430,_0x1d5aa9)=>{_0x2bce31(_0x4b5670,_0x439430,_0x1d5aa9,!0x0,!0x1);},{'priority':'highest'});}),_0x466bb9['conversion']['for']('dataDowncast')['add'](_0x3a030d=>{_0x3a030d['on']('addMarker:suggestion:attribute',(_0x50d2c4,_0x123de9,_0x2e148c)=>{_0x2bce31(_0x50d2c4,_0x123de9,_0x2e148c,!0x0,!0x0);},{'priority':'highest'});}),_0x466bb9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x53397f,_0x25fa4d)=>{if(_0x25fa4d['options']['showSuggestionHighlights']){const {id:_0x40194b,authorId:_0x2a936b}=v(_0x53397f);return _0x53397f['includes'](':split')||_0x53397f['includes'](':merge')?{'group':'suggestion','name':_0x53397f['substr'](0xb),'attributes':{'data-suggestion':_0x40194b,'data-author-id':_0x2a936b}}:null;}return{'group':'suggestion','name':_0x53397f['substr'](0xb)};}});const _0x4a374f=(_0x271f7b,_0x350861,_0x9ca10e,_0x132a25,_0x2f7f50)=>{if(_0x132a25&&!_0x9ca10e['options']['showSuggestionHighlights'])return;if(!_0x9ca10e['consumable']['test'](_0x350861['markerRange'],_0x271f7b['name']))return;const _0x3cb015=this['_activeMarkers'],_0x232a1e=_0x350861['markerRange']['getWalker'](),_0x149adc=_0x350861['markerRange']['start'],_0x4c80e8=_0x466bb9['model']['schema'];let _0x120bb7=null,_0x3c1861=null,_0x1849bb=!0x1,_0x578491=!0x1;for(const _0x3ff4b2 of _0x232a1e){const _0xb6fd8=_0x3ff4b2['item'];_0x1849bb=_0x1849bb||_0x4c80e8['isContent'](_0xb6fd8);const _0x26cd47=_0x9ca10e['mapper']['toViewElement'](_0xb6fd8);if(_0x26cd47&&_0x26cd47['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ff4b2['type']&&(_0x4c80e8['isBlock'](_0xb6fd8)&&!_0x4c80e8['isLimit'](_0xb6fd8)&&(_0xb6fd8['nextSibling']||_0x149adc['isAtEnd']?_0x120bb7&&_0x120bb7['parent']==_0xb6fd8||(_0x120bb7=_0xb6fd8,_0x33e65b(_0x3ff4b2['previousPosition']),_0x578491=!0x0):_0x3c1861=_0x3c1861||_0x3ff4b2['previousPosition']));}function _0x33e65b(_0x177773){const {id:_0x51decc,authorId:_0x2c1dde}=v(_0x350861['markerName']),_0x130514=_0x9ca10e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f7f50,'data-suggestion':_0x51decc,'data-author-id':_0x2c1dde}),_0x9115c9=_0x9ca10e['mapper']['toViewPosition'](_0x177773);!_0x132a25&&_0x3cb015['includes'](_0x350861['markerName'])&&_0x9ca10e['writer']['addClass']('ck-suggestion-marker--active',_0x130514),_0x9ca10e['writer']['insert'](_0x9115c9,_0x130514),_0x9ca10e['mapper']['bindElementToMarker'](_0x130514,_0x350861['markerName']);}_0x1849bb||_0x578491||!_0x3c1861||_0x33e65b(_0x3c1861);};_0x466bb9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x252f9d,_0x82355d,_0x52e418)=>{_0x4a374f(_0x252f9d,_0x82355d,_0x52e418,!0x1,'merge');},{'priority':'high'}),_0x466bb9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1f9053,_0x2d44bd,_0x1a2084)=>{_0x4a374f(_0x1f9053,_0x2d44bd,_0x1a2084,!0x0,'merge');},{'priority':'high'}),_0x466bb9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x9c3b81,_0x4fc04e,_0x13be1f)=>{_0x4a374f(_0x9c3b81,_0x4fc04e,_0x13be1f,!0x1,'split');},{'priority':'high'}),_0x466bb9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e6956,_0x2a1d2f,_0x4a6ded)=>{_0x4a374f(_0x4e6956,_0x2a1d2f,_0x4a6ded,!0x0,'split');},{'priority':'high'}),_0x466bb9['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x53ebfc,_0x57ce72,_0x18dc3c)=>{((_0x2a17b1,_0x445bca,_0x3e1e2c)=>{const _0x5d89bd=_0x3e1e2c['mapper']['markerNameToElements'](_0x445bca['markerName']);if(_0x5d89bd){for(const _0x5c17bf of _0x5d89bd)(_0x5c17bf['hasClass']('ck-suggestion-marker-split')||_0x5c17bf['hasClass']('ck-suggestion-marker-merge'))&&(_0x3e1e2c['mapper']['unbindElementFromMarkerName'](_0x5c17bf,_0x445bca['markerName']),_0x3e1e2c['writer']['remove'](_0x5c17bf));}})(0x0,_0x57ce72,_0x18dc3c);},{'priority':'high'});const _0x1c4336=(_0x44e569,_0x61cb8,_0x150108,_0x5d5660)=>{if(_0x5d5660&&!_0x150108['options']['showSuggestionHighlights'])return;const _0x4d75a4=_0x61cb8['markerRange']['start'],_0x2bc04d=_0x61cb8['markerRange']['end'],_0x513b80=_0x466bb9['model']['schema'];if(!_0x4d75a4['isTouching'](_0x2bc04d)||!_0x4d75a4['nodeAfter'])return;const _0x234050=_0x4d75a4['nodeAfter'];if(_0x513b80['isBlock'](_0x234050)&&!_0x513b80['isLimit'](_0x234050)&&_0x513b80['checkChild'](_0x234050,'$text')){if(!_0x150108['consumable']['consume'](_0x61cb8['markerRange'],_0x44e569['name']))return;const {id:_0x26ba1e,authorId:_0x188a68}=v(_0x61cb8['markerName']),_0x30d49f=_0x150108['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x26ba1e,'data-author-id':_0x188a68}),_0x3e0c08=_0x150108['mapper']['toViewPosition'](_0x2bc04d);!_0x5d5660&&this['_activeMarkers']['includes'](_0x61cb8['markerName'])&&_0x150108['writer']['addClass']('ck-suggestion-marker--active',_0x30d49f),_0x150108['writer']['insert'](_0x3e0c08,_0x30d49f),_0x150108['mapper']['bindElementToMarker'](_0x30d49f,_0x61cb8['markerName']);}};_0x466bb9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37a77a,_0x5c7d7c,_0x588cc3)=>{_0x1c4336(_0x37a77a,_0x5c7d7c,_0x588cc3,!0x1);},{'priority':'high'}),_0x466bb9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x356dc3,_0x2d9193,_0x19e561)=>{_0x1c4336(_0x356dc3,_0x2d9193,_0x19e561,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x2c228d,_0x3ba89e,_0x3e91c8)=>{this['_activeMarkers']=_0x3e91c8['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x3b700c){this['_blockAttributeKeys']['add'](_0x3b700c);}['registerInlineAttribute'](_0x3c2cef){this['_inlineAttributeKeys']['add'](_0x3c2cef);}['isBlockAttribute'](_0x312d0b){return this['_blockAttributeKeys']['has'](_0x312d0b);}['isInlineAttribute'](_0x1eb9a4){return this['_inlineAttributeKeys']['has'](_0x1eb9a4);}['isRegisteredAttribute'](_0x5cf5b0){return this['isInlineAttribute'](_0x5cf5b0)||this['isBlockAttribute'](_0x5cf5b0);}['_getClassName'](_0x15e7fd,_0x25da86){if('attribute'!=_0x15e7fd)return'ck-suggestion-marker-'+_0x15e7fd;const _0x3baf95=_0x25da86['split']('|')[0x0];return this['isBlockAttribute'](_0x3baf95)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0xfcc0a0={},_0x19c0a2){if(void 0x0!==_0xfcc0a0['dateTimeFormat']&&'function'!=typeof _0xfcc0a0['dateTimeFormat'])throw new _0x21f53a('invalid-date-time-format');return _0x1d8fb6=>{const _0x20aa56='string'==typeof _0x1d8fb6?tt['fromISO'](_0x1d8fb6):tt['fromJSDate'](_0x1d8fb6),_0x524381=tt['now'](),_0x367040=Math['floor'](_0x524381['diff'](_0x20aa56,'days')['days']);return _0xfcc0a0['dateTimeFormat']?_0xfcc0a0['dateTimeFormat'](_0x20aa56['toJSDate'](),_0x19c0a2&&_0x19c0a2['t']?_0x19c0a2['t']:void 0x0):0x0===_0x367040?_0x19c0a2?U(_0x19c0a2,'Today')+'\x20'+_0x20aa56['toFormat']('hh:mma'):_0x20aa56['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x367040?_0x19c0a2?U(_0x19c0a2,'Yesterday')+'\x20'+_0x20aa56['toFormat']('hh:mma'):_0x20aa56['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x367040<0x7?_0x19c0a2?U(_0x19c0a2,'Last')+'\x20'+U(_0x19c0a2,_0x20aa56['toFormat']('EEEE'))+'\x20'+_0x20aa56['toFormat']('hh:mma'):_0x20aa56['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x20aa56['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0xaa2909,_0x44e137){const _0x2ff78f=_0xaa2909['mapper']['markerNameToElements'](_0x44e137['name']);if(!_0x2ff78f)return null;const _0x48ef4f=_0xcbab60(_0x2ff78f['values']());return _0xaa2909['view']['domConverter']['mapViewToDom'](_0x48ef4f)||null;}function wt(_0x1fd0af,_0x2121ec){if(0x0===_0x2121ec['length'])return null;const _0x48dff0=[],_0x5e1000=_0x1fd0af['view']['domConverter'];for(const _0x365c10 of _0x2121ec){const _0x49fd3d=_0x1fd0af['mapper']['markerNameToElements'](_0x365c10['name']);if(!_0x49fd3d)continue;const _0x1791e8=Array['from'](_0x49fd3d)['map'](_0x1015dd=>_0x5e1000['mapViewToDom'](_0x1015dd))['filter'](_0x512831=>!!_0x512831);_0x48dff0['push'](..._0x1791e8);}if(0x0===_0x48dff0['length'])return null;const _0xde0e51=[];for(const _0x11fdff of _0x48dff0){const _0x4079e1=_0x11fdff['getClientRects']()['item'](0x0);_0x4079e1&&_0xde0e51['push']({'x':_0x4079e1['x'],'y':_0x4079e1['y'],'domElement':_0x11fdff});}return 0x0===_0xde0e51['length']?null:(_0xde0e51['sort']((_0x17dacb,_0x3b5570)=>_0x17dacb['y']-_0x3b5570['y']||_0x17dacb['x']-_0x3b5570['x']),_0xde0e51['map'](_0x4b288f=>_0x4b288f['domElement']));}function bt(_0x2a7c66,{limit:_0x4cf07d,suffix:_0x33b83d='...'}){const _0x456a09=[];let _0x12d516=0x0;const _0x4b5258=_0x2a7c66['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x515859=0x0;_0x515859<_0x4b5258['length'];_0x515859++){let _0x1dc870=_0x4b5258[_0x515859];const _0x5a7e8b=tn(_0x1dc870);if(_0x1dc870['startsWith']('<')){if(_0x12d516>=_0x4cf07d){const _0xfff3b=_0x1dc870['match'](/[a-zA-Z]+/);if(!_0xfff3b){_0x4b5258[_0x515859]='';continue;}const _0x2f0bf9=_0xfff3b[0x0];_0x1dc870['startsWith']('</')?(_0x456a09['length']&&(_0x1dc870=''),_0x456a09['pop']()):(_0x456a09['push'](_0x2f0bf9),_0x1dc870='');}}else{if(_0x12d516>=_0x4cf07d)_0x1dc870='';else{if(_0x12d516+_0x5a7e8b['length']>=_0x4cf07d){let _0x436f48=_0x4cf07d-_0x12d516;if('\x20'===_0x5a7e8b[_0x436f48-0x1])_0x436f48--;else{const _0x13402e=_0x5a7e8b['slice'](_0x436f48)['indexOf']('\x20');-0x1!==_0x13402e?_0x436f48+=_0x13402e:_0x436f48=_0x1dc870['length'];}_0x1dc870=_0x5a7e8b['slice'](0x0,_0x436f48)['join']('')+_0x33b83d,_0x12d516=_0x4cf07d;}else _0x12d516+=_0x5a7e8b['length'];}}_0x4b5258[_0x515859]=_0x1dc870;}return _0x4b5258['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x1da3ec){const _0x49a624=[];for(let _0x36864c=0x0;_0x36864c<_0x1da3ec['length'];_0x36864c++){const _0x191d82=_0x1da3ec['substring'](_0x36864c)['match'](/^&[a-z0-9#]+;/);if(_0x191d82){const _0x599f45=_0x191d82[0x0];_0x49a624['push'](_0x599f45),_0x36864c+=_0x599f45['length']-0x1;}else _0x49a624['push'](_0x1da3ec[_0x36864c]);}return _0x49a624;}class V extends _0x3ab4d7{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x8dc4b5){super(_0x8dc4b5);const _0x134cfe=this['bindTemplate'];this['set']('message',U(_0x8dc4b5,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x8dc4b5,U(_0x8dc4b5,'Yes'),_0xd83e77,'submit'),this['cancelView']=this['_createButtonView'](_0x8dc4b5,U(_0x8dc4b5,'No'),_0x3472d4,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x2851e6(),this['focusCycler']=new _0x1bf895({'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':_0x134cfe['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'](_0x2c84fa,_0x5b57bf,_0x1baaf0,_0x25f4a9){const _0x5ba4c4=new _0x1c3954(_0x2c84fa);return _0x5ba4c4['label']=_0x5b57bf,_0x5ba4c4['icon']=_0x1baaf0,_0x5ba4c4['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x25f4a9}}),_0x5ba4c4['on']('execute',()=>this['fire'](_0x25f4a9)),_0x5ba4c4;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x34c489=>{this['keystrokes']['listenTo'](_0x34c489['element']),this['focusTracker']['add'](_0x34c489['element']);}),this['keystrokes']['set']('esc',(_0x5dfb60,_0x491ec4)=>{this['fire']('cancel'),_0x491ec4();});}}function vt(_0x17c874){return class extends _0x17c874{['showConfirm'](_0x158546,_0x2ef657){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x158546,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x2ef657['appendChild'](this['confirmView']['element']),_0x2ef657['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x2735aa,_0x429bd6,_0x4c6686)=>{_0x4c6686||_0x2ef657['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x3f5173=>this['confirmView']['on']('submit',_0x3f5173));}['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(_0x113467){let _0xe96afd=0x0,_0x3a21a9=0x0;for(const _0x5dae50 of ne(_0x113467))_0xe96afd=(_0xe96afd<<0x5)-_0xe96afd+_0x5dae50,_0xe96afd&=_0xe96afd,[_0xe96afd,_0x3a21a9]=[_0x3a21a9,_0xe96afd];return ie(_0xe96afd)+ie(_0x3a21a9);}function*ee(_0x9d8c6f){null==_0x9d8c6f||null==_0x9d8c6f?yield 0x12b9b0a1:0x0===_0x9d8c6f||!0x1===_0x9d8c6f?yield 0x0:0x1===_0x9d8c6f||0x1==_0x9d8c6f?yield 0x1:Array['isArray'](_0x9d8c6f)?yield*function*(_0x49b4b0){for(const _0x123c52 of _0x49b4b0)yield*ee(_0x123c52);}(_0x9d8c6f):'object'==typeof _0x9d8c6f?yield*ne(_0x9d8c6f):'string'==typeof _0x9d8c6f?yield*oe(_0x9d8c6f):'number'==typeof _0x9d8c6f&&(yield _0x9d8c6f);}function*ne(_0x419103){if(yield te('{'),_0x419103){const _0x4a25d1=Object['keys'](_0x419103)['sort']();for(const _0x27cd8c of _0x4a25d1){yield*oe(_0x27cd8c),yield te(':');const _0x3131b5=_0x419103[_0x27cd8c];yield*ee(_0x3131b5);}}yield te('}');}function*oe(_0x5405ab){yield te('\x22');for(const _0x585dfd of _0x5405ab)yield te(_0x585dfd);yield te('\x22');}function te(_0x50b87d){return _0x50b87d['charCodeAt'](0x0);}function ie(_0x45d63c){return(_0x45d63c*=Math['sign'](_0x45d63c))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x22edb5,_0x1cb8c4,_0x3026c2,_0x58515b=[]){const _0x3dc807='string'==typeof _0x22edb5?_0x3026c2['get'](_0x22edb5)['constructor']:_0x22edb5['prototype']['constructor'];if(_0x1cb8c4['has'](_0x3dc807))return _0x1cb8c4['get'](_0x3dc807);_0x1cb8c4['set'](_0x3dc807,!0x0);const _0x9dec61=[...et,..._0x58515b]['map'](_0x4901d8=>{if(_0x3026c2['has'](_0x4901d8))return _0x3026c2['get'](_0x4901d8)['constructor'];})['filter'](_0x3e7a7e=>_0x3e7a7e);if(_0x3dc807&&_0x9dec61['includes'](_0x3dc807))return _0x1cb8c4['set'](_0x3dc807,!0x1),!0x1;if(!_0x3dc807['requires'])return _0x1cb8c4['set'](_0x3dc807,!0x0),!0x0;const _0x499986=_0x3dc807['requires']['every'](_0x57915d=>ot(_0x57915d,_0x1cb8c4,_0x3026c2,_0x58515b));return _0x1cb8c4['set'](_0x3dc807,_0x499986),_0x499986;}function Ct(_0x118261,_0x1beaff){const _0x3cefc8={};for(const _0x3a0347 of _0x118261['config']['names']())nt['includes'](_0x3a0347)||(_0x3cefc8[_0x3a0347]=_0x118261['config']['get'](_0x3a0347));const _0x2ed181=_0x3cefc8['plugins']||[],_0x48ca7f=_0x118261['constructor']['builtinPlugins']||[],_0x5d40d3=_0x2ed181['length']?_0x2ed181:_0x48ca7f,_0x5e3ca5=_0x3cefc8['extraPlugins']||[];delete _0x3cefc8['extraPlugins'];const _0x82043f=_0x3cefc8['removePlugins']||[];delete _0x3cefc8['removePlugins'];const _0x2ca181=_0x118261['_context']['config']['get']('plugins')||[],_0x5dc6ce=_0x5d40d3['concat'](_0x5e3ca5)['concat'](_0x2ca181)['map'](_0x49ec3c=>'string'==typeof _0x49ec3c?_0x48ca7f['find'](_0xa97634=>_0xa97634['pluginName']==_0x49ec3c):_0x49ec3c)['filter'](_0x428ee1=>!_0x82043f['includes'](_0x428ee1)&&!_0x82043f['includes'](_0x428ee1['pluginName'])),_0x36fbe5=Array['from'](new Set(_0x5dc6ce)),_0x3fe1db=new Map();return _0x3cefc8['plugins']=_0x36fbe5['filter'](_0x30310e=>ot(_0x30310e,_0x3fe1db,_0x118261['plugins'],_0x1beaff)),_0x3cefc8;}function _t(_0x23ce92,_0x42bd9e){const _0x44e55f=[];_0x23ce92['document']['selection']['on']('change:range',()=>{const _0x45cd7d=function(_0x48113e,_0x11497a){const _0x49e284=[];for(const _0x40c3ee of _0x48113e['markers']){const _0x33fd18=_0x40c3ee['getRange']();(_0x33fd18['containsPosition'](_0x11497a)||_0x33fd18['start']['isEqual'](_0x11497a)||_0x33fd18['end']['isEqual'](_0x11497a))&&_0x49e284['push'](_0x40c3ee);}return _0x49e284;}(_0x23ce92,_0x23ce92['document']['selection']['focus']),_0x34e296=[],_0x30850d=[],_0x1e50fa=[];for(const _0x271ce0 of _0x44e55f)_0x45cd7d['includes'](_0x271ce0)||_0x34e296['push'](_0x271ce0);for(const _0x5bd53f of _0x45cd7d)_0x44e55f['includes'](_0x5bd53f)||_0x30850d['push'](_0x5bd53f),_0x1e50fa['push'](_0x5bd53f);(_0x34e296['length']||_0x30850d['length'])&&_0x42bd9e({'left':_0x34e296,'entered':_0x30850d}),_0x44e55f['length']=0x0,_0x44e55f['push'](..._0x1e50fa);});}const xt='Ctrl+Shift+E';function It(_0x36c253,_0x390533){const _0x3f9203=_0x36c253['element'];_0x36c253['keystrokes']['listenTo'](_0x3f9203);for(const _0x3df457 of _0x390533)ro(_0x36c253,_0x3df457);_0x390533['on']('change',(_0x6ea5b,_0x4f9062)=>{for(const _0x446009 of _0x4f9062['removed'])to(_0x36c253,_0x446009);for(const _0x49a610 of Array['from'](_0x4f9062['added'])['reverse']())ro(_0x36c253,_0x49a610);}),_0x36c253['keystrokes']['set']('enter',(_0x275e2f,_0xa2f152)=>{_0x3f9203===_0x275e2f['target']&&(_0x36c253['focusCycler']['focusFirst'](),_0xa2f152());},{'filter':_0x5071f8=>_0x5071f8['target']===_0x3f9203}),_0x36c253['keystrokes']['set']('esc',(_0x96df2,_0x4a0452)=>{_0x3f9203!==_0x96df2['target']?_0x36c253['focus']():_0x36c253['fire']('escape'),_0x4a0452();}),_0x36c253['keystrokes']['set']('arrowdown',(_0x17a15e,_0x197d16)=>{_0x3f9203===_0x17a15e['target']&&(_0x36c253['fire']('arrowdown'),_0x197d16());}),_0x36c253['keystrokes']['set']('arrowup',(_0x3e555a,_0x5908f7)=>{_0x3f9203===_0x3e555a['target']&&(_0x36c253['fire']('arrowup'),_0x5908f7());});}function ro(_0x1df331,_0x45143a){_0x45143a['isRendered']&&(_0x1df331['focusTracker']['add'](_0x45143a['element']),_0x1df331['keystrokes']['listenTo'](_0x45143a['element']),_0x449a4a(_0x45143a)&&function(_0x17fdd6,_0x2ac6b7){const _0x256aa4=_0x17fdd6['actions'],_0x1acf77=_0x2ac6b7['actions'];for(const _0x4664bf of Object['keys'](_0x256aa4))if(_0x4664bf in _0x1acf77&&_0x256aa4[_0x4664bf]!==_0x1acf77[_0x4664bf])return!0x1;return!0x0;}(_0x1df331['focusCycler'],_0x45143a['focusCycler'])&&_0x1df331['focusCycler']['chain'](_0x45143a['focusCycler']));}function to(_0x554ec7,_0x4ce86c){_0x554ec7['focusTracker']['remove'](_0x4ce86c['element']),_0x554ec7['keystrokes']['stopListening'](_0x4ce86c['element']),_0x449a4a(_0x4ce86c)&&_0x554ec7['focusCycler']['unchain'](_0x4ce86c['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x365494{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x50c02e?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x323b2e,_0x2be71d)=>{_0x2be71d['on']('ready',()=>{this['_integrateEditor'](_0x2be71d);});});}get['editor'](){if(this['context']instanceof _0x50c02e)return this['context'];{const _0x1730d7=this['context']['editors']['first'];if(!_0x1730d7)throw new _0x21f53a('documentcompare-no-editor',this);return _0x1730d7;}}['getDiff'](_0x1759c2,_0x3ab641,_0x169b3={'anchor':'main','markDeletions':!0x1}){let _0x5cd2fd,_0x45f36b;const _0x27759f=this['editor'];if('string'==typeof _0x169b3['anchor']){const _0x1326ae=_0x27759f['model']['document']['getRoot'](_0x169b3['anchor']);if(!_0x1326ae)throw new _0x21f53a('documentcompare-compare-no-root',this,{'anchor':_0x169b3['anchor']});_0x5cd2fd=_0x1326ae,_0x45f36b=_0x27759f['model']['createPositionAt'](_0x1326ae,0x0);}else _0x5cd2fd=_0x169b3['anchor']['clone'](),_0x45f36b=_0x169b3['anchor']['clone']();const _0x7a13c0=_0x27759f['data']['parse'](_0x1759c2,_0x5cd2fd),_0x2d3c82=_0x27759f['data']['parse'](_0x3ab641,_0x5cd2fd);return new Mt(_0x7a13c0,_0x2d3c82,_0x27759f,{'anchor':_0x45f36b,'markDeletions':_0x169b3['markDeletions']});}['isMarkedRemoveOperation'](_0x437663){return'marker'==_0x437663['type']&&_0x437663['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x12b529){_0x12b529['conversion']['for']('upcast')['add'](_0x32a15c=>{_0x32a15c['on']('element',(_0x5063d5,_0x31c041,_0x20180a)=>{if(_0x31c041['modelRange'])for(const _0x23673b of _0x31c041['modelRange']['getItems']({'shallow':!0x0})){if(_0x23673b['is']('$textProxy'))continue;const _0x55e705=_0x31c041['viewItem']['getAttribute'](Et);_0x55e705&&_0x20180a['writer']['setAttribute'](St,_0x55e705,_0x23673b);}},{'priority':'lowest'});}),_0x12b529['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x5e6529,_0x93bbb6,_0x3ccd22,_0xd8399e){this['_editor']=_0x3ccd22,this['_markDeletions']=!!_0xd8399e['markDeletions'],this['_anchor']=_0xd8399e['anchor'];const _0x216791=this['_tokenizeModel'](_0x5e6529),_0x3090be=this['_tokenizeModel'](_0x93bbb6);this['_diffItems']=this['_diffModelTokens'](_0x216791,_0x3090be),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x5e6529['markers'],_0x93bbb6['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x5554b4=this['_editor']['model']['document'],_0x226998=[];let _0x3fad56=_0x5554b4['version'];for(const _0x8d11b0 of this['_operationsData'])switch(_0x8d11b0['type']){case'attribute':{const _0x372f56=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['path']),_0x4eb324=_0x372f56['getShiftedBy'](_0x8d11b0['howMany']),_0x3308a2=new _0x1ca5f8(_0x372f56,_0x4eb324),_0x149675=JSON['parse'](_0x8d11b0['oldValue']),_0x90f0df=JSON['parse'](_0x8d11b0['newValue']);_0x226998['push'](new _0x376df4(_0x3308a2,_0x8d11b0['key'],_0x149675,_0x90f0df,_0x3fad56++));break;}case'insert':{const _0x2a0e44=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['path']),_0x1be362=this['_makeModelFromTokens'](_0x8d11b0['tokens']);_0x226998['push'](new _0x25ebf1(_0x2a0e44,_0x1be362,_0x3fad56++));break;}case'remove':{const _0x448302=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['path']),_0x573a35=new _0x1427f8(_0x5554b4['graveyard'],[0x0]);_0x226998['push'](new _0x1648c4(_0x448302,_0x8d11b0['howMany'],_0x573a35,_0x3fad56++));break;}case'rename':{const _0x2ea87b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['path']);_0x226998['push'](new _0x185d57(_0x2ea87b,_0x8d11b0['oldName'],_0x8d11b0['newName'],_0x3fad56++));break;}case'split':{const _0x5b3937=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['path']),_0x4c9574=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['path']['slice'](0x0,-0x1));_0x4c9574['offset']++,_0x226998['push'](new _0x1c9b06(_0x5b3937,Number['NEGATIVE_INFINITY'],_0x4c9574,null,_0x3fad56++));break;}case'merge':{const _0x4050aa=_0x8d11b0['path']['slice'](),_0x17a750=_0x4050aa['slice'](0x0,-0x1);_0x17a750[_0x17a750['length']-0x1]++,_0x17a750['push'](0x0);const _0x1097eb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x17a750),_0x3af1a1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4050aa),_0x4ec0a9=new _0x1427f8(_0x5554b4['graveyard'],[0x0]);_0x226998['push'](new _0x4251f5(_0x1097eb,Number['NEGATIVE_INFINITY'],_0x3af1a1,_0x4ec0a9,_0x3fad56++));break;}case'marker':case'markedRemove':{let _0x196ead=null;if(_0x8d11b0['range']){const _0x19ad48=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['range']['start']),_0x1a21e3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['range']['end']);_0x196ead=new _0x1ca5f8(_0x19ad48,_0x1a21e3);}const _0x5a11b0='marker'==_0x8d11b0['type']?_0x8d11b0['name']:'$markedRemove:'+_0x13346b();_0x226998['push'](new _0x32ba29(_0x5a11b0,null,_0x196ead,_0x5554b4['model']['markers'],!0x0,_0x3fad56++));break;}case'unwrap':{const _0x3df54e=_0x8d11b0['path']['slice']();_0x3df54e['push'](0x0);const _0x56db96=_0x8d11b0['path']['slice'](),_0x51043b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3df54e),_0xcf1c68=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x56db96),_0x545c27=new _0x1427f8(_0x5554b4['graveyard'],[0x0]);_0x226998['push'](new _0x1648c4(_0x51043b,_0x8d11b0['howMany'],_0xcf1c68,_0x3fad56++)),_0x226998['push'](new _0x1648c4(_0xcf1c68['getShiftedBy'](_0x8d11b0['howMany']),0x1,_0x545c27,_0x3fad56++));break;}case'wrap':{const _0x131743=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['range']['start']),_0x636181=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8d11b0['range']['end']),_0x3a557a=_0x8d11b0['token']['element']['_clone'](!0x1),_0x26cffa=_0x8d11b0['range']['end']['slice']();_0x26cffa['push'](0x0);const _0x977a69=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x26cffa);_0x226998['push'](new _0x25ebf1(_0x636181,_0x3a557a,_0x3fad56++)),_0x226998['push'](new _0x1648c4(_0x131743,_0x636181['offset']-_0x131743['offset'],_0x977a69,_0x3fad56++));break;}}return _0x226998;}['_tokenizeModel'](_0x566e74){const _0x211b8b=[],_0x2e5580=_0x1ca5f8['_createIn'](_0x566e74),_0x3e0839=new _0x48e48a({'boundaries':_0x2e5580});let _0x4bef81='',_0x9e92f7=null;const _0x34d06b=[''],_0xe547dc=new Map();for(const _0x58c29a of _0x3e0839)if('elementStart'==_0x58c29a['type']||'elementEnd'==_0x58c29a['type']){let _0x13dc81=_0x34d06b[0x0];''!==_0x4bef81&&(_0x211b8b['push'](...this['_makeTokensFromTextByWords'](_0x4bef81,_0x9e92f7,_0x13dc81)),_0x4bef81='');const _0x18ebea=_0x58c29a['item'];let _0x3aeb50;_0x18ebea['getAttribute'](St)?_0x3aeb50=_0x18ebea['getAttribute'](St):'elementStart'==_0x58c29a['type']?(_0x3aeb50=_(_0x18ebea),_0xe547dc['set'](_0x18ebea,_0x3aeb50)):_0x3aeb50=_0xe547dc['get'](_0x18ebea);const _0xcfec6f=this['_getElementCategory'](_0x18ebea);'solid'==_0xcfec6f&&('elementStart'==_0x58c29a['type']?(_0x13dc81=_0x3aeb50,_0x34d06b['unshift'](_0x13dc81)):_0x34d06b['shift']());const _0x528a24={'type':'element','element':_0x18ebea,'elementId':_0x3aeb50,'category':_0xcfec6f,'isStart':'elementStart'==_0x58c29a['type'],'limitId':_0x13dc81};_0x211b8b['push'](_0x528a24);}else''==_0x4bef81&&(_0x9e92f7=_0x58c29a['previousPosition']['clone']()),_0x4bef81+=_0x58c29a['item']['data'];return''!==_0x4bef81&&_0x211b8b['push'](...this['_makeTokensFromTextByWords'](_0x4bef81,_0x9e92f7,_0x34d06b[0x0])),_0x211b8b;}['_makeTokensFromTextByWords'](_0x3f7923,_0x20a578,_0xa5e39e){const _0xc1923f=_0x3f7923['matchAll'](/(\s)/g),_0x485c12=Array['from'](_0xc1923f)['map'](_0x3b06da=>_0x3b06da['index']);_0x485c12['push'](_0x3f7923['length']),0x0==_0x485c12[0x0]&&_0x485c12['shift']();const _0x4892ac=[],_0x4ba7bf=_0x20a578['parent'];let _0x32f3fa=0x0,_0x467339=_0x20a578['offset'];for(let _0x34c2fe=0x0;_0x34c2fe<_0x485c12['length'];_0x34c2fe++)_0x4892ac['push']({'type':'text','data':_0x3f7923['slice'](_0x32f3fa,_0x485c12[_0x34c2fe]),'parent':_0x4ba7bf,'offset':_0x467339,'limitId':_0xa5e39e}),_0x32f3fa=_0x485c12[_0x34c2fe],_0x467339=_0x20a578['offset']+_0x485c12[_0x34c2fe];return _0x4892ac;}['_getElementCategory'](_0x329290){const _0x132da6=this['_editor']['model']['schema'];return _0x132da6['isLimit'](_0x329290)||_0x132da6['isContent'](_0x329290)||_0x132da6['isInline'](_0x329290)?'solid':_0x132da6['isBlock'](_0x329290)?'block':'container';}['_diffModelTokens'](_0x533a6f,_0x128753){const _0x155cc3=_0x1186a2(_0x533a6f,_0x128753,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x155cc3);const _0xaf1a45=_0x155cc3['flatMap'](_0x93ba33=>{const _0x230ad3=_0x93ba33['added']?'added':_0x93ba33['removed']?'removed':'unchanged';return _0x93ba33['value']['map'](_0x4843de=>({'token':_0x4843de,'change':_0x230ad3}));});let _0xb75a0b=0x0;for(const _0x357bd0 of _0xaf1a45)'added'!=_0x357bd0['change']&&('unchanged'==_0x357bd0['change']&&(_0x357bd0['before']=_0x533a6f[_0xb75a0b]),_0xb75a0b++);return _0xaf1a45;}['_handleUnclosedBlockOpeningTags'](_0x41a29a){for(let _0x1656c1=0x0;_0x1656c1<_0x41a29a['length']-0x1;_0x1656c1++)if(_0x41a29a[_0x1656c1]['removed']&&_0x41a29a[_0x1656c1+0x1]['added']){const _0x38ed14=this['_findUnclosedBlockOpeningToken'](_0x41a29a[_0x1656c1]['value']);if(null!==_0x38ed14){const _0x3578bd=this['_findUnclosedBlockOpeningToken'](_0x41a29a[_0x1656c1+0x1]['value']),_0x1310b1=_0x41a29a[_0x1656c1]['value']['splice'](_0x38ed14),_0xc18d86=_0x41a29a[_0x1656c1+0x1]['value']['splice'](_0x3578bd),_0x586d5e=[_0xc18d86['shift']()];_0x1310b1['shift']();const _0x15d099={'value':_0x1310b1,'removed':!0x0},_0xf5e30e={'value':_0xc18d86,'added':!0x0},_0x4838b7={'value':_0x586d5e};_0x41a29a['splice'](_0x1656c1+0x2,0x0,_0x4838b7,_0x15d099,_0xf5e30e);}}}['_findUnclosedBlockOpeningToken'](_0x4a6245){let _0xaa0b6d=0x0,_0x460cca=-0x1;for(let _0x95399=0x0;_0x95399<_0x4a6245['length'];_0x95399++){const _0x5d9f9e=_0x4a6245[_0x95399];'element'==_0x5d9f9e['type']&&'block'==_0x5d9f9e['category']&&(_0xaa0b6d+=_0x5d9f9e['isStart']?0x1:-0x1,_0x5d9f9e['isStart']&&(_0x460cca=_0x95399));}return 0x0===_0xaa0b6d?null:_0x460cca;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xb80763=0x0;_0xb80763<this['_diffItems']['length'];_0xb80763++){const _0x4d0a3c=this['_diffItems'][_0xb80763]['change'],_0x1e4d13=[];_0x1e4d13['push'](this['_diffItems'][_0xb80763]);let _0x5d8440=_0xb80763+0x1;for(;this['_diffItems'][_0x5d8440]&&this['_diffItems'][_0x5d8440]['change']==_0x4d0a3c;)_0x1e4d13['push'](this['_diffItems'][_0x5d8440]),_0x5d8440++,_0xb80763++;const _0x37b71a=_0x1e4d13['map'](_0x343a7c=>_0x343a7c['token']);if('unchanged'==_0x4d0a3c)_0x1e4d13['map'](_0x6bb6f8=>_0x6bb6f8['before'])['forEach'](_0xda7bb9=>this['_traverseOverItem'](_0xda7bb9));else{if('removed'==_0x4d0a3c){if(this['_markDeletions']){const _0x396178=this['_path']['slice']();_0x37b71a['forEach'](_0x55a83a=>this['_traverseOverItem'](_0x55a83a));const _0x4937df=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x396178,'end':_0x4937df}});}else this['_handleChanged'](_0x37b71a,!0x0,this['_path']['slice']());}else{const _0x2c4ea4=_0x37b71a['filter'](_0x5a1381=>'element'!=_0x5a1381['type']||'container'!=_0x5a1381['category']);this['_handleChanged'](_0x2c4ea4,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xb341c5=0x0;_0xb341c5<this['_diffItems']['length'];_0xb341c5++){const _0x1e8e2e=this['_diffItems'][_0xb341c5]['change'],_0x295e19=[];_0x295e19['push'](this['_diffItems'][_0xb341c5]);let _0x328dd5=_0xb341c5+0x1;for(;this['_diffItems'][_0x328dd5]&&this['_diffItems'][_0x328dd5]['change']==_0x1e8e2e;)_0x295e19['push'](this['_diffItems'][_0x328dd5]),_0x328dd5++,_0xb341c5++;const _0x5c0e81=_0x295e19['map'](_0x3d1b08=>_0x3d1b08['token']);if('unchanged'==_0x1e8e2e){const _0x1628aa=_0x295e19['map'](_0x1b42bd=>_0x1b42bd['before']);this['_handleUnchanged'](_0x1628aa,_0x5c0e81);}else('removed'!=_0x1e8e2e||this['_markDeletions'])&&_0x5c0e81['forEach'](_0x4ed745=>{this['_traverseOverItem'](_0x4ed745);});}}['_calculateMarkersOperationsData'](_0xbd9b63,_0x83ef0a){const _0x488598={};for(const [_0x5426e7]of _0xbd9b63)_0x488598[_0x5426e7]=null;for(const [_0x43ef4c,_0x15162d]of _0x83ef0a)_0x488598[_0x43ef4c]=_0x15162d;const _0x1c1799=Object['entries'](_0x488598)['map'](([_0x31d950,_0x260972])=>({'type':'marker','name':_0x31d950,'range':_0x260972?{'start':_0x260972['start']['path']['slice'](),'end':_0x260972['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x1c1799);}['_handleUnwraps'](){const _0x416044=new Map(),_0x3b0a9f=[],_0x267d90=[0x0];let _0xb3ff05=this['_diffItems']['length']+0x1;for(let _0x4e4631=this['_diffItems']['length']-0x1;_0x4e4631>=0x0;_0x4e4631--){const {token:_0x4dffcc,before:_0x1627cf,change:_0x5889d6}=this['_diffItems'][_0x4e4631];if('removed'!=_0x5889d6&&(_0xb3ff05=_0x4e4631),'element'!=_0x4dffcc['type']||'container'!=_0x4dffcc['category']||'added'==_0x5889d6)continue;const _0xb6043f=_0x1627cf?_0x1627cf['element']:_0x4dffcc['element'];if(_0x4dffcc['isStart']){const _0x3d238a=_0x416044['get'](_0xb6043f),_0xb0d415=this['_diffItems'][_0x3d238a];('removed'==_0x5889d6||'removed'==_0xb0d415['change'])&&_0xb3ff05<_0x3d238a&&(this['_operationsData']['push']({'type':'unwrap','path':_0xb6043f['getPath'](),'howMany':_0xb6043f['maxOffset']+_0x267d90[0x0]}),_0x267d90['shift'](),_0x267d90[0x0]+=_0xb6043f['maxOffset']-0x1,_0x3b0a9f['push'](_0x4e4631),_0x3b0a9f['push'](_0x3d238a));}else _0x416044['set'](_0xb6043f,_0x4e4631),_0x267d90['unshift'](0x0);}_0x3b0a9f['sort']((_0x3e18e6,_0x2f2510)=>_0x2f2510-_0x3e18e6),_0x3b0a9f['forEach'](_0x1b6834=>{const _0x4b6e70=this['_diffItems'][_0x1b6834];'removed'==_0x4b6e70['change']?this['_diffItems']['splice'](_0x1b6834,0x1):(_0x4b6e70['change']='added',delete _0x4b6e70['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x4e57a4=[];for(let _0x11e944=0x0;_0x11e944<this['_diffItems']['length'];_0x11e944++){const {change:_0x597626,token:_0x5101ab}=this['_diffItems'][_0x11e944];if('added'==_0x597626&&'element'==_0x5101ab['type']&&'container'==_0x5101ab['category']){if(_0x5101ab['isStart'])_0x4e57a4['push'](this['_path']['slice']());else{if(!_0x5101ab['isStart']){const _0x5eb347=_0x4e57a4['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x5eb347,'end':this['_path']['slice']()},'token':_0x5101ab}),this['_path'][this['_path']['length']-0x1]=_0x5eb347[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x597626||this['_markDeletions'])&&this['_traverseOverItem'](_0x5101ab);}}['_handleUnchanged'](_0x4339b4,_0x4796a1){for(let _0x501821=0x0;_0x501821<_0x4339b4['length'];_0x501821++){const _0x5e055b=_0x4339b4[_0x501821];if('element'==_0x5e055b['type']&&_0x5e055b['isStart']){const _0x3f81ef=_0x4796a1[_0x501821];'block'==_0x5e055b['category']&&this['_handleElementRename'](_0x5e055b['element'],_0x3f81ef['element'],this['_path']),this['_handleElementAttributeChanges'](_0x5e055b['element'],_0x3f81ef['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x3f81ef);}else{if('element'!=_0x5e055b['type']||_0x5e055b['isStart']){if('text'==_0x5e055b['type']){const _0xdd1b15=this['_path']['slice'](),_0x28aaca=[],_0x52079e=[];for(;_0x4339b4[_0x501821]&&'text'==_0x4339b4[_0x501821]['type'];)_0x28aaca['push'](_0x4339b4[_0x501821]),_0x52079e['push'](_0x4796a1[_0x501821]),this['_path'][this['_path']['length']-0x1]+=_0x4339b4[_0x501821]['data']['length'],_0x501821++;_0x501821--,this['_handleTextAttributeChanges'](_0x28aaca,_0x52079e,_0xdd1b15);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x1346eb,_0x5e2074,_0x33ea57){const _0x3dc97a=[],_0x1c7940=[],_0x5e3364=_0x33ea57['slice']();for(let _0x1bb622=0x0;_0x1bb622<_0x1346eb['length'];_0x1bb622++){const _0x8a9a77=_0x1346eb[_0x1bb622],_0x11063a=_0x33ea57['slice']();if('element'!=_0x8a9a77['type']||_0x8a9a77['isStart'])'element'==_0x8a9a77['type']&&_0x8a9a77['isStart']?(_0x33ea57['push'](0x0),_0x5e2074||this['_parents']['push'](_0x8a9a77),_0x1c7940['push']({'before':_0x11063a,'after':_0x33ea57['slice'](),'index':_0x1bb622})):_0x33ea57[_0x33ea57['length']-0x1]+=_0x8a9a77['data']['length'];else{let _0x237996;_0x33ea57['pop'](),_0x33ea57[_0x33ea57['length']-0x1]++,_0x237996=_0x5e2074?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x1c7940['length']?_0x1c7940['pop']():_0x3dc97a['push']({'before':_0x11063a,'after':_0x33ea57['slice'](),'index':_0x1bb622,'related':_0x237996});}}if(_0x1c7940['length']!==_0x3dc97a['length'])throw new _0x21f53a('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x1346eb,'isRemove':_0x5e2074});const _0x425b88=[{'after':_0x5e3364['slice'](),'index':-0x1},..._0x3dc97a,..._0x1c7940,{'before':_0x33ea57['slice'](),'index':_0x1346eb['length']}];if(_0x5e2074){for(let _0x4b11d8=_0x425b88['length']-0x1;_0x4b11d8>=0x1;_0x4b11d8--){const _0x3e25ca=_0x425b88[_0x4b11d8-0x1]['after'],_0x2df0b1=_0x425b88[_0x4b11d8]['before'],_0x3dda79=_0x2df0b1[_0x2df0b1['length']-0x1]-_0x3e25ca[_0x3e25ca['length']-0x1];_0x3dda79&&(this['_operationsData']['push']({'type':'remove','path':_0x3e25ca,'howMany':_0x3dda79}),_0x2df0b1[_0x2df0b1['length']-0x1]-=_0x3dda79);}for(const {before:_0x136008}of _0x3dc97a)this['_operationsData']['push']({'type':'merge','path':_0x136008});}else for(let _0x2e08f3=0x0;_0x2e08f3<_0x425b88['length']-0x1;_0x2e08f3++){const _0x4bcc9b=_0x425b88[_0x2e08f3]['after'],_0x113d0a=_0x425b88[_0x2e08f3+0x1]['before'],_0x18692c=_0x425b88[_0x2e08f3]['index']+0x1,_0x5e33fe=_0x425b88[_0x2e08f3+0x1]['index'];if(_0x18692c!==_0x5e33fe&&this['_operationsData']['push']({'type':'insert','path':_0x4bcc9b,'tokens':_0x1346eb['slice'](_0x18692c,_0x5e33fe)}),_0x2e08f3<_0x3dc97a['length']){this['_operationsData']['push']({'type':'split','path':_0x113d0a});const _0xf19e71=_0x1346eb[_0x1c7940[_0x1c7940['length']-0x1-_0x2e08f3]['index']],_0xcb1fe5=_0x3dc97a[_0x2e08f3]['after'],_0xbe26d0=_0x3dc97a[_0x2e08f3]['related']['element'];this['_handleElementRename'](_0xbe26d0,_0xf19e71['element'],_0xcb1fe5),this['_handleElementAttributeChanges'](_0xbe26d0,_0xf19e71['element'],_0xcb1fe5);}}}['_traverseOverItem'](_0x4833c9){'element'==_0x4833c9['type']&&_0x4833c9['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x4833c9)):'element'!=_0x4833c9['type']||_0x4833c9['isStart']?'text'==_0x4833c9['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x4833c9['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x39ed7a,_0x558bd5,_0x499547){_0x39ed7a['name']!=_0x558bd5['name']&&this['_operationsData']['push']({'type':'rename','path':_0x499547['slice'](),'oldName':_0x39ed7a['name'],'newName':_0x558bd5['name']});}['_handleElementAttributeChanges'](_0x2b271f,_0x3ffab7,_0x5ef46a){const _0x54a768=this['_getAttributeChanges'](_0x2b271f['getAttributes'](),_0x3ffab7['getAttributes']());for(const _0x6ca77a in _0x54a768){const {oldValue:_0x41dd8c,newValue:_0x336bc6}=_0x54a768[_0x6ca77a];this['_operationsData']['push']({'type':'attribute','path':_0x5ef46a['slice'](),'howMany':0x1,'key':_0x6ca77a,'oldValue':_0x41dd8c,'newValue':_0x336bc6});}}['_handleTextAttributeChanges'](_0xd882ad,_0x34c714,_0xca1022){const _0xa841d9=this['_operationsData'],_0xbb666d=_0xd882ad[0x0]['parent'],_0x53cec7=_0xd882ad[0x0]['offset'],_0x24948c=_0x34c714[0x0]['parent'],_0x30e8b1=_0x34c714[0x0]['offset'],_0x5e4bc5=_0xd882ad['reduce']((_0x70af1e,_0x32dc98)=>_0x70af1e+_0x32dc98['data']['length'],0x0),_0x982379=this['_getAttrsForOffsets'](_0xbb666d,_0x53cec7,_0x5e4bc5),_0x5f52b2=this['_getAttrsForOffsets'](_0x24948c,_0x30e8b1,_0x5e4bc5),_0x44dfc1={};for(let _0x4177d3=0x0;_0x4177d3<_0x5e4bc5;_0x4177d3++){const _0x565532=_0x982379[_0x53cec7+_0x4177d3],_0x5f2d60=_0x5f52b2[_0x30e8b1+_0x4177d3],_0x423e59=this['_getAttributeChanges'](_0x565532,_0x5f2d60);for(const _0x4edbe5 in _0x44dfc1)_0x423e59[_0x4edbe5]||_0x2e90a8(_0x4edbe5);for(const _0x2cc63b in _0x423e59){const {oldValue:_0x51ad62,newValue:_0x5e70dd}=_0x423e59[_0x2cc63b],_0x461d8c=_0x44dfc1[_0x2cc63b];_0x461d8c?_0x461d8c['oldValue']==_0x51ad62&&_0x461d8c['newValue']==_0x5e70dd?_0x461d8c['length']++:(_0x2e90a8(_0x2cc63b),_0x44dfc1[_0x2cc63b]={'oldValue':_0x51ad62,'newValue':_0x5e70dd,'start':_0x4177d3,'length':0x1}):_0x44dfc1[_0x2cc63b]={'oldValue':_0x51ad62,'newValue':_0x5e70dd,'start':_0x4177d3,'length':0x1};}}for(const _0x53bd23 in _0x44dfc1)_0x2e90a8(_0x53bd23);function _0x2e90a8(_0x17e3c2){const _0x273910=_0x44dfc1[_0x17e3c2],_0x46b219=_0xca1022['slice']();_0x46b219[_0x46b219['length']-0x1]+=_0x273910['start'],_0xa841d9['push']({'type':'attribute','path':_0x46b219,'howMany':_0x273910['length'],'key':_0x17e3c2,'oldValue':_0x273910['oldValue'],'newValue':_0x273910['newValue']}),delete _0x44dfc1[_0x17e3c2];}}['_getAttributeChanges'](_0x4eafd1,_0x2ce00e){const _0x3bca0d={};for(const [_0x29167c,_0x4a7f5a]of _0x4eafd1)_0x3bca0d[_0x29167c]={'oldValue':JSON['stringify'](_0x4a7f5a),'newValue':'null'};for(const [_0x139cbf,_0x5cfce5]of _0x2ce00e){const _0x455445=JSON['stringify'](_0x5cfce5);_0x3bca0d[_0x139cbf]?_0x3bca0d[_0x139cbf]['oldValue']==_0x455445?delete _0x3bca0d[_0x139cbf]:_0x3bca0d[_0x139cbf]['newValue']=_0x455445:_0x3bca0d[_0x139cbf]={'oldValue':'null','newValue':_0x455445};}return delete _0x3bca0d[St],_0x3bca0d;}['_getAttrsForOffsets'](_0x3b17e8,_0x35873f,_0x11c546){const _0xb99ed9=new Array(_0x35873f+_0x11c546);let _0x4ddf9d=_0x3b17e8['getChildAtOffset'](_0x35873f),_0x5e8eba=_0x4ddf9d['startOffset'];for(;_0x4ddf9d&&_0x5e8eba<_0x35873f+_0x11c546;){const _0xa417be=Array['from'](_0x4ddf9d['getAttributes']());_0xb99ed9['fill'](_0xa417be,_0x5e8eba,_0x5e8eba+_0x4ddf9d['offsetSize']),_0x5e8eba+=_0x4ddf9d['offsetSize'],_0x4ddf9d=_0x4ddf9d['nextSibling'];}return _0xb99ed9;}['_getPositionFromAnchorAndPath'](_0x3b0a96,_0x2c4b4d){const _0x443758=[..._0x3b0a96['path']['slice'](0x0,-0x1),_0x3b0a96['offset']+_0x2c4b4d[0x0],..._0x2c4b4d['slice'](0x1)];return new _0x1427f8(_0x3b0a96['root'],_0x443758);}['_makeModelFromTokens'](_0x36ac7b){const _0x15ffe0=[];let _0x1c3429=null;for(const _0x176155 of _0x36ac7b)if('element'!=_0x176155['type']||_0x176155['isStart']||_0x1c3429!=_0x176155['element']){if(!_0x1c3429){if('text'==_0x176155['type']){const _0x276ce8=_0x1427f8['_createAt'](_0x176155['parent'],_0x176155['offset']),_0x25fd7b=_0x1ca5f8['_createFromPositionAndShift'](_0x276ce8,_0x176155['data']['length']),_0x53cbc7=Array['from'](_0x25fd7b['getItems']())['map'](_0x34cda1=>new _0x251d52(_0x34cda1['data'],_0x34cda1['getAttributes']()));_0x15ffe0['push'](..._0x53cbc7);}else{_0x1c3429=_0x176155['element'];const _0x539245=_0x176155['element']['_clone'](!0x0);_0x539245['_removeAttribute'](St);for(const _0x20e9df of this['_editor']['model']['createRangeIn'](_0x539245)['getItems']())_0x20e9df['is']('element')&&_0x20e9df['_removeAttribute'](St);_0x15ffe0['push'](_0x539245);}}}else _0x1c3429=null;return _0x15ffe0;}}function g(_0x99775a,_0x3b393a){return _0x99775a['type']===_0x3b393a['type']&&(_0x99775a['limitId']===_0x3b393a['limitId']&&('text'==_0x99775a['type']?_0x99775a['data']==_0x3b393a['data']:function(_0x13cfe0,_0x576b0c){if(_0x13cfe0['isStart']!=_0x576b0c['isStart'])return!0x1;if(_0x13cfe0['isStart']&&_0x13cfe0['elementId']!=_0x576b0c['elementId'])return!0x1;if(_0x13cfe0['category']!=_0x576b0c['category'])return!0x1;if('block'==_0x13cfe0['category'])return!0x0;if('container'==_0x13cfe0['category']&&_0x13cfe0['elementId']!=_0x576b0c['elementId'])return!0x1;return _0x13cfe0['element']['name']==_0x576b0c['element']['name'];}(_0x99775a,_0x3b393a)));}function _(_0x1d1691){return k({'name':_0x1d1691['name'],...Object['fromEntries'](_0x1d1691['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
|
|
3
|
+
"version": "47.3.0",
|
|
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
|
|
36
|
-
"@ckeditor/ckeditor5-comments": "47.3.0
|
|
37
|
-
"@ckeditor/ckeditor5-core": "47.3.0
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "47.3.0
|
|
39
|
-
"@ckeditor/ckeditor5-link": "47.3.0
|
|
40
|
-
"@ckeditor/ckeditor5-list": "47.3.0
|
|
41
|
-
"@ckeditor/ckeditor5-theme-lark": "47.3.0
|
|
42
|
-
"@ckeditor/ckeditor5-track-changes": "47.3.0
|
|
43
|
-
"@ckeditor/ckeditor5-ui": "47.3.0
|
|
44
|
-
"@ckeditor/ckeditor5-utils": "47.3.0
|
|
45
|
-
"@ckeditor/ckeditor5-widget": "47.3.0
|
|
46
|
-
"ckeditor5": "47.3.0
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "47.3.0",
|
|
36
|
+
"@ckeditor/ckeditor5-comments": "47.3.0",
|
|
37
|
+
"@ckeditor/ckeditor5-core": "47.3.0",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "47.3.0",
|
|
39
|
+
"@ckeditor/ckeditor5-link": "47.3.0",
|
|
40
|
+
"@ckeditor/ckeditor5-list": "47.3.0",
|
|
41
|
+
"@ckeditor/ckeditor5-theme-lark": "47.3.0",
|
|
42
|
+
"@ckeditor/ckeditor5-track-changes": "47.3.0",
|
|
43
|
+
"@ckeditor/ckeditor5-ui": "47.3.0",
|
|
44
|
+
"@ckeditor/ckeditor5-utils": "47.3.0",
|
|
45
|
+
"@ckeditor/ckeditor5-widget": "47.3.0",
|
|
46
|
+
"ckeditor5": "47.3.0",
|
|
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
|
-
function
|
|
23
|
+
const _0x37b729=_0x11ff;function _0x19b0(){const _0x3e94ce=['addMarker:suggestion','editor','toViewElement','options','tableCell','item','3802935UZEvvN','addClass','2554902hORKUl','data-author-id','classes','5886696OlhDan','2214078ibAysL','4Zkeiou','highest','afterInit','270fuUfRy','141633fcCGkw','626822KSpacT','downcastDispatcher','showSuggestionHighlights','mapper','setAttribute','2PiyWUC','1058204YQMxnP','plugins','data','writer','element','has','data-suggestion-id','Table','markerName'];_0x19b0=function(){return _0x3e94ce;};return _0x19b0();}(function(_0x422f6e,_0x423427){const _0x5ddd47=_0x11ff,_0x342ceb=_0x422f6e();while(!![]){try{const _0x2fafd4=-parseInt(_0x5ddd47(0x1f2))/0x1*(-parseInt(_0x5ddd47(0x1f7))/0x2)+-parseInt(_0x5ddd47(0x1ec))/0x3*(parseInt(_0x5ddd47(0x1ed))/0x4)+parseInt(_0x5ddd47(0x1e6))/0x5+-parseInt(_0x5ddd47(0x1e8))/0x6+-parseInt(_0x5ddd47(0x1f8))/0x7+parseInt(_0x5ddd47(0x1eb))/0x8+-parseInt(_0x5ddd47(0x1f1))/0x9*(parseInt(_0x5ddd47(0x1f0))/0xa);if(_0x2fafd4===_0x423427)break;else _0x342ceb['push'](_0x342ceb['shift']());}catch(_0x4d44d7){_0x342ceb['push'](_0x342ceb['shift']());}}}(_0x19b0,0x5d964));import{Plugin as _0x5b1baf}from'ckeditor5/src/core.js';function _0x11ff(_0x5d2003,_0x4cf440){const _0x19b075=_0x19b0();return _0x11ff=function(_0x11ff93,_0x1d2c26){_0x11ff93=_0x11ff93-0x1dd;let _0x32dd4e=_0x19b075[_0x11ff93];return _0x32dd4e;},_0x11ff(_0x5d2003,_0x4cf440);}import{toArray as _0x19bb54}from'ckeditor5/src/utils.js';import{setHighlightHandling as _0x4cc5c2}from'ckeditor5/src/widget.js';import{splitSuggestionMarkerName as _0x3e56de}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0x5b1baf{[_0x37b729(0x1ef)](){const _0xdaa31b=_0x37b729,_0x304f33=this[_0xdaa31b(0x1e1)];if(!_0x304f33[_0xdaa31b(0x1f9)][_0xdaa31b(0x1fd)](_0xdaa31b(0x1de)))return;_0x304f33[_0xdaa31b(0x1fa)][_0xdaa31b(0x1f3)]['on'](_0xdaa31b(0x1e0),(_0x25a781,_0x11399a,_0xd05121)=>{((_0x398f5e,_0x109237,_0x2b3b70)=>{const _0x6f6ee1=_0x11ff;if(!_0x2b3b70[_0x6f6ee1(0x1e3)][_0x6f6ee1(0x1f4)])return;const _0xd11244=_0x109237[_0x6f6ee1(0x1e5)];if(!_0xd11244||!_0xd11244['is'](_0x6f6ee1(0x1fc),_0x6f6ee1(0x1e4)))return;const _0x4fa0aa=_0x2b3b70[_0x6f6ee1(0x1f5)][_0x6f6ee1(0x1e2)](_0xd11244);if(_0x4fa0aa){const {id:_0x9a371f,authorId:_0x3e72cc}=_0x3e56de(_0x109237[_0x6f6ee1(0x1df)]);_0x4cc5c2(_0x4fa0aa,_0x2b3b70[_0x6f6ee1(0x1fb)],(_0x39ef17,_0x2c1c59,_0x349baa)=>{const _0x236450=_0x6f6ee1;_0x349baa[_0x236450(0x1e7)](_0x19bb54(_0x2c1c59[_0x236450(0x1ea)]),_0x39ef17),_0x349baa[_0x236450(0x1f6)](_0x236450(0x1dd),_0x9a371f,_0x39ef17),_0x349baa[_0x236450(0x1f6)](_0x236450(0x1e9),_0x3e72cc,_0x39ef17);});}})(0x0,_0x11399a,_0xd05121);},{'priority':_0xdaa31b(0x1ee)});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x18cb8c=_0x57e0;(function(_0x282ca0,_0x1d90b5){const _0x20fc3a=_0x57e0,_0x14117c=_0x282ca0();while(!![]){try{const _0x4f9e17=-parseInt(_0x20fc3a(0xca))/0x1+-parseInt(_0x20fc3a(0xcd))/0x2+parseInt(_0x20fc3a(0xb9))/0x3*(parseInt(_0x20fc3a(0xce))/0x4)+parseInt(_0x20fc3a(0xba))/0x5+-parseInt(_0x20fc3a(0xc3))/0x6*(-parseInt(_0x20fc3a(0xc9))/0x7)+-parseInt(_0x20fc3a(0xc4))/0x8*(-parseInt(_0x20fc3a(0xc0))/0x9)+-parseInt(_0x20fc3a(0xd5))/0xa;if(_0x4f9e17===_0x1d90b5)break;else _0x14117c['push'](_0x14117c['shift']());}catch(_0x4e449d){_0x14117c['push'](_0x14117c['shift']());}}}(_0x2428,0xdd429));function _0x57e0(_0x19321a,_0x498071){const _0x242831=_0x2428();return _0x57e0=function(_0x57e006,_0x43c919){_0x57e006=_0x57e006-0xb8;let _0x2a6eed=_0x242831[_0x57e006];return _0x2a6eed;},_0x57e0(_0x19321a,_0x498071);}import{View as _0x8fbb1d,IconView as _0x9f583a}from'ckeditor5/src/ui.js';import{IconNotification as _0x1351cb}from'ckeditor5/src/icons.js';import'../../../theme/users.css';function _0x2428(){const _0x3df8b0=['push','180819lFjzkL','isMe','ck\x20ck-user__name','6PtAvvZ','200SYQVUN','setTemplate','ck-user_me','isAnonymous','ck\x20ck-user__name\x20ck-user__name--hidden','11708102pjfIVI','925321dWaqSC','ck-user','ck-user__icon','2734608ibGQeN','3068168FZVocf','avatar','ck-user__img','div','extendTemplate','ck-user__avatar','initials','10998080wWXrgu','notificationView','ck-user__notification','6CyVBBn','2948845tCjwpR','url(\x27','content','ck-user__anonymous','name'];_0x2428=function(){return _0x3df8b0;};return _0x2428();}export class UserView extends _0x8fbb1d{[_0x18cb8c(0xbe)];[_0x18cb8c(0xd6)];constructor(_0x51f423,_0x2204f9,_0x4a1c40){const _0x102900=_0x18cb8c;super(_0x51f423),this[_0x102900(0xbe)]=_0x2204f9[_0x102900(0xbe)],this[_0x102900(0xd6)]=null;const _0x29f327=['ck',_0x102900(0xcb)],_0x458205=['ck',_0x102900(0xd0)];if(_0x2204f9[_0x102900(0xc7)]&&_0x458205[_0x102900(0xbf)](_0x102900(0xbd)),!_0x2204f9[_0x102900(0xc7)]&&_0x2204f9[_0x102900(0xc1)]&&_0x29f327[_0x102900(0xbf)](_0x102900(0xc6)),_0x2204f9[_0x102900(0xcf)]&&_0x458205[_0x102900(0xbf)](_0x102900(0xd3)),_0x4a1c40){const _0x9938ab=new _0x9f583a();_0x9938ab[_0x102900(0xd2)]({'attributes':{'class':[_0x102900(0xcc)]}}),_0x9938ab[_0x102900(0xbc)]=_0x1351cb,this[_0x102900(0xd6)]={'tag':_0x102900(0xd1),'attributes':{'class':['ck',_0x102900(0xb8)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4a1c40},'children':[_0x9938ab]};}const _0x3232f3=[{'tag':_0x102900(0xd1),'attributes':{'class':_0x458205,'style':{'background-image':_0x2204f9[_0x102900(0xcf)]?_0x102900(0xbb)+_0x2204f9[_0x102900(0xcf)]+'\x27)':''}}},{'tag':_0x102900(0xd1),'attributes':{'class':_0x2204f9[_0x102900(0xcf)]?_0x102900(0xc8):_0x102900(0xc2),'aria-label':_0x2204f9[_0x102900(0xbe)]},'children':[{'text':_0x2204f9[_0x102900(0xd4)]}]}];this[_0x102900(0xd6)]&&_0x3232f3[_0x102900(0xbf)](this[_0x102900(0xd6)]),this[_0x102900(0xc5)]({'tag':_0x102900(0xd1),'attributes':{'class':_0x29f327,'data-user-id':_0x2204f9['id']},'children':_0x3232f3});}}
|