@ckeditor/ckeditor5-collaboration-core 48.1.0-alpha.2 → 48.1.0-alpha.4
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 _0x1f2e3e,Editor as _0x5b224a,Plugin as _0x347156}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x16a1a9,Collection as _0x58a1c7,uid as _0x26b1e3,toArray as _0x59580a,first as _0x173c77,FocusTracker as _0xf41117,KeystrokeHandler as _0x3d087b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x2c87ba,IconView as _0x500168,ButtonView as _0x468570,DropdownButtonView as _0x2d0fec,FocusCycler as _0x157a06,isViewWithFocusCycler as _0x1548ad}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x57536d,IconCheck as _0x30ec78,IconCancel as _0x487f44}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x8c664,toWidget as _0x4acac4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x57594e}from'luxon';import{InsertOperation as _0x22e6f6,MoveOperation as _0x23f27c,ModelPosition as _0x5aa581,ModelRange as _0xabe198,MarkerOperation as _0x20c949,MergeOperation as _0x578921,SplitOperation as _0x1dbd82,RenameOperation as _0x55e2c9,AttributeOperation as _0x1876c4,ModelTreeWalker as _0x599c27,ModelText as _0x3fe5f4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x4bb074}from'diff';class O extends _0x1f2e3e{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x39875f,_0x1ca9d1){let _0x206fc8;if(_0x1ca9d1||(_0x1ca9d1=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x1ca9d1?_0x206fc8=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x206fc8=this['context']['editors']['find'](_0x200b61=>_0x200b61['config']['get']('collaboration.channelId')==_0x1ca9d1)),!_0x206fc8)throw new _0x16a1a9('permissions-set-permissions-invalid-channel-id',null);const _0x50a4a7=_0x206fc8['plugins'],_0x92a751=_0x50a4a7['has']('CommentsRepository')?_0x50a4a7['get']('CommentsRepository'):void 0x0,_0x1c1ab9=_0x50a4a7['has']('CommentsOnly')&&_0x50a4a7['get']('CommentsOnly'),_0x37e655=_0x39875f['includes']('document:write'),_0x41f193=_0x39875f['includes']('comment:modify_all'),_0x2949b5=_0x39875f['includes']('comment:admin'),_0x1feb2a=_0x39875f['includes']('comment:write'),_0x5631f4=_0x1feb2a||_0x2949b5,_0x1f97b1=_0x5631f4||_0x41f193,_0x105141=_0x37e655||_0x5631f4;(_0x1c1ab9&&(_0x1c1ab9['isEnabled']=!_0x37e655&&_0x1f97b1),_0x206fc8 instanceof _0x5b224a)&&(!(_0x37e655||_0x1f97b1&&_0x92a751)?_0x206fc8['enableReadOnlyMode']('no-permissions'):_0x206fc8['disableReadOnlyMode']('no-permissions'));if(_0x92a751){_0x92a751['setPermissions']({'admin':_0x2949b5,'modifyAll':_0x41f193,'write':_0x1feb2a,'resolve':_0x105141},_0x1ca9d1);const _0x2522ae=_0x206fc8 instanceof _0x5b224a&&_0x206fc8['commands']['get']('addCommentThread');_0x2522ae&&(_0x5631f4?_0x2522ae['clearForceDisabled']('noPermissions'):_0x2522ae['forceDisabled']('noPermissions'));}}}function V(_0x40ea36,_0x408206){const t=_0x40ea36['t'];switch(_0x408206){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 $ extends _0x1f2e3e{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}constructor(_0x6af3bd){super(_0x6af3bd),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x58a1c7(),this['_locale']=_0x6af3bd['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:_0x4d419a,name:_0x4bf4f5,..._0x57247a}){if(!_0x4d419a||'string'!=typeof _0x4d419a)throw new _0x16a1a9('users-add-invalid-id');if(this['users']['has'](_0x4d419a))throw new _0x16a1a9('users-add-duplicated-id',null,{'id':_0x4d419a});const _0xb26477=this['context']['config']['get']('users.getInitialsCallback'),_0x118c2c={..._0x57247a,'id':_0x4d419a,'name':U(this['_locale'],_0x4bf4f5),'color':this['_getNextColor']()};_0x118c2c['name']=U(this['_locale'],_0x118c2c['name']);const _0x44049c=new L(_0x118c2c,_0xb26477);return this['users']['add'](_0x44049c),_0x44049c;}['getUser'](_0x1048bc){return this['users']['get'](_0x1048bc);}['useAnonymousUser'](){const _0xc5e1da=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0xc5e1da);}['defineMe'](_0x464f1f){if(this['_myId'])throw new _0x16a1a9('users-me-already-defined',null);const _0x49926f=this['getUser'](_0x464f1f);if(!_0x49926f)throw new _0x16a1a9('users-me-missing-user',null);this['_myId']=_0x464f1f,_0x49926f['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x27fd92=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x27fd92&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0x16a383=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x16a383,'name':V(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class L{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x33c241,_0x1e947c){this['id']=_0x33c241['id'],this['color']=_0x33c241['color'],this['name']=_0x33c241['name'],this['initials']=_0x1e947c?_0x1e947c(this['name']):this['_computeInitials'](),this['avatar']=_0x33c241['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x4b9523=this['name']['split']('\x20')['filter'](_0x7da46f=>/^[\p{Letter}]/u['test'](_0x7da46f));return 0x1===_0x4b9523['length']?this['_getInitial'](_0x4b9523[0x0]):0x0===_0x4b9523['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x4b9523[0x0])+this['_getInitial'](_0x4b9523[_0x4b9523['length']-0x1]);}['_getInitial'](_0x2e5288){return String['fromCodePoint'](_0x2e5288['codePointAt'](0x0))['toUpperCase']();}}function U(_0x1ae140,_0x6f42d2=''){return''==(_0x6f42d2=_0x6f42d2['trim']())?V(_0x1ae140,'Anonymous'):_0x6f42d2;}class R{['_id'];constructor(_0x21c434){this['_id']=_0x21c434;}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 _0x2c87ba{['name'];['notificationView'];constructor(_0x5372c0,_0x462b43,_0x441bb3){super(_0x5372c0),this['name']=_0x462b43['name'],this['notificationView']=null;const _0x17684c=['ck','ck-user'],_0x32242c=['ck','ck-user__img'];if(_0x462b43['isAnonymous']&&_0x32242c['push']('ck-user__anonymous'),!_0x462b43['isAnonymous']&&_0x462b43['isMe']&&_0x17684c['push']('ck-user_me'),_0x462b43['avatar']&&_0x32242c['push']('ck-user__avatar'),_0x441bb3){const _0x3a6656=new _0x500168();_0x3a6656['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x3a6656['content']=_0x57536d,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x441bb3},'children':[_0x3a6656]};}const _0xe13646=[{'tag':'div','attributes':{'class':_0x32242c,'style':{'background-image':_0x462b43['avatar']?'url(\x27'+_0x462b43['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x462b43['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x462b43['name']},'children':[{'text':_0x462b43['initials']}]}];this['notificationView']&&_0xe13646['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x17684c,'data-user-id':_0x462b43['id']},'children':_0xe13646});}}class H extends _0x2c87ba{['id'];constructor(_0x6232c6,_0x45cd65){super(_0x6232c6),this['id']='ck-aria-description-'+_0x26b1e3(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x45cd65}]});}}class z extends _0x468570{['render'](){super['render'](),j(this);}}class W extends _0x2d0fec{['render'](){super['render'](),j(this);}}function j(_0x5ae823){_0x5ae823['listenTo'](_0x5ae823['element'],'mousedown',(_0x138a17,_0x5922a3)=>{_0x5922a3['stopPropagation'](),_0x5922a3['preventDefault']();}),_0x5ae823['listenTo'](_0x5ae823['element'],'mouseup',()=>{_0x5ae823['element']['focus']();});}function Y(_0x484a32){const _0x1698a6=_0x484a32['split'](':');return{'group':_0x1698a6[0x0],'type':_0x1698a6[0x1],'subType':_0x1698a6['length']>=0x5?_0x1698a6[0x2]:null,'id':_0x1698a6['length']<0x5?_0x1698a6[0x2]:_0x1698a6[0x3],'authorId':_0x1698a6['length']<0x5?_0x1698a6[0x3]:_0x1698a6[0x4],'markerCount':0x6==_0x1698a6['length']?_0x1698a6[0x5]:null};}function J(_0x3d99ca,_0x353656){const _0x12310b=_0x3d99ca['end']['nodeBefore'];if(_0x12310b&&_0x12310b['is']('element')&&_0x353656['schema']['isBlock'](_0x12310b)&&!_0x353656['schema']['isObject'](_0x12310b)){const _0x318f32=_0x353656['createPositionAt'](_0x12310b,'end');return _0x353656['createRange'](_0x3d99ca['start'],_0x318f32);}return _0x3d99ca;}class K extends _0x347156{['afterInit'](){const _0x9dfbbf=this['editor'];if(!_0x9dfbbf['plugins']['has']('AlignmentEditing'))return;_0x9dfbbf['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x347156{['afterInit'](){const _0x2fae06=this['editor'],_0x3755d4=_0x2fae06['plugins']['get']('SuggestionsConversion');for(const _0x2bca4b of q){if(!_0x2fae06['plugins']['has'](_0x2bca4b))continue;const _0x2d2c4d=_0x2bca4b['slice'](0x0,-0x7)['toLowerCase']();_0x3755d4['registerInlineAttribute'](_0x2d2c4d);}}}class Z extends _0x347156{['afterInit'](){const _0x181ab1=this['editor'],_0x13ed4e=_0x181ab1['plugins']['get']('SuggestionsConversion');_0x181ab1['plugins']['has']('BookmarkEditing')&&_0x13ed4e['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x347156{['afterInit'](){const _0x462baf=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x28efdb,commandName:_0x24d8e7}of Q)this['editor']['plugins']['has'](_0x28efdb)&&_0x462baf['registerInlineAttribute'](_0x24d8e7);}}class tt extends _0x347156{['afterInit'](){const {editor:_0x1188a9}=this;if(!_0x1188a9['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x33b9a7=_0x1188a9['plugins']['get']('SuggestionsConversion');_0x33b9a7['registerBlockAttribute']('footnotesListStyle'),_0x33b9a7['registerBlockAttribute']('footnotesListStart');}}class et extends _0x347156{['afterInit'](){const _0x3d05ce=this['editor'];if(!_0x3d05ce['plugins']['has']('HighlightEditing'))return;_0x3d05ce['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x347156{['afterInit'](){const _0x1d3c3d=this['editor'];if(!_0x1d3c3d['plugins']['has']('HtmlEmbed'))return;_0x1d3c3d['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x347156{['afterInit'](){const _0x50d443=this['editor'];if(!_0x50d443['plugins']['has']('ImageEditing'))return;const _0x5c16e7=_0x50d443['plugins']['get']('SuggestionsConversion');_0x5c16e7['registerBlockAttribute']('src'),_0x50d443['plugins']['has']('ImageResize')&&_0x5c16e7['registerBlockAttribute']('resizedWidth'),_0x50d443['plugins']['has']('ImageTextAlternativeEditing')&&_0x5c16e7['registerBlockAttribute']('alt'),_0x50d443['plugins']['has']('PictureEditing')&&_0x5c16e7['registerBlockAttribute']('sources'),_0x50d443['plugins']['has']('ImageSizeAttributes')&&(_0x5c16e7['registerBlockAttribute']('width'),_0x5c16e7['registerBlockAttribute']('height'));}}class nt extends _0x347156{['afterInit'](){const _0x2cfe2b=this['editor'],_0x5345ee=_0x2cfe2b['plugins']['get']('SuggestionsConversion');_0x2cfe2b['plugins']['has']('IndentBlock')&&(_0x5345ee['registerBlockAttribute']('blockIndent'),_0x2cfe2b['plugins']['has']('ListEditing')&&(_0x5345ee['registerBlockAttribute']('blockIndentList'),_0x5345ee['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x347156{['afterInit'](){const _0x43c50e=this['editor'];if(!_0x43c50e['plugins']['has']('LineHeight'))return;_0x43c50e['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x347156{['afterInit'](){const _0x11254e=this['editor'];if(!_0x11254e['plugins']['has']('LinkEditing'))return;const _0x31fd84=_0x11254e['plugins']['get']('SuggestionsConversion'),_0x326a80=_0x11254e['commands']['get']('link');_0x31fd84['registerInlineAttribute']('linkHref');for(const _0x409bc8 of _0x326a80['manualDecorators'])_0x31fd84['registerInlineAttribute'](_0x409bc8['id']);}}class at extends _0x347156{['afterInit'](){const _0xac643c=this['editor'];if(!_0xac643c['plugins']['has']('ListEditing'))return;const _0x43cc30=_0xac643c['plugins']['get']('SuggestionsConversion'),_0x10ff72=_0xac643c['plugins']['has']('TodoListEditing');_0x43cc30['registerBlockAttribute']('listItemId'),_0x43cc30['registerBlockAttribute']('listType'),_0x43cc30['registerBlockAttribute']('listIndent'),_0x10ff72&&_0x43cc30['registerBlockAttribute']('todoListChecked');}}class ct extends _0x347156{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x145db2=this['editor']['config']['get']('list.properties'),_0x535374=this['editor']['plugins']['get']('SuggestionsConversion');_0x145db2['styles']&&_0x535374['registerBlockAttribute']('listStyle'),_0x145db2['reversed']&&_0x535374['registerBlockAttribute']('listReversed'),_0x145db2['startIndex']&&_0x535374['registerBlockAttribute']('listStart');}}class lt extends _0x347156{['afterInit'](){const _0x14730f=this['editor'],_0xf2e77d=_0x14730f['plugins']['get']('SuggestionsConversion');_0x14730f['plugins']['has']('MultiLevelList')&&_0xf2e77d['registerBlockAttribute']('listMarkerStyle');}}class ht extends _0x347156{['afterInit'](){const _0x370fc7=this['editor'];if(!_0x370fc7['plugins']['has']('Style')||!_0x370fc7['plugins']['has']('DataSchema')||!_0x370fc7['config']['get']('style.definitions'))return;const _0x3f90e8=_0x370fc7['plugins']['get']('SuggestionsConversion'),_0x1447dd=_0x370fc7['config']['get']('style.definitions'),_0x4df1d3=_0x370fc7['plugins']['get']('GeneralHtmlSupport'),_0x10e08c=_0x370fc7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x370fc7['plugins']['get']('DataSchema'),_0x1447dd),_0x5155ba=new Set();for(const _0x5b642d of _0x10e08c['block']){const _0x2d0666=_0x4df1d3['getGhsAttributeNameForElement'](_0x5b642d['element']);_0x5155ba['add'](_0x2d0666);}const _0x5af7c1=new Set();for(const _0x31346a of _0x10e08c['inline']){const _0x48ae9f=_0x4df1d3['getGhsAttributeNameForElement'](_0x31346a['element']);_0x5af7c1['add'](_0x48ae9f);for(const _0x52868d of _0x31346a['ghsAttributes'])_0x5af7c1['add'](_0x52868d);}for(const _0xd6924d of _0x5155ba)_0x3f90e8['registerBlockAttribute'](_0xd6924d);for(const _0x44cd1f of _0x5af7c1)_0x3f90e8['registerInlineAttribute'](_0x44cd1f);}}class ut extends _0x347156{['afterInit'](){const _0x18f40a=this['editor'];if(!_0x18f40a['plugins']['has']('TableEditing'))return;const _0x58b5f2=_0x18f40a['plugins']['get']('SuggestionsConversion');_0x58b5f2['registerBlockAttribute']('headingRows'),_0x58b5f2['registerBlockAttribute']('headingColumns');}}class dt extends _0x347156{['afterInit'](){const {plugins:_0xdb9ac1}=this['editor'];if(!_0xdb9ac1['has']('TablePropertiesEditing'))return;const _0x5b3268=_0xdb9ac1['get']('SuggestionsConversion'),_0x4c48de=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x16886d of _0x4c48de)_0x5b3268['registerBlockAttribute'](_0x16886d);}}class ft extends _0x347156{['afterInit'](){const _0x5472ee=this['editor'],_0xfa5bc9=_0x5472ee['plugins']['get']('SuggestionsConversion');_0x5472ee['plugins']['has']('TableLayout')&&_0xfa5bc9['registerBlockAttribute']('tableType');}}class gt extends _0x347156{['afterInit'](){const _0x24878c=this['editor'],_0x1a6ddb=this['editor']['plugins']['get']('SuggestionsConversion');_0x24878c['plugins']['has']('Uploadcare')&&_0x24878c['plugins']['has']('UploadcareImageEdit')&&_0x1a6ddb['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x347156{['afterInit'](){const _0x5ab468=this['editor'];if(!_0x5ab468['plugins']['has']('ShiftEnter'))return;const _0x452f97=_0x5ab468['plugins']['get']('SuggestionsConversion'),_0xe8f96c=(_0x5db87d,_0x30511e,_0x2398cb,_0x16d3b4)=>{if(_0x16d3b4&&!_0x2398cb['options']['showSuggestionHighlights'])return;if(!_0x2398cb['consumable']['test'](_0x30511e['markerRange'],_0x5db87d['name']))return;const _0x5aad7b=_0x5ab468['model'];for(const _0x37a0a5 of _0x30511e['markerRange']['getItems']()){if(!_0x37a0a5['is']('element','softBreak'))continue;const _0x3731a3='deletion'==_0x30511e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x421b07,authorId:_0x32e60a}=Y(_0x30511e['markerName']),_0x386b6d=_0x2398cb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3731a3,'data-suggestion':_0x421b07,'data-author-id':_0x32e60a}),_0x5cccde=_0x2398cb['mapper']['toViewPosition'](_0x5aad7b['createPositionBefore'](_0x37a0a5));!_0x16d3b4&&_0x452f97['_activeMarkers']['includes'](_0x30511e['markerName'])&&_0x2398cb['writer']['addClass']('ck-suggestion-marker--active',_0x386b6d),_0x2398cb['writer']['insert'](_0x5cccde,_0x386b6d),_0x2398cb['mapper']['bindElementToMarker'](_0x386b6d,_0x30511e['markerName']);}};_0x5ab468['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x572d9c,_0x435160,_0x3f09a7)=>{_0xe8f96c(_0x572d9c,_0x435160,_0x3f09a7,!0x1);},{'priority':'high'}),_0x5ab468['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x55dacb,_0x22b492,_0x5d13d3)=>{_0xe8f96c(_0x55dacb,_0x22b492,_0x5d13d3,!0x1);},{'priority':'high'}),_0x5ab468['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ab158,_0x2ca020,_0x4af162)=>{_0xe8f96c(_0x5ab158,_0x2ca020,_0x4af162,!0x0);},{'priority':'high'}),_0x5ab468['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3695c2,_0x533fb4,_0x15b265)=>{_0xe8f96c(_0x3695c2,_0x533fb4,_0x15b265,!0x0);},{'priority':'high'});}}class kt extends _0x347156{['afterInit'](){const _0x112e7f=this['editor'];_0x112e7f['plugins']['has']('MediaEmbedEditing')&&(_0x112e7f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4d2d59,{writer:_0x1eee22,options:_0x1b8eaa})=>{if(_0x1b8eaa['showSuggestionHighlights'])return _0x1eee22['createEmptyElement']('div');},'converterPriority':'high'}),_0x112e7f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1079ea,_0x25d31f,_0x34207f)=>{_0x34207f['options']['showSuggestionHighlights']&&_0x1079ea['stop']();},{'priority':'high'}));}}class pt extends _0x347156{['afterInit'](){const _0xb1109b=this['editor'];if(!_0xb1109b['plugins']['has']('Table'))return;_0xb1109b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x157b2e,_0x27c77f,_0x4cd8a9)=>{((_0x1696df,_0x3b87ab,_0x5dc58a)=>{if(!_0x5dc58a['options']['showSuggestionHighlights'])return;const _0x404eb5=_0x3b87ab['item'];if(!_0x404eb5||!_0x404eb5['is']('element','tableCell'))return;const _0x59417c=_0x5dc58a['mapper']['toViewElement'](_0x404eb5);if(_0x59417c){const {id:_0x4feb13,authorId:_0x37d74a}=Y(_0x3b87ab['markerName']);_0x8c664(_0x59417c,_0x5dc58a['writer'],(_0x5b815f,_0x4c7eab,_0x446032)=>{_0x446032['addClass'](_0x59580a(_0x4c7eab['classes']),_0x5b815f),_0x446032['setAttribute']('data-suggestion',_0x4feb13,_0x5b815f),_0x446032['setAttribute']('data-author-id',_0x37d74a,_0x5b815f);});}})(0x0,_0x27c77f,_0x4cd8a9);},{'priority':'highest'});}}class yt extends _0x347156{['afterInit'](){const _0xe594ab=this['editor'];_0xe594ab['plugins']['has']('HorizontalLineEditing')&&_0xe594ab['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x38187d,{writer:_0x10b2f0,options:_0x44e9e7})=>{if(!_0x44e9e7['showSuggestionHighlights'])return null;const _0x32885c=_0x10b2f0['createContainerElement']('div'),_0x2f0174=_0x10b2f0['createEmptyElement']('hr');return _0x10b2f0['addClass']('ck-horizontal-line',_0x32885c),_0x10b2f0['insert'](_0x10b2f0['createPositionAt'](_0x32885c,0x0),_0x2f0174),_0x32885c;},'converterPriority':'high'});}}class wt extends _0x347156{['afterInit'](){const {plugins:_0x307662,model:_0x32205b}=this['editor'];if(!_0x307662['has']('TableCellPropertiesEditing'))return;const _0x18ffec=_0x307662['get']('SuggestionsConversion'),_0x30ca42=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x27564b of _0x30ca42)_0x18ffec['registerBlockAttribute'](_0x27564b);_0x32205b['schema']['checkAttribute']('tableCell','tableCellType')&&_0x18ffec['registerBlockAttribute']('tableCellType');}}class bt extends _0x347156{['afterInit'](){const _0x189495=this['editor'];if(!_0x189495['plugins']['has']('TableEditing')||!_0x189495['config']['get']('table.enableFooters'))return;_0x189495['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x347156{['_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,ht,pt,ut,bt,ft,wt,dt,gt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21fe4b=this['editor'],_0x212aa8=(_0x42542c,_0x337b89,_0x4e71f5)=>{const {id:_0x20eff3,authorId:_0xcd0bdc,type:_0x232d16,subType:_0x4f4745}=Y(_0x42542c['markerName']),_0x4fa580=['ck-suggestion-marker',this['_getClassName'](_0x232d16,_0x4f4745)];let _0x55f94c=0xbb8;return!_0x4e71f5&&(this['_activeMarkers']['includes'](_0x42542c['markerName'])&&(_0x4fa580['push']('ck-suggestion-marker--active'),_0x55f94c=0xbc2)),('deletion'==_0x232d16&&(_0x55f94c+=0x5),{'classes':_0x4fa580,'attributes':{'data-suggestion':_0x20eff3,'data-author-id':_0xcd0bdc},'priority':_0x55f94c});};_0x21fe4b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3ac938,_0x145c5c)=>_0x212aa8(_0x3ac938,0x0,!0x1)}),_0x21fe4b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4ebfad,_0x58db73)=>_0x212aa8(_0x4ebfad,0x0,!0x0)}),_0x21fe4b['conversion']['for']('dataDowncast')['add'](_0x576c0a=>{_0x576c0a['on']('addMarker:suggestion',(_0x9a4f3f,_0x2db96b,_0x26b34c)=>{if(!_0x26b34c['options']['showSuggestionHighlights'])return;const _0x361c83=_0x2db96b['item'];if(!_0x361c83)return;const _0x4e5060=_0x26b34c['mapper']['toViewElement'](_0x361c83);_0x21fe4b['model']['schema']['isObject'](_0x361c83)&&_0x4e5060&&!_0x4e5060['getCustomProperty']('widget')&&_0x4e5060['is']('containerElement')&&_0x4acac4(_0x4e5060,_0x26b34c['writer']);},{'priority':'high'});});const _0x13225a=(_0x480597,_0xead1d9,_0x70fcac,_0x5aa883,_0x293977)=>{if(_0x5aa883&&!_0x70fcac['options']['showSuggestionHighlights'])return;if(!_0xead1d9['item'])return;const {id:_0x1bb74f,authorId:_0x383c5e,subType:_0x4ba553}=Y(_0xead1d9['markerName']);if(_0x293977){const _0xa5e3bd=_0x4ba553['split']('|')[0x0];if(!this['isBlockAttribute'](_0xa5e3bd))return;}if(_0xead1d9['item']['is']('selection'))return void _0x70fcac['consumable']['consume'](_0xead1d9['item'],_0x480597['name']);const _0x8a040f=_0x70fcac['mapper']['toViewElement'](_0xead1d9['item']);if(_0xead1d9['item']['is']('element')&&_0x21fe4b['model']['schema']['isBlock'](_0xead1d9['item'])&&!_0x8a040f['getCustomProperty']('addHighlight')){_0x70fcac['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x8a040f),_0x70fcac['writer']['setAttribute']('data-suggestion',_0x1bb74f,_0x8a040f),_0x70fcac['writer']['setAttribute']('data-author-id',_0x383c5e,_0x8a040f),_0x70fcac['mapper']['bindElementToMarker'](_0x8a040f,_0xead1d9['markerName']),_0x5aa883||(this['_activeMarkers']['includes'](_0xead1d9['markerName'])?_0x70fcac['writer']['addClass']('ck-suggestion-marker--active',_0x8a040f):_0x70fcac['writer']['removeClass']('ck-suggestion-marker--active',_0x8a040f));for(const _0x5865ef of _0x21fe4b['model']['createRangeIn'](_0xead1d9['item'])['getItems']())_0x70fcac['consumable']['consume'](_0x5865ef,_0x480597['name']);_0x70fcac['consumable']['consume'](_0xead1d9['item'],_0x480597['name']);}},_0x592c6b=(_0x2500f6,_0x3b1b8c,_0x4ee8a2,_0x5269a8)=>{const _0x824f11=_0x4ee8a2['mapper']['markerNameToElements'](_0x3b1b8c['markerName']);if(_0x824f11){if(_0x5269a8){const {subType:_0x23d96b}=Y(_0x3b1b8c['markerName']),_0xd83de2=_0x23d96b['split']('|')[0x0];if(!this['isBlockAttribute'](_0xd83de2))return;}for(const _0x22e1b8 of _0x824f11)_0x22e1b8['getCustomProperty']('addHighlight')||(_0x4ee8a2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x22e1b8),_0x4ee8a2['writer']['removeAttribute']('data-suggestion',_0x22e1b8),_0x4ee8a2['writer']['removeAttribute']('data-author-id',_0x22e1b8),_0x4ee8a2['mapper']['unbindElementFromMarkerName'](_0x22e1b8,_0x3b1b8c['markerName']));}};_0x21fe4b['conversion']['for']('editingDowncast')['add'](_0x4cd798=>{_0x4cd798['on']('addMarker:suggestion:formatBlock',(_0x109da1,_0x59624d,_0x5df77f)=>{_0x13225a(_0x109da1,_0x59624d,_0x5df77f,!0x1,!0x1);},{'priority':'high'});}),_0x21fe4b['conversion']['for']('editingDowncast')['add'](_0x36143c=>{_0x36143c['on']('addMarker:suggestion:attribute',(_0x5ae034,_0x495753,_0xa8f36)=>{_0x13225a(_0x5ae034,_0x495753,_0xa8f36,!0x1,!0x0);},{'priority':'high'});}),_0x21fe4b['conversion']['for']('editingDowncast')['add'](_0x275f29=>{_0x275f29['on']('removeMarker:suggestion:formatBlock',(_0x35b761,_0x1d6ca7,_0x572432)=>{_0x592c6b(0x0,_0x1d6ca7,_0x572432,!0x1);},{'priority':'high'});}),_0x21fe4b['conversion']['for']('editingDowncast')['add'](_0x4f6a91=>{_0x4f6a91['on']('removeMarker:suggestion:attribute',(_0x3c2d11,_0x1a6b77,_0x2648e1)=>{_0x592c6b(0x0,_0x1a6b77,_0x2648e1,!0x0);},{'priority':'high'});}),_0x21fe4b['conversion']['for']('dataDowncast')['add'](_0x45bfd6=>{_0x45bfd6['on']('addMarker:suggestion:formatBlock',(_0x42c19f,_0x57ad96,_0x92468e)=>{_0x13225a(_0x42c19f,_0x57ad96,_0x92468e,!0x0,!0x1);},{'priority':'highest'});}),_0x21fe4b['conversion']['for']('dataDowncast')['add'](_0xed8683=>{_0xed8683['on']('addMarker:suggestion:attribute',(_0x33824d,_0x8ba83d,_0x58a34c)=>{_0x13225a(_0x33824d,_0x8ba83d,_0x58a34c,!0x0,!0x0);},{'priority':'highest'});}),_0x21fe4b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24beb3,_0x300f7e)=>_0x300f7e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24beb3['substr'](0xb)}});const _0xd6cb61=(_0xf838d2,_0x50470b,_0x2fe419,_0x320f3,_0x57d0d9)=>{if(_0x320f3&&!_0x2fe419['options']['showSuggestionHighlights'])return;if(!_0x2fe419['consumable']['test'](_0x50470b['markerRange'],_0xf838d2['name']))return;const _0x3f02de=this['_activeMarkers'],_0x3e00cb=_0x50470b['markerRange']['getWalker'](),_0x35e4aa=_0x50470b['markerRange']['start'],_0x547f2d=_0x21fe4b['model']['schema'];let _0x307f02=null,_0x51a397=null,_0x5dcf27=!0x1,_0xed07b5=!0x1;for(const _0x4a3a3a of _0x3e00cb){const _0x63eead=_0x4a3a3a['item'];_0x5dcf27=_0x5dcf27||_0x547f2d['isContent'](_0x63eead);const _0x523f36=_0x2fe419['mapper']['toViewElement'](_0x63eead);if(_0x523f36&&_0x523f36['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a3a3a['type']&&(_0x547f2d['isBlock'](_0x63eead)&&!_0x547f2d['isLimit'](_0x63eead)&&(_0x63eead['nextSibling']||_0x35e4aa['isAtEnd']?_0x307f02&&_0x307f02['parent']==_0x63eead||(_0x307f02=_0x63eead,_0x5c8a98(_0x4a3a3a['previousPosition']),_0xed07b5=!0x0):_0x51a397=_0x51a397||_0x4a3a3a['previousPosition']));}function _0x5c8a98(_0x50bdd5){const {id:_0x30f2b5,authorId:_0x21e8c3}=Y(_0x50470b['markerName']),_0x323ef5=_0x2fe419['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x57d0d9,'data-suggestion':_0x30f2b5,'data-author-id':_0x21e8c3}),_0x35c531=_0x2fe419['mapper']['toViewPosition'](_0x50bdd5);!_0x320f3&&_0x3f02de['includes'](_0x50470b['markerName'])&&_0x2fe419['writer']['addClass']('ck-suggestion-marker--active',_0x323ef5),_0x2fe419['writer']['insert'](_0x35c531,_0x323ef5),_0x2fe419['mapper']['bindElementToMarker'](_0x323ef5,_0x50470b['markerName']);}_0x5dcf27||_0xed07b5||!_0x51a397||_0x5c8a98(_0x51a397);};_0x21fe4b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x24e65f,_0x4877de,_0xd3610c)=>{_0xd6cb61(_0x24e65f,_0x4877de,_0xd3610c,!0x1,'merge');},{'priority':'high'}),_0x21fe4b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1bf24e,_0x15cb1e,_0x11695d)=>{_0xd6cb61(_0x1bf24e,_0x15cb1e,_0x11695d,!0x0,'merge');},{'priority':'high'}),_0x21fe4b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2de40b,_0x141f4e,_0x56b99a)=>{_0xd6cb61(_0x2de40b,_0x141f4e,_0x56b99a,!0x1,'split');},{'priority':'high'}),_0x21fe4b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x516784,_0x432048,_0x5ace4c)=>{_0xd6cb61(_0x516784,_0x432048,_0x5ace4c,!0x0,'split');},{'priority':'high'}),_0x21fe4b['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4569bf,_0x581ae6,_0x51e9b7)=>{((_0x2dafe7,_0x53a988,_0x496c20)=>{const _0x128424=_0x496c20['mapper']['markerNameToElements'](_0x53a988['markerName']);if(_0x128424){for(const _0x505e4b of _0x128424)(_0x505e4b['hasClass']('ck-suggestion-marker-split')||_0x505e4b['hasClass']('ck-suggestion-marker-merge'))&&(_0x496c20['mapper']['unbindElementFromMarkerName'](_0x505e4b,_0x53a988['markerName']),_0x496c20['writer']['remove'](_0x505e4b));}})(0x0,_0x581ae6,_0x51e9b7);},{'priority':'high'});const _0x597ec8=(_0x4cfeb,_0xf557cd,_0x2da99f,_0x725930)=>{if(_0x725930&&!_0x2da99f['options']['showSuggestionHighlights'])return;const _0x26b5db=_0xf557cd['markerRange']['start'],_0x19a73e=_0xf557cd['markerRange']['end'],_0x10faf3=_0x21fe4b['model']['schema'];if(!_0x26b5db['isTouching'](_0x19a73e)||!_0x26b5db['nodeAfter'])return;const _0x5a5647=_0x26b5db['nodeAfter'];if(_0x10faf3['isBlock'](_0x5a5647)&&!_0x10faf3['isLimit'](_0x5a5647)&&_0x10faf3['checkChild'](_0x5a5647,'$text')){if(!_0x2da99f['consumable']['consume'](_0xf557cd['markerRange'],_0x4cfeb['name']))return;const {id:_0x53d721,authorId:_0x468e72}=Y(_0xf557cd['markerName']),_0x4f272e=_0x2da99f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x53d721,'data-author-id':_0x468e72}),_0x58fc17=_0x2da99f['mapper']['toViewPosition'](_0x19a73e);!_0x725930&&this['_activeMarkers']['includes'](_0xf557cd['markerName'])&&_0x2da99f['writer']['addClass']('ck-suggestion-marker--active',_0x4f272e),_0x2da99f['writer']['insert'](_0x58fc17,_0x4f272e),_0x2da99f['mapper']['bindElementToMarker'](_0x4f272e,_0xf557cd['markerName']);}};_0x21fe4b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38a056,_0x5dd300,_0x8d070d)=>{_0x597ec8(_0x38a056,_0x5dd300,_0x8d070d,!0x1);},{'priority':'high'}),_0x21fe4b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2afa09,_0x6629c7,_0x567daa)=>{_0x597ec8(_0x2afa09,_0x6629c7,_0x567daa,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0xc66f4,_0x55a30a,_0x4fb6fa)=>{this['_activeMarkers']=_0x4fb6fa['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x3c5731){this['_blockAttributeKeys']['add'](_0x3c5731);}['registerInlineAttribute'](_0x6428dd){this['_inlineAttributeKeys']['add'](_0x6428dd);}['isBlockAttribute'](_0x14b02f){return this['_blockAttributeKeys']['has'](_0x14b02f);}['isInlineAttribute'](_0x3e9ec6){return this['_inlineAttributeKeys']['has'](_0x3e9ec6);}['isRegisteredAttribute'](_0x35ce8c){return this['isInlineAttribute'](_0x35ce8c)||this['isBlockAttribute'](_0x35ce8c);}['_getClassName'](_0xecaaf2,_0x3e8632){if('attribute'!=_0xecaaf2)return'ck-suggestion-marker-'+_0xecaaf2;const _0x2635c4=_0x3e8632['split']('|')[0x0];return this['isBlockAttribute'](_0x2635c4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x3a6403={},_0x37777a){if(void 0x0!==_0x3a6403['dateTimeFormat']&&'function'!=typeof _0x3a6403['dateTimeFormat'])throw new _0x16a1a9('invalid-date-time-format');return _0x346a9d=>{const _0x18c761='string'==typeof _0x346a9d?_0x57594e['fromISO'](_0x346a9d):_0x57594e['fromJSDate'](_0x346a9d),_0x7f6ae7=_0x57594e['now'](),_0x65463f=Math['floor'](_0x7f6ae7['diff'](_0x18c761,'days')['days']);return _0x3a6403['dateTimeFormat']?_0x3a6403['dateTimeFormat'](_0x18c761['toJSDate'](),_0x37777a&&_0x37777a['t']?_0x37777a['t']:void 0x0):0x0===_0x65463f?_0x37777a?V(_0x37777a,'Today')+'\x20'+_0x18c761['toFormat']('hh:mma'):_0x18c761['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x65463f?_0x37777a?V(_0x37777a,'Yesterday')+'\x20'+_0x18c761['toFormat']('hh:mma'):_0x18c761['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x65463f<0x7?_0x37777a?V(_0x37777a,'Last')+'\x20'+V(_0x37777a,_0x18c761['toFormat']('EEEE'))+'\x20'+_0x18c761['toFormat']('hh:mma'):_0x18c761['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x18c761['toFormat']('LL-dd-yyyy\x20hh:mma');};}function _t(_0x1eaf38,_0x499403){const _0x44e509=_0x1eaf38['mapper']['markerNameToElements'](_0x499403['name']);if(!_0x44e509)return null;const _0xecd462=_0x173c77(_0x44e509['values']());return _0x1eaf38['view']['domConverter']['mapViewToDom'](_0xecd462)||null;}function xt(_0x36021e,_0x136979){if(0x0===_0x136979['length'])return null;const _0x1b0be2=[],_0x200105=_0x36021e['view']['domConverter'];for(const _0x544a01 of _0x136979){const _0x32d14d=_0x36021e['mapper']['markerNameToElements'](_0x544a01['name']);if(!_0x32d14d)continue;const _0xdab65a=Array['from'](_0x32d14d)['map'](_0x102148=>_0x200105['mapViewToDom'](_0x102148))['filter'](_0x521228=>!!_0x521228);_0x1b0be2['push'](..._0xdab65a);}if(0x0===_0x1b0be2['length'])return null;const _0x759b8f=[];for(const _0x2c314b of _0x1b0be2){const _0x326bd0=_0x2c314b['getClientRects']()['item'](0x0);_0x326bd0&&_0x759b8f['push']({'x':_0x326bd0['x'],'y':_0x326bd0['y'],'domElement':_0x2c314b});}return 0x0===_0x759b8f['length']?null:(_0x759b8f['sort']((_0x47127b,_0x122461)=>_0x47127b['y']-_0x122461['y']||_0x47127b['x']-_0x122461['x']),_0x759b8f['map'](_0x216ea2=>_0x216ea2['domElement']));}function It(_0x1f3db7,{limit:_0x3915e6,suffix:_0x1c6c47='...'}){const _0x32968b=[];let _0x1280c5=0x0;const _0x2fdabc=_0x1f3db7['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x34a4bf=0x0;_0x34a4bf<_0x2fdabc['length'];_0x34a4bf++){let _0x223bac=_0x2fdabc[_0x34a4bf];const _0x53b7ef=St(_0x223bac);if(_0x223bac['startsWith']('<')){if(_0x1280c5>=_0x3915e6){const _0x25ac65=_0x223bac['match'](/[a-zA-Z]+/);if(!_0x25ac65){_0x2fdabc[_0x34a4bf]='';continue;}const _0x43567f=_0x25ac65[0x0];_0x223bac['startsWith']('</')?(_0x32968b['length']&&(_0x223bac=''),_0x32968b['pop']()):(_0x32968b['push'](_0x43567f),_0x223bac='');}}else{if(_0x1280c5>=_0x3915e6)_0x223bac='';else{if(_0x1280c5+_0x53b7ef['length']>=_0x3915e6){let _0x9213da=_0x3915e6-_0x1280c5;if('\x20'===_0x53b7ef[_0x9213da-0x1])_0x9213da--;else{const _0x122a9a=_0x53b7ef['slice'](_0x9213da)['indexOf']('\x20');-0x1!==_0x122a9a?_0x9213da+=_0x122a9a:_0x9213da=_0x223bac['length'];}_0x223bac=_0x53b7ef['slice'](0x0,_0x9213da)['join']('')+_0x1c6c47,_0x1280c5=_0x3915e6;}else _0x1280c5+=_0x53b7ef['length'];}}_0x2fdabc[_0x34a4bf]=_0x223bac;}return _0x2fdabc['join']('\x0a')['replace'](/\n/g,'');}function St(_0x586125){const _0x4178b6=[];for(let _0x478bb8=0x0;_0x478bb8<_0x586125['length'];_0x478bb8++){const _0x4896af=_0x586125['substring'](_0x478bb8)['match'](/^&[a-z0-9#]+;/);if(_0x4896af){const _0x234047=_0x4896af[0x0];_0x4178b6['push'](_0x234047),_0x478bb8+=_0x234047['length']-0x1;}else _0x4178b6['push'](_0x586125[_0x478bb8]);}return _0x4178b6;}class Et extends _0x2c87ba{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x2bc1e2){super(_0x2bc1e2);const _0x1c8e29=this['bindTemplate'];this['set']('message',V(_0x2bc1e2,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x2bc1e2,V(_0x2bc1e2,'Yes'),_0x30ec78,'submit'),this['cancelView']=this['_createButtonView'](_0x2bc1e2,V(_0x2bc1e2,'No'),_0x487f44,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0xf41117(),this['keystrokes']=new _0x3d087b(),this['focusCycler']=new _0x157a06({'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':_0x1c8e29['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'](_0x5a4586,_0x50900c,_0x3267cc,_0xf03448){const _0x39be51=new _0x468570(_0x5a4586);return _0x39be51['label']=_0x50900c,_0x39be51['icon']=_0x3267cc,_0x39be51['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0xf03448}}),_0x39be51['on']('execute',()=>this['fire'](_0xf03448)),_0x39be51;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x27f93a=>{this['keystrokes']['listenTo'](_0x27f93a['element']),this['focusTracker']['add'](_0x27f93a['element']);}),this['keystrokes']['set']('esc',(_0x40bc12,_0x4ffb3d)=>{this['fire']('cancel'),_0x4ffb3d();});}}function Mt(_0x17db3d){return class extends _0x17db3d{['showConfirm'](_0x49a443,_0x3d17eb){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x49a443,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x3d17eb['appendChild'](this['confirmView']['element']),_0x3d17eb['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x2d3788,_0x151ecb,_0x21629f)=>{_0x21629f||_0x3d17eb['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x3e3258=>this['confirmView']['on']('submit',_0x3e3258));}['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 At(_0x1040ed){let _0x3a6eb5=0x0,_0x41c9cf=0x0;for(const _0x30007f of Nt(_0x1040ed))_0x3a6eb5=(_0x3a6eb5<<0x5)-_0x3a6eb5+_0x30007f,_0x3a6eb5&=_0x3a6eb5,[_0x3a6eb5,_0x41c9cf]=[_0x41c9cf,_0x3a6eb5];return Bt(_0x3a6eb5)+Bt(_0x41c9cf);}function*Tt(_0x581173){null==_0x581173||null==_0x581173?yield 0x12b9b0a1:0x0===_0x581173||!0x1===_0x581173?yield 0x0:0x1===_0x581173||0x1==_0x581173?yield 0x1:Array['isArray'](_0x581173)?yield*function*(_0x57a5aa){for(const _0x415c5a of _0x57a5aa)yield*Tt(_0x415c5a);}(_0x581173):'object'==typeof _0x581173?yield*Nt(_0x581173):'string'==typeof _0x581173?yield*Pt(_0x581173):'number'==typeof _0x581173&&(yield _0x581173);}function*Nt(_0x3be09d){if(yield Dt('{'),_0x3be09d){const _0x367efb=Object['keys'](_0x3be09d)['sort']();for(const _0x2f74d5 of _0x367efb){yield*Pt(_0x2f74d5),yield Dt(':');const _0x51a582=_0x3be09d[_0x2f74d5];yield*Tt(_0x51a582);}}yield Dt('}');}function*Pt(_0x492ef5){yield Dt('\x22');for(const _0x17ebe9 of _0x492ef5)yield Dt(_0x17ebe9);yield Dt('\x22');}function Dt(_0x14de71){return _0x14de71['charCodeAt'](0x0);}function Bt(_0x7fef93){return(_0x7fef93*=Math['sign'](_0x7fef93))['toString'](0x24);}const Ot=['root','roots','initialData','context','toolbar','rootsAttributes'],Vt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function $t(_0x560e04,_0x275f8a,_0x12ea05,_0x2f641a=[]){const _0x4a3a6f='string'==typeof _0x560e04?_0x12ea05['get'](_0x560e04)['constructor']:_0x560e04['prototype']['constructor'];if(_0x275f8a['has'](_0x4a3a6f))return _0x275f8a['get'](_0x4a3a6f);_0x275f8a['set'](_0x4a3a6f,!0x0);const _0x5acd2a=[...Vt,..._0x2f641a]['map'](_0x580081=>{if(_0x12ea05['has'](_0x580081))return _0x12ea05['get'](_0x580081)['constructor'];})['filter'](_0x372970=>_0x372970);if(_0x4a3a6f&&_0x5acd2a['includes'](_0x4a3a6f))return _0x275f8a['set'](_0x4a3a6f,!0x1),!0x1;if(!_0x4a3a6f['requires'])return _0x275f8a['set'](_0x4a3a6f,!0x0),!0x0;const _0x3a97f5=_0x4a3a6f['requires']['every'](_0x3cbd15=>$t(_0x3cbd15,_0x275f8a,_0x12ea05,_0x2f641a));return _0x275f8a['set'](_0x4a3a6f,_0x3a97f5),_0x3a97f5;}function Lt(_0x110ec6,_0x4bb427){const _0x359e20={};for(const _0x5780fc of _0x110ec6['config']['names']())Ot['includes'](_0x5780fc)||(_0x359e20[_0x5780fc]=_0x110ec6['config']['get'](_0x5780fc));const _0x1e5332=_0x359e20['plugins']||[],_0x446a7e=_0x110ec6['constructor']['builtinPlugins']||[],_0x2a7059=_0x1e5332['length']?_0x1e5332:_0x446a7e,_0x47f42b=_0x359e20['extraPlugins']||[];delete _0x359e20['extraPlugins'];const _0x67b26e=_0x359e20['removePlugins']||[];delete _0x359e20['removePlugins'];const _0xb7f9bc=_0x110ec6['_context']['config']['get']('plugins')||[],_0x53c27d=_0x2a7059['concat'](_0x47f42b)['concat'](_0xb7f9bc)['map'](_0xaf95fc=>'string'==typeof _0xaf95fc?_0x446a7e['find'](_0x7e4591=>_0x7e4591['pluginName']==_0xaf95fc):_0xaf95fc)['filter'](_0x574574=>!_0x67b26e['includes'](_0x574574)&&!_0x67b26e['includes'](_0x574574['pluginName'])),_0x284fc1=Array['from'](new Set(_0x53c27d)),_0x3f6adc=new Map();return _0x359e20['plugins']=_0x284fc1['filter'](_0x54e0a7=>$t(_0x54e0a7,_0x3f6adc,_0x110ec6['plugins'],_0x4bb427)),_0x359e20;}function Ut(_0x522294,_0x37a8d5){const _0x4ce403=[];_0x522294['document']['selection']['on']('change:range',()=>{const _0x36f15c=function(_0x3cac4b,_0x14165a){const _0x8efbd1=[];for(const _0x37ba2f of _0x3cac4b['markers']){const _0x18ed73=_0x37ba2f['getRange']();(_0x18ed73['containsPosition'](_0x14165a)||_0x18ed73['start']['isEqual'](_0x14165a)||_0x18ed73['end']['isEqual'](_0x14165a))&&_0x8efbd1['push'](_0x37ba2f);}return _0x8efbd1;}(_0x522294,_0x522294['document']['selection']['focus']),_0x32be81=[],_0xae2dd6=[],_0x124522=[];for(const _0x2891da of _0x4ce403)_0x36f15c['includes'](_0x2891da)||_0x32be81['push'](_0x2891da);for(const _0x4f36f2 of _0x36f15c)_0x4ce403['includes'](_0x4f36f2)||_0xae2dd6['push'](_0x4f36f2),_0x124522['push'](_0x4f36f2);(_0x32be81['length']||_0xae2dd6['length'])&&_0x37a8d5({'left':_0x32be81,'entered':_0xae2dd6}),_0x4ce403['length']=0x0,_0x4ce403['push'](..._0x124522);});}const Rt='Ctrl+Shift+E';function Ft(_0x1d039a,_0x2e7862){const _0x49e97b=_0x1d039a['element'];_0x1d039a['keystrokes']['listenTo'](_0x49e97b);for(const _0x4f2c68 of _0x2e7862)Ht(_0x1d039a,_0x4f2c68);_0x2e7862['on']('change',(_0x6df2e3,_0x3f0b53)=>{for(const _0x24a411 of _0x3f0b53['removed'])zt(_0x1d039a,_0x24a411);for(const _0x2db439 of Array['from'](_0x3f0b53['added'])['reverse']())Ht(_0x1d039a,_0x2db439);}),_0x1d039a['keystrokes']['set']('enter',(_0x206a7c,_0x10b80e)=>{_0x49e97b===_0x206a7c['target']&&(_0x1d039a['focusCycler']['focusFirst'](),_0x10b80e());},{'filter':_0x29ccde=>_0x29ccde['target']===_0x49e97b}),_0x1d039a['keystrokes']['set']('esc',(_0x5d77ba,_0x29f0ec)=>{_0x49e97b!==_0x5d77ba['target']?_0x1d039a['focus']():_0x1d039a['fire']('escape'),_0x29f0ec();}),_0x1d039a['keystrokes']['set']('arrowdown',(_0x3ab06d,_0x1e4f04)=>{_0x49e97b===_0x3ab06d['target']&&(_0x1d039a['fire']('arrowdown'),_0x1e4f04());}),_0x1d039a['keystrokes']['set']('arrowup',(_0x9aeeca,_0x8fcd0d)=>{_0x49e97b===_0x9aeeca['target']&&(_0x1d039a['fire']('arrowup'),_0x8fcd0d());});}function Ht(_0x38e94c,_0x519c72){_0x519c72['isRendered']&&(_0x38e94c['focusTracker']['add'](_0x519c72['element']),_0x38e94c['keystrokes']['listenTo'](_0x519c72['element']),_0x1548ad(_0x519c72)&&function(_0x21b4cb,_0x4548e8){const _0x334f0e=_0x21b4cb['actions'],_0x3e1e62=_0x4548e8['actions'];for(const _0x17edfc of Object['keys'](_0x334f0e))if(_0x17edfc in _0x3e1e62&&_0x334f0e[_0x17edfc]!==_0x3e1e62[_0x17edfc])return!0x1;return!0x0;}(_0x38e94c['focusCycler'],_0x519c72['focusCycler'])&&_0x38e94c['focusCycler']['chain'](_0x519c72['focusCycler']));}function zt(_0x18e157,_0xeeafbd){_0x18e157['focusTracker']['remove'](_0xeeafbd['element']),_0x18e157['keystrokes']['stopListening'](_0xeeafbd['element']),_0x1548ad(_0xeeafbd)&&_0x18e157['focusCycler']['unchain'](_0xeeafbd['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x1f2e3e{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x5b224a?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x1f7aa5,_0x5c5522)=>{_0x5c5522['on']('ready',()=>{this['_integrateEditor'](_0x5c5522);});});}get['editor'](){if(this['context']instanceof _0x5b224a)return this['context'];{const _0x122fba=this['context']['editors']['first'];if(!_0x122fba)throw new _0x16a1a9('documentcompare-no-editor',this);return _0x122fba;}}['getDiff'](_0x13ba14,_0x59bcd5,_0x5ca49e={'anchor':'main','markDeletions':!0x1}){const _0x38956f=_0x5ca49e['targetEditor']||this['editor'];let _0x780737,_0x21354c;if('string'==typeof _0x5ca49e['anchor']){const _0x38991e=_0x38956f['model']['document']['getRoot'](_0x5ca49e['anchor']);if(!_0x38991e)throw new _0x16a1a9('documentcompare-compare-no-root',this,{'anchor':_0x5ca49e['anchor']});_0x780737=_0x38991e,_0x21354c=_0x38956f['model']['createPositionAt'](_0x38991e,0x0);}else _0x780737=_0x5ca49e['anchor']['clone'](),_0x21354c=_0x5ca49e['anchor']['clone']();const _0x5183e5=_0x38956f['data']['parse'](_0x13ba14,_0x780737),_0x29b3ca=_0x38956f['data']['parse'](_0x59bcd5,_0x780737);return new Jt({'editor':_0x38956f,'before':_0x5183e5,'after':_0x29b3ca,'options':{'anchor':_0x21354c,'markDeletions':_0x5ca49e['markDeletions']}});}['isMarkedRemoveOperation'](_0x4c6696){return'marker'==_0x4c6696['type']&&_0x4c6696['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x4cf72e){_0x4cf72e['conversion']['for']('upcast')['add'](_0x1600c8=>{_0x1600c8['on']('element',(_0x38afa5,_0x4ec0d1,_0x144fa4)=>{if(_0x4ec0d1['modelRange'])for(const _0x5554fc of _0x4ec0d1['modelRange']['getItems']({'shallow':!0x0})){if(_0x5554fc['is']('$textProxy'))continue;const _0x510e4=_0x4ec0d1['viewItem']['getAttribute'](jt);_0x510e4&&_0x144fa4['writer']['setAttribute'](Wt,_0x510e4,_0x5554fc);}},{'priority':'lowest'});}),_0x4cf72e['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x8e24e5,before:_0x4ca07c,after:_0x3ded2b,options:_0x4a1bf0}){this['_editor']=_0x8e24e5,this['_markDeletions']=!!_0x4a1bf0['markDeletions'],this['_anchor']=_0x4a1bf0['anchor'];const _0x185d80=this['_tokenizeModel'](_0x4ca07c),_0x3cc08f=this['_tokenizeModel'](_0x3ded2b);this['_diffItems']=this['_diffModelTokens'](_0x185d80,_0x3cc08f),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x4ca07c['markers'],_0x3ded2b['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x1aee8d=this['_editor']['model']['document'],_0xcf6e8f=[];let _0x48b4d4=_0x1aee8d['version'];for(const _0x2d6a51 of this['_operationsData'])switch(_0x2d6a51['type']){case'attribute':{const _0x7782f9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['path']),_0x5d7e50=_0x7782f9['getShiftedBy'](_0x2d6a51['howMany']),_0x7adcb0=new _0xabe198(_0x7782f9,_0x5d7e50),_0x546f8b=JSON['parse'](_0x2d6a51['oldValue']),_0x3a8651=JSON['parse'](_0x2d6a51['newValue']);_0xcf6e8f['push'](new _0x1876c4(_0x7adcb0,_0x2d6a51['key'],_0x546f8b,_0x3a8651,_0x48b4d4++));break;}case'insert':{const _0x44609c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['path']),_0x189db4=this['_makeModelFromTokens'](_0x2d6a51['tokens']);_0xcf6e8f['push'](new _0x22e6f6(_0x44609c,_0x189db4,_0x48b4d4++));break;}case'remove':{const _0x2c2724=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['path']),_0x1a3954=new _0x5aa581(_0x1aee8d['graveyard'],[0x0]);_0xcf6e8f['push'](new _0x23f27c(_0x2c2724,_0x2d6a51['howMany'],_0x1a3954,_0x48b4d4++));break;}case'rename':{const _0x25683a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['path']);_0xcf6e8f['push'](new _0x55e2c9(_0x25683a,_0x2d6a51['oldName'],_0x2d6a51['newName'],_0x48b4d4++));break;}case'split':{const _0x1c1913=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['path']),_0x554700=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['path']['slice'](0x0,-0x1));_0x554700['offset']++,_0xcf6e8f['push'](new _0x1dbd82(_0x1c1913,Number['NEGATIVE_INFINITY'],_0x554700,null,_0x48b4d4++));break;}case'merge':{const _0x5caa7c=_0x2d6a51['path']['slice'](),_0x29eef4=_0x5caa7c['slice'](0x0,-0x1);_0x29eef4[_0x29eef4['length']-0x1]++,_0x29eef4['push'](0x0);const _0x23a273=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29eef4),_0x20df72=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5caa7c),_0x58005d=new _0x5aa581(_0x1aee8d['graveyard'],[0x0]);_0xcf6e8f['push'](new _0x578921(_0x23a273,Number['NEGATIVE_INFINITY'],_0x20df72,_0x58005d,_0x48b4d4++));break;}case'marker':case'markedRemove':{let _0x409e38=null;if(_0x2d6a51['range']){const _0x1d09b0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['range']['start']),_0x409ddc=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['range']['end']);_0x409e38=new _0xabe198(_0x1d09b0,_0x409ddc);}const _0x12d0f3='marker'==_0x2d6a51['type']?_0x2d6a51['name']:'$markedRemove:'+_0x26b1e3();_0xcf6e8f['push'](new _0x20c949(_0x12d0f3,null,_0x409e38,_0x1aee8d['model']['markers'],!0x0,_0x48b4d4++));break;}case'unwrap':{const _0x21b0dc=_0x2d6a51['path']['slice']();_0x21b0dc['push'](0x0);const _0x3aad0a=_0x2d6a51['path']['slice'](),_0xb201ba=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x21b0dc),_0x266b59=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3aad0a),_0x48cbec=new _0x5aa581(_0x1aee8d['graveyard'],[0x0]);_0xcf6e8f['push'](new _0x23f27c(_0xb201ba,_0x2d6a51['howMany'],_0x266b59,_0x48b4d4++)),_0xcf6e8f['push'](new _0x23f27c(_0x266b59['getShiftedBy'](_0x2d6a51['howMany']),0x1,_0x48cbec,_0x48b4d4++));break;}case'wrap':{const _0x5e8618=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['range']['start']),_0x20406b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2d6a51['range']['end']),_0x48b521=_0x2d6a51['token']['element']['_clone'](!0x1),_0x55d30b=_0x2d6a51['range']['end']['slice']();_0x55d30b['push'](0x0);const _0x4920cd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x55d30b);_0xcf6e8f['push'](new _0x22e6f6(_0x20406b,_0x48b521,_0x48b4d4++)),_0xcf6e8f['push'](new _0x23f27c(_0x5e8618,_0x20406b['offset']-_0x5e8618['offset'],_0x4920cd,_0x48b4d4++));break;}}return _0xcf6e8f;}['_tokenizeModel'](_0x380b27){const _0x32eca0=[],_0x26ebab=_0xabe198['_createIn'](_0x380b27),_0x370431=new _0x599c27({'boundaries':_0x26ebab});let _0x5f05c9='',_0x2910d8=null;const _0x94221e=[''],_0x255668=new Map();for(const _0x4fa036 of _0x370431)if('elementStart'==_0x4fa036['type']||'elementEnd'==_0x4fa036['type']){let _0x59646b=_0x94221e[0x0];''!==_0x5f05c9&&(_0x32eca0['push'](...this['_makeTokensFromTextByWords'](_0x5f05c9,_0x2910d8,_0x59646b)),_0x5f05c9='');const _0x541fe4=_0x4fa036['item'];let _0x49a3e4;_0x541fe4['getAttribute'](Wt)?_0x49a3e4=_0x541fe4['getAttribute'](Wt):'elementStart'==_0x4fa036['type']?(_0x49a3e4=qt(_0x541fe4),_0x255668['set'](_0x541fe4,_0x49a3e4)):_0x49a3e4=_0x255668['get'](_0x541fe4);const _0x390543=this['_getElementCategory'](_0x541fe4);'solid'==_0x390543&&('elementStart'==_0x4fa036['type']?(_0x59646b=_0x49a3e4,_0x94221e['unshift'](_0x59646b)):_0x94221e['shift']());const _0x4a6a2f={'type':'element','element':_0x541fe4,'elementId':_0x49a3e4,'category':_0x390543,'isStart':'elementStart'==_0x4fa036['type'],'limitId':_0x59646b};_0x32eca0['push'](_0x4a6a2f);}else''==_0x5f05c9&&(_0x2910d8=_0x4fa036['previousPosition']['clone']()),_0x5f05c9+=_0x4fa036['item']['data'];return''!==_0x5f05c9&&_0x32eca0['push'](...this['_makeTokensFromTextByWords'](_0x5f05c9,_0x2910d8,_0x94221e[0x0])),_0x32eca0;}['_makeTokensFromTextByWords'](_0x4f82a0,_0x317ecd,_0xc3714b){const _0x2e003b=_0x4f82a0['matchAll'](/(\s)/g),_0x3c1190=Array['from'](_0x2e003b)['map'](_0x31a5fc=>_0x31a5fc['index']);_0x3c1190['push'](_0x4f82a0['length']),0x0==_0x3c1190[0x0]&&_0x3c1190['shift']();const _0x54ef40=[],_0x7df4be=_0x317ecd['parent'];let _0x245999=0x0,_0x3ba50f=_0x317ecd['offset'];for(let _0x30d237=0x0;_0x30d237<_0x3c1190['length'];_0x30d237++)_0x54ef40['push']({'type':'text','data':_0x4f82a0['slice'](_0x245999,_0x3c1190[_0x30d237]),'parent':_0x7df4be,'offset':_0x3ba50f,'limitId':_0xc3714b}),_0x245999=_0x3c1190[_0x30d237],_0x3ba50f=_0x317ecd['offset']+_0x3c1190[_0x30d237];return _0x54ef40;}['_getElementCategory'](_0x9db38a){const _0xf385ab=this['_editor']['model']['schema'];return _0xf385ab['isLimit'](_0x9db38a)||_0xf385ab['isContent'](_0x9db38a)||_0xf385ab['isInline'](_0x9db38a)?'solid':_0xf385ab['isBlock'](_0x9db38a)?'block':'container';}['_diffModelTokens'](_0x42f4be,_0x4a8b79){const _0x517d56=_0x4bb074(_0x42f4be,_0x4a8b79,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x517d56);const _0xe1430=_0x517d56['flatMap'](_0x505f8b=>{const _0x348f48=_0x505f8b['added']?'added':_0x505f8b['removed']?'removed':'unchanged';return _0x505f8b['value']['map'](_0x4e680f=>({'token':_0x4e680f,'change':_0x348f48}));});let _0x3a9231=0x0;for(const _0x187da2 of _0xe1430)'added'!=_0x187da2['change']&&('unchanged'==_0x187da2['change']&&(_0x187da2['before']=_0x42f4be[_0x3a9231]),_0x3a9231++);return _0xe1430;}['_handleUnclosedBlockOpeningTags'](_0x3d232d){for(let _0x9cc4bb=0x0;_0x9cc4bb<_0x3d232d['length']-0x1;_0x9cc4bb++)if(_0x3d232d[_0x9cc4bb]['removed']&&_0x3d232d[_0x9cc4bb+0x1]['added']){const _0x461a9a=this['_findUnclosedBlockOpeningToken'](_0x3d232d[_0x9cc4bb]['value']);if(null!==_0x461a9a){const _0x21fb85=this['_findUnclosedBlockOpeningToken'](_0x3d232d[_0x9cc4bb+0x1]['value']),_0x442989=_0x3d232d[_0x9cc4bb]['value']['splice'](_0x461a9a),_0x2d9ff8=_0x3d232d[_0x9cc4bb+0x1]['value']['splice'](_0x21fb85),_0x3978a5=[_0x2d9ff8['shift']()];_0x442989['shift']();const _0x4d072e={'value':_0x442989,'removed':!0x0},_0x5a53f7={'value':_0x2d9ff8,'added':!0x0},_0xc14140={'value':_0x3978a5};_0x3d232d['splice'](_0x9cc4bb+0x2,0x0,_0xc14140,_0x4d072e,_0x5a53f7);}}}['_findUnclosedBlockOpeningToken'](_0x1f726a){let _0x258d6b=0x0,_0x3b4830=-0x1;for(let _0x7bae04=0x0;_0x7bae04<_0x1f726a['length'];_0x7bae04++){const _0x41aaba=_0x1f726a[_0x7bae04];'element'==_0x41aaba['type']&&'block'==_0x41aaba['category']&&(_0x258d6b+=_0x41aaba['isStart']?0x1:-0x1,_0x41aaba['isStart']&&(_0x3b4830=_0x7bae04));}return 0x0===_0x258d6b?null:_0x3b4830;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x125a43=0x0;_0x125a43<this['_diffItems']['length'];_0x125a43++){const _0x1ceaf8=this['_diffItems'][_0x125a43]['change'],_0x775b6c=[];_0x775b6c['push'](this['_diffItems'][_0x125a43]);let _0x333984=_0x125a43+0x1;for(;this['_diffItems'][_0x333984]&&this['_diffItems'][_0x333984]['change']==_0x1ceaf8;)_0x775b6c['push'](this['_diffItems'][_0x333984]),_0x333984++,_0x125a43++;const _0x4cd084=_0x775b6c['map'](_0x1f2dcd=>_0x1f2dcd['token']);if('unchanged'==_0x1ceaf8)_0x775b6c['map'](_0x229801=>_0x229801['before'])['forEach'](_0x1b3c5f=>this['_traverseOverItem'](_0x1b3c5f));else{if('removed'==_0x1ceaf8){if(this['_markDeletions']){const _0x7aa454=this['_path']['slice']();_0x4cd084['forEach'](_0x20bc95=>this['_traverseOverItem'](_0x20bc95));const _0x305677=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x7aa454,'end':_0x305677}});}else this['_handleChanged'](_0x4cd084,!0x0,this['_path']['slice']());}else{const _0x485baf=_0x4cd084['filter'](_0x3fab1f=>'element'!=_0x3fab1f['type']||'container'!=_0x3fab1f['category']);this['_handleChanged'](_0x485baf,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x418cb9=0x0;_0x418cb9<this['_diffItems']['length'];_0x418cb9++){const _0x4240a8=this['_diffItems'][_0x418cb9]['change'],_0x112813=[];_0x112813['push'](this['_diffItems'][_0x418cb9]);let _0x3b4d8e=_0x418cb9+0x1;for(;this['_diffItems'][_0x3b4d8e]&&this['_diffItems'][_0x3b4d8e]['change']==_0x4240a8;)_0x112813['push'](this['_diffItems'][_0x3b4d8e]),_0x3b4d8e++,_0x418cb9++;const _0x2f7c53=_0x112813['map'](_0x48f768=>_0x48f768['token']);if('unchanged'==_0x4240a8){const _0x36f577=_0x112813['map'](_0x447b64=>_0x447b64['before']);this['_handleUnchanged'](_0x36f577,_0x2f7c53);}else('added'==_0x4240a8||this['_markDeletions'])&&_0x2f7c53['forEach'](_0x3434d6=>{'element'==_0x3434d6['type']&&_0x3434d6['isStart']&&this['_splitPostponedData']['has'](_0x3434d6['element'])&&this['_handleSplitPostponedData'](_0x3434d6['element'],this['_path']),this['_traverseOverItem'](_0x3434d6);});}}['_handleSplitPostponedData'](_0x54b95c,_0x39e2dd){const _0x5967e2=this['_splitPostponedData']['get'](_0x54b95c);for(const _0x1c1f65 of _0x5967e2)'rename'==_0x1c1f65['type']?this['_operationsData']['push']({'type':'rename','path':_0x39e2dd['slice'](),'oldName':_0x1c1f65['oldValue'],'newName':_0x54b95c['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x39e2dd['slice'](),'howMany':0x1,'key':_0x1c1f65['key'],'oldValue':_0x1c1f65['oldValue'],'newValue':JSON['stringify'](_0x54b95c['getAttribute'](_0x1c1f65['key'])??null)});}['_calculateMarkersOperationsData'](_0x29a73e,_0x68dc4d){const _0x55cb25={};for(const [_0x1971cd]of _0x29a73e)_0x55cb25[_0x1971cd]=null;for(const [_0xf9209e,_0x81d55d]of _0x68dc4d)_0x55cb25[_0xf9209e]=_0x81d55d;const _0x15eb69=Object['entries'](_0x55cb25)['map'](([_0x2be13d,_0x5dafb1])=>({'type':'marker','name':_0x2be13d,'range':_0x5dafb1?{'start':_0x5dafb1['start']['path']['slice'](),'end':_0x5dafb1['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x15eb69);}['_handleUnwraps'](){const _0x290cc7=new Map(),_0x5a6832=[],_0x4194b4=[0x0];let _0x25e315=this['_diffItems']['length']+0x1;for(let _0x300eec=this['_diffItems']['length']-0x1;_0x300eec>=0x0;_0x300eec--){const {token:_0x5f3b13,before:_0x3116e7,change:_0x6f94e2}=this['_diffItems'][_0x300eec];if('removed'!=_0x6f94e2&&(_0x25e315=_0x300eec),'element'!=_0x5f3b13['type']||'container'!=_0x5f3b13['category']||'added'==_0x6f94e2)continue;const _0x19a28b=_0x3116e7?_0x3116e7['element']:_0x5f3b13['element'];if(_0x5f3b13['isStart']){const _0x106407=_0x290cc7['get'](_0x19a28b),_0x266c8c=this['_diffItems'][_0x106407];('removed'==_0x6f94e2||'removed'==_0x266c8c['change'])&&_0x25e315<_0x106407&&(this['_operationsData']['push']({'type':'unwrap','path':_0x19a28b['getPath'](),'howMany':_0x19a28b['maxOffset']+_0x4194b4[0x0]}),_0x4194b4['shift'](),_0x4194b4[0x0]+=_0x19a28b['maxOffset']-0x1,_0x5a6832['push'](_0x300eec),_0x5a6832['push'](_0x106407));}else _0x290cc7['set'](_0x19a28b,_0x300eec),_0x4194b4['unshift'](0x0);}_0x5a6832['sort']((_0x3c4065,_0x1f25a2)=>_0x1f25a2-_0x3c4065),_0x5a6832['forEach'](_0x498c89=>{const _0xd48450=this['_diffItems'][_0x498c89];'removed'==_0xd48450['change']?this['_diffItems']['splice'](_0x498c89,0x1):(_0xd48450['change']='added',delete _0xd48450['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x1240d8=[];for(let _0x56a99c=0x0;_0x56a99c<this['_diffItems']['length'];_0x56a99c++){const {change:_0x260d51,token:_0x556b47}=this['_diffItems'][_0x56a99c];if('added'==_0x260d51&&'element'==_0x556b47['type']&&'container'==_0x556b47['category']){if(_0x556b47['isStart'])_0x1240d8['push'](this['_path']['slice']());else{if(!_0x556b47['isStart']){const _0x4cc15b=_0x1240d8['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x4cc15b,'end':this['_path']['slice']()},'token':_0x556b47}),this['_path'][this['_path']['length']-0x1]=_0x4cc15b[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x260d51||this['_markDeletions'])&&this['_traverseOverItem'](_0x556b47);}}['_handleUnchanged'](_0x567836,_0x4bf15f){for(let _0x9579b0=0x0;_0x9579b0<_0x567836['length'];_0x9579b0++){const _0x5d8c46=_0x567836[_0x9579b0];if('element'==_0x5d8c46['type']&&_0x5d8c46['isStart']){const _0x2890dc=_0x4bf15f[_0x9579b0];'block'==_0x5d8c46['category']&&this['_handleElementRename'](_0x5d8c46['element'],_0x2890dc['element'],this['_path']),this['_handleElementAttributeChanges'](_0x5d8c46['element'],_0x2890dc['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x2890dc);}else{if('element'!=_0x5d8c46['type']||_0x5d8c46['isStart']){if('text'==_0x5d8c46['type']){const _0xc3cb31=this['_path']['slice'](),_0x512186=[],_0x12afbc=[];for(;_0x567836[_0x9579b0]&&'text'==_0x567836[_0x9579b0]['type'];)_0x512186['push'](_0x567836[_0x9579b0]),_0x12afbc['push'](_0x4bf15f[_0x9579b0]),this['_path'][this['_path']['length']-0x1]+=_0x567836[_0x9579b0]['data']['length'],_0x9579b0++;_0x9579b0--,this['_handleTextAttributeChanges'](_0x512186,_0x12afbc,_0xc3cb31);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x18a7ea,_0x228578,_0xd7ea5b){const _0x4d4bdd=[],_0x1b3d67=[],_0x1f2441=_0xd7ea5b['slice']();let _0x45ff2a=this['_parents']['length']-0x1;for(let _0x9cb8c5=0x0;_0x9cb8c5<_0x18a7ea['length'];_0x9cb8c5++){const _0x19422d=_0x18a7ea[_0x9cb8c5],_0x134df3=_0xd7ea5b['slice']();'element'!=_0x19422d['type']||_0x19422d['isStart']?'element'==_0x19422d['type']&&_0x19422d['isStart']?(_0xd7ea5b['push'](0x0),_0x45ff2a++,_0x1b3d67['push']({'before':_0x134df3,'after':_0xd7ea5b['slice'](),'index':_0x9cb8c5})):_0xd7ea5b[_0xd7ea5b['length']-0x1]+=_0x19422d['data']['length']:(_0xd7ea5b['pop'](),_0xd7ea5b[_0xd7ea5b['length']-0x1]++,_0x45ff2a--,_0x1b3d67['length']?_0x1b3d67['pop']():_0x4d4bdd['push']({'before':_0x134df3,'after':_0xd7ea5b['slice'](),'index':_0x9cb8c5}));}if(_0x1b3d67['length']!==_0x4d4bdd['length'])throw new _0x16a1a9('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x18a7ea,'isRemove':_0x228578});const _0x465b39=[{'after':_0x1f2441['slice'](),'index':-0x1},..._0x4d4bdd,..._0x1b3d67,{'before':_0xd7ea5b['slice'](),'index':_0x18a7ea['length']}];if(_0x228578){for(let _0x1ed304=_0x465b39['length']-0x1;_0x1ed304>=0x1;_0x1ed304--){const _0x2b46e3=_0x465b39[_0x1ed304-0x1]['after'],_0x3e8926=_0x465b39[_0x1ed304]['before'],_0x38c797=_0x3e8926[_0x3e8926['length']-0x1]-_0x2b46e3[_0x2b46e3['length']-0x1];_0x38c797&&(this['_operationsData']['push']({'type':'remove','path':_0x2b46e3,'howMany':_0x38c797}),_0x3e8926[_0x3e8926['length']-0x1]-=_0x38c797);}for(const {before:_0x479f74}of _0x4d4bdd)this['_operationsData']['push']({'type':'merge','path':_0x479f74});}else for(let _0x3472b0=0x0;_0x3472b0<_0x465b39['length']-0x1;_0x3472b0++){const _0x58d969=_0x465b39[_0x3472b0]['after'],_0x5de0ed=_0x465b39[_0x3472b0+0x1]['before'],_0x1bee7e=_0x465b39[_0x3472b0]['index']+0x1,_0x1154bc=_0x465b39[_0x3472b0+0x1]['index'];if(_0x1bee7e!==_0x1154bc&&this['_operationsData']['push']({'type':'insert','path':_0x58d969,'tokens':_0x18a7ea['slice'](_0x1bee7e,_0x1154bc)}),_0x3472b0<_0x4d4bdd['length']){this['_operationsData']['push']({'type':'split','path':_0x5de0ed});const _0x21bb51=_0x18a7ea[_0x1b3d67[_0x1b3d67['length']-0x1-_0x3472b0]['index']],_0x2994f9=this['_parents'][_0x45ff2a]['element'];_0x2994f9['name']!=_0x21bb51['element']['name']&&this['_addSplitPostponedData'](_0x21bb51['element'],{'type':'rename','oldValue':_0x2994f9['name']});const _0x52f3cb=this['_getAttributeChanges'](_0x2994f9['getAttributes'](),_0x21bb51['element']['getAttributes']());for(const _0x57d95a in _0x52f3cb){const _0x5ed235=_0x52f3cb[_0x57d95a]['oldValue'];this['_addSplitPostponedData'](_0x21bb51['element'],{'type':'attribute','key':_0x57d95a,'oldValue':_0x5ed235});}}}}['_addSplitPostponedData'](_0x1044b0,_0x9742a9){const _0x3777b5=this['_splitPostponedData']['get'](_0x1044b0)||[];_0x3777b5['push'](_0x9742a9),this['_splitPostponedData']['set'](_0x1044b0,_0x3777b5);}['_traverseOverItem'](_0x718190){'element'==_0x718190['type']&&_0x718190['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x718190)):'element'!=_0x718190['type']||_0x718190['isStart']?'text'==_0x718190['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x718190['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x311b3a,_0x3c7661,_0x5baba7){_0x311b3a['name']!=_0x3c7661['name']&&this['_operationsData']['push']({'type':'rename','path':_0x5baba7['slice'](),'oldName':_0x311b3a['name'],'newName':_0x3c7661['name']});}['_handleElementAttributeChanges'](_0x264290,_0x493235,_0x5b4f7c){const _0x2aad2d=this['_getAttributeChanges'](_0x264290['getAttributes'](),_0x493235['getAttributes']());for(const _0x29453e in _0x2aad2d){const {oldValue:_0x3a7f2b,newValue:_0x2e2841}=_0x2aad2d[_0x29453e];this['_operationsData']['push']({'type':'attribute','path':_0x5b4f7c['slice'](),'howMany':0x1,'key':_0x29453e,'oldValue':_0x3a7f2b,'newValue':_0x2e2841});}}['_handleTextAttributeChanges'](_0x504fad,_0x3e0a32,_0x503ca6){const _0x34559c=this['_operationsData'],_0x27ccd3=_0x504fad[0x0]['parent'],_0x2d9af3=_0x504fad[0x0]['offset'],_0x1534b3=_0x3e0a32[0x0]['parent'],_0x236d40=_0x3e0a32[0x0]['offset'],_0x54b761=_0x504fad['reduce']((_0x20a58c,_0x471135)=>_0x20a58c+_0x471135['data']['length'],0x0),_0x3f4e6a=this['_getAttrsForOffsets'](_0x27ccd3,_0x2d9af3,_0x54b761),_0x3b7848=this['_getAttrsForOffsets'](_0x1534b3,_0x236d40,_0x54b761),_0x27046a={};for(let _0x46eb76=0x0;_0x46eb76<_0x54b761;_0x46eb76++){const _0x1bb523=_0x3f4e6a[_0x2d9af3+_0x46eb76],_0x1b003f=_0x3b7848[_0x236d40+_0x46eb76],_0xba12d1=this['_getAttributeChanges'](_0x1bb523,_0x1b003f);for(const _0x4425db in _0x27046a)_0xba12d1[_0x4425db]||_0x43b9e8(_0x4425db);for(const _0x313aee in _0xba12d1){const {oldValue:_0x575165,newValue:_0x37d770}=_0xba12d1[_0x313aee],_0x4ebb2c=_0x27046a[_0x313aee];_0x4ebb2c?_0x4ebb2c['oldValue']==_0x575165&&_0x4ebb2c['newValue']==_0x37d770?_0x4ebb2c['length']++:(_0x43b9e8(_0x313aee),_0x27046a[_0x313aee]={'oldValue':_0x575165,'newValue':_0x37d770,'start':_0x46eb76,'length':0x1}):_0x27046a[_0x313aee]={'oldValue':_0x575165,'newValue':_0x37d770,'start':_0x46eb76,'length':0x1};}}for(const _0x3b4a4e in _0x27046a)_0x43b9e8(_0x3b4a4e);function _0x43b9e8(_0x1d0324){const _0x5f2f65=_0x27046a[_0x1d0324],_0x3ea93f=_0x503ca6['slice']();_0x3ea93f[_0x3ea93f['length']-0x1]+=_0x5f2f65['start'],_0x34559c['push']({'type':'attribute','path':_0x3ea93f,'howMany':_0x5f2f65['length'],'key':_0x1d0324,'oldValue':_0x5f2f65['oldValue'],'newValue':_0x5f2f65['newValue']}),delete _0x27046a[_0x1d0324];}}['_getAttributeChanges'](_0x56f6ce,_0x1d9f4c){const _0x42df20={};for(const [_0x36bb65,_0x2237b6]of _0x56f6ce)_0x42df20[_0x36bb65]={'oldValue':JSON['stringify'](_0x2237b6),'newValue':'null'};for(const [_0x2fafad,_0x10eece]of _0x1d9f4c){const _0x5af65b=JSON['stringify'](_0x10eece);_0x42df20[_0x2fafad]?_0x42df20[_0x2fafad]['oldValue']==_0x5af65b?delete _0x42df20[_0x2fafad]:_0x42df20[_0x2fafad]['newValue']=_0x5af65b:_0x42df20[_0x2fafad]={'oldValue':'null','newValue':_0x5af65b};}return delete _0x42df20[Wt],_0x42df20;}['_getAttrsForOffsets'](_0x46eca7,_0x17546c,_0x11297f){const _0x2f90da=new Array(_0x17546c+_0x11297f);let _0xb45be5=_0x46eca7['getChildAtOffset'](_0x17546c),_0x541d07=_0xb45be5['startOffset'];for(;_0xb45be5&&_0x541d07<_0x17546c+_0x11297f;){const _0x462029=Array['from'](_0xb45be5['getAttributes']());_0x2f90da['fill'](_0x462029,_0x541d07,_0x541d07+_0xb45be5['offsetSize']),_0x541d07+=_0xb45be5['offsetSize'],_0xb45be5=_0xb45be5['nextSibling'];}return _0x2f90da;}['_getPositionFromAnchorAndPath'](_0x5b257f,_0x370511){const _0x188540=[..._0x5b257f['path']['slice'](0x0,-0x1),_0x5b257f['offset']+_0x370511[0x0],..._0x370511['slice'](0x1)];return new _0x5aa581(_0x5b257f['root'],_0x188540);}['_makeModelFromTokens'](_0x31d0f0){const _0x156031=[];let _0x2eb6b0=null;for(const _0x37a86d of _0x31d0f0)if('element'!=_0x37a86d['type']||_0x37a86d['isStart']||_0x2eb6b0!=_0x37a86d['element']){if(!_0x2eb6b0){if('text'==_0x37a86d['type']){const _0x543dd2=_0x5aa581['_createAt'](_0x37a86d['parent'],_0x37a86d['offset']),_0x4a9d88=_0xabe198['_createFromPositionAndShift'](_0x543dd2,_0x37a86d['data']['length']),_0x5a4eff=Array['from'](_0x4a9d88['getItems']())['map'](_0x4d9ce3=>new _0x3fe5f4(_0x4d9ce3['data'],_0x4d9ce3['getAttributes']()));_0x156031['push'](..._0x5a4eff);}else{_0x2eb6b0=_0x37a86d['element'];const _0x1914ad=_0x37a86d['element']['_clone'](!0x0);_0x1914ad['_removeAttribute'](Wt);for(const _0x38d00c of this['_editor']['model']['createRangeIn'](_0x1914ad)['getItems']())_0x38d00c['is']('element')&&_0x38d00c['_removeAttribute'](Wt);_0x156031['push'](_0x1914ad);}}}else _0x2eb6b0=null;return _0x156031;}}function Kt(_0xd03671,_0x4484bc){return _0xd03671['type']===_0x4484bc['type']&&(_0xd03671['limitId']===_0x4484bc['limitId']&&('text'==_0xd03671['type']?_0xd03671['data']==_0x4484bc['data']:function(_0x188f09,_0x3c8b3f){if(_0x188f09['isStart']!=_0x3c8b3f['isStart'])return!0x1;if(_0x188f09['isStart']&&_0x188f09['elementId']!=_0x3c8b3f['elementId'])return!0x1;if(_0x188f09['category']!=_0x3c8b3f['category'])return!0x1;if('block'==_0x188f09['category'])return!0x0;if('container'==_0x188f09['category']&&_0x188f09['elementId']!=_0x3c8b3f['elementId'])return!0x1;return _0x188f09['element']['name']==_0x3c8b3f['element']['name'];}(_0xd03671,_0x4484bc)));}function qt(_0x504255){return At({'name':_0x504255['name'],...Object['fromEntries'](_0x504255['getAttributes']())});}export{H as AriaDescriptionView,R as CollaborationUserColor,Mt as ConfirmMixin,Wt as DATA_ID_MODEL_ATTRIBUTE,jt as DATA_ID_VIEW_ATTRIBUTE,Yt as DocumentCompare,Jt as DocumentDiff,Rt as FOCUS_ANNOTATION_KEYSTROKE,z as LateFocusButtonView,W as LateFocusDropdownButtonView,O as Permissions,vt as SuggestionsConversion,L as User,F as UserView,$ as Users,J as fixElementSuggestionRange,xt as getAllMarkersDomElementsSorted,Ct as getDateTimeFormatter,_t as getMarkerDomElement,At as hashObject,Lt as sanitizeEditorConfig,Ft as setupThreadKeyboardNavigation,Y as splitSuggestionMarkerName,Ut as surroundingMarkersDetector,It as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0x27ab8e,Editor as _0xc13a56,Plugin as _0x14f307}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x589ae0,Collection as _0x316b29,uid as _0x360519,toArray as _0x21c151,first as _0x1b36c9,FocusTracker as _0x546adc,KeystrokeHandler as _0x28014e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x1b1187,IconView as _0x26ae8e,ButtonView as _0x4dd3fe,DropdownButtonView as _0x3fed14,FocusCycler as _0x28d10d,isViewWithFocusCycler as _0x3a4c9e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x474c9d,IconCheck as _0x122be6,IconCancel as _0x7f7015}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x3579dc,toWidget as _0x4b5486}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x429d5e}from'luxon';import{InsertOperation as _0x3a43da,MoveOperation as _0x40249c,ModelPosition as _0x298ad2,ModelRange as _0x31b594,MarkerOperation as _0xbe5a54,MergeOperation as _0x2b7ec0,SplitOperation as _0x1c35cd,RenameOperation as _0x358f6c,AttributeOperation as _0x32adae,ModelTreeWalker as _0x4f9a26,ModelText as _0x3d6284}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x28bf7b}from'diff';class O extends _0x27ab8e{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x34b6b2,_0x1463fa){let _0x3672df;if(_0x1463fa||(_0x1463fa=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x1463fa?_0x3672df=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x3672df=this['context']['editors']['find'](_0x4d8aee=>_0x4d8aee['config']['get']('collaboration.channelId')==_0x1463fa)),!_0x3672df)throw new _0x589ae0('permissions-set-permissions-invalid-channel-id',null);const _0x4ebe0e=_0x3672df['plugins'],_0x297c40=_0x4ebe0e['has']('CommentsRepository')?_0x4ebe0e['get']('CommentsRepository'):void 0x0,_0x2f11d5=_0x4ebe0e['has']('CommentsOnly')&&_0x4ebe0e['get']('CommentsOnly'),_0x434a53=_0x34b6b2['includes']('document:write'),_0x4d03f5=_0x34b6b2['includes']('comment:modify_all'),_0x12c6f5=_0x34b6b2['includes']('comment:admin'),_0x3e37c3=_0x34b6b2['includes']('comment:write'),_0x39feda=_0x3e37c3||_0x12c6f5,_0x3cc84c=_0x39feda||_0x4d03f5,_0x5a2b63=_0x434a53||_0x39feda;(_0x2f11d5&&(_0x2f11d5['isEnabled']=!_0x434a53&&_0x3cc84c),_0x3672df instanceof _0xc13a56)&&(!(_0x434a53||_0x3cc84c&&_0x297c40)?_0x3672df['enableReadOnlyMode']('no-permissions'):_0x3672df['disableReadOnlyMode']('no-permissions'));if(_0x297c40){_0x297c40['setPermissions']({'admin':_0x12c6f5,'modifyAll':_0x4d03f5,'write':_0x3e37c3,'resolve':_0x5a2b63},_0x1463fa);const _0x18ddf6=_0x3672df instanceof _0xc13a56&&_0x3672df['commands']['get']('addCommentThread');_0x18ddf6&&(_0x39feda?_0x18ddf6['clearForceDisabled']('noPermissions'):_0x18ddf6['forceDisabled']('noPermissions'));}}}function V(_0x192bb9,_0x2b9ee8){const t=_0x192bb9['t'];switch(_0x2b9ee8){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 $ extends _0x27ab8e{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}constructor(_0x24354c){super(_0x24354c),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x316b29(),this['_locale']=_0x24354c['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:_0x4d6555,name:_0xab3dd2,..._0x4fe39a}){if(!_0x4d6555||'string'!=typeof _0x4d6555)throw new _0x589ae0('users-add-invalid-id');if(this['users']['has'](_0x4d6555))throw new _0x589ae0('users-add-duplicated-id',null,{'id':_0x4d6555});const _0x5ca177=this['context']['config']['get']('users.getInitialsCallback'),_0x1b27b={..._0x4fe39a,'id':_0x4d6555,'name':U(this['_locale'],_0xab3dd2),'color':this['_getNextColor']()};_0x1b27b['name']=U(this['_locale'],_0x1b27b['name']);const _0xc4940f=new L(_0x1b27b,_0x5ca177);return this['users']['add'](_0xc4940f),_0xc4940f;}['getUser'](_0x558281){return this['users']['get'](_0x558281);}['useAnonymousUser'](){const _0x542e1e=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x542e1e);}['defineMe'](_0x228620){if(this['_myId'])throw new _0x589ae0('users-me-already-defined',null);const _0xa10be1=this['getUser'](_0x228620);if(!_0xa10be1)throw new _0x589ae0('users-me-missing-user',null);this['_myId']=_0x228620,_0xa10be1['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0xd9ec6d=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0xd9ec6d&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0x534c93=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x534c93,'name':V(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class L{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0xc4c322,_0x26d93f){this['id']=_0xc4c322['id'],this['color']=_0xc4c322['color'],this['name']=_0xc4c322['name'],this['initials']=_0x26d93f?_0x26d93f(this['name']):this['_computeInitials'](),this['avatar']=_0xc4c322['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x37f5c4=this['name']['split']('\x20')['filter'](_0x332f4d=>/^[\p{Letter}]/u['test'](_0x332f4d));return 0x1===_0x37f5c4['length']?this['_getInitial'](_0x37f5c4[0x0]):0x0===_0x37f5c4['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x37f5c4[0x0])+this['_getInitial'](_0x37f5c4[_0x37f5c4['length']-0x1]);}['_getInitial'](_0x1d38a3){return String['fromCodePoint'](_0x1d38a3['codePointAt'](0x0))['toUpperCase']();}}function U(_0x11f95c,_0x3bbe33=''){return''==(_0x3bbe33=_0x3bbe33['trim']())?V(_0x11f95c,'Anonymous'):_0x3bbe33;}class R{['_id'];constructor(_0xb8c557){this['_id']=_0xb8c557;}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 _0x1b1187{['name'];['notificationView'];constructor(_0x121468,_0x23a4e6,_0x3099d5){super(_0x121468),this['name']=_0x23a4e6['name'],this['notificationView']=null;const _0x8edc64=['ck','ck-user'],_0x1e11a6=['ck','ck-user__img'];if(_0x23a4e6['isAnonymous']&&_0x1e11a6['push']('ck-user__anonymous'),!_0x23a4e6['isAnonymous']&&_0x23a4e6['isMe']&&_0x8edc64['push']('ck-user_me'),_0x23a4e6['avatar']&&_0x1e11a6['push']('ck-user__avatar'),_0x3099d5){const _0x74e4ce=new _0x26ae8e();_0x74e4ce['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x74e4ce['content']=_0x474c9d,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3099d5},'children':[_0x74e4ce]};}const _0x1ba613=[{'tag':'div','attributes':{'class':_0x1e11a6,'style':{'background-image':_0x23a4e6['avatar']?'url(\x27'+_0x23a4e6['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x23a4e6['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x23a4e6['name']},'children':[{'text':_0x23a4e6['initials']}]}];this['notificationView']&&_0x1ba613['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x8edc64,'data-user-id':_0x23a4e6['id']},'children':_0x1ba613});}}class H extends _0x1b1187{['id'];constructor(_0x11da41,_0x580704){super(_0x11da41),this['id']='ck-aria-description-'+_0x360519(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x580704}]});}}class z extends _0x4dd3fe{['render'](){super['render'](),j(this);}}class W extends _0x3fed14{['render'](){super['render'](),j(this);}}function j(_0x494ac0){_0x494ac0['listenTo'](_0x494ac0['element'],'mousedown',(_0xc3c75a,_0x18b563)=>{_0x18b563['stopPropagation'](),_0x18b563['preventDefault']();}),_0x494ac0['listenTo'](_0x494ac0['element'],'mouseup',()=>{_0x494ac0['element']['focus']();});}function Y(_0xc1edd5){const _0x8addcc=_0xc1edd5['split'](':');return{'group':_0x8addcc[0x0],'type':_0x8addcc[0x1],'subType':_0x8addcc['length']>=0x5?_0x8addcc[0x2]:null,'id':_0x8addcc['length']<0x5?_0x8addcc[0x2]:_0x8addcc[0x3],'authorId':_0x8addcc['length']<0x5?_0x8addcc[0x3]:_0x8addcc[0x4],'markerCount':0x6==_0x8addcc['length']?_0x8addcc[0x5]:null};}function J(_0x4fcb37,_0x1202ca){const _0x1a2b7a=_0x4fcb37['end']['nodeBefore'];if(_0x1a2b7a&&_0x1a2b7a['is']('element')&&_0x1202ca['schema']['isBlock'](_0x1a2b7a)&&!_0x1202ca['schema']['isObject'](_0x1a2b7a)){const _0x480878=_0x1202ca['createPositionAt'](_0x1a2b7a,'end');return _0x1202ca['createRange'](_0x4fcb37['start'],_0x480878);}return _0x4fcb37;}class K extends _0x14f307{['afterInit'](){const _0x21f17b=this['editor'];if(!_0x21f17b['plugins']['has']('AlignmentEditing'))return;_0x21f17b['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x14f307{['afterInit'](){const _0x334f92=this['editor'],_0x27c24d=_0x334f92['plugins']['get']('SuggestionsConversion');for(const _0x35a0cf of q){if(!_0x334f92['plugins']['has'](_0x35a0cf))continue;const _0xcdff78=_0x35a0cf['slice'](0x0,-0x7)['toLowerCase']();_0x27c24d['registerInlineAttribute'](_0xcdff78);}}}class Z extends _0x14f307{['afterInit'](){const _0x2bb191=this['editor'],_0x11c130=_0x2bb191['plugins']['get']('SuggestionsConversion');_0x2bb191['plugins']['has']('BookmarkEditing')&&_0x11c130['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x14f307{['afterInit'](){const _0x2670ef=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x4bdd18,commandName:_0x417df0}of Q)this['editor']['plugins']['has'](_0x4bdd18)&&_0x2670ef['registerInlineAttribute'](_0x417df0);}}class tt extends _0x14f307{['afterInit'](){const {editor:_0x54672b}=this;if(!_0x54672b['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x40f952=_0x54672b['plugins']['get']('SuggestionsConversion');_0x40f952['registerBlockAttribute']('footnotesListStyle'),_0x40f952['registerBlockAttribute']('footnotesListStart');}}class et extends _0x14f307{['afterInit'](){const _0x5043d0=this['editor'];if(!_0x5043d0['plugins']['has']('HighlightEditing'))return;_0x5043d0['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x14f307{['afterInit'](){const _0x5fb636=this['editor'];if(!_0x5fb636['plugins']['has']('HtmlEmbed'))return;_0x5fb636['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x14f307{['afterInit'](){const _0x19a7ad=this['editor'];if(!_0x19a7ad['plugins']['has']('ImageEditing'))return;const _0x187d66=_0x19a7ad['plugins']['get']('SuggestionsConversion');_0x187d66['registerBlockAttribute']('src'),_0x19a7ad['plugins']['has']('ImageResize')&&_0x187d66['registerBlockAttribute']('resizedWidth'),_0x19a7ad['plugins']['has']('ImageTextAlternativeEditing')&&_0x187d66['registerBlockAttribute']('alt'),_0x19a7ad['plugins']['has']('PictureEditing')&&_0x187d66['registerBlockAttribute']('sources'),_0x19a7ad['plugins']['has']('ImageSizeAttributes')&&(_0x187d66['registerBlockAttribute']('width'),_0x187d66['registerBlockAttribute']('height'));}}class nt extends _0x14f307{['afterInit'](){const _0x25053d=this['editor'],_0x59d222=_0x25053d['plugins']['get']('SuggestionsConversion');_0x25053d['plugins']['has']('IndentBlock')&&(_0x59d222['registerBlockAttribute']('blockIndent'),_0x25053d['plugins']['has']('ListEditing')&&(_0x59d222['registerBlockAttribute']('blockIndentList'),_0x59d222['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x14f307{['afterInit'](){const _0x95654f=this['editor'];if(!_0x95654f['plugins']['has']('LineHeight'))return;_0x95654f['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x14f307{['afterInit'](){const _0x32e41b=this['editor'];if(!_0x32e41b['plugins']['has']('LinkEditing'))return;const _0x17545a=_0x32e41b['plugins']['get']('SuggestionsConversion'),_0x264a18=_0x32e41b['commands']['get']('link');_0x17545a['registerInlineAttribute']('linkHref');for(const _0x170e97 of _0x264a18['manualDecorators'])_0x17545a['registerInlineAttribute'](_0x170e97['id']);}}class at extends _0x14f307{['afterInit'](){const _0x284ad5=this['editor'];if(!_0x284ad5['plugins']['has']('ListEditing'))return;const _0x42092f=_0x284ad5['plugins']['get']('SuggestionsConversion'),_0x342bfb=_0x284ad5['plugins']['has']('TodoListEditing');_0x42092f['registerBlockAttribute']('listItemId'),_0x42092f['registerBlockAttribute']('listType'),_0x42092f['registerBlockAttribute']('listIndent'),_0x342bfb&&_0x42092f['registerBlockAttribute']('todoListChecked');}}class ct extends _0x14f307{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a1e31=this['editor']['config']['get']('list.properties'),_0x327c75=this['editor']['plugins']['get']('SuggestionsConversion');_0x2a1e31['styles']&&_0x327c75['registerBlockAttribute']('listStyle'),_0x2a1e31['reversed']&&_0x327c75['registerBlockAttribute']('listReversed'),_0x2a1e31['startIndex']&&_0x327c75['registerBlockAttribute']('listStart');}}class lt extends _0x14f307{['afterInit'](){const _0x3f2ebb=this['editor'],_0x1b9123=_0x3f2ebb['plugins']['get']('SuggestionsConversion');_0x3f2ebb['plugins']['has']('MultiLevelList')&&_0x1b9123['registerBlockAttribute']('listMarkerStyle');}}class ht extends _0x14f307{['afterInit'](){const _0x441645=this['editor'];if(!_0x441645['plugins']['has']('Style')||!_0x441645['plugins']['has']('DataSchema')||!_0x441645['config']['get']('style.definitions'))return;const _0x4e2116=_0x441645['plugins']['get']('SuggestionsConversion'),_0x4fe8db=_0x441645['config']['get']('style.definitions'),_0x1e4424=_0x441645['plugins']['get']('GeneralHtmlSupport'),_0x2d949a=_0x441645['plugins']['get']('StyleUtils')['normalizeConfig'](_0x441645['plugins']['get']('DataSchema'),_0x4fe8db),_0x15804b=new Set();for(const _0x17c275 of _0x2d949a['block']){const _0x4db041=_0x1e4424['getGhsAttributeNameForElement'](_0x17c275['element']);_0x15804b['add'](_0x4db041);}const _0x5a8749=new Set();for(const _0x321385 of _0x2d949a['inline']){const _0x56040c=_0x1e4424['getGhsAttributeNameForElement'](_0x321385['element']);_0x5a8749['add'](_0x56040c);for(const _0x2fccb3 of _0x321385['ghsAttributes'])_0x5a8749['add'](_0x2fccb3);}for(const _0x2c065d of _0x15804b)_0x4e2116['registerBlockAttribute'](_0x2c065d);for(const _0x4e5360 of _0x5a8749)_0x4e2116['registerInlineAttribute'](_0x4e5360);}}class ut extends _0x14f307{['afterInit'](){const _0x417636=this['editor'];if(!_0x417636['plugins']['has']('TableEditing'))return;const _0x4d5335=_0x417636['plugins']['get']('SuggestionsConversion');_0x4d5335['registerBlockAttribute']('headingRows'),_0x4d5335['registerBlockAttribute']('headingColumns');}}class dt extends _0x14f307{['afterInit'](){const {plugins:_0x3fb54a}=this['editor'];if(!_0x3fb54a['has']('TablePropertiesEditing'))return;const _0x1b4bb0=_0x3fb54a['get']('SuggestionsConversion'),_0x23ce51=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x293094 of _0x23ce51)_0x1b4bb0['registerBlockAttribute'](_0x293094);}}class ft extends _0x14f307{['afterInit'](){const _0x590352=this['editor'],_0x128878=_0x590352['plugins']['get']('SuggestionsConversion');_0x590352['plugins']['has']('TableLayout')&&_0x128878['registerBlockAttribute']('tableType');}}class gt extends _0x14f307{['afterInit'](){const _0x1fbba5=this['editor'],_0x2524cd=this['editor']['plugins']['get']('SuggestionsConversion');_0x1fbba5['plugins']['has']('Uploadcare')&&_0x1fbba5['plugins']['has']('UploadcareImageEdit')&&_0x2524cd['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x14f307{['afterInit'](){const _0x428f81=this['editor'];if(!_0x428f81['plugins']['has']('ShiftEnter'))return;const _0x5de71b=_0x428f81['plugins']['get']('SuggestionsConversion'),_0x1a188d=(_0x35370a,_0x2773d3,_0x226ab8,_0x1ab517)=>{if(_0x1ab517&&!_0x226ab8['options']['showSuggestionHighlights'])return;if(!_0x226ab8['consumable']['test'](_0x2773d3['markerRange'],_0x35370a['name']))return;const _0x5187f8=_0x428f81['model'];for(const _0x35e1cc of _0x2773d3['markerRange']['getItems']()){if(!_0x35e1cc['is']('element','softBreak'))continue;const _0x5a7c92='deletion'==_0x2773d3['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x564782,authorId:_0xac287b}=Y(_0x2773d3['markerName']),_0x277a48=_0x226ab8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5a7c92,'data-suggestion':_0x564782,'data-author-id':_0xac287b}),_0x40b34f=_0x226ab8['mapper']['toViewPosition'](_0x5187f8['createPositionBefore'](_0x35e1cc));!_0x1ab517&&_0x5de71b['_activeMarkers']['includes'](_0x2773d3['markerName'])&&_0x226ab8['writer']['addClass']('ck-suggestion-marker--active',_0x277a48),_0x226ab8['writer']['insert'](_0x40b34f,_0x277a48),_0x226ab8['mapper']['bindElementToMarker'](_0x277a48,_0x2773d3['markerName']);}};_0x428f81['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa571e8,_0x26add6,_0x33d8ff)=>{_0x1a188d(_0xa571e8,_0x26add6,_0x33d8ff,!0x1);},{'priority':'high'}),_0x428f81['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xb5e94b,_0x2e28ae,_0xa258ec)=>{_0x1a188d(_0xb5e94b,_0x2e28ae,_0xa258ec,!0x1);},{'priority':'high'}),_0x428f81['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c8311,_0x4b6f4c,_0x1ed0a4)=>{_0x1a188d(_0x3c8311,_0x4b6f4c,_0x1ed0a4,!0x0);},{'priority':'high'}),_0x428f81['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x31b67a,_0x149f62,_0x3884a3)=>{_0x1a188d(_0x31b67a,_0x149f62,_0x3884a3,!0x0);},{'priority':'high'});}}class kt extends _0x14f307{['afterInit'](){const _0x4eb773=this['editor'];_0x4eb773['plugins']['has']('MediaEmbedEditing')&&(_0x4eb773['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4a2877,{writer:_0x3d9ebd,options:_0x3115aa})=>{if(_0x3115aa['showSuggestionHighlights'])return _0x3d9ebd['createEmptyElement']('div');},'converterPriority':'high'}),_0x4eb773['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2ecb36,_0x326ccd,_0x3d11b0)=>{_0x3d11b0['options']['showSuggestionHighlights']&&_0x2ecb36['stop']();},{'priority':'high'}));}}class pt extends _0x14f307{['afterInit'](){const _0x165ef4=this['editor'];if(!_0x165ef4['plugins']['has']('Table'))return;_0x165ef4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5178cc,_0x2f38a9,_0x2d4cc8)=>{((_0x5f33cc,_0x5e5e8d,_0x32d36)=>{if(!_0x32d36['options']['showSuggestionHighlights'])return;const _0xd073bd=_0x5e5e8d['item'];if(!_0xd073bd||!_0xd073bd['is']('element','tableCell'))return;const _0x9eaa30=_0x32d36['mapper']['toViewElement'](_0xd073bd);if(_0x9eaa30){const {id:_0x3f8743,authorId:_0x5041b5}=Y(_0x5e5e8d['markerName']);_0x3579dc(_0x9eaa30,_0x32d36['writer'],(_0x447596,_0x10d958,_0x2efd40)=>{_0x2efd40['addClass'](_0x21c151(_0x10d958['classes']),_0x447596),_0x2efd40['setAttribute']('data-suggestion',_0x3f8743,_0x447596),_0x2efd40['setAttribute']('data-author-id',_0x5041b5,_0x447596);});}})(0x0,_0x2f38a9,_0x2d4cc8);},{'priority':'highest'});}}class yt extends _0x14f307{['afterInit'](){const _0x486c4e=this['editor'];_0x486c4e['plugins']['has']('HorizontalLineEditing')&&_0x486c4e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1934de,{writer:_0x1b7a23,options:_0x4e0966})=>{if(!_0x4e0966['showSuggestionHighlights'])return null;const _0x1d0d52=_0x1b7a23['createContainerElement']('div'),_0x54057d=_0x1b7a23['createEmptyElement']('hr');return _0x1b7a23['addClass']('ck-horizontal-line',_0x1d0d52),_0x1b7a23['insert'](_0x1b7a23['createPositionAt'](_0x1d0d52,0x0),_0x54057d),_0x1d0d52;},'converterPriority':'high'});}}class wt extends _0x14f307{['afterInit'](){const {plugins:_0x5a0fef,model:_0x2c0b32}=this['editor'];if(!_0x5a0fef['has']('TableCellPropertiesEditing'))return;const _0x41246b=_0x5a0fef['get']('SuggestionsConversion'),_0xd0f5cd=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x4acff7 of _0xd0f5cd)_0x41246b['registerBlockAttribute'](_0x4acff7);_0x2c0b32['schema']['checkAttribute']('tableCell','tableCellType')&&_0x41246b['registerBlockAttribute']('tableCellType');}}class bt extends _0x14f307{['afterInit'](){const _0x34ff01=this['editor'];if(!_0x34ff01['plugins']['has']('TableEditing')||!_0x34ff01['config']['get']('table.enableFooters'))return;_0x34ff01['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x14f307{['_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,ht,pt,ut,bt,ft,wt,dt,gt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1ef7e3=this['editor'],_0x30bd9a=(_0x539711,_0x39da5a,_0x125475)=>{const {id:_0x238ed7,authorId:_0x9c62d6,type:_0x2c4843,subType:_0x45131e}=Y(_0x539711['markerName']),_0x5caa4f=['ck-suggestion-marker',this['_getClassName'](_0x2c4843,_0x45131e)];let _0x253459=0xbb8;return!_0x125475&&(this['_activeMarkers']['includes'](_0x539711['markerName'])&&(_0x5caa4f['push']('ck-suggestion-marker--active'),_0x253459=0xbc2)),('deletion'==_0x2c4843&&(_0x253459+=0x5),{'classes':_0x5caa4f,'attributes':{'data-suggestion':_0x238ed7,'data-author-id':_0x9c62d6},'priority':_0x253459});};_0x1ef7e3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x43287c,_0x33a857)=>_0x30bd9a(_0x43287c,0x0,!0x1)}),_0x1ef7e3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x591e23,_0x473356)=>_0x30bd9a(_0x591e23,0x0,!0x0)}),_0x1ef7e3['conversion']['for']('dataDowncast')['add'](_0x14f558=>{_0x14f558['on']('addMarker:suggestion',(_0x4c6f90,_0x349d88,_0x2a55f9)=>{if(!_0x2a55f9['options']['showSuggestionHighlights'])return;const _0x558122=_0x349d88['item'];if(!_0x558122)return;const _0x43f220=_0x2a55f9['mapper']['toViewElement'](_0x558122);_0x1ef7e3['model']['schema']['isObject'](_0x558122)&&_0x43f220&&!_0x43f220['getCustomProperty']('widget')&&_0x43f220['is']('containerElement')&&_0x4b5486(_0x43f220,_0x2a55f9['writer']);},{'priority':'high'});});const _0x4b0ac5=(_0xdd4bd7,_0x1e4b9c,_0x11030f,_0x36811a,_0x172ec4)=>{if(_0x36811a&&!_0x11030f['options']['showSuggestionHighlights'])return;if(!_0x1e4b9c['item'])return;const {id:_0x4e8e42,authorId:_0x445b68,subType:_0x445200}=Y(_0x1e4b9c['markerName']);if(_0x172ec4){const _0x3fe6e0=_0x445200['split']('|')[0x0];if(!this['isBlockAttribute'](_0x3fe6e0))return;}if(_0x1e4b9c['item']['is']('selection'))return void _0x11030f['consumable']['consume'](_0x1e4b9c['item'],_0xdd4bd7['name']);const _0x1061fc=_0x11030f['mapper']['toViewElement'](_0x1e4b9c['item']);if(_0x1e4b9c['item']['is']('element')&&_0x1ef7e3['model']['schema']['isBlock'](_0x1e4b9c['item'])&&!_0x1061fc['getCustomProperty']('addHighlight')){_0x11030f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1061fc),_0x11030f['writer']['setAttribute']('data-suggestion',_0x4e8e42,_0x1061fc),_0x11030f['writer']['setAttribute']('data-author-id',_0x445b68,_0x1061fc),_0x11030f['mapper']['bindElementToMarker'](_0x1061fc,_0x1e4b9c['markerName']),_0x36811a||(this['_activeMarkers']['includes'](_0x1e4b9c['markerName'])?_0x11030f['writer']['addClass']('ck-suggestion-marker--active',_0x1061fc):_0x11030f['writer']['removeClass']('ck-suggestion-marker--active',_0x1061fc));for(const _0xfdbdc of _0x1ef7e3['model']['createRangeIn'](_0x1e4b9c['item'])['getItems']())_0x11030f['consumable']['consume'](_0xfdbdc,_0xdd4bd7['name']);_0x11030f['consumable']['consume'](_0x1e4b9c['item'],_0xdd4bd7['name']);}},_0x2eee53=(_0x408bd6,_0x3d3d2c,_0x58fc1a,_0x58f15a)=>{const _0x5c92b3=_0x58fc1a['mapper']['markerNameToElements'](_0x3d3d2c['markerName']);if(_0x5c92b3){if(_0x58f15a){const {subType:_0xec839e}=Y(_0x3d3d2c['markerName']),_0xe9b5f9=_0xec839e['split']('|')[0x0];if(!this['isBlockAttribute'](_0xe9b5f9))return;}for(const _0xb7c7c3 of _0x5c92b3)_0xb7c7c3['getCustomProperty']('addHighlight')||(_0x58fc1a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xb7c7c3),_0x58fc1a['writer']['removeAttribute']('data-suggestion',_0xb7c7c3),_0x58fc1a['writer']['removeAttribute']('data-author-id',_0xb7c7c3),_0x58fc1a['mapper']['unbindElementFromMarkerName'](_0xb7c7c3,_0x3d3d2c['markerName']));}};_0x1ef7e3['conversion']['for']('editingDowncast')['add'](_0x1c041d=>{_0x1c041d['on']('addMarker:suggestion:formatBlock',(_0x22cbbc,_0x1d60ce,_0x5591ab)=>{_0x4b0ac5(_0x22cbbc,_0x1d60ce,_0x5591ab,!0x1,!0x1);},{'priority':'high'});}),_0x1ef7e3['conversion']['for']('editingDowncast')['add'](_0x5d44f5=>{_0x5d44f5['on']('addMarker:suggestion:attribute',(_0x48982e,_0x198a23,_0x40be82)=>{_0x4b0ac5(_0x48982e,_0x198a23,_0x40be82,!0x1,!0x0);},{'priority':'high'});}),_0x1ef7e3['conversion']['for']('editingDowncast')['add'](_0x131f53=>{_0x131f53['on']('removeMarker:suggestion:formatBlock',(_0x4f4a6c,_0x284e07,_0x41a41c)=>{_0x2eee53(0x0,_0x284e07,_0x41a41c,!0x1);},{'priority':'high'});}),_0x1ef7e3['conversion']['for']('editingDowncast')['add'](_0x1dee5b=>{_0x1dee5b['on']('removeMarker:suggestion:attribute',(_0x2c1c90,_0x2f7c3b,_0x543d08)=>{_0x2eee53(0x0,_0x2f7c3b,_0x543d08,!0x0);},{'priority':'high'});}),_0x1ef7e3['conversion']['for']('dataDowncast')['add'](_0x2185e9=>{_0x2185e9['on']('addMarker:suggestion:formatBlock',(_0x439d1e,_0x491fb8,_0x49af99)=>{_0x4b0ac5(_0x439d1e,_0x491fb8,_0x49af99,!0x0,!0x1);},{'priority':'highest'});}),_0x1ef7e3['conversion']['for']('dataDowncast')['add'](_0x1fc4ab=>{_0x1fc4ab['on']('addMarker:suggestion:attribute',(_0x7d6f84,_0xee3653,_0x1b958c)=>{_0x4b0ac5(_0x7d6f84,_0xee3653,_0x1b958c,!0x0,!0x0);},{'priority':'highest'});}),_0x1ef7e3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x437ed0,_0x16e0dd)=>_0x16e0dd['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x437ed0['substr'](0xb)}});const _0x1fbf45=(_0x30ab59,_0x52d92d,_0x1244b7,_0x38b525,_0x26fef7)=>{if(_0x38b525&&!_0x1244b7['options']['showSuggestionHighlights'])return;if(!_0x1244b7['consumable']['test'](_0x52d92d['markerRange'],_0x30ab59['name']))return;const _0x3f74ae=this['_activeMarkers'],_0x433bc0=_0x52d92d['markerRange']['getWalker'](),_0x48ee86=_0x52d92d['markerRange']['start'],_0x3bb4e1=_0x1ef7e3['model']['schema'];let _0x55518a=null,_0xc1c762=null,_0x31d035=!0x1,_0x127917=!0x1;for(const _0x4fad1e of _0x433bc0){const _0xa5072=_0x4fad1e['item'];_0x31d035=_0x31d035||_0x3bb4e1['isContent'](_0xa5072);const _0x2343b5=_0x1244b7['mapper']['toViewElement'](_0xa5072);if(_0x2343b5&&_0x2343b5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4fad1e['type']&&(_0x3bb4e1['isBlock'](_0xa5072)&&!_0x3bb4e1['isLimit'](_0xa5072)&&(_0xa5072['nextSibling']||_0x48ee86['isAtEnd']?_0x55518a&&_0x55518a['parent']==_0xa5072||(_0x55518a=_0xa5072,_0x85509a(_0x4fad1e['previousPosition']),_0x127917=!0x0):_0xc1c762=_0xc1c762||_0x4fad1e['previousPosition']));}function _0x85509a(_0x5bfc96){const {id:_0x50c101,authorId:_0x519ba1}=Y(_0x52d92d['markerName']),_0x49b3dd=_0x1244b7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26fef7,'data-suggestion':_0x50c101,'data-author-id':_0x519ba1}),_0x4d800d=_0x1244b7['mapper']['toViewPosition'](_0x5bfc96);!_0x38b525&&_0x3f74ae['includes'](_0x52d92d['markerName'])&&_0x1244b7['writer']['addClass']('ck-suggestion-marker--active',_0x49b3dd),_0x1244b7['writer']['insert'](_0x4d800d,_0x49b3dd),_0x1244b7['mapper']['bindElementToMarker'](_0x49b3dd,_0x52d92d['markerName']);}_0x31d035||_0x127917||!_0xc1c762||_0x85509a(_0xc1c762);};_0x1ef7e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xce792,_0x1a68ef,_0x1c338a)=>{_0x1fbf45(_0xce792,_0x1a68ef,_0x1c338a,!0x1,'merge');},{'priority':'high'}),_0x1ef7e3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38b367,_0x1aff86,_0x2186ec)=>{_0x1fbf45(_0x38b367,_0x1aff86,_0x2186ec,!0x0,'merge');},{'priority':'high'}),_0x1ef7e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd9366c,_0x538939,_0x59cc06)=>{_0x1fbf45(_0xd9366c,_0x538939,_0x59cc06,!0x1,'split');},{'priority':'high'}),_0x1ef7e3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16a7a4,_0x3f44b2,_0xf817d7)=>{_0x1fbf45(_0x16a7a4,_0x3f44b2,_0xf817d7,!0x0,'split');},{'priority':'high'}),_0x1ef7e3['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x138030,_0x43b3dd,_0x3deb83)=>{((_0x363746,_0x35023f,_0xb55132)=>{const _0x273e3a=_0xb55132['mapper']['markerNameToElements'](_0x35023f['markerName']);if(_0x273e3a){for(const _0x1ed311 of _0x273e3a)(_0x1ed311['hasClass']('ck-suggestion-marker-split')||_0x1ed311['hasClass']('ck-suggestion-marker-merge'))&&(_0xb55132['mapper']['unbindElementFromMarkerName'](_0x1ed311,_0x35023f['markerName']),_0xb55132['writer']['remove'](_0x1ed311));}})(0x0,_0x43b3dd,_0x3deb83);},{'priority':'high'});const _0x2b009d=(_0x13073d,_0x3e384e,_0x1424a7,_0x5714c4)=>{if(_0x5714c4&&!_0x1424a7['options']['showSuggestionHighlights'])return;const _0x57389f=_0x3e384e['markerRange']['start'],_0x49e9ef=_0x3e384e['markerRange']['end'],_0x55b3e7=_0x1ef7e3['model']['schema'];if(!_0x57389f['isTouching'](_0x49e9ef)||!_0x57389f['nodeAfter'])return;const _0x38941d=_0x57389f['nodeAfter'];if(_0x55b3e7['isBlock'](_0x38941d)&&!_0x55b3e7['isLimit'](_0x38941d)&&_0x55b3e7['checkChild'](_0x38941d,'$text')){if(!_0x1424a7['consumable']['consume'](_0x3e384e['markerRange'],_0x13073d['name']))return;const {id:_0x2b3a2f,authorId:_0x598986}=Y(_0x3e384e['markerName']),_0x27e860=_0x1424a7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2b3a2f,'data-author-id':_0x598986}),_0xe36e63=_0x1424a7['mapper']['toViewPosition'](_0x49e9ef);!_0x5714c4&&this['_activeMarkers']['includes'](_0x3e384e['markerName'])&&_0x1424a7['writer']['addClass']('ck-suggestion-marker--active',_0x27e860),_0x1424a7['writer']['insert'](_0xe36e63,_0x27e860),_0x1424a7['mapper']['bindElementToMarker'](_0x27e860,_0x3e384e['markerName']);}};_0x1ef7e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x96a6a5,_0x3f6b0f,_0xb5654d)=>{_0x2b009d(_0x96a6a5,_0x3f6b0f,_0xb5654d,!0x1);},{'priority':'high'}),_0x1ef7e3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c0a96,_0x41d075,_0x1f7067)=>{_0x2b009d(_0x3c0a96,_0x41d075,_0x1f7067,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x5e51a1,_0xeaa34f,_0xbf8359)=>{this['_activeMarkers']=_0xbf8359['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x553dc5){this['_blockAttributeKeys']['add'](_0x553dc5);}['registerInlineAttribute'](_0x375e95){this['_inlineAttributeKeys']['add'](_0x375e95);}['isBlockAttribute'](_0x2cb0a1){return this['_blockAttributeKeys']['has'](_0x2cb0a1);}['isInlineAttribute'](_0x14217d){return this['_inlineAttributeKeys']['has'](_0x14217d);}['isRegisteredAttribute'](_0x12d7a0){return this['isInlineAttribute'](_0x12d7a0)||this['isBlockAttribute'](_0x12d7a0);}['_getClassName'](_0x35a4ec,_0x44aa67){if('attribute'!=_0x35a4ec)return'ck-suggestion-marker-'+_0x35a4ec;const _0x6d1ec4=_0x44aa67['split']('|')[0x0];return this['isBlockAttribute'](_0x6d1ec4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x131108={},_0x3b0432){if(void 0x0!==_0x131108['dateTimeFormat']&&'function'!=typeof _0x131108['dateTimeFormat'])throw new _0x589ae0('invalid-date-time-format');return _0x156678=>{const _0x2563cd='string'==typeof _0x156678?_0x429d5e['fromISO'](_0x156678):_0x429d5e['fromJSDate'](_0x156678),_0x1a0fe2=_0x429d5e['now'](),_0x16703d=Math['floor'](_0x1a0fe2['diff'](_0x2563cd,'days')['days']);return _0x131108['dateTimeFormat']?_0x131108['dateTimeFormat'](_0x2563cd['toJSDate'](),_0x3b0432&&_0x3b0432['t']?_0x3b0432['t']:void 0x0):0x0===_0x16703d?_0x3b0432?V(_0x3b0432,'Today')+'\x20'+_0x2563cd['toFormat']('hh:mma'):_0x2563cd['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x16703d?_0x3b0432?V(_0x3b0432,'Yesterday')+'\x20'+_0x2563cd['toFormat']('hh:mma'):_0x2563cd['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x16703d<0x7?_0x3b0432?V(_0x3b0432,'Last')+'\x20'+V(_0x3b0432,_0x2563cd['toFormat']('EEEE'))+'\x20'+_0x2563cd['toFormat']('hh:mma'):_0x2563cd['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x2563cd['toFormat']('LL-dd-yyyy\x20hh:mma');};}function _t(_0x5c45e9,_0x48b1ae){const _0x370b7b=_0x5c45e9['mapper']['markerNameToElements'](_0x48b1ae['name']);if(!_0x370b7b)return null;const _0x17d8dd=_0x1b36c9(_0x370b7b['values']());return _0x5c45e9['view']['domConverter']['mapViewToDom'](_0x17d8dd)||null;}function xt(_0x13222c,_0xfff669){if(0x0===_0xfff669['length'])return null;const _0x421164=[],_0x444528=_0x13222c['view']['domConverter'];for(const _0x30aa8d of _0xfff669){const _0x3c9539=_0x13222c['mapper']['markerNameToElements'](_0x30aa8d['name']);if(!_0x3c9539)continue;const _0x4be3de=Array['from'](_0x3c9539)['map'](_0xe46b41=>_0x444528['mapViewToDom'](_0xe46b41))['filter'](_0x53eaef=>!!_0x53eaef);_0x421164['push'](..._0x4be3de);}if(0x0===_0x421164['length'])return null;const _0x2b85cb=[];for(const _0x58d22e of _0x421164){const _0x8a7da2=_0x58d22e['getClientRects']()['item'](0x0);_0x8a7da2&&_0x2b85cb['push']({'x':_0x8a7da2['x'],'y':_0x8a7da2['y'],'domElement':_0x58d22e});}return 0x0===_0x2b85cb['length']?null:(_0x2b85cb['sort']((_0x54592e,_0x222e88)=>_0x54592e['y']-_0x222e88['y']||_0x54592e['x']-_0x222e88['x']),_0x2b85cb['map'](_0x38fe6=>_0x38fe6['domElement']));}function It(_0x1d24ef,{limit:_0x53c480,suffix:_0x587a5a='...'}){const _0x148ef7=[];let _0x171b44=0x0;const _0x3bb617=_0x1d24ef['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x612a8d=0x0;_0x612a8d<_0x3bb617['length'];_0x612a8d++){let _0x2dd544=_0x3bb617[_0x612a8d];const _0x340f81=St(_0x2dd544);if(_0x2dd544['startsWith']('<')){if(_0x171b44>=_0x53c480){const _0x40282b=_0x2dd544['match'](/[a-zA-Z]+/);if(!_0x40282b){_0x3bb617[_0x612a8d]='';continue;}const _0x1844bd=_0x40282b[0x0];_0x2dd544['startsWith']('</')?(_0x148ef7['length']&&(_0x2dd544=''),_0x148ef7['pop']()):(_0x148ef7['push'](_0x1844bd),_0x2dd544='');}}else{if(_0x171b44>=_0x53c480)_0x2dd544='';else{if(_0x171b44+_0x340f81['length']>=_0x53c480){let _0x15c498=_0x53c480-_0x171b44;if('\x20'===_0x340f81[_0x15c498-0x1])_0x15c498--;else{const _0x4f9c22=_0x340f81['slice'](_0x15c498)['indexOf']('\x20');-0x1!==_0x4f9c22?_0x15c498+=_0x4f9c22:_0x15c498=_0x2dd544['length'];}_0x2dd544=_0x340f81['slice'](0x0,_0x15c498)['join']('')+_0x587a5a,_0x171b44=_0x53c480;}else _0x171b44+=_0x340f81['length'];}}_0x3bb617[_0x612a8d]=_0x2dd544;}return _0x3bb617['join']('\x0a')['replace'](/\n/g,'');}function St(_0x1340fa){const _0x182dd6=[];for(let _0x116c09=0x0;_0x116c09<_0x1340fa['length'];_0x116c09++){const _0x360866=_0x1340fa['substring'](_0x116c09)['match'](/^&[a-z0-9#]+;/);if(_0x360866){const _0x44b259=_0x360866[0x0];_0x182dd6['push'](_0x44b259),_0x116c09+=_0x44b259['length']-0x1;}else _0x182dd6['push'](_0x1340fa[_0x116c09]);}return _0x182dd6;}class Et extends _0x1b1187{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x3fe691){super(_0x3fe691);const _0x45d65d=this['bindTemplate'];this['set']('message',V(_0x3fe691,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x3fe691,V(_0x3fe691,'Yes'),_0x122be6,'submit'),this['cancelView']=this['_createButtonView'](_0x3fe691,V(_0x3fe691,'No'),_0x7f7015,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x546adc(),this['keystrokes']=new _0x28014e(),this['focusCycler']=new _0x28d10d({'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':_0x45d65d['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'](_0x2289cf,_0x366ad4,_0x213fa0,_0x403292){const _0x5837d6=new _0x4dd3fe(_0x2289cf);return _0x5837d6['label']=_0x366ad4,_0x5837d6['icon']=_0x213fa0,_0x5837d6['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x403292}}),_0x5837d6['on']('execute',()=>this['fire'](_0x403292)),_0x5837d6;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x170818=>{this['keystrokes']['listenTo'](_0x170818['element']),this['focusTracker']['add'](_0x170818['element']);}),this['keystrokes']['set']('esc',(_0x106771,_0x3545c2)=>{this['fire']('cancel'),_0x3545c2();});}}function Mt(_0xba168a){return class extends _0xba168a{['showConfirm'](_0x25cfeb,_0x31915b){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x25cfeb,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x31915b['appendChild'](this['confirmView']['element']),_0x31915b['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x15d4ef,_0x5cc709,_0x3f74ca)=>{_0x3f74ca||_0x31915b['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x68376b=>this['confirmView']['on']('submit',_0x68376b));}['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 At(_0x80a915){let _0x5a9030=0x0,_0x27575f=0x0;for(const _0x3bb7bd of Nt(_0x80a915))_0x5a9030=(_0x5a9030<<0x5)-_0x5a9030+_0x3bb7bd,_0x5a9030&=_0x5a9030,[_0x5a9030,_0x27575f]=[_0x27575f,_0x5a9030];return Bt(_0x5a9030)+Bt(_0x27575f);}function*Tt(_0x380f2a){null==_0x380f2a||null==_0x380f2a?yield 0x12b9b0a1:0x0===_0x380f2a||!0x1===_0x380f2a?yield 0x0:0x1===_0x380f2a||0x1==_0x380f2a?yield 0x1:Array['isArray'](_0x380f2a)?yield*function*(_0x3a3265){for(const _0x236a8d of _0x3a3265)yield*Tt(_0x236a8d);}(_0x380f2a):'object'==typeof _0x380f2a?yield*Nt(_0x380f2a):'string'==typeof _0x380f2a?yield*Pt(_0x380f2a):'number'==typeof _0x380f2a&&(yield _0x380f2a);}function*Nt(_0xd2671a){if(yield Dt('{'),_0xd2671a){const _0x41183c=Object['keys'](_0xd2671a)['sort']();for(const _0x1dabcd of _0x41183c){yield*Pt(_0x1dabcd),yield Dt(':');const _0x2cef54=_0xd2671a[_0x1dabcd];yield*Tt(_0x2cef54);}}yield Dt('}');}function*Pt(_0x176e4a){yield Dt('\x22');for(const _0x5d5a34 of _0x176e4a)yield Dt(_0x5d5a34);yield Dt('\x22');}function Dt(_0x11c3ff){return _0x11c3ff['charCodeAt'](0x0);}function Bt(_0x291336){return(_0x291336*=Math['sign'](_0x291336))['toString'](0x24);}const Ot=['root','roots','initialData','context','toolbar','rootsAttributes'],Vt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function $t(_0x2f487f,_0x1201fd,_0x2ebc82,_0x11b8d1=[]){const _0x2b69ac='string'==typeof _0x2f487f?_0x2ebc82['get'](_0x2f487f)['constructor']:_0x2f487f['prototype']['constructor'];if(_0x1201fd['has'](_0x2b69ac))return _0x1201fd['get'](_0x2b69ac);_0x1201fd['set'](_0x2b69ac,!0x0);const _0x15566e=[...Vt,..._0x11b8d1]['map'](_0x25daa6=>{if(_0x2ebc82['has'](_0x25daa6))return _0x2ebc82['get'](_0x25daa6)['constructor'];})['filter'](_0x429d8d=>_0x429d8d);if(_0x2b69ac&&_0x15566e['includes'](_0x2b69ac))return _0x1201fd['set'](_0x2b69ac,!0x1),!0x1;if(!_0x2b69ac['requires'])return _0x1201fd['set'](_0x2b69ac,!0x0),!0x0;const _0x4a4ada=_0x2b69ac['requires']['every'](_0x3cf4cb=>$t(_0x3cf4cb,_0x1201fd,_0x2ebc82,_0x11b8d1));return _0x1201fd['set'](_0x2b69ac,_0x4a4ada),_0x4a4ada;}function Lt(_0x2f5854,_0x382241){const _0x267ba2={};for(const _0x51e481 of _0x2f5854['config']['names']())Ot['includes'](_0x51e481)||(_0x267ba2[_0x51e481]=_0x2f5854['config']['get'](_0x51e481));const _0xc8d817=_0x267ba2['plugins']||[],_0x5cc1=_0x2f5854['constructor']['builtinPlugins']||[],_0x1c72c9=_0xc8d817['length']?_0xc8d817:_0x5cc1,_0x2b090b=_0x267ba2['extraPlugins']||[];delete _0x267ba2['extraPlugins'];const _0xd367dc=_0x267ba2['removePlugins']||[];delete _0x267ba2['removePlugins'];const _0x55ee30=_0x2f5854['_context']['config']['get']('plugins')||[],_0x327431=_0x1c72c9['concat'](_0x2b090b)['concat'](_0x55ee30)['map'](_0x544844=>'string'==typeof _0x544844?_0x5cc1['find'](_0x3c459b=>_0x3c459b['pluginName']==_0x544844):_0x544844)['filter'](_0x44d47b=>!_0xd367dc['includes'](_0x44d47b)&&!_0xd367dc['includes'](_0x44d47b['pluginName'])),_0x1b00e7=Array['from'](new Set(_0x327431)),_0x33d39d=new Map();return _0x267ba2['plugins']=_0x1b00e7['filter'](_0x4f53f1=>$t(_0x4f53f1,_0x33d39d,_0x2f5854['plugins'],_0x382241)),_0x267ba2;}function Ut(_0x579611,_0x246b24){const _0x204e63=[];_0x579611['document']['selection']['on']('change:range',()=>{const _0x55e7d9=function(_0x42bc6a,_0x14ab40){const _0x354f4f=[];for(const _0x1763d3 of _0x42bc6a['markers']){const _0x30c8db=_0x1763d3['getRange']();(_0x30c8db['containsPosition'](_0x14ab40)||_0x30c8db['start']['isEqual'](_0x14ab40)||_0x30c8db['end']['isEqual'](_0x14ab40))&&_0x354f4f['push'](_0x1763d3);}return _0x354f4f;}(_0x579611,_0x579611['document']['selection']['focus']),_0x40690c=[],_0x1ee7f6=[],_0x369b91=[];for(const _0x1674d0 of _0x204e63)_0x55e7d9['includes'](_0x1674d0)||_0x40690c['push'](_0x1674d0);for(const _0x2cd521 of _0x55e7d9)_0x204e63['includes'](_0x2cd521)||_0x1ee7f6['push'](_0x2cd521),_0x369b91['push'](_0x2cd521);(_0x40690c['length']||_0x1ee7f6['length'])&&_0x246b24({'left':_0x40690c,'entered':_0x1ee7f6}),_0x204e63['length']=0x0,_0x204e63['push'](..._0x369b91);});}const Rt='Ctrl+Shift+E';function Ft(_0xf605fd,_0x552ba1){const _0x81017c=_0xf605fd['element'];_0xf605fd['keystrokes']['listenTo'](_0x81017c);for(const _0x35cbc0 of _0x552ba1)Ht(_0xf605fd,_0x35cbc0);_0x552ba1['on']('change',(_0x5bd7ea,_0x59691d)=>{for(const _0x280d6e of _0x59691d['removed'])zt(_0xf605fd,_0x280d6e);for(const _0x155674 of Array['from'](_0x59691d['added'])['reverse']())Ht(_0xf605fd,_0x155674);}),_0xf605fd['keystrokes']['set']('enter',(_0xac411,_0xa2b7b1)=>{_0x81017c===_0xac411['target']&&(_0xf605fd['focusCycler']['focusFirst'](),_0xa2b7b1());},{'filter':_0x10abd1=>_0x10abd1['target']===_0x81017c}),_0xf605fd['keystrokes']['set']('esc',(_0x3d6d08,_0x27f999)=>{_0x81017c!==_0x3d6d08['target']?_0xf605fd['focus']():_0xf605fd['fire']('escape'),_0x27f999();}),_0xf605fd['keystrokes']['set']('arrowdown',(_0x39b463,_0x4b77b9)=>{_0x81017c===_0x39b463['target']&&(_0xf605fd['fire']('arrowdown'),_0x4b77b9());}),_0xf605fd['keystrokes']['set']('arrowup',(_0x40625d,_0x365cb6)=>{_0x81017c===_0x40625d['target']&&(_0xf605fd['fire']('arrowup'),_0x365cb6());});}function Ht(_0x14963d,_0x49de67){_0x49de67['isRendered']&&(_0x14963d['focusTracker']['add'](_0x49de67['element']),_0x14963d['keystrokes']['listenTo'](_0x49de67['element']),_0x3a4c9e(_0x49de67)&&function(_0x475bcf,_0x121a71){const _0x10fa02=_0x475bcf['actions'],_0x396eec=_0x121a71['actions'];for(const _0x3431a4 of Object['keys'](_0x10fa02))if(_0x3431a4 in _0x396eec&&_0x10fa02[_0x3431a4]!==_0x396eec[_0x3431a4])return!0x1;return!0x0;}(_0x14963d['focusCycler'],_0x49de67['focusCycler'])&&_0x14963d['focusCycler']['chain'](_0x49de67['focusCycler']));}function zt(_0x4314e9,_0x27af9b){_0x4314e9['focusTracker']['remove'](_0x27af9b['element']),_0x4314e9['keystrokes']['stopListening'](_0x27af9b['element']),_0x3a4c9e(_0x27af9b)&&_0x4314e9['focusCycler']['unchain'](_0x27af9b['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x27ab8e{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0xc13a56?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x4795ca,_0x4edaef)=>{_0x4edaef['on']('ready',()=>{this['_integrateEditor'](_0x4edaef);});});}get['editor'](){if(this['context']instanceof _0xc13a56)return this['context'];{const _0x1aff62=this['context']['editors']['first'];if(!_0x1aff62)throw new _0x589ae0('documentcompare-no-editor',this);return _0x1aff62;}}['getDiff'](_0xd72d4,_0x28d04d,_0x5e31db={'anchor':'main','markDeletions':!0x1}){const _0x47c8e8=_0x5e31db['targetEditor']||this['editor'];let _0x3de4df,_0x5a187d;if('string'==typeof _0x5e31db['anchor']){const _0x5edb2a=_0x47c8e8['model']['document']['getRoot'](_0x5e31db['anchor']);if(!_0x5edb2a)throw new _0x589ae0('documentcompare-compare-no-root',this,{'anchor':_0x5e31db['anchor']});_0x3de4df=_0x5edb2a,_0x5a187d=_0x47c8e8['model']['createPositionAt'](_0x5edb2a,0x0);}else _0x3de4df=_0x5e31db['anchor']['clone'](),_0x5a187d=_0x5e31db['anchor']['clone']();const _0x53b798=_0x47c8e8['data']['parse'](_0xd72d4,_0x3de4df),_0x28520b=_0x47c8e8['data']['parse'](_0x28d04d,_0x3de4df);return new Jt({'editor':_0x47c8e8,'before':_0x53b798,'after':_0x28520b,'options':{'anchor':_0x5a187d,'markDeletions':_0x5e31db['markDeletions']}});}['isMarkedRemoveOperation'](_0x28f1fa){return'marker'==_0x28f1fa['type']&&_0x28f1fa['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x25f9fe){_0x25f9fe['conversion']['for']('upcast')['add'](_0x158ca6=>{_0x158ca6['on']('element',(_0x52e50b,_0x54c74c,_0x272d47)=>{if(_0x54c74c['modelRange'])for(const _0x384c18 of _0x54c74c['modelRange']['getItems']({'shallow':!0x0})){if(_0x384c18['is']('$textProxy'))continue;const _0x331495=_0x54c74c['viewItem']['getAttribute'](jt);_0x331495&&_0x272d47['writer']['setAttribute'](Wt,_0x331495,_0x384c18);}},{'priority':'lowest'});}),_0x25f9fe['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x5c7ca2,before:_0x59f1af,after:_0x593a1e,options:_0xc0db07}){this['_editor']=_0x5c7ca2,this['_markDeletions']=!!_0xc0db07['markDeletions'],this['_anchor']=_0xc0db07['anchor'];const _0x582db3=this['_tokenizeModel'](_0x59f1af),_0x4ed8a9=this['_tokenizeModel'](_0x593a1e);this['_diffItems']=this['_diffModelTokens'](_0x582db3,_0x4ed8a9),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x59f1af['markers'],_0x593a1e['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0xdcf87d=this['_editor']['model']['document'],_0x3f748b=[];let _0x54dd4a=_0xdcf87d['version'];for(const _0x3dbdf9 of this['_operationsData'])switch(_0x3dbdf9['type']){case'attribute':{const _0x15dfd1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['path']),_0x7100d0=_0x15dfd1['getShiftedBy'](_0x3dbdf9['howMany']),_0x1ee203=new _0x31b594(_0x15dfd1,_0x7100d0),_0x3cc141=JSON['parse'](_0x3dbdf9['oldValue']),_0x315f6a=JSON['parse'](_0x3dbdf9['newValue']);_0x3f748b['push'](new _0x32adae(_0x1ee203,_0x3dbdf9['key'],_0x3cc141,_0x315f6a,_0x54dd4a++));break;}case'insert':{const _0x16a7cf=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['path']),_0x592efd=this['_makeModelFromTokens'](_0x3dbdf9['tokens']);_0x3f748b['push'](new _0x3a43da(_0x16a7cf,_0x592efd,_0x54dd4a++));break;}case'remove':{const _0x164165=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['path']),_0x5c32c4=new _0x298ad2(_0xdcf87d['graveyard'],[0x0]);_0x3f748b['push'](new _0x40249c(_0x164165,_0x3dbdf9['howMany'],_0x5c32c4,_0x54dd4a++));break;}case'rename':{const _0x5a82be=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['path']);_0x3f748b['push'](new _0x358f6c(_0x5a82be,_0x3dbdf9['oldName'],_0x3dbdf9['newName'],_0x54dd4a++));break;}case'split':{const _0x31528c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['path']),_0x29139b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['path']['slice'](0x0,-0x1));_0x29139b['offset']++,_0x3f748b['push'](new _0x1c35cd(_0x31528c,Number['NEGATIVE_INFINITY'],_0x29139b,null,_0x54dd4a++));break;}case'merge':{const _0x8cfabe=_0x3dbdf9['path']['slice'](),_0x2b5fcc=_0x8cfabe['slice'](0x0,-0x1);_0x2b5fcc[_0x2b5fcc['length']-0x1]++,_0x2b5fcc['push'](0x0);const _0x3b5531=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b5fcc),_0x123398=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8cfabe),_0x400f2f=new _0x298ad2(_0xdcf87d['graveyard'],[0x0]);_0x3f748b['push'](new _0x2b7ec0(_0x3b5531,Number['NEGATIVE_INFINITY'],_0x123398,_0x400f2f,_0x54dd4a++));break;}case'marker':case'markedRemove':{let _0x493eb0=null;if(_0x3dbdf9['range']){const _0x1409e5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['range']['start']),_0x1946c6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['range']['end']);_0x493eb0=new _0x31b594(_0x1409e5,_0x1946c6);}const _0x55fd59='marker'==_0x3dbdf9['type']?_0x3dbdf9['name']:'$markedRemove:'+_0x360519();_0x3f748b['push'](new _0xbe5a54(_0x55fd59,null,_0x493eb0,_0xdcf87d['model']['markers'],!0x0,_0x54dd4a++));break;}case'unwrap':{const _0x2a3ab7=_0x3dbdf9['path']['slice']();_0x2a3ab7['push'](0x0);const _0x517a82=_0x3dbdf9['path']['slice'](),_0x2734ca=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a3ab7),_0x5e6354=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x517a82),_0x441b81=new _0x298ad2(_0xdcf87d['graveyard'],[0x0]);_0x3f748b['push'](new _0x40249c(_0x2734ca,_0x3dbdf9['howMany'],_0x5e6354,_0x54dd4a++)),_0x3f748b['push'](new _0x40249c(_0x5e6354['getShiftedBy'](_0x3dbdf9['howMany']),0x1,_0x441b81,_0x54dd4a++));break;}case'wrap':{const _0x121d92=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['range']['start']),_0x5d9183=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3dbdf9['range']['end']),_0x24f750=_0x3dbdf9['token']['element']['_clone'](!0x1),_0x2eb2a6=_0x3dbdf9['range']['end']['slice']();_0x2eb2a6['push'](0x0);const _0x799f66=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2eb2a6);_0x3f748b['push'](new _0x3a43da(_0x5d9183,_0x24f750,_0x54dd4a++)),_0x3f748b['push'](new _0x40249c(_0x121d92,_0x5d9183['offset']-_0x121d92['offset'],_0x799f66,_0x54dd4a++));break;}}return _0x3f748b;}['_tokenizeModel'](_0x425d95){const _0x2d50ee=[],_0x47ce63=_0x31b594['_createIn'](_0x425d95),_0x469335=new _0x4f9a26({'boundaries':_0x47ce63});let _0x59009f='',_0x22bebd=null;const _0x5000c1=[''],_0x481fca=new Map();for(const _0x1b5deb of _0x469335)if('elementStart'==_0x1b5deb['type']||'elementEnd'==_0x1b5deb['type']){let _0x4ffbd4=_0x5000c1[0x0];''!==_0x59009f&&(_0x2d50ee['push'](...this['_makeTokensFromTextByWords'](_0x59009f,_0x22bebd,_0x4ffbd4)),_0x59009f='');const _0x38400d=_0x1b5deb['item'];let _0x5aa4c9;_0x38400d['getAttribute'](Wt)?_0x5aa4c9=_0x38400d['getAttribute'](Wt):'elementStart'==_0x1b5deb['type']?(_0x5aa4c9=qt(_0x38400d),_0x481fca['set'](_0x38400d,_0x5aa4c9)):_0x5aa4c9=_0x481fca['get'](_0x38400d);const _0x3d40de=this['_getElementCategory'](_0x38400d);'solid'==_0x3d40de&&('elementStart'==_0x1b5deb['type']?(_0x4ffbd4=_0x5aa4c9,_0x5000c1['unshift'](_0x4ffbd4)):_0x5000c1['shift']());const _0x121d17={'type':'element','element':_0x38400d,'elementId':_0x5aa4c9,'category':_0x3d40de,'isStart':'elementStart'==_0x1b5deb['type'],'limitId':_0x4ffbd4};_0x2d50ee['push'](_0x121d17);}else''==_0x59009f&&(_0x22bebd=_0x1b5deb['previousPosition']['clone']()),_0x59009f+=_0x1b5deb['item']['data'];return''!==_0x59009f&&_0x2d50ee['push'](...this['_makeTokensFromTextByWords'](_0x59009f,_0x22bebd,_0x5000c1[0x0])),_0x2d50ee;}['_makeTokensFromTextByWords'](_0x598e25,_0x285fe9,_0x5b9c44){const _0x3f5cd4=_0x598e25['matchAll'](/(\s)/g),_0xf51da3=Array['from'](_0x3f5cd4)['map'](_0x4dc325=>_0x4dc325['index']);_0xf51da3['push'](_0x598e25['length']),0x0==_0xf51da3[0x0]&&_0xf51da3['shift']();const _0x1623c8=[],_0x938c90=_0x285fe9['parent'];let _0x23ee25=0x0,_0xe8be11=_0x285fe9['offset'];for(let _0x2863f2=0x0;_0x2863f2<_0xf51da3['length'];_0x2863f2++)_0x1623c8['push']({'type':'text','data':_0x598e25['slice'](_0x23ee25,_0xf51da3[_0x2863f2]),'parent':_0x938c90,'offset':_0xe8be11,'limitId':_0x5b9c44}),_0x23ee25=_0xf51da3[_0x2863f2],_0xe8be11=_0x285fe9['offset']+_0xf51da3[_0x2863f2];return _0x1623c8;}['_getElementCategory'](_0x5741b9){const _0x1d23bf=this['_editor']['model']['schema'];return _0x1d23bf['isLimit'](_0x5741b9)||_0x1d23bf['isContent'](_0x5741b9)||_0x1d23bf['isInline'](_0x5741b9)?'solid':_0x1d23bf['isBlock'](_0x5741b9)?'block':'container';}['_diffModelTokens'](_0x1334d5,_0x44b61e){const _0x4a565a=_0x28bf7b(_0x1334d5,_0x44b61e,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x4a565a);const _0x201f01=_0x4a565a['flatMap'](_0x1abf9c=>{const _0x41df47=_0x1abf9c['added']?'added':_0x1abf9c['removed']?'removed':'unchanged';return _0x1abf9c['value']['map'](_0x5dbc74=>({'token':_0x5dbc74,'change':_0x41df47}));});let _0x4f7063=0x0;for(const _0x4712a3 of _0x201f01)'added'!=_0x4712a3['change']&&('unchanged'==_0x4712a3['change']&&(_0x4712a3['before']=_0x1334d5[_0x4f7063]),_0x4f7063++);return _0x201f01;}['_handleUnclosedBlockOpeningTags'](_0x55ee28){for(let _0x4e8582=0x0;_0x4e8582<_0x55ee28['length']-0x1;_0x4e8582++)if(_0x55ee28[_0x4e8582]['removed']&&_0x55ee28[_0x4e8582+0x1]['added']){const _0x31e746=this['_findUnclosedBlockOpeningToken'](_0x55ee28[_0x4e8582]['value']);if(null!==_0x31e746){const _0x3ef386=this['_findUnclosedBlockOpeningToken'](_0x55ee28[_0x4e8582+0x1]['value']),_0x374479=_0x55ee28[_0x4e8582]['value']['splice'](_0x31e746),_0x2fe94e=_0x55ee28[_0x4e8582+0x1]['value']['splice'](_0x3ef386),_0x164c40=[_0x2fe94e['shift']()];_0x374479['shift']();const _0x12c5fc={'value':_0x374479,'removed':!0x0},_0x100fb7={'value':_0x2fe94e,'added':!0x0},_0xc53292={'value':_0x164c40};_0x55ee28['splice'](_0x4e8582+0x2,0x0,_0xc53292,_0x12c5fc,_0x100fb7);}}}['_findUnclosedBlockOpeningToken'](_0x2ba6da){let _0x2d1c69=0x0,_0x599eb7=-0x1;for(let _0x1bd8bd=0x0;_0x1bd8bd<_0x2ba6da['length'];_0x1bd8bd++){const _0x21337a=_0x2ba6da[_0x1bd8bd];'element'==_0x21337a['type']&&'block'==_0x21337a['category']&&(_0x2d1c69+=_0x21337a['isStart']?0x1:-0x1,_0x21337a['isStart']&&(_0x599eb7=_0x1bd8bd));}return 0x0===_0x2d1c69?null:_0x599eb7;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x24a5cb=0x0;_0x24a5cb<this['_diffItems']['length'];_0x24a5cb++){const _0x1c907e=this['_diffItems'][_0x24a5cb]['change'],_0x12761f=[];_0x12761f['push'](this['_diffItems'][_0x24a5cb]);let _0x4601fa=_0x24a5cb+0x1;for(;this['_diffItems'][_0x4601fa]&&this['_diffItems'][_0x4601fa]['change']==_0x1c907e;)_0x12761f['push'](this['_diffItems'][_0x4601fa]),_0x4601fa++,_0x24a5cb++;const _0x1d7ec5=_0x12761f['map'](_0x2e3ac7=>_0x2e3ac7['token']);if('unchanged'==_0x1c907e)_0x12761f['map'](_0xdd90a5=>_0xdd90a5['before'])['forEach'](_0x1455ae=>this['_traverseOverItem'](_0x1455ae));else{if('removed'==_0x1c907e){if(this['_markDeletions']){const _0x4ac064=this['_path']['slice']();_0x1d7ec5['forEach'](_0x34736f=>this['_traverseOverItem'](_0x34736f));const _0x4d0e41=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x4ac064,'end':_0x4d0e41}});}else this['_handleChanged'](_0x1d7ec5,!0x0,this['_path']['slice']());}else{const _0x5840fa=_0x1d7ec5['filter'](_0x453db5=>'element'!=_0x453db5['type']||'container'!=_0x453db5['category']);this['_handleChanged'](_0x5840fa,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x362bfd=0x0;_0x362bfd<this['_diffItems']['length'];_0x362bfd++){const _0x18dd38=this['_diffItems'][_0x362bfd]['change'],_0x51f9c0=[];_0x51f9c0['push'](this['_diffItems'][_0x362bfd]);let _0x2056dd=_0x362bfd+0x1;for(;this['_diffItems'][_0x2056dd]&&this['_diffItems'][_0x2056dd]['change']==_0x18dd38;)_0x51f9c0['push'](this['_diffItems'][_0x2056dd]),_0x2056dd++,_0x362bfd++;const _0x349b21=_0x51f9c0['map'](_0x638823=>_0x638823['token']);if('unchanged'==_0x18dd38){const _0x502be3=_0x51f9c0['map'](_0x3125ef=>_0x3125ef['before']);this['_handleUnchanged'](_0x502be3,_0x349b21);}else('added'==_0x18dd38||this['_markDeletions'])&&_0x349b21['forEach'](_0x4521cb=>{'element'==_0x4521cb['type']&&_0x4521cb['isStart']&&this['_splitPostponedData']['has'](_0x4521cb['element'])&&this['_handleSplitPostponedData'](_0x4521cb['element'],this['_path']),this['_traverseOverItem'](_0x4521cb);});}}['_handleSplitPostponedData'](_0x4fbdd1,_0x2337e9){const _0x20377b=this['_splitPostponedData']['get'](_0x4fbdd1);for(const _0x1936f3 of _0x20377b)'rename'==_0x1936f3['type']?this['_operationsData']['push']({'type':'rename','path':_0x2337e9['slice'](),'oldName':_0x1936f3['oldValue'],'newName':_0x4fbdd1['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x2337e9['slice'](),'howMany':0x1,'key':_0x1936f3['key'],'oldValue':_0x1936f3['oldValue'],'newValue':JSON['stringify'](_0x4fbdd1['getAttribute'](_0x1936f3['key'])??null)});}['_calculateMarkersOperationsData'](_0x24b2a1,_0x48b626){const _0x423e5a={};for(const [_0x28e3ba]of _0x24b2a1)_0x423e5a[_0x28e3ba]=null;for(const [_0x4755ae,_0x30bbc0]of _0x48b626)_0x423e5a[_0x4755ae]=_0x30bbc0;const _0x4b6856=Object['entries'](_0x423e5a)['map'](([_0x589a0d,_0x242082])=>({'type':'marker','name':_0x589a0d,'range':_0x242082?{'start':_0x242082['start']['path']['slice'](),'end':_0x242082['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x4b6856);}['_handleUnwraps'](){const _0x5c05bd=new Map(),_0x54da17=[],_0x598e94=[0x0];let _0x17014d=this['_diffItems']['length']+0x1;for(let _0x4adb2b=this['_diffItems']['length']-0x1;_0x4adb2b>=0x0;_0x4adb2b--){const {token:_0x43d944,before:_0x41c9f1,change:_0x40acc5}=this['_diffItems'][_0x4adb2b];if('removed'!=_0x40acc5&&(_0x17014d=_0x4adb2b),'element'!=_0x43d944['type']||'container'!=_0x43d944['category']||'added'==_0x40acc5)continue;const _0xed55c3=_0x41c9f1?_0x41c9f1['element']:_0x43d944['element'];if(_0x43d944['isStart']){const _0x1fbf4a=_0x5c05bd['get'](_0xed55c3),_0x3d0274=this['_diffItems'][_0x1fbf4a];('removed'==_0x40acc5||'removed'==_0x3d0274['change'])&&_0x17014d<_0x1fbf4a&&(this['_operationsData']['push']({'type':'unwrap','path':_0xed55c3['getPath'](),'howMany':_0xed55c3['maxOffset']+_0x598e94[0x0]}),_0x598e94['shift'](),_0x598e94[0x0]+=_0xed55c3['maxOffset']-0x1,_0x54da17['push'](_0x4adb2b),_0x54da17['push'](_0x1fbf4a));}else _0x5c05bd['set'](_0xed55c3,_0x4adb2b),_0x598e94['unshift'](0x0);}_0x54da17['sort']((_0x51501f,_0x4af332)=>_0x4af332-_0x51501f),_0x54da17['forEach'](_0x4d1e2e=>{const _0x38963d=this['_diffItems'][_0x4d1e2e];'removed'==_0x38963d['change']?this['_diffItems']['splice'](_0x4d1e2e,0x1):(_0x38963d['change']='added',delete _0x38963d['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5f2503=[];for(let _0x57e6b2=0x0;_0x57e6b2<this['_diffItems']['length'];_0x57e6b2++){const {change:_0x2c756e,token:_0x14eb89}=this['_diffItems'][_0x57e6b2];if('added'==_0x2c756e&&'element'==_0x14eb89['type']&&'container'==_0x14eb89['category']){if(_0x14eb89['isStart'])_0x5f2503['push'](this['_path']['slice']());else{if(!_0x14eb89['isStart']){const _0x3d3246=_0x5f2503['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x3d3246,'end':this['_path']['slice']()},'token':_0x14eb89}),this['_path'][this['_path']['length']-0x1]=_0x3d3246[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x2c756e||this['_markDeletions'])&&this['_traverseOverItem'](_0x14eb89);}}['_handleUnchanged'](_0x479573,_0x43fbde){for(let _0x431c8c=0x0;_0x431c8c<_0x479573['length'];_0x431c8c++){const _0xc9fff7=_0x479573[_0x431c8c];if('element'==_0xc9fff7['type']&&_0xc9fff7['isStart']){const _0x4cdde6=_0x43fbde[_0x431c8c];'block'==_0xc9fff7['category']&&this['_handleElementRename'](_0xc9fff7['element'],_0x4cdde6['element'],this['_path']),this['_handleElementAttributeChanges'](_0xc9fff7['element'],_0x4cdde6['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x4cdde6);}else{if('element'!=_0xc9fff7['type']||_0xc9fff7['isStart']){if('text'==_0xc9fff7['type']){const _0x154931=this['_path']['slice'](),_0x36ad47=[],_0x261db1=[];for(;_0x479573[_0x431c8c]&&'text'==_0x479573[_0x431c8c]['type'];)_0x36ad47['push'](_0x479573[_0x431c8c]),_0x261db1['push'](_0x43fbde[_0x431c8c]),this['_path'][this['_path']['length']-0x1]+=_0x479573[_0x431c8c]['data']['length'],_0x431c8c++;_0x431c8c--,this['_handleTextAttributeChanges'](_0x36ad47,_0x261db1,_0x154931);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0xa66c35,_0x287e96,_0x5b7e8e){const _0x375891=[],_0xa5df17=[],_0x3ea65d=_0x5b7e8e['slice']();let _0x453066=this['_parents']['length']-0x1;for(let _0x1ba221=0x0;_0x1ba221<_0xa66c35['length'];_0x1ba221++){const _0x14aa83=_0xa66c35[_0x1ba221],_0x589a69=_0x5b7e8e['slice']();'element'!=_0x14aa83['type']||_0x14aa83['isStart']?'element'==_0x14aa83['type']&&_0x14aa83['isStart']?(_0x5b7e8e['push'](0x0),_0x453066++,_0xa5df17['push']({'before':_0x589a69,'after':_0x5b7e8e['slice'](),'index':_0x1ba221})):_0x5b7e8e[_0x5b7e8e['length']-0x1]+=_0x14aa83['data']['length']:(_0x5b7e8e['pop'](),_0x5b7e8e[_0x5b7e8e['length']-0x1]++,_0x453066--,_0xa5df17['length']?_0xa5df17['pop']():_0x375891['push']({'before':_0x589a69,'after':_0x5b7e8e['slice'](),'index':_0x1ba221}));}if(_0xa5df17['length']!==_0x375891['length'])throw new _0x589ae0('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0xa66c35,'isRemove':_0x287e96});const _0x414b98=[{'after':_0x3ea65d['slice'](),'index':-0x1},..._0x375891,..._0xa5df17,{'before':_0x5b7e8e['slice'](),'index':_0xa66c35['length']}];if(_0x287e96){for(let _0x1551f=_0x414b98['length']-0x1;_0x1551f>=0x1;_0x1551f--){const _0x1d2714=_0x414b98[_0x1551f-0x1]['after'],_0x5ee71c=_0x414b98[_0x1551f]['before'],_0x21112e=_0x5ee71c[_0x5ee71c['length']-0x1]-_0x1d2714[_0x1d2714['length']-0x1];_0x21112e&&(this['_operationsData']['push']({'type':'remove','path':_0x1d2714,'howMany':_0x21112e}),_0x5ee71c[_0x5ee71c['length']-0x1]-=_0x21112e);}for(const {before:_0x178b81}of _0x375891)this['_operationsData']['push']({'type':'merge','path':_0x178b81});}else for(let _0x2a1d6e=0x0;_0x2a1d6e<_0x414b98['length']-0x1;_0x2a1d6e++){const _0x32aba4=_0x414b98[_0x2a1d6e]['after'],_0xbc1816=_0x414b98[_0x2a1d6e+0x1]['before'],_0x396cb3=_0x414b98[_0x2a1d6e]['index']+0x1,_0xa4a2e8=_0x414b98[_0x2a1d6e+0x1]['index'];if(_0x396cb3!==_0xa4a2e8&&this['_operationsData']['push']({'type':'insert','path':_0x32aba4,'tokens':_0xa66c35['slice'](_0x396cb3,_0xa4a2e8)}),_0x2a1d6e<_0x375891['length']){this['_operationsData']['push']({'type':'split','path':_0xbc1816});const _0xff73cf=_0xa66c35[_0xa5df17[_0xa5df17['length']-0x1-_0x2a1d6e]['index']],_0x11b24f=this['_parents'][_0x453066]['element'];_0x11b24f['name']!=_0xff73cf['element']['name']&&this['_addSplitPostponedData'](_0xff73cf['element'],{'type':'rename','oldValue':_0x11b24f['name']});const _0x59d599=this['_getAttributeChanges'](_0x11b24f['getAttributes'](),_0xff73cf['element']['getAttributes']());for(const _0x2aa5c1 in _0x59d599){const _0x40f778=_0x59d599[_0x2aa5c1]['oldValue'];this['_addSplitPostponedData'](_0xff73cf['element'],{'type':'attribute','key':_0x2aa5c1,'oldValue':_0x40f778});}}}}['_addSplitPostponedData'](_0x317c86,_0x19a839){const _0x3b9c90=this['_splitPostponedData']['get'](_0x317c86)||[];_0x3b9c90['push'](_0x19a839),this['_splitPostponedData']['set'](_0x317c86,_0x3b9c90);}['_traverseOverItem'](_0x164909){'element'==_0x164909['type']&&_0x164909['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x164909)):'element'!=_0x164909['type']||_0x164909['isStart']?'text'==_0x164909['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x164909['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x58882d,_0x296f30,_0x5107a5){_0x58882d['name']!=_0x296f30['name']&&this['_operationsData']['push']({'type':'rename','path':_0x5107a5['slice'](),'oldName':_0x58882d['name'],'newName':_0x296f30['name']});}['_handleElementAttributeChanges'](_0x2d6e50,_0x26de22,_0x48dcec){const _0x4cd825=this['_getAttributeChanges'](_0x2d6e50['getAttributes'](),_0x26de22['getAttributes']());for(const _0x2b6109 in _0x4cd825){const {oldValue:_0xefe086,newValue:_0x5771c1}=_0x4cd825[_0x2b6109];this['_operationsData']['push']({'type':'attribute','path':_0x48dcec['slice'](),'howMany':0x1,'key':_0x2b6109,'oldValue':_0xefe086,'newValue':_0x5771c1});}}['_handleTextAttributeChanges'](_0x599ce8,_0x244024,_0xddc4c5){const _0x2b0d72=this['_operationsData'],_0x4a19d5=_0x599ce8[0x0]['parent'],_0x2ad368=_0x599ce8[0x0]['offset'],_0x2f66fe=_0x244024[0x0]['parent'],_0x38c7f8=_0x244024[0x0]['offset'],_0x2753e3=_0x599ce8['reduce']((_0x1c4ed9,_0x339927)=>_0x1c4ed9+_0x339927['data']['length'],0x0),_0x3675de=this['_getAttrsForOffsets'](_0x4a19d5,_0x2ad368,_0x2753e3),_0x466679=this['_getAttrsForOffsets'](_0x2f66fe,_0x38c7f8,_0x2753e3),_0x2203f5={};for(let _0x47e486=0x0;_0x47e486<_0x2753e3;_0x47e486++){const _0x58b403=_0x3675de[_0x2ad368+_0x47e486],_0x3e934b=_0x466679[_0x38c7f8+_0x47e486],_0x15884f=this['_getAttributeChanges'](_0x58b403,_0x3e934b);for(const _0x2b27b9 in _0x2203f5)_0x15884f[_0x2b27b9]||_0x3f2c44(_0x2b27b9);for(const _0x3d353a in _0x15884f){const {oldValue:_0x3ce3e6,newValue:_0x549048}=_0x15884f[_0x3d353a],_0x11ce37=_0x2203f5[_0x3d353a];_0x11ce37?_0x11ce37['oldValue']==_0x3ce3e6&&_0x11ce37['newValue']==_0x549048?_0x11ce37['length']++:(_0x3f2c44(_0x3d353a),_0x2203f5[_0x3d353a]={'oldValue':_0x3ce3e6,'newValue':_0x549048,'start':_0x47e486,'length':0x1}):_0x2203f5[_0x3d353a]={'oldValue':_0x3ce3e6,'newValue':_0x549048,'start':_0x47e486,'length':0x1};}}for(const _0x2a7a98 in _0x2203f5)_0x3f2c44(_0x2a7a98);function _0x3f2c44(_0x346d89){const _0x556d86=_0x2203f5[_0x346d89],_0x15daa9=_0xddc4c5['slice']();_0x15daa9[_0x15daa9['length']-0x1]+=_0x556d86['start'],_0x2b0d72['push']({'type':'attribute','path':_0x15daa9,'howMany':_0x556d86['length'],'key':_0x346d89,'oldValue':_0x556d86['oldValue'],'newValue':_0x556d86['newValue']}),delete _0x2203f5[_0x346d89];}}['_getAttributeChanges'](_0x18c689,_0x271c04){const _0xa05264={};for(const [_0x360790,_0x4cc818]of _0x18c689)_0xa05264[_0x360790]={'oldValue':JSON['stringify'](_0x4cc818),'newValue':'null'};for(const [_0x51dadd,_0x234312]of _0x271c04){const _0x2a38c8=JSON['stringify'](_0x234312);_0xa05264[_0x51dadd]?_0xa05264[_0x51dadd]['oldValue']==_0x2a38c8?delete _0xa05264[_0x51dadd]:_0xa05264[_0x51dadd]['newValue']=_0x2a38c8:_0xa05264[_0x51dadd]={'oldValue':'null','newValue':_0x2a38c8};}return delete _0xa05264[Wt],_0xa05264;}['_getAttrsForOffsets'](_0x50b3b9,_0x4be3ae,_0x23b9c2){const _0x34277a=new Array(_0x4be3ae+_0x23b9c2);let _0x51e8f0=_0x50b3b9['getChildAtOffset'](_0x4be3ae),_0x1964fe=_0x51e8f0['startOffset'];for(;_0x51e8f0&&_0x1964fe<_0x4be3ae+_0x23b9c2;){const _0x3a8acf=Array['from'](_0x51e8f0['getAttributes']());_0x34277a['fill'](_0x3a8acf,_0x1964fe,_0x1964fe+_0x51e8f0['offsetSize']),_0x1964fe+=_0x51e8f0['offsetSize'],_0x51e8f0=_0x51e8f0['nextSibling'];}return _0x34277a;}['_getPositionFromAnchorAndPath'](_0x341013,_0x2679f8){const _0x876994=[..._0x341013['path']['slice'](0x0,-0x1),_0x341013['offset']+_0x2679f8[0x0],..._0x2679f8['slice'](0x1)];return new _0x298ad2(_0x341013['root'],_0x876994);}['_makeModelFromTokens'](_0x28237e){const _0xc64d7a=[];let _0x3f1d7e=null;for(const _0x3009dc of _0x28237e)if('element'!=_0x3009dc['type']||_0x3009dc['isStart']||_0x3f1d7e!=_0x3009dc['element']){if(!_0x3f1d7e){if('text'==_0x3009dc['type']){const _0x561e24=_0x298ad2['_createAt'](_0x3009dc['parent'],_0x3009dc['offset']),_0x150ce0=_0x31b594['_createFromPositionAndShift'](_0x561e24,_0x3009dc['data']['length']),_0x2e8184=Array['from'](_0x150ce0['getItems']())['map'](_0x5058d0=>new _0x3d6284(_0x5058d0['data'],_0x5058d0['getAttributes']()));_0xc64d7a['push'](..._0x2e8184);}else{_0x3f1d7e=_0x3009dc['element'];const _0xb0ec8f=_0x3009dc['element']['_clone'](!0x0);_0xb0ec8f['_removeAttribute'](Wt);for(const _0x3aa1b4 of this['_editor']['model']['createRangeIn'](_0xb0ec8f)['getItems']())_0x3aa1b4['is']('element')&&_0x3aa1b4['_removeAttribute'](Wt);_0xc64d7a['push'](_0xb0ec8f);}}}else _0x3f1d7e=null;return _0xc64d7a;}}function Kt(_0x31d8b2,_0x147944){return _0x31d8b2['type']===_0x147944['type']&&(_0x31d8b2['limitId']===_0x147944['limitId']&&('text'==_0x31d8b2['type']?_0x31d8b2['data']==_0x147944['data']:function(_0x312cad,_0x17d444){if(_0x312cad['isStart']!=_0x17d444['isStart'])return!0x1;if(_0x312cad['isStart']&&_0x312cad['elementId']!=_0x17d444['elementId'])return!0x1;if(_0x312cad['category']!=_0x17d444['category'])return!0x1;if('block'==_0x312cad['category'])return!0x0;if('container'==_0x312cad['category']&&_0x312cad['elementId']!=_0x17d444['elementId'])return!0x1;return _0x312cad['element']['name']==_0x17d444['element']['name'];}(_0x31d8b2,_0x147944)));}function qt(_0x33c1a5){return At({'name':_0x33c1a5['name'],...Object['fromEntries'](_0x33c1a5['getAttributes']())});}export{H as AriaDescriptionView,R as CollaborationUserColor,Mt as ConfirmMixin,Wt as DATA_ID_MODEL_ATTRIBUTE,jt as DATA_ID_VIEW_ATTRIBUTE,Yt as DocumentCompare,Jt as DocumentDiff,Rt as FOCUS_ANNOTATION_KEYSTROKE,z as LateFocusButtonView,W as LateFocusDropdownButtonView,O as Permissions,vt as SuggestionsConversion,L as User,F as UserView,$ as Users,J as fixElementSuggestionRange,xt as getAllMarkersDomElementsSorted,Ct as getDateTimeFormatter,_t as getMarkerDomElement,At as hashObject,Lt as sanitizeEditorConfig,Ft as setupThreadKeyboardNavigation,Y as splitSuggestionMarkerName,Ut as surroundingMarkersDetector,It 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':_0x3de411=>0x1!=_0x3de411}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x282be8=>{const {af:{dictionary:_0x33cdc2,getPluralForm:_0x46ab24}}={'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':_0x398b72=>0x1!=_0x398b72}};_0x282be8['af']||={'dictionary':{},'getPluralForm':null},_0x282be8['af']['dictionary']=Object['assign'](_0x282be8['af']['dictionary'],_0x33cdc2),_0x282be8['af']['getPluralForm']=_0x46ab24;})(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':_0x4e0f56=>0x0==_0x4e0f56?0x0:0x1==_0x4e0f56?0x1:0x2==_0x4e0f56?0x2:_0x4e0f56%0x64>=0x3&&_0x4e0f56%0x64<=0xa?0x3:_0x4e0f56%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x565227=>{const {ar:{dictionary:_0x5bab7e,getPluralForm:_0x2c6ec9}}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x1eaeb7=>0x0==_0x1eaeb7?0x0:0x1==_0x1eaeb7?0x1:0x2==_0x1eaeb7?0x2:_0x1eaeb7%0x64>=0x3&&_0x1eaeb7%0x64<=0xa?0x3:_0x1eaeb7%0x64>=0xb?0x4:0x5}};_0x565227['ar']||={'dictionary':{},'getPluralForm':null},_0x565227['ar']['dictionary']=Object['assign'](_0x565227['ar']['dictionary'],_0x5bab7e),_0x565227['ar']['getPluralForm']=_0x2c6ec9;})(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':_0x4a9417=>0x1!=_0x4a9417}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x469a47=>{const {ast:{dictionary:_0xe87528,getPluralForm:_0x35bf1b}}={'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x24e94e=>0x1!=_0x24e94e}};_0x469a47['ast']||={'dictionary':{},'getPluralForm':null},_0x469a47['ast']['dictionary']=Object['assign'](_0x469a47['ast']['dictionary'],_0xe87528),_0x469a47['ast']['getPluralForm']=_0x35bf1b;})(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':_0x4e8d70=>0x1!=_0x4e8d70}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x303f98=>{const {az:{dictionary:_0x3cb850,getPluralForm:_0x4afa4f}}={'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x2503a8=>0x1!=_0x2503a8}};_0x303f98['az']||={'dictionary':{},'getPluralForm':null},_0x303f98['az']['dictionary']=Object['assign'](_0x303f98['az']['dictionary'],_0x3cb850),_0x303f98['az']['getPluralForm']=_0x4afa4f;})(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':_0x5d91fd=>_0x5d91fd%0xa==0x1&&_0x5d91fd%0x64!=0xb?0x0:_0x5d91fd%0xa>=0x2&&_0x5d91fd%0xa<=0x4&&(_0x5d91fd%0x64<0xa||_0x5d91fd%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a5767=>{const {be:{dictionary:_0x56ca3a,getPluralForm:_0x59ca6c}}={'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x56057e=>_0x56057e%0xa==0x1&&_0x56057e%0x64!=0xb?0x0:_0x56057e%0xa>=0x2&&_0x56057e%0xa<=0x4&&(_0x56057e%0x64<0xa||_0x56057e%0x64>=0x14)?0x1:0x2}};_0x2a5767['be']||={'dictionary':{},'getPluralForm':null},_0x2a5767['be']['dictionary']=Object['assign'](_0x2a5767['be']['dictionary'],_0x56ca3a),_0x2a5767['be']['getPluralForm']=_0x59ca6c;})(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':_0x5f2cf2=>0x1!=_0x5f2cf2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36b97c=>{const {bg:{dictionary:_0x5875f1,getPluralForm:_0x2a0f2e}}={'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':_0x152e28=>0x1!=_0x152e28}};_0x36b97c['bg']||={'dictionary':{},'getPluralForm':null},_0x36b97c['bg']['dictionary']=Object['assign'](_0x36b97c['bg']['dictionary'],_0x5875f1),_0x36b97c['bg']['getPluralForm']=_0x2a0f2e;})(window['CKEDITOR_TRANSLATIONS']||={});
|