@ckeditor/ckeditor5-collaboration-core 48.0.0-alpha.5 → 48.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x2cb7e7,Editor as _0x29f16e,Plugin as _0x54ac5f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xe9d00d,Collection as _0x45a218,uid as _0x5b45c5,toArray as _0x232883,first as _0x34ff48,FocusTracker as _0x309353,KeystrokeHandler as _0x52b229}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x345bc2,IconView as _0x331af0,ButtonView as _0x5118f7,DropdownButtonView as _0x253bf8,FocusCycler as _0x1fb3a5,isViewWithFocusCycler as _0x40d89c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x8d9886,IconCheck as _0x40e7cc,IconCancel as _0x331ed3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x15b139,toWidget as _0x5776ff}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x1a1a9a}from'luxon';import{InsertOperation as _0x5026ae,MoveOperation as _0x480534,ModelPosition as _0x26ea7f,ModelRange as _0x251037,MarkerOperation as _0x118df8,MergeOperation as _0x3f89d9,SplitOperation as _0x1c3130,RenameOperation as _0x43d6ce,AttributeOperation as _0x158898,ModelTreeWalker as _0x430b2d,ModelText as _0x5ce25e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0xd681d4}from'diff';class D extends _0x2cb7e7{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x26afda,_0x3c5c15){let _0x2ff8e6;if(_0x3c5c15||(_0x3c5c15=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x3c5c15?_0x2ff8e6=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x2ff8e6=this['context']['editors']['find'](_0x524966=>_0x524966['config']['get']('collaboration.channelId')==_0x3c5c15)),!_0x2ff8e6)throw new _0xe9d00d('permissions-set-permissions-invalid-channel-id',null);const _0x2a703f=_0x2ff8e6['plugins'],_0x51b195=_0x2a703f['has']('CommentsRepository')?_0x2a703f['get']('CommentsRepository'):void 0x0,_0x15cb2a=_0x2a703f['has']('CommentsOnly')&&_0x2a703f['get']('CommentsOnly'),_0x351f53=_0x26afda['includes']('document:write'),_0x493d2e=_0x26afda['includes']('comment:modify_all'),_0x47e320=_0x26afda['includes']('comment:admin'),_0x65d263=_0x26afda['includes']('comment:write'),_0x5f3da3=_0x65d263||_0x47e320,_0x56c828=_0x5f3da3||_0x493d2e,_0x11d56b=_0x351f53||_0x5f3da3;(_0x15cb2a&&(_0x15cb2a['isEnabled']=!_0x351f53&&_0x56c828),_0x2ff8e6 instanceof _0x29f16e)&&(!(_0x351f53||_0x56c828&&_0x51b195)?_0x2ff8e6['enableReadOnlyMode']('no-permissions'):_0x2ff8e6['disableReadOnlyMode']('no-permissions'));if(_0x51b195){_0x51b195['setPermissions']({'admin':_0x47e320,'modifyAll':_0x493d2e,'write':_0x65d263,'resolve':_0x11d56b},_0x3c5c15);const _0x5f26ee=_0x2ff8e6 instanceof _0x29f16e&&_0x2ff8e6['commands']['get']('addCommentThread');_0x5f26ee&&(_0x5f3da3?_0x5f26ee['clearForceDisabled']('noPermissions'):_0x5f26ee['forceDisabled']('noPermissions'));}}}function $(_0x5ab04b,_0x37ae3f){const t=_0x5ab04b['t'];switch(_0x37ae3f){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 L extends _0x2cb7e7{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[D];}constructor(_0x3a0e18){super(_0x3a0e18),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x45a218(),this['_locale']=_0x3a0e18['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:_0x368a27,name:_0x168e75,..._0x25a70e}){if(!_0x368a27||'string'!=typeof _0x368a27)throw new _0xe9d00d('users-add-invalid-id');if(this['users']['has'](_0x368a27))throw new _0xe9d00d('users-add-duplicated-id',null,{'id':_0x368a27});const _0x148554=this['context']['config']['get']('users.getInitialsCallback'),_0x23cb9f={..._0x25a70e,'id':_0x368a27,'name':U(this['_locale'],_0x168e75),'color':this['_getNextColor']()};_0x23cb9f['name']=U(this['_locale'],_0x23cb9f['name']);const _0x36a6e2=new V(_0x23cb9f,_0x148554);return this['users']['add'](_0x36a6e2),_0x36a6e2;}['getUser'](_0x8d61ba){return this['users']['get'](_0x8d61ba);}['useAnonymousUser'](){const _0x2eb10d=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x2eb10d);}['defineMe'](_0x30882){if(this['_myId'])throw new _0xe9d00d('users-me-already-defined',null);const _0x4295c9=this['getUser'](_0x30882);if(!_0x4295c9)throw new _0xe9d00d('users-me-missing-user',null);this['_myId']=_0x30882,_0x4295c9['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x1cb56d=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x1cb56d&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0xd6010f=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0xd6010f,'name':$(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class V{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x1c5f1a,_0xe120b6){this['id']=_0x1c5f1a['id'],this['color']=_0x1c5f1a['color'],this['name']=_0x1c5f1a['name'],this['initials']=_0xe120b6?_0xe120b6(this['name']):this['_computeInitials'](),this['avatar']=_0x1c5f1a['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x255411=this['name']['split']('\x20')['filter'](_0xd14f2e=>/^[\p{Letter}]/u['test'](_0xd14f2e));return 0x1===_0x255411['length']?this['_getInitial'](_0x255411[0x0]):0x0===_0x255411['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x255411[0x0])+this['_getInitial'](_0x255411[_0x255411['length']-0x1]);}['_getInitial'](_0x4ba0da){return String['fromCodePoint'](_0x4ba0da['codePointAt'](0x0))['toUpperCase']();}}function U(_0x2e7021,_0x11b91b=''){return''==(_0x11b91b=_0x11b91b['trim']())?$(_0x2e7021,'Anonymous'):_0x11b91b;}class R{['_id'];constructor(_0x38f4c6){this['_id']=_0x38f4c6;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}['getColorVariable'](){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}['getColorAlphaVariable'](){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}}class F extends _0x345bc2{['name'];['notificationView'];constructor(_0x2fcc22,_0x2aaf73,_0x3e726c){super(_0x2fcc22),this['name']=_0x2aaf73['name'],this['notificationView']=null;const _0xb6c582=['ck','ck-user'],_0x43187f=['ck','ck-user__img'];if(_0x2aaf73['isAnonymous']&&_0x43187f['push']('ck-user__anonymous'),!_0x2aaf73['isAnonymous']&&_0x2aaf73['isMe']&&_0xb6c582['push']('ck-user_me'),_0x2aaf73['avatar']&&_0x43187f['push']('ck-user__avatar'),_0x3e726c){const _0x34fe11=new _0x331af0();_0x34fe11['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x34fe11['content']=_0x8d9886,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3e726c},'children':[_0x34fe11]};}const _0x4af2b6=[{'tag':'div','attributes':{'class':_0x43187f,'style':{'background-image':_0x2aaf73['avatar']?'url(\x27'+_0x2aaf73['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x2aaf73['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x2aaf73['name']},'children':[{'text':_0x2aaf73['initials']}]}];this['notificationView']&&_0x4af2b6['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0xb6c582,'data-user-id':_0x2aaf73['id']},'children':_0x4af2b6});}}class H extends _0x345bc2{['id'];constructor(_0x37c88b,_0x4f8b18){super(_0x37c88b),this['id']='ck-aria-description-'+_0x5b45c5(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x4f8b18}]});}}class z extends _0x5118f7{['render'](){super['render'](),j(this);}}class W extends _0x253bf8{['render'](){super['render'](),j(this);}}function j(_0x8ca092){_0x8ca092['listenTo'](_0x8ca092['element'],'mousedown',(_0x1c86f7,_0x918145)=>{_0x918145['stopPropagation'](),_0x918145['preventDefault']();}),_0x8ca092['listenTo'](_0x8ca092['element'],'mouseup',()=>{_0x8ca092['element']['focus']();});}function Y(_0x570b92){const _0xc664f3=_0x570b92['split'](':');return{'group':_0xc664f3[0x0],'type':_0xc664f3[0x1],'subType':_0xc664f3['length']>=0x5?_0xc664f3[0x2]:null,'id':_0xc664f3['length']<0x5?_0xc664f3[0x2]:_0xc664f3[0x3],'authorId':_0xc664f3['length']<0x5?_0xc664f3[0x3]:_0xc664f3[0x4],'markerCount':0x6==_0xc664f3['length']?_0xc664f3[0x5]:null};}function J(_0x330231,_0x61011b){const _0x23ce05=_0x330231['end']['nodeBefore'];if(_0x23ce05&&_0x23ce05['is']('element')&&_0x61011b['schema']['isBlock'](_0x23ce05)&&!_0x61011b['schema']['isObject'](_0x23ce05)){const _0x184d1e=_0x61011b['createPositionAt'](_0x23ce05,'end');return _0x61011b['createRange'](_0x330231['start'],_0x184d1e);}return _0x330231;}class K extends _0x54ac5f{['afterInit'](){const _0x556c99=this['editor'];if(!_0x556c99['plugins']['has']('AlignmentEditing'))return;_0x556c99['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x54ac5f{['afterInit'](){const _0x21eede=this['editor'],_0x3dc0fe=_0x21eede['plugins']['get']('SuggestionsConversion');for(const _0x1e7d45 of q){if(!_0x21eede['plugins']['has'](_0x1e7d45))continue;const _0x145280=_0x1e7d45['slice'](0x0,-0x7)['toLowerCase']();_0x3dc0fe['registerInlineAttribute'](_0x145280);}}}class Z extends _0x54ac5f{['afterInit'](){const _0x12e725=this['editor'],_0x174047=_0x12e725['plugins']['get']('SuggestionsConversion');_0x12e725['plugins']['has']('BookmarkEditing')&&_0x174047['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x54ac5f{['afterInit'](){const _0x10ade0=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x4c42a3,commandName:_0x4f0e72}of Q)this['editor']['plugins']['has'](_0x4c42a3)&&_0x10ade0['registerInlineAttribute'](_0x4f0e72);}}class tt extends _0x54ac5f{['afterInit'](){const {editor:_0x1db934}=this;if(!_0x1db934['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x238dbf=_0x1db934['plugins']['get']('SuggestionsConversion');_0x238dbf['registerBlockAttribute']('footnotesListStyle'),_0x238dbf['registerBlockAttribute']('footnotesListStart');}}class et extends _0x54ac5f{['afterInit'](){const _0x361319=this['editor'];if(!_0x361319['plugins']['has']('HighlightEditing'))return;_0x361319['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x54ac5f{['afterInit'](){const _0x522fcb=this['editor'];if(!_0x522fcb['plugins']['has']('HtmlEmbed'))return;_0x522fcb['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x54ac5f{['afterInit'](){const _0x3fc653=this['editor'];if(!_0x3fc653['plugins']['has']('ImageEditing'))return;const _0x40b328=_0x3fc653['plugins']['get']('SuggestionsConversion');_0x40b328['registerBlockAttribute']('src'),_0x3fc653['plugins']['has']('ImageResize')&&_0x40b328['registerBlockAttribute']('resizedWidth'),_0x3fc653['plugins']['has']('ImageTextAlternativeEditing')&&_0x40b328['registerBlockAttribute']('alt'),_0x3fc653['plugins']['has']('PictureEditing')&&_0x40b328['registerBlockAttribute']('sources'),_0x3fc653['plugins']['has']('ImageSizeAttributes')&&(_0x40b328['registerBlockAttribute']('width'),_0x40b328['registerBlockAttribute']('height'));}}class nt extends _0x54ac5f{['afterInit'](){const _0x230e2b=this['editor'],_0x5e0fa1=_0x230e2b['plugins']['get']('SuggestionsConversion');_0x230e2b['plugins']['has']('IndentBlock')&&(_0x5e0fa1['registerBlockAttribute']('blockIndent'),_0x230e2b['plugins']['has']('ListEditing')&&(_0x5e0fa1['registerBlockAttribute']('blockIndentList'),_0x5e0fa1['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x54ac5f{['afterInit'](){const _0x1e1ab3=this['editor'];if(!_0x1e1ab3['plugins']['has']('LineHeight'))return;_0x1e1ab3['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x54ac5f{['afterInit'](){const _0x15c866=this['editor'];if(!_0x15c866['plugins']['has']('LinkEditing'))return;const _0x1f1518=_0x15c866['plugins']['get']('SuggestionsConversion'),_0x3f13c9=_0x15c866['commands']['get']('link');_0x1f1518['registerInlineAttribute']('linkHref');for(const _0x16aebb of _0x3f13c9['manualDecorators'])_0x1f1518['registerInlineAttribute'](_0x16aebb['id']);}}class at extends _0x54ac5f{['afterInit'](){const _0xde47de=this['editor'];if(!_0xde47de['plugins']['has']('ListEditing'))return;const _0x349100=_0xde47de['plugins']['get']('SuggestionsConversion'),_0x2e44a2=_0xde47de['plugins']['has']('TodoListEditing');_0x349100['registerBlockAttribute']('listItemId'),_0x349100['registerBlockAttribute']('listType'),_0x349100['registerBlockAttribute']('listIndent'),_0x2e44a2&&_0x349100['registerBlockAttribute']('todoListChecked');}}class ct extends _0x54ac5f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xfc5950=this['editor']['config']['get']('list.properties'),_0x3f9154=this['editor']['plugins']['get']('SuggestionsConversion');_0xfc5950['styles']&&_0x3f9154['registerBlockAttribute']('listStyle'),_0xfc5950['reversed']&&_0x3f9154['registerBlockAttribute']('listReversed'),_0xfc5950['startIndex']&&_0x3f9154['registerBlockAttribute']('listStart');}}class lt extends _0x54ac5f{['afterInit'](){const _0x53ec37=this['editor'],_0x1bb867=_0x53ec37['plugins']['get']('SuggestionsConversion');_0x53ec37['plugins']['has']('MultiLevelList')&&_0x1bb867['registerBlockAttribute']('listMarkerStyle');}}class ut extends _0x54ac5f{['afterInit'](){const _0x4e3b11=this['editor'];if(!_0x4e3b11['plugins']['has']('Style')||!_0x4e3b11['plugins']['has']('DataSchema')||!_0x4e3b11['config']['get']('style.definitions'))return;const _0x4f06d1=_0x4e3b11['plugins']['get']('SuggestionsConversion'),_0x1dcd98=_0x4e3b11['config']['get']('style.definitions'),_0x1d7c32=_0x4e3b11['plugins']['get']('GeneralHtmlSupport'),_0x34c87c=_0x4e3b11['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4e3b11['plugins']['get']('DataSchema'),_0x1dcd98),_0x47b03f=new Set();for(const _0x1ebef2 of _0x34c87c['block']){const _0x46d23b=_0x1d7c32['getGhsAttributeNameForElement'](_0x1ebef2['element']);_0x47b03f['add'](_0x46d23b);}const _0x53d931=new Set();for(const _0x1058b7 of _0x34c87c['inline']){const _0x567cd4=_0x1d7c32['getGhsAttributeNameForElement'](_0x1058b7['element']);_0x53d931['add'](_0x567cd4);for(const _0x20104d of _0x1058b7['ghsAttributes'])_0x53d931['add'](_0x20104d);}for(const _0x2b1511 of _0x47b03f)_0x4f06d1['registerBlockAttribute'](_0x2b1511);for(const _0x3137e9 of _0x53d931)_0x4f06d1['registerInlineAttribute'](_0x3137e9);}}class ht extends _0x54ac5f{['afterInit'](){const _0x5aa68e=this['editor'];if(!_0x5aa68e['plugins']['has']('TableEditing'))return;const _0x2b6beb=_0x5aa68e['plugins']['get']('SuggestionsConversion');_0x2b6beb['registerBlockAttribute']('headingRows'),_0x2b6beb['registerBlockAttribute']('headingColumns');}}class dt extends _0x54ac5f{['afterInit'](){const {plugins:_0x579de9}=this['editor'];if(!_0x579de9['has']('TablePropertiesEditing'))return;const _0x287619=_0x579de9['get']('SuggestionsConversion'),_0x4fd3e5=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x433ebb of _0x4fd3e5)_0x287619['registerBlockAttribute'](_0x433ebb);}}class ft extends _0x54ac5f{['afterInit'](){const _0x20eeaa=this['editor'],_0x1d3b9e=_0x20eeaa['plugins']['get']('SuggestionsConversion');_0x20eeaa['plugins']['has']('TableLayout')&&_0x1d3b9e['registerBlockAttribute']('tableType');}}class gt extends _0x54ac5f{['afterInit'](){const _0x2680dd=this['editor'],_0x36a953=this['editor']['plugins']['get']('SuggestionsConversion');_0x2680dd['plugins']['has']('Uploadcare')&&_0x2680dd['plugins']['has']('UploadcareImageEdit')&&_0x36a953['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x54ac5f{['afterInit'](){const _0x564dd2=this['editor'];if(!_0x564dd2['plugins']['has']('ShiftEnter'))return;const _0x5ade61=_0x564dd2['plugins']['get']('SuggestionsConversion'),_0x19153f=(_0x390160,_0x21538c,_0x14a519,_0x221c84)=>{if(_0x221c84&&!_0x14a519['options']['showSuggestionHighlights'])return;if(!_0x14a519['consumable']['test'](_0x21538c['markerRange'],_0x390160['name']))return;const _0xe8ce67=_0x564dd2['model'];for(const _0xa0bf3b of _0x21538c['markerRange']['getItems']()){if(!_0xa0bf3b['is']('element','softBreak'))continue;const _0x365932='deletion'==_0x21538c['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3d520e,authorId:_0xa370d}=Y(_0x21538c['markerName']),_0x4b168f=_0x14a519['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x365932,'data-suggestion':_0x3d520e,'data-author-id':_0xa370d}),_0x2bb66e=_0x14a519['mapper']['toViewPosition'](_0xe8ce67['createPositionBefore'](_0xa0bf3b));!_0x221c84&&_0x5ade61['_activeMarkers']['includes'](_0x21538c['markerName'])&&_0x14a519['writer']['addClass']('ck-suggestion-marker--active',_0x4b168f),_0x14a519['writer']['insert'](_0x2bb66e,_0x4b168f),_0x14a519['mapper']['bindElementToMarker'](_0x4b168f,_0x21538c['markerName']);}};_0x564dd2['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40de51,_0x11dc33,_0x3f60ea)=>{_0x19153f(_0x40de51,_0x11dc33,_0x3f60ea,!0x1);},{'priority':'high'}),_0x564dd2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27a539,_0x47b4f0,_0x451b9f)=>{_0x19153f(_0x27a539,_0x47b4f0,_0x451b9f,!0x0);},{'priority':'high'});}}class kt extends _0x54ac5f{['afterInit'](){const _0x359cb0=this['editor'];_0x359cb0['plugins']['has']('MediaEmbedEditing')&&(_0x359cb0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x432b2a,{writer:_0x225a75,options:_0x534782})=>{if(_0x534782['showSuggestionHighlights'])return _0x225a75['createEmptyElement']('div');},'converterPriority':'high'}),_0x359cb0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x129257,_0x13c04f,_0x29800b)=>{_0x29800b['options']['showSuggestionHighlights']&&_0x129257['stop']();},{'priority':'high'}));}}class pt extends _0x54ac5f{['afterInit'](){const _0x4e2658=this['editor'];if(!_0x4e2658['plugins']['has']('Table'))return;_0x4e2658['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x534a60,_0x43964a,_0x17dbf2)=>{((_0x3a01b8,_0x565147,_0x5157df)=>{if(!_0x5157df['options']['showSuggestionHighlights'])return;const _0x29b47a=_0x565147['item'];if(!_0x29b47a||!_0x29b47a['is']('element','tableCell'))return;const _0x589096=_0x5157df['mapper']['toViewElement'](_0x29b47a);if(_0x589096){const {id:_0x5c3926,authorId:_0x223b89}=Y(_0x565147['markerName']);_0x15b139(_0x589096,_0x5157df['writer'],(_0x36761e,_0x410fad,_0x1b9911)=>{_0x1b9911['addClass'](_0x232883(_0x410fad['classes']),_0x36761e),_0x1b9911['setAttribute']('data-suggestion',_0x5c3926,_0x36761e),_0x1b9911['setAttribute']('data-author-id',_0x223b89,_0x36761e);});}})(0x0,_0x43964a,_0x17dbf2);},{'priority':'highest'});}}class yt extends _0x54ac5f{['afterInit'](){const _0x5b7cd8=this['editor'];_0x5b7cd8['plugins']['has']('HorizontalLineEditing')&&_0x5b7cd8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x17bf8,{writer:_0x272802,options:_0x353b8d})=>{if(!_0x353b8d['showSuggestionHighlights'])return null;const _0x45aafe=_0x272802['createContainerElement']('div'),_0x4b8e0b=_0x272802['createEmptyElement']('hr');return _0x272802['addClass']('ck-horizontal-line',_0x45aafe),_0x272802['insert'](_0x272802['createPositionAt'](_0x45aafe,0x0),_0x4b8e0b),_0x45aafe;},'converterPriority':'high'});}}class wt extends _0x54ac5f{['afterInit'](){const {plugins:_0x4180c,model:_0x4cbf76}=this['editor'];if(!_0x4180c['has']('TableCellPropertiesEditing'))return;const _0x23deee=_0x4180c['get']('SuggestionsConversion'),_0x5151f4=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x60e1cc of _0x5151f4)_0x23deee['registerBlockAttribute'](_0x60e1cc);_0x4cbf76['schema']['checkAttribute']('tableCell','tableCellType')&&_0x23deee['registerBlockAttribute']('tableCellType');}}class bt extends _0x54ac5f{['afterInit'](){const _0x2e9873=this['editor'];if(!_0x2e9873['plugins']['has']('TableEditing')||!_0x2e9873['config']['get']('table.enableFooters'))return;_0x2e9873['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x54ac5f{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[K,G,Z,X,tt,et,yt,st,it,nt,ot,rt,at,ct,kt,lt,mt,ut,pt,ht,bt,ft,wt,dt,gt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2d345f=this['editor'],_0x395d1f=(_0x52050a,_0x33f306,_0x43da08)=>{const {id:_0x2e95c4,authorId:_0x419239,type:_0x401def,subType:_0x1b681d}=Y(_0x52050a['markerName']),_0x18497b=['ck-suggestion-marker',this['_getClassName'](_0x401def,_0x1b681d)];let _0x1bf7a3=0xbb8;return!_0x43da08&&(this['_activeMarkers']['includes'](_0x52050a['markerName'])&&(_0x18497b['push']('ck-suggestion-marker--active'),_0x1bf7a3=0xbc2)),('deletion'==_0x401def&&(_0x1bf7a3+=0x5),{'classes':_0x18497b,'attributes':{'data-suggestion':_0x2e95c4,'data-author-id':_0x419239},'priority':_0x1bf7a3});};_0x2d345f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4cbfa7,_0x4e1667)=>_0x395d1f(_0x4cbfa7,0x0,!0x1)}),_0x2d345f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x575d13,_0xe3fd92)=>_0x395d1f(_0x575d13,0x0,!0x0)}),_0x2d345f['conversion']['for']('dataDowncast')['add'](_0x283be2=>{_0x283be2['on']('addMarker:suggestion',(_0x3c16b8,_0x1825a8,_0x43afcd)=>{if(!_0x43afcd['options']['showSuggestionHighlights'])return;const _0x1e28b4=_0x1825a8['item'];if(!_0x1e28b4)return;const _0x5ed61b=_0x43afcd['mapper']['toViewElement'](_0x1e28b4);_0x2d345f['model']['schema']['isObject'](_0x1e28b4)&&_0x5ed61b&&!_0x5ed61b['getCustomProperty']('widget')&&_0x5ed61b['is']('containerElement')&&_0x5776ff(_0x5ed61b,_0x43afcd['writer']);},{'priority':'high'});});const _0x203159=(_0x452f6b,_0x17bdfa,_0x456a3c,_0x5cffd5,_0x339695)=>{if(_0x5cffd5&&!_0x456a3c['options']['showSuggestionHighlights'])return;if(!_0x17bdfa['item'])return;const {id:_0x6bf621,authorId:_0x4f41a1,subType:_0x25f88e}=Y(_0x17bdfa['markerName']);if(_0x339695){const _0x5d05aa=_0x25f88e['split']('|')[0x0];if(!this['isBlockAttribute'](_0x5d05aa))return;}if(_0x17bdfa['item']['is']('selection'))return void _0x456a3c['consumable']['consume'](_0x17bdfa['item'],_0x452f6b['name']);const _0x17803e=_0x456a3c['mapper']['toViewElement'](_0x17bdfa['item']);if(_0x17bdfa['item']['is']('element')&&_0x2d345f['model']['schema']['isBlock'](_0x17bdfa['item'])&&!_0x17803e['getCustomProperty']('addHighlight')){_0x456a3c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x17803e),_0x456a3c['writer']['setAttribute']('data-suggestion',_0x6bf621,_0x17803e),_0x456a3c['writer']['setAttribute']('data-author-id',_0x4f41a1,_0x17803e),_0x456a3c['mapper']['bindElementToMarker'](_0x17803e,_0x17bdfa['markerName']),_0x5cffd5||(this['_activeMarkers']['includes'](_0x17bdfa['markerName'])?_0x456a3c['writer']['addClass']('ck-suggestion-marker--active',_0x17803e):_0x456a3c['writer']['removeClass']('ck-suggestion-marker--active',_0x17803e));for(const _0x36f77f of _0x2d345f['model']['createRangeIn'](_0x17bdfa['item'])['getItems']())_0x456a3c['consumable']['consume'](_0x36f77f,_0x452f6b['name']);_0x456a3c['consumable']['consume'](_0x17bdfa['item'],_0x452f6b['name']);}},_0x51a996=(_0xa16bca,_0x3cbf8c,_0x4309bf,_0x15e98a)=>{const _0xa39a25=_0x4309bf['mapper']['markerNameToElements'](_0x3cbf8c['markerName']);if(_0xa39a25){if(_0x15e98a){const {subType:_0x40c27f}=Y(_0x3cbf8c['markerName']),_0xc75ecc=_0x40c27f['split']('|')[0x0];if(!this['isBlockAttribute'](_0xc75ecc))return;}for(const _0x2071c0 of _0xa39a25)_0x2071c0['getCustomProperty']('addHighlight')||(_0x4309bf['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2071c0),_0x4309bf['writer']['removeAttribute']('data-suggestion',_0x2071c0),_0x4309bf['writer']['removeAttribute']('data-author-id',_0x2071c0),_0x4309bf['mapper']['unbindElementFromMarkerName'](_0x2071c0,_0x3cbf8c['markerName']));}};_0x2d345f['conversion']['for']('editingDowncast')['add'](_0x42ad37=>{_0x42ad37['on']('addMarker:suggestion:formatBlock',(_0x50aa79,_0x11e87e,_0x5a277d)=>{_0x203159(_0x50aa79,_0x11e87e,_0x5a277d,!0x1,!0x1);},{'priority':'high'});}),_0x2d345f['conversion']['for']('editingDowncast')['add'](_0x504761=>{_0x504761['on']('addMarker:suggestion:attribute',(_0x2c0aed,_0x2c6eb4,_0xa62edd)=>{_0x203159(_0x2c0aed,_0x2c6eb4,_0xa62edd,!0x1,!0x0);},{'priority':'high'});}),_0x2d345f['conversion']['for']('editingDowncast')['add'](_0x10494c=>{_0x10494c['on']('removeMarker:suggestion:formatBlock',(_0x4d1826,_0x1abc36,_0x424dbd)=>{_0x51a996(0x0,_0x1abc36,_0x424dbd,!0x1);},{'priority':'high'});}),_0x2d345f['conversion']['for']('editingDowncast')['add'](_0x5dd23a=>{_0x5dd23a['on']('removeMarker:suggestion:attribute',(_0x4268b7,_0x14f9be,_0xeb0591)=>{_0x51a996(0x0,_0x14f9be,_0xeb0591,!0x0);},{'priority':'high'});}),_0x2d345f['conversion']['for']('dataDowncast')['add'](_0x152858=>{_0x152858['on']('addMarker:suggestion:formatBlock',(_0x4c8f7f,_0x394cf7,_0xe8c969)=>{_0x203159(_0x4c8f7f,_0x394cf7,_0xe8c969,!0x0,!0x1);},{'priority':'highest'});}),_0x2d345f['conversion']['for']('dataDowncast')['add'](_0x31b582=>{_0x31b582['on']('addMarker:suggestion:attribute',(_0x2efb19,_0x12bb9b,_0x757cca)=>{_0x203159(_0x2efb19,_0x12bb9b,_0x757cca,!0x0,!0x0);},{'priority':'highest'});}),_0x2d345f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5ca43f,_0x52cd56)=>_0x52cd56['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5ca43f['substr'](0xb)}});const _0x29bf30=(_0x4b7472,_0xb4ed3e,_0x1525b3,_0x438f4f,_0xaa4c63)=>{if(_0x438f4f&&!_0x1525b3['options']['showSuggestionHighlights'])return;if(!_0x1525b3['consumable']['test'](_0xb4ed3e['markerRange'],_0x4b7472['name']))return;const _0x14e43c=this['_activeMarkers'],_0xae8476=_0xb4ed3e['markerRange']['getWalker'](),_0x1945eb=_0xb4ed3e['markerRange']['start'],_0x30990b=_0x2d345f['model']['schema'];let _0x12dc3a=null,_0x925ee7=null,_0x1ffaf6=!0x1,_0xade993=!0x1;for(const _0x285b16 of _0xae8476){const _0x50cf68=_0x285b16['item'];_0x1ffaf6=_0x1ffaf6||_0x30990b['isContent'](_0x50cf68);const _0x399d9a=_0x1525b3['mapper']['toViewElement'](_0x50cf68);if(_0x399d9a&&_0x399d9a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x285b16['type']&&(_0x30990b['isBlock'](_0x50cf68)&&!_0x30990b['isLimit'](_0x50cf68)&&(_0x50cf68['nextSibling']||_0x1945eb['isAtEnd']?_0x12dc3a&&_0x12dc3a['parent']==_0x50cf68||(_0x12dc3a=_0x50cf68,_0x5c84a6(_0x285b16['previousPosition']),_0xade993=!0x0):_0x925ee7=_0x925ee7||_0x285b16['previousPosition']));}function _0x5c84a6(_0x5b3a7b){const {id:_0x47f2f4,authorId:_0x44a0d5}=Y(_0xb4ed3e['markerName']),_0x2c218f=_0x1525b3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xaa4c63,'data-suggestion':_0x47f2f4,'data-author-id':_0x44a0d5}),_0x320682=_0x1525b3['mapper']['toViewPosition'](_0x5b3a7b);!_0x438f4f&&_0x14e43c['includes'](_0xb4ed3e['markerName'])&&_0x1525b3['writer']['addClass']('ck-suggestion-marker--active',_0x2c218f),_0x1525b3['writer']['insert'](_0x320682,_0x2c218f),_0x1525b3['mapper']['bindElementToMarker'](_0x2c218f,_0xb4ed3e['markerName']);}_0x1ffaf6||_0xade993||!_0x925ee7||_0x5c84a6(_0x925ee7);};_0x2d345f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e3990,_0x5a8d7b,_0x22d5a9)=>{_0x29bf30(_0x4e3990,_0x5a8d7b,_0x22d5a9,!0x1,'merge');},{'priority':'high'}),_0x2d345f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x37b65a,_0x4c993f,_0x22d4b8)=>{_0x29bf30(_0x37b65a,_0x4c993f,_0x22d4b8,!0x0,'merge');},{'priority':'high'}),_0x2d345f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c0743,_0x22912b,_0x472b3a)=>{_0x29bf30(_0x1c0743,_0x22912b,_0x472b3a,!0x1,'split');},{'priority':'high'}),_0x2d345f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x31e5d7,_0x53b706,_0x3022fb)=>{_0x29bf30(_0x31e5d7,_0x53b706,_0x3022fb,!0x0,'split');},{'priority':'high'}),_0x2d345f['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x39426c,_0x29c699,_0x2c04cc)=>{((_0x43a876,_0x3f485c,_0x2f8dd5)=>{const _0x5e34e0=_0x2f8dd5['mapper']['markerNameToElements'](_0x3f485c['markerName']);if(_0x5e34e0){for(const _0x1d2117 of _0x5e34e0)(_0x1d2117['hasClass']('ck-suggestion-marker-split')||_0x1d2117['hasClass']('ck-suggestion-marker-merge'))&&(_0x2f8dd5['mapper']['unbindElementFromMarkerName'](_0x1d2117,_0x3f485c['markerName']),_0x2f8dd5['writer']['remove'](_0x1d2117));}})(0x0,_0x29c699,_0x2c04cc);},{'priority':'high'});const _0x1ff24d=(_0x215fa5,_0x57a903,_0x4cc374,_0x2264eb)=>{if(_0x2264eb&&!_0x4cc374['options']['showSuggestionHighlights'])return;const _0x6da766=_0x57a903['markerRange']['start'],_0x29b6ea=_0x57a903['markerRange']['end'],_0x375708=_0x2d345f['model']['schema'];if(!_0x6da766['isTouching'](_0x29b6ea)||!_0x6da766['nodeAfter'])return;const _0xff7f51=_0x6da766['nodeAfter'];if(_0x375708['isBlock'](_0xff7f51)&&!_0x375708['isLimit'](_0xff7f51)&&_0x375708['checkChild'](_0xff7f51,'$text')){if(!_0x4cc374['consumable']['consume'](_0x57a903['markerRange'],_0x215fa5['name']))return;const {id:_0x312257,authorId:_0x1055c2}=Y(_0x57a903['markerName']),_0x37022d=_0x4cc374['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x312257,'data-author-id':_0x1055c2}),_0x320d9d=_0x4cc374['mapper']['toViewPosition'](_0x29b6ea);!_0x2264eb&&this['_activeMarkers']['includes'](_0x57a903['markerName'])&&_0x4cc374['writer']['addClass']('ck-suggestion-marker--active',_0x37022d),_0x4cc374['writer']['insert'](_0x320d9d,_0x37022d),_0x4cc374['mapper']['bindElementToMarker'](_0x37022d,_0x57a903['markerName']);}};_0x2d345f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x225263,_0x38e764,_0x55fa55)=>{_0x1ff24d(_0x225263,_0x38e764,_0x55fa55,!0x1);},{'priority':'high'}),_0x2d345f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5136a5,_0x236f40,_0x2a3c6a)=>{_0x1ff24d(_0x5136a5,_0x236f40,_0x2a3c6a,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x17fc44,_0x37c90b,_0x24e1e0)=>{this['_activeMarkers']=_0x24e1e0['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0xf8e624){this['_blockAttributeKeys']['add'](_0xf8e624);}['registerInlineAttribute'](_0x331b62){this['_inlineAttributeKeys']['add'](_0x331b62);}['isBlockAttribute'](_0x56ea1d){return this['_blockAttributeKeys']['has'](_0x56ea1d);}['isInlineAttribute'](_0x5695ec){return this['_inlineAttributeKeys']['has'](_0x5695ec);}['isRegisteredAttribute'](_0x486682){return this['isInlineAttribute'](_0x486682)||this['isBlockAttribute'](_0x486682);}['_getClassName'](_0x206ba2,_0x22d3d8){if('attribute'!=_0x206ba2)return'ck-suggestion-marker-'+_0x206ba2;const _0x534e56=_0x22d3d8['split']('|')[0x0];return this['isBlockAttribute'](_0x534e56)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x1ab1ab={},_0x17eb94){if(void 0x0!==_0x1ab1ab['dateTimeFormat']&&'function'!=typeof _0x1ab1ab['dateTimeFormat'])throw new _0xe9d00d('invalid-date-time-format');return _0x4bfdb0=>{const _0x3d0a9d='string'==typeof _0x4bfdb0?_0x1a1a9a['fromISO'](_0x4bfdb0):_0x1a1a9a['fromJSDate'](_0x4bfdb0),_0xb3e902=_0x1a1a9a['now'](),_0x1c12ff=Math['floor'](_0xb3e902['diff'](_0x3d0a9d,'days')['days']);return _0x1ab1ab['dateTimeFormat']?_0x1ab1ab['dateTimeFormat'](_0x3d0a9d['toJSDate'](),_0x17eb94&&_0x17eb94['t']?_0x17eb94['t']:void 0x0):0x0===_0x1c12ff?_0x17eb94?$(_0x17eb94,'Today')+'\x20'+_0x3d0a9d['toFormat']('hh:mma'):_0x3d0a9d['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x1c12ff?_0x17eb94?$(_0x17eb94,'Yesterday')+'\x20'+_0x3d0a9d['toFormat']('hh:mma'):_0x3d0a9d['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x1c12ff<0x7?_0x17eb94?$(_0x17eb94,'Last')+'\x20'+$(_0x17eb94,_0x3d0a9d['toFormat']('EEEE'))+'\x20'+_0x3d0a9d['toFormat']('hh:mma'):_0x3d0a9d['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x3d0a9d['toFormat']('LL-dd-yyyy\x20hh:mma');};}function xt(_0xa0c664,_0x3303f8){const _0x3a2e87=_0xa0c664['mapper']['markerNameToElements'](_0x3303f8['name']);if(!_0x3a2e87)return null;const _0x5aa742=_0x34ff48(_0x3a2e87['values']());return _0xa0c664['view']['domConverter']['mapViewToDom'](_0x5aa742)||null;}function It(_0x481420,_0x3a332a){if(0x0===_0x3a332a['length'])return null;const _0x5cc122=[],_0x94b27e=_0x481420['view']['domConverter'];for(const _0x55de91 of _0x3a332a){const _0xafad67=_0x481420['mapper']['markerNameToElements'](_0x55de91['name']);if(!_0xafad67)continue;const _0x9db5f8=Array['from'](_0xafad67)['map'](_0x33e824=>_0x94b27e['mapViewToDom'](_0x33e824))['filter'](_0x4dcc64=>!!_0x4dcc64);_0x5cc122['push'](..._0x9db5f8);}if(0x0===_0x5cc122['length'])return null;const _0x2895cb=[];for(const _0x51d17b of _0x5cc122){const _0x54b9bd=_0x51d17b['getClientRects']()['item'](0x0);_0x54b9bd&&_0x2895cb['push']({'x':_0x54b9bd['x'],'y':_0x54b9bd['y'],'domElement':_0x51d17b});}return 0x0===_0x2895cb['length']?null:(_0x2895cb['sort']((_0x1706f4,_0x541813)=>_0x1706f4['y']-_0x541813['y']||_0x1706f4['x']-_0x541813['x']),_0x2895cb['map'](_0x1ae163=>_0x1ae163['domElement']));}function _t(_0x83e72b,{limit:_0x3d19ef,suffix:_0x559f8c='...'}){const _0x37bce6=[];let _0x302b63=0x0;const _0x4ede4f=_0x83e72b['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x41b1f8=0x0;_0x41b1f8<_0x4ede4f['length'];_0x41b1f8++){let _0x399404=_0x4ede4f[_0x41b1f8];const _0x1c8a4f=St(_0x399404);if(_0x399404['startsWith']('<')){if(_0x302b63>=_0x3d19ef){const _0x4523fb=_0x399404['match'](/[a-zA-Z]+/);if(!_0x4523fb){_0x4ede4f[_0x41b1f8]='';continue;}const _0x33c1e4=_0x4523fb[0x0];_0x399404['startsWith']('</')?(_0x37bce6['length']&&(_0x399404=''),_0x37bce6['pop']()):(_0x37bce6['push'](_0x33c1e4),_0x399404='');}}else{if(_0x302b63>=_0x3d19ef)_0x399404='';else{if(_0x302b63+_0x1c8a4f['length']>=_0x3d19ef){let _0x5c018a=_0x3d19ef-_0x302b63;if('\x20'===_0x1c8a4f[_0x5c018a-0x1])_0x5c018a--;else{const _0x54c74f=_0x1c8a4f['slice'](_0x5c018a)['indexOf']('\x20');-0x1!==_0x54c74f?_0x5c018a+=_0x54c74f:_0x5c018a=_0x399404['length'];}_0x399404=_0x1c8a4f['slice'](0x0,_0x5c018a)['join']('')+_0x559f8c,_0x302b63=_0x3d19ef;}else _0x302b63+=_0x1c8a4f['length'];}}_0x4ede4f[_0x41b1f8]=_0x399404;}return _0x4ede4f['join']('\x0a')['replace'](/\n/g,'');}function St(_0x338992){const _0xc9de57=[];for(let _0x5f3a79=0x0;_0x5f3a79<_0x338992['length'];_0x5f3a79++){const _0x48eae4=_0x338992['substring'](_0x5f3a79)['match'](/^&[a-z0-9#]+;/);if(_0x48eae4){const _0xf551c1=_0x48eae4[0x0];_0xc9de57['push'](_0xf551c1),_0x5f3a79+=_0xf551c1['length']-0x1;}else _0xc9de57['push'](_0x338992[_0x5f3a79]);}return _0xc9de57;}class Et extends _0x345bc2{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x1ab708){super(_0x1ab708);const _0x2d0cd0=this['bindTemplate'];this['set']('message',$(_0x1ab708,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x1ab708,$(_0x1ab708,'Yes'),_0x40e7cc,'submit'),this['cancelView']=this['_createButtonView'](_0x1ab708,$(_0x1ab708,'No'),_0x331ed3,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x309353(),this['keystrokes']=new _0x52b229(),this['focusCycler']=new _0x1fb3a5({'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':_0x2d0cd0['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'](_0x56216e,_0x1ff232,_0x323988,_0x176173){const _0x1ca763=new _0x5118f7(_0x56216e);return _0x1ca763['label']=_0x1ff232,_0x1ca763['icon']=_0x323988,_0x1ca763['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x176173}}),_0x1ca763['on']('execute',()=>this['fire'](_0x176173)),_0x1ca763;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x26b13d=>{this['keystrokes']['listenTo'](_0x26b13d['element']),this['focusTracker']['add'](_0x26b13d['element']);}),this['keystrokes']['set']('esc',(_0xa7c7f2,_0xe24ba4)=>{this['fire']('cancel'),_0xe24ba4();});}}function At(_0x7dc2bc){return class extends _0x7dc2bc{['showConfirm'](_0x1fe048,_0x4f622a){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x1fe048,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x4f622a['appendChild'](this['confirmView']['element']),_0x4f622a['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x4ce6ba,_0x37f2df,_0x226727)=>{_0x226727||_0x4f622a['classList']['remove']('ck-confirm-view-active');}),new Promise(_0xf44e78=>this['confirmView']['on']('submit',_0xf44e78));}['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 Mt(_0x57b700){let _0x121c38=0x0,_0x143a1d=0x0;for(const _0x5f0ee0 of Nt(_0x57b700))_0x121c38=(_0x121c38<<0x5)-_0x121c38+_0x5f0ee0,_0x121c38&=_0x121c38,[_0x121c38,_0x143a1d]=[_0x143a1d,_0x121c38];return Ot(_0x121c38)+Ot(_0x143a1d);}function*Tt(_0x257638){null==_0x257638||null==_0x257638?yield 0x12b9b0a1:0x0===_0x257638||!0x1===_0x257638?yield 0x0:0x1===_0x257638||0x1==_0x257638?yield 0x1:Array['isArray'](_0x257638)?yield*function*(_0x891fdc){for(const _0x3a3cd5 of _0x891fdc)yield*Tt(_0x3a3cd5);}(_0x257638):'object'==typeof _0x257638?yield*Nt(_0x257638):'string'==typeof _0x257638?yield*Pt(_0x257638):'number'==typeof _0x257638&&(yield _0x257638);}function*Nt(_0x5945db){if(yield Bt('{'),_0x5945db){const _0x154564=Object['keys'](_0x5945db)['sort']();for(const _0x6e3018 of _0x154564){yield*Pt(_0x6e3018),yield Bt(':');const _0x38de31=_0x5945db[_0x6e3018];yield*Tt(_0x38de31);}}yield Bt('}');}function*Pt(_0xc2c832){yield Bt('\x22');for(const _0x5719c0 of _0xc2c832)yield Bt(_0x5719c0);yield Bt('\x22');}function Bt(_0x42370f){return _0x42370f['charCodeAt'](0x0);}function Ot(_0x1659bc){return(_0x1659bc*=Math['sign'](_0x1659bc))['toString'](0x24);}const Dt=['root','roots','initialData','context','toolbar','rootsAttributes'],$t=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Lt(_0x54f70f,_0x546b80,_0x2ec8f3,_0x957ad1=[]){const _0x5762c5='string'==typeof _0x54f70f?_0x2ec8f3['get'](_0x54f70f)['constructor']:_0x54f70f['prototype']['constructor'];if(_0x546b80['has'](_0x5762c5))return _0x546b80['get'](_0x5762c5);_0x546b80['set'](_0x5762c5,!0x0);const _0xbed085=[...$t,..._0x957ad1]['map'](_0x53e185=>{if(_0x2ec8f3['has'](_0x53e185))return _0x2ec8f3['get'](_0x53e185)['constructor'];})['filter'](_0x38dcc6=>_0x38dcc6);if(_0x5762c5&&_0xbed085['includes'](_0x5762c5))return _0x546b80['set'](_0x5762c5,!0x1),!0x1;if(!_0x5762c5['requires'])return _0x546b80['set'](_0x5762c5,!0x0),!0x0;const _0x5e3cb9=_0x5762c5['requires']['every'](_0xb06e84=>Lt(_0xb06e84,_0x546b80,_0x2ec8f3,_0x957ad1));return _0x546b80['set'](_0x5762c5,_0x5e3cb9),_0x5e3cb9;}function Vt(_0x387afb,_0x1d6dea){const _0x4588cd={};for(const _0x5d68ce of _0x387afb['config']['names']())Dt['includes'](_0x5d68ce)||(_0x4588cd[_0x5d68ce]=_0x387afb['config']['get'](_0x5d68ce));const _0x556710=_0x4588cd['plugins']||[],_0x33ea67=_0x387afb['constructor']['builtinPlugins']||[],_0x179662=_0x556710['length']?_0x556710:_0x33ea67,_0x217f48=_0x4588cd['extraPlugins']||[];delete _0x4588cd['extraPlugins'];const _0x5816f1=_0x4588cd['removePlugins']||[];delete _0x4588cd['removePlugins'];const _0x3f42e9=_0x387afb['_context']['config']['get']('plugins')||[],_0x340dab=_0x179662['concat'](_0x217f48)['concat'](_0x3f42e9)['map'](_0x2bc8e2=>'string'==typeof _0x2bc8e2?_0x33ea67['find'](_0x43e211=>_0x43e211['pluginName']==_0x2bc8e2):_0x2bc8e2)['filter'](_0x5178a0=>!_0x5816f1['includes'](_0x5178a0)&&!_0x5816f1['includes'](_0x5178a0['pluginName'])),_0x45d43c=Array['from'](new Set(_0x340dab)),_0x5e4fe5=new Map();return _0x4588cd['plugins']=_0x45d43c['filter'](_0x277a22=>Lt(_0x277a22,_0x5e4fe5,_0x387afb['plugins'],_0x1d6dea)),_0x4588cd;}function Ut(_0x463793,_0x2df127){const _0x5c0107=[];_0x463793['document']['selection']['on']('change:range',()=>{const _0x4e28e7=function(_0x328878,_0x238ae4){const _0x3b816d=[];for(const _0x458976 of _0x328878['markers']){const _0x4d600f=_0x458976['getRange']();(_0x4d600f['containsPosition'](_0x238ae4)||_0x4d600f['start']['isEqual'](_0x238ae4)||_0x4d600f['end']['isEqual'](_0x238ae4))&&_0x3b816d['push'](_0x458976);}return _0x3b816d;}(_0x463793,_0x463793['document']['selection']['focus']),_0x31ce19=[],_0x44a523=[],_0x13045a=[];for(const _0x6acda2 of _0x5c0107)_0x4e28e7['includes'](_0x6acda2)||_0x31ce19['push'](_0x6acda2);for(const _0x262095 of _0x4e28e7)_0x5c0107['includes'](_0x262095)||_0x44a523['push'](_0x262095),_0x13045a['push'](_0x262095);(_0x31ce19['length']||_0x44a523['length'])&&_0x2df127({'left':_0x31ce19,'entered':_0x44a523}),_0x5c0107['length']=0x0,_0x5c0107['push'](..._0x13045a);});}const Rt='Ctrl+Shift+E';function Ft(_0x249b31,_0x547c0f){const _0x47d2d3=_0x249b31['element'];_0x249b31['keystrokes']['listenTo'](_0x47d2d3);for(const _0x52451a of _0x547c0f)Ht(_0x249b31,_0x52451a);_0x547c0f['on']('change',(_0xab9eb5,_0x52524f)=>{for(const _0x1f2894 of _0x52524f['removed'])zt(_0x249b31,_0x1f2894);for(const _0x2958c3 of Array['from'](_0x52524f['added'])['reverse']())Ht(_0x249b31,_0x2958c3);}),_0x249b31['keystrokes']['set']('enter',(_0x4dd913,_0x46777f)=>{_0x47d2d3===_0x4dd913['target']&&(_0x249b31['focusCycler']['focusFirst'](),_0x46777f());},{'filter':_0x29bf87=>_0x29bf87['target']===_0x47d2d3}),_0x249b31['keystrokes']['set']('esc',(_0x1d19be,_0x3e5138)=>{_0x47d2d3!==_0x1d19be['target']?_0x249b31['focus']():_0x249b31['fire']('escape'),_0x3e5138();}),_0x249b31['keystrokes']['set']('arrowdown',(_0xf18c86,_0x41334a)=>{_0x47d2d3===_0xf18c86['target']&&(_0x249b31['fire']('arrowdown'),_0x41334a());}),_0x249b31['keystrokes']['set']('arrowup',(_0x2db2cb,_0x20033d)=>{_0x47d2d3===_0x2db2cb['target']&&(_0x249b31['fire']('arrowup'),_0x20033d());});}function Ht(_0x1c582c,_0x4d9ed2){_0x4d9ed2['isRendered']&&(_0x1c582c['focusTracker']['add'](_0x4d9ed2['element']),_0x1c582c['keystrokes']['listenTo'](_0x4d9ed2['element']),_0x40d89c(_0x4d9ed2)&&function(_0x83b8d4,_0x4190b2){const _0x5075ff=_0x83b8d4['actions'],_0xdb3381=_0x4190b2['actions'];for(const _0x5bb5cc of Object['keys'](_0x5075ff))if(_0x5bb5cc in _0xdb3381&&_0x5075ff[_0x5bb5cc]!==_0xdb3381[_0x5bb5cc])return!0x1;return!0x0;}(_0x1c582c['focusCycler'],_0x4d9ed2['focusCycler'])&&_0x1c582c['focusCycler']['chain'](_0x4d9ed2['focusCycler']));}function zt(_0x226f94,_0x96aa9a){_0x226f94['focusTracker']['remove'](_0x96aa9a['element']),_0x226f94['keystrokes']['stopListening'](_0x96aa9a['element']),_0x40d89c(_0x96aa9a)&&_0x226f94['focusCycler']['unchain'](_0x96aa9a['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x2cb7e7{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x29f16e?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x4044e0,_0x1e6285)=>{_0x1e6285['on']('ready',()=>{this['_integrateEditor'](_0x1e6285);});});}get['editor'](){if(this['context']instanceof _0x29f16e)return this['context'];{const _0xa8487c=this['context']['editors']['first'];if(!_0xa8487c)throw new _0xe9d00d('documentcompare-no-editor',this);return _0xa8487c;}}['getDiff'](_0x1e3584,_0x12cb7d,_0x415d76={'anchor':'main','markDeletions':!0x1}){let _0x18f1c2,_0x2e1423;const _0x32a48f=this['editor'];if('string'==typeof _0x415d76['anchor']){const _0x46864b=_0x32a48f['model']['document']['getRoot'](_0x415d76['anchor']);if(!_0x46864b)throw new _0xe9d00d('documentcompare-compare-no-root',this,{'anchor':_0x415d76['anchor']});_0x18f1c2=_0x46864b,_0x2e1423=_0x32a48f['model']['createPositionAt'](_0x46864b,0x0);}else _0x18f1c2=_0x415d76['anchor']['clone'](),_0x2e1423=_0x415d76['anchor']['clone']();const _0x366511=_0x32a48f['data']['parse'](_0x1e3584,_0x18f1c2),_0xea25e8=_0x32a48f['data']['parse'](_0x12cb7d,_0x18f1c2);return new Jt(_0x366511,_0xea25e8,_0x32a48f,{'anchor':_0x2e1423,'markDeletions':_0x415d76['markDeletions']});}['isMarkedRemoveOperation'](_0x29fea5){return'marker'==_0x29fea5['type']&&_0x29fea5['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x89c9ac){_0x89c9ac['conversion']['for']('upcast')['add'](_0x22cfbd=>{_0x22cfbd['on']('element',(_0x642bf7,_0x520572,_0x2faeb9)=>{if(_0x520572['modelRange'])for(const _0xddb604 of _0x520572['modelRange']['getItems']({'shallow':!0x0})){if(_0xddb604['is']('$textProxy'))continue;const _0x580cda=_0x520572['viewItem']['getAttribute'](jt);_0x580cda&&_0x2faeb9['writer']['setAttribute'](Wt,_0x580cda,_0xddb604);}},{'priority':'lowest'});}),_0x89c9ac['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x527839,_0x11cec5,_0xd29909,_0x3cac58){this['_editor']=_0xd29909,this['_markDeletions']=!!_0x3cac58['markDeletions'],this['_anchor']=_0x3cac58['anchor'];const _0x704aba=this['_tokenizeModel'](_0x527839),_0x34e803=this['_tokenizeModel'](_0x11cec5);this['_diffItems']=this['_diffModelTokens'](_0x704aba,_0x34e803),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x527839['markers'],_0x11cec5['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x29a684=this['_editor']['model']['document'],_0x4570a6=[];let _0x35f1e6=_0x29a684['version'];for(const _0x5588e9 of this['_operationsData'])switch(_0x5588e9['type']){case'attribute':{const _0x3595b5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']),_0x4ed532=_0x3595b5['getShiftedBy'](_0x5588e9['howMany']),_0x5e6b87=new _0x251037(_0x3595b5,_0x4ed532),_0x46744e=JSON['parse'](_0x5588e9['oldValue']),_0x49b77c=JSON['parse'](_0x5588e9['newValue']);_0x4570a6['push'](new _0x158898(_0x5e6b87,_0x5588e9['key'],_0x46744e,_0x49b77c,_0x35f1e6++));break;}case'insert':{const _0x22223c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']),_0x30f283=this['_makeModelFromTokens'](_0x5588e9['tokens']);_0x4570a6['push'](new _0x5026ae(_0x22223c,_0x30f283,_0x35f1e6++));break;}case'remove':{const _0x3dfffd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']),_0x39d0a3=new _0x26ea7f(_0x29a684['graveyard'],[0x0]);_0x4570a6['push'](new _0x480534(_0x3dfffd,_0x5588e9['howMany'],_0x39d0a3,_0x35f1e6++));break;}case'rename':{const _0x30fd97=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']);_0x4570a6['push'](new _0x43d6ce(_0x30fd97,_0x5588e9['oldName'],_0x5588e9['newName'],_0x35f1e6++));break;}case'split':{const _0x2b4de3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']),_0xacc5aa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']['slice'](0x0,-0x1));_0xacc5aa['offset']++,_0x4570a6['push'](new _0x1c3130(_0x2b4de3,Number['NEGATIVE_INFINITY'],_0xacc5aa,null,_0x35f1e6++));break;}case'merge':{const _0x4709ce=_0x5588e9['path']['slice'](),_0x20de46=_0x4709ce['slice'](0x0,-0x1);_0x20de46[_0x20de46['length']-0x1]++,_0x20de46['push'](0x0);const _0x923992=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x20de46),_0x4ff990=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4709ce),_0x480ca2=new _0x26ea7f(_0x29a684['graveyard'],[0x0]);_0x4570a6['push'](new _0x3f89d9(_0x923992,Number['NEGATIVE_INFINITY'],_0x4ff990,_0x480ca2,_0x35f1e6++));break;}case'marker':case'markedRemove':{let _0x4a09c4=null;if(_0x5588e9['range']){const _0x125748=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['range']['start']),_0x42c3b1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['range']['end']);_0x4a09c4=new _0x251037(_0x125748,_0x42c3b1);}const _0x54187c='marker'==_0x5588e9['type']?_0x5588e9['name']:'$markedRemove:'+_0x5b45c5();_0x4570a6['push'](new _0x118df8(_0x54187c,null,_0x4a09c4,_0x29a684['model']['markers'],!0x0,_0x35f1e6++));break;}case'unwrap':{const _0x14ebc5=_0x5588e9['path']['slice']();_0x14ebc5['push'](0x0);const _0x273a27=_0x5588e9['path']['slice'](),_0x45edfa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x14ebc5),_0xe0d953=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x273a27),_0xe2f84a=new _0x26ea7f(_0x29a684['graveyard'],[0x0]);_0x4570a6['push'](new _0x480534(_0x45edfa,_0x5588e9['howMany'],_0xe0d953,_0x35f1e6++)),_0x4570a6['push'](new _0x480534(_0xe0d953['getShiftedBy'](_0x5588e9['howMany']),0x1,_0xe2f84a,_0x35f1e6++));break;}case'wrap':{const _0x301123=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['range']['start']),_0x1d10fd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['range']['end']),_0x4ca959=_0x5588e9['token']['element']['_clone'](!0x1),_0x2eaeb8=_0x5588e9['range']['end']['slice']();_0x2eaeb8['push'](0x0);const _0xe65a8c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2eaeb8);_0x4570a6['push'](new _0x5026ae(_0x1d10fd,_0x4ca959,_0x35f1e6++)),_0x4570a6['push'](new _0x480534(_0x301123,_0x1d10fd['offset']-_0x301123['offset'],_0xe65a8c,_0x35f1e6++));break;}}return _0x4570a6;}['_tokenizeModel'](_0x4fa28c){const _0x12fd0d=[],_0x3dcfea=_0x251037['_createIn'](_0x4fa28c),_0x778108=new _0x430b2d({'boundaries':_0x3dcfea});let _0x3cf1f8='',_0xb31125=null;const _0x57cdd5=[''],_0x544b8b=new Map();for(const _0x45159d of _0x778108)if('elementStart'==_0x45159d['type']||'elementEnd'==_0x45159d['type']){let _0x1686c6=_0x57cdd5[0x0];''!==_0x3cf1f8&&(_0x12fd0d['push'](...this['_makeTokensFromTextByWords'](_0x3cf1f8,_0xb31125,_0x1686c6)),_0x3cf1f8='');const _0x1a4450=_0x45159d['item'];let _0x20268b;_0x1a4450['getAttribute'](Wt)?_0x20268b=_0x1a4450['getAttribute'](Wt):'elementStart'==_0x45159d['type']?(_0x20268b=qt(_0x1a4450),_0x544b8b['set'](_0x1a4450,_0x20268b)):_0x20268b=_0x544b8b['get'](_0x1a4450);const _0x5d82cc=this['_getElementCategory'](_0x1a4450);'solid'==_0x5d82cc&&('elementStart'==_0x45159d['type']?(_0x1686c6=_0x20268b,_0x57cdd5['unshift'](_0x1686c6)):_0x57cdd5['shift']());const _0x5e73e4={'type':'element','element':_0x1a4450,'elementId':_0x20268b,'category':_0x5d82cc,'isStart':'elementStart'==_0x45159d['type'],'limitId':_0x1686c6};_0x12fd0d['push'](_0x5e73e4);}else''==_0x3cf1f8&&(_0xb31125=_0x45159d['previousPosition']['clone']()),_0x3cf1f8+=_0x45159d['item']['data'];return''!==_0x3cf1f8&&_0x12fd0d['push'](...this['_makeTokensFromTextByWords'](_0x3cf1f8,_0xb31125,_0x57cdd5[0x0])),_0x12fd0d;}['_makeTokensFromTextByWords'](_0x29744b,_0x2c9df4,_0x1430e0){const _0x49209=_0x29744b['matchAll'](/(\s)/g),_0xbcfe1a=Array['from'](_0x49209)['map'](_0x508564=>_0x508564['index']);_0xbcfe1a['push'](_0x29744b['length']),0x0==_0xbcfe1a[0x0]&&_0xbcfe1a['shift']();const _0x1d23f9=[],_0x220192=_0x2c9df4['parent'];let _0x19ed2f=0x0,_0x4e8d70=_0x2c9df4['offset'];for(let _0x3122ce=0x0;_0x3122ce<_0xbcfe1a['length'];_0x3122ce++)_0x1d23f9['push']({'type':'text','data':_0x29744b['slice'](_0x19ed2f,_0xbcfe1a[_0x3122ce]),'parent':_0x220192,'offset':_0x4e8d70,'limitId':_0x1430e0}),_0x19ed2f=_0xbcfe1a[_0x3122ce],_0x4e8d70=_0x2c9df4['offset']+_0xbcfe1a[_0x3122ce];return _0x1d23f9;}['_getElementCategory'](_0x256e41){const _0x5871f4=this['_editor']['model']['schema'];return _0x5871f4['isLimit'](_0x256e41)||_0x5871f4['isContent'](_0x256e41)||_0x5871f4['isInline'](_0x256e41)?'solid':_0x5871f4['isBlock'](_0x256e41)?'block':'container';}['_diffModelTokens'](_0x4705e1,_0x4795ce){const _0x364424=_0xd681d4(_0x4705e1,_0x4795ce,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x364424);const _0x4d38ea=_0x364424['flatMap'](_0x2234b3=>{const _0x7e31d0=_0x2234b3['added']?'added':_0x2234b3['removed']?'removed':'unchanged';return _0x2234b3['value']['map'](_0x2224ba=>({'token':_0x2224ba,'change':_0x7e31d0}));});let _0x3c2810=0x0;for(const _0x3e7820 of _0x4d38ea)'added'!=_0x3e7820['change']&&('unchanged'==_0x3e7820['change']&&(_0x3e7820['before']=_0x4705e1[_0x3c2810]),_0x3c2810++);return _0x4d38ea;}['_handleUnclosedBlockOpeningTags'](_0x5c4736){for(let _0x4e63d6=0x0;_0x4e63d6<_0x5c4736['length']-0x1;_0x4e63d6++)if(_0x5c4736[_0x4e63d6]['removed']&&_0x5c4736[_0x4e63d6+0x1]['added']){const _0x38b573=this['_findUnclosedBlockOpeningToken'](_0x5c4736[_0x4e63d6]['value']);if(null!==_0x38b573){const _0x3bbb85=this['_findUnclosedBlockOpeningToken'](_0x5c4736[_0x4e63d6+0x1]['value']),_0x3c582c=_0x5c4736[_0x4e63d6]['value']['splice'](_0x38b573),_0x4d1fcf=_0x5c4736[_0x4e63d6+0x1]['value']['splice'](_0x3bbb85),_0x58828a=[_0x4d1fcf['shift']()];_0x3c582c['shift']();const _0x4a9697={'value':_0x3c582c,'removed':!0x0},_0x4bcaef={'value':_0x4d1fcf,'added':!0x0},_0xade87f={'value':_0x58828a};_0x5c4736['splice'](_0x4e63d6+0x2,0x0,_0xade87f,_0x4a9697,_0x4bcaef);}}}['_findUnclosedBlockOpeningToken'](_0x25cb1d){let _0x3953e3=0x0,_0x471f0b=-0x1;for(let _0x47050b=0x0;_0x47050b<_0x25cb1d['length'];_0x47050b++){const _0x8a2d1d=_0x25cb1d[_0x47050b];'element'==_0x8a2d1d['type']&&'block'==_0x8a2d1d['category']&&(_0x3953e3+=_0x8a2d1d['isStart']?0x1:-0x1,_0x8a2d1d['isStart']&&(_0x471f0b=_0x47050b));}return 0x0===_0x3953e3?null:_0x471f0b;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x51a514=0x0;_0x51a514<this['_diffItems']['length'];_0x51a514++){const _0x1571fd=this['_diffItems'][_0x51a514]['change'],_0x51e3b5=[];_0x51e3b5['push'](this['_diffItems'][_0x51a514]);let _0x3364ac=_0x51a514+0x1;for(;this['_diffItems'][_0x3364ac]&&this['_diffItems'][_0x3364ac]['change']==_0x1571fd;)_0x51e3b5['push'](this['_diffItems'][_0x3364ac]),_0x3364ac++,_0x51a514++;const _0x158f52=_0x51e3b5['map'](_0x1c4e81=>_0x1c4e81['token']);if('unchanged'==_0x1571fd)_0x51e3b5['map'](_0x282ba3=>_0x282ba3['before'])['forEach'](_0x150c19=>this['_traverseOverItem'](_0x150c19));else{if('removed'==_0x1571fd){if(this['_markDeletions']){const _0x5615e7=this['_path']['slice']();_0x158f52['forEach'](_0x1fc12c=>this['_traverseOverItem'](_0x1fc12c));const _0x7a6466=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x5615e7,'end':_0x7a6466}});}else this['_handleChanged'](_0x158f52,!0x0,this['_path']['slice']());}else{const _0x59477c=_0x158f52['filter'](_0x4eae95=>'element'!=_0x4eae95['type']||'container'!=_0x4eae95['category']);this['_handleChanged'](_0x59477c,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xd6f052=0x0;_0xd6f052<this['_diffItems']['length'];_0xd6f052++){const _0x3ab234=this['_diffItems'][_0xd6f052]['change'],_0x28c8c8=[];_0x28c8c8['push'](this['_diffItems'][_0xd6f052]);let _0x566559=_0xd6f052+0x1;for(;this['_diffItems'][_0x566559]&&this['_diffItems'][_0x566559]['change']==_0x3ab234;)_0x28c8c8['push'](this['_diffItems'][_0x566559]),_0x566559++,_0xd6f052++;const _0xc27b91=_0x28c8c8['map'](_0x5be39f=>_0x5be39f['token']);if('unchanged'==_0x3ab234){const _0x24678d=_0x28c8c8['map'](_0x45b360=>_0x45b360['before']);this['_handleUnchanged'](_0x24678d,_0xc27b91);}else('removed'!=_0x3ab234||this['_markDeletions'])&&_0xc27b91['forEach'](_0x336103=>{this['_traverseOverItem'](_0x336103);});}}['_calculateMarkersOperationsData'](_0x4dc842,_0x1527bb){const _0x51961f={};for(const [_0x5dad21]of _0x4dc842)_0x51961f[_0x5dad21]=null;for(const [_0x45954c,_0x39f8d7]of _0x1527bb)_0x51961f[_0x45954c]=_0x39f8d7;const _0x1a2e25=Object['entries'](_0x51961f)['map'](([_0x1d41d3,_0x836c52])=>({'type':'marker','name':_0x1d41d3,'range':_0x836c52?{'start':_0x836c52['start']['path']['slice'](),'end':_0x836c52['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x1a2e25);}['_handleUnwraps'](){const _0x466512=new Map(),_0x13e1d0=[],_0x391384=[0x0];let _0x13e0aa=this['_diffItems']['length']+0x1;for(let _0x2b670f=this['_diffItems']['length']-0x1;_0x2b670f>=0x0;_0x2b670f--){const {token:_0x2f0b6b,before:_0x22d1f8,change:_0x57f057}=this['_diffItems'][_0x2b670f];if('removed'!=_0x57f057&&(_0x13e0aa=_0x2b670f),'element'!=_0x2f0b6b['type']||'container'!=_0x2f0b6b['category']||'added'==_0x57f057)continue;const _0x17af41=_0x22d1f8?_0x22d1f8['element']:_0x2f0b6b['element'];if(_0x2f0b6b['isStart']){const _0x1deb25=_0x466512['get'](_0x17af41),_0x26bbb5=this['_diffItems'][_0x1deb25];('removed'==_0x57f057||'removed'==_0x26bbb5['change'])&&_0x13e0aa<_0x1deb25&&(this['_operationsData']['push']({'type':'unwrap','path':_0x17af41['getPath'](),'howMany':_0x17af41['maxOffset']+_0x391384[0x0]}),_0x391384['shift'](),_0x391384[0x0]+=_0x17af41['maxOffset']-0x1,_0x13e1d0['push'](_0x2b670f),_0x13e1d0['push'](_0x1deb25));}else _0x466512['set'](_0x17af41,_0x2b670f),_0x391384['unshift'](0x0);}_0x13e1d0['sort']((_0x1245cd,_0x328a0d)=>_0x328a0d-_0x1245cd),_0x13e1d0['forEach'](_0x436b9c=>{const _0x23e61b=this['_diffItems'][_0x436b9c];'removed'==_0x23e61b['change']?this['_diffItems']['splice'](_0x436b9c,0x1):(_0x23e61b['change']='added',delete _0x23e61b['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x3cf075=[];for(let _0x1db651=0x0;_0x1db651<this['_diffItems']['length'];_0x1db651++){const {change:_0x1683a9,token:_0x4b9500}=this['_diffItems'][_0x1db651];if('added'==_0x1683a9&&'element'==_0x4b9500['type']&&'container'==_0x4b9500['category']){if(_0x4b9500['isStart'])_0x3cf075['push'](this['_path']['slice']());else{if(!_0x4b9500['isStart']){const _0x4b4e2d=_0x3cf075['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x4b4e2d,'end':this['_path']['slice']()},'token':_0x4b9500}),this['_path'][this['_path']['length']-0x1]=_0x4b4e2d[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x1683a9||this['_markDeletions'])&&this['_traverseOverItem'](_0x4b9500);}}['_handleUnchanged'](_0x459e62,_0x556fb6){for(let _0x37f0cb=0x0;_0x37f0cb<_0x459e62['length'];_0x37f0cb++){const _0x5b6f80=_0x459e62[_0x37f0cb];if('element'==_0x5b6f80['type']&&_0x5b6f80['isStart']){const _0x437993=_0x556fb6[_0x37f0cb];'block'==_0x5b6f80['category']&&this['_handleElementRename'](_0x5b6f80['element'],_0x437993['element'],this['_path']),this['_handleElementAttributeChanges'](_0x5b6f80['element'],_0x437993['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x437993);}else{if('element'!=_0x5b6f80['type']||_0x5b6f80['isStart']){if('text'==_0x5b6f80['type']){const _0x4f7f68=this['_path']['slice'](),_0x497291=[],_0x4da829=[];for(;_0x459e62[_0x37f0cb]&&'text'==_0x459e62[_0x37f0cb]['type'];)_0x497291['push'](_0x459e62[_0x37f0cb]),_0x4da829['push'](_0x556fb6[_0x37f0cb]),this['_path'][this['_path']['length']-0x1]+=_0x459e62[_0x37f0cb]['data']['length'],_0x37f0cb++;_0x37f0cb--,this['_handleTextAttributeChanges'](_0x497291,_0x4da829,_0x4f7f68);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x40ea5d,_0x572db3,_0x425e0a){const _0xf023b=[],_0x49c510=[],_0x472808=_0x425e0a['slice']();for(let _0x4ca772=0x0;_0x4ca772<_0x40ea5d['length'];_0x4ca772++){const _0x3835d7=_0x40ea5d[_0x4ca772],_0x2947f5=_0x425e0a['slice']();if('element'!=_0x3835d7['type']||_0x3835d7['isStart'])'element'==_0x3835d7['type']&&_0x3835d7['isStart']?(_0x425e0a['push'](0x0),_0x572db3||this['_parents']['push'](_0x3835d7),_0x49c510['push']({'before':_0x2947f5,'after':_0x425e0a['slice'](),'index':_0x4ca772})):_0x425e0a[_0x425e0a['length']-0x1]+=_0x3835d7['data']['length'];else{let _0x16c459;_0x425e0a['pop'](),_0x425e0a[_0x425e0a['length']-0x1]++,_0x16c459=_0x572db3?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x49c510['length']?_0x49c510['pop']():_0xf023b['push']({'before':_0x2947f5,'after':_0x425e0a['slice'](),'index':_0x4ca772,'related':_0x16c459});}}if(_0x49c510['length']!==_0xf023b['length'])throw new _0xe9d00d('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x40ea5d,'isRemove':_0x572db3});const _0x5bf7cc=[{'after':_0x472808['slice'](),'index':-0x1},..._0xf023b,..._0x49c510,{'before':_0x425e0a['slice'](),'index':_0x40ea5d['length']}];if(_0x572db3){for(let _0x5b539a=_0x5bf7cc['length']-0x1;_0x5b539a>=0x1;_0x5b539a--){const _0x27e011=_0x5bf7cc[_0x5b539a-0x1]['after'],_0x167a20=_0x5bf7cc[_0x5b539a]['before'],_0x21d392=_0x167a20[_0x167a20['length']-0x1]-_0x27e011[_0x27e011['length']-0x1];_0x21d392&&(this['_operationsData']['push']({'type':'remove','path':_0x27e011,'howMany':_0x21d392}),_0x167a20[_0x167a20['length']-0x1]-=_0x21d392);}for(const {before:_0x5b50e1}of _0xf023b)this['_operationsData']['push']({'type':'merge','path':_0x5b50e1});}else for(let _0x336279=0x0;_0x336279<_0x5bf7cc['length']-0x1;_0x336279++){const _0x4a3b6f=_0x5bf7cc[_0x336279]['after'],_0x1e29c4=_0x5bf7cc[_0x336279+0x1]['before'],_0x27f58a=_0x5bf7cc[_0x336279]['index']+0x1,_0x58184c=_0x5bf7cc[_0x336279+0x1]['index'];if(_0x27f58a!==_0x58184c&&this['_operationsData']['push']({'type':'insert','path':_0x4a3b6f,'tokens':_0x40ea5d['slice'](_0x27f58a,_0x58184c)}),_0x336279<_0xf023b['length']){this['_operationsData']['push']({'type':'split','path':_0x1e29c4});const _0xaf6303=_0x40ea5d[_0x49c510[_0x49c510['length']-0x1-_0x336279]['index']],_0x28689b=_0xf023b[_0x336279]['after'],_0x116933=_0xf023b[_0x336279]['related']['element'];this['_handleElementRename'](_0x116933,_0xaf6303['element'],_0x28689b),this['_handleElementAttributeChanges'](_0x116933,_0xaf6303['element'],_0x28689b);}}}['_traverseOverItem'](_0x211d82){'element'==_0x211d82['type']&&_0x211d82['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x211d82)):'element'!=_0x211d82['type']||_0x211d82['isStart']?'text'==_0x211d82['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x211d82['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x5ec664,_0x326cbd,_0x1fa7e4){_0x5ec664['name']!=_0x326cbd['name']&&this['_operationsData']['push']({'type':'rename','path':_0x1fa7e4['slice'](),'oldName':_0x5ec664['name'],'newName':_0x326cbd['name']});}['_handleElementAttributeChanges'](_0x3dcc25,_0x58f6fb,_0x423a91){const _0x10cee4=this['_getAttributeChanges'](_0x3dcc25['getAttributes'](),_0x58f6fb['getAttributes']());for(const _0x1e9765 in _0x10cee4){const {oldValue:_0x293b25,newValue:_0x1f7be5}=_0x10cee4[_0x1e9765];this['_operationsData']['push']({'type':'attribute','path':_0x423a91['slice'](),'howMany':0x1,'key':_0x1e9765,'oldValue':_0x293b25,'newValue':_0x1f7be5});}}['_handleTextAttributeChanges'](_0x65455e,_0x31eda7,_0x40b686){const _0x32d47b=this['_operationsData'],_0x2a0ef5=_0x65455e[0x0]['parent'],_0x3b370c=_0x65455e[0x0]['offset'],_0x477a4c=_0x31eda7[0x0]['parent'],_0x58c983=_0x31eda7[0x0]['offset'],_0x2a44aa=_0x65455e['reduce']((_0x26d9f3,_0x2ab27e)=>_0x26d9f3+_0x2ab27e['data']['length'],0x0),_0x3ed118=this['_getAttrsForOffsets'](_0x2a0ef5,_0x3b370c,_0x2a44aa),_0x20726b=this['_getAttrsForOffsets'](_0x477a4c,_0x58c983,_0x2a44aa),_0x41d0c6={};for(let _0x1e651c=0x0;_0x1e651c<_0x2a44aa;_0x1e651c++){const _0x26dde4=_0x3ed118[_0x3b370c+_0x1e651c],_0x569a37=_0x20726b[_0x58c983+_0x1e651c],_0x3f30fd=this['_getAttributeChanges'](_0x26dde4,_0x569a37);for(const _0x176e39 in _0x41d0c6)_0x3f30fd[_0x176e39]||_0xc89073(_0x176e39);for(const _0x3d8cc3 in _0x3f30fd){const {oldValue:_0x2c06e0,newValue:_0x1fc1ca}=_0x3f30fd[_0x3d8cc3],_0x39c3ea=_0x41d0c6[_0x3d8cc3];_0x39c3ea?_0x39c3ea['oldValue']==_0x2c06e0&&_0x39c3ea['newValue']==_0x1fc1ca?_0x39c3ea['length']++:(_0xc89073(_0x3d8cc3),_0x41d0c6[_0x3d8cc3]={'oldValue':_0x2c06e0,'newValue':_0x1fc1ca,'start':_0x1e651c,'length':0x1}):_0x41d0c6[_0x3d8cc3]={'oldValue':_0x2c06e0,'newValue':_0x1fc1ca,'start':_0x1e651c,'length':0x1};}}for(const _0x1056e8 in _0x41d0c6)_0xc89073(_0x1056e8);function _0xc89073(_0x466d1d){const _0x54078c=_0x41d0c6[_0x466d1d],_0x5344a6=_0x40b686['slice']();_0x5344a6[_0x5344a6['length']-0x1]+=_0x54078c['start'],_0x32d47b['push']({'type':'attribute','path':_0x5344a6,'howMany':_0x54078c['length'],'key':_0x466d1d,'oldValue':_0x54078c['oldValue'],'newValue':_0x54078c['newValue']}),delete _0x41d0c6[_0x466d1d];}}['_getAttributeChanges'](_0x338338,_0x1ab3d6){const _0x451071={};for(const [_0x2eb4e4,_0x4d9884]of _0x338338)_0x451071[_0x2eb4e4]={'oldValue':JSON['stringify'](_0x4d9884),'newValue':'null'};for(const [_0xf3d0c6,_0x298c0a]of _0x1ab3d6){const _0x19301c=JSON['stringify'](_0x298c0a);_0x451071[_0xf3d0c6]?_0x451071[_0xf3d0c6]['oldValue']==_0x19301c?delete _0x451071[_0xf3d0c6]:_0x451071[_0xf3d0c6]['newValue']=_0x19301c:_0x451071[_0xf3d0c6]={'oldValue':'null','newValue':_0x19301c};}return delete _0x451071[Wt],_0x451071;}['_getAttrsForOffsets'](_0x282937,_0xe8797a,_0x324888){const _0x56112c=new Array(_0xe8797a+_0x324888);let _0x5c5951=_0x282937['getChildAtOffset'](_0xe8797a),_0x119983=_0x5c5951['startOffset'];for(;_0x5c5951&&_0x119983<_0xe8797a+_0x324888;){const _0x11ff39=Array['from'](_0x5c5951['getAttributes']());_0x56112c['fill'](_0x11ff39,_0x119983,_0x119983+_0x5c5951['offsetSize']),_0x119983+=_0x5c5951['offsetSize'],_0x5c5951=_0x5c5951['nextSibling'];}return _0x56112c;}['_getPositionFromAnchorAndPath'](_0x77a50e,_0xbd26c9){const _0x1d5c9b=[..._0x77a50e['path']['slice'](0x0,-0x1),_0x77a50e['offset']+_0xbd26c9[0x0],..._0xbd26c9['slice'](0x1)];return new _0x26ea7f(_0x77a50e['root'],_0x1d5c9b);}['_makeModelFromTokens'](_0x5e7812){const _0x55cfed=[];let _0x3d75f7=null;for(const _0x5e3be8 of _0x5e7812)if('element'!=_0x5e3be8['type']||_0x5e3be8['isStart']||_0x3d75f7!=_0x5e3be8['element']){if(!_0x3d75f7){if('text'==_0x5e3be8['type']){const _0x467fc4=_0x26ea7f['_createAt'](_0x5e3be8['parent'],_0x5e3be8['offset']),_0x138127=_0x251037['_createFromPositionAndShift'](_0x467fc4,_0x5e3be8['data']['length']),_0x192c88=Array['from'](_0x138127['getItems']())['map'](_0xb0d6a6=>new _0x5ce25e(_0xb0d6a6['data'],_0xb0d6a6['getAttributes']()));_0x55cfed['push'](..._0x192c88);}else{_0x3d75f7=_0x5e3be8['element'];const _0x3a4cc3=_0x5e3be8['element']['_clone'](!0x0);_0x3a4cc3['_removeAttribute'](Wt);for(const _0x27f9a2 of this['_editor']['model']['createRangeIn'](_0x3a4cc3)['getItems']())_0x27f9a2['is']('element')&&_0x27f9a2['_removeAttribute'](Wt);_0x55cfed['push'](_0x3a4cc3);}}}else _0x3d75f7=null;return _0x55cfed;}}function Kt(_0x5a74b8,_0x7a8dc7){return _0x5a74b8['type']===_0x7a8dc7['type']&&(_0x5a74b8['limitId']===_0x7a8dc7['limitId']&&('text'==_0x5a74b8['type']?_0x5a74b8['data']==_0x7a8dc7['data']:function(_0x3bda3a,_0x3bcef8){if(_0x3bda3a['isStart']!=_0x3bcef8['isStart'])return!0x1;if(_0x3bda3a['isStart']&&_0x3bda3a['elementId']!=_0x3bcef8['elementId'])return!0x1;if(_0x3bda3a['category']!=_0x3bcef8['category'])return!0x1;if('block'==_0x3bda3a['category'])return!0x0;if('container'==_0x3bda3a['category']&&_0x3bda3a['elementId']!=_0x3bcef8['elementId'])return!0x1;return _0x3bda3a['element']['name']==_0x3bcef8['element']['name'];}(_0x5a74b8,_0x7a8dc7)));}function qt(_0x1699c9){return Mt({'name':_0x1699c9['name'],...Object['fromEntries'](_0x1699c9['getAttributes']())});}export{H as AriaDescriptionView,At as ConfirmMixin,Wt as DATA_ID_MODEL_ATTRIBUTE,jt as DATA_ID_VIEW_ATTRIBUTE,Yt as DocumentCompare,Rt as FOCUS_ANNOTATION_KEYSTROKE,z as LateFocusButtonView,W as LateFocusDropdownButtonView,D as Permissions,vt as SuggestionsConversion,F as UserView,L as Users,J as fixElementSuggestionRange,It as getAllMarkersDomElementsSorted,Ct as getDateTimeFormatter,xt as getMarkerDomElement,Mt as hashObject,Vt as sanitizeEditorConfig,Ft as setupThreadKeyboardNavigation,Y as splitSuggestionMarkerName,Ut as surroundingMarkersDetector,_t as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0x181460,Editor as _0x4618e7,Plugin as _0x4f96e1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x105727,Collection as _0x52029b,uid as _0x458b85,toArray as _0x2deb76,first as _0x43c38f,FocusTracker as _0x264b6d,KeystrokeHandler as _0x51ac82}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x5681cf,IconView as _0x1a3b23,ButtonView as _0x29663c,DropdownButtonView as _0x56cd6f,FocusCycler as _0x1c6b43,isViewWithFocusCycler as _0x66c7b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x1604a4,IconCheck as _0x23bb36,IconCancel as _0x5b91e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x4f0187,toWidget as _0x360d76}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x135f9f}from'luxon';import{InsertOperation as _0x3ed5d1,MoveOperation as _0x496d95,ModelPosition as _0x23989e,ModelRange as _0x442be6,MarkerOperation as _0x3b69bf,MergeOperation as _0x5a5c5c,SplitOperation as _0xe65c7f,RenameOperation as _0x812343,AttributeOperation as _0x3a5cdf,ModelTreeWalker as _0x254e06,ModelText as _0x4d91fe}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0xbc841c}from'diff';class D extends _0x181460{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x2aa989,_0x43fa48){let _0x328ea8;if(_0x43fa48||(_0x43fa48=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x43fa48?_0x328ea8=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x328ea8=this['context']['editors']['find'](_0x59c123=>_0x59c123['config']['get']('collaboration.channelId')==_0x43fa48)),!_0x328ea8)throw new _0x105727('permissions-set-permissions-invalid-channel-id',null);const _0x3ab98f=_0x328ea8['plugins'],_0x388533=_0x3ab98f['has']('CommentsRepository')?_0x3ab98f['get']('CommentsRepository'):void 0x0,_0x19cddf=_0x3ab98f['has']('CommentsOnly')&&_0x3ab98f['get']('CommentsOnly'),_0x27fa2a=_0x2aa989['includes']('document:write'),_0x137d56=_0x2aa989['includes']('comment:modify_all'),_0x233bcc=_0x2aa989['includes']('comment:admin'),_0x25d2ba=_0x2aa989['includes']('comment:write'),_0x239d88=_0x25d2ba||_0x233bcc,_0xe52086=_0x239d88||_0x137d56,_0x117153=_0x27fa2a||_0x239d88;(_0x19cddf&&(_0x19cddf['isEnabled']=!_0x27fa2a&&_0xe52086),_0x328ea8 instanceof _0x4618e7)&&(!(_0x27fa2a||_0xe52086&&_0x388533)?_0x328ea8['enableReadOnlyMode']('no-permissions'):_0x328ea8['disableReadOnlyMode']('no-permissions'));if(_0x388533){_0x388533['setPermissions']({'admin':_0x233bcc,'modifyAll':_0x137d56,'write':_0x25d2ba,'resolve':_0x117153},_0x43fa48);const _0x4593d7=_0x328ea8 instanceof _0x4618e7&&_0x328ea8['commands']['get']('addCommentThread');_0x4593d7&&(_0x239d88?_0x4593d7['clearForceDisabled']('noPermissions'):_0x4593d7['forceDisabled']('noPermissions'));}}}function $(_0x1fc3a8,_0x42cf66){const t=_0x1fc3a8['t'];switch(_0x42cf66){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 L extends _0x181460{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[D];}constructor(_0x30342a){super(_0x30342a),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x52029b(),this['_locale']=_0x30342a['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:_0xb716a5,name:_0x4a8418,..._0x2d4bca}){if(!_0xb716a5||'string'!=typeof _0xb716a5)throw new _0x105727('users-add-invalid-id');if(this['users']['has'](_0xb716a5))throw new _0x105727('users-add-duplicated-id',null,{'id':_0xb716a5});const _0x1ac50c=this['context']['config']['get']('users.getInitialsCallback'),_0x3da5cd={..._0x2d4bca,'id':_0xb716a5,'name':U(this['_locale'],_0x4a8418),'color':this['_getNextColor']()};_0x3da5cd['name']=U(this['_locale'],_0x3da5cd['name']);const _0xf44097=new V(_0x3da5cd,_0x1ac50c);return this['users']['add'](_0xf44097),_0xf44097;}['getUser'](_0x3d67e0){return this['users']['get'](_0x3d67e0);}['useAnonymousUser'](){const _0x176ad4=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x176ad4);}['defineMe'](_0x1da4be){if(this['_myId'])throw new _0x105727('users-me-already-defined',null);const _0x5eb27c=this['getUser'](_0x1da4be);if(!_0x5eb27c)throw new _0x105727('users-me-missing-user',null);this['_myId']=_0x1da4be,_0x5eb27c['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0xf9193=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0xf9193&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0x19f0bc=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x19f0bc,'name':$(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class V{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x1c144e,_0xf5b1c7){this['id']=_0x1c144e['id'],this['color']=_0x1c144e['color'],this['name']=_0x1c144e['name'],this['initials']=_0xf5b1c7?_0xf5b1c7(this['name']):this['_computeInitials'](),this['avatar']=_0x1c144e['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5146f6=this['name']['split']('\x20')['filter'](_0x2b84f8=>/^[\p{Letter}]/u['test'](_0x2b84f8));return 0x1===_0x5146f6['length']?this['_getInitial'](_0x5146f6[0x0]):0x0===_0x5146f6['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5146f6[0x0])+this['_getInitial'](_0x5146f6[_0x5146f6['length']-0x1]);}['_getInitial'](_0x5a5bdf){return String['fromCodePoint'](_0x5a5bdf['codePointAt'](0x0))['toUpperCase']();}}function U(_0xfa3204,_0x33fe7b=''){return''==(_0x33fe7b=_0x33fe7b['trim']())?$(_0xfa3204,'Anonymous'):_0x33fe7b;}class R{['_id'];constructor(_0x4418a5){this['_id']=_0x4418a5;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}['getColorVariable'](){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}['getColorAlphaVariable'](){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}}class F extends _0x5681cf{['name'];['notificationView'];constructor(_0x42e582,_0x5dcb3c,_0x4483ce){super(_0x42e582),this['name']=_0x5dcb3c['name'],this['notificationView']=null;const _0x35c781=['ck','ck-user'],_0x2c93c6=['ck','ck-user__img'];if(_0x5dcb3c['isAnonymous']&&_0x2c93c6['push']('ck-user__anonymous'),!_0x5dcb3c['isAnonymous']&&_0x5dcb3c['isMe']&&_0x35c781['push']('ck-user_me'),_0x5dcb3c['avatar']&&_0x2c93c6['push']('ck-user__avatar'),_0x4483ce){const _0x30fa97=new _0x1a3b23();_0x30fa97['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x30fa97['content']=_0x1604a4,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4483ce},'children':[_0x30fa97]};}const _0x3ae66c=[{'tag':'div','attributes':{'class':_0x2c93c6,'style':{'background-image':_0x5dcb3c['avatar']?'url(\x27'+_0x5dcb3c['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x5dcb3c['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x5dcb3c['name']},'children':[{'text':_0x5dcb3c['initials']}]}];this['notificationView']&&_0x3ae66c['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x35c781,'data-user-id':_0x5dcb3c['id']},'children':_0x3ae66c});}}class H extends _0x5681cf{['id'];constructor(_0x42eb64,_0x3d0158){super(_0x42eb64),this['id']='ck-aria-description-'+_0x458b85(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x3d0158}]});}}class z extends _0x29663c{['render'](){super['render'](),j(this);}}class W extends _0x56cd6f{['render'](){super['render'](),j(this);}}function j(_0x2abe21){_0x2abe21['listenTo'](_0x2abe21['element'],'mousedown',(_0x2e9f40,_0x12446e)=>{_0x12446e['stopPropagation'](),_0x12446e['preventDefault']();}),_0x2abe21['listenTo'](_0x2abe21['element'],'mouseup',()=>{_0x2abe21['element']['focus']();});}function Y(_0x12f778){const _0x5034de=_0x12f778['split'](':');return{'group':_0x5034de[0x0],'type':_0x5034de[0x1],'subType':_0x5034de['length']>=0x5?_0x5034de[0x2]:null,'id':_0x5034de['length']<0x5?_0x5034de[0x2]:_0x5034de[0x3],'authorId':_0x5034de['length']<0x5?_0x5034de[0x3]:_0x5034de[0x4],'markerCount':0x6==_0x5034de['length']?_0x5034de[0x5]:null};}function J(_0xf665ff,_0x4cc415){const _0x57e09f=_0xf665ff['end']['nodeBefore'];if(_0x57e09f&&_0x57e09f['is']('element')&&_0x4cc415['schema']['isBlock'](_0x57e09f)&&!_0x4cc415['schema']['isObject'](_0x57e09f)){const _0x13a1f9=_0x4cc415['createPositionAt'](_0x57e09f,'end');return _0x4cc415['createRange'](_0xf665ff['start'],_0x13a1f9);}return _0xf665ff;}class K extends _0x4f96e1{['afterInit'](){const _0x5f1e4a=this['editor'];if(!_0x5f1e4a['plugins']['has']('AlignmentEditing'))return;_0x5f1e4a['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4f96e1{['afterInit'](){const _0x43ed0b=this['editor'],_0x36b3c7=_0x43ed0b['plugins']['get']('SuggestionsConversion');for(const _0x195946 of q){if(!_0x43ed0b['plugins']['has'](_0x195946))continue;const _0x4f4b5a=_0x195946['slice'](0x0,-0x7)['toLowerCase']();_0x36b3c7['registerInlineAttribute'](_0x4f4b5a);}}}class Z extends _0x4f96e1{['afterInit'](){const _0xd35d63=this['editor'],_0x25231a=_0xd35d63['plugins']['get']('SuggestionsConversion');_0xd35d63['plugins']['has']('BookmarkEditing')&&_0x25231a['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x4f96e1{['afterInit'](){const _0x25e354=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x3de455,commandName:_0x1ef1d3}of Q)this['editor']['plugins']['has'](_0x3de455)&&_0x25e354['registerInlineAttribute'](_0x1ef1d3);}}class tt extends _0x4f96e1{['afterInit'](){const {editor:_0x40fd6a}=this;if(!_0x40fd6a['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x1afa8f=_0x40fd6a['plugins']['get']('SuggestionsConversion');_0x1afa8f['registerBlockAttribute']('footnotesListStyle'),_0x1afa8f['registerBlockAttribute']('footnotesListStart');}}class et extends _0x4f96e1{['afterInit'](){const _0x3029cc=this['editor'];if(!_0x3029cc['plugins']['has']('HighlightEditing'))return;_0x3029cc['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x4f96e1{['afterInit'](){const _0x56ab79=this['editor'];if(!_0x56ab79['plugins']['has']('HtmlEmbed'))return;_0x56ab79['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x4f96e1{['afterInit'](){const _0x2e849a=this['editor'];if(!_0x2e849a['plugins']['has']('ImageEditing'))return;const _0x474beb=_0x2e849a['plugins']['get']('SuggestionsConversion');_0x474beb['registerBlockAttribute']('src'),_0x2e849a['plugins']['has']('ImageResize')&&_0x474beb['registerBlockAttribute']('resizedWidth'),_0x2e849a['plugins']['has']('ImageTextAlternativeEditing')&&_0x474beb['registerBlockAttribute']('alt'),_0x2e849a['plugins']['has']('PictureEditing')&&_0x474beb['registerBlockAttribute']('sources'),_0x2e849a['plugins']['has']('ImageSizeAttributes')&&(_0x474beb['registerBlockAttribute']('width'),_0x474beb['registerBlockAttribute']('height'));}}class nt extends _0x4f96e1{['afterInit'](){const _0x52d429=this['editor'],_0x31a399=_0x52d429['plugins']['get']('SuggestionsConversion');_0x52d429['plugins']['has']('IndentBlock')&&(_0x31a399['registerBlockAttribute']('blockIndent'),_0x52d429['plugins']['has']('ListEditing')&&(_0x31a399['registerBlockAttribute']('blockIndentList'),_0x31a399['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x4f96e1{['afterInit'](){const _0x557adf=this['editor'];if(!_0x557adf['plugins']['has']('LineHeight'))return;_0x557adf['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x4f96e1{['afterInit'](){const _0x495ba4=this['editor'];if(!_0x495ba4['plugins']['has']('LinkEditing'))return;const _0x1a2e54=_0x495ba4['plugins']['get']('SuggestionsConversion'),_0xc46115=_0x495ba4['commands']['get']('link');_0x1a2e54['registerInlineAttribute']('linkHref');for(const _0x36c305 of _0xc46115['manualDecorators'])_0x1a2e54['registerInlineAttribute'](_0x36c305['id']);}}class at extends _0x4f96e1{['afterInit'](){const _0x418c31=this['editor'];if(!_0x418c31['plugins']['has']('ListEditing'))return;const _0x5014f4=_0x418c31['plugins']['get']('SuggestionsConversion'),_0x442477=_0x418c31['plugins']['has']('TodoListEditing');_0x5014f4['registerBlockAttribute']('listItemId'),_0x5014f4['registerBlockAttribute']('listType'),_0x5014f4['registerBlockAttribute']('listIndent'),_0x442477&&_0x5014f4['registerBlockAttribute']('todoListChecked');}}class ct extends _0x4f96e1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5afb26=this['editor']['config']['get']('list.properties'),_0x2b3b67=this['editor']['plugins']['get']('SuggestionsConversion');_0x5afb26['styles']&&_0x2b3b67['registerBlockAttribute']('listStyle'),_0x5afb26['reversed']&&_0x2b3b67['registerBlockAttribute']('listReversed'),_0x5afb26['startIndex']&&_0x2b3b67['registerBlockAttribute']('listStart');}}class lt extends _0x4f96e1{['afterInit'](){const _0x56f0f5=this['editor'],_0x2897f0=_0x56f0f5['plugins']['get']('SuggestionsConversion');_0x56f0f5['plugins']['has']('MultiLevelList')&&_0x2897f0['registerBlockAttribute']('listMarkerStyle');}}class ut extends _0x4f96e1{['afterInit'](){const _0x2cca02=this['editor'];if(!_0x2cca02['plugins']['has']('Style')||!_0x2cca02['plugins']['has']('DataSchema')||!_0x2cca02['config']['get']('style.definitions'))return;const _0x553d56=_0x2cca02['plugins']['get']('SuggestionsConversion'),_0x50046f=_0x2cca02['config']['get']('style.definitions'),_0x562dfc=_0x2cca02['plugins']['get']('GeneralHtmlSupport'),_0x93c1cc=_0x2cca02['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2cca02['plugins']['get']('DataSchema'),_0x50046f),_0xb16990=new Set();for(const _0x2e5851 of _0x93c1cc['block']){const _0x30c182=_0x562dfc['getGhsAttributeNameForElement'](_0x2e5851['element']);_0xb16990['add'](_0x30c182);}const _0xba76a1=new Set();for(const _0x808326 of _0x93c1cc['inline']){const _0x597df2=_0x562dfc['getGhsAttributeNameForElement'](_0x808326['element']);_0xba76a1['add'](_0x597df2);for(const _0x14ea89 of _0x808326['ghsAttributes'])_0xba76a1['add'](_0x14ea89);}for(const _0xa336a0 of _0xb16990)_0x553d56['registerBlockAttribute'](_0xa336a0);for(const _0x2fdf0e of _0xba76a1)_0x553d56['registerInlineAttribute'](_0x2fdf0e);}}class ht extends _0x4f96e1{['afterInit'](){const _0x390df4=this['editor'];if(!_0x390df4['plugins']['has']('TableEditing'))return;const _0x28bcd2=_0x390df4['plugins']['get']('SuggestionsConversion');_0x28bcd2['registerBlockAttribute']('headingRows'),_0x28bcd2['registerBlockAttribute']('headingColumns');}}class dt extends _0x4f96e1{['afterInit'](){const {plugins:_0x1ec356}=this['editor'];if(!_0x1ec356['has']('TablePropertiesEditing'))return;const _0x359ff4=_0x1ec356['get']('SuggestionsConversion'),_0x4f0cc2=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x511cc2 of _0x4f0cc2)_0x359ff4['registerBlockAttribute'](_0x511cc2);}}class ft extends _0x4f96e1{['afterInit'](){const _0x11b1f6=this['editor'],_0x1cd00c=_0x11b1f6['plugins']['get']('SuggestionsConversion');_0x11b1f6['plugins']['has']('TableLayout')&&_0x1cd00c['registerBlockAttribute']('tableType');}}class gt extends _0x4f96e1{['afterInit'](){const _0xbd029c=this['editor'],_0x4797d8=this['editor']['plugins']['get']('SuggestionsConversion');_0xbd029c['plugins']['has']('Uploadcare')&&_0xbd029c['plugins']['has']('UploadcareImageEdit')&&_0x4797d8['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x4f96e1{['afterInit'](){const _0x29f9d4=this['editor'];if(!_0x29f9d4['plugins']['has']('ShiftEnter'))return;const _0x48d09c=_0x29f9d4['plugins']['get']('SuggestionsConversion'),_0x1b5a3b=(_0x22439b,_0xd92690,_0x36b250,_0x195b71)=>{if(_0x195b71&&!_0x36b250['options']['showSuggestionHighlights'])return;if(!_0x36b250['consumable']['test'](_0xd92690['markerRange'],_0x22439b['name']))return;const _0x69fc75=_0x29f9d4['model'];for(const _0x3093bd of _0xd92690['markerRange']['getItems']()){if(!_0x3093bd['is']('element','softBreak'))continue;const _0x4e760c='deletion'==_0xd92690['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x15ca34,authorId:_0x3026bc}=Y(_0xd92690['markerName']),_0x5af65c=_0x36b250['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e760c,'data-suggestion':_0x15ca34,'data-author-id':_0x3026bc}),_0x50101c=_0x36b250['mapper']['toViewPosition'](_0x69fc75['createPositionBefore'](_0x3093bd));!_0x195b71&&_0x48d09c['_activeMarkers']['includes'](_0xd92690['markerName'])&&_0x36b250['writer']['addClass']('ck-suggestion-marker--active',_0x5af65c),_0x36b250['writer']['insert'](_0x50101c,_0x5af65c),_0x36b250['mapper']['bindElementToMarker'](_0x5af65c,_0xd92690['markerName']);}};_0x29f9d4['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36bc3c,_0x2a3dfd,_0x5421da)=>{_0x1b5a3b(_0x36bc3c,_0x2a3dfd,_0x5421da,!0x1);},{'priority':'high'}),_0x29f9d4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b212e,_0x63be67,_0x382f69)=>{_0x1b5a3b(_0x2b212e,_0x63be67,_0x382f69,!0x0);},{'priority':'high'});}}class kt extends _0x4f96e1{['afterInit'](){const _0x15f507=this['editor'];_0x15f507['plugins']['has']('MediaEmbedEditing')&&(_0x15f507['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x13265f,{writer:_0x11cacc,options:_0x35a5c0})=>{if(_0x35a5c0['showSuggestionHighlights'])return _0x11cacc['createEmptyElement']('div');},'converterPriority':'high'}),_0x15f507['data']['downcastDispatcher']['on']('attribute:url:media',(_0x155afc,_0x5c8f37,_0x566987)=>{_0x566987['options']['showSuggestionHighlights']&&_0x155afc['stop']();},{'priority':'high'}));}}class pt extends _0x4f96e1{['afterInit'](){const _0x3895bd=this['editor'];if(!_0x3895bd['plugins']['has']('Table'))return;_0x3895bd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x201c84,_0x580724,_0x55b246)=>{((_0x483cdd,_0x22a0ec,_0x35d148)=>{if(!_0x35d148['options']['showSuggestionHighlights'])return;const _0x2713de=_0x22a0ec['item'];if(!_0x2713de||!_0x2713de['is']('element','tableCell'))return;const _0xa4f5bc=_0x35d148['mapper']['toViewElement'](_0x2713de);if(_0xa4f5bc){const {id:_0xeb2bdd,authorId:_0x95b87d}=Y(_0x22a0ec['markerName']);_0x4f0187(_0xa4f5bc,_0x35d148['writer'],(_0x48f84c,_0x128104,_0x39528c)=>{_0x39528c['addClass'](_0x2deb76(_0x128104['classes']),_0x48f84c),_0x39528c['setAttribute']('data-suggestion',_0xeb2bdd,_0x48f84c),_0x39528c['setAttribute']('data-author-id',_0x95b87d,_0x48f84c);});}})(0x0,_0x580724,_0x55b246);},{'priority':'highest'});}}class yt extends _0x4f96e1{['afterInit'](){const _0x3a4dfc=this['editor'];_0x3a4dfc['plugins']['has']('HorizontalLineEditing')&&_0x3a4dfc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x9a4029,{writer:_0x5e2726,options:_0x559bed})=>{if(!_0x559bed['showSuggestionHighlights'])return null;const _0x19b0af=_0x5e2726['createContainerElement']('div'),_0x2e7c24=_0x5e2726['createEmptyElement']('hr');return _0x5e2726['addClass']('ck-horizontal-line',_0x19b0af),_0x5e2726['insert'](_0x5e2726['createPositionAt'](_0x19b0af,0x0),_0x2e7c24),_0x19b0af;},'converterPriority':'high'});}}class wt extends _0x4f96e1{['afterInit'](){const {plugins:_0xe2f21,model:_0x215891}=this['editor'];if(!_0xe2f21['has']('TableCellPropertiesEditing'))return;const _0x39c44a=_0xe2f21['get']('SuggestionsConversion'),_0x3f9f22=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x1ed3fa of _0x3f9f22)_0x39c44a['registerBlockAttribute'](_0x1ed3fa);_0x215891['schema']['checkAttribute']('tableCell','tableCellType')&&_0x39c44a['registerBlockAttribute']('tableCellType');}}class bt extends _0x4f96e1{['afterInit'](){const _0x160651=this['editor'];if(!_0x160651['plugins']['has']('TableEditing')||!_0x160651['config']['get']('table.enableFooters'))return;_0x160651['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x4f96e1{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[K,G,Z,X,tt,et,yt,st,it,nt,ot,rt,at,ct,kt,lt,mt,ut,pt,ht,bt,ft,wt,dt,gt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x351812=this['editor'],_0x5f5bd1=(_0x5b97fe,_0x1f7b1d,_0x23815d)=>{const {id:_0xac1b84,authorId:_0xb6813a,type:_0x21a22f,subType:_0x3a3009}=Y(_0x5b97fe['markerName']),_0x161a39=['ck-suggestion-marker',this['_getClassName'](_0x21a22f,_0x3a3009)];let _0x69be4a=0xbb8;return!_0x23815d&&(this['_activeMarkers']['includes'](_0x5b97fe['markerName'])&&(_0x161a39['push']('ck-suggestion-marker--active'),_0x69be4a=0xbc2)),('deletion'==_0x21a22f&&(_0x69be4a+=0x5),{'classes':_0x161a39,'attributes':{'data-suggestion':_0xac1b84,'data-author-id':_0xb6813a},'priority':_0x69be4a});};_0x351812['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1acb25,_0x4bb79b)=>_0x5f5bd1(_0x1acb25,0x0,!0x1)}),_0x351812['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4d64f2,_0x3ca08f)=>_0x5f5bd1(_0x4d64f2,0x0,!0x0)}),_0x351812['conversion']['for']('dataDowncast')['add'](_0x264515=>{_0x264515['on']('addMarker:suggestion',(_0x11d367,_0x2cd3f3,_0x57f113)=>{if(!_0x57f113['options']['showSuggestionHighlights'])return;const _0x22c5b0=_0x2cd3f3['item'];if(!_0x22c5b0)return;const _0x537795=_0x57f113['mapper']['toViewElement'](_0x22c5b0);_0x351812['model']['schema']['isObject'](_0x22c5b0)&&_0x537795&&!_0x537795['getCustomProperty']('widget')&&_0x537795['is']('containerElement')&&_0x360d76(_0x537795,_0x57f113['writer']);},{'priority':'high'});});const _0x1569f2=(_0x1c6a2f,_0x34bc5b,_0x4763ed,_0x2059f3,_0x482729)=>{if(_0x2059f3&&!_0x4763ed['options']['showSuggestionHighlights'])return;if(!_0x34bc5b['item'])return;const {id:_0x4d7b29,authorId:_0x29a43f,subType:_0x19ca62}=Y(_0x34bc5b['markerName']);if(_0x482729){const _0xd39219=_0x19ca62['split']('|')[0x0];if(!this['isBlockAttribute'](_0xd39219))return;}if(_0x34bc5b['item']['is']('selection'))return void _0x4763ed['consumable']['consume'](_0x34bc5b['item'],_0x1c6a2f['name']);const _0x2eb70e=_0x4763ed['mapper']['toViewElement'](_0x34bc5b['item']);if(_0x34bc5b['item']['is']('element')&&_0x351812['model']['schema']['isBlock'](_0x34bc5b['item'])&&!_0x2eb70e['getCustomProperty']('addHighlight')){_0x4763ed['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2eb70e),_0x4763ed['writer']['setAttribute']('data-suggestion',_0x4d7b29,_0x2eb70e),_0x4763ed['writer']['setAttribute']('data-author-id',_0x29a43f,_0x2eb70e),_0x4763ed['mapper']['bindElementToMarker'](_0x2eb70e,_0x34bc5b['markerName']),_0x2059f3||(this['_activeMarkers']['includes'](_0x34bc5b['markerName'])?_0x4763ed['writer']['addClass']('ck-suggestion-marker--active',_0x2eb70e):_0x4763ed['writer']['removeClass']('ck-suggestion-marker--active',_0x2eb70e));for(const _0x891fc7 of _0x351812['model']['createRangeIn'](_0x34bc5b['item'])['getItems']())_0x4763ed['consumable']['consume'](_0x891fc7,_0x1c6a2f['name']);_0x4763ed['consumable']['consume'](_0x34bc5b['item'],_0x1c6a2f['name']);}},_0x5c3b58=(_0x5a2dd2,_0x3f1bc4,_0x17fa47,_0x49722a)=>{const _0x13b52c=_0x17fa47['mapper']['markerNameToElements'](_0x3f1bc4['markerName']);if(_0x13b52c){if(_0x49722a){const {subType:_0x5ae220}=Y(_0x3f1bc4['markerName']),_0xd1b488=_0x5ae220['split']('|')[0x0];if(!this['isBlockAttribute'](_0xd1b488))return;}for(const _0x49a0cc of _0x13b52c)_0x49a0cc['getCustomProperty']('addHighlight')||(_0x17fa47['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x49a0cc),_0x17fa47['writer']['removeAttribute']('data-suggestion',_0x49a0cc),_0x17fa47['writer']['removeAttribute']('data-author-id',_0x49a0cc),_0x17fa47['mapper']['unbindElementFromMarkerName'](_0x49a0cc,_0x3f1bc4['markerName']));}};_0x351812['conversion']['for']('editingDowncast')['add'](_0x4ffcfc=>{_0x4ffcfc['on']('addMarker:suggestion:formatBlock',(_0xed05f6,_0x581b0e,_0x53bffe)=>{_0x1569f2(_0xed05f6,_0x581b0e,_0x53bffe,!0x1,!0x1);},{'priority':'high'});}),_0x351812['conversion']['for']('editingDowncast')['add'](_0x51404d=>{_0x51404d['on']('addMarker:suggestion:attribute',(_0x16b10b,_0x537309,_0x20371f)=>{_0x1569f2(_0x16b10b,_0x537309,_0x20371f,!0x1,!0x0);},{'priority':'high'});}),_0x351812['conversion']['for']('editingDowncast')['add'](_0x2cbda5=>{_0x2cbda5['on']('removeMarker:suggestion:formatBlock',(_0x5dc9e9,_0x4cc135,_0x1f12ab)=>{_0x5c3b58(0x0,_0x4cc135,_0x1f12ab,!0x1);},{'priority':'high'});}),_0x351812['conversion']['for']('editingDowncast')['add'](_0x55d54f=>{_0x55d54f['on']('removeMarker:suggestion:attribute',(_0x27b383,_0x5026a9,_0x3aebf1)=>{_0x5c3b58(0x0,_0x5026a9,_0x3aebf1,!0x0);},{'priority':'high'});}),_0x351812['conversion']['for']('dataDowncast')['add'](_0x4fe636=>{_0x4fe636['on']('addMarker:suggestion:formatBlock',(_0x1d2e2f,_0x5a8ca7,_0x2759c2)=>{_0x1569f2(_0x1d2e2f,_0x5a8ca7,_0x2759c2,!0x0,!0x1);},{'priority':'highest'});}),_0x351812['conversion']['for']('dataDowncast')['add'](_0x3b3311=>{_0x3b3311['on']('addMarker:suggestion:attribute',(_0x2ee92d,_0x321e1f,_0x16d1d2)=>{_0x1569f2(_0x2ee92d,_0x321e1f,_0x16d1d2,!0x0,!0x0);},{'priority':'highest'});}),_0x351812['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x17a392,_0x6ba930)=>_0x6ba930['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x17a392['substr'](0xb)}});const _0x59e33e=(_0xeee643,_0x1f0a03,_0x41b0c5,_0x1cf322,_0x4c5c65)=>{if(_0x1cf322&&!_0x41b0c5['options']['showSuggestionHighlights'])return;if(!_0x41b0c5['consumable']['test'](_0x1f0a03['markerRange'],_0xeee643['name']))return;const _0x163d9e=this['_activeMarkers'],_0x386f50=_0x1f0a03['markerRange']['getWalker'](),_0x58a337=_0x1f0a03['markerRange']['start'],_0x204f56=_0x351812['model']['schema'];let _0x376d77=null,_0x57a8ad=null,_0x3e6545=!0x1,_0x1d955a=!0x1;for(const _0x214ef7 of _0x386f50){const _0x3054e3=_0x214ef7['item'];_0x3e6545=_0x3e6545||_0x204f56['isContent'](_0x3054e3);const _0x337231=_0x41b0c5['mapper']['toViewElement'](_0x3054e3);if(_0x337231&&_0x337231['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x214ef7['type']&&(_0x204f56['isBlock'](_0x3054e3)&&!_0x204f56['isLimit'](_0x3054e3)&&(_0x3054e3['nextSibling']||_0x58a337['isAtEnd']?_0x376d77&&_0x376d77['parent']==_0x3054e3||(_0x376d77=_0x3054e3,_0x3f4426(_0x214ef7['previousPosition']),_0x1d955a=!0x0):_0x57a8ad=_0x57a8ad||_0x214ef7['previousPosition']));}function _0x3f4426(_0x153c8a){const {id:_0x2024b4,authorId:_0x16b9f2}=Y(_0x1f0a03['markerName']),_0x4bbec7=_0x41b0c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c5c65,'data-suggestion':_0x2024b4,'data-author-id':_0x16b9f2}),_0x13d403=_0x41b0c5['mapper']['toViewPosition'](_0x153c8a);!_0x1cf322&&_0x163d9e['includes'](_0x1f0a03['markerName'])&&_0x41b0c5['writer']['addClass']('ck-suggestion-marker--active',_0x4bbec7),_0x41b0c5['writer']['insert'](_0x13d403,_0x4bbec7),_0x41b0c5['mapper']['bindElementToMarker'](_0x4bbec7,_0x1f0a03['markerName']);}_0x3e6545||_0x1d955a||!_0x57a8ad||_0x3f4426(_0x57a8ad);};_0x351812['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x900f98,_0x256c41,_0x145348)=>{_0x59e33e(_0x900f98,_0x256c41,_0x145348,!0x1,'merge');},{'priority':'high'}),_0x351812['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x41ff20,_0x40acd2,_0xea5416)=>{_0x59e33e(_0x41ff20,_0x40acd2,_0xea5416,!0x0,'merge');},{'priority':'high'}),_0x351812['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ed544,_0x4cdda8,_0x49fd31)=>{_0x59e33e(_0x3ed544,_0x4cdda8,_0x49fd31,!0x1,'split');},{'priority':'high'}),_0x351812['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2cf110,_0x5a2e31,_0x3c1b01)=>{_0x59e33e(_0x2cf110,_0x5a2e31,_0x3c1b01,!0x0,'split');},{'priority':'high'}),_0x351812['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4ffca2,_0x326b9b,_0x17e027)=>{((_0x37c12b,_0x891787,_0x1f1ed8)=>{const _0x214995=_0x1f1ed8['mapper']['markerNameToElements'](_0x891787['markerName']);if(_0x214995){for(const _0x5940ca of _0x214995)(_0x5940ca['hasClass']('ck-suggestion-marker-split')||_0x5940ca['hasClass']('ck-suggestion-marker-merge'))&&(_0x1f1ed8['mapper']['unbindElementFromMarkerName'](_0x5940ca,_0x891787['markerName']),_0x1f1ed8['writer']['remove'](_0x5940ca));}})(0x0,_0x326b9b,_0x17e027);},{'priority':'high'});const _0x3e2074=(_0x381343,_0x3c2272,_0x139fb9,_0x2f1f87)=>{if(_0x2f1f87&&!_0x139fb9['options']['showSuggestionHighlights'])return;const _0x34a015=_0x3c2272['markerRange']['start'],_0x361fee=_0x3c2272['markerRange']['end'],_0x2c4d47=_0x351812['model']['schema'];if(!_0x34a015['isTouching'](_0x361fee)||!_0x34a015['nodeAfter'])return;const _0x51b6b3=_0x34a015['nodeAfter'];if(_0x2c4d47['isBlock'](_0x51b6b3)&&!_0x2c4d47['isLimit'](_0x51b6b3)&&_0x2c4d47['checkChild'](_0x51b6b3,'$text')){if(!_0x139fb9['consumable']['consume'](_0x3c2272['markerRange'],_0x381343['name']))return;const {id:_0x2c690d,authorId:_0x5b357d}=Y(_0x3c2272['markerName']),_0x417337=_0x139fb9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2c690d,'data-author-id':_0x5b357d}),_0x4a0ffc=_0x139fb9['mapper']['toViewPosition'](_0x361fee);!_0x2f1f87&&this['_activeMarkers']['includes'](_0x3c2272['markerName'])&&_0x139fb9['writer']['addClass']('ck-suggestion-marker--active',_0x417337),_0x139fb9['writer']['insert'](_0x4a0ffc,_0x417337),_0x139fb9['mapper']['bindElementToMarker'](_0x417337,_0x3c2272['markerName']);}};_0x351812['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a0eae,_0x407dfe,_0x58597d)=>{_0x3e2074(_0x1a0eae,_0x407dfe,_0x58597d,!0x1);},{'priority':'high'}),_0x351812['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3eddc9,_0x204a3a,_0x21f708)=>{_0x3e2074(_0x3eddc9,_0x204a3a,_0x21f708,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0xcf55f9,_0x56440d,_0x161dff)=>{this['_activeMarkers']=_0x161dff['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x1764fc){this['_blockAttributeKeys']['add'](_0x1764fc);}['registerInlineAttribute'](_0x972c08){this['_inlineAttributeKeys']['add'](_0x972c08);}['isBlockAttribute'](_0x12b22a){return this['_blockAttributeKeys']['has'](_0x12b22a);}['isInlineAttribute'](_0x3fb580){return this['_inlineAttributeKeys']['has'](_0x3fb580);}['isRegisteredAttribute'](_0x164aa3){return this['isInlineAttribute'](_0x164aa3)||this['isBlockAttribute'](_0x164aa3);}['_getClassName'](_0x3481e8,_0x25bad1){if('attribute'!=_0x3481e8)return'ck-suggestion-marker-'+_0x3481e8;const _0x9fc11d=_0x25bad1['split']('|')[0x0];return this['isBlockAttribute'](_0x9fc11d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x1ef483={},_0x586ed4){if(void 0x0!==_0x1ef483['dateTimeFormat']&&'function'!=typeof _0x1ef483['dateTimeFormat'])throw new _0x105727('invalid-date-time-format');return _0x8a270d=>{const _0x289e33='string'==typeof _0x8a270d?_0x135f9f['fromISO'](_0x8a270d):_0x135f9f['fromJSDate'](_0x8a270d),_0x3f9f70=_0x135f9f['now'](),_0x47c585=Math['floor'](_0x3f9f70['diff'](_0x289e33,'days')['days']);return _0x1ef483['dateTimeFormat']?_0x1ef483['dateTimeFormat'](_0x289e33['toJSDate'](),_0x586ed4&&_0x586ed4['t']?_0x586ed4['t']:void 0x0):0x0===_0x47c585?_0x586ed4?$(_0x586ed4,'Today')+'\x20'+_0x289e33['toFormat']('hh:mma'):_0x289e33['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x47c585?_0x586ed4?$(_0x586ed4,'Yesterday')+'\x20'+_0x289e33['toFormat']('hh:mma'):_0x289e33['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x47c585<0x7?_0x586ed4?$(_0x586ed4,'Last')+'\x20'+$(_0x586ed4,_0x289e33['toFormat']('EEEE'))+'\x20'+_0x289e33['toFormat']('hh:mma'):_0x289e33['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x289e33['toFormat']('LL-dd-yyyy\x20hh:mma');};}function xt(_0x4ab68a,_0x82c42e){const _0x45d707=_0x4ab68a['mapper']['markerNameToElements'](_0x82c42e['name']);if(!_0x45d707)return null;const _0x3aaea4=_0x43c38f(_0x45d707['values']());return _0x4ab68a['view']['domConverter']['mapViewToDom'](_0x3aaea4)||null;}function It(_0x430461,_0x2ebcd5){if(0x0===_0x2ebcd5['length'])return null;const _0x39ad25=[],_0x533669=_0x430461['view']['domConverter'];for(const _0x572ed0 of _0x2ebcd5){const _0x1dd5d0=_0x430461['mapper']['markerNameToElements'](_0x572ed0['name']);if(!_0x1dd5d0)continue;const _0x4ad98b=Array['from'](_0x1dd5d0)['map'](_0x3e8bbb=>_0x533669['mapViewToDom'](_0x3e8bbb))['filter'](_0x1cfb48=>!!_0x1cfb48);_0x39ad25['push'](..._0x4ad98b);}if(0x0===_0x39ad25['length'])return null;const _0x4eeffc=[];for(const _0x5c6e3e of _0x39ad25){const _0x21912a=_0x5c6e3e['getClientRects']()['item'](0x0);_0x21912a&&_0x4eeffc['push']({'x':_0x21912a['x'],'y':_0x21912a['y'],'domElement':_0x5c6e3e});}return 0x0===_0x4eeffc['length']?null:(_0x4eeffc['sort']((_0x5ef0dc,_0x34bb38)=>_0x5ef0dc['y']-_0x34bb38['y']||_0x5ef0dc['x']-_0x34bb38['x']),_0x4eeffc['map'](_0x4c2309=>_0x4c2309['domElement']));}function _t(_0x1655e9,{limit:_0x3c71cc,suffix:_0x365bf2='...'}){const _0x2ebb05=[];let _0x451f5f=0x0;const _0x43f066=_0x1655e9['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x16b072=0x0;_0x16b072<_0x43f066['length'];_0x16b072++){let _0x14fe9b=_0x43f066[_0x16b072];const _0x78b69f=St(_0x14fe9b);if(_0x14fe9b['startsWith']('<')){if(_0x451f5f>=_0x3c71cc){const _0xb69b09=_0x14fe9b['match'](/[a-zA-Z]+/);if(!_0xb69b09){_0x43f066[_0x16b072]='';continue;}const _0x306e3d=_0xb69b09[0x0];_0x14fe9b['startsWith']('</')?(_0x2ebb05['length']&&(_0x14fe9b=''),_0x2ebb05['pop']()):(_0x2ebb05['push'](_0x306e3d),_0x14fe9b='');}}else{if(_0x451f5f>=_0x3c71cc)_0x14fe9b='';else{if(_0x451f5f+_0x78b69f['length']>=_0x3c71cc){let _0x123629=_0x3c71cc-_0x451f5f;if('\x20'===_0x78b69f[_0x123629-0x1])_0x123629--;else{const _0x521b28=_0x78b69f['slice'](_0x123629)['indexOf']('\x20');-0x1!==_0x521b28?_0x123629+=_0x521b28:_0x123629=_0x14fe9b['length'];}_0x14fe9b=_0x78b69f['slice'](0x0,_0x123629)['join']('')+_0x365bf2,_0x451f5f=_0x3c71cc;}else _0x451f5f+=_0x78b69f['length'];}}_0x43f066[_0x16b072]=_0x14fe9b;}return _0x43f066['join']('\x0a')['replace'](/\n/g,'');}function St(_0xf66c76){const _0x219d5a=[];for(let _0x4d73b9=0x0;_0x4d73b9<_0xf66c76['length'];_0x4d73b9++){const _0x10d79a=_0xf66c76['substring'](_0x4d73b9)['match'](/^&[a-z0-9#]+;/);if(_0x10d79a){const _0x539953=_0x10d79a[0x0];_0x219d5a['push'](_0x539953),_0x4d73b9+=_0x539953['length']-0x1;}else _0x219d5a['push'](_0xf66c76[_0x4d73b9]);}return _0x219d5a;}class Et extends _0x5681cf{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x416336){super(_0x416336);const _0x3d7b41=this['bindTemplate'];this['set']('message',$(_0x416336,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x416336,$(_0x416336,'Yes'),_0x23bb36,'submit'),this['cancelView']=this['_createButtonView'](_0x416336,$(_0x416336,'No'),_0x5b91e7,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x264b6d(),this['keystrokes']=new _0x51ac82(),this['focusCycler']=new _0x1c6b43({'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':_0x3d7b41['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'](_0x33a089,_0x5284ea,_0xede3aa,_0x1aaa1c){const _0xc0611d=new _0x29663c(_0x33a089);return _0xc0611d['label']=_0x5284ea,_0xc0611d['icon']=_0xede3aa,_0xc0611d['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x1aaa1c}}),_0xc0611d['on']('execute',()=>this['fire'](_0x1aaa1c)),_0xc0611d;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x399f2c=>{this['keystrokes']['listenTo'](_0x399f2c['element']),this['focusTracker']['add'](_0x399f2c['element']);}),this['keystrokes']['set']('esc',(_0x3e5bfe,_0x1049f1)=>{this['fire']('cancel'),_0x1049f1();});}}function At(_0x447649){return class extends _0x447649{['showConfirm'](_0x27716e,_0x365bd7){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x27716e,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x365bd7['appendChild'](this['confirmView']['element']),_0x365bd7['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x38df8d,_0x44ee39,_0x52ceab)=>{_0x52ceab||_0x365bd7['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x3c3d9d=>this['confirmView']['on']('submit',_0x3c3d9d));}['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 Mt(_0x256a32){let _0x3bdf0d=0x0,_0x5551eb=0x0;for(const _0x3f07e9 of Nt(_0x256a32))_0x3bdf0d=(_0x3bdf0d<<0x5)-_0x3bdf0d+_0x3f07e9,_0x3bdf0d&=_0x3bdf0d,[_0x3bdf0d,_0x5551eb]=[_0x5551eb,_0x3bdf0d];return Ot(_0x3bdf0d)+Ot(_0x5551eb);}function*Tt(_0x521a35){null==_0x521a35||null==_0x521a35?yield 0x12b9b0a1:0x0===_0x521a35||!0x1===_0x521a35?yield 0x0:0x1===_0x521a35||0x1==_0x521a35?yield 0x1:Array['isArray'](_0x521a35)?yield*function*(_0x28ccaa){for(const _0x2be438 of _0x28ccaa)yield*Tt(_0x2be438);}(_0x521a35):'object'==typeof _0x521a35?yield*Nt(_0x521a35):'string'==typeof _0x521a35?yield*Pt(_0x521a35):'number'==typeof _0x521a35&&(yield _0x521a35);}function*Nt(_0x34b62b){if(yield Bt('{'),_0x34b62b){const _0x195a83=Object['keys'](_0x34b62b)['sort']();for(const _0x239c07 of _0x195a83){yield*Pt(_0x239c07),yield Bt(':');const _0x4eca92=_0x34b62b[_0x239c07];yield*Tt(_0x4eca92);}}yield Bt('}');}function*Pt(_0x26cd09){yield Bt('\x22');for(const _0x3be81f of _0x26cd09)yield Bt(_0x3be81f);yield Bt('\x22');}function Bt(_0x425e67){return _0x425e67['charCodeAt'](0x0);}function Ot(_0x340870){return(_0x340870*=Math['sign'](_0x340870))['toString'](0x24);}const Dt=['root','roots','initialData','context','toolbar','rootsAttributes'],$t=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Lt(_0x3ba0a9,_0x16af11,_0x29a221,_0x2cd29a=[]){const _0x398c32='string'==typeof _0x3ba0a9?_0x29a221['get'](_0x3ba0a9)['constructor']:_0x3ba0a9['prototype']['constructor'];if(_0x16af11['has'](_0x398c32))return _0x16af11['get'](_0x398c32);_0x16af11['set'](_0x398c32,!0x0);const _0x293d11=[...$t,..._0x2cd29a]['map'](_0x3bd541=>{if(_0x29a221['has'](_0x3bd541))return _0x29a221['get'](_0x3bd541)['constructor'];})['filter'](_0x94ba47=>_0x94ba47);if(_0x398c32&&_0x293d11['includes'](_0x398c32))return _0x16af11['set'](_0x398c32,!0x1),!0x1;if(!_0x398c32['requires'])return _0x16af11['set'](_0x398c32,!0x0),!0x0;const _0x46414b=_0x398c32['requires']['every'](_0x36e532=>Lt(_0x36e532,_0x16af11,_0x29a221,_0x2cd29a));return _0x16af11['set'](_0x398c32,_0x46414b),_0x46414b;}function Vt(_0x201432,_0x2c8f30){const _0xb9da55={};for(const _0x522967 of _0x201432['config']['names']())Dt['includes'](_0x522967)||(_0xb9da55[_0x522967]=_0x201432['config']['get'](_0x522967));const _0xe41db0=_0xb9da55['plugins']||[],_0x2de1c6=_0x201432['constructor']['builtinPlugins']||[],_0x118728=_0xe41db0['length']?_0xe41db0:_0x2de1c6,_0x1f3e5e=_0xb9da55['extraPlugins']||[];delete _0xb9da55['extraPlugins'];const _0x18d28e=_0xb9da55['removePlugins']||[];delete _0xb9da55['removePlugins'];const _0x2fcf25=_0x201432['_context']['config']['get']('plugins')||[],_0x3bff13=_0x118728['concat'](_0x1f3e5e)['concat'](_0x2fcf25)['map'](_0x2538b4=>'string'==typeof _0x2538b4?_0x2de1c6['find'](_0x4082b0=>_0x4082b0['pluginName']==_0x2538b4):_0x2538b4)['filter'](_0x5af976=>!_0x18d28e['includes'](_0x5af976)&&!_0x18d28e['includes'](_0x5af976['pluginName'])),_0x378f9b=Array['from'](new Set(_0x3bff13)),_0x51ffb7=new Map();return _0xb9da55['plugins']=_0x378f9b['filter'](_0x2b2ff5=>Lt(_0x2b2ff5,_0x51ffb7,_0x201432['plugins'],_0x2c8f30)),_0xb9da55;}function Ut(_0x2d6381,_0x3766d4){const _0x52baf5=[];_0x2d6381['document']['selection']['on']('change:range',()=>{const _0x4b1603=function(_0x3123cd,_0x466fab){const _0xc4eba3=[];for(const _0x1a7699 of _0x3123cd['markers']){const _0x3ff4c6=_0x1a7699['getRange']();(_0x3ff4c6['containsPosition'](_0x466fab)||_0x3ff4c6['start']['isEqual'](_0x466fab)||_0x3ff4c6['end']['isEqual'](_0x466fab))&&_0xc4eba3['push'](_0x1a7699);}return _0xc4eba3;}(_0x2d6381,_0x2d6381['document']['selection']['focus']),_0x4af094=[],_0x3f3c87=[],_0x21ce50=[];for(const _0x51512d of _0x52baf5)_0x4b1603['includes'](_0x51512d)||_0x4af094['push'](_0x51512d);for(const _0x3433e9 of _0x4b1603)_0x52baf5['includes'](_0x3433e9)||_0x3f3c87['push'](_0x3433e9),_0x21ce50['push'](_0x3433e9);(_0x4af094['length']||_0x3f3c87['length'])&&_0x3766d4({'left':_0x4af094,'entered':_0x3f3c87}),_0x52baf5['length']=0x0,_0x52baf5['push'](..._0x21ce50);});}const Rt='Ctrl+Shift+E';function Ft(_0x1f2c1d,_0x2d2b38){const _0x146cbc=_0x1f2c1d['element'];_0x1f2c1d['keystrokes']['listenTo'](_0x146cbc);for(const _0x718332 of _0x2d2b38)Ht(_0x1f2c1d,_0x718332);_0x2d2b38['on']('change',(_0x20361d,_0x232587)=>{for(const _0x2f9186 of _0x232587['removed'])zt(_0x1f2c1d,_0x2f9186);for(const _0x20771e of Array['from'](_0x232587['added'])['reverse']())Ht(_0x1f2c1d,_0x20771e);}),_0x1f2c1d['keystrokes']['set']('enter',(_0x1e3af3,_0x55ef29)=>{_0x146cbc===_0x1e3af3['target']&&(_0x1f2c1d['focusCycler']['focusFirst'](),_0x55ef29());},{'filter':_0x16ff5f=>_0x16ff5f['target']===_0x146cbc}),_0x1f2c1d['keystrokes']['set']('esc',(_0x597548,_0x368dad)=>{_0x146cbc!==_0x597548['target']?_0x1f2c1d['focus']():_0x1f2c1d['fire']('escape'),_0x368dad();}),_0x1f2c1d['keystrokes']['set']('arrowdown',(_0x31cac7,_0x4d0f04)=>{_0x146cbc===_0x31cac7['target']&&(_0x1f2c1d['fire']('arrowdown'),_0x4d0f04());}),_0x1f2c1d['keystrokes']['set']('arrowup',(_0x3732b9,_0x59eb01)=>{_0x146cbc===_0x3732b9['target']&&(_0x1f2c1d['fire']('arrowup'),_0x59eb01());});}function Ht(_0xdef772,_0x2640d6){_0x2640d6['isRendered']&&(_0xdef772['focusTracker']['add'](_0x2640d6['element']),_0xdef772['keystrokes']['listenTo'](_0x2640d6['element']),_0x66c7b(_0x2640d6)&&function(_0x3fa6c1,_0x2bf4d0){const _0x32e15f=_0x3fa6c1['actions'],_0x475a7c=_0x2bf4d0['actions'];for(const _0x24b60e of Object['keys'](_0x32e15f))if(_0x24b60e in _0x475a7c&&_0x32e15f[_0x24b60e]!==_0x475a7c[_0x24b60e])return!0x1;return!0x0;}(_0xdef772['focusCycler'],_0x2640d6['focusCycler'])&&_0xdef772['focusCycler']['chain'](_0x2640d6['focusCycler']));}function zt(_0x547207,_0x5599cf){_0x547207['focusTracker']['remove'](_0x5599cf['element']),_0x547207['keystrokes']['stopListening'](_0x5599cf['element']),_0x66c7b(_0x5599cf)&&_0x547207['focusCycler']['unchain'](_0x5599cf['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x181460{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x4618e7?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x43bba1,_0x37c0c9)=>{_0x37c0c9['on']('ready',()=>{this['_integrateEditor'](_0x37c0c9);});});}get['editor'](){if(this['context']instanceof _0x4618e7)return this['context'];{const _0x39ee10=this['context']['editors']['first'];if(!_0x39ee10)throw new _0x105727('documentcompare-no-editor',this);return _0x39ee10;}}['getDiff'](_0x498334,_0x48c6bf,_0x233801={'anchor':'main','markDeletions':!0x1}){let _0x3a1bd6,_0x476a83;const _0xb3a4ac=this['editor'];if('string'==typeof _0x233801['anchor']){const _0xc8a517=_0xb3a4ac['model']['document']['getRoot'](_0x233801['anchor']);if(!_0xc8a517)throw new _0x105727('documentcompare-compare-no-root',this,{'anchor':_0x233801['anchor']});_0x3a1bd6=_0xc8a517,_0x476a83=_0xb3a4ac['model']['createPositionAt'](_0xc8a517,0x0);}else _0x3a1bd6=_0x233801['anchor']['clone'](),_0x476a83=_0x233801['anchor']['clone']();const _0x11ce6a=_0xb3a4ac['data']['parse'](_0x498334,_0x3a1bd6),_0x4e9ec5=_0xb3a4ac['data']['parse'](_0x48c6bf,_0x3a1bd6);return new Jt(_0x11ce6a,_0x4e9ec5,_0xb3a4ac,{'anchor':_0x476a83,'markDeletions':_0x233801['markDeletions']});}['isMarkedRemoveOperation'](_0x533b87){return'marker'==_0x533b87['type']&&_0x533b87['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x28aaa4){_0x28aaa4['conversion']['for']('upcast')['add'](_0x441a8a=>{_0x441a8a['on']('element',(_0x3ae90e,_0x527d4d,_0x106632)=>{if(_0x527d4d['modelRange'])for(const _0x5df71d of _0x527d4d['modelRange']['getItems']({'shallow':!0x0})){if(_0x5df71d['is']('$textProxy'))continue;const _0x946ed9=_0x527d4d['viewItem']['getAttribute'](jt);_0x946ed9&&_0x106632['writer']['setAttribute'](Wt,_0x946ed9,_0x5df71d);}},{'priority':'lowest'});}),_0x28aaa4['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x3ab532,_0x1e8e7b,_0x47b551,_0xc229f8){this['_editor']=_0x47b551,this['_markDeletions']=!!_0xc229f8['markDeletions'],this['_anchor']=_0xc229f8['anchor'];const _0xc69f39=this['_tokenizeModel'](_0x3ab532),_0x1dc5c1=this['_tokenizeModel'](_0x1e8e7b);this['_diffItems']=this['_diffModelTokens'](_0xc69f39,_0x1dc5c1),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x3ab532['markers'],_0x1e8e7b['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x342431=this['_editor']['model']['document'],_0x3a1a1d=[];let _0xc3fe0b=_0x342431['version'];for(const _0x3753ac of this['_operationsData'])switch(_0x3753ac['type']){case'attribute':{const _0x90434c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['path']),_0x551ee9=_0x90434c['getShiftedBy'](_0x3753ac['howMany']),_0x728eac=new _0x442be6(_0x90434c,_0x551ee9),_0x47e461=JSON['parse'](_0x3753ac['oldValue']),_0x25e603=JSON['parse'](_0x3753ac['newValue']);_0x3a1a1d['push'](new _0x3a5cdf(_0x728eac,_0x3753ac['key'],_0x47e461,_0x25e603,_0xc3fe0b++));break;}case'insert':{const _0x28e650=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['path']),_0x57169e=this['_makeModelFromTokens'](_0x3753ac['tokens']);_0x3a1a1d['push'](new _0x3ed5d1(_0x28e650,_0x57169e,_0xc3fe0b++));break;}case'remove':{const _0x1fb7da=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['path']),_0x326cf9=new _0x23989e(_0x342431['graveyard'],[0x0]);_0x3a1a1d['push'](new _0x496d95(_0x1fb7da,_0x3753ac['howMany'],_0x326cf9,_0xc3fe0b++));break;}case'rename':{const _0x5c4ecb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['path']);_0x3a1a1d['push'](new _0x812343(_0x5c4ecb,_0x3753ac['oldName'],_0x3753ac['newName'],_0xc3fe0b++));break;}case'split':{const _0x5320e0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['path']),_0x112a25=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['path']['slice'](0x0,-0x1));_0x112a25['offset']++,_0x3a1a1d['push'](new _0xe65c7f(_0x5320e0,Number['NEGATIVE_INFINITY'],_0x112a25,null,_0xc3fe0b++));break;}case'merge':{const _0x28ad01=_0x3753ac['path']['slice'](),_0x2bc40d=_0x28ad01['slice'](0x0,-0x1);_0x2bc40d[_0x2bc40d['length']-0x1]++,_0x2bc40d['push'](0x0);const _0x219308=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2bc40d),_0x6e8fef=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x28ad01),_0x4d5725=new _0x23989e(_0x342431['graveyard'],[0x0]);_0x3a1a1d['push'](new _0x5a5c5c(_0x219308,Number['NEGATIVE_INFINITY'],_0x6e8fef,_0x4d5725,_0xc3fe0b++));break;}case'marker':case'markedRemove':{let _0x47483c=null;if(_0x3753ac['range']){const _0x2fe257=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['range']['start']),_0x25fa5a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['range']['end']);_0x47483c=new _0x442be6(_0x2fe257,_0x25fa5a);}const _0x10b91b='marker'==_0x3753ac['type']?_0x3753ac['name']:'$markedRemove:'+_0x458b85();_0x3a1a1d['push'](new _0x3b69bf(_0x10b91b,null,_0x47483c,_0x342431['model']['markers'],!0x0,_0xc3fe0b++));break;}case'unwrap':{const _0x1c329b=_0x3753ac['path']['slice']();_0x1c329b['push'](0x0);const _0x2b4d9b=_0x3753ac['path']['slice'](),_0x42b452=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1c329b),_0x537bb5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b4d9b),_0x3a53d2=new _0x23989e(_0x342431['graveyard'],[0x0]);_0x3a1a1d['push'](new _0x496d95(_0x42b452,_0x3753ac['howMany'],_0x537bb5,_0xc3fe0b++)),_0x3a1a1d['push'](new _0x496d95(_0x537bb5['getShiftedBy'](_0x3753ac['howMany']),0x1,_0x3a53d2,_0xc3fe0b++));break;}case'wrap':{const _0x3e7bff=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['range']['start']),_0x44ee9c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3753ac['range']['end']),_0x362e59=_0x3753ac['token']['element']['_clone'](!0x1),_0x1685e3=_0x3753ac['range']['end']['slice']();_0x1685e3['push'](0x0);const _0x216bd4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1685e3);_0x3a1a1d['push'](new _0x3ed5d1(_0x44ee9c,_0x362e59,_0xc3fe0b++)),_0x3a1a1d['push'](new _0x496d95(_0x3e7bff,_0x44ee9c['offset']-_0x3e7bff['offset'],_0x216bd4,_0xc3fe0b++));break;}}return _0x3a1a1d;}['_tokenizeModel'](_0x17e91a){const _0x124b8f=[],_0x119963=_0x442be6['_createIn'](_0x17e91a),_0x4e9b3f=new _0x254e06({'boundaries':_0x119963});let _0x139000='',_0x19d556=null;const _0x4d5fde=[''],_0x17a69a=new Map();for(const _0x1aa076 of _0x4e9b3f)if('elementStart'==_0x1aa076['type']||'elementEnd'==_0x1aa076['type']){let _0x3bd14c=_0x4d5fde[0x0];''!==_0x139000&&(_0x124b8f['push'](...this['_makeTokensFromTextByWords'](_0x139000,_0x19d556,_0x3bd14c)),_0x139000='');const _0x5a8b9f=_0x1aa076['item'];let _0x23ae37;_0x5a8b9f['getAttribute'](Wt)?_0x23ae37=_0x5a8b9f['getAttribute'](Wt):'elementStart'==_0x1aa076['type']?(_0x23ae37=qt(_0x5a8b9f),_0x17a69a['set'](_0x5a8b9f,_0x23ae37)):_0x23ae37=_0x17a69a['get'](_0x5a8b9f);const _0x6fa906=this['_getElementCategory'](_0x5a8b9f);'solid'==_0x6fa906&&('elementStart'==_0x1aa076['type']?(_0x3bd14c=_0x23ae37,_0x4d5fde['unshift'](_0x3bd14c)):_0x4d5fde['shift']());const _0x1695d7={'type':'element','element':_0x5a8b9f,'elementId':_0x23ae37,'category':_0x6fa906,'isStart':'elementStart'==_0x1aa076['type'],'limitId':_0x3bd14c};_0x124b8f['push'](_0x1695d7);}else''==_0x139000&&(_0x19d556=_0x1aa076['previousPosition']['clone']()),_0x139000+=_0x1aa076['item']['data'];return''!==_0x139000&&_0x124b8f['push'](...this['_makeTokensFromTextByWords'](_0x139000,_0x19d556,_0x4d5fde[0x0])),_0x124b8f;}['_makeTokensFromTextByWords'](_0x3b45c8,_0x2521f9,_0x5468cd){const _0x24a8c4=_0x3b45c8['matchAll'](/(\s)/g),_0x4a93ab=Array['from'](_0x24a8c4)['map'](_0x4057fd=>_0x4057fd['index']);_0x4a93ab['push'](_0x3b45c8['length']),0x0==_0x4a93ab[0x0]&&_0x4a93ab['shift']();const _0x3faac8=[],_0x476eee=_0x2521f9['parent'];let _0x794041=0x0,_0x5a24dd=_0x2521f9['offset'];for(let _0x3ab197=0x0;_0x3ab197<_0x4a93ab['length'];_0x3ab197++)_0x3faac8['push']({'type':'text','data':_0x3b45c8['slice'](_0x794041,_0x4a93ab[_0x3ab197]),'parent':_0x476eee,'offset':_0x5a24dd,'limitId':_0x5468cd}),_0x794041=_0x4a93ab[_0x3ab197],_0x5a24dd=_0x2521f9['offset']+_0x4a93ab[_0x3ab197];return _0x3faac8;}['_getElementCategory'](_0x1aeb31){const _0x23a5fc=this['_editor']['model']['schema'];return _0x23a5fc['isLimit'](_0x1aeb31)||_0x23a5fc['isContent'](_0x1aeb31)||_0x23a5fc['isInline'](_0x1aeb31)?'solid':_0x23a5fc['isBlock'](_0x1aeb31)?'block':'container';}['_diffModelTokens'](_0x50e1be,_0x1fedac){const _0x526a2f=_0xbc841c(_0x50e1be,_0x1fedac,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x526a2f);const _0x4567f6=_0x526a2f['flatMap'](_0x1faf62=>{const _0x1e3706=_0x1faf62['added']?'added':_0x1faf62['removed']?'removed':'unchanged';return _0x1faf62['value']['map'](_0x36a535=>({'token':_0x36a535,'change':_0x1e3706}));});let _0x2172b4=0x0;for(const _0x1520b9 of _0x4567f6)'added'!=_0x1520b9['change']&&('unchanged'==_0x1520b9['change']&&(_0x1520b9['before']=_0x50e1be[_0x2172b4]),_0x2172b4++);return _0x4567f6;}['_handleUnclosedBlockOpeningTags'](_0x4387e2){for(let _0x283051=0x0;_0x283051<_0x4387e2['length']-0x1;_0x283051++)if(_0x4387e2[_0x283051]['removed']&&_0x4387e2[_0x283051+0x1]['added']){const _0x4a5dab=this['_findUnclosedBlockOpeningToken'](_0x4387e2[_0x283051]['value']);if(null!==_0x4a5dab){const _0x4480fb=this['_findUnclosedBlockOpeningToken'](_0x4387e2[_0x283051+0x1]['value']),_0x59c109=_0x4387e2[_0x283051]['value']['splice'](_0x4a5dab),_0x2da816=_0x4387e2[_0x283051+0x1]['value']['splice'](_0x4480fb),_0x3cb411=[_0x2da816['shift']()];_0x59c109['shift']();const _0x4ca02a={'value':_0x59c109,'removed':!0x0},_0xdf87a6={'value':_0x2da816,'added':!0x0},_0xe2294d={'value':_0x3cb411};_0x4387e2['splice'](_0x283051+0x2,0x0,_0xe2294d,_0x4ca02a,_0xdf87a6);}}}['_findUnclosedBlockOpeningToken'](_0x15bce5){let _0x2ae65a=0x0,_0x4800ae=-0x1;for(let _0x2c4996=0x0;_0x2c4996<_0x15bce5['length'];_0x2c4996++){const _0x207340=_0x15bce5[_0x2c4996];'element'==_0x207340['type']&&'block'==_0x207340['category']&&(_0x2ae65a+=_0x207340['isStart']?0x1:-0x1,_0x207340['isStart']&&(_0x4800ae=_0x2c4996));}return 0x0===_0x2ae65a?null:_0x4800ae;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x323f56=0x0;_0x323f56<this['_diffItems']['length'];_0x323f56++){const _0x17ae30=this['_diffItems'][_0x323f56]['change'],_0x398137=[];_0x398137['push'](this['_diffItems'][_0x323f56]);let _0x34da78=_0x323f56+0x1;for(;this['_diffItems'][_0x34da78]&&this['_diffItems'][_0x34da78]['change']==_0x17ae30;)_0x398137['push'](this['_diffItems'][_0x34da78]),_0x34da78++,_0x323f56++;const _0x17716f=_0x398137['map'](_0x23af35=>_0x23af35['token']);if('unchanged'==_0x17ae30)_0x398137['map'](_0x4fcc98=>_0x4fcc98['before'])['forEach'](_0x5d8765=>this['_traverseOverItem'](_0x5d8765));else{if('removed'==_0x17ae30){if(this['_markDeletions']){const _0x35d3f3=this['_path']['slice']();_0x17716f['forEach'](_0x55b73f=>this['_traverseOverItem'](_0x55b73f));const _0x4275a0=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x35d3f3,'end':_0x4275a0}});}else this['_handleChanged'](_0x17716f,!0x0,this['_path']['slice']());}else{const _0x487455=_0x17716f['filter'](_0x562a29=>'element'!=_0x562a29['type']||'container'!=_0x562a29['category']);this['_handleChanged'](_0x487455,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x5706a7=0x0;_0x5706a7<this['_diffItems']['length'];_0x5706a7++){const _0x296b88=this['_diffItems'][_0x5706a7]['change'],_0x5d15ee=[];_0x5d15ee['push'](this['_diffItems'][_0x5706a7]);let _0x55875e=_0x5706a7+0x1;for(;this['_diffItems'][_0x55875e]&&this['_diffItems'][_0x55875e]['change']==_0x296b88;)_0x5d15ee['push'](this['_diffItems'][_0x55875e]),_0x55875e++,_0x5706a7++;const _0xe74742=_0x5d15ee['map'](_0x3169b1=>_0x3169b1['token']);if('unchanged'==_0x296b88){const _0x256585=_0x5d15ee['map'](_0x181eee=>_0x181eee['before']);this['_handleUnchanged'](_0x256585,_0xe74742);}else('removed'!=_0x296b88||this['_markDeletions'])&&_0xe74742['forEach'](_0x5e3b75=>{this['_traverseOverItem'](_0x5e3b75);});}}['_calculateMarkersOperationsData'](_0x51f163,_0x58c2a4){const _0x3faaeb={};for(const [_0x1a4034]of _0x51f163)_0x3faaeb[_0x1a4034]=null;for(const [_0x12a527,_0x3f0220]of _0x58c2a4)_0x3faaeb[_0x12a527]=_0x3f0220;const _0x5f2a97=Object['entries'](_0x3faaeb)['map'](([_0x1d0ac6,_0x2a6e64])=>({'type':'marker','name':_0x1d0ac6,'range':_0x2a6e64?{'start':_0x2a6e64['start']['path']['slice'](),'end':_0x2a6e64['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x5f2a97);}['_handleUnwraps'](){const _0x350b6e=new Map(),_0x1bae31=[],_0x47978b=[0x0];let _0x15d50d=this['_diffItems']['length']+0x1;for(let _0x4bdbcb=this['_diffItems']['length']-0x1;_0x4bdbcb>=0x0;_0x4bdbcb--){const {token:_0x4ce0ae,before:_0x2ff89b,change:_0x5edcee}=this['_diffItems'][_0x4bdbcb];if('removed'!=_0x5edcee&&(_0x15d50d=_0x4bdbcb),'element'!=_0x4ce0ae['type']||'container'!=_0x4ce0ae['category']||'added'==_0x5edcee)continue;const _0x6a9856=_0x2ff89b?_0x2ff89b['element']:_0x4ce0ae['element'];if(_0x4ce0ae['isStart']){const _0xc29fde=_0x350b6e['get'](_0x6a9856),_0xd587f=this['_diffItems'][_0xc29fde];('removed'==_0x5edcee||'removed'==_0xd587f['change'])&&_0x15d50d<_0xc29fde&&(this['_operationsData']['push']({'type':'unwrap','path':_0x6a9856['getPath'](),'howMany':_0x6a9856['maxOffset']+_0x47978b[0x0]}),_0x47978b['shift'](),_0x47978b[0x0]+=_0x6a9856['maxOffset']-0x1,_0x1bae31['push'](_0x4bdbcb),_0x1bae31['push'](_0xc29fde));}else _0x350b6e['set'](_0x6a9856,_0x4bdbcb),_0x47978b['unshift'](0x0);}_0x1bae31['sort']((_0xc17d2,_0x89401d)=>_0x89401d-_0xc17d2),_0x1bae31['forEach'](_0x2e6695=>{const _0x57426a=this['_diffItems'][_0x2e6695];'removed'==_0x57426a['change']?this['_diffItems']['splice'](_0x2e6695,0x1):(_0x57426a['change']='added',delete _0x57426a['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x443dd9=[];for(let _0xcbdad4=0x0;_0xcbdad4<this['_diffItems']['length'];_0xcbdad4++){const {change:_0x4955be,token:_0x249263}=this['_diffItems'][_0xcbdad4];if('added'==_0x4955be&&'element'==_0x249263['type']&&'container'==_0x249263['category']){if(_0x249263['isStart'])_0x443dd9['push'](this['_path']['slice']());else{if(!_0x249263['isStart']){const _0xa4bd52=_0x443dd9['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0xa4bd52,'end':this['_path']['slice']()},'token':_0x249263}),this['_path'][this['_path']['length']-0x1]=_0xa4bd52[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x4955be||this['_markDeletions'])&&this['_traverseOverItem'](_0x249263);}}['_handleUnchanged'](_0x46950e,_0xb073d8){for(let _0x2307a8=0x0;_0x2307a8<_0x46950e['length'];_0x2307a8++){const _0x244b25=_0x46950e[_0x2307a8];if('element'==_0x244b25['type']&&_0x244b25['isStart']){const _0x151cc3=_0xb073d8[_0x2307a8];'block'==_0x244b25['category']&&this['_handleElementRename'](_0x244b25['element'],_0x151cc3['element'],this['_path']),this['_handleElementAttributeChanges'](_0x244b25['element'],_0x151cc3['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x151cc3);}else{if('element'!=_0x244b25['type']||_0x244b25['isStart']){if('text'==_0x244b25['type']){const _0x14370f=this['_path']['slice'](),_0x457610=[],_0x320163=[];for(;_0x46950e[_0x2307a8]&&'text'==_0x46950e[_0x2307a8]['type'];)_0x457610['push'](_0x46950e[_0x2307a8]),_0x320163['push'](_0xb073d8[_0x2307a8]),this['_path'][this['_path']['length']-0x1]+=_0x46950e[_0x2307a8]['data']['length'],_0x2307a8++;_0x2307a8--,this['_handleTextAttributeChanges'](_0x457610,_0x320163,_0x14370f);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0xf486b4,_0x440572,_0x29a9f0){const _0x56dcfd=[],_0x51adda=[],_0x5063c0=_0x29a9f0['slice']();for(let _0x545a30=0x0;_0x545a30<_0xf486b4['length'];_0x545a30++){const _0x4eb35a=_0xf486b4[_0x545a30],_0x9b3d42=_0x29a9f0['slice']();if('element'!=_0x4eb35a['type']||_0x4eb35a['isStart'])'element'==_0x4eb35a['type']&&_0x4eb35a['isStart']?(_0x29a9f0['push'](0x0),_0x440572||this['_parents']['push'](_0x4eb35a),_0x51adda['push']({'before':_0x9b3d42,'after':_0x29a9f0['slice'](),'index':_0x545a30})):_0x29a9f0[_0x29a9f0['length']-0x1]+=_0x4eb35a['data']['length'];else{let _0x56027e;_0x29a9f0['pop'](),_0x29a9f0[_0x29a9f0['length']-0x1]++,_0x56027e=_0x440572?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x51adda['length']?_0x51adda['pop']():_0x56dcfd['push']({'before':_0x9b3d42,'after':_0x29a9f0['slice'](),'index':_0x545a30,'related':_0x56027e});}}if(_0x51adda['length']!==_0x56dcfd['length'])throw new _0x105727('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0xf486b4,'isRemove':_0x440572});const _0x4bb5b4=[{'after':_0x5063c0['slice'](),'index':-0x1},..._0x56dcfd,..._0x51adda,{'before':_0x29a9f0['slice'](),'index':_0xf486b4['length']}];if(_0x440572){for(let _0x22a5d8=_0x4bb5b4['length']-0x1;_0x22a5d8>=0x1;_0x22a5d8--){const _0x285021=_0x4bb5b4[_0x22a5d8-0x1]['after'],_0x2e71ad=_0x4bb5b4[_0x22a5d8]['before'],_0x26a5ab=_0x2e71ad[_0x2e71ad['length']-0x1]-_0x285021[_0x285021['length']-0x1];_0x26a5ab&&(this['_operationsData']['push']({'type':'remove','path':_0x285021,'howMany':_0x26a5ab}),_0x2e71ad[_0x2e71ad['length']-0x1]-=_0x26a5ab);}for(const {before:_0x4175e0}of _0x56dcfd)this['_operationsData']['push']({'type':'merge','path':_0x4175e0});}else for(let _0x24abdf=0x0;_0x24abdf<_0x4bb5b4['length']-0x1;_0x24abdf++){const _0x92727c=_0x4bb5b4[_0x24abdf]['after'],_0x49de98=_0x4bb5b4[_0x24abdf+0x1]['before'],_0x125203=_0x4bb5b4[_0x24abdf]['index']+0x1,_0x5780e0=_0x4bb5b4[_0x24abdf+0x1]['index'];if(_0x125203!==_0x5780e0&&this['_operationsData']['push']({'type':'insert','path':_0x92727c,'tokens':_0xf486b4['slice'](_0x125203,_0x5780e0)}),_0x24abdf<_0x56dcfd['length']){this['_operationsData']['push']({'type':'split','path':_0x49de98});const _0x3d157a=_0xf486b4[_0x51adda[_0x51adda['length']-0x1-_0x24abdf]['index']],_0x536554=_0x56dcfd[_0x24abdf]['after'],_0x5ab7f5=_0x56dcfd[_0x24abdf]['related']['element'];this['_handleElementRename'](_0x5ab7f5,_0x3d157a['element'],_0x536554),this['_handleElementAttributeChanges'](_0x5ab7f5,_0x3d157a['element'],_0x536554);}}}['_traverseOverItem'](_0x24bd32){'element'==_0x24bd32['type']&&_0x24bd32['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x24bd32)):'element'!=_0x24bd32['type']||_0x24bd32['isStart']?'text'==_0x24bd32['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x24bd32['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0xe95e06,_0x391da4,_0x43326e){_0xe95e06['name']!=_0x391da4['name']&&this['_operationsData']['push']({'type':'rename','path':_0x43326e['slice'](),'oldName':_0xe95e06['name'],'newName':_0x391da4['name']});}['_handleElementAttributeChanges'](_0x240ad6,_0x3f21a9,_0x2babc4){const _0xe544ab=this['_getAttributeChanges'](_0x240ad6['getAttributes'](),_0x3f21a9['getAttributes']());for(const _0x356c51 in _0xe544ab){const {oldValue:_0x166e4f,newValue:_0x5df8c6}=_0xe544ab[_0x356c51];this['_operationsData']['push']({'type':'attribute','path':_0x2babc4['slice'](),'howMany':0x1,'key':_0x356c51,'oldValue':_0x166e4f,'newValue':_0x5df8c6});}}['_handleTextAttributeChanges'](_0x252ab2,_0x391011,_0x5ea477){const _0x5dac29=this['_operationsData'],_0x525e39=_0x252ab2[0x0]['parent'],_0x17c682=_0x252ab2[0x0]['offset'],_0x3e0bfe=_0x391011[0x0]['parent'],_0x54282f=_0x391011[0x0]['offset'],_0x4e4c4e=_0x252ab2['reduce']((_0x4c1e27,_0x431ce9)=>_0x4c1e27+_0x431ce9['data']['length'],0x0),_0x42aff2=this['_getAttrsForOffsets'](_0x525e39,_0x17c682,_0x4e4c4e),_0x478793=this['_getAttrsForOffsets'](_0x3e0bfe,_0x54282f,_0x4e4c4e),_0x54647b={};for(let _0x3f851f=0x0;_0x3f851f<_0x4e4c4e;_0x3f851f++){const _0x47ced0=_0x42aff2[_0x17c682+_0x3f851f],_0x701ae6=_0x478793[_0x54282f+_0x3f851f],_0x45217a=this['_getAttributeChanges'](_0x47ced0,_0x701ae6);for(const _0x750e6 in _0x54647b)_0x45217a[_0x750e6]||_0x49a69a(_0x750e6);for(const _0x5322e5 in _0x45217a){const {oldValue:_0x1d70fb,newValue:_0x17e718}=_0x45217a[_0x5322e5],_0x273735=_0x54647b[_0x5322e5];_0x273735?_0x273735['oldValue']==_0x1d70fb&&_0x273735['newValue']==_0x17e718?_0x273735['length']++:(_0x49a69a(_0x5322e5),_0x54647b[_0x5322e5]={'oldValue':_0x1d70fb,'newValue':_0x17e718,'start':_0x3f851f,'length':0x1}):_0x54647b[_0x5322e5]={'oldValue':_0x1d70fb,'newValue':_0x17e718,'start':_0x3f851f,'length':0x1};}}for(const _0x274599 in _0x54647b)_0x49a69a(_0x274599);function _0x49a69a(_0x89d5ea){const _0x37cded=_0x54647b[_0x89d5ea],_0x1d01ce=_0x5ea477['slice']();_0x1d01ce[_0x1d01ce['length']-0x1]+=_0x37cded['start'],_0x5dac29['push']({'type':'attribute','path':_0x1d01ce,'howMany':_0x37cded['length'],'key':_0x89d5ea,'oldValue':_0x37cded['oldValue'],'newValue':_0x37cded['newValue']}),delete _0x54647b[_0x89d5ea];}}['_getAttributeChanges'](_0x274e2a,_0x1067eb){const _0x3dac1a={};for(const [_0x608e6d,_0x5f5480]of _0x274e2a)_0x3dac1a[_0x608e6d]={'oldValue':JSON['stringify'](_0x5f5480),'newValue':'null'};for(const [_0x3bc2b2,_0xb63046]of _0x1067eb){const _0x493916=JSON['stringify'](_0xb63046);_0x3dac1a[_0x3bc2b2]?_0x3dac1a[_0x3bc2b2]['oldValue']==_0x493916?delete _0x3dac1a[_0x3bc2b2]:_0x3dac1a[_0x3bc2b2]['newValue']=_0x493916:_0x3dac1a[_0x3bc2b2]={'oldValue':'null','newValue':_0x493916};}return delete _0x3dac1a[Wt],_0x3dac1a;}['_getAttrsForOffsets'](_0x5b5141,_0x1b2750,_0x51f49e){const _0x2004c2=new Array(_0x1b2750+_0x51f49e);let _0x403231=_0x5b5141['getChildAtOffset'](_0x1b2750),_0x6f33a5=_0x403231['startOffset'];for(;_0x403231&&_0x6f33a5<_0x1b2750+_0x51f49e;){const _0x2defe3=Array['from'](_0x403231['getAttributes']());_0x2004c2['fill'](_0x2defe3,_0x6f33a5,_0x6f33a5+_0x403231['offsetSize']),_0x6f33a5+=_0x403231['offsetSize'],_0x403231=_0x403231['nextSibling'];}return _0x2004c2;}['_getPositionFromAnchorAndPath'](_0x466d43,_0x357780){const _0x1b01fc=[..._0x466d43['path']['slice'](0x0,-0x1),_0x466d43['offset']+_0x357780[0x0],..._0x357780['slice'](0x1)];return new _0x23989e(_0x466d43['root'],_0x1b01fc);}['_makeModelFromTokens'](_0x22e68b){const _0xbbb0ad=[];let _0x19e90f=null;for(const _0x12ab43 of _0x22e68b)if('element'!=_0x12ab43['type']||_0x12ab43['isStart']||_0x19e90f!=_0x12ab43['element']){if(!_0x19e90f){if('text'==_0x12ab43['type']){const _0x2bea37=_0x23989e['_createAt'](_0x12ab43['parent'],_0x12ab43['offset']),_0xd18345=_0x442be6['_createFromPositionAndShift'](_0x2bea37,_0x12ab43['data']['length']),_0x48dcee=Array['from'](_0xd18345['getItems']())['map'](_0x3e1af1=>new _0x4d91fe(_0x3e1af1['data'],_0x3e1af1['getAttributes']()));_0xbbb0ad['push'](..._0x48dcee);}else{_0x19e90f=_0x12ab43['element'];const _0x283bef=_0x12ab43['element']['_clone'](!0x0);_0x283bef['_removeAttribute'](Wt);for(const _0x503a50 of this['_editor']['model']['createRangeIn'](_0x283bef)['getItems']())_0x503a50['is']('element')&&_0x503a50['_removeAttribute'](Wt);_0xbbb0ad['push'](_0x283bef);}}}else _0x19e90f=null;return _0xbbb0ad;}}function Kt(_0x36bac9,_0x4e8bcb){return _0x36bac9['type']===_0x4e8bcb['type']&&(_0x36bac9['limitId']===_0x4e8bcb['limitId']&&('text'==_0x36bac9['type']?_0x36bac9['data']==_0x4e8bcb['data']:function(_0x3daa59,_0x495d57){if(_0x3daa59['isStart']!=_0x495d57['isStart'])return!0x1;if(_0x3daa59['isStart']&&_0x3daa59['elementId']!=_0x495d57['elementId'])return!0x1;if(_0x3daa59['category']!=_0x495d57['category'])return!0x1;if('block'==_0x3daa59['category'])return!0x0;if('container'==_0x3daa59['category']&&_0x3daa59['elementId']!=_0x495d57['elementId'])return!0x1;return _0x3daa59['element']['name']==_0x495d57['element']['name'];}(_0x36bac9,_0x4e8bcb)));}function qt(_0xf7dcc0){return Mt({'name':_0xf7dcc0['name'],...Object['fromEntries'](_0xf7dcc0['getAttributes']())});}export{H as AriaDescriptionView,At as ConfirmMixin,Wt as DATA_ID_MODEL_ATTRIBUTE,jt as DATA_ID_VIEW_ATTRIBUTE,Yt as DocumentCompare,Rt as FOCUS_ANNOTATION_KEYSTROKE,z as LateFocusButtonView,W as LateFocusDropdownButtonView,D as Permissions,vt as SuggestionsConversion,F as UserView,L as Users,J as fixElementSuggestionRange,It as getAllMarkersDomElementsSorted,Ct as getDateTimeFormatter,xt as getMarkerDomElement,Mt as hashObject,Vt as sanitizeEditorConfig,Ft as setupThreadKeyboardNavigation,Y as splitSuggestionMarkerName,Ut as surroundingMarkersDetector,_t as trimHtml};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x57b652=>0x1!=_0x57b652}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1f238b=>{const {af:{dictionary:_0x1f11c3,getPluralForm:_0x593acb}}={'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x41810f=>0x1!=_0x41810f}};_0x1f238b['af']||={'dictionary':{},'getPluralForm':null},_0x1f238b['af']['dictionary']=Object['assign'](_0x1f238b['af']['dictionary'],_0x1f11c3),_0x1f238b['af']['getPluralForm']=_0x593acb;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x46606e=>0x0==_0x46606e?0x0:0x1==_0x46606e?0x1:0x2==_0x46606e?0x2:_0x46606e%0x64>=0x3&&_0x46606e%0x64<=0xa?0x3:_0x46606e%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a2fbc=>{const {ar:{dictionary:_0x248935,getPluralForm:_0x5f2360}}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x1da533=>0x0==_0x1da533?0x0:0x1==_0x1da533?0x1:0x2==_0x1da533?0x2:_0x1da533%0x64>=0x3&&_0x1da533%0x64<=0xa?0x3:_0x1da533%0x64>=0xb?0x4:0x5}};_0x2a2fbc['ar']||={'dictionary':{},'getPluralForm':null},_0x2a2fbc['ar']['dictionary']=Object['assign'](_0x2a2fbc['ar']['dictionary'],_0x248935),_0x2a2fbc['ar']['getPluralForm']=_0x5f2360;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x3c9348=>0x1!=_0x3c9348}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2ff73e=>{const {ast:{dictionary:_0x2f1461,getPluralForm:_0x46faac}}={'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x149ab0=>0x1!=_0x149ab0}};_0x2ff73e['ast']||={'dictionary':{},'getPluralForm':null},_0x2ff73e['ast']['dictionary']=Object['assign'](_0x2ff73e['ast']['dictionary'],_0x2f1461),_0x2ff73e['ast']['getPluralForm']=_0x46faac;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x54d775=>0x1!=_0x54d775}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc108bd=>{const {az:{dictionary:_0x7bbc7d,getPluralForm:_0x130e73}}={'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x48b1dd=>0x1!=_0x48b1dd}};_0xc108bd['az']||={'dictionary':{},'getPluralForm':null},_0xc108bd['az']['dictionary']=Object['assign'](_0xc108bd['az']['dictionary'],_0x7bbc7d),_0xc108bd['az']['getPluralForm']=_0x130e73;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x51c871=>_0x51c871%0xa==0x1&&_0x51c871%0x64!=0xb?0x0:_0x51c871%0xa>=0x2&&_0x51c871%0xa<=0x4&&(_0x51c871%0x64<0xa||_0x51c871%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35593a=>{const {be:{dictionary:_0x4959e1,getPluralForm:_0x283065}}={'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x25c7fb=>_0x25c7fb%0xa==0x1&&_0x25c7fb%0x64!=0xb?0x0:_0x25c7fb%0xa>=0x2&&_0x25c7fb%0xa<=0x4&&(_0x25c7fb%0x64<0xa||_0x25c7fb%0x64>=0x14)?0x1:0x2}};_0x35593a['be']||={'dictionary':{},'getPluralForm':null},_0x35593a['be']['dictionary']=Object['assign'](_0x35593a['be']['dictionary'],_0x4959e1),_0x35593a['be']['getPluralForm']=_0x283065;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':_0x33adc2=>0x1!=_0x33adc2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2eacff=>{const {bg:{dictionary:_0x4701b7,getPluralForm:_0x446b56}}={'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':_0x58ad14=>0x1!=_0x58ad14}};_0x2eacff['bg']||={'dictionary':{},'getPluralForm':null},_0x2eacff['bg']['dictionary']=Object['assign'](_0x2eacff['bg']['dictionary'],_0x4701b7),_0x2eacff['bg']['getPluralForm']=_0x446b56;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Anonymous':'নামহীন','Yes':'হ্যাঁ','No':'না','Are\x20you\x20sure?':'আপনি\x20কি\x20নিশ্চিত?','Today':'আজ','Yesterday':'গতকাল','Last':'সর্বশেষ','Monday':'সোমবার','Tuesday':'মঙ্গলবার','Wednesday':'বুধবার','Thursday':'বৃহস্পতিবার','Friday':'শুক্রবার','Saturday':'শনিবার','Sunday':'রবিবার'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Anonymous':'নামহীন','Yes':'হ্যাঁ','No':'না','Are\x20you\x20sure?':'আপনি\x20কি\x20নিশ্চিত?','Today':'আজ','Yesterday':'গতকাল','Last':'সর্বশেষ','Monday':'সোমবার','Tuesday':'মঙ্গলবার','Wednesday':'বুধবার','Thursday':'বৃহস্পতিবার','Friday':'শুক্রবার','Saturday':'শনিবার','Sunday':'রবিবার'},'getPluralForm':_0x247ba7=>0x1!=_0x247ba7}};
|