@ckeditor/ckeditor5-collaboration-core 48.1.0-alpha.6 → 48.1.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x35ee0a,Editor as _0x2c37f4,Plugin as _0x3b1edd}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x12b3a2,Collection as _0xa88096,uid as _0x67d3ff,toArray as _0x2d3e4d,first as _0x2f680e,FocusTracker as _0x15073e,KeystrokeHandler as _0xb034b4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x26a46a,IconView as _0xf81d12,ButtonView as _0x3da566,DropdownButtonView as _0xc0b0a5,FocusCycler as _0x134cf7,isViewWithFocusCycler as _0x11fabf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x2cecc2,IconCheck as _0x11a72c,IconCancel as _0x33f058}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x6a3034,toWidget as _0x94f5b6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x11b551}from'luxon';import{InsertOperation as _0x85ccbc,MoveOperation as _0x5240cb,ModelPosition as _0x308deb,ModelRange as _0x33edf9,MarkerOperation as _0x1453a9,MergeOperation as _0x4a6d50,SplitOperation as _0x567d29,RenameOperation as _0x1ad99e,AttributeOperation as _0x53cf69,ModelTreeWalker as _0x15d202,ModelText as _0x9101e3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0xac3906}from'diff';class O extends _0x35ee0a{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x592eed,_0x4bbf49){let _0x23a419;if(_0x4bbf49||(_0x4bbf49=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x4bbf49?_0x23a419=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x23a419=this['context']['editors']['find'](_0x112bf3=>_0x112bf3['config']['get']('collaboration.channelId')==_0x4bbf49)),!_0x23a419)throw new _0x12b3a2('permissions-set-permissions-invalid-channel-id',null);const _0x4cfc5d=_0x23a419['plugins'],_0x475024=_0x4cfc5d['has']('CommentsRepository')?_0x4cfc5d['get']('CommentsRepository'):void 0x0,_0x20a23c=_0x4cfc5d['has']('CommentsOnly')&&_0x4cfc5d['get']('CommentsOnly'),_0x312cea=_0x592eed['includes']('document:write'),_0x42a3f4=_0x592eed['includes']('comment:modify_all'),_0x4ab412=_0x592eed['includes']('comment:admin'),_0x364de2=_0x592eed['includes']('comment:write'),_0x18a24f=_0x364de2||_0x4ab412,_0x3bcd2c=_0x18a24f||_0x42a3f4,_0x38d3ac=_0x312cea||_0x18a24f;(_0x20a23c&&(_0x20a23c['isEnabled']=!_0x312cea&&_0x3bcd2c),_0x23a419 instanceof _0x2c37f4)&&(!(_0x312cea||_0x3bcd2c&&_0x475024)?_0x23a419['enableReadOnlyMode']('no-permissions'):_0x23a419['disableReadOnlyMode']('no-permissions'));if(_0x475024){_0x475024['setPermissions']({'admin':_0x4ab412,'modifyAll':_0x42a3f4,'write':_0x364de2,'resolve':_0x38d3ac},_0x4bbf49);const _0x4cbbb7=_0x23a419 instanceof _0x2c37f4&&_0x23a419['commands']['get']('addCommentThread');_0x4cbbb7&&(_0x18a24f?_0x4cbbb7['clearForceDisabled']('noPermissions'):_0x4cbbb7['forceDisabled']('noPermissions'));}}}function V(_0x2711dc,_0xb23cb8){const t=_0x2711dc['t'];switch(_0xb23cb8){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 _0x35ee0a{['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(_0x21790e){super(_0x21790e),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0xa88096(),this['_locale']=_0x21790e['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:_0x4f0572,name:_0x1360da,..._0x12f635}){if(!_0x4f0572||'string'!=typeof _0x4f0572)throw new _0x12b3a2('users-add-invalid-id');if(this['users']['has'](_0x4f0572))throw new _0x12b3a2('users-add-duplicated-id',null,{'id':_0x4f0572});const _0x14f35c=this['context']['config']['get']('users.getInitialsCallback'),_0x1d74c7={..._0x12f635,'id':_0x4f0572,'name':U(this['_locale'],_0x1360da),'color':this['_getNextColor']()};_0x1d74c7['name']=U(this['_locale'],_0x1d74c7['name']);const _0x2c8096=new L(_0x1d74c7,_0x14f35c);return this['users']['add'](_0x2c8096),_0x2c8096;}['getUser'](_0x34bc00){return this['users']['get'](_0x34bc00);}['useAnonymousUser'](){const _0x311787=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x311787);}['defineMe'](_0x33580a){if(this['_myId'])throw new _0x12b3a2('users-me-already-defined',null);const _0x206b78=this['getUser'](_0x33580a);if(!_0x206b78)throw new _0x12b3a2('users-me-missing-user',null);this['_myId']=_0x33580a,_0x206b78['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x53a993=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x53a993&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0x288314=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x288314,'name':V(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class L{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x5d6bed,_0x4b031a){this['id']=_0x5d6bed['id'],this['color']=_0x5d6bed['color'],this['name']=_0x5d6bed['name'],this['initials']=_0x4b031a?_0x4b031a(this['name']):this['_computeInitials'](),this['avatar']=_0x5d6bed['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x1fd547=this['name']['split']('\x20')['filter'](_0x323283=>/^[\p{Letter}]/u['test'](_0x323283));return 0x1===_0x1fd547['length']?this['_getInitial'](_0x1fd547[0x0]):0x0===_0x1fd547['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x1fd547[0x0])+this['_getInitial'](_0x1fd547[_0x1fd547['length']-0x1]);}['_getInitial'](_0x4cf75b){return String['fromCodePoint'](_0x4cf75b['codePointAt'](0x0))['toUpperCase']();}}function U(_0x38d0e1,_0x1ed4cf=''){return''==(_0x1ed4cf=_0x1ed4cf['trim']())?V(_0x38d0e1,'Anonymous'):_0x1ed4cf;}class R{['_id'];constructor(_0x5471f0){this['_id']=_0x5471f0;}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 _0x26a46a{['name'];['notificationView'];constructor(_0x5b728a,_0x7ae8a8,_0x2eeeea){super(_0x5b728a),this['name']=_0x7ae8a8['name'],this['notificationView']=null;const _0x1a5967=['ck','ck-user'],_0x2f28c0=['ck','ck-user__img'];if(_0x7ae8a8['isAnonymous']&&_0x2f28c0['push']('ck-user__anonymous'),!_0x7ae8a8['isAnonymous']&&_0x7ae8a8['isMe']&&_0x1a5967['push']('ck-user_me'),_0x7ae8a8['avatar']&&_0x2f28c0['push']('ck-user__avatar'),_0x2eeeea){const _0x49ce5b=new _0xf81d12();_0x49ce5b['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x49ce5b['content']=_0x2cecc2,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2eeeea},'children':[_0x49ce5b]};}const _0x37ff03=[{'tag':'div','attributes':{'class':_0x2f28c0,'style':{'background-image':_0x7ae8a8['avatar']?'url(\x27'+_0x7ae8a8['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x7ae8a8['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x7ae8a8['name']},'children':[{'text':_0x7ae8a8['initials']}]}];this['notificationView']&&_0x37ff03['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x1a5967,'data-user-id':_0x7ae8a8['id']},'children':_0x37ff03});}}class H extends _0x26a46a{['id'];constructor(_0xd8ccfe,_0x1c8947){super(_0xd8ccfe),this['id']='ck-aria-description-'+_0x67d3ff(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x1c8947}]});}}class z extends _0x3da566{['render'](){super['render'](),j(this);}}class W extends _0xc0b0a5{['render'](){super['render'](),j(this);}}function j(_0x307dc0){_0x307dc0['listenTo'](_0x307dc0['element'],'mousedown',(_0x2fdbd3,_0x9facb4)=>{_0x9facb4['stopPropagation'](),_0x9facb4['preventDefault']();}),_0x307dc0['listenTo'](_0x307dc0['element'],'mouseup',()=>{_0x307dc0['element']['focus']();});}function Y(_0x419e11){const _0x145a7a=_0x419e11['split'](':');return{'group':_0x145a7a[0x0],'type':_0x145a7a[0x1],'subType':_0x145a7a['length']>=0x5?_0x145a7a[0x2]:null,'id':_0x145a7a['length']<0x5?_0x145a7a[0x2]:_0x145a7a[0x3],'authorId':_0x145a7a['length']<0x5?_0x145a7a[0x3]:_0x145a7a[0x4],'markerCount':0x6==_0x145a7a['length']?_0x145a7a[0x5]:null};}function J(_0x3ae4aa,_0x28266c){const _0x344f61=_0x3ae4aa['end']['nodeBefore'];if(_0x344f61&&_0x344f61['is']('element')&&_0x28266c['schema']['isBlock'](_0x344f61)&&!_0x28266c['schema']['isObject'](_0x344f61)){const _0x1673d5=_0x28266c['createPositionAt'](_0x344f61,'end');return _0x28266c['createRange'](_0x3ae4aa['start'],_0x1673d5);}return _0x3ae4aa;}class K extends _0x3b1edd{['afterInit'](){const _0x4f9677=this['editor'];if(!_0x4f9677['plugins']['has']('AlignmentEditing'))return;_0x4f9677['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3b1edd{['afterInit'](){const _0x325e63=this['editor'],_0x275d4b=_0x325e63['plugins']['get']('SuggestionsConversion');for(const _0x4a68b7 of q){if(!_0x325e63['plugins']['has'](_0x4a68b7))continue;const _0x2cc1ea=_0x4a68b7['slice'](0x0,-0x7)['toLowerCase']();_0x275d4b['registerInlineAttribute'](_0x2cc1ea);}}}class Z extends _0x3b1edd{['afterInit'](){const _0x133c37=this['editor'],_0x2810ba=_0x133c37['plugins']['get']('SuggestionsConversion');_0x133c37['plugins']['has']('BookmarkEditing')&&_0x2810ba['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x3b1edd{['afterInit'](){const _0xfa40a=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x41f9b5,commandName:_0x41037c}of Q)this['editor']['plugins']['has'](_0x41f9b5)&&_0xfa40a['registerInlineAttribute'](_0x41037c);}}class tt extends _0x3b1edd{['afterInit'](){const {editor:_0x1cfcfc}=this;if(!_0x1cfcfc['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x19d573=_0x1cfcfc['plugins']['get']('SuggestionsConversion');_0x19d573['registerBlockAttribute']('footnotesListStyle'),_0x19d573['registerBlockAttribute']('footnotesListStart');}}class et extends _0x3b1edd{['afterInit'](){const _0x367a97=this['editor'];if(!_0x367a97['plugins']['has']('HighlightEditing'))return;_0x367a97['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x3b1edd{['afterInit'](){const _0x5cab4e=this['editor'];if(!_0x5cab4e['plugins']['has']('HtmlEmbed'))return;_0x5cab4e['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x3b1edd{['afterInit'](){const _0x4ef9a1=this['editor'];if(!_0x4ef9a1['plugins']['has']('ImageEditing'))return;const _0x49674f=_0x4ef9a1['plugins']['get']('SuggestionsConversion');_0x49674f['registerBlockAttribute']('src'),_0x4ef9a1['plugins']['has']('ImageResize')&&_0x49674f['registerBlockAttribute']('resizedWidth'),_0x4ef9a1['plugins']['has']('ImageTextAlternativeEditing')&&_0x49674f['registerBlockAttribute']('alt'),_0x4ef9a1['plugins']['has']('PictureEditing')&&_0x49674f['registerBlockAttribute']('sources'),_0x4ef9a1['plugins']['has']('ImageSizeAttributes')&&(_0x49674f['registerBlockAttribute']('width'),_0x49674f['registerBlockAttribute']('height'));}}class nt extends _0x3b1edd{['afterInit'](){const _0x463332=this['editor'],_0x66a87=_0x463332['plugins']['get']('SuggestionsConversion');_0x463332['plugins']['has']('IndentBlock')&&(_0x66a87['registerBlockAttribute']('blockIndent'),_0x463332['plugins']['has']('ListEditing')&&(_0x66a87['registerBlockAttribute']('blockIndentList'),_0x66a87['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x3b1edd{['afterInit'](){const _0x533df7=this['editor'];if(!_0x533df7['plugins']['has']('LineHeight'))return;_0x533df7['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x3b1edd{['afterInit'](){const _0x53e5f4=this['editor'];if(!_0x53e5f4['plugins']['has']('LinkEditing'))return;const _0x2b98c1=_0x53e5f4['plugins']['get']('SuggestionsConversion'),_0x35e88a=_0x53e5f4['commands']['get']('link');_0x2b98c1['registerInlineAttribute']('linkHref');for(const _0x4bd1d9 of _0x35e88a['manualDecorators'])_0x2b98c1['registerInlineAttribute'](_0x4bd1d9['id']);}}class at extends _0x3b1edd{['afterInit'](){const _0x567c5a=this['editor'];if(!_0x567c5a['plugins']['has']('ListEditing'))return;const _0x207390=_0x567c5a['plugins']['get']('SuggestionsConversion'),_0x3b0e81=_0x567c5a['plugins']['has']('TodoListEditing');_0x207390['registerBlockAttribute']('listItemId'),_0x207390['registerBlockAttribute']('listType'),_0x207390['registerBlockAttribute']('listIndent'),_0x3b0e81&&_0x207390['registerBlockAttribute']('todoListChecked');}}class ct extends _0x3b1edd{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x516bc4=this['editor']['config']['get']('list.properties'),_0x21a754=this['editor']['plugins']['get']('SuggestionsConversion');_0x516bc4['styles']&&_0x21a754['registerBlockAttribute']('listStyle'),_0x516bc4['reversed']&&_0x21a754['registerBlockAttribute']('listReversed'),_0x516bc4['startIndex']&&_0x21a754['registerBlockAttribute']('listStart');}}class lt extends _0x3b1edd{['afterInit'](){const _0x2074ea=this['editor'],_0xa4a347=_0x2074ea['plugins']['get']('SuggestionsConversion');_0x2074ea['plugins']['has']('MultiLevelList')&&_0xa4a347['registerBlockAttribute']('listMarkerStyle');}}class ht extends _0x3b1edd{['afterInit'](){const _0x1aff1e=this['editor'];if(!_0x1aff1e['plugins']['has']('Style')||!_0x1aff1e['plugins']['has']('DataSchema')||!_0x1aff1e['config']['get']('style.definitions'))return;const _0x3c98e0=_0x1aff1e['plugins']['get']('SuggestionsConversion'),_0x83c198=_0x1aff1e['config']['get']('style.definitions'),_0x3503b9=_0x1aff1e['plugins']['get']('GeneralHtmlSupport'),_0x335eea=_0x1aff1e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1aff1e['plugins']['get']('DataSchema'),_0x83c198),_0x5a8427=new Set();for(const _0x3226c3 of _0x335eea['block']){const _0x3abacd=_0x3503b9['getGhsAttributeNameForElement'](_0x3226c3['element']);_0x5a8427['add'](_0x3abacd);}const _0x4e5ec2=new Set();for(const _0x41b20a of _0x335eea['inline']){const _0x41dd0d=_0x3503b9['getGhsAttributeNameForElement'](_0x41b20a['element']);_0x4e5ec2['add'](_0x41dd0d);for(const _0x3a5cc3 of _0x41b20a['ghsAttributes'])_0x4e5ec2['add'](_0x3a5cc3);}for(const _0x1a5d70 of _0x5a8427)_0x3c98e0['registerBlockAttribute'](_0x1a5d70);for(const _0x73dcc9 of _0x4e5ec2)_0x3c98e0['registerInlineAttribute'](_0x73dcc9);}}class ut extends _0x3b1edd{['afterInit'](){const _0x1c9222=this['editor'];if(!_0x1c9222['plugins']['has']('TableEditing'))return;const _0x104f59=_0x1c9222['plugins']['get']('SuggestionsConversion');_0x104f59['registerBlockAttribute']('headingRows'),_0x104f59['registerBlockAttribute']('headingColumns');}}class dt extends _0x3b1edd{['afterInit'](){const {plugins:_0x1c8734}=this['editor'];if(!_0x1c8734['has']('TablePropertiesEditing'))return;const _0x26b4a3=_0x1c8734['get']('SuggestionsConversion'),_0x1ba3b6=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x41219d of _0x1ba3b6)_0x26b4a3['registerBlockAttribute'](_0x41219d);}}class ft extends _0x3b1edd{['afterInit'](){const _0x565bcf=this['editor'],_0x2b73b2=_0x565bcf['plugins']['get']('SuggestionsConversion');_0x565bcf['plugins']['has']('TableLayout')&&_0x2b73b2['registerBlockAttribute']('tableType');}}class gt extends _0x3b1edd{['afterInit'](){const _0xb70f64=this['editor'],_0x2ded9f=this['editor']['plugins']['get']('SuggestionsConversion');_0xb70f64['plugins']['has']('Uploadcare')&&_0xb70f64['plugins']['has']('UploadcareImageEdit')&&_0x2ded9f['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x3b1edd{['afterInit'](){const _0x189f11=this['editor'];if(!_0x189f11['plugins']['has']('ShiftEnter'))return;const _0xaabe68=_0x189f11['plugins']['get']('SuggestionsConversion'),_0xbf2c85=(_0x55a5bd,_0x17d784,_0x2ab9c6,_0x3ef70f)=>{if(_0x3ef70f&&!_0x2ab9c6['options']['showSuggestionHighlights'])return;if(!_0x2ab9c6['consumable']['test'](_0x17d784['markerRange'],_0x55a5bd['name']))return;const _0x826f14=_0x189f11['model'];for(const _0x3d0862 of _0x17d784['markerRange']['getItems']()){if(!_0x3d0862['is']('element','softBreak'))continue;const _0x924422='deletion'==_0x17d784['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xf45ce3,authorId:_0x113eaf}=Y(_0x17d784['markerName']),_0x6295d5=_0x2ab9c6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x924422,'data-suggestion':_0xf45ce3,'data-author-id':_0x113eaf}),_0xe599e7=_0x2ab9c6['mapper']['toViewPosition'](_0x826f14['createPositionBefore'](_0x3d0862));!_0x3ef70f&&_0xaabe68['_activeMarkers']['includes'](_0x17d784['markerName'])&&_0x2ab9c6['writer']['addClass']('ck-suggestion-marker--active',_0x6295d5),_0x2ab9c6['writer']['insert'](_0xe599e7,_0x6295d5),_0x2ab9c6['mapper']['bindElementToMarker'](_0x6295d5,_0x17d784['markerName']);}};_0x189f11['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3efeb7,_0x490e50,_0x44eadd)=>{_0xbf2c85(_0x3efeb7,_0x490e50,_0x44eadd,!0x1);},{'priority':'high'}),_0x189f11['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x261286,_0x506708,_0x11f8a1)=>{_0xbf2c85(_0x261286,_0x506708,_0x11f8a1,!0x1);},{'priority':'high'}),_0x189f11['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22f718,_0x39e618,_0x3e412d)=>{_0xbf2c85(_0x22f718,_0x39e618,_0x3e412d,!0x0);},{'priority':'high'}),_0x189f11['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x309f4f,_0x2378a6,_0x2d8cd6)=>{_0xbf2c85(_0x309f4f,_0x2378a6,_0x2d8cd6,!0x0);},{'priority':'high'});}}class kt extends _0x3b1edd{['afterInit'](){const _0x4f28fe=this['editor'];_0x4f28fe['plugins']['has']('MediaEmbedEditing')&&(_0x4f28fe['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5bccc3,{writer:_0x3ed7ee,options:_0x21b100})=>{if(_0x21b100['showSuggestionHighlights'])return _0x3ed7ee['createEmptyElement']('div');},'converterPriority':'high'}),_0x4f28fe['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3c67c1,_0x57c276,_0x1efb8b)=>{_0x1efb8b['options']['showSuggestionHighlights']&&_0x3c67c1['stop']();},{'priority':'high'}));}}class pt extends _0x3b1edd{['afterInit'](){const _0x29a144=this['editor'];if(!_0x29a144['plugins']['has']('Table'))return;_0x29a144['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x457d6e,_0x2f52fb,_0x554464)=>{((_0x612f93,_0xb77265,_0xefca3c)=>{if(!_0xefca3c['options']['showSuggestionHighlights'])return;const _0x30956b=_0xb77265['item'];if(!_0x30956b||!_0x30956b['is']('element','tableCell'))return;const _0x576a7c=_0xefca3c['mapper']['toViewElement'](_0x30956b);if(_0x576a7c){const {id:_0x45e275,authorId:_0x35a913}=Y(_0xb77265['markerName']);_0x6a3034(_0x576a7c,_0xefca3c['writer'],(_0x4ffe27,_0x56a255,_0x231dca)=>{_0x231dca['addClass'](_0x2d3e4d(_0x56a255['classes']),_0x4ffe27),_0x231dca['setAttribute']('data-suggestion',_0x45e275,_0x4ffe27),_0x231dca['setAttribute']('data-author-id',_0x35a913,_0x4ffe27);});}})(0x0,_0x2f52fb,_0x554464);},{'priority':'highest'});}}class yt extends _0x3b1edd{['afterInit'](){const _0x2d9c39=this['editor'];_0x2d9c39['plugins']['has']('HorizontalLineEditing')&&_0x2d9c39['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb9e552,{writer:_0x5522ce,options:_0x9e24f})=>{if(!_0x9e24f['showSuggestionHighlights'])return null;const _0x45a8ed=_0x5522ce['createContainerElement']('div'),_0x3412bd=_0x5522ce['createEmptyElement']('hr');return _0x5522ce['addClass']('ck-horizontal-line',_0x45a8ed),_0x5522ce['insert'](_0x5522ce['createPositionAt'](_0x45a8ed,0x0),_0x3412bd),_0x45a8ed;},'converterPriority':'high'});}}class wt extends _0x3b1edd{['afterInit'](){const {plugins:_0x479f5f,model:_0x1293f5}=this['editor'];if(!_0x479f5f['has']('TableCellPropertiesEditing'))return;const _0x26d780=_0x479f5f['get']('SuggestionsConversion'),_0x23d1a9=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x3c384f of _0x23d1a9)_0x26d780['registerBlockAttribute'](_0x3c384f);_0x1293f5['schema']['checkAttribute']('tableCell','tableCellType')&&_0x26d780['registerBlockAttribute']('tableCellType');}}class bt extends _0x3b1edd{['afterInit'](){const _0x674ade=this['editor'];if(!_0x674ade['plugins']['has']('TableEditing')||!_0x674ade['config']['get']('table.enableFooters'))return;_0x674ade['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x3b1edd{['_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 _0x2c97bc=this['editor'],_0x5e417a=(_0x387cbc,_0x50f5bd,_0x1911a1)=>{const {id:_0x246614,authorId:_0x3c06ef,type:_0x1b0d48,subType:_0x2ffba1}=Y(_0x387cbc['markerName']),_0x5711a0=['ck-suggestion-marker',this['_getClassName'](_0x1b0d48,_0x2ffba1)];let _0x80777d=0xbb8;return!_0x1911a1&&(this['_activeMarkers']['includes'](_0x387cbc['markerName'])&&(_0x5711a0['push']('ck-suggestion-marker--active'),_0x80777d=0xbc2)),('deletion'==_0x1b0d48&&(_0x80777d+=0x5),{'classes':_0x5711a0,'attributes':{'data-suggestion':_0x246614,'data-author-id':_0x3c06ef},'priority':_0x80777d});};_0x2c97bc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x131e3f,_0xeebb63)=>_0x5e417a(_0x131e3f,0x0,!0x1)}),_0x2c97bc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5761f6,_0x43f8b6)=>_0x5e417a(_0x5761f6,0x0,!0x0)}),_0x2c97bc['conversion']['for']('dataDowncast')['add'](_0x8a566=>{_0x8a566['on']('addMarker:suggestion',(_0x188d7b,_0x115725,_0x524b8d)=>{if(!_0x524b8d['options']['showSuggestionHighlights'])return;const _0x528430=_0x115725['item'];if(!_0x528430)return;const _0x3d0b0a=_0x524b8d['mapper']['toViewElement'](_0x528430);_0x2c97bc['model']['schema']['isObject'](_0x528430)&&_0x3d0b0a&&!_0x3d0b0a['getCustomProperty']('widget')&&_0x3d0b0a['is']('containerElement')&&_0x94f5b6(_0x3d0b0a,_0x524b8d['writer']);},{'priority':'high'});});const _0xe79474=(_0xb3e306,_0x9c8b32,_0x3c643e,_0x48f8b4,_0x5eb7c6)=>{if(_0x48f8b4&&!_0x3c643e['options']['showSuggestionHighlights'])return;if(!_0x9c8b32['item'])return;const {id:_0x192f78,authorId:_0x68d555,subType:_0x3ea54d}=Y(_0x9c8b32['markerName']);if(_0x5eb7c6){const _0x162f4e=_0x3ea54d['split']('|')[0x0];if(!this['isBlockAttribute'](_0x162f4e))return;}if(_0x9c8b32['item']['is']('selection'))return void _0x3c643e['consumable']['consume'](_0x9c8b32['item'],_0xb3e306['name']);const _0x1d9991=_0x3c643e['mapper']['toViewElement'](_0x9c8b32['item']);if(_0x9c8b32['item']['is']('element')&&_0x2c97bc['model']['schema']['isBlock'](_0x9c8b32['item'])&&!_0x1d9991['getCustomProperty']('addHighlight')){_0x3c643e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1d9991),_0x3c643e['writer']['setAttribute']('data-suggestion',_0x192f78,_0x1d9991),_0x3c643e['writer']['setAttribute']('data-author-id',_0x68d555,_0x1d9991),_0x3c643e['mapper']['bindElementToMarker'](_0x1d9991,_0x9c8b32['markerName']),_0x48f8b4||(this['_activeMarkers']['includes'](_0x9c8b32['markerName'])?_0x3c643e['writer']['addClass']('ck-suggestion-marker--active',_0x1d9991):_0x3c643e['writer']['removeClass']('ck-suggestion-marker--active',_0x1d9991));for(const _0x53a315 of _0x2c97bc['model']['createRangeIn'](_0x9c8b32['item'])['getItems']())_0x3c643e['consumable']['consume'](_0x53a315,_0xb3e306['name']);_0x3c643e['consumable']['consume'](_0x9c8b32['item'],_0xb3e306['name']);}},_0x26b73e=(_0xf816fd,_0x2efa50,_0x549157,_0x519827)=>{const _0x387994=_0x549157['mapper']['markerNameToElements'](_0x2efa50['markerName']);if(_0x387994){if(_0x519827){const {subType:_0x2f3890}=Y(_0x2efa50['markerName']),_0x1a6683=_0x2f3890['split']('|')[0x0];if(!this['isBlockAttribute'](_0x1a6683))return;}for(const _0x4bcccf of _0x387994)_0x4bcccf['getCustomProperty']('addHighlight')||(_0x549157['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4bcccf),_0x549157['writer']['removeAttribute']('data-suggestion',_0x4bcccf),_0x549157['writer']['removeAttribute']('data-author-id',_0x4bcccf),_0x549157['mapper']['unbindElementFromMarkerName'](_0x4bcccf,_0x2efa50['markerName']));}};_0x2c97bc['conversion']['for']('editingDowncast')['add'](_0x5789e0=>{_0x5789e0['on']('addMarker:suggestion:formatBlock',(_0xa8e8b4,_0x5ec703,_0x191ad8)=>{_0xe79474(_0xa8e8b4,_0x5ec703,_0x191ad8,!0x1,!0x1);},{'priority':'high'});}),_0x2c97bc['conversion']['for']('editingDowncast')['add'](_0xa2cbd7=>{_0xa2cbd7['on']('addMarker:suggestion:attribute',(_0x66004a,_0x132a65,_0x292dda)=>{_0xe79474(_0x66004a,_0x132a65,_0x292dda,!0x1,!0x0);},{'priority':'high'});}),_0x2c97bc['conversion']['for']('editingDowncast')['add'](_0x110dcf=>{_0x110dcf['on']('removeMarker:suggestion:formatBlock',(_0x41d59f,_0x1a5a4d,_0x40c6a2)=>{_0x26b73e(0x0,_0x1a5a4d,_0x40c6a2,!0x1);},{'priority':'high'});}),_0x2c97bc['conversion']['for']('editingDowncast')['add'](_0x5b881a=>{_0x5b881a['on']('removeMarker:suggestion:attribute',(_0x59548b,_0x1d9178,_0x2041b8)=>{_0x26b73e(0x0,_0x1d9178,_0x2041b8,!0x0);},{'priority':'high'});}),_0x2c97bc['conversion']['for']('dataDowncast')['add'](_0x215757=>{_0x215757['on']('addMarker:suggestion:formatBlock',(_0x3ff993,_0x64bd3a,_0x4a42f5)=>{_0xe79474(_0x3ff993,_0x64bd3a,_0x4a42f5,!0x0,!0x1);},{'priority':'highest'});}),_0x2c97bc['conversion']['for']('dataDowncast')['add'](_0x3ba0ac=>{_0x3ba0ac['on']('addMarker:suggestion:attribute',(_0x141632,_0x23e0ff,_0x5ad3ab)=>{_0xe79474(_0x141632,_0x23e0ff,_0x5ad3ab,!0x0,!0x0);},{'priority':'highest'});}),_0x2c97bc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xedaf59,_0x14454e)=>_0x14454e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xedaf59['substr'](0xb)}});const _0x5aa169=(_0x17c507,_0x276387,_0x37b729,_0x5794e,_0x5d6be7)=>{if(_0x5794e&&!_0x37b729['options']['showSuggestionHighlights'])return;if(!_0x37b729['consumable']['test'](_0x276387['markerRange'],_0x17c507['name']))return;const _0x32a0d0=this['_activeMarkers'],_0x3fc6df=_0x276387['markerRange']['getWalker'](),_0x125122=_0x276387['markerRange']['start'],_0x20924d=_0x2c97bc['model']['schema'];let _0x4d85d3=null,_0xb0ecb6=null,_0x3dc42c=!0x1,_0x3d77df=!0x1;for(const _0x45f34b of _0x3fc6df){const _0x59880c=_0x45f34b['item'];_0x3dc42c=_0x3dc42c||_0x20924d['isContent'](_0x59880c);const _0x101097=_0x37b729['mapper']['toViewElement'](_0x59880c);if(_0x101097&&_0x101097['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45f34b['type']&&(_0x20924d['isBlock'](_0x59880c)&&!_0x20924d['isLimit'](_0x59880c)&&(_0x59880c['nextSibling']||_0x125122['isAtEnd']?_0x4d85d3&&_0x4d85d3['parent']==_0x59880c||(_0x4d85d3=_0x59880c,_0x2fa824(_0x45f34b['previousPosition']),_0x3d77df=!0x0):_0xb0ecb6=_0xb0ecb6||_0x45f34b['previousPosition']));}function _0x2fa824(_0x32be39){const {id:_0x36ffde,authorId:_0x5165ed}=Y(_0x276387['markerName']),_0x540cc2=_0x37b729['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d6be7,'data-suggestion':_0x36ffde,'data-author-id':_0x5165ed}),_0x2441a6=_0x37b729['mapper']['toViewPosition'](_0x32be39);!_0x5794e&&_0x32a0d0['includes'](_0x276387['markerName'])&&_0x37b729['writer']['addClass']('ck-suggestion-marker--active',_0x540cc2),_0x37b729['writer']['insert'](_0x2441a6,_0x540cc2),_0x37b729['mapper']['bindElementToMarker'](_0x540cc2,_0x276387['markerName']);}_0x3dc42c||_0x3d77df||!_0xb0ecb6||_0x2fa824(_0xb0ecb6);};_0x2c97bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x48c30a,_0x3038bd,_0x446a22)=>{_0x5aa169(_0x48c30a,_0x3038bd,_0x446a22,!0x1,'merge');},{'priority':'high'}),_0x2c97bc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x204b91,_0x3c36ce,_0x218c4f)=>{_0x5aa169(_0x204b91,_0x3c36ce,_0x218c4f,!0x0,'merge');},{'priority':'high'}),_0x2c97bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4360d1,_0x10046e,_0x34bed9)=>{_0x5aa169(_0x4360d1,_0x10046e,_0x34bed9,!0x1,'split');},{'priority':'high'}),_0x2c97bc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2d049c,_0x334cdc,_0x5e1db7)=>{_0x5aa169(_0x2d049c,_0x334cdc,_0x5e1db7,!0x0,'split');},{'priority':'high'}),_0x2c97bc['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x249097,_0x3479ad,_0x7a1ffa)=>{((_0x432e8f,_0x2f89d1,_0x9fe477)=>{const _0x26a434=_0x9fe477['mapper']['markerNameToElements'](_0x2f89d1['markerName']);if(_0x26a434){for(const _0x4beab6 of _0x26a434)(_0x4beab6['hasClass']('ck-suggestion-marker-split')||_0x4beab6['hasClass']('ck-suggestion-marker-merge'))&&(_0x9fe477['mapper']['unbindElementFromMarkerName'](_0x4beab6,_0x2f89d1['markerName']),_0x9fe477['writer']['remove'](_0x4beab6));}})(0x0,_0x3479ad,_0x7a1ffa);},{'priority':'high'});const _0x5a3116=(_0x3b9244,_0x3b39b0,_0x30e617,_0x58fa27)=>{if(_0x58fa27&&!_0x30e617['options']['showSuggestionHighlights'])return;const _0x1191ea=_0x3b39b0['markerRange']['start'],_0x71915c=_0x3b39b0['markerRange']['end'],_0x6ba1b3=_0x2c97bc['model']['schema'];if(!_0x1191ea['isTouching'](_0x71915c)||!_0x1191ea['nodeAfter'])return;const _0x5119e2=_0x1191ea['nodeAfter'];if(_0x6ba1b3['isBlock'](_0x5119e2)&&!_0x6ba1b3['isLimit'](_0x5119e2)&&_0x6ba1b3['checkChild'](_0x5119e2,'$text')){if(!_0x30e617['consumable']['consume'](_0x3b39b0['markerRange'],_0x3b9244['name']))return;const {id:_0x1aed68,authorId:_0x298432}=Y(_0x3b39b0['markerName']),_0x183d1f=_0x30e617['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1aed68,'data-author-id':_0x298432}),_0x147cda=_0x30e617['mapper']['toViewPosition'](_0x71915c);!_0x58fa27&&this['_activeMarkers']['includes'](_0x3b39b0['markerName'])&&_0x30e617['writer']['addClass']('ck-suggestion-marker--active',_0x183d1f),_0x30e617['writer']['insert'](_0x147cda,_0x183d1f),_0x30e617['mapper']['bindElementToMarker'](_0x183d1f,_0x3b39b0['markerName']);}};_0x2c97bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29e474,_0x30a77a,_0x4f5b41)=>{_0x5a3116(_0x29e474,_0x30a77a,_0x4f5b41,!0x1);},{'priority':'high'}),_0x2c97bc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46b8a2,_0x3d6b9a,_0x452538)=>{_0x5a3116(_0x46b8a2,_0x3d6b9a,_0x452538,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x34985d,_0x3da8e5,_0x354fd7)=>{this['_activeMarkers']=_0x354fd7['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x19bed5){this['_blockAttributeKeys']['add'](_0x19bed5);}['registerInlineAttribute'](_0x41b382){this['_inlineAttributeKeys']['add'](_0x41b382);}['isBlockAttribute'](_0x552307){return this['_blockAttributeKeys']['has'](_0x552307);}['isInlineAttribute'](_0x7930ee){return this['_inlineAttributeKeys']['has'](_0x7930ee);}['isRegisteredAttribute'](_0x125b87){return this['isInlineAttribute'](_0x125b87)||this['isBlockAttribute'](_0x125b87);}['_getClassName'](_0x48d5b1,_0x356946){if('attribute'!=_0x48d5b1)return'ck-suggestion-marker-'+_0x48d5b1;const _0x121de0=_0x356946['split']('|')[0x0];return this['isBlockAttribute'](_0x121de0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x11e46e={},_0x56e029){if(void 0x0!==_0x11e46e['dateTimeFormat']&&'function'!=typeof _0x11e46e['dateTimeFormat'])throw new _0x12b3a2('invalid-date-time-format');return _0x4fc568=>{const _0x2b3e7e='string'==typeof _0x4fc568?_0x11b551['fromISO'](_0x4fc568):_0x11b551['fromJSDate'](_0x4fc568),_0x3cdbc6=_0x11b551['now'](),_0x200ba0=Math['floor'](_0x3cdbc6['diff'](_0x2b3e7e,'days')['days']);return _0x11e46e['dateTimeFormat']?_0x11e46e['dateTimeFormat'](_0x2b3e7e['toJSDate'](),_0x56e029&&_0x56e029['t']?_0x56e029['t']:void 0x0):0x0===_0x200ba0?_0x56e029?V(_0x56e029,'Today')+'\x20'+_0x2b3e7e['toFormat']('hh:mma'):_0x2b3e7e['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x200ba0?_0x56e029?V(_0x56e029,'Yesterday')+'\x20'+_0x2b3e7e['toFormat']('hh:mma'):_0x2b3e7e['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x200ba0<0x7?_0x56e029?V(_0x56e029,'Last')+'\x20'+V(_0x56e029,_0x2b3e7e['toFormat']('EEEE'))+'\x20'+_0x2b3e7e['toFormat']('hh:mma'):_0x2b3e7e['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x2b3e7e['toFormat']('LL-dd-yyyy\x20hh:mma');};}function _t(_0x5ca92e,_0x2b1663){const _0x47eb90=_0x5ca92e['mapper']['markerNameToElements'](_0x2b1663['name']);if(!_0x47eb90)return null;const _0x1a4b20=_0x2f680e(_0x47eb90['values']());return _0x5ca92e['view']['domConverter']['mapViewToDom'](_0x1a4b20)||null;}function xt(_0x41db9f,_0x8a76bb){if(0x0===_0x8a76bb['length'])return null;const _0x108eff=[],_0x39cc72=_0x41db9f['view']['domConverter'];for(const _0x35e6c9 of _0x8a76bb){const _0x149c1c=_0x41db9f['mapper']['markerNameToElements'](_0x35e6c9['name']);if(!_0x149c1c)continue;const _0x39c348=Array['from'](_0x149c1c)['map'](_0x5e5e2b=>_0x39cc72['mapViewToDom'](_0x5e5e2b))['filter'](_0x226172=>!!_0x226172);_0x108eff['push'](..._0x39c348);}if(0x0===_0x108eff['length'])return null;const _0x243b2a=[];for(const _0x24b9a1 of _0x108eff){const _0x4b2139=_0x24b9a1['getClientRects']()['item'](0x0);_0x4b2139&&_0x243b2a['push']({'x':_0x4b2139['x'],'y':_0x4b2139['y'],'domElement':_0x24b9a1});}return 0x0===_0x243b2a['length']?null:(_0x243b2a['sort']((_0x54b4db,_0x2c5c42)=>_0x54b4db['y']-_0x2c5c42['y']||_0x54b4db['x']-_0x2c5c42['x']),_0x243b2a['map'](_0xc24303=>_0xc24303['domElement']));}function It(_0x489266,{limit:_0x61796e,suffix:_0x539098='...'}){const _0x1f8bb5=[];let _0x31f5d9=0x0;const _0x15bf1a=_0x489266['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x1a0e80=0x0;_0x1a0e80<_0x15bf1a['length'];_0x1a0e80++){let _0xc6d0c1=_0x15bf1a[_0x1a0e80];const _0x7d8c77=St(_0xc6d0c1);if(_0xc6d0c1['startsWith']('<')){if(_0x31f5d9>=_0x61796e){const _0x242f4f=_0xc6d0c1['match'](/[a-zA-Z]+/);if(!_0x242f4f){_0x15bf1a[_0x1a0e80]='';continue;}const _0x3978e8=_0x242f4f[0x0];_0xc6d0c1['startsWith']('</')?(_0x1f8bb5['length']&&(_0xc6d0c1=''),_0x1f8bb5['pop']()):(_0x1f8bb5['push'](_0x3978e8),_0xc6d0c1='');}}else{if(_0x31f5d9>=_0x61796e)_0xc6d0c1='';else{if(_0x31f5d9+_0x7d8c77['length']>=_0x61796e){let _0x20e994=_0x61796e-_0x31f5d9;if('\x20'===_0x7d8c77[_0x20e994-0x1])_0x20e994--;else{const _0x4146eb=_0x7d8c77['slice'](_0x20e994)['indexOf']('\x20');-0x1!==_0x4146eb?_0x20e994+=_0x4146eb:_0x20e994=_0xc6d0c1['length'];}_0xc6d0c1=_0x7d8c77['slice'](0x0,_0x20e994)['join']('')+_0x539098,_0x31f5d9=_0x61796e;}else _0x31f5d9+=_0x7d8c77['length'];}}_0x15bf1a[_0x1a0e80]=_0xc6d0c1;}return _0x15bf1a['join']('\x0a')['replace'](/\n/g,'');}function St(_0x2066cc){const _0x28557e=[];for(let _0x3c4c76=0x0;_0x3c4c76<_0x2066cc['length'];_0x3c4c76++){const _0x30936f=_0x2066cc['substring'](_0x3c4c76)['match'](/^&[a-z0-9#]+;/);if(_0x30936f){const _0x432c6b=_0x30936f[0x0];_0x28557e['push'](_0x432c6b),_0x3c4c76+=_0x432c6b['length']-0x1;}else _0x28557e['push'](_0x2066cc[_0x3c4c76]);}return _0x28557e;}class Et extends _0x26a46a{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x4972b7){super(_0x4972b7);const _0x225400=this['bindTemplate'];this['set']('message',V(_0x4972b7,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x4972b7,V(_0x4972b7,'Yes'),_0x11a72c,'submit'),this['cancelView']=this['_createButtonView'](_0x4972b7,V(_0x4972b7,'No'),_0x33f058,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x15073e(),this['keystrokes']=new _0xb034b4(),this['focusCycler']=new _0x134cf7({'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':_0x225400['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'](_0x456096,_0x3612e2,_0x3dd56e,_0x54402e){const _0x941e7c=new _0x3da566(_0x456096);return _0x941e7c['label']=_0x3612e2,_0x941e7c['icon']=_0x3dd56e,_0x941e7c['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x54402e}}),_0x941e7c['on']('execute',()=>this['fire'](_0x54402e)),_0x941e7c;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x2b71c3=>{this['keystrokes']['listenTo'](_0x2b71c3['element']),this['focusTracker']['add'](_0x2b71c3['element']);}),this['keystrokes']['set']('esc',(_0x121d15,_0x5a017b)=>{this['fire']('cancel'),_0x5a017b();});}}function Mt(_0x583bda){return class extends _0x583bda{['showConfirm'](_0x1b32cd,_0x11c012){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x1b32cd,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x11c012['appendChild'](this['confirmView']['element']),_0x11c012['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x9d9692,_0x53e16f,_0x45ecc6)=>{_0x45ecc6||_0x11c012['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x489832=>this['confirmView']['on']('submit',_0x489832));}['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(_0x205658){let _0x249ca4=0x0,_0x5c14c3=0x0;for(const _0x508550 of Nt(_0x205658))_0x249ca4=(_0x249ca4<<0x5)-_0x249ca4+_0x508550,_0x249ca4&=_0x249ca4,[_0x249ca4,_0x5c14c3]=[_0x5c14c3,_0x249ca4];return Bt(_0x249ca4)+Bt(_0x5c14c3);}function*Tt(_0x35df00){null==_0x35df00||null==_0x35df00?yield 0x12b9b0a1:0x0===_0x35df00||!0x1===_0x35df00?yield 0x0:0x1===_0x35df00||0x1==_0x35df00?yield 0x1:Array['isArray'](_0x35df00)?yield*function*(_0x3de238){for(const _0xb7a658 of _0x3de238)yield*Tt(_0xb7a658);}(_0x35df00):'object'==typeof _0x35df00?yield*Nt(_0x35df00):'string'==typeof _0x35df00?yield*Pt(_0x35df00):'number'==typeof _0x35df00&&(yield _0x35df00);}function*Nt(_0x5e89a0){if(yield Dt('{'),_0x5e89a0){const _0x54c84f=Object['keys'](_0x5e89a0)['sort']();for(const _0x58ff19 of _0x54c84f){yield*Pt(_0x58ff19),yield Dt(':');const _0x11ba32=_0x5e89a0[_0x58ff19];yield*Tt(_0x11ba32);}}yield Dt('}');}function*Pt(_0x49583c){yield Dt('\x22');for(const _0x10720a of _0x49583c)yield Dt(_0x10720a);yield Dt('\x22');}function Dt(_0x220c78){return _0x220c78['charCodeAt'](0x0);}function Bt(_0x313d83){return(_0x313d83*=Math['sign'](_0x313d83))['toString'](0x24);}const Ot=['root','roots','initialData','context','toolbar','rootsAttributes'],Vt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function $t(_0x14db55,_0x560a64,_0x9f886b,_0x1de2e3=[]){const _0x27f3c1='string'==typeof _0x14db55?_0x9f886b['get'](_0x14db55)['constructor']:_0x14db55['prototype']['constructor'];if(_0x560a64['has'](_0x27f3c1))return _0x560a64['get'](_0x27f3c1);_0x560a64['set'](_0x27f3c1,!0x0);const _0x2f6dda=[...Vt,..._0x1de2e3]['map'](_0x13dd06=>{if(_0x9f886b['has'](_0x13dd06))return _0x9f886b['get'](_0x13dd06)['constructor'];})['filter'](_0x4ea067=>_0x4ea067);if(_0x27f3c1&&_0x2f6dda['includes'](_0x27f3c1))return _0x560a64['set'](_0x27f3c1,!0x1),!0x1;if(!_0x27f3c1['requires'])return _0x560a64['set'](_0x27f3c1,!0x0),!0x0;const _0x2653d0=_0x27f3c1['requires']['every'](_0x153ef7=>$t(_0x153ef7,_0x560a64,_0x9f886b,_0x1de2e3));return _0x560a64['set'](_0x27f3c1,_0x2653d0),_0x2653d0;}function Lt(_0x906acf,_0x4cf537){const _0x165fb2={};for(const _0x946641 of _0x906acf['config']['names']())Ot['includes'](_0x946641)||(_0x165fb2[_0x946641]=_0x906acf['config']['get'](_0x946641));const _0x3ff1cf=_0x165fb2['plugins']||[],_0x3dd270=_0x906acf['constructor']['builtinPlugins']||[],_0x394669=_0x3ff1cf['length']?_0x3ff1cf:_0x3dd270,_0x365630=_0x165fb2['extraPlugins']||[];delete _0x165fb2['extraPlugins'];const _0x270d4a=_0x165fb2['removePlugins']||[];delete _0x165fb2['removePlugins'];const _0x4574bb=_0x906acf['_context']['config']['get']('plugins')||[],_0x186756=_0x394669['concat'](_0x365630)['concat'](_0x4574bb)['map'](_0x3fd6b5=>'string'==typeof _0x3fd6b5?_0x3dd270['find'](_0x167b07=>_0x167b07['pluginName']==_0x3fd6b5):_0x3fd6b5)['filter'](_0x46feca=>!_0x270d4a['includes'](_0x46feca)&&!_0x270d4a['includes'](_0x46feca['pluginName'])),_0x260241=Array['from'](new Set(_0x186756)),_0xc918e8=new Map();return _0x165fb2['plugins']=_0x260241['filter'](_0x4bd911=>$t(_0x4bd911,_0xc918e8,_0x906acf['plugins'],_0x4cf537)),_0x165fb2;}function Ut(_0x251ebf,_0x221b8f){const _0x42ff71=[];_0x251ebf['document']['selection']['on']('change:range',()=>{const _0x36e226=function(_0x5d95de,_0x3c0f97){const _0xd287d1=[];for(const _0x262ecf of _0x5d95de['markers']){const _0x4c6dbd=_0x262ecf['getRange']();(_0x4c6dbd['containsPosition'](_0x3c0f97)||_0x4c6dbd['start']['isEqual'](_0x3c0f97)||_0x4c6dbd['end']['isEqual'](_0x3c0f97))&&_0xd287d1['push'](_0x262ecf);}return _0xd287d1;}(_0x251ebf,_0x251ebf['document']['selection']['focus']),_0x1f8674=[],_0x1b22f0=[],_0xbbf458=[];for(const _0x26c73b of _0x42ff71)_0x36e226['includes'](_0x26c73b)||_0x1f8674['push'](_0x26c73b);for(const _0x1d9b4d of _0x36e226)_0x42ff71['includes'](_0x1d9b4d)||_0x1b22f0['push'](_0x1d9b4d),_0xbbf458['push'](_0x1d9b4d);(_0x1f8674['length']||_0x1b22f0['length'])&&_0x221b8f({'left':_0x1f8674,'entered':_0x1b22f0}),_0x42ff71['length']=0x0,_0x42ff71['push'](..._0xbbf458);});}const Rt='Ctrl+Shift+E';function Ft(_0x5bd9bc,_0x131841){const _0x2f60b3=_0x5bd9bc['element'];_0x5bd9bc['keystrokes']['listenTo'](_0x2f60b3);for(const _0x296f67 of _0x131841)Ht(_0x5bd9bc,_0x296f67);_0x131841['on']('change',(_0x108a0a,_0x44cc46)=>{for(const _0x25a880 of _0x44cc46['removed'])zt(_0x5bd9bc,_0x25a880);for(const _0x2df33d of Array['from'](_0x44cc46['added'])['reverse']())Ht(_0x5bd9bc,_0x2df33d);}),_0x5bd9bc['keystrokes']['set']('enter',(_0x3e024c,_0xefdd47)=>{_0x2f60b3===_0x3e024c['target']&&(_0x5bd9bc['focusCycler']['focusFirst'](),_0xefdd47());},{'filter':_0x4f3c21=>_0x4f3c21['target']===_0x2f60b3}),_0x5bd9bc['keystrokes']['set']('esc',(_0x1d07a,_0x4a0dea)=>{_0x2f60b3!==_0x1d07a['target']?_0x5bd9bc['focus']():_0x5bd9bc['fire']('escape'),_0x4a0dea();}),_0x5bd9bc['keystrokes']['set']('arrowdown',(_0x2a773d,_0x25a6e9)=>{_0x2f60b3===_0x2a773d['target']&&(_0x5bd9bc['fire']('arrowdown'),_0x25a6e9());}),_0x5bd9bc['keystrokes']['set']('arrowup',(_0x479ddc,_0x1ca7d)=>{_0x2f60b3===_0x479ddc['target']&&(_0x5bd9bc['fire']('arrowup'),_0x1ca7d());});}function Ht(_0xb9de18,_0x381a8c){_0x381a8c['isRendered']&&(_0xb9de18['focusTracker']['add'](_0x381a8c['element']),_0xb9de18['keystrokes']['listenTo'](_0x381a8c['element']),_0x11fabf(_0x381a8c)&&function(_0x232f68,_0x82c91a){const _0x433345=_0x232f68['actions'],_0x21d478=_0x82c91a['actions'];for(const _0x4c4e6c of Object['keys'](_0x433345))if(_0x4c4e6c in _0x21d478&&_0x433345[_0x4c4e6c]!==_0x21d478[_0x4c4e6c])return!0x1;return!0x0;}(_0xb9de18['focusCycler'],_0x381a8c['focusCycler'])&&_0xb9de18['focusCycler']['chain'](_0x381a8c['focusCycler']));}function zt(_0x20e0f0,_0x45768e){_0x20e0f0['focusTracker']['remove'](_0x45768e['element']),_0x20e0f0['keystrokes']['stopListening'](_0x45768e['element']),_0x11fabf(_0x45768e)&&_0x20e0f0['focusCycler']['unchain'](_0x45768e['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x35ee0a{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x2c37f4?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x54b294,_0x8411dc)=>{_0x8411dc['on']('ready',()=>{this['_integrateEditor'](_0x8411dc);});});}get['editor'](){if(this['context']instanceof _0x2c37f4)return this['context'];{const _0x4a92f9=this['context']['editors']['first'];if(!_0x4a92f9)throw new _0x12b3a2('documentcompare-no-editor',this);return _0x4a92f9;}}['getDiff'](_0x500260,_0x39dffa,_0x4b1383={'anchor':'main','markDeletions':!0x1}){const _0x2f3aa4=_0x4b1383['targetEditor']||this['editor'];let _0x271ed6,_0x272fbe;if('string'==typeof _0x4b1383['anchor']){const _0x2d29e8=_0x2f3aa4['model']['document']['getRoot'](_0x4b1383['anchor']);if(!_0x2d29e8)throw new _0x12b3a2('documentcompare-compare-no-root',this,{'anchor':_0x4b1383['anchor']});_0x271ed6=_0x2d29e8,_0x272fbe=_0x2f3aa4['model']['createPositionAt'](_0x2d29e8,0x0);}else _0x271ed6=_0x4b1383['anchor']['clone'](),_0x272fbe=_0x4b1383['anchor']['clone']();const _0x24d1bd=_0x2f3aa4['data']['parse'](_0x500260,_0x271ed6),_0x3481d3=_0x2f3aa4['data']['parse'](_0x39dffa,_0x271ed6);return new Jt({'editor':_0x2f3aa4,'before':_0x24d1bd,'after':_0x3481d3,'options':{'anchor':_0x272fbe,'markDeletions':_0x4b1383['markDeletions']}});}['isMarkedRemoveOperation'](_0x3df836){return'marker'==_0x3df836['type']&&_0x3df836['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x48b7dc){_0x48b7dc['conversion']['for']('upcast')['add'](_0x56f9d9=>{_0x56f9d9['on']('element',(_0xa2194b,_0x474f31,_0x4ce879)=>{if(_0x474f31['modelRange'])for(const _0x9e459c of _0x474f31['modelRange']['getItems']({'shallow':!0x0})){if(_0x9e459c['is']('$textProxy'))continue;const _0x437a44=_0x474f31['viewItem']['getAttribute'](jt);_0x437a44&&_0x4ce879['writer']['setAttribute'](Wt,_0x437a44,_0x9e459c);}},{'priority':'lowest'});}),_0x48b7dc['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x541434,before:_0x5032d0,after:_0x52d5d0,options:_0x3e3299}){this['_editor']=_0x541434,this['_markDeletions']=!!_0x3e3299['markDeletions'],this['_anchor']=_0x3e3299['anchor'];const _0x54784e=this['_tokenizeModel'](_0x5032d0),_0x268444=this['_tokenizeModel'](_0x52d5d0);this['_diffItems']=this['_diffModelTokens'](_0x54784e,_0x268444),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x5032d0['markers'],_0x52d5d0['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x203599=this['_editor']['model']['document'],_0x1580c9=[];let _0x2336ac=_0x203599['version'];for(const _0x4eee78 of this['_operationsData'])switch(_0x4eee78['type']){case'attribute':{const _0x507cc4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['path']),_0x19e2c3=_0x507cc4['getShiftedBy'](_0x4eee78['howMany']),_0x44ec9c=new _0x33edf9(_0x507cc4,_0x19e2c3),_0x571e47=JSON['parse'](_0x4eee78['oldValue']),_0x244a16=JSON['parse'](_0x4eee78['newValue']);_0x1580c9['push'](new _0x53cf69(_0x44ec9c,_0x4eee78['key'],_0x571e47,_0x244a16,_0x2336ac++));break;}case'insert':{const _0x88d222=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['path']),_0x18e1ad=this['_makeModelFromTokens'](_0x4eee78['tokens']);_0x1580c9['push'](new _0x85ccbc(_0x88d222,_0x18e1ad,_0x2336ac++));break;}case'remove':{const _0x4c3876=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['path']),_0x30e311=new _0x308deb(_0x203599['graveyard'],[0x0]);_0x1580c9['push'](new _0x5240cb(_0x4c3876,_0x4eee78['howMany'],_0x30e311,_0x2336ac++));break;}case'rename':{const _0x1c3055=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['path']);_0x1580c9['push'](new _0x1ad99e(_0x1c3055,_0x4eee78['oldName'],_0x4eee78['newName'],_0x2336ac++));break;}case'split':{const _0x5a05b3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['path']),_0x1e5fec=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['path']['slice'](0x0,-0x1));_0x1e5fec['offset']++,_0x1580c9['push'](new _0x567d29(_0x5a05b3,Number['NEGATIVE_INFINITY'],_0x1e5fec,null,_0x2336ac++));break;}case'merge':{const _0x5cdd84=_0x4eee78['path']['slice'](),_0x4b4213=_0x5cdd84['slice'](0x0,-0x1);_0x4b4213[_0x4b4213['length']-0x1]++,_0x4b4213['push'](0x0);const _0x2ca7f3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4b4213),_0x466500=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5cdd84),_0x586f4b=new _0x308deb(_0x203599['graveyard'],[0x0]);_0x1580c9['push'](new _0x4a6d50(_0x2ca7f3,Number['NEGATIVE_INFINITY'],_0x466500,_0x586f4b,_0x2336ac++));break;}case'marker':case'markedRemove':{let _0x258a17=null;if(_0x4eee78['range']){const _0xbacc9a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['range']['start']),_0x2a7b25=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['range']['end']);_0x258a17=new _0x33edf9(_0xbacc9a,_0x2a7b25);}const _0x5405a2='marker'==_0x4eee78['type']?_0x4eee78['name']:'$markedRemove:'+_0x67d3ff();_0x1580c9['push'](new _0x1453a9(_0x5405a2,null,_0x258a17,_0x203599['model']['markers'],!0x0,_0x2336ac++));break;}case'unwrap':{const _0x423937=_0x4eee78['path']['slice']();_0x423937['push'](0x0);const _0x4e00f9=_0x4eee78['path']['slice'](),_0x3595f6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x423937),_0x17b6ad=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e00f9),_0x2c211e=new _0x308deb(_0x203599['graveyard'],[0x0]);_0x1580c9['push'](new _0x5240cb(_0x3595f6,_0x4eee78['howMany'],_0x17b6ad,_0x2336ac++)),_0x1580c9['push'](new _0x5240cb(_0x17b6ad['getShiftedBy'](_0x4eee78['howMany']),0x1,_0x2c211e,_0x2336ac++));break;}case'wrap':{const _0x409d28=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['range']['start']),_0x30cb69=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4eee78['range']['end']),_0x412c12=_0x4eee78['token']['element']['_clone'](!0x1),_0x2ccf6f=_0x4eee78['range']['end']['slice']();_0x2ccf6f['push'](0x0);const _0x3957ef=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2ccf6f);_0x1580c9['push'](new _0x85ccbc(_0x30cb69,_0x412c12,_0x2336ac++)),_0x1580c9['push'](new _0x5240cb(_0x409d28,_0x30cb69['offset']-_0x409d28['offset'],_0x3957ef,_0x2336ac++));break;}}return _0x1580c9;}['_tokenizeModel'](_0x3101cd){const _0x42623f=[],_0x3574c8=_0x33edf9['_createIn'](_0x3101cd),_0x587647=new _0x15d202({'boundaries':_0x3574c8});let _0x4c632f='',_0x1418f6=null;const _0x1a67c0=[''],_0x3925a1=new Map();for(const _0x425c30 of _0x587647)if('elementStart'==_0x425c30['type']||'elementEnd'==_0x425c30['type']){let _0x5bde1a=_0x1a67c0[0x0];''!==_0x4c632f&&(_0x42623f['push'](...this['_makeTokensFromTextByWords'](_0x4c632f,_0x1418f6,_0x5bde1a)),_0x4c632f='');const _0x4f0467=_0x425c30['item'];let _0x395d9c;_0x4f0467['getAttribute'](Wt)?_0x395d9c=_0x4f0467['getAttribute'](Wt):'elementStart'==_0x425c30['type']?(_0x395d9c=qt(_0x4f0467),_0x3925a1['set'](_0x4f0467,_0x395d9c)):_0x395d9c=_0x3925a1['get'](_0x4f0467);const _0x1da6d1=this['_getElementCategory'](_0x4f0467);'solid'==_0x1da6d1&&('elementStart'==_0x425c30['type']?(_0x5bde1a=_0x395d9c,_0x1a67c0['unshift'](_0x5bde1a)):_0x1a67c0['shift']());const _0x31966b={'type':'element','element':_0x4f0467,'elementId':_0x395d9c,'category':_0x1da6d1,'isStart':'elementStart'==_0x425c30['type'],'limitId':_0x5bde1a};_0x42623f['push'](_0x31966b);}else''==_0x4c632f&&(_0x1418f6=_0x425c30['previousPosition']['clone']()),_0x4c632f+=_0x425c30['item']['data'];return''!==_0x4c632f&&_0x42623f['push'](...this['_makeTokensFromTextByWords'](_0x4c632f,_0x1418f6,_0x1a67c0[0x0])),_0x42623f;}['_makeTokensFromTextByWords'](_0x237263,_0x2df759,_0x5e0a7e){const _0x7ff49b=_0x237263['matchAll'](/(\s)/g),_0x187473=Array['from'](_0x7ff49b)['map'](_0x4b4a0e=>_0x4b4a0e['index']);_0x187473['push'](_0x237263['length']),0x0==_0x187473[0x0]&&_0x187473['shift']();const _0x59348d=[],_0x1d313f=_0x2df759['parent'];let _0xcb2464=0x0,_0x1fdc55=_0x2df759['offset'];for(let _0x174e8c=0x0;_0x174e8c<_0x187473['length'];_0x174e8c++)_0x59348d['push']({'type':'text','data':_0x237263['slice'](_0xcb2464,_0x187473[_0x174e8c]),'parent':_0x1d313f,'offset':_0x1fdc55,'limitId':_0x5e0a7e}),_0xcb2464=_0x187473[_0x174e8c],_0x1fdc55=_0x2df759['offset']+_0x187473[_0x174e8c];return _0x59348d;}['_getElementCategory'](_0x2f516d){const _0x971f21=this['_editor']['model']['schema'];return _0x971f21['isLimit'](_0x2f516d)||_0x971f21['isContent'](_0x2f516d)||_0x971f21['isInline'](_0x2f516d)?'solid':_0x971f21['isBlock'](_0x2f516d)?'block':'container';}['_diffModelTokens'](_0xf17967,_0x1a87c0){const _0x26a189=_0xac3906(_0xf17967,_0x1a87c0,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x26a189);const _0x26a459=_0x26a189['flatMap'](_0x385654=>{const _0x49451f=_0x385654['added']?'added':_0x385654['removed']?'removed':'unchanged';return _0x385654['value']['map'](_0x5e48dc=>({'token':_0x5e48dc,'change':_0x49451f}));});let _0x4173da=0x0;for(const _0xc6eed4 of _0x26a459)'added'!=_0xc6eed4['change']&&('unchanged'==_0xc6eed4['change']&&(_0xc6eed4['before']=_0xf17967[_0x4173da]),_0x4173da++);return _0x26a459;}['_handleUnclosedBlockOpeningTags'](_0x42502a){for(let _0x3667e6=0x0;_0x3667e6<_0x42502a['length']-0x1;_0x3667e6++)if(_0x42502a[_0x3667e6]['removed']&&_0x42502a[_0x3667e6+0x1]['added']){const _0x27a64b=this['_findUnclosedBlockOpeningToken'](_0x42502a[_0x3667e6]['value']);if(null!==_0x27a64b){const _0x3299aa=this['_findUnclosedBlockOpeningToken'](_0x42502a[_0x3667e6+0x1]['value']),_0x2a52f8=_0x42502a[_0x3667e6]['value']['splice'](_0x27a64b),_0x296220=_0x42502a[_0x3667e6+0x1]['value']['splice'](_0x3299aa),_0x39042c=[_0x296220['shift']()];_0x2a52f8['shift']();const _0x3e3c3a={'value':_0x2a52f8,'removed':!0x0},_0xd865ef={'value':_0x296220,'added':!0x0},_0x12f805={'value':_0x39042c};_0x42502a['splice'](_0x3667e6+0x2,0x0,_0x12f805,_0x3e3c3a,_0xd865ef);}}}['_findUnclosedBlockOpeningToken'](_0x58310d){let _0x12b06c=0x0,_0x528416=-0x1;for(let _0x4c4f13=0x0;_0x4c4f13<_0x58310d['length'];_0x4c4f13++){const _0x901c13=_0x58310d[_0x4c4f13];'element'==_0x901c13['type']&&'block'==_0x901c13['category']&&(_0x12b06c+=_0x901c13['isStart']?0x1:-0x1,_0x901c13['isStart']&&(_0x528416=_0x4c4f13));}return 0x0===_0x12b06c?null:_0x528416;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x6a1378=0x0;_0x6a1378<this['_diffItems']['length'];_0x6a1378++){const _0x17d54b=this['_diffItems'][_0x6a1378]['change'],_0x4b4d15=[];_0x4b4d15['push'](this['_diffItems'][_0x6a1378]);let _0x4c72aa=_0x6a1378+0x1;for(;this['_diffItems'][_0x4c72aa]&&this['_diffItems'][_0x4c72aa]['change']==_0x17d54b;)_0x4b4d15['push'](this['_diffItems'][_0x4c72aa]),_0x4c72aa++,_0x6a1378++;const _0x50d85b=_0x4b4d15['map'](_0x364b57=>_0x364b57['token']);if('unchanged'==_0x17d54b)_0x4b4d15['map'](_0x17b187=>_0x17b187['before'])['forEach'](_0x1b3fd2=>this['_traverseOverItem'](_0x1b3fd2));else{if('removed'==_0x17d54b){if(this['_markDeletions']){const _0x5562a=this['_path']['slice']();_0x50d85b['forEach'](_0x17279a=>this['_traverseOverItem'](_0x17279a));const _0x24d9c7=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x5562a,'end':_0x24d9c7}});}else this['_handleChanged'](_0x50d85b,!0x0,this['_path']['slice']());}else{const _0x95b409=_0x50d85b['filter'](_0x4afdab=>'element'!=_0x4afdab['type']||'container'!=_0x4afdab['category']);this['_handleChanged'](_0x95b409,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xd7eecc=0x0;_0xd7eecc<this['_diffItems']['length'];_0xd7eecc++){const _0x41864f=this['_diffItems'][_0xd7eecc]['change'],_0x1b1ea1=[];_0x1b1ea1['push'](this['_diffItems'][_0xd7eecc]);let _0x2f46ed=_0xd7eecc+0x1;for(;this['_diffItems'][_0x2f46ed]&&this['_diffItems'][_0x2f46ed]['change']==_0x41864f;)_0x1b1ea1['push'](this['_diffItems'][_0x2f46ed]),_0x2f46ed++,_0xd7eecc++;const _0x294463=_0x1b1ea1['map'](_0x5537a2=>_0x5537a2['token']);if('unchanged'==_0x41864f){const _0x1ce318=_0x1b1ea1['map'](_0x42202e=>_0x42202e['before']);this['_handleUnchanged'](_0x1ce318,_0x294463);}else('added'==_0x41864f||this['_markDeletions'])&&_0x294463['forEach'](_0x3590ca=>{'element'==_0x3590ca['type']&&_0x3590ca['isStart']&&this['_splitPostponedData']['has'](_0x3590ca['element'])&&this['_handleSplitPostponedData'](_0x3590ca['element'],this['_path']),this['_traverseOverItem'](_0x3590ca);});}}['_handleSplitPostponedData'](_0x63fc,_0x18908f){const _0x17bf8c=this['_splitPostponedData']['get'](_0x63fc);for(const _0x481da2 of _0x17bf8c)'rename'==_0x481da2['type']?this['_operationsData']['push']({'type':'rename','path':_0x18908f['slice'](),'oldName':_0x481da2['oldValue'],'newName':_0x63fc['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x18908f['slice'](),'howMany':0x1,'key':_0x481da2['key'],'oldValue':_0x481da2['oldValue'],'newValue':JSON['stringify'](_0x63fc['getAttribute'](_0x481da2['key'])??null)});}['_calculateMarkersOperationsData'](_0x5b924d,_0x516717){const _0x1ead5c={};for(const [_0x1afe3a]of _0x5b924d)_0x1ead5c[_0x1afe3a]=null;for(const [_0x4c72f0,_0x189d3a]of _0x516717)_0x1ead5c[_0x4c72f0]=_0x189d3a;const _0x4dcce3=Object['entries'](_0x1ead5c)['map'](([_0x41a81c,_0x139405])=>({'type':'marker','name':_0x41a81c,'range':_0x139405?{'start':_0x139405['start']['path']['slice'](),'end':_0x139405['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x4dcce3);}['_handleUnwraps'](){const _0xb284c0=new Map(),_0x89a10d=[],_0x34db79=[0x0];let _0x4bb620=this['_diffItems']['length']+0x1;for(let _0x360759=this['_diffItems']['length']-0x1;_0x360759>=0x0;_0x360759--){const {token:_0x3d9021,before:_0x5e9579,change:_0x138336}=this['_diffItems'][_0x360759];if('removed'!=_0x138336&&(_0x4bb620=_0x360759),'element'!=_0x3d9021['type']||'container'!=_0x3d9021['category']||'added'==_0x138336)continue;const _0x210561=_0x5e9579?_0x5e9579['element']:_0x3d9021['element'];if(_0x3d9021['isStart']){const _0x5823c2=_0xb284c0['get'](_0x210561),_0x5707b7=this['_diffItems'][_0x5823c2];('removed'==_0x138336||'removed'==_0x5707b7['change'])&&_0x4bb620<_0x5823c2&&(this['_operationsData']['push']({'type':'unwrap','path':_0x210561['getPath'](),'howMany':_0x210561['maxOffset']+_0x34db79[0x0]}),_0x34db79['shift'](),_0x34db79[0x0]+=_0x210561['maxOffset']-0x1,_0x89a10d['push'](_0x360759),_0x89a10d['push'](_0x5823c2));}else _0xb284c0['set'](_0x210561,_0x360759),_0x34db79['unshift'](0x0);}_0x89a10d['sort']((_0x3a577b,_0x152dce)=>_0x152dce-_0x3a577b),_0x89a10d['forEach'](_0x1898c4=>{const _0x48b3ba=this['_diffItems'][_0x1898c4];'removed'==_0x48b3ba['change']?this['_diffItems']['splice'](_0x1898c4,0x1):(_0x48b3ba['change']='added',delete _0x48b3ba['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5ef51b=[];for(let _0x349b57=0x0;_0x349b57<this['_diffItems']['length'];_0x349b57++){const {change:_0xcddf53,token:_0x331f06}=this['_diffItems'][_0x349b57];if('added'==_0xcddf53&&'element'==_0x331f06['type']&&'container'==_0x331f06['category']){if(_0x331f06['isStart'])_0x5ef51b['push'](this['_path']['slice']());else{if(!_0x331f06['isStart']){const _0x12e29a=_0x5ef51b['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x12e29a,'end':this['_path']['slice']()},'token':_0x331f06}),this['_path'][this['_path']['length']-0x1]=_0x12e29a[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0xcddf53||this['_markDeletions'])&&this['_traverseOverItem'](_0x331f06);}}['_handleUnchanged'](_0x3198c5,_0x2fcdd6){for(let _0x1d328a=0x0;_0x1d328a<_0x3198c5['length'];_0x1d328a++){const _0x4782ca=_0x3198c5[_0x1d328a];if('element'==_0x4782ca['type']&&_0x4782ca['isStart']){const _0x2b7d24=_0x2fcdd6[_0x1d328a];'block'==_0x4782ca['category']&&this['_handleElementRename'](_0x4782ca['element'],_0x2b7d24['element'],this['_path']),this['_handleElementAttributeChanges'](_0x4782ca['element'],_0x2b7d24['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x2b7d24);}else{if('element'!=_0x4782ca['type']||_0x4782ca['isStart']){if('text'==_0x4782ca['type']){const _0x3bfba8=this['_path']['slice'](),_0x4aaf2c=[],_0x485651=[];for(;_0x3198c5[_0x1d328a]&&'text'==_0x3198c5[_0x1d328a]['type'];)_0x4aaf2c['push'](_0x3198c5[_0x1d328a]),_0x485651['push'](_0x2fcdd6[_0x1d328a]),this['_path'][this['_path']['length']-0x1]+=_0x3198c5[_0x1d328a]['data']['length'],_0x1d328a++;_0x1d328a--,this['_handleTextAttributeChanges'](_0x4aaf2c,_0x485651,_0x3bfba8);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x3c77ec,_0x33d446,_0x562b62){const _0x3764d9=[],_0xb392c9=[],_0x2fcc0e=_0x562b62['slice']();let _0x19b1b7=this['_parents']['length']-0x1;for(let _0x817e58=0x0;_0x817e58<_0x3c77ec['length'];_0x817e58++){const _0x1474a1=_0x3c77ec[_0x817e58],_0x311518=_0x562b62['slice']();'element'!=_0x1474a1['type']||_0x1474a1['isStart']?'element'==_0x1474a1['type']&&_0x1474a1['isStart']?(_0x562b62['push'](0x0),_0x19b1b7++,_0xb392c9['push']({'before':_0x311518,'after':_0x562b62['slice'](),'index':_0x817e58})):_0x562b62[_0x562b62['length']-0x1]+=_0x1474a1['data']['length']:(_0x562b62['pop'](),_0x562b62[_0x562b62['length']-0x1]++,_0x19b1b7--,_0xb392c9['length']?_0xb392c9['pop']():_0x3764d9['push']({'before':_0x311518,'after':_0x562b62['slice'](),'index':_0x817e58}));}if(_0xb392c9['length']!==_0x3764d9['length'])throw new _0x12b3a2('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x3c77ec,'isRemove':_0x33d446});const _0x18be11=[{'after':_0x2fcc0e['slice'](),'index':-0x1},..._0x3764d9,..._0xb392c9,{'before':_0x562b62['slice'](),'index':_0x3c77ec['length']}];if(_0x33d446){for(let _0x396014=_0x18be11['length']-0x1;_0x396014>=0x1;_0x396014--){const _0x110b68=_0x18be11[_0x396014-0x1]['after'],_0x145a5d=_0x18be11[_0x396014]['before'],_0x28576a=_0x145a5d[_0x145a5d['length']-0x1]-_0x110b68[_0x110b68['length']-0x1];_0x28576a&&(this['_operationsData']['push']({'type':'remove','path':_0x110b68,'howMany':_0x28576a}),_0x145a5d[_0x145a5d['length']-0x1]-=_0x28576a);}for(const {before:_0x3e81f9}of _0x3764d9)this['_operationsData']['push']({'type':'merge','path':_0x3e81f9});}else for(let _0xb35b78=0x0;_0xb35b78<_0x18be11['length']-0x1;_0xb35b78++){const _0x4e6486=_0x18be11[_0xb35b78]['after'],_0x1e1eba=_0x18be11[_0xb35b78+0x1]['before'],_0x286c46=_0x18be11[_0xb35b78]['index']+0x1,_0x2386de=_0x18be11[_0xb35b78+0x1]['index'];if(_0x286c46!==_0x2386de&&this['_operationsData']['push']({'type':'insert','path':_0x4e6486,'tokens':_0x3c77ec['slice'](_0x286c46,_0x2386de)}),_0xb35b78<_0x3764d9['length']){this['_operationsData']['push']({'type':'split','path':_0x1e1eba});const _0x2ba94a=_0x3c77ec[_0xb392c9[_0xb392c9['length']-0x1-_0xb35b78]['index']],_0x2ab070=this['_parents'][_0x19b1b7]['element'];_0x2ab070['name']!=_0x2ba94a['element']['name']&&this['_addSplitPostponedData'](_0x2ba94a['element'],{'type':'rename','oldValue':_0x2ab070['name']});const _0x51e3dd=this['_getAttributeChanges'](_0x2ab070['getAttributes'](),_0x2ba94a['element']['getAttributes']());for(const _0x11152b in _0x51e3dd){const _0x4ddf44=_0x51e3dd[_0x11152b]['oldValue'];this['_addSplitPostponedData'](_0x2ba94a['element'],{'type':'attribute','key':_0x11152b,'oldValue':_0x4ddf44});}}}}['_addSplitPostponedData'](_0x264d74,_0x2c1866){const _0x3f4a20=this['_splitPostponedData']['get'](_0x264d74)||[];_0x3f4a20['push'](_0x2c1866),this['_splitPostponedData']['set'](_0x264d74,_0x3f4a20);}['_traverseOverItem'](_0x4dd980){'element'==_0x4dd980['type']&&_0x4dd980['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x4dd980)):'element'!=_0x4dd980['type']||_0x4dd980['isStart']?'text'==_0x4dd980['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x4dd980['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x44ccbc,_0x495801,_0x82505e){_0x44ccbc['name']!=_0x495801['name']&&this['_operationsData']['push']({'type':'rename','path':_0x82505e['slice'](),'oldName':_0x44ccbc['name'],'newName':_0x495801['name']});}['_handleElementAttributeChanges'](_0x37daba,_0x36c2f5,_0x1a2a3a){const _0x4e0154=this['_getAttributeChanges'](_0x37daba['getAttributes'](),_0x36c2f5['getAttributes']());for(const _0x40afd3 in _0x4e0154){const {oldValue:_0x2fa003,newValue:_0x30e488}=_0x4e0154[_0x40afd3];this['_operationsData']['push']({'type':'attribute','path':_0x1a2a3a['slice'](),'howMany':0x1,'key':_0x40afd3,'oldValue':_0x2fa003,'newValue':_0x30e488});}}['_handleTextAttributeChanges'](_0x310c07,_0x1afdcf,_0x24027d){const _0x59e4de=this['_operationsData'],_0x59f950=_0x310c07[0x0]['parent'],_0x2a07d7=_0x310c07[0x0]['offset'],_0x41c45e=_0x1afdcf[0x0]['parent'],_0x17846c=_0x1afdcf[0x0]['offset'],_0x4c1de8=_0x310c07['reduce']((_0x147249,_0x1a44a3)=>_0x147249+_0x1a44a3['data']['length'],0x0),_0x26f8c4=this['_getAttrsForOffsets'](_0x59f950,_0x2a07d7,_0x4c1de8),_0x2e1272=this['_getAttrsForOffsets'](_0x41c45e,_0x17846c,_0x4c1de8),_0x12518a={};for(let _0x2347f9=0x0;_0x2347f9<_0x4c1de8;_0x2347f9++){const _0x21ffe9=_0x26f8c4[_0x2a07d7+_0x2347f9],_0x5b0c50=_0x2e1272[_0x17846c+_0x2347f9],_0x5309a9=this['_getAttributeChanges'](_0x21ffe9,_0x5b0c50);for(const _0x3d0e39 in _0x12518a)_0x5309a9[_0x3d0e39]||_0x5d9132(_0x3d0e39);for(const _0x3ae117 in _0x5309a9){const {oldValue:_0x2bcef8,newValue:_0x5b99e6}=_0x5309a9[_0x3ae117],_0x1de82f=_0x12518a[_0x3ae117];_0x1de82f?_0x1de82f['oldValue']==_0x2bcef8&&_0x1de82f['newValue']==_0x5b99e6?_0x1de82f['length']++:(_0x5d9132(_0x3ae117),_0x12518a[_0x3ae117]={'oldValue':_0x2bcef8,'newValue':_0x5b99e6,'start':_0x2347f9,'length':0x1}):_0x12518a[_0x3ae117]={'oldValue':_0x2bcef8,'newValue':_0x5b99e6,'start':_0x2347f9,'length':0x1};}}for(const _0x3ec217 in _0x12518a)_0x5d9132(_0x3ec217);function _0x5d9132(_0x3e5e24){const _0x1661f7=_0x12518a[_0x3e5e24],_0x2811fa=_0x24027d['slice']();_0x2811fa[_0x2811fa['length']-0x1]+=_0x1661f7['start'],_0x59e4de['push']({'type':'attribute','path':_0x2811fa,'howMany':_0x1661f7['length'],'key':_0x3e5e24,'oldValue':_0x1661f7['oldValue'],'newValue':_0x1661f7['newValue']}),delete _0x12518a[_0x3e5e24];}}['_getAttributeChanges'](_0x380a32,_0x1fb315){const _0x57b6ec={};for(const [_0x305a8e,_0xf81c54]of _0x380a32)_0x57b6ec[_0x305a8e]={'oldValue':JSON['stringify'](_0xf81c54),'newValue':'null'};for(const [_0x22898a,_0x348d97]of _0x1fb315){const _0x24fab0=JSON['stringify'](_0x348d97);_0x57b6ec[_0x22898a]?_0x57b6ec[_0x22898a]['oldValue']==_0x24fab0?delete _0x57b6ec[_0x22898a]:_0x57b6ec[_0x22898a]['newValue']=_0x24fab0:_0x57b6ec[_0x22898a]={'oldValue':'null','newValue':_0x24fab0};}return delete _0x57b6ec[Wt],_0x57b6ec;}['_getAttrsForOffsets'](_0x2fa5f0,_0x43e7fb,_0x726b5){const _0xf461b4=new Array(_0x43e7fb+_0x726b5);let _0x2a7252=_0x2fa5f0['getChildAtOffset'](_0x43e7fb),_0x37cf5a=_0x2a7252['startOffset'];for(;_0x2a7252&&_0x37cf5a<_0x43e7fb+_0x726b5;){const _0xca1310=Array['from'](_0x2a7252['getAttributes']());_0xf461b4['fill'](_0xca1310,_0x37cf5a,_0x37cf5a+_0x2a7252['offsetSize']),_0x37cf5a+=_0x2a7252['offsetSize'],_0x2a7252=_0x2a7252['nextSibling'];}return _0xf461b4;}['_getPositionFromAnchorAndPath'](_0x914006,_0x1fd9da){const _0x576b8f=[..._0x914006['path']['slice'](0x0,-0x1),_0x914006['offset']+_0x1fd9da[0x0],..._0x1fd9da['slice'](0x1)];return new _0x308deb(_0x914006['root'],_0x576b8f);}['_makeModelFromTokens'](_0xcb0626){const _0x5d1788=[];let _0x38cf65=null;for(const _0x30767d of _0xcb0626)if('element'!=_0x30767d['type']||_0x30767d['isStart']||_0x38cf65!=_0x30767d['element']){if(!_0x38cf65){if('text'==_0x30767d['type']){const _0x10b4a2=_0x308deb['_createAt'](_0x30767d['parent'],_0x30767d['offset']),_0x284c51=_0x33edf9['_createFromPositionAndShift'](_0x10b4a2,_0x30767d['data']['length']),_0x477e8f=Array['from'](_0x284c51['getItems']())['map'](_0x45a9b6=>new _0x9101e3(_0x45a9b6['data'],_0x45a9b6['getAttributes']()));_0x5d1788['push'](..._0x477e8f);}else{_0x38cf65=_0x30767d['element'];const _0x1df54b=_0x30767d['element']['_clone'](!0x0);_0x1df54b['_removeAttribute'](Wt);for(const _0x281969 of this['_editor']['model']['createRangeIn'](_0x1df54b)['getItems']())_0x281969['is']('element')&&_0x281969['_removeAttribute'](Wt);_0x5d1788['push'](_0x1df54b);}}}else _0x38cf65=null;return _0x5d1788;}}function Kt(_0x391ad5,_0x4a3c09){return _0x391ad5['type']===_0x4a3c09['type']&&(_0x391ad5['limitId']===_0x4a3c09['limitId']&&('text'==_0x391ad5['type']?_0x391ad5['data']==_0x4a3c09['data']:function(_0x3bc2d8,_0x2b3f04){if(_0x3bc2d8['isStart']!=_0x2b3f04['isStart'])return!0x1;if(_0x3bc2d8['isStart']&&_0x3bc2d8['elementId']!=_0x2b3f04['elementId'])return!0x1;if(_0x3bc2d8['category']!=_0x2b3f04['category'])return!0x1;if('block'==_0x3bc2d8['category'])return!0x0;if('container'==_0x3bc2d8['category']&&_0x3bc2d8['elementId']!=_0x2b3f04['elementId'])return!0x1;return _0x3bc2d8['element']['name']==_0x2b3f04['element']['name'];}(_0x391ad5,_0x4a3c09)));}function qt(_0x3e2239){return At({'name':_0x3e2239['name'],...Object['fromEntries'](_0x3e2239['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 _0x37425e,Editor as _0x35b754,Plugin as _0x27086f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2dee5a,Collection as _0x3f7859,uid as _0x5bba90,toArray as _0x5684d3,first as _0x482ce6,FocusTracker as _0x2a45c3,KeystrokeHandler as _0x557ef2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x1c6735,IconView as _0x5034e0,ButtonView as _0x227d46,DropdownButtonView as _0x4a8a2f,FocusCycler as _0x2820e2,isViewWithFocusCycler as _0x419c62}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x491a94,IconCheck as _0x5ddce2,IconCancel as _0x24865e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x135b30,toWidget as _0x30055c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0xe49238}from'luxon';import{InsertOperation as _0x566d4e,MoveOperation as _0x254cd4,ModelPosition as _0x3a5154,ModelRange as _0x36794d,MarkerOperation as _0x25b9f8,MergeOperation as _0x49e0b0,SplitOperation as _0x486d61,RenameOperation as _0x50c9fc,AttributeOperation as _0x539fde,ModelTreeWalker as _0x4eb770,ModelText as _0x2c85b4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x44ad45}from'diff';class O extends _0x37425e{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x2d683f,_0x5352b4){let _0x382110;if(_0x5352b4||(_0x5352b4=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x5352b4?_0x382110=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x382110=this['context']['editors']['find'](_0xcd7f6c=>_0xcd7f6c['config']['get']('collaboration.channelId')==_0x5352b4)),!_0x382110)throw new _0x2dee5a('permissions-set-permissions-invalid-channel-id',null);const _0x395fee=_0x382110['plugins'],_0x2269c5=_0x395fee['has']('CommentsRepository')?_0x395fee['get']('CommentsRepository'):void 0x0,_0x56c1df=_0x395fee['has']('CommentsOnly')&&_0x395fee['get']('CommentsOnly'),_0x326693=_0x2d683f['includes']('document:write'),_0x5a822f=_0x2d683f['includes']('comment:modify_all'),_0x89e7e3=_0x2d683f['includes']('comment:admin'),_0x2e5728=_0x2d683f['includes']('comment:write'),_0x9bc894=_0x2e5728||_0x89e7e3,_0x5c7c60=_0x9bc894||_0x5a822f,_0x78becf=_0x326693||_0x9bc894;(_0x56c1df&&(_0x56c1df['isEnabled']=!_0x326693&&_0x5c7c60),_0x382110 instanceof _0x35b754)&&(!(_0x326693||_0x5c7c60&&_0x2269c5)?_0x382110['enableReadOnlyMode']('no-permissions'):_0x382110['disableReadOnlyMode']('no-permissions'));if(_0x2269c5){_0x2269c5['setPermissions']({'admin':_0x89e7e3,'modifyAll':_0x5a822f,'write':_0x2e5728,'resolve':_0x78becf},_0x5352b4);const _0x5503d3=_0x382110 instanceof _0x35b754&&_0x382110['commands']['get']('addCommentThread');_0x5503d3&&(_0x9bc894?_0x5503d3['clearForceDisabled']('noPermissions'):_0x5503d3['forceDisabled']('noPermissions'));}}}function V(_0x4b8e80,_0x5b46c8){const t=_0x4b8e80['t'];switch(_0x5b46c8){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 _0x37425e{['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(_0x3b0d4b){super(_0x3b0d4b),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x3f7859(),this['_locale']=_0x3b0d4b['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:_0x3fbc04,name:_0xa30749,..._0x1f18a9}){if(!_0x3fbc04||'string'!=typeof _0x3fbc04)throw new _0x2dee5a('users-add-invalid-id');if(this['users']['has'](_0x3fbc04))throw new _0x2dee5a('users-add-duplicated-id',null,{'id':_0x3fbc04});const _0x40a74c=this['context']['config']['get']('users.getInitialsCallback'),_0x2d420a={..._0x1f18a9,'id':_0x3fbc04,'name':U(this['_locale'],_0xa30749),'color':this['_getNextColor']()};_0x2d420a['name']=U(this['_locale'],_0x2d420a['name']);const _0xe42925=new L(_0x2d420a,_0x40a74c);return this['users']['add'](_0xe42925),_0xe42925;}['getUser'](_0xfd875a){return this['users']['get'](_0xfd875a);}['useAnonymousUser'](){const _0x11cba5=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x11cba5);}['defineMe'](_0x40a408){if(this['_myId'])throw new _0x2dee5a('users-me-already-defined',null);const _0x46cc39=this['getUser'](_0x40a408);if(!_0x46cc39)throw new _0x2dee5a('users-me-missing-user',null);this['_myId']=_0x40a408,_0x46cc39['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x59e172=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x59e172&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0x1869ee=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x1869ee,'name':V(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class L{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0xb6c171,_0x2772b0){this['id']=_0xb6c171['id'],this['color']=_0xb6c171['color'],this['name']=_0xb6c171['name'],this['initials']=_0x2772b0?_0x2772b0(this['name']):this['_computeInitials'](),this['avatar']=_0xb6c171['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5c74ed=this['name']['split']('\x20')['filter'](_0x33a66e=>/^[\p{Letter}]/u['test'](_0x33a66e));return 0x1===_0x5c74ed['length']?this['_getInitial'](_0x5c74ed[0x0]):0x0===_0x5c74ed['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5c74ed[0x0])+this['_getInitial'](_0x5c74ed[_0x5c74ed['length']-0x1]);}['_getInitial'](_0xf41d8a){return String['fromCodePoint'](_0xf41d8a['codePointAt'](0x0))['toUpperCase']();}}function U(_0x1a6c92,_0x264dc6=''){return''==(_0x264dc6=_0x264dc6['trim']())?V(_0x1a6c92,'Anonymous'):_0x264dc6;}class R{['_id'];constructor(_0x4d94a1){this['_id']=_0x4d94a1;}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 _0x1c6735{['name'];['notificationView'];constructor(_0xc0a625,_0x3ca809,_0x11099b){super(_0xc0a625),this['name']=_0x3ca809['name'],this['notificationView']=null;const _0x3e2836=['ck','ck-user'],_0x40ecb7=['ck','ck-user__img'];if(_0x3ca809['isAnonymous']&&_0x40ecb7['push']('ck-user__anonymous'),!_0x3ca809['isAnonymous']&&_0x3ca809['isMe']&&_0x3e2836['push']('ck-user_me'),_0x3ca809['avatar']&&_0x40ecb7['push']('ck-user__avatar'),_0x11099b){const _0x450620=new _0x5034e0();_0x450620['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x450620['content']=_0x491a94,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x11099b},'children':[_0x450620]};}const _0x3cd9a6=[{'tag':'div','attributes':{'class':_0x40ecb7,'style':{'background-image':_0x3ca809['avatar']?'url(\x27'+_0x3ca809['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x3ca809['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x3ca809['name']},'children':[{'text':_0x3ca809['initials']}]}];this['notificationView']&&_0x3cd9a6['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x3e2836,'data-user-id':_0x3ca809['id']},'children':_0x3cd9a6});}}class H extends _0x1c6735{['id'];constructor(_0x31df54,_0xb23d86){super(_0x31df54),this['id']='ck-aria-description-'+_0x5bba90(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0xb23d86}]});}}class z extends _0x227d46{['render'](){super['render'](),j(this);}}class W extends _0x4a8a2f{['render'](){super['render'](),j(this);}}function j(_0x1680c8){_0x1680c8['listenTo'](_0x1680c8['element'],'mousedown',(_0x1feb47,_0x20a706)=>{_0x20a706['stopPropagation'](),_0x20a706['preventDefault']();}),_0x1680c8['listenTo'](_0x1680c8['element'],'mouseup',()=>{_0x1680c8['element']['focus']();});}function Y(_0x44a618){const _0x57a6c1=_0x44a618['split'](':');return{'group':_0x57a6c1[0x0],'type':_0x57a6c1[0x1],'subType':_0x57a6c1['length']>=0x5?_0x57a6c1[0x2]:null,'id':_0x57a6c1['length']<0x5?_0x57a6c1[0x2]:_0x57a6c1[0x3],'authorId':_0x57a6c1['length']<0x5?_0x57a6c1[0x3]:_0x57a6c1[0x4],'markerCount':0x6==_0x57a6c1['length']?_0x57a6c1[0x5]:null};}function J(_0xdc2f3,_0x2e96e9){const _0x4ce794=_0xdc2f3['end']['nodeBefore'];if(_0x4ce794&&_0x4ce794['is']('element')&&_0x2e96e9['schema']['isBlock'](_0x4ce794)&&!_0x2e96e9['schema']['isObject'](_0x4ce794)){const _0x4f42ff=_0x2e96e9['createPositionAt'](_0x4ce794,'end');return _0x2e96e9['createRange'](_0xdc2f3['start'],_0x4f42ff);}return _0xdc2f3;}class K extends _0x27086f{['afterInit'](){const _0x1ade64=this['editor'];if(!_0x1ade64['plugins']['has']('AlignmentEditing'))return;_0x1ade64['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x27086f{['afterInit'](){const _0x258a77=this['editor'],_0x366e6a=_0x258a77['plugins']['get']('SuggestionsConversion');for(const _0x5bb7f9 of q){if(!_0x258a77['plugins']['has'](_0x5bb7f9))continue;const _0x552549=_0x5bb7f9['slice'](0x0,-0x7)['toLowerCase']();_0x366e6a['registerInlineAttribute'](_0x552549);}}}class Z extends _0x27086f{['afterInit'](){const _0x42a6c5=this['editor'],_0x13178e=_0x42a6c5['plugins']['get']('SuggestionsConversion');_0x42a6c5['plugins']['has']('BookmarkEditing')&&_0x13178e['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x27086f{['afterInit'](){const _0x5d0a2f=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x23c8dc,commandName:_0x5ecb2f}of Q)this['editor']['plugins']['has'](_0x23c8dc)&&_0x5d0a2f['registerInlineAttribute'](_0x5ecb2f);}}class tt extends _0x27086f{['afterInit'](){const {editor:_0x2b6699}=this;if(!_0x2b6699['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x250b3d=_0x2b6699['plugins']['get']('SuggestionsConversion');_0x250b3d['registerBlockAttribute']('footnotesListStyle'),_0x250b3d['registerBlockAttribute']('footnotesListStart');}}class et extends _0x27086f{['afterInit'](){const _0x316675=this['editor'];if(!_0x316675['plugins']['has']('HighlightEditing'))return;_0x316675['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x27086f{['afterInit'](){const _0x17c316=this['editor'];if(!_0x17c316['plugins']['has']('HtmlEmbed'))return;_0x17c316['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x27086f{['afterInit'](){const _0x53a250=this['editor'];if(!_0x53a250['plugins']['has']('ImageEditing'))return;const _0x48ace9=_0x53a250['plugins']['get']('SuggestionsConversion');_0x48ace9['registerBlockAttribute']('src'),_0x53a250['plugins']['has']('ImageResize')&&_0x48ace9['registerBlockAttribute']('resizedWidth'),_0x53a250['plugins']['has']('ImageTextAlternativeEditing')&&_0x48ace9['registerBlockAttribute']('alt'),_0x53a250['plugins']['has']('PictureEditing')&&_0x48ace9['registerBlockAttribute']('sources'),_0x53a250['plugins']['has']('ImageSizeAttributes')&&(_0x48ace9['registerBlockAttribute']('width'),_0x48ace9['registerBlockAttribute']('height'));}}class nt extends _0x27086f{['afterInit'](){const _0x30fd44=this['editor'],_0x4f8e94=_0x30fd44['plugins']['get']('SuggestionsConversion');_0x30fd44['plugins']['has']('IndentBlock')&&(_0x4f8e94['registerBlockAttribute']('blockIndent'),_0x30fd44['plugins']['has']('ListEditing')&&(_0x4f8e94['registerBlockAttribute']('blockIndentList'),_0x4f8e94['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x27086f{['afterInit'](){const _0x17cfce=this['editor'];if(!_0x17cfce['plugins']['has']('LineHeight'))return;_0x17cfce['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x27086f{['afterInit'](){const _0x3793c3=this['editor'];if(!_0x3793c3['plugins']['has']('LinkEditing'))return;const _0x217f9c=_0x3793c3['plugins']['get']('SuggestionsConversion'),_0x432ba3=_0x3793c3['commands']['get']('link');_0x217f9c['registerInlineAttribute']('linkHref');for(const _0x376196 of _0x432ba3['manualDecorators'])_0x217f9c['registerInlineAttribute'](_0x376196['id']);}}class at extends _0x27086f{['afterInit'](){const _0x2dcab3=this['editor'];if(!_0x2dcab3['plugins']['has']('ListEditing'))return;const _0x4fee60=_0x2dcab3['plugins']['get']('SuggestionsConversion'),_0x57a42a=_0x2dcab3['plugins']['has']('TodoListEditing');_0x4fee60['registerBlockAttribute']('listItemId'),_0x4fee60['registerBlockAttribute']('listType'),_0x4fee60['registerBlockAttribute']('listIndent'),_0x57a42a&&_0x4fee60['registerBlockAttribute']('todoListChecked');}}class ct extends _0x27086f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x44e4fa=this['editor']['config']['get']('list.properties'),_0x533543=this['editor']['plugins']['get']('SuggestionsConversion');_0x44e4fa['styles']&&_0x533543['registerBlockAttribute']('listStyle'),_0x44e4fa['reversed']&&_0x533543['registerBlockAttribute']('listReversed'),_0x44e4fa['startIndex']&&_0x533543['registerBlockAttribute']('listStart');}}class lt extends _0x27086f{['afterInit'](){const _0x13ddcc=this['editor'],_0x1a2fe7=_0x13ddcc['plugins']['get']('SuggestionsConversion');_0x13ddcc['plugins']['has']('MultiLevelList')&&_0x1a2fe7['registerBlockAttribute']('listMarkerStyle');}}class ht extends _0x27086f{['afterInit'](){const _0x22c9b5=this['editor'];if(!_0x22c9b5['plugins']['has']('Style')||!_0x22c9b5['plugins']['has']('DataSchema')||!_0x22c9b5['config']['get']('style.definitions'))return;const _0x58896f=_0x22c9b5['plugins']['get']('SuggestionsConversion'),_0xd119c=_0x22c9b5['config']['get']('style.definitions'),_0x34fdd2=_0x22c9b5['plugins']['get']('GeneralHtmlSupport'),_0x1e070a=_0x22c9b5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x22c9b5['plugins']['get']('DataSchema'),_0xd119c),_0x3d6a1c=new Set();for(const _0x3a871d of _0x1e070a['block']){const _0xb80c2=_0x34fdd2['getGhsAttributeNameForElement'](_0x3a871d['element']);_0x3d6a1c['add'](_0xb80c2);}const _0x4e84dd=new Set();for(const _0x350ecc of _0x1e070a['inline']){const _0x5752f0=_0x34fdd2['getGhsAttributeNameForElement'](_0x350ecc['element']);_0x4e84dd['add'](_0x5752f0);for(const _0xf164a5 of _0x350ecc['ghsAttributes'])_0x4e84dd['add'](_0xf164a5);}for(const _0x126270 of _0x3d6a1c)_0x58896f['registerBlockAttribute'](_0x126270);for(const _0x1fc783 of _0x4e84dd)_0x58896f['registerInlineAttribute'](_0x1fc783);}}class ut extends _0x27086f{['afterInit'](){const _0x49cd62=this['editor'];if(!_0x49cd62['plugins']['has']('TableEditing'))return;const _0x13a2e0=_0x49cd62['plugins']['get']('SuggestionsConversion');_0x13a2e0['registerBlockAttribute']('headingRows'),_0x13a2e0['registerBlockAttribute']('headingColumns');}}class dt extends _0x27086f{['afterInit'](){const {plugins:_0x1308bc}=this['editor'];if(!_0x1308bc['has']('TablePropertiesEditing'))return;const _0x8c377a=_0x1308bc['get']('SuggestionsConversion'),_0x46b006=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x4835cc of _0x46b006)_0x8c377a['registerBlockAttribute'](_0x4835cc);}}class ft extends _0x27086f{['afterInit'](){const _0x5e0a81=this['editor'],_0x4c239f=_0x5e0a81['plugins']['get']('SuggestionsConversion');_0x5e0a81['plugins']['has']('TableLayout')&&_0x4c239f['registerBlockAttribute']('tableType');}}class gt extends _0x27086f{['afterInit'](){const _0x502bd8=this['editor'],_0x1c25f0=this['editor']['plugins']['get']('SuggestionsConversion');_0x502bd8['plugins']['has']('Uploadcare')&&_0x502bd8['plugins']['has']('UploadcareImageEdit')&&_0x1c25f0['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x27086f{['afterInit'](){const _0x4248cd=this['editor'];if(!_0x4248cd['plugins']['has']('ShiftEnter'))return;const _0x3cd982=_0x4248cd['plugins']['get']('SuggestionsConversion'),_0x4f6554=(_0x5eeb56,_0x4a924e,_0x40cc99,_0x59eefb)=>{if(_0x59eefb&&!_0x40cc99['options']['showSuggestionHighlights'])return;if(!_0x40cc99['consumable']['test'](_0x4a924e['markerRange'],_0x5eeb56['name']))return;const _0x43affd=_0x4248cd['model'];for(const _0xd329a9 of _0x4a924e['markerRange']['getItems']()){if(!_0xd329a9['is']('element','softBreak'))continue;const _0x41515b='deletion'==_0x4a924e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x22cf1b,authorId:_0x3d8767}=Y(_0x4a924e['markerName']),_0xb5d5=_0x40cc99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41515b,'data-suggestion':_0x22cf1b,'data-author-id':_0x3d8767}),_0x41bfab=_0x40cc99['mapper']['toViewPosition'](_0x43affd['createPositionBefore'](_0xd329a9));!_0x59eefb&&_0x3cd982['_activeMarkers']['includes'](_0x4a924e['markerName'])&&_0x40cc99['writer']['addClass']('ck-suggestion-marker--active',_0xb5d5),_0x40cc99['writer']['insert'](_0x41bfab,_0xb5d5),_0x40cc99['mapper']['bindElementToMarker'](_0xb5d5,_0x4a924e['markerName']);}};_0x4248cd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x450a12,_0x35c2df,_0x1ed434)=>{_0x4f6554(_0x450a12,_0x35c2df,_0x1ed434,!0x1);},{'priority':'high'}),_0x4248cd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x546640,_0x26dff1,_0x536c90)=>{_0x4f6554(_0x546640,_0x26dff1,_0x536c90,!0x1);},{'priority':'high'}),_0x4248cd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59c187,_0x1beb67,_0x550ff8)=>{_0x4f6554(_0x59c187,_0x1beb67,_0x550ff8,!0x0);},{'priority':'high'}),_0x4248cd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x354888,_0x4a9660,_0x2c582c)=>{_0x4f6554(_0x354888,_0x4a9660,_0x2c582c,!0x0);},{'priority':'high'});}}class kt extends _0x27086f{['afterInit'](){const _0x228514=this['editor'];_0x228514['plugins']['has']('MediaEmbedEditing')&&(_0x228514['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x37506b,{writer:_0x1e73a6,options:_0x1a6427})=>{if(_0x1a6427['showSuggestionHighlights'])return _0x1e73a6['createEmptyElement']('div');},'converterPriority':'high'}),_0x228514['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4f1b39,_0x26997e,_0x4d14eb)=>{_0x4d14eb['options']['showSuggestionHighlights']&&_0x4f1b39['stop']();},{'priority':'high'}));}}class pt extends _0x27086f{['afterInit'](){const _0x447557=this['editor'];if(!_0x447557['plugins']['has']('Table'))return;_0x447557['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x493f01,_0x4ea695,_0x249024)=>{((_0x19532f,_0x20cb61,_0x5d4ff8)=>{if(!_0x5d4ff8['options']['showSuggestionHighlights'])return;const _0x46a616=_0x20cb61['item'];if(!_0x46a616||!_0x46a616['is']('element','tableCell'))return;const _0x456078=_0x5d4ff8['mapper']['toViewElement'](_0x46a616);if(_0x456078){const {id:_0x297ca9,authorId:_0x1cc659}=Y(_0x20cb61['markerName']);_0x135b30(_0x456078,_0x5d4ff8['writer'],(_0x7bc85a,_0x308f90,_0xaebdbc)=>{_0xaebdbc['addClass'](_0x5684d3(_0x308f90['classes']),_0x7bc85a),_0xaebdbc['setAttribute']('data-suggestion',_0x297ca9,_0x7bc85a),_0xaebdbc['setAttribute']('data-author-id',_0x1cc659,_0x7bc85a);});}})(0x0,_0x4ea695,_0x249024);},{'priority':'highest'});}}class yt extends _0x27086f{['afterInit'](){const _0x3411dc=this['editor'];_0x3411dc['plugins']['has']('HorizontalLineEditing')&&_0x3411dc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x58e712,{writer:_0x1aa17e,options:_0x1ae482})=>{if(!_0x1ae482['showSuggestionHighlights'])return null;const _0x58e23c=_0x1aa17e['createContainerElement']('div'),_0x2a25e9=_0x1aa17e['createEmptyElement']('hr');return _0x1aa17e['addClass']('ck-horizontal-line',_0x58e23c),_0x1aa17e['insert'](_0x1aa17e['createPositionAt'](_0x58e23c,0x0),_0x2a25e9),_0x58e23c;},'converterPriority':'high'});}}class wt extends _0x27086f{['afterInit'](){const {plugins:_0x569730,model:_0x2e72b7}=this['editor'];if(!_0x569730['has']('TableCellPropertiesEditing'))return;const _0x79efa6=_0x569730['get']('SuggestionsConversion'),_0x3f3178=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x1185cd of _0x3f3178)_0x79efa6['registerBlockAttribute'](_0x1185cd);_0x2e72b7['schema']['checkAttribute']('tableCell','tableCellType')&&_0x79efa6['registerBlockAttribute']('tableCellType');}}class bt extends _0x27086f{['afterInit'](){const _0x1d03e9=this['editor'];if(!_0x1d03e9['plugins']['has']('TableEditing')||!_0x1d03e9['config']['get']('table.enableFooters'))return;_0x1d03e9['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x27086f{['_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 _0x24237b=this['editor'],_0x17d9b2=(_0x4ab52f,_0xc16a19,_0x1c79ea)=>{const {id:_0x37500d,authorId:_0x5b257f,type:_0x37ff7e,subType:_0x5f0f5f}=Y(_0x4ab52f['markerName']),_0x4641ff=['ck-suggestion-marker',this['_getClassName'](_0x37ff7e,_0x5f0f5f)];let _0x10e5b2=0xbb8;return!_0x1c79ea&&(this['_activeMarkers']['includes'](_0x4ab52f['markerName'])&&(_0x4641ff['push']('ck-suggestion-marker--active'),_0x10e5b2=0xbc2)),('deletion'==_0x37ff7e&&(_0x10e5b2+=0x5),{'classes':_0x4641ff,'attributes':{'data-suggestion':_0x37500d,'data-author-id':_0x5b257f},'priority':_0x10e5b2});};_0x24237b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x354e66,_0x1318f6)=>_0x17d9b2(_0x354e66,0x0,!0x1)}),_0x24237b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5b44c5,_0x15ded2)=>_0x17d9b2(_0x5b44c5,0x0,!0x0)}),_0x24237b['conversion']['for']('dataDowncast')['add'](_0x240039=>{_0x240039['on']('addMarker:suggestion',(_0x1396a1,_0x1e90f8,_0x44ee82)=>{if(!_0x44ee82['options']['showSuggestionHighlights'])return;const _0x64a7ab=_0x1e90f8['item'];if(!_0x64a7ab)return;const _0x59a740=_0x44ee82['mapper']['toViewElement'](_0x64a7ab);_0x24237b['model']['schema']['isObject'](_0x64a7ab)&&_0x59a740&&!_0x59a740['getCustomProperty']('widget')&&_0x59a740['is']('containerElement')&&_0x30055c(_0x59a740,_0x44ee82['writer']);},{'priority':'high'});});const _0x1222f6=(_0x272faf,_0x43e386,_0x3bcec3,_0x5f38dd,_0x328069)=>{if(_0x5f38dd&&!_0x3bcec3['options']['showSuggestionHighlights'])return;if(!_0x43e386['item'])return;const {id:_0x37863c,authorId:_0x6915e7,subType:_0x5091c8}=Y(_0x43e386['markerName']);if(_0x328069){const _0x3fdcb2=_0x5091c8['split']('|')[0x0];if(!this['isBlockAttribute'](_0x3fdcb2))return;}if(_0x43e386['item']['is']('selection'))return void _0x3bcec3['consumable']['consume'](_0x43e386['item'],_0x272faf['name']);const _0x5d8afd=_0x3bcec3['mapper']['toViewElement'](_0x43e386['item']);if(_0x43e386['item']['is']('element')&&_0x24237b['model']['schema']['isBlock'](_0x43e386['item'])&&!_0x5d8afd['getCustomProperty']('addHighlight')){_0x3bcec3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5d8afd),_0x3bcec3['writer']['setAttribute']('data-suggestion',_0x37863c,_0x5d8afd),_0x3bcec3['writer']['setAttribute']('data-author-id',_0x6915e7,_0x5d8afd),_0x3bcec3['mapper']['bindElementToMarker'](_0x5d8afd,_0x43e386['markerName']),_0x5f38dd||(this['_activeMarkers']['includes'](_0x43e386['markerName'])?_0x3bcec3['writer']['addClass']('ck-suggestion-marker--active',_0x5d8afd):_0x3bcec3['writer']['removeClass']('ck-suggestion-marker--active',_0x5d8afd));for(const _0x3e7815 of _0x24237b['model']['createRangeIn'](_0x43e386['item'])['getItems']())_0x3bcec3['consumable']['consume'](_0x3e7815,_0x272faf['name']);_0x3bcec3['consumable']['consume'](_0x43e386['item'],_0x272faf['name']);}},_0x54a392=(_0x3b498e,_0x584878,_0x28a65b,_0x313600)=>{const _0x1344d0=_0x28a65b['mapper']['markerNameToElements'](_0x584878['markerName']);if(_0x1344d0){if(_0x313600){const {subType:_0xfff41a}=Y(_0x584878['markerName']),_0xff2c1b=_0xfff41a['split']('|')[0x0];if(!this['isBlockAttribute'](_0xff2c1b))return;}for(const _0xc385e3 of _0x1344d0)_0xc385e3['getCustomProperty']('addHighlight')||(_0x28a65b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xc385e3),_0x28a65b['writer']['removeAttribute']('data-suggestion',_0xc385e3),_0x28a65b['writer']['removeAttribute']('data-author-id',_0xc385e3),_0x28a65b['mapper']['unbindElementFromMarkerName'](_0xc385e3,_0x584878['markerName']));}};_0x24237b['conversion']['for']('editingDowncast')['add'](_0x1af83d=>{_0x1af83d['on']('addMarker:suggestion:formatBlock',(_0x3fc7dd,_0x26d01d,_0x5ea73e)=>{_0x1222f6(_0x3fc7dd,_0x26d01d,_0x5ea73e,!0x1,!0x1);},{'priority':'high'});}),_0x24237b['conversion']['for']('editingDowncast')['add'](_0x1e372b=>{_0x1e372b['on']('addMarker:suggestion:attribute',(_0x317306,_0x356094,_0x7ae9a)=>{_0x1222f6(_0x317306,_0x356094,_0x7ae9a,!0x1,!0x0);},{'priority':'high'});}),_0x24237b['conversion']['for']('editingDowncast')['add'](_0x51371a=>{_0x51371a['on']('removeMarker:suggestion:formatBlock',(_0x2ecc5b,_0x8abfb8,_0x21c374)=>{_0x54a392(0x0,_0x8abfb8,_0x21c374,!0x1);},{'priority':'high'});}),_0x24237b['conversion']['for']('editingDowncast')['add'](_0x332f87=>{_0x332f87['on']('removeMarker:suggestion:attribute',(_0x143f95,_0x299bc3,_0xc57947)=>{_0x54a392(0x0,_0x299bc3,_0xc57947,!0x0);},{'priority':'high'});}),_0x24237b['conversion']['for']('dataDowncast')['add'](_0x38ba46=>{_0x38ba46['on']('addMarker:suggestion:formatBlock',(_0x1b85ee,_0x5f4a20,_0x92ab5)=>{_0x1222f6(_0x1b85ee,_0x5f4a20,_0x92ab5,!0x0,!0x1);},{'priority':'highest'});}),_0x24237b['conversion']['for']('dataDowncast')['add'](_0x224c00=>{_0x224c00['on']('addMarker:suggestion:attribute',(_0x1640f7,_0x49c8ec,_0x22fa58)=>{_0x1222f6(_0x1640f7,_0x49c8ec,_0x22fa58,!0x0,!0x0);},{'priority':'highest'});}),_0x24237b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3661c4,_0x1199bc)=>_0x1199bc['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3661c4['substr'](0xb)}});const _0x1a8314=(_0xa71089,_0x40c979,_0x46ef7f,_0x2c45d0,_0x4eb18c)=>{if(_0x2c45d0&&!_0x46ef7f['options']['showSuggestionHighlights'])return;if(!_0x46ef7f['consumable']['test'](_0x40c979['markerRange'],_0xa71089['name']))return;const _0xdb2455=this['_activeMarkers'],_0x5b9315=_0x40c979['markerRange']['getWalker'](),_0x2e7a25=_0x40c979['markerRange']['start'],_0x1a86bd=_0x24237b['model']['schema'];let _0x60442d=null,_0x26ee19=null,_0x475b12=!0x1,_0x1d0a1d=!0x1;for(const _0x84b086 of _0x5b9315){const _0x3b3ad9=_0x84b086['item'];_0x475b12=_0x475b12||_0x1a86bd['isContent'](_0x3b3ad9);const _0x266f3d=_0x46ef7f['mapper']['toViewElement'](_0x3b3ad9);if(_0x266f3d&&_0x266f3d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x84b086['type']&&(_0x1a86bd['isBlock'](_0x3b3ad9)&&!_0x1a86bd['isLimit'](_0x3b3ad9)&&(_0x3b3ad9['nextSibling']||_0x2e7a25['isAtEnd']?_0x60442d&&_0x60442d['parent']==_0x3b3ad9||(_0x60442d=_0x3b3ad9,_0x5b5604(_0x84b086['previousPosition']),_0x1d0a1d=!0x0):_0x26ee19=_0x26ee19||_0x84b086['previousPosition']));}function _0x5b5604(_0x31d25a){const {id:_0x282411,authorId:_0x151d31}=Y(_0x40c979['markerName']),_0x101821=_0x46ef7f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4eb18c,'data-suggestion':_0x282411,'data-author-id':_0x151d31}),_0x461d89=_0x46ef7f['mapper']['toViewPosition'](_0x31d25a);!_0x2c45d0&&_0xdb2455['includes'](_0x40c979['markerName'])&&_0x46ef7f['writer']['addClass']('ck-suggestion-marker--active',_0x101821),_0x46ef7f['writer']['insert'](_0x461d89,_0x101821),_0x46ef7f['mapper']['bindElementToMarker'](_0x101821,_0x40c979['markerName']);}_0x475b12||_0x1d0a1d||!_0x26ee19||_0x5b5604(_0x26ee19);};_0x24237b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x17acae,_0x5f0043,_0x2b7c4a)=>{_0x1a8314(_0x17acae,_0x5f0043,_0x2b7c4a,!0x1,'merge');},{'priority':'high'}),_0x24237b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5e990a,_0x243d1e,_0x417c89)=>{_0x1a8314(_0x5e990a,_0x243d1e,_0x417c89,!0x0,'merge');},{'priority':'high'}),_0x24237b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x442a06,_0x5277df,_0x31cefa)=>{_0x1a8314(_0x442a06,_0x5277df,_0x31cefa,!0x1,'split');},{'priority':'high'}),_0x24237b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59c4d6,_0x7194bd,_0x5af95e)=>{_0x1a8314(_0x59c4d6,_0x7194bd,_0x5af95e,!0x0,'split');},{'priority':'high'}),_0x24237b['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3c259b,_0x3c709f,_0x2e87c1)=>{((_0x2edfc2,_0x1de720,_0x34a851)=>{const _0xda0ee8=_0x34a851['mapper']['markerNameToElements'](_0x1de720['markerName']);if(_0xda0ee8){for(const _0x1feb17 of _0xda0ee8)(_0x1feb17['hasClass']('ck-suggestion-marker-split')||_0x1feb17['hasClass']('ck-suggestion-marker-merge'))&&(_0x34a851['mapper']['unbindElementFromMarkerName'](_0x1feb17,_0x1de720['markerName']),_0x34a851['writer']['remove'](_0x1feb17));}})(0x0,_0x3c709f,_0x2e87c1);},{'priority':'high'});const _0x5899d=(_0x2a732a,_0x2b0d63,_0x23d894,_0x25ceb1)=>{if(_0x25ceb1&&!_0x23d894['options']['showSuggestionHighlights'])return;const _0x31d6d3=_0x2b0d63['markerRange']['start'],_0x1a2fdd=_0x2b0d63['markerRange']['end'],_0x35c862=_0x24237b['model']['schema'];if(!_0x31d6d3['isTouching'](_0x1a2fdd)||!_0x31d6d3['nodeAfter'])return;const _0x4516e5=_0x31d6d3['nodeAfter'];if(_0x35c862['isBlock'](_0x4516e5)&&!_0x35c862['isLimit'](_0x4516e5)&&_0x35c862['checkChild'](_0x4516e5,'$text')){if(!_0x23d894['consumable']['consume'](_0x2b0d63['markerRange'],_0x2a732a['name']))return;const {id:_0x4e7a75,authorId:_0x215303}=Y(_0x2b0d63['markerName']),_0x358634=_0x23d894['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4e7a75,'data-author-id':_0x215303}),_0x58ac4c=_0x23d894['mapper']['toViewPosition'](_0x1a2fdd);!_0x25ceb1&&this['_activeMarkers']['includes'](_0x2b0d63['markerName'])&&_0x23d894['writer']['addClass']('ck-suggestion-marker--active',_0x358634),_0x23d894['writer']['insert'](_0x58ac4c,_0x358634),_0x23d894['mapper']['bindElementToMarker'](_0x358634,_0x2b0d63['markerName']);}};_0x24237b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x27fa69,_0xf5f273,_0x5c9f46)=>{_0x5899d(_0x27fa69,_0xf5f273,_0x5c9f46,!0x1);},{'priority':'high'}),_0x24237b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x375305,_0x18bfc8,_0x2ab336)=>{_0x5899d(_0x375305,_0x18bfc8,_0x2ab336,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x494c4c,_0x517261,_0x5d28fa)=>{this['_activeMarkers']=_0x5d28fa['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0xac7a60){this['_blockAttributeKeys']['add'](_0xac7a60);}['registerInlineAttribute'](_0x1b27e2){this['_inlineAttributeKeys']['add'](_0x1b27e2);}['isBlockAttribute'](_0x268be7){return this['_blockAttributeKeys']['has'](_0x268be7);}['isInlineAttribute'](_0x13e1f8){return this['_inlineAttributeKeys']['has'](_0x13e1f8);}['isRegisteredAttribute'](_0x488457){return this['isInlineAttribute'](_0x488457)||this['isBlockAttribute'](_0x488457);}['_getClassName'](_0x3c5438,_0x91bd9e){if('attribute'!=_0x3c5438)return'ck-suggestion-marker-'+_0x3c5438;const _0x12f829=_0x91bd9e['split']('|')[0x0];return this['isBlockAttribute'](_0x12f829)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x21def6={},_0x2eddbb){if(void 0x0!==_0x21def6['dateTimeFormat']&&'function'!=typeof _0x21def6['dateTimeFormat'])throw new _0x2dee5a('invalid-date-time-format');return _0x2eef9f=>{const _0x2753f5='string'==typeof _0x2eef9f?_0xe49238['fromISO'](_0x2eef9f):_0xe49238['fromJSDate'](_0x2eef9f),_0x3e42ed=_0xe49238['now'](),_0x4f4839=Math['floor'](_0x3e42ed['diff'](_0x2753f5,'days')['days']);return _0x21def6['dateTimeFormat']?_0x21def6['dateTimeFormat'](_0x2753f5['toJSDate'](),_0x2eddbb&&_0x2eddbb['t']?_0x2eddbb['t']:void 0x0):0x0===_0x4f4839?_0x2eddbb?V(_0x2eddbb,'Today')+'\x20'+_0x2753f5['toFormat']('hh:mma'):_0x2753f5['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x4f4839?_0x2eddbb?V(_0x2eddbb,'Yesterday')+'\x20'+_0x2753f5['toFormat']('hh:mma'):_0x2753f5['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x4f4839<0x7?_0x2eddbb?V(_0x2eddbb,'Last')+'\x20'+V(_0x2eddbb,_0x2753f5['toFormat']('EEEE'))+'\x20'+_0x2753f5['toFormat']('hh:mma'):_0x2753f5['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x2753f5['toFormat']('LL-dd-yyyy\x20hh:mma');};}function _t(_0x30454c,_0x2775b5){const _0x53fd5f=_0x30454c['mapper']['markerNameToElements'](_0x2775b5['name']);if(!_0x53fd5f)return null;const _0x23b24c=_0x482ce6(_0x53fd5f['values']());return _0x30454c['view']['domConverter']['mapViewToDom'](_0x23b24c)||null;}function xt(_0x1bd100,_0x5be6d4){if(0x0===_0x5be6d4['length'])return null;const _0x6c1f96=[],_0x10d3a2=_0x1bd100['view']['domConverter'];for(const _0x3ca2a8 of _0x5be6d4){const _0x44983d=_0x1bd100['mapper']['markerNameToElements'](_0x3ca2a8['name']);if(!_0x44983d)continue;const _0x184e77=Array['from'](_0x44983d)['map'](_0x233530=>_0x10d3a2['mapViewToDom'](_0x233530))['filter'](_0x3f8a82=>!!_0x3f8a82);_0x6c1f96['push'](..._0x184e77);}if(0x0===_0x6c1f96['length'])return null;const _0xda77e0=[];for(const _0x3d6c7a of _0x6c1f96){const _0x37a33e=_0x3d6c7a['getClientRects']()['item'](0x0);_0x37a33e&&_0xda77e0['push']({'x':_0x37a33e['x'],'y':_0x37a33e['y'],'domElement':_0x3d6c7a});}return 0x0===_0xda77e0['length']?null:(_0xda77e0['sort']((_0x356261,_0x35548f)=>_0x356261['y']-_0x35548f['y']||_0x356261['x']-_0x35548f['x']),_0xda77e0['map'](_0x2187aa=>_0x2187aa['domElement']));}function It(_0x27ffaf,{limit:_0x2e7ce5,suffix:_0x46d2f9='...'}){const _0x5d14d7=[];let _0x5ca87a=0x0;const _0x5b2261=_0x27ffaf['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x2ddf37=0x0;_0x2ddf37<_0x5b2261['length'];_0x2ddf37++){let _0x6ecfb0=_0x5b2261[_0x2ddf37];const _0x54ac5e=St(_0x6ecfb0);if(_0x6ecfb0['startsWith']('<')){if(_0x5ca87a>=_0x2e7ce5){const _0x34a891=_0x6ecfb0['match'](/[a-zA-Z]+/);if(!_0x34a891){_0x5b2261[_0x2ddf37]='';continue;}const _0xbc7a84=_0x34a891[0x0];_0x6ecfb0['startsWith']('</')?(_0x5d14d7['length']&&(_0x6ecfb0=''),_0x5d14d7['pop']()):(_0x5d14d7['push'](_0xbc7a84),_0x6ecfb0='');}}else{if(_0x5ca87a>=_0x2e7ce5)_0x6ecfb0='';else{if(_0x5ca87a+_0x54ac5e['length']>=_0x2e7ce5){let _0x301b10=_0x2e7ce5-_0x5ca87a;if('\x20'===_0x54ac5e[_0x301b10-0x1])_0x301b10--;else{const _0x5e6f37=_0x54ac5e['slice'](_0x301b10)['indexOf']('\x20');-0x1!==_0x5e6f37?_0x301b10+=_0x5e6f37:_0x301b10=_0x6ecfb0['length'];}_0x6ecfb0=_0x54ac5e['slice'](0x0,_0x301b10)['join']('')+_0x46d2f9,_0x5ca87a=_0x2e7ce5;}else _0x5ca87a+=_0x54ac5e['length'];}}_0x5b2261[_0x2ddf37]=_0x6ecfb0;}return _0x5b2261['join']('\x0a')['replace'](/\n/g,'');}function St(_0x1551c2){const _0x33b75c=[];for(let _0x9d62b7=0x0;_0x9d62b7<_0x1551c2['length'];_0x9d62b7++){const _0x43cbc3=_0x1551c2['substring'](_0x9d62b7)['match'](/^&[a-z0-9#]+;/);if(_0x43cbc3){const _0x2de343=_0x43cbc3[0x0];_0x33b75c['push'](_0x2de343),_0x9d62b7+=_0x2de343['length']-0x1;}else _0x33b75c['push'](_0x1551c2[_0x9d62b7]);}return _0x33b75c;}class Et extends _0x1c6735{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x4022bc){super(_0x4022bc);const _0x476827=this['bindTemplate'];this['set']('message',V(_0x4022bc,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x4022bc,V(_0x4022bc,'Yes'),_0x5ddce2,'submit'),this['cancelView']=this['_createButtonView'](_0x4022bc,V(_0x4022bc,'No'),_0x24865e,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x2a45c3(),this['keystrokes']=new _0x557ef2(),this['focusCycler']=new _0x2820e2({'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':_0x476827['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'](_0x1ad2dd,_0x62b3dd,_0x1967f1,_0x501cf8){const _0x20e666=new _0x227d46(_0x1ad2dd);return _0x20e666['label']=_0x62b3dd,_0x20e666['icon']=_0x1967f1,_0x20e666['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x501cf8}}),_0x20e666['on']('execute',()=>this['fire'](_0x501cf8)),_0x20e666;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x46206a=>{this['keystrokes']['listenTo'](_0x46206a['element']),this['focusTracker']['add'](_0x46206a['element']);}),this['keystrokes']['set']('esc',(_0x438ba9,_0x329224)=>{this['fire']('cancel'),_0x329224();});}}function Mt(_0x15274e){return class extends _0x15274e{['showConfirm'](_0x5b3c7d,_0x2d1c5a){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x5b3c7d,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x2d1c5a['appendChild'](this['confirmView']['element']),_0x2d1c5a['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x474a9e,_0x469c04,_0x3b7537)=>{_0x3b7537||_0x2d1c5a['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x450ad2=>this['confirmView']['on']('submit',_0x450ad2));}['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(_0x47d3ea){let _0x1c8383=0x0,_0x49d3a6=0x0;for(const _0x59c5fe of Nt(_0x47d3ea))_0x1c8383=(_0x1c8383<<0x5)-_0x1c8383+_0x59c5fe,_0x1c8383&=_0x1c8383,[_0x1c8383,_0x49d3a6]=[_0x49d3a6,_0x1c8383];return Bt(_0x1c8383)+Bt(_0x49d3a6);}function*Tt(_0x3539ff){null==_0x3539ff||null==_0x3539ff?yield 0x12b9b0a1:0x0===_0x3539ff||!0x1===_0x3539ff?yield 0x0:0x1===_0x3539ff||0x1==_0x3539ff?yield 0x1:Array['isArray'](_0x3539ff)?yield*function*(_0x1575b0){for(const _0x17944a of _0x1575b0)yield*Tt(_0x17944a);}(_0x3539ff):'object'==typeof _0x3539ff?yield*Nt(_0x3539ff):'string'==typeof _0x3539ff?yield*Pt(_0x3539ff):'number'==typeof _0x3539ff&&(yield _0x3539ff);}function*Nt(_0x1f62aa){if(yield Dt('{'),_0x1f62aa){const _0x1b3bc5=Object['keys'](_0x1f62aa)['sort']();for(const _0x40362e of _0x1b3bc5){yield*Pt(_0x40362e),yield Dt(':');const _0x359e91=_0x1f62aa[_0x40362e];yield*Tt(_0x359e91);}}yield Dt('}');}function*Pt(_0x160a41){yield Dt('\x22');for(const _0x20e91b of _0x160a41)yield Dt(_0x20e91b);yield Dt('\x22');}function Dt(_0x5a886b){return _0x5a886b['charCodeAt'](0x0);}function Bt(_0x11cb31){return(_0x11cb31*=Math['sign'](_0x11cb31))['toString'](0x24);}const Ot=['root','roots','initialData','context','toolbar','rootsAttributes'],Vt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function $t(_0x21293b,_0x517dc8,_0x2c19b1,_0x2340b1=[]){const _0x299362='string'==typeof _0x21293b?_0x2c19b1['get'](_0x21293b)['constructor']:_0x21293b['prototype']['constructor'];if(_0x517dc8['has'](_0x299362))return _0x517dc8['get'](_0x299362);_0x517dc8['set'](_0x299362,!0x0);const _0x59fc69=[...Vt,..._0x2340b1]['map'](_0x331f93=>{if(_0x2c19b1['has'](_0x331f93))return _0x2c19b1['get'](_0x331f93)['constructor'];})['filter'](_0x510d87=>_0x510d87);if(_0x299362&&_0x59fc69['includes'](_0x299362))return _0x517dc8['set'](_0x299362,!0x1),!0x1;if(!_0x299362['requires'])return _0x517dc8['set'](_0x299362,!0x0),!0x0;const _0x31c978=_0x299362['requires']['every'](_0x35c786=>$t(_0x35c786,_0x517dc8,_0x2c19b1,_0x2340b1));return _0x517dc8['set'](_0x299362,_0x31c978),_0x31c978;}function Lt(_0x2ee276,_0x51b1ec){const _0x5ee362={};for(const _0x41aa64 of _0x2ee276['config']['names']())Ot['includes'](_0x41aa64)||(_0x5ee362[_0x41aa64]=_0x2ee276['config']['get'](_0x41aa64));const _0x182854=_0x5ee362['plugins']||[],_0x291fe4=_0x2ee276['constructor']['builtinPlugins']||[],_0x3a2984=_0x182854['length']?_0x182854:_0x291fe4,_0x41937c=_0x5ee362['extraPlugins']||[];delete _0x5ee362['extraPlugins'];const _0x5ee89d=_0x5ee362['removePlugins']||[];delete _0x5ee362['removePlugins'];const _0x18e8da=_0x2ee276['_context']['config']['get']('plugins')||[],_0x354dd2=_0x3a2984['concat'](_0x41937c)['concat'](_0x18e8da)['map'](_0x2e6d04=>'string'==typeof _0x2e6d04?_0x291fe4['find'](_0x4762ee=>_0x4762ee['pluginName']==_0x2e6d04):_0x2e6d04)['filter'](_0x5be7d3=>!_0x5ee89d['includes'](_0x5be7d3)&&!_0x5ee89d['includes'](_0x5be7d3['pluginName'])),_0x12a360=Array['from'](new Set(_0x354dd2)),_0x17160c=new Map();return _0x5ee362['plugins']=_0x12a360['filter'](_0x44f972=>$t(_0x44f972,_0x17160c,_0x2ee276['plugins'],_0x51b1ec)),_0x5ee362;}function Ut(_0x300165,_0x2d0899){const _0x16975c=[];_0x300165['document']['selection']['on']('change:range',()=>{const _0x424995=function(_0x1ac73f,_0x20f5ac){const _0x119f15=[];for(const _0x4d7874 of _0x1ac73f['markers']){const _0x4728fe=_0x4d7874['getRange']();(_0x4728fe['containsPosition'](_0x20f5ac)||_0x4728fe['start']['isEqual'](_0x20f5ac)||_0x4728fe['end']['isEqual'](_0x20f5ac))&&_0x119f15['push'](_0x4d7874);}return _0x119f15;}(_0x300165,_0x300165['document']['selection']['focus']),_0x29e065=[],_0xf92631=[],_0x3b5c43=[];for(const _0x772d82 of _0x16975c)_0x424995['includes'](_0x772d82)||_0x29e065['push'](_0x772d82);for(const _0x3d008d of _0x424995)_0x16975c['includes'](_0x3d008d)||_0xf92631['push'](_0x3d008d),_0x3b5c43['push'](_0x3d008d);(_0x29e065['length']||_0xf92631['length'])&&_0x2d0899({'left':_0x29e065,'entered':_0xf92631}),_0x16975c['length']=0x0,_0x16975c['push'](..._0x3b5c43);});}const Rt='Ctrl+Shift+E';function Ft(_0x448a2a,_0x25cab4){const _0x2a97a0=_0x448a2a['element'];_0x448a2a['keystrokes']['listenTo'](_0x2a97a0);for(const _0x5db297 of _0x25cab4)Ht(_0x448a2a,_0x5db297);_0x25cab4['on']('change',(_0x83ea32,_0xb3509a)=>{for(const _0x344924 of _0xb3509a['removed'])zt(_0x448a2a,_0x344924);for(const _0x186bf6 of Array['from'](_0xb3509a['added'])['reverse']())Ht(_0x448a2a,_0x186bf6);}),_0x448a2a['keystrokes']['set']('enter',(_0x446059,_0x3f0589)=>{_0x2a97a0===_0x446059['target']&&(_0x448a2a['focusCycler']['focusFirst'](),_0x3f0589());},{'filter':_0x480485=>_0x480485['target']===_0x2a97a0}),_0x448a2a['keystrokes']['set']('esc',(_0x323ebf,_0x12a931)=>{_0x2a97a0!==_0x323ebf['target']?_0x448a2a['focus']():_0x448a2a['fire']('escape'),_0x12a931();}),_0x448a2a['keystrokes']['set']('arrowdown',(_0x30a8e4,_0x2e1909)=>{_0x2a97a0===_0x30a8e4['target']&&(_0x448a2a['fire']('arrowdown'),_0x2e1909());}),_0x448a2a['keystrokes']['set']('arrowup',(_0x2b334d,_0x1e221a)=>{_0x2a97a0===_0x2b334d['target']&&(_0x448a2a['fire']('arrowup'),_0x1e221a());});}function Ht(_0x35146f,_0xc0915){_0xc0915['isRendered']&&(_0x35146f['focusTracker']['add'](_0xc0915['element']),_0x35146f['keystrokes']['listenTo'](_0xc0915['element']),_0x419c62(_0xc0915)&&function(_0x469f6f,_0x5b87fc){const _0x12b6ca=_0x469f6f['actions'],_0x4c814a=_0x5b87fc['actions'];for(const _0x179ac4 of Object['keys'](_0x12b6ca))if(_0x179ac4 in _0x4c814a&&_0x12b6ca[_0x179ac4]!==_0x4c814a[_0x179ac4])return!0x1;return!0x0;}(_0x35146f['focusCycler'],_0xc0915['focusCycler'])&&_0x35146f['focusCycler']['chain'](_0xc0915['focusCycler']));}function zt(_0x110536,_0x41da8e){_0x110536['focusTracker']['remove'](_0x41da8e['element']),_0x110536['keystrokes']['stopListening'](_0x41da8e['element']),_0x419c62(_0x41da8e)&&_0x110536['focusCycler']['unchain'](_0x41da8e['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x37425e{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x35b754?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x4e992b,_0x211b4a)=>{_0x211b4a['on']('ready',()=>{this['_integrateEditor'](_0x211b4a);});});}get['editor'](){if(this['context']instanceof _0x35b754)return this['context'];{const _0x46f70a=this['context']['editors']['first'];if(!_0x46f70a)throw new _0x2dee5a('documentcompare-no-editor',this);return _0x46f70a;}}['getDiff'](_0x3007c1,_0x86d806,_0x37083b={'anchor':'main','markDeletions':!0x1}){const _0x280714=_0x37083b['targetEditor']||this['editor'];let _0x536ef2,_0x5bf180;if('string'==typeof _0x37083b['anchor']){const _0x596c12=_0x280714['model']['document']['getRoot'](_0x37083b['anchor']);if(!_0x596c12)throw new _0x2dee5a('documentcompare-compare-no-root',this,{'anchor':_0x37083b['anchor']});_0x536ef2=_0x596c12,_0x5bf180=_0x280714['model']['createPositionAt'](_0x596c12,0x0);}else _0x536ef2=_0x37083b['anchor']['clone'](),_0x5bf180=_0x37083b['anchor']['clone']();const _0x2b337e=_0x280714['data']['parse'](_0x3007c1,_0x536ef2),_0x10d3a3=_0x280714['data']['parse'](_0x86d806,_0x536ef2);return new Jt({'editor':_0x280714,'before':_0x2b337e,'after':_0x10d3a3,'options':{'anchor':_0x5bf180,'markDeletions':_0x37083b['markDeletions']}});}['isMarkedRemoveOperation'](_0x43e7e7){return'marker'==_0x43e7e7['type']&&_0x43e7e7['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x59c4d8){_0x59c4d8['conversion']['for']('upcast')['add'](_0xcce141=>{_0xcce141['on']('element',(_0x33dd79,_0x32a214,_0x3fdcb0)=>{if(_0x32a214['modelRange'])for(const _0x5eeb39 of _0x32a214['modelRange']['getItems']({'shallow':!0x0})){if(_0x5eeb39['is']('$textProxy'))continue;const _0x6057d2=_0x32a214['viewItem']['getAttribute'](jt);_0x6057d2&&_0x3fdcb0['writer']['setAttribute'](Wt,_0x6057d2,_0x5eeb39);}},{'priority':'lowest'});}),_0x59c4d8['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x1db779,before:_0x4c2723,after:_0x33d1b1,options:_0x4ce34a}){this['_editor']=_0x1db779,this['_markDeletions']=!!_0x4ce34a['markDeletions'],this['_anchor']=_0x4ce34a['anchor'];const _0xff6901=this['_tokenizeModel'](_0x4c2723),_0x134a9b=this['_tokenizeModel'](_0x33d1b1);this['_diffItems']=this['_diffModelTokens'](_0xff6901,_0x134a9b),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x4c2723['markers'],_0x33d1b1['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x5e4e3c=this['_editor']['model']['document'],_0x3fb5e6=[];let _0x47c024=_0x5e4e3c['version'];for(const _0x3c1db8 of this['_operationsData'])switch(_0x3c1db8['type']){case'attribute':{const _0x3668ed=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['path']),_0xda9dea=_0x3668ed['getShiftedBy'](_0x3c1db8['howMany']),_0x509bf4=new _0x36794d(_0x3668ed,_0xda9dea),_0x3f5af3=JSON['parse'](_0x3c1db8['oldValue']),_0x45002e=JSON['parse'](_0x3c1db8['newValue']);_0x3fb5e6['push'](new _0x539fde(_0x509bf4,_0x3c1db8['key'],_0x3f5af3,_0x45002e,_0x47c024++));break;}case'insert':{const _0x2a4594=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['path']),_0x14f07e=this['_makeModelFromTokens'](_0x3c1db8['tokens']);_0x3fb5e6['push'](new _0x566d4e(_0x2a4594,_0x14f07e,_0x47c024++));break;}case'remove':{const _0x5f4136=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['path']),_0x732796=new _0x3a5154(_0x5e4e3c['graveyard'],[0x0]);_0x3fb5e6['push'](new _0x254cd4(_0x5f4136,_0x3c1db8['howMany'],_0x732796,_0x47c024++));break;}case'rename':{const _0x5baec7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['path']);_0x3fb5e6['push'](new _0x50c9fc(_0x5baec7,_0x3c1db8['oldName'],_0x3c1db8['newName'],_0x47c024++));break;}case'split':{const _0x208d5e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['path']),_0x2abacc=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['path']['slice'](0x0,-0x1));_0x2abacc['offset']++,_0x3fb5e6['push'](new _0x486d61(_0x208d5e,Number['NEGATIVE_INFINITY'],_0x2abacc,null,_0x47c024++));break;}case'merge':{const _0x23f79d=_0x3c1db8['path']['slice'](),_0xd51a00=_0x23f79d['slice'](0x0,-0x1);_0xd51a00[_0xd51a00['length']-0x1]++,_0xd51a00['push'](0x0);const _0x17f508=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xd51a00),_0x13d10a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x23f79d),_0x7baf51=new _0x3a5154(_0x5e4e3c['graveyard'],[0x0]);_0x3fb5e6['push'](new _0x49e0b0(_0x17f508,Number['NEGATIVE_INFINITY'],_0x13d10a,_0x7baf51,_0x47c024++));break;}case'marker':case'markedRemove':{let _0x42f820=null;if(_0x3c1db8['range']){const _0x1a49c5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['range']['start']),_0x1a087b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['range']['end']);_0x42f820=new _0x36794d(_0x1a49c5,_0x1a087b);}const _0x4cd6ee='marker'==_0x3c1db8['type']?_0x3c1db8['name']:'$markedRemove:'+_0x5bba90();_0x3fb5e6['push'](new _0x25b9f8(_0x4cd6ee,null,_0x42f820,_0x5e4e3c['model']['markers'],!0x0,_0x47c024++));break;}case'unwrap':{const _0x10c641=_0x3c1db8['path']['slice']();_0x10c641['push'](0x0);const _0x2372fb=_0x3c1db8['path']['slice'](),_0x13be86=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x10c641),_0x4d0ba8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2372fb),_0x557739=new _0x3a5154(_0x5e4e3c['graveyard'],[0x0]);_0x3fb5e6['push'](new _0x254cd4(_0x13be86,_0x3c1db8['howMany'],_0x4d0ba8,_0x47c024++)),_0x3fb5e6['push'](new _0x254cd4(_0x4d0ba8['getShiftedBy'](_0x3c1db8['howMany']),0x1,_0x557739,_0x47c024++));break;}case'wrap':{const _0xcb57a9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['range']['start']),_0x1a5503=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c1db8['range']['end']),_0x392105=_0x3c1db8['token']['element']['_clone'](!0x1),_0x195e9d=_0x3c1db8['range']['end']['slice']();_0x195e9d['push'](0x0);const _0x1d2d29=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x195e9d);_0x3fb5e6['push'](new _0x566d4e(_0x1a5503,_0x392105,_0x47c024++)),_0x3fb5e6['push'](new _0x254cd4(_0xcb57a9,_0x1a5503['offset']-_0xcb57a9['offset'],_0x1d2d29,_0x47c024++));break;}}return _0x3fb5e6;}['_tokenizeModel'](_0x466423){const _0x3b30d6=[],_0x2e6353=_0x36794d['_createIn'](_0x466423),_0x20fe8d=new _0x4eb770({'boundaries':_0x2e6353});let _0xe11375='',_0x2bbf8d=null;const _0x1d6338=[''],_0x2a127a=new Map();for(const _0x2a0ddb of _0x20fe8d)if('elementStart'==_0x2a0ddb['type']||'elementEnd'==_0x2a0ddb['type']){let _0x560e79=_0x1d6338[0x0];''!==_0xe11375&&(_0x3b30d6['push'](...this['_makeTokensFromTextByWords'](_0xe11375,_0x2bbf8d,_0x560e79)),_0xe11375='');const _0xc892d7=_0x2a0ddb['item'];let _0x2ba3d2;_0xc892d7['getAttribute'](Wt)?_0x2ba3d2=_0xc892d7['getAttribute'](Wt):'elementStart'==_0x2a0ddb['type']?(_0x2ba3d2=qt(_0xc892d7),_0x2a127a['set'](_0xc892d7,_0x2ba3d2)):_0x2ba3d2=_0x2a127a['get'](_0xc892d7);const _0x4d7866=this['_getElementCategory'](_0xc892d7);'solid'==_0x4d7866&&('elementStart'==_0x2a0ddb['type']?(_0x560e79=_0x2ba3d2,_0x1d6338['unshift'](_0x560e79)):_0x1d6338['shift']());const _0x5d78c7={'type':'element','element':_0xc892d7,'elementId':_0x2ba3d2,'category':_0x4d7866,'isStart':'elementStart'==_0x2a0ddb['type'],'limitId':_0x560e79};_0x3b30d6['push'](_0x5d78c7);}else''==_0xe11375&&(_0x2bbf8d=_0x2a0ddb['previousPosition']['clone']()),_0xe11375+=_0x2a0ddb['item']['data'];return''!==_0xe11375&&_0x3b30d6['push'](...this['_makeTokensFromTextByWords'](_0xe11375,_0x2bbf8d,_0x1d6338[0x0])),_0x3b30d6;}['_makeTokensFromTextByWords'](_0x5d6e3a,_0x2d3983,_0x40b342){const _0x25285f=_0x5d6e3a['matchAll'](/(\s)/g),_0xe8dfb0=Array['from'](_0x25285f)['map'](_0x6941c1=>_0x6941c1['index']);_0xe8dfb0['push'](_0x5d6e3a['length']),0x0==_0xe8dfb0[0x0]&&_0xe8dfb0['shift']();const _0x215db7=[],_0x257809=_0x2d3983['parent'];let _0x3633c1=0x0,_0x32dee1=_0x2d3983['offset'];for(let _0x2798a6=0x0;_0x2798a6<_0xe8dfb0['length'];_0x2798a6++)_0x215db7['push']({'type':'text','data':_0x5d6e3a['slice'](_0x3633c1,_0xe8dfb0[_0x2798a6]),'parent':_0x257809,'offset':_0x32dee1,'limitId':_0x40b342}),_0x3633c1=_0xe8dfb0[_0x2798a6],_0x32dee1=_0x2d3983['offset']+_0xe8dfb0[_0x2798a6];return _0x215db7;}['_getElementCategory'](_0x3f14cb){const _0xf5e2a6=this['_editor']['model']['schema'];return _0xf5e2a6['isLimit'](_0x3f14cb)||_0xf5e2a6['isContent'](_0x3f14cb)||_0xf5e2a6['isInline'](_0x3f14cb)?'solid':_0xf5e2a6['isBlock'](_0x3f14cb)?'block':'container';}['_diffModelTokens'](_0x14fabb,_0x59e8b7){const _0x56af07=_0x44ad45(_0x14fabb,_0x59e8b7,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x56af07);const _0x4a1f7d=_0x56af07['flatMap'](_0x5e9e2d=>{const _0x282b6a=_0x5e9e2d['added']?'added':_0x5e9e2d['removed']?'removed':'unchanged';return _0x5e9e2d['value']['map'](_0x30dc38=>({'token':_0x30dc38,'change':_0x282b6a}));});let _0x1ec1b7=0x0;for(const _0x51ac04 of _0x4a1f7d)'added'!=_0x51ac04['change']&&('unchanged'==_0x51ac04['change']&&(_0x51ac04['before']=_0x14fabb[_0x1ec1b7]),_0x1ec1b7++);return _0x4a1f7d;}['_handleUnclosedBlockOpeningTags'](_0x12f05e){for(let _0x4929bf=0x0;_0x4929bf<_0x12f05e['length']-0x1;_0x4929bf++)if(_0x12f05e[_0x4929bf]['removed']&&_0x12f05e[_0x4929bf+0x1]['added']){const _0x2d00b9=this['_findUnclosedBlockOpeningToken'](_0x12f05e[_0x4929bf]['value']);if(null!==_0x2d00b9){const _0x247ae2=this['_findUnclosedBlockOpeningToken'](_0x12f05e[_0x4929bf+0x1]['value']),_0x2d52b3=_0x12f05e[_0x4929bf]['value']['splice'](_0x2d00b9),_0x304c11=_0x12f05e[_0x4929bf+0x1]['value']['splice'](_0x247ae2),_0x21259e=[_0x304c11['shift']()];_0x2d52b3['shift']();const _0x544980={'value':_0x2d52b3,'removed':!0x0},_0x202a49={'value':_0x304c11,'added':!0x0},_0x3c7245={'value':_0x21259e};_0x12f05e['splice'](_0x4929bf+0x2,0x0,_0x3c7245,_0x544980,_0x202a49);}}}['_findUnclosedBlockOpeningToken'](_0x28dee1){let _0x2134ca=0x0,_0xf46d1e=-0x1;for(let _0x179626=0x0;_0x179626<_0x28dee1['length'];_0x179626++){const _0x7c316d=_0x28dee1[_0x179626];'element'==_0x7c316d['type']&&'block'==_0x7c316d['category']&&(_0x2134ca+=_0x7c316d['isStart']?0x1:-0x1,_0x7c316d['isStart']&&(_0xf46d1e=_0x179626));}return 0x0===_0x2134ca?null:_0xf46d1e;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x42af3c=0x0;_0x42af3c<this['_diffItems']['length'];_0x42af3c++){const _0x3a56c2=this['_diffItems'][_0x42af3c]['change'],_0x18311f=[];_0x18311f['push'](this['_diffItems'][_0x42af3c]);let _0x91d352=_0x42af3c+0x1;for(;this['_diffItems'][_0x91d352]&&this['_diffItems'][_0x91d352]['change']==_0x3a56c2;)_0x18311f['push'](this['_diffItems'][_0x91d352]),_0x91d352++,_0x42af3c++;const _0x5f72a0=_0x18311f['map'](_0x2a362e=>_0x2a362e['token']);if('unchanged'==_0x3a56c2)_0x18311f['map'](_0x486d21=>_0x486d21['before'])['forEach'](_0xd49d2a=>this['_traverseOverItem'](_0xd49d2a));else{if('removed'==_0x3a56c2){if(this['_markDeletions']){const _0x55af46=this['_path']['slice']();_0x5f72a0['forEach'](_0x3f094b=>this['_traverseOverItem'](_0x3f094b));const _0x45686a=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x55af46,'end':_0x45686a}});}else this['_handleChanged'](_0x5f72a0,!0x0,this['_path']['slice']());}else{const _0x3f11b6=_0x5f72a0['filter'](_0x1815a2=>'element'!=_0x1815a2['type']||'container'!=_0x1815a2['category']);this['_handleChanged'](_0x3f11b6,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x87035d=0x0;_0x87035d<this['_diffItems']['length'];_0x87035d++){const _0x150f24=this['_diffItems'][_0x87035d]['change'],_0x589f4a=[];_0x589f4a['push'](this['_diffItems'][_0x87035d]);let _0x44df81=_0x87035d+0x1;for(;this['_diffItems'][_0x44df81]&&this['_diffItems'][_0x44df81]['change']==_0x150f24;)_0x589f4a['push'](this['_diffItems'][_0x44df81]),_0x44df81++,_0x87035d++;const _0xc24404=_0x589f4a['map'](_0x321b0a=>_0x321b0a['token']);if('unchanged'==_0x150f24){const _0x1a0811=_0x589f4a['map'](_0x459f2c=>_0x459f2c['before']);this['_handleUnchanged'](_0x1a0811,_0xc24404);}else('added'==_0x150f24||this['_markDeletions'])&&_0xc24404['forEach'](_0x2539ee=>{'element'==_0x2539ee['type']&&_0x2539ee['isStart']&&this['_splitPostponedData']['has'](_0x2539ee['element'])&&this['_handleSplitPostponedData'](_0x2539ee['element'],this['_path']),this['_traverseOverItem'](_0x2539ee);});}}['_handleSplitPostponedData'](_0x4d8a2a,_0x31b654){const _0x3b1c57=this['_splitPostponedData']['get'](_0x4d8a2a);for(const _0x225009 of _0x3b1c57)'rename'==_0x225009['type']?this['_operationsData']['push']({'type':'rename','path':_0x31b654['slice'](),'oldName':_0x225009['oldValue'],'newName':_0x4d8a2a['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x31b654['slice'](),'howMany':0x1,'key':_0x225009['key'],'oldValue':_0x225009['oldValue'],'newValue':JSON['stringify'](_0x4d8a2a['getAttribute'](_0x225009['key'])??null)});}['_calculateMarkersOperationsData'](_0x129338,_0x4e11dd){const _0x419c81={};for(const [_0x165f6a]of _0x129338)_0x419c81[_0x165f6a]=null;for(const [_0x9d11c,_0x4f1010]of _0x4e11dd)_0x419c81[_0x9d11c]=_0x4f1010;const _0xc40507=Object['entries'](_0x419c81)['map'](([_0x489426,_0x52d328])=>({'type':'marker','name':_0x489426,'range':_0x52d328?{'start':_0x52d328['start']['path']['slice'](),'end':_0x52d328['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xc40507);}['_handleUnwraps'](){const _0x230bd7=new Map(),_0x2e8aee=[],_0x26b853=[0x0];let _0xfa2070=this['_diffItems']['length']+0x1;for(let _0x4807b0=this['_diffItems']['length']-0x1;_0x4807b0>=0x0;_0x4807b0--){const {token:_0x49611f,before:_0xda0fa7,change:_0x5eee18}=this['_diffItems'][_0x4807b0];if('removed'!=_0x5eee18&&(_0xfa2070=_0x4807b0),'element'!=_0x49611f['type']||'container'!=_0x49611f['category']||'added'==_0x5eee18)continue;const _0x1b5cc7=_0xda0fa7?_0xda0fa7['element']:_0x49611f['element'];if(_0x49611f['isStart']){const _0xbfe661=_0x230bd7['get'](_0x1b5cc7),_0x2ceb2b=this['_diffItems'][_0xbfe661];('removed'==_0x5eee18||'removed'==_0x2ceb2b['change'])&&_0xfa2070<_0xbfe661&&(this['_operationsData']['push']({'type':'unwrap','path':_0x1b5cc7['getPath'](),'howMany':_0x1b5cc7['maxOffset']+_0x26b853[0x0]}),_0x26b853['shift'](),_0x26b853[0x0]+=_0x1b5cc7['maxOffset']-0x1,_0x2e8aee['push'](_0x4807b0),_0x2e8aee['push'](_0xbfe661));}else _0x230bd7['set'](_0x1b5cc7,_0x4807b0),_0x26b853['unshift'](0x0);}_0x2e8aee['sort']((_0xe69b12,_0x110a5d)=>_0x110a5d-_0xe69b12),_0x2e8aee['forEach'](_0x29d87a=>{const _0x56247f=this['_diffItems'][_0x29d87a];'removed'==_0x56247f['change']?this['_diffItems']['splice'](_0x29d87a,0x1):(_0x56247f['change']='added',delete _0x56247f['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x269933=[];for(let _0x321e03=0x0;_0x321e03<this['_diffItems']['length'];_0x321e03++){const {change:_0x1a5cae,token:_0x3ac419}=this['_diffItems'][_0x321e03];if('added'==_0x1a5cae&&'element'==_0x3ac419['type']&&'container'==_0x3ac419['category']){if(_0x3ac419['isStart'])_0x269933['push'](this['_path']['slice']());else{if(!_0x3ac419['isStart']){const _0x4ca180=_0x269933['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x4ca180,'end':this['_path']['slice']()},'token':_0x3ac419}),this['_path'][this['_path']['length']-0x1]=_0x4ca180[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x1a5cae||this['_markDeletions'])&&this['_traverseOverItem'](_0x3ac419);}}['_handleUnchanged'](_0x5658e6,_0x438375){for(let _0x3bf36d=0x0;_0x3bf36d<_0x5658e6['length'];_0x3bf36d++){const _0x28dda1=_0x5658e6[_0x3bf36d];if('element'==_0x28dda1['type']&&_0x28dda1['isStart']){const _0x13b560=_0x438375[_0x3bf36d];'block'==_0x28dda1['category']&&this['_handleElementRename'](_0x28dda1['element'],_0x13b560['element'],this['_path']),this['_handleElementAttributeChanges'](_0x28dda1['element'],_0x13b560['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x13b560);}else{if('element'!=_0x28dda1['type']||_0x28dda1['isStart']){if('text'==_0x28dda1['type']){const _0x3426e0=this['_path']['slice'](),_0x485a5c=[],_0x200fbc=[];for(;_0x5658e6[_0x3bf36d]&&'text'==_0x5658e6[_0x3bf36d]['type'];)_0x485a5c['push'](_0x5658e6[_0x3bf36d]),_0x200fbc['push'](_0x438375[_0x3bf36d]),this['_path'][this['_path']['length']-0x1]+=_0x5658e6[_0x3bf36d]['data']['length'],_0x3bf36d++;_0x3bf36d--,this['_handleTextAttributeChanges'](_0x485a5c,_0x200fbc,_0x3426e0);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x2c7f70,_0x11ca2c,_0x228c8d){const _0x2fc599=[],_0x1a9c20=[],_0x46e5fb=_0x228c8d['slice']();let _0x2908a6=this['_parents']['length']-0x1;for(let _0x4af679=0x0;_0x4af679<_0x2c7f70['length'];_0x4af679++){const _0x149281=_0x2c7f70[_0x4af679],_0xd4b60e=_0x228c8d['slice']();'element'!=_0x149281['type']||_0x149281['isStart']?'element'==_0x149281['type']&&_0x149281['isStart']?(_0x228c8d['push'](0x0),_0x2908a6++,_0x1a9c20['push']({'before':_0xd4b60e,'after':_0x228c8d['slice'](),'index':_0x4af679})):_0x228c8d[_0x228c8d['length']-0x1]+=_0x149281['data']['length']:(_0x228c8d['pop'](),_0x228c8d[_0x228c8d['length']-0x1]++,_0x2908a6--,_0x1a9c20['length']?_0x1a9c20['pop']():_0x2fc599['push']({'before':_0xd4b60e,'after':_0x228c8d['slice'](),'index':_0x4af679}));}if(_0x1a9c20['length']!==_0x2fc599['length'])throw new _0x2dee5a('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x2c7f70,'isRemove':_0x11ca2c});const _0x57d45f=[{'after':_0x46e5fb['slice'](),'index':-0x1},..._0x2fc599,..._0x1a9c20,{'before':_0x228c8d['slice'](),'index':_0x2c7f70['length']}];if(_0x11ca2c){for(let _0x5eaeaa=_0x57d45f['length']-0x1;_0x5eaeaa>=0x1;_0x5eaeaa--){const _0x42316f=_0x57d45f[_0x5eaeaa-0x1]['after'],_0x3b5861=_0x57d45f[_0x5eaeaa]['before'],_0x208480=_0x3b5861[_0x3b5861['length']-0x1]-_0x42316f[_0x42316f['length']-0x1];_0x208480&&(this['_operationsData']['push']({'type':'remove','path':_0x42316f,'howMany':_0x208480}),_0x3b5861[_0x3b5861['length']-0x1]-=_0x208480);}for(const {before:_0x1874eb}of _0x2fc599)this['_operationsData']['push']({'type':'merge','path':_0x1874eb});}else for(let _0x47822c=0x0;_0x47822c<_0x57d45f['length']-0x1;_0x47822c++){const _0x4e9237=_0x57d45f[_0x47822c]['after'],_0x5ece9b=_0x57d45f[_0x47822c+0x1]['before'],_0x2a0cc0=_0x57d45f[_0x47822c]['index']+0x1,_0x1b68aa=_0x57d45f[_0x47822c+0x1]['index'];if(_0x2a0cc0!==_0x1b68aa&&this['_operationsData']['push']({'type':'insert','path':_0x4e9237,'tokens':_0x2c7f70['slice'](_0x2a0cc0,_0x1b68aa)}),_0x47822c<_0x2fc599['length']){this['_operationsData']['push']({'type':'split','path':_0x5ece9b});const _0x297a7b=_0x2c7f70[_0x1a9c20[_0x1a9c20['length']-0x1-_0x47822c]['index']],_0x26bcba=this['_parents'][_0x2908a6]['element'];_0x26bcba['name']!=_0x297a7b['element']['name']&&this['_addSplitPostponedData'](_0x297a7b['element'],{'type':'rename','oldValue':_0x26bcba['name']});const _0x33d5c4=this['_getAttributeChanges'](_0x26bcba['getAttributes'](),_0x297a7b['element']['getAttributes']());for(const _0x1887a6 in _0x33d5c4){const _0xd191c4=_0x33d5c4[_0x1887a6]['oldValue'];this['_addSplitPostponedData'](_0x297a7b['element'],{'type':'attribute','key':_0x1887a6,'oldValue':_0xd191c4});}}}}['_addSplitPostponedData'](_0x3e7f2d,_0x1d5f52){const _0x34c4c3=this['_splitPostponedData']['get'](_0x3e7f2d)||[];_0x34c4c3['push'](_0x1d5f52),this['_splitPostponedData']['set'](_0x3e7f2d,_0x34c4c3);}['_traverseOverItem'](_0x1670cd){'element'==_0x1670cd['type']&&_0x1670cd['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x1670cd)):'element'!=_0x1670cd['type']||_0x1670cd['isStart']?'text'==_0x1670cd['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x1670cd['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x79645d,_0x53b4ba,_0x53995d){_0x79645d['name']!=_0x53b4ba['name']&&this['_operationsData']['push']({'type':'rename','path':_0x53995d['slice'](),'oldName':_0x79645d['name'],'newName':_0x53b4ba['name']});}['_handleElementAttributeChanges'](_0x3cfa91,_0x115be1,_0x235d56){const _0xb7d901=this['_getAttributeChanges'](_0x3cfa91['getAttributes'](),_0x115be1['getAttributes']());for(const _0x207a80 in _0xb7d901){const {oldValue:_0x455efb,newValue:_0x584da9}=_0xb7d901[_0x207a80];this['_operationsData']['push']({'type':'attribute','path':_0x235d56['slice'](),'howMany':0x1,'key':_0x207a80,'oldValue':_0x455efb,'newValue':_0x584da9});}}['_handleTextAttributeChanges'](_0x527ff5,_0x2f6147,_0x5b93e7){const _0x4bec16=this['_operationsData'],_0x5d8c02=_0x527ff5[0x0]['parent'],_0x1e97f6=_0x527ff5[0x0]['offset'],_0x4b2d35=_0x2f6147[0x0]['parent'],_0x26dc34=_0x2f6147[0x0]['offset'],_0x367030=_0x527ff5['reduce']((_0x1be4d9,_0x11b632)=>_0x1be4d9+_0x11b632['data']['length'],0x0),_0x483a76=this['_getAttrsForOffsets'](_0x5d8c02,_0x1e97f6,_0x367030),_0x1e8c94=this['_getAttrsForOffsets'](_0x4b2d35,_0x26dc34,_0x367030),_0x55214b={};for(let _0xa73aa=0x0;_0xa73aa<_0x367030;_0xa73aa++){const _0x441d66=_0x483a76[_0x1e97f6+_0xa73aa],_0x114fe0=_0x1e8c94[_0x26dc34+_0xa73aa],_0x356b1d=this['_getAttributeChanges'](_0x441d66,_0x114fe0);for(const _0x1f6239 in _0x55214b)_0x356b1d[_0x1f6239]||_0x4b750c(_0x1f6239);for(const _0xb39594 in _0x356b1d){const {oldValue:_0x5298a1,newValue:_0x3de573}=_0x356b1d[_0xb39594],_0x2d3fe3=_0x55214b[_0xb39594];_0x2d3fe3?_0x2d3fe3['oldValue']==_0x5298a1&&_0x2d3fe3['newValue']==_0x3de573?_0x2d3fe3['length']++:(_0x4b750c(_0xb39594),_0x55214b[_0xb39594]={'oldValue':_0x5298a1,'newValue':_0x3de573,'start':_0xa73aa,'length':0x1}):_0x55214b[_0xb39594]={'oldValue':_0x5298a1,'newValue':_0x3de573,'start':_0xa73aa,'length':0x1};}}for(const _0x13e4ba in _0x55214b)_0x4b750c(_0x13e4ba);function _0x4b750c(_0x51f7a9){const _0x39fc2a=_0x55214b[_0x51f7a9],_0xbfbdce=_0x5b93e7['slice']();_0xbfbdce[_0xbfbdce['length']-0x1]+=_0x39fc2a['start'],_0x4bec16['push']({'type':'attribute','path':_0xbfbdce,'howMany':_0x39fc2a['length'],'key':_0x51f7a9,'oldValue':_0x39fc2a['oldValue'],'newValue':_0x39fc2a['newValue']}),delete _0x55214b[_0x51f7a9];}}['_getAttributeChanges'](_0x3c447a,_0x5f1f11){const _0x19ce1c={};for(const [_0x4dac60,_0x4e664d]of _0x3c447a)_0x19ce1c[_0x4dac60]={'oldValue':JSON['stringify'](_0x4e664d),'newValue':'null'};for(const [_0x5096bd,_0x25b698]of _0x5f1f11){const _0x357e37=JSON['stringify'](_0x25b698);_0x19ce1c[_0x5096bd]?_0x19ce1c[_0x5096bd]['oldValue']==_0x357e37?delete _0x19ce1c[_0x5096bd]:_0x19ce1c[_0x5096bd]['newValue']=_0x357e37:_0x19ce1c[_0x5096bd]={'oldValue':'null','newValue':_0x357e37};}return delete _0x19ce1c[Wt],_0x19ce1c;}['_getAttrsForOffsets'](_0x3c0385,_0x3a2619,_0x4c4644){const _0x5f1964=new Array(_0x3a2619+_0x4c4644);let _0x1031c9=_0x3c0385['getChildAtOffset'](_0x3a2619),_0xc772d5=_0x1031c9['startOffset'];for(;_0x1031c9&&_0xc772d5<_0x3a2619+_0x4c4644;){const _0xc9a8a4=Array['from'](_0x1031c9['getAttributes']());_0x5f1964['fill'](_0xc9a8a4,_0xc772d5,_0xc772d5+_0x1031c9['offsetSize']),_0xc772d5+=_0x1031c9['offsetSize'],_0x1031c9=_0x1031c9['nextSibling'];}return _0x5f1964;}['_getPositionFromAnchorAndPath'](_0x565bf1,_0x3514a0){const _0x2207af=[..._0x565bf1['path']['slice'](0x0,-0x1),_0x565bf1['offset']+_0x3514a0[0x0],..._0x3514a0['slice'](0x1)];return new _0x3a5154(_0x565bf1['root'],_0x2207af);}['_makeModelFromTokens'](_0x582439){const _0x20da35=[];let _0x2d8e5c=null;for(const _0x6f7af1 of _0x582439)if('element'!=_0x6f7af1['type']||_0x6f7af1['isStart']||_0x2d8e5c!=_0x6f7af1['element']){if(!_0x2d8e5c){if('text'==_0x6f7af1['type']){const _0x229575=_0x3a5154['_createAt'](_0x6f7af1['parent'],_0x6f7af1['offset']),_0x4be72f=_0x36794d['_createFromPositionAndShift'](_0x229575,_0x6f7af1['data']['length']),_0x62ed10=Array['from'](_0x4be72f['getItems']())['map'](_0x1fb14c=>new _0x2c85b4(_0x1fb14c['data'],_0x1fb14c['getAttributes']()));_0x20da35['push'](..._0x62ed10);}else{_0x2d8e5c=_0x6f7af1['element'];const _0x4ce0dd=_0x6f7af1['element']['_clone'](!0x0);_0x4ce0dd['_removeAttribute'](Wt);for(const _0x1dfba2 of this['_editor']['model']['createRangeIn'](_0x4ce0dd)['getItems']())_0x1dfba2['is']('element')&&_0x1dfba2['_removeAttribute'](Wt);_0x20da35['push'](_0x4ce0dd);}}}else _0x2d8e5c=null;return _0x20da35;}}function Kt(_0x2b9c57,_0x317938){return _0x2b9c57['type']===_0x317938['type']&&(_0x2b9c57['limitId']===_0x317938['limitId']&&('text'==_0x2b9c57['type']?_0x2b9c57['data']==_0x317938['data']:function(_0x19f595,_0x2dbd7d){if(_0x19f595['isStart']!=_0x2dbd7d['isStart'])return!0x1;if(_0x19f595['isStart']&&_0x19f595['elementId']!=_0x2dbd7d['elementId'])return!0x1;if(_0x19f595['category']!=_0x2dbd7d['category'])return!0x1;if('block'==_0x19f595['category'])return!0x0;if('container'==_0x19f595['category']&&_0x19f595['elementId']!=_0x2dbd7d['elementId'])return!0x1;return _0x19f595['element']['name']==_0x2dbd7d['element']['name'];}(_0x2b9c57,_0x317938)));}function qt(_0x42c52d){return At({'name':_0x42c52d['name'],...Object['fromEntries'](_0x42c52d['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':_0x37a52b=>0x1!=_0x37a52b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x261a61=>{const {af:{dictionary:_0x595833,getPluralForm:_0xb92627}}={'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':_0x37d2dc=>0x1!=_0x37d2dc}};_0x261a61['af']||={'dictionary':{},'getPluralForm':null},_0x261a61['af']['dictionary']=Object['assign'](_0x261a61['af']['dictionary'],_0x595833),_0x261a61['af']['getPluralForm']=_0xb92627;})(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':_0x3e03db=>0x0==_0x3e03db?0x0:0x1==_0x3e03db?0x1:0x2==_0x3e03db?0x2:_0x3e03db%0x64>=0x3&&_0x3e03db%0x64<=0xa?0x3:_0x3e03db%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x323ed9=>{const {ar:{dictionary:_0xb0cd1c,getPluralForm:_0x17a410}}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x6a20f0=>0x0==_0x6a20f0?0x0:0x1==_0x6a20f0?0x1:0x2==_0x6a20f0?0x2:_0x6a20f0%0x64>=0x3&&_0x6a20f0%0x64<=0xa?0x3:_0x6a20f0%0x64>=0xb?0x4:0x5}};_0x323ed9['ar']||={'dictionary':{},'getPluralForm':null},_0x323ed9['ar']['dictionary']=Object['assign'](_0x323ed9['ar']['dictionary'],_0xb0cd1c),_0x323ed9['ar']['getPluralForm']=_0x17a410;})(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':_0x59919f=>0x1!=_0x59919f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58d0ee=>{const {ast:{dictionary:_0x5c1484,getPluralForm:_0x358bbc}}={'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x30f2e9=>0x1!=_0x30f2e9}};_0x58d0ee['ast']||={'dictionary':{},'getPluralForm':null},_0x58d0ee['ast']['dictionary']=Object['assign'](_0x58d0ee['ast']['dictionary'],_0x5c1484),_0x58d0ee['ast']['getPluralForm']=_0x358bbc;})(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':_0x207dec=>0x1!=_0x207dec}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5962f7=>{const {az:{dictionary:_0x45ce60,getPluralForm:_0x22c035}}={'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x4789b6=>0x1!=_0x4789b6}};_0x5962f7['az']||={'dictionary':{},'getPluralForm':null},_0x5962f7['az']['dictionary']=Object['assign'](_0x5962f7['az']['dictionary'],_0x45ce60),_0x5962f7['az']['getPluralForm']=_0x22c035;})(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':_0x8acc4f=>_0x8acc4f%0xa==0x1&&_0x8acc4f%0x64!=0xb?0x0:_0x8acc4f%0xa>=0x2&&_0x8acc4f%0xa<=0x4&&(_0x8acc4f%0x64<0xa||_0x8acc4f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x110f86=>{const {be:{dictionary:_0x4cd5ab,getPluralForm:_0x342a63}}={'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x552bf8=>_0x552bf8%0xa==0x1&&_0x552bf8%0x64!=0xb?0x0:_0x552bf8%0xa>=0x2&&_0x552bf8%0xa<=0x4&&(_0x552bf8%0x64<0xa||_0x552bf8%0x64>=0x14)?0x1:0x2}};_0x110f86['be']||={'dictionary':{},'getPluralForm':null},_0x110f86['be']['dictionary']=Object['assign'](_0x110f86['be']['dictionary'],_0x4cd5ab),_0x110f86['be']['getPluralForm']=_0x342a63;})(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':_0x1b8aa5=>0x1!=_0x1b8aa5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xa4a646=>{const {bg:{dictionary:_0x204865,getPluralForm:_0x56d197}}={'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':_0x267d91=>0x1!=_0x267d91}};_0xa4a646['bg']||={'dictionary':{},'getPluralForm':null},_0xa4a646['bg']['dictionary']=Object['assign'](_0xa4a646['bg']['dictionary'],_0x204865),_0xa4a646['bg']['getPluralForm']=_0x56d197;})(window['CKEDITOR_TRANSLATIONS']||={});
|